Duke_

+Clients
  • Content count

    39
  • Joined

  • Last visited


4 Followers



About Duke_

  • Rank
    core_member_rank_45
  • Birthday 06/28/1974

IPS Marketplace

  • Resources Contributor Total file submissions: 5

Duke_'s Activity

  1. Duke_ added a post in a topic: (PS34) Private Footer Blocks   

    Hi
     
    I do not have Safari
    so hard to tell me what is wrong
     
    maybe this article will explain something
    https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariCSSRef/Introduction.html
     
    or enter the address of a community forum on PM
  2. Duke_ added a post in a topic: (PS34) Custom Sidebar   

     
    Think nothing of it! :)
  3. Duke_ added a post in a topic: (PS34) Private Footer Blocks   

     
    Done ;)
  4. Duke_ added a post in a topic: (PS34) Recent Post   

     
    will open bit of recent post
    and find :
    {parse template="userHoverCard" group="global" params="$r"} replace with :
    {IPSMember::makeNameFormatted( $r['members_display_name'], $r['member_group_id'] )}
  5. Duke_ added a post in a topic: (PS34) Recent Post   

    Of course
     
     
     
    using an FTP client edit the file boardIndexRecentPost in Hooks folder
     
    find :
    'limit' => array( 0, 5), replace 5 how much you need
  6. Duke_ added a comment on a file: (PS34) Private Footer Blocks   

     
    Thank you very much for appreciating my idea
  7. Duke_ added a comment on a file: (PS34) Private Footer Blocks   

     
    Sorry but not everyone has to know at this

    Besides,
    through this hook
    you do not need every time
    edited bits
  8. Duke_ added a post in a topic: (PS34) Recent Post   

    I understand that you want the author of last post had nothing to suit your group ?
  9. Duke_ added a post in a topic: IP Content Block issue: "Last post in forum"   

    no problem
  10. Duke_ added a post in a topic: (PS34) Recent Post   

    Sorry, it's my fault
    it refers to a different hook
     
    improving the readme file as soon as possible
  11. Duke_ added a post in a topic: (PS34) Recent Post   





    File Name : (PS34) Recent Post
    File Submitter : Duke_
    File Submitted : 08 Jun 2013
    File Category : User and Social Engagement



    Hook show recent post in sidebar.



    Click here to download this file
  12. Duke_ added a file in User and Social Engagement   

    (PS34) Recent Post v1.0.0
    Hook show recent post in sidebar.
    • 90 downloads
    • 0 comments
  13. Duke_ added a post in a topic: IP Content Block issue: "Last post in forum"   

    on my hook I've done this:
    <if test="recenttopics:|:is_array( $topics ) && count( $topics )"> <div class='ipsSideBlock clearfix'> <h3>{$this->lang->words['ps_recent_post']}</h3> <div class='_sbcollapsable'> <ul class='ipsList_withminiphoto'> {parse striping="recent_topics" classes="row1,row2 altrow"} <foreach loop="topics_hook:$topics as $r"> <li class='clearfix {parse striping="recent_topics"}'> <if test="$r['member_id']"> <a href='{parse url="showuser={$r['member_id']}" seotitle="{$r['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}' class='ipsUserPhotoLink'> </if> <img src='{$r['pp_mini_photo']}' alt="{parse expression="sprintf($this->lang->words['users_photo'],$r['members_display_name'])"}" class='ipsUserPhoto ipsUserPhoto_mini left' /> <if test="$r['member_id']"> </a> </if> <div class='list_content'> <a href='{parse url="showtopic={$r['tid']}&amp;view=getnewpost" base="public" template="showtopic" seotitle="{$r['title_seo']}"}' rel='bookmark' title='{$this->lang->words['view_topic']}'>{$r['title']}</a> <br /> <p class='desc ipsType_smaller'> <if test="$r['members_display_name']">{parse template="userHoverCard" group="global" params="$r"} <else /> {$this->settings['guest_name_pre']}{$r['starter_name']}{$this->settings['guest_name_suf']} </if> - <abbr class="published" title="{parse expression="date( 'c', $r['last_post'] )"}">{parse date="$r['last_post']" format="short"}</abbr> </p> </div> </li> </foreach> <else /> <li>{$this->lang->words['ps_no_recent_post']}</li> </if> </ul> </div> </div> you still need to remember to create a php file
    public function getOutput() { $members = array(); $forumIDs = array_keys( ipsRegistry::getClass( 'class_forums')->forum_by_id ); $ids = implode( ',', $forumIDs ); $this->registry->DB()->build( array( 'select' => 't.tid, t.title, t.title_seo, t.posts, t.views, t.last_post, t.last_poster_name, t.last_poster_id, t.forum_id', 'from' => array( 'topics' => 't' ), 'where' => 't.approved = 1', 'order' => 't.last_post DESC', 'limit' => array( 0, 5), 'add_join' => array( array( 'select' => 'm.members_display_name, m.members_seo_name, m.member_group_id', 'from' => array( 'members' => 'm' ), 'where' => 'm.member_id=t.last_poster_id', 'type' => 'left', ), array( 'select' => 'pp.*', 'from' => array( 'profile_portal' => 'pp' ), 'where' => 'm.member_id=pp.pp_member_id', 'type' => 'left', ), ) ) ); $this->registry->DB()->execute(); while( $r = $this->registry->DB()->fetch() ) { $r = IPSMember::buildDisplayData( $r ); $topics_rows[ $r['tid'] ] = $r; } return $this->registry->output->getTemplate( 'boards' )->RecentPost( $topics_rows ); } this is not for IP.Content but it can be an example
     
    http://www.ipsbeyond.pl/files/file/305-ps34-recent-post/
  14. Duke_ added a post in a topic: (PS34) Custom Sidebar   

    only board index
  15. Duke_ added a post in a topic: IP Content Block issue: "Last post in forum"   

    I may be wrong but you can try
    <a href='{parse url="showtopic={$r['tid']}&amp;view=getnewpost"}'>{$r['title']}</a>

Status Feed