Previous Thread
Next Thread
Print Thread
Rating: 10
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
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!


Attachments
77895-fileiconphoto.gif (0 Bytes, 77 downloads)

Last edited by JoshPet; 11/02/2003 4:20 AM.

Nikos
Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
I realise that you posted this a while ago, and thank you for that - but I wondered if anyone had given any thought to extending this to only show the link if the user actually had images upload to his/her gallery.

It could then perhaps appear beneath the avatar on showflat / showthreaded.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Not a bad idea. Although I am not the original author (Joshie is) I might be able to pull this off before next weekend.


Nikos
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
There is a fiver in the post if you do


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
This modification has been replaced with this one


Nikos
Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Hmmm... must drop that fiver off, next time I come past Green Lanes


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
You will have to pay in beer dude


Nikos
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Would just about pay for the first round


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Sounds good to me. The next one(s) would be mine


Nikos
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Just an update here -
For photopost 4.6.7 - the link in your showprofile should look like this:

<a href="{$config['homeurl']}/photopost/showgallery.php?cat=all&ppuser=$UNumber">


Note the cat=all seems to be a change from older versions I had.

Sponsored Links

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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)