×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: How to replace edit buttons separators

How to replace edit buttons separators 15 years 4 months ago #5416

  • Michal Piatek
  • Michal Piatek's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
I want to replace comment edit buttons separator which by default is set to: |

How to replace edit buttons separators 15 years 3 months ago #5452

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
I see you've already customized your template so im surprised you didn't see it.

Under {post} section in index.html for the template, <div class='postfooter'> or something like that just has | between the elements. Simply deleting them works well.

How to replace edit buttons separators 15 years 3 months ago #5473

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
open components/com_comment/jos_comment/comment.class.php

find
	/* quote */
	if ($this->_support_UBBcode) {
//	    if ($edit) $edit .= '  ';
	    $edit .= $this->linkQuote($id);
	}
	/* edit and delete */
	if ($isCommentModerator) {
//	    if ($edit) $edit .= ' | ';
	    $edit .= $this->linkEdit($id);
	    $edit .= ' | ' . $this->linkDelete($id);

and change it to
	/* quote */
	if ($this->_support_UBBcode) {
	    $edit .= $this->linkQuote($id);
	}
	/* edit and delete */
	if ($isCommentModerator) {
	    $edit .= $this->linkEdit($id);
	    $edit .= $this->linkDelete($id);
	}
 

Now you can use css to style the template. I will add this changes to beta2 :) The right way is to style this through the template and not to hardcode it.
thanks!

How to replace edit buttons separators 15 years 3 months ago #5481

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Oh my bad, I forgot I made that modification to mine already... I need to remember to check the beta 1 public copy instead of my customized one :P sorry!
  • Page:
  • 1
Time to create page: 0.109 seconds