Jump to content


Java script in blocks?


This topic has been archived. This means that you cannot reply to this topic.
14 replies to this topic

#-19 robirming

robirming

    Needs Serious Help

  • +Clients
  • 2,138 posts

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?
Robert Birming
robertbirming.se

#-18 Australia4WD

Australia4WD

    Spam Happy

  • +Clients
  • 527 posts

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

#-17 robirming

robirming

    Needs Serious Help

  • +Clients
  • 2,138 posts

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?
Robert Birming
robertbirming.se

#-16 W1lz0r

W1lz0r

    Needs Life

  • +Clients
  • 5,411 posts

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.
IPS DB Drivers / Community Blog Support and Development

[ Invision Community Blog ] [ Vuboys ]

#-15 robirming

robirming

    Needs Serious Help

  • +Clients
  • 2,138 posts

Posted 04 October 2005 - 10:06 AM

I see. Thank you!

Any idea when 1.2.1 will be released?
Robert Birming
robertbirming.se

#-14 robirming

robirming

    Needs Serious Help

  • +Clients
  • 2,138 posts

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

#-13 W1lz0r

W1lz0r

    Needs Life

  • +Clients
  • 5,411 posts

Posted 09 October 2005 - 02:45 PM

modules/blog/admin/ad_blog_cblocks.php:

Line 257 change to:
		$content = $this->ipsclass->txt_stripslashes( $_POST['cblock_content'] );

line 321 change to:
		$content = $this->ipsclass->txt_stripslashes( $_POST['cblock_content'] );

IPS DB Drivers / Community Blog Support and Development

[ Invision Community Blog ] [ Vuboys ]

#-12 robirming

robirming

    Needs Serious Help

  • +Clients
  • 2,138 posts

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.
Robert Birming
robertbirming.se

#-11 W1lz0r

W1lz0r

    Needs Life

  • +Clients
  • 5,411 posts

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.
IPS DB Drivers / Community Blog Support and Development

[ Invision Community Blog ] [ Vuboys ]

#-10 robirming

robirming

    Needs Serious Help

  • +Clients
  • 2,138 posts

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?
Robert Birming
robertbirming.se

#-9 W1lz0r

W1lz0r

    Needs Life

  • +Clients
  • 5,411 posts

Posted 09 October 2005 - 03:58 PM

Oops <_<

Consider it noted as feature request :)
IPS DB Drivers / Community Blog Support and Development

[ Invision Community Blog ] [ Vuboys ]

#-8 robirming

robirming

    Needs Serious Help

  • +Clients
  • 2,138 posts

Posted 10 October 2005 - 12:54 AM

Thanks a lot!  :)
Robert Birming
robertbirming.se

#-7 hulala

hulala

    IPB Newbie

  • Visitors
  • Pip
  • 30 posts

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?

#-6 W1lz0r

W1lz0r

    Needs Life

  • +Clients
  • 5,411 posts

Posted 15 October 2005 - 02:28 PM

Yes this is a security concern. Therefor it is only allowed for Admins.
IPS DB Drivers / Community Blog Support and Development

[ Invision Community Blog ] [ Vuboys ]

#-5 featuredhost

featuredhost

    IPB Member

  • Visitors
  • PipPip
  • 98 posts

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