Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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!
Attachments
59316-fileiconphoto.gif (0 Bytes, 198 downloads)

Last edited by JoshPet; 02/13/2003 2:11 AM.
Sponsored Links
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Wow, so simple yet so useful! Thanks Josh, just added that to my site.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
very nice, I'll be using this for sure

for the html purists, you might wanna change align="top" to valign="top"


- Allen wavey
- What Drives You?
Joined: Jun 2002
Posts: 303
Enthusiast
Enthusiast
Joined: Jun 2002
Posts: 303
This is a neat idea. I don't use photopost, but could this be done for attached files as well? What I mean is, I'm running a fishing site where I allow users to upload photos of their fishing trips and such. I have my boards displaying the images in the message post, rather than as an attachment link.

I'm thinking along the lines of something similar to the Show All Users Posts would be Show All Users Pictures (Attached Files). Am I making any sense?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
That would be a good idea....

I'll have to look at that.....
might be able to use part of JustDave's pal box for this.


Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Works with 6.2 just fine.

Moved to finished Mods forum.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Works great Thanks!!

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
This modification works with 6.3 and it has been reposted here.


Nikos

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)