Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted September 10, 201212 yr 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
September 15, 201212 yr 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
September 15, 201212 yr 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
September 15, 201212 yr 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.
September 16, 201212 yr 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.
September 16, 201212 yr 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?
September 16, 201212 yr 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:
September 16, 201212 yr 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.
October 4, 201212 yr "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!
October 4, 201212 yr 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:
October 4, 201212 yr 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; }
October 4, 201212 yr "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
October 4, 201212 yr 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 :)
October 4, 201212 yr 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!!
October 4, 201212 yr 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 :)
October 4, 201212 yr 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 :)
October 8, 201212 yr 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.
October 26, 201212 yr 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
October 31, 201212 yr 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
November 6, 201212 yr 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?
November 6, 201212 yr 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
Archived
This topic is now archived and is closed to further replies.