• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Firefox support @ Javascript BBcode

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I get this code from http://forums.gentoo.org/:


// JavaScript enhanced version of bbcode insertion tags
// Better insertion tags in the textarea field
// Tested on:
// - Internet Explorer 6.0
// - Mozilla 1.7 (Windows version)
// - Mozilla 1.7 (Linux-Gentoo version)
// Enhancements:
// Don't loose the text scroll position when insert a code

//* Javascript substitution for correct working on explorer & mozilla browsers
//* by RadikalQ3 (radikal AT q3 dot nu), helping to Gentoo comunity.



I contacted the author and he gave me permission to share his code:


> hi,
>
> I noticed your patch for Gentoo Forum source:
>
> //* Javascript substitution for correct working on explorer & mozilla
> browsers //* by RadikalQ3 (radikal AT q3 dot nu), helping to Gentoo
> comunity.
> //*************************************************************************
>*************
>
> I would like to port your patch to JForum (http://www.jforum.net),
> which is an open
> source Java forum .
>
> I really don't know if it's possible to do it, but I'll try it anyway =)
>
> Since you've created this patch, I'm asking for your permission.
>
> TIA
>
> ]'s
> Fernando Boaglio

Yes you can use it (and you MUST use something similar)

--

Un Saludo
Radikal



So I 've attached this updated post.js files (inside templates dir) and it's working fine @ JF 2.1.6.

You can test it here: http://forum.mentaframework.org/forums/list.page

So guys, can you please put this file on the next release?


[originally posted on jforum.net by boaglio]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Updated version, with a small bugfix.

Just copy post.js to this directory <JForum-DIR>\templates\default\js and Firefox users will be happy
[originally posted on jforum.net by boaglio]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now users cannot post polls.
[originally posted on jforum.net by Glamdring]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Glamdring wrote:Now users cannot post polls.



Have you tried the updated version ?
[originally posted on jforum.net by boaglio]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've tried only the updated one

Have in mind that recently FireFox 1.5.0.7 was up, maybe that could have caused the problem (i.e. some changes in the js "rendering")
[originally posted on jforum.net by Glamdring]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I forgot a pool init variable which makes pool actions work on FF and doesn't work on IE...

The attached version it's fixed.
[originally posted on jforum.net by boaglio]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Done. Added to the cvs.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic