• » webSPELL.org - Free Content Management System
  • Language switch: English German
  • login



    » lost password?   » register now
  • About webSPELL

    webSPELL is a free Content Management System which was especially developed for the needs of esport related communities. Since a short while we are also offering an optimized and enhanced webSPELL version for the special requirements of non-profit organisations. The purpose of both systems is to offer a professional and free opportunity to create and administrate your own website in an easy and optimized way.

    » Learn more about webSPELL     » Download webSPELL now!
  • Advertisement

    Follow us

  • Sort:     printview


    To start or to reply to a topic you have to be registered and logged in!

    register now
    login
    Author
    Message
    webSPELL newbie
    69 Posts
    26.04.2012, 01:35 email offline quote 

    Folgendes, ich brauche diesen code in 2 verschiendene sc_ datein, so das ich diese includen kann.

    Code:
    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.
    44.
    45.
    46.
    47.
    48.
    49.
    50.
    51.
    52.
    53.
    54.
    55.
    56.
    57.
    58.
    59.
    60.
    61.
    62.
    63.
    64.
    65.
    66.
    67.
    68.
    69.
    70.
    71.
    72.
    73.
    74.
    75.
    76.
    77.
    78.
    79.
    80.
    81.
    82.
    83.
    84.
    85.
    86.
    87.
    function top5() {
         $pagebg=PAGEBG;
         $border=BORDER;
         $bghead=BGHEAD;
         $bgcat=BGCAT;

         global $_language;

         $_language->read_module('articles');

         echo'<table cellspacing="0" cellpadding="0" width="100%"><tr><td align="center"><div class="top_5"><table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
          <td width="49%" valign="top">';
     if(empty($_GET['rubricID']))     $rub=""; else $rub="and rubricID='".$_GET['rubricID']."'";
         // RATING
         $ergebnis=safe_query("SELECT * FROM ".PREFIX."articles WHERE saved='1' $rub  ORDER BY rating DESC LIMIT 0,5");
         $top=$_language->module['top5_rating'];
         
      eval ("\$top5_head = \"".gettemplate("top5_head")."\";");
      echo $top5_head;
         
      $n=1;
         while($ds=mysql_fetch_array($ergebnis)) {
              if($n%2) {
                   $bg1=BG_1;
                   $bg2=BG_2;
              }
              else {
                   $bg1=BG_3;
                   $bg2=BG_4;
              }

              $title='<a href="index.php?site=articles&amp;action=show&amp;articlesID='.$ds['articlesID'].'">'.clearfromtags($ds['title']).'</a>';
              $poster='<a href="index.php?site=profile&amp;id='.$ds['poster'].'">'.getnickname($ds['poster']).'</a>';
              $viewed='('.$ds['viewed'].')';
              $ratings=array(0,0,0,0,0,0,0,0,0,0);
              for($i=0; $i<$ds['rating']; $i++) {
                   $ratings[$i]=1;
              }
              $ratingpic='<img src="images/icons/rating_'.$ratings[0].'_start.gif" width="1" height="5" alt="" />';
              foreach($ratings as $pic) {
                   $ratingpic.='<img src="images/icons/rating_'.$pic.'.gif" width="4" height="5" alt="" />';
              }
              
        echo'<tr>
            <td align="center"><b>'.$n.'.</b></td>
            <td align="center" style="white-space:nowrap;">'.$ratingpic.'</td>
            <td>'.$title.'</td>
          </tr>';

              unset($ratingpic);
              $n++;
         }
         
      echo'</table>';
         echo'</td><td width="49%" valign="top">';
      
         // POINTS
         $ergebnis=safe_query("SELECT * FROM ".PREFIX."articles WHERE saved='1' $rub ORDER BY points DESC LIMIT 0,5");
         $top=$_language->module['top5_points'];
         
      eval ("\$top5_head = \"".gettemplate("top5_head")."\";");
         echo $top5_head;
      
         $n=1;
         while($ds=mysql_fetch_array($ergebnis)) {
        if($n%2) {
                   $bg1=BG_1;
                   $bg2=BG_2;
              }
              else {
                   $bg1=BG_3;
                   $bg2=BG_4;
              }
        
              $title='<a href="index.php?site=articles&amp;action=show&amp;articlesID='.$ds['articlesID'].'">'.clearfromtags($ds['title']).'</a>';
              $viewed='('.$ds['viewed'].')';
              echo'<tr>
            <td align="center"><b>'.$n.'.</b></td>
            <td align="center">'.$ds['points'].'</td>
            <td>'.$title.'</td>
          </tr>';
          
              $n++;
         }
         echo'</table></td></tr></table></div></td></tr></table>';
    }



    Einmal sc_top5_rating.php und sc_top5_points.php

    so das ich den code der aktuell in der articles.php ist, entfernen kann.

    Ich selbst habs schon versucht, nur haut es irgendwie nicht hin mit der datenbank.

    website: www.sr-esports.de/
    version: 4.2.3
    Sort:     printview


    To start or to reply to a topic you have to be registered and logged in!

    register now
    login
  • » Support

    » Topics
    26.05.2013 - 00:18 - 473 Replies
    » Wettscript 2.1 for 4.2.3a...
    Wettscript 2.1 for 4.2.3a - Betscript
    Last post: Amokossi
    Board: DE - Fertige Skripte
    26.05.2013 - 00:18
    25.05.2013 - 22:46 - 0 Replies
    » Clanwar News!
    Clanwar News!
    Last post: Maverico
    Board: DE - Anfragen
    25.05.2013 - 22:46
    25.05.2013 - 19:01 - 1 Replies
    » Error 1146
    Error 1146
    Last post: Argu
    Board: EN - Technical support
    25.05.2013 - 19:01
    25.05.2013 - 17:51 - 0 Replies
    » Gewinnspiel
    Gewinnspiel
    Last post: Dynamic-Webmedia
    Board: DE - Aus aller Welt
    25.05.2013 - 17:51
    25.05.2013 - 12:35 - 1 Replies
    » Need coder for a design!
    Need coder for a design!
    Last post: wantedJK-
    Board: EN - General
    25.05.2013 - 12:35
    25.05.2013 - 03:18 - 0 Replies
    » ScooterFreakz.com - Motor...
    ScooterFreakz.com - Motorroller Community
    Last post: Tuner77
    Board: DE - Showroom
    25.05.2013 - 03:18
    25.05.2013 - 00:46 - 8 Replies
    » Ändern der Größe php
    Ändern der Größe php
    Last post: andy5116
    Board: DE - Allgemeiner Support
    25.05.2013 - 00:46
    24.05.2013 - 23:39 - 33 Replies
    » [B]Userrank Addon
    [B]Userrank Addon
    Last post: Swordfish3000
    Board: DE - Erweiterungen
    24.05.2013 - 23:39
    24.05.2013 - 15:12 - 19 Replies
    » forum anzeige erweitern
    forum anzeige erweitern
    Last post: Swordfish3000
    Board: DE - Allgemeiner Support
    24.05.2013 - 15:12
    24.05.2013 - 12:03 - 1 Replies
    » Verkaufe prof. Clandesign
    Verkaufe prof. Clandesign
    Last post: Vith3r
    Board: DE - Biete
    24.05.2013 - 12:03
    24.05.2013 - 12:02 - 6 Replies
    » [S] Team/Clan Logos (Upda...
    [S] Team/Clan Logos (Update: 2 new Logos)
    Last post: a--w
    Board: EN - Offers
    24.05.2013 - 12:02
    24.05.2013 - 02:41 - 17 Replies
    » High Quality Website
    High Quality Website
    Last post: Dansjostedt
    Board: EN - Offers
    24.05.2013 - 02:41
    24.05.2013 - 02:24 - 5 Replies
    » [SELL] Gaming Website
    [SELL] Gaming Website
    Last post: hornyst
    Board: EN - Offers
    24.05.2013 - 02:24
    23.05.2013 - 22:37 - 2 Replies
    » Bilder Breite im Forum an...
    Bilder Breite im Forum anpassen
    Last post: nappel.ger
    Board: DE - Vorschläge
    23.05.2013 - 22:37
    23.05.2013 - 15:35 - 6 Replies
    » I cannot upload template ...
    I cannot upload template to my cms .
    Last post: bazic
    Board: EN - General
    23.05.2013 - 15:35
    23.05.2013 - 14:50 - 3 Replies
    » Kalendar-Box
    Kalendar-Box
    Last post: kassor
    Board: DE - Anfragen
    23.05.2013 - 14:50
    23.05.2013 - 10:14 - 12 Replies
    » Mein Forum
    Mein Forum
    Last post: Lordy4007
    Board: DE - Fragen zur Seite
    23.05.2013 - 10:14
    22.05.2013 - 23:06 - 9 Replies
    » When the update?
    When the update?
    Last post: kola60
    Board: EN - General
    22.05.2013 - 23:06
    22.05.2013 - 22:21 - 2 Replies
    » Website For SALE! CODED
    Website For SALE! CODED
    Last post: Osamakillz
    Board: EN - General
    22.05.2013 - 22:21
    22.05.2013 - 21:43 - 3 Replies
    » Slider Links Bitte um Hil...
    Slider Links Bitte um Hilfe
    Last post: bazic
    Board: DE - Allgemein
    22.05.2013 - 21:43
    » Partners
    Bilderkiste.org Image Hosting
    k3rmit.org
    PascalMh.de


    » Blog
    28.03.2013 - derchris
    » Those damn spammers