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: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 182
Total: 182

Author Topic: Couple questions about banner vs. txt and banner size  (Read 7619 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: 16436
    • 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: 16436
    • 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: 16436
    • 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: 16436
    • 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
5190 Views
Last post May 30, 2007, 07:11:03 am
by stormlrd
0 Replies
4630 Views
Last post December 04, 2008, 01:15:54 pm
by Vincent Volmer
0 Replies
6731 Views
Last post April 12, 2010, 04:08:45 pm
by madman71
3 Replies
3905 Views
Last post June 29, 2010, 01:28:44 pm
by SMFHacks
1 Replies
5345 Views
Last post April 26, 2011, 10:02:09 am
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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