SMFHacks.com
Ad Seller Pro => Support => Topic started by: northview 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.
-
Possibly never tried but you could edit sources/adsller2.php
Around liens 2640 and 2672
For vertical it would be adding more <br /> tags
if ($verticalAd == true)
$adDisplayData .= '<br />';
To
if ($verticalAd == true)
$adDisplayData .= '<br /><br />';
In both spots
FOr horizontal would involve more spacing
if ($verticalAd == true)
$adDisplayData .= '<br />';
else
$adDisplayData .= ' ';
To
if ($verticalAd == true)
$adDisplayData .= '<br /><br />';
else
$adDisplayData .= ' ';
-
No success with your suggestion, would you be willing to customize the code for a fee?
-
Maybe I would have to think what to do differently though.
I would need to know the ad types used.
-
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.
-
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.
-
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 .= ' ';
}
// ------------------------------------------------------------------------
-
Glad you have it working!