Invision Power Services: Java script in blocks? - Invision Power Services

Jump to content

IP.Blog Feedback

Do you need technical support?

You can obtain support via the client area, or you can try to obtain peer-to-peer support at IPS Resources.

Did you find a bug in IP.Board?

If you believe you've found a bug please post it to the bug tracker.

Have a suggestion or feedback?

Post it here. Thanks!
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Java script in blocks?

#1 User is offline   Korak Icon

  • Eskobar Online
  • Icon
  • View blog
  • Group: +Active Customers
  • Posts: 2,134
  • Joined: 18-September 02
  • Location:Stockholm, Sweden

Posted 04 October 2005 - 01:07 PM

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?
0

#2 User is offline   Pedro Icon

  • Spam Happy
  • Icon
  • View blog
  • View gallery
  • Group: +Active Customers
  • Posts: 507
  • Joined: 18-November 04
  • Location:Australia

Posted 04 October 2005 - 01:38 PM

Are you trying to do it from your blog or the admin panel. You should be able to do it from Admin Panel
0

#3 User is offline   Korak Icon

  • Eskobar Online
  • Icon
  • View blog
  • Group: +Active Customers
  • Posts: 2,134
  • Joined: 18-September 02
  • Location:Stockholm, Sweden

Posted 04 October 2005 - 01:39 PM

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?
0

#4 User is offline   W1lz0r Icon

  • That SQL guy
  • Icon
  • View blog
  • Group: +Active Customers
  • Posts: 5,411
  • Joined: 10-March 03
  • Location:The Netherlands

Posted 04 October 2005 - 01:59 PM

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 ]
0

#5 User is offline   Korak Icon

  • Eskobar Online
  • Icon
  • View blog
  • Group: +Active Customers
  • Posts: 2,134
  • Joined: 18-September 02
  • Location:Stockholm, Sweden

Posted 04 October 2005 - 03:06 PM

I see. Thank you!

Any idea when 1.2.1 will be released?
0

#6 User is offline   Korak Icon

  • Eskobar Online
  • Icon
  • View blog
  • Group: +Active Customers
  • Posts: 2,134
  • Joined: 18-September 02
  • Location:Stockholm, Sweden

Posted 09 October 2005 - 09:09 AM

Or any simple way I can fix this myself while waiting for the next release?
0

#7 User is offline   W1lz0r Icon

  • That SQL guy
  • Icon
  • View blog
  • Group: +Active Customers
  • Posts: 5,411
  • Joined: 10-March 03
  • Location:The Netherlands

Posted 09 October 2005 - 07: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 ]
0

#8 User is offline   Korak Icon

  • Eskobar Online
  • Icon
  • View blog
  • Group: +Active Customers
  • Posts: 2,134
  • Joined: 18-September 02
  • Location:Stockholm, Sweden

Posted 09 October 2005 - 08: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.
0

#9 User is offline   W1lz0r Icon

  • That SQL guy
  • Icon
  • View blog
  • Group: +Active Customers
  • Posts: 5,411
  • Joined: 10-March 03
  • Location:The Netherlands

Posted 09 October 2005 - 08: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 ]
0

#10 User is offline   Korak Icon

  • Eskobar Online
  • Icon
  • View blog
  • Group: +Active Customers
  • Posts: 2,134
  • Joined: 18-September 02
  • Location:Stockholm, Sweden

Posted 09 October 2005 - 08: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?
0

#11 User is offline   W1lz0r Icon

  • That SQL guy
  • Icon
  • View blog
  • Group: +Active Customers
  • Posts: 5,411
  • Joined: 10-March 03
  • Location:The Netherlands

Posted 09 October 2005 - 08:58 PM

Oops <_<

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

[ Invision Community Blog ] [ Vuboys ]
0

#12 User is offline   Korak Icon

  • Eskobar Online
  • Icon
  • View blog
  • Group: +Active Customers
  • Posts: 2,134
  • Joined: 18-September 02
  • Location:Stockholm, Sweden

Posted 10 October 2005 - 05:54 AM

Thanks a lot! :)
0

#13 User is offline   hulala Icon

  • IPB Newbie
  • Pip
  • View blog
  • Group: Members
  • Posts: 30
  • Joined: 19-March 05

Posted 15 October 2005 - 05: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?
0

#14 User is offline   W1lz0r Icon

  • That SQL guy
  • Icon
  • View blog
  • Group: +Active Customers
  • Posts: 5,411
  • Joined: 10-March 03
  • Location:The Netherlands

Posted 15 October 2005 - 07: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 ]
0

#15 User is offline   featuredhost Icon

  • IPB Member
  • PipPip
  • View blog
  • Group: Members
  • Posts: 98
  • Joined: 17-March 03
  • Location:India

Posted 04 December 2005 - 08: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
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users