vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - GRPS: Groups Commune 2.0.x (https://vborg.vbsupport.ru/showthread.php?t=127303)

redlabour 10-22-2006 07:23 PM

Anything new about the request for the permission to translate this Hack in different Languages ?

Melissa Miller 10-22-2006 10:46 PM

Church Media, either that didnt work Im too stupid to do it.
It seems like it would be easy to fix, I just cant figure out where.

When I click on my forums link in the nav bar, it goes to a bad page.

ChurchMedia 10-22-2006 11:42 PM

Quote:

Originally Posted by Melissa Miller
Church Media, either that didn't work I'm too stupid to do it.
It seems like it would be easy to fix, I just cant figure out where.

When I click on my forums link in the nav bar, it goes to a bad page.

I didn't explain it very well. There are "relative links" and "hard links". A relative link assumes that you are in your forums directory, so going from index.php to showthread.php is no problem. But the "groups" directory is not relative to your forums directory, so that's why the replacement code is in there. The first line in the first array is 'register.php'. If you were in your forums directory it would be okay; but since you're in the groups directory it gets replaced by $vbulletin->options['bburl'] . '/register.php' (the first line in the second array), which will point it back to your forums directory.

So if you have a link that is going to the wrong place -- like chat.php might point to /groups/chat.php -- then you can either a) put in a replacement into the arrays or b) change that link to http://www.yoursite.com/forums/chat.php.

Now, with index.php you can't really do a replacement, because index.php is such a common file name. So edit your header or navbar template (or wherever it is) and add http://www.yoursite.com/forums/ to your link.

I hope this makes sense. Feel free to PM me if you want to figure it out off-forum.

Melissa Miller 10-23-2006 12:18 AM

Ok Ill pm you, you lost me at "I didnt explain it very well"

Now its not working when people try to join a group.
It used to work before I upgraded it, so I might have messed something up.

Exitilus 10-23-2006 01:08 AM

I have this working pretty darn good. The only problem I've run into so far is I've created a Test Group that requires membership moderation. I sent out requests to a couple people to join it. Well they click the link to join but they never show up when I try to Moderate them.

sabret00the 10-23-2006 08:38 AM

Hey folks, i'm back after a weekend out of the house. anyway i'll deal with all issues in this thread over the next hour or so.

sabret00the 10-23-2006 11:27 AM

Quote:

Originally Posted by ChurchMedia
Take a look in the functions_grps.php in the /forums/include directory. Find this code:

PHP Code:

    $template str_replace(
        array(
            
// navbar replacements
            
'register.php',
            
'profile.php',
            
'usercp.php',
            
'faq.php',
            
'calendar',
            
'memberlist.php',
            
'search.php',
            
'profile.php',
            
'private.php',
            
'online.php',
            
'subscription.php',
            
'login.php',
            
'forumdisplay.php',
            
'member.php',
            
'ushop.php',
            
//' class="navbar"><a href="index.php" accesskey="1">',
            
$vbulletin->options['bbtitle'],
            
// footer replacements
            
'sendmessage.php',
            
'admincp/index.php',
            
'modcp/index.php',
            
'archive/index.php',
            
// headinclude replacements
            
'<script type="text/javascript" src="clientscript',
            
// other replacements
            
'arcade.php',
            (
$hook vBulletinHook::fetch_hook('grps_rewrite_links_find')) ? eval($hook) : false
        
),
        array(
            
// navbar links
            
$vbulletin->options['bburl'] . '/register.php',
            
$vbulletin->options['bburl'] . '/profile.php',
            
$vbulletin->options['bburl'] . '/usercp.php',
            
$vbulletin->options['bburl'] . '/faq.php',
            
$vbulletin->options['bburl'] . '/calendar',
            
$vbulletin->options['bburl'] . '/memberlist.php',
            
$vbulletin->options['bburl'] . '/search.php',
            
$vbulletin->options['bburl'] . '/profile.php',
            
$vbulletin->options['bburl'] . '/private.php',
            
$vbulletin->options['bburl'] . '/online.php',
            
$vbulletin->options['bburl'] . '/subscription.php',
            
$vbulletin->options['bburl'] . '/login.php',
            
$vbulletin->options['bburl'] . '/forumdisplay.php',
            
$vbulletin->options['bburl'] . '/member.php',
            
$vbulletin->options['bburl'] . '/ushop.php',
            
//' class="navbar"><a href="' . $vbulletin->options['bburl'] . '/index.php" accesskey="1">',
            
$vbulletin->options['hometitle'] . ' Groups',
            
// footer replacements
            
$vbulletin->options['bburl'] . '/sendmessage.php',
            
$vbulletin->options['bburl'] . '/admincp/index.php',
            
$vbulletin->options['bburl'] . '/modcp/index.php',
            
$vbulletin->options['bburl'] . '/archive/index.php',
            
// headinclude replacements
            
'<script type="text/javascript" src="' $vbulletin->options['bburl'] . '/clientscript',
            
// other replacements
            
$vbulletin->options['bburl'] . 'arcade.php',
            (
$hook vBulletinHook::fetch_hook('grps_rewrite_links_replace')) ? eval($hook) : false
        
),
    
$template); 

The first array is what your links might be. The second array is what those links will be replaced with. Delete or add any replacements as needed.

All of my links are hard links, so I basically deleted everything except the hook. But that was just in MY case. Yours may be different.

bad idea, there's also a link to index.php in the navbar.

sabret00the 10-23-2006 11:36 AM

Quote:

Originally Posted by Melissa Miller
Thank you so much for this. I plan on making a donation.

I read this thread, and tried to figure it out, however a lot of the lingo is over my head. I have it installed and working.

My only issue is my banner image does not take you to my home page like it does everywhere else. It takes you to the groups home page.

And my forums link in my nav bar doesnt work. It tries to go to groups/index.php instead of just /index.php. Same thing with my chat and journal links in my nav bar.

Can you tell me what I need to edit to fix these links?
Thanks!!!!

I would love to be able to invite people using an email address which would then take them to a forum registration page. When they registered they would be part of that group and a new member. It would encourage new members and I have people who want invite people who are not yet registered like you can on Yahoo groups. Would this be impossible?

For your banner image, i would suggest editing the header template in your forums and suffixing the link with
PHP Code:

$vboptions[bburl]/ 

it is by far the easiest solution. though if i find one easier (a plugin) i'll be sure to release it as a plugin.

for your chat link and journal link, i suggest using a plugin to fix these as opposed to editing the files. in version 2.0.1 (to be released in about an hour). this has been simplified, so it's literally just a matter of making a new plugin, applying it to the grps_rewrite_links (plugin) and entering the following contents
PHP Code:

$find[] = 'chat.php';
$find[] = 'journal.php';
$replace[] = $vbulletin->options['bburl'] . '/chat.php';
$replace[] = $vbulletin->options['bburl'] . '/journal.php'

and that should sort that out for you. I would suggest the same treatment as in the previous paragraph for your link to your forums (in your navbar) as opposed to the plugin method.

That isn't currently an option, the invite system is all quite internal at the moment, though i will consider it for a future release.

sabret00the 10-23-2006 11:39 AM

Quote:

Originally Posted by Exitilus
I have this working pretty darn good. The only problem I've run into so far is I've created a Test Group that requires membership moderation. I sent out requests to a couple people to join it. Well they click the link to join but they never show up when I try to Moderate them.

That's currently the behaviour by design, remember that any member can invite any board user to a group, if member moderation is in affect it's to safe guard the gated community. think of it like getting an invite to the white house, you still have to pass security.

sabret00the 10-23-2006 11:40 AM

Quote:

Originally Posted by redlabour
Anything new about the request for the permission to translate this Hack in different Languages ?

Nope. I did say way back when. That if anyone wanted to translate it, then feel free to fully phrase it. no one took up the offer, thus i'll be fully phrasing it as soon as i get time. i'll be slowly working on it over the coming week or so.


All times are GMT. The time now is 08:19 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.02557 seconds
  • Memory Usage 1,791KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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