Author Topic: Mod for YaBB 1.1: Gallery Link  (Read 18066 times)

0 Members and 1 Guest are viewing this topic.

Offline matt_rogers

  • album.pl Hacker
  • ****
  • Posts: 117
  • Karma: +2/-0
  • Currently sitting in front of a computer.
    • Three Steps To A Reef Aquarium
Mod for YaBB 1.1: Gallery Link
« on: March 02, 2003, 15:37:32 »
« Last Edit: March 02, 2003, 15:41:30 by matt_rogers »

Offline matt_rogers

  • album.pl Hacker
  • ****
  • Posts: 117
  • Karma: +2/-0
  • Currently sitting in front of a computer.
    • Three Steps To A Reef Aquarium
Re:Mod for YaBB 1.1: Gallery Link
« Reply #1 on: March 02, 2003, 15:40:21 »
Hmmm. I guess Mike doesn't allow attachments, here you go:



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

 :)

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Mod for YaBB 1.1: Gallery Link
« Reply #2 on: March 02, 2003, 20:47:47 »
Hey, this is awesome!

Great work!!  ;D

Offline matt_rogers

  • album.pl Hacker
  • ****
  • Posts: 117
  • Karma: +2/-0
  • Currently sitting in front of a computer.
    • Three Steps To A Reef Aquarium
Re:Mod for YaBB 1.1: Gallery Link
« Reply #3 on: March 02, 2003, 20:56:30 »
Thanks Mike!
When I get it totally figured out, I'll post the new code here. :)

Offline matt_rogers

  • album.pl Hacker
  • ****
  • Posts: 117
  • Karma: +2/-0
  • Currently sitting in front of a computer.
    • Three Steps To A Reef Aquarium
Re:Mod for YaBB 1.1: Gallery Link
« Reply #4 on: March 04, 2003, 01:12:15 »
Alright, Loony and I pounded this out. Works for guests visiting the board now too!

Code: [Select]
         $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>~; }
    }


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)

Offline alperuzi

  • album.pl Tester
  • **
  • Posts: 22
  • Karma: +0/-0
  • Hasta la bu Vista
Re:Mod for YaBB 1.1: Gallery Link
« Reply #5 on: April 03, 2003, 19:10:57 »
hey... this seems to be a really good idea... keep it updated boys! Does it work for SP 1.2?
Thats how he drinks, ice cold, no mistakes

Offline matt_rogers

  • album.pl Hacker
  • ****
  • Posts: 117
  • Karma: +2/-0
  • Currently sitting in front of a computer.
    • Three Steps To A Reef Aquarium
Re:Mod for YaBB 1.1: Gallery Link
« Reply #6 on: April 07, 2003, 22:50:32 »
Yeah it's cool, eh?   8)

I only have 1.1 YaBB, but I bet you could make it work for 1.2 or 1.3 really easily. Let me know! I won't be upgrading for a while. TOO MANY MODS!

 :)

Offline smith.james0

  • album.pl User
  • *
  • Posts: 15
  • Karma: +0/-0
  • I forgot to change the dfefault text.
    • Just being moded at the mo!
Re:Mod for YaBB 1.1: Gallery Link
« Reply #7 on: April 29, 2003, 09:44:19 »
What do you search for to replace? Found it

I am trying to get it to work with YaBB 1.3.1 Could anyone tell me if this is important?
Code: [Select]
$dirphoto = "/html/Photo_Album/$useraccount{$musername}";
« Last Edit: April 29, 2003, 14:58:22 by smith.james0 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Mod for YaBB 1.1: Gallery Link
« Reply #8 on: April 29, 2003, 18:06:14 »
It looks like it sets the path to the user's album, so it's probably very important...

Offline Cruez

  • album.pl User
  • *
  • Posts: 12
  • Karma: +0/-0
  • Noooooo !!!!
    • Cruez.com
Re:Mod for YaBB 1.1: Gallery Link
« Reply #9 on: April 29, 2003, 22:55:49 »
Any success on geting it to work with 1.3??

Offline smith.james0

  • album.pl User
  • *
  • Posts: 15
  • Karma: +0/-0
  • I forgot to change the dfefault text.
    • Just being moded at the mo!
Re:Mod for YaBB 1.1: Gallery Link
« Reply #10 on: April 30, 2003, 01:08:11 »
Just finding out what needs changing.
This is the original code
Code: [Select]
         $displayname = $userprofile[1];
         fopen(NUMBERFILEREAD,"$memberdir/$musername.yam");
         @number = <NUMBERFILEREAD>;
         fclose(NUMBERFILEREAD);
         chomp @number;
         if ($musername eq "admin") { $displaynumb = ''; }
         else { $displaynumb = qq~$membtxt{'23'} $number[0]~; }
         $star = $memberstar{$musername};
         $memberinfo = $memberinfo{$musername};
         $memberinfo =~ s~\n~~g;
         $icqad = $icqad{$musername};
         $yimon = $yimon{$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>~;
         }
         $usernamelink = qq~<a href="$scripturl?board=$currentboard;action=viewprofile;username=$useraccount{$musername}"><font size="2"><b>$userprofile[1]</b></font></a>~;
         $postinfo = qq~$txt{'26'}: $userprofile[6]<br>~;
         $memail = $userprofile[2];


Offline matt_rogers

  • album.pl Hacker
  • ****
  • Posts: 117
  • Karma: +2/-0
  • Currently sitting in front of a computer.
    • Three Steps To A Reef Aquarium
Re:Mod for YaBB 1.1: Gallery Link
« Reply #11 on: May 01, 2003, 15:46:19 »
WoW!

Cool to see people into this mod.

I have a 1.3.1 YaBB going now in addition to my 1.1. I will get this mod going on my 1.3.1 and post the fix here probably this weekend. I imagine it probably will be the same as it was for 1.1 but I don't know yet for sure.

 :)

Offline jasonl

  • album.pl User
  • *
  • Posts: 2
  • Karma: +0/-0
  • I know who you did last night :?P
    • Drag Diva.com
Re:Mod for YaBB 1.1: Gallery Link
« Reply #12 on: June 05, 2003, 14:33:15 »
I added this mod to my forum and it works great.  It would be great if i could add a button like this to the users profile.  That would alow yaBB users to completely integrate this album into there site.
I know who you did last night :?P

Offline ps

  • album.pl Donor
  • album.pl Contributor
  • ***
  • Posts: 61
  • Karma: +0/-0
  • I forgot to change the default text.
Re:Mod for YaBB 1.1: Gallery Link
« Reply #13 on: June 17, 2003, 07:17:26 »
What about also being able to add a link to the top bar of YaBB called album or something.


Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Mod for YaBB 1.1: Gallery Link
« Reply #14 on: June 17, 2003, 22:22:16 »
A user is actually working on an album.pl profile --> album link mod. Pretty much done I believe, so hopefully we'll see it here soon...