The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Auto-Linker

Geek Auto-Linker GAL automatically links keywords that users type in posts to advertising hover pop-ups.

Advertisement
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 07-17-2009, 07:44 AM
Sagobal Sagobal is offline
Junior Member
 
Join Date: Jul 2009
Posts: 2
Geek Auto-Linker Pro License Holder 
Default Remove href when no link is given

Hi.
I like to use GAL for linking and explaining. So sometimes an explanation dosn't have a link. The problem is, without a link it links to the same page in a new target. So I like to remove the linking funtion if there is no link given.

Can someone help me?
Reply With Quote
  #2  
Old 07-17-2009, 08:50 AM
Sagobal Sagobal is offline
Junior Member
 
Join Date: Jul 2009
Posts: 2
Geek Auto-Linker Pro License Holder 
Default

I found the soution.

Change the gal_link_popup to:
PHP Code:
<if condition="empty($gal[url])">
    <
class="gal" id="$gal[tagid]">$gal[match]</a>
<else />
<
a href="$gal[url]" target="_blank" class="gal" id="$gal[tagid]">$gal[match]</a>
</if> 

And change the CSS to:
Code:
/* GAL Defns */
a.gal
{
	text-decoration: none;
	border-bottom: 1px dotted #016798;
	color: #016798;
	padding: 0 0 0 12px;
	background: url(images/misc/exlinkon.gif) no-repeat 0;
}
a.gal:visited
{
	text-decoration: none;
	border-bottom: 1px dotted #016798;
	color: #016798;
	padding: 0 0 0 12px;
	background: url(images/misc/exlinkon.gif) no-repeat 0;
}
a.gal:hover, a.gal:active
{
	text-decoration: underline;
	border-bottom: 0px dotted #F8BF24;
	color: #016798;
	padding: 0 0 0 12px;
	background: url(images/misc/exlink.gif) no-repeat 0;
}
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible words automatically link a external link? najaru Geek Auto-Linker 2 10-09-2009 06:39 PM
remove padding pdude Geek Article and Review System 4 06-23-2009 07:55 AM
Remove frame Easy4 Geek Advertising Banner System 1 04-05-2008 09:30 AM
remove image from link category ryancooper Geek Auto-Linker 1 05-29-2006 08:12 AM
Remove Copyright smartie Geek Article and Review System 2 03-26-2006 09:22 PM


All times are GMT. The time now is 10:58 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.