Jump to content

Download: (SOS33) Advertising on Posts

Featured Replies

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

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

  • Author

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.

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.

  • Author

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?

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:

  • Author

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.

Thank you :) I'll keep checking

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

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

I'm using a custom template (Glare) I'm wondering how I can fix this display issue? I'm not sure which part of the template to edit:

post-142238-0-60117700-1349346837_thumb.


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;

}


"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

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

post-293560-0-70327400-1349348790_thumb.

OR



ACP - System Settings tab Hooks. Find here




Perfect - thank you!! I was simply selecting "Edit Hooks" before and it wasn't giving me the full menu.

Thank you again!!

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

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

You can place it at the end of the file :smile:




Great, thanks, chrisjmc2006!

You can place it at the end of the file :smile:




Awesome - thanks!
  • Author

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

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

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

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?

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

  • No registered users viewing this page.