1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Post Promotion 0.3

Post Promotion

  1. richrf

    richrf New Member

    Interesting. I was actually able to promote from the home page and that is where I saw the bug since both posts were visible.

    Thanks for the CSS link.

    Rich
     
  2. kmai

    kmai New Member

    Post Promotion 0.1.5

    Hi petsagouris,

    Please help me
    It is possible to show below Read more
    plugins: Comments, tags, Tweet This, and the Post Views.
    And whenever the promoted posts appear, it is hidden from normal posting

    Thanks

    Look how you're getting, vote works

    1283082888048.png
     
  3. petsagouris

    petsagouris Design & Development

    The showing of the promoted post in the posts list below is a matter of the Bookmarking plugin.
    There is no way to know if the promoted post that is being displayed is listed below since they are two completely separate plugins.

    Please download the newest 0.2.0 version from the initial post, has some nifty improvements.
     
  4. kmai

    kmai New Member

    Good update

    Please where I can change Bookmarking plugin to hide the post promoted on the home page.
    and plugins: Comments, tags, Tweet This, and the Post Views.

    Thanks
     
  5. petsagouris

    petsagouris Design & Development

    There is a way but keep in mind that it is a hack.
    The consequence is that you'll have an item missing from the post list below the promoted post.
    For example, if you have 10 posts in the list you will have 9 displaying if one of them is the promoted post.
    If you can live with that slight consequence of the hack found below here is what you need to do:

    You'll need to open post_promotion/post_promotion.php and go around line 175 and modify it so it looks like:
    PHP:
                    $id $this->promoted_posts[(count($this->promoted_posts) > 1) ? rand(0count($this->promoted_posts) - 1) : 0]['id'];
                    
    $h->vars['post_promotion_promoted_post_id'] = $id// add this line
                    
    $h->readPost($id);
    Then you also need to go into bookmarking/templates/bookmarking_list.php around line 27 and modify it so that it looks like:
    PHP:
    foreach ($h->vars['pagedResults']->items as $post) {
        if(
    $h->isActive('post_promotion') && array_key_exists('post_promotion_promoted_post_id',$h->vars) && $h->vars['post_promotion_promoted_post_id'] == $post->post_id) { continue; } // add this line
        
    $h->readPost(0$post);
    I haven't figured out that yet, maybe it will take some time to find a way to do it.
     
    kmai likes this.
  6. kmai

    kmai New Member

    I have conscience which is a hack
    bookmarking_list.php is installed in the root themes
    is working perfect
    you are best

    Thank you very much
     
  7. carlo75

    carlo75 Design & Development

    Hi petsagouris,
    I'm playing with your funny plugin. A question: inf I promote a post, I see only on Home page right?
    Can be possible to see on all pages?
     
  8. petsagouris

    petsagouris Design & Development

    Well this is another hack to go about it.
    In post_promotion/post_promotion.php around line 172 you find:
    PHP:
            $this->load_settings($h);
            if ((
    $this->display_at_hook == $hook) && ($h->isHome())) {
                if (!empty(
    $this->promoted_posts)) {
    You need to turn it into
    PHP:
            $this->load_settings($h);
            if (
    $this->display_at_hook == $hook) {
                if (!empty(
    $this->promoted_posts)) {
     
    carlo75 likes this.
  9. carlo75

    carlo75 Design & Development

    Thank you man,
    I'll try as soon as possible!
     
  10. petsagouris

    petsagouris Design & Development

    Not a problem, you might wanna check out the latest v0.2.5 ;)
     
    kmai likes this.
  11. petsagouris

    petsagouris Design & Development

    This is now possible in the latest v0.2.8. Please upgrade.
     
    kmai likes this.
  12. kmai

    kmai New Member

    Post Promotion 0.2.8

    Hi petsagouris,

    the latest v0.2.5 Dedug on
    the latest v0.2.8 Debug on
    Maybe I'm doing something wrong.
    In each update I uninstalled and made to install the plugin.

    Thanks
     
  13. petsagouris

    petsagouris Design & Development

    Well it seems that I was using a feature available only in PHP 5.3+.
    I've take care of that in the latest v 0.2.9
     
    kmai likes this.
  14. kmai

    kmai New Member

    Post Promotion 0.2.9.

    Hi petsagouris

    see as it was after my adjustment plugin Post Promotion 0.2.9.

    Thank you very much

    1283353319051.png
     
  15. ikarios

    ikarios New Member

    I had problems with the content of post_promotion-0.2.9.zip.
    files are corrupted
     
  16. petsagouris

    petsagouris Design & Development

    Since no one else has reported problems with this, I suggest you get another zip program to unzip the file and try downloading.
     
  17. RSP

    RSP New Member

    Hi Petsagouris,

    In the Plugin settings in the admin for this plugin there is this error message:
    Warning: Invalid argument supplied for foreach() in /home/****/****/public_html/libs/IncludeCssJs.php on line 49

    And after I promoted a post this error:
    Notice: Undefined index: votes_up in /home/****/****/public_html/content/plugins/post_promotion/templates/post_promotion_promoted_post.php on line 31

    Any tips to resolve this?

    Thanks!
     
  18. petsagouris

    petsagouris Design & Development

    Thanks for the report. I'll try fix it as soon as possible.
    Until then verify you have all the necessary files extracted from the zip archive properly.
     
  19. RSP

    RSP New Member

    Ok thanks!
    Confirming that all the necessary files are properly extracted.

    Greetzz
     
  20. kmai

    kmai New Member

    Hi petsagouris,

    how are you checking the "Plugin Post Promotion"
    please add the option
    promotion automatically after x votes
    reaching the number of votes that you stipulated the post is upgraded automatically
    it would be great
    if possible

    Thanks
     

Share This Page