Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2004, 10:26 PM
sully02 sully02 is offline
 
Join Date: Jul 2004
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Getting a parse error

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.
Attached Files
File Type: php applyformod.php (14.2 KB, 9 views)
Reply With Quote
  #2  
Old 07-31-2004, 10:43 PM
bhutz's Avatar
bhutz bhutz is offline
 
Join Date: Apr 2004
Location: Bedford/Reading/Loughboro
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 07-31-2004, 10:50 PM
bhutz's Avatar
bhutz bhutz is offline
 
Join Date: Apr 2004
Location: Bedford/Reading/Loughboro
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found what I was looking for , it was in the usergroups section, clearly didn't look hard enough
Reply With Quote
  #4  
Old 07-31-2004, 11:10 PM
sully02 sully02 is offline
 
Join Date: Jul 2004
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 07-31-2004, 11:23 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

chuck a && before $radioanswer1
Reply With Quote
  #6  
Old 07-31-2004, 11:38 PM
sully02 sully02 is offline
 
Join Date: Jul 2004
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #7  
Old 07-31-2004, 11:39 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you do the fix that was posted earlier, and the one i mentioned, there is nothing else wrong with that file you posted.
Reply With Quote
  #8  
Old 07-31-2004, 11:43 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you still have problems, post the file you got now with them fixes in.
Reply With Quote
  #9  
Old 08-01-2004, 12:27 AM
sully02 sully02 is offline
 
Join Date: Jul 2004
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 08-01-2004, 12:48 AM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

thats the correct link Plus guests cant see it
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04501 seconds
  • Memory Usage 2,273KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete