Сompatibility Follower with Hide users details mod


User avatar
Citromon
 
Posts: 60
Joined: Tue Apr 17, 2012 12:36 pm
Location: Minsk, Belarus
 Thu May 17, 2012 4:16 pm • via Web
Thank you.

Please help me solve the problem of compatibility phpBB Follower with Hide user detailes MOD.
http://www.phpbb.com/customise/db/mod/h ... r_details/

Image

The problem is the last editing file viewtopic_body.html.
I would like the Follower button to be hidden and displayed after the disclosure of information.

Can you help?
User avatar
IvanPF
Administrator
 
Posts: 2028
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Thu May 17, 2012 7:13 pm • via Web
Hi,

In the last change of the mod "Hide Users details" in viewtopic_body.html find:
Code: Select all
            <!-- BEGIN custom_fields -->
               <strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}<br />
            <!-- END custom_fields -->
         </dt>
         <!-- ENDIF -->


And replace with:
Code: Select all
            <!-- BEGIN custom_fields -->
               <strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}<br />
            <!-- END custom_fields -->
         </dt>
         
   <!-- IF postrow.S_CAN_FOLLOW -->
      <dd style="text-align: center">
         <a href="#!follow/{postrow.POSTER_ID}" class="fwbutton <!-- IF postrow.S_IS_FOLLOWING -->following<!-- ELSE -->follow<!-- ENDIF --> js-follow-{postrow.POSTER_ID}">
            <span class="icon"></span>
            <span class="follow-text">{L_FOLLOW}</span>
            <span class="unfollow-text">{L_UNFOLLOW}</span>
            <span class="following-text">{L_FOLLOWING}</span>
         </a>
      </dd>
      <dd>&nbsp;</dd>
   <!-- ENDIF -->
         <!-- ENDIF -->


I think that's what your looking for.
User avatar
Citromon
 
Posts: 60
Joined: Tue Apr 17, 2012 12:36 pm
Location: Minsk, Belarus
 Thu May 17, 2012 8:46 pm • via Web
Parse error: syntax error, unexpected '}' in Z:\home\standart.by\www\includes\template.php(230) : eval()'d code on line 259

Can you upload view_topic.html please ?
User avatar
Citromon
 
Posts: 60
Joined: Tue Apr 17, 2012 12:36 pm
Location: Minsk, Belarus
 Sat May 19, 2012 3:56 pm • via Web
I got it.
Image

How to remove @Citromon? What does it do?
And how to put "Follow" button inside the dropdown list?
User avatar
IvanPF
Administrator
 
Posts: 2028
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Sat May 19, 2012 5:55 pm • via Web
Hi,

The @citromon appears because the follow name and user name can be different.
To hide it, find and delete this code in "viewtopic_body.html":
Code: Select all
{postrow.AUTHOR_FOLLOW_NAME}


To put the "follow" button inside the dropdown:
- Find:
Code: Select all
            <!-- BEGIN custom_fields -->
               <strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}<br />
            <!-- END custom_fields -->


after add:
Code: Select all
   <!-- IF postrow.S_CAN_FOLLOW -->
      <dd style="text-align: center">
         <a href="#!follow/{postrow.POSTER_ID}" class="fwbutton <!-- IF postrow.S_IS_FOLLOWING -->following<!-- ELSE -->follow<!-- ENDIF --> js-follow-{postrow.POSTER_ID}">
            <span class="icon"></span>
            <span class="follow-text">{L_FOLLOW}</span>
            <span class="unfollow-text">{L_UNFOLLOW}</span>
            <span class="following-text">{L_FOLLOWING}</span>
         </a>
      </dd>
      <dd>&nbsp;</dd>
   <!-- ENDIF -->

Who is online

Users browsing this forum: No registered users and 0 guests