Mod Name / Version - Show All PhotoPost Photos from Profile
Description - This little template mod adds a link to their profile to view all the user's photos (with integrated photopost).
Pre-requisites - PhotoPost (Tested on 3.1.0), UBB.Threads 6.1-6.2.
Author - JoshPet - for discussions and bug reports come to
www.ubbdev.com Credits - me, myself and I
Files Altered - /templates/default/showprofile.tmpl
Database Altered - no
New Files - fileiconphoto.gif (added to images directory)
Any other info - Simple tweak to template
Step 1: Upload the attached Camera Image (or image of your choice) to your images directory. []
https://www.ubbdev.com/threads/php/uploads/59316-fileiconphoto.gif[/]
Step 2: <pre><font class="small">code:</font><hr>
##
## In showprofile.tmpl
##
#
# Find this:
#
|
<img src="{$config['images']}/viewposts.gif" align="top" alt="" />
<a href="{$config['phpurl']}/dosearch.php?Cat=$Cat&Forum=All_Forums&Words=$encoded&
Match=Username&Searchpage=0&Limit=25&Old=allposts">
{$ubbt_lang['SHOW_ALL_P']}
</a>
#
# After it add this:
#
|
<img src="{$config['images']}/fileiconphoto.gif" align="top" alt="" />
<a href="{$config['homeurl']}/photos/showgallery.php?thumb=1&stype=2&si=$CheckUser&cat=500&perpage=12&sort=1&user=$UNumber">
View This User's Photos
</a>
// ***NOTE: Above, you need to make sure you change the path to your photopost install
// mine was in the /photos/directory.... you will need to customize yours!!!
</pre><hr>
Note... I've added a line break to the link to dosearh.php to eliminate scrolling here. IMPORTANT: You will need to adjust the URL to your photopost install. Mine is at
www.mydomain.com/photos/ so I used {$config['homeurl']}/photos/
Adjust yours accordingly.
That's it!