• Super User

    @Gamesrulez.com said:

    si questo lo sapevo ma non saprei come fare :():

    visto così non puoi nemmeno editare il link, dato che ti mancano le info su titolo, nome forum...

    dovrai sicuramente interrogare il db in base all'unico dato che hai, ID del post e cavare fuori i dati.

    purtroppo non usando VB non ti sò aiutare di più


  • Bannato User Attivo

    infatti, oppure aggiungere solmanente le regole del mod rewrite o sbaglio?

    qualcuno sa aiutarmi? giogio tu che l'hai fatto intervieni please


  • Bannato User Attivo

    qualcuno riesce a dare una mano?


  • Community Manager

    Devi usare e richiamare le stesse regole del vBseo 🙂

    Ma usi vB vero?


  • Bannato User Attivo

    @Giorgiotave said:

    Devi usare e richiamare le stesse regole del vBseo 🙂

    Ma usi vB vero?

    si uso vb, mi fai un esempio giorgio?


  • Bannato User Attivo

    giorgio tu l'hai già fatto in home, potresti accorrere in mio aiuto?


  • Bannato User Attivo

    giorgiooooooooooooo please help!!!!!!!!


  • Community Manager

    Non uppare, mandami pvt 😄

    Devi ricostruirlo usando le funzioni del vbseo, le devi richiamare.

    Io uso questo:
    [PHP]
    include_once ('forum/includes/functions_vbseo.php');
    vbseo_get_options();
    vbseo_prepare_seo_replace();
    get_forum_info();

    mysql_pconnect("host", "utente","pass") or die("Ci Scusiamo Per l'incoveniente tornero on-line tra 10 minuti");
    mysql_select_db("forum") or die("Impossibile selezionare il database");

    $query = "SELECT * FROM VB_thread WHERE forumid!=17 ORDER BY threadid DESC LIMIT 20";
    $risultati= mysql_query($query);

    $conta=0;
    while($tmp = mysql_fetch_assoc($risultati))
    {
    $threadrow = $tmp;
    $conta++;
    $target1=$tmp["title"];
    $replycount=$tmp["replycount"];
    $postusername=$tmp["postusername"];
    $postuserid=$tmp["postuserid"];
    $lastposter=$tmp["lastposter"];
    $views=$tmp["views"];
    $valutazione=$tmp["votetotal"];

    if($start>=0){
    $threadurl = vbseo_thread_url_row($threadrow, $start);
    }else{
    $threadurl = vbseo_thread_url_row($threadrow);
    }

    $getprofile = mysql_query("SELECT * FROM VB_user WHERE userid =".$postuserid);
    $conta=0;

    while($tmp = mysql_fetch_assoc($getprofile))
    {
    $profilerow = $tmp;
    $conta++;
    }

    $profileurl = "members/".$profilerow['username'].".html";
    $profileurl = strtolower($profileurl);
    echo"<tr><td align="left"><a href="http://www.giorgiotave.it/forum/$threadurl">$target1</a> </td><td> <b>$postusername</b> </td><td > <b>$replycount</b> </td><td > <b>$views</b></td><tr>";
    }[/PHP]


  • Bannato User Attivo

    grazie giorgio, l'ho appena provato ma non funziona, ora ti faccio vedere che uso io per i thread in home, magari mi dai una mano ad implementare il tuo...

    [php]
    <?php
    include('forum/includes/config.php');
    $conn = mysql_connect
    (
    $config['MasterServer']['servername'] ,
    $config['MasterServer']['username'] ,
    $config['MasterServer']['password']
    )
    or die
    (
    'error during the database connection'
    );
    $db = mysql_select_db($config['Database']['dbname'], $conn) or die('error during the database connection');

    $query = "SELECT * FROM " .$config['Database']['tableprefix']. "thread WHERE visible='1' ORDER BY threadid DESC LIMIT 16";
    $select = mysql_query($query);
    echo '
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ocaption">
    <tr>
    <td width="100%" class="w11" align="center">Ulime notizie dal forum</td>
    </tr>';
    while ($threads = mysql_fetch_array($select))
    {
    echo'
    <tr>
    <td width="100%" class="ocaption"><a href="/forum/showthread.php?t=' ,$threads['threadid'],'"class="olink">',$threads['title'],' </a></td>
    </tr>';

    }
    echo "</table>";

    ?>
    [/php]


  • Community Manager

    Non so assolutamente come fare, non l'ho fatto io il mio 🙂

    Devi capirlo e poi applicarlo a tuo, nel tuo non richiami neanche le funzioni 🙂