Results 1 to 4 of 4
Hybrid View
-
5th May 2010, 05:49 PM #1OPMemberWebsite's:
filesharingforum.org(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 132anti-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
-
5th May 2010, 08:33 PM #2Respected 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' ) ) );
starting at about line 100 through line 150 .
-
6th May 2010, 02:23 PM #3OPMemberWebsite's:
filesharingforum.orgHere 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 )
{
-
10th May 2010, 05:26 PM #4Respected Member
try changing
this:
Code:'where' => 'p.tid=t.tid' ) ) /* (T30) Hide Content */
Code:'where' => 'p.tid=t.tid' ) ); /* (T30) Hide Content */
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to Use Google Alerts to Create a Databank of Content For Future Content Creation
By GarryField in forum Webmasters, Money MakingReplies: 0Last Post: 25th Feb 2014, 12:02 PM -
[Selling] Content Writer & Content Spinner Services (Review Copies Available)
By Elliot C in forum Completed TransactionsReplies: 6Last Post: 12th Mar 2012, 10:22 AM -
Hide Special Part in Content of Post?!Need Plugin!
By Deadmau5 in forum WordpressReplies: 5Last Post: 19th Jan 2012, 05:07 PM -
Hide content within [code] tags
By Leg!on in forum Web Application/Script SupportReplies: 1Last Post: 10th Apr 2011, 04:49 AM -
Hide your kids, Hide your wife
By ACE in forum General DiscussionReplies: 7Last Post: 8th Aug 2010, 06:39 PM
themaCreator - create posts from...
Version 3.46 released. Open older version (or...