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
Very cool! Thanks for doing this, have been waiting for a while, works great! Even on custom themes.
8)
Very nice profile enhancement. Great mod indeed thanks. ;D ;)
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.
I think you have it all covered for a basic user! Thats the perfect set.
yeah thats it... thanx...
thanxs for this one. great mod!
Will this work for 1.1?
yes
tested for 1.1 and 1.1.1 on 06/01/2007. Works *Updated
Very cool, thank you! 8)
Yes, very nice. Thanks!
Nice ! thank you :) really easy to install and functional :]
Installed and working perfect.Thanks.
Thanks for the comments
please update to 1.1.2
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
Excellent Mod,thanks so much. ;)
any chance of adding size, colour and font into this?
Does the track for me, so thumbs up.
~joey
when I get the chance. I'll add it for the next version. At the moment I'm working on another major mod.
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.
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.
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.
How to use (//)? Where / How should the picture be uploaded to?
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.
Ok but usually where should I put images to (where should I keep my signature's picture). Just asking a suggestion.
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]
Ok, thank you.
1.5 - 30th November 2007
o Re-packaged mod
o Improved the readme.
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. :)
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.
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
I am going to use this mod.
cool. best of luck with it falguni1
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)
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
Profile.template.php
Remove the line
'ftp' => array('code' => 'ftp', 'before' => '[ftp]', 'after' => '[/ftp]', 'description' => $txt[434]),
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
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.
thank you, much thanks.
+1 internet for the karlbenson
Peace,
Brandon
I'm glad I could help you [KS]Bane-o
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
wot is difference between bar and button.
I've described the row of Buttons as a bar.
But some people didnt understand it, so I renamed the mod.
I downloaded the button mod I think both are latest.
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.
good mod very nice :)
Nice mod. Works great for us, thanks!
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
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]),
);
ok thanks karl. sorry for the bolding, i wasn't mad, i was just trying to get a better chance at it getting noticed.
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.
Sweet Karl another one of your nixxle mods thank you, works like a charm!
Work perfectly with SMF 2.0 Beta 3.1 too
Thx Karl :)
Will this work whit 2.x?
And if not, will it do in the future?
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
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 !
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
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!
My posters love this mod. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereitestmystuff.com%2Fimages%2Fthumb.gif&hash=fbe057efff6d88bc8293617d752cf12a98abaa09)
wow.. good job.. my friend..
Good thinking! Thanks for the Mod!!
Do you have to uninstall the old version before installing the new version?
Sheryl
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 ;)
Thanks.
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]
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!
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
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!
OK. Thanks.
I was afraid I did something wrong.
Sheryl
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.
Gracias, lo acabo de instalar en 1.1.11 y funciona perfecto.
Se agradece ;)
gracias, que bueno que te haya gustado ;)
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 ;)
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 ;)
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
drhamza, in your ./Sources/Profile-Modify.php file:
$modSettings['disable_wysiwyg'] = !empty($modSettings['disable_wysiwyg']) || empty($modSettings['enableBBC']);
$modSettings['disable_wysiwyg'] = true;
thanks, but i couldn't find the line, i couldn't even find "wysiwyg" in the whole document
will you please attach your /Sources/Profile-Modify.php
and sure, I will check that, is probably better to have it off
thanks
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
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
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
perfect, thanks a million, it's working now :D
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?
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
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
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
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.
yeah, the mod doesn't work properly with the WYSIWYG editor, I will release another version with the editor off all the time.
Well, I will be waiting :P
Thank you 130860 :)
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.
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.
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:
$modSettings['disable_wysiwyg'] = !empty($modSettings['disable_wysiwyg']) || empty($modSettings['enableBBC']);
$modSettings['disable_wysiwyg'] = true;
I need wysiwyg
What I am unable to do is:
Signature doesn't show up in posts.
can u fix this.
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
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: 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.
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.
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
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:
$modSettings['disable_wysiwyg'] = !empty($modSettings['disable_wysiwyg']) || empty($modSettings['enableBBC']);
$modSettings['disable_wysiwyg'] = true;
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
click the (https://www.simplemachines.org/community/Themes/default/images/bbc/toggle.gif) again, it will come back to the normal view
: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?
no
:( ok, sorry.
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?
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)
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 :)
I love this mod, but hmmm ... some update for RC4? please :'( :'( i need this .. please :'(
done
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.
@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:
$modSettings['disable_wysiwyg'] = !empty($modSettings['disable_wysiwyg']) || empty($modSettings['enableBBC']);
$modSettings['disable_wysiwyg'] = true;
Please update your archive settings for the final version 2.0 (http://custom.simplemachines.org/mods/index.php?mod=450)
Thank you.
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?
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.
did you emulate the mod?
since i posted the above i've tried that emulation technique and it works for me now. sorry, should have updated earlier!
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?
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."
:(
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?
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? ???
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) ;)
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.
try using 2.0 in emulate.
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
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..
mod has been updated!
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
nope sorry, does it give any errors in your error log.
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.
ive not done anything to it for 1.1.x line ... maybe I will remove that from it :)
That would work. :D
Any new fix to work with WYSIWYG
Waiting...
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
Just linking my question in here as suggested:
http://www.simplemachines.org/community/index.php?topic=541704.0
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? :)
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
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. :-\
just saw that this says it was last updated on march 2nd, anything new?
I don't remember might be just be SMF support version change.
:laugh: thanks, just wanted to check
2.1.3 upgrade 🤞🏻
[Sorry, I've only just found this, but it would be super useful]
@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", '<', '>', '"', '''), $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", '<', '>', '"', '''), $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!) :)
:) (Or any coder, really, who might want to weigh in?) up.png
Thank you.
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", '<', '>', '"', '''), $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;
}
Can you share the whole file?
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?)
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.
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! :)
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.
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?
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.
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. :)
@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", '<', '>', '"', '''), $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! :)
Perfect great job on the edits!!
So do we use the installer then add the codes or just edit the files showing above with these codes?
Use edits above, haven't merged into main file yet... no time currently.
ok will do. thanks
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?
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.
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...???
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