Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 08-30-2003, 08:01 AM
dennis00 dennis00 is offline
 
Join Date: Aug 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Header link changes on forum=27

<a href="http://forums.saiyanarena.com/forumdisplay.php?forumid=27" target="_blank">http://forums.saiyanarena.com/forumd...php?forumid=27</a>
Is it possible to link this header to forumdisplay.php?forumid=27&ses.... without making a new template? So just changing the current template or changing code?
Reply With Quote
  #2  
Old 08-30-2003, 08:20 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean? For forum 27 you want to the link in the header to be different?
Reply With Quote
  #3  
Old 08-30-2003, 08:27 AM
dennis00 dennis00 is offline
 
Join Date: Aug 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, that's want i'd like to have. I can't install another board for the English part, so i do it this way. (Best way, right?)
Reply With Quote
  #4  
Old 08-30-2003, 08:31 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can try this, it's untested but it may work:

Open forumdisplay.php, find:
PHP Code:
unset($imodcache); 
Below, add

PHP Code:
if($forum[forumid] == 27) {
    
$headerlink "forumdisplay.php?forumid=27";
} else {
    
$headerlink "index.php?s=$session[sessionhash]";

Then in the header template, find:
Code:
index.php?s=$session[sessionhash]
(First one)

and replace with
Code:
$headerlink
Reply With Quote
  #5  
Old 08-30-2003, 09:07 AM
dennis00 dennis00 is offline
 
Join Date: Aug 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Headertemplate
Code:
 <!-- header -->
<!-- logo -->
<a name="top"></a>
<table border="0" width="{tablewidth}" cellpadding="0" cellspacing="0" align="center" valign="bottom">
<tr>
<td background="{imagesfolder}/headbg.gif" align="left" valign="bottom"><a href="$headerlink"><img src="{imagesfolder}/header/logo.gif" border="0" alt="$bbtitle"></td>

<td background="{imagesfolder}/headbg.gif" align="right" valign="top"><smallfont><b><a href="$homeurl">Home</a> | <a href="$bburl">Forums</a> | <a href="$bburl/admin">Admin</a>&nbsp;</smallfont></td>
Forumdisplay.php
Code:
 

// get moderators
$forummoderators=$DB_site->query('SELECT user.userid,user.username,moderator.forumid
                                    FROM moderator
                                    LEFT JOIN user
                                      ON (moderator.userid=user.userid)
                                    ORDER BY user.username');
unset($imodcache);

if($forum[forumid] == 27) { 
$headerlink = "forumdisplay.php?forumid=27"; 
} else { 
$headerlink = "index.php?s=$session[sessionhash]"; 
}

while ($moderator=$DB_site->fetch_array($forummoderators)) {
  $imodcache["$moderator[forumid]"][] = $moderator;
}
$DB_site->free_result($forummoderators);
http://forums.saiyanarena.com/forumd...php?forumid=27 still doesn't work
Reply With Quote
  #6  
Old 08-30-2003, 09:11 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'll have to remove the code in your post

I'll see what I can to sort it
Reply With Quote
  #7  
Old 08-30-2003, 11:57 AM
dennis00 dennis00 is offline
 
Join Date: Aug 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you think this is better? or do you need more info? THanks for trying to help me so good btw!
Reply With Quote
  #8  
Old 09-01-2003, 01:26 PM
dennis00 dennis00 is offline
 
Join Date: Aug 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uh... mr. assasin?
Reply With Quote
  #9  
Old 09-01-2003, 01:30 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry - I will get to work on fixing this right away.
Reply With Quote
  #10  
Old 09-02-2003, 11:20 AM
dennis00 dennis00 is offline
 
Join Date: Aug 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! Well, any improvements yet?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:52 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.04613 seconds
  • Memory Usage 2,251KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete