Se connecter / S'enregistrer
Votre question

Php-fusion forum

Tags :
  • Php
  • Programmation
Dernière réponse : dans Programmation
25 Décembre 2008 22:49:17

bonjour, je suis novice en php et j'utilise php-fusion. Ce cms est super mais je suis face a une impasse. En fait j'ai un site à 3 colone. colone de gauche de navigation, colone de droite utilisateur et celle du centre du contenu.

Lorsque je j'ouvre le forum, j'aimerai que la colone de gauche et de droite disparaisse pour que celle du forum (donc centre) soit plus grande. mais seulement dans la page forum.

voici le code de la page index.php de /forum/ Si ce n'est pas celle là qu'il faut modifier je mettrai le code de l'autre page. Merci d'avance

  1. <?php
  2. /*-------------------------------------------------------+
  3. | PHP-Fusion Content Management System
  4. | Copyright (C) 2002 - 2008 Nick Jones
  5. | <a href="http://www.php-fusion.co.uk/" rel="nofollow" target="_blank">http://www.php-fusion.co.uk/</a>
  6. +--------------------------------------------------------+
  7. | Filename: index.php
  8. | Author: Nick Jones (Digitanium)
  9. +--------------------------------------------------------+
  10. | This program is released as free software under the
  11. | Affero GPL license. You can redistribute it and/or
  12. | modify it under the terms of this license which you
  13. | can read by viewing the included agpl.txt or online
  14. | at <a href="http://www.gnu.org/licenses/agpl.html" rel="nofollow" target="_blank">www.gnu.org/licenses/agpl.html</a>. Removal of this
  15. | copyright header is strictly prohibited without
  16. | written permission from the original author(s).
  17. +--------------------------------------------------------*/
  18. require_once "../maincore.php";
  19. require_once THEMES."templates/header.php";
  20. include LOCALE.LOCALESET."forum/main.php";
  21.  
  22. if (!isset($lastvisited) || !isnum($lastvisited)) { $lastvisited = time(); }
  23.  
  24. add_to_title($locale['global_200'].$locale['400']);
  25.  
  26. opentable($locale['400']);
  27. echo "<!--pre_forum_idx--><table cellpadding='0' cellspacing='1' width='100%' class='tbl-border forum_idx_table'>\n<tr>\n";
  28. echo "<td colspan='2' class='tbl2'>".$locale['401']."</td>\n";
  29. echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>".$locale['402']."</td>\n";
  30. echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>".$locale['403']."</td>\n";
  31. echo "<td width='1%' class='tbl2' style='white-space:nowrap'>".$locale['404']."</td>\n";
  32. echo "</tr>\n";
  33.  
  34. $forum_list = ""; $current_cat = "";
  35. $result = dbquery(
  36. "SELECT f.*, f2.forum_name AS forum_cat_name, u.user_id, u.user_name
  37. FROM ".DB_FORUMS." f
  38. LEFT JOIN ".DB_FORUMS." f2 ON f.forum_cat = f2.forum_id
  39. LEFT JOIN ".DB_USERS." u ON f.forum_lastuser = u.user_id
  40. WHERE ".groupaccess('f.forum_access')." AND f.forum_cat!='0' GROUP BY forum_id ORDER BY f2.forum_order ASC, f.forum_order ASC"
  41. );
  42. if (dbrows($result) != 0) {
  43. while ($data = dbarray($result)) {
  44. if ($data['forum_cat_name'] != $current_cat) {
  45. $current_cat = $data['forum_cat_name'];
  46. echo "<tr>\n<td colspan='5' class='forum-caption forum_cat_name'><!--forum_cat_name-->".$data['forum_cat_name']."</td>\n</tr>\n";
  47. }
  48. $moderators = "";
  49. if ($data['forum_moderators']) {
  50. $mod_groups = explode(".", $data['forum_moderators']);
  51. foreach ($mod_groups as $mod_group) {
  52. if ($moderators) $moderators .= ", ";
  53. $moderators .= $mod_group<101 ? "<a href='".BASEDIR."profile.php?group_id=".$mod_group."'>".getgroupname($mod_group)."</a>" : getgroupname($mod_group);
  54. }
  55. }
  56. $forum_match = "\|".$data['forum_lastpost']."\|".$data['forum_id'];
  57. if ($data['forum_lastpost'] > $lastvisited) {
  58. if (iMEMBER && preg_match("({$forum_match}\.|{$forum_match}$)", $userdata['user_threads'])) {
  59. $fim = "<img src='".get_image("folder")."' alt='".$locale['561']."' />";
  60. } else {
  61. $fim = "<img src='".get_image("foldernew")."' alt='".$locale['560']."' />";
  62. }
  63. } else {
  64. $fim = "<img src='".get_image("folder")."' alt='".$locale['561']."' />";
  65. }
  66. echo "<tr>\n";
  67. echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>$fim</td>\n";
  68. echo "<td class='tbl1 forum_name'><!--forum_name--><a href='viewforum.php?forum_id=".$data['forum_id']."'>".$data['forum_name']."</a><br />\n";
  69. if ($data['forum_description'] || $moderators) {
  70. echo "<span class='small'>".$data['forum_description'].($data['forum_description'] && $moderators ? "<br />\n" : "");
  71. echo ($moderators ? "<strong>".$locale['411']."</strong>".$moderators."</span>\n" : "</span>\n")."\n";
  72. }
  73. echo "</td>\n";
  74. echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>".$data['forum_threadcount']."</td>\n";
  75. echo "<td align='center' width='1%' class='tbl1' style='white-space:nowrap'>".$data['forum_postcount']."</td>\n";
  76. echo "<td width='1%' class='tbl2' style='white-space:nowrap'>";
  77. if ($data['forum_lastpost'] == 0) {
  78. echo $locale['405']."</td>\n</tr>\n";
  79. } else {
  80. echo showdate("forumdate", $data['forum_lastpost'])."<br />\n";
  81. echo "<span class='small'>".$locale['406']."<a href='".BASEDIR."profile.php?lookup=".$data['forum_lastuser']."'>".$data['user_name']."</a></span></td>\n";
  82. echo "</tr>\n";
  83. }
  84. }
  85. } else {
  86. echo "<tr>\n<td colspan='5' class='tbl1'>".$locale['407']."</td>\n</tr>\n";
  87. }
  88. echo "</table><!--sub_forum_idx_table-->\n<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
  89. echo "<td class='forum'><br />\n";
  90. echo "<img src='".get_image("foldernew")."' alt='".$locale['560']."' style='vertical-align:middle;' /> - ".$locale['409']."<br />\n";
  91. echo "<img src='".get_image("folder")."' alt='".$locale['561']."' style='vertical-align:middle;' /> - ".$locale['410']."\n";
  92. echo "</td><td align='right' valign='bottom' class='forum'>\n";
  93. echo "<form name='searchform' method='get' action='".BASEDIR."search.php?stype=forums'>\n";
  94. echo "<input type='text' name='stext' class='textbox' style='width:150px' />\n";
  95. echo "<input type='submit' name='search' value='".$locale['550']."' class='button' />\n";
  96. echo "</form>\n</td>\n</tr>\n</table><!--sub_forum_idx-->\n";
  97. closetable();
  98.  
  99. require_once THEMES."templates/footer.php";
  100. ?>

Autres pages sur : php fusion forum

27 Décembre 2008 00:54:48

up ?
Tom's guide dans le monde
  • Allemagne
  • Italie
  • Irlande
  • Royaume Uni
  • Etats Unis
Suivre Tom's Guide
Inscrivez-vous à la Newsletter
  • ajouter à twitter
  • ajouter à facebook
  • ajouter un flux RSS