How To Move anything, including shoutboxes, into any forum
I have asked so many people and the task was a simple if condition code and moving a template. It took me forever to figure out, but here I am.
First, go to your vbshout template. Copy it all. Now go to the FORUMDISPLAY template. You can put it in two places. You can put it in many places: exactly under $navbar, or exactly right above $forumbits. I recomend right above $forumbits. Fill in the code then past that down wherever you want it to show up in your forum. Code:
<if condition="$forumid==XXX"> This will work for anything, not just shoutboxes, cboxes, etc. But I thought I'd post this up since no one could tell me the answer. Plus, now the vbshout template is no longer needed. You can delete the template if you want. If you do delete it, the shoutbox on the main index will then disappear, which you most likely want. I am not sure, but there is probably a way to just put like $vbshout instead of deleting the current template and pasting that long code, but I am not a coder, and couldn't tell you that. I will do some studying, as I have a hunch. Enjoy :). |
Found it!
Here is the easiest way to move the shoutbox. Use peterska2's tutorial on making custom templates via plugins, see here. By using the stand template name, or you can change it I suppose, $forumhome_vbshout , you can then keep all templates unfooled around with :). Easy! Again, I am sure most of you coders know how to do this easily, but I didn't and I asked for help and no one could give me an honest answer. But I figured it out eventually, after my board crashing...twice XD. So yeah, criticism or comments or whatever is welcome :) |
this works .. i just cant get it to add more then one forum id and still work. any suggestions
|
Maybe try an array???
HTML Code:
<if condition="in_array($forumid, array(X,Y,Z))"> |
thanks
|
Now, if you could move thread icons into the thread itself without file edits, I'd probably start a religion based on you.
(I know its an entirely different task, but seems semi-related to me.) |
Thank you very much
|
All times are GMT. The time now is 02:34 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|