Hey,
Love all the work, kbeaver, u've been a busy man..
I am trying to add a conditional statement to the beginning of link_summary.tpl
Basically, I want to check if category = Video, if so.. then load a different background image for the vote box... defined as news-shakeitvideo and news-shakeit2video in the css..
this is one of many attempts...
<div class="news-summary" id="news-{$link_shakebox_index}">
{if $Voting_Method eq 1}
{if $story_status eq "published"}
{if $request_category eq "Video"}
<ul class="news-shakeitvideo">
{else}
<ul class="news-shakeit">
{/if}
{else}
{if $request_category eq "Video"}
<ul class="news-skakeitvideo2">
{else}
<ul class="news-shakeit2">
{/if}
{/if}...............etc..
let me know what I can do to get this working.
Thanks for the help
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| link_summary condition.. little help? |
| ||||
|
In your if statement use something like {if $category_id == 5} instead of the one you're using. You'll need to change 5 to whatever category id the videos category is using. You can find that out in the database. Let me know if that works.
__________________ I accept donations for my time helping users like you on the forum and IRC. |
| |||
|
Interesting idea. Please let us know if it works!
|
| |||
|
Success, Thanks for the help the site is www.gigpedia.com if you want to check it out.. basically we are working as much as we can with pligg to establish a base but eventually want to have a dynamic social music site... if you want to talk about it more kbeever, i'd love to discuss our over all goals once we prove that this can be done.. in any case I appreciate the quick help.. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| condition regarding username | sixlaneve | Modification Tutorials | 4 | 09-17-2007 04:10 PM |




Linear Mode

