Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #232  
Old 01-06-2006, 11:09 PM
Robbed Robbed is offline
 
Join Date: Oct 2005
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CtrlAltDel
change the sql query to reflect what you want...tada
Which line would that be.
Reply With Quote
  #233  
Old 01-07-2006, 05:42 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 Robbed
How do you make it display the newest quotes by default?
You can't yet. :nervous:

Quote:
Originally Posted by tarot
I have what may be a stupid question. I only want the quoter on certain areas/forums on my board. How would I go about doing this?
You'll need a template conditional for specific forums, something like this:
HTML Code:
<if condition="$_REQUEST['f']==forum_id_goes_here">$showrandomquote</if>
You'll also need to move the Random Quote plugin to the global hook and add this at the end of the plugin:
PHP Code:
$threshold ''
Reply With Quote
  #234  
Old 01-07-2006, 06:14 AM
GamerJunk.net's Avatar
GamerJunk.net GamerJunk.net is offline
 
Join Date: Jan 2004
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to used a vbphrase to post a random quote? like

[ quote51 ] or [ randomquote ]
Reply With Quote
  #235  
Old 01-07-2006, 09:09 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

Do you mean you want to use a bbcode so it shows up in the post? It's not possible yet, but it's an interesting idea.
Reply With Quote
  #236  
Old 01-08-2006, 03:04 AM
Warrior's Avatar
Warrior Warrior is offline
 
Join Date: May 2002
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love watching great hacks evolve...
Reply With Quote
  #237  
Old 01-09-2006, 04:43 PM
jaks jaks is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack,

I didn't want to have the large quote block at the top of every page and the Vbadvanced module you posted was a complete mess. No offence. It might be the diff between 3.5.2 and 3.5.3 but I started with a fresh 3.5.3 board yesterday and it simple destroyed the pages.

Anyway long story short, I disassemble the large block and created a sideblock module. It's not the prettiest thing and the code is messy but it works for me.

Using quote_randomquote and if anyone wants to do this here is how I broke it down:

PHP Code:
<tr colspan="2" ><td class="alt1">
<
a href="$vboptions[bburl]/quotes.php?do=addquote">$vbphrase[add_a_quote]</a><br />
<
a href="$vboptions[bburl]/quotes.php?do=list">$vbphrase[view_all_quotes]</a>
</
td></tr>
<
tr><td class="alt1">
<
a style="float:$stylevar[left];" href="$vboptions[bburl]/quotes.php?do=view&quoteid=$randomquote[quoteid]">#$randomquote[quoteid]</a> : $randomquote[author] <p>&quot;$randomquote[quote]&quot;</p>
        
<p style="font-weight:bold;margin-left:25%;">- <if condition="$randomquote[context]"> ($randomquote[context])</if></p>

<if 
condition="$vbulletin->options[ratequote]==3">
    
    
$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]
<
br />    
</if>
<if 
condition="$vbulletin->options[ratequote]==1">
<
br /> <style="float:$stylevar[left];">$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]</style>
    <
br />$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>
<
br />
</if>
<if 
condition="$vbulletin->options[ratequote]==2">
    <
br />
    
$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]
    <
br />$vbphrase[rate_this_quote]:</style>
    <
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></tr>
</if>
<if 
condition="$vbulletin->userinfo['permissions']['adminpermissions']">
<
tr><td  class="alt1">
<
a href="$vboptions[bburl]/quotes.php?do=delquote&quoteid=$randomquote[quoteid]">$vbphrase[delete_this_quote]</a
<
br />
<
a href="$vboptions[bburl]/quotes.php?do=editquote&quoteid=$randomquote[quoteid]">$vbphrase[edit_this_quote]</a>
</
td></tr>
</if> 
That is the whole template minus a bunch of tds. The if statements are all intact and I switch the Phrases to suit my purpose as you will see in the attached screen shot. I moved the author to the top beside the Quote # and will use it as a title. I'll use the context as author or a link. Still have some touchups to do.

Cheers Jaks
Reply With Quote
  #238  
Old 01-09-2006, 06:36 PM
jaks jaks is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found an error in 3 templates

If you goto any Quoteit page you will see the page title is messed up.

PHP Code:
$vbulletin->options[bbtitle
should be
PHP Code:
$vboptions[bbtitle
It shows as Array[bbcode] in the browser because the tag use I believe is the ones used in VB 3.0.xx


These 3 templates need to be editted ( same edit in each one in the same place.)
quote_delquote
quote_addquote
quote_listquote

Find (right near the very top of each template)
PHP Code:
<title>$vbulletin->options[bbtitle
replace with
PHP Code:
<title>$vboptions[bbtitle
Now i need some help. I want to parse bbcode in context field output. I can't for the life of me remember how to do that.

Great hack I'd click install twice it I could
Jaks
Reply With Quote
  #239  
Old 01-10-2006, 12:36 AM
tarot tarot is offline
 
Join Date: Dec 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve
You can't yet. :nervous:



You'll need a template conditional for specific forums, something like this:
HTML Code:
<if condition="$_REQUEST['f']==forum_id_goes_here">$showrandomquote</if>
You'll also need to move the Random Quote plugin to the global hook and add this at the end of the plugin:
PHP Code:
$threshold ''
Sorry to be so dumb but I'm really new to this thing. Which template do I put the template conditional in the Forumdisplay or somewhere else?

And the Random Quote plugin to global hook where does that go and do I remove it from where it is now or copy it to the new location? Where is it now?
Reply With Quote
  #240  
Old 01-10-2006, 01:49 AM
jaks jaks is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That conditional statement goes in the forumdisplay template not to sure about the other.
Reply With Quote
  #241  
Old 01-10-2006, 03:51 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

tarot - I think it is the Forumdisplay template. As for the second step, go to your Plugin Manager, edit the plugin called "Random Quote", change the hook to "global_start" and add that piece of code at the end.

jaks - Parsing bbcode would require you to modify the code, and I can't really help you since I haven't gotten around to learning how to do it myself.
Reply With Quote
Reply

Thread Tools

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 09:10 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.05533 seconds
  • Memory Usage 2,370KB
  • 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_html
  • (7)bbcode_php
  • (4)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