vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Inferno Quiz v2.2 (https://vborg.vbsupport.ru/showthread.php?t=83130)

ZAG 10-09-2006 02:26 PM

Quote:

Originally Posted by teepeg
This didn't work for me!

Sure you have a version 3.6.x?
Your Profile says 3.5.2 !

49er 10-09-2006 09:33 PM

Quote:

Originally Posted by ZAG
Sure you have a version 3.6.x?
Your Profile says 3.5.2 !

Ahh Sorry, Yes i have 2 forums, and i am talking about the 3.6.1 version. :surprised:

49er 10-09-2006 09:34 PM

Quote:

Originally Posted by Paul M
Search quiz.php for $vboptions and replace it with $vbulletin->options

Thats Good, Thank You. ;) Except the one on line 164 as this gave me an error.

Paul M 10-09-2006 10:55 PM

Ah, the one in the global - that one could just be removed.

OrangeFlea 10-13-2006 06:23 AM

Sigh, I've created too many quizzes to just delete this, but I desperately need a fix to this apostrophe issue for 3.5.

Willing to pay to have someone fix this, PM me.

amykhar 10-13-2006 11:02 AM

my code is so totally different that I can't begin to tell you what line or even what function to look for. But, to fix your apostrophe problems, all you have to do is use trim and addslashes on any text input that's going to be put in the database. Find where the quiz name or title variable is. Before it goes into the database, do something like this (appropriate variables of course)
Code:

$title = $trim(addslashesa($title));
Do the same thing for the questions, descriptions and the options - ANY text that's going to be inserted in the database.

bairy 10-13-2006 11:16 AM

Quote:

Originally Posted by amykhar
Code:

$title = $trim(addslashesa($title));

Should that not be: ?
Code:

$title = trim(addslashes($title));

Snake 10-14-2006 12:08 AM

Looks like there is a lot of bug fixes to implement. Damn! >_<

OrangeFlea 10-14-2006 03:30 AM

Quote:

Originally Posted by amykhar
my code is so totally different that I can't begin to tell you what line or even what function to look for. But, to fix your apostrophe problems, all you have to do is use trim and addslashes on any text input that's going to be put in the database. Find where the quiz name or title variable is. Before it goes into the database, do something like this (appropriate variables of course)
Code:

$title = $trim(addslashesa($title));
Do the same thing for the questions, descriptions and the options - ANY text that's going to be inserted in the database.

Code:

        $to            = $DB->query_first("select username, userid from ".TABLE_PREFIX."user where userid='{$to}'");
        $DataManager_PM =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
        $DataManager_PM->set('fromuserid', $to['userid']);
        $DataManager_PM->set('fromusername', $to['username']);
        $DataManager_PM->set('title', $title = trim(addslashes($title));
        $DataManager_PM->set('message', $message = trim(addslashes($message));
        $DataManager_PM->set_recipients($to['username'],$to['permissions']);
        $DataManager_PM->set('dateline', TIMENOW);
        $DataManager_PM->save();
        }

Thanks for the assist, Amy. I did as you have said but I get a syntax error. Is this right?

bairy 10-14-2006 04:23 PM

You missed a ) at the end of the title line:

$DataManager_PM->set('title', $title = trim(addslashes($title)));


All times are GMT. The time now is 01:33 PM.

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.01555 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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