Pligg CMS Forums


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



Fix comment voting in Safari for Mollio Beat & Paul01

Find help with problems related to Pligg templates.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-23-2006, 11:58 PM
Sacha QS's Avatar
New Pligger
 
Join Date: Oct 2006
Location: Paris, France
Posts: 24
Thumbs up Fix comment voting in Safari for Mollio Beat & Paul01

Tested in Firefox (Mac & Win) & IE6 too.

In /templates/mollio-beat/comment_show.tpl
or /templates/paul01/comment_show.tpl

from line 4 to 18 replace the whole "comment-head" div by these lines:
HTML Code:
 <div id="comment-head">
  <span id="comment-subhead">
			{if $Enable_Comment_Voting eq 1}
        Rating: <a id="cvote-{$comment_id}" style='text-decoration: none';>{$comment_votes}</a>
				{if $comment_user_vote_count eq 0 && $current_userid neq $comment_author}
				 | <span id="ratetext-{$comment_id}">Rate comment:</span>
					<span id="ratebuttons-{$comment_id}">
						<a class="ratemey" href="javascript:{$link_shakebox_javascript_votey}" style='text-decoration: none;'><span class="rateme">+</span></a>
						<a class="ratemen" href="javascript:{$link_shakebox_javascript_voten}" style='text-decoration: none;'><span class="rateme">-</span></a>
					</span>
				{/if}
			{/if}		
	</span>
	{if $UseAvatars neq "0"}<span id="ls_avatar-{$link_shakebox_index}" style="padding:0 0 0 4px;"><img src="{$Avatar_ImgSrc}" alt="Avatar"/></span>{/if}
  | {#PLIGG_Visual_Comment_WrittenBy#} <a href="{$user_view_url}">{$user_username}</a> {$comment_age} {#PLIGG_Visual_Comment_Ago#}	
  </div> 
(the diff is that "comment-subhead" span comes first)


Edit the CSS and remove (or comment) the "margin-top" property (marked in red).

for mollio-beat:
/templates/mollio-beat/css/main.css
at line 279
Code:
#comment-subhead {float:right;margin-top: -21px; font-size:11px}
for paul01:
/templates/paul01/css/main.css
at line 660
Code:
#comment-subhead {
	float: right;
	margin-top: -20px;
	padding-right: 4px;
	font-size: 11px;
}
Reply With Quote
  #2 (permalink)  
Old 10-24-2006, 12:00 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
thanks. As soon as I get some time we can test this out and add it to Pligg.

Free and Premium Pligg Hosting
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anonymous Comment Voting kanedaguy General Help 0 02-02-2007 03:49 AM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development