Jump to content
WebFlake

[Reputation / Like button] Change it's position


Heroes Killer

Recommended Posts

Greetings.  :)

 

In view of the fact that I had tried to find on the whole internet how to change position of Reputation Bar to the left side of posts and couldn't find it anywhere, now I know how to do it and here is the tutorial. Thanks to user Sanctuary, who told me how to change position of Like-button, so that I could easily find out how to change position of Rep-button.

 

This tutorial shows how to move it to the left side of a post (see the screens below). If you would like to center it in the middle, see by Sanctuary.

 

 

How to change position of Like button?

Simply go to: ACP -> Look & Feel -> Your Skin -> Other Global Templates -> repButtons, find this: 

<div class='ipsLikeBar right clearfix' id='{$data['domCountId']}'>
 

and replace it with: 

<div class='ipsLikeBar left clearfix' id='{$data['domCountId']}'>

AlUhBxS.pngvt3Civ0.png

 

 

How to change position of Reputation buttons?

Simply go to: ACP -> Look & Feel -> Your Skin -> Other Global Templates -> repButtons, find this: 

<div class='rep_bar clearfix <if test="pos:|:!$data['position'] || $data['position'] == 'right'">right</if>' id='{$data['domCountId']}'>

and replace it with: 

<div class='rep_bar clearfix <if test="pos:|:!$data['position'] || $data['position'] == 'left'">left</if>' id='{$data['domCountId']}'>

eSk6JGr.pngXcgZ7Kv.png

  • Upvote 7
Link to comment
Share on other sites

How to center it in the middle?

For the Like system, find this:

<div class='ipsLikeBar right clearfix' id='{$data['domCountId']}'>

Replace it with this:

<div class='ipsLikeBar rep_center clearfix' id='{$data['domCountId']}'>

For the Rep system, find this:

<div class='rep_bar clearfix <if test="pos:|:!$data['position'] || $data['position'] == 'right'">right</if>' id='{$data['domCountId']}'>

Replace it with this:

<div class='rep_bar clearfix <if test="pos:|:!$data['position'] || $data['position'] == 'center'">rep_center</if>' id='{$data['domCountId']}'>

Then make sure to add this to your CSS somewhere:

.rep_center { text-align: center; }

31405367654f916.png

 

31405367634757b.png

Edited by Sanctuary
  • Upvote 1
  • Downvote 1

Need some IPB, MyBB, or HTML/CSS work done? Check out my thread!
:smiley:

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...