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

Reply
 
Thread Tools
QuoteIt! - Quote Database Details »»
QuoteIt! - Quote Database
Version: 3.05, by Cap'n Steve Cap'n Steve is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-04-2005 Last Update: 01-11-2007 Installs: 113
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

QuoteIt! version 3.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 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.

Other versions (development will continue for the 3.6 version only): QuoteIt! 3 for vBulletin 3.6.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
  #112  
Old 11-15-2005, 04:07 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

Quote:
Originally Posted by OneShot
One Question tho, is it possible to make the number of Quotes to moderate appear in the AdminCP Control Panel Home below Threats, Events and so on to moderate?
Not yet. I'll put that on the list to be included in the next version.

Quote:
Originally Posted by TygerTyger
And would it be possible for number of ratings (Total Ratings to count the number of times a quote has been rated, as opposed to adding up the scores it has been given?
$randomquote[votes] holds the number of votes. I'll take a look at getting the ids in order, and I already know about the phrase. It's not missing, I just can't seem to find the right phrasegroup for it.

Quote:
Originally Posted by Greebo
I've got the quotes showing up in my portal homepage, but whenever anyone, myself included, attempts to add a quote, edit a quote, or view all quotes (in short any access to quotes.php) all we get is a blank page with just html and body tags in it.
I really have no idea. Could you put the quotes.php file back up so I can take a look at it?
Reply With Quote
  #113  
Old 11-15-2005, 06:17 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please tell me this is a fully phrased hack!!



I'm all over it if it is...looks great!!
Reply With Quote
  #114  
Old 11-15-2005, 10:53 AM
TygerTyger TygerTyger is offline
 
Join Date: Aug 2005
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Certainly is phrased

I'm allllllmost done setting this to use much less tables, but I'm stuck. On the FORUMHOME I have it set so that if the rating dropdown is available, the average vote scores etc don't show. Once you've voted, it is reversed. This works fine on FORUMHOME using the basic <if><else /></if> that's already in place in the mod, but it doesn't work on the View All Quotes page? The <else /> part just doesn't display.

And secondly the last things I need to customise are $sortby and $votebutton, I can't find where to do so for this mod? Are they standard vBulletin variables and not specific to the mod?

Edit: Hm, the title of my View All Quotes page is Array[bbtitle]?
Reply With Quote
  #115  
Old 11-15-2005, 11:19 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

Quote:
Originally Posted by TygerTyger
And secondly the last things I need to customise are $sortby and $votebutton, I can't find where to do so for this mod? Are they standard vBulletin variables and not specific to the mod?

Edit: Hm, the title of my View All Quotes page is Array[bbtitle]?
$sortby and $votebutton are both generated in the quotes.php file. To fix the title, find all instances of "$vbulletin->options" in your templates and replace them with "$vboptions". To know what's wrong with your <if> statement, I'd have to see the template.
Reply With Quote
  #116  
Old 11-17-2005, 02:30 AM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for a great port of your hack steve.

Only one problem left, even with context on, the context field is not filled in with a thread reference, it is blank.

Any ideas why this could be or how to fix? Thanks
Reply With Quote
  #117  
Old 11-17-2005, 02:51 AM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve
Just edit the Random Quote plugin so it uses the global_start hook and add this code at the end:
PHP Code:
$threshold ''
Then add the $showrandomquote to whatever templates you want to.
btw, 'woo!'
Reply With Quote
  #118  
Old 11-18-2005, 05:54 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

Quote:
Originally Posted by Borgs8472
Only one problem left, even with context on, the context field is not filled in with a thread reference, it is blank.

Any ideas why this could be or how to fix? Thanks
It should be added to the context after the quote is submitted. It doesn't show up in the box right now.
Reply With Quote
  #119  
Old 11-18-2005, 11:44 AM
nexus851 nexus851 is offline
 
Join Date: Oct 2005
Location: LA
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems after i installed the quoteit, i have 2 title bars.. (top one is the CMPS title, and the bottom is the Quoteit title) I want to get rid of one of the bar so it doesnt look funny... Can anyone help me with this? Do i remove or replace a code? Here's my quoteit_random template:


PHP Code:
.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="$vbulletin->options[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="$vbulletin->userinfo['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%">

<
img src="$vboptions[bburl]/plasma/misc/pickup_final.gif" width="80" height="80">

</
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="$vbulletin->options[ratequote]==3">
    <
tr><td class="alt1" align="left" colspan="3">
    
$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]
    </
td>
</if>

<if 
condition="$vbulletin->options[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="$vbulletin->options[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="do" id="do" value="rate" />
    <
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
Reply With Quote
  #120  
Old 11-18-2005, 08:32 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

I can't see your site right now, do you mean you have a second navbar? The quote shouldn't have anything to do with that. Is that your entire quote_randomquote template? I can see already that you're missing a couple lines if it is.
Reply With Quote
  #121  
Old 11-18-2005, 09:20 PM
nexus851 nexus851 is offline
 
Join Date: Oct 2005
Location: LA
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah, 2 navbars. 1 navbar is from the CMPS module, and the other is from the template module i guess..

yeah, that is my entire _quote_randomquote template. If im missing lines, please post
them or revise so that one of the title bar dissapears.

P.S- I had to remove the "/table" line from the bottom of the template because it was messing up the tables of any modules i put after this quoteit module. By removing it, it fixed the 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 11:23 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.07736 seconds
  • Memory Usage 2,409KB
  • 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_php
  • (6)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