Hide Hack Bitte um Hilfe!!!!

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Gast123

Hide Hack Bitte um Hilfe!!!!

Beitrag von Gast123 »

Hallo!

Ich wollte auf meinem Board einen Hide Hack einbauen. Habe auch alles so weit geschafft, nur bei der letzten Datei habe ich Schwierigkeiten. Den Code kann man zwar manuell eingeben, aber es erscheint kein Button dazu. Und wenn ich das Script umschreibe, dann erscheint zwar ein Button mit dem Text "hide", aber beim drücken macht er "fade". Hier mal die Anleitung:

Code: Alles auswählen

In the list of "// Helpline messages", add : 
 

h_help = "Hide: (hide)message(/hide) (alt+h)";  

Find this line :
bbtags = new Array('(b)','(/b)'...

And add at the end :
'(hide)' and '(/hide)'

You will obtain something like this :
 

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[hide]','[/hide]');


Find

<td><span class="genmed">
<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>


Add Below : (Don't forget to adapt the "addbbcode" numbers if neccesary ! (exemple: addbbcode18 -> addbbcode20, 20 -> 22, etc)

<td><span class="genmed">
<input type="button" class="button" accesskey="h" name="addbbcode18" value="Hide" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('h')" />
</span></td>


Next, you need to modify all the "addbbcodexx" in the rest of the file. (exemple : addbbcode20 -> addbbcode22)[/code]

Und hier mein Versuch:

Code: Alles auswählen


// Helpline messages
b_help = "{L_BBCODE_B_HELP}";
i_help = "{L_BBCODE_I_HELP}";
u_help = "{L_BBCODE_U_HELP}";
q_help = "{L_BBCODE_Q_HELP}";
c_help = "{L_BBCODE_C_HELP}";
l_help = "{L_BBCODE_L_HELP}";
o_help = "{L_BBCODE_O_HELP}";
p_help = "{L_BBCODE_P_HELP}";
w_help = "{L_BBCODE_W_HELP}";
a_help = "{L_BBCODE_A_HELP}";
s_help = "{L_BBCODE_S_HELP}";
f_help = "{L_BBCODE_F_HELP}";
e_help = "{L_BBCODE_E_HELP}";
k_help = "{L_BBCODE_K_HELP}";
m_help = "{L_BBCODE_M_HELP}";
g_help = "{L_BBCODE_G_HELP}";
s_help = "{L_BBCODE_S_HELP}";
h_help = "{L_BBCODE_H_HELP}";
d_help = "{L_BBCODE_D_HELP}";
j_help = "{L_BBCODE_J_HELP}";
v_help = "{L_BBCODE_V_HELP}";
n_help = "{L_BBCODE_N_HELP}";
x_help = "{L_BBCODE_X_HELP}";
y_help = "{L_BBCODE_Y_HELP}";
z_help = "{L_BBCODE_Z_HELP}";
sc_help = "{L_BBCODE_SC_HELP}";
h_help = "Hide: [hide]message[/hide] (alt+h)";
// Define the bbCode tags
bbcode = new Array();
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[fade]','[/fade]','[scroll]','[/scroll]','[flash width=100 height=100]','[/flash]','[glow=red]','[/glow]','[shadow=red]','[/shadow]','[highlight=red]','[/highlight]','[align=center]','[/align]','[flipv]','[/flipv]','[fliph]','[/fliph]','[stream]','[/stream]','[left]','[/left]','[right]','[/right]','[php]','[/php]','[hide]','[/hide]');
imageTag = false;


<td class="row2" valign="top">
<table width="450" border="0" cellspacing="0" cellpadding="2">
<tr align="center">
<td>
<input type="button" class="button" accesskey="b" name="addbbcode2" value=" B " style="font-weight:bold; width: 52px" onclick="bbstyle(0)" onmouseover="helpline('b')" />
</td>
<td>
<input type="button" class="button" accesskey="i" name="addbbcode4" value=" i " style="font-style:italic; width: 52px" onclick="bbstyle(2)" onmouseover="helpline('i')" />
</td>
<td>
<input type="button" class="button" accesskey="u" name="addbbcode6" value=" u " style="text-decoration: underline; width: 52px" onclick="bbstyle(4)" onmouseover="helpline('u')" />
</td>
<td>
<input type="button" class="button" accesskey="q" name="addbbcode8" value="Quote" style="width: 52px" onclick="bbstyle(6)" onmouseover="helpline('q')" />
</td>
<td>
<input type="button" class="button" accesskey="c" name="addbbcode10" value="Code" style="width: 52px" onclick="bbstyle(8)" onmouseover="helpline('c')" />
</td>
<td>
<input type="button" class="button" accesskey="l" name="addbbcode12" value="List" style="width: 52px" onclick="bbstyle(10)" onmouseover="helpline('l')" />
</td>
<td>
<input type="button" class="button" accesskey="o" name="addbbcode14" value="List=" style="width: 52px" onclick="bbstyle(12)" onmouseover="helpline('o')" />
</td>
<td>
<input type="button" class="button" accesskey="p" name="addbbcode16" value="Img" style="width: 52px" onclick="bbstyle(14)" onmouseover="helpline('p')" />
</td>
<td>
<input type="button" class="button" accesskey="w" name="addbbcode18" value="URL" style="width: 52px" onclick="bbstyle(16)" onmouseover="helpline('w')" />
</td>
<td>
<input type="button" class="button" value="{L_SMILIE_CREATOR}" style="width: 105px" onclick="window.open('smilie_creator.php?mode=text2schild', '_phpbbcreatesmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=450');return false;" target="_phpbbcreatesmilies" onmouseover="helpline('sc')" />
</td>
<!-- BEGIN EasyModBB -->
<td><span class="genmed">
<input type="button" class="button" accesskey="{EasyModBB.KEY}" name="{EasyModBB.NAME}" value="{EasyModBB.VALUE}" style="width: {EasyModBB.WIDTH}px" onClick="{EasyModBB.STYLE}" onMouseOver="helpline('{EasyModBB.KEY}')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="h" name="addbbcode22" value="Hide" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('h')" />
</span></td>
<!-- END EasyModBB -->
</tr>
<!-- BEGIN XBBcode -->
<tr align="center" valign="middle">
<!-- BEGIN BB -->
<td><span class="genmed">
<input type="button" class="button" accesskey="{XBBcode.BB.KEY}" name="{XBBcode.BB.NAME}" value="{XBBcode.BB.VALUE}" style="width: {XBBcode.BB.WIDTH}px" onClick="{XBBcode.BB.STYLE}" onMouseOver="helpline('{XBBcode.BB.KEY}')" />
</span></td>
<!-- END BB -->
</tr>
<!-- END XBBcode -->
<tr>
<td colspan="9">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap="nowrap" class="genmed"> &nbsp;{L_FONT_COLOR}:
<select name="addbbcodefontcolor" onchange="bbfontstyle('[color=' + this.form.addbbcodefontcolor.options[this.form.addbbcodefontcolor.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onmouseover="helpline('s')">
<option value="{T_BODY_TEXT}">{L_COLOR_DEFAULT}</option>
<option style="color:darkred; background-color:transparent" value="darkred">{L_COLOR_DARK_RED}</option>
<option style="color:red; background-color:transparent" value="red">{L_COLOR_RED}</option>
<option style="color:orange; background-color:transparent" value="orange">{L_COLOR_ORANGE}</option>
<option style="color:brown; background-color:transparent" value="brown">{L_COLOR_BROWN}</option>
<option style="color:yellow; background-color:transparent" value="yellow">{L_COLOR_YELLOW}</option>
<option style="color:green; background-color:transparent" value="green">{L_COLOR_GREEN}</option>
<option style="color:olive; background-color:transparent" value="olive">{L_COLOR_OLIVE}</option>
<option style="color:cyan; background-color:transparent" value="cyan">{L_COLOR_CYAN}</option>
<option style="color:blue; background-color:transparent" value="blue">{L_COLOR_BLUE}</option>
<option style="color:darkblue; background-color:transparent" value="darkblue">{L_COLOR_DARK_BLUE}</option>
<option style="color:indigo; background-color:transparent" value="indigo">{L_COLOR_INDIGO}</option>
<option style="color:violet; background-color:transparent" value="violet">{L_COLOR_VIOLET}</option>
<option style="color:white; background-color:transparent" value="white">{L_COLOR_WHITE}</option>
<option style="color:black; background-color:transparent" value="black">{L_COLOR_BLACK}</option>
</select>
&nbsp;{L_FONT_SIZE}:
<select name="addbbcodefontsize" onchange="bbfontstyle('[size=' + this.form.addbbcodefontsize.options[this.form.addbbcodefontsize.selectedIndex].value + ']', '[/size]')" onmouseover="helpline('f')">
<option value="7">{L_FONT_TINY}</option>
<option value="9">{L_FONT_SMALL}</option>
<option value="12" selected="selected">{L_FONT_NORMAL}</option>
<option value="18">{L_FONT_LARGE}</option>
<option value="24">{L_FONT_HUGE}</option>
</select>
</td>
<td nowrap="nowrap" align="right" class="genmed"><a href="javascript:bbstyle(-1)" onmouseover="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a>&nbsp;</td>
</tr> [/code]


Kann mir jemand weiterhelfen??
Benutzeravatar
Leuchte
Ehemaliges Teammitglied
Beiträge: 9179
Registriert: 26.05.2003 14:57
Wohnort: Duisburg
Kontaktdaten:

Beitrag von Leuchte »

änder mal

Code: Alles auswählen

onClick="bbstyle(18)"
auf

Code: Alles auswählen

onClick="bbstyle(20)"
Gast 123

Beitrag von Gast 123 »

OK ! THX ! Jetzt funktioniert es ! Habe das mit dem Mouse on click nicht gesehen!

Vielen vielen Dank
Antworten

Zurück zu „phpBB 2.0: Mod Support“