Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on September 03, 2006, 08:38:54 PM

Title: Signature Area BBCode Buttons
Post by: vbgamer45 on September 03, 2006, 08:38:54 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=450)

Signature Area BBCode Buttons

Original Author: karlbenson
SMF Version: 1.1.X and 2.0.X
Mod Version: 2.0.3

Description:
Adds a row of buttons of some of the most commonly used bbcode above the edit/add signature box in users profile area.

Changelog:

2.0.3 14 January 2012
-Updated mod for 1.1.17 and Final
-Updated Readme

2.0.2 25 November 2010
-Updated mod for 1.1.12 and RC4
-Updated Readme

2.0.1 March 13 2010
-Fixed an annoying bug:  if you go to forum profile to look at you signature or to modify it
you will not find your signature there.

2.0 March 12 2010
-The mod now loads all the bbc buttons and smilies you have, even the ones that are added by other mods     (only 2.0 RC2 and 2.0 RC3)

1.7 - November 11 2009
-Deleted the option to turn on/off theres no point of having that option
-Deleted the text strings, no loger required
-Added support for 2.0RC2
-Added more bbc buttons

1.6 - August 13 2009
-Take over by 130860.
-Fixed the Undefined offset: error in 2.0
-Added an option to turn on/off the mod
-Added support for 2.0 RC1.2

1.5 - 30th November 2007
-Re-packaged mod
-Improved the readme.

Why Not Visit:
http://www.smfhacks.com
Title: Re: Signature BBCode
Post by: S1L1C0N on September 05, 2006, 12:31:46 AM
Very cool! Thanks for doing this, have been waiting for a while, works great! Even on custom themes.

8)
Title: Re: Signature BBCode
Post by: Skipdawg on September 05, 2006, 02:34:11 AM
Very nice profile enhancement. Great mod indeed thanks.  ;D ;)
Title: Re: Signature BBCode
Post by: karlbenson on September 05, 2006, 09:31:27 AM
np ;)  I wanted it for my own board too.

Please tell me if there are any buttons in the default bbcode buttons which should bei n the list.
As I said above, I hope to have a full version for serious people and a common buttons only for those who dont want the panel to look like mission control.
Title: Re: Signature BBCode
Post by: S1L1C0N on September 05, 2006, 09:43:00 AM
I think you have it all covered for a basic user! Thats the perfect set.
Title: Re: Signature BBCode
Post by: denislici on September 05, 2006, 03:21:33 PM

yeah thats it... thanx...
Title: Re: Signature BBCode
Post by: affbld on November 25, 2006, 06:56:28 PM
thanxs for this one. great mod!
Title: Re: Signature BBCode
Post by: geezmo on December 16, 2006, 02:35:16 PM
Will this work for 1.1?
Title: Re: Signature BBCode
Post by: MarkoWeb on December 16, 2006, 04:33:30 PM
yes
Title: Re: Signature BBCode
Post by: karlbenson on January 06, 2007, 10:39:33 AM
tested for 1.1 and 1.1.1 on 06/01/2007. Works *Updated
Title: Re: Signature BBCode v1.2
Post by: RoarinRow on January 06, 2007, 12:19:24 PM
Very cool, thank you!   8)
Title: Re: Signature BBCode Bar v1.2
Post by: 4fit? on January 06, 2007, 11:30:17 PM
Yes, very nice.  Thanks!
Title: Re: Signature BBCode Bar v1.2
Post by: Macku on January 27, 2007, 07:34:12 AM
Nice ! thank you :) really easy to install and functional :]
Title: Re: Signature BBCode Bar v1.2
Post by: Lamarck on January 27, 2007, 08:36:47 AM
Installed and working perfect.Thanks.
Title: Re: Signature BBCode Bar v1.2
Post by: karlbenson on January 28, 2007, 06:22:59 AM
Thanks for the comments
Title: Re: Signature BBCode Bar v1.2
Post by: affbld on February 22, 2007, 06:09:45 PM
please update to 1.1.2
Title: Re: Signature BBCode Bar v1.3
Post by: karlbenson on February 25, 2007, 12:28:17 PM
it does work with 1.1.2 (it should didnt say it in the text)

Updated v1.3 to make it clear does work with 1.1.2
Title: Re: Signature BBCode Bar v1.3
Post by: hotjunkie on March 01, 2007, 02:29:16 AM
Excellent Mod,thanks so much. ;)
Title: Re: Signature BBCode Bar v1.3
Post by: kerrang! on April 30, 2007, 05:06:01 PM
any chance of adding size, colour and font into this?

Does the track for me, so thumbs up.
~joey
Title: Re: Signature BBCode Bar v1.3
Post by: karlbenson on May 01, 2007, 11:21:43 AM
when I get the chance. I'll add it for the next version.  At the moment I'm working on another major mod.
Title: Re: Signature BBCode Bar v1.3
Post by: ManilaGurL on July 24, 2007, 02:27:42 AM
It's not working for me, the image signature won't appear on my messages. Any help?
I'm using 1.1.3 with Dilber theme.
Title: Re: Signature BBCode Bar v1.3
Post by: karlbenson on July 24, 2007, 10:49:00 AM
Sorry which part is missing?

Images? or the signature bar itself?

If its images, the image is probably missing from your Dilber Theme  (images/bbc/)

If its signature bar itself that is missing, check whether Dilber Theme has a custom profile.template.php
If thats the case, the mod will need installing on that theme.
Title: Re: Signature BBCode Bar v1.3
Post by: mondala on August 09, 2007, 10:36:33 AM
It's amazing how easy it is to forget simple things like bb codes but I surely do.   :P
Without this bbcode bar, I am completely lost.  Hope this is added to the core sooner then later.
Title: Re: Signature BBCode Bar v1.3
Post by: jossanaijr on October 21, 2007, 10:53:20 PM
How to use (//)?  Where / How should the picture be uploaded to?
Title: Re: Signature BBCode Bar v1.3
Post by: karlbenson on October 22, 2007, 09:07:24 AM
Quote from: jossanaijr on October 21, 2007, 10:53:20 PM
How to use [img][/img]?  Where / How should the picture be uploaded to?

I don't fully understand.
ALL images have to already be uploaded.  There is no functionality to upload an image with this mod.
It just adds some bbcode buttons.
Title: Re: Signature BBCode Bar v1.3
Post by: jossanaijr on October 22, 2007, 10:19:31 AM
Ok but usually where should I put images to (where should I keep my signature's picture).  Just asking a suggestion.
Title: Re: Signature BBCode Bar v1.3
Post by: karlbenson on October 22, 2007, 03:24:25 PM
They have to be already hosted on the internet somewhere, not on a local computer.

Other than that it can be hosted anywhere.
Any external site, or on your server.

Just use it with bbcode as in posts.
[img]http://www.imagehost.com/12342/file.gif[/img]
Title: Re: Signature BBCode Bar v1.3
Post by: jossanaijr on October 22, 2007, 03:33:42 PM
Ok, thank you.
Title: Re: Signature Area BBCode Buttons v1.5
Post by: karlbenson on November 29, 2007, 07:47:57 PM
1.5 - 30th November 2007
o Re-packaged mod
o Improved the readme.
Title: Re: Signature Area BBCode Buttons v1.5
Post by: Garou on December 06, 2007, 04:58:35 PM
I got an idea, how about if there was a pick list in the admin section that let you chose which bbc tags are shown on the signature bar?

Something that looked at what current tags exist on your site and then you check off the ones you want to use for the bar.

That way you wouldnt have to update the mod every time someone wants something else added to it and it would even alow sites that have custom BBC codes. :)
Title: Re: Signature Area BBCode Buttons v1.5
Post by: karlbenson on December 07, 2007, 12:31:57 AM
It would be far too much work to do for the benefit that would be gained.

And since it would add sections to the admin area, would likely require manual edits, theme edits, language string edits.
All of which are not necessary except for themes which a custom profile.template.php.
Title: Re: Signature Area BBCode Buttons v1.5
Post by: Garou on December 07, 2007, 03:39:07 PM
Oh well it was just an idea.

I understand the mod as is enough that I can add my own custom buttons to it, just thought it might be helpful for others.   :D
Title: Re: Signature Area BBCode Buttons v1.5
Post by: falguni1 on December 18, 2007, 01:51:01 AM
I am going to use this mod.
Title: Re: Signature Area BBCode Buttons v1.5
Post by: karlbenson on December 18, 2007, 04:37:44 AM
cool. best of luck with it falguni1
Title: Re: Signature Area BBCode Buttons v1.5
Post by: falguni1 on December 18, 2007, 05:59:17 AM
Quote from: karlbenson on December 18, 2007, 04:37:44 AM
cool. best of luck with it falguni1
(https://www.simplemachines.org/community/Themes/smsite/images/post/grin.gif)
Title: Re: Signature Area BBCode Buttons v1.5
Post by: [кѕ]ваηε-σ on December 19, 2007, 04:18:46 AM
sorry just found this thread.

i need to remove the ftp button. which .php file do i need to go to find to do this?

i didn't need to install the mod manually.




Peace,
Brandon
Title: Re: Signature Area BBCode Buttons v1.5
Post by: karlbenson on December 19, 2007, 04:26:56 AM
Profile.template.php

Remove the line

'ftp' => array('code' => 'ftp', 'before' => '[ftp]', 'after' => '[/ftp]', 'description' => $txt[434]),
Title: Re: Signature Area BBCode Buttons v1.5
Post by: [кѕ]ваηε-σ on December 19, 2007, 04:32:03 AM
i cannot find that .php file. i went through the whole thing and cna't find it.

all i have is

profile.php    and     profile.php~



where is the default location of profile.template.php?

I am not using the default theme, i am using the theme Aa_New_Damage

when i installed this theme the test came back unsecsesfull(?) but the bbcode buttons still apeared and function properly.





Peace,
Brandon
Title: Re: Signature Area BBCode Buttons v1.5
Post by: karlbenson on December 19, 2007, 04:34:15 AM
Sorry I should have made that clear.

Themes/default/Profile.template.php

Note as per the readme, the mod only installs on the SMF Default core theme and other themes which don't have a custom Profile.template.php

if there is no profile.template.php in the AA new Damage theme then making the edit to the file in the default theme folder will be enough.
Title: Re: Signature Area BBCode Buttons v1.5
Post by: [кѕ]ваηε-σ on December 19, 2007, 04:39:06 AM
thank you, much thanks.

+1 internet for the karlbenson




Peace,
Brandon
Title: Re: Signature Area BBCode Buttons v1.5
Post by: karlbenson on December 19, 2007, 04:52:05 AM
I'm glad I could help you [KS]Bane-o
Title: Re: Signature Area BBCode Buttons v1.5
Post by: [кѕ]ваηε-σ on December 19, 2007, 05:01:22 AM
Quote from: kerrang! on April 30, 2007, 05:06:01 PM
any chance of adding size, colour and font into this?

Quote from: karlbenson on December 19, 2007, 04:26:56 AM
Remove the line

'ftp' => array('code' => 'ftp', 'before' => '[ftp]', 'after' => '[/ftp]', 'description' => $txt[434]),



Correct me if i'm wrong, but if a person was to find the correct .php code in the post.template.php they could add it at the end of all those array commands and therefore add a specific button or function to your mod, right?

Also because I'm a .php noob, how would you put a line break in? Like if I wanted to add a new button, but wanted it to appear a line down or basically not in the same row as the buttons you mod added?




Peace,
Brandon
Title: Re: Signature Area BBCode Buttons v1.5
Post by: falguni1 on December 22, 2007, 08:41:15 AM
wot is difference between bar and button.
Title: Re: Signature Area BBCode Buttons v1.5
Post by: karlbenson on December 22, 2007, 09:22:00 AM
I've described the row of Buttons as a bar.

But some people didnt understand it, so I renamed the mod.
Title: Re: Signature Area BBCode Buttons v1.5
Post by: falguni1 on December 22, 2007, 09:30:33 AM
I downloaded the button mod I think both are latest.
Title: Re: Signature Area BBCode Buttons v1.5
Post by: karlbenson on January 19, 2008, 12:08:06 AM
I have reuploaded this mod and screenshots for it.

I am in the process of doing it for ALL my other mods aswell.  Please bear with me.
Title: Re: Signature Area BBCode Buttons v1.5
Post by: Nibogo on February 01, 2008, 06:18:34 PM
good mod very nice :)
Title: Re: Signature Area BBCode Buttons v1.5
Post by: ApplianceJunk on February 23, 2008, 07:58:38 AM
Nice mod. Works great for us, thanks!
Title: Re: Signature Area BBCode Buttons v1.5
Post by: [кѕ]ваηε-σ on March 01, 2008, 11:14:33 PM
Bump


Quote from: [кѕ]ваηε-σ on December 19, 2007, 05:01:22 AM
Quote from: kerrang! on April 30, 2007, 05:06:01 PM
any chance of adding size, colour and font into this?

Quote from: karlbenson on December 19, 2007, 04:26:56 AM
Remove the line

'ftp' => array('code' => 'ftp', 'before' => '[ftp]', 'after' => '[/ftp]', 'description' => $txt[434]),



Correct me if i'm wrong, but if a person was to find the correct .php code in the post.template.php they could add it at the end of all those array commands and therefore add a specific button or function to your mod, right?

Also because I'm a .php noob, how would you put a line break in? Like if I wanted to add a new button, but wanted it to appear a line down or basically not in the same row as the buttons you mod added?




Peace,
Brandon



Also because I'm a .php noob, how would you put a line break in? Like if I wanted to add a new button, but wanted it to appear a line down or basically not in the same row as the buttons your mod added
Title: Re: Signature Area BBCode Buttons v1.5
Post by: karlbenson on March 02, 2008, 01:49:54 PM
Sorry I missed that.

If you want a new row, thats not as easy.

FIND

'list' => array('code' => 'list', 'before' => '[list]\n[li]', 'after' => '[/li]\n[li][/li]\n[/list]', 'description' => $txt[261]),
);


ADD AFTER
$context['bbc_tags'][] = array(
);


Then add any ones you want onto the second row inside the array like so

Example
$context['bbc_tags'][] = array(
'bold' => array('code' => 'b', 'before' => '[b]', 'after' => '[/b]', 'description' => $txt[253]),
);
Title: Re: Signature Area BBCode Buttons v1.5
Post by: [кѕ]ваηε-σ on March 03, 2008, 06:19:21 AM
ok thanks karl. sorry for the bolding, i wasn't mad, i was just trying to get a better chance at it getting noticed.
Title: Re: Signature Area BBCode Buttons v1.5
Post by: karlbenson on March 03, 2008, 07:09:17 PM
I tend to browse by Unread/UnreadReplies, and I do try to reply to my mod topics on a daily basis.

Sometimes though if i hit the mark all as read, it will make them disappear.
Title: Re: Signature Area BBCode Buttons v1.5
Post by: microbone on March 04, 2008, 08:26:42 AM
Sweet Karl another one of your nixxle mods thank you, works like a charm!
Title: Re: Signature Area BBCode Buttons v1.5
Post by: edi67 on June 06, 2008, 05:59:28 PM
Work perfectly with SMF 2.0 Beta 3.1 too
Thx Karl :)
Title: Re: Signature Area BBCode Buttons v1.5
Post by: Marcus Forsberg on August 30, 2008, 04:43:14 AM
Will this work whit 2.x?

And if not, will it do in the future?
Title: Re: Signature Area BBCode Buttons v1.5
Post by: sheryltoo on February 26, 2009, 10:41:08 AM
I manually installed this mod on smf 2.0 RC1 and it works, however, now I get errors in my error log when anyone accesses the profile area.
I'm not sure if I'm also getting errors, just because a person you used the feature is in the forum but I myself went to the profile area for this person, and did nothing but open the profile and it generated errors.

I don't know if this is anything I need to be concerned about and if so, is there a way to fix the errors from happening or do I need to remove it?

Here's a copy of some of the errors it's kicking out:

http://domain.com/index.php?action=profile;area=forumprofile;u=76 
8: Undefined offset: 439
File: /home/user/public_html/domain/Themes/default/Profile.template.php
Line: 2398 

http://domain.com/index.php?action=profile;area=forumprofile;u=76 
8: Undefined offset: 444
File: /home/user/public_html/domain/Themes/default/Profile.template.php
Line: 2387 

Title: Re: Signature Area BBCode Buttons v1.5
Post by: islam2hamy on March 15, 2009, 11:24:09 AM
hi,
thank you for your great mods

sorry but i can't pm you

Quote
i want to take a permission from you to let me edit your mods to make it work good with Arabic and make it available to download in my first Smf Arabic support site

www.smfarabic.com (http://www.smfarabic.com/)

and another permission to make me place my site copyright at the Read me file (Translated By SmfArabic)

thank you.

please replay as soon as possible very important !
Title: Re: Signature Area BBCode Buttons v1.5
Post by: Garou on March 16, 2009, 08:01:43 AM
Karl posted in My Mods - Available For You To Take Over Active Development (http://www.simplemachines.org/community/index.php?topic=260312.msg1746049#msg1746049) that GamerShare I think now known as Free Town has taken over this mod. Support for that is at http://www.simplemachines.org/community/index.php?topic=246653.0 and the  mod available for download at http://custom.simplemachines.org/mods/index.php?mod=1275
Title: Re: Signature Area BBCode Buttons v1.5
Post by: mirahalo on August 13, 2009, 08:48:39 PM
Well, this mod has been officially take over by me  ;) heres the changelog:




Changelog
1.6 - August 13 2009
o Take over by 130860. :)
o Fixed the Undefined offset: error in 2.0
o Added an option to turn on/off the mod
o Added support for 2.0 RC1.2
1.5 - 30th November 2007
o Re-packaged mod
o Improved the readme.


greetings!
Title: Re: Signature Area BBCode Buttons v1.5
Post by: gbsothere on August 13, 2009, 09:23:44 PM
My posters love this mod.  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereitestmystuff.com%2Fimages%2Fthumb.gif&hash=fbe057efff6d88bc8293617d752cf12a98abaa09)
Title: Re: Signature Area BBCode Buttons v1.6
Post by: social on September 01, 2009, 07:33:55 PM
wow.. good job.. my friend..
Title: Re: Signature Area BBCode Buttons v1.6
Post by: LHW on September 01, 2009, 10:12:44 PM
Good thinking!  Thanks for the Mod!!
Title: Re: Signature Area BBCode Buttons v1.6
Post by: sheryltoo on October 03, 2009, 05:01:27 PM
Do you have to uninstall the old version before installing the new version?
Sheryl
Title: Re: Signature Area BBCode Buttons v1.6
Post by: mirahalo on October 03, 2009, 07:25:01 PM
Quote from: sheryltoo on October 03, 2009, 05:01:27 PM
Do you have to uninstall the old version before installing the new version?
Sheryl


yes, you have to unistall the old version before you install the new one ;)
Title: Re: Signature Area BBCode Buttons v1.6
Post by: sheryltoo on October 03, 2009, 07:50:35 PM
Thanks.
Title: Re: Signature Area BBCode Buttons v1.6
Post by: sheryltoo on October 04, 2009, 08:59:41 AM
I was going to uninstall this but the option isn't there. It says [apply] [list files] [delete] but the mod is working at my site because I have the bbc's in the signature area of the forum profile.
Could this be because I might have installed this manually the first time around?
Do I have to uninstall it manually? If I do uninstall it manually, should I delete the mod from my list of packages in the administration panel?
Sheryl[/list]
Title: Re: Signature Area BBCode Buttons v1.6
Post by: mirahalo on October 04, 2009, 08:49:39 PM
yes, if you install the mod manually the first time, you will have to unistall it manually because the manager package does not recognize the mod,  you could delete the old one from the package manager since you never use it to install the mod, so, after you unistall manually the old one, install the new one using the package manager, after you install it, it will redirect to the mods settings, where you have to active the mod in order to use it.


greetings!
Title: Re: Signature Area BBCode Buttons v1.6
Post by: sheryltoo on October 12, 2009, 12:43:42 PM
I installed this updated version but there's no longer BBCs for text size, style, bold, Italic and maybe some other options.
In looking at what was added to the profile.php file, it doesn't look as if these were included but maybe I'm just reading the script wrong.
I don't really understand php but I was trying to find something that looked similar to what I had previously used where you had the option to change your text size and style.
Here's a screen shot of what options I do have.
Should there be more bbc's?

Sheryl
Title: Re: Signature Area BBCode Buttons v1.6
Post by: mirahalo on October 12, 2009, 01:26:50 PM
no, I didn't include all the avaliable bbc buttons, however, once I get access to Curve, I will update the mod to include all bbc buttons and smilies as well ;)

greetings!
Title: Re: Signature Area BBCode Buttons v1.6
Post by: sheryltoo on October 12, 2009, 02:14:12 PM
OK. Thanks.
I was afraid I did something wrong.
Sheryl
Title: Re: Signature Area BBCode Buttons v1.6
Post by: mirahalo on November 12, 2009, 12:32:55 AM
little update,  deleted the text strings and deleted the option to tunr on/off the mod, theres no point of having those :P, now is a very simple, one file edit mod ;)

also, added all the bbc buttons available by default on the signature

Changelog
1.7 - November 11 2009
o - Deleted the option to turn on/off theres no point of having that option :P
o - Deleted the text strings, no loger required
o - Added support for 2.0RC2
o - Added more bbc buttons
1.6 - August 13 2009
o Take over by 130860. :)
o Fixed the Undefined offset: error in 2.0
o Added an option to turn on/off the mod
o Added support for 2.0 RC1.2
1.5 - 30th November 2007
o Re-packaged mod
o Improved the readme.
Title: Re: Signature Area BBCode Buttons v1.6
Post by: marko_andres on January 25, 2010, 03:18:33 PM
Gracias, lo acabo de instalar en 1.1.11 y funciona perfecto.

Se agradece ;)
Title: Re: Signature Area BBCode Buttons v1.6
Post by: mirahalo on January 25, 2010, 04:56:26 PM
gracias, que bueno que te haya gustado ;)
Title: Re: Signature Area BBCode Buttons v1.6
Post by: mirahalo on March 12, 2010, 06:36:27 PM
version 2.0, heres the change log:


Changelog

2.0 March 12 2010

o -  the mod now loads all the bbc buttons and smilies you have, even the ones that are added by other mods ;)   (only 2.0 RC2 and 2.0 RC3)


1.7 - November 11 2009
o - Deleted the option to turn on/off theres no point of having that option :P
o - Deleted the text strings, no loger required
o - Added support for 2.0RC2
o - Added more bbc buttons
1.6 - August 13 2009
o Take over by 130860. :)
o Fixed the Undefined offset: error in 2.0
o Added an option to turn on/off the mod
o Added support for 2.0 RC1.2
1.5 - 30th November 2007
o Re-packaged mod
o Improved the readme.




to update, please uninstall the previous version and install the new one ;)
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on March 14, 2010, 12:57:31 AM
ok, another update, fixed a poblem with showing the signature's code when editing:

2.0.1 March 13 2010

o -  fixed an annoying bug:  if you go to forum profile to look at you signature or to modify it
you will not find your signature there.


please uninstall the old version and install this new one ;)
Title: Re: Signature Area BBCode Buttons v2.0
Post by: drhamza on March 15, 2010, 08:53:00 AM
WYSIWYG is on by default in my forum, so when i install this mod, it's on as well, editing the signature while it's on won't work, you'll have to turn it off to be able to save the signature, will you check that please (suggestion: you can remove wysiwyg from signature area if it's possible)
thanks a lot
Title: Re: Signature Area BBCode Buttons v2.0
Post by: grafitus on March 15, 2010, 09:06:35 AM
drhamza, in your ./Sources/Profile-Modify.php file:

Code (Find) Select
$modSettings['disable_wysiwyg'] = !empty($modSettings['disable_wysiwyg']) || empty($modSettings['enableBBC']);
Code (Replace) Select
$modSettings['disable_wysiwyg'] = true;
Title: Re: Signature Area BBCode Buttons v2.0
Post by: drhamza on March 15, 2010, 09:12:01 AM
thanks, but i couldn't find the line, i couldn't even find "wysiwyg" in the whole document
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on March 15, 2010, 11:15:08 AM
will you please attach your /Sources/Profile-Modify.php


and sure, I will check that, is probably better to have it off
Title: Re: Signature Area BBCode Buttons v2.0
Post by: drhamza on March 15, 2010, 11:20:15 AM
thanks
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on March 15, 2010, 11:32:55 AM
mmm, looks like the mod is not installed on your forum, will you please verify that you installed the mod, if not, please install it and re-attach  your Profile-Modify.php
Title: Re: Signature Area BBCode Buttons v2.0
Post by: drhamza on March 15, 2010, 01:14:38 PM
ammm, of course it's installed or i wouldn't be seeing the bbc buttons in the signature, and it installed successfully without any errors, anyhow, i've just checked it and yup, it's installed
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on March 15, 2010, 01:27:47 PM
well, the file you attach has no code of my mod  and is weird because without the edits on ./Sources/Profile-Modify.php   the mod will simply not work, anyhow I attached the file with the necessary edits
Title: Re: Signature Area BBCode Buttons v2.0
Post by: drhamza on March 15, 2010, 03:32:31 PM
perfect, thanks a million, it's working now :D
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Avath on March 25, 2010, 06:08:43 PM
I have installed this mod and it works great, i just have one little problem and its that i had installed a bbc code for YouTube, and now users can have you tube videos for signatures...how can i get rid of that particular button for that field?
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on March 28, 2010, 08:44:19 PM
ok, I'm guessing youre using RC2 or RC3 right?     this mod is very simple, all it does is load the bbc buttons and smilies, currently theres no option to disallow a single bbc but let me check,   then again even if theres no button at all  the users still can use the tags
Title: Re: Signature Area BBCode Buttons v2.0
Post by: elshabrawi on March 30, 2010, 07:02:05 PM
peace on every body
i m using smf2 rc3
and i had a problem with this mod with the WYSIWYG editor
i used this solution http://www.simplemachines.org/community/index.php?topic=111279.msg2540601#msg2540601
but is there any other way for the mod to work with the WYSIWYG editor
thanks much
buy
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on April 01, 2010, 10:20:51 AM
sadly no, this mod has some issues with the WYSIWYG editor (like any other mod that uses it) and I'm afraid is just way to complicated for me,   so I'll will update the mod to always show the editor off even if you set it on   
Title: Re: Signature Area BBCode Buttons v2.0
Post by: distante on April 17, 2010, 09:42:56 AM
Hello  130860!!

Thanks for this great mod, I'm using but I saw (maybe) a little bug.

When I change my signature using WYSIWYG the characters don't get "count"  and If I save, all my changes are deleted.

BUT I I press this button fist : (https://www.simplemachines.org/community/Themes/default/images/bbc/toggle.gif) the characters get count and the signature is saved all rigth.

Is a little bit tricky for the user to do this. Is There a way to fix this?

Thank you.

Regards.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on April 17, 2010, 09:48:35 PM
yeah, the mod doesn't work properly with the WYSIWYG editor,  I will release another version with the editor off all the time.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: distante on April 18, 2010, 09:45:33 AM
Well, I will be waiting :P

Thank you 130860 :)
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Mrs.Adeel on June 15, 2010, 03:05:15 PM
Quote from: 130860 on April 17, 2010, 09:48:35 PM
yeah, the mod doesn't work properly with the WYSIWYG editor,  I will release another version with the editor off all the time.

I am eagerly waiting for updated mod.
I am also unable to use wysiwyg editor well.
Signature doesn't show up in posts.
Any help will be appreciated though.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: distante on June 15, 2010, 03:50:15 PM
I tell my users to click in this button (https://www.simplemachines.org/community/Themes/default/images/bbc/toggle.gif)  before save the signature and it works.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on June 15, 2010, 04:56:14 PM
for a quick fix you can do this:

Quote from: grafitus on March 15, 2010, 09:06:35 AM
drhamza, in your ./Sources/Profile-Modify.php file:

Code (Find) Select
$modSettings['disable_wysiwyg'] = !empty($modSettings['disable_wysiwyg']) || empty($modSettings['enableBBC']);
Code (Replace) Select
$modSettings['disable_wysiwyg'] = true;
Title: Re: Signature Area BBCode Buttons v2.0
Post by: aakashif on June 16, 2010, 03:19:17 AM
I need wysiwyg
What I am unable to do is:

Signature doesn't show up in posts.
can u fix this.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: aakashif on June 16, 2010, 04:21:43 AM
Since your suggestion is not much help for me i tried to uninstalled your mod. Done without errors.
But after uninstalling when I go to Forum Profile I get the following error:

Fatal error: require_once() [function.require]: Failed opening required '/Subs-Editor.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cafechi2/public_html/forum/Sources/Profile-Modify.php on line 2489
Title: Re: Signature Area BBCode Buttons v2.0
Post by: ACAMS on June 16, 2010, 11:54:35 PM
I have SMF 2.0 RC3 and when I install this, it is there and looks real nice, BUT the changes do not save.
Can somebody tell me what I need tp do to get this to work?

THANKS
Title: Re: Signature Area BBCode Buttons v2.0
Post by: distante on June 17, 2010, 01:07:20 AM
Quote from: ACAMS on June 16, 2010, 11:54:35 PM
I have SMF 2.0 RC3 and when I install this, it is there and looks real nice, BUT the changes do not save.
Can somebody tell me what I need tp do to get this to work?

THANKS
Quote from: distante on June 15, 2010, 03:50:15 PM
I tell my users to click in this button (https://www.simplemachines.org/community/Themes/default/images/bbc/toggle.gif)  before save the signature and it works.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on June 17, 2010, 12:42:57 PM
all the mods that use the wysiwyg editir have the same problem, fix aint easy to do.


Quote from: aakashif on June 16, 2010, 04:21:43 AM
Since your suggestion is not much help for me i tried to uninstalled your mod. Done without errors.
But after uninstalling when I go to Forum Profile I get the following error:

Fatal error: require_once() [function.require]: Failed opening required '/Subs-Editor.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cafechi2/public_html/forum/Sources/Profile-Modify.php on line 2489

you fail to do the uninstall,  check the parser to do the changes manually, I dont have much time this days, when I get a chance I will check this,  but again, all the mods that work with the editor has the same problems is not just this mod.

why you need the wysiwyg so much?  theres several issues with it that hasnt been solved yet.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: distante on July 18, 2010, 11:59:06 PM
130860, there is any way to add an instruction to deactivate the WYSIWYG editor when I press the "save" button when I'm editing my profile?

:) greetings
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on July 19, 2010, 12:07:23 AM
Quote from: 130860 on June 15, 2010, 04:56:14 PM
for a quick fix you can do this:

Quote from: grafitus on March 15, 2010, 09:06:35 AM
drhamza, in your ./Sources/Profile-Modify.php file:

Code (Find) Select
$modSettings['disable_wysiwyg'] = !empty($modSettings['disable_wysiwyg']) || empty($modSettings['enableBBC']);
Code (Replace) Select
$modSettings['disable_wysiwyg'] = true;
Title: Re: Signature Area BBCode Buttons v2.0
Post by: distante on July 19, 2010, 12:10:24 AM
I already try that, It disable all the WYSIWYG view.

But theres no way to "click" the buttom, and then all the signature box change to BBc codes and then save? u_U
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on July 19, 2010, 12:15:18 AM
click the  (https://www.simplemachines.org/community/Themes/default/images/bbc/toggle.gif)  again, it will come back to the normal view
Title: Re: Signature Area BBCode Buttons v2.0
Post by: distante on July 19, 2010, 12:23:23 AM
:P that was my response
Quote from: distante on June 15, 2010, 03:50:15 PM
I tell my users to click in this button (https://www.simplemachines.org/community/Themes/default/images/bbc/toggle.gif)  before save the signature and it works.

There's no way to do this automatically then? like a little script or so?
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on July 19, 2010, 12:23:45 AM
no
Title: Re: Signature Area BBCode Buttons v2.0
Post by: distante on July 19, 2010, 12:39:07 AM
:( ok, sorry.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Maree on September 21, 2010, 09:53:30 PM
Hi, I'm very new at this but I have mananaged to make a forum.  I tried to install your signature mod, which looks great, but when I looked for the .sources/profile-modify.php file I couldn't find it (I looked everywhere).  There is a .sources/profile.php file, would this be the one I need to modify?  It is a little different though and I don't know which bit I have to change.  I am using a custom theme, so I know I have to manually modify this file.  I have found the profile.template.php file and changed that.  Do you have any suggestions?
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on September 22, 2010, 09:19:45 AM
Hi Maree, welcome to SMF,   I would like to know some info,   what version of SMF are you using?

and yes, on custom themes you mostly have to edit som files, however, you only have to edit your cus themes files, example:

if a mod  modifies  profile.template.php   but your theme does not have that file, then  ther no need to edit manually.

if the theme modifies index.template.php  and your theme has an index.template.php   then hes, you will have to edit your theme's index.template.php

you can just install the mod with the package manager to do most of the edit automatically and only edit manualli the files on your theme, heres som more info:


Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)

Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Maree on September 22, 2010, 10:16:22 PM
Quote from: 130860 on September 22, 2010, 09:19:45 AM
Hi Maree, welcome to SMF,   I would like to know some info,   what version of SMF are you using?

and yes, on custom themes you mostly have to edit som files, however, you only have to edit your cus themes files, example:

if a mod  modifies  profile.template.php   but your theme does not have that file, then  ther no need to edit manually.

if the theme modifies index.template.php  and your theme has an index.template.php   then hes, you will have to edit your theme's index.template.php

you can just install the mod with the package manager to do most of the edit automatically and only edit manualli the files on your theme, heres som more info:


Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)

Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)

Thank-you so much!  I actually missed something very basic which I read on the 'package' instructions you left  :-[  I was getting too ahead of myself  ::)  I have got it working now, and in case you're interested I have version SMF 1.1.11 installed.  Thanks for your help and the welcome  :)
Title: Re: Signature Area BBCode Buttons v2.0
Post by: kaitenkid on November 25, 2010, 11:00:35 AM
I love this mod, but hmmm ... some update for RC4? please   :'( :'(  i need this .. please  :'(
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Deaks on November 25, 2010, 11:24:46 AM
done
Title: Re: Signature Area BBCode Buttons v2.0
Post by: sheryltoo on November 25, 2010, 01:55:43 PM
The BBCs are showing up in my profile and I can make a change to my signature, but when I go to save it, it goes back to my original signature. I can't get it to change.
I'm using RC4.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: mirahalo on November 30, 2010, 01:28:26 PM
@sheryltoo  are you using the WYSIWYG editor?   this mod has some issues with it I didnt have the time to solve it, heres a temp fix by grafitus:

Quote from: grafitus on March 15, 2010, 09:06:35 AM
drhamza, in your ./Sources/Profile-Modify.php file:

Code (Find) Select
$modSettings['disable_wysiwyg'] = !empty($modSettings['disable_wysiwyg']) || empty($modSettings['enableBBC']);
Code (Replace) Select
$modSettings['disable_wysiwyg'] = true;
Title: Re: Signature Area BBCode Buttons v2.0
Post by: demo_ on August 18, 2011, 07:02:41 AM
Please update your archive settings for the final version 2.0 (http://custom.simplemachines.org/mods/index.php?mod=450)
Thank you.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: WantSome on September 07, 2011, 02:51:33 PM
Hiya!

I recently upgraded to 2.0 (I used your mod on the previous version 1.1.14 too).  Unfortunately, now that I am trying to install it in 2.0 it tells me:


The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Please help?
Title: Re: Signature Area BBCode Buttons v2.0
Post by: AmericanIntel on November 15, 2011, 04:57:46 AM
Not working for 2.0.1. For the life of me I can't figure out why smf wouldn't have this by default. My number one request from members on my forums.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Deaks on November 15, 2011, 12:54:17 PM
did you emulate the mod?
Title: Re: Signature Area BBCode Buttons v2.0
Post by: WantSome on November 15, 2011, 01:11:08 PM
since i posted the above i've tried that emulation technique and it works for me now.  sorry, should have updated earlier!
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Get Pumped Saltwater on January 03, 2012, 06:34:56 PM
So does this mod work for 2.0.1 or no? I tried to look it up on Package Manager and no joy..

Do I have to manually download the package?
or do I have to manually install everything?
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Get Pumped Saltwater on January 03, 2012, 07:00:50 PM
Quote from: Get Pumped Saltwater on January 03, 2012, 06:34:56 PM
So does this mod work for 2.0.1 or no? I tried to look it up on Package Manager and no joy..

Do I have to manually download the package?
or do I have to manually install everything?

I just tried to manually download the file and got a "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

:(
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Deaks on January 03, 2012, 07:42:57 PM
Quote from: Get Pumped Saltwater on January 03, 2012, 07:00:50 PM
Quote from: Get Pumped Saltwater on January 03, 2012, 06:34:56 PM
So does this mod work for 2.0.1 or no? I tried to look it up on Package Manager and no joy..

Do I have to manually download the package?
or do I have to manually install everything?

I just tried to manually download the file and got a "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

:(
and my reply is as follows:
Quote from: Runic on November 15, 2011, 12:54:17 PM
did you emulate the mod?
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Get Pumped Saltwater on January 03, 2012, 07:45:38 PM
Quote from: Runic on January 03, 2012, 07:42:57 PM
Quote from: Get Pumped Saltwater on January 03, 2012, 07:00:50 PM
Quote from: Get Pumped Saltwater on January 03, 2012, 06:34:56 PM
So does this mod work for 2.0.1 or no? I tried to look it up on Package Manager and no joy..

Do I have to manually download the package?
or do I have to manually install everything?

I just tried to manually download the file and got a "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

:(
and my reply is as follows:
Quote from: Runic on November 15, 2011, 12:54:17 PM
did you emulate the mod?

Emulate The Mod? Whats Emulate? ???
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Robert. on January 04, 2012, 04:22:41 AM
How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version) ;)
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Get Pumped Saltwater on January 04, 2012, 05:03:32 AM
Quote from: フリーレンジ on January 04, 2012, 04:22:41 AM
How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version) ;)

Yes tryed.. I press apply SMF 2.0.1 Emulate and nothing.. It only shows (List files) (Delete).

It doesn't give me a choice to install.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Deaks on January 04, 2012, 09:27:36 AM
try using 2.0 in emulate.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Get Pumped Saltwater on January 04, 2012, 06:28:40 PM
Quote from: Runic on January 04, 2012, 09:27:36 AM
try using 2.0 in emulate.

Ive tried:

SMF 2.0.1
SMF 2.0
2.0.1
2.0

Nothing... Next? Can I just manual insert the code? It doesn't look like that many files.. Just 2 
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Get Pumped Saltwater on January 04, 2012, 06:44:10 PM
Quote from: Get Pumped Saltwater on January 04, 2012, 06:28:40 PM
Quote from: Runic on January 04, 2012, 09:27:36 AM
try using 2.0 in emulate.

Ive tried:

SMF 2.0.1
SMF 2.0
2.0.1
2.0

Nothing... Next? Can I just manual insert the code? It doesn't look like that many files.. Just 2

Done... Working gooood now! ;D I used the 2.0 RC4 Manual Download..
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Deaks on January 13, 2012, 08:13:52 PM
mod has been updated!
Title: Re: Signature Area BBCode Buttons v2.0
Post by: adbasque on January 30, 2012, 03:21:48 PM
I am afraid everytime I try to install it it hangs for a longtime and nothing happens, although it goes through the test successfully but when I click at the bottom install, it hangs forever.

I have no problems with other mods, I use SMF 2.0.2, with a default theme.
Any ideas please?

Thanks
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Deaks on January 30, 2012, 03:35:40 PM
nope sorry, does it give any errors in your error log.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Antechinus on April 15, 2012, 08:08:53 AM
Just installed this on a 1.1.x site. It adds all BBC buttons, even the ones that have been specifically disabled in admin.

It does not add any smileys at all, despite what it says on the download page. I think this thing needs a bit of a revamp.
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Deaks on April 15, 2012, 11:30:06 AM
ive not done anything to it for 1.1.x line ... maybe I will remove that from it :)
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Antechinus on April 18, 2012, 05:47:14 PM
That would work. :D
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Gà Mái on April 25, 2012, 11:57:25 AM
Any new fix to work with WYSIWYG

Waiting...
Title: Re: Signature Area BBCode Buttons v2.0
Post by: vaelek1 on August 23, 2012, 09:45:19 AM
After some frustrating digging around, I finally figured out that this mod is breaking signatures altogether. When it is installed, any changes made to signatures do not stick when they are saved. As soon as I uninstalled it, changes started sticking again. Really quite a shame as making users markup bbcode by hand is not very user friendly. I am using SMF 2.0.2
Title: Re: Signature Area BBCode Buttons v2.0
Post by: DarkAngel612 on December 03, 2015, 04:40:16 PM
Just linking my question in here as suggested:

http://www.simplemachines.org/community/index.php?topic=541704.0
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Grammy on June 10, 2016, 07:12:26 PM
This mod shows to parse for 2.0.11, installs via the package manager easily, throws no forum errors, displays all the BBC buttons and smileys in the profile, as one might expect.  The only issue is that signatures are not saved.  If I uninstall the mod and just enter a plain ol' signature (old school) it saves just fine.  But when I reinstall the mod, signatures are no longer saved.

Signatures are enabled; it works fine until the mod is installed.  2.0.11 default, no errors.

Anyone have an idea why sigs don't save in 2.0.11 with this mod, if the install and uninstall (and install, ha) went smoothly?  :)
Title: Re: Signature Area BBCode Buttons v2.0
Post by: DarkAngel612 on June 10, 2016, 08:26:40 PM
I have been asking for help with this mod since the dinos ruled the earth. Mine is the opposite. It installs and works beautifully HOWEVER later on shoudl the members attempt to change the signature they can not.

You go to the spot, change the siggie and it appears to have changed, I think you are even told the profile was saved but when you go view it either in profile or  in a post it is still the same. Nobody, admin or not, can change the signature in any way, shape or form. To regain the control one needs to go to the database for changing or uninstall the mod.

It does not seem that anyone is keeping this mod in the loop,

Mod Name:Signature Area BBCode Buttons (http://custom.simplemachines.org/mods/index.php?mod=450)Created By:vbgamer45 (http://www.simplemachines.org/community/index.php?action=profile;u=24876) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmedia.simplemachinesweb.com%2Fsmf%2Fdefault%2Fimages%2Ffilter.gif&hash=cb00dde630f630c45e95ad6372f497315c1087e6) (http://custom.simplemachines.org/mods/index.php?action=profile;u=24876)Type:BBC (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmedia.simplemachinesweb.com%2Fsmf%2Fdefault%2Fimages%2Ffilter.gif&hash=cb00dde630f630c45e95ad6372f497315c1087e6) (http://custom.simplemachines.org/mods/index.php?action=search;type=6)First Created:September 02, 2006, 03:42:56 PMLast Modified:November 25, 2013, 12:00:43 PMLatest Version:2.0.3Compatible With:1.1.17, 1.1.19, 2.0.3, 2.0.6Total Downloads:10026Notifications:Notify me of updates. (http://custom.simplemachines.org/mods/index.php?action=profile;sa=notify;add=450;sesc=ed48b25b05412fdee4b251166fb5fdce)
The parsing link just gives you the same code that is provided in the mod...not for current version of SMF
Title: Re: Signature Area BBCode Buttons v2.0
Post by: Grammy on June 10, 2016, 08:46:14 PM
Quote from: Grammy on June 10, 2016, 07:12:26 PM
This mod shows to parse for 2.0.11, installs via the package manager easily, throws no forum errors, displays all the BBC buttons and smileys in the profile, as one might expect.  The only issue is that signatures are not saved.  If I uninstall the mod and just enter a plain ol' signature (old school) it saves just fine.  But when I reinstall the mod, signatures are no longer saved.

Signatures are enabled; it works fine until the mod is installed.  2.0.11 default, no errors.

Anyone have an idea why sigs don't save in 2.0.11 with this mod, if the install and uninstall (and install, ha) went smoothly?  :)

Quote from: DarkAngel612 on June 10, 2016, 08:26:40 PM
I have been asking for help with this mod since the dinos ruled the earth. Mine is the opposite. It installs and works beautifully HOWEVER later on shoudl the members attempt to change the signature they can not.

You go to the spot, change the siggie and it appears to have changed, I think you are even told the profile was saved but when you go view it either in profile or  in a post it is still the same. Nobody, admin or not, can change the signature in any way, shape or form. To regain the control one needs to go to the database for changing or uninstall the mod.

It does not seem that anyone is keeping this mod in the loop,

Mod Name:Signature Area BBCode Buttons (http://custom.simplemachines.org/mods/index.php?mod=450)Created By:vbgamer45 (http://www.simplemachines.org/community/index.php?action=profile;u=24876) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmedia.simplemachinesweb.com%2Fsmf%2Fdefault%2Fimages%2Ffilter.gif&hash=cb00dde630f630c45e95ad6372f497315c1087e6) (http://custom.simplemachines.org/mods/index.php?action=profile;u=24876)Type:BBC (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmedia.simplemachinesweb.com%2Fsmf%2Fdefault%2Fimages%2Ffilter.gif&hash=cb00dde630f630c45e95ad6372f497315c1087e6) (http://custom.simplemachines.org/mods/index.php?action=search;type=6)First Created:September 02, 2006, 03:42:56 PMLast Modified:November 25, 2013, 12:00:43 PMLatest Version:2.0.3Compatible With:1.1.17, 1.1.19, 2.0.3, 2.0.6Total Downloads:10026Notifications:Notify me of updates. (http://custom.simplemachines.org/mods/index.php?action=profile;sa=notify;add=450;sesc=ed48b25b05412fdee4b251166fb5fdce)
The parsing link just gives you the same code that is provided in the mod...not for current version of SMF


That's really a shame!   :(

The mod author seems to have a great many mods, all very nice and he's active on the boards.  I guess he's pretty busy.  But what I don't understand is why the mod indicates (on the mod page pulldown menu) that it parses for 2.0.11 and why it seems to install correctly.  It seems that, if it shouldn't work for 2.0.11, it shouldn't install.  Or it should at least be throwing some kind of errors.   :-\
Title: Re: Signature Area BBCode Buttons
Post by: shadav on March 30, 2021, 05:16:43 PM
just saw that this says it was last updated on march 2nd, anything new?
Title: Re: Signature Area BBCode Buttons
Post by: vbgamer45 on March 30, 2021, 10:43:38 PM
I don't remember might be just be SMF support version change.
Title: Re: Signature Area BBCode Buttons
Post by: shadav on March 30, 2021, 11:36:00 PM
 :laugh: thanks, just wanted to check
Title: Re: Signature Area BBCode Buttons
Post by: [chrisB] on January 06, 2023, 08:52:57 AM
2.1.3 upgrade 🤞🏻

[Sorry, I've only just found this, but it would be super useful]
Title: Re: Signature Area BBCode Buttons
Post by: Grammy on February 17, 2025, 05:14:33 PM
@vbgamer45

I was able to get this mod working for 2.1.4 and it does save the signature, and all that.  I just wondered if you could explain the Preview weirdness (and I know it's because of an edit I made).  I'd just like to know what I should have done differently.  Here are the screenshots.  The first one is without the mod and you can see that in Preview, you see both the current signature and the previewed signature that I'm about to save:

withoutMod.png

The next screenshot is after adding the mod.  In Preview, you see the current signature and the preview signature as the same thing (even though what you see in the box is what actually saved, and is now showing in my profile and on the forum). 

withMod.png

The Profile.template.php file was straightforward (I was using 2.0.18 edits) and it did fine.  The source file (Profile-Modify.php) had to be tweaked.  The first find string for the source file is actually
global $modSettings, $context, $txt, $cur_profile, $memberContext, $smcFunc;I replaced it with
global $modSettings, $context, $txt, $cur_profile, $memberContext, $smcFunc, $sourcedir;
The second edit is where I seem to have created a problem.  The "find" string is
$context['member']['signature'] = empty($cur_profile['signature']) ? '' : str_replace(array('<br>', '<br/>', '<br />', '<', '>', '"', '\''), array("\n", "\n", "\n", '&lt;', '&gt;', '&quot;', '&#039;'), $cur_profile['signature']);ADD AFTER
// Signature Area BBCode Buttons start
$modSettings['disable_wysiwyg'] = !empty($modSettings['disable_wysiwyg']) || empty($modSettings['enableBBC']);
require_once($sourcedir . '/Subs-Editor.php');
$editorOptions = array(
'id' => 'signature',
'value' => $context['member']['signature'],
'width' => '90%',
);
create_control_richedit($editorOptions);
$context['post_box_name'] = $editorOptions['id'];

  // Signature Area BBCode Buttons end
The issue I ran into was a white page because just before the "find" string there is this bit of existing code (affecting Preview):
if (empty($context['do_preview']))
Every validator I tried took issue with the "else" that comes just after where this mod's edits end.  The only way (for me, not for a coder) to get rid of the white page was not only to move that bit of code to just before "else" and to edit it to
if (empty($context['do_preview']));
So that entire section from the "find" string and past the "else" section now looks like this:
$context['member']['signature'] = empty($cur_profile['signature']) ? '' : str_replace(array('<br>', '<br/>', '<br />', '<', '>', '"', '\''), array("\n", "\n", "\n", '&lt;', '&gt;', '&quot;', '&#039;'), $cur_profile['signature']);
// Signature Area BBCode Buttons start
$modSettings['disable_wysiwyg'] = !empty($modSettings['disable_wysiwyg']) || empty($modSettings['enableBBC']);
require_once($sourcedir . '/Subs-Editor.php');
$editorOptions = array(
'id' => 'signature',
'value' => $context['member']['signature'],
'width' => '90%',
);
create_control_richedit($editorOptions);
$context['post_box_name'] = $editorOptions['id'];

  // Signature Area BBCode Buttons end
if (empty($context['do_preview']));
else
{
$signature = $_POST['signature'] = !empty($_POST['signature']) ? $smcFunc['normalize']($_POST['signature']) : '';
$validation = profileValidateSignature($signature);
if (empty($context['post_errors']))
{
loadLanguage('Errors');
$context['post_errors'] = array();
}
$context['post_errors'][] = 'signature_not_yet_saved';
if ($validation !== true && $validation !== false)
$context['post_errors'][] = $validation;

censorText($context['member']['signature']);
$context['member']['current_signature'] = $context['member']['signature'];
censorText($signature);
$context['member']['signature_preview'] = parse_bbc($signature, true, 'sig' . $memberContext[$context['id_member']], get_signature_allowed_bbc_tags());
$context['member']['signature'] = $_POST['signature'];
}

That has to be what's causing the Preview function to be misfiring.  Would you please explain why my edit broke it?  (I'm sorry to bother you with it, but at the same time, I'm very happy to have it working.  It's a great mod!)    :)
Title: Re: Signature Area BBCode Buttons
Post by: Grammy on February 17, 2025, 09:25:13 PM
 :) (Or any coder, really, who might want to weigh in?)   up.png

Thank you.
Title: Re: Signature Area BBCode Buttons
Post by: Grammy on February 18, 2025, 02:07:50 PM
I put the bit of code back where it was originally and now it validates as being correct, with no white page, but the mod still only previews the current signature and not the one you wish to change it to.  Not really optimistic about learning why this is, so I'll stop bothering you guys about it.  But anyway...  Here's what the entire section looks like, and the mod works on 2.1.4, if forum members don't mind the preview thing.  @vbgamer45

if (empty($context['do_preview'])) {
$context['member']['signature'] = empty($cur_profile['signature']) ? '' : str_replace(array('<br>', '<br/>', '<br />', '<', '>', '"', '\''), array("\n", "\n", "\n", '&lt;', '&gt;', '&quot;', '&#039;'), $cur_profile['signature']);
// Signature Area BBCode Buttons start
$modSettings['disable_wysiwyg'] = !empty($modSettings['disable_wysiwyg']) || empty($modSettings['enableBBC']);
require_once($sourcedir . '/Subs-Editor.php');
$editorOptions = array(
'id' => 'signature',
'value' => $context['member']['signature'],
'width' => '90%',
);
create_control_richedit($editorOptions);
$context['post_box_name'] = $editorOptions['id'];

  // Signature Area BBCode Buttons end
}
else
{
$signature = $_POST['signature'] = !empty($_POST['signature']) ? $smcFunc['normalize']($_POST['signature']) : '';
$validation = profileValidateSignature($signature);
if (empty($context['post_errors']))
{
loadLanguage('Errors');
$context['post_errors'] = array();
}
$context['post_errors'][] = 'signature_not_yet_saved';
if ($validation !== true && $validation !== false)
$context['post_errors'][] = $validation;

censorText($context['member']['signature']);
$context['member']['current_signature'] = $context['member']['signature'];
censorText($signature);
$context['member']['signature_preview'] = parse_bbc($signature, true, 'sig' . $memberContext[$context['id_member']], get_signature_allowed_bbc_tags());
$context['member']['signature'] = $_POST['signature'];
}

// Load the spell checker?
if ($context['show_spellchecking'])
loadJavaScriptFile('spellcheck.js', array('defer' => false, 'minimize' => true), 'smf_spellcheck');

return true;
}
Title: Re: Signature Area BBCode Buttons
Post by: vbgamer45 on February 19, 2025, 08:24:05 AM
Can you share the whole file?
Title: Re: Signature Area BBCode Buttons
Post by: Grammy on February 19, 2025, 09:01:52 AM
Quote from: vbgamer45 on February 19, 2025, 08:24:05 AMCan you share the whole file?

Yes, and thank you so much!  I'm attaching both the Profile-Modify.php and the Profile-template.php (just in case, ha).  Thank you so much for taking a look at them.   :)

(I don't know if this tells you anything but the other thing to notice is that when you go to your profile to change your existing signature, the current signature is already sitting in the post box, whether WYSIWYG is on (without tags, but with the effects of tags) or off (text surrounded by tags).  Should that box be empty, before putting anything in it?)
Title: Re: Signature Area BBCode Buttons
Post by: vbgamer45 on February 19, 2025, 03:30:10 PM
I think the issue is  with
Themes\default\scripts\profile.js(87): function ajax_getSignaturePreview (showPreview)


Since you are using the Editor the function to get the text from editor changes.
Title: Re: Signature Area BBCode Buttons
Post by: Grammy on February 19, 2025, 03:49:11 PM
Quote from: vbgamer45 on February 19, 2025, 03:30:10 PMI think the issue is  with
Themes\default\scripts\profile.js(87): function ajax_getSignaturePreview (showPreview)


Since you are using the Editor the function to get the text from editor changes.

To be honest, @vbgamer45 I'm not sure what to do.  Do you mean if (empty($context['do_preview'])) should be 'showPreview'?  I'm lost, I'm sorry.  You should see the wide-eyed expression on my face, ha!  I'm not near a mirror, but I can feel it!   :)
Title: Re: Signature Area BBCode Buttons
Post by: vbgamer45 on February 19, 2025, 03:50:17 PM
I thinking the issue is actually in javascript file Themes\default\scripts\profile.js

in the fucntion
function ajax_getSignaturePreview (showPreview)


Not anything in PHP side.

Title: Re: Signature Area BBCode Buttons
Post by: Grammy on February 19, 2025, 03:53:53 PM
Quote from: vbgamer45 on February 19, 2025, 03:50:17 PMI thinking the issue is actually in javascript file Themes\default\scripts\profile.js

in the fucntion
function ajax_getSignaturePreview (showPreview)


Not anything in PHP side.



@vbgamer45   

Oh, I see what you mean.  Would I need to be asking this in the 2.1 support topic, then, if it's JS related, and not the PHP code?
Title: Re: Signature Area BBCode Buttons
Post by: vbgamer45 on February 19, 2025, 03:56:54 PM
It is a coding issue so probably not support forums
probably
SMF Coding and Discussion


Basically you want to get the value from the editor from javascript.
Title: Re: Signature Area BBCode Buttons
Post by: Grammy on February 19, 2025, 03:57:32 PM
Quote from: vbgamer45 on February 19, 2025, 03:56:54 PMIt is a coding issue so probably not support forums
probably
SMF Coding and Discussion


Basically you want to get the value from the editor from javascript.

Oh, I see.  Thank you so much for taking the time to look at it.    :)
Title: Re: Signature Area BBCode Buttons
Post by: Grammy on February 24, 2025, 01:46:01 PM
@vbgamer45 I asked at the coding board and live627 gave me the edits that fixed the conflict with the JS file.  So this makes the mod entirely compatible with 2.1.4 default, now (so happy)!

In Themes/default/Profile-template.php, find:

<textarea class="editor" onkeyup="calcCharLeft();" id="signature" name="signature" rows="5" cols="50">', $context['member']['signature'], '</textarea><br>';
Replace with:
';
                            // Signature Area BBCode Buttons start               

        // load the post variables
loadLanguage('Post');
   
                       
            echo'<div id="bbcBox_message"></div>';
    echo'<div id="smileyBox_message"></div>';
        //You know that on bryandeakin.com you can speak to some of the largest names of SMF History.
    echo template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');


// Signature Area BBCode Buttons end
       

In Sources/Profile-Modify.php find:

global $modSettings, $context, $txt, $cur_profile, $memberContext, $smcFunc;
Replace with:

global $modSettings, $context, $txt, $cur_profile, $memberContext, $smcFunc, $sourcedir;
Find:
if (empty($context['do_preview']))
Add after:
{
                            // Signature Area BBCode Buttons start           
        $modSettings['disable_wysiwyg'] = !empty($modSettings['disable_wysiwyg']) || empty($modSettings['enableBBC']);
    require_once($sourcedir . '/Subs-Editor.php');
    $editorOptions = array(
        'id' => 'signature',
        'value' => $context['member']['signature'],
        'width' => '90%',
    );
            add_integration_function('integrate_sceditor_options', 'signature_sce_options', false);
    create_control_richedit($editorOptions);
    $context['post_box_name'] = $editorOptions['id'];
   
    // Signature Area BBCode Buttons end       
               

Find: 
$context['member']['signature'] = empty($cur_profile['signature']) ? '' : str_replace(array('<br>', '<br/>', '<br />', '<', '>', '"', '\''), array("\n", "\n", "\n", '&lt;', '&gt;', '&quot;', '&#039;'), $cur_profile['signature']);
Add after:
}
At end of file, find:
?>
Add before:

function signature_sce_options(array &$sce_options): void
{
    $sce_options['autoUpdate'] = true;
}

The only thing I've noticed is that if you go back to change your signature again, you see html in the box, whether WYSIWYG is on or off, so something like:

<span style="color: limegreen;" class="bbc_color">Does this siggy change and does it preview?</span>
That's whether or not html is enabled in the settings.  But I just clear it all out and it's not a problem.

It's previewing and saving beautifully, with WYSIWYG on or off.  Thanks so much for a great mod!  :)
Title: Re: Signature Area BBCode Buttons
Post by: vbgamer45 on February 24, 2025, 02:19:05 PM
Perfect great job on the edits!!
Title: Re: Signature Area BBCode Buttons
Post by: DarkAngel612 on March 06, 2025, 12:47:25 PM
So do we use the installer then add the codes or just edit the files showing above with these codes?
Title: Re: Signature Area BBCode Buttons
Post by: vbgamer45 on March 06, 2025, 12:54:10 PM
Use edits above, haven't merged into main file yet... no time currently.
Title: Re: Signature Area BBCode Buttons
Post by: DarkAngel612 on March 06, 2025, 08:56:53 PM
ok will do. thanks
Title: Re: Signature Area BBCode Buttons
Post by: DarkAngel612 on March 07, 2025, 02:28:41 PM
I was just wondering, after installling the text into the 2 files, when entering the code [bbc code] into the box then hitting preview, it changes to html text and yes if you redo anythig you have to redo the code by removing the one and re-entering it. Is that right?
Title: Re: Signature Area BBCode Buttons
Post by: Grammy on March 10, 2025, 05:49:41 PM
Quote from: DarkAngel612 on March 07, 2025, 02:28:41 PMI was just wondering, after installling the text into the 2 files, when entering the code [bbc code] into the box then hitting preview, it changes to html text and yes if you redo anythig you have to redo the code by removing the one and re-entering it. Is that right?

What I find is that I can either have WYSIWYG on or off, and it does very well either way, but html tags don't appear in the post box until I save the signature.  In other words, I don't see the tags when I preview, but I do after I save it.  When I return later to maybe change the signature, the tags are still in the box, and I just delete them and start fresh. 
Title: Re: Signature Area BBCode Buttons
Post by: DarkAngel612 on March 11, 2025, 12:22:32 PM
I see the html tags in there when previewing the signature in profile or if I forget and just save it as is and then go to my post and there is the html code peeking out...LOL

Ithink its a bother to have to choose to do bbc code and it change it to html and if the people don't know then they will think they broke something...???
Title: Re: Signature Area BBCode Buttons
Post by: Speed King on March 11, 2025, 01:59:26 PM
Just applied changes above to my 2.1.4 test forum, it seems to work fine, but disabled BBC buttons still appear to signature area  :-\

I have disabled "Youtube" BBC in Admin => Configuration => Features and Options => Signatures
but this button appears in toolbar