Coppermine - add a button in Forum

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   re: Coppermine - add a button in Forum
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Anyone ever find a solution to this? I have been searching and experimenting for a little while, but to no avail.

I would just like to see a link under the user's avatar with the words "My Photo Gallery" and it being linked to the specific user's Coppermine Photo Gallery.




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#2   re: Coppermine - add a button in Forum
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Here's what I have come up with so far. After a lot of searching, it looks like I can use:

$member_gallery = 9999+$poster_id;


for part of the code to link to the specific poster's gallery in the viewtopic.php file.

It also looks like I should be able to create the link in the viewtopic.tpl as:

<a href="http://www.yoursite.com/modules.php?name=Your_Module_Name&cat=' . $member_gallery . '">My Photo Gallery</a>


Now for the questions.....

1. Where in viewtopic.php would I put this code?
2. Where in the viewtopic.tpl would I put the other codes. Since I want it below the avatar, would it just be ok to add inline with the avatar just putting a "break" before the code?

This wouldn't be specifically for a button, it would be for a text link under the avatar.

Help??? icon_question.gif



_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#3   re: Coppermine - add a button in Forum
CurtisH
CZ Active Member
 Codezwiz Site Donator
CurtisH has been a member for over 19 year's 19 Year Member
usa.gif texas.gif
Gender: Male
Status: Offline
Joined: Jun 14, 2004
0.02 posts per day
Posts: 112
Points: 5,900
AIM Address Yahoo Messenger  
Deleted by author




_________________
PHP-Nuke and ALL software and/or themes coded to be used with PHP-Nuke are GPL and are FREE to redistribute regardless of what an author may claim.
Back to top Reply with quote
#4   re: Coppermine - add a button in Forum
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Thanks Curtish. That helps a lot.

Will this icon show up even if a user doesn't have a gallery created?




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#5   re: Coppermine - add a button in Forum
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Tried you code, but it didn't show an image with a user having a gallery. For some reason nothing shows up. No error message, just no image either.




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#6   re: Coppermine - add a button in Forum
CurtisH
CZ Active Member
 Codezwiz Site Donator
CurtisH has been a member for over 19 year's 19 Year Member
usa.gif texas.gif
Gender: Male
Status: Offline
Joined: Jun 14, 2004
0.02 posts per day
Posts: 112
Points: 5,900
AIM Address Yahoo Messenger  
Deleted by author




_________________
PHP-Nuke and ALL software and/or themes coded to be used with PHP-Nuke are GPL and are FREE to redistribute regardless of what an author may claim.
Back to top Reply with quote
#7   
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Ok, I have it fixed now. Here's what I had to do.

I had to add the following to the viewtopic.tpl in the theme folder:

{postrow.GAL_IMG}


I also had to change your references to:

gallery_cat_.html


to

modules.php?name=Module_Name&cat=


because it looks like you have Coppermine Google Tapped, and I don't

Now it works fine. Thanks so much for the help.



_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#8   re: Coppermine - add a button in Forum
CurtisH
CZ Active Member
 Codezwiz Site Donator
CurtisH has been a member for over 19 year's 19 Year Member
usa.gif texas.gif
Gender: Male
Status: Offline
Joined: Jun 14, 2004
0.02 posts per day
Posts: 112
Points: 5,900
AIM Address Yahoo Messenger  
Deleted by author




_________________
PHP-Nuke and ALL software and/or themes coded to be used with PHP-Nuke are GPL and are FREE to redistribute regardless of what an author may claim.
Back to top Reply with quote
#9   re: Coppermine - add a button in Forum
CurtisH
CZ Active Member
 Codezwiz Site Donator
CurtisH has been a member for over 19 year's 19 Year Member
usa.gif texas.gif
Gender: Male
Status: Offline
Joined: Jun 14, 2004
0.02 posts per day
Posts: 112
Points: 5,900
AIM Address Yahoo Messenger  
Deleted by author




_________________
PHP-Nuke and ALL software and/or themes coded to be used with PHP-Nuke are GPL and are FREE to redistribute regardless of what an author may claim.
Back to top Reply with quote
#10   re: Coppermine - add a button in Forum
real1
CZ Newbie
real1 has been a member for over 19 year's 19 Year Member
portugal.gif
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Oct 15, 2004
0.00 posts per day
Posts: 9
Points: 1,472
   
Thank you very much Curtish and Dauthus icon_razz.gif icon_razz.gif

Its working like a charm, after the final changes. Great job!



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum