Jump to content

Download: (SOS33) Advertising on Posts


Lucas Coutinho

Recommended Posts

Posted

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

Posted

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

Posted

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.
Posted

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.

Posted

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?
Posted

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 :smile:

Posted

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.
  • 2 weeks later...
Posted

"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!

Posted

Is there any way to manually remove the ads from the mobile skin?



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;

}

Posted

"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
Posted

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;

}




Perfect, thanks so much :)
Posted

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 :)
Posted

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 :smile:




You can place it at the end of the file :)
Posted

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;

}




Thanks a lot.
Sorry people, I was very busy last 2 weeks.
I will fix it and update in this week.
  • 3 weeks later...
Posted

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 :) Thanks

Posted

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

Posted

Is it somehow possible to change the code so that the advertisement is showing on the first post on each page and not only on the first page?

Yes, of course.
Find
$post['post']['post_count'] == 1
Change to
$post['post']['post_count']%$this->settings['display_max_posts'] == 1

Archived

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

  • Recently Browsing   0 members

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