Quote:
Originally Posted by jaycob
maybe not? you never shared with anyone else here how you did it 
|
1. Simple, first we make a custom template and lets title it "customized_displayforum" go to you styles manager and go to Forum Display Templates>FORUM DISPLAY, copy and paste the default (unmodified) code and paste it into our newly made "customized_displayforum".
2. Now we add the lines below at the beginning of our code. Make sure that the forumid you want to have a customized view to be
1.
PHP Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
<if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions[simpleversion]"></script></if>
</head>
<body>
$header
$navbar
[COLOR="DarkGreen"]<if condition="$forumid == 1">
<else />
... (Template)
</if>[/COLOR]
$footer
3. Go into the Plugin manager, create a new product then create a forumdisplay_complete hook like so:
PHP Code:
eval('$customized_displayforum = "' . fetch_template('customized_displayforum') . '";');
4. Go back into Forum Display Templates>FORUM DISPLAY from the styles manager and place the variable we defined in the hook $customized_displayforum at the very top like so:
PHP Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
<if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions[simpleversion]"></script></if>
</head>
<body>
$header
$navbar
<if condition="$forumid == 1">
[COLOR="rgb(0, 100, 0)"]$displayresources[/COLOR]
<else />
....
</if>
$footer
Customize your customized_displayforum template to your liking, then view forum 1 for results. I hope this helps for others!
PS: If you want the custom display to view in multiple forums you can do so like this:
PHP Code:
<if condition="in_array($foruminfo['forumid'], array(a,b,c,x,y,z))">
Just replace the a,b,c,x,y,z with the forumids. So if you want the customized forumdisplay to be viewed in forum 1, 5 and 6 you would place this code.
<if condition="in_array($foruminfo['forumid'], array(1,5,6))">