Lucas Coutinho Posted September 10, 2012 Posted September 10, 2012 File Name: (SOS33) Advertising on PostsFile Submitter: Lucas CoutinhoFile Submitted: 09 Sep 2012File 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:Hook Author: Lucas CoutinhoClick here to download this file
CODECALL Posted September 15, 2012 Posted September 15, 2012 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
embies Posted September 15, 2012 Posted September 15, 2012 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
Lucas Coutinho Posted September 15, 2012 Author Posted September 15, 2012 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.
embies Posted September 16, 2012 Posted September 16, 2012 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.
Lucas Coutinho Posted September 16, 2012 Author Posted September 16, 2012 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?
embies Posted September 16, 2012 Posted September 16, 2012 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:
Lucas Coutinho Posted September 16, 2012 Author Posted September 16, 2012 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.
OrahChris Posted September 22, 2012 Posted September 22, 2012 Is there any way to manually remove the ads from the mobile skin?
NewToAllThis Posted October 4, 2012 Posted October 4, 2012 "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!
OrahChris Posted October 4, 2012 Posted October 4, 2012 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:
newbie LAC Posted October 4, 2012 Posted October 4, 2012 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; }
newbie LAC Posted October 4, 2012 Posted October 4, 2012 "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! OR ACP - System Settings tab Hooks. Find here
OrahChris Posted October 4, 2012 Posted October 4, 2012 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 :)
NewToAllThis Posted October 4, 2012 Posted October 4, 2012 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!!
NewToAllThis Posted October 4, 2012 Posted October 4, 2012 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 :)
OrahChris Posted October 4, 2012 Posted October 4, 2012 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 :)
CODECALL Posted October 4, 2012 Posted October 4, 2012 You can place it at the end of the file :smile: Great, thanks, chrisjmc2006!
NewToAllThis Posted October 4, 2012 Posted October 4, 2012 You can place it at the end of the file :smile: Awesome - thanks!
Lucas Coutinho Posted October 8, 2012 Author Posted October 8, 2012 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.
Roogle Posted October 26, 2012 Posted October 26, 2012 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
newbie LAC Posted October 31, 2012 Posted October 31, 2012 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
joelle Posted November 6, 2012 Posted November 6, 2012 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?
newbie LAC Posted November 6, 2012 Posted November 6, 2012 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'] == 1Change to$post['post']['post_count']%$this->settings['display_max_posts'] == 1
Recommended Posts
Archived
This topic is now archived and is closed to further replies.