![]() |
QuoteIt! Quote Management System v1.2
[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 https://vborg.vbsupport.ru/ [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] |
*sigh* I completely forgot to include the "quotes.php" file in the first zip. The first post has been updated.
I swear, sometimes I'd forget my head... |
this is pretty cool =)
Im gonna use this when you get more features in it. Great work. |
Nice work, cheers for releasing :)
|
i will use this once v2 comes out :D
|
Quote:
|
It looks like you missed a few " . TABLE_PREFIX . " in both index.php and quotes.php
I'll post the changes later if needed. |
Now this looks good - you made it quicker that KuraFire, thanks!
|
Quote:
|
nice hack, I'm going to install this after the vb3 gold ^ ^
|
Nice hack. Installed it on my testsystem and its running fine.
Looking forward to verison 2. :) |
My members are loving this hack and having great fun adding quotes.. One feature they did request was that It showed up the name of the member who submitted the quote.. I`ll be adding this myself on my installation but thought it might be a nice addition for the official version, maybe with an admin on/off option??
|
Quote:
|
Quote:
Code:
$result_quote = $DB_site->query(" |
v1.0 -> v1.1 UPGRADE INSTRUCTIONS
1. Download the quoteit1.1.zip from the first post, and upload the new quotes.php to your forum ROOT directory. 2. Run the following SQL query (or, you can insert the following phrase manually into the GLOBAL category): [SQL] INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'view_all_quotes', 'View All', 1); [/SQL] 3. Edit the randomquote TEMPLATE: Find: HTML Code:
<if condition="$bbuserinfo['userid']">(<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"eid=$randomquote[quoteid]">$vbphrase[delete_this_quote]</a></if>)</if> HTML Code:
<if condition="$bbuserinfo['userid']">(<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"eid=$randomquote[quoteid]">$vbphrase[delete_this_quote]</a></if> | <a href="$vboptions[bburl]/quotes.php?do=list">$vbphrase[view_all_quotes]</a>)</if> TEMPLATE: quote_listquote HTML Code:
$stylevar[htmldoctype] HTML Code:
<table class="tborder" cellpadding="3" cellspacing="0" border="0" width="$stylevar[tablewidth]" align="center"> |
"this is a test" ( | | )test quote <-- is what i see. No username and no link to submit or display all quotes :(
|
Quote:
|
Does anyone know why I get this error message on the indexpage?
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /usr/home/sites/xxxxxx/www/forum/index.php(115) : eval()'d code on line 19 Parse error: parse error, expecting `']'' in /usr/home/sites/xxxxxxx/www/forum/index.php(115) : eval()'d code on line 19 |
Quote:
|
Quote:
|
Ok, that worked. :) there are two quotes now but when i click on 'View All' no quote is visable.
|
Quote:
It should be Code:
$vboptions[bburl]/quotes.php?do=list Code:
$vboptions[bburl]/quotes.php?do=view |
Ok tnx. :)
--edit-- works ok now |
Quote:
|
Quote:
|
Quote:
I also don't get the error when I have the code, but turn off the random quotes from the admincp. |
Just for the hell of it..
In INDEX.PHP: Find: PHP Code:
PHP Code:
|
Didn't fix it.
The problem appeared after I tried to upgrade, so I'm guessing that it's something with the new templates og something. |
Quote:
You'll need to edit the randomquote, quote_listquote and quotelistbit templates. That's why it's crapping out. ;) |
Magnus, you need to strip the \'s out of the html above.. they`re okay when you're using an installer but cause problems when you're manually adding the templates..
also you`ve changed the name of the function for view to list, but not changed the link in the html in the upgrade instructions. |
Quote:
|
Quote:
You missed two templates from the global templates array.. it should be: Code:
$globaltemplates = array( |
Damn you! j/k :D
Ok, I updated the .ZIP file.. good looking out, thanks. ;) |
Quote:
Thank you. It's a great hack. :) |
Any chance in a future version of adding an option in the user control panel to allow users to turn off the quotes for themselves.
Also maybe an approval system so admins have to approve the quote before its viewabale. |
A nice addition for a future version would be categories for quotes and the ability to show them only one day of the week or so. :)
|
Quote:
As for the user toggle, sure, I could add that. Consider it done. ;) |
Quote:
As for when to display, do you mean it displays 1 quote per day/week/month rather than randomly changing every refresh? |
Categorys would be awesome!
|
Thanks for this hack! Works great on a friends board, I modified it to take quotes from this website which provides RSS feeds of quotes. I developed an importer which takes the feeds and puts them into a database for this hack, I might release it as an addon. Doesn't seem stable as there is no interface for it pure backend.
This hack seems to be working fine, and is an asset since I had this incorporated on the main portal page. Regards & Nice job! |
All times are GMT. The time now is 06:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|