PDA

View Full Version : Can This Be Done?


2bet
12-07-2006, 03:38 AM
As you can see, I have 2 ads boxes on the left and right of my categories on www.submitblogs.com (http://www.submitblogs.com). I keep these ads mainstream when the index is being viewed, but would like to have them change based on the category choosen.

ie. the ads are fine directly on www.submitblogs.com (http://www.submitblogs.com) , but if someone clicks my Art Blogs category, I want to have different ads in this location on that page.

Is this possible.


I know that ill need to create new rightside.tpl and leftside.tpl, but im not sure what page to edit to point each category to the appropiate .tpl.

Boby
12-07-2006, 07:08 AM
Most probably you'll have to edit main.tpl but it could be a bit different depending on your template.

I think the best option is to add a new DB field in the categories table, where you store the sidebar content or some sidebar info, then check if it's available on page load, if not go for right sidebar with standard ads.

It would take about 1 hour to code, maybe less.

Optimit
12-07-2006, 07:29 AM
That is one of my templates. The left and right each have their own tpl file.

2bet
12-08-2006, 12:41 AM
Ok, ty, but im not sure how to point each category to show the designated side.tpl file