• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Hướng dẫn thêm bản quyền vào bài viết cho johncms bằng php

Admin

Well-Known Member
Staff member
Administrator
Demo ảnh
p6dl.png

Mở post.php tìm echo $text; và thay thành
PHP:
preg_match_all ('#(.+?)(<br>|<br />|<br/>)#',$text,$arr);
      $text = str_replace ($arr[0][floor(count($arr[0])/2)],
                           $arr[0][floor(count($arr[0])/2)] .
                           "<center>----------------------------------<br>
                                    Bạn đang đọc truyện tại<br><font color='red'>
                                        thay bằng tên trang wap bạn</font><br>
                                    Chúc bạn online vui vẻ<br>
                                    ----------------------------------<br></center>",$text);
w29o.png

Lưu lại là xong
Chúc các bạn thành công!
 

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top