[MODDB] Quick Title Edition 1.2.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Suggested Hosts
ABDev
Registered User
Posts: 909
Joined: Sun Aug 21, 2005 9:29 pm
Location: France
Name: Adrien Bonnel

Re: [RC] Quick Title Edition 1.2.0

Post by ABDev »

Hi all,
A fix is available at the end of the first post.
ABDev
Registered User
Posts: 909
Joined: Sun Aug 21, 2005 9:29 pm
Location: France
Name: Adrien Bonnel

Re: [RC] Quick Title Edition 1.2.0

Post by ABDev »

Fix on Wesnesday, August 22 2012 :

Fix and optimization of code

Please replace the following files by the archive ones :
  • adm/style/acp_attributes.js
  • adm/style/acp_attributes_auths.html
  • includes/acp/acp_attributes.php
We think to submit the new version soon.
ABDev
Registered User
Posts: 909
Joined: Sun Aug 21, 2005 9:29 pm
Location: France
Name: Adrien Bonnel

Re: [RC] Quick Title Edition 1.2.0

Post by ABDev »

Fix on Saturday, August 25 2012 :

Fixed an issue when you access to the main page of the User Control Panel

Apply the following fix :
  • Code: Select all

    #
    #-----[ OPEN ]------------------------------------------------
    #
    includes/ucp/ucp_main.php
    #
    #-----[ FIND ]------------------------------------------------
    #
        foreach ($topic_list as $topic_id)
    #
    #-----[ BEFORE, ADD ]-----------------------------------------
    #
    //-- mod : quick title edition -------------------------------------------------
    //-- add
                    $qte->get_users_by_topic_id($topic_list);
    //-- fin mod : quick title edition ---------------------------------------------
    #
    #-----[ FIND ]------------------------------------------------
    #
    //-- mod : quick title edition -------------------------------------------------
    //-- add
                        if ( !empty($row['topic_attr_id']) )
                        {
                            $qte->get_users_by_topic_id($row['topic_id']);
    #
    #-----[ REPLACE WITH ]----------------------------------------
    #
    //-- mod : quick title edition -------------------------------------------------
    //-- add
                        if ( !empty($row['topic_attr_id']) )
                        {
    #
    #-----[ SAVE/CLOSE ALL FILES ]--------------------------------
    #
    # EoM 
ABDev
Registered User
Posts: 909
Joined: Sun Aug 21, 2005 9:29 pm
Location: France
Name: Adrien Bonnel

Re: [RC] Quick Title Edition 1.2.0

Post by ABDev »

Fix on Sunday, September 02 2012 :
  • Fixed the loss of the choice when previewing a topic
  • Added the attribute display when editing a first post, if it has one, and in the user activity on the main front of the user control panel
  • Removed the restriction of the attributs displaying in the search and sort functions, an user must be able to search and/or to sort as the attribute of his choice when he sees it
The fact that there are more changes, you will find all the instructions in that text file : download
The archive has been updated too.
ABDev
Registered User
Posts: 909
Joined: Sun Aug 21, 2005 9:29 pm
Location: France
Name: Adrien Bonnel

Re: [RC] Quick Title Edition 1.2.0

Post by ABDev »

Fix on Monday, September 03 2012 :

An error message could be displayed when editing a post which is not the first and if DEBUG mode is enabled

Apply the following fix :
  • Code: Select all

    #
    #-----[ OPEN ]------------------------------------------------
    #
    posting.php
    #
    #-----[ FIND ]------------------------------------------------
    #
    //-- mod : quick title edition -------------------------------------------------
    //-- add
    if ( ($mode == 'edit') && (isset($topic_attribute) && ($topic_attribute != -1)) && ($post_id == $post_data['topic_first_post_id']) ) 
    {
        if ( $preview )
        {
            if ( $topic_attribute != $post_data['topic_attr_id'] )
            {
                $post_data['topic_attr_id'] = (int) $topic_attribute;
                $post_data['topic_attr_user'] = (int) $user->data['user_id'];
                $post_data['topic_attr_time'] = (string) $current_time;
            }
        }
    
        $qte->get_users_by_topic_id(array($post_data['topic_id']));
        $template->assign_vars(array(
            'S_TOPIC_ATTR' => true,
            'TOPIC_ATTRIBUTE' => $qte->attr_display($post_data['topic_attr_id'], $post_data['topic_attr_user'], $post_data['topic_attr_time']),
        ));
    }
    //-- fin mod : quick title edition ---------------------------------------------
    #
    #-----[ REPLACE WITH ]----------------------------------------
    #
    //-- mod : quick title edition -------------------------------------------------
    //-- add
    if ( ($mode == 'edit') && isset($topic_attribute) && ($post_id == $post_data['topic_first_post_id']) )
    {
        if ( $preview )
        {
            if ( $topic_attribute != $post_data['topic_attr_id'] )
            {
                $post_data['topic_attr_id'] = (int) $topic_attribute;
                $post_data['topic_attr_user'] = (int) $user->data['user_id'];
                $post_data['topic_attr_time'] = (string) $current_time;
            }
        }
    
        if ( $post_data['topic_attr_id'] != -1 )
        {
            $qte->get_users_by_topic_id(array($post_data['topic_id']));
            $template->assign_vars(array(
                'S_TOPIC_ATTR' => true,
                'TOPIC_ATTRIBUTE' => $qte->attr_display($post_data['topic_attr_id'], $post_data['topic_attr_user'], $post_data['topic_attr_time']),
            ));
        }
    }
    //-- fin mod : quick title edition ---------------------------------------------
    #
    #-----[ SAVE/CLOSE ALL FILES ]--------------------------------
    #
    # EoM 
    The archive has been updated.
Saske1
Registered User
Posts: 263
Joined: Wed Feb 02, 2011 7:41 pm
Location: Spain/España
Name: Salva
Contact:

Re: [RC] Quick Title Edition 1.2.0

Post by Saske1 »

I have installed the MOD on my forum (3.0.11)
The MOD works well, great job, though hardly works with seo ...
For example I can not add a prefix, unless you edit the topic.
And the view of forums (viewforum) deforms :/

¿Any help?

Among other mods I use, phpBBSEO 0.7.0, Zero Duplicate, No dupe, categorize announcements and stickies 1.0.2, cBB Quick Mod

I think I have compatibility problems between this mod and these :?
ABDev
Registered User
Posts: 909
Joined: Sun Aug 21, 2005 9:29 pm
Location: France
Name: Adrien Bonnel

Re: [RC] Quick Title Edition 1.2.0

Post by ABDev »

Lots of boards use phpBB SEO and QTE and they have no problem in the viewforum part, example : http://www.phpbb-assistance.com/support ... tique.html
The only thing we will have to change for phpBB SEO is here : http://forums.phpbb-fr.com/mods-en-dev- ... l#p1478676
Saske1
Registered User
Posts: 263
Joined: Wed Feb 02, 2011 7:41 pm
Location: Spain/España
Name: Salva
Contact:

Re: [RC] Quick Title Edition 1.2.0

Post by Saske1 »

ABDev wrote:Lots of boards use phpBB SEO and QTE and they have no problem in the viewforum part,
Yes, I see, must be one of the other 2 mods that mentions
If I remove the attribute of the subject, it looks good, if I put, it looks bad :|
ABDev wrote:The only thing we will have to change for phpBB SEO is here
I tried the change, but I still happening the same, changing the attribute view a thread, or delete it, do not.
I think it might make a change to your lack viewtopic.php :/

forgetting that, the mod is fantastic, and the part of acp is very worked :mrgreen:
ABDev
Registered User
Posts: 909
Joined: Sun Aug 21, 2005 9:29 pm
Location: France
Name: Adrien Bonnel

Re: [RC] Quick Title Edition 1.2.0

Post by ABDev »

I see no trace of the MOD in that file : http://phpbbsaske.es/foro/styles/prosil ... _body.html
Saske1
Registered User
Posts: 263
Joined: Wed Feb 02, 2011 7:41 pm
Location: Spain/España
Name: Salva
Contact:

Re: [RC] Quick Title Edition 1.2.0

Post by Saske1 »

ABDev wrote:I see no trace of the MOD in that file : http://phpbbsaske.es/foro/styles/prosil ... _body.html
If changes are made, I pulled the first one time, but that did not affect anything, including change attributes.html continues
Right now they are both the MOD changes

Code: Select all

<!-- INCLUDE overall_header.html -->
<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->
<h2><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2>
<!-- IF GYM_LINKS_CAT --><h3>{GYM_HTML_FORUM_NEWS_LINK} {GYM_HTML_FORUM_MAP_LINK} {GYM_RSS_FORUM_LINK} {GYM_GOOGLE_FORUM_LINK}</h3><!-- ENDIF -->

<!-- IF FORUM_DESC or MODERATORS or U_MCP -->
<div>
	<!-- NOTE: remove the style="display: none" when you want to have the forum description on the forum body -->
	<!-- IF FORUM_DESC --><div style="display: none !important;">{FORUM_DESC}<br /></div><!-- ENDIF -->
	<!-- IF MODERATORS --><p><strong><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->:</strong> {MODERATORS}</p><!-- ENDIF -->
</div>
<!-- ENDIF -->

<!-- IF S_FORUM_RULES -->
	<div class="rules">
		<div class="inner"><span class="corners-top"><span></span></span>

		<!-- IF U_FORUM_RULES -->
			<a href="{U_FORUM_RULES}">{L_FORUM_RULES}</a>
		<!-- ELSE -->
			<strong>{L_FORUM_RULES}</strong><br />
			{FORUM_RULES}
		<!-- ENDIF -->

		<span class="corners-bottom"><span></span></span></div>
	</div>
<!-- ENDIF -->

<!-- IF S_HAS_SUBFORUM -->
<!-- IF not S_IS_BOT and U_MARK_FORUMS -->
<ul class="linklist">
	<li class="rightside"><a href="{U_MARK_FORUMS}" class="markread">{L_MARK_SUBFORUMS_READ}</a></li>
</ul>
<!-- ENDIF -->
	<!-- INCLUDE forumlist_body.html -->
<!-- ENDIF -->

<!-- IF S_DISPLAY_POST_INFO or PAGINATION or TOTAL_POSTS or TOTAL_TOPICS -->
	<div class="topic-actions" <!-- IF S_HAS_SUBFORUM -->style="margin-top: 2em;"<!-- ENDIF -->>

	<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
		<div class="buttons">
			<div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->post-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->"><a href="{U_POST_NEW_TOPIC}"><span></span><!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF --></a></div>
		</div>
	<!-- ENDIF -->

	<!-- IF S_DISPLAY_SEARCHBOX -->
		<div class="search-box">
			<form method="get" id="forum-search" action="{S_SEARCHBOX_ACTION}">
			<fieldset>
				<input class="inputbox search tiny" type="text" name="keywords" id="search_keywords" size="20" value="{L_SEARCH_FORUM}" onclick="if (this.value == '{LA_SEARCH_FORUM}') this.value = '';" onblur="if (this.value == '') this.value = '{LA_SEARCH_FORUM}';" />
				<input class="button2" type="submit" value="{L_SEARCH}" />
				{S_SEARCH_LOCAL_HIDDEN_FIELDS}
			</fieldset>
			</form>
		</div>
	<!-- ENDIF -->

	<!-- IF PAGINATION or TOTAL_POSTS or TOTAL_TOPICS -->
		<div class="pagination">
			<!-- IF not S_IS_BOT and U_MARK_TOPICS --><a href="{U_MARK_TOPICS}" accesskey="m">{L_MARK_TOPICS_READ}</a> &bull; <!-- ENDIF --><!-- IF TOTAL_TOPICS -->{TOTAL_TOPICS}<!-- ENDIF -->
			<!-- IF PAGE_NUMBER -->
				<!-- IF PAGINATION --> &bull; <a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> &bull; <span>{PAGINATION}</span><!-- ELSE --> &bull; {PAGE_NUMBER}<!-- ENDIF -->
			<!-- ENDIF -->
		</div>
	<!-- ENDIF -->

	</div>
<!-- ENDIF -->

<!-- IF S_NO_READ_ACCESS -->

	<div class="panel">
		<div class="inner"><span class="corners-top"><span></span></span>
		<strong>{L_NO_READ_ACCESS}</strong>
		<span class="corners-bottom"><span></span></span></div>
	</div>

	<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->

		<form action="{S_LOGIN_ACTION}" method="post">

		<div class="panel">
			<div class="inner"><span class="corners-top"><span></span></span>

			<div class="content">
				<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>

				<fieldset class="fields1">
				<dl>
					<dt><label for="username">{L_USERNAME}:</label></dt>
					<dd><input type="text" tabindex="1" name="username" id="username" size="25" value="{USERNAME}" class="inputbox autowidth" /></dd>
				</dl>
				<dl>
					<dt><label for="password">{L_PASSWORD}:</label></dt>
					<dd><input type="password" tabindex="2" id="password" name="password" size="25" class="inputbox autowidth" /></dd>
					<!-- IF S_AUTOLOGIN_ENABLED --><dd><label for="autologin"><input type="checkbox" name="autologin" id="autologin" tabindex="3" /> {L_LOG_ME_IN}</label></dd><!-- ENDIF -->
					<dd><label for="viewonline"><input type="checkbox" name="viewonline" id="viewonline" tabindex="4" /> {L_HIDE_ME}</label></dd>
				</dl>
				<dl>
					<dt>&nbsp;</dt>
					<dd><input type="submit" name="login" tabindex="5" value="{L_LOGIN}" class="button1" /></dd>
				</dl>
				{S_LOGIN_REDIRECT}
				</fieldset>
			</div>

			<span class="corners-bottom"><span></span></span></div>
		</div>

		</form>

	<!-- ENDIF -->

<!-- ENDIF -->
<!-- IF CBB_QUICK_MOD and .topicrow --><!-- INCLUDE quickmod_body.html --><!-- ENDIF -->
<!-- BEGIN topicrow -->

	<!-- IF not topicrow.S_TOPIC_TYPE_SWITCH and not topicrow.S_FIRST_ROW -->
		</ul>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

	<!-- IF topicrow.S_FIRST_ROW or not topicrow.S_TOPIC_TYPE_SWITCH -->
		<div class="forumbg<!-- IF topicrow.S_TOPIC_TYPE_SWITCH and (topicrow.S_POST_ANNOUNCE or topicrow.S_POST_GLOBAL) --> announcement<!-- ENDIF -->">
		<div class="inner"><span class="corners-top"><span></span></span>
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt><!-- IF S_DISPLAY_ACTIVE and topicrow.S_TOPIC_TYPE ne 1 -->{L_ACTIVE_TOPICS}<!-- ELSEIF topicrow.S_TOPIC_TYPE eq 3 -->{L_GLOBAL_ANNOUNCEMENTS}<!-- ELSEIF (topicrow.S_POST_ANNOUNCE or topicrow.S_POST_GLOBAL) eq 2 -->{L_ANNOUNCEMENTS}<!-- ELSEIF topicrow.S_TOPIC_TYPE eq 1 -->{L_STICKY}<!-- ELSE -->{L_TOPICS}<!-- ENDIF --></dt>
					<dd class="posts">{L_REPLIES}</dd>
					<dd class="views">{L_VIEWS}</dd>
					<dd class="lastpost"><span>{L_LAST_POST}</span></dd>
				</dl>
			</li>
		</ul>
		<ul class="topiclist topics">
	<!-- ENDIF -->

		<li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_GLOBAL --> global-announce<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF topicrow.S_POST_STICKY --> sticky<!-- ENDIF --><!-- IF topicrow.S_TOPIC_REPORTED --> reported<!-- ENDIF -->">
			<dl class="icon" style="background-image: url({topicrow.TOPIC_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
				<dt<!-- IF topicrow.TOPIC_ICON_IMG and S_TOPIC_ICONS --> style="background-image: url({T_ICONS_PATH}{topicrow.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> title="{topicrow.TOPIC_FOLDER_IMG_ALT}"><!-- IF topicrow.S_TOPIC_ATTR -->{topicrow.TOPIC_ATTRIBUTE} <!-- ENDIF --><div class="topic_content">{topicrow.QM_ACTIONS}<!-- IF topicrow.S_UNREAD_TOPIC --><a href="{topicrow.U_NEWEST_POST}">{NEWEST_POST_IMG}</a> <!-- ENDIF --><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>
					<!-- IF topicrow.S_TOPIC_UNAPPROVED or topicrow.S_POSTS_UNAPPROVED --><a href="{topicrow.U_MCP_QUEUE}">{topicrow.UNAPPROVED_IMG}</a> <!-- ENDIF -->
					<!-- IF topicrow.S_TOPIC_REPORTED --><a href="{topicrow.U_MCP_REPORT}">{REPORTED_IMG}</a><!-- ENDIF --></div>
					<!-- IF topicrow.PAGINATION --><strong class="pagination"><span>{topicrow.PAGINATION}</span></strong><!-- ENDIF -->
					<!-- IF topicrow.ATTACH_ICON_IMG -->{topicrow.ATTACH_ICON_IMG} <!-- ENDIF -->{L_POST_BY_AUTHOR} {topicrow.TOPIC_AUTHOR_FULL} &raquo; {topicrow.FIRST_POST_TIME}
				</dt>
				<dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
				<dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
				<dd class="lastpost"><span><dfn>{L_LAST_POST} </dfn>{L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}
					<!-- IF not S_IS_BOT --><a href="{topicrow.U_LAST_POST}">{LAST_POST_IMG}</a> <!-- ENDIF --><br />{topicrow.LAST_POST_TIME}</span>
				</dd>
				<!-- IF CBB_QUICK_MOD --><dd class="row_mark"><input type="checkbox" class="topic_id_list" name="topic_id_list[]" value="{topicrow.QM_TOPIC_ID}" /></dd><!-- ENDIF -->
			</dl>
		</li>

	<!-- IF topicrow.S_LAST_ROW -->
			</ul>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

<!-- BEGINELSE -->
	<!-- IF S_IS_POSTABLE -->
	<div class="panel">
		<div class="inner"><span class="corners-top"><span></span></span>
		<strong>{L_NO_TOPICS}</strong>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->
<!-- END topicrow -->
<!-- IF CBB_QUICK_MOD and .topicrow -->
	<!-- DEFINE $QM_CONTENT = 1 -->
	<!-- INCLUDE quickmod_body.html -->
<!-- ENDIF -->
<!-- IF S_SELECT_SORT_DAYS and not S_DISPLAY_ACTIVE -->
	<form method="post" action="{S_FORUM_ACTION}">
		<fieldset class="display-options">
			<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
			<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
	<!-- IF not S_IS_BOT -->
			<label>{L_DISPLAY_TOPICS}: {S_SELECT_SORT_DAYS}</label>
			<!-- INCLUDE attributes.html -->
			<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label>
			<label>{S_SELECT_SORT_DIR} <input type="submit" name="sort" value="{L_GO}" class="button2" /></label>
	<!-- ENDIF -->
		</fieldset>
	</form>
	<hr />
<!-- ENDIF -->

<!-- IF .topicrow and not S_DISPLAY_ACTIVE -->
	<div class="topic-actions">
		<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
		<div class="buttons">
			<div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->post-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->"><a href="{U_POST_NEW_TOPIC}"><span></span><!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF --></a></div>
		</div>
		<!-- ENDIF -->

		<!-- IF PAGINATION or TOTAL_POSTS or TOTAL_TOPICS -->
		<div class="pagination">
			<!-- IF TOTAL_TOPICS and not S_IS_BOT and U_MARK_TOPICS --><a href="{U_MARK_TOPICS}">{L_MARK_TOPICS_READ}</a> &bull;  <!-- ENDIF -->
			<!-- IF TOTAL_POSTS and not NEWEST_USER --> {TOTAL_POSTS}<!-- ELSEIF TOTAL_TOPICS and not NEWEST_USER --> {TOTAL_TOPICS}<!-- ENDIF -->
			<!-- IF TOTAL_USERS -->{TOTAL_USERS}<!-- ENDIF -->
			<!-- IF PAGINATION --> &bull;  <a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a>
			 &bull;  <span>{PAGINATION}</span><!-- ELSE --> &bull; {PAGE_NUMBER}<!-- ENDIF -->
		</div>
		<!-- ENDIF -->
	</div>
<!-- ENDIF -->

<!-- INCLUDE jumpbox.html -->

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<h3><!-- IF U_VIEWONLINE --><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a><!-- ELSE -->{L_WHO_IS_ONLINE}<!-- ENDIF --></h3>
	<p>{LOGGED_IN_USER_LIST}</p>
<!-- ENDIF -->

<!-- IF S_DISPLAY_POST_INFO -->
	<h3>{L_FORUM_PERMISSIONS}</h3>
	<p><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></p>
<!-- ENDIF -->

<!-- INCLUDE overall_footer.html -->
iamthestreets
Registered User
Posts: 244
Joined: Fri Feb 24, 2012 4:35 pm
Contact:

Re: [RC] Quick Title Edition 1.2.0

Post by iamthestreets »

I am receiving this error from the viewforum.php code.

Parse error: syntax error, unexpected T_ELSE in /home/streetl1/public_html/forum/viewforum.php on line 266

It says there is a problem with the else if.

Code: Select all

//-- mod : quick title edition -------------------------------------------------
//-- add
	else if ( $sort_attr )
{
	$sql = 'SELECT COUNT(topic_id) AS num_topics
		FROM ' . TOPICS_TABLE . '
		WHERE forum_id = ' . (int) $forum_id . '
			AND ((topic_type <> ' . POST_GLOBAL . ' AND topic_attr_id = ' . (int) $sort_attr . ')
				OR topic_type = ' . POST_ANNOUNCE . ')';
	if ( !$auth->acl_get('m_approve', $forum_id) )
	{
		$sql .= 'AND topic_approved = 1';
	}
	$result = $db->sql_query($sql);
	$topics_count = (int) $db->sql_fetchfield('num_topics');
	$db->sql_freeresult($result);

	if ( isset($_POST['sort']) )
	{
		$start = 0;
	}

	$sql_limit_time = '';
}
//-- fin mod : quick title edition ---------------------------------------------
EDIT: I removed else and the page opened, but now when i hit submit i get this error

Parse error: syntax error, unexpected '}' in /home/streetl1/public_html/forum/includes/template.php(230) : eval()'d code on line 1

I also get this error when I click on the topic

Parse error: syntax error, unexpected '}' in /home/streetl1/public_html/forum/cache/tpl_art-ultra-gray_viewtopic_body.html.php on line 1

EDIT: I tested in prosilver and it works. I am using Art_Ultra_Gray. Please help.
ABDev
Registered User
Posts: 909
Joined: Sun Aug 21, 2005 9:29 pm
Location: France
Name: Adrien Bonnel

Re: [RC] Quick Title Edition 1.2.0

Post by ABDev »

Without to see your file, I cannot answer ...
Saske1
Registered User
Posts: 263
Joined: Wed Feb 02, 2011 7:41 pm
Location: Spain/España
Name: Salva
Contact:

Re: [RC] Quick Title Edition 1.2.0

Post by Saske1 »

So what is my solution?
Undoing the change in the viewforum_body MOD, this still deforms me, while I have a topic attribute ...
Changes also rid viewforum.php?
I do not know what to do :/ :?
ABDev
Registered User
Posts: 909
Joined: Sun Aug 21, 2005 9:29 pm
Location: France
Name: Adrien Bonnel

Re: [RC] Quick Title Edition 1.2.0

Post by ABDev »

I have a look tomorrow.
iamthestreets
Registered User
Posts: 244
Joined: Fri Feb 24, 2012 4:35 pm
Contact:

Re: [RC] Quick Title Edition 1.2.0

Post by iamthestreets »

can you help me?
Locked

Return to “[3.0.x] MODs in Development”