Editor_tools smiley hack.
Posted by sirgrim
Re: Editor_tools smiley hack. April 10, 2006 07:26AM |
Registered: 16 years ago Posts: 29 |
Re: Editor_tools smiley hack. April 10, 2006 07:29AM |
Registered: 16 years ago Posts: 29 |
This might be your issue, not sure.
Have you updated the list.php with valid filenames? Because I have a count in there that hasn't been identified with the array count yet. I'll fix this in the next release, but try changing this in smileys_panel.php to your list.php count.
for($j = 1; $j < 23; $j++) {
where 23 = your list.php count. I'll work on making it able to count the actual array now. Let me know if that works.
Edit: this is the first thing I ever released for Phorum, so I expected it to not be plug-and-go, hence putting it hacks :). All input is appreciated. Thanks!
Edited 1 time(s). Last edit at 04/10/2006 07:33AM by sirgrim.
Have you updated the list.php with valid filenames? Because I have a count in there that hasn't been identified with the array count yet. I'll fix this in the next release, but try changing this in smileys_panel.php to your list.php count.
for($j = 1; $j < 23; $j++) {
where 23 = your list.php count. I'll work on making it able to count the actual array now. Let me know if that works.
Edit: this is the first thing I ever released for Phorum, so I expected it to not be plug-and-go, hence putting it hacks :). All input is appreciated. Thanks!
Edited 1 time(s). Last edit at 04/10/2006 07:33AM by sirgrim.
Re: Editor_tools smiley hack. April 10, 2006 08:10AM |
Registered: 16 years ago Posts: 29 |
Change the $j in smileys_panel.php to:
for($j = 1; $j < count($MOD_SMILEYHEADLINE_ARRAY); $j++) {
$new = split("\\.", $MOD_SMILEYHEADLINE_ARRAY[$j]);
$cursmile = $MOD_SMILEYHEADLINE_ARRAY[$j];
And let me know if it works. Must have been some of my testing code got through.
I also had better luck with $j=1;$j <= count($MOD_S....
Edited 1 time(s). Last edit at 04/10/2006 08:14AM by sirgrim.
for($j = 1; $j < count($MOD_SMILEYHEADLINE_ARRAY); $j++) {
$new = split("\\.", $MOD_SMILEYHEADLINE_ARRAY[$j]);
$cursmile = $MOD_SMILEYHEADLINE_ARRAY[$j];
And let me know if it works. Must have been some of my testing code got through.
I also had better luck with $j=1;$j <= count($MOD_S....
Edited 1 time(s). Last edit at 04/10/2006 08:14AM by sirgrim.
Re: Editor_tools smiley hack. April 10, 2006 08:36AM |
Registered: 17 years ago Posts: 278 |
Re: Editor_tools smiley hack. April 10, 2006 12:06PM |
Registered: 17 years ago Posts: 278 |
Re: Editor_tools smiley hack. April 10, 2006 12:48PM |
Registered: 16 years ago Posts: 29 |
Re: Editor_tools smiley hack. April 10, 2006 02:13PM |
Registered: 17 years ago Posts: 278 |
Yep smilies show up, but they're OUTSIDE of the posing messageform. For example, if they were here they would be above the 'Goto' line. You can click on them, but as soon as you do, the error pops up. I've tried to get them to appear INSIDE the posting form, but it just won't work. I use a slightly modified posting_messageform. I'll attach it....
Ideally, I'd like the smilies to load in the box on the left hand side where I currently have my smilies, but I can't get it to work :-(
Edited 1 time(s). Last edit at 04/10/2006 02:14PM by M@AATW.
Ideally, I'd like the smilies to load in the box on the left hand side where I currently have my smilies, but I can't get it to work :-(
Edited 1 time(s). Last edit at 04/10/2006 02:14PM by M@AATW.
Re: Editor_tools smiley hack. April 11, 2006 09:13AM |
Registered: 16 years ago Posts: 29 |
Re: Editor_tools smiley hack. May 28, 2006 12:37AM |
Registered: 17 years ago Posts: 84 |
Re: Editor_tools smiley hack. July 11, 2006 02:38AM |
Registered: 16 years ago Posts: 29 |
Here's an updated version, I've fixed a lot of bugs and it no longer requires you to create a list of your headline smileys, it makes it's own. Updated readme.
I may create a smiley pack, you're welcome to right click and save as any of the ones I use, no registration required.
Let me know if this works for you, I've added simple checks to attempt to allow one smiley usage per headline and no lone smileys, I've included hacked error checker instructions for added checks/visual reporting.
A friend pointed out a few small check bugs, It would erase whatever was before the smiley, and handle multiple smileys oddly. It now moves what's before the smiley to the end if it's made that way and clears the headline if they try to use a bunch of smileys.
Edited 2 time(s). Last edit at 07/14/2006 01:30AM by sirgrim.
I may create a smiley pack, you're welcome to right click and save as any of the ones I use, no registration required.
Let me know if this works for you, I've added simple checks to attempt to allow one smiley usage per headline and no lone smileys, I've included hacked error checker instructions for added checks/visual reporting.
A friend pointed out a few small check bugs, It would erase whatever was before the smiley, and handle multiple smileys oddly. It now moves what's before the smiley to the end if it's made that way and clears the headline if they try to use a bunch of smileys.
Edited 2 time(s). Last edit at 07/14/2006 01:30AM by sirgrim.
Sorry, only registered users may post in this forum.