Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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

Version: 3.0.7 Rating:
Released: 04-10-2005 Last Update: 11-05-2005 Installs: 47
DB Changes
 
No support by the author.

QuoteIt! version 2.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. This was developed on vBulletin 3.0.7, but should work on 3.0.0 and above.

You can see a demo on forums.monkeycrap.com.
Instructions for adding a random quote to vBadvanced and vBindex are in this post.


Features (features new to 2.0 are in yellow)

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
- the quote shown is much more random than in previous versions


Quote Database
- quotes can only be edited or deleted by an administrator
- quotes can be viewed individually or listed on several pages
- quotes can be sorted by total score, average score, author, submitter, or date added
- quotes now have a "context" field that can be turned on or off to include more information about the quote
- 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 administrator can now edit quotes
- the quote moderation que is now more like the que for posts, enabling the moderation of several quotes at once




Don't forget to click

This hack is based on QuoteIt! 1.2, originally by magnus. The "submit post" feature was inspired by an addon by CtrlAltDel. The location code is based on a post by Acido.

You may release translations of this hack as long as the original credits are included. Otherwise, you not redistribute this hack without permission from me.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #152  
Old 06-07-2005, 05:34 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 dsboyce8624
Can this system be made to just show random quotes that I want it to, without the rating system or user input?
Yes, but it'll either require some template edits or some small file edits depending on if you want the users to be able to view the whole quotes list or submit quotes to be added. Just ask here if you have problems.
Reply With Quote
  #153  
Old 06-07-2005, 05:39 AM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve
Yes, but it'll either require some template edits or some small file edits depending on if you want the users to be able to view the whole quotes list or submit quotes to be added. Just ask here if you have problems.
I just want to put in the quotes, and have one randomly displayed daily. No user interaction.
Reply With Quote
  #154  
Old 06-08-2005, 06:48 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

In quotes.php, find:
PHP Code:
require_once('./global.php'); 
below that, add:
PHP Code:
    if (!$bbuserinfo['permissions']['adminpermissions'])     {
        
print_no_permission();
        exit;
    } 
In your quote_randomquote template, find:
HTML Code:
				(<a href="$vboptions[bburl]/quotes.php?do=addquote">$vbphrase[add_a_quote]</a>

			<if condition="$bbuserinfo[\'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>)
replace that with:
HTML Code:
			<if condition="$bbuserinfo[\'permissions\'][\'adminpermissions\']">
			(<a href="$vboptions[bburl]/quotes.php?do=addquote">$vbphrase[add_a_quote]</a>
				 | <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>

			 | <a href="$vboptions[bburl]/quotes.php?do=list">$vbphrase[view_all_quotes]</a>)
</if>
That should do what you want.
Reply With Quote
  #155  
Old 06-08-2005, 12:51 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One of my forum members just pointed out that the sort by rating and average rating options on the view all quotes page are still showing up, despite our having ratings disabled. So here's a little fix for that.

Find in quotes.php:
PHP Code:
$sortby $vbphrase['sort_by'] . ' - <a href="quotes.php?' $querystring '&sortby=quoteid&order=' $orderof['quoteid'] . '">' $vbphrase['quote_id'] . ' &nbsp; <img src="' $image['quoteid'] . '" alt="' $vbphrase['sort_by'] . ' ' $vbphrase['quote_id'] . '" border="0" /></a> | 
        <a href="quotes.php?' 
$querystring '&sortby=userid&order=' $orderof['userid'] . '">' $vbphrase['user_id'] . ' &nbsp; <img src="' $image['userid'] . '" alt="' $vbphrase['sort_by'] . ' ' $vbphrase['user_id'] . '" border="0" /></a> | 
        <a href="quotes.php?' 
$querystring '&sortby=author&order=' $orderof['author'] . '">' $vbphrase['author'] . ' &nbsp; <img src="' $image['author'] . '" alt="' $vbphrase['sort_by'] . ' ' $vbphrase['author'] . '" border="0" /></a> | 
        <a href="quotes.php?' 
$querystring '&sortby=rating&order=' $orderof['rating'] . '">' $vbphrase['total_rating'] . ' &nbsp; <img src="' $image['rating'] . '" alt="' $vbphrase['sort_by'] . ' ' $vbphrase['total_rating'] . '" border="0" /></a> | 
        <a href="quotes.php?' 
$querystring '&sortby=average&order=' $orderof['average'] . '">' $vbphrase['average'] . ' &nbsp; <img src="' $image['average'] . '" alt="' $vbphrase['sort_by'] . ' ' $vbphrase['average'] . '" border="0" /></a>'
Replace with:
PHP Code:
    if ($settings[1] == 1)
    {
        
$sortby $vbphrase['sort_by'] . ' - <a href="quotes.php?' $querystring '&sortby=quoteid&order=' $orderof['quoteid'] . '">' $vbphrase['quote_id'] . ' &nbsp; <img src="' $image['quoteid'] . '" alt="' $vbphrase['sort_by'] . ' ' $vbphrase['quote_id'] . '" border="0" /></a> | 
        <a href="quotes.php?' 
$querystring '&sortby=userid&order=' $orderof['userid'] . '">' $vbphrase['user_id'] . ' &nbsp; <img src="' $image['userid'] . '" alt="' $vbphrase['sort_by'] . ' ' $vbphrase['user_id'] . '" border="0" /></a> | 
        <a href="quotes.php?' 
$querystring '&sortby=author&order=' $orderof['author'] . '">' $vbphrase['author'] . ' &nbsp; <img src="' $image['author'] . '" alt="' $vbphrase['sort_by'] . ' ' $vbphrase['author'] . '" border="0" /></a> | 
        <a href="quotes.php?' 
$querystring '&sortby=rating&order=' $orderof['rating'] . '">' $vbphrase['total_rating'] . ' &nbsp; <img src="' $image['rating'] . '" alt="' $vbphrase['sort_by'] . ' ' $vbphrase['total_rating'] . '" border="0" /></a> | 
        <a href="quotes.php?' 
$querystring '&sortby=average&order=' $orderof['average'] . '">' $vbphrase['average'] . ' &nbsp; <img src="' $image['average'] . '" alt="' $vbphrase['sort_by'] . ' ' $vbphrase['average'] . '" border="0" /></a>';
    }
    else
    {
        
$sortby $vbphrase['sort_by'] . ' - <a href="quotes.php?' $querystring '&sortby=quoteid&order=' $orderof['quoteid'] . '">' $vbphrase['quote_id'] . ' &nbsp; <img src="' $image['quoteid'] . '" alt="' $vbphrase['sort_by'] . ' ' $vbphrase['quote_id'] . '" border="0" /></a> | 
        <a href="quotes.php?' 
$querystring '&sortby=userid&order=' $orderof['userid'] . '">' $vbphrase['user_id'] . ' &nbsp; <img src="' $image['userid'] . '" alt="' $vbphrase['sort_by'] . ' ' $vbphrase['user_id'] . '" border="0" /></a> | 
        <a href="quotes.php?' 
$querystring '&sortby=author&order=' $orderof['author'] . '">' $vbphrase['author'] . ' &nbsp; <img src="' $image['author'] . '" alt="' $vbphrase['sort_by'] . ' ' $vbphrase['author'] . '" border="0" /></a>';
    } 
Reply With Quote
  #156  
Old 06-09-2005, 05:19 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

Man, the templates have caused me all sorts of trouble. :dead: Thanks for pointing that out, I'll add it in.
Reply With Quote
  #157  
Old 06-10-2005, 12:14 AM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There wouldn't by any chance be update instructions from Version 1.2 to 2.0 would there? :ermm:
Reply With Quote
  #158  
Old 06-10-2005, 01:32 AM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, did a clean install, so far.

Looks fine except that on quotes.php, the footer template opens in the top of the page and closes at the end.

I'm sure I did something wrong, but I can't figure it out.

And I have a vote button on the show all page, even though rating is off.
Reply With Quote
  #159  
Old 06-10-2005, 02:27 AM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bubble #5
There wouldn't by any chance be update instructions from Version 1.2 to 2.0 would there? :ermm:
I think they're in the zip.
Reply With Quote
  #160  
Old 06-10-2005, 06:39 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

I think I've fixed the button problem. I'll test it and upload the new file tomorrow. I still don't have a clue why your footer template is wandering up to the top, though. :ermm:
Reply With Quote
  #161  
Old 06-10-2005, 03:17 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve
I think I've fixed the button problem. I'll test it and upload the new file tomorrow. I still don't have a clue why your footer template is wandering up to the top, though. :ermm:
I think it's my custom style. All you need is one mees up on the bale tags and things go haywaire. I'll have a look at it too.
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 05:17 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.14598 seconds
  • Memory Usage 2,366KB
  • 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
  • (4)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
  • (1)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