Jump to content

Download: (SOS33) Advertising on Posts


Lucas Coutinho

Recommended Posts

File Name: (SOS33) Advertising on Posts
File Submitter: Lucas Coutinho
File Submitted: 09 Sep 2012
File Category: Hooks and Plugins

Allow insert a advertising on post. You can select groups who can see, forums where ads will be shown and if it's only on first post or all posts.

Note:



Click here to download this file
Link to comment
Share on other sites

Hi, great hook you got here.

I just noticed today that this hook inserts ads into the mobile skin as well. Should that be a setting instead? Right now, my site uses a 300x250 ad, so it basically messes up the mobile skin when it's displayed.

Can you take a look and let me know?

Thanks, Roger

Link to comment
Share on other sites


Hi, great hook you got here.



I just noticed today that this hook inserts ads into the mobile skin as well. Should that be a setting instead? Right now, my site uses a 300x250 ad, so it basically messes up the mobile skin when it's displayed.



Can you take a look and let me know?



Thanks, Roger



Confirmed, I will fix it in next update.



Nice mod. I'm wondering though how to implement ip.Nexus advertisements, as the usual way doesn't seem to work




{parse advertisement="ad_code_board_index_header"}



and not even the php code to recall it seems to work


Sorry friend, but I guess here is not a right place to ask it.
Link to comment
Share on other sites

Well, it kinda is, as it has to do with your hook :P

I'm trying to put that advertisement code inside, and neither with <? code etc ?> nor the tag works, as it's probably parsed after, so I was wondering if you had any idea on how to make it work.

It's ok, thanks anyway.

Link to comment
Share on other sites


Well, it kinda is, as it has to do with your hook :tongue:



I'm trying to put that advertisement code inside, and neither with <? code etc ?> nor the tag works, as it's probably parsed after, so I was wondering if you had any idea on how to make it work.



It's ok, thanks anyway.



Sorry, can I know which advertising system are you using?
Link to comment
Share on other sites


IP.Nexus, and as per the help page here I tried both methods (Help page), I guess it's parsed after the ip code gets worked out so I have to use another method.



I'm pretty sure other people would find it helpful aswell if you could help. Thank you in any case




I'm upgrading some of my hooks, I will see what's happening.
Link to comment
Share on other sites

  • 2 weeks later...

"Allow insert a advertising on post. You can select groups who can see, forums where ads will be shown and if it's only on first post or all posts"


I'm having a hard time finding the settings pages for this hook...


Where in the ACP can I find the settings??


Thanks!



post-293560-0-70327400-1349348790_thumb.
OR

ACP - System Settings tab Hooks. Find here
Link to comment
Share on other sites


While the author does not fix it, do so:


1. Open for edit IP.Board Mobile


2. Open ipb_styles.css and add


#sos33adspost {

display: none;

}




I was able to find ipb_styles.css and open it for editing.

Within that file, where would I add?
#sos33adspost {
display: none;
}

Thank you in advance :)
Link to comment
Share on other sites

  • 3 weeks later...

Any idea how I could place the advertisement on the bottom of the post instead of on the right? I'm using this to have a disclaimer on each post members make in a certain forum :smile: Thanks

You have to edit hook.

Find (twice)

$post['post']['post'] = '<div id="sos33adspost" style="float:right;"/>'.$this->settings['sos33_adspost_code'].'</div>'.$post['post']['post'].'';

Change to

$post['post']['post'] .= '<div id="sos33adspost">'.$this->settings['sos33_adspost_code'].'</div>';

If required, edit css

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...