How To Complete Forum ReWrite For PBNL

Discussion in 'Server Side & PHP' started by Olayanju Kabir, Sep 11, 2017.

  1. Olayanju Kabir

    Olayanju Kabir Itz Kofem Staff Member

    Go to moduls/func.php
    paste this ontop





    PHP:
    function reWrite$string )
    {
    $string str_replace "/" "" $string );
    $string str_replace "" "-" $string );
    $string str_replace ":" "-" $string );
    $string str_replace "|" "-" $string );
    $string str_replace "?" "" $string );
    $string str_replace "@" "" $string );
    return 
    $string ;
    }

    go to .htaccess and paste this

    Code:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^forum/(.*)_([0-9 ]+).html$ forum/showtopic.php?id=$2 [L]

    goto ur topics.php

    look 4 where u have
    Code:
    $title=cleanvalues2($info["subject"]);

    add this below it

    Code:
    $waploaded=reWrite( cleanvalues2($info["subject"]));


    then look for this in your topic.php

    <a href=/forum/showtopic.php?id=$id2>$title</a>

    and change it to dis

    Code:
    <a href =".$waploaded."_".$id2.". html>$title</a>

    Or
    Code:
    <a href='/forum/$id2/".reWrite($title).".html'>
     

Share This Page