View Full Version : What is the variable name for....
58sniper
07-30-2004, 05:58 PM
I'm trying to streamline my modules. I'm looking to find the name of the variable used in the "OR template to include:" box in AdminCP. I can't seem to locate that variable name.
Brian
07-30-2004, 06:35 PM
$pages[template] ;)
58sniper
07-30-2004, 11:47 PM
Hmmmmm..... maybe it's in my usage...
Here is what I'm trying to do. I'm trying to come up with a better "shell" for modules. So far, everything is working except that the collapsible script needs a unique name for each module. So, I thought I would just use the the template name for each, since it typically doesn't include spaces (which would cause a javascript problem) and is unique for each module. But using:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat smallfont" style="font-weight: bold;"><a style="float: $stylevar[right]" href="#" onclick="return toggle_collapse('forumhome_$pages[template]')"><img id="collapseimg_forumhome_randomtopic" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" width="13" height="12" border="0" alt="Collapse/Expand" /></a>$vba_options[portal_blockbullet] $mods[title]</td>
</tr>
<tr id="collapseobj_forumhome_$pages[template]" style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="$getbgrow">
-->$pages[template]<--
</td>
</tr>
</table>
<br />
Gets me no data for each of the three bolded entries. Ideas?
58sniper
08-02-2004, 08:13 AM
Anyone?
Brian
08-02-2004, 12:44 PM
Sorry, I must have misread this the first time. $mods[filename] will give you the name of the template/file that is included. Though $mods[modid] might be a better option instead. ;)
58sniper
08-02-2004, 02:18 PM
Awesome - that did the trick. I'll resolve one other minor issue and then I'll post the results. This makes it SO much easier.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.