sarahjones123
Forum Replies Created
-
Thank you for the reply. I just tested again offline and it works fine. Nice.
If you’ll really follow the idea of creating access restriction for PM, I believe this plugin will be the first one.
Regards,
Hi Igor,
My theme author just replied to me today and said any of the plugins should work but I’ll need to edit the theme code to insert the plugin tag. But my support subscription with the theme already expired. And if I have to pay for the theme support again to get the author to do that for me, since I’d need to purchase your Ad Inserter Pro anyway ( as is, my website already has 38 categories, and may expand further if my site will grow after launching), I’m wondering if you are able to add the plugin tag for me to make it work ?
It will mean a whole world to me if you can help as this is the last main technical obstacle I have after 1+ years of exploring and trying to create this website idea. It will also help end my 2016 on a good, completion note. I sincerely hope you can help, if you can.
Thank you.
Thank you for the follow-up. I apologize for inadvertently misleading you into thinking I can write codes and for the misunderstanding.
I picked up these terms in the process of creating my site and learned how to look for files when directed to do so. But I don’t know how to write codes.
“@Processing Log
It seems that content/loop start hooks are not called.
You should check your theme.”When you said I should check my theme, what are the exact elements I should look at?
A certain files ? Like the previous theme I used, the theme author directed me to lib/functions/hooks-functions.php to change a certain details in order to make something happen. So what are the files I should check on my theme? If I sent you my theme files, will you be able to find out the problem?All the things you said in the reply, are they for the issue of adding ad blocks to category loop / search result pages only? What about the 2nd issue of adding ads in the post?
If I need to take some online courses to solve these 2 issues, what courses should i take? Thank you.
- This reply was modified 7 years, 11 months ago by sarahjones123.
“2) Settings looks OK… Use debugging function Log Processing to see why the code is not inserted.”
I don’t know how to interpret the log and a quick read to the log at the end of the page source did not seem to show anything revealing WHY the ad is not inserted. But I really have no idea. Here are the log at the end of the page source.
“Can’t write more simple: define some PHP constant in the ad block (PHP code in addition to ad code).
If the block is not inserted then the constant will not be defined – check this and generate ad code in some other code block. For example, something like this:……?”I sincerely apologize I have zero coding skill and don’t have the level of deciphering a “simple” task in a developer’s mind the way a developer can. And if i could, I most probably wouldn’t be here in the first place.
“Can’t write more simple” – you sure can, and this is how.
what I’m hoping to achieve here is: in my single post page, I set up an ad at the top then another ad at the bottom (when the post reaches 120 words). When the post has 350 words or more it will Auto Display the 3 ad (block 2) which is near the middle of the post.Then I set up a widget ad (block 9) in left sidebar. When the middle post ad (block 2) shows up (i.e. is inserted), then widget ad (block 9) should be disabled. If block 2 is not inserted, then block 9 gets to stay in the left sidebar.
I tried a few possible ways but just can’t figure out how to use the logic you described to apply to what i described above of what I hope to achieve.
Now that you have the exact details of what i need, you can “write more simple” by:
helping me with the exact settings for both block 2 and 9 for each parameter that needs to be set up
and what codes i need to add to child theme functions.phpTo be honest, when you replied me with the code you were wishing me to come up with to define code myself, like
AD CODE 3 <?php define ('BLOCK_3'); ?>
<?php if (!defined ('BLOCK_3')) { ?> AD CODE 4 <?php } ?>
and then apply your “simple” logic to solve the issue, I was thinking, “Are you kidding?” You’re expecting all your users to be able to write codes and apply your “simple” logic to a probably complexed issue in your user’s little head.
When I was reading your plugin details in WP directory, I found it appears quite coding-demanding, which also reflects in your responding style since I started this thread. Perhaps coding skill is indeed required for this plugin and stated in the plugin. If I’ve somehow missed out reading that warning, I apologize for trespassing and should certainly excuse myself from this point on.
I admit my comprehension ability in technical things are probably lower than an average person. In the last 2-3 days, I’ve spent 2 hours daily trying to decipher what you replied and tried to apply to what I need (with little success), which is not easy for a single mom with 3 kids around.
Can’t remember who said this,
“A big man makes sure everybody knows he’s big.
A real big man makes certain everyone knows we’re all the same and win’s respect in the end.
And respect does not always go with the most successful.”From the money-making POV, when you give easy and concrete advice/instructions, the user solves the problem in one reply or a brief correspondence, which avoids many unnecessary ensuing back and forth replies. You get to use the saved time and energy to help your PAYING clients or doing personal things you enjoy. And because of the positive experience from you, the happy user is also more likely to come back to you to buy your for-fee products if they sill need one some day.
I think like all things in life, at the end of the day, it’s all a matter of what choices we make everyday, which shapes what kind of human being we are to the people that have come across our life path, as brief as it may be.
Thank you.
“My only experience is that in many cases one or two ads per page may make more money that max allowed 3 ad blocks.”
Thank you for sharing your experience. This is something new to me and I’ll definitely take this into consideration when working on ad placement. I really appreciate that.
“2) The code is OK. It should work.”
For some reason, it does not work whatever I tried. The following are screenshots of my settings plus my child theme functions.php before and after adding the one-line code. Would you please take a look to see if there are any errors?
For the Auto Display parameter, I assume it’s not relevant since it’s under Manual, but tried all of the options anyway and none worked. This Setting is for both category loop and search result page.
I did not include “Lists” because I didn’t change anything there.
I don’t know if this is relevant, I created all my categories so they are not the standard categories that come with WP right after installation. Just a thought.
Before the code
After the code
“…you can achieve this with short PHP code (assuming that the post content is processed before sidebar(s)).
Simply define some constant in the 3rd post block and then check for this constant in the block for sidebar. If it is defined then don’t generate any code.”I read the instructions on Manual but can’t figure out how to physically execute what you described here. I assigned ad Block 9 to my left sidebar, then besides checking “widget”, should i check “Short code” or “php function” (maybe Short code)? What should I select for Counter for Filter (maybe After Post Processing) and Filter Insertion if I want to say for example disable the widget ad block if the post has 250 words or more? I did not find anywhere that tells me how to set a constant to filter out ad block. Thank you.
“2) I assume you have replaced BLOCK_NUMBER with block number.”
The exact codes i added to my child theme functions.php is
<?php if (function_exists ('adinserter')) echo adinserter (6); ?>
since it’s for ad block 6.
Any solution for this?
“3) Don’t focus on ads. Focus on content and visitors.”
I took this very offensive, it sounds so judgmental. I’ve been working on this web site for 1+ years mainly focusing on the content. I”ll be doing myself a huge disservice, even injustice, if i don’t max my potential revenue. And i don’t own a bank that can allow me not to worry about money.
Sounds like the answer to my last question is a no.
Thank you so much for your reply.
1) “– Client side detection and all 3 sizes
This doesn’t make sense. Why are you using device detection and select all devices?”From reading the instruction, I thought for my users to be able to see the inserted ads and properly displayed from their (client’s) side whatever devices they use, I should select Client side detection and thus all 3 sizes. So what’s the correct setting for this? Leave then all unchecked as in default?
2) “Use debugging function Show Positions to show available positions for automatic insertion.”
On a category loop page, all available positions for auto insertion are in the sidebars, except the top of page (before post) as shown in the screenshot above and the bottom of the page “(after post). Nothing available in the main body of the page / loop.
I tried the manual method at https://tinymonitor.com/ad-inserter#manual, but still did not see any ad in the body / loop of a category page. But I may also have done something wrong in the process. So here is what I did. Please advise of any misstep here.
Add
<?php if (function_exists ('adinserter')) echo adinserter (BLOCK_NUMBER); ?>
to my child theme functions.php folderSettings:
Manual: php function checked, Counter for Filter: PHP function calls selected, Filter insertions: 1,3 Feed: tried both check and unchecked and neither worked, Block style: center, Category pages, Search pages, Auto display: I don’t know which one to select so tried them all and none of them worked2) This one worked after I filter out by defining the C number. But I noticed both C and N numbers changed since I checked them yesterday. If it changes again then I assume the ad block will disappear. So what makes the C number change?
““there will be less than 3 ads show up, which is not a good idea”
Why?”The Ad is there to make money. It will be my only source of revenue from this website at least at the beginning. The AdSense tutorial taught me the best performed ad are located in the main body of the post / page because those ads in the sidebars all got pushed down to the bottom of the display on a mobile device, which accounts for a big portion of the total views, and it will only grow to a bigger portion as the trend goes. Since mobile users don’t always go that far down, those ads don’t get viewed as often as those in the main body.
Google allows only 3 ads on one page, when there are less than 3 ads in the main body of the page, if we just leave them as is without inserting ads for the remaining unused quota of 3, as less profitable as they are compared to those in the main body, they will still perform somewhat and it’s a waste of resources (potential revenue) if we don’y use it.
Therefore, the ideal ad positioning when there are less than 3 ads in the main body of a single post, the first sidebar ad should go to the top of left sidebar because it will be the first thing a mobile user sees after they get to the bottom of the main body of the page.
Then the second sidebar ad should ideally go to the 2nd or 3rd widget position in the right sidebar and make sure there’s nothing but one ad in the left sidebar. This means a mobile user will see the ad in the left sidebar then the 1-2 widgets before seeing the ad in the right sidebar. This will ensure complying with Google’s guidelines of no 2 ads in one screen on a mobile device at the same time to make sure both sidebar ads still appear near the top portion on a desktop screen, which is preferred.
Which is why I was asking if Ad Inserter can do what i was asking in the original post.
So can it do that?
Thank you again.
Sincerely,