[Hide-Code] Vraag
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

[Hide-Code] Vraag
Nouw ik ben bezig met een forum het is een muziekforum maar ik heb nu hide-code toevoegt en nu doen alle buttons het niet meer als je een reactie wilt toevoegen zou iemand weten wat er aan de hand is ????
sjefie schreef:Dan moet je even kijken bij je pagina's van bbcode,
Waarschijnlijk heb je daar dan iets fouts gedaan
wat moet ik kijken dan kan iemand me please helpen:
het zijn dingen die moesten geburen waar het waarschijnelijk gebuurd door kan zijn:
-----------------
6 - In bbcode.tpl // in the Templates/{Used template}/ directory
-----------------
At the top, add
<!-- BEGIN show -->
</span>
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1">
<tr>
<td><span class="genmed"><b>Protected Message:</b></span></td>
</tr>
<tr>
<td class="quote">
{HTEXTE}
</td>
</tr>
</table>
<span class="postbody">
<!-- END show -->
<!-- BEGIN hide -->
</span>
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1">
<tr>
<td><span class="genmed"><b>Protected Message:</b></span></td>
</tr>
<tr>
<td class="quote">
<center>--- If you are a *registered user* : you need to post in this topic to see the message ---</center>
</td>
</tr>
</table>
<span class="postbody">
<!-- END hide -->
-----------------------
7 - In posting_body.tpl // in the Templates/{Used template}/ directory
-----------------------
This part add a button in the dialog box (newtopic,...).
In the list of "// Helpline messages", add :
h_help = "Hide: [hide]message[/hide] (alt+h)";
Find this line :
bbtags = new Array('',''...
And add at the end :
'[hide]' and '[/hide]'
You will obtain something like this :
bbtags = new Array('','','','','','','
','','
Code: Selecteer alles
','
- ','
- ','
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)
die dingen heb ik gedaan maar, nu lukt geen 1button als ik op eentje druk dan doet niks het

ze werken wel als je het zelf typ maar niet als je derop drukt
vul heel even de support template in :
Daarnaast even een link naar de mod die je gebruikt hebt.
Code: Selecteer alles
[b]Wat is het probleem?[/b]
[b]Wanneer ontstond het probleem?[/b]
[b]Adres van je forum:[/b] http://
[b]Geïnstalleerde mods:[/b]
[b]Huidige template:[/b] subSilver
[b]phpBB versie:[/b]
[b]Host:[/b]
[b]Heb je onlangs een mod of stijl geïnstalleerd?[/b]
[b]Heb je gezocht naar een antwoord?[/b]
Wat is het probleem? bbcode buttons doen het niet
Wanneer ontstond het probleem? Net
Adres van je forum: http://
Geïnstalleerde mods: Hide
Huidige template: subSilver
phpBB versie: De nieuwste
Host: hosting2go
Heb je onlangs een mod of stijl geïnstalleerd? meerdere
Heb je gezocht naar een antwoord? Ja,
Opmerkingen:
Zelfde probleem als bosanac ook al vroeg, maar helaas helpt dit niet, alles wat ik tot nu toe heb geprobeerd, alle code's werken wel alleen debuttons doen het niet meer,
Iemand een oplossing?
Mod die ik heb gebruikt
Wanneer ontstond het probleem? Net
Adres van je forum: http://
Geïnstalleerde mods: Hide
Huidige template: subSilver
phpBB versie: De nieuwste
Host: hosting2go
Heb je onlangs een mod of stijl geïnstalleerd? meerdere
Heb je gezocht naar een antwoord? Ja,
Opmerkingen:
Zelfde probleem als bosanac ook al vroeg, maar helaas helpt dit niet, alles wat ik tot nu toe heb geprobeerd, alle code's werken wel alleen debuttons doen het niet meer,
Iemand een oplossing?
Mod die ik heb gebruikt
Ik heb ook weleens problemen gehad daarmee, en toen was het terug te voeren op de posting_body.tpl.
Na het toevoegen van de hide button moeten de navolgende addbbcodes opgehoogd worden.
Zo ziet het er bij mij uit (phpbb2.0.22). Ik hoop dat je er wat mee kunt:
Na het toevoegen van de hide button moeten de navolgende addbbcodes opgehoogd worden.
Zo ziet het er bij mij uit (phpbb2.0.22). Ik hoop dat je er wat mee kunt:
Code: Selecteer alles
<td class="row2" valign="top"><span class="gen"> <span class="genmed"> </span>
<table width="450" border="0" cellspacing="0" cellpadding="2">
<tr align="center" valign="middle">
<td><span class="genmed">
<input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" />
</span></td>
<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>
<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>
</tr>
<tr>
<td colspan="9">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="genmed"> {L_FONT_COLOR}:
<select name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
<option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option>
<option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option>
<option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option>
<option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
<option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option>
<option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
<option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option>
<option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
<option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
<option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option>
<option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
<option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
<option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
<option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option>
<option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option>
</select> {L_FONT_SIZE}:<select name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]');this.selectedIndex=0;" onMouseOver="helpline('f')">
<option value="0" class="genmed">{L_FONT_SIZE}</option>
<option value="7" class="genmed">{L_FONT_TINY}</option>
<option value="9" class="genmed">{L_FONT_SMALL}</option>
<option value="12" selected class="genmed">{L_FONT_NORMAL}</option>
<option value="18" class="genmed">{L_FONT_LARGE}</option>
<option value="24" class="genmed">{L_FONT_HUGE}</option>
</select>
</span></td>
<td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="9"> <span class="gensmall">
<input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" />
</span></td>
</tr>
<tr>
<td colspan="9"><span class="gen">
<textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea>
</span></td>
</tr>
</table>
</span></td>
</tr>