MOD

PHP coding talk.

Moderator: Moderators

MOD

Postby Disturbed One on Sat Feb 05, 2005 5:45 pm

I am making a mod, and when I tested my mod on a test board I get this error when I view the profile (what the mod alters)

Code: Select all
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/hantho07/public_html/modtest/includes/usercp_viewprofile.php on line 317


Line 317
Code: Select all
   'L_INVISION_MEMBER_TITLE' => $lang['Invision_Member_Title']


Code that calls it in the profile:
Code: Select all
      <td class="row3" width='25%' valign='top' style="background-color: #eef2f7"><b><span class="gen">{L_INVISION_MEMBER_TITLE}</span></b></td>


What is my error trying to tell me that I need to fix?
Anthony Coy, President/Owner
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby PostBot on Sat Feb 05, 2005 7:06 pm

Probably you forgot comma on previous line.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby Disturbed One on Sat Feb 05, 2005 7:40 pm

That was it. Thank you.
Anthony Coy, President/Owner
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby Disturbed One on Sat Feb 05, 2005 8:16 pm

Another question. The mod will be coming with a background image (invision.gif). How can I force this image as a background image a th or td? The mod I am working on is here: http://www.anthonycoy.net/modtest/profi ... rofile&u=2, and I want my image to go where the image that is currently Active Stats, Communicate, etc. and be able to go on all styles.

What do I need to do in .css to make this happen?
Anthony Coy, President/Owner
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby PostBot on Sat Feb 05, 2005 9:11 pm

You'll need to edit tpl file and/or css.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby Disturbed One on Sun Feb 06, 2005 4:05 am

What code would I have to use?
Anthony Coy, President/Owner
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby PostBot on Sun Feb 06, 2005 11:25 am

Assign some class to that table cell and in css add that class with background linked to some image.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby Disturbed One on Sun Feb 06, 2005 2:30 pm

Unfortunately I do not know css very well. What code can I use that would work with all templates?
Anthony Coy, President/Owner
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby PostBot on Sun Feb 06, 2005 2:33 pm

Create some class like this:
Code: Select all
.my-row { background: #FFF url(images/bg.gif) }
or this:
Code: Select all
.my-row { background: #FFF url(images/bg.gif) top left repeat-x; }
and in tpl file use this:
Code: Select all
<td class="my-row">
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby Disturbed One on Sun Feb 06, 2005 3:48 pm

And I can just put that at the bottom of the .css file?
Anthony Coy, President/Owner
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby PostBot on Sun Feb 06, 2005 5:44 pm

Yep. Placement doesn't matter because you don't overwrite that class anywhere else in css.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby Disturbed One on Sun Feb 06, 2005 6:01 pm

I will try it later. I will be releasing my mod to phpBB today.
Anthony Coy, President/Owner
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby Disturbed One on Mon Feb 07, 2005 12:19 am

or not because it is down. I will submit it to phpBBhacks, and on my website, then to phpBB
Anthony Coy, President/Owner
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby Disturbed One on Mon Feb 07, 2005 12:30 am

It's not working... Any way I can do it using no css?
Anthony Coy, President/Owner
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby PostBot on Mon Feb 07, 2005 12:49 am

Sure. Use inline css like this:
Code: Select all
<td style="background: #FFF url(templates/subSilver/images/bg.gif);">
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Next

Return to PHP Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron