![]() |
This looks like fun. I'd like to see three additional fields for classic quotes
1) Who said it 2) Date of quote 3) Link to quote in context Who submitted the quote doesn't matter so much to me... Regards, Matt |
Quote:
Great Hack! |
[high]* TwinForMe clicks install. :)
[/high] Love it! I modified the global.php instead of the index.php, then changed the Forumdisplay, Forumhome, Showthread, and search_results templates. I also took out the 2 /br's at the end of the navbar template and I took out the final /br from the randomquote template so my forums and threads don't get too pushed down. Plus I took out the "Random Quote" bar in the table of the randomquote template. You can take a look here: http://www.twinteresting.com/forums/index.php? |
nice job.
I think admin should be able to - list all of quotes in AdminCP - edit/delete quote in AdminCP - set a quote status active/inactive (bring an active quote back to moderating list) - select and delete multiple quotes in AdminCP and, the quote manager in AdminCP right now, just list only one quote at a time? I think all quotes (waiting for moderated) should listed Right now, you (admin) can delete quote in the quote list, but that shouldnt be the place where you manage things though :) and, sometime, people just have some typo, or you want to change something, you should be able to change both quote and author |
Quote:
Edit template quotelistbit add HTML Code:
<tr> I would suggest to use alt1 and alt2 for each quote too, just like they are for posts. :) |
Is there anyway to have two different quote boxes pulling qoutes from separate databases of quotes?
|
Anyone got this working in 3.03?
|
Yes, works great on mine!
MTHA: Thanks for that!! -Jason |
i wrote my own quote hack for 2.x and i had a button that allowed people to submit a post for a quote. do you plan on adding this to your hack or should i just add it onto it?
|
ok after looking at this the code used to pick the random quote is flat out wrong
Code:
SELECT * FROM quotes WHERE approved=1 ORDER BY rand() LIMIT 1 Code:
SELECT *, rand() AS r FROM quotes WHERE approved='1' ORDER BY r LIMIT 1 |
What is wrong or inaccurate about it? ORDER BY RAND() has worked since MySQL 3.23.3 and initialization was dubugged in 3.23.56. Select RAND() might have some other issues:
http://www.sitepoint.com/forums/show...01&postcount=3 What makes it more server friendly? Regards, Matt |
I have added a to this addon and given it the ability to have a button in each post that will submit the post to the quote database for approval. What happens is that you see the button in the post, I have a button by the 'edit post' button and the user presses the button. They are then sent to the 'add quote' page with the username/quote text all filled in from the post. The user can then proofread the submission and then hit the submit button. All works great, and you dont have to worry about search bots automatically submitting quotes this way either.
Here is what you'll need to do. Find this in quotes.php PHP Code:
PHP Code:
First open quote_addquote Find Code:
<input type="text" class="bginput" name="author" size="25" maxlength="75" /></td> Code:
<input type="text" class="bginput" name="author" size="25" maxlength="75" value="$author" /></td> Code:
<td class="alt1"><textarea name="quote" rows="10" cols="50"></textarea> Code:
<td class="alt1"><textarea name="quote" rows="10" cols="50">$quote</textarea> Find Code:
<if condition="$post['editlink']"> Code:
<a href="/forum/quotes.php?do=post&postid=$post[postid]"><img src="$stylevar[imgdir_button]/quoteit.gif" alt="Submit post for quote database" align="middle" border="0"> Questions/Problems, shoot me a PM. |
Very well done. Also like CtrAltDel's addition, should be added into v2 in my opinion.
I have a problem; my add quote page does not put the input author box next to the author; for some reason, it sits above it. Here's the template code: Quote:
Thanks, rich http://x.russbo.com/vb/index.php |
Quote:
|
Quote:
|
Thanks. That was fast. It was in the install file. Love your addition, with respect to the postbit. Do you have any idea why my tables are screwed up in the "add quote" section?
You can see it in action at http://x.russbo.com/vb/index.php rich |
I'd try and help but maybe you could post a screenshot of your issue, since you have to register to get to see that on your site.
|
I believe that this:
Quote:
Quote:
And, to keep the colors consistent, I make this: Quote:
This seems to work for me. |
Has anyone tried to use this with 3.0.3?
|
Quote:
|
I added the hack, followed the instructions, turned it on, and I don't see anything. Is it because there are no quotes in the table? If so, how are quotes to be submitted?
|
It's showing up in one style but not the other yet I modified the FORUMHOME template in both the same way.
Edit: Turns out the installation only put in custom templates for one style instead of all. Anyone know a quick fix for this? |
I found a hack that does this easily and am sharing it here for anyone else that will encounter this same problem later. You have to copy over quotelistbit, quote_addquote, quote_delquote, quote_listquote, randomquote.
|
Your query isn't checking quotes.approved = 1
[QUOTE=Giveit2u43]Yeah just noticed that as I was looking at the code.. I changed your query to: Code:
$result_quote = $DB_site->query(" Quote:
|
Quote:
run the install script and just install the templates and they'll get laid down it runs on 3.0.3, thats what im running and my addon works with that too yeah my addon wasnt perfect, thanks for the clean up guys |
I tried to install quote-it 1.2 in vB 3.0.5 into my test site and got the following error when I turned the option on.
Code:
Database error in vBulletin 3.0.5: |
Quote:
|
Edit: Never mind, fixed my own problem.
|
Looks like the upgrade from 3.0.3 to 3.0.5 knocked it out for me too although I can't figure out why yet. Did anyone else do the upgrade?
|
Ok it knocked out the settings. Just rerun these 2 queries:
Code:
INSERT INTO setting (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile) VALUES ('showquote', 'forumhome', '0', '0', 'yesno', 5, 0, 1) |
I did'nt do an upgrade, I tried to install quote-it on a fresh copy of vb3.0.5 ... but for some reason, it looks like the install script did'nt insert the table into my database. ... weird ...
:rolleyes: |
The database is there if you ran the script (try using phpmyadmin to see it), but the script appears unable to call it after the 305 patch is installed.
|
I still haven't figured out why the values in $vboptions aren't there. I can get the quotes to show up but when someone tries to do an add it fails because the $vboptions[moderatequotes] value is blank. Maybe that's all related.
|
I don't want to complain, but magnus hasn't posted in this thread in 8 months. Maybe it's time for someone else to try making a rating system?
|
I eventually did get this to work just fine in 3.0.5, I just had to add the sql table prefixs, and correct one one line in quotes.php.
I am trying to find the the line now that redirects the user after the quote is added. i want to change it to go to my homepage, and not the forum index page. hav'nt found it yet though ... any ideas? |
I apologize for not knowing the ins and outs of your hack. However, I wanted to have a Quote of the Day that will remain the same throughout the day. I was thinking that this would allow people the opportunity to think about the quote, contemplate and reply to it rather than having different quotes fly by with every refresh.
I gather from the mysql I see that yours does not do this (from INDEX.PHP mod step 4a. in part: Code:
SELECT * FROM quotes WHERE approved=1 ORDER BY rand() LIMIT 1 Code:
SELECT * FROM quotes WHERE approved=1 ORDER BY RAND(TO_DAYS(NOW())) LIMIT 1 Anyway if someone wants to try this it would be of interest to me. I am not currently using this hack, but would be interested in the result. Regards, Matt |
Quote:
|
Quote:
Nice name, by the way. You'll have to tell us how you came up with that one. rich |
I upgraded to vB 3.0.5 and lost Quoteit in part. I have made the changes to the php files as outlined in the quoteit_readme_txt file and have verified that the custom templates for QuoteIt are still present as well as the template changes necessary. But I'm still not getting a display of QuoteIt on the forum. Any idea what's missing? If I runa reinstall will I lose our database of quotes? Where are the quotes located?
|
I had the same problem.
I went into the install script for quote php and copied and pasted the insert of the settings and put them into phpmysql and reinserted them. It seems that as part of the upgrade the settings get wriped out. I then go into the forum home settings and set it to display on the forum home. That is the only change I made and everything works fine |
All times are GMT. The time now is 01:19 PM. |
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:
|