The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
|||
|
|||
Ok I think you have not understood what I meant. I want contecnt above sections (that contain forums and don't act as forums themselves)
So I probably should be editing the forumdisplay template right? Is there a different variation for the code? I finally saw some content on showthread.php?2-null-thread when I added you last given code. But now I need to get it on top of a forumdisplay.php. |
#22
|
||||
|
||||
Make a new plugin and add something like this. The hook location for the plugin should be forumdisplay_start.
Code:
if (THIS_SCRIPT == forumdisplay) { $templater = vB_Template::create('your_template'); $template_hook['navbar_end'] .= $templater->render(); } |
#23
|
|||
|
|||
Quote:
|
#24
|
||||
|
||||
Quote:
Code:
{vb:raw template_hook.below_navbar} Plugin Code Code:
if (THIS_SCRIPT == forumdisplay) { $BBRForumIDs = array(5,7,13); if(in_array($vbulletin->GPC['forumid'], $BBRForumIDs)) { $templater = vB_Template::create('your_template'); $template_hook['below_navbar'] .= $templater->render(); } } Don't forget to edit your forum id's you want it to show in. Let me know how it works. |
#25
|
|||
|
|||
I got it working!
|
#26
|
||||
|
||||
You are missing an apostrophe in this line. It should be:
HTML Code:
$templater = vB_Template::create('contest'); |
#27
|
|||
|
|||
I got it working now. Thank you guys!
We're getting there: How do I point the index page to a certain part of the forum? Or else I need to put specific content on the index.php page. Can I remove the text:'forum:' under the 'post new thread' button? Can I change the title: sub-forums? |
#28
|
|||
|
|||
Lynne and BBR,
I posted a few more questions in my last post which I haven't been able resolve yet. Could you please have a look? Right now I have the homepage showing one part of the forum, and have got two tabs linking to the other parts of the forum. But the tabs don't highlight, is there an easy way to have them highlight? |
#29
|
||||
|
||||
What do you mean point the index page to a certain part of the forum? You don't want your regular index page with the list of all the forums?
For the text "forum:" Look in the FORUMDISPLAY template for this line and modify how you want: HTML Code:
<h1>{vb:rawphrase forum}: <span class="forumtitle">{vb:raw foruminfo.title}</span></h1> As for your tabs not highlighting, you probably need to put a condition around them to define when they should be highlighted otherwise how are they supposed to know they are supposed to be highlighted? |
#30
|
|||
|
|||
well right now I only have 1 categorie of the forums showing on the home page, but I can't (or don't know how) assign a forum id in the code that BBR gave me so that specific content shows up on the home above this categorie of the forums, on the home page.
I'm using the mod from elmer to create these tabs and I don't think it's easy for me to give the tabs this condition, so I'll wait for this feature to be added to this mod. Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|