The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

25.05.13 at 14:17:00, Welcome, Guest. Please Login or Register

Choose Language:
Page Index Toggle Pages: 1
Random Quotes V1.3 for YaBB 2.4 (Read 1924 times)
Derek Barnstorm
Hacker God
*****
Offline

Warwickshire, United Kingdom
Posts: 1113



15.04.09 at 21:13:13  
Random Quotes V1.3

Description:
This mod gives you two new tags that produce random quotes in the language of the poster, or the member.

For in the main template there is the tag:

Code:
{yabb tagline}  


And for the signature and posts there is the UBBC tag:

Code:
[tagline] 


Credits:
This Mod was originally coded by Ron (Spikecity) for YaBB 2.1, so full credit and thanks go to him. I have done very little to update it.
Link to 2.1 Mod

Usage:
Add the appropriate tag where you want it to be displayed and depending on your language settings it will produce random quotes in the correct language.
You can add or delete quotes as you like, but the value in taglines.dat must be set to the same number of qoutes in taglines.txt.

Examples/Screenshots:
To add Random Quotes to your main template, open Templates/default/defaualt.html and add  the new YaBB tag wherever you want it to be displayed.

For example, this will display just below the main forum image:

...

...

For signatures and posts, simply add [tagline] which will display like this:

...

Installation:
Modify YaBB files using BoardMod or manually.
Upload modified files to your server.  
Upload the taglines.txt and taglines.dat to the appropriate language directory and chmod equal to other lng files.

Files to edit:
Admin/Modlist.pl
Sources/Display.pl
Sources/Printpage.pl
Sources/Profile.pl
Sources/Subs.pl
Sources/YaBBC.pl

Zip package:
Random_Quotes_V1_3.mod
Languages/English/taglines.dat
Languages/English/taglines.txt
Languages/German/taglines.dat
Languages/German/taglines.txt
Languages/Nederlands/taglines.dat
Languages/Nederlands/taglines.txt

Restrictions and Short comings:
There is no admin section to edit/add taglines.
The taglines.txt is a flatfile plain ascii file holding one tagline per line.
The taglines.dat holds one variable which must be set manually to the number of lines found in the taglines.txt, and it holds the text in front of the quote.
For each language you should have a set of these files, but if no files are found or the user has no language set the taglines will default to the board language set.

History:
1.0 - First release by Spikecity for YabBB 2.1 - 12th February 2007
1.1 - Updated for YaBB 2.3 by Derek Barnstorm - 16th November 2008
1.2 - Updated for YaBB 2.3.1 Forum Software by Derek Barnstorm - 4th January 2009
1.3 - Updated for YaBB 2.4 by Derek Barnstorm - 15th April 2009
« Last Edit: 02.09.09 at 02:10:38 by Derek Barnstorm »  
IP Logged
 

batchman
Global Moderator
*****
Offline

Orlando, Florida, USA
Posts: 1280



Reply #1 - 15.04.09 at 21:29:15  
I still want to see this with the ability to use multiple files.

Just a few little updates, so that you use a [tagline=random1.txt], rather than just [tagline], and a slight change to the files, so that the number of lines of quotes is stored in the quote file, instead of in a seperate file.

Then suddenly there are more uses.

(Well, you can'tblame a guy for hoping.)
 
IP Logged
 

Improving my forum, one mod at a time!

...
Now up and running again, with an accurate link.

...

Derek Barnstorm
Hacker God
*****
Offline

Warwickshire, United Kingdom
Posts: 1113



Reply #2 - 15.04.09 at 22:47:20  
I remember you mentioning this before. To be honest, it wasn't a mod that I'd planned on working on too much, just mainly updating it...

I will try to take a look in the future (I've got some other stuff to do first), though I can't promise that I'll be able to do it... But, I will have a play around...
 
IP Logged
 
Page Index Toggle Pages: 1
© 2000-2012 by - All rights reserved.

Project website hosting proudly sponsored and provided by UK2 Hosting
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum