Memberlist.php...Parse error on line 88....

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   re: Memberlist.php...Parse error on line 88....
jcb
CZ Active Member
 Codezwiz Site Donator
uk.gif
Occupation: Soldier
Age: 49
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
Here you go, missed that before, sorry.

Try this one.



Attached Files
index.rar (4.37 KB, Downloaded: 5232 Time(s))



_________________
PHP Super NooB
Back to top Reply with quote
#2   re: Memberlist.php...Parse error on line 88....
xxl_martin_lxx
CZ Active Member
xxl_martin_lxx has been a member for over 20 year's 20 Year Member
uk.gif
Age: 33
Gender: Male
Fav. Sports Team: Aldershot Town FC (English Conference)
Website:
Status: Offline
Joined: Aug 09, 2004
0.03 posts per day
Posts: 207
Points: 9,481
   
hey,

i downloaded that and uploaded it..... now i get
Parse error: parse error, unexpected T_VARIABLE in /home/martin2/public_html/nuke/modules/Members_List/index.php on line 91


Im wondering if its actually some editting in a different file thats actually causing these althought its actually in the members_list/index.php file.....


Back to top Reply with quote
#3   re: Memberlist.php...Parse error on line 88....
mjhufford
CZ Active Member
 Codezwiz Site Donator
mjhufford has been a member for over 20 year's 20 Year Member
usa.gif arkansas.gif
Occupation: IT Industry
Age: 47
Gender: Male
Fav. Sports Team: Da Bears.
Website:
Status: Offline
Joined: Jul 01, 2004
0.04 posts per day
Posts: 288
Points: 15,094
  MSN Messenger 
An If then else statement looks something like this in PHP:

If ($a == 5) {

    echo "Hello World";

} else {

    echo "a$ is not equal to 5";

}


So first we ask a question "if this...then...". In this case, we're stating "if the variable $a is equal to the number 5, then show "Hello World" on the webpage. Otherwise (else) show that the value of the variable "is not equal to 5".

So what your equation looks like to me is this:

If ($a == 5) {

    echo "Hello World";

} else

    echo "a$ is not equal to 5";

}


Notice it is missing the brace after the word "else". Try restoring your original file and adding a " { " after the word "else" on line 81. Let me know if that helps.

MJ



_________________
"The pursuit of easy things makes men weak."
-David O. McKay
Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Try fixing this line...

From:

$cm_memberlist->droplists($mode_types_text $mode_types);


To:

$cm_memberlist->droplists($mode_types_text, $mode_types);


Also noticed quite a few other errors in there:


'L_LOOK _UP' => $lang['Look_up_User'],


There is a space in it. Not enough to cause a parse error but that define may not work. Same here:


'L_ONLI NE_STATUS' => $lang['Online_status'],




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   
xxl_martin_lxx
CZ Active Member
xxl_martin_lxx has been a member for over 20 year's 20 Year Member
uk.gif
Age: 33
Gender: Male
Fav. Sports Team: Aldershot Town FC (English Conference)
Website:
Status: Offline
Joined: Aug 09, 2004
0.03 posts per day
Posts: 207
Points: 9,481
   


Originally posted by Telli @ Thu Jun 16, 2005 2:17 pm:

Try fixing this line...

From:

$cm_memberlist->droplists($mode_types_text $mode_types);


To:

$cm_memberlist->droplists($mode_types_text, $mode_types);



Right, okie will do this



Also noticed quite a few other errors in there:


'L_LOOK _UP' => $lang['Look_up_User'],


There is a space in it. Not enough to cause a parse error but that define may not work. Same here:


'L_ONLI NE_STATUS' => $lang['Online_status'],


Do u mean the part that has 'L_LOOK _UP' and 'L_ONLI NE_STATUS'


Back to top Reply with quote
#6   
jcb
CZ Active Member
 Codezwiz Site Donator
uk.gif
Occupation: Soldier
Age: 49
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
Yes,

Remove the space.

Out of curiosity, where did you get that file from as it is full of errors?




_________________
PHP Super NooB
Back to top Reply with quote
#7   
xxl_martin_lxx
CZ Active Member
xxl_martin_lxx has been a member for over 20 year's 20 Year Member
uk.gif
Age: 33
Gender: Male
Fav. Sports Team: Aldershot Town FC (English Conference)
Website:
Status: Offline
Joined: Aug 09, 2004
0.03 posts per day
Posts: 207
Points: 9,481
   
Which file?......

The one i attached first was the one straight from modules/member_list.php that was editted by me so it was probably my editting thats done the damage..

Please ignore this thread now..i will kick on with my platinum site and go slowly and keep checking i've editted correctly.

Thanks for the help you've given me, i've taken it all in and hope to return the knowledge to someone else that maybe will have the same problem(s).
Thank you and keep up the great work CZ!!



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum