![]() |
|
#1
|
|||
|
|||
|
Heres what i would like to do:
I would like to hack something into the existing VBA Website News module to automatically show a small category icon based on what forum the news post was made in... Heres a sample forum layout: Those 3 forums the FPS, MMO, and RTS would all show they're posts on the front page using the existing news module... Well in the existing news modules templates i would like to do something like this: Code:
<if condition="$forumid == 4"> <img src="image1.jpg"> </if> <if condition="$forumid == 5"> <img src="image2.jpg"> </if> <if condition="$forumid == 6"> <img src="image3.jpg"> </if> Anyways, what would I need to do to complete a hack like this? Am i approaching this the right way do you think? Any tips & advice would be greatly appreciated... |
|
#2
|
||||
|
||||
|
Where would you want the image to display? I actually have a plugin I'm using over at Cool SciFi that does exactly this. Essentially if a forum image exists then it'll be shown else the user's avatar will be shown.
|
|
#3
|
|||
|
|||
|
I'm not really sure where i want to put it yet (Maybe on the left side or in the customized title bar that I've done for it)... I just know that i want to do it...
Could you maybe PM me the plug-in/details as to how i can reproduce what you've done on http://www.coolscifi.com/ |
|
#4
|
||||
|
||||
|
You should be able to use about the same code you've posted, though you would want to use $news['forumid'] instead of $forumid if you're applying this change to the 'adv_portal_newsbits' template.
|
|
#5
|
|||
|
|||
|
perfect! Thanks...
I really should have noticed that on my own but...
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Expanded Entrybit Template Edit Button & Category Icons | Shon | Bugs From 1.0 RC1 | 3 | 08-14-2007 01:12 PM |
| My Category module listing on categories from that category | attroll | Feedback & Suggestions | 7 | 08-10-2007 09:10 AM |
| [Request]News image automatically displayed depending on which category news is in. | RobParker | Module & Modification Discussion & Requests | 4 | 05-03-2007 12:25 PM |
| post icons in news thread | Delw | Troubleshooting & Problems | 3 | 11-15-2006 03:12 PM |