Go Back   Pligg CMS Forum > Pligg Help > Customization Assistance

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2008, 10:19 PM
New Pligger
 
Join Date: Jul 2008
Posts: 13
Thanks: 5
Thanked 1 Time in 1 Post
Is it possible to remove voting from pligg?

I'm not really interested in the voting feature in pligg. I've set my submissions to auto publish by editing submit.php through some instructions I found in a thread. I want to do away with voting. Is this possible? If so, what needs to be done?
Reply With Quote
  #2 (permalink)  
Old 08-07-2008, 10:54 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,399
Thanks: 171
Thanked 440 Times in 279 Posts
This has been asked before. Please take the time to search through the forums before starting a new thread.

I'm moving this thread to the correct forum. "customization assistance"
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #3 (permalink)  
Old 08-07-2008, 11:24 PM
New Pligger
 
Join Date: Jul 2008
Posts: 13
Thanks: 5
Thanked 1 Time in 1 Post
Quote:
Originally Posted by chuckroast View Post
This has been asked before. Please take the time to search through the forums before starting a new thread.

I'm moving this thread to the correct forum. "customization assistance"
I searched for the answer, but I couldn't find it. I tried "disable voting" "remove voting" "no voting" and didn't get a definitive answer. It's condescending to assume I did not at least give due diligence a shot.
Reply With Quote
  #4 (permalink)  
Old 08-08-2008, 12:01 AM
Casual Pligger
 
Join Date: Jul 2008
Posts: 33
Thanks: 2
Thanked 0 Times in 0 Posts
Then isn't it a blog, why not use wordpress instead?
Reply With Quote
  #5 (permalink)  
Old 08-08-2008, 06:30 AM
New Pligger
 
Join Date: Jul 2008
Posts: 13
Thanks: 5
Thanked 1 Time in 1 Post
Quote:
Originally Posted by TypeEE View Post
Then isn't it a blog, why not use wordpress instead?
I really like the look and feel of pligg, but I just don't need that functionality right now. I've changed to five-star voting and auto publishing, but I don't think my users will have any use for voting on job postings.
Reply With Quote
  #6 (permalink)  
Old 08-08-2008, 09:32 AM
redwine's Avatar
Pligg Donor
Pligg Version: 9.8
Pligg Template: custom templat
 
Join Date: Jul 2007
Location: Canada
Posts: 216
Thanks: 20
Thanked 102 Times in 65 Posts
A cosmetic solution would be to hide the voting feature

In the admin section under "Configure yoursite", go to:

Change the values to the values in red

Voting

Votes to publish
description: Number of votes before story is sent to the front page.
value: 0
default value: 5
expected values: number


Rating To Publish
description: For use with Voting Method 2.
value: 0
default value: 3
expected values: number

Then go to

Submit

Auto vote
description: Automatically vote for the story you submitted.
value: false
default value: true
expected values: true / false


Open /templates/yourtemplate/link_summary.tpl and comment the following code:

Code:
{*{if $Voting_Method eq 1}
 {if $story_status eq "published"}
  <ul class="news-upcoming">
 {else}
  <ul class="news-upcoming2">
 {/if}
 <li class="vote-publish"><a id="xvotes-{$link_shakebox_index}" href="{$story_url}">{$link_shakebox_votes}</a></li>
 <li class="vote" id="xvote-{$link_shakebox_index}">
  {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}
 </li>
 </ul>
{/if} 
{if $Voting_Method eq 2}
<h4 id="ls_title-{$link_shakebox_index}">
<ul class='star-rating{$star_class}' id="xvotes-{$link_shakebox_index}">
 <li class="current-rating" style="width: {$link_rating_width}px;" id="xvote-{$link_shakebox_index}"></li>
 <span id="mnmc-{$link_shakebox_index}">
  {if $link_shakebox_currentuser_votes eq 0}
   <li><a href="javascript:{$link_shakebox_javascript_vote_1star}" class='one-star'>1</a></li>
   <li><a href="javascript:{$link_shakebox_javascript_vote_2star}" class='two-stars'>2</a></li>
   <li><a href="javascript:{$link_shakebox_javascript_vote_3star}" class='three-stars'>3</a></li>
   <li><a href="javascript:{$link_shakebox_javascript_vote_4star}" class='four-stars'>4</a></li>
   <li><a href="javascript:{$link_shakebox_javascript_vote_5star}" class='five-stars'>5</a></li>
  {else}
   <li class='one-star-noh'>1</li>
   <li class='two-stars-noh'>2</li>
   <li class='three-stars-noh'>3</li>
   <li class='four-stars-noh'>4</li>
   <li class='five-stars-noh'>5</li>
  {/if}
 </span>
</ul>
</h4>
{/if}*} 
Now the voting button won't show. However, the title is going to be flushed left. You will have to modify the CSS definition for the class "toptitle" and add a margin-left: XXpx to make it align with the rest of the block.

Note that all the voting mechanism is still working in the background, transparent to the users.

Hope this helps
Reply With Quote
The Following 2 Users Say Thank You to redwine For This Useful Post:
  #7 (permalink)  
Old 08-08-2008, 09:55 AM
New Pligger
 
Join Date: Jul 2008
Posts: 13
Thanks: 5
Thanked 1 Time in 1 Post
Quote:
Originally Posted by redwine View Post
In the admin section under "Configure yoursite", go to:

Change the values to the values in red

Voting

Votes to publish
description: Number of votes before story is sent to the front page.
value: 0
default value: 5
expected values: number


Rating To Publish
description: For use with Voting Method 2.
value: 0
default value: 3
expected values: number

Then go to

Submit

Auto vote
description: Automatically vote for the story you submitted.
value: false
default value: true
expected values: true / false


Open /templates/yourtemplate/link_summary.tpl and comment the following code:

Code:
{*{if $Voting_Method eq 1}
 {if $story_status eq "published"}
  <ul class="news-upcoming">
 {else}
  <ul class="news-upcoming2">
 {/if}
 <li class="vote-publish"><a id="xvotes-{$link_shakebox_index}" href="{$story_url}">{$link_shakebox_votes}</a></li>
 <li class="vote" id="xvote-{$link_shakebox_index}">
  {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}
 </li>
 </ul>
{/if} 
{if $Voting_Method eq 2}
<h4 id="ls_title-{$link_shakebox_index}">
<ul class='star-rating{$star_class}' id="xvotes-{$link_shakebox_index}">
 <li class="current-rating" style="width: {$link_rating_width}px;" id="xvote-{$link_shakebox_index}"></li>
 <span id="mnmc-{$link_shakebox_index}">
  {if $link_shakebox_currentuser_votes eq 0}
   <li><a href="javascript:{$link_shakebox_javascript_vote_1star}" class='one-star'>1</a></li>
   <li><a href="javascript:{$link_shakebox_javascript_vote_2star}" class='two-stars'>2</a></li>
   <li><a href="javascript:{$link_shakebox_javascript_vote_3star}" class='three-stars'>3</a></li>
   <li><a href="javascript:{$link_shakebox_javascript_vote_4star}" class='four-stars'>4</a></li>
   <li><a href="javascript:{$link_shakebox_javascript_vote_5star}" class='five-stars'>5</a></li>
  {else}
   <li class='one-star-noh'>1</li>
   <li class='two-stars-noh'>2</li>
   <li class='three-stars-noh'>3</li>
   <li class='four-stars-noh'>4</li>
   <li class='five-stars-noh'>5</li>
  {/if}
 </span>
</ul>
</h4>
{/if}*} 
Now the voting button won't show. However, the title is going to be flushed left. You will have to modify the CSS definition for the class "toptitle" and add a margin-left: XXpx to make it align with the rest of the block.

Note that all the voting mechanism is still working in the background, transparent to the users.

Hope this helps
Worked like a charm!
Reply With Quote
The Following User Says Thank You to teachwny For This Useful Post:
  #8 (permalink)  
Old 08-08-2008, 12:19 PM
Constant Pligger
 
Join Date: Jan 2007
Posts: 314
Thanks: 0
Thanked 8 Times in 6 Posts
Quote:
Originally Posted by redwine View Post
In the admin section under "Configure yoursite", go to:

Change the values to the values in red

Voting

Votes to publish
description: Number of votes before story is sent to the front page.
value: 0
default value: 5
expected values: number


Rating To Publish
description: For use with Voting Method 2.
value: 0
default value: 3
expected values: number

Then go to

Submit

Auto vote
description: Automatically vote for the story you submitted.
value: false
default value: true
expected values: true / false


Open /templates/yourtemplate/link_summary.tpl and comment the following code:

Code:
{*{if $Voting_Method eq 1}
 {if $story_status eq "published"}
  <ul class="news-upcoming">
 {else}
  <ul class="news-upcoming2">
 {/if}
 <li class="vote-publish"><a id="xvotes-{$link_shakebox_index}" href="{$story_url}">{$link_shakebox_votes}</a></li>
 <li class="vote" id="xvote-{$link_shakebox_index}">
  {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}
 </li>
 </ul>
{/if} 
{if $Voting_Method eq 2}
<h4 id="ls_title-{$link_shakebox_index}">
<ul class='star-rating{$star_class}' id="xvotes-{$link_shakebox_index}">
 <li class="current-rating" style="width: {$link_rating_width}px;" id="xvote-{$link_shakebox_index}"></li>
 <span id="mnmc-{$link_shakebox_index}">
  {if $link_shakebox_currentuser_votes eq 0}
   <li><a href="javascript:{$link_shakebox_javascript_vote_1star}" class='one-star'>1</a></li>
   <li><a href="javascript:{$link_shakebox_javascript_vote_2star}" class='two-stars'>2</a></li>
   <li><a href="javascript:{$link_shakebox_javascript_vote_3star}" class='three-stars'>3</a></li>
   <li><a href="javascript:{$link_shakebox_javascript_vote_4star}" class='four-stars'>4</a></li>
   <li><a href="javascript:{$link_shakebox_javascript_vote_5star}" class='five-stars'>5</a></li>
  {else}
   <li class='one-star-noh'>1</li>
   <li class='two-stars-noh'>2</li>
   <li class='three-stars-noh'>3</li>
   <li class='four-stars-noh'>4</li>
   <li class='five-stars-noh'>5</li>
  {/if}
 </span>
</ul>
</h4>
{/if}*} 
Now the voting button won't show. However, the title is going to be flushed left. You will have to modify the CSS definition for the class "toptitle" and add a margin-left: XXpx to make it align with the rest of the block.

Note that all the voting mechanism is still working in the background, transparent to the users.

Hope this helps
Thanks Redwine... I saw this thread and so I took the time to modify, and the end result is at Blogmyway Jobs / Published Jobs.
__________________
http://www.blogmyway.org
Reply With Quote
  #9 (permalink)  
Old 08-08-2008, 09:32 PM
Casual Pligger
 
Join Date: May 2007
Posts: 77
Thanks: 6
Thanked 3 Times in 2 Posts
nice mod..I am sure this will come handy for few of my site :)
thanks
__________________
Submit Your Pligg Site to Pligg Directory - http://www.pliggdirectory.net
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 Off
[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
can you remove powerd pligg backlink form pligg site coolmanphp General Help 4 09-18-2008 06:48 PM


Search Engine Friendly URLs by vBSEO 3.2.0