problemi modulo Search Engine Optimization per phpbb
-
hola! sono nuova di queste parti e aggiungo anche un pò imbranata con il php

avrei un problema e "giorgetto" mi ha consigliato di postarlo qui dunque:ho un sito realizzato in phpnuke e ho il forum phpbb
volevo che i titoli dei topic fossero visualizzati e quindi visibili anche dai motori di ricerca
giorgio mi ha consigliato il modulo "search engine optimization". l'ho scaricato ho seguito tutti i passi per filo e per segno ma non funziona
potreste dirmi cosa potrebbe essere che non và? o cosa dovrei controllare?
potrebbe dipendere dal fatto che uso un template diverso da quelli classici del nuke, in modo che anche il forum abbia lo stesso tema del sito; di conseguenza all'interno della directory del tema c'è anche un cartella denominata "forum" che non ha nulla a che fare con il forum phpbb? :bho:
mammamia...spero di essermi spiegata... (il maestro brebei mi darebbe un 3menomeno :D)
ringrazio anticipatamente chi vorrà aiutarmi
-
credo che il tuo problema sia proprio dovuto al template.
Prova ad impostare quello di default e ad attivare lo script e dicci come va.
Ciao
-
ho appena provato e nessun risultato... ovvero come titolo c'è sempre il nome del sito e niente di più
altre cose che posso vedere? -
mmmm, è molto strano.
Io personalmente nel mio sito ho un template diverso e ho modificato a mano le cose che mi interessavano..
Dovresti provare ad entrare nel template dove c'è il titolo e modificarlo...
Magari postaci il codice dove c'è il titolo che lo sistemiamo
Ciao
-
spero sia questo...
è un pò lunghetto chiedo scusa
<? $bgcolor1 = "#0D0E0E"; $bgcolor2 = "#0D0E0E"; $bgcolor3 = "#0D0E0E"; $bgcolor4 = "#0D0E0E"; $textcolor1 = "#FFFFFF"; $textcolor2 = "#FFFFFF"; include("themes/CoNCePT/tables.php"); function themeheader() { global $admin, $user, $banners, $name, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous; if ($banners == 1) { $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'")); /* Get a random banner if exist any. */ /* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */ if ($numrows>1) { $numrows = $numrows-1; mt_srand((double)microtime()*1000000); $bannum = mt_rand(0, $numrows); } else { $bannum = 0; } $sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1"; $result = $db->sql_query($sql); $row = $db->sql_fetchrow($result); $bid = $row[bid]; $imageurl = $row[imageurl]; $clickurl = $row[clickurl]; $alttext = $row[alttext]; if (!is_admin($admin)) { $db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'"); } if($numrows>0) { $sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'"; $result2 = $db->sql_query($sql2); $row2 = $db->sql_fetchrow($result2); $cid = $row2[cid]; $imptotal = $row2[imptotal]; $impmade = $row2[impmade]; $clicks = $row2[clicks]; $date = $row2[date]; /* Check if this impression is the last one and print the banner */ if (($imptotal <= $impmade) AND ($imptotal != 0)) { $db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'"); $sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'"; $result3 = $db->sql_query($sql3); $row3 = $db->sql_fetchrow($result3); $c_name = $row3[name]; $c_contact = $row3[contact]; $c_email = $row3[email]; if ($c_email != "") { $from = "$sitename <$adminmail>"; $to = "$c_contact <$c_email>"; $message = ""._HELLO." $c_contact:\n\n"; $message .= ""._THISISAUTOMATED."\n\n"; $message .= ""._THERESULTS."\n\n"; $message .= ""._TOTALIMPRESSIONS." $imptotal\n"; $message .= ""._CLICKSRECEIVED." $clicks\n"; $message .= ""._IMAGEURL." $imageurl\n"; $message .= ""._CLICKURL." $clickurl\n"; $message .= ""._ALTERNATETEXT." $alttext\n\n"; $message .= ""._HOPEYOULIKED."\n\n"; $message .= ""._THANKSUPPORT."\n\n"; $message .= "- $sitename "._TEAM."\n"; $message .= "$nukeurl"; $subject = "$sitename: "._BANNERSFINNISHED.""; mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion()); } } $showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>"; } } cookiedecode($user); $username = $cookie[1]; if ($username == "") { $username = "Anonymous"; } echo "<body text=\"#FFFFFF\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">\n"; if ($username == "Anonymous") { $theuser = "<a href=\"modules.php?name=Your_Account\">Login</a> or <a href=\"modules.php?name=Your_Account&op=new_user\">Register</a>"; } else { $theuser = "Welcome $username!"; } $tmpl_file = "themes/CoNCePT/header.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; if ($name=='coppermine' || $name=='DisError' || $name=='Forums' || $name=='Members' || $name=='Private_Messages') { } else { blocks(left); } $tmpl_file = "themes/CoNCePT/left_center.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; } /************************************************************/ /* Function themefooter() */ /* */ /* Control the footer for your site. You don't need to */ /* close BODY and HTML tags at the end. In some part call */ /* the function for right blocks with: blocks(right); */ /* Also, $index variable need to be global and is used to */ /* determine if the page your're viewing is the Homepage or */ /* and internal one. */ /************************************************************/ function themefooter() { global $index, $user, $banners, $cookie, $prefix, $dbi, $db, $foot1, $foot2, $foot3, $foot4, $admin, $adminmail, $total_time, $start_time, $nukeurl; $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $end_time = $mtime; $total_time = ($end_time - $start_time); $total_time = ""._PAGEGENERATION." ".substr($total_time,0,5)." "._SECONDS.""; if ($banners == 1) { $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'")); /* Get a random banner if exist any. */ /* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */ if ($numrows>1) { $numrows = $numrows-1; mt_srand((double)microtime()*1000000); $bannum = mt_rand(0, $numrows); } else { $bannum = 0; } $sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1"; $result = $db->sql_query($sql); $row = $db->sql_fetchrow($result); $bid = $row[bid]; $imageurl = $row[imageurl]; $clickurl = $row[clickurl]; $alttext = $row[alttext]; if (!is_admin($admin)) { $db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'"); } if($numrows>0) { $sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'"; $result2 = $db->sql_query($sql2); $row2 = $db->sql_fetchrow($result2); $cid = $row2[cid]; $imptotal = $row2[imptotal]; $impmade = $row2[impmade]; $clicks = $row2[clicks]; $date = $row2[date]; /* Check if this impression is the last one and print the banner */ if (($imptotal <= $impmade) AND ($imptotal != 0)) { $db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'"); $sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'"; $result3 = $db->sql_query($sql3); $row3 = $db->sql_fetchrow($result3); $c_name = $row3[name]; $c_contact = $row3[contact]; $c_email = $row3[email]; if ($c_email != "") { $from = "$sitename <$adminmail>"; $to = "$c_contact <$c_email>"; $message = ""._HELLO." $c_contact:\n\n"; $message .= ""._THISISAUTOMATED."\n\n"; $message .= ""._THERESULTS."\n\n"; $message .= ""._TOTALIMPRESSIONS." $imptotal\n"; $message .= ""._CLICKSRECEIVED." $clicks\n"; $message .= ""._IMAGEURL." $imageurl\n"; $message .= ""._CLICKURL." $clickurl\n"; $message .= ""._ALTERNATETEXT." $alttext\n\n"; $message .= ""._HOPEYOULIKED."\n\n"; $message .= ""._THANKSUPPORT."\n\n"; $message .= "- $sitename "._TEAM."\n"; $message .= "$nukeurl"; $subject = "$sitename: "._BANNERSFINNISHED.""; mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion()); } } $showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>"; } } $footer_message = "$total_time"; if ($index == 1) { $tmpl_file = "themes/CoNCePT/center_right.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; blocks(right); } echo "<td width=\"16\" background=\"themes/CoNCePT/images/footer/CoNCePTfooter1.gif\"><img src=\"themes/CoNCePT/images/spacer.gif\" width=\"16\" height=\"1\"></td> </tr> </table> <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n" ."<tr>\n" ."<td width=\"15\" background=\"themes/CoNCePT/images/footer/CoNCePTfooter2.gif\"><img src=\"themes/CoNCePT/images/spacer.gif\" width=\"15\" height=\"1\"></td>\n" ."<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\" bgcolor=\"#000000\">\n" ."<tr><td>\n"; echo "</td></tr><tr>\n"; echo "<td><center><font class=\"small\">\n"; footmsg(); echo"</font></center></td>\n" ."</tr>\n" ."<tr>\n" ."</tr>\n" ."<tr>\n" ."</tr>\n" ."</table></td>\n" ."<td width=\"16\" background=\"themes/CoNCePT/images/footer/CoNCePTfooter1.gif\"><img src=\"themes/CoNCePT/images/spacer.gif\" width=\"16\" height=\"1\"></td>\n" ."</tr>\n" ."</table>\n" ."<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n" ."<tr>\n" ."<td width=\"35\"><IMG SRC=\"themes/CoNCePT/images/footer/CoNCePTfooter3.gif\" WIDTH=\"35\" HEIGHT=\"56\" ALT=\"\"></td>\n" ."<td background=\"themes/CoNCePT/images/footer/CoNCePTfooter4.gif\"> <A HREF=\"http://www.disipal.net\" TARGET=\"_blank\"><img src=\"themes/CoNCePT/images/footer/CoNCePT-mes.gif\" WIDTH=182 HEIGHT=14 BORDER=0 ALT=\"Disipal Design\" align=\"right\"></A></td>\n"; echo"<td width=\"35\"><IMG SRC=\"themes/CoNCePT/images/footer/CoNCePTfooter5.gif\" WIDTH=\"35\" HEIGHT=\"56\" ALT=\"\"></td>\n" ."</tr>\n" ."</table>\n" ."</td></tr></table>\n" ."</td></tr></table>\n"; } /************************************************************/ /* Function themeindex() */ /* */ /* This function format the stories on the Homepage */ /************************************************************/ function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) { global $anonymous, $tipath; if ($notes != "") { $notes = " [b]"._NOTE."[/b] [i]$notes[/i]\n"; } else { $notes = ""; } if ("$aid" == "$informant") { $content = "$thetext$notes\n"; } else { if($informant != "") { $content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> "; } else { $content = "$anonymous "; } $content .= ""._WRITES." [i]\"$thetext\"[/i]$notes\n"; } $posted = ""._POSTEDBY." "; $posted .= get_author($aid); $posted .= " "._ON." $time $timezone ($counter "._READS.")"; $tmpl_file = "themes/CoNCePT/story_home.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; } /************************************************************/ /* Function themearticle() */ /* */ /* This function format the stories on the story page, when */ /* you click on that "Read More..." link in the home */ /************************************************************/ function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) { global $admin, $sid, $tipath; $posted = ""._POSTEDON." $datetime "._BY." "; $posted .= get_author($aid); if ($notes != "") { $notes = " [b]"._NOTE."[/b] [i]$notes[/i]\n"; } else { $notes = ""; } if ("$aid" == "$informant") { $content = "$thetext$notes\n"; } else { if($informant != "") { $content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> "; } else { $content = "$anonymous "; } $content .= ""._WRITES." [i]\"$thetext\"[/i]$notes\n"; } $tmpl_file = "themes/CoNCePT/story_page.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; } /************************************************************/ /* Function themesidebox() */ /* */ /* Control look of your blocks. Just simple. */ /************************************************************/ function themesidebox($title, $content) { $tmpl_file = "themes/CoNCePT/blocks.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; } ?> -
ho provato ad usare il mod su un'altro sito dove è presente solo il forum phpbb2 senza nuke e funziona!
ho provato a vedere quindi quali differenze c'erano tra la directory forum del nuke e quella del forum "puro", l'unica sta nel fatto che in quella del nuke non esiste la directory "includes" all'interno del modulo forum...
può dipendere da questo? come risolvo?
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi