Activity Stream
48,167 MEMBERS
62916 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member
    Website's:
    filesharingforum.org

    Default (T30) Hide Content 1.1.1 help please

    I installed (T30) Hide Content 1.1.1 and I received this error.. how do i fix it?

    Parse error: syntax error, unexpected T_VARIABLE, expecting ')' in /home/fileshar/public_html/admin/applications/forums/modules_public/post/post. php on line 132
    anti-human Reviewed by anti-human on . (T30) Hide Content 1.1.1 help please I installed (T30) Hide Content 1.1.1 and I received this error.. how do i fix it? Parse error: syntax error, unexpected T_VARIABLE, expecting ')' in /home/fileshar/public_html/admin/applications/forums/modules_public/post/post. php on line 132 Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Looks like when you added this content you made a mistake
    Code: 
    $this->cache->updateCacheWithoutSaving
    ( 'tb_hide_topic', 
          array(
                    'tid' => $this->_postClass->getTopicID(), 
           'starter_id' => $this->_postClass->getTopicData('starter_id'), 
     'last_poster_id' => $this->_postClass->getTopicData('last_poster_id' ) 
       	  )
    );
    you will have to compare what you added against this or show me the lines inside admin/applications/forums/modules_public/post/post. php file
    starting at about line 100 through line 150 .

  4.     
    #3
    Member
    Website's:
    filesharingforum.org
    Here you go..

    $this->_postClass->setTopicID( $this->request['t'] );
    $this->_postClass->setPostID( $this->request['p'] );
    $this->_postClass->setForumID( $this->request['f'] );

    # Topic Title and description - use _POST as it is cleaned in the function.
    # We wrap this because the title may not be set when showing a form and would
    # throw a length error
    if ( $_POST['TopicTitle'] )
    {
    $this->_postClass->setTopicTitle( $_POST['TopicTitle'] );
    $this->_postClass->setTopicDescription( $_POST['TopicDesc'] );
    }

    # Is Preview Mode
    $this->_postClass->setIsPreview( ( $this->request['preview'] ) ? TRUE : FALSE );

    # Forum Data
    $this->_postClass->setForumData( $this->registry->getClass('class_forums')->forum_by_id[ $this->request['f'] ] );

    # Topic Data
    $this->_postClass->setTopicData( $this->DB->buildAndFetch( array(
    'select' => 't.*, p.poll_only',
    'from' => array( 'topics' => 't' ),
    'where' => "t.forum_id={$this->_postClass->getForumID()} AND t.tid={$this->_postClass->getTopicID()}",
    'add_join' => array(
    array(
    'type' => 'left',
    'from' => array( 'polls' => 'p' ),
    'where' => 'p.tid=t.tid'
    )
    )
    /* (T30) Hide Content */
    $this->cache->updateCacheWithoutSaving( 'tb_hide_topic', array( 'tid' => $this->_postClass->getTopicID(), 'starter_id' => $this->_postClass->getTopicData('starter_id'), 'last_poster_id' => $this->_postClass->getTopicData('last_poster_id') ) );

    # Published
    $this->_postClass->setPublished( $this->_checkPostModeration( $doCodes[ $do ][1] ) === TRUE ? TRUE : FALSE );

    # Post Content
    $this->_postClass->setPostContent( isset( $_POST['Post'] ) ? $_POST['Post'] : '' );

    # Set Author
    $this->_postClass->setAuthor( $this->memberData['member_id'] );

    # Mod Options
    $this->_postClass->setModOptions( $this->request['mod_options'] );

    # Set Settings
    if ( ! $doCodes[ $do ][0] )
    {
    if ( $this->_postClass->getIsPreview() !== TRUE )
    {

  5.     
    #4
    Respected Member
    try changing
    this:
    Code: 
    'where' => 'p.tid=t.tid'
    )
    )
    /* (T30) Hide Content */
    to this:
    Code: 
    'where' => 'p.tid=t.tid'
    )
    );
    /* (T30) Hide Content */

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 25th Feb 2014, 12:02 PM
  2. [Selling] Content Writer & Content Spinner Services (Review Copies Available)
    By Elliot C in forum Completed Transactions
    Replies: 6
    Last Post: 12th Mar 2012, 10:22 AM
  3. Replies: 5
    Last Post: 19th Jan 2012, 05:07 PM
  4. Hide content within [code] tags
    By Leg!on in forum Web Application/Script Support
    Replies: 1
    Last Post: 10th Apr 2011, 04:49 AM
  5. Hide your kids, Hide your wife
    By ACE in forum General Discussion
    Replies: 7
    Last Post: 8th Aug 2010, 06:39 PM

Tags for this Thread

BE SOCIAL