Jump to content



  • Posts

  • Joined

  • Last visited

  • Days Won


 Content Type 



IPS4 Providers

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog



Everything posted by Aiwa

  1. Aiwa

    One-Click Ban

    Ok, I'm not going to officially support this for Shadow Puppet, but I messed with this and got it working on my 3.2.3 board.. I make no guarantees that it doesn't goof anything else up... I haven't changed any of ShadowPuppet's code, so it is still his intellectual property and should be treated as such. I only updated the required file edits and the interface with the skin_profile template. Edit the hook->FILES File #1 NO CHANGES File #2 Template Hook skin_profile profileModern if statement weAreOwner (pre.startif) Before the if statement starts Edit ../admin/applications/forums/modules_public/moderate/moderate.php FIND case 'topic_restore': $this->_topicApproveAlter('approve'); break; ADD AFTER case 'ocbm': $this->_ocbMember(); break; case 'ocubm': $this->_ocubMember(); break; FIND INLINE if ( ! $this->request['f'] ADD AFTER AND $this->request['do'] != 'ocbm' AND $this->request['do'] != 'ocubm'
  2. Just an FYI, when upgrading from 1.0.0 to 1.1.1 on IP.Board 3.2.2 the subscriptions themselves stayed intact, however ALL permissions to view each package were removed. I had to add permissions back to each package so users could actually see them.
  3. Michael, I've still got the IP.Subscriptions v1.0.0 installed on my board which was just updated to IP.Board 3.2.2 Will your download upgrade the existing install and keep any active subscriptions, or will all subscriptions have to be redone?
  4. Does anyone have a fix for this? It's annoying to have to find the latest unread content instead of going to 'getnewpost'
  5. File Name: Shoutbox IPContent Block File Submitter: Aiwa File Submitted: 07 Oct 2011 File Category: Integration This Block is a Straight port of Michael McCunes Board Index Shoutbox Sidebar Hook. You MUST Have Shoutbox[3.2] and IPB 3.2 for this block to function. This Block allows a Shoutbox on IPC pages sans hassle/URL include/exclude and respects the permissions of the original Shoutbox Application. here to download this file
  6. Aiwa

    Content Portal

    <a class="ipsUserPhotoLink left" title="{$this->lang->words[" href='{parse url="showuser={$r[' }?="" base="public" view_profile?]}?="" template="showuser" seotitle="{$r['seo_last_name']}" lastposter?]}?="">{parse expression="IPSMember::buildprofilephoto( $r['lastposter'], 'mini')"}</a> Ahh, figured it out.. THANKS!!! Couple lines from the end... basically take out the whole while loop and just put the parse expression as the link output instead of what the while loop built into $pics
  7. Aiwa

    Content Portal

    <div class='maintitle'>{$title}</div> <div class='ipsBox'> <div class='ipsBox_container ipsPad'> <if test="is_array( $records ) && count( $records )"> {parse striping="feed_striping" classes="row1,row2 altrow"} <foreach loop="$records as $r"> <php> $this->DB->build( array( 'select' => 't.last_poster_id', 'from' => array( 'topics' => 't' ), 'where' => "t.tid='{$r['tid']}'", 'add_join' => array( 0 => array( 'select' => 'pp.pp_thumb_photo', 'from' => array( 'profile_portal' => 'pp' ), 'where' => 'pp.pp_member_id=t.last_poster_id', 'type' => 'left' ) ), ) ); $this->DB->execute(); while ( $author = $this->DB->fetch() ) { if($r['fb_uid']) { $pic = <<<EOF <img src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_mini' /> EOF; } else { if($author['pp_thumb_photo']) { $pic = <<<EOF <img src='{$this->settings['upload_url']}/{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_mini' /> EOF; } else { if(!$author['pp_thumb_photo']) { $pic = <<<EOF <img src='{$this->settings['board_url']}/public/style_images/master/profile/default_large.png' class='ipsUserPhoto ipsUserPhoto_mini' /> EOF; } } } } $this->settings['pics'] = $pic; </php> <ul class='ipsList_withminiphoto'> <li class='clearfix'> <a href='{parse url="showuser={$r['lastposter']}" seotitle="{$r['seo_last_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}' class='ipsUserPhotoLink left'>{$this->settings['pics']}</a> <div class='list_content'> <a href='{parse url="showtopic={$r['tid']}&pid={$r['pid']}" base="public" template="showtopic" seotitle="{$r['title_seo']}"}' rel='bookmark' class='ipsType_small' title='{$this->lang->words['view_topic']}'>{$r['topic_title']}</a> <p class='desc ipsType_smaller'>{parse expression="IPSMember::makeProfileLink( $r['lastpostername'], $r['lastposter'], $r['author_seo_name'] )"}<br>{parse date="$r['lastpost']" format="short"}</p> </div> </li> </ul> </foreach> </div></div> </if> Inside the while loop you'll see the fb_uid that I added.. Other than that change.. It's almost stock.
  8. Aiwa

    Content Portal

    How would I go about using that? I'm not the most proficient at php or the built in IPS functions. Where could I find documentation of all the built in functions?
  9. Aiwa

    Content Portal

    Yeah, my kungfu came back... Here's how to get it to work if your board has facebook connect enabled. FIND if($author['pp_thumb_photo']) { $pic = <<<EOF <img src='{$this->settings['upload_url']}/{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_mini' /> EOF; } ADD BEFORE if($r['fb_uid']) { $pic = <<<EOF <img src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_mini' /> EOF; } else { Don't forget to add a closing } after the else if statements..
  10. Aiwa

    Content Portal

    Recent Posts and Recent Topics don't work properly with Facebook Connect enabled. pp_thumb_photo is a link, not a file located on the server, so {$this->settings['upload_url']}/{$author['pp_thumb_photo']} returns an invalid file location resulting in the wonderous RED X. I'm sure it's a simple elseif statement to account for pp_thumb_photo values that start with 'http', but my kungfu is not strong today. How would you compare the first 4 characters of pp_thumb_photo to see if they are 'http'?
  11. Aiwa

    One-Click Ban

    File Name: One-Click Ban File Submitter: Aiwa File Submitted: 06 Jul 2010 File Category: Moderation Tools Supported Versions: IP.Board 3.2.x, IP.Board 3.3.x, IP.Board 3.4.x Description: This modification gives usergroups of your choice the ability to ban a member with only one click from their profiles. Enjoy For support, please create an account then submit a ticket. here to download this file
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy