Post not Visible - A strange Issue

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2009, 03:01 AM
New Pligger
 
Join Date: Mar 2009
Posts: 15
Using RC2
I have created a test post using Admin and allowed anonymous voting. Also made small changes to the link_summary.tpl, linl.php. (just to check vote, buried, vote-buried - and printing those values in footer)

Now the issue is - anonymous user is able to see all the posts but the admin user is not able to see this particular post on the main page (visible in admin panel - manage post). Other posts (voted/ buried by anon) are visible -only one post is not. Earlier the same post was visible to admin

Another Ques - where can I find $index_url_today related formula if there is any. Basically I want top post decided on the basis of voted-buried. I changed votes.php $count=$link->votes- $link->reports; but do not think its correct..??

Another Ques - I want the whole story on main page without any read more stuff. Any ideas how to do that.??

TIA
Reply With Quote
  #2 (permalink)  
Old 03-27-2009, 09:55 AM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Go to your Profile > Settings page and make sure you have all of the categories selected. We fixed a bug that was causing admin users not to automatically select categories when adding them in RC3 I think.

2nd question, I'm not sure I follow. You want to most buried stories to show on the index page?

3, you will have to modify link_summary.tpl. Maybe look for {if $pagename eq "story"} and the related {/if} and remove them to start.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #3 (permalink)  
Old 03-27-2009, 10:26 AM
New Pligger
 
Join Date: Mar 2009
Posts: 15
Hey Thanks
2nd question well sort of what you said. I meant Total votes = voted - buried.
Presently if you want to sort on the basis of top today/ yesterday etc. it gives only on the basis of +ve votes but I want a net value and then show. I hope it must be something simple to do. As I said I tried to change vote.php but it seems to be incorrect. if(Voting_Method == 1){
$count=$link->votes - $link->reports;

Sidebar2.tpl has {$index_url_yesterday} as a link. So where is it calculated/ defined. Most of the vars I found in link.php but couldn't find this anywhere. In the future, for eg I may want to Top post by each day so if I can see how this is done it could be helpful
Just to clarify.. I found where this var is but am not bale to understand how are you sorting...

Last edited by scorpio84; 03-27-2009 at 03:18 PM.
Reply With Quote
  #4 (permalink)  
Old 03-27-2009, 04:19 PM
New Pligger
 
Join Date: Mar 2009
Posts: 15
Finally after some searching did this.. but it DOESN't work but I can't think of anything else
Let me know if not this what else... !!!!

changed search.php

$this->filterToTimeFrame = "today";
$this->orderBy = "(link_votes-link_reports) DESC";
} elseif ($setmek=='yesterday') {
$this->filterToTimeFrame = "yesterday";
$this->orderBy = "(link_votes-link_reports) DESC";
} elseif ($setmek=='week') {
$this->filterToTimeFrame = "week";
$this->orderBy = "(link_votes-link_reports) DESC";
} elseif ($setmek=='month') {
$this->filterToTimeFrame = "month";
$this->orderBy = "(link_votes-link_reports) DESC";
} elseif ($setmek=='year') {
$this->filterToTimeFrame = "year";
$this->orderBy = "(link_votes-link_reports) DESC";
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Title Issue with Editorials and SEO not2serious Questions and Comments 0 12-26-2007 11:25 AM
cannot register issue abcdefgary Questions and Comments 1 02-28-2007 12:17 PM
Adding field to add URL for post images in the Submit section plushpod Questions and Comments 2 12-08-2006 03:47 PM
Post Installation Issue with Templates JimLiddle Questions and Comments 3 10-18-2006 11:42 AM
strange install issue finn Questions and Comments 6 06-13-2006 10:59 PM


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