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)

Neutral Singh 09-22-2008 03:28 PM

Quote:

Originally Posted by Cap'n Steve (Post 1604789)
I've been running it on 3.7 for a while now. What problem are you having?

1. I am getting the following error at http://www.sikhism.us/quotes.php

Quote:


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

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3239) in [path]/includes/functions_quoteit.php on line 1198
2. The random quote shows like the attachement which is quite untidy.


Please advice how to get it right. Thanks

L2V 09-23-2008 05:01 PM

Is there a way to disable this in certain templates? I am using a mobile template under 3.7.3 and the javascript loads on every page. Quotes isn't visible from this mobile template and I'd love to reduce the overall page size by turning off the script includes for this... Any idea how?

Cap'n Steve 09-24-2008 04:46 AM

Neutral Singh - Try the instructions in this post.

L2V - I'm sure you could use a conditional to check the styleid, but I'm not sure off the top of my head what variable it's stored in.

L2V 09-24-2008 04:26 PM

Quote:

Originally Posted by Cap'n Steve (Post 1629034)
L2V - I'm sure you could use a conditional to check the styleid, but I'm not sure off the top of my head what variable it's stored in.

Thanks. Do you know what part would have the conditional? Does that go in the plugin itself? Or a template?

Neutral Singh 09-25-2008 01:42 PM

Quote:

Neutral Singh - Try the instructions in this post.

Alright that made the first problem vanish. What about the second. I have kept it live on my forum for your analysis.

Please advice. Thanks

Cap'n Steve 09-26-2008 05:38 AM

L2V - Actually, try adding it to the conditional on line 768 in includes/functions_quoteit.php. The updated code should look something like this. Replace $styleid with whatever variable holds the current styleid (just search around this site to find the right one) and $yourstyle with whatever the styleid of your mobile style is.

PHP Code:

    if (!defined('THIS_IS_A_QUOTE') AND $styleid != $yourstyle) { 

Neutral Singh - That is strange. Try removing this line from includes/functions_quoteit.php.

PHP Code:

        $tempinclude str_replace('"''\"'$tempinclude); 


L2V 09-26-2008 05:08 PM

Quote:

Originally Posted by Cap'n Steve (Post 1630630)
L2V - Actually, try adding it to the conditional on line 768 in includes/functions_quoteit.php. The updated code should look something like this. Replace $styleid with whatever variable holds the current styleid (just search around this site to find the right one) and $yourstyle with whatever the styleid of your mobile style is.

PHP Code:

    if (!defined('THIS_IS_A_QUOTE') AND $styleid != $yourstyle) { 


Brilliant! That worked perfectly.
For anyone else who needs it... The following line number mentioned above can be
PHP Code:

if (!defined('THIS_IS_A_QUOTE') AND $vbulletin->userinfo['styleid'] != xx) { 

change the xx to the style id number that you don't want the info to show up in.

Thanks Cap'n Steve!

Forgott3n 09-30-2008 11:38 PM

Sorry to bother again Cap'n Steve, but do you have an idea what could be going on? We're running 3.7.3 PL1

Quote:

Originally Posted by Forgott3n (Post 1597444)
Hi we're using vB 3.7.2 and it will not sort the top quotes:

http://www.avrilbandaids.com/forums/...ing&order=desc

What's going on?


Cap'n Steve 10-05-2008 01:41 AM

Try the advice from this post.

Forgott3n 10-05-2008 07:38 AM

Quote:

Originally Posted by Cap'n Steve (Post 1637517)
Try the advice from this post.

That seems to have fixed it, thank you!

[EDIT] I've seem to be getting a lot of errors since I've made the fix:

Quote:

Database error in vBulletin 3.7.3:

Invalid SQL:

INSERT INTO guestquoteratings
(ip, quoteid, date, rating) VALUES
("208.101.13.14", 21, 1223328061, 4);

MySQL Error : Duplicate entry '21-208.101.13.14' for key 1
Error Number : 1062
Request Date : Monday, October 6th 2008 @ 05:21:01 PM
Error Date : Monday, October 6th 2008 @ 05:21:09 PM
Script : http://www.avrilbandaids.com/forums/...teid=21&vote=4
Referrer : http://www.avrilbandaids.com/forums/...ing&order=desc
IP Address : 208.101.13.14
Username : Unregistered
Classname : vB_Database_MySQLi
MySQL Version :


All times are GMT. The time now is 09:10 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.01919 seconds
  • Memory Usage 1,757KB
  • 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
  • (4)bbcode_php_printable
  • (8)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