Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-17-2008, 06:25 PM
New Pligger
Pligg Version: 9,9
 
Join Date: Apr 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Published and upcoming news in the same page, but separate

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
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
Upcoming news -> Published News bnoss General Help 8 09-16-2008 07:49 PM
Published and Upcoming links tabs for Cateogory shiva25 Suggestions 6 05-19-2008 02:22 AM
Upcoming News vs Published News brandondrury General Help 1 09-09-2007 06:43 PM
No upcoming news module on pages other than published news? AshMCairo General Help 2 08-07-2007 09:25 AM
how to make Upcoming news automatic Published news rigo507 "yget" 2 06-15-2007 04:07 PM


Search Engine Friendly URLs by vBSEO 3.2.0