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
  #242  
Old 01-10-2006, 02:51 PM
jaks jaks is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cap'n
Could point me to the area where I need to edit and I will see if I can follow the bbcode parsing tutorial? I'll post how I make out good or bad. :S

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

I'm not a coder at all and I know you said you don't know but do you think something like this as a plugin would work and if so where would I stick it in?


Update: Tried this in every quoteit related hook i could find. Did absolutely nothin

PHP Code:
if (!is_object($bbcode_parser))
    {
        require_once(
DIR '/includes/class_bbcode.php');
        
$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());
    }
     
$randomquote['value'] = $bbcode_parser->parse($randomquote["context"],0true); 
I just editted from the following code:
PHP Code:
  <?xml version="1.0" encoding="ISO-8859-1" ?> 
- <product productid="myspace_style_profile" active="1">
  <title>Parse BBCode in Custom Profile Fields</title> 
  <description>Give your users the full effect by letting them use BB Code in their profile.</description> 
  <version>1.1</version> 
  <codes /> 
  <templates /> 
- <plugins>
- <plugin active="1">
  <title>Parse BBCode for Custom Profile Fields</title> 
  <hookname>member_customfields</hookname> 
- <phpcode>
- <![CDATA[ 
if (!is_object($bbcode_parser))
    {
        require_once(DIR . '/includes/class_bbcode.php');
        $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
    }
     $profilefield['value'] = $bbcode_parser->parse($userinfo["$profilefieldname"],0, true);

  ]]> 
  </phpcode>
  </plugin>
  </plugins>
  <phrases /> 
  <options /> 
  </product>
Reply With Quote
  #244  
Old 01-10-2006, 04:23 PM
BrandiDup's Avatar
BrandiDup BrandiDup is offline
 
Join Date: Jun 2005
Location: San Diego, CA
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on 3.5.3 and working perfectly.

Thank you very much for sharing this with us!
Reply With Quote
  #245  
Old 01-10-2006, 05:11 PM
jaks jaks is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok I figured out a way to manipulate the templates to link to a specific post. This is not by any means a great alternative but as I said before it works for me.

First I am only allowing admin to post these because it's bound to get too many broke links. So first I added permission tags around the "Add New Quote" link in the quote_randomquote and quote_listquote templates

Then I editted
PHP Code:
$randomquote[context
inquote_randomquote and quote_listbit.

K first the changes

( I didn't think to to copy the code prior to posting this so you might have to search by eye instead of with a text search. Not a very big templates anyway )
Find in quote_listbit template
PHP Code:
<if condition="$randomquote[context]">
            ( 
$randomquote[context] )
        </if> 
Change to fit your url (((Make sure you edit it)))
PHP Code:
<if condition="$randomquote[context]">
            <
a href="http://www.yoursite.com/your forum folder/showthread.php?t=$randomquote[context]">Read Moreimage anything you want!!</a>
        </if> 
Save and close

Next in the inquote_randomquote template ( If you only want to allow admin to submit quotes) **Recommended if you use this linking mod**
Find
PHP Code:
$vbphrase[add_a_quote
Change to
PHP Code:
<if condition="$vbulletin->userinfo['permissions']['adminpermissions']"><a href="$vboptions[bburl]/quotes.php?do=addquote">$vbphrase[add_a_quote]</a></if> 
Then find
PHP Code:
<p style="font-weight:bold;margin-left:25%;">- <if condition="$randomquote[context]">$randomquote[context]</if></p
Change it same as the last template
PHP Code:
<p style="font-weight:bold;margin-left:25%;">- <if condition="$randomquote[context]"> <a href="http://www.yoursite.com/your forum foldershowthread.php?t=$randomquote[context]">Read More</a></if></p
Next in the quote_listquote template
Find
PHP Code:
(<a href="quotes.php?$session[sessionurl]&do=addquote">$vbphrase[add_a_quote]</a> ) 
Change to
PHP Code:
<if condition="$vbulletin->userinfo['permissions']['adminpermissions']">(<a href="quotes.php?$session[sessionurl]&do=addquote">$vbphrase[add_a_quote]</a> - </if> 
Now to link to a post all you need to do is enter just the thread ID# in the context field.
Example: You want to link to this thread below all you need to enter is 8 in the context field.
PHP Code:
http://www.trulyunusual.com/wards/showthread.php?t=8 
Alternatively you could set it up so it will link to external pages aswell very easily. Just play with it. BTW I removed the ( and ) because they are cosmetic and interfer when trying to link.

Hope this helps some one.
This hack be used in many applications. Random images, random links, random facts with read more etc...

Your the best Cap'n
Jaks
Reply With Quote
  #246  
Old 01-10-2006, 05:46 PM
jaks jaks is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is how it would look for external links ( I use author as my title and not user so if you dont need the title in there chage it to suit your needs.)
PHP Code:
<a title="$randomquote[author]href="$randomquote[context]">Read More</a
Jaks
Reply With Quote
  #247  
Old 01-10-2006, 10:15 PM
Robbed Robbed is offline
 
Join Date: Oct 2005
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve
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.
What if you made the quote text box a wysisyg editor box? that way it would parse the code. I've seen it done on a few hacks.
Reply With Quote
  #248  
Old 01-10-2006, 10:38 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

You'd still need to convert the bbcode to HTML when people view the quote. Since there are no hooks in the hack yet, you'd have to parse it in quotes.php before it's printed out to the page.
Reply With Quote
  #249  
Old 01-10-2006, 11:47 PM
jaks jaks is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve
You'd still need to convert the bbcode to HTML when people view the quote. Since there are no hooks in the hack yet, you'd have to parse it in quotes.php before it's printed out to the page.
Wish I could figure it out but the work around I did does the trick.


Jaks
Reply With Quote
  #250  
Old 01-11-2006, 12:02 AM
Robbed Robbed is offline
 
Join Date: Oct 2005
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what they did for the downloads hack if it helps any

https://vborg.vbsupport.ru/showpost....&postcount=256
Reply With Quote
  #251  
Old 01-11-2006, 12:20 AM
jaks jaks is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to match stuff up and figure it out but it's a weeee bit over my head lol. Looks pretty straightforward until the db stuff. :S
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 07:43 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.07376 seconds
  • Memory Usage 2,354KB
  • 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
  • (13)bbcode_php
  • (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