View Full Version : Can I remove the links in GAL?
Yeah, I know it's an auto-linker, but what if I just want to use the popup box to explain an acronym or something like that? Is it possible to remove the hyperlinking?
I left the link field blank, and I'm getting a URL like this:
http://www.mysite.c0m/forums/autolink.php?id=1&script=showthread&forumid=8
Is that right?
Thanks. :)
The Geek
10-23-2005, 07:18 AM
Looks like that item is in a category set to track clicks (which obviously isnt needed). Try putting in # for the dummy url.
Blackbeard
11-06-2005, 01:09 PM
i keep getting a blank page, if the click on any off my glossary links, i to dont want to link it anywhere just show them the meaning of the word, tryed putting # after http:// and removing the http, still wants to link it.
Please tell me how to prevent it, as i have inputted 100 last night and dont want to do any more until sorted.
The Geek
11-06-2005, 01:19 PM
is the category these items are in set to track clicks?
Blackbeard
11-06-2005, 02:00 PM
the 100 or so was to start with, but i went in and unchecked it, iam i now to debug as they keep linking
The Geek
11-08-2005, 12:14 PM
BTW: THis is sorted now in new release. Just make sure that you are not in a category tracking clicks and set the items url to nothing
HTH's
So I see in the new release that the # is inserted automatically.
I'm not sure how hard this would be, but is it possible to make certain terms (for example, glossary terms) not hyperlinked? I.e., set up a completely separate style so that they look different and act differently from hyperlinks? I'm sure I'm getting some dummy clicks, and I'm also sure that that would confuse some people.
For example, I set up a custom vb BB code to manually create "tooltips":<span class="define" title="{option}">{param}</span>
And in the style heet, I have:
/* ***** adding tooltips to selected terms ***** */
.define {
border-bottom :1px dashed #000;
font: Courier, Fixedsys, "Lucida Console";
color:#06c;
cursor: help;
}
That works pretty well for me, and it's not clickable.
Just a suggestion. If it's easy enough to do, I will create a style just for that.
The Geek
11-09-2005, 08:47 PM
heya Bob,
Whats the difference between that and leaving the URL for a popup blank?
Whats the difference between that and leaving the URL for a popup blank?The way I'm looking for doesn't create something clickable. I'm afraid that the current way, something like this (I believe):
http://thevbgeek.com/# (http://#)
creates something clickable, and I'm afraid that some users will think that something's wrong.
The way I had the tooltip set up, nothing happens when you click, only when you hover. Of course, I imagine it might be more difficult to insert info into the title attribute, but I wouldn't know anything about the coding end of that.
Sorry if I'm erring about something technical. :o
The Geek
11-10-2005, 07:38 AM
Technically, you shouldnt be getting the http:// in it if you leave it blank. Did you make the changes to replacments outlined in your README?
1996 328ti
11-13-2005, 01:29 AM
I just installed GAL primarily to be used for as a glossary.
I have tried # and blank for the url but still redirected to a blank page.
Also Active doesn't appear to work.
I have DB cache on.
The Geek
11-13-2005, 12:38 PM
Make sure it isnt in a category set to track clicks.
1996 328ti
11-13-2005, 12:58 PM
Make sure it isnt in a category set to track clicks.
Category: Glossary
Track Clicks: No
Track Impressions: No
Use DB Cache?: Yes
The Geek
11-13-2005, 02:14 PM
ok - the most liekly reason why this is happening is that you may not be using the updated replacements listed in the readme. Saying that - I was just playing around with them and while they are an imrpovement, I have found an ever beeter way of doing it. Ill updated the package in the next release to include a hover no link group however in the meantime, try this:
In your Main CSS, add the following:
span.gal {
text-decoration: none;
border-bottom: 1px dotted #4D528C;
color : #4D528C;
padding:0 0 0 12px;
background:url(images/misc/exlinkon.gif) no-repeat 0
}
span.gal:hover {
text-decoration: underline;
border-bottom: 0px dotted #009933;
color : #009933;
padding:0 0 0 12px;
background:url(images/misc/exlink.gif) no-repeat 0;
}
The in your admincp->gal section, go to replacements and add the following replacement:
title: Popup with no link
<span class='gal' onmouseover='GAL_popup(this,"$gal_offset", $gal_width, "$gal_box_style", "$gal_description", "$gal_description_style");' onmouseout='GAL_hidepopup();'>$gal_text</span>
Then add a new category to use this replacement OR edit a current category and set it to use this replacment.
Then click maintenence->debug->rebuild
That shoudl sort you out ;)
1996 328ti
11-13-2005, 04:02 PM
The in your admincp->gal section, go to replacements and add the following replacement:
title: Popup with no linkI added it, (not replace).
Added the additon CSS code.
What happens now is that the highlighted word is repeated.:confused:
And it links to itself. That is I can still click on the word.
The Geek
11-13-2005, 04:05 PM
Are you sure you rebuilt and that there are not duplicates?
1996 328ti
11-13-2005, 04:18 PM
Are you sure you rebuilt and that there are not duplicates?
The replacement for popup with no title
<a href='$gal_link' target='_blank' class='gal' onmouseover='GAL_popup(this,"$gal_offset", $gal_width, "$gal_box_style", "$gal_description", "$gal_description_style");' onmouseout='GAL_hidepopup();'>$gal_text</a>
<span class='gal' onmouseover='GAL_popup(this,"$gal_offset", $gal_width, "$gal_box_style", "$gal_description", "$gal_description_style");' onmouseout='GAL_hidepopup();'>$gal_text</span>
When I hit rebuild
Find#((\s|<li>|<span class="highlight">|<strong>|<b>|<i>)\b(CAI)s?\b)#im
Rebuild<a href='#' target='_blank' class='gal' onmouseover='GAL_popup(this,"1", 300, "style=\"border: 1pt solid #000000;\"", "Cold <!--GAL-->Air <!--GAL-->Intake", "style=\"background: #FFFFCC;padding: 2px;font-size: 10px;\"");' onmouseout='GAL_hidepopup();'><!--GAL-->$1</a> <span class='gal' onmouseover='GAL_popup(this,"1", 300, "style=\"border: 1pt solid #000000;\"", "Cold <!--GAL-->Air <!--GAL-->Intake", "style=\"background: #FFFFCC;padding: 2px;font-size: 10px;\"");' onmouseout='GAL_hidepopup();'><!--GAL-->$1</span>
CAI is the word I am using in the glossary.
Edit:
This is interesting.
'I just installed my Cosmo CAI CAI today...'
If I click on the first CAI I generate a new page.
If I click on the 2nd, it works as you would expect. No link.
But CAI should only be there once.
1996 328ti
11-15-2005, 03:18 AM
Any luck with the double words?
The Geek
11-15-2005, 07:55 AM
Not yet however I have found the cause and ALMOST have it sorted. Its all pretty much waiting on a new regex which is beyond my ability. I have posted on a couple other sites but havent gotten too far yet (makes me think Im on the cutting edge with this regex!)
FIngers crossed I may have a solution tonight!
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.