vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Getting a parse error (https://vborg.vbsupport.ru/showthread.php?t=67843)

sully02 07-31-2004 10:26 PM

Getting a parse error
 
1 Attachment(s)
I'm working on the form mod that I found on here, and I uploaded it and am now getting a parse error on line 125. As far as I know, there's nothing there that would cause a parse error... Here's the line of code:

Code:

$radioquestion1 = "Have you been a Moderator, Super Moderator, or Administrator at any other forums?";
I've attached the .php file if anybody wants to take a look at it and tell me what I'm doing wrong. I'm relatively new to programming PHP, so forgive me if it's messy. Any help would be greatly appreciated.

bhutz 07-31-2004 10:43 PM

yo i'm the daddy :)
Add a ; to the end of line 119
Code:

$question1 = "What LMD forums do you have an interest in moderating?"
Hope that solves it otherwise I'm looking silly right now :)

p.s. Don't suppose u know how to increase the total size of attachments that a member can have? I have a (legend) member who has posted plenty of attachments but I think he has reached limit unless he deletes some, any idea?

bhutz 07-31-2004 10:50 PM

Found what I was looking for :), it was in the usergroups section, clearly didn't look hard enough

sully02 07-31-2004 11:10 PM

Quote:

Originally Posted by bhutz
Found what I was looking for :), it was in the usergroups section, clearly didn't look hard enough

Excellent. Now I'm getting a parse error in this line:

Code:

if ($answer1 == '' $radioanswer1 == '' OR $ModSite1 == '' OR $ModURL1 == '' OR $longasnwer1 == '' OR $longanswer2 == '' OR longanswer3 == '' OR longanswer4 == '' OR $longanswer5 == '')
I'll see if I can find the error before you or someone else does.

MindTrix 07-31-2004 11:23 PM

chuck a && before $radioanswer1 ;)

sully02 07-31-2004 11:38 PM

Quote:

Originally Posted by MindTrix
chuck a && before $radioanswer1 ;)

Done... No luck yet :(

I'll see what one of my friends says about it. If you guys happen to find any other errors, do let me know. I'm sure I'll look stupid in the process, but I am still learning PHP (Been at it for about a week and change now).

MindTrix 07-31-2004 11:39 PM

If you do the fix that was posted earlier, and the one i mentioned, there is nothing else wrong with that file you posted.

MindTrix 07-31-2004 11:43 PM

If you still have problems, post the file you got now with them fixes in.

sully02 08-01-2004 12:27 AM

Quote:

Originally Posted by MindTrix
If you still have problems, post the file you got now with them fixes in.

OK, it pretty much works. I just have to get it to put down what I have for question 1, since right now it actually has $question1 instead of the actual phrase.

Edit - In addition, I also have to change it. I filled in every option, and it says I have to fill in every option.

Click here to see how it looks thus far

MindTrix 08-01-2004 12:48 AM

http://www.livemockdraft.com/forums/applyformod.php

thats the correct link ;) Plus guests cant see it

MindTrix 08-01-2004 12:51 AM

Also are you aware you spelt $longasnwer1 shouldnt it be $longanswer1 ;) in this line

PHP Code:

OR $longasnwer1 == '' OR $longanswer2 == 


sully02 08-01-2004 12:58 AM

Meh, I have it working now. Thanks for all your help!

Then again, guests don't really need to see it, since they wouldn't be able to become moderators anyway, now would they?

Actually, maybe you can help me some more. I tried to modify my functions_online.php file to make it so that when you go to online.php, it says that the person is applying to become a moderator, but ended up having an error when I tried to view it. Any ideas/suggestions there?

MindTrix 08-01-2004 01:06 AM

1 Attachment(s)
Did you get it fixed because of the errors pointed out in the other posts?

As for the online, i have never bothered doing that but i looked in another hack at how they did it and changed it, so im guessing it will work, knowing my luck it wont but no harm in trying, instructions in the text file attached

sully02 08-01-2004 01:10 AM

Quote:

Originally Posted by MindTrix
Did you get it fixed because of the errors pointed out in the other posts?

As for the online, i have never bothered doing that but i looked in another hack at how they did it and changed it, so im guessing it will work, knowing my luck it wont but no harm in trying, instructions in the text file attached

Well, all of the errors pointed out fixed the problem. I got $question1 to show up after looking at the HTML code and finding out that there was a tag (For some unknown reason) placed between the $ and the question portion of the word.

Needless to say, it works now, and I'll see what I can do about getting it to show up on the online page.

MindTrix, I can't thank you enough for helping a n00b like me out.

MindTrix 08-01-2004 01:11 AM

Everyones a noob, some just know more than others. Its 3:10am here but i'll wait online to see if the whos online thing works so hurry up and try it :)

sully02 08-01-2004 01:26 AM

Quote:

Originally Posted by MindTrix
Everyones a noob, some just know more than others. Its 3:10am here but i'll wait online to see if the whos online thing works so hurry up and try it :)

Nope, didn't work :( I'll give it another try and you can find out how it goes tomorrow.

Edit - Here's the error message of joy I got:

Parse error: parse error, unexpected T_IF in /home/livemoc/public_html/forums/includes/functions_online.php on line 25

sully02 08-01-2004 05:46 PM

Tried it again today and got the same error message *Shrug*

Hiro 08-02-2004 10:49 PM

Everyone is a noob right, We all start somewhere.


All times are GMT. The time now is 12:55 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.01112 seconds
  • Memory Usage 1,754KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete