Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Extra forumcode ; Tooltips betá 1.1
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 30 August 2005 :  15:33:54  Show Profile  Visit MarcelG's Homepage  Reply with Quote
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].<

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 31 August 2005 09:08:52

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 31 August 2005 :  05:17:56  Show Profile  Reply with Quote
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.”
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 31 August 2005 :  05:58:32  Show Profile  Visit MarcelG's Homepage  Reply with Quote
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
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 31 August 2005 :  06:09:11  Show Profile  Reply with Quote
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.”
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 31 August 2005 :  07:12:39  Show Profile  Visit MarcelG's Homepage  Reply with Quote
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
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 31 August 2005 :  07:36:58  Show Profile  Reply with Quote
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.”
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 31 August 2005 :  09:06:09  Show Profile  Visit MarcelG's Homepage  Reply with Quote
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
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 31 August 2005 :  09:26:32  Show Profile  Reply with Quote
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.”
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 31 August 2005 :  10:02:10  Show Profile  Visit MarcelG's Homepage  Reply with Quote
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
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 31 August 2005 :  10:09:50  Show Profile  Reply with Quote
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.”
Go to Top of Page

lsakizada
New Member

USA
90 Posts

Posted - 03 March 2006 :  13:51:17  Show Profile  Reply with Quote
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?

<
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 03 March 2006 :  14:20:19  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Mmmm...let me see if I can dig that up somewhere... I thought I found that pack at Snitzbitz...<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07