Published and upcoming news in the same page, but separate

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 04-17-2008, 07:25 PM
New Pligger
Pligg Version: 9,9
 
Join Date: Apr 2008
Posts: 3
We are trying to make it work, having the published and the upcoming news in the same page, you can see it in Votalanota.com , but we are having issues with the funtion that determine if you already voted for the upcoming news.

Code:
{if $link_shakebox_currentuser_votes eq 0 && $link_shakebox_currentuser_reports eq 0}
						<a href="javascript:{$link_shakebox_javascript_vote}">{#PLIGG_Visual_Vote_For_It#}</a>
					{else}
						{if $link_shakebox_currentuser_reports neq 0}
							<span>{#PLIGG_Visual_Vote_Report#}</span>
						{else}
							{if $pagename eq "user" && $user_logged_in neq $link_submitter}
								<a href="javascript:{$link_shakebox_javascript_unvote}">{#PLIGG_Visual_Unvote_For_It#}</a>
							{else}
								<span>{#PLIGG_Visual_Vote_Cast#}</span>
							{/if}	
						{/if}
					{/if}
both $link_shakebox_currentuser_votes and $link_shakebox_currentuser_reports are equal to "0" in the upcoming news even if you already voted for that news. The system does not allow you to vote again but you have access to the button "vote" and this is not god for the user.

What we are doing is an include of the page upcoming.php in the plig.tpl template. we think that the libraries in both index.php and upcoming.php are messing with eachother.

this code is in pligg.tpl
Code:
include ('http://votalanota.com/upcoming.php');
upcoming.php is using a custom tlp, pligg_upcoming.tpl

pligg_upcoming.tpl
Code:
	{checkActionsTpl location="tpl_pligg_above_center"}
					{include file=$tpl_center.".tpl"}
					{checkActionsTpl location="tpl_pligg_below_center"}
If anyone could help is wellcome.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Variables Yankidank Wiki Articles 3 05-19-2011 09:21 AM
Published news empty page ?!? pacek Questions and Comments 0 07-25-2009 03:48 PM
Published News + Upcoming News Killerki Questions and Comments 1 12-07-2008 04:43 PM
Upcoming News vs Published News brandondrury Questions and Comments 1 09-09-2007 07:43 PM
No upcoming news module on pages other than published news? AshMCairo Questions and Comments 2 08-07-2007 10:25 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development