PDA

View Full Version : [HELP]don't work with two styles


vitoreis
12-13-2005, 05:37 PM
with default theme is ok, but with others don't work.

I insert this code to each new skin:
2. Perform the following vB TEMPLATE edits:

(a) In USERCP_SHELL: (edit gallery link)

Find:
<if condition="$show['siglink']">
<tr>
<td class="$navclass[signature]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td>
</tr>
</if>

Add Below:
<if condition="$permissions['vbpicgallerypermissions'] & $vbulletin->bf_ugp_vbpicgallerypermissions['canvbpicgallery']">
<!-- start vBPicGallery plugin -->
<tr>
<td class="$navclass[options]" nowrap="nowrap"><a class="smallfont" href="vbpicgallery.php?$session[sessionurl]do=editgallery">$vbphrase[vbpicgallery_edit]</a></td>
</tr>
<!-- end vBPicGallery plugin -->
</if>



(b) In NAVBAR: (gallery link in navbar)

Find:
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php?$session[sessionurl]" rel="nofollow">$vbphrase[register]</a></td>
</if>

Add BELOW:
<!-- start vBPicGallery plugin -->
<td class="vbmenu_control"><a href="vbpicgallery.php?$session[sessionurl]">$vbphrase[vbpicgallery]</a></td>
<!-- end vBPicGallery plugin-->



(c) In MEMBERINFO: (gallery hall link in member profile)

Find:
<br />($vbphrase[last_note]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
</if>
</div>
</div>
</if>

</div>
</div>

Add Below:
<!-- start vBPicGallery plugin -->
<div class="panel">
<div style="padding:$stylevar[formspacer]px">
<fieldset class="fieldset">
<legend>$userinfo[username]s $vbphrase[vbpicgallery_gallery]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
<a href="vbpicgallery.php?$session[sessionurl]do=hall&u=$userinfo[userid]">Visit $userinfo[username]s $vbphrase[vbpicgallery]</a>
</td>
</tr>
</table>
</fieldset>
</div>
</div>
<!-- end vBPicGallery plugin-->

Thanks,
Vitor Reis

Greg
12-13-2005, 05:56 PM
It appears that you installed this skin after you installed the gallery.

You can rerun the template install part of the installer. But beware, it will overwrite the gallery templates in all styles.

There is a hack at vbulletin.org for copying templates from one style to another too. This could be handy, but I don't have a link to it.

vitoreis
12-13-2005, 06:04 PM
Thanks. now works!