- Home
- Categorie
- La Community Connect.gt
- Tutto sulla Community
- Ultimi thread in homepage...MA MOD REWRITE?[vbulletin]
-
Ultimi thread in homepage...MA MOD REWRITE?[vbulletin]
ciao a tutti ragazzi, volevo dire che ho risolto e ora nella mia home come potete vedere ci sono gli ultimi thread del forum belli allineati...
solo che ora ho un problema, ci sono si ma, puntano all'indirizzo dinamico, non a quello con mod rewrite?
come fare?
-
io se clicco vedo quello dinamico, che viene poi convertito al volo in http://www.gamesrulez.com/forum/sondaggioni/818-i-10-videogames-che-aspettate-con-ansia.html
-
si ma viene convertito al volo, come fare invece perhè GIA vengano linkati in modo statico?
-
penso tu debba modificare lo script che ti metti i link in home...
-
@gh3 said:
penso tu debba modificare lo script che ti metti i link in home...
si questo lo sapevo ma non saprei come fare :():
-
@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ù
-
infatti, oppure aggiungere solmanente le regole del mod rewrite o sbaglio?
qualcuno sa aiutarmi? giogio tu che l'hai fatto intervieni please
-
qualcuno riesce a dare una mano?
-
Devi usare e richiamare le stesse regole del vBseo
Ma usi vB vero?
-
@Giorgiotave said:
Devi usare e richiamare le stesse regole del vBseo
Ma usi vB vero?
si uso vb, mi fai un esempio giorgio?
-
giorgio tu l'hai già fatto in home, potresti accorrere in mio aiuto?
-
giorgiooooooooooooo please help!!!!!!!!
-
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]
-
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
WHEREvisible
='1' ORDER BYthreadid
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]
-
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