Author |
Topic |
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 31 August 2005 : 05:17:56
|
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.” |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 31 August 2005 : 05:58:32
|
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 ?< |
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 31 August 2005 10:22:53 |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 31 August 2005 : 06:09:11
|
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.” |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 31 August 2005 : 07:12:39
|
Perfect! Thanks! Just replaced the acronym with span, so it's working allright now.
However, I cannot seem to use [acr=" "]... I changed this :
oTag = "[acr=*"
c1Tag = "*]"
c2Tag = "[/acr]"
into this:
oTag = "[acr="""
c1Tag = """]"
c2Tag = "[/acr]"
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.< |
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 31 August 2005 07:34:58 |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 31 August 2005 : 07:36:58
|
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.” |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 31 August 2005 : 09:06:09
|
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 |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 31 August 2005 : 09:26:32
|
Worth testing it on a "clean" forum to be sure, 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.” |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 31 August 2005 : 10:02:10
|
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 |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 31 August 2005 : 10:09:50
|
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.” |
|
|
lsakizada
New Member
USA
90 Posts |
Posted - 03 March 2006 : 13:51:17
|
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?
< |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 03 March 2006 : 14:20:19
|
Mmmm...let me see if I can dig that up somewhere... I thought I found that pack at Snitzbitz...< |
portfolio - linkshrinker - oxle - twitter |
|
|
|
Topic |
|