2 john Jan 13, 2008 22:12

To John
They don't work on both sites!
But they work here
http://www.b2evo.org/index.php/2008/01/b2evolution#comments
and here
http://demo.b2evo.org/blogs/index.php?blog=1&title=b2evolution&more=1&c=1&tb=1&pb=1
EDIT: hey, now they don't !!!
:(
uncought exception: Permission denied to get property Window.b2evo_Callbacks
The same problem is here
Okay I solved it on my WAMP-blog in both FF and IE. I sort of forgot that I commented out two lines in my _html_header.inc.php file:
require_js( 'functions.js' );
require_js( 'rollovers.js' );
The first is where b2evo_Callbacks gets defined, so if I want to allow smilies in comments I have to uncomment those lines. I took them out of that file because I'm not a fan of javascripts that didn't add value. Like, why bother sending them down the pipe if they're not needed right? So now they're needed, so now I'll uncomment those lines in my actual online blog.
And make a "quicktags for comments" plugin :)
If I remember well you asked in a previous post what these javaScript files were for. Now you know. :>
To make quicktags for comments just add DisplayCommentToolbar() and then use your existing code for the rest ;)
¥
Where I'm at, and what's working is DEL, STR, EMP, BLOCK, LINK and X. Problem with link is that the blog owner will have to edit a conf file to make it actually work.
I wish I could find a way to use php inside the javascript so I could use settings to let the blog admin decide if LINK is going to be there. Or maybe chunk through the $comments_allowed_tags array? Either way, I couldn't do php logical stuff inside javascript so that's life.
Afwas wrote:
If I remember well you asked in a previous post what these javaScript files were for. Now you know. :>
Yup! The rollover guy is for the evobar - another commented-out bit for me ;)
<?php
if( $link_allowed )
{ // change the above to summat that works ;)
echo '<script type="text/javascript">window.alert( 'link allowed' );</script>';
}
;)
¥
They don't work here either (2.2.0)
http://b2evolution.net/news/2007/12/29/b2evo-2-3-0-renaissance-released
however they do work here
http://waffleson.co.uk/2008/01/playing-with-an-rss-reader#comments
?????