SMFHacks.com

Ad Seller Pro => Support => Topic started by: wildguzzi on February 14, 2011, 10:06:53 am

Title: Newbie with quick question
Post by: wildguzzi on February 14, 2011, 10:06:53 am
Bought the mod and installed it last night.  Made all the changes and it appears to be running fine.  Paypals IPN was a little slow getting messages out though.

Ok, on to the question.  I'd like to have the links open in a new window.  So, I made the following changes:
href=target="_blank", but it dont work.  It tries to open a page on the forum that's not there,, rather than trying to go to the destination URL of the advertiser.

Is it a simple problem with my code?  I'm not the worlds best at php, but can get around a little bit.

Thanks in advance for any guidance.
Title: Re: Newbie with quick question
Post by: SMFHacks on February 14, 2011, 12:22:04 pm
What is the full line of code that you are editing
Instead of
href=target="_blank",
Just do the following to the link
Code: [Select]
target="_blank"
Title: Re: Newbie with quick question
Post by: wildguzzi on February 14, 2011, 04:37:30 pm
Ok, the line I am editing is this:
<td><b><u><a href="' . $scripturl . '?action=adpro;sa=c&amp;id=' . $adRow['ID_AD'] . '"><font color="' . $adRow['ad_title_color'] . '">' . $adRow['ad_title'] . '</font></a></u></b></td>

So, do I just change it to this:
<td><b><u><a target="_blank"' . $scripturl . '?action=adpro;sa=c&amp;id=' . $adRow['ID_AD'] . '"><font color="' . $adRow['ad_title_color'] . '">' . $adRow['ad_title'] . '</font></a></u></b></td>

Also, do all the href's, or just a certain couple?  Sorry to be a pain.  I tried the above to all instances, but the links were not clickable.

Again, thanks for the help.
Title: Re: Newbie with quick question
Post by: SMFHacks on February 14, 2011, 04:42:02 pm
I would do all the href's to safe

Change
Code: [Select]
<td><b><u><a href="' . $scripturl . '?action=adpro;sa=c&amp;id=' . $adRow['ID_AD'] . '"><font color="' . $adRow['ad_title_color'] . '">' . $adRow['ad_title'] . '</font></a></u></b></td>
To
Code: [Select]
<td><b><u><a href="' . $scripturl . '?action=adpro;sa=c&amp;id=' . $adRow['ID_AD'] . '" target="_blank"><font color="' . $adRow['ad_title_color'] . '">' . $adRow['ad_title'] . '</font></a></u></b></td>
Title: Re: Newbie with quick question
Post by: wildguzzi on February 14, 2011, 06:10:07 pm
That did the trick.  Thanks for the great mod and better support.
Title: Re: Newbie with quick question
Post by: SMFHacks on February 14, 2011, 06:13:11 pm
Also be sure to add your license information under
http://www.smfhacks.com/index.php?action=license
So you gain access to the customer forums and downloads
Title: Re: Newbie with quick question
Post by: wildguzzi on February 14, 2011, 07:38:06 pm
Also be sure to add your license information under
http://www.smfhacks.com/index.php?action=license
So you gain access to the customer forums and downloads

All done.  Thanks again.