Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Photo Album link in Profile
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

andretti
New Member

70 Posts

Posted - 25 March 2005 :  15:59:31  Show Profile  Visit andretti's Homepage  Send andretti an AOL message  Send andretti a Yahoo! Message
I am wanting to add a link in each profile that points to the user of the profiles personal photo album. Can anyone tell me what how to format that link? For instance if a user if viewing profile # 45 I want to have a link on that pages that says view my photo albumand I need to make sure that when someone clicks that link it will bring them to the photo album of user 45..

Does that make sense?

Thanks

rodham
New Member

65 Posts

Posted - 25 March 2005 :  16:28:46  Show Profile  Visit rodham's Homepage
In the pop_profile.asp after line 708 the closing block for
if (strHomepage + strFavLinks) > 0...
...
end if

You need to add as either an include file or added directly something similar to:


'Test to see if user has images online
sSQL = "Select * From " & strMemberTablePrefix & "ALBUM Where Member_id =" & ppMember_ID
set rsImage = my_Conn.Execute(sSQL)

Response.write "<tr><td>" & vbNewLine  ' Add the proper table colors and headings
if not rsImage.Eof then 'User has images online show link as active
   Response.write "<a href='photo_album_cat.asp?sqldtl=" & ppMember_ID & "'>Photo Album</a>"
else
   Response.write "Photo Album"
end if
Response.write vbNewLine & "</td></tr>" & vbNewLine
'Lets clean up our db use
rsImage.Close
set rsImage = nothing

Of course you'll need to clean up the table stuff above but you get the idea.

Edited by - rodham on 25 March 2005 17:20:37
Go to Top of Page

andretti
New Member

70 Posts

Posted - 25 March 2005 :  18:02:41  Show Profile  Visit andretti's Homepage  Send andretti an AOL message  Send andretti a Yahoo! Message
Thank you very much... It worked.. Was kinda funky till I played with but final code I used in case anyone else wanted it was like this
'################# Begin View My Photo Album #############################
'Test to see if user has images online
sSQL = "Select * From " & strMemberTablePrefix & "ALBUM Where Member_id =" & ppMember_ID
set rsImage = my_Conn.Execute(sSQL)

Response.write "<tr>" & vbNewLine & _
" <tr bgColor=""" & strPopUpTableColor & """ align=""center"" width=""100%"" nowrap valign=""top""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><td>" & vbNewLine
if not rsImage.Eof then 'User has images online show link as active
Response.write "<td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href='photo_album_cat.asp?sqldtl=" & ppMember_ID & "'>View My Photo Album</a></font></b>"
else
Response.write "Photo Album"
end if
Response.write vbNewLine & "</td></tr>" & vbNewLine
'Lets clean up our db use
rsImage.Close
set rsImage = nothing

'################# End View My Photo Album #############################

I put this in the pop_profile.asp to where it shows up just before the users home page link.

Thanks agin for your help
Go to Top of Page

rodham
New Member

65 Posts

Posted - 25 March 2005 :  18:10:20  Show Profile  Visit rodham's Homepage
Well done

Glad to be of help.
Go to Top of Page

andretti
New Member

70 Posts

Posted - 25 March 2005 :  18:32:36  Show Profile  Visit andretti's Homepage  Send andretti an AOL message  Send andretti a Yahoo! Message
I still would love to be able to do a slide show of images like you have in your photo album....

One other thing I have been looking for is a mod that will pull a random picture out of the photo albums and show it where ever I define....
Go to Top of Page

jeffery
Junior Member

USA
176 Posts

Posted - 18 June 2005 :  14:46:48  Show Profile
I'd like for a user to be able to select a photo from the album to display in the profile. Has anyone seen a mod for this?

www.thomasforum.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.45 seconds. Powered By: Snitz Forums 2000 Version 3.4.07