1. Attachments are working again! Check out this thread for more details and to report any other bugs.

Exclude Forum when Viewing New Posts

Discussion in 'PriusChat Website Questions' started by David, Apr 12, 2006.

  1. Kiloran

    Kiloran New Member

    Joined:
    Aug 31, 2005
    1,225
    3
    0
    <div class='quotetop'>QUOTE(vortx21 @ Apr 27 2006, 11:51 AM) [snapback]246126[/snapback]</div>
    Thanks! Great idea. (I wonder why I didn't think of it! ;) )
    .
    .
    .
    Damn! It doesn't actually work. It always returns the same results even after marking them read.
     
  2. mikepaul

    mikepaul Senior Member

    Joined:
    Dec 2, 2003
    1,763
    6
    0
    Location:
    Columbia, SC
    Vehicle:
    2004 Prius
    <div class='quotetop'>QUOTE(Kiloran @ Apr 27 2006, 12:00 PM) [snapback]246131[/snapback]</div>
    Yea, so we're back to queries for "All places", "One place", and now "All but Fred's"...
     
  3. ghostofjk

    ghostofjk New Member

    Joined:
    Mar 8, 2006
    979
    4
    0
    <div class='quotetop'>QUOTE(Kiloran @ Apr 27 2006, 09:00 AM) [snapback]246131[/snapback]</div>
    Yay! The inestimable Kiloran, who provided so much useful information for us on the Prius tax credit---and a pricing calculator---will be back (when everything works)! And I'm going to embarrass him by saying it here.

    'Course, I'll have to sneak out of FHOP occasionally to rendezvous with him on his Rubik's Cube thread (or whatever), but small price to pay for great company.

    I'll irritate him even more by saying that something's coming up involving him that most of us will be interested in (if it's done as I hope it will be). I hope he'll find an appropriate venue with which to share it with us.

    (If it doesn't materialize, well, blame me for being a jerk, not Kiloran.)
     
  4. Danny

    Danny Admin/Founder
    Staff Member

    Joined:
    Nov 24, 2003
    7,094
    2,116
    1,174
    Location:
    Charlotte, NC
    Vehicle:
    2013 Prius Plug-in
    Model:
    Plug-in Base
    I'm lost.
     
  5. Danny

    Danny Admin/Founder
    Staff Member

    Joined:
    Nov 24, 2003
    7,094
    2,116
    1,174
    Location:
    Charlotte, NC
    Vehicle:
    2013 Prius Plug-in
    Model:
    Plug-in Base
    Here's the code in case anyone can figure out how to get a button that says "All New Posts Except Fred's":

    Code:
            $output_array['MEMBER_BAR'] = $this->ipsclass->compiled_templates['skin_global']->member_bar($msg_data);
    
    Add Above:
    
            if( $this->ipsclass->member['id'] )
            {
                require_once( ROOT_PATH.'sources/lib/admin_forum_functions.php' );
                $aff = new admin_forum_functions();
                $aff->ipsclass =& $this->ipsclass;
                $list = $aff->ad_forums_forum_list(1);
    
                foreach( $list as $k => $v )
                {
                    $the_html .= "<option value='{$v[0]}'>{$v[1]}</option>";
                }
    
                $msg_data['FORUMS'] = "<select name='forums[]' class='forminput' size='7' multiple='multiple'>"
                       ."<option value='all' selected='selected'>".$this->ipsclass->lang['vnp_forums']."</option>"
                       . $the_html
                       . "</select>";
            }
     
  6. Kiloran

    Kiloran New Member

    Joined:
    Aug 31, 2005
    1,225
    3
    0
    <div class='quotetop'>QUOTE(Danny @ Apr 28 2006, 12:05 AM) [snapback]246467[/snapback]</div>
    Not too sure of the exact syntax but would something like this work?:
    Code:
            $output_array['MEMBER_BAR'] = $this->ipsclass->compiled_templates['skin_global']->member_bar($msg_data);
    
    Add Above:
    
            if( $this->ipsclass->member['id'] )
            {
                require_once( ROOT_PATH.'sources/lib/admin_forum_functions.php' );
                $aff = new admin_forum_functions();
                $aff->ipsclass =& $this->ipsclass;
                $list = $aff->ad_forums_forum_list(1);
    
                foreach( $list as $k => $v )
                {
                    if( $v[1] <> "Fred's House of Pancakes" )
                    {
                        $the_html .= "<option value='{$v[0]}'>{$v[1]}</option>";
                    }
                }
    
                $msg_data['FORUMS'] = "<select name='forums[]' class='forminput' size='7' multiple='multiple'>"
                       ."<option value='all' selected='selected'>".$this->ipsclass->lang['vnp_forums']."</option>"
                       . $the_html
                       . "</select>";
            }
    (GhostOfJK is referring to an upcoming article in the Philadelphia Inquirer for which I was interviewed and photographed. It's possibly in today's paper although I haven't found it if its there.)