album.pl Support > Tips and Tricks
Adding a "Gallery" link to YaBB
Mike Bobbitt:
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: --- $img{'home'} = qq~<img src="$imagesdir/home.gif" alt="$txt{'103'}" border="0"> <font size="1" class="imgmenu">$txt{'103'}</font>~;
--- End code ---
Insert the following new line below it:
--- Code: --- $img{'gallery'} = qq~<img src="$imagesdir/gallery.gif" alt="Gallery" border="0"> <font size="1" class="imgmenu">Gallery</font>~;
--- End code ---
Edit Sources/Subs.pl, and change this line:
--- Code: --- $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>~;
--- End code ---
to this:
--- Code: --- $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>~;
--- End code ---
That's it, you're done!
Lady_Silverwolf:
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.
Mike Bobbitt:
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!!
Cindy:
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
Mike Bobbitt:
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?
Navigation
[0] Message Index
[#] Next page
Go to full version