Parse Error with Gender Mod!

Mod that adds a extra field to the users profile, the gender is displayed beside the posts

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Parse Error with Gender Mod!

Postby Azar on Mon 20. Sep, 2004 01:39

Okay, I changed the name of this thread to update my situation. I've managed to get the files changed and uploaded, but when trying to access my profile I get this error: Parse error: parse error in /home/sparelim/.panel/web/bulletin/bb/includes/usercp_register.php on line 458
What do I do?
Last edited by Azar on Tue 21. Sep, 2004 00:40, edited 1 time in total.
Azar
Poster
Poster
 
Posts: 5
Joined: Mon 20. Sep, 2004 00:09

Postby kooky on Mon 20. Sep, 2004 19:16

if you don't know how works EasyMod, install this mod manually :wink:
EM directory should be:
admin/easy_mod/mods/gender_mod/root/...
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby Azar on Mon 20. Sep, 2004 22:04

Anyone know why I got that Parse Error? It seems like I'm close, but maybe just made a little mistake or two... :cry:
Azar
Poster
Poster
 
Posts: 5
Joined: Mon 20. Sep, 2004 00:09

Postby kooky on Tue 21. Sep, 2004 03:07

With a text editor which counts each line, check your line 458
You made an error there :roll:
Parse error is a comma, brace, bracket... added or removed
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby Azar on Tue 21. Sep, 2004 23:03

Well I re-entered the code, but am STILL getting the same parse error.

Parse error: parse error in /home/sparelim/.panel/web/bulletin/bb/includes/usercp_register.php on line 458

Here's the code I entered. am I just missing something here?

Code: Select all
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popup_pm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql , user_gender = '$gender'."
Azar
Poster
Poster
 
Posts: 5
Joined: Mon 20. Sep, 2004 00:09

Postby kooky on Wed 22. Sep, 2004 01:11

your end code is wrong
you should have this:
Code: Select all
...str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . ", user_gender = '$gender'
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby Azar on Wed 22. Sep, 2004 02:30

Thanks a lot for helping me with that, I was able to get past that Parse error. I have no errors, but the gender thing is now showing up at the very top of a page instead of underneath the avatar. Did I put a section of code in the wrong location?
Azar
Poster
Poster
 
Posts: 5
Joined: Mon 20. Sep, 2004 00:09

Postby kooky on Sat 25. Sep, 2004 01:51

do you have a screenshot or a link to this problem?

it's an HTML issue, just move your code in your .tpl where you want
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Next

Return to Gender [2.0.10/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron