Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 01 Sep 2011, 18:21
MatiasCandy MatiasCandy is offline
 
Join Date: May 2008
Variable Help

I have a product that is hard coded in a lot pf places when it comes to images.
(edit, delete, etc)

I want the images to change with the theme, can someone please tell me the variable(s) I need to use in my template to make this happen.

Right now it is hard coded at "/images/delete.gif"
Reply With Quote
  #2  
Old 01 Sep 2011, 19:18
nhawk nhawk is offline
 
Join Date: Jan 2011
There are 14 image variables in vB...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So if the delete.gif is in the misc image directory you would use..

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

BUT.. remember, that means every style would need to have that gif in it's misc image directory. And that's not something that is common. Mods/Add-ons usually have their own images if there are any that are custom and not common to vB.
Reply With Quote
  #3  
Old 01 Sep 2011, 20:16
MatiasCandy MatiasCandy is offline
 
Join Date: May 2008
Thank you. I am trying to make sure the images change with the theme. With your help I am sure I can get it to work.

Thanks Again
Reply With Quote
  #4  
Old 04 Sep 2011, 20:17
MatiasCandy MatiasCandy is offline
 
Join Date: May 2008
I am working on the path for the product and I got it to work in the plugin and templates but I noticed some of the php files are hard coded.

I am using the following in the plugin and it works just fine.
'. $vbulletin->options['custom_path'] .'


what would I use in the php files?

Thanks
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:47.

Layout Options | Width: Wide Color: