Siccome sto provando il multiforums di sebflipper nell'index.php compaiono i forum totali così:
ecco alcune variabili ke incomincia per i forum totali ke c'è nell'index.php
Modificando sopra alcune di qlle variabili mi dovrebbe comparire qnti forum totali ci sono, ma forse sbaglio in qlke virgola o ?> sapete aiutarmi voi?Codice:<tr> <td class="tdrow1" colspan="2"> <?php if ($search == false) { ?> <table width="100%"> <tr> <td class="tdrow1" width="33%"><div align="left"> <form action='' method='GET' name='noperpage'> Display <select name='max_show' onChange='document.noperpage.submit()'> <?php for ($i = 1;;$i++) { if ($noperp > 90) { break; } $noperp = $i * 10; if ($noperp==$max_show) { print "<option value='$noperp' selected>$noperp</option>\n"; } else { print "<option value='$noperp'>$noperp</option>\n"; } } ?> </select> records per page </form> </div> </td> <td class="tdrow1" width="33%"><div align="center"> <?php $total_been_diplayed = $from + $max_show; $total_forums_sql = "SELECT * FROM `multiforums_forums`"; $total_forums_mysql = mysql_query($total_forums_sql); $total_forums_result = mysql_num_rows($total_forums_mysql); $next = $from + $max_show; $previous = $from - $max_show; if ($from==0) { echo "<table border=0><tr><td></td><td><a href=?from=$next&max_show=$max_show&sortby=$sortby&sortmeth=$sortmeth>Next ></a></td></tr></table>"; } else { if ($total_been_diplayed>=$total_forums_result) { echo "<table border=0><tr><td><a href=?from=$previous&max_show=$max_show&sortby=$sortby&sortmeth=$sortmeth>< Previous</a></td><td></td></tr></table>"; } else { echo "<table border=0><tr><td><a href=?from=$previous&max_show=$max_show&sortby=$sortby&sortmeth=$sortmeth>< Previous</a> |</td><td><a href=?from=$next&max_show=$max_show&sortby=$sortby&sortmeth=$sortmeth>Next ></a></td></tr></table>"; } } echo "<br>Total Forums: $total_forums_result"; ?> </td> <td class="tdrow1" width="33%"><div align="right"> <form action='' method='GET' name='pagejump'> Jump to Page <select name='from' onChange='document.pagejump.submit()'> <?php // Works out how many pages there for the drop down box $total_pages = ($total_forums_result / $max_show); $total_pages = ceil($total_pages); for ($i = 1;;$i++) { if ($i > $total_pages) { break; } $jump = (($i * $max_show) - $max_show); if ($jump==$from) { print "<option value='$jump' selected>$i</option>\n"; } else { print "<option value='$jump'>$i</option>\n"; } } ?> </select> </form> </div> </td> </tr> </table> <?php } ?> </td> </tr> </table> </td> </tr> </table> <div align="center"> <?php //Getting script exe time if (!isset($ss_timing_start_times)) { } if (!isset($ss_timing_stop_times)) { $stop_time = explode(' ', microtime()); } else { $stop_time = $ss_timing_stop_times; } // do the big numbers first so the small ones aren't lost $current = $stop_time[1] - $ss_timing_start_times[1]; $current += $stop_time[0] - $ss_timing_start_times[0]; $exec_time = round($current,4); $cache_time = date("j M, Y H:i T", $last_cache); echo "<br><br><br><font size=1>Last System Cache: $cache_time<br>Script Execution time: $exec_time<br>Latest Version: $latest_version</font><br>"; if ($copyright == "yes") { echo "<div align=center><font size=1 face='Arial, Helvetica, sans-serif'>Powered by <a href=http://www.sebflipper.com target=_blank>Multi-Forums</a> $version</div>"; } else { echo "<!--Powered by Multi-Forums $version - http://www.sebflipper.com-->"; } ?> </div> </body> </html> <?php } else { setcookie("FreeForumAdminCookie"); echo "<html><body><script language=javascript1.1>alert('Wrong Password/Password Changed'); window.location='$PHP_SELF';</script><noscript>Your browser doesn't support JavaScript 1.1 or it's turned off in your browsers preferences.</noscript></body></html>"; exit; } } else { startHTML(); ?> <table align="center" class="tablewrap" cellpadding="0" cellspacing="3" width="350"> <tr> <td align="center" class="title">Multi-Forums Admin</td> </tr> <tr> <td> <table class="table1" align="center" width="100%"> <tr> <td class="tdrow1" colspan="2"><div align="center">Please enter your password:</td> </tr> <tr> <td class="tdrow2"><div align="center"> <form name="password" method="post" action="?act=login"> <input name="input_password" type="password"> <input type="submit" name="Submit" value="Ok"> </form></td> </tr> </table> </td> </tr> </table> <br><br> <?php if ($copyright == "yes") { echo "<div align=center><font size=1 face='Arial, Helvetica, sans-serif'>Powered by <a href=http://www.sebflipper.com target=_blank>Multi-Forums</a> $version</div>"; } else { echo "<!--Powered by Multi-Forums $version - http://www.sebflipper.com-->"; } } ?>
Se non è completo vi posto tutto l'index.php

LinkBack URL
About LinkBacks
