php snippets based on Joomla itemid

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lotek
Forum Newbie
Posts: 1
Joined: Thu Dec 30, 2010 4:51 am

php snippets based on Joomla itemid

Post by lotek »

Hi,

I just joined and I must say its because being PhP illeterate I'm stuck and I need help.
I just read an article that I think know would do what I need to do (or just about).
I have a 223w x 370h div in my Joomla 1.5 site which I want use to put a series of background images into (one per page)based on menu itemID.
I don't want to use a module to do this, it would cause problems more problems than solve.

That rticle (if I could understand what it says does that), my problem is I don't understand how to go about doing including the php in the css and html .
Here's the article: http://toolboxdigital.com/2010/03/advan ... nu-itemid/
I tried replicating what is talked about but it doesn't work.
How is php added to css and where and what in html tags is beyond me.
I'm sure it works but had the article been written in Aramaic, I would not have understood less. :mrgreen:
I've already done the purely html css part of what needs to be done but its the php that would make it all work that I need.

Thanks for reading this.

Lotek
Post Reply