Thread: Major Additions - GRPS: Groups Commune 2.0.x
View Single Post
  #576  
Old 10-21-2006, 06:27 PM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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.
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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01123 seconds
  • Memory Usage 1,824KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete