The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Help please.

View previous topic View next topic Go down

Solved Help please.

Post by SaltyStick on August 17th 2012, 2:43 pm

Firstly, i am hoping this is the right section.

Ok, i am a MineCraft server runner, and i want to use a plugin called "Community Bridge", meaning that if people register on the forum, they get registered on the server.
Is this possible through these forums?

The plugin requires an "Invision" forum, which i have, it also has given me two .txt documents with code in. As follows...

Invision_power_board_custom_fields_template.txt
Code:
<if test="$f->parsed != ''">
   <span class='row_title'>{$f->raw_data['pf_title']}</span>
   <div class='row_data'>
      <if test="genericIsArray:|:is_array($f->parsed)">
         {parse expression="implode( '<br />', $f->parsed )"}
      <else />
              <if test="mclastseen:|:$f->raw_data['pf_key'] == 'mclastseen'">
            {parse date="$f->parsed" format="long" relative="false"}         
         <else />
            <if test="mcgametime:|:$f->raw_data['pf_key'] == 'mcgametime'">
                                        <php>
                                        $time = (int) $f->parsed;
               $seconds = $time%60;
               $mins = floor($time/60)%60;
               $hours = floor($time/60/60)%24;
               $days = floor($time/60/60/24);
               $playtime = "";
               if($days>0){
                  $playtime .= $days . " Days";
               }
               if($hours >0){
                  if($playtime != '')
                     $playtime .= ", ";
                  $playtime .= $hours . " Hours";
               }
               if($mins >0){
                  if($playtime != '')
                     $playtime .= ", ";
                  $playtime .= $mins . " Minutes";
               }
               if($seconds>0){
                  if($playtime != '')
                     $playtime .= ", ";
                  $playtime .= $seconds . " Seconds";
               }
                                        </php>
               {$playtime}
            <else />
               <if test="mcxp:|:$f->raw_data['pf_key'] == 'mcxp'">
                  {$f->parsed} XP
               <else />
                  <if test="mclifeticks:|:$f->raw_data['pf_key'] == 'mclifeticks'">
                     <php>
                     $ticks = (int) $f->parsed;
                     $daysold = sprintf("%.1f", $ticks / 24000);
                     </php>
                     {$daysold} Days Old
                  <else />
                          {$f->parsed}
                  </if>
               </if>
            </if>
         </if>
      </if>
   </div>
</if>

xenforo_custom_field.txt
Code:
--------------------------------
Edit Template: custom_field_view
--------------------------------

<xen:if hascontent="true">
<dl>
 <dt>{$field.title}:</dt>
 <dd><xen:contentcheck>
  <xen:if is="is_array({$field.fieldValueHtml})">
  <ul>
  <xen:foreach loop="$field.fieldValueHtml" value="$_fieldValueHtml">
    <li>{xen:raw $_fieldValueHtml}</li>
  </xen:foreach>
  </ul>
  <xen:else />
  <xen:if is="{$field.field_id} == 'mclastonline'">
       {xen:datetime $field.fieldValueHtml}
  <xen:else />
    {xen:raw $field.fieldValueHtml}
  </xen:if>
  </xen:if>
 </xen:contentcheck></dd>
</dl>
</xen:if>

Can you please help me, give me a guild to follow?

Many thanks.
Dan.

SaltyStick
New Member

Posts : 2
Reputation : 1
Language : English

Back to top Go down

Solved Re: Help please.

Post by Sanket on August 17th 2012, 6:03 pm

Please change the title of your topic, that is related to your question/issue, so that other users will be able to find their question/issue using the search engine.
This is not possible. Sorry.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Help please.

Post by SaltyStick on August 17th 2012, 6:47 pm

Aah darn, that sucks, might have to go else where then...

SaltyStick
New Member

Posts : 2
Reputation : 1
Language : English

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum