vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   GRPS: Commune For Groups (Dev:Beta) (https://vborg.vbsupport.ru/showthread.php?t=78838)

nexialys 03-26-2005 09:42 PM

FIRST DEBUG SESSION:
in the install process:

file to edit:
install/hacks/GRPS/x/queries.php

$query['new'][] = 'ALTER TABLE ' . TABLE_PREFIX . 'usergroup ADD arcadepermissions INT(10) UNSIGNED DEFAULT 0 NOT NULL';

is useless, and try to override some ARCADE permission.. ;)
EDIT: not useless, just error:
$query['new'][] = 'ALTER TABLE ' . TABLE_PREFIX . 'usergroup ADD grpspermissions INT(10) UNSIGNED DEFAULT 0 NOT NULL';


also, change the " ` " for " \' " .. or the queries does not finish in some mysql servers.
.. and these queries at the end ... $query['new'][] = 'INSERT INTO grps_categories
are missing their ending " ) " ...

OTHER EDIT:

??In your /forums/includes/functions_bbcodeparse.php file:

.. there is two occurences of what you need to replace... this is not stated in the process...

??In your /forums/clientscript/vbulletin_editor.js.php file:

this thing to modify:

window.open("../forums/misc.php

you need to edit it more properly and indicate the proper url to your forum, the ../forum is not the same for everyone!

??In your /forums/admincp/adminfunctions_template.php file:

'groups' => 'GRPS', <<< add the " ' " please... to be PHP perfect!

??In your /forums/includes/functions.php file:

\/\/ declares the arcade image directory <<< ARCADE ghost ?!
these \/\/ are not legal comments... use // always !!!



??In your navbar template:

search have to be modified for a default install (missing the accesskey thing!):
<span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[bbtitle]</a></span>

and replaced by this:
<span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[hometitle]<if condition="THIS_AREA == groups"> Groups<else /> $vboptions[bbtitle]</if></a></span>

(btw, will need a $vbphrase for the title!)

nexialys 03-26-2005 10:50 PM

ok, more debugs:

big problem about urls and paths... on a clean install, there is no modification forcing to add complete paths for images and javascripts, even if you added some in this install...

you will need something like in vBadvanced... ya know, this:
PHP Code:

    $navreplace['find'] = array(
        
'"clientscript',
        
'\'misc.php',
        
'>$vboptions[bbtitle]',
        
'"$vboptions[forumhome].php'
    
);
    
    
$navreplace['replace'] = array(
        
'"' $vboptions['bburl'] . '/clientscript',
        
'\'' $vboptions['bburl'] . '/misc.php',
        
'>$vboptions[hometitle]',
        
'"$vboptions[homeurl]'
    
);
    
$navreplace construct_replacement_array($navreplacearray$navreplace);
    
    
$templatecache['navbar'] = str_replace($navreplace['find'], $navreplace['replace'], $templatecache['navbar']); 

...

Lionel 03-27-2005 01:37 AM

so, nexialys, does it have your blessing now?

Boofo 03-27-2005 03:35 AM

Looking forward to this when all the bugs are worked out. ;)

Lionel 03-27-2005 03:40 AM

more debugging...

grps_catergories in cat_editor has to be fixed. Table name is grps_categories

you have that typo in all admin files, search.php and index.php

Where are the settings phrases?

a lot of the phrases should in front-end error messages instead of redirect

mysql error: Unknown column 'grps_setting.hide_image' in 'field list' in group.php for table grps_setting

I wonder what this 'grps_setting.hide_image' is? I encountered it twice. I removed in groups.php so I could explore further... then it came back again in invitation.php

The whole idea is great, but as posted above, paths and urls are a nightmare.

Deaths 03-27-2005 07:01 AM

I just realised it overwrites some arcade permitions, had to uninstall...

sabret00the 03-27-2005 09:26 AM

ok re-uploaded with all the simpler stuff, also fixed the problem with the hide_image it was added inbetween builds so was only in the update thus never made it into the original installer. the arcade thing is sorted and that's set back to grpspermissions, saying that deaths it should've never actually tried to use the arcade permissions, it should've just not saved permissions.

Quote:

Originally Posted by nexialys
ok, more debugs:

big problem about urls and paths... on a clean install, there is no modification forcing to add complete paths for images and javascripts, even if you added some in this install...

you will need something like in vBadvanced... ya know, this:
PHP Code:

$navreplace['find'] = array(
        
'"clientscript',
        
'\'misc.php',
        
'>$vboptions[bbtitle]',
        
'"$vboptions[forumhome].php'
    
);
    
    
$navreplace['replace'] = array(
        
'"' $vboptions['bburl'] . '/clientscript',
        
'\'' $vboptions['bburl'] . '/misc.php',
        
'>$vboptions[hometitle]',
        
'"$vboptions[homeurl]'
    
);
    
$navreplace construct_replacement_array($navreplacearray$navreplace);
    
    
$templatecache['navbar'] = str_replace($navreplace['find'], $navreplace['replace'], $templatecache['navbar']); 

...

did the stuff in the functions_grps.php not fix the image problem, i'll definately have to look into it for the jscript and will do the images too if that didn't work.

Quote:

Originally Posted by lsmba
If I may...sounds good...thanks for the contribution! But, is this like a "partitioning off" so-to-speak of the existing vbulletin forum?

And can't this be done already with the existing vbulletin 3.07? Just a little confused as to what this hack "really" can do...thanks for the input.

lsmba

yup alot like partitioning off the forums, if you have loads of sub-forums this is designed to remove them to something more managable :ermm: lol.

and nope the existing vB3 setup doesn't offer this functionality. though the groups thing is available , it doesn't offer the groups pages with the same effectivenes :nervous:

i'll get round to working on documenting stuff and explaining stuff in the installer a bit later today, just in the middle of trying to find my bug logs :(

Lionel 03-28-2005 02:38 AM

in editgroup.php, I don't understand why


PHP Code:

 if ($bbuserinfo[groupid] == 6)
 {
  if (
$groupinfo['hidden_group'])
  {
   
$checked['hidden_group'] =HTML_CHECKED;
  }
 } 

This is causing the checkbox not to be marked check for hidden group, even for the admin who created group.

I commented out //if ($bbuserinfo[groupid] == 6) and checkbox displays properly. I failed to see the logic of that line. If a group owner who is the only one who has access to the group magement wants to know the status of his group, why can't he?

Polo 03-28-2005 04:08 AM

Look really nice!!! thanks sabret00the for releaseing it... will give it a try once most of the bugs are fixed ;) again... thanks it looks great!

phreak420 03-28-2005 04:12 AM

Quote:

Originally Posted by Polo
Look really nice!!! thanks sabret00the for releaseing it... will give it a try once most of the bugs are fixed ;) again... thanks it looks great!

I second that.


All times are GMT. The time now is 02:14 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01170 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete