Helpful Information
 
 
Category: Programming Articles
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.

<if condition="$forumid==XXX">

Code here...

</if>

Change the XXX to the forum id you want to move this to.

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 (http://www.vbulletin.org/forum/showthread.php?t=119933). 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???

<if condition="in_array($forumid, array(X,Y,Z))">
</if>

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










privacy (GDPR)