Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43260
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 272
Total: 273

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

Started by Squash « 1 2 » Support

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

+- Recent Topics

No thumbnails on new uploads by Tonyvic
Today at 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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal