MOD

PHP coding talk.

Moderator: Moderators

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

I'm so sorry for taking up your time and being dumb, but how do I put that in this code?

Code: Select all
     <tr>
      <td align='center' colspan='2' class='invision'><b><span class="genmed">{L_INVISION_A_STATS}</span></b></td>
     </tr>
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:56 am

Code: Select all
     <tr>
      <td align="center" colspan="2" class="genmed" style="background: #FFF url(templates/subSilver/images/bg.gif); font-weight: bold;">{L_INVISION_A_STATS}</td>
     </tr>
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 Mon Feb 07, 2005 12:58 am

It works. Is there a way I can make the subSilver pert change to whatever the user's style is?
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 1:01 am

No, not with phpBB 2.0
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 Mon Feb 07, 2005 1:03 am

bummer. I thought there was a $template variable or something like that.
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 1:21 am

Would I be able to accomplish this by .cfg?

$images['invision'] = "$current_template_images/invision.gif";

How can I make the tpl background image point using this?
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 1:40 am

You'll need to assign that to template variable in php code somewhere like this:
Code: Select all
$template->assign_vars(array('IMG_INVISION' => $images['invision']));
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 Mon Feb 07, 2005 2:15 am

ok, I did that. How can I put that into the line of code you gave me 6 posts above?
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 UseLess on Mon Feb 07, 2005 2:58 am

Greetings,

Change this;

Code: Select all
url(templates/subSilver/images/bg.gif);


to this;

Code: Select all
url({IMG_INVISION});
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Previous

Return to PHP Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron