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)

Sigon 06-11-2002 11:19 PM

I have just one problem. http://forums.lotronline.com/quiz.php the table is huuuuuuge. Something up with the template?

TWTCommish 06-11-2002 11:28 PM

The problem appears to be your header: you're missing a closing table row and table tag. I'm not sure which tags it is specifically, but it looks like your header template ends without a closing </tr> or </table> tag...which would be okay, except it doesn't end with an opening <td> tag, either.

Sigon 06-11-2002 11:29 PM

Whaaaaaat?

bandersen 06-11-2002 11:30 PM

I still get this error:

Fatal error: Unsupported operand types in ....../forums/upload/quiz.php on line 350

(By now I have only Default style installed)

Sigon 06-11-2002 11:30 PM

I thinked I fixed the missing thing but still no go

TWTCommish 06-11-2002 11:30 PM

Sigon: just what I said, dude. :) Look at the HTML of the main quiz page...I'm not sure how to fix it exactly, but I'm 99% sure the main quiz page HTML is kosher.

bandersen: I'm workin' on it. :) In the meantime, though, can you tell me what version of PHP you're running?

Sigon 06-11-2002 11:32 PM

I gotcha mate. I am gonna install that template again and see what happens

Sigon 06-11-2002 11:35 PM

TWT I re did all the templates and nada

bandersen 06-11-2002 11:45 PM

PHP v 3 and something..... moving to 4.1.2 soon.

TWTCommish 06-12-2002 12:13 AM

Sigon: I'm sorry man, I'm 99% sure that it's one of your templates that's causing the conflict. I've tested mine on fresh vB installations and on other's vBs and they work fine. I looked at your header HTML and there's definitely some missing or misplaced tags.

bandersen: I'm not sure if this is exactly compatible with a version of PHP that early or not. You might have to ditch all instances of the $HTTP_POST_VARS[] array.

Sigon 06-12-2002 12:15 AM

Bah! Guess my users have to deal with it. Until I can look at it

Smoothie 06-12-2002 12:35 AM

I've been following along and trying to figure out if this is ready to be installed. I'm running 2.2.2 and PHP 4.2.1, with 2 styles on my forums.

TWTCommish 06-12-2002 12:37 AM

Smoothie: yes, it should work. If the templatesetid for your primary templateset is NOT 1, however, you'll need to let me know so you can run the installation script just a little differently.

Dark_Wizard 06-12-2002 12:37 AM

Any fix for the error some of us are getting?

TWTCommish 06-12-2002 12:39 AM

Which? :D The one on 350? Need more details, man, I'm juggling like four problems. Hehe.

Smoothie 06-12-2002 12:47 AM

Quote:

Originally posted by TWTCommish
Smoothie: yes, it should work. If the templatesetid for your primary templateset is NOT 1, however, you'll need to let me know so you can run the installation script just a little differently.
Yes, my primary styleid is 1, so it should be ok?

TWTCommish 06-12-2002 12:48 AM

Yep. I hope. LOL.

Lionel 06-12-2002 12:57 AM

I just installed without any errors. Created and approved my first quiz; when I run quiz.php on 2.21 I get:

Database error in vBulletin 2.2.1:

Invalid SQL: SELECT quizid, quiztitle, description, timestamp, userid, catid, imagename
FROM quiz
WHERE approve = 1
ORDER BY timestamp DESC
LIMIT

TWTCommish 06-12-2002 01:00 AM

BAH! Doesn't anyone read the blasted instructions file? :p It warns against that error and tells you what you should do before running the file to make sure it doesn't happen.

Lionel 06-12-2002 01:06 AM

Quote:

Originally posted by TWTCommish
BAH! Doesn't anyone read the blasted instructions file? :p It warns against that error and tells you what you should do before running the file to make sure it doesn't happen.
ok, ok, my mistake. Nicely done! :sleep:

Lionel 06-12-2002 01:07 AM

TWT, can a moderator add a quiz?

rascal 06-12-2002 01:13 AM

TWT, I signed up for your site but somehow when I tried to do a quiz, they informed me that Only registered members are allowed to take the quiz eventhough I had done so.

Do advise.

Great Hack!

This is quite a stupid question. how do you add a quiz?

TWTCommish 06-12-2002 01:20 AM

Rascal: are you sure you're logged in? If so, try refreshing...it might be a cache problem.

Lionel: no, not with this setup, but I'm sure it could be modified to do so. Perhaps just by uploading the file to the /mod dir too and making the changes to that index.php file...but I'm not sure.

TWTCommish 06-12-2002 01:30 AM

Rascal: in your Admin CP. Under the "Quizzes" heading after you've installed the hack, there should be an "Add" link. :D

rascal 06-12-2002 01:43 AM

TWT, it's ok now.

As for my site, I'm having the same 350 error. How do you see the version of the PHP files you're running?

Images attachment not working too. :)

The file attached shows the alignment is not correct too. :)

*Tried to submit a few times in Admin CP but to no avail*

TWTCommish 06-12-2002 01:54 AM

I don't understand that last part...the 350 error is seperate. The Admin CP submission doesn't fix that.

To see what version of PHP you're running, create a file with this inside, and run it:

PHP Code:

<?php
  phpinfo
();
?>

As for the images: you probably forget to create the dir and chmod it properly. Again, it's in the instructions.txt file. If you've chmoded it 777 and it STILL doesn't work, then it's likely a server issue.

TWTCommish 06-12-2002 01:56 AM

The alignment is probably a clash with one of your templates. I installed that template on a fresh vB installation and there no alignment issue.

Erwin 06-12-2002 02:12 AM

This looks great. I will install it this weekend and let you know how it goes. Thanks.

rascal 06-12-2002 02:15 AM

I have added the folder quizzes and chmodded it. But to no avail. I have no problem is I added smilies in Smilies folder though.

As for the version. Still no idea how to do it. Glad if you can guide me cos I'm not pretty sure about them.
For the alignment, could you tell me where should I specify specifically for the template only or if it's not possible. Am I able to take out that bar?

As for the last part, I am having the 350 issue.

TWTCommish 06-12-2002 02:20 AM

The 350 issue is a PHP version problem...at least, I'm nearly positive it is. As for the version: I explained it as best I could in the last post...I spelled it all out, I think. I'm not sure how much more specific I can get.

The chmoding must be off somehow: are you sure it's 777? Is the "quizzes" folder INSIDE the "images" folder?

rascal 06-12-2002 02:24 AM

Here's what I did.

1. Make a new text file with <?php
phpinfo();
?> inside.
2. Name it text.php and place them on my server and execute it. But nothing happens.

I have read and write for the folder. (/images/quizzes)

Sorry for taking too much of your time.

TWTCommish 06-12-2002 02:27 AM

I don't think read and write is enough. Try full permissions.

As for the file: that should work. You should get a big display page full of information...if you don't...well, I dunno, you might have a VERY old version of PHP or something of the sort...in which case I don't know if there's anything that can be done.

rascal 06-12-2002 02:31 AM

LOL....silly me. I execute it in my WS_FTP. Ok my version is 4.1.2

Tried full permission for all folders under /images. Same issue. But the funny thing is uploading smilies is ok.

Take a look here at the attachment.
There is no broken image there too. (Cos I'm sure if there is a column for the image, at least the view would have some sort of a broken image)

Lionel 06-12-2002 02:33 AM

TWT, your hack is spectacular. Is there a way to use a different header?

TWTCommish 06-12-2002 02:38 AM

rascal: I'm confused. You mean there's no error when you try to upload the image? The quiz is added?

Lionel: I'm not sure what you mean. The templates are all built to use your header template contents automatically.

rascal 06-12-2002 02:41 AM

There is no error whatsoever. The quiz is added. When I checked the folder, there are no images.

I only got the 350 error when I try to take the quiz.

Do take a look at the attachment at post#114.

TWTCommish 06-12-2002 02:42 AM

I'm still working on the 350 error...

Hmm, that image thing is weird. What's the image's name? That might have something to do with it...

rascal 06-12-2002 02:44 AM

The image name is lotr_the_fellowship_of_the_ring.jpg

Sorry I took your image just for testing purposes only.

TWTCommish 06-12-2002 02:45 AM

That's okay. :) Hmmm, I'll try to figure that out. I'd recommend giving another image a try to see what happens. I've gotta go to sleep for now, though. :D I'll try this tomorrow.

rascal 06-12-2002 02:47 AM

Sure and make sure you take a good rest. See ya soon.


All times are GMT. The time now is 04: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.01773 seconds
  • Memory Usage 1,810KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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