Demo
	
		
			Probiere ClanSphere aus und teste daran herum.
			Demo
		
	
 
      
Spenden
  
    ClanSphere ist freie OpenSource Software.
Bitte unterstützt uns.
    Spenden
  
 
			
				
  
  
  
    | Antworten: 0 Seite  [1]  | 
  
  
    |  VooDooAlex 
 
   Poststar
 
 
  
 
 Herkunft: Coburg
 Beiträge: 691
 
 | # Thema - 11.01.2009 um 21:06 Uhr Bin gerade dabei meine Forumübersicht zu überarbeiten.
 
 Das ganze soll irgenwann so schemenhaft aussehen:
 
 Forum 1                                                                              |Themen:xxxx
 Subforum1 - Subforum2 - Subforum 3                                       |Beiträge:xxxx
 |Zu Thema:xxx
 |Von:xxx
 |geschrieben am xxx
 -------------------------------------------------------------------------------- --------
 Forum 2                                                                              |Themen:xxxx
 Subforum1 - Subforum2 - Subforum 3                                       |Beiträge:xxxx
 |Zu Thema:xxx
 |Von:xxx
 |geschrieben am xxx
 -------------------------------------------------------------------------------- --------
 
 usw.
 
 Im Augenblick addiert er mir die Beiträge schon, aber
 1. Problem wenn er ins Forum 2 geht addiert er die Beiträge vom Forum 1 mit.
 Wie stelle ich den Zähler wieder auf null, wenn die Abfrage ins nächste Forum geht?
 
 2. Problem, ich will das ganze nicht hinter dem Subforum sondern rechts oben in die 2. Spalte hinter Themen.
 Müßte ich doch praktisch in die Schleife vom Forum mit einbringen und nicht in die Subforen.
 Hat vielleicht einer eine Idee wie ich das anstellen könnte?
 
 Hier der Bereich der Änderungen der list.php (wo ich im Augenblick die Themen zähle):
 mehr...
   | 
 1. 2.
 3.
 4.
 5.
 6.
 7.
 8.
 9.
 
 | 1. / 2. / ... 
  if (!empty($thread['threads_id']) and !empty($check_pw)) {
 $board['board_topics'] = cs_board_threads($board['board_id']);
 $var= cs_board_comments($board['board_id']);
 $commentsall = $commentsall + $var;
 $board['board_comments'] = $commentsall;
 $board['last_name'] = cs_secure($thread['threads_headline']);
 $board['last_id'] = $thread['threads_id'];
 
 | 
 
 und hier die list.tpl:
 mehr...
   | 
 1. 2.
 3.
 4.
 5.
 6.
 7.
 8.
 9.
 10.
 11.
 12.
 13.
 14.
 15.
 16.
 17.
 18.
 19.
 20.
 21.
 22.
 23.
 24.
 25.
 26.
 27.
 28.
 29.
 30.
 31.
 32.
 33.
 34.
 35.
 36.
 37.
 38.
 39.
 40.
 41.
 42.
 43.
 
 | 1. / 2. / ... 
  <table class="forum" style="width:{page:width}" cellpadding="0" cellspacing="1"><tr>
 <td class="headb" colspan="4">Forum</td>
 </tr>
 <tr>
 <td class="centerb" style="width:27%"><a href="/index.php?mod=board&action=new">{lang:new}</a></td>
 <td class="centerb" style="width:27%"><a href="/index.php?mod=board&action=active">{lang:active}</a></td>
 <td class="centerb" style="width:27%"><a href="/index.php?mod=board&action=toplist">{lang:toplist}</a></td>
 <td class="centerb" style="width:19%"><a href="/index.php?mod=board&action=search">{lang:search}</a></td>
 </tr>
 </table>
 
 {head:message}
 
 <table class="forum" style="width:{page:width}" cellpadding="0" cellspacing="1">
 <tr>
 <td class="headb" colspan="3">{lang:overview}</td>
 </tr>
 {loop:categories}
 <tr>
 <td class="leftd">
 <a href="{categories:list_url}"><img src="uploads/categories/{categories:categories_picture}"></a>  </td>
 <td class="leftc">
 <a class="boardlink" href="{categories:list_url}">{categories:categories_name}:</a><br>
 </br><br></br>
 {loop:board}<a class="subforumlink" href="{board:listcat_url}">{board:board_name}{board:board_comments} </a> {stop:board}
 </td>
 <td class="leftc" width="140">
 <a>Themen: {stats:threads}</br>
 <br>
 Beiträge: {stats:comments}<br></br><br></br>
 Zu: Waß weiß ich!<br></br>
 Von: Hanswurst<br>
 </br>
 Heute: 20:15 Uhr</a>
 </td>
 </tr>
 {stop:categories}
 <tr>
 <td class="rightc" colspan="5"><a href="{url:board_mark}">{lang:mark_all}</a></td>
 </tr>
 </table>
 {board:statistik}
 | 
 
 Hier noch der Link zur Testseite:
 http://voodoogaming.de/Test/board.php?mod=board
 
 Gruß Alex
 
 
 
 
 
 
 
 
 
 
 
 ------------------
 
 
 
 | 
  
    |  |     | 
  
  
  
  
  
    | Antworten: 0 Seite  [1]  | 
 
  
    | Sie müssen sich registrieren, um zu antworten. |