TOPIC: A small fix

A small fix 11 years 1 month ago #509

  • avra911
  • avra911's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 2
  • Karma: 0
I noticed in J2.5 this thing,

same module (news_article) published in frontend 6 times. 4 of them show the "below" correct, the first tho of them are not showing.

however i modified the otsocialshare.php line 120 until "{ return" with this:
if($position == 'above'){
                if($row->fulltext == ''){
                    $row->text = $html . $row->text;
                    $row->introtext = $html . $row->introtext;
                }else{
                    $row->text = $html . $row->text;
                     $row->introtext = $html . $row->introtext;
               }
            }
			else{
                if($row->fulltext == ''){
                    $row->text = $row->text . $html;
                    $row->introtext = $row->introtext . $html;
                }else{
                   $row->introtext = $row->introtext . $html;
                   $row->text = $row->text . $html;
                }
            }


instead of this:
if($position == 'above'){
                if($row->fulltext == ''){
                    $row->text = $html . $row->text;
                    $row->introtext = $html . $row->introtext;
                }else{
                    $row->text = $html . $row->text;
                }
            }else{
                $row->text .= $html;
                $row->introtext .= $html;
            }


Thanks,
great module
The administrator has disabled public write access.
The following user(s) said Thank You: linh_omg, makcimka

Re: A small fix 11 years 1 month ago #510

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 908
  • Thank you received: 568
  • Karma: 25
Thanks! :)
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka
Time to create page: 0.214 seconds