Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

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
  #72  
Old 04-25-2005, 09:05 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 set "Show random quote" to yes in the QuoteIt options? It won't show up if that's not enabled.
Reply With Quote
  #73  
Old 04-26-2005, 12:57 AM
anarchystar anarchystar is offline
 
Join Date: Dec 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve
Did you set "Show random quote" to yes in the QuoteIt options? It won't show up if that's not enabled.
yea, everything is set up corectly ... it just does'nt show up, not even the template. If I go to /quotes.php all my old quotes display, plus I can add quotes from that page, and from posts with the "submit to quotes" link.

I am completely stumped, I even went back and double checked all the code modifications, etc. Any tips on what the problem might be ? :ermm:
Reply With Quote
  #74  
Old 04-26-2005, 05:00 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

For some reason, the template isn't making it to the page. Either $showrandomquote is misspelled in the FORUMHOME template, or something's wrong with your quote_randomquote template. This is what should be in that template:

HTML Code:
<style type="text/css">
.vote {
	color:$stylevar[smallfont_fgcolor];
	font-family:'trebuchet ms',helvetica,sans-serif;
	font-size:110%;
	font-weight:bold;
	background-color:$stylevar[button_bgcolor];
<if condition="$vboptions[ratequote]==1">
	width:25px;
	height:25px;
</if>
	border-top-color:$stylevar[alt2_bgcolor];
	border-left-color:$stylevar[alt2_bgcolor];
	border-right-color:$stylevar[alt1_bgcolor];
	border-bottom-color:$stylevar[alt1_bgcolor];
	filter:progid:DXImageTransform.Microsoft.Gradient
	(GradientType=0,StartColorStr='#aa$gradient1',EndColorStr='#aa$gradient2');}
}
</style>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[tablewidth]" align="center">
<thead>
	<tr>
		<td class="tcat">
			$vbphrase[random_quote]
		</td><td class="tcat" align="right">
			<div align="right">

			(<a href="$vboptions[bburl]/quotes.php?do=addquote">$vbphrase[add_a_quote]</a>

			<if condition="$bbuserinfo['permissions']['adminpermissions']">
				 | <a href="$vboptions[bburl]/quotes.php?do=delquote&quoteid=$randomquote[quoteid]">$vbphrase[delete_this_quote]</a> | <a href="$vboptions[bburl]/quotes.php?do=editquote&quoteid=$randomquote[quoteid]">$vbphrase[edit_this_quote]</a>
			</if>

			 | <a href="$vboptions[bburl]/quotes.php?do=list">$vbphrase[view_all_quotes]</a>)
		</div>
	 	 	 </td><td class="tcat" style="width:15px;">
	 	 	<div style="float:right;" align="right">
			<a href="#top" onclick="return toggle_collapse('forumhome_randomquote')"><img id="collapseimg_forumhome_randomquote" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomquote].gif" alt="" border="0" /></a></div>

		</td>
	</tr>
</thead>
<tbody id="collapseobj_forumhome_randomquote" style="$vbcollapse[collapseobj_forumhome_randomquote]">
	<tr><td class="alt1" width="30%"></td>
		<td class="alt1"><div style="font-style:italic;margin-right:10%;">
		<p>&quot;$randomquote[quote]&quot;</p>
		<p style="font-weight:bold;margin-left:25%;">- $randomquote[author]<if condition="$randomquote[context]"> ($randomquote[context])</if></p>
		</div>
		</td><td class="alt1" valign="top">
			<a style="float:$stylevar[right];" href="$vboptions[bburl]/quotes.php?do=view&quoteid=$randomquote[quoteid]">#$randomquote[quoteid]</a>
		</td>

	</tr>
<if condition="$vboptions[ratequote]==3">
	<tr><td class="alt1" align="left" colspan="3">
	$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]
	</td>
</if>

<if condition="$vboptions[ratequote]==1">
	<tr><td class="alt1" align="left">
	$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]
	</td>
	<td class="alt1" align="right" colspan="2">$vbphrase[rate_this_quote]: 
	<form name="rateplus" action="$vboptions[bburl]/quotes.php">
	<input type="hidden" name="do" id="do" value="rate" />
	<input type="hidden" name="quoteid" id="quoteid" value="$randomquote[quoteid]" />
	<input type="hidden" name="vote" id="vote" value="plus" />
	<input type="submit" value="+" class="vote" />
	</form>
	&nbsp;
	<form name="rateminus" action="$vboptions[bburl]/quotes.php">
	<input type="hidden" name="do" id="do" value="rate" />
	<input type="hidden" name="quoteid" id="quoteid" value="$randomquote[quoteid]" />
	<input type="hidden" name="vote" id="vote" value="minus" />
	<input type="submit" value="-" class="vote" /></form>
	</td>
</if>
<if condition="$vboptions[ratequote]==2">
	<tr><td class="alt1" align="left">
	$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]
	</td>
	<td class="alt1" align="right" colspan="2">$vbphrase[rate_this_quote]:
	<form name="voting" id="voting" action="$vboptions[bburl]/quotes.php">
	<input type="hidden" name="quoteid" id="quoteid" value="$randomquote[quoteid]" />
	<select name="vote" id="vote" onchange="document.voting.submit();">
	<option value=""></option>
	<option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
	<option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
	<option value="3">&nbsp;&nbsp;3&nbsp;&nbsp;</option>
	<option value="4">&nbsp;&nbsp;4&nbsp;&nbsp;</option>
	<option value="5">&nbsp;&nbsp;5&nbsp;&nbsp;</option>
	</select>
	</form>
	</td>
</if>

</tr>
</tbody>
</table><br />
Reply With Quote
  #75  
Old 04-26-2005, 07:26 AM
anarchystar anarchystar is offline
 
Join Date: Dec 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will check that against what I have, and check the spelling of $showrandomquote also, but I am pretty sure I cut and paste about everything from teh install direstions. I'll give it another shot and let you know how it turns out. Thanks again
Reply With Quote
  #76  
Old 04-26-2005, 09:40 AM
anarchystar anarchystar is offline
 
Join Date: Dec 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well ... $showrandomquote was spelled alright and this is what was in my quote_randomquote template:

--- I will go back and check the code modifications again, just to make sure.

Code:
<style type="text/css">
.vote {
	color:$stylevar[smallfont_fgcolor];
	font-family:'trebuchet ms',helvetica,sans-serif;
	font-size:110%;
	font-weight:bold;
	background-color:$stylevar[button_bgcolor];
<if condition="$vboptions[ratequote]==1">
	width:25px;
	height:25px;
</if>
	border-top-color:$stylevar[alt2_bgcolor];
	border-left-color:$stylevar[alt2_bgcolor];
	border-right-color:$stylevar[alt1_bgcolor];
	border-bottom-color:$stylevar[alt1_bgcolor];
	filter:progid:DXImageTransform.Microsoft.Gradient
	(GradientType=0,StartColorStr='#aa$gradient1',EndColorStr='#aa$gradient2');}
}
</style>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[tablewidth]" align="center">
<thead>
	<tr>
		<td class="tcat">
			$vbphrase[random_quote]
		</td><td class="tcat" align="right">
			<div align="right">

			(<a href="$vboptions[bburl]/quotes.php?do=addquote">$vbphrase[add_a_quote]</a>

			<if condition="$bbuserinfo['permissions']['adminpermissions']">
				 | <a href="$vboptions[bburl]/quotes.php?do=delquote&quoteid=$randomquote[quoteid]">$vbphrase[delete_this_quote]</a> | <a href="$vboptions[bburl]/quotes.php?do=editquote&quoteid=$randomquote[quoteid]">$vbphrase[edit_this_quote]</a>
			</if>

			 | <a href="$vboptions[bburl]/quotes.php?do=list">$vbphrase[view_all_quotes]</a>)
		</div>
	 	 	 </td><td class="tcat" style="width:15px;">
	 	 	<div style="float:right;" align="right">
			<a href="#top" onclick="return toggle_collapse('forumhome_randomquote')"><img id="collapseimg_forumhome_randomquote" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomquote].gif" alt="" border="0" /></a></div>

		</td>
	</tr>
</thead>
<tbody id="collapseobj_forumhome_randomquote" style="$vbcollapse[collapseobj_forumhome_randomquote]">
	<tr><td class="alt1" width="30%"></td>
		<td class="alt1"><div style="font-style:italic;margin-right:10%;">
		<p>&quot;$randomquote[quote]&quot;</p>
		<p style="font-weight:bold;margin-left:25%;">- $randomquote[author]<if condition="$randomquote[context]"> ($randomquote[context])</if></p>
		</div>
		</td><td class="alt1" valign="top">
			<a style="float:$stylevar[right];" href="$vboptions[bburl]/quotes.php?do=view&quoteid=$randomquote[quoteid]">#$randomquote[quoteid]</a>
		</td>

	</tr>
<if condition="$vboptions[ratequote]==3">
	<tr><td class="alt1" align="left" colspan="3">
	$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]
	</td>
</if>

<if condition="$vboptions[ratequote]==1">
	<tr><td class="alt1" align="left">
	$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]
	</td>
	<td class="alt1" align="right" colspan="2">$vbphrase[rate_this_quote]: 
	<form name="rateplus" action="$vboptions[bburl]/quotes.php">
	<input type="hidden" name="do" id="do" value="rate" />
	<input type="hidden" name="quoteid" id="quoteid" value="$randomquote[quoteid]" />
	<input type="hidden" name="vote" id="vote" value="plus" />
	<input type="submit" value="+" class="vote" />
	</form>
	&nbsp;
	<form name="rateminus" action="$vboptions[bburl]/quotes.php">
	<input type="hidden" name="do" id="do" value="rate" />
	<input type="hidden" name="quoteid" id="quoteid" value="$randomquote[quoteid]" />
	<input type="hidden" name="vote" id="vote" value="minus" />
	<input type="submit" value="-" class="vote" /></form>
	</td>
</if>
<if condition="$vboptions[ratequote]==2">
	<tr><td class="alt1" align="left">
	$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]
	</td>
	<td class="alt1" align="right" colspan="2">$vbphrase[rate_this_quote]:
	<form name="voting" id="voting" action="$vboptions[bburl]/quotes.php">
	<input type="hidden" name="quoteid" id="quoteid" value="$randomquote[quoteid]" />
	<select name="vote" id="vote" onchange="document.voting.submit();">
	<option value=""></option>
	<option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
	<option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
	<option value="3">&nbsp;&nbsp;3&nbsp;&nbsp;</option>
	<option value="4">&nbsp;&nbsp;4&nbsp;&nbsp;</option>
	<option value="5">&nbsp;&nbsp;5&nbsp;&nbsp;</option>
	</select>
	</form>
	</td>
</if>

</tr>
</tbody>
</table><br />
Reply With Quote
  #77  
Old 04-26-2005, 10:18 AM
anarchystar anarchystar is offline
 
Join Date: Dec 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is kicking my ass, I checked all the code again, it's perfect. My quoteit settings are good, it just won't show up.

here is the listbit page if you wanna look: http://forums.anarchystar.com/quotes.php

Like I said, I can add quotes, delete quotes, and edit them. It just won't display on the forum index page. I have even tried it on different places in the template.
Let me know if you think of anything else I can try.
Reply With Quote
  #78  
Old 04-26-2005, 04:55 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

Hmmm. The problem is that $showrandomquote ends up empty for some reason. That means either there's something wrong with the index.php code (although this wouldn't explain why it doesn't show up on your portal page either), or it's never getting the template for some reason.

Enable debug mode (by adding $DEBUG = 1; at the bottom of includes/config.php) and see if the quote_randomquote template is in the list of templates used on that page. If it is, click on "explain" and see if there are any queries that mention your quotes table. If there aren't, then it must be a problem with your settings.
Reply With Quote
  #79  
Old 04-27-2005, 07:12 AM
anarchystar anarchystar is offline
 
Join Date: Dec 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The quote_randomquote template is not listed anywhere on my index.php or in the portal. I will look at my settings again, but I am sure that everything is set up correctly.
Can you think of any other reason that cause the template not to appear?
Reply With Quote
  #80  
Old 04-27-2005, 07:39 AM
anarchystar anarchystar is offline
 
Join Date: Dec 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, just so you know I am not completly nuts, I attached a screen shot of the FORUMHOME template where $showrandomquote is, and a shot of my settings from my AdminCP, and the html output of my index.php. Maybe you will see something I missed.
Meanwhile, I will go look at the code again ... is there any chance this is something in a data table?
Reply With Quote
  #81  
Old 04-27-2005, 06:08 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

In your admincp, go to vBulletin Options, then vBulletin Options and select Forums Home Page Options. There's a Display Random Quote option there that should also be set to yes. It should be already, since you set it from the QuoteIt! Options, but check to be sure.

If that doesn't work, click the debug mode explain link that I talked about in my previous post and see if it mentions your quotes table.

Besides that, the only thing that could be wrong is something with the index.php edit, although like I said, that wouldn't affect vBadvanced. Post the code you added to index.php and I'll check it out to be safe.
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 08:04 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
  • Page Generation 0.06491 seconds
  • Memory Usage 2,347KB
  • 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
  • (1)bbcode_html
  • (1)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