Author Topic: [MOD] Use BBCODE2 in Comments !without Help!  (Read 24655 times)

0 Members and 1 Guest are viewing this topic.

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.420
  • It's me?
    • View Profile
    • Flash-Webdesign
[MOD] Use BBCODE2 in Comments !without Help!
« 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
Code: [Select]
$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
Code: [Select]
$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
Code: [Select]
<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}&nbsp;<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>
&nbsp;<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:

Offline MariusH

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #1 on: October 12, 2005, 01:26:15 PM »
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

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.420
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #2 on: October 12, 2005, 01:32:12 PM »
i have removed the hover text, this i meen in the Subject with "!without Help!" ...

Give me the URL to the Galerie please... (o:

Offline MariusH

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #3 on: October 12, 2005, 01:41:31 PM »
Hi! thanks for your fast answer. ok, so the problem with the hover text is solved.

url: www.mariushertfelder.de
just login as: acidgod  password: acid

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.420
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #4 on: October 12, 2005, 01:56:14 PM »
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....

Offline MariusH

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #5 on: October 12, 2005, 01:59:35 PM »
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...

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.420
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #6 on: October 12, 2005, 02:05:58 PM »
Und die detail.php haste angepasst?

Offline MariusH

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #7 on: October 12, 2005, 02:10:55 PM »
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!

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.420
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #8 on: October 12, 2005, 02:12:10 PM »
Habe Dir noch ne PM geschrieben wegen der Hover Texte...

Offline MariusH

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #9 on: October 12, 2005, 02:14:54 PM »
alles klar! vielen dank  :D

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #10 on: November 20, 2005, 01:46:45 AM »
i've old PMS ... so its possible install it without PM V2 ?

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.420
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #11 on: November 20, 2005, 10:17:32 AM »
no it isn´t... )o:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #12 on: April 12, 2006, 02:55:30 PM »
version?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #13 on: October 11, 2006, 01:02:52 AM »
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  :|

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: [MOD] Use BBCODE2 in Comments !without Help!
« Reply #14 on: September 05, 2007, 12:49:18 PM »
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 !!
English Please :@

 

Post your comments here