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).
Working Under: UBB.Threads 6.1-6.2-6.3
Mod Status: Finished
Any pre-requisites: PhotoPost (Tested on 3.1.0, 3.2 and 3.3.1)
Author(s): JoshPet
Date: 04/27/03
Credits: JoshPet
Files Altered: /templates/default/showprofile.tmpl
New Files: fileiconphoto.gif (added to images directory)
Database Altered: No
Info/Instructions: Step 1: Upload the attached Camera Image (or image of your choice) to your images directory.
Step 2: ##
## 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!