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 1.0 (https://vborg.vbsupport.ru/showthread.php?t=39719)

kevinnguyen 03-19-2003 04:09 AM

oh man, my pain
i spent months to build my site
i added tons of cool hacks (shop, bank...) for ibf
and i killed it within 1 nite
damn, i misuploaded a file and didnt know that to backup
the next morning when i noticed that, holy, it was too late
now i have to start over, not really cuz db is still there
i had my friend convert db from ibf to vbb

yeah, hehe, same here, 5 months ago i dun even know how to install a forum
but now i have much exp about PHP and MySQL, especially for IBF
I added severel mods on Ibresource (mod site like this one)
IBF is good, but it easily gets hacked if you are newbie
anyway im a newbie of VBB

DarkDraco07 03-19-2003 06:22 PM

Quote:

DarkDraco07, yes it possible, [/B]
is it in the download or is it a reply? can u please link me to it if its a post cuz i couldnt find it

LangTuDaTinh 03-19-2003 06:55 PM

no, i modified it by myself , give me your email, i will send u the script.

do u want members able to approve their own quiz or only u can do it? cause right now my script alllow members to approve their own quiz. but i can change that.

to kevinnguyen, goodluck man, reinstall all the hack is pain in the ass...u will need at least 3 or more days if your board is heavily hacked. give me your website link when u done...i wanna see it ehheeeh...what is your vbb style? i want to change my style but don't have much time....and not very good /w graphic software....

DOTS 03-20-2003 09:27 AM

hi,
this is going to sound stupid i know
but i cant find anywhere to add the quiz'es im driving crazy!
theres nothing but some options in Admin CP
and when i go /quiz.php it says theres no added quizes
where do i add the quizes and i manage the stuff? please help this hack seems awesome but i cant add anything
thanks

DOTS 03-20-2003 09:31 AM

nevermind im an a stupid ass
i did 1 step wrong.
sorry to bother you whit my stooooooopid questions
awesome hack man. :bandit:

Jitway 03-20-2003 03:59 PM

Awesome hack there. Now to put all my mods and co admins to work. :cheeky:

sabret00the 03-20-2003 04:14 PM

Quote:

Yesterday at 08:55 PM LangTuDaTinh said this in Post #713
no, i modified it by myself , give me your email, i will send u the script.

do u want members able to approve their own quiz or only u can do it? cause right now my script alllow members to approve their own quiz. but i can change that.

won't you realise it as i'd also be interested in using this, if it uses the style sets and not the mod panel colour settings

kevinnguyen 03-21-2003 02:10 AM

Quote:

03-15-03 at 12:36 AM LangTuDaTinh said this in Post #702
PHP Code:


//- Add a new table 

CREATE TABLE `quiz_comments` (
  `
cidint(10NOT NULL auto_increment,
  `
quizidint(10NOT NULL default '0',
  `
useridint(25NOT NULL default '0',
  `
dateint(11NOT NULL default '0',
  `
commentstext NOT NULL,
  
PRIMARY KEY  (`cid`),
  
KEY `cid` (`cid`),
  
KEY `userid` (`userid`),
  
KEY `id` (`quizid`)
TYPE=MyISAM;

//- find in quiz.php --------------

MORE WITH THIS SCORE

//- add above it-------------------


// ------------------------------------- DELETE COMMENTS START--------------------------------------------
if ($action=="delcomment"
{
    if (
$bbuserinfo['usergroupid']==6)
        {
            
$DB_site->query("DELETE FROM quiz_comments
                         WHERE cid = '
$cid'");
                           
        }
     eval(
"standardredirect(\"".gettemplate("quiz_comments_delete")."\",\"quiz.php?s=$session[sessionhash]&quizid=$quizid\");");

}

if (
$action=="savecomment")
    {
        
$time time();
         
$quiz $DB_site->query("INSERT INTO quiz_comments (cid, quizid, userid, date , comments) 
                            VALUES (NULL,"
.intval($quizid).", ".intval($userid).", ".time().", '".addslashes($comments)."')");
        eval(
"standardredirect(\"".gettemplate("redirect_postthanks")."\",\"quiz.php?s=$session[sessionhash]&quizid=$quizid\");");
    }


// ------------------------------------- DELETE COMMENTS END --------------------------------------------


//- find in quiz.php --------------

    
$time time();
    eval(
"dooutput(\"".gettemplate("quiz_display")."\");");


//- add above it-------------------


//////////////////////////////////////////////////////////////////////////////////////////////////////////
    
$quizcommentr $DB_site->query("SELECT r.comments, r.date, r.cid,
                                             u.userid, u.username
                                      FROM quiz_comments r, user u
                                      WHERE r.quizid = "
.intval($quizid)."
                                        AND r.userid = u.userid
                                      ORDER BY r.cid ASC
                                      "
);

        while (
$quizcomment $DB_site->fetch_array($quizcommentr)) 
            {
                
$quizcomment[comments] = bbcodeparse(stripslashes($quizcomment[comments]));
                
$cid=$quizcomment[cid];
                  
$quizcomment[date] = vbdate("$dateformat$timeformat"$quizcomment[date]);
                  
                if (
$bbuserinfo[usergroupid]==6
                    {
                        
$quizcommentdel ="<smallfont color=\"#008080\">[<a href=\"quiz.php?s=$session[sessionhash]&quizid=$quizid&action=delcomment&cid=$cid\">Delete</a>]</smallfont>";
                    }  
                if(
$quizcomment[comments]!="")
                    {
                          eval(
"\$quizdisplaybit .= \"".gettemplate("quiz_comments_displaybit")."\";");
                    }
 
            }
                eval(
"\$quiz_display = \"".gettemplate("quiz_comments_display")."\";");

           

//////////////////////////////////////////////////////////////////////////////////////////////////////////


ADD NEW TEMPLATES


//------------ADD NEW "quiz_comments_delete 

Comment deleted successfullyyou will return to the quiz.



//------------ADD NEW "quiz_comments_display 

  
<table width="100%" cellpadding="4" cellspacing="0" border="0" bgcolor="#9999FF">
    <
tr bgcolor="#9999FF">
      <
td colspan="2" width="100%" valign="middle"><normalfont color="#000000"><b>Quiz Discussion</b></normalfont></td>
    </
tr>

    
$quizdisplaybit

  
</table>

//------------ADD NEW "quiz_comments_displaybit"

  
<tr bgcolor="#13486D" >
    <
td width="100%" valign="left"><smallfont color="#008080"Posted by: <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$quizcomment[userid]"><b>$quizcomment[username]</a></bon $quizcomment[date] </smallfont></td><td valign="right">$quizcommentdel</td>
  </
tr>

  <
tr width="90%" bgcolor="#1C5780">

    <
td colspan="2" width="100%" valign="left"><normalfont>$quizcomment[comments]</normalfont></td>
  </
tr


did wat your told but dun see anything! why?

kevinnguyen 03-21-2003 02:14 AM

Quote:

03-19-03 at 08:55 PM LangTuDaTinh said this in Post #713
no, i modified it by myself , give me your email, i will send u the script.

do u want members able to approve their own quiz or only u can do it? cause right now my script alllow members to approve their own quiz. but i can change that.


to kevinnguyen, goodluck man, reinstall all the hack is pain in the ass...u will need at least 3 or more days if your board is heavily hacked. give me your website link when u done...i wanna see it ehheeeh...what is your vbb style? i want to change my style but don't have much time....and not very good /w graphic software....

yeah, ur style is so boring man
but if you change a new one, you have to install all ur hack again
paintfull!

LangTuDaTinh 03-21-2003 03:18 AM

hehe i know, orginal vb style is ++++....i can pay $30 to $50 for a new style but i wanna make my own...but i don't have time yet.

hey your style is not bad..... where did you bought it?...

about quiz, i think i forgot one little code in quiz_display

PHP Code:

        <!-- ------------quiz comment------------------- -->
<
form action="$homeurl/forums/quiz.php?s=$session[sessionhash]&quizid=$quiz[quizid]method="post">
<
textarea name=comments rows=7 cols=70></textarea><br>
    <
input type=hidden name="action" value="savecomment">
   <
input type=hidden name="quizid" value ="$quiz[quizid]">
     <
input type=hidden name="userid" value ="$bbuserinfo[userid]">
    <
input type=submit value="Post Comment">
    </
form>
        <!-- ------------
quiz comment------------------- --> 

Quote:

won't you realise it as i'd also be interested in using this, if it uses the style sets and not the mod panel colour settings
if you want your own style sets then this one is no use for u, cause you have use change most of the code or rewrite the whole script. if i have time will would make it more professional..but...


All times are GMT. The time now is 02:58 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.01898 seconds
  • Memory Usage 1,811KB
  • 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
  • (5)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