Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
DesertStorm

[Suche] Mod vielleicht kann einer helfen

Recommended Posts

Hi ich bin mal wieder auf der suche nach was und zwar wollte ich gerne wissen ob es sowas gibt oder jemand sowas schon mal eingebaut hat wie hier auf dem bild zusehen

Klick mich

Da ist ja ne leiste eingebaut für Toplisten vote buttons und das dadrunter hätte ich auch gerne auf meinem board das mit den Top Postern geht zwar auch mit Portal aber ich wollts gerne ohne so haben, auf dem bild ist das zwar auf einem Burning Board aber vielleicht geht das auch beim invision.

Vielen Dank schonmal

Greetz DesertStorm

Share this post


Link to post

hmm.. mal ne frage DesertStorm kannst du auch normal schreiben....?

Wat heisst denn normal?? Wenn Du meinst warum ich immer Fett schreibe muss ich Dich enttäuschen das tue ich auf jedem Board.

@benne danke ich werds mal testen

Share this post


Link to post

ich finds auch net schlimm wenn jemand immer fett schreibt das sticht dann irgendwi aus der masse raus und mehr leute lesesn es

M.

Quatsch...

Hier liest jeder alles, egal ob Fett oder nicht ;)

Und ich muss Fabio auch mal beistehen, finde diese "Ohne Punkt und Komma" Schreibweise auch nicht gut. Man braucht dann immer erstmal 10 minuten bevor man den sinn eines Satzes verstanden hat ;)

Share this post


Link to post

Ok ok ok hab ein wenig kommas bzw. punkte gesetzt versuche besserung :D .

Hab nun noch ne andere frage, hab den Top5 Mod von koksi nun drauf, und wollte wissen welche datei ich editieren muss wenn ich daran etwas verändern möchte.

MFG DesertStorm

Share this post


Link to post

skin_boards.php

Ist doch die Boards.php........aber egal :)

Vielleicht hilft mir hier noch jemand mal:

Denkt einfach, ihr müsst es nem kleinen Kind erklären:

Wie setze ich das gute Stück unter das Forum (Momentan residiert es ja oben).

Danke

caschy

Share this post


Link to post

skin_boards.php

Ist doch die Boards.php........aber egal :)

Nein... In der Boards.php ist nur die generelle Funktion eingebaut. Allerdings habe ich mich da auch vertan. Wenn man was am aussehen ändern will muss man das in der mod_top5_skin.php machen ;)

Share this post


Link to post

In der Boards.php...

Suche:

if ($ibforums->vars['show_active'])

Darüber den Blauen Code einfügen:

//-- mod_top5 begin

    if (file_exists(ROOT_PATH."sources/mods/top5/mod_top5_func.php")) {

        require $root_path."sources/mods/top5/mod_top5_func.php";

        $mod_top5 = new mod_top5;

    } else {

        die("Could not call required function from file 'sources/mods/top5/mod_top5_func.php'<br>Does it exist?");

    }

    $this->output .= $mod_top5->getOutput();

//-- mod_top5 end

if ($ibforums->vars['show_active'])

Share this post


Link to post

Da ich ja auch nicht gerade einer der Hellsten bin, was den Umbau angeht, vielleicht kann mir ja einer sagen was ich wie und wo einbauen muss, damit ich in der Top5 statistik folgendes habe.

Als erstes die Top5 Poster, dann die Neusten Mitglieder und dann die Letzten Beiträge.

Wäre nett wenn mir das jemand sagen könnte

Schonmal danke erstmal

Greetz DesertStorm

Share this post


Link to post

moin ich mal wieder hier mal ein meine mod_top5_skin.php

<?php

class mod_top5_skin {

         

function tableHeader($lang) {

global $ibforums;

return <<<EOF

<div class="tableborder">

   <div class='maintitle' align='left'><{CAT_IMG}>&nbsp; {$lang['mod_title']}</div>

      <table width="100%" border="0" cellspacing="1" cellpadding="0">

        <tr>

          <th align="left" width="30%" class='titlemedium'>{$lang['latest_posts']}</th>

          <th align="left" width="30%" class='titlemedium'>{$lang['latest_members']}</th>

          <th align="left" width="40%" class='titlemedium'>{$lang['total_posts']}</th>

        </tr>

        <tr>

          <td class="row4" align="center" width="30%" valign="top">

EOF;

}

function postTableHeader($lang) {

global $ibforums;

return <<<EOF

      <table width="100%" border="0" cellspacing="1" cellpadding="4">

        <tr>

          <td align="left" width="70%" class="row4"><u><b>{$lang['title']}</b></u></td>

          <td align="left" width="20%" class="row4"><u><b>{$lang['username']}</b></u></td>      

        </tr>

EOF;

}

function postTableRow($data) {

global $ibforums;

return <<<EOF

        <tr>

          <td class="row4" align="left" width="70%">{$data['title']}</td>

          <td class="row4" align="left" width="20%">{$data['username']}</td>       

        </tr>

EOF;

}

function postTableFooter() {

global $ibforums;

return <<<EOF

</table>

</td>

<td class="row4" align="center" width="30%" valign="top">

EOF;

}

function memberTableHeader($lang) {

global $ibforums;

return <<<EOF

      <table width="100%" border="0" cellspacing="1" cellpadding="4">

        <tr>

          <td align="left" width="70%" class="row4"><u><b>{$lang['username']}</b></u></td>

          <td align="left" width="30%" class="row4"><u><b>{$lang['postings']}</b></u></td> 

        </tr>

EOF;

}

function memberTableRow($data) {

global $ibforums;

return <<<EOF

        <tr>

          <td class="row4" align="left" width="70%">{$data['username']}</td>

          <td class="row4" align="left" width="30%">{$data['postings']}</td>    

        </tr>

EOF;

}

function memberTableFooter() {

global $ibforums;

return <<<EOF

</table>

</td>

EOF;

}

function tableFooter() {

global $ibforums;

return <<<EOF

</tr>

</table>

</div><br />

EOF;

}

}

?>

Eine neues Feld konnte ich schon anlegen nur weiss ich noch nicht so genau wie die bezeichnung heisst für die Top ten poster und was ich noch einfügen muss damit es geht.

hier gehts zum board Zur Homepage

EDIT:Also es sollen in der Statistik noch die Top 5 Poster drin stehen

EDIT: Den roten Code hab ich dahin gesetzt

Edited by DesertStorm

Share this post


Link to post

In der mod_top5_func.php suche folgende Stelle:

  $this->output .= $this->html->memberTableHeader($lang);	
 
 
 // add the right side of the top5 stats table:
 $r = $DB->query("SELECT id,name,posts
 FROM ibf_members
 ORDER BY joined DESC
 LIMIT 0,5");

               while ( $r = $DB->fetch_row() )
               {
 $tmpArray["username"] = "<a href=\"".$ibforums->base_url."showuser=".$r["id"]."&view=getnewpost\">".$r["name"]."</a>";;
 $tmpArray["postings"] = $r["posts"];
 $this->output .= $this->html->memberTableRow($tmpArray);
 }
 
 // we arrived at the bottom, let´s finish the table structure
 // and return the data:
 $this->output .= $this->html->memberTableFooter();
Und direkt darunter kopierst du diese Codzeilen:
  $this->output .= $this->html->memberTableHeader($lang);	
 
 
 // add the right side of the top5 stats table:
 $r = $DB->query("SELECT id,name,posts
 FROM ibf_members
 ORDER BY posts DESC
 LIMIT 0,5");

               while ( $r = $DB->fetch_row() )
               {
 $tmpArray["username"] = "<a href=\"".$ibforums->base_url."showuser=".$r["id"]."&view=getnewpost\">".$r["name"]."</a>";;
 $tmpArray["postings"] = $r["posts"];
 $this->output .= $this->html->memberTableRow($tmpArray);
 }
 
 // we arrived at the bottom, let´s finish the table structure
 // and return the data:
 $this->output .= $this->html->memberTableFooter();

Sollte dann funktionieren. :)

Share this post


Link to post

Moin Stefan erstmal danke hat auch fast so hingehauen kannst nochmal auf meinem board schauen. Irgendwie muss das noch an die bestimmte position aber wie, wäre nett wenn du mir da nochmal helfen könntest

bis jetzt schonmal vielen dank

Share this post


Link to post

Das sieht darin jetzt so aus

$this->output .= $this->html->memberTableHeader($lang);

 

 

  // add the right side of the top5 stats table:

  $r = $DB->query("SELECT id,name,posts

  FROM ibf_members

  ORDER BY joined DESC

  LIMIT 0,5");

                while ( $r = $DB->fetch_row() )

                {

  $tmpArray["username"] = "<a href=\"".$ibforums->base_url."showuser=".$r["id"]."&view=getnewpost\">".$r["name"]."</a>";;

  $tmpArray["postings"] = $r["posts"];

  $this->output .= $this->html->memberTableRow($tmpArray);

  }

 

  // we arrived at the bottom, let´s finish the table structure

  // and return the data:

  $this->output .= $this->html->memberTableFooter();

    $this->output .= $this->html->memberTableHeader($lang);

// add the right side of the top5 stats table:

$r = $DB->query("SELECT id,name,posts

  FROM ibf_members

  ORDER BY posts DESC

  LIMIT 0,5");

              while ( $r = $DB->fetch_row() )

              {

  $tmpArray["username"] = "<a href=\"".$ibforums->base_url."showuser=".$r["id"]."&view=getnewpost\">".$r["name"]."</a>";;

  $tmpArray["postings"] = $r["posts"];

  $this->output .= $this->html->memberTableRow($tmpArray);

}

// we arrived at the bottom, let´s finish the table structure

// and return the data:

$this->output .= $this->html->memberTableFooter();

  $this->output .= $this->html->tableFooter(); 

 

  return $this->output;

}

    function get_searchable_forums()

    {

    global $ibforums, $DB, $std;

   

    $forum_array  = array();

    $forum_string = "";

    $sql_query    = "";

   

    $r = $DB->query("SELECT id, read_perms, password FROM ibf_forums");

    while ( $r = $DB->fetch_row() )

        {       

        if(! strlen($r["password"]) > 0)

        {

          if($r["read_perms"]=="*")

          {

          array_push($forum_array, $r["id"]);

          continue;

          }else{

        $anArray = explode("," , $r["read_perms"]);

          if (in_array ($ibforums->member['mgroup'], $anArray)) {

            array_push($forum_array, $r["id"]);

    } 

    continue; 

   

          }

           

        }

        }

    $forum_string = implode( "," , $forum_array );

    return $forum_string;

   

    }

}

?>

Ist das korrekt das da nun 2 mal // we arrived at the bottom, let´s finish the table structure

// and return the data:

steht

Share this post


Link to post

Ändere mal in der Skindatei folgende Funktion:

function memberTableFooter() {
global $ibforums;
return <<<EOF
</table>
</td>
EOF;
}
in
function memberTableFooter() {
global $ibforums;
return <<<EOF
</table>
</td>
<td class="row4" align="center" width="40%" valign="top">
EOF;
}

function topmemberTableFooter() {
global $ibforums;
return <<<EOF
</table>
</td>
EOF;
}
Und dann in der mod_top5_func.php das letzte, da zweimal vorkommt:
$this->output .= $this->html->memberTableFooter();
in
$this->output .= $this->html->topmemberTableFooter();

Und nebenbei, alles was nach einem // in der gleichen Zeile kommt ist Kommentar und da kannst du schreiben was du willst. ;)

Das die Stelle zweimal vorkommt liegt daran, das ich einfach die eine Funktion kopiert und nur mit Änderungen darunter eingefügt habe. Hab auf die Kommentare nicht geachtet.

Share this post


Link to post

Heute wollte ich Probieren den Hack "Top5" einzubauen jetzt bekomme ich diesen Fehler!

Could not fetch the templates from the database. Template mod_top5_skin, ID 2
Ich glaube das hat hier mit was zutun eigendlich soll ich das machen aber ich verstehe nicht ganz was ich da machen soll ich bin in ACP->Skins & Templates ? Manage html templates.
* In a similar way you have to copy the skin files in archive's Skin/s1 to the skin dirs of your board.

Do not forget to resynchronize the database templates from the php files via ACP ? Skins & Templates ? Manage html templates

Aber was ich danach machen muss weiss ich nicht?

Share this post


Link to post

Du hast vergessen die mod_top5_skin.php in den Ordner Skin/s2/ zu laden.

Eigentlich Zitiere ich mich ja ungern selbst, aber diesmal muss ichs mal machen ;)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×