vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - QuoteIt! - Quote Database (https://vborg.vbsupport.ru/showthread.php?t=135297)

Cap'n Steve 07-28-2008 09:56 PM

KevinL - What errors?

expatdirectory - Try experimenting with the module settings when you add it. vBadvanced may have added some new options since the last time it was updated.

KevinL 07-28-2008 10:16 PM

Quote:

Originally Posted by Cap'n Steve (Post 1586263)
KevinL - What errors?

When I check 'show random quote' I get these errors:

Code:

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 31

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 32

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 33

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 34

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 35

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 36

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 37

Any ideas? I did do a search but came up with nothing...

Thank you

EDIT** now I'm also getting this

Code:

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3243) in [path]/includes/functions_quoteit.php on line 1198

Dr. Bantham 08-01-2008 11:37 PM

I would love for this mod to have a feature to auto-create a thread as new quotes are entered. I have managed to create new fields for this mod and could create another for thread title. My site has quotations constantly appearing within the forums for discussion. I end up replicating quotations myself within QuoteIt! and editing their post to include the [quotes] reference. I would think that this feature would not be too complicated, but it is beyond my current ability. I would be satisfied if the forum was fixed as a option variable, but having forum selection within a dropdown list would be even better. The thread content would consist only of [quotes]quotenumber[/quotes]. If you do not have time to dedicate to this, Cap'n Steve, then any suggestions with the approach would be greatly appreciated. I think that tying QuoteIt! to the forums in such a manner would be the ideal feature for promoting additional installations and forum discussion of the quotes themselves.

KevinL 08-02-2008 03:05 AM

Quote:

Originally Posted by KevinL (Post 1586273)
When I check 'show random quote' I get these errors:

Code:

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 31

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 32

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 33

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 34

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 35

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 36

Warning: Cannot use a scalar value as an array in [path]/includes/functions_quoteit.php on line 37

Any ideas? I did do a search but came up with nothing...

Thank you

EDIT** now I'm also getting this

Code:

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3243) in [path]/includes/functions_quoteit.php on line 1198

Hmm I'm glad that this was bumped :)

Has anyone ever seen this?

Cap'n Steve 08-02-2008 05:09 AM

KevinL - Try removing this chunk of code from includes/functions_quoteit.php (also, post a list of the other mods you have installed):

PHP Code:

$settings[1] =& $quoteitoptions['ratings'];
$settings[3] =& $quoteitoptions['moderatequotes'];
$settings[0] =& $quoteitoptions['showrandomquote'];
$settings[4] =& $quoteitoptions['numbertomoderate'];
$settings[2] =& $quoteitoptions['averagethreshold'];
$settings[7] =& $quoteitoptions['totalthreshold'];
$settings[5] =& $quoteitoptions['enablecontext']; 

Dr. Bantham - I've never used the post datamanager, so I'm not sure how to do it off the top of my head, but you'll want to add it at the end of the add_quote function in includes/functions_quoteit.php.

KevinL 08-02-2008 12:53 PM

Quote:

Originally Posted by Cap'n Steve (Post 1589674)
KevinL - Try removing this chunk of code from includes/functions_quoteit.php (also, post a list of the other mods you have installed):

PHP Code:

$settings[1] =& $quoteitoptions['ratings'];
$settings[3] =& $quoteitoptions['moderatequotes'];
$settings[0] =& $quoteitoptions['showrandomquote'];
$settings[4] =& $quoteitoptions['numbertomoderate'];
$settings[2] =& $quoteitoptions['averagethreshold'];
$settings[7] =& $quoteitoptions['totalthreshold'];
$settings[5] =& $quoteitoptions['enablecontext']; 


This works wonders!

Got it up and running. Now I had this on my site since the first version. I did a dump of the old database (before we had to close for a bit) and want to add them back in. Now when I tried to do that I started getting these errors:

Code:

Database error in vBulletin 3.7.2:

Invalid SQL:

                        SELECT quotes.*, categories.title AS category, users.username FROM quotes AS quotes
                        LEFT JOIN user AS users ON quotes.userid = users.userid
                        LEFT JOIN quotecategories AS categories ON categories.categoryid = quotes.categoryid
                       
                                LIMIT 17, 1;

MySQL Error  : Unknown column 'quotes.categoryid' in 'on clause'
Error Number  : 1054
Request Date  : Saturday, August 2nd 2008 @ 07:12:28 AM
Error Date    : Saturday, August 2nd 2008 @ 07:12:28 AM

I understand what it's saying but what I don't understand is why inserting them back into the database is giving me this error (since this is actually the 2nd time doing it like this). Also what is the table 'on clause'?

Thanks for your help!

Cap'n Steve 08-03-2008 02:09 AM

You don't have the categoryid column in your quotes table somehow. I'm guessing your database dump dropped the tables and then recreated them. Try re-importing the product (without uninstalling it). After that, you'll have to edit the dump file and remove all the DROP TABLE and CREATE TABLE statements before you can safely import it.

KevinL 08-03-2008 10:41 AM

Worked wonders!!

Thank you

gpc10347 08-05-2008 01:18 PM

Mod still working wonders and looks great!

I need something that is probably right under my nose but - here goes:

I have a style specifically for cell phones and disable as much as I can..

To date, I have the following:

PHP Code:

//Disables Cyb Chatbox
$vbulletin->options['cybchatbox_enable_product']=0;
//Disables MGC Chatbox
$vbulletin->options['mgc_cb_evo_active']=0;
//Disable Moods?
$vbulletin->options['vmoods_active']=0

What would the proper string be to disable QuoteIt for this situation only?

Thanks in advance!!

Cap'n Steve 08-06-2008 02:39 AM

Do you mean just the random quote? For that, try this (although it needs to execute after QuoteIt!'s "Initialize Global Options/Permissions" plugin):

PHP Code:

$quoteitoptions['showrandomquote'] = false



All times are GMT. The time now is 12:19 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
  • Page Generation 0.02291 seconds
  • Memory Usage 1,769KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete