topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 15, 2024, 4:40 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Solved javascript for forum  (Read 9854 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Solved javascript for forum
« on: October 21, 2005, 05:49 AM »
i've got one or two small ideas for an improvement to the javascript tools that are used here in our forum (and every smf forum), for the little tool buttons available when you create/edit posts.

i'll describe one briefly and i can provide much more info later if desired.

basically there is a snippet of javascript executes when you click the bullet list button when editing a post.
right now it just adds a sample [li][/li] around your entire selected text.
i want it to add an [li][/li] around every line.

i can paste the existing code if someone wants to try it.
or if you write a function to add a string to begining and end of every CR separated line in a string, i'll take it from there and integrate it into existing javascript code.  shouldnt be more than a few lines of javascript i think.

there are other things that might be nice also, like a popup dialog when clicking the url link tool button and maybe some other stuff?

DougalS

  • Supporting Member
  • Joined in 2011
  • **
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Solved javascript for forum
« Reply #1 on: January 02, 2012, 08:22 PM »
I think this one is done, and old, should it be marked complete?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Solved javascript for forum
« Reply #2 on: January 03, 2012, 07:37 AM »
yes, you are right. done and complete.

DougalS

  • Supporting Member
  • Joined in 2011
  • **
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Solved javascript for forum
« Reply #3 on: January 04, 2012, 02:06 AM »
So I guess that is why it is under the "Finished Programs folder!  :-[ I'm an idiot

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Solved javascript for forum
« Reply #4 on: January 04, 2012, 02:12 AM »
no i just moved it because of your report -- it used to be in requests section -- you weren't imagining things :)

DougalS

  • Supporting Member
  • Joined in 2011
  • **
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Solved javascript for forum
« Reply #5 on: January 04, 2012, 06:06 AM »
Glad to know I'm not quite as senile as I thought.
If I come across requests that are way old, should I ask if they are still required, or just use the "Report to moderator" link?