Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
QuoteIt! Quote Management System v1.2 Details »»
QuoteIt! Quote Management System v1.2
Version: 1.00, by magnus magnus is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-13-2004 Last Update: Never Installs: 151
 
No support by the author.

[hr]-[/hr]

QuoteIt! Development has been continued in this thread. Please use this link for the latest version!

[hr]-[/hr]

QuoteIt! 1.2

Description
This hack will allow you to maintain a database of quotes which can be added by users and displayed on FORUMHOME. Admin function includes the ability to delete quotes from the database.

Yes, you can use multi-line quotes.

Information
Requested by djohn (re: https://vborg.vbsupport.ru/showthread.php?t=62420)

Thanks to Giveit2u43 for the username code!

Tested on RC4, should work on RC1+

Version History
v1.0 - Initial Release
v1.1 - Added ability to list all quotes as well as direct quote linking
v1.2 - Added quote moderation abilities

Planned Features
v2.0
- Quote rating system
- Top {X} Quotes

If you use this, please click

[hr]-[/hr]
UPGRADES

v1.1 -> v1.2 UPGRADE INSTRUCTIONS

v1.0 -> v1.1 UPGRADE INSTRUCTIONS

[hr]-[/hr]
3RD PARTY MODIFICATIONS/ADD-ONS

[high]1. Add QuoteIt! to your vbIndex homepage! by [name]Giveit2u43[/name][/high]
[high]2. Add Who's Online Locations for QuoteIt! by [name]Acido[/name][/high]

Show Your Support

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

Comments
  #172  
Old 09-24-2004, 12:48 PM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it works gr8 !!! thanks
Reply With Quote
  #173  
Old 09-25-2004, 12:12 AM
Tessa Tessa is offline
 
Join Date: Sep 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I finished the intructions but I don't see it anywhere on my homepage or forum...?
using vb version 3.0.3
Reply With Quote
  #174  
Old 09-25-2004, 02:12 AM
Tessa Tessa is offline
 
Join Date: Sep 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tessa
I finished the intructions but I don't see it anywhere on my homepage or forum...?
using vb version 3.0.3

Clearifying a little, I don't see any thing where a user can add a quote anywhere. Nor any type of box where the quote would be shown.

And for the record, I went through all 12 pages of this thread to see if there already was an answer to my problem, I`m blind now but at least I`m not repeating anything.
Reply With Quote
  #175  
Old 09-27-2004, 06:37 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To allow your administrator group to bypass being moderated (assuming that you have quotes moderation turned on in your ACP) make the following changes to quotes.php......

Find....
Code:
if (empty($author) OR empty($quote))
{
eval (print_standard_error('error_requiredfields'));
}
And below it add:
Code:
 if (!$bbuserinfo['permissions']['adminpermissions'])
{ // Use the moderation option set in the ACP
	$moderate_quote = $vboptions[moderatequotes];
}
else
{ // Do not moderate administrator quotes
	$moderate_quote = 1;
}
Right below that you should see....
Code:
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "quotes (quote, author, userid, approved) VALUES ('" . addslashes($quote) . "', '" . addslashes($author) . "', $bbuserinfo[userid], $vboptions[moderatequotes])
");
Change the word "$vboptions[moderatequotes]" to "$moderate_quote" and try it out.
Reply With Quote
  #176  
Old 09-27-2004, 08:10 PM
58sniper 58sniper is offline
 
Join Date: Sep 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KW802
To allow your administrator group to bypass being moderated (assuming that you have quotes moderation turned on in your ACP) make the following changes to quotes.php......

Find....
Code:
if (empty($author) OR empty($quote))
{
eval (print_standard_error('error_requiredfields'));
}
And below it add:
Code:
if ($bbuserinfo['usergroupid'] == 6)
{ // Do not moderate administrator quotes
$moderate_quote = 1;
}
else
{ // Use the moderation option set in the ACP
$moderate_quote = $vboptions[moderatequotes];
}
Right below that you should see....
Code:
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "quotes (quote, author, userid, approved) VALUES ('" . addslashes($quote) . "', '" . addslashes($author) . "', $bbuserinfo[userid], $vboptions[moderatequotes])
");
Change the word "$vboptions[moderatequotes]" to "$moderate_quote" and try it out.

Hmmm... that didn't seem to do it for me. No noticeable change. Entries by the admin (me) still are stuck in the moderate queue.

I haven't looked into this much, but.....

BTW - My account is a member of the administrators group, but that's NOT my primary usergroup. Dunno if that matters.
Reply With Quote
  #177  
Old 09-27-2004, 08:38 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 58sniper
BTW - My account is a member of the administrators group, but that's NOT my primary usergroup. Dunno if that matters.
I haven't played around with the user being in multiple groups yet; when I get home tonight I'll check it out to see if there's a quick fix.

Edit: OK, I changed my first post above. I wasn't thinking abstract enough..... going by the explicit usergroup is too literal.... if you have permissions to moderate the quotes then there is no point in having your own submissions sent to moderation. Try the revised code above.
Reply With Quote
  #178  
Old 09-27-2004, 09:50 PM
58sniper 58sniper is offline
 
Join Date: Sep 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, that didn't work either. But what did work was changing
PHP Code:
if ($bbuserinfo['usergroupid'] == 6
to this
PHP Code:
if ($bbuserinfo['usergroupid'] == || $bbuserinfo['usergroupid'] == 9
Since 9 is the one that is the primary usergroup for my account.
Reply With Quote
  #179  
Old 09-27-2004, 10:59 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 58sniper
Okay, that didn't work either. But what did work was changing
PHP Code:
if ($bbuserinfo['usergroupid'] == 6
to this
PHP Code:
if ($bbuserinfo['usergroupid'] == || $bbuserinfo['usergroupid'] == 9
Since 9 is the one that is the primary usergroup for my account.
HHmm.... if that didn't work, have you tried deleting any quotes yet? That command is the same command used in the rest of the script to determine if the person has access to moderate quotes or not. Did you change the entire block or just the first line?
Reply With Quote
  #180  
Old 09-27-2004, 11:08 PM
58sniper 58sniper is offline
 
Join Date: Sep 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KW802
HHmm.... if that didn't work, have you tried deleting any quotes yet? That command is the same command used in the rest of the script to determine if the person has access to moderate quotes or not. Did you change the entire block or just the first line?

Just the first line. I can moderate, delete, etc with that same account. No problem.
Reply With Quote
  #181  
Old 09-27-2004, 11:58 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 58sniper
Just the first line.....
I should've specified "copy, paste, & replace all of the lines otherwise the logic will be backwards, anybody who has moderation privileges would be controlled through the ACP and everybody else would've been un-moderated."
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 04:57 AM.


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.04610 seconds
  • Memory Usage 2,330KB
  • 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
  • (6)bbcode_code
  • (4)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