News:

Wondering if this will always be free?  See why free is better.

Main Menu

SmileyLimit

Started by snork13, August 22, 2006, 08:53:53 AM

Previous topic - Next topic

AlenNS

#60
SMF 2.0 Beta 4
Installed and work fine by now. :)
I've set 15 smileys limit.

Here is translation on serbian cyrilic and latin:

Post.serbian-utf8.php

$txt['error_smiley_limit'] = 'Дозвољени број смајлија по поруци је '. $modSettings['smileyNumber'] .'. Уклоните вишак и покушајте поново. Хвала';

Post.serbianl-utf8.php

$txt['error_smiley_limit'] = 'Dozvoljeni broj smajlija po poruci je '. $modSettings['smileyNumber'] .'. Uklonite višak i pokušajte ponovo. Hvala';


ManageSmileys.serbian-utf8.php

$txt['setting_smileyNumber'] = 'Унесите број дозвољених смајлија по поруци';

ManageSmileys.serbianl-utf8.php

$txt['setting_smileyNumber'] = 'Unesite broj dozvoljenih smajlija po poruci';

Kimmie

#61
Quote from: snork13 on January 27, 2009, 03:48:32 PM
Quote from: Kimmie on August 30, 2008, 10:18:43 PM
I found a glitch hehehe. It treats the code and hide tags as smileys. I have mine set up to limit it to 3 smileys per post. I just tried to make a post on my site that had more than 3 sets of code and hide tags - there were NO smileys in the post whatsoever - and it would not let me post it. I received the message that I was only allowed 3 smileys per post and to go back and remove some of them. The minute I removed all the code and hide tags except for 3 (of each), it let me make the post.

(I use the code tags inside of my hide tags)


How do we fix this?

it has something to do with the hide tag mod, you will need to direct your question to the author of that modification. The code tag work just fine on my test forum.

-snork13



Wouldnt it be a problem on this mods end since its this mod that is thinking that the hide tags are smileys? I would think that this mod needs to be adjusted so that it knows not to consider those tags (or any other tags for that matter) as smileys. I have no problems with the Hide Mod.

This mod should also not consider the "code" tag as a smiley either, as you mentioned. Smileys are not in "code" format. Their generally typed in as characters such as:

:)


snork13

Quote from: Kimmie on January 28, 2009, 03:45:58 AM
Quote from: snork13 on January 27, 2009, 03:48:32 PM
Quote from: Kimmie on August 30, 2008, 10:18:43 PM
I found a glitch hehehe. It treats the code and hide tags as smileys. I have mine set up to limit it to 3 smileys per post. I just tried to make a post on my site that had more than 3 sets of code and hide tags - there were NO smileys in the post whatsoever - and it would not let me post it. I received the message that I was only allowed 3 smileys per post and to go back and remove some of them. The minute I removed all the code and hide tags except for 3 (of each), it let me make the post.

(I use the code tags inside of my hide tags)


How do we fix this?

it has something to do with the hide tag mod, you will need to direct your question to the author of that modification. The code tag work just fine on my test forum.

-snork13



Wouldnt it be a problem on this mods end since its this mod that is thinking that the hide tags are smileys? I would think that this mod needs to be adjusted so that it knows not to consider those tags (or any other tags for that matter) as smileys. I have no problems with the Hide Mod.

This mod should also not consider the "code" tag as a smiley either, as you mentioned. Smileys are not in "code" format. Their generally typed in as characters such as:

:)



I know what a smiley is. I used the code tag when testing and had no problems.

-snork13

Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Kimmie

#63
Quote from: snork13 on January 28, 2009, 09:07:08 AM
Quote from: Kimmie on January 28, 2009, 03:45:58 AM
Quote from: snork13 on January 27, 2009, 03:48:32 PM
Quote from: Kimmie on August 30, 2008, 10:18:43 PM
I found a glitch hehehe. It treats the code and hide tags as smileys. I have mine set up to limit it to 3 smileys per post. I just tried to make a post on my site that had more than 3 sets of code and hide tags - there were NO smileys in the post whatsoever - and it would not let me post it. I received the message that I was only allowed 3 smileys per post and to go back and remove some of them. The minute I removed all the code and hide tags except for 3 (of each), it let me make the post.

(I use the code tags inside of my hide tags)


How do we fix this?

it has something to do with the hide tag mod, you will need to direct your question to the author of that modification. The code tag work just fine on my test forum.

-snork13



Wouldnt it be a problem on this mods end since its this mod that is thinking that the hide tags are smileys? I would think that this mod needs to be adjusted so that it knows not to consider those tags (or any other tags for that matter) as smileys. I have no problems with the Hide Mod.

This mod should also not consider the "code" tag as a smiley either, as you mentioned. Smileys are not in "code" format. Their generally typed in as characters such as:

:)



I know what a smiley is. I used the code tag when testing and had no problems.

-snork13



I dont have an issue with "just" the code tags either, it happens when the hide tags are used in conjuntion with the code tags. Its either the hide tag this mod is not compatible with, or the issue could be with nested tags - which is the code tags inside the hide tags. The author of the Hide Tag mod is checking it to see what he can come up with as well. I dont think the hide tag mod is the problem because I dont have any issues with that mod at all. I think that this mod just needs to have the hide tag issue incorporated into it somehow so that it no longer thinks their smileys.


snork13

Quote from: Kimmie on January 28, 2009, 11:41:33 PM
Quote from: snork13 on January 28, 2009, 09:07:08 AM
Quote from: Kimmie on January 28, 2009, 03:45:58 AM
Quote from: snork13 on January 27, 2009, 03:48:32 PM
Quote from: Kimmie on August 30, 2008, 10:18:43 PM
I found a glitch hehehe. It treats the code and hide tags as smileys. I have mine set up to limit it to 3 smileys per post. I just tried to make a post on my site that had more than 3 sets of code and hide tags - there were NO smileys in the post whatsoever - and it would not let me post it. I received the message that I was only allowed 3 smileys per post and to go back and remove some of them. The minute I removed all the code and hide tags except for 3 (of each), it let me make the post.

(I use the code tags inside of my hide tags)


How do we fix this?

it has something to do with the hide tag mod, you will need to direct your question to the author of that modification. The code tag work just fine on my test forum.

-snork13



Wouldnt it be a problem on this mods end since its this mod that is thinking that the hide tags are smileys? I would think that this mod needs to be adjusted so that it knows not to consider those tags (or any other tags for that matter) as smileys. I have no problems with the Hide Mod.

This mod should also not consider the "code" tag as a smiley either, as you mentioned. Smileys are not in "code" format. Their generally typed in as characters such as:

:)



I know what a smiley is. I used the code tag when testing and had no problems.

-snork13



I dont have an issue with "just" the code tags either, it happens when the hide tags are used in conjuntion with the code tags. Its either the hide tag this mod is not compatible with, or the issue could be with nested tags - which is the code tags inside the hide tags. The author of the Hide Tag mod is checking it to see what he can come up with as well. I dont think the hide tag mod is the problem because I dont have any issues with that mod at all. I think that this mod just needs to have the hide tag issue incorporated into it somehow so that it no longer thinks their smileys.



There are a lot of modification that don't work together. You can't expect each author to write work around for other modifications, there are just to many modifications.

-snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Kimmie

#65
True, but I had to get to the bottom of the issue (plus another issue I believed was linked to this mod) regardless. It also doesnt happen as often as you think it does. I have 60+ mods on my site and until now I have never had a problem with any of them conflicting. I found out that this mod is apparently not compatible with many mods which is unfortunate. I was also having a problem with Zero Sized Reply Errors - and after looking into all possible causes, i determined that they were also linked to the issue with this mod thinking that code and hide tags were also smileys and there is also a conflict between this mod and the VReport Mod (all of the issues ended up being related to one another). The errors were happening on threads that were already posted on my site before I installed this mod - that contained more than the 3 smileys and code/hide tags combined and when one of those threads got reported, both the report thread and the actual topic were no longer viewable because they then started having that error. After uninstalling this mod, I no longer have either issue.

Now, with all the above being said..lol, I can certainly understand that it would be time consuming to try and make your mod compatible with anyone elses, and its entirely up to you if you decide to spend the time doing it, however, keep in mind that any time you create a mod, this is an issue that you take the risk of running into, so you should already be prepared for that. You should also be prepared to "support" any mod you create as well.

In the case of this issue, there are actually 3 mods involved and I do not expect you or the other 2 mod creators to make them all compatible just for little old me. I dont need this mod that bad, and that would be expecting too much especially seeing it took me 6 months to even get a response out of you on this problem.  ;D. Thanks for atleast taking the time to respond letting me know in a round about way, that you have no intention of updating the mod. I can now go on and mark this issue resolved. :)


candidosa2

nice work
when update dont forget update portuguese and brazilian

smf1.1.x
<file name="$themedir/languages/ManageSmileys.portuguese_pt.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['smileyMod'] = 'Digite o n&uacute;mero de smileys permitido';]]></add>
</operation>
</file>
<file name="$themedir/languages/ManageSmileys.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['smileyMod'] = 'Digite o n&uacute;mero de smileys permitido';]]></add>
</operation>
</file>
<file name="$themedir/languages/ManageSmileys.portuguese_brazilian.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['smileyMod'] = 'Digite o n&uacute;mero de smileys permitido';]]></add>
</operation>
</file>
<file name="$themedir/languages/ManageSmileys.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['smileyMod'] = 'Digite o n&uacute;mero de smileys permitido';]]></add>
</operation>
</file>


<file name="$themedir/languages/Post.portuguese_pt.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['error_smiley_limit'] = 'Voc&ecirc; pode adicionar '. $modSettings['smileyNumber'] .' smilies por poste. Remova alguns smilies e tente novamente.';]]></add>
</operation>
</file>
<file name="$themedir/languages/Post.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['error_smiley_limit'] = 'Voc&ecirc; pode adicionar '. $modSettings['smileyNumber'] .' smilies por poste. Remova alguns smilies e tente novamente.';]]></add>
</operation>
</file>
<file name="$themedir/languages/Post.portuguese_brazilian.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['error_smiley_limit'] = 'Voc&ecirc; pode adicionar '. $modSettings['smileyNumber'] .' smilies por poste. Remova alguns smilies e tente novamente.';]]></add>
</operation>
</file>
<file name="$themedir/languages/Post.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['error_smiley_limit'] = 'Voc&ecirc; pode adicionar '. $modSettings['smileyNumber'] .' smilies por poste. Remova alguns smilies e tente novamente.';]]></add>
</operation>
</file>



smf 2.x

<file name="$themedir/languages/ManageSmileys.portuguese_pt.php" error="skip">
<operation>
<search position="before"><![CDATA[$txt['setting_smileys_dir'] = 'Caminho absoluto para todos os conjuntos de smiley definidos';]]></search>
<add><![CDATA[
$txt['setting_smileyNumber'] = 'Digite o n&uacute;mero de smileys permitido';]]></add>
</operation>
</file>
<file name="$themedir/languages/ManageSmileys.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="before"><![CDATA[$txt['setting_smileys_dir'] = 'Caminho absoluto para todos os conjuntos de smiley definidos';]]></search>
<add><![CDATA[
$txt['setting_smileyNumber'] = 'Digite o n&uacute;mero de smileys permitido';]]></add>
</operation>
</file>
<file name="$themedir/languages/ManageSmileys.portuguese_brazilian.php" error="skip">
<operation>
<search position="before"><![CDATA[$txt['setting_smileys_dir'] = 'Caminho absoluto para todos os conjuntos de smiley definidos';]]></search>
<add><![CDATA[
$txt['setting_smileyNumber'] = 'Digite o n&uacute;mero de smileys permitido';]]></add>
</operation>
</file>
<file name="$themedir/languages/ManageSmileys.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="before"><![CDATA[$txt['setting_smileys_dir'] = 'Caminho absoluto para todos os conjuntos de smiley definidos';]]></search>
<add><![CDATA[
$txt['setting_smileyNumber'] = 'Digite o n&uacute;mero de smileys permitido';]]></add>
</operation>
</file>



<file name="$themedir/languages/Post.portuguese_pt.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['error_smiley_limit'] = 'Voc&ecirc; pode adicionar '. $modSettings['smileyNumber'] .' smilies por poste. Remova alguns smilies e tente novamente.';]]></add>
</operation>
</file>
<file name="$themedir/languages/Post.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['error_smiley_limit'] = 'Voc&ecirc; pode adicionar '. $modSettings['smileyNumber'] .' smilies por poste. Remova alguns smilies e tente novamente.';]]></add>
</operation>
</file>
<file name="$themedir/languages/Post.portuguese_brazilian.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['error_smiley_limit'] = 'Voc&ecirc; pode adicionar '. $modSettings['smileyNumber'] .' smilies por poste. Remova alguns smilies e tente novamente.';]]></add>
</operation>
</file>
<file name="$themedir/languages/Post.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['error_smiley_limit'] = 'Voc&ecirc; pode adicionar '. $modSettings['smileyNumber'] .' smilies por poste. Remova alguns smilies e tente novamente.';]]></add>
</operation>
</file>

whatnow

#67
I installed this mod and at first it did not work, so I checked all the files that it uses and some of the coding seemed to be missing.

It seems now that I have two lines in Smiley Settings to change how many smileys I can allow.  How do I get the additional line out and even if I change it from 5 to 6 or anything else, it stays at 5 ...


I also have another question.. On the first file to change the Post.php there are two spots where this coding shows up:


$_POST['message'] = $func['htmlspecialchars']($_POST['message'], ENT_QUOTES);




Are we suppose to add  this coding to  to both places on the Post.php ????


         if (isset($_POST['message']))
   {
      $smileyLimit = $modSettings['smileyNumber'];

      $prev = substr_count($_POST['message'], '[img') + substr_count($_POST['message'], '[IMG');
      $tempmsg = doUBBC($_POST['message'], true);
      if (substr_count($tempmsg, '<img') > ($prev + $smileyLimit))
         $post_errors[] = 'smiley_limit';
   }


Thanks for your help.


whatnow

#68
I still cannot change smiley limit from 5 to any other number. Anyone have any idea what file needs to be changed to allow more than five smileys to be used?  Or some other setting in Admin.  I am trying to change it from the Settings section.

Thanks

snork13

Quote from: GrannyD on May 26, 2009, 07:34:02 AM
I still cannot change smiley limit from 5 to any other number. Anyone have any idea what file needs to be changed to allow more than five smileys to be used?  Or some other setting in Admin.  I am trying to change it from the Settings section.

Thanks
Granny

you change it in the admin section. if your missing the option then something went wrong when installing.

-snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

whatnow

It's there but it won't let me change it from 5 ... I think it's a permission issue?  but what file needs to be set to 777 in order to change anything in Admins>Smileys>Settings ?

snork13

Quote from: GrannyD on May 26, 2009, 09:28:25 AM
It's there but it won't let me change it from 5 ... I think it's a permission issue?  but what file needs to be set to 777 in order to change anything in Admins>Smileys>Settings ?

that doesn't matter. the number is set in the database and called.

-snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

whatnow

Well, I looked in the database and there is not a table called smileynumber.  What do I have to do, to set that up?

snork13

Quote from: GrannyD on May 26, 2009, 11:09:21 AM
Well, I looked in the database and there is not a table called smileynumber.  What do I have to do, to set that up?

run the add_settings file from the root of the forum via a browser. Make sure you choose the file for your forum version.

-snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

whatnow

#74
I did run add_settings and tried to change from the #5 that is listed and it still will not change.

Thanks

snork13

Quote from: GrannyD on May 26, 2009, 12:12:55 PM
I did run add_settings and tried to change from the #5 that is listed and it still will not change.

Thanks
Granny

can you confirm the column got added to the table.

-snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

whatnow

Yes, I see it there now and it's on 5 ... what should I put it on so that I can change to anything I want at anytime through Admin, so that I don't have to always go back to the database to do it?

snork13

Quote from: GrannyD on May 26, 2009, 12:35:44 PM
Yes, I see it there now and it's on 5 ... what should I put it on so that I can change to anything I want at anytime through Admin, so that I don't have to always go back to the database to do it?

I would double check the file ManageSmileys.template.php, it's the files that send that info to the database.

-snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

whatnow

Thanks snork  :D  everything is working fine now.   Thank you for developing this mod, it's great for those who can't control themselves with adding smileys.

snork13

Quote from: GrannyD on May 27, 2009, 07:34:07 AM
Thanks snork  :D  everything is working fine now.   Thank you for developing this mod, it's great for those who can't control themselves with adding smileys.

No problem at all, glad it works.

-snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Advertisement: