Java script in blocks?
Started by robirming, Oct 04 2005 08:07 AM
14 replies to this topic
#1
Posted 04 October 2005 - 08:07 AM
If I remember correctly it was said that it would be possible for admin to use java script when adding Custom Blcoks to the blog (for Adsense and such).
This doesn't seem to work in the current version. Was this for the next version? Or maybe I'm all wrong?
This doesn't seem to work in the current version. Was this for the next version? Or maybe I'm all wrong?
Robert Birming
robertbirming.se
robertbirming.se
#2
Posted 04 October 2005 - 08:38 AM
Are you trying to do it from your blog or the admin panel. You should be able to do it from Admin Panel
#3
Posted 04 October 2005 - 08:39 AM
I tried it from the Admin panel. Didn't work, the content of the block was blank.
Maybe I've missed to enable some new setting somewhere?
Maybe I've missed to enable some new setting somewhere?
Robert Birming
robertbirming.se
robertbirming.se
#4
Posted 04 October 2005 - 08:59 AM
There is a bug in 1.2.0 causing the javascript to not function properly (if you look at view source, you will notice \' in the javascript).
This has been solved in 1.2.1.
This has been solved in 1.2.1.
#5
Posted 04 October 2005 - 10:06 AM
I see. Thank you!
Any idea when 1.2.1 will be released?
Any idea when 1.2.1 will be released?
Robert Birming
robertbirming.se
robertbirming.se
#6
Posted 09 October 2005 - 04:09 AM
Or any simple way I can fix this myself while waiting for the next release?
Robert Birming
robertbirming.se
robertbirming.se
#7
Posted 09 October 2005 - 02:45 PM
modules/blog/admin/ad_blog_cblocks.php:
Line 257 change to:
line 321 change to:
Line 257 change to:
$content = $this->ipsclass->txt_stripslashes( $_POST['cblock_content'] );
line 321 change to:
$content = $this->ipsclass->txt_stripslashes( $_POST['cblock_content'] );
#8
Posted 09 October 2005 - 03:22 PM
Perfect! Thank you very much.
Speaking of which, I think a 'Can remove locked blocks?' option would be a good thing to have in the ACP - Blog - Groups.
Good for boards who wish to let paying members (belonging to a certain user group) remove advert blocks for example.
Speaking of which, I think a 'Can remove locked blocks?' option would be a good thing to have in the ACP - Blog - Groups.
Good for boards who wish to let paying members (belonging to a certain user group) remove advert blocks for example.
Robert Birming
robertbirming.se
robertbirming.se
#9
Posted 09 October 2005 - 03:30 PM
That kinda beats the purpose. Locked means locked (to all). Why not give groups who have payed content block change permissions? For the others you can disallow changing of content blocks.
#10
Posted 09 October 2005 - 03:49 PM
I can't find that as a group setting, only as a general setting (Allow Content Blocks editing).
Maybe I'm missing something?
Maybe I'm missing something?
Robert Birming
robertbirming.se
robertbirming.se
#11
Posted 09 October 2005 - 03:58 PM
Oops
Consider it noted as feature request
Consider it noted as feature request
#13
Posted 15 October 2005 - 12:59 PM
In the new version 1.2.1, Admin can add javascript into custome blocks, it seems ordinary user cannot even html is allowed.
Can I allow user to add Javascript to custome blocks (for rss feeding)? Is there any security concern?
Can I allow user to add Javascript to custome blocks (for rss feeding)? Is there any security concern?
#14
Posted 15 October 2005 - 02:28 PM
Yes this is a security concern. Therefor it is only allowed for Admins.
#15
Posted 04 December 2005 - 03:30 PM
i have sucessfully used Adsense in Adsense blogs , but i have tried to put my Technorati code , but that ddint work .. how come , it was only a Javascript as well only ! ??
Waiting for 2.2
- Licensing Price scheme :whistle:
- Feature sets :cool:
- Mod upgrades :P
- Licensing Price scheme :whistle:
- Feature sets :cool:
- Mod upgrades :P











