Welcome, Guest
Username Password: Remember me

Add tags to remove
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Add tags to remove

Add tags to remove 12 years, 7 months ago #5504

  • jeromebg
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hi, is there a way to add tags to remove ?
I would like to remove a class="modal" because iphone and ipad doesn't work well with modal windows...

Thanx !

Re: Add tags to remove 12 years, 7 months ago #5552

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
Currently there is no built-in solution. The correct way is to write a plugin that processes page text in onMobilePagePrepare event and removes class="modal".

Re: Add tags to remove 12 years, 4 months ago #6655

  • fidoboy
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
I'm trying to create a plugin using the onMobilePagePrepare  event, but it doesn't seems to work. I've created my plugin into the 'mobile' group. The event is not being fired... can you give me some tips to do this?
Last Edit: 12 years, 4 months ago by fidoboy.

Re: Add tags to remove 12 years, 4 months ago #6678

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
Check that your plugin belongs to system or mobile groups (to be sure it's loaded) and that method declaration is
function onMobilePagePrepare(&$text)


You can look at mobile youtube plugin for example.

Re: Add tags to remove 12 years, 4 months ago #6690

  • fidoboy
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Thanks dryabov! I've solved my problem, it works fine now...

regards,
  • Page:
  • 1
Time to create page: 0.11 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.