Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4229
Latest: Ghost
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 43064
Total Topics: 7492
Most Online Today: 124
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 37
Total: 38

Author Topic: Newbie with quick question  (Read 4433 times)

0 Members and 1 Guest are viewing this topic.

Offline wildguzzi

  • Member
  • *
  • Posts: 21
    • View Profile
Newbie with quick question
« 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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16349
    • View Profile
Re: Newbie with quick question
« Reply #1 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"
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline wildguzzi

  • Member
  • *
  • Posts: 21
    • View Profile
Re: Newbie with quick question
« Reply #2 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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16349
    • View Profile
Re: Newbie with quick question
« Reply #3 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>
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline wildguzzi

  • Member
  • *
  • Posts: 21
    • View Profile
Re: Newbie with quick question
« Reply #4 on: February 14, 2011, 06:10:07 pm »
That did the trick.  Thanks for the great mod and better support.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16349
    • View Profile
Re: Newbie with quick question
« Reply #5 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
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline wildguzzi

  • Member
  • *
  • Posts: 21
    • View Profile
Re: Newbie with quick question
« Reply #6 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.

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
4330 Views
Last post September 14, 2006, 05:21:11 pm
by Sassy
2 Replies
3970 Views
Last post September 27, 2006, 05:25:05 pm
by conorp
1 Replies
3644 Views
Last post October 25, 2006, 03:58:24 pm
by SMFHacks
1 Replies
4490 Views
Last post July 17, 2007, 06:34:56 pm
by SMFHacks
Newbie question

Started by Squash « 1 2 » Support

28 Replies
12587 Views
Last post June 20, 2010, 07:23:10 am
by SMFHacks

+- Recent Topics

Follow / Follower Mod? by Nicole
Today at 07:21:11 pm

[Mod]Discord Web Hooks by SMFHacks
Today at 03:57:28 pm

SMF 2.1.4 Search by Anmer
Today at 01:55:15 pm

Looking for a good video player by SMFHacks
September 21, 2023, 06:06:46 am

Error in thise mode by Ghost
September 15, 2023, 08:42:24 am

Gallery Selection List Order by mickjav
September 07, 2023, 12:46:31 pm

[Mod]Tidy Child Boards 2.0 by Norwinjose
September 02, 2023, 11:42:54 am

PrettyUrls SEO Pro: Unable to submit sitemap to google search conmsole by SMFHacks
August 31, 2023, 10:55:22 am

PrettyURL - SEO4SMF Rewrites? by SMFHacks
August 28, 2023, 06:35:33 pm

Web versus Mobile by SMFHacks
August 28, 2023, 03:12:57 pm

Powered by EzPortal