KR Popular Posts
[resolved] Change px to % (2 posts)

  1. Julian
    Posted 2 years ago #

    Hello again,

    I would like to change the solid to % instead of px.
    If a post has 22 views i would like to be the solid to 22 % of the div.
    I changed px in the php to % but that didnt worked.

    Here is a picture:


    Thanks in advance!


  2. Julian
    Posted 2 years ago #

    I was too stupid to change it. But now it works. For everyone else here is how i did it:

    Find the following part in the knowledgeringppgt.php:

    		$kppg_post_graph.=__("Beliebtheit dieses Artikels: ","knowledgeringppgt");
    		$kppg_post_graph.=$kppg_post_popularity .'&nbsp%  ';
    		$kppg_post_graph.='<div style="width:'.$kppg_post_graph_width.'px;'.$kppg_graph_bg.';height:'.$kppg_post_graph_height.'px;">';

    and change the px of $kppg_post_graph_width. to %. Thats it!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • KR Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic