The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
What do you mean? For forum 27 you want to the link in the header to be different?
|
#3
|
|||
|
|||
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?)
|
#4
|
||||
|
||||
You can try this, it's untested but it may work:
Open forumdisplay.php, find: PHP Code:
PHP Code:
Code:
index.php?s=$session[sessionhash] and replace with Code:
$headerlink |
#5
|
|||
|
|||
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> </smallfont></td> 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); |
#6
|
||||
|
||||
You'll have to remove the code in your post
I'll see what I can to sort it |
#7
|
|||
|
|||
Do you think this is better? or do you need more info? THanks for trying to help me so good btw!
|
#8
|
|||
|
|||
uh... mr. assasin?
|
#9
|
||||
|
||||
Sorry - I will get to work on fixing this right away.
|
#10
|
|||
|
|||
Thanks! Well, any improvements yet?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|