Version: 1.00, by Sketch
Developer Last Online: May 2004
Version: 2.2.x
Rating:
Released: 05-01-2002
Last Update: Never
Installs: 29
No support by the author.
If anyone else has hacked this, I could not find it, so here I post.
This is my first hack. Simple one. Took 5 minutes to create. Designed for vB 2.2.5 but may work on other versions too. Requires MySQL so if you're a high end vB'er that is using another db, you'll have to modify this to your highly customized situation.
The hack creates a new table (unpopulated) and randomly selects one quote from the table everytime the page loads. It displays on the home page immediately above the forums.
Demonstration can be seen at (not online anymore)
Good luck
Sketch
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I have the same one as this hack, made it myself also, but it doesn't use the phpinclude template. Rather, I have this:
PHP Code:
$quot=$DB_site->query_first("SELECT quote,name FROM quotes ORDER BY rand() LIMIT 1");
$thequote = $quot['quote'];
$thequoter = $quot['name'];
in my global.php, and I call $thequote and $thequoter in my Header.
(I just gave some secret away here, damn...)
Anyhoo, I didn't like Lesane's hack, first off because it (currently) draws credit away from those who actually Said the quotes, and second of all, I don't want my users to submit quotes. All nice and fun, but they don't know which 614 quotes I have in my (vbulletin.quotes) table, and I doubt they'll refresh to see 'm all, before submitting one. I'll deal with it myself, thankyouverymuch. Was doing that anyhow, already
btw, I *am* trying to figure out if I can make my quotes searchable and 'orderable', similar to the memberlist but then with my quotes
(ie. sort them by Letter, and search on them by either quote or name)
If their any problems with my hack then post it in the desired thread. I saw your last posts and the problem was solved right?
@Sketch: You couldn't find it? Which keyword did u tried in the search?
I believe I searched for Quote and Random and Random quote together. However, once mentioned that you had created one, I did find it on the front page of the Forum Display hacks database page. Oh well. The more the merrier.
would it be possible to have it pull pictures instead of text quotes? like if i made a folder with 1 line graphic images from a game i play could i make it pull them randomly?
Originally posted by Zarith would it be possible to have it pull pictures instead of text quotes? like if i made a folder with 1 line graphic images from a game i play could i make it pull them randomly?
like making the quotes "<img src="gfx2.jpg>" ect?
yeah, you'd have to modify the quote template and modify the table, although you wouldn't have to.
However, if these images were uploaded by users and you wanted to store the image in the db itself (which I don't personally recommend), then you WOULD have to modify the table to make the field containg the image BLOB or something. However, if the images are maintained by you, I recommend uploading the image to a folder on your server and storing a link to the image in your db table.
yea i would run all the images, and maintain the quotes myself. not really sure how to use one of these random quote hacks to do it yet.. but basically i just want a random image from the DB to display at the top of the forum list and thread list. no other info just the image
yeah you have to actually enter it manually. I was going to release a version that integrated with your admin cp, but seems everyone thought Lesane's was so much better, I just left the hack alone.
I just went with Kurafire's hack.. I don't want people submitting their own quotes. (And yes I know I would have to approve them before they'd show up, but I like the idea of being in total control of all quote submissions)