Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4292
Latest: MashaMl8417
New This Month: 4
New This Week: 3
New Today: 3
Stats
Total Posts: 43790
Total Topics: 7602
Most Online Today: 62
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 50
Total: 50

Author Topic: Couple questions about banner vs. txt and banner size  (Read 8242 times)

0 Members and 1 Guest are viewing this topic.

Offline webdzr

  • Member
  • *
  • Posts: 15
    • View Profile
Couple questions about banner vs. txt and banner size
« on: December 06, 2011, 12:40:59 pm »
Im still testing before I go live with selling ads
and there are a few questions that I have.

If I set an ad location to allow banner images,
banner ads must use the full adspace is checked and set the adspace width and height,

Allow text links not being checked,

the purchacer of adspace is still able to create a textlink ad.

The same thing if Allow text links is checked and banner ad is not
they can still create a banner ad.

Also specifing the banner height and width seem to have no effect, the purchacer
can still upload any size image.

Now im testing in sandbox mode so im not sure if that has any effect on things
or is the script acting properly?


Also is there a way to have the Advertise tab in the menu that shows only for
members that are logged in?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16673
    • View Profile
Re: Couple questions about banner vs. txt and banner size
« Reply #1 on: December 07, 2011, 09:14:09 pm »
Will look into the top part thursday night.

For advertise button in SMF 2.0 you would need to modify

Sources/Subs.php
Find
Code: [Select]
// the [Ad Seller Pro] button
'adpro' => array(
'title' => $txt['txt_seller_admin_tab'],
'href' => $scripturl . '?action=adpro;sa=buyadspace',
'show' => ($modSettings['seller_show_advetise'] == 1 ? true : false),
'icon' => '',
),

Change to
Code: [Select]
// the [Ad Seller Pro] button
'adpro' => array(
'title' => $txt['txt_seller_admin_tab'],
'href' => $scripturl . '?action=adpro;sa=buyadspace',
'show' => ($modSettings['seller_show_advetise'] == 1 && !$user_info['is_guest']) ? true : false),
'icon' => '',
),

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 webdzr

  • Member
  • *
  • Posts: 15
    • View Profile
Re: Couple questions about banner vs. txt and banner size
« Reply #2 on: December 08, 2011, 07:42:44 am »
Ok Thanks

Offline webdzr

  • Member
  • *
  • Posts: 15
    • View Profile
Re: Couple questions about banner vs. txt and banner size
« Reply #3 on: December 08, 2011, 10:33:08 am »
Will look into the top part thursday night.

For advertise button in SMF 2.0 you would need to modify

Sources/Subs.php
Find
Code: [Select]
// the [Ad Seller Pro] button
'adpro' => array(
'title' => $txt['txt_seller_admin_tab'],
'href' => $scripturl . '?action=adpro;sa=buyadspace',
'show' => ($modSettings['seller_show_advetise'] == 1 ? true : false),
'icon' => '',
),

Change to
Code: [Select]
// the [Ad Seller Pro] button
'adpro' => array(
'title' => $txt['txt_seller_admin_tab'],
'href' => $scripturl . '?action=adpro;sa=buyadspace',
'show' => ($modSettings['seller_show_advetise'] == 1 && !$user_info['is_guest']) ? true : false),
'icon' => '',
),




Just for reference if anybody else wants to use the above code there is an extra  )  right before  ? true : false), that
breaks the code.

It should look like this:
Code: [Select]
// the [Ad Seller Pro] button
'adpro' => array(
'title' => $txt['txt_seller_admin_tab'],
'href' => $scripturl . '?action=adpro;sa=buyadspace',
'show' => ($modSettings['seller_show_advetise'] == 1 && !$user_info['is_guest'] ? true : false),
'icon' => '',
),

Works perfect now!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16673
    • View Profile
Re: Couple questions about banner vs. txt and banner size
« Reply #4 on: December 09, 2011, 10:14:12 pm »
Posted an update that should fix checking for ad types and banner size

1.0.11
!Fixed issue with when buying ads that checking was not working for allowed ad types textlinks/banners.
!Fixed checking for banner width and height for buyer adspace
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 webdzr

  • Member
  • *
  • Posts: 15
    • View Profile
Re: Couple questions about banner vs. txt and banner size
« Reply #5 on: December 13, 2011, 12:22:18 pm »
Thank you so much for that update. It really helped me a lot :)

There is one thing though, i think the banner ad must use full adspace function isn't working.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16673
    • View Profile
Re: Couple questions about banner vs. txt and banner size
« Reply #6 on: December 19, 2011, 12:45:20 pm »
Will look into the fullspace issue for banners.
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 amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: Couple questions about banner vs. txt and banner size
« Reply #7 on: May 28, 2013, 09:13:37 am »
Sorry to necro but someone has just posted a text ad and it is 100% width. Is there any way to restrict that and the amount of text they can put in the body?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16673
    • View Profile
Re: Couple questions about banner vs. txt and banner size
« Reply #8 on: May 30, 2013, 12:55:13 pm »
At the moment no but sounds like a good setting request.
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 amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: Couple questions about banner vs. txt and banner size
« Reply #9 on: June 04, 2013, 11:23:57 am »
Then please consider it one. Probably the same size as banner ads. Not sure how you determine the body text restriction from that but I guess looking at how Google AdSense does it would be a good start

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
5374 Views
Last post May 30, 2007, 07:11:03 am
by stormlrd
0 Replies
4719 Views
Last post December 04, 2008, 01:15:54 pm
by Vincent Volmer
0 Replies
6890 Views
Last post April 12, 2010, 04:08:45 pm
by madman71
3 Replies
4086 Views
Last post June 29, 2010, 01:28:44 pm
by SMFHacks
1 Replies
5515 Views
Last post April 26, 2011, 10:02:09 am
by SMFHacks

+- Recent Topics

[Mod]Cloudflare Turnstile for SMF by SMFHacks
May 08, 2025, 10:08:43 am

Disable "Notify me of Comments feature" by Kiwi
May 08, 2025, 02:04:16 am

Trying to access array offset on null by Michel68
May 05, 2025, 08:47:34 am

Default [Additional] Membergroups upon Registration by SMFHacks
April 30, 2025, 10:22:52 am

Sorted FTP Import Directory by SMFHacks
April 25, 2025, 05:11:22 am

Search results items per page? by SMFHacks
April 18, 2025, 04:12:23 pm

Suggestions and request by Senkusha
April 03, 2025, 02:30:43 pm

How does a member add a Classified Listing? by SMFHacks
March 28, 2025, 08:05:50 pm

Auto converting to webp or AVIF by [chrisB]
March 28, 2025, 01:46:00 pm

Thumbnail creation settings by SMFHacks
March 28, 2025, 12:42:51 pm

Powered by EzPortal