So, I want to use Author Advertising by Harley plugin, but in order to show the ads, I need to insert <?php kd_template_ad($1); ?> into my templates. I'm currently using All in One Adsense and YPN and WP insert to show 2 ads the way you see in the attachment and they work only by inserting ad code. I give $50 the one who can help me insert my 2 ads (<?php kd_template_ad($1); ?>) the same way, manually, or with the two plugins.
after he asked for a script demonstration and was given a working code to test himself, then *poof* he no longer replied. whatever.
I didn't use your code, as it didn't work. I told you to test it on your server, and if it works, I'll test it on my website! check the source code, it's not the same. so please give me a break!
For everyone to know: When I gave him the sample wordpress post with the script demo as well as the script + instruction. He never replied again. I've waited and PMed him again and he said "I'm very tired, I'm gonna sleep". You didn't even let me know that it "did'nt" work on your side, and gave me a no chance to "fix it" to make it work like how you wanted it. Pff, it's a very simple code I've been using to insert google ad code. With a simple tweak which I'll do for you if you accept - will make it work for your requirement. I'm giving you a break - predictable buyer like you is never worth pursuing, but I'll just have to warn people know how it was dealing with you. Before I completely leave, I'll just share this code for everyone to use: USAGE: Insert ADs or Text inside your Blog/Page posts. $myad = 'YOUR AD CODE GOES HERE'; $noads = 2 (number of times the ad will be shown) add to your Functions.php function withad(){ global $post, $posts; $string = $post->post_content; $id = $post->ID; $string = wpautop( $string, $br = 1 ); $pps = explode("<p>", $string); $myad = '<div style="text-align:center">[COLOR="darkred"]INSERT AD CODE HERE[/COLOR]</div>'; $noads = [COLOR="red"]2[/COLOR]; if (count($pps) > $noads){ $divided = round(count($pps)/$noads); $adtoshow = floor(count($pps) / $divided); if (($adtoshow < $noads) && ($divided >1)){ $divided--; } $counter = 0; $showed = 0; for ($x=1; $x<=count($pps); $x++){ $counter++; echo "<p>".$pps[$x]; if (($counter == $divided) && ($showed<$noads)){ echo $myad; $showed++; $counter=0;} } } else { $counter = 0; for ($x=0; $x<=(count($pps)-1); $x++){ echo "<p>".$pps[$x]; $counter++; if ($counter <=$noads){ echo $myad; } } } } Code (markup): To show the ads on your page or blog posts: edit your page.php(pages) or single.php(blog post): replace or uncomment [COLOR="blue"]the_content()[/COLOR] and add the word [COLOR="blue"]withad()[/COLOR] Code (markup): I hope someone will find this code useful, It'll make me feel good better after THIS.
Yowan, This is the problem with sending work upfront. I've had the same experience in here, the client just dissapeared upon getting the completed work. If anything, I got a lesson about sending complete project, before payments.
same here,. he say he "figure it out with help of friends". I wonder which friend, in this thread or not..
@yowan: mate, i have received around 50 pms when posted this thread, I wasn't able to handle them all, and when I said I was going to sleep, I really did! Your code was too complicated to even test!!!! Kishor sent me a very simple code (copied from the web, no pb with that) and solved only one AD! I then figured it out and solved the other one too. What's the problem? That i didn't install yours?? didn't use your code, didn't send any money, what's the pb?
Why are you so worked up? My post is just a feedback on dealing with you, just letting others know how it goes. you, what's your problem? can't people voice their feedback? what are you, hitler?
)) pal, what you're trying to suggest is not true at all. we had no deal. I told you to test it on your server. anyway, that's the end of discussion from my side. i didnt break my promise, so i don't feel guilty at all
We absolutely had no deal because we're still talking. You sound so eager asking to be help that's why I've decided to gave you the script for you to test... and the rest is the story above. I don't need to explain further for such useless no-deal. It's not for you to feel guilty, of course you don't have to, you're just the buyer. It's for other sellers to be aware on dealing with you. You're making such a drama on some bad feedback you've received. Here I have a very nice suggestion for you; since this project is already done, finished, taadaa~ Why don't you close it already?
it's very hard to understand your point.. i don't have to feel guilty as i m the buyer? )) you said we had no deal, but keep warning the others to take care when dealing with me? =))) ask someone to translate your thoughts please.