4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: Acidgod on September 19, 2005, 11:29:07 AM
-
If you want to use this Mod, you must install the PM V2 Mod bevor:
http://www.4homepages.de/forum/index.php?topic=6692.0
detail.php
search
$site_template->register_vars(array(
"lang_bbcode" => $lang['bbcode'],
"lang_tag_prompt" => $lang['tag_prompt'],
"lang_link_text_prompt" => $lang['link_text_prompt'],
"lang_link_url_prompt" => $lang['link_url_prompt'],
"lang_link_email_prompt" => $lang['link_email_prompt'],
"lang_list_type_prompt" => $lang['list_type_prompt'],
"lang_list_item_prompt" => $lang['list_item_prompt']
));
replace with
$site_template->register_vars(array(
"lang_bbcode" => $lang['bbcode'],
"lang_tag_prompt" => $lang['tag_prompt'],
"lang_link_text_prompt" => $lang['link_text_prompt'],
"lang_link_url_prompt" => $lang['link_url_prompt'],
"lang_link_email_prompt" => $lang['link_email_prompt'],
"lang_list_type_prompt" => $lang['list_type_prompt'],
"lang_list_item_prompt" => $lang['list_item_prompt'],
//BBCODE 2
"lang_close_tags" => $lang['close_tags'],
"lang_all" => $lang['all'],
"smiles_text" => get_smiles_text(),
"bbc_help" => $bbc_help
////BBCODE"
));
bbcode.html
replace
<br />
<script language="JavaScript" type="text/javascript" src="bbcode.js"></script>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head1">
<table border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="head1">{lang_bbcode}</td>
</tr>
<tr>
<td class="row1">
<table border="0" cellspacing="0" cellpadding="1" width="300">
<tr>
<td>
{smiles_text} <a href="smiles.php" onclick="window.open('smiles.php', '_4imagessmilies', 'resizable=yes,scrollbars=yes,WIDTH=225, HEIGHT=310');return false;" target="_4imagessmilies">{lang_all}</a>
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="1" width="305">
<tr>
<td>
<input type="button" class="bbcbutton" accesskey="b" name="addbbcode0" value="B" style="font-weight:bold; width: 30px" onClick="bbstyle(0)"/>
</td>
<td>
<input type="button" class="bbcbutton" accesskey="i" name="addbbcode2" value="i" style="font-style:italic; width: 30px" onClick="bbstyle(2)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="u" name="addbbcode4" value="u" style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode6" value="S" style="text-decoration: line-through; width: 30px" onClick="bbstyle(6)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode8" value="Sub" style="width: 40px" onClick="bbstyle(8)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode10" value="Sup" style="width: 40px" onClick="bbstyle(10)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode12" value="Shadow" style="width: 55px" onClick="bbstyle(12)" />
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="1" width="300">
<tr>
<td>
<input type="button" class="bbcbutton" accesskey="w" name="addbbcode27" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(27)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="e" name="addbbcode29" value="Email" style="width: 50px" onClick="bbstyle(29)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="q" name="addbbcode21" value="Quote" style="width: 50px" onClick="bbstyle(21)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode14" value="Glow" style="width: 40px" onClick="bbstyle(14)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode31" value="Flash" style="width: 50px" onClick="bbstyle(31)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="p" name="addbbcode25" value="Img" style="width: 40px" onClick="bbstyle(25)" />
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td nowrap>
<select class="select" name="addbbcode34" onChange="bbfontstyle('[color=' + this.form.addbbcode34.options[this.form.addbbcode34.selectedIndex].value + ']','[/color]');this.form.addbbcode34.selectedIndex=0;">
<option style="color:black; background-color: #FAFAFA" value="black" >Font colour</option>
<option style="color:black; background-color: #FAFAFA" value="#444444" >Default</option>
<option style="color:darkred; background-color: #FAFAFA" value="darkred" >Dark Red</option>
<option style="color:red; background-color: #FAFAFA" value="red" >Red</option>
<option style="color:orange; background-color: #FAFAFA" value="orange" >Orange</option>
<option style="color:brown; background-color: #FAFAFA" value="brown" >Brown</option>
<option style="color:yellow; background-color: #FAFAFA" value="yellow" >Yellow</option>
<option style="color:green; background-color: #FAFAFA" value="green" >Green</option>
<option style="color:olive; background-color: #FAFAFA" value="olive" >Olive</option>
<option style="color:cyan; background-color: #FAFAFA" value="cyan" >Cyan</option>
<option style="color:blue; background-color: #FAFAFA" value="blue" >Blue</option>
<option style="color:darkblue; background-color: #FAFAFA" value="darkblue" >Dark Blue</option>
<option style="color:indigo; background-color: #FAFAFA" value="indigo" >Indigo</option>
<option style="color:violet; background-color: #FAFAFA" value="violet" >Violet</option>
<option style="color:white; background-color: #FAFAFA" value="white" >White</option>
<option style="color:black; background-color: #FAFAFA" value="black" >Black</option>
</select>
<select class="select" name="addbbcode35" onChange="bbfontstyle('[size=' + this.form.addbbcode35.options[this.form.addbbcode35.selectedIndex].value + ']','[/size]');this.form.addbbcode35.selectedIndex=0;">
<option value="" >Font size</option>
<option value="7" >Tiny (7px)</option>
<option value="9" >Small (9px)</option>
<option value="10" >Medium (10px)</option>
<option value="12" >Normal (12px)</option>
<option value="16" >X-Large (16px)</option>
<option value="18" >Large (18px)</option>
<option value="24" >Huge (24px)</option>
</select>
<select class="select" name="addbbcode36" onChange="bbfontstyle('[font=' + this.form.addbbcode36.options[this.form.addbbcode36.selectedIndex].value + ']','[/font]');this.form.addbbcode36.selectedIndex=0;">
<option value="" >Font face</option>
<option value="Arial" >Arial</option>
<option value="Courier New" >Courier New</option>
<option value="Helvetica" >Helvetica</option>
<option value="Impact" >Impact</option>
<option value="sans-serif" >sans-serif</option>
<option value="Tahoma" >Tahoma</option>
<option value="Times New Roman" >Times New Roman</option>
<option value="Verdana" >Verdana</option>
</select>
</td>
</tr><tr> <td>
<a href="javascript:bbstyle(-1)" onMouseOver="helpline('a')">{lang_close_tags}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
Then download the bbcode.js (bbcode.zip below) and copy it in your root directory.
Enjoy... (o:
-
Hello!
thanks for this Mod, but i've got two problems:
There are no smilies above the buttons, that is i can't insert a smilie and
there is no "on hover text"
can you please help me with that?
regards
-
i have removed the hover text, this i meen in the Subject with "!without Help!" ...
Give me the URL to the Galerie please... (o:
-
Hi! thanks for your fast answer. ok, so the problem with the hover text is solved.
url: www.mariushertfelder.de (http://www.mariushertfelder.de)
just login as: acidgod password: acid
-
Schön das Du auch deutsch kannst... (o:
Also es scheint mir so der Fall zu sein du hättest den PMv2 Mod nicht installiert sehe ich das richtig?
Dieser ist nämlich vorraussetzung das dies Teil überhaupt funzt....
-
Doch, den PMv2 hab ich schon installiert. bisher sieht man halt nur auf der home.html rechts oben bei der Suche die inbox.... sachen. Bei "new message" funktioniert auch alles mit dem bbcode...
-
Und die detail.php haste angepasst?
-
ahhhhhhhhhhh :mrgreen: jetzt hab ich den Fehler gefunden:
ich hab zwar alles bei der details.php eingefügt, allerdings fehlte hinter dem letzten "befehl", also $bbc_help das Komma. Mit dem gings dann auf einmal....komisch, dürfte doch eigentlich nichts ausmachen... 8O
danke für deine Hilfe!
-
Habe Dir noch ne PM geschrieben wegen der Hover Texte...
-
alles klar! vielen dank :D
-
i've old PMS ... so its possible install it without PM V2 ?
-
no it isn´t... )o:
-
version?
-
no it isn´t... )o:
Well this is working without PMv2 (i'm using old pms) and working :mrgreen:
by the way, its possible added to bbcode a PHP tag ?
i.e .... , to be used with phpcode ? i've see it at some few forums :|
-
what do we need from PMv2 to install this mod ?
i dont have PM at all but trying to use the smiles only in comments !!
-
Ich habe Probleme in der detail.php Datei
Ist es möglich, Skripte bereit auf die Farbe der Schriftart und-größe enthalten? script????