The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
Well, started long time ago, but thanks to a brainwave this afternoon it's completed, and ready for public testing.
Screenshot in FireFox (top) & IE (below) and installation instructions.
Support ; as long as it's béta via this topic or via oxle, that's up to you.
When it's final, via Help: MOD Implementation, or via oxle, again up to you.
Update: Changed approach from Acronyms to Tooltips, as advised by Shaggy. Besides, rumours go that <acronym></acronym> will be dropped soon in the standards....
Syntax has changed too from [acr=* *][/acr] to the more logical [tip=* *] [/tip].<
Screenshot in FireFox (top) & IE (below) and installation instructions.
Support ; as long as it's béta via this topic or via oxle, that's up to you.
Update: Changed approach from Acronyms to Tooltips, as advised by Shaggy. Besides, rumours go that <acronym></acronym> will be dropped soon in the standards....
portfolio - linkshrinker - oxle - twitter
Sist redigert av
Postet den
Quick suggestion, Marcel, how about using the span tag instead of the acronym to save the misuse of the latter? It also saves that nasty dotted border Mozilla browsers place underneath acronyms. Also, from your previous postings on this, you'll be safe enough using quatation marks in place of the asterisks without fear of it clashing with the ReplaceUrls function.
<
Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
<
Search is your friend
“I was having a mildly paranoid day, mostly due to thefact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Postet den
Erm...using the span to create a tooltip ?
Just something like <span class=""tooltip"" title=""the tooltip""> .. </span> ?
About the * instead of the " ; thanks for the info ; will do so.
Perhaps you've also got an idea for this one:
Currently the function uses a different approach for images being incapsulated by the acronym tag.
With this method, a different style is applied to these acronyms. However, what I'd like to achieve with images is that instead of using it as an acronym surrounding the image, I'd like to add it to the title tag. Like this:
INPUT: [acr="the title"][img]location of image[/img][/acr] OUTPUT: <IMG SRC="location of image" TITLE="the title">
Do you recon that's possible ?<
About the * instead of the " ; thanks for the info ; will do so.
Perhaps you've also got an idea for this one:
Currently the function uses a different approach for images being incapsulated by the acronym tag.
With this method, a different style is applied to these acronyms. However, what I'd like to achieve with images is that instead of using it as an acronym surrounding the image, I'd like to add it to the title tag. Like this:
INPUT: [acr="the title"][img]location of image[/img][/acr] OUTPUT: <IMG SRC="location of image" TITLE="the title">
Do you recon that's possible ?<
portfolio - linkshrinker - oxle - twitter
Sist redigert av
Postet den
Ay, the title attribute will validate on the span tag, use it ocassionally meself when acronym isn't appropriate.
As for the image tags, I see what you're getting at, tried it meself a couple of times using various methods with naff all success. Gimme a day or 2 to clear all this junk out of me inbox (Where's me lighter fluid?!) and I'll have a look at it with you. No promises, though
<
Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
As for the image tags, I see what you're getting at, tried it meself a couple of times using various methods with naff all success. Gimme a day or 2 to clear all this junk out of me inbox (Where's me lighter fluid?!) and I'll have a look at it with you. No promises, though
<
Search is your friend
“I was having a mildly paranoid day, mostly due to thefact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Postet den
Perfect! Thanks! Just replaced the acronym with span, so it's working allright now.
However, I cannot seem to use [acr=" "]... I changed this :
into this:
This works fine, as long as the same post does not contain any instances of [url=" "]...
So, I'll stick to [acr=* *] as syntax for the time being.<
However, I cannot seem to use [acr=" "]... I changed this :
Code:
oTag = "[acr=*"
c1Tag = "*]"
c2Tag = "[/acr]"
Code:
oTag = "[acr="""
c1Tag = """]"
c2Tag = "[/acr]"
portfolio - linkshrinker - oxle - twitter
Sist redigert av
Postet den
Strangeness, from my working with the ReplaceUrls function, I wouldn't have thought this to be a problem. As an alternative, you could use single quotes as people will be used to using quatation marks with URLs.
<
Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
<
Search is your friend
“I was having a mildly paranoid day, mostly due to thefact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Postet den
Well, I guess it will work on the basecode. However, as I've introduced the [bookmark][/bookmark] function, I needed to find a way to circumvent linking to bookmarks on the same page, with a target frame set to _blank.
So, I changed the ReplaceURLs function....
I think that that's 'messed' up the lot a bit.
<
portfolio - linkshrinker - oxle - twitter
Postet den
Well, tested it just at our intranet forum, which has the original ReplaceURLs function....
It doesn't work when using both [url=" as well as [tip=" in the same post.
Decided to try the [tip=' '] style instead ; worked perfectly!
It would be nice if it could be done without any ' or ", but I suppose that that's not easily possible with ASP.
PHP can do it afaik, seeing that phpBB supports the url code syntax of [url=blabla] [/url]...but ok. That's another discussion.
<
portfolio - linkshrinker - oxle - twitter
Postet den
It's just the way Snitz parses the tag, AFAIK. If we had ] ending the opening URL tag instead of "], we'd encounter the problem above when using any other tag that isn't parsed before being instered in the database in the same post.
<
Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
<
Search is your friend
“I was having a mildly paranoid day, mostly due to thefact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Postet den
MarcelG this is a nice mod/
Thanks for that. I saw on your forum more forum code such as:
1. Highlight text
2. marquee(Moving Text). Can you please post a link to instruction pages if they are exist?
<
Thanks for that. I saw on your forum more forum code such as:
1. Highlight text
2. marquee(Moving Text). Can you please post a link to instruction pages if they are exist?
<
Email Member
Message Member
Post Moderation
Filopplasting
If you're having problems uploading, try choosing a smaller image.
Forhåndsvis post
Send Topic
Loading...