Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4263
Latest: Cekky
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43455
Total Topics: 7557
Most Online Today: 315
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 46
Total: 47

Author Topic: Increasing spacing between Horizontal or Vertical ads  (Read 6052 times)

0 Members and 1 Guest are viewing this topic.

Offline northview

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • Posts: 15
    • View Profile
Increasing spacing between Horizontal or Vertical ads
« on: January 30, 2016, 10:26:48 pm »
Can you please advise if there is a method to increase the spacing between horizontal ads (i.e. in Message Index) or vertical ads (Right Side of Forum).

Currently, the ads in the horizontal section are tight together and there should be some separation.

If there is a way to achieve this, can you please provide some samples.

Thanks very much.
« Last Edit: February 02, 2016, 01:19:24 pm by northview »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16524
    • View Profile
Re: Increasing spacing between Horizontal or Vertical ads
« Reply #1 on: January 30, 2016, 11:33:13 pm »
Possibly never tried but you could edit sources/adsller2.php

Around liens 2640 and 2672


For vertical it would be adding more <br /> tags

Code: [Select]
if ($verticalAd == true)
$adDisplayData .= '<br />';
To
Code: [Select]
if ($verticalAd == true)
$adDisplayData .= '<br /><br />';
In both spots


FOr horizontal would involve more spacing
Code: [Select]
if ($verticalAd == true)
$adDisplayData .= '<br />';
else
$adDisplayData .= '&nbsp;&nbsp;';
To
Code: [Select]
if ($verticalAd == true)
$adDisplayData .= '<br /><br />';
else
$adDisplayData .= '&nbsp;&nbsp;';

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 northview

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • Posts: 15
    • View Profile
Re: Increasing spacing between Horizontal or Vertical ads
« Reply #2 on: February 01, 2016, 10:06:59 pm »
No success with your suggestion, would you be willing to customize the code for a fee?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16524
    • View Profile
Re: Increasing spacing between Horizontal or Vertical ads
« Reply #3 on: February 02, 2016, 10:47:03 am »
Maybe I would have to think what to do differently though.
I would need to know the ad types used.
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 northview

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • Posts: 15
    • View Profile
Re: Increasing spacing between Horizontal or Vertical ads
« Reply #4 on: February 02, 2016, 01:19:01 pm »
Banner type ads, again, currently they are tight, side to side (horizontal). I could try to add white space on each of the left and right side of the ad but then it would be 'white' in those areas where the theme is not white. This would be a lot of messing with the graphics so preferably, increasing the spacing would be best.

Also, I should mention that I've been really impressed with your service, your products and your knowledge. Is there any chance that you would be for hire with regard to providing custom SMF work and continued maintenance?  I would certainly understand if you don't have time because you have a huge product line already. If you can't, can you recommend someone of your caliber that you respect?

Thanks in advance.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16524
    • View Profile
Re: Increasing spacing between Horizontal or Vertical ads
« Reply #5 on: February 02, 2016, 04:13:34 pm »
I am really busy this week to next week and a half at least. Moving around some servers. I really do not have a ton time for custom work I run couple other companies and offices.
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 northview

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • Posts: 15
    • View Profile
Re: Increasing spacing between Horizontal or Vertical ads
« Reply #6 on: February 03, 2016, 07:48:29 pm »
It worked, not sure why it didn't work the first time but maybe I was on an incorrect line. Here is the code, starting on line 2670.

Again, I really appreciate your time and suggestions, the ads now look very professional. I hope this may help others in the future.

/Sources/AdSeller2.php

    // Banner   (LINE # 2670)
    if ($adRow['adtype'] == 2)
    {
        if ($verticalAd == true)
          $adDisplayData .= '<br />';
       // ------------------------------------------------------------------------ 
       // ~ Custom Change ~ 2016-02-03 added the following to increase horizontal spacing
      else
        {
         
        if ($verticalAd == false)
            $adDisplayData .= '&nbsp;&nbsp;&nbsp;';
         
        }
       // ------------------------------------------------------------------------ 


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16524
    • View Profile
Re: Increasing spacing between Horizontal or Vertical ads
« Reply #7 on: February 03, 2016, 07:52:47 pm »
Glad you have it working!
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/

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
5013 Views
Last post January 25, 2007, 01:31:20 pm
by veldfire
3 Replies
4421 Views
Last post April 28, 2008, 07:23:54 am
by SMFHacks
14 Replies
30591 Views
Last post March 24, 2014, 11:47:58 pm
by SMFHacks
3 Replies
5523 Views
Last post March 07, 2014, 11:40:36 am
by SMFHacks
0 Replies
2917 Views
Last post February 06, 2016, 11:50:48 pm
by northview

+- Recent Topics

[Mod]Tenor Posting Animated Gifs by SMFHacks
August 30, 2024, 04:04:26 pm

List of other errors after installing and trying to use by SMFHacks
August 27, 2024, 02:15:52 pm

Subject Error by SMFHacks
August 27, 2024, 02:15:46 pm

Store Not Logging Transactions or Sending Emails for Paid Items, Free Items Work by SMFHacks
August 27, 2024, 05:26:52 am

Don't Know How to Unhide Previously Hidden Items in Latest SMF Store 5.0 by Michael Vail
August 26, 2024, 11:38:33 pm

Undefined array key "session_var" and Undefined array key "session_id" Errors by SMFHacks
August 26, 2024, 11:10:54 pm

SMF Links Error by yamiacaveman
August 22, 2024, 06:21:53 pm

HTTP Error 500 by SMFHacks
August 20, 2024, 12:28:53 pm

Site upgrade to 2.1 by live627
August 18, 2024, 02:47:33 am

Uninstall issue and new licence no email by landyvlad
August 16, 2024, 08:05:48 am

Powered by EzPortal