Wordpress theme customisation with PHP

Discussion in 'PHP' started by technotip, May 28, 2008.

  1. #1
    1) Blog posts will be variable in length…

    Is it possible to make a theme to show some extra ads in the right side when a blog post is longer (or when there is more number of comments in comment section) and the usual things when the post is normal or small in size?

    Hope my question is confusing.I am not able to express my point here.
    Please ask me again, if you are not able to understand!

    If your answer to my above question is YES.Then please please please tell me how can we do it.I am using wordpress.

    2) And I want to buy http://www.dailyblogtips.com/introducing-newsden-a-premium-wordpress-theme/ theme which costs 67$ .But I am a 20 year old student from India.I can't afford soo much.If possible please donate me some money(0.5$ is also helpful).And please answer my above question.

    3) I am new to DigitalPoinForum.I heard that I can earn money here.But don't know how.I read about revenue sharing, but ppl say that we can make like 100$ in a week here.Please anyone tell me how is it possible. :)
     
    technotip, May 28, 2008 IP
  2. technotip

    technotip Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Please anybody help me.....
     
    technotip, Jun 5, 2008 IP
  3. q7m

    q7m Well-Known Member

    Messages:
    1,178
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    1
    #3
    1) At the end of "sidebar.php" add the following:
    
    if (the_content('') > $chars_count)
    {
        // insert your ads here
    }
    
    Code (markup):
    where $chars_count is the estimated number of characters of the current post that allows the extra ads to be added (eg: $chars_count=1500).

    2) I can give you this template for a low price (for wordpress only, not for pligg). Please contact me privately.

    3) You an earn $100/week if you have a website with really big traffic amount. Revenue sharing on a forum can only brings you some money for beer and only if you have hundreds of posts montly.
     
    q7m, Jun 5, 2008 IP
  4. technotip

    technotip Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi zeegal,
    thanks for the reply...

    Can you please tell me where exactly I should add the code in sidebar.php.
    I added it and the code is just shown in my website along with the ads.

    And I heard that I can earn money in the market place of DPF, but unfortunatly din't find any here.
    About the template, I will just get some money in my paypal account and contact you again.

    Regards,
    SATISH
     
    technotip, Jun 5, 2008 IP
  5. q7m

    q7m Well-Known Member

    Messages:
    1,178
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    1
    #5
    I think you've added the code outsitde of the php markers. It must be enclosed by <?php ?>, some,thing like:
    
    <?php
        if (the_content('') > $chars_count)
        { ?>
            // insert your ads here
        <?php }
    ?>
    
    Code (markup):
    __
    See the "buy, sell or trade" forum: http://forums.digitalpoint.com/forumdisplay.php?f=24
    __
    Ok, I'll be waiting.
     
    q7m, Jun 5, 2008 IP