Author Topic: Adding a "Gallery" link to YaBB  (Read 9888 times)

0 Members and 1 Guest are viewing this topic.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Adding a "Gallery" link to YaBB
« on: February 04, 2003, 12:57:59 »
First, find a suitable graphic to use. Here's a sample one:


http://perl.bobbitt.ca/img/yabb_gallery.gif

Upload this into your YaBBImages directory, and call it gallery.gif

Edit english.lng (or the appropriate language file for your site) and find this line:

Code: [Select]
       $img{'home'} = qq~<img src="$imagesdir/home.gif" alt="$txt{'103'}" border="0"> <font size="1" class="imgmenu">$txt{'103'}</font>~;

Insert the following new line below it:

Code: [Select]
       $img{'gallery'} = qq~<img src="$imagesdir/gallery.gif" alt="Gallery" border="0"> <font size="1" class="imgmenu">Gallery</font>~;

Edit Sources/Subs.pl, and change this line:

Code: [Select]
       $yymenu = qq~<a href="$scripturl">$img{'home'}</a>$menusep<a href="$helpfile" target="_blank" style="cursor:help;">$img{'help'}</a>$menusep<a href="$cgi;action=search">$img{'search'}</a>$menusep<a href="$scripturl?action=mlall">$img{'memberlist'}</a>~;

to this:

Code: [Select]
       $yymenu = qq~<a href="$scripturl">$img{'home'}</a>$menusep<a href="/cgi-bin/album.pl">$img{'gallery'}</a>$menusep<a href="$helpfile" target="_blank" style="cursor:help;">$img{'help'}</a>$menusep<a href="$cgi;action=search">$img{'search'}</a>$menusep<a href="$scripturl?action=mlall">$img{'memberlist'}</a>~;

That's it, you're done!
« Last Edit: February 04, 2003, 12:58:12 by Mike Bobbitt »

Offline Lady_Silverwolf

  • album.pl User
  • *
  • Posts: 19
  • Karma: +0/-0
  • I forgot to change the default text. No I did not!
    • Lady Silverwolf's Web Dings
Re:Adding a "Gallery" link to YaBB
« Reply #1 on: October 11, 2003, 12:24:27 »
Hey Mike...

I finally braved the frontier of creating an actual 'mod' that is specifically designed for Album.pl using the BoardMod program that was designed to work with Yabb.

I have ensured it works on my own Yabb board, and wanted to know if I could send it into the Mod Collection they have at http://boardmod.yabbforum.com/project.php

There is another mod out there that does any gallery, but I am hoping to incorporate not only this mod, but also the one created by Matt Rogers for Profiles that was noted in Thread http://perl.bobbitt.ca/yabbse/index.php?board=7;action=display;threadid=569

Eager to hear from both of you.
"Very little is needed to make a happy life; it is all within yourself, in your way of thinking." - Marcus Aurelius Antoninus

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Adding a "Gallery" link to YaBB
« Reply #2 on: October 11, 2003, 14:50:36 »
Hey, that's great! Please feel free to send it to the mod collection.

I'd also encourage you to post it on our User Contribution Library here. (The mod by Matt is also there...)

Thanks!!

Offline Cindy

  • album.pl User
  • *
  • Posts: 10
  • Karma: +0/-0
  • I LOVE the default text!
    • Black Diamond Tailored Rods
Re: Adding a "Gallery" link to YaBB
« Reply #3 on: October 20, 2004, 22:16:10 »
Hi Again Mike,
I would like to get this mod running but when I try to change the Subs.pl file using Windows Notepad I keep getting an 'Insuffecient memory' error. This happens even when I try to type the entry manually. Any ideas?
Thanks, Cindy

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Adding a "Gallery" link to YaBB
« Reply #4 on: October 21, 2004, 14:26:58 »
Doesn't sound good... Subs.pl isn't a huge file, so if you're running out of memory trying to open it, that doesn't bode well for your system. Try closing any apps you're not using, or stopping any non-essential services to free up memory. How much memory does task manager show you have? Maybe you don't have a pagefile for virtual memory?

Offline Cindy

  • album.pl User
  • *
  • Posts: 10
  • Karma: +0/-0
  • I LOVE the default text!
    • Black Diamond Tailored Rods
Re: Adding a "Gallery" link to YaBB
« Reply #5 on: October 21, 2004, 20:31:01 »
Hi Mike,
Thanks for your suggestions. We have plenty of resources in our PC so we think this may be part of a new security feature in YaBB to prevent hackers adding script to the code. (Of course, that's just a guess ???.)

We' made a workaround for our forum members so we're OK now. Thank you for your continuing help (and your great software!)
I'll post a link to our site in your other forum for all to see.
Regards,
Cindy

Offline Flowageboy

  • album.pl Tester
  • **
  • Posts: 21
  • Karma: +0/-0
  • hunt em up!
Re: Adding a "Gallery" link to YaBB
« Reply #6 on: February 24, 2005, 23:43:10 »
Now this makes no sense...I did exactly the above script changes, and there is no difference on my board...even if something were incorrect, there should be something between the "home" and "help" buttons. This is confusing. There should be no way this should happen. ???

Offline Flowageboy

  • album.pl Tester
  • **
  • Posts: 21
  • Karma: +0/-0
  • hunt em up!
Re: Adding a "Gallery" link to YaBB
« Reply #7 on: February 25, 2005, 00:31:14 »
I did a view page source and got the following:
 
Code: [Select]
<a href="http://muddywatersretrievers.com/cgi-bin/yabb/YaBB.pl"><img src="http://muddywatersretrievers.com/public_html/yabb/images/home.gif" alt="Home" title="Home" border="0"> <font size="1" class="imgmenu">Home</font></a> <a href="/cgi-bin/album.pl"></a> <a href="http://muddywatersretrievers.com/public_html/yabb/help/index.html" target="_blank" style="cursor:help;"><img src="http://muddywatersretrievers.com/public_html/yabb/images/help.gif" alt="Help" title="Help" border="0"> <font size="1" class="imgmenu">Help</font></a>
My english.lng file config looks like this:
Code: [Select]
$img{'home'} = qq~<font size="1" class="imgmenu">$txt{'103'}</font>~;
        $img{'gallery'} = qq~<img src="$imagesdir/gallery.gif" alt="Gallery" border="0"> <font size="1" class="imgmenu">Gallery</font>~;

My Sources/subs.pl config looks like this:
Code: [Select]
$yymenu = qq~<a href="$scripturl">$img{'home'}</a>$menusep<a href="/cgi-bin/album.pl">$img{'gallery'}</a>$menusep<a href="$helpfile" target="_blank" style="cursor:help;">$img{'help'}</a>$menusep<a href="$cgi;action=search">$img{'search'}</a>$menusep<a href="$scripturl?action=mlall">$img{'memberlist'}</a>~;

Offline Flowageboy

  • album.pl Tester
  • **
  • Posts: 21
  • Karma: +0/-0
  • hunt em up!
Re: Adding a "Gallery" link to YaBB
« Reply #8 on: February 27, 2005, 16:30:24 »
Ok... I figured it out. For those of you with YaBB 1.4 in addition to the code that Mike put up at the top of this thread, you need to add the following:

Find the following string in english.lng:
Code: [Select]
$img{'home'} = qq~<img src="$imagesdir/home.gif" alt="$txt{'103'}" title="$txt{'103'}" border="0"> <font size="1" class="imgmenu">$txt{'103'}</font>~;and under it insert the following:
Code: [Select]
$img{'gallery'} = qq~<img src="$imagesdir/gallery.gif" alt="gallery" title="gallery" border="0"> <font size="1" class="$imgmenu">gallery</font>~;
« Last Edit: February 27, 2005, 16:35:09 by Flowageboy »

Offline Katoona

  • album.pl User
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Adding a "Gallery" link to YaBB
« Reply #9 on: March 26, 2007, 07:25:02 »
Does anyone know how I can add a Gallery link to a Yabb2 forum?


Offline PSS-Mag

  • album.pl User
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Adding a "Gallery" link to YaBB
« Reply #10 on: January 05, 2008, 21:04:54 »
Does anyone know how I can add a Gallery link to a Yabb2 forum?



I'm running YaBB2.2 but I just used Advanced Tabs Mod by Carsten