View Full Version : vB RANDOM QUOTE ON FORUMHOME
adamgessel
09-13-2005, 10:00 PM
This hack will work for every Release Candidate version.
=============
DEMO BOARD
=============
Demo board is located at: http://www.forumfreedom.net/
Feel free to visit.
=============
DESCRIPTION
=============
This hack will add custom random quotes directly below the navbar (See the example (http://forumfreedom.net) ). You customize the quotes in a text file easily, and a random one is displayed. Makes it very easy. This hack was requested in the vbulletin 3.5 request forum.
Keep in mind that this will randomize any text and display different lines of the text file randomly, so it can be used for more than quotes.
=============
INSTALLATION
=============
Difficulty: Easy
Time: 1-2 Minutes
PLEASE CLICK INSTALL!!!
do correct me if im wrong but cant the file edit be subsidised by a plugin??
adamgessel
09-14-2005, 02:37 AM
It can but it's getting late over here and some people wanted this hack, so I'll probably update it tomorrow but I haven't read up on plugins and I'm not sure how to create them... I'll have to do the rest tomorrow but this works and will keep people happy. It's hardly any work on the installer's part.
ive tested it with plugin and it works... allso you mite wanna update your instructions as its the forumhome template you want to edit not the navbar template and commenting lines out of templates with // wont work you need to use <!-- text --> <!-- /end text -->
As im so nice ive done the fixes for you.... no file edit requred :):)
EDIT: i forgot to add the updated instructions file to the zip.... and i have allso updated the template edit so it is collapsable :):)
Boofo
09-14-2005, 03:03 AM
Why would you want to display different lines of the quotes randomly? That would mess up a quote with more than one line to it.
Also, you need to make a test count for your demo links in your Mods instead of enticing users to register at your forums just to see what the mod looks like. Posting pics here in the thread would be better. ;)
updated again... no need for rand.php as that can be put in the plugin..... now all i need to do is get rid of the need for the txt file lol
EDIT: Added a screenshot of the result using my update....
Andreas
09-14-2005, 09:35 AM
I'd make it a mySQL Table, with some nice ACP Script to manage quotes and then just randomly select one?
And why global_start if it's only for Forumhome?
Btw: I had to remove the original ZIP due to license issues.
Barakat
09-14-2005, 11:44 AM
just fix the <--! vbRandomQuote by Adam Gessel --> to <!-- vbRandomQuote by Adam Gessel -->
in the formhome so as not to show up .
adamgessel
09-14-2005, 08:15 PM
I will make this better of course, I know I didn't do it the best way but if you want it, here it is. Just understand that this was something I did quick, and it will be updated and you will know when an update comes.
Mathiau
09-14-2005, 09:36 PM
sounds good will try it out on RC3 - always loved this hack :)
advice - maybe put the zip file in the first post and keep 1 updated instead of in multiple posts :D
Wayne Luke
09-14-2005, 10:10 PM
Why not just use Javascript and a template edit?
http://clarksco.com/blog/?p=6
Gray Matter
09-15-2005, 12:46 AM
First of all, thank you so much for creating this hack after I've been lobbying for it for so long! :D
I do have some suggestions, though.
Easy quote adder/editor in the ACP. (the current way of editing the rand.txt file is so tidious and time-consuming -- especially for me, who's got over 350 quotes on his vB2 site that he wants to transfer to vB3.5)
Have two variables that we can edit through templates: "$quote" and "$quoter". This way, I can use HTML, but I can customize it for all of the quotes in an instant rather than manually customize via the text file.
I think that's about it. :)
And why global_start if it's only for Forumhome?
I think it's a good idea to have it with global_start, in case someone (such as I have) would like to display the quote on every page (by adding it to the footer template, etc.)
Great hack, nevertheless. ;)
adamgessel
09-15-2005, 01:33 AM
Like I said... I know I didn't do it the best way. It gets the job done, so expect a better version later but this does what it is supposed to do.
I will be making a new version soon... but just keep in mind that I want to wait until the final release of vBulletin before making anything huge.
adamgessel
09-15-2005, 01:35 AM
KuRi, thanks for your contribution. If you'd like to be added as a co-author, let me know and I will be happy to put you up there.
I will update and create a better version soon.
KuRi, thanks for your contribution. If you'd like to be added as a co-author, let me know and I will be happy to put you up there.
I will update and create a better version soon.
if you feel that i should then why not... lol
Just an update.... im working on integrating into the admincp.... its proving more dificult than i first thaught it to be
mOdEtWo
09-15-2005, 03:01 PM
Please make this a plugin with a nice ACP edit function, that would rock. I have a "Quote of the week" function at my forums, but I have to edit the phrase each time I want to change it.
Mr Blunt
09-15-2005, 03:28 PM
Well Chute.... I've been working on something "similar" for the last few weeks and just finished it today.
I can definately say mine gets displayed A LOT different (and besides it's just one of many features in my extension) so I don't see why both hacks can't coexist here at vb.org
Nice job with this one so far, Adam!!
I almost think I like yours better than mine!!
Ummmm .... almost is a keyword ... hehe!!
:D
I can't show ya screens of mine yet due to technical reasons but soon.
Mr Blunt
09-16-2005, 03:19 AM
believe me, not trying to steal any potential people from this hack because it does look real cool (ok, yours DOES look better than mine :D) but maybe my product will help you along the way a little bit somehow someway.
https://vborg.vbsupport.ru/showthread.php?t=95264
Edited to correct url .... my bad!!
believe me, not trying to steal any potential people from this hack because it does look real cool (ok, yours DOES look better than mine :D) but maybe my product will help you along the way a little bit somehow someway.
https://vborg.vbsupport.ru/showthread.php?t=93167
very well but what exactly is the relevance of that hack to this one?? this one shows random quotes, yours shows attachment download stats.... you have confued me!!
Mr Blunt
09-16-2005, 02:28 PM
Ummm, zero relevance!!!
I posted the wrong link, My bad!!
I edited the post to reflect correct link.
This is it.
https://vborg.vbsupport.ru/showthread.php?t=95264
Bubble #5
09-18-2005, 10:51 PM
Why not just use Javascript and a template edit?
Because most beginners don't know what is meant by a "template edit" :) This hack comes with instructions so it's easier to integrate. I'm sure Javascript would be easier for someone that knows how to do it.
Adam, thank you for this hack. When 3.5 goes Gold we'll be installing it :)
adamgessel
09-19-2005, 02:17 AM
Thanks Bubble #5!
Boofo
09-27-2005, 01:09 PM
For anyone interested, I have a version I did for my 3.0 board that I have running on my 3.5 board (guests can not view it, sorry) than I will be releasing as soon as I get the Admin CP part of it done so you can search, edit and delete quotes. It uses the db. ;)
mOdEtWo
09-27-2005, 06:18 PM
For anyone interested, I have a version I did for my 3.0 board that I have running on my 3.5 board (guests can not view it, sorry) than I will be releasing as soon as I get the Admin CP part of it done so you can search, edit and delete quotes. It uses the db. ;)
I'm interested in checking it out!
Neutral Singh
09-28-2005, 05:37 AM
Oh Me Too!! :)
Boofo
09-28-2005, 05:45 AM
I'll get it out shortly. ;)
dastar
09-28-2005, 09:42 AM
I look forward to this hack. :)
Gray Matter
09-28-2005, 09:46 AM
For anyone interested, I have a version I did for my 3.0 board that I have running on my 3.5 board (guests can not view it, sorry) than I will be releasing as soon as I get the Admin CP part of it done so you can search, edit and delete quotes. It uses the db. ;)
Can't wait, Boofo. ;)
XtremeOffroad
09-30-2005, 05:54 AM
Can't wait, Boofo. ;)
Ditto
mikehawk
12-26-2005, 04:46 AM
For anyone interested, I have a version I did for my 3.0 board that I have running on my 3.5 board (guests can not view it, sorry) than I will be releasing as soon as I get the Admin CP part of it done so you can search, edit and delete quotes. It uses the db. ;)
Any progress? Could really use this on my site.
Boofo
12-26-2005, 09:26 PM
Any progress? Could really use this on my site.
PM me if you are still interested.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.