Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 218
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 200
Total: 201

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

Started by Squash « 1 2 » Support

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

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal