Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12382
Latest: ImportedPotato
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 40240
Total Topics: 7089
Most Online Today: 82
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 91
Total: 91

Author Topic: Newbie with quick question  (Read 3780 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: 15117
    • 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: 15117
    • 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: 15117
    • 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
3777 Views
Last post September 14, 2006, 05:21:11 pm
by Sassy
2 Replies
3329 Views
Last post September 27, 2006, 05:25:05 pm
by conorp
1 Replies
3216 Views
Last post October 25, 2006, 03:58:24 pm
by SMFHacks
1 Replies
4203 Views
Last post July 17, 2007, 06:34:56 pm
by SMFHacks
Newbie question

Started by Squash « 1 2 » Support

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

+- Recent Topics

Moving pictures to another user personal gallery by SMFHacks
August 08, 2020, 11:08:43 am

Call to undefined function mysql_num_rows() by SMFHacks
July 30, 2020, 07:45:29 am

Problem with one videosite embedding by Hatshepsut
July 24, 2020, 01:25:08 am

Download System Lite by Rock Lee
June 03, 2020, 07:34:24 pm

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

Powered by EzPortal