Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
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
  #122  
Old 01-13-2007, 12:45 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve
zetetic - Yes, I figured there were enough options to give it its own section.
That makes sense. I just think the option to turn the hack on/off should be at the top to be consistent with vBulletin. Anyway it's a minor point. Thanks for all your work on this great add-on!
Reply With Quote
  #123  
Old 01-13-2007, 08:23 PM
Mum Mum is offline
 
Join Date: Jun 2006
Location: New Zealand
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't have permissionsl, followed the instructions 'NOTE: If you get errors stating that you don't have permission to view the page on either the "Moderate Quotes" page or the main quotes page, you should rebuild the bitfields by going to www.yourdomain.com/admincp/index.php?do=buildbitfields' but didn't change anything, still can't moderate comments. Have uninstalled. Running 3.6.4
Reply With Quote
  #124  
Old 01-13-2007, 09:07 PM
BaconDelight BaconDelight is offline
 
Join Date: Jan 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve View Post
BaconDelight - If it helps, clientscript/vbulletin_css/quoteit_main.css is used by all browsers, quoteit_ie_all.css is used by all versions of Internet Explorer, and quoteit_ie_lt_7.css is used by Internet Explorer 6 and below.
Yeah, I've got it very nearly presentable. Good enough that I've gone live.

Another little issue - if you put in a search term that it can't find, the redirect is wrong. Instead of pointing to http://www.[domain].com/[forum]/quotes.php, it redirects to http://www.[domain].com/quotes.php
Reply With Quote
  #125  
Old 01-14-2007, 12:05 AM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I discovered that today too, BaconDelight. I spent an hour or two trying to track down the root of that problem with no success - even changing every

$vbulletin->url = 'quotes.php?'

to

$vbulletin->url = $vbulletin->options['bburl'] . '/quotes.php?'

in both the quotes.php and functions_quoteit.php files. That didn't break anything (that I noticed), but it didn't fix the problem either.
Reply With Quote
  #126  
Old 01-14-2007, 01:23 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

Hmm. It used to be like that, until I discovered it was redirecting to domain.com/domain.com/forums/quotes.php. Maybe they changed something again, I'll take a look.
Reply With Quote
  #127  
Old 01-14-2007, 01:49 AM
yonglvnv yonglvnv is offline
 
Join Date: Apr 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve View Post
yonglvnv - For some reason, all the external files aren't getting included. Does $headinclude show up in your adv_portal template? Anyway, this should work for a temporary fix; in adv_portal find this:
HTML Code:
</head>
Above that, add:
HTML Code:
	<if condition="$quoteitoptions['ratings'] OR $quoteitpermissions['canmoderatequotes'] OR $quoteitoptions['enablecategories'] OR $quoteitpermissions['canreportquotes']">
		<script type="text/javascript" src="clientscript/quoteit_common.js"></script>
	</if>
	<if condition="$quoteitoptions['ratings'] AND $quoteitpermissions['canratequotes']">
		<script type="text/javascript" src="clientscript/quoteit_voting.js"></script>
	</if>
	<if condition="$quoteitpermissions['canmoderatequotes']">
		<script type="text/javascript" src="clientscript/quoteit_moderation.js"></script>
	</if>

	<!--[if lt IE 7]>
		<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/quoteit_ie_lt7.css" />
		<style type="text/css">
		.openquote {
			filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src="{$stylevar['imgdir_misc']}/quotation-open.png", sizingMethod="image");
		}

		.closequote {
			filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src="{$stylevar['imgdir_misc']}/quotation-close.png", sizingMethod="image");
		}
		</style>
	<![endif]-->
	<!--[if IE]>
		<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/quoteit_ie_all.css" />
	<![endif]-->
Thanks Cap'n Steve, above code addition made it a look lot better. I did need to put the full url path to java scripts to make it work, but collapse and close quote graphics are still way off. See attachment. When this is corrected, $showrandomquote will work perfectly in vba block. Also, I checked and $headinclude was in the vba_portal template. Thanks again!
Reply With Quote
  #128  
Old 01-14-2007, 10:04 AM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I wanted to upgrade from 3.0 to 3.07 and I am getting this error message:

Database error in vBulletin 3.6.4:
Quote:
Invalid SQL:

ALTER TABLE vb3_quotes
MODIFY COLUMN date INT (10) UNSIGNED NOT NULL DEFAULT;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2
Error Number : 1064
Reply With Quote
  #129  
Old 01-14-2007, 06:59 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The 'delete' function seems to behave strangely. When I click delete on a quote an empty confirmation box pops up, and when I click "ok" the quote disappears, but the quote-box header remains. I have to refresh to get a new random quote.
Reply With Quote
  #130  
Old 01-14-2007, 09:54 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to keep piling them on, but I found another one Cap'n.

While I was working on the templates instead of disabling the hack I just made it non-viewable to the registered users usergroup, and that worked fine. However, when I went to make it non-viewable to unregistered/not logged in usergroup, I got this error upon saving the settings:

Code:
Invalid SQL:
	INSERT INTO cron
(weekday, day, hour, minute, filename, loglevel, title) VALUES
(-1, -1, -1, "a:1:{i:0;i:0;}", "./includes/cron/guestquotes.php", 1, "QuoteIt! Guest Voting Cleanup");

MySQL Error  : Unknown column 'title' in 'field list'
I went back in and selected 'no' for all the other options and it saved fine.
Reply With Quote
  #131  
Old 01-14-2007, 11:53 PM
dcsbclan dcsbclan is offline
 
Join Date: Apr 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mum View Post
Don't have permissionsl, followed the instructions 'NOTE: If you get errors stating that you don't have permission to view the page on either the "Moderate Quotes" page or the main quotes page, you should rebuild the bitfields by going to www.yourdomain.com/admincp/index.php?do=buildbitfields' but didn't change anything, still can't moderate comments. Have uninstalled. Running 3.6.4
Getting this same problem. =\
Reply With Quote
Reply


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 12:59 PM.


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.05185 seconds
  • Memory Usage 2,331KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_html
  • (5)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