Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12350
Latest: cl4ude327
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 40055
Total Topics: 7053
Most Online Today: 50
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 22
Total: 22

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

0 Members and 1 Guest are viewing this topic.

Offline wildguzzi

  • Newbie
  • *
  • 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: 15032
    • 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

  • Newbie
  • *
  • 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: 15032
    • 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

  • Newbie
  • *
  • 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: 15032
    • 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

  • Newbie
  • *
  • 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
3744 Views
Last post September 14, 2006, 05:21:11 pm
by Sassy
2 Replies
3286 Views
Last post September 27, 2006, 05:25:05 pm
by conorp
1 Replies
3176 Views
Last post October 25, 2006, 03:58:24 pm
by SMFHacks
1 Replies
4171 Views
Last post July 17, 2007, 06:34:56 pm
by SMFHacks
Newbie question

Started by Squash « 1 2 » Support

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

+- Recent Topics

Error message with latest SMF 2.1 Github build by Hatshepsut
February 28, 2020, 08:04:45 pm

Cannot install Gallery Pro on SMF 2.1 RC2 by SMFHacks
February 27, 2020, 07:30:15 am

[Mod]Avatars Display Integration by SMFHacks
February 15, 2020, 07:30:47 pm

[Mod]BBC Message Boxes 1.0 by SMFHacks
February 15, 2020, 07:26:46 pm

[Mod]Stack Trace by live627 by SMFHacks
February 15, 2020, 07:21:33 pm

Stripe Integration by SMFHacks
February 08, 2020, 10:55:29 pm

SMF Store 4.0 Released by SMFHacks
January 26, 2020, 12:11:56 pm

Order of photos by D4611001
January 21, 2020, 12:06:36 pm

Cannot install by SMFHacks
January 18, 2020, 09:40:56 pm

Call to undefined function mysql_query() by SMFHacks
January 18, 2020, 02:06:47 pm

Powered by EzPortal