Quote:
Originally Posted by MarcoH64
You could add a global $something in the top.
|
Please clarify, Marco. The top of what? The my_mod.php file?
I'm still learning php. I thought $global allows a function to use a variable that has scope in the place the function is called from. I have not seen anything to indicate that it forces a variable used in the function to have scope in the script that is calling it. Is that what you're saying?
[edit: I realize the snippet of code in my_mod.php isn't a function. It still leaves the question of how to make a variable global in scope?]
Quote:
Originally Posted by MarcoH64
And yes, hiding something in the title is not a good way.
|
I want a setting that will let me change how the forumhome_forumbit_level1_nopost template displays and whether the forum shows in the navbar on other pages. I've got the template conditional in the forumbit working great. If I hard-code the forumid's into the condition, it displays just as I want it to.
Rather than have code hidden away in a template that has to be hand tweaked if I decide to change the setting on a forum, it would be ideal to add a new forum attribute, just like post/nopost or colors, or whatever.
Hiding something in the forum description that won't be displayed looks like one way to accomplish that without hacking the code. In fact, not only does it not display, it doesn't even get sent to the browser as an html comment.
I've been trying to avoid modifying vBulletin
code. In fact, I haven't even looked at any of the adminCP code or templates yet. If I really can't do this in a clean way without a hack, I guess now is the time to learn.
Is it possible to add my extra forum attribute as a template mod to the adminCP? If not, please point me in the right direction and give me a nudge? I don't even know where to start looking. <sigh>
Thanks,
Mike D.