2007-08-03, 11:36 AM
2007-08-03, 12:13 PM
I thought this was a request to make simple mycode additions easy without manual edition. Not complex ones. If I make that it would mean I made it all. You should look at plug-in hooks.
And I don't understand what you mean.
And I don't understand what you mean.
2007-08-03, 12:15 PM
All I mean is to add the little images above th post bit that when you click, it puts [spoiler]and[/spoiler[ in. And you're right, you did all I requested, and all I need.
I thank you for that too,
BP
I thank you for that too,
BP
2007-08-03, 03:05 PM
You're talking about adding a MyCode button, right? I don't know that that can be done via plugin.
2007-08-03, 09:38 PM
Ahh, I just though of something else that ws staring me in the face lol.
Thanks, I know exactly how to do all that in a plugin now
Thanks, I know exactly how to do all that in a plugin now
2007-08-04, 01:49 AM
Something is wrong with this code, on Notepad++ the
Thanks,
BP[/php]
$mycode['bounce"]['replacement'] = <<<END
['replacement'] doesn't highlight, nor does the comment in description// This is the Regular expression. DO NOT REMOVE <<<END and END; Or you'll break it. Only change "name_of_plugin" to the name of the mycode, and the code of course.
$mycode['spoiler']['regexp'] = <<<END
[code]\[spoiler\](.*?)\[/spoiler\][/code]
END;
// This is the replacement. DO NOT REMOVE <<<END and END; Or you'll break it. Only change "name_of_plugin" to the name of the mycode, and the code of course.
$mycode['spoiler']['replacement'] = <<<END
<small> <b>Spoiler:</b></small><br /> <div style="border: inset 1px gray; padding: 1px;"><div><button type="button" class="button" onclick="if (this.innerHTML == 'Hide Spoiler'){this.parentNode.parentNode.childNodes[1].style.display = 'none'; this.innerHTML = 'Show Spoiler';}else{this.parentNode.parentNode.childNodes[1].style.display = 'inline'; this.innerHTML = 'Hide Spoiler';};"><font color="#000000" size="1"><b>Show Spoiler</b></font></button></div><div id="spoiler" style="display: none;"> $1 </div>
END;
// Description of your mycode. DO NOT REMOVE <<<END and END; Or you'll break it. Only change "name_of_plugin" to the name of the mycode, and the code of course.
$mycode['spoiler']['description'] = <<<END
Hides text between [spoiler] tags
END;
// This is the Regular expression. DO NOT REMOVE <<<END and END; Or you'll break it. Only change "name_of_plugin" to the name of the mycode, and the code of course.
$mycode['bounce']['regexp'] = <<<END
[code]\[bounce\](.*?)\[/bounce\][/code]
END;
// This is the replacement. DO NOT REMOVE <<<END and END; Or you'll break it. Only change "name_of_plugin" to the name of the mycode, and the code of course.
$mycode['bounce"]['replacement'] = <<<END
<div id="bounce"><marquee behavior="alternate" direction="up" height="60" scrolldelay="100">$1</marquee></div>
END;
// Description of your mycode. DO NOT REMOVE <<<END and END; Or you'll break it. Only change "name_of_plugin" to the name of the mycode, and the code of course.
$mycode['bounce']['description'] = <<<END
Makes text bounce up and down
END;
Thanks,
BP[/php]
2007-08-04, 02:20 AM
blueparukia Wrote:Something is wrong with this code, on Notepad++ theTry this instead:['replacement'] doesn't highlight, nor does the comment in description$mycode['bounce"]['replacement'] = <<<END
$mycode['bounce']['replacement'] = <<<END
2007-08-05, 01:20 AM
Now its not showing up in the plugin manager
2007-08-05, 01:40 AM
And that's why I'm not a developer.
Sorry.
Sorry.