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
  #342  
Old 04-20-2007, 01:56 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

Any errors? If you're talking about the site in your signature, it's not currently installed.
Reply With Quote
  #343  
Old 04-24-2007, 12:42 AM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A new error for you to look at, cap'n Steve.

Quote:
Warning: Cannot modify header information - headers already sent by (output started at /my/path/to/forum/htdocs/forum/includes/adminfunctions.php:3319) in /includes/functions.php on l
I noticed my 'submit' button & post counts (in postbit) were suddenly missing for no apparent reason. I uninstalled quoteit (v3.16) and then reinstalled.
As it the plugin was uploaded, it gave the above error.

I'm at a complete loss as to what it even means LoL
Reply With Quote
  #344  
Old 04-25-2007, 03: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

Could you tell me what's on line 3319 in includes/adminfunctions.php? It looks like there was an error installing.
Reply With Quote
  #345  
Old 04-25-2007, 11:18 AM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve View Post
Could you tell me what's on line 3319 in includes/adminfunctions.php? It looks like there was an error installing.


Code:
$output_handler = @ini_get('output_handler');
The surrounding code:-

Code:
// ############################## Start vbflush ####################################
/**
* Force the output buffers to the browser
*/
function vbflush()
{
    static $output_handler = null;
    if ($output_handler === null)
    {
        $output_handler = @ini_get('output_handler');
    }

    if ($output_handler == 'ob_gzhandler')
    {
        // forcing a flush with this is very bad
        return;
    }
Reply With Quote
  #346  
Old 04-26-2007, 12:30 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. I'm really not sure what's causing the output. Try installing it again, and make sure you get the whole error message. It looks like the previous one was referencing something in includes/functions.php.
Reply With Quote
  #347  
Old 04-26-2007, 03:33 PM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right this moment, i'm in the process of swapping hosts - but, when installing, the error messages & vanishes so quickly - i had to do it gawd knows how many times just to get that much copied LoL.
as soon as all is done here with the swapping hosts, i'll get onto checking the re-installation.
Reply With Quote
  #348  
Old 04-27-2007, 02:57 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

You could try just taking a screenshot.
Reply With Quote
  #349  
Old 04-27-2007, 04:39 AM
iBaker's Avatar
iBaker iBaker is offline
 
Join Date: Oct 2006
Location: Melbourne, Australia
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #350  
Old 04-27-2007, 05:16 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just like the last time I upgraded your mod, the mod no longer shows quotes and the 3 quoteit sheduled tasks became disabled. I re-enabled those 3, ran them and still does not show up. Any reason?
Reply With Quote
  #351  
Old 04-27-2007, 08:31 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

Try saving the QuoteIt! Options and a set of Usergroup Permissions. Like I said, you don't need to worry about the scheduled tasks.
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:30 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.04673 seconds
  • Memory Usage 2,342KB
  • 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_code
  • (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
  • (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