Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support > "yget"

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-16-2007, 11:25 AM
New Pligger
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
link_summary condition.. little help?

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
Reply With Quote
  #2 (permalink)  
Old 02-16-2007, 11:28 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
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.
Reply With Quote
  #3 (permalink)  
Old 02-16-2007, 01:43 PM
Pligg Donor
 
Join Date: Apr 2006
Posts: 12
Thanks: 11
Thanked 0 Times in 0 Posts
Interesting idea. Please let us know if it works!
Reply With Quote
  #4 (permalink)  
Old 02-16-2007, 02:20 PM
New Pligger
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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..
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
condition regarding username sixlaneve Modification Tutorials 4 09-17-2007 04:10 PM


Search Engine Friendly URLs by vBSEO 3.2.0