View Full Version : Code example request: Changing the module heading and sub-heading graphics
Stachel
06-18-2005, 12:09 PM
Could someone post an example of how they modified the template
adv_portal_module_shell
to change their module headers and sub-header graphics in the left, center, right? (or however you did it)
For example, for the News module, I'm referring to the
- "Module header" as the graphics behind the word "News"
- "Module sub-header" as what is behind each Article Title.
Stachel
Stachel
06-18-2005, 05:44 PM
So, for example, instead of looking like Pic 1, it looks like Pic 2.
This is what the original
adv_portal_module_shell.html
looks like:
I'd need to make changes in the <thead> section, right?
$mods[formcode]
cellspacing="$stylevar[cellspacing]" -->
<table align="center" border="0" cellpadding="3" cellspacing="1" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="$mods[colspan]">
<if condition="$vba_style['portal_collapsemods']">
<a href="#top" onclick="return toggle_collapse('module_$mods[collapse]')" style="float:$stylevar[right]"><img alt="" border="0" id="collapseimg_module_$mods[collapse]" src="$stylevar[imgdir_button]/collapse_tcat$modimgcollapse.gif" /></a>
</if>
<span class="smallfont"><strong>$vba_style[portal_blockbullet] <if condition="$mods['link']"><a href="$mods[link]">$mods[title]</a><else />$mods[title]</if></strong></span>
</td>
</tr>
</thead>
<tbody id="collapseobj_module_$mods[collapse]" style="$modcollapse">
<if condition="$show['tablerow']">
<tr>
<td class="$bgclass">
$modulehtml
</td>
</tr>
<else />
$modulehtml
</if>
</tbody>
</table>
<div><img src="$vboptions[bburl]/$vboptions[cleargifurl]" height="$vba_style[portal_vspace]" alt="" /></div>
<if condition="$mods['formcode']"></form></if>
I experimented with adding:
<tr>
<td width="7" align="left" valign="top"><img src="$stylevar[imgdir_misc]/catg_top_ls.gif" width="7" height="18" alt="" /></td>
<td width="100%" align="left" valign="top"><img src="$stylevar[imgdir_misc]/catg_back.gif" width="100%" height="18" alt="" /></td>
<td width="30" align="left" valign="top"><img src="$stylevar[imgdir_misc]/catg_top_rs.gif" width="30" height="18" alt="" /></td>
</tr>
in the <thead> section
and it didn't work...
Where do I put those TD's ?
(Goal is pic 1) (munged-up one is pic 2)
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.