yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.5
- viet4777
- Joomla! Explorer
- Posts: 321
- Joined: Sat May 20, 2006 10:02 am
- Location: Hà thành
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Before I asked, I try all configurations for plugin! You can see the attached above image for plugin configuration .
It seems that only all articles will be controlled by yvsmilley plugin or not!
It seems that only all articles will be controlled by yvsmilley plugin or not!
http://kythuatvatlieu.org
http://kulkul.luyenkim.org
The 1st Vietnamse Portal in Metallurgy and Materials Technology
Sắt thép, nhiệt luyện, cán kéo kim loại, thiêu kết, mô phỏng, thí nghiệm, kiểm tra vật liệu, vô định hình, đúc hợp kim, tinh luyện
http://kulkul.luyenkim.org
The 1st Vietnamse Portal in Metallurgy and Materials Technology
Sắt thép, nhiệt luyện, cán kéo kim loại, thiêu kết, mô phỏng, thí nghiệm, kiểm tra vật liệu, vô định hình, đúc hợp kim, tinh luyện
- viet4777
- Joomla! Explorer
- Posts: 321
- Joined: Sat May 20, 2006 10:02 am
- Location: Hà thành
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Because my website is a demo!
I put comment in section with id=5 and I do not care smileys appear it other sections. Maybe, you test on your sections and it works as you said.
But, the other component, i.e. com_vnnews, yvsmileys will replace smiley TAG com_vnnews's content if "Enable Smiley replacements for the whole page (even here:)" is on.
If I turn this option off, the comment in section id=5 and other com also are off and, then Other options is not active (change it do not see any smiley).
http://kulkul.xahoihoctap.net/index.php ... /3B9FF76D/
I put comment in section with id=5 and I do not care smileys appear it other sections. Maybe, you test on your sections and it works as you said.
But, the other component, i.e. com_vnnews, yvsmileys will replace smiley TAG com_vnnews's content if "Enable Smiley replacements for the whole page (even here:)" is on.
If I turn this option off, the comment in section id=5 and other com also are off and, then Other options is not active (change it do not see any smiley).
http://kulkul.xahoihoctap.net/index.php ... /3B9FF76D/
http://kythuatvatlieu.org
http://kulkul.luyenkim.org
The 1st Vietnamse Portal in Metallurgy and Materials Technology
Sắt thép, nhiệt luyện, cán kéo kim loại, thiêu kết, mô phỏng, thí nghiệm, kiểm tra vật liệu, vô định hình, đúc hợp kim, tinh luyện
http://kulkul.luyenkim.org
The 1st Vietnamse Portal in Metallurgy and Materials Technology
Sắt thép, nhiệt luyện, cán kéo kim loại, thiêu kết, mô phỏng, thí nghiệm, kiểm tra vật liệu, vô định hình, đúc hợp kim, tinh luyện
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
As I can see, we won't understand each other until you give me admin password to your site... or you have to look into yvSmiley's code, debug it and find the cause of the problem yourself...viet4777 wrote:Because my website is a demo!
I put comment in section with id=5 and I do not care smileys appear it other sections.
- viet4777
- Joomla! Explorer
- Posts: 321
- Joined: Sat May 20, 2006 10:02 am
- Location: Hà thành
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
I send you an admin acc.
Here is the instance of yvcomment:
http://kulkul.xahoihoctap.net/index.php ... mitstart=2
Other component, yvsmileys still is on on this component (the image attachment):
http://kulkul.xahoihoctap.net/index.php ... /3B9FF76D/
I wish yvsmiley acts only on section ID, not other components.
Thanks
Here is the instance of yvcomment:
http://kulkul.xahoihoctap.net/index.php ... mitstart=2
Other component, yvsmileys still is on on this component (the image attachment):
http://kulkul.xahoihoctap.net/index.php ... /3B9FF76D/
I wish yvsmiley acts only on section ID, not other components.
Thanks
You do not have the required permissions to view the files attached to this post.
http://kythuatvatlieu.org
http://kulkul.luyenkim.org
The 1st Vietnamse Portal in Metallurgy and Materials Technology
Sắt thép, nhiệt luyện, cán kéo kim loại, thiêu kết, mô phỏng, thí nghiệm, kiểm tra vật liệu, vô định hình, đúc hợp kim, tinh luyện
http://kulkul.luyenkim.org
The 1st Vietnamse Portal in Metallurgy and Materials Technology
Sắt thép, nhiệt luyện, cán kéo kim loại, thiêu kết, mô phỏng, thí nghiệm, kiểm tra vật liệu, vô định hình, đúc hợp kim, tinh luyện
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
What I did as an admin:viet4777 wrote:I send you an admin acc.
Here is the instance of yvcomment:
http://kulkul.xahoihoctap.net/index.php ... mitstart=2
Other component, yvsmileys still is on on this component (the image attachment):
http://kulkul.xahoihoctap.net/index.php ... /3B9FF76D/
I wish yvsmiley acts only on section ID, not other components.
yvSmiley config:
1. "Enable Smiley replacements for the whole page..." changed to "No"
yvComment config:
1. "Execute content plugins" changed to "Yes"
---
Then I added one comment for the test... (and published it from the backend)
What we have now:
1. There are no smileys in the article of other section:
The article from other section
2. There are smileys in the comment, if we look at it as an article:
Comment as an article
3. There are smileys in in comments of the article, see:
Article with comments with smileys
It seems to me, that everything is Ok. Is it what you want?
- viet4777
- Joomla! Explorer
- Posts: 321
- Joined: Sat May 20, 2006 10:02 am
- Location: Hà thành
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Yes! It works as my wish!
Thank you very much for your kind help!
The strange is, your configuration is the same as I done in the post http://forum.joomla.org/posting.php?mod ... #pr1212014:
But your configuration works , maybe the cache in Joomla 1.5 or something else!
Thank you again!
Viet
Thank you very much for your kind help!
The strange is, your configuration is the same as I done in the post http://forum.joomla.org/posting.php?mod ... #pr1212014:
But your configuration works , maybe the cache in Joomla 1.5 or something else!
Thank you again!
Viet
http://kythuatvatlieu.org
http://kulkul.luyenkim.org
The 1st Vietnamse Portal in Metallurgy and Materials Technology
Sắt thép, nhiệt luyện, cán kéo kim loại, thiêu kết, mô phỏng, thí nghiệm, kiểm tra vật liệu, vô định hình, đúc hợp kim, tinh luyện
http://kulkul.luyenkim.org
The 1st Vietnamse Portal in Metallurgy and Materials Technology
Sắt thép, nhiệt luyện, cán kéo kim loại, thiêu kết, mô phỏng, thí nghiệm, kiểm tra vật liệu, vô định hình, đúc hợp kim, tinh luyện
-
- Joomla! Fledgling
- Posts: 4
- Joined: Thu May 22, 2008 9:08 pm
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Hi,
I use Joomla 1.5.3 in Legacy Mode
I downlad http://yurivolkov.com/Joomla/yvSmiley/yvSmiley.zip
When I upload it in my BackEnd, I have this simple message :
Erreur : Impossible de trouver un fichier XML d'installation dans ce pack!
Could you help me ?
Thanks
I use Joomla 1.5.3 in Legacy Mode
I downlad http://yurivolkov.com/Joomla/yvSmiley/yvSmiley.zip
When I upload it in my BackEnd, I have this simple message :
Erreur : Impossible de trouver un fichier XML d'installation dans ce pack!
Could you help me ?
Thanks
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Please, unzip from yvSmiley.zip "installable package" (with name "yvSmileyPluginX.XX.XXX.zip") and then install it.m0nb0f wrote:Hi,
I use Joomla 1.5.3 in Legacy Mode
I downlad http://yurivolkov.com/Joomla/yvSmiley/yvSmiley.zip
When I upload it in my BackEnd, I have this simple message :
Erreur : Impossible de trouver un fichier XML d'installation dans ce pack!
Could you help me ?
Thanks
-
- Joomla! Fledgling
- Posts: 4
- Joined: Thu May 22, 2008 9:08 pm
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Oups, sorry : I didn't see that there are a zip into a zip...
Thanks a lot, it's work !
Thanks a lot, it's work !
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Jun 23, 2008 10:47 pm
Re: Problem with Version 1.03.0
Hi,
i have a problem with your great extension.
I can't describe so see yourself This message is shown on every page of the backend. I think it is not normal so what i have done wrong?
Sry 4 my bad English
thanks Error404
i have a problem with your great extension.
I can't describe so see yourself This message is shown on every page of the backend. I think it is not normal so what i have done wrong?
Sry 4 my bad English
thanks Error404
You do not have the required permissions to view the files attached to this post.
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: Problem with Version 1.03.0
Hi! This is special debugging message of yvSmiley.error404v2 wrote:Hi,
I can't describe so see yourself This message is shown on every page of the backend. I think it is not normal so what i have done wrong?
Please turn off 'Debugging mode' option to get rid of it
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Jun 23, 2008 10:47 pm
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Thanks, i thought i have disabled the debugging mode already but this was the misstake
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Nov 07, 2008 5:59 pm
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
I've tried to add the amsn smileys but get the following error:
# XML Parsing Error at 5:50. Error 4: not well-formed (invalid token)
# "smileys" element not found in aMSN SmileSet file ?? Maybe this is wrong XML file?
Smiley set file="/home1/popymcom/public_html/plugins/system/yvsmiley/settings.xml"
I've tried it with the entire amsn file directory intact as well as just the smileys folder and settings.xml file
I'd really like to use that set but it won't work properly!
# XML Parsing Error at 5:50. Error 4: not well-formed (invalid token)
# "smileys" element not found in aMSN SmileSet file ?? Maybe this is wrong XML file?
Smiley set file="/home1/popymcom/public_html/plugins/system/yvsmiley/settings.xml"
I've tried it with the entire amsn file directory intact as well as just the smileys folder and settings.xml file
I'd really like to use that set but it won't work properly!
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
This error means, that this aMSN xml file needs to be fixed. You may even try to open it with e.g. Internet explorer to see some similar error report... This was discussed earlier in this thread (in February 2008).dregitz wrote:I've tried to add the amsn smileys but get the following error:
# XML Parsing Error at 5:50. Error 4: not well-formed (invalid token)
# "smileys" element not found in aMSN SmileSet file ?? Maybe this is wrong XML file?
Smiley set file="/home1/popymcom/public_html/plugins/system/yvsmiley/settings.xml"
Good luck.
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
- KurtSteiner
- Joomla! Intern
- Posts: 70
- Joined: Fri Feb 10, 2006 2:45 am
- Location: Hanover, Germany
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Hello Yuri,
i found your yvsmilies because of implementig the Ajax shoutbox which is supporting your plugin
I got it working (for one day) and was totally happy - many thanks for your fantastic work and genius idea for this.
Unfortunatly i had made some changes (to have less smileys) so i touched my csv and can´t get it to work again - hope that you can give me a hint where i can search for my failure.
I´m using Joomla 1.5.8 in legacy mode and yvSmileyPlugin1.03.001.zip
Parameters in Backend:
1.) set to CSV
2.) path to file /images/smilies/mg.csv 3.) as you see here, the plug IS WORKING !!! but now only replace the code with my explanation (in this case "Grinsen") in my file and not with the image.
Unnecessary to say that the image is still in that same folder as you can see here
http://www.movegreen.de/images/smilies/smile.gif
Surely enought - it cant be a big thing, but i´m sitting to near to figure it out - a hint would be helpfull.
i found your yvsmilies because of implementig the Ajax shoutbox which is supporting your plugin
I got it working (for one day) and was totally happy - many thanks for your fantastic work and genius idea for this.
Unfortunatly i had made some changes (to have less smileys) so i touched my csv and can´t get it to work again - hope that you can give me a hint where i can search for my failure.
I´m using Joomla 1.5.8 in legacy mode and yvSmileyPlugin1.03.001.zip
Parameters in Backend:
1.) set to CSV
2.) path to file /images/smilies/mg.csv 3.) as you see here, the plug IS WORKING !!! but now only replace the code with my explanation (in this case "Grinsen") in my file and not with the image.
Code: Select all
":)";Grinsen;/images/smilies/smile.gif,
http://www.movegreen.de/images/smilies/smile.gif
Surely enought - it cant be a big thing, but i´m sitting to near to figure it out - a hint would be helpfull.
You do not have the required permissions to view the files attached to this post.
Sunny regards
Kurt Steiner aka Bernd
-------------------------------------------
http://www.movegreen.de
Business Club for renewable energy
Kurt Steiner aka Bernd
-------------------------------------------
http://www.movegreen.de
Business Club for renewable energy
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Hi, KurtSteiner!
I just visually compared your CSV file with "plugins\system\yvsmiley\smileyset_tinymce.csv", included in the package and I saw one difference, that may lead to the falure:
1. Additional ',' at the end of each line...
I think you better customize yvSmiley step-by-step: start from moving existing smileyset_tinymce.csv file to the new place and ensure it works; then change one first line...
Good luck!
Tip: Use plain text editor to edit the CSV...
I just visually compared your CSV file with "plugins\system\yvsmiley\smileyset_tinymce.csv", included in the package and I saw one difference, that may lead to the falure:
1. Additional ',' at the end of each line...
I think you better customize yvSmiley step-by-step: start from moving existing smileyset_tinymce.csv file to the new place and ensure it works; then change one first line...
Good luck!
Tip: Use plain text editor to edit the CSV...
KurtSteiner wrote:Hello Yuri,
i found your yvsmilies because of implementig the Ajax shoutbox which is supporting your plugin
I got it working (for one day) and was totally happy - many thanks for your fantastic work and genius idea for this.
Unfortunatly i had made some changes (to have less smileys) so i touched my csv and can´t get it to work again - hope that you can give me a hint where i can search for my failure...
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
- KurtSteiner
- Joomla! Intern
- Posts: 70
- Joined: Fri Feb 10, 2006 2:45 am
- Location: Hanover, Germany
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Thats it - many thanks Yuri !yvolk wrote:Hi, KurtSteiner!
I just visually compared your CSV file with "plugins\system\yvsmiley\smileyset_tinymce.csv", included in the package and I saw one difference, that may lead to the falure:
1. Additional ',' at the end of each line...
Sunny regards
Kurt Steiner aka Bernd
-------------------------------------------
http://www.movegreen.de
Business Club for renewable energy
Kurt Steiner aka Bernd
-------------------------------------------
http://www.movegreen.de
Business Club for renewable energy
-
- Joomla! Fledgling
- Posts: 2
- Joined: Tue Nov 06, 2007 8:39 am
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Thx for a wonderful plugin! Im using this for our Shoutbox on the site and everything works excellent!
After setting up everything and playing around i decided to make a Swedish language pack for the plugin, but i cannot get my Swedish translations to show up anywhere. This is what i did:
1. Unpacked yvSmileyLanguagePack_en-GB_1.03.000.zip
2. Translate the strings in sv-SE.plg_system_yvsmiley.ini
3. Exchanged en-GB to sv-SE in all files
4. Renamed all files from en-GB to sv-SE
5. Repacked it as a file named yvSmileyLanguagePack_sv-SE_1.03.000
6. Installed it via Joomla admin panel
7. Activated it under Plugins
Now everything works exactly as before, meaning it works perfect but i do NOT get any Swedish
translations Not in the administration for yvsmiley and not in the Shoutbox Frontend.
When hoovering over the smileys i expected the 'description' to show up for the user, for an example the text 'asgarvar' when hoovering the ROFL-smiley.
Any idea what im missing? Or isnt this a functionality i can get in the Shoutbox maybe?
Thx in advance, /Peter
After setting up everything and playing around i decided to make a Swedish language pack for the plugin, but i cannot get my Swedish translations to show up anywhere. This is what i did:
1. Unpacked yvSmileyLanguagePack_en-GB_1.03.000.zip
2. Translate the strings in sv-SE.plg_system_yvsmiley.ini
3. Exchanged en-GB to sv-SE in all files
4. Renamed all files from en-GB to sv-SE
5. Repacked it as a file named yvSmileyLanguagePack_sv-SE_1.03.000
6. Installed it via Joomla admin panel
7. Activated it under Plugins
Now everything works exactly as before, meaning it works perfect but i do NOT get any Swedish
translations Not in the administration for yvsmiley and not in the Shoutbox Frontend.
When hoovering over the smileys i expected the 'description' to show up for the user, for an example the text 'asgarvar' when hoovering the ROFL-smiley.
Any idea what im missing? Or isnt this a functionality i can get in the Shoutbox maybe?
Thx in advance, /Peter
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Hi, Peter!
As you may see, 'yvSmileyLanguagePack_en-GB.xml' file containes instruction how to create your language pack. Looking into it and comparing with what you did I see, that maybe you missed something of this ( see "c)"... ):
As you may see, 'yvSmileyLanguagePack_en-GB.xml' file containes instruction how to create your language pack. Looking into it and comparing with what you did I see, that maybe you missed something of this ( see "c)"... ):
a) In the names of the files of this package,
b) in the name of the package itself,
c) in the text inside this file,
d) and in the text inside all *.ini files,
replace:
'en-GB' with 'code of Your language';
'English' with 'Name of Your language in English'.
sjoroos wrote:Thx for a wonderful plugin! Im using this for our Shoutbox on the site and everything works excellent!
After setting up everything and playing around i decided to make a Swedish language pack for the plugin, but i cannot get my Swedish translations to show up anywhere. This is what i did:
1. Unpacked yvSmileyLanguagePack_en-GB_1.03.000.zip
2. Translate the strings in sv-SE.plg_system_yvsmiley.ini
3. Exchanged en-GB to sv-SE in all files
4. Renamed all files from en-GB to sv-SE
5. Repacked it as a file named yvSmileyLanguagePack_sv-SE_1.03.000
6. Installed it via Joomla admin panel
7. Activated it under Plugins
Now everything works exactly as before, meaning it works perfect but i do NOT get any Swedish
translations Not in the administration for yvsmiley and not in the Shoutbox Frontend.
When hoovering over the smileys i expected the 'description' to show up for the user, for an example the text 'asgarvar' when hoovering the ROFL-smiley.
Any idea what im missing? Or isnt this a functionality i can get in the Shoutbox maybe?
Thx in advance, /Peter
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Intern
- Posts: 88
- Joined: Mon Dec 10, 2007 4:46 pm
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
This is a great plugin. I needed it for the shoutbox http://joomla.batjo.nl. Their readme directed me to your plugin. My only problem is, in my forum I see smileys in areas like SUBJECTS.
I entered ID 46 which is my shoutbox module in the plugin screen. I tried with yes and no on Exclude Sections, selected above. Forum still shows smileys when someone uses the code combination in their subject.
How can I make it so this will only work on my shoutbox and not in forum?
Joomla 1.5.9
Kunena 1.0.8
I entered ID 46 which is my shoutbox module in the plugin screen. I tried with yes and no on Exclude Sections, selected above. Forum still shows smileys when someone uses the code combination in their subject.
How can I make it so this will only work on my shoutbox and not in forum?
Joomla 1.5.9
Kunena 1.0.8
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Smileys for some part of the page only
As I see from your message, you have yvSmiley's option
"Enable Smiley replacements for the whole page" = "Yes".
The short way to solve your problem is:
You (or maybe developers of your plugin) should "teach" that plugin to work with
"Enable Smiley replacements for the whole page" = "No"
- so yvSmiley will replace text with smileys in designated parts of your site only.
yvSmiley has documented API for this, see Information for Developers.
"Enable Smiley replacements for the whole page" = "Yes".
The short way to solve your problem is:
You (or maybe developers of your plugin) should "teach" that plugin to work with
"Enable Smiley replacements for the whole page" = "No"
- so yvSmiley will replace text with smileys in designated parts of your site only.
yvSmiley has documented API for this, see Information for Developers.
itgl72 wrote:This is a great plugin. I needed it for the shoutbox http://joomla.batjo.nl. Their readme directed me to your plugin. My only problem is, in my forum I see smileys in areas like SUBJECTS.
I entered ID 46 which is my shoutbox module in the plugin screen. I tried with yes and no on Exclude Sections, selected above. Forum still shows smileys when someone uses the code combination in their subject.
How can I make it so this will only work on my shoutbox and not in forum?
Joomla 1.5.9
Kunena 1.0.8
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Intern
- Posts: 88
- Joined: Mon Dec 10, 2007 4:46 pm
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
@ yvolk - SUCCESS
-
- Joomla! Apprentice
- Posts: 16
- Joined: Fri May 08, 2009 2:03 pm
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Hello,
Great plugin!
Is it possible not to show all the smileys but for example only 20 of them. It's because i've 140 smileys....
I think it's here but i don't know how to do!
If you can help me...
Thanks,
Great plugin!
Is it possible not to show all the smileys but for example only 20 of them. It's because i've 140 smileys....
I think it's here but i don't know how to do!
Code: Select all
// Show clickable smileys
// $ControlID - id of target control
// $Form - string, to which the Form code is appended
function _renderForm($ControlID, & $Form, $FormID) {
$strOut = '';
$strOut .= '<div class=\'yvSmileyForm\'';
if (!empty($FormID)) {
$strOut .= ' id=\'' . $FormID . '\'';
}
$strOut .= '>';
$src_prev = '';
foreach ($this->_asmiley as $row) {
$code = $row[0];
$code = str_replace('\'', '\\\'', $code);
$alt = $row[1];
$src = $row[2];
;
if (strcmp($src_prev, $src) != 0) {
$strOut .= '<a href="javascript:void(0);" onclick="yvSmileyReplaceText(' . $ControlID . ', \'' . $code . '\');">';
$strOut .= '<img src="' . $src . '" alt="' . $alt . '" />';
$strOut .= '</a>';
$src_prev = $src;
}
}
$strOut .= '</div>';
$Form .= $strOut;
return true;
}
Thanks,
Need a break? http://www.jeuxgratuit.me/
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Hi, I think you better create new 'Smiley set' file with only, say, 20 smileys that you wish to be shown (or duplicate existing one and edit the copy).frezz wrote:Hello,
Great plugin!
Is it possible not to show all the smileys but for example only 20 of them. It's because i've 140 smileys....
Please note that you don't have to copy/delete smiley image files - you have to change 'Smiley set' file only.
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Apprentice
- Posts: 16
- Joined: Fri May 08, 2009 2:03 pm
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
I think i understand what you say but i want them all to work, but not all to be displayed.
Need a break? http://www.jeuxgratuit.me/
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
I've got you. In the code of the 'function _renderForm' that you cited you may insert before the right brace of the foreach { ... } loopfrezz wrote:I think i understand what you say but i want them all to work, but not all to be displayed.
something like this:
Code: Select all
if ($code == ':-)') {
break;
}
so the code of the function will look like this:
Code: Select all
// Show clickable smileys
// $ControlID - id of target control
// $Form - string, to which the Form code is appended
function _renderForm($ControlID, & $Form, $FormID) {
$strOut = '';
$strOut .= '<div class=\'yvSmileyForm\'';
if (!empty($FormID)) {
$strOut .= ' id=\'' . $FormID . '\'';
}
$strOut .= '>';
$src_prev = '';
foreach ($this->_asmiley as $row) {
$code = $row[0];
$code = str_replace('\'', '\\\'', $code);
$alt = $row[1];
$src = $row[2];
;
if (strcmp($src_prev, $src) != 0) {
$strOut .= '<a href="javascript:void(0);" onclick="yvSmileyReplaceText(' . $ControlID . ', \'' . $code . '\');">';
$strOut .= '<img src="' . $src . '" alt="' . $alt . '" />';
$strOut .= '</a>';
$src_prev = $src;
}
if ($code == ':-)') {
break;
}
}
$strOut .= '</div>';
$Form .= $strOut;
return true;
}
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Apprentice
- Posts: 16
- Joined: Fri May 08, 2009 2:03 pm
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
It's so easy when you know how to do it! It just work!
Thanks a lot!
Thanks a lot!
Need a break? http://www.jeuxgratuit.me/
-
- Joomla! Intern
- Posts: 91
- Joined: Tue Jan 15, 2008 6:39 pm
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Hi just want some help here..I have downloaded yvsmiley today but when I publish I get this error and in frontend not showing even in comment so can I get some help what is the problem....The error I get is this one
The smiley set file doesn't exist=""Smiley set file=""
--
yvSmiley extension, version="1.03.0"
The smiley set file doesn't exist=""Smiley set file=""
--
yvSmiley extension, version="1.03.0"
Hope will get answer here!!
The smiley set file doesn't exist=""Smiley set file=""
--
yvSmiley extension, version="1.03.0"
The smiley set file doesn't exist=""Smiley set file=""
--
yvSmiley extension, version="1.03.0"
Hope will get answer here!!
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
Hi!Hija wrote:The error I get is this one
The smiley set file doesn't exist=""Smiley set file=""
--
yvSmiley extension, version="1.03.0"
You have to set "'Smiley set' file (and format)" parameter to 'phpBB sample set' or 'TinyMCE sample set'. (It looks like now you have some 'Custom...' value selected but you didn't provide any custom 'Smiley set' file).
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Intern
- Posts: 91
- Joined: Tue Jan 15, 2008 6:39 pm
Re: yvSmiley - Smiley (Emoticon) native extension for Joomla! 1.
yvolk wrote:Hi!Hija wrote:The error I get is this one
The smiley set file doesn't exist=""Smiley set file=""
--
yvSmiley extension, version="1.03.0"
You have to set "'Smiley set' file (and format)" parameter to 'phpBB sample set' or 'TinyMCE sample set'. (It looks like now you have some 'Custom...' value selected but you didn't provide any custom 'Smiley set' file).
Hi,thanks for your help..I have set like what you said..But let me explain why am using this smile because of my shoutbox which is http://extensions.joomla.org/extensions ... houtbox/43
So the problem now is you can see in frontend but it cant not work at all...Do i need to set smile set path???
Thanks and am waiting your support please!!