![]() |
Admin-controlled (only) random quote hack for header/homepage
What does this hack do?
It adds a quote and the quoter to your board, either in your header/footer (hack global.php) or on your forumhome page (hack root/index.php). What's the additional server load of this hack? It adds 1 query to each page you have a quote show up on. If you add it to global.php it'll add 1 query to ALL pages, if you add it to root/index.php it'll only add 1 query to your forumhome, but you won't be able to show the quotes anywhere else. Why should we use your hack and not one of the two other quote hacks? Mine is extremely easy (_I_ made it, and I'm a n00b!) but, more importantly, it doesn't allow your users to enter quotes nor does it put it on two silly lines (no offense Lesane, but that aspect, I found absolutely horrid). This is useful if you have a lot of users and don't feel like spending 4 hours a day moderating all new quote-submissions your members made. Or, if you just want full control. :) Instructions: Step 1: run this query on your vBulletin database (I suggest in phpMyAdmin): PHP Code:
PHP Code:
PHP Code:
Step 2 b: if you want this to appear only on your forumhome, open root/index.php and find this line: PHP Code:
PHP Code:
That's it. I left it up to you entirely where and how you add the quote and quoter, seeing as how people will place it in different places entirely. Attached is a small selection of my own quotes database. Not all of it, for a: it'd be quite a lot, and b: it took me a lot of work to get those quotes together and into a database, neatly, and I'm not done processing my entire collection yet so I'm not making my entire quotes database publicly available. To add these 100 quotes to your database, run the contents of 100quotes.sql as a query in phpMyAdmin on your database. In the second post, I will add a screenshot. This hack is really basic, Kura, I'm sure you can do more with this! What's your plan, my man? Self-imployed vote of confidence, woohoo! *cough* anyway, yeah this is actually just the first part of a rather big hack I have in mind, though not yet in true development. What I'm Planning to create, is a quote index very similar to the memberlist, but then about quotes. You'll have noticed that the structure of the `quotes` table that this hack adds, includes a "letter" column. This is solely for the purpose of making the quotes table searchable by letter, later on. Like, when you click on members, you'll have the option to select all members by a single letter. Same with the quotes list I am working on (in my mind mostly, thus far). (edit: this quotes listing is now done. Contact me if you want an early release) UPDATE IN POST #20: Admin Panel Addition for easy Quotes adding! [high]* KuraFire awaits response again... [/high] Edit: credit goes out to Lesane for being the first one to have made a quote hack, of course, but this one is different, and I think it's good for people to be able to have a choice. |
A screenshot of how it looks on my own (new, not publicly available) board.
Note that I can't include the entire header, since I'm keeping that a secret until all is done. This screenie is just how it looks if you add it between the header and content-table, using the global.php edition of the hack. Oh and if you find the ID's on the 100quotes attachment rather odd: that's due to the auto_increment, and the fact that I didn't want to give you guys 100 Letter A quotes. :) |
Shouldn't the $quote and $quoter that you put into the template be $thequote and $thequoter ?
|
i'm not sure, but this was done also by lesane.
|
dimitr| ~ sheize, you're right, my mistake!
*edits the first post* nakkid, like my first post says, yes Lesane made a random quote hack too, but I don't like it. It splits quotes into two short lines, it doesn't give out the Quoter information, rather it tells who submitted the quote, and as is clear from the last sentence, it lets members submit quotes, which this hack doesn't. This is useful for big boards where you don't want to sift through 500 submitted quotes a day. :) |
I think that every member from a board likes to contribute on his favorite board by adding quotes. My members loved it to contribute to the forum by adding quotes. Adding quotes of their favorite artist/actor or their own quotes. Why would u take this ability away from them?
In my eyes it's like making a new store hack but then let only admins buy things ;) |
Like I said, there's the obvious reason if you run a very big board - who wants to moderate hundreds of quotes all the time? You can bet your ass on it that users will be submitting quotes that already exist in your database. I don't have the time to even moderate my board if I'd let my users submit quotes, and I have about 50 really active people and 150 ones that drop by every so often.
Second of all, your hack lists quotes in two small lines. I totally don't like that, looked ugly as hell, so that was one more reason for me to make my own hack. Thirdly, this hack will, one day, incorporate a Quotes listing similar to memberlist.php and will be searchable and orderable by letter. Is your quotes table structured for that? (just wondering :)) Lastly, your hack (last I checked) didn't display the Quoter, only the member who submitted a quote. That's just taking credit away from ALL those people who made the quotes! :( |
besides, Lesane, why not let your users contribute by donating to The Cause (tm) of your board, eh? ;)
|
Quote:
Besides that, this one differs too much from the one lesane made. As the thread title implies, admin only .. One person invented the wheel, the rest uses it and sometimes even improves it, if we didn't. Your bmw would be running with rocks instead of rubber. |
Very basic hack, but it's brilliant - gives us n00bs a chance to figure out how this stuff works :D
|
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
|
money, donations, that green stuff... ;)
you can't counter my first reason, can you? :p ;) |
Man, why argue on this? If I want the function of having my users submit quote I choose Lesane's. If I just want just the quote function I use Kura's. Ironically, the reason I went with this one instead was not because my board was too big but too small. Most of my users are not proactive and just swing by to read anything new. I doubt they would really use it, hell the PM function hardly gets used. But already someone commented on how they liked the quotes. :cool:
|
The main reason I want it is because not all quotes added by users are particually that good or different enough to add to the posting. And how do you tell one user that their post is good enough to add and yet tell another user that theirs isn't without causing a lot of hard feelings along the way? This way, it is up to the Admin to post what THEY like and not have to worry about hurting anyone's feelings ot having to justify themselves.
Just my 2 cents worth. :nervous: |
would it be possible to make links to 1 like graphic text my just putting the html tag inside of what would be the quote?
|
Quote:
|
Zarith, I'm not quite sure I follow you. What exactly do you want?? :confused:
|
How to add quotes easily through your Admin Panel
(also known as Hack Update to version 1.0.5 :D) Step 1: open your admin/index.php and find this line: PHP Code:
PHP Code:
Done. :) |
I have Lesane's quote hack on my site and I love it...
...as for the author of the quote not being mentioned, that's BS...it's offered now, and my members LOVE it. Looks awesome as well...fits in perfectly. |
Yes, well, I have the Quotes List hack fully functional now, similar to the member list but for my quotes, and it works like a charm. Does Lesane's hack include that yet? :)
|
Is there any way to add a function to edit the quotes in case I want to add the quoters name to quotes if I don't already have them? And, also it might be nice to be able to edit spelling and things like that if we missed it when entering them and things like that.
I guess I don't get the lettering part of it. I just went through the alphabet when entering them and started back at "a" when I hit 27 quotes. Does that copy over the first one if I reuse the alphabet again? |
Boofo, I totally don't get what you mean by the second part... :/
Hmm, edit function... I'll see about adding that before I release the whole thing as the Ultimate Quote Hack. It'll be a bit more difficult but I'll have it done with that UQH release. You'll have to wait a bit for it, though.... |
Quote:
|
Boofo: btw, you can edit your quotes in phpMyAdmin though, and if you don't have that, it's a Big loss and you should try getting it installed on your webhost cos it makes your vB-management life So much easier. :)
Lesane: I know, but a quotes list is simply an extremely useful feature. It's not a race indeed, but why did you say "Ofcourse" (above, post #12) in response to my question about your hack having a Quotes list that's sortable, orderable and searchable, if you're now saying you'll never have that? |
I'm referring to the letters that the quote.php asks for at the bottom of the screen.
Quote Name Letter I entered "a" thru "z" for 26 quotes and then started over at "a" when I hit 27 quotes. What do the letters represent? And do I need to use them for each quote entered? |
Still, a quote editor in the admin cp would be easier and nicer. :)
|
Quote:
http://www.lesane-crooks.com/board/userquote.php And yes i know yours will be different with searchable features blah blah. I ain't telling you that my quote hack already have an editing feature etc etc. So... could u plz stop with finding another comparing with my hack? I'm glad yours is different otherwise this thread was useless! |
Boofo: the Letter is for the search index in the upcoming Quote List hack.
Quote: The optimist thinks that this is the best of all possible worlds, and the pessimist knows it. Name: J. Robert Oppenheimer Letter: O (as in, Oppenheimer) --- Quote: Woman was God's second mistake. Name: Friedrich Nietzsche Letter: N See how it works, now? In the upcoming Quotes List, people can click on a letter (ie. `N`) and it will display all quotes made by people whose last names start with an N. Since you can't index it through the name column (try doing a reg.ex on "Sir General S. Patton" for instance. :p) the Letter column is for the search index. I am guessing you'll now have to fix 27+ quotes in your database? :) |
Boofo: the edit quote feature will be made, but just not _yet_. I can't make that in 10 minutes, my knowledge on vB's structure is far too limited for that, so it'll take time. And since my UQH is pretty much entirely finished, I'm gonna let it coincide with that. Just be patient and use phpMyAdmin for the time being :p
Lesane, that's what I said in the first post already, but then came the people 'attacking' me cos you already made a quote hack. I'm in the defense here, y'know. I can drop the subject easily if other people will stop coming in here going "bah, Lesane already made this, blah blah blah, I'm using Lesane's, blah blah blah". That annoys me, I don't care who uses whose hack, I made this available for people to have a choice and because I was feeling very generous (sharing things of my new board before my board itself is done yet, successfully diminishing the `impressiveness` by a bit...). I just don't like to be talked down for that, I get in my rather hot-tempered debating stance then. :) (no hard feelings, right? :)) |
Quote:
|
Yeah but those bastards (;)) didn't make any hacks (and if so, I ain't using 'm nor even know about 'm). :p
;) |
Call me ethical or something but it seems that Lesane already made the hack and most of us like it...people usually check to see if a hack has already been done so we don't have 8,000 versions of the same hack floating around.
It looked to me like you were trying to 'one up' him while you where replying to your thread...if not, cool... |
Quote:
Seriously, you deserved this slander, my first post already says that I know Lesane made a quote hack, and it also says that this one is different and therefore will appear to a different audience. Also, this hack will soon be joined up with a much bigger, comprehensive hack that has features Lesane's doesn't have (because he doesn't want them, and I needed it for my own board so... :)) so people will have even more options to choose from, pretty soon. It's totally not "the same hack" - there's several very distinct, different features. And our hacks combined provide the vB-community with a whole set of options, successfully making sure that if they want SOME sort of quote hack, they will be able to get it, easily. :) |
Calm down, Mr. Ad Hominem...I was just clarifying myself.
|
Quote:
|
Kurafire,
You are right, it looks as though I will have to do some editing somehow. :-) What do I do for the quotes who don't have a quoter (because I'm not sure who originally said them)? How would I index those? Let em see if I get this right...I only need to use letters if I am going to index them, right? If I enter them without letters, they will display randomly and just fine? Am I close? :) |
Boofo: if you don't know who said a certain quote, use
Unknown as the name, and U as the letter. (and later on, if you find out who said the quote, you edit it again :)) And no, if you don't enter a Letter, those quotes won't be listed at all in the letter-specific index, in the Quotes List hack. They will only display in your header (or wherever you've placed them) and in the Quotes List when searching, or looking at it in default view. But not when browsing the list through letters, so you really ought to set a Letter entry for EVERY quote in your database. Consistency is the key to success :) |
Ok, I understand now. But I CAN use the same letter over and over for different quotes right? It will just index those quotes under that letter, right? (E-gad, I think I might be catching on. DOH!!!) :)
I have been putting a letter in for each quote. I've just been doing it with the first letter the quote started with is all. And thanks for a great hack! Exactly what I was looking for. :) |
All times are GMT. The time now is 04:41 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|