76 (edited by FredrikK 2006-01-16 19:35)

Re: Easy BBCode 1.0.1

I have a problem with my forum and the modification Easy BBcode. When adding new smiles bigger then the original 15x15 size it doesn't look right when you are in the process of writing a new post. If I for example adds cards like GregK they get compressed to the size of 15x15 in the  Easy BBcode-function, but they look right in the posted post in the thread. (Do I make any sense? big_smile)

hej!

77

Re: Easy BBCode 1.0.1

FredrikK wrote:

I have a problem with my forum and the modification Easy BBcode. When adding new smiles bigger then the original 15x15 size it doesn't look right when you are in the process of writing a new post. If I for example adds cards like GregK they get compressed to the size of 15x15 in the  Easy BBcode-function, but they look right in the posted post in the thread. (Do I make any sense? big_smile)

You'll need to edit 'mod_easy_bbcode.php' , and change line 93 from:

        echo "\t\t\t\t\t\t\t".'<a href="javascript:insert_text(\''.$smiley_text[$i].'\', \'\');"><img src="img/smilies/'.$smiley_img[$i].'" width="15" height="15" alt="'.$smiley_text[$i].'" /></a>'."\n";

to:

        echo "\t\t\t\t\t\t\t".'<a href="javascript:insert_text(\''.$smiley_text[$i].'\', \'\');"><img src="img/smilies/'.$smiley_img[$i].'" alt="'.$smiley_text[$i].'" /></a>'."\n";

Re: Easy BBCode 1.0.1

Thanks! smile

hej!

79 (edited by FredrikK 2006-01-15 14:18)

Re: Easy BBCode 1.0.1

But how can I change the order in which the smiles are placed?

hej!

80 (edited by FredrikK 2006-01-15 13:56)

Re: Easy BBCode 1.0.1

af3 wrote:

Replika -- simple really.

a) with easy bbcode+smiley plugin installed, i just add a script to call more smileys using javascript. in all quickpost/post/edit files (viewtopic.php, edit.php, post.php) at the areas where the original smileys are located, i just added this script:

<a href="javascrip:null()" onclick="qpe=window.open('smiley.php', 'smilies', 'width=300,height=500,resizeable=yes,location=no,scrollbars=yes,status=no');qpe.focus();return false">See more smilies</a>

b) i copied help.php to a new file called smiley.php, and deleted all the other non-smiley contents. insert this javascript in the header:

<script language="javascript">
function add_smiley(z){
    opener.document.forms[1].req_message.value+=z;
    window.opener.set_focus();
    self.close();    
    }
</script>

c) add this somewhere in smiley.php when the smiley data is being read from mthe database

echo ' '.$lang_help['produces'].' <a href="javascript:void(0)" onclick="add_smiley(\' '.$cur_text.'\'); return true;"><img src="img/smilies/'.$cur_img.'" alt="'.$cur_text.'" border="0" /></a><br />'."\n";

So when a user click on "See more smilies", a popup window of smiley.php will open up, and a click on each smiley will send the ascii code to the post textarea.

hope that helps.

Can anyone explain this in more details? Especially the first step (A), I don't understand where to put the script. hmm

Edit: Please. smile

hej!

81

Re: Easy BBCode 1.0.1

You add it to the easy bbcode file.

82 (edited by FredrikK 2006-01-16 22:51)

Re: Easy BBCode 1.0.1

Thanks!

Edit: Here is more smilies in the orginial PunBB-smilie-style me and my friend have made!

smile neutral sad big_smile yikes wink hmm tongue lol mad roll cool

http://www.brunna.se/forum/img/smilies/rodnar.gif http://www.brunna.se/forum/img/smilies/butter.gif http://www.brunna.se/forum/img/smilies/angel.gif http://www.brunna.se/forum/img/smilies/visslar.gif http://www.brunna.se/forum/img/smilies/acklad.gif http://www.brunna.se/forum/img/smilies/rock.gif http://www.brunna.se/forum/img/smilies/retas.gif http://www.brunna.se/forum/img/smilies/sover.gif http://www.brunna.se/forum/img/smilies/sjuk.gif http://www.brunna.se/forum/img/smilies/lyssna.gif http://www.brunna.se/forum/img/smilies/supermario.gif http://www.brunna.se/forum/img/smilies/albert.gif http://www.brunna.se/forum/img/smilies/styrka.gif http://www.brunna.se/forum/img/smilies/dumbom.gif http://www.brunna.se/forum/img/smilies/puss.gif http://www.brunna.se/forum/img/smilies/storstark.gif http://www.brunna.se/forum/img/smilies/par.gif http://www.brunna.se/forum/img/smilies/kapitulation.gif http://www.brunna.se/forum/img/smilies/uppmaning.gif http://www.brunna.se/forum/img/smilies/skurt.gif


Edit: Go here to download: http://punbb.org/forums/viewtopic.php?id=10172

hej!

Re: Easy BBCode 1.0.1

awesome i like

http://www.brunna.se/forum/img/smilies/rodnar.gif http://www.brunna.se/forum/img/smilies/angel.gif  http://www.brunna.se/forum/img/smilies/visslar.gif

84 (edited by FredrikK 2006-01-16 22:42)

Re: Easy BBCode 1.0.1

I'm happy to hear that! It took a lot of time to make them. smile

The text on the sign say "Stick to the topic!", but feel free to change it.

hej!

Re: Easy BBCode 1.0.1

FredrikK wrote:

I'm happy to hear that! It took a lot of time to make them. smile

The text on the signs are Swedish, but feel free to change it. They say "Thanks" and "Stick to the topic!"

So are we free to use them?

Looking for a certain modification for your forum? Please take a look here before posting.

86 (edited by FredrikK 2006-01-16 22:40)

Re: Easy BBCode 1.0.1

Of course! No problem! http://www.brunna.se/forum/img/smilies/storstark.gif

hej!

Re: Easy BBCode 1.0.1

FredrikK wrote:

Of course! No problem!

Thanks!

Looking for a certain modification for your forum? Please take a look here before posting.

88

Re: Easy BBCode 1.0.1

Why is this happening when I use modification for Quick Post?
http://img477.imageshack.us/img477/880/sshot11oq.th.jpg

89

Re: Easy BBCode 1.0.1

how to include this to CONCORDS pms mod ? thanks for answer

Re: Easy BBCode 1.0.1

Whats the patch file for?

91

Re: Easy BBCode 1.0.1

Tiny bug: the default name of the textarea is hardcoded, so the script doesn't work anymore when you change the textarea name.

Patch:

-    msgfield = (document.all) ? document.all.req_message : document.forms['<?php echo $bbcode_form ?>']['<?php echo $bbcode_field ?>'];
+    msgfield = (document.all) ? document.all.<?php echo $bbcode_field ?> : document.forms['<?php echo $bbcode_form ?>']['<?php echo $bbcode_field ?>'];

92

Re: Easy BBCode 1.0.1

Hi, i've problem, when posted, the smilies image size is decreased, how can that be changed to normal size, like all others standart smilies?

Here's screenshot http://img93.imageshack.us/img93/1149/2 … rot5kv.png

93

Re: Easy BBCode 1.0.1

managed.. it was needed to remove from parser.php all smilies, and add easy smilies mod, then through that mod added smilies and everything works fine.

94 (edited by Replika 2006-03-22 10:36)

Re: Easy BBCode 1.0.1

I've a litte Modification for Easy BBcode and a mod of af3 in this thread. A button for smileyadd

Preview:
http://img215.imageshack.us/img215/9641/clipboard010uj.png

##
##
##        Mod title:  Smiley Add
##
##      Mod version:  1.0
##   Works on PunBB:  1.2.x
##     Release date:  2006-03-22
##           Author:  Quoc Viet (v[at]s[dot]vnn[dot]vn)
##
##      Description:  Smilies dropdown for Mod Easy BBcode (Rickard Andersson)
##
##      Requirement:  Mod Easy BBcode installed
##
##   Affected files:  mod_easy_bbcode.php
##
##       Affects DB:  No
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup all applicable files before proceeding.
##
##


#
#---------[ 1. OPEN ]-------------------------------------------------------
#

mod_easy_bbcode.php

#
#---------[ 2. FIND (line: 77) ]---------------------------------------------
#

                        </div>
                        <div style="padding-top: 4px">
<?php

#
#---------[ 3. REPLACE WITH ]-------------------------------------------------
#

                            <input type="button" value=":)" name="smileyadd" onclick="document.getElementById('smileyadd').style.visibility='visible';document.getElementById('smileyadd').focus()" />
                            <a href="javascript:;" id="smileyadd" style="visibility:hidden;position:absolute;text-decoration:none;text-align:center;background-color:#ffffff;border:1px solid silver;width:200px;padding:5px;" onblur="this.style.visibility='hidden'" onclick="this.style.visibility='hidden'">
<?php

#
#---------[ 4. FIND (line: 93) ]---------------------------------------------
#

        echo "\t\t\t\t\t\t\t".'<a href="javascript:insert_text(\''.$smiley_text[$i].'\', \'\');"><img src="img/smilies/'.$smiley_img[$i].'" width="15" height="15" alt="'.$smiley_text[$i].'" /></a>'."\n";

#
#---------[ 5. REPLACE WITH ]-------------------------------------------------
#

        echo "\t\t\t\t\t\t\t\t".'<img src="img/smilies/'.$smiley_img[$i].'" alt="'.$smiley_text[$i].'" onclick="javascript:insert_text(\''.$smiley_text[$i].'\', \'\');" />'."\n";

#
#---------[ 6. FIND (line: 98) ]---------------------------------------------
#

?>
                        </div>

#
#---------[ 7. REPLACE WITH ]-------------------------------------------------
#

?>
                            </a>
                        </div>

#
#---------[ 8. SAVE/UPLOAD ]--------------------------------------------------
#

I've tried with the div tag but it not focus to in Firefox when click Smileyadd button.

:Maxthon:FireFox:MirandaIM:ThunderBird:SmartFTP:FreePOPs:HTTrack:uTorrent:
:FlashGet:TCPOptimizer:SPECTralSMTPServer:UniExtract:PSPad:uStart:Everest:
:TotalCommander:ProcessExplorer:DriveMan:Regshot:Restoration:UPX:KolorGenerator:
:OpenOffice:AutoHotkey:IrfanView:Winamp:FSCapture:CDex:PNGOptimizer:spam:

Re: Easy BBCode 1.0.1

awsome...and so much simpler than a mod I wont give the name by respect fot its author...

96 (edited by minis 2006-04-30 10:00)

Re: Easy BBCode 1.0.1

Hellow. Can someone help to change buttons into images? I have tried, but the problem is, that when i click on image, it inserts bbcode and also submits a message at the same time.

Try my test forum and you see what i mean http://mdstudio.frihost.net/punbb/post.php?tid=1

97

Re: Easy BBCode 1.0.1

No help? ;/

Re: Easy BBCode 1.0.1

I like it.

see here:
http://img257.imageshack.us/img257/1189/nice0qh.jpg

send code for me. Thank.

I'm from Viet Nam. i speak english vey bad! Sorry.

99

Re: Easy BBCode 1.0.1

trongha wrote:

I like it.

see here:
http://img257.imageshack.us/img257/1189/nice0qh.jpg

send code for me. Thank.

yes it really cool. but CAN I REPLACE buttons WITH ICONS??????

100

Re: Easy BBCode 1.0.1

I have bbcodes_editor_1.1. link here http://www.punbb.hebergementsite.biz/do … or_1.1.zip

But when hack mod ==> Eror:

Warning: preg_replace(): Compilation failed: unmatched parentheses at offset 5 in c:\appserv\www\upload\include\parser.php on line 382

Warning: preg_replace(): No ending delimiter '#' found in c:\appserv\www\upload\include\parser.php on line 382

Warning: preg_replace(): Compilation failed: unmatched parentheses at offset 6 in c:\appserv\www\upload\include\parser.php on line 382

Warning: preg_replace(): No ending delimiter '#' found in c:\appserv\www\upload\include\parser.php on line 382

Note: I'm using version 1.2.12. Help me, please.

I'm from Viet Nam. i speak english vey bad! Sorry.