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
  #442  
Old 09-06-2007, 10:00 AM
pauleine pauleine is offline
 
Join Date: Oct 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your welcome!
Reply With Quote
  #443  
Old 09-12-2007, 10:33 AM
treelovinhippie treelovinhippie is offline
 
Join Date: Jul 2007
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um, I just installed this on v3.6.8 and now I can't access my admin panel.

Getting this error:

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3717

I've deleted all the uploaded files and still getting this error... any ideas?
Reply With Quote
  #444  
Old 09-13-2007, 04:45 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

<a href="showthread.php?p=1153153#post1153153" title="vBulletin.org Forum - Post 1153153">Here's how to disable the plugin system.</a>

Do that, uninstall QuoteIt! and then redownload, reupload and reinstall it.
Reply With Quote
  #445  
Old 09-20-2007, 05:54 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chadi View Post
This mod has a problem that needs to be fixed, hopefully will be.


Parse error: syntax error, unexpected T_STRING in /home/user/public_html/tags/index.php(194) : eval()'d code on line 1


The kind support team at Zoints who created Zoints Tag module spent countless hours on my site trying to figure out why I kept getting the below errors oddly, on two different modules: Zoints Tags and vBISpy.

Their final find was this:

$headinclude =& $vbulletin->templatecache['headinclude'];

That is the line that is causing the problem, it is not the correct method of parsing a template to a variable.



I hope you can correct this. The errors went away after disabling the "parse_templates" in the quoteit plugin.
Considering Steve is not supporting this anymore, maybe someone else can fix this?
Reply With Quote
  #446  
Old 10-14-2007, 04:38 PM
Kaycee123 Kaycee123 is offline
 
Join Date: Jun 2007
Location: Alberta, Canada
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iBaker View Post
Thanks Cap for a great mod.

I have installed it and made a few changes to the display which I hope is ok but I am not a coder as such but the attached screen shot is what I was trying to achieve and it works in both IE and Firefox.

The Quote_ListBit has been changed to:
Code:
 
<tr><td class="quoterow {$quoteclass}" align="left" id="quote{$quote['quoteid']}-{$globalcounter}">
<table>
<tr>
<td width="15%" align="Top">
 <if condition="$_REQUEST['do'] != 'preview' AND !$sidebar">
  Quote #:<a href="quotes.php?{$vbulletin->session->vars['sessionurl']}do=view&amp;quoteid={$quote['quoteid']}">{$quotedisplayid}</a><br>
  {$vbphrase['added_by']}: <a href="member.php?{$vbulletin->session->vars['sessionurl']}userid={$quote['userid']}">{$quote['username']}</a><div class="date">{$quote['date']}</div>
  <if condition="$quoteitoptions['reportquotes'] AND $quoteitpermissions['canreportquotes']">
   <a id="report{$quote['quoteid']}-{$globalcounter}" rel="nofollow" href="quotes.php?{$vbulletin->session->vars['sessionurl']}{$quotedisplay['querystring']}{$quotedisplay['orderstring']}&amp;page={$quotedisplay['page']}&amp;do=report&amp;quoteid={$quote['quoteid']}" onclick="reportQuote(event, {$quote['quoteid']});return false;"><img class="inlineimg" src="{$stylevar['imgdir_button']}/report.gif" alt="{$vbphrase['report_this_quote']}" /></a>
  <br>
  </if>
  </div>
 <else />
  <if condition="$sidebar">
   Quote #:<a href="quotes.php?{$vbulletin->session->vars['sessionurl']}do=view&amp;quoteid={$quote['quoteid']}">#{$quotedisplayid}</a>
  </if>
 </if>
</td>
<td>
<img src="{$stylevar['imgdir_misc']}/quotation-open.png" alt="“" width="60px" height="51px">&nbsp;
</td>
<td width="60%" align="center">
<span class="smallfont" id="quotetext{$quote['quoteid']}-{$globalcounter}">{$quote['quote']}
<div>
 <b><if condition="!empty($quote['author'])">
  <div class="author" id="author{$quote['quoteid']}-{$globalcounter}">- {$quote['author']}</div>
 </if>
 <if condition="$quoteitoptions['enablecontext'] AND !empty($quote['context'])">
  <span class="context" id="context{$quote['quoteid']}-{$globalcounter}">({$quote['context']})</span>
 </if></b>
</div></span>
</td>
<td>
<img src="{$stylevar['imgdir_misc']}/quotation-close.png" alt="“" width="60px" height="51px">&nbsp;
</td>
<td width="15%" align="right" valign="top">
  <if condition="($quote['userid'] == $vbulletin->userinfo['userid'] AND $quoteitpermissions['caneditownquotes']) OR ($quote['userid'] != $vbulletin->userinfo['userid'] AND $quoteitpermissions['caneditotherquotes'])">
   <a rel="nofollow" href="quotes.php?{$vbulletin->session->vars['sessionurl']}{$quotedisplay['querystring']}{$quotedisplay['orderstring']}&amp;page={$quotedisplay['page']}&amp;do=editquote&amp;quoteid={$quote['quoteid']}" onclick="editQuote(event, {$quote['quoteid']}, {$globalcounter});return false;"><img class="inlineimg" src="{$stylevar['imgdir_button']}/edit.gif" alt="{$vbphrase['edit_this_quote']}" /></a>
  <br>
  </if>
  <if condition="($quote['userid'] == $vbulletin->userinfo['userid'] AND $quoteitpermissions['candeleteownquotes']) OR ($quote['userid'] != $vbulletin->userinfo['userid'] AND $quoteitpermissions['candeleteotherquotes'])">
   <a rel="nofollow" href="quotes.php?{$vbulletin->session->vars['sessionurl']}{$quotedisplay['querystring']}{$quotedisplay['orderstring']}&amp;page={$quotedisplay['page']}&amp;do=delquote&amp;quoteid={$quote['quoteid']}" onclick="deleteQuote(event, {$quote['quoteid']});return false;">{$vbphrase['delete_this_quote']}</a> 
  <br>
  </if>
  <if condition="$quoteitpermissions['canmoderatequotes'] AND THIS_SCRIPT == 'quotes'">
   <input class="inlineimg" type="checkbox" name="modquotes[{$quote['quoteid']}]" id="modquotes{$quote['quoteid']}" value="y" onclick="selectQuote({$quote['quoteid']});"{$checked[$quote['quoteid']]} />
  </if>
</td>
</tr>
<tr>
<td colspan="5" align="center">
<if condition="$_REQUEST['do'] != 'preview' AND !$sidebar">
 <if condition="$quoteitoptions['ratings']">
  <span id="rating{$quote['quoteid']}-{$globalcounter}">{$ratethis}</span>&nbsp;&nbsp;
  <span id="stats{$quote['quoteid']}-{$globalcounter}">{$vbphrase['total_rating']}: {$quote['rating']} - {$vbphrase['votes']}: {$quote['votes']} - {$vbphrase['average']}: {$quote['average']}</span>
 </if>
 <span class="inlineimg unapproved" id="unapproved{$quote['quoteid']}-{$globalcounter}">
 <img src="{$stylevar['imgdir_misc']}/moderated.gif" alt="{$vbphrase['unapproved_quote']}" <if condition="$quote['approved']">class="approved" </if>/>
 </span>
</div>
</if>
</td>
</tr>
</table>
</td>
</tr>
The quote_randomquote has been changed to:
Code:
 
<if condition="!defined('QUOTE_FORM_ADDED') AND ($quoteitpermissions['caneditownquotes'] OR $quoteitpermissions['caneditotherquotes'] OR $quoteitpermissions['candeleteotherquotes'] OR $quoteitpermissions['candeleteownquotes'])">
<form action="quotes.php" method="post" id="sneakyform">
 <input type="hidden" name="s" value="{$vbulletin->session->vars['sessionhash']}" />
 <input type="hidden" name="do" value="edit" />
 <input type="hidden" name="quoteid" id="hiddenquoteid" />
 <input type="hidden" name="quote" id="hiddenquote" />
 <input type="hidden" name="author" id="hiddenauthor" />
 <input type="hidden" name="context" id="hiddencontext" />
 <input type="hidden" name="category[]" id="hiddencategory" />
 <input type="hidden" name="all" id="hiddenall" value="{$sneaky['all']}" />
 <input type="hidden" name="searchtext" id="hiddensearchtext" value="{$sneaky['searchtext']}" />
 <input type="hidden" name="searchauthor" id="hiddensearchauthor" value="{$sneaky['searchauthor']}" />
 <input type="hidden" name="searchcontext" id="hiddensearchcontext" value="{$sneaky['searchcontext']}" />
 <input type="hidden" name="sortby" id="hiddensortby" value="{$sneaky['sortby']}" />
 <input type="hidden" name="order" id="hiddenorder" value="{$sneaky['order']}" />
</form>
</if>
<table id="forumhome_randomquote{$quotecount}" class="randomtable tborder" cellpadding="0" cellspacing="0" width="{$stylevar['tablewidth']}" align="center">
<thead>
 <tr><td class="tcat">
  <div class="quoteheading">
   <if condition="$sidebar">{$vbphrase['quote']}
   <else />
   <a href="quotes.php?{$vbulletin->session->vars['sessionurl']}do=list"><if condition="$sidebar">{$vbphrase['all']}<else />{$vbphrase['random_quote']}</if></a>
   </if>
  </div>
  <div class="collapsebutton">
   <a href="#top" onclick="return toggleMultiCollapse('forumhome_randomquote');"><img id="collapseimg_forumhome_randomquote{$quotecount}" src="{$stylevar['imgdir_button']}/collapse_tcat{$vbcollapse['collapseimg_forumhome_randomquote']}.gif" alt="{$vbphrase['collapse_this']}" class="inlineimg" /></a>
  </div>
 </td></tr>
 
 <tr><td class="thead">
  Random Quote
 </td></tr>
 
</thead>
<tbody id="collapseobj_forumhome_randomquote{$quotecount}" style="{$vbcollapse['collapseobj_forumhome_randomquote']}">
{$quotelistbit}
</tbody>
</table>
<!--
Powered by QuoteIt! {$quoteitoptions['version']} 
{$quoteitdebug}
-->
The only thing now is how to hide the Moderation drop down box to show only for moderators - any suggestions?

This works FANTASTIC - makes the Random quote box much smaller and looks much better on the forum. Thank you so much - I was trying to fix this over and over and couldn't get it to work. Now it looks great.

Thank you very much for this whole modification CapN Steve, our members LOVE it!
Reply With Quote
  #447  
Old 10-15-2007, 08:37 PM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any tips on how I can make the " " darker?

At present you can hardly see them on my site.

Great mod though
Reply With Quote
  #448  
Old 10-15-2007, 09:44 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

They're made to be light, because sometimes the text overlaps them, but if you want them darker the image files are in this post.
Reply With Quote
  #449  
Old 10-15-2007, 09:59 PM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve View Post
They're made to be light, because sometimes the text overlaps them, but if you want them darker the image files are in this post.
Thanks for your reply steve. For some reason the images got uploaded into the wrong folder, but managed to get it sorted now!

Im hoping you may be able to help with the next question! Ive been trying for the past 30 minutes but as I dont know much about code im not having much luck!

Quotes : 2

Is there anyway I can make it so people are able to click on the number and be taken to that persons quotes?

If thats not possible, is there anyway to either make the "quotes" or the "number" clickable so it takes the user to quotes.php?

PHP Code:
<!-- BEGIN QuoteIt! -->
                <if 
condition="$show['quotecount']">
                <
div class="info">
                    {
$vbphrase['quotes']}: {$post['quotecount']}
                </
div>
                </if>
                <!-- 
END QuoteIt! --> 
Reply With Quote
  #450  
Old 10-16-2007, 06:43 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

There's no way to view quotes submitted by a certain user, but if you just want a link to the qutoes page, replace this:

HTML Code:
{$vbphrase['quotes']}: {$post['quotecount']}
with this:

HTML Code:
<a href="quotes.php">{$vbphrase['quotes']}: {$post['quotecount']}</a>
Reply With Quote
  #451  
Old 10-16-2007, 08:30 PM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi steve, Thanks for your reply. Worked a treat.

Got a few problems that have popped up and wondered if you were able to shed any light on them.

When I goto delete a quote - I get a pop up box saying "No quotes matched your search" - however when I refresh the quote is gone.

The other question is the post count. It seems to have stopped working. Currently Ive got no quotes, when deleted im still showing as having two. Ive tried to refresh using the quote option in the acp, but this dosent work either.

Plus when you now post a quote, the amount dosent go up.

Any hints at all?
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:24 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.04627 seconds
  • Memory Usage 2,346KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_php
  • (3)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
  • (2)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