[ABD] Profile Control Panel

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
260
60%
Very Good
81
19%
Good
43
10%
Fair
9
2%
Poor
41
9%
 
Total votes: 434

justron
Registered User
Posts: 4
Joined: Sun Mar 06, 2005 10:16 pm
Location: fiji
Contact:

Parse error: parse error, unexpected $ in template.php(127)

Post by justron »

this is error i am getting can anyone give sugesstions

Parse error: parse error, unexpected $ in /home/httpd/vhosts/website.com/httpdocs/forum/includes/template.php(127) : eval()'d code on line 190


kind regards
--------------------------------
ron
webamsters fiji ltd
--------------------------------
ron

groundfighter
Registered User
Posts: 1909
Joined: Sat Nov 08, 2003 2:15 am
Location: Las Vegas, NV
Contact:

Post by groundfighter »

Is template.php a file that was edited during the install of your mod? If so go back and check all the code from the install manual on that file.

justron
Registered User
Posts: 4
Joined: Sun Mar 06, 2005 10:16 pm
Location: fiji
Contact:

i do not beleive the code was modified

Post by justron »

Parse error: parse error, unexpected $ in /home/httpd/vhosts/fijilive.com/httpdocs/forum/includes/template.php(127) : eval()'d code on line 190

any solution!
ron

ShaunHill
Registered User
Posts: 14
Joined: Tue Mar 08, 2005 3:47 pm

Post by ShaunHill »

If I wanted to change the user ID that the pages display as the founder, how might I go about doing this?

found it
Registered User
Posts: 215
Joined: Mon Oct 25, 2004 8:51 am
Contact:

Post by found it »

in your phpmyadmin i think it is under phpbb_users....in your database.....

ShaunHill
Registered User
Posts: 14
Joined: Tue Mar 08, 2005 3:47 pm

Post by ShaunHill »

I don't want to change the actual user ID, I just want to change the ID that the page thinks is the founder.

ShaunHill
Registered User
Posts: 14
Joined: Tue Mar 08, 2005 3:47 pm

Post by ShaunHill »

i've searched alot of the php's and the databases and I still haven't found out where to change it. I know there's got to be a way to right? lol.

justron
Registered User
Posts: 4
Joined: Sun Mar 06, 2005 10:16 pm
Location: fiji
Contact:

i still cannot find a solution........

Post by justron »

Parse error: parse error, unexpected $ in /home/httpd/vhosts/fijilive.com/httpdocs/forum/includes/template.php(127) : eval()'d code on line 190


can anyone figure out YYY coz i am just ....

ron
ron

ShaunHill
Registered User
Posts: 14
Joined: Tue Mar 08, 2005 3:47 pm

Post by ShaunHill »

Normally I fix parse errors by going back to that file and deleting the extra blank lines after the...

?>

at the end of the file


-Shaun

Aryos_
Registered User
Posts: 3
Joined: Sun Feb 27, 2005 3:05 pm

Post by Aryos_ »

I have successfully installed the mod on mambo 4.5.2.1, on the phpbb component, after further moding it to work with mambo. Everything works fine except this issue I have:

Trying to view the "Buddy List" tab there is an SQL error. Follwing is the debug info:

Code: Select all

Could not read user informations

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS i ON i.user_id=62 AND i.buddy_id=u.user_id) LEFT JOIN AS b

SELECT DISTINCT 
				u.*,
(CASE WHEN i.buddy_ignore = 0 THEN 1 ELSE 0 END) AS user_my_friend_virt,
i.buddy_visible AS user_my_visible_virt,
(CASE WHEN i.buddy_ignore = 1 THEN 1 ELSE 0 END) AS user_my_ignore_virt,
(CASE WHEN b.buddy_ignore = 0 THEN 1 ELSE 0 END) AS user_friend_virt,
b.buddy_visible AS user_visible_virt,
(CASE WHEN b.buddy_ignore = 1 THEN 1 ELSE 0 END) AS user_ignore_virt,
(CASE WHEN u.user_session_time >= (1110400689-300) THEN 1 ELSE 0 END) AS user_online_virt,
u.username AS username_virt,
u.user_regdate AS user_regdate_virt,
u.user_lastvisit AS user_lastvisit_virt,
u.user_posts AS user_posts_virt,
r.rank_title AS user_rank_title_virt,
				1 AS user_generic_display,
1 AS user_viewonline_display,
1 AS user_webdisplay_display
			FROM  ((((
mos_users AS u)
LEFT JOIN  AS i ON i.user_id=62 AND i.buddy_id=u.user_id)
LEFT JOIN  AS b ON b.user_id=u.user_id AND b.buddy_id=62)
LEFT JOIN phpbb_ranks AS r ON (u.user_rank > 0 AND r.rank_special <> 0 AND r.rank_id = u.user_rank) OR (u.user_rank = 0 AND r.rank_special = 0 AND u.user_posts >= r.rank_min AND u.user_posts < r.rank_max)) 
			WHERE u.user_id <> -1 AND i.buddy_ignore = 0
			ORDER BY username_virt ASC



Line : 906
File : profilcp_buddy.php
The query code is stored in the Admin Control Panel, in the mod's configuration options and not in the file profil_buddy.php itself. Although I'm experienced in mySQL and I have used syntax checking to validate the code, I can't find where the syntax error is. Can anyone give me some help?

This should not have happenned, since the queries are installed during the mod installatina and I haven't edited any of the sql queries....

thecaptainjs
Registered User
Posts: 33
Joined: Wed Mar 09, 2005 1:06 am
Contact:

Post by thecaptainjs »

Help!!

Code: Select all

Warning: main(././includes/functions_mods_settings.php): failed to open stream: No such file or directory in /home/cc-comp/public_html/D2trade/includes/mods_settings/mod_profile_control_panel.php on line 28

Warning: main(): Failed opening '././includes/functions_mods_settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cc-comp/public_html/D2trade/includes/mods_settings/mod_profile_control_panel.php on line 28

Fatal error: Call to undefined function: init_board_config() in /home/cc-comp/public_html/D2trade/includes/mods_settings/mod_profile_control_panel.php on line 105

ShaunHill
Registered User
Posts: 14
Joined: Tue Mar 08, 2005 3:47 pm

Post by ShaunHill »

it doesn't appear that anyone is willing to help any of us :p. I still need to know how to change the user_id that the page will pick up as the founder.

eviluncledave
Registered User
Posts: 17
Joined: Thu Jul 03, 2003 4:03 am
Location: Back of milk carton
Contact:

Post by eviluncledave »

ShaunHill wrote: I still need to know how to change the user_id that the page will pick up as the founder.


You can modify a line in functions_profile.php:

Code: Select all

		$res = USER;
	if ( ($userdata['user_level'] == ADMIN) && ($userdata['user_id'] == 2) )
	{
		$res = ADMIN_FOUNDER;
The number ("2" in this case) is the user number of the founder.

ShaunHill
Registered User
Posts: 14
Joined: Tue Mar 08, 2005 3:47 pm

Post by ShaunHill »

Thank you very much. I couldn't find that before, I guess I didn't exactally know what I was looking for.

thecaptainjs
Registered User
Posts: 33
Joined: Wed Mar 09, 2005 1:06 am
Contact:

Post by thecaptainjs »

Your awsome! you answered my next question!! the founder account dissapeared.

the answer to my problem was YOU HAVE TO COPY EACH FILE OVER INDIVIDUALLY.
I didnt notice that the files all went to different folders! (im an idiot and did it manually).

if you have my problem your a dumbass!! use eazymod!!

Locked

Return to “[2.0.x] MODs in Development”