album.pl Support > Tips and Tricks

Mod for YaBB 1.1: Gallery Link

(1/7) > >>

matt_rogers:

matt_rogers:
Hmmm. I guess Mike doesn't allow attachments, here you go:



Thanks to Loony by the way for starting me off on this...

 :)

Mike Bobbitt:
Hey, this is awesome!

Great work!!  ;D

matt_rogers:
Thanks Mike!
When I get it totally figured out, I'll post the new code here. :)

matt_rogers:
Alright, Loony and I pounded this out. Works for guests visiting the board now too!


--- Code: ---         $dirphoto = "/html/Photo_Album/$useraccount{$musername}";
         if($username ne 'Guest') {
# Allow instant message sending if current user is a member.
$sendm = qq~$menusep<a href="$cgi;action=imsend;to=$useraccount{$musername}">$img{'message_sm'}</a>~;  
if (-d $dirphoto) { $sendm .= qq~$menusep<A HREF="http://www.3reef.com/cgi-bin/album.pl?album=$useraccount{$musername}"><img alt="My Photo Gallery"

border="0" src="http://www.3reef.com/YaBBImages/gallery.gif"></A>~;}  
} else {
if (-d $dirphoto){
$sendm = qq~$menusep<A HREF="http://www.3reef.com/cgi-bin/album.pl?album=$useraccount{$musername}"><img alt="My Photo Gallery" border="0"

src="http://www.3reef.com/YaBBImages/gallery.gif"></A>~; }
    }


--- End code ---

Now I just need to clean it up a bit by taking out some of the paths that are hard coded out. I'll post when I got it all down.  8)

Navigation

[0] Message Index

[#] Next page

Go to full version