Buying $50 for the one who can insert my 2 ads inside the content - WP

Discussion in 'Programming' started by MarianCvrta, Aug 14, 2010.

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

    Attached Files:

    • ads.jpg
      ads.jpg
      File size:
      99.2 KB
      Views:
      226
    MarianCvrta, Aug 14, 2010 IP
  2. gpearce

    gpearce Active Member

    Messages:
    1,432
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    90
    As Seller:
    100% - 2
    As Buyer:
    100% - 3
    #2
    If none of the others work out, drop me a PM - I can make this work for you. Thanks :)
     
    gpearce, Aug 14, 2010 IP
  3. MarianCvrta

    MarianCvrta Peon

    Messages:
    195
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    i did it by myself with a little help from a friend. thanks anyway.
     
    MarianCvrta, Aug 15, 2010 IP
  4. yowan

    yowan Active Member

    Messages:
    122
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    after he asked for a script demonstration and was given a working code to test himself, then *poof* he no longer replied. whatever.
     
    yowan, Aug 15, 2010 IP
  5. MarianCvrta

    MarianCvrta Peon

    Messages:
    195
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    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!
     
    MarianCvrta, Aug 15, 2010 IP
  6. yowan

    yowan Active Member

    Messages:
    122
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    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, Aug 15, 2010 IP
  7. Montecito

    Montecito Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    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.
     
    Montecito, Aug 16, 2010 IP
  8. fly2high

    fly2high Active Member

    Messages:
    273
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    75
    As Seller:
    100% - 0
    As Buyer:
    100% - 5
    #8
    same here,. he say he "figure it out with help of friends". I wonder which friend, in this thread or not..
     
    fly2high, Aug 17, 2010 IP
  9. MarianCvrta

    MarianCvrta Peon

    Messages:
    195
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #9
    @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?
     
    MarianCvrta, Aug 18, 2010 IP
  10. yowan

    yowan Active Member

    Messages:
    122
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #10
    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?
     
    yowan, Aug 18, 2010 IP
  11. MarianCvrta

    MarianCvrta Peon

    Messages:
    195
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #11
    :))) 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
     
    MarianCvrta, Aug 18, 2010 IP
  12. yowan

    yowan Active Member

    Messages:
    122
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #12
    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?
     
    yowan, Aug 18, 2010 IP
  13. MarianCvrta

    MarianCvrta Peon

    Messages:
    195
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #13
    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.
     
    MarianCvrta, Aug 19, 2010 IP