Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
QuoteIt! - Quote Database Details »»
QuoteIt! - Quote Database
Version: 3.17, by Cap'n Steve Cap'n Steve is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.0 Rating:
Released: 01-01-2007 Last Update: 04-30-2008 Installs: 207
DB Changes Uses Plugins Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

QuoteIt! version 3.1

I'm no longer able to put very much time into this mod, so I've set up a Subversion repository at http://www.vbulletinprogramming.com/projects/quoteit/ to allow others to help out. You can use the login "vbuser" with the password "vbulletin" to edit files. If someone would like to completely take over the mod, please contact me.


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 or on your portal home page.

If you'd like to see a demo, go to forums.monkeycrap.com.

Features:

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
- a new random quote can be chosen at a specific interval of time, to reduce server load

Quote Database
- quotes can be searched, filtered, and sorted by many different criteria
- quotes have a "context" field that can be turned on or off to include more information about the quote
- quotes can be embedded in posts with bbcode
- 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 quote moderation que is like the que for posts, enabling the moderation of several quotes at once
- usergroup permissions are used for adding, editing, deleting, rating and viewing quotes
- most actions use AJAX to avoid page reloads

Don't forget to click install!

Currently known problems are listed here.

The files needed to edit the included images are attached to this post.

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

Older versions (no longer in development): QuoteIt! 3 for vBulletin 3.5.x | QuoteIt! 2.03 for vBulletin 3.0.x

Show Your Support

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

Comments
  #642  
Old 09-22-2008, 03:28 PM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve View Post
I've been running it on 3.7 for a while now. What problem are you having?
1. I am getting the following error at http://www.sikhism.us/quotes.php

Quote:

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 31

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 32

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 33

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 34

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 35

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 36

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3239) in [path]/includes/functions_quoteit.php on line 1198
2. The random quote shows like the attachement which is quite untidy.


Please advice how to get it right. Thanks
Reply With Quote
  #643  
Old 09-23-2008, 05:01 PM
L2V L2V is offline
 
Join Date: May 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to disable this in certain templates? I am using a mobile template under 3.7.3 and the javascript loads on every page. Quotes isn't visible from this mobile template and I'd love to reduce the overall page size by turning off the script includes for this... Any idea how?
Reply With Quote
  #644  
Old 09-24-2008, 04:46 AM
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

Neutral Singh - Try the instructions in this post.

L2V - I'm sure you could use a conditional to check the styleid, but I'm not sure off the top of my head what variable it's stored in.
Reply With Quote
  #645  
Old 09-24-2008, 04:26 PM
L2V L2V is offline
 
Join Date: May 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve View Post
L2V - I'm sure you could use a conditional to check the styleid, but I'm not sure off the top of my head what variable it's stored in.
Thanks. Do you know what part would have the conditional? Does that go in the plugin itself? Or a template?
Reply With Quote
  #646  
Old 09-25-2008, 01:42 PM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Neutral Singh - Try the instructions in this post.

Alright that made the first problem vanish. What about the second. I have kept it live on my forum for your analysis.

Please advice. Thanks
Reply With Quote
  #647  
Old 09-26-2008, 05:38 AM
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

L2V - Actually, try adding it to the conditional on line 768 in includes/functions_quoteit.php. The updated code should look something like this. Replace $styleid with whatever variable holds the current styleid (just search around this site to find the right one) and $yourstyle with whatever the styleid of your mobile style is.

PHP Code:
    if (!defined('THIS_IS_A_QUOTE') AND $styleid != $yourstyle) { 
Neutral Singh - That is strange. Try removing this line from includes/functions_quoteit.php.

PHP Code:
        $tempinclude str_replace('"''\"'$tempinclude); 
Reply With Quote
  #648  
Old 09-26-2008, 05:08 PM
L2V L2V is offline
 
Join Date: May 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve View Post
L2V - Actually, try adding it to the conditional on line 768 in includes/functions_quoteit.php. The updated code should look something like this. Replace $styleid with whatever variable holds the current styleid (just search around this site to find the right one) and $yourstyle with whatever the styleid of your mobile style is.

PHP Code:
    if (!defined('THIS_IS_A_QUOTE') AND $styleid != $yourstyle) { 
Brilliant! That worked perfectly.
For anyone else who needs it... The following line number mentioned above can be
PHP Code:
if (!defined('THIS_IS_A_QUOTE') AND $vbulletin->userinfo['styleid'] != xx) { 
change the xx to the style id number that you don't want the info to show up in.

Thanks Cap'n Steve!
Reply With Quote
  #649  
Old 09-30-2008, 11:38 PM
Forgott3n Forgott3n is offline
 
Join Date: Oct 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to bother again Cap'n Steve, but do you have an idea what could be going on? We're running 3.7.3 PL1

Quote:
Originally Posted by Forgott3n View Post
Hi we're using vB 3.7.2 and it will not sort the top quotes:

http://www.avrilbandaids.com/forums/...ing&order=desc

What's going on?
Reply With Quote
  #650  
Old 10-05-2008, 01:41 AM
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

Try the advice from this post.
Reply With Quote
  #651  
Old 10-05-2008, 07:38 AM
Forgott3n Forgott3n is offline
 
Join Date: Oct 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve View Post
Try the advice from this post.
That seems to have fixed it, thank you!

[EDIT] I've seem to be getting a lot of errors since I've made the fix:

Quote:
Database error in vBulletin 3.7.3:

Invalid SQL:

INSERT INTO guestquoteratings
(ip, quoteid, date, rating) VALUES
("208.101.13.14", 21, 1223328061, 4);

MySQL Error : Duplicate entry '21-208.101.13.14' for key 1
Error Number : 1062
Request Date : Monday, October 6th 2008 @ 05:21:01 PM
Error Date : Monday, October 6th 2008 @ 05:21:09 PM
Script : http://www.avrilbandaids.com/forums/...teid=21&vote=4
Referrer : http://www.avrilbandaids.com/forums/...ing&order=desc
IP Address : 208.101.13.14
Username : Unregistered
Classname : vB_Database_MySQLi
MySQL Version :
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 09:18 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.04639 seconds
  • Memory Usage 2,330KB
  • 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
  • (4)bbcode_php
  • (8)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
  • (3)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