Code:
switch ($object->category)
{
case "cat1":
//show related ad
break;
case "cat2":
//show related ad
break;
} 
![]() |
| | Thread Tools | Display Modes |
| |||
|
I'm very new to pligg and I was looking through the class files trying to find what method or object I could use to get the current category of a story page so I can target my ads better. Well thats a lot of code to read through so I'm asking for assistance here. For example, here is what I would like to do Code: switch ($object->category)
{
case "cat1":
//show related ad
break;
case "cat2":
//show related ad
break;
} |
| |||
|
The following should give you what you are looking for. $request_category |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Control of meta description - categories | Divisive Cotton | Questions and Comments | 71 | 03-29-2011 10:03 PM |
| Pligg Categories | Yankidank | Wiki Articles | 1 | 12-17-2008 11:10 AM |
| How to show category keywords as text on the site? | gnalkit | Questions and Comments | 4 | 11-26-2008 06:17 AM |
| get current category id | mrgekko | Questions and Comments | 6 | 09-11-2008 11:58 AM |
| get current category id | mrgekko | Questions and Comments | 0 | 07-29-2008 07:18 PM |