Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
QuoteIt! 2.0 - Quote Management System Details »»
QuoteIt! 2.0 - Quote Management System
Version: 2.03, by Cap'n Steve Cap'n Steve is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 04-10-2005 Last Update: 11-05-2005 Installs: 47
DB Changes
 
No support by the author.

QuoteIt! version 2.0

QuoteIt! allows you to have a database of quotes integrated with your forum. Users submit quotes that can then be voted on by the other users, using your choice of two rating systems. The average installation will show a random quote on the forum home page, but you can include it on any vBulletin page. This was developed on vBulletin 3.0.7, but should work on 3.0.0 and above.

You can see a demo on forums.monkeycrap.com.
Instructions for adding a random quote to vBadvanced and vBindex are in this post.


Features (features new to 2.0 are in yellow)

Random Quote
- a random quote can be shown on any vBulletin powered page
- the administrator can set a default rating threshold that quotes must meet before showing up as the random quote
- the quote shown is much more random than in previous versions


Quote Database
- quotes can only be edited or deleted by an administrator
- quotes can be viewed individually or listed on several pages
- quotes can be sorted by total score, average score, author, submitter, or date added
- quotes now have a "context" field that can be turned on or off to include more information about the quote
- each post and private message now has a "Submit to Quotes" link that allows users to quote things said on your forum more easily


Quote Ratings System
- quotes can be rated either plus/minus or on a scale from 1 to 5
- quotes below a certain total score or average score can be filtered out


Quote Management
- quotes can either be automatically approved or moderated
- the administrator can now edit quotes
- the quote moderation que is now more like the que for posts, enabling the moderation of several quotes at once




Don't forget to click

This hack is based on QuoteIt! 1.2, originally by magnus. The "submit post" feature was inspired by an addon by CtrlAltDel. The location code is based on a post by Acido.

You may release translations of this hack as long as the original credits are included. Otherwise, you not redistribute this hack without permission from me.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-12-2005, 04:07 PM
YLP1 YLP1 is offline
 
Join Date: Aug 2004
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting an error as well:

Code:
Database error in vBulletin 3.0.7:

Invalid SQL: 
INSERT INTO vb3_template
(styleid, title, template, template_un, dateline, username, version) VALUES
(-1, "quote_rating1", "
$vbphrase[rate_this_quote]: 
<form name=\\\"quote$quote[quoteid]\\\">
<input type=\\\"button\\\" name=\\\"plus\\\" id=\\\"plus\\\" value=\\\"+\\\" class=\\\"vote\\\" onclick=\\\"rateQuote(\'plus\', $quote[quoteid], \'quote$quote[quoteid]\');\\\" />
&nbsp;
<input type=\\\"button\\\" name=\\\"minus\\\" id=\\\"minus\\\" value=\\\"-\\\" class=\\\"vote\\\" onclick=\\\"rateQuote(\'minus\', $quote[quoteid], \'quote$quote[quoteid]\');\\\" />
</form>", "
$vbphrase[rate_this_quote]: 
<form name=\"quote$quote[quoteid]\">
<input type=\"button\" name=\"plus\" id=\"plus\" value=\"+\" class=\"vote\" onclick=\"rateQuote(\'plus\', $quote[quoteid], \'quote$quote[quoteid]\');\" />
&nbsp;
<input type=\"button\" name=\"minus\" id=\"minus\" value=\"-\" class=\"vote\" onclick=\"rateQuote(\'minus\', $quote[quoteid], \'quote$quote[quoteid]\');\" />
</form>", "Robin", "3.0.7")

mysql error: Duplicate entry 'quote_rating1--1' for key 2

mysql error number: 1062
Reply With Quote
  #23  
Old 04-12-2005, 04:53 PM
Cap'n Steve's Avatar
Cap'n Steve Cap'n Steve is offline
 
Join Date: Feb 2004
Location: Kalamazoo, MI, USA
Posts: 745
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

TheComputerGuy - It looks fine to me. What exactly is the problem? What browser are you using? Maybe you should attach a screenshot.

YLP1 - You also somehow already have the quote_rating1 template. Go to yourdomain.com/admincp/install_quoteit.php?do=x&step=2 (replace x with either install or upgrade). If that doesn't work, just delete all templates that start with quote_ and run the installer again.

I'll take a look at vbportal later today.
Reply With Quote
  #24  
Old 04-12-2005, 05:29 PM
YLP1 YLP1 is offline
 
Join Date: Aug 2004
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didnt' get to the second step....I quit in case it caused damage. But I found another little issue....when I go to edit a quote.....the script is timing out.....all other queries for other things are working and no other timeouts are occuring....I think maybe this edit has something to do with the install db error? Just guessing here.
Reply With Quote
  #25  
Old 04-12-2005, 06:42 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great upgrade, Cap'n Steve. Thanks.

I got a parse error on the "Who's Online" page though, because when I copied and pasted the includes/functions_online.php code from your instructions it put "&-#-0-3-9-;"* in the code instead of apostrophes (marked red below). And I had to remove the apostrophes from around bburl.

Code:
'<a href="' . $vboptions['bburl'] . '/quotes.php?do=list">'
*Minus the hyphens, of course. I tried every bbcode here and couldn't write out that damn code without it getting converted.
Reply With Quote
  #26  
Old 04-12-2005, 07:19 PM
Cap'n Steve's Avatar
Cap'n Steve Cap'n Steve is offline
 
Join Date: Feb 2004
Location: Kalamazoo, MI, USA
Posts: 745
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for catching that typo, anyone who's already installed should replace ' with ' in includes/functions_online.php.

YLP1, you should download the installer again to be sure. I've updated it so it deletes every QuoteIt template before upgrading, just in case. I don't know what would cause the edit error, though.

EDIT: You're right about not being able to post ', the only way I could do it was by using empty bbcode tags in the middle of it. I think you found a bug in vBulletin.
Reply With Quote
  #27  
Old 04-12-2005, 08:28 PM
YLP1 YLP1 is offline
 
Join Date: Aug 2004
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve
Thanks for catching that typo, anyone who's already installed should replace &#039; with ' in includes/functions_online.php.

YLP1, you should download the installer again to be sure. I've updated it so it deletes every QuoteIt template before upgrading, just in case. I don't know what would cause the edit error, though.

EDIT: You're right about not being able to post &#039;, the only way I could do it was by using empty bbcode tags in the middle of it. I think you found a bug in vBulletin.
I downloaded the file again and installed it in the correct directories.

Ran the installer as an upgrade and this is the error I recieved after the templates were modified:

Code:
Database error in vBulletin 3.0.7:

Invalid SQL: 
			ALTER TABLE vb3_quotes
			ADD COLUMN votes SMALLINT(10) UNSIGNED NOT NULL DEFAULT 0,
			ADD COLUMN rating MEDIUMINT(10) NOT NULL DEFAULT 0,
			ADD COLUMN average FLOAT(3, 2) NOT NULL DEFAULT 0.00,
			ADD COLUMN context VARCHAR(250),
			ADD INDEX (rating),
			ADD INDEX (average)
		
mysql error: Duplicate column name 'votes'

mysql error number: 1060

Date: Tuesday 12th of April 2005 05:28:51 PM
Script: http://www.yourlincolnpark.com/lpsforum/admin/install_quoteit.php
Referer: http://www.yourlincolnpark.com/lpsforum/admin/install_quoteit.php?do=upgrade&step=1
Should I try the new install vs upgrade??

Also, how would I delete a style template? I looked everywhere and can't find how to manually delete the quoteit templates that were installed or any other template deletion for that matter.
Reply With Quote
  #28  
Old 04-12-2005, 08:30 PM
Cap'n Steve's Avatar
Cap'n Steve Cap'n Steve is offline
 
Join Date: Feb 2004
Location: Kalamazoo, MI, USA
Posts: 745
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You already ran the second step then. Go to your admincp phrase manager and search for a phrase named quoteit. If that exists, your installation is complete, if not, skip to the third step of the installer.
Reply With Quote
  #29  
Old 04-12-2005, 08:47 PM
ehjay's Avatar
ehjay ehjay is offline
 
Join Date: Nov 2001
Location: chicago
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The page that offers views of all the quotes is giving (null) errors whenever my users attempt to vote "+" or "-" on any particular quote.

you can see it in action here:
http://www.warboards.org/quotes.php?do=list

if you need to login, you can use the account test/asd
Reply With Quote
  #30  
Old 04-12-2005, 09:23 PM
Cap'n Steve's Avatar
Cap'n Steve Cap'n Steve is offline
 
Join Date: Feb 2004
Location: Kalamazoo, MI, USA
Posts: 745
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you modify the templates? Here's what the quote_rating1 template should look like:

HTML Code:
$vbphrase[rate_this_quote]: 
<form name="quote$quote[quoteid]">
<input type="button" name="plus" id="plus" value="+" class="vote" onclick="rateQuote(\'plus\', $quote[quoteid], \'quote$quote[quoteid]\');" />
&nbsp;
<input type="button" name="minus" id="minus" value="-" class="vote" onclick="rateQuote(\'minus\', $quote[quoteid], \'quote$quote[quoteid]\');" />
</form>
Notice that it actually uses a javascript function to fill in a hidden form, which is submitted all at once by the vote button at the bottom of the page.

EDIT: I just noticed rating your random quote doesn't work either. It might have something to do the javascript, although the rating does actually get recorded, for some reason it's not redirecting you back to the forum home page. The only thing I can think of is that there's something wrong with your $vboptions['forumhome'] variable, because that's what it redirects to.
Reply With Quote
  #31  
Old 04-12-2005, 10:00 PM
Cap'n Steve's Avatar
Cap'n Steve Cap'n Steve is offline
 
Join Date: Feb 2004
Location: Kalamazoo, MI, USA
Posts: 745
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ski-Whiz
I run vbportal, is it hard for that CMS?
Is there some sort of free version I could look at? I don't see anything about it at their site, and I'm not going to pay for something just to release an addon for it.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09209 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete