vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBQuiz Add-on v1.2 (https://vborg.vbsupport.ru/showthread.php?t=42000)

kira 08-30-2002 08:28 PM

Ooh Martin and FASherman are my new boyfriends! ;) That Quiz center is looking gorgeous -- can't wait to install it! Many many thanks, guys.

Martin64 08-30-2002 08:38 PM

lmao, I wish I hadn't read that one. ;)
Thanks yourself for using it. :D

JGM007 09-11-2002 04:58 PM

Thank you Martin and FASherman for the hack.
I am still very green with vBulletin. I have installed the hack on my forums at http://board.madoshi.com

Currently the quiz center is stuck at the bottom of the main board, I would like to have it rest under the "General" section of the board. What do I need to do to the templates to get it to rest there?

Thanks!
-JGM

LOD-squa 09-12-2002 07:02 PM

Nice hack I installed it.

LangTuDaTinh 10-14-2002 06:20 PM

thanks for this great add-on hack. however i have a question?

if i delete this part in /quizzes/global.php

PHP Code:

$permissions=getpermissions();

if (!ismoderator() or !$permissions['canview']) {
  cpheader("<title>Moderators control panel</title>");
?><br><br><br>
<table cellpadding="1" cellspacing="0" border="0" class="tblborder" align="center" width="450"><tr><td>
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<?php maketableheader("Please Log in:","login",0,1); ?>
<tr class="firstalt" id="submitrow"><td align="center" nowrap><p>You are either not a valid moderator or have not logged in.</p>
<form action="index.php" method="post" id="submitrow">
<input type="hidden" name="s" value="<?php echo $session[sessionhash]; ?>">
<input type="hidden" name="action" value="login">
<input type="hidden" name="redirect" value="<?php

if ($HTTP_SERVER_VARS['REQUEST_URI']!="") {
  
$redirecturl $HTTP_SERVER_VARS['REQUEST_URI'];
} else {
  
$redirecturl $PHP_SELF;
}

if (
strpos($redirecturl""?")) {
  
$redirecturl .= "&s=$session[sessionhash]";
} else {
  
$redirecturl .= "?s=$session[sessionhash]";
}

echo 
htmlspecialchars($redirecturl);

?>">
<input type="text" name="loginusername">
<input type="password" name="loginpassword">
<input type="submit" value="   Log in   " accesskey="s">
</form>
</td></tr></table>
</td></tr></table>
<p align="center"><font size="1">vBulletin v<?php echo $templateversion ?> Moderator Control Panel</font></p>

<?php
  cpfooter
();
  exit;
}


what will happen is that it not require login anymore so any user can add or modify a quiz

also in /quizzes/index.php

if i remove all stuffes and leave only this

PHP Code:

<?php

makenavoption
("Add","admin_quiz.php?action=addquiz","|");
makenavoption("Approve","admin_quiz.php?action=approve","|");
makenavselect("Quizzes");

?>

so that they only can add or approve...no delete or modify.

so the question is , will this modify (above) will effect the forum security and if it does, in what way?

thanks

hidjra 10-26-2002 02:54 AM

hi,

does anyone know how many queries this will add to forumhome?

and how many queries will it add if we also add the addon kira suggested?

:banana:
hidjra

TheEDIGuy 11-12-2002 06:09 PM

Installed step 1, on vBulletin 2.2.8 - works great, thanks!

John
Fans of Reality TV
www.fansofrealitytv.com

Erwin 11-12-2002 07:37 PM

Quote:

Originally posted by hidjra
hi,

does anyone know how many queries this will add to forumhome?

and how many queries will it add if we also add the addon kira suggested?


:banana:
hidjra

This will add 6 queries to your forumhome.

TheEDIGuy 11-13-2002 12:03 PM

I installed this yesterday, and it works well, but I noticed that the "average scores" displayed on the forum home are different than those displayed within the actual quiz area.

I have 3 quizzes, so it's fairly easy to compare these average scores. I wonder why that is. Anyone else seeing the same thing?

FleaBag 11-22-2002 11:25 AM

This has turned my forums/index.php into a clone of my quiz.php?


All times are GMT. The time now is 10:48 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.01088 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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