The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Dynamic Content added to Fourms
Hello I need a way of added extra content to the forums. I want to be able to include two extra sections, that would be different per fourm display.
I want to be able to provide html code for a left column that can be different per fourmid, and also a top content that is displayed between the headers and the forumdisplay section. The left column will be used for advertising, and the top column will be used to give extra information about the forums, and will be contained in a table with a border. Not being a PHP or VB expert, i am struggling with this. The way my site is designed I have many forums, and need to provide more relivent advertising per forum, this including selling the advertising space. I posted earler this week but did not get an answer, https://vborg.vbsupport.ru/showthread.php?t=143949 I did try some code and it does work but the implmentation would be difficult as I have lots of forums. The code is // get htm file to include at the top of the thread: ob_start(); require("../fielddoc/1/1.htm"); $fieldnote = ob_get_contents(); ob_end_clean(); require("../fielddoc/1/".$threadid.".htm"); This would mean if for example I had 100 forums, I would need to set the // get htm file to include at the top of the thread: ob_start(); require("../fielddoc/1/1.htm"); $fieldnote = ob_get_contents(); ob_end_clean(); per forum, and would need to set this as many times as I had forums. (below would work if I had 3 forums) // get htm file to include at the top of the thread: ob_start(); require("../fielddoc/1/1.htm"); $fieldnote = ob_get_contents(); ob_end_clean(); // get htm file to include at the top of the thread: ob_start(); require("../fielddoc/1/2.htm"); $fieldnote = ob_get_contents(); ob_end_clean(); // get htm file to include at the top of the thread: ob_start(); require("../fielddoc/1/3.htm"); $fieldnote = ob_get_contents(); ob_end_clean(); require("../fielddoc/1/".$threadid.".htm"); I am happy to do this another way, by adding two fields to the forums table in SQL, but would need to know which query to change, and how to set them as varables, so they can be called in the right template I am sure this muct have been done before, but I dont know where to start Graham |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|