Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Random Quotes V1.3 for YaBB 2.4 (Read 38 times)
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Random Quotes V1.3 for YaBB 2.4
Apr 15th, 2009 at 8:13pm
Print Post  
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
Select All
{yabb tagline}  


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

Code
Select All
[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 by Derek Barnstorm - 4th January 2009
1.3 - Updated for YaBB 2.4 by Derek Barnstorm - 15th April 2009
« Last Edit: Sep 2nd, 2009 at 1:10am by Derek Barnstorm »  

Random_Quotes_V1_3.zip ( 54 KB | Downloads )
Back to top
 
IP Logged
 
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1280
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: Random Quotes V1.3 for YaBB 2.4
Reply #1 - Apr 15th, 2009 at 8:29pm
Print Post  
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.)
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Random Quotes V1.3 for YaBB 2.4
Reply #2 - Apr 15th, 2009 at 9:47pm
Print Post  
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...
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint