Quote:
Originally Posted by Konstantinos
good job, i modified the templates a bit and this is the result
Postbit legacy
Code:
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
after i added
Code:
<if condition="$post[ppuploads] > 0"><a href="../albums/showgallery.php?cat=500&ppuser=$post[userid]" rel="nofollow" target="_blank"><img class="inlineimg" src="$stylevar[imgdir_button]/gallery.png" alt="$post[ppuploads] Gallery uploads" border="0" /></a></if>
Attachment 75808
Memberinfo
Code:
<if condition="$userinfo[ppuploads] > 0">
<fieldset class="fieldset">
<legend>Gallery</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td><a href="../albums/showgallery.php?cat=500&ppuser=$userinfo[userid]" target=_blank>View all Gallery photos of $userinfo[username] </a></td>
</tr>
<tr>
<td>$vbphrase[total_ppuploads]: <strong>$userinfo[ppuploads]</strong> (<phrase 1="$ppuploadsperday">$vbphrase[x_ppuploads_per_day]</phrase>)</td>
</tr>
</table>
</fieldset>
</if>
Attachment 75809
|
Thank you, and nice job with the template modifications
I like the way you use "../" in your link to avoid making installers specify the URLs manually.
Personally, I always like to specify the absolute URL, because I have different bits of my vB install in different folders, and this means that relative URLs can end up giving 404 errors.
Your version is probably better for sites with little customization.
I also used the member.php? link because I wanted to display a link to a search page that lists *all* their photos, not just the ones they've put in the member gallery. Your version might well be better for sites which don't have other categories beyond the 'member galleries' one.