Seite 1 von 2

[suche] Wasserstands mod....wo ist er geblieben

Verfasst: 17.08.2004 12:50
von syntaxterror
Hallo zusammen,

Klasse Forum hierso! Hat mir Unwissendem schon einiges geholfen befor ich mich entschloss mich anzumelden.

Jetzt meine Frage: Ich hab hier so einiges lesen können in alten posts über einen 'wasserstands-mod'. Den hätte ich gern, aber kann ihn nirgends mehr finden...posts sind alt, seiten tot. Google schafft ca zwei resultate :-(

Was ist aus dem Ding geworden? Postet niemand mehr Wasserstände?

Schon mal Dank für Eure Hilfe.

Verfasst: 17.08.2004 14:51
von Andy120
hi...

Ich kenn den MOD nicht, aber ist er evtl. hier?

Search Results von phpbbhacks.com

Verfasst: 17.08.2004 15:35
von syntaxterror
nee, leider nicht. Es gab hier mal n thread 'wasserstands-funktion' in dem der mod besprochen wurde. Es hat ihn gegeben, aber scheinbar isser weg.

Trotzdem danke.

ausserdem, so sah er aus:

[ externes Bild ]

Verfasst: 17.08.2004 15:38
von Christian_W
@syntaxterror
Wähle bitte nächtesmal einen sinnvollen Titel.
KB:knigge

Gruß Christian

Verfasst: 17.08.2004 15:55
von syntaxterror
OK, point taken. :oops:

Verfasst: 17.08.2004 17:01
von Christian_W
Schon besser ;)

Du kannst ja mal einfach bei den Boards nachfragen die den eingebaut haben, ob sie die Modanleitung noch haben und Dir zur Verfügung stellen.
Laut deren Modliste sind das z.B. folgende:

http://www.digitalvoodoo.de/forum/AWSWMODs.php
http://www.forenportal.hitsurf.de/AWSWMODs.php
http://www.systemsupport24.de/Forum/MarKirMods.php

Gruß Christian

Verfasst: 17.08.2004 18:12
von syntaxterror
OK, danke. Ich werds mal versuchen.

Verfasst: 18.08.2004 12:18
von syntaxterror
Hallo, ich wollte eben mal abmelden. Hab den mod bekommen...wenn sonst noch jemand interesse hat...

Danke für eure hilfe.

Verfasst: 18.08.2004 12:43
von The real Indigo
Poste doch einfach mal hier wo du ihn gefunden hast.


Vielleicht kann man ihn ja irghendwofür gebrauchen.

Verfasst: 26.08.2004 12:34
von syntaxterror
OK, gute idee.

Code: Alles auswählen

#################################################################
## Mod Title: BBCode - Wasserstand fuer Downloads
## Mod Version: 0.1.1
## Author: sica <sica@nuxli.de>
## Description: Wasserstand Funktion fuer Downloads
##
## Installation Level: medium
## Installation Time: 7 Minutes
## Files To Edit: bbcode.php, posting_body.tpl
## Included Files: wasserstand_links.gif, wasserstand_rechts.gif
##	wasserstand_spacer.gif, wasserstand_download.gif,
##	wasserstand_missing.gif
##
## Note:
## Put the gif files into your images directory.
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################

#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php

#
#-----[ FIND ]------------------------------------------
#
$text = preg_replace($patterns, $replacements, $text);

#
#-----[ AFTER, ADD ]------------------------------------------
#
// Wasserstand Hack... juhuuu ;)
if(preg_match_all("#\[dl\](\d+\.\d+|\d+\.\d+\.\d+) \| (\d+:\d+) \| ([\d\.,]+) (von|of) ([\d\.,]+) MB \| (\d+) Sources\[\/dl\]#si", $text, $regData)) {
	for($i = 0; $i < count($regData[0]); $i++) {
		if($regData[3][$i] > $regData[5][$i]) {
			continue;
		}
		$dl_size = ceil(str_replace(',', '.', $regData[3][$i]));
		$co_size = ceil(str_replace(',', '.', $regData[5][$i]));
		if($co_size == 0) {
			continue;
		}
		$percentage_total = $co_size/100;
		$percentage = $dl_size / $percentage_total;
		$image_dl_length = 2 * ceil($percentage);
		$image_mi_length = 200 - $image_dl_length;
		if($image_dl_length == 0) {
			$image = '<img src="images/wasserstand_links.gif"><img src="images/wasserstand_missing.gif" width=200 height=12><img src="images/wasserstand_rechts.gif">';
		}
		elseif($image_dl_length == 200) {
			$image = '<img src="images/wasserstand_links.gif"><img src="images/wasserstand_download.gif" width='.$image_dl_length.' height=12><img src="images/wasserstand_rechts.gif">';
		}
		else {
			$image = '<img src="images/wasserstand_links.gif"><img src="images/wasserstand_download.gif" width='.($image_dl_length-1).' height=12><img src="images/wasserstand_spacer.gif"><img src="images/wasserstand_missing.gif" width='.$image_mi_length.' height=12><img src="images/wasserstand_rechts.gif">';
		}
		$replace = $regData[1][$i]." | ".$regData[2][$i]." Uhr | ".$image." | ".$regData[3][$i]." von ".$regData[5][$i]." MB (".round($percentage)." %) | ".$regData[6][$i]." Sources";
		$text = str_replace($regData[0][$i], $replace, $text);
	}
}

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl

#
#-----[ FIND ]------------------------------------------
#
f_help = "{L_BBCODE_F_HELP}";

#
#-----[ AFTER, ADD ]------------------------------------------
#
d_help = "[dl]Datum | Uhrzeit | x von y MB | z Sources[/dl]";

#
#-----[ FIND ]------------------------------------------
#
// Define the bbCode tags
bbcode = new Array();

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Get Date Values
var d = new Date();
var day = d.getDate();	if (day < 10) day = "0" + day;
var month = d.getMonth() + 1; if (month < 10) month = "0" + month;
var hours = d.getHours(); if (hours < 10) hours = "0" + hours;
var mins = d.getMinutes(); if (mins < 10) mins = "0" + mins;

#
#-----[ FIND ]------------------------------------------
#
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[ externes Bild ]','','');

#
#-----[ REPLACE WITH ]------------------------------------------
#
bbtags = new Array('','','','','','','[quote]','[/quote]','','
  • ','
','
  • ','
','[ externes Bild ]','','','[dl]'+ day +'.'+ month +' | '+ hours +':'+ mins +' | 0 von 0 MB | 0 Sources','[/dl]');

#
#-----[ FIND ]------------------------------------------
#
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<td><span class="genmed">
<input type="button" class="button" accesskey="d" name="addbbcode18" value="Wasserstand" style="text-decoration: underline; width: 90px" onClick="bbstyle(18)" onMouseOver="helpline('d')" />
</span></td>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
[/code]

und die gif's braucht man auch:
[ externes Bild ]
[ externes Bild ]
[ externes Bild ]
[ externes Bild ]
[ externes Bild ]

Ich hoffe das bring jemandem was.....

Greetz,

Syntaxterror