[How To] Utilizing each Custom Profile Field

How-to's, little tricks, tutorials, code examples (snippets) and read-me's.

Re: [How To] Utilizing each Custom Profile Field

Postby Sniper_E » 10 Jan 2011, 21:12

Honor wrote:As you can see, they are all mooshed up on the left. I'd like them either centered or right aligned, and I need at least two or three lines as they all don't fit. I tried <br> breaks but that didn't help, as you can see.
This is wonderful! I'm going to work on the IF statement and a really good placement in the profile page :) Thank you!

I kind of envisioned all of those names lining up side by side clear across your page.
I'd even put a style="margin-left: 5px;" on each of those <li> to space them apart across your page.
You don't want any <br /> in there except after the game name and before the second name listed.

We need to get that lined up across your page. Let's see what you did to that code.

Now we need to hide those cpf from your profile section of the page.
Give me the list of cpf Field identification you created and I'll help you make a very large IF statement to do that.
The field identification is a name to identify the profile field within the database and the templates.
You have to have 24 "<!-- IF not" statements in that profile section to hide all of those. :doh:
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6978
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [How To] Utilizing each Custom Profile Field

Postby Honor » 10 Jan 2011, 21:43

LOL no kidding :P As for lining them up across the page - they didn't quite fit. One or two dropped to the next line. I can easily enough go in and take the breaks out to show you what I mean. Also, the style will be set to a fixed pixel width of 800 wide - it won't float like it does now.

sgcnameone
sgclinkone
sgcnametwo
sgclinktwo
obnameone
oblinkone
sganameone
sgalinkone
sganametwo
sgalinktwo
senameone
selinkone
senametwo
selinktwo
cnameone
clinkone
cnametwo
clinktwo
wnameone
wlinkone
aolnameone
aollinkone
aolnametwo
aollinktwo
fantasynameone
fantasylinkone

Also, I can't find a page to copy/paste that list of codes into the profile. I'd like to create something under User Statics - like another headline. Then these would be listed in a straight line.

And there, I took out the page breaks to show you what i mean. Note that i don't have a character in EVERY world, so there's some that aren't listed under my sig. I would like to separate out the worlds like they are on my index page - by category.
BluePlanet RP
my own creation.

Host: Host Monster
Version: 3.0.9
Honor    
STG Moderator
STG Moderator
 
Posts: 328
Joined: 23 Dec 2010, 10:53
Gender: Female
phpBB Knowledge: 2

Re: [How To] Utilizing each Custom Profile Field

Postby Honor » 10 Jan 2011, 22:36

Okay I copy/pasted that over what I had done. I'm wondering if the mistake isn't somewhere else in this viewtopic_body file. Here's the whole code:

Code: Select all
<!-- INCLUDE overall_header.html -->
<strong><!-- IF not S_IS_BOT and S_USER_LOGGED_IN --><a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="e">{L_PROFILE}</a>  &bull;  <!-- ENDIF --><!-- IF U_MCP --><a href="{U_MCP}">{L_MCP}</a><!-- ENDIF --><!-- IF U_ACP -->  &bull;  <a href="{U_ACP}">{L_ACP}</a><!-- ENDIF --></strong><br><br>
<h2><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h2>
<!-- NOTE: remove the style="display: none" when you want to have the forum description on the topic body -->
<!-- IF FORUM_DESC --><div style="display: none !important;">{FORUM_DESC}<br /></div><!-- ENDIF -->

<!-- IF MODERATORS or U_MCP -->
   <p>
      <!-- IF MODERATORS -->
         <strong><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->:</strong> {MODERATORS}
      <!-- ENDIF -->

   </p>
<!-- 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 -->

<div class="topic-actions">

   <div class="buttons">
   <!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
      <div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->"><a href="{U_POST_REPLY_TOPIC}" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->"><span></span><!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED_SHORT}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></a></div>
   <!-- ENDIF -->
   </div>

   <!-- IF PAGINATION or TOTAL_POSTS -->
      <div class="pagination">
         <!-- IF U_VIEW_UNREAD_POST and not S_IS_BOT --><a href="{U_VIEW_UNREAD_POST}">{L_VIEW_UNREAD_POST}</a> &bull; <!-- ENDIF -->{TOTAL_POSTS}
         <!-- 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>
<div class="clear"></div>

<!-- IF S_HAS_POLL -->
   <form method="post" action="{S_POLL_ACTION}">

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

      <div class="content">
         <h2>{POLL_QUESTION}</h2>
         <p class="author">{L_POLL_LENGTH}<!-- IF S_CAN_VOTE and L_POLL_LENGTH --><br /><!-- ENDIF --><!-- IF S_CAN_VOTE -->{L_MAX_VOTES}<!-- ENDIF --></p>

         <fieldset class="polls">
         <!-- BEGIN poll_option -->
            <dl class="<!-- IF poll_option.POLL_OPTION_VOTED -->voted<!-- ENDIF -->"<!-- IF poll_option.POLL_OPTION_VOTED --> title="{L_POLL_VOTED_OPTION}"<!-- ENDIF -->>
               <dt><!-- IF S_CAN_VOTE --><label for="vote_{poll_option.POLL_OPTION_ID}">{poll_option.POLL_OPTION_CAPTION}</label><!-- ELSE -->{poll_option.POLL_OPTION_CAPTION}<!-- ENDIF --></dt>
               <!-- IF S_CAN_VOTE --><dd style="width: auto;"><!-- IF S_IS_MULTI_CHOICE --><input type="checkbox" name="vote_id[]" id="vote_{poll_option.POLL_OPTION_ID}" value="{poll_option.POLL_OPTION_ID}"<!-- IF poll_option.POLL_OPTION_VOTED --> checked="checked"<!-- ENDIF --> /><!-- ELSE --><input type="radio" name="vote_id[]" id="vote_{poll_option.POLL_OPTION_ID}" value="{poll_option.POLL_OPTION_ID}"<!-- IF poll_option.POLL_OPTION_VOTED --> checked="checked"<!-- ENDIF --> /><!-- ENDIF --></dd><!-- ENDIF -->
               <!-- IF S_DISPLAY_RESULTS --><dd class="resultbar"><div class="<!-- IF poll_option.POLL_OPTION_PCT < 20 -->pollbar1<!-- ELSEIF poll_option.POLL_OPTION_PCT < 40 -->pollbar2<!-- ELSEIF poll_option.POLL_OPTION_PCT < 60 -->pollbar3<!-- ELSEIF poll_option.POLL_OPTION_PCT < 80 -->pollbar4<!-- ELSE -->pollbar5<!-- ENDIF -->" style="width:{poll_option.POLL_OPTION_PERCENT};">{poll_option.POLL_OPTION_RESULT}</div></dd>
               <dd><!-- IF poll_option.POLL_OPTION_RESULT == 0 -->{L_NO_VOTES}<!-- ELSE -->{poll_option.POLL_OPTION_PERCENT}<!-- ENDIF --></dd><!-- ENDIF -->
            </dl>
         <!-- END poll_option -->

         <!-- IF S_DISPLAY_RESULTS -->
            <dl>
               <dt>&nbsp;</dt>
               <dd class="resultbar">{L_TOTAL_VOTES} : {TOTAL_VOTES}</dd>
            </dl>
         <!-- ENDIF -->

         <!-- IF S_CAN_VOTE -->
            <dl style="border-top: none;">
               <dt>&nbsp;</dt>
               <dd class="resultbar"><input type="submit" name="update" value="{L_SUBMIT_VOTE}" class="button1" /></dd>
            </dl>
         <!-- ENDIF -->

         <!-- IF not S_DISPLAY_RESULTS -->
            <dl style="border-top: none;">
               <dt>&nbsp;</dt>
               <dd class="resultbar"><a href="{U_VIEW_RESULTS}">{L_VIEW_RESULTS}</a></dd>
            </dl>
         <!-- ENDIF -->
         </fieldset>
      </div>

      <span class="corners-bottom"><span></span></span></div>
      {S_FORM_TOKEN}
      {S_HIDDEN_FIELDS}
   </div>


   </form>
   <hr />
<!-- ENDIF -->

<!-- BEGIN postrow -->
   <!-- IF postrow.S_FIRST_UNREAD --><a id="unread"></a><!-- ENDIF -->
   <div id="p{postrow.POST_ID}" class="post <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF -->">
      <div class="inner"><span class="corners-top"><span></span></span>

      <div class="postbody">
         <!-- IF postrow.S_IGNORE_POST -->
            <div class="ignore">{postrow.L_IGNORE_POST}</div>
         <!-- ELSE -->

      <!-- IF not S_IS_BOT -->
         <!-- IF postrow.U_EDIT or postrow.U_DELETE or postrow.U_REPORT or postrow.U_WARN or postrow.U_INFO or postrow.U_QUOTE -->
            <ul class="profile-icons">
               <!-- IF postrow.U_EDIT --><li class="edit-icon"><a href="{postrow.U_EDIT}" title="{L_EDIT_POST}"><span>{L_EDIT_POST}</span></a></li><!-- ENDIF -->
               <!-- IF postrow.U_DELETE --><li class="delete-icon"><a href="{postrow.U_DELETE}" title="{L_DELETE_POST}"><span>{L_DELETE_POST}</span></a></li><!-- ENDIF -->
               <!-- IF postrow.U_REPORT --><li class="report-icon"><a href="{postrow.U_REPORT}" title="{L_REPORT_POST}"><span>{L_REPORT_POST}</span></a></li><!-- ENDIF -->
               <!-- IF postrow.U_WARN --><li class="warn-icon"><a href="{postrow.U_WARN}" title="{L_WARN_USER}"><span>{L_WARN_USER}</span></a></li><!-- ENDIF -->
               <!-- IF postrow.U_INFO --><li class="info-icon"><a href="{postrow.U_INFO}" title="{L_INFORMATION}"><span>{L_INFORMATION}</span></a></li><!-- ENDIF -->
               <!-- IF postrow.U_QUOTE --><li class="quote-icon"><a href="{postrow.U_QUOTE}" title="{L_REPLY_WITH_QUOTE}"><span>{L_REPLY_WITH_QUOTE}</span></a></li><!-- ENDIF -->
            </ul>
         <!-- ENDIF -->
      <!-- ENDIF -->

         <h3 <!-- IF postrow.S_FIRST_ROW -->class="first"<!-- ENDIF -->><!-- IF postrow.POST_ICON_IMG --><img src="{T_ICONS_PATH}{postrow.POST_ICON_IMG}" width="{postrow.POST_ICON_IMG_WIDTH}" height="{postrow.POST_ICON_IMG_HEIGHT}" alt="" /> <!-- ENDIF --><a href="#p{postrow.POST_ID}">{postrow.POST_SUBJECT}</a></h3>
         <p class="author"><!-- IF S_IS_BOT -->{postrow.MINI_POST_IMG}<!-- ELSE --><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF -->{L_POST_BY_AUTHOR} <strong>{postrow.POST_AUTHOR_FULL}</strong> &raquo; {postrow.POST_DATE} </p>

         <!-- IF postrow.S_POST_UNAPPROVED or postrow.S_POST_REPORTED -->
            <p class="rules">
               <!-- IF postrow.S_POST_UNAPPROVED -->{UNAPPROVED_IMG} <a href="{postrow.U_MCP_APPROVE}"><strong>{L_POST_UNAPPROVED}</strong></a><br /><!-- ENDIF -->
               <!-- IF postrow.S_POST_REPORTED -->{REPORTED_IMG} <a href="{postrow.U_MCP_REPORT}"><strong>{L_POST_REPORTED}</strong></a><!-- ENDIF -->
            </p>
         <!-- ENDIF -->

         <div class="content">{postrow.MESSAGE}</div>

         <!-- IF postrow.S_HAS_ATTACHMENTS -->
            <dl class="attachbox" style="width: 97%;">
               <dt>{L_ATTACHMENTS}</dt>
               <!-- BEGIN attachment -->
                  <dd>{postrow.attachment.DISPLAY_ATTACHMENT}</dd>
               <!-- END attachment -->
            </dl>
         <!-- ENDIF -->

         <!-- IF postrow.S_DISPLAY_NOTICE --><div class="rules">{L_DOWNLOAD_NOTICE}</div><!-- ENDIF -->
         <!-- IF postrow.EDITED_MESSAGE or postrow.EDIT_REASON -->
            <div class="notice">{postrow.EDITED_MESSAGE}
               <!-- IF postrow.EDIT_REASON --><br /><strong>{L_REASON}:</strong> <em>{postrow.EDIT_REASON}</em><!-- ENDIF -->
            </div>
         <!-- ENDIF -->

         <!-- IF postrow.BUMPED_MESSAGE --><div class="notice"><br /><br />{postrow.BUMPED_MESSAGE}</div><!-- ENDIF -->
         <!-- IF postrow.SIGNATURE --><div id="sig{postrow.POST_ID}" class="signature">{postrow.SIGNATURE}</div><!-- ENDIF -->
         
          <!-- IF postrow.S_PROFILE_SGCNAMEONE or postrow.S_PROFILE_SGCLINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_SGCNAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_SGCLINKONE_VALUE}" title="{postrow.PROFILE_SGCLINKONE_VALUE}">{postrow.PROFILE_SGCNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_SGCNAMETWO and postrow.S_PROFILE_SGCLINKTWO -->
               <dd><a href="{postrow.PROFILE_SGCLINKTWO_VALUE}" title="{postrow.PROFILE_SGCLINKTWO_VALUE}">{postrow.PROFILE_SGCNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_OBNAMEONE or postrow.S_PROFILE_OBLINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_OBNAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_OBLINKONE_VALUE}" title="{postrow.PROFILE_OBLINKONE_VALUE}">{postrow.PROFILE_OBNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_OBNAMETWO and postrow.S_PROFILE_OBLINKTWO -->
               <dd><a href="{postrow.PROFILE_OBLINKTWO_VALUE}" title="{postrow.PROFILE_OBLINKTWO_VALUE}">{postrow.PROFILE_OBNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_SGANAMEONE or postrow.S_PROFILE_SGALINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_SGANAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_SGALINKONE_VALUE}" title="{postrow.PROFILE_SGALINKONE_VALUE}">{postrow.PROFILE_SGANAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_SGANAMETWO and postrow.S_PROFILE_SGALINKTWO -->
               <dd><a href="{postrow.PROFILE_SGALINKTWO_VALUE}" title="{postrow.PROFILE_SGALINKTWO_VALUE}">{postrow.PROFILE_SGANAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_SENAMEONE or postrow.S_PROFILE_SELINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_SENAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_SELINKONE_VALUE}" title="{postrow.PROFILE_SELINKONE_VALUE}">{postrow.PROFILE_SENAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_SENAMETWO and postrow.S_PROFILE_SELINKTWO -->
               <dd><a href="{postrow.PROFILE_SELINKTWO_VALUE}" title="{postrow.PROFILE_SELINKTWO_VALUE}">{postrow.PROFILE_SENAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_CNAMEONE or postrow.S_PROFILE_CLINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_CNAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_CLINKONE_VALUE}" title="{postrow.PROFILE_CLINKONE_VALUE}">{postrow.PROFILE_CNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_CNAMETWO and postrow.S_PROFILE_CLINKTWO -->
               <dd><a href="{postrow.PROFILE_CLINKTWO_VALUE}" title="{postrow.PROFILE_CLINKTWO_VALUE}">{postrow.PROFILE_CNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_WNAMEONE or postrow.S_PROFILE_WLINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_WNAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_WLINKONE_VALUE}" title="{postrow.PROFILE_WLINKONE_VALUE}">{postrow.PROFILE_WNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_WNAMETWO and postrow.S_PROFILE_WLINKTWO -->
               <dd><a href="{postrow.PROFILE_WLINKTWO_VALUE}" title="{postrow.PROFILE_WLINKTWO_VALUE}">{postrow.PROFILE_WNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_AOLNAMEONE or postrow.S_PROFILE_AOLLINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_AOLNAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_AOLLINKONE_VALUE}" title="{postrow.PROFILE_AOLLINKONE_VALUE}">{postrow.PROFILE_AOLNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_AOLNAMETWO and postrow.S_PROFILE_AOLLINKTWO -->
               <dd><a href="{postrow.PROFILE_AOLLINKTWO_VALUE}" title="{postrow.PROFILE_AOLLINKTWO_VALUE}">{postrow.PROFILE_AOLNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_FANTASYNAMEONE or postrow.S_PROFILE_FANTASYLINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_FANTASYNAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_FANTASYLINKONE_VALUE}" title="{postrow.PROFILE_FANTASYLINKONE_VALUE}">{postrow.PROFILE_FANTASYNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_FANTASYNAMETWO and postrow.S_PROFILE_FANTASYLINKTWO -->
               <dd><a href="{postrow.PROFILE_FANTASYLINKTWO_VALUE}" title="{postrow.PROFILE_FANTASYLINKTWO_VALUE}">{postrow.PROFILE_FANTASYNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->
         
      <!-- ENDIF -->

      </div>

      <!-- IF not postrow.S_IGNORE_POST -->
         <dl class="postprofile" id="profile{postrow.POST_ID}">
         <dt>
            <!-- IF postrow.POSTER_AVATAR -->
               <!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
            <!-- ENDIF -->
            <!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
         </dt>

         <!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd>{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->

      <dd>&nbsp;</dd>

      <!-- IF postrow.POSTER_POSTS != '' --><dd><strong>{L_POSTS}:</strong> {postrow.POSTER_POSTS}</dd><!-- ENDIF -->
      <!-- IF postrow.POSTER_JOINED --><dd><strong>{L_JOINED}:</strong> {postrow.POSTER_JOINED}</dd><!-- ENDIF -->
      <!-- IF postrow.POSTER_FROM --><dd><strong>{L_LOCATION}:</strong> {postrow.POSTER_FROM}</dd><!-- ENDIF -->
      
      <!-- IF postrow.S_HAS_HIGHSCORES --><dd><strong>{L_ARCADE_HIGHSCORES}:</strong> <a href="{postrow.U_ARCADE_STATS}">{postrow.TOTAL_HIGHSCORES}</a></dd><!-- ENDIF -->

      <!-- IF postrow.S_PROFILE_FIELD1 -->
         <!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
         <dd><strong>{postrow.PROFILE_FIELD1_NAME}:</strong> {postrow.PROFILE_FIELD1_VALUE}</dd>
      <!-- ENDIF -->

      <!-- BEGIN custom_fields -->
         <dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
      <!-- END custom_fields -->

      <!-- IF not S_IS_BOT -->
      <!-- IF postrow.U_PM or postrow.U_EMAIL or postrow.U_WWW or postrow.U_MSN or postrow.U_ICQ or postrow.U_YIM or postrow.U_AIM or postrow.U_JABBER -->
         <dd>
            <ul class="profile-icons">
               <!-- IF postrow.U_PM --><li class="pm-icon"><a href="{postrow.U_PM}" title="{L_PRIVATE_MESSAGE}"><span>{L_PRIVATE_MESSAGE}</span></a></li><!-- ENDIF -->
               <!-- IF postrow.U_EMAIL --><li class="email-icon"><a href="{postrow.U_EMAIL}" title="{L_SEND_EMAIL_USER} {postrow.POST_AUTHOR}"><span>{L_SEND_EMAIL_USER} {postrow.POST_AUTHOR}</span></a></li><!-- ENDIF -->
               <!-- IF postrow.U_WWW --><li class="web-icon"><a href="{postrow.U_WWW}" title="{L_VISIT_WEBSITE}: {postrow.U_WWW}"><span>{L_WEBSITE}</span></a></li><!-- ENDIF -->
               <!-- IF postrow.U_MSN --><li class="msnm-icon"><a href="{postrow.U_MSN}" onclick="popup(this.href, 550, 320); return false;" title="{L_MSNM}"><span>{L_MSNM}</span></a></li><!-- ENDIF -->
               <!-- IF postrow.U_ICQ --><li class="icq-icon"><a href="{postrow.U_ICQ}" onclick="popup(this.href, 550, 320); return false;" title="{L_ICQ}"><span>{L_ICQ}</span></a></li><!-- ENDIF -->
               <!-- IF postrow.U_YIM --><li class="yahoo-icon"><a href="{postrow.U_YIM}" onclick="popup(this.href, 780, 550); return false;" title="{L_YIM}"><span>{L_YIM}</span></a></li><!-- ENDIF -->
               <!-- IF postrow.U_AIM --><li class="aim-icon"><a href="{postrow.U_AIM}" onclick="popup(this.href, 550, 320); return false;" title="{L_AIM}"><span>{L_AIM}</span></a></li><!-- ENDIF -->
               <!-- IF postrow.U_JABBER --><li class="jabber-icon"><a href="{postrow.U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
            </ul>
         </dd>
      <!-- ENDIF -->
      <!-- ENDIF -->

      </dl>
   <!-- ENDIF -->

      <div class="back2top"><a href="#wrap" class="top" title="{L_BACK_TO_TOP}">{L_BACK_TO_TOP}</a></div>

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

   <hr class="divider" />
<!-- END postrow -->
<!-- IF S_QUICK_REPLY -->
   <!-- INCLUDE quickreply_editor.html -->
<!-- ENDIF -->
<!-- IF S_NUM_POSTS > 1 or PREVIOUS_PAGE -->
   <form id="viewtopic" method="post" action="{S_TOPIC_ACTION}">

   <fieldset class="display-options" style="margin-top: 0; ">
      <!-- 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_POSTS}: {S_SELECT_SORT_DAYS}</label>
      <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 -->

<div class="topic-actions">
   <div class="buttons">
   <!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
      <div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->"><a href="{U_POST_REPLY_TOPIC}" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->"><span></span><!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED_SHORT}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></a></div>
   <!-- ENDIF -->
   </div>

   <!-- IF PAGINATION or TOTAL_POSTS -->
      <div class="pagination">
         {TOTAL_POSTS}
         <!-- 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>

<!-- INCLUDE jumpbox.html -->

<!-- IF S_TOPIC_MOD -->
   <form method="post" action="{S_MOD_ACTION}">
   <fieldset class="quickmod">
      <label for="quick-mod-select">{L_QUICK_MOD}:</label> {S_TOPIC_MOD} <input type="submit" value="{L_GO}" class="button2" />
      {S_FORM_TOKEN}
   </fieldset>
   </form>
<!-- ENDIF -->

<!-- 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 -->

<!-- INCLUDE overall_footer.html -->


Example viewable as guest:
http://www.blueplanetrp.com/phpBB3/view ... ead#unread

Edit: Well, there WAS another post here.... lol
BluePlanet RP
my own creation.

Host: Host Monster
Version: 3.0.9
Honor    
STG Moderator
STG Moderator
 
Posts: 328
Joined: 23 Dec 2010, 10:53
Gender: Female
phpBB Knowledge: 2

Re: [How To] Utilizing each Custom Profile Field

Postby Sniper_E » 10 Jan 2011, 22:58

Oh sorry, I took that code out because I thought I screwed it up looking at it on my site.
I had 8 of them in there and it was wrapping bad. Your codes look good.

You had 6 showing and they seemed to fit.
It looked good at that link. They all lined up perfect across the page from my view.
But if you have a style that has a set width of 800px, then I'm not sure if they would fit.

Are you good there?

:doh: now we have to get those <!-- IF not statements going for your profile section to make them go away.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6978
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [How To] Utilizing each Custom Profile Field

Postby Honor » 10 Jan 2011, 23:25

No, on my screen they are already one too long, so they wont' fit when I shrink it up.

Other than that, i'm good on that end :) Now all i have to do is get that IF statement, and find a way to show it on the user's profile page, and I'm set! Thanks so much :)
BluePlanet RP
my own creation.

Host: Host Monster
Version: 3.0.9
Honor    
STG Moderator
STG Moderator
 
Posts: 328
Joined: 23 Dec 2010, 10:53
Gender: Female
phpBB Knowledge: 2

Re: [How To] Utilizing each Custom Profile Field

Postby Sniper_E » 10 Jan 2011, 23:33

FIND
Code: Select all
      <!-- BEGIN custom_fields -->
AFTER ADD
Code: Select all
      <!-- IF not postrow.S_PROFILE_SGCNAMEONE or not postrow.S_PROFILE_SGCNAMETWO or not postrow.S_PROFILE_OBNAMEONE or not postrow.S_PROFILE_OBNAMETWO or not postrow.S_PROFILE_SGANAMEONE or not postrow.S_PROFILE_SGANAMETWO or not postrow.S_PROFILE_SENAMEONE or not postrow.S_PROFILE_SENAMETWO or not postrow.S_PROFILE_CNAMEONE or not postrow.S_PROFILE_CNAMETWO or not postrow.S_PROFILE_WNAMEONE or not postrow.S_PROFILE_WNAMETWO or not postrow.S_PROFILE_AOLNAMEONE or not postrow.S_PROFILE_AOLNAMETWO or not postrow.S_PROFILE_FANTASYNAMEONE or not postrow.S_PROFILE_FANTASYNAMETWO -->
FIND
Code: Select all
      <!-- END custom_fields -->
BEFORE ADD
Code: Select all
      <!-- ENDIF -->
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6978
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [How To] Utilizing each Custom Profile Field

Postby Sniper_E » 11 Jan 2011, 10:24

I see that these IF statements do now work anymore. Is everyone else seeing this problem?

The way I use to do it when I started this thread is by using:
Code: Select all
<!-- IF not postrow.custom_fields.PROFILE_FIELD_NAME eq "SGC Main Character" -->

Now I'm using:
Code: Select all
<!-- IF not postrow.S_PROFILE_SGCNAMEONE -->

Jamie said he used this:
Jaymie1989 wrote:So the new line I used that works is
Code: Select all
<!-- IF not postrow.custom_fields.S_PROFILE_REAL_NAME and not postrow.custom_fields.S_PROFILE_CUSTOM_TITLE -->

What I have tried removes the cpf from the list... but it also removes all the cpf from the list.
It looks like the <!-- IF not statements are no good in phpBB 3.0.8

There is a simple way around this but if there is a correct <!-- IF not statement... I'd like to know.
Has anyone come up with the correct statement? I need your help now...

The way around this is to completely remove
Code: Select all
      <!-- BEGIN custom_fields -->
      <dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}: </strong>{postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
      <!-- END custom_fields -->
and manually add in each of your cpf where you want them.

Honor, you probably could use <!-- IF not postrow.S_PROFILE_SGCNAMEONE --> and all of them would be gone.
Try it to see what I mean.
Code: Select all
      <!-- BEGIN custom_fields -->
      <!-- IF not postrow.S_PROFILE_SGCNAMEONE -->
      <dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}: </strong>{postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
      <!-- ENDIF -->
      <!-- END custom_fields -->


Honor, in your memberlist_view.html template...

FIND
Code: Select all
<!-- IF SIGNATURE -->

BEFORE ADD
Code: Select all
<div class="panel bg1">
   <div class="inner"><span class="corners-top"><span></span></span>

          <!-- IF postrow.S_PROFILE_SGCNAMEONE or postrow.S_PROFILE_SGCLINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_SGCNAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_SGCLINKONE_VALUE}" title="{postrow.PROFILE_SGCLINKONE_VALUE}">{postrow.PROFILE_SGCNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_SGCNAMETWO and postrow.S_PROFILE_SGCLINKTWO -->
               <dd><a href="{postrow.PROFILE_SGCLINKTWO_VALUE}" title="{postrow.PROFILE_SGCLINKTWO_VALUE}">{postrow.PROFILE_SGCNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_OBNAMEONE or postrow.S_PROFILE_OBLINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_OBNAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_OBLINKONE_VALUE}" title="{postrow.PROFILE_OBLINKONE_VALUE}">{postrow.PROFILE_OBNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_OBNAMETWO and postrow.S_PROFILE_OBLINKTWO -->
               <dd><a href="{postrow.PROFILE_OBLINKTWO_VALUE}" title="{postrow.PROFILE_OBLINKTWO_VALUE}">{postrow.PROFILE_OBNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_SGANAMEONE or postrow.S_PROFILE_SGALINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_SGANAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_SGALINKONE_VALUE}" title="{postrow.PROFILE_SGALINKONE_VALUE}">{postrow.PROFILE_SGANAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_SGANAMETWO and postrow.S_PROFILE_SGALINKTWO -->
               <dd><a href="{postrow.PROFILE_SGALINKTWO_VALUE}" title="{postrow.PROFILE_SGALINKTWO_VALUE}">{postrow.PROFILE_SGANAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_SENAMEONE or postrow.S_PROFILE_SELINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_SENAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_SELINKONE_VALUE}" title="{postrow.PROFILE_SELINKONE_VALUE}">{postrow.PROFILE_SENAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_SENAMETWO and postrow.S_PROFILE_SELINKTWO -->
               <dd><a href="{postrow.PROFILE_SELINKTWO_VALUE}" title="{postrow.PROFILE_SELINKTWO_VALUE}">{postrow.PROFILE_SENAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_CNAMEONE or postrow.S_PROFILE_CLINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_CNAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_CLINKONE_VALUE}" title="{postrow.PROFILE_CLINKONE_VALUE}">{postrow.PROFILE_CNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_CNAMETWO and postrow.S_PROFILE_CLINKTWO -->
               <dd><a href="{postrow.PROFILE_CLINKTWO_VALUE}" title="{postrow.PROFILE_CLINKTWO_VALUE}">{postrow.PROFILE_CNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_WNAMEONE or postrow.S_PROFILE_WLINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_WNAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_WLINKONE_VALUE}" title="{postrow.PROFILE_WLINKONE_VALUE}">{postrow.PROFILE_WNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_WNAMETWO and postrow.S_PROFILE_WLINKTWO -->
               <dd><a href="{postrow.PROFILE_WLINKTWO_VALUE}" title="{postrow.PROFILE_WLINKTWO_VALUE}">{postrow.PROFILE_WNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_AOLNAMEONE or postrow.S_PROFILE_AOLLINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_AOLNAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_AOLLINKONE_VALUE}" title="{postrow.PROFILE_AOLLINKONE_VALUE}">{postrow.PROFILE_AOLNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_AOLNAMETWO and postrow.S_PROFILE_AOLLINKTWO -->
               <dd><a href="{postrow.PROFILE_AOLLINKTWO_VALUE}" title="{postrow.PROFILE_AOLLINKTWO_VALUE}">{postrow.PROFILE_AOLNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

         <!-- IF postrow.S_PROFILE_FANTASYNAMEONE or postrow.S_PROFILE_FANTASYLINKONE -->
         <ul class="profile-icons" style="margin-left: 5px;">
            <li>
               <dd><strong>{postrow.PROFILE_FANTASYNAMEONE_NAME} &nbsp;</strong><br />
               <a href="{postrow.PROFILE_FANTASYLINKONE_VALUE}" title="{postrow.PROFILE_FANTASYLINKONE_VALUE}">{postrow.PROFILE_FANTASYNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_FANTASYNAMETWO and postrow.S_PROFILE_FANTASYLINKTWO -->
               <dd><a href="{postrow.PROFILE_FANTASYLINKTWO_VALUE}" title="{postrow.PROFILE_FANTASYLINKTWO_VALUE}">{postrow.PROFILE_FANTASYNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li>
         </ul>
         <!-- ENDIF -->

   <span class="corners-bottom"><span></span></span></div>
</div>
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6978
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [How To] Utilizing each Custom Profile Field

Postby Honor » 11 Jan 2011, 22:12

I'm so sorry... I had a really hard time following your train of thought from one post to the next. So i just tried everything I saw :P Or rather, am trying them, as I type this. I'm doing one at a time.

1) First post. Used this code:

viewtopic_body.htm
Code: Select all
   <!-- BEGIN custom_fields -->
            <!-- IF not postrow.S_PROFILE_SGCNAMEONE or not postrow.S_PROFILE_SGCNAMETWO or not postrow.S_PROFILE_OBNAMEONE or not postrow.S_PROFILE_OBNAMETWO or not postrow.S_PROFILE_SGANAMEONE or not postrow.S_PROFILE_SGANAMETWO or not postrow.S_PROFILE_SENAMEONE or not postrow.S_PROFILE_SENAMETWO or not postrow.S_PROFILE_CNAMEONE or not postrow.S_PROFILE_CNAMETWO or not postrow.S_PROFILE_WNAMEONE or not postrow.S_PROFILE_WNAMETWO or not postrow.S_PROFILE_AOLNAMEONE or not postrow.S_PROFILE_AOLNAMETWO or not postrow.S_PROFILE_FANTASYNAMEONE or not postrow.S_PROFILE_FANTASYNAMETWO -->
         <dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
            <!-- ENDIF -->
      <!-- END custom_fields -->


It did absolutely nothing - didn't hide ANY profile field. And I remembered to refresh the template this time.


2) Tried this code (halfway through your second post):

viewtopic_body.htm
Code: Select all
   <!-- IF postrow.S_PROFILE_FIELD1 -->
         <!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
         <dd><strong>{postrow.PROFILE_FIELD1_NAME}:</strong> {postrow.PROFILE_FIELD1_VALUE}</dd>
      <!-- ENDIF -->

   <!-- BEGIN custom_fields -->
      <!-- IF not postrow.S_PROFILE_SGCNAMEONE -->
      <dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}: </strong>{postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
      <!-- ENDIF -->
      <!-- END custom_fields -->

      <!-- IF not S_IS_BOT -->
      <!-- IF postrow.U_PM or postrow.U_EMAIL or postrow.U_WWW or postrow.U_MSN or postrow.U_ICQ or postrow.U_YIM or postrow.U_AIM or postrow.U_JABBER -->
         <dd>
            <ul class="profile-icons">

((yes, I pulled out more code than necessary just to show where the placement in the file is))

That worked - except it also took out two extra custom fields I had made ((Gender and Real Name))

3) Tried that "simple fix". Here's the code:

viewtopic_body.htm
Code: Select all
               <!-- IF postrow.U_AIM --><li class="aim-icon"><a href="{postrow.U_AIM}" onclick="popup(this.href, 550, 320); return false;" title="{L_AIM}"><span>{L_AIM}</span></a></li><!-- ENDIF -->
               <!-- IF postrow.U_JABBER --><li class="jabber-icon"><a href="{postrow.U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
            </ul>
         </dd><br><br>
      <!-- ENDIF -->
      <!-- ENDIF -->
      

       <ul class="profile-icons">
         <!-- IF postrow.S_PROFILE_SGCNAMEONE and postrow.S_PROFILE_SGCLINKONE -->
            <li>
               <dd><br><strong>Stargate Command</strong><br />
               <a href="{postrow.PROFILE_SGCLINKONE_VALUE}" title="{postrow.PROFILE_SGCLINKONE_VALUE}">{postrow.PROFILE_SGCNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_SGCNAMETWO and postrow.S_PROFILE_SGCLINKTWO -->
               <dd><a href="{postrow.PROFILE_SGCLINKTWO_VALUE}" title="{postrow.PROFILE_SGCLINKTWO_VALUE}">{postrow.PROFILE_SGCNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li><br>
         <!-- ENDIF -->
         <!-- IF postrow.S_PROFILE_SGANAMEONE and postrow.S_PROFILE_SGALINKONE -->
            <li>
               <dd><br><strong>Stargate: Atlantis</strong><br />
               <a href="{postrow.PROFILE_SGALINKONE_VALUE}" title="{postrow.PROFILE_SGALINKONE_VALUE}">{postrow.PROFILE_SGANAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_SGANAMETWO and postrow.S_PROFILE_SGALINKTWO -->
               <dd><a href="{postrow.PROFILE_SGALINKTWO_VALUE}" title="{postrow.PROFILE_SGALINKTWO_VALUE}">{postrow.PROFILE_SGANAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li><br>
         <!-- ENDIF -->
        <!-- IF postrow.S_PROFILE_OBNAMEONE and postrow.S_PROFILE_OBLINKONE -->
            <li>
               <dd><br><strong>Omega Base</strong><br />
               <a href="{postrow.PROFILE_OBLINKONE_VALUE}" title="{postrow.PROFILE_OBLINKONE_VALUE}">{postrow.PROFILE_OBNAMEONE_VALUE}</a></dd>
     
            </li><br>
         <!-- ENDIF -->
     
     <!-- IF postrow.S_PROFILE_SENAMEONE and postrow.S_PROFILE_SELINKONE -->
            <li>
               <dd><br><strong>Solar Exodus</strong><br />
               <a href="{postrow.PROFILE_SELINKONE_VALUE}" title="{postrow.PROFILE_SELINKONE_VALUE}">{postrow.PROFILE_SENAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_SENAMETWO and postrow.S_PROFILE_SELINKTWO -->
               <dd><a href="{postrow.PROFILE_SELINKTWO_VALUE}" title="{postrow.PROFILE_SELINKTWO_VALUE}">{postrow.PROFILE_SENAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li><br>
         <!-- ENDIF --> 
     <!-- IF postrow.S_PROFILE_CNAMEONE and postrow.S_PROFILE_CLINKONE -->
            <li>
               <dd><br><strong>Christian Crusade</strong><br />
               <a href="{postrow.PROFILE_CLINKONE_VALUE}" title="{postrow.PROFILE_CLINKONE_VALUE}">{postrow.PROFILE_CNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_CNAMETWO and postrow.S_PROFILE_CLINKTWO -->
               <dd><a href="{postrow.PROFILE_CLINKTWO_VALUE}" title="{postrow.PROFILE_CLINKTWO_VALUE}">{postrow.PROFILE_CNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li><br>
         <!-- ENDIF -->     
       
        <!-- IF postrow.S_PROFILE_WNAMEONE and postrow.S_PROFILE_WLINKONE -->
            <li>
               <dd><br><strong>World at War</strong><br />
               <a href="{postrow.PROFILE_WLINKONE_VALUE}" title="{postrow.PROFILE_WLINKONE_VALUE}">{postrow.PROFILE_WNAMEONE_VALUE}</a></dd>

            </li><br>
         <!-- ENDIF -->
     <!-- IF postrow.S_PROFILE_AOLNAMEONE and postrow.S_PROFILE_AOLLINKONE -->
            <li>
               <dd><br><strong>Annals of Lystra</strong><br />
               <a href="{postrow.PROFILE_AOLLINKONE_VALUE}" title="{postrow.PROFILE_AOLLINKONE_VALUE}">{postrow.PROFILE_AOLNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_AOLNAMETWO and postrow.S_PROFILE_AOLLINKTWO -->
               <dd><a href="{postrow.PROFILE_AOLLINKTWO_VALUE}" title="{postrow.PROFILE_AOLLINKTWO_VALUE}">{postrow.PROFILE_AOLNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li><br>
         <!-- ENDIF -->   
         
      <!-- IF postrow.S_PROFILE_FANTASYNAMEONE and postrow.S_PROFILE_FANTASYLINKONE -->
            <li>
               <dd><br><strong>Fantasy</strong><br />
               <a href="{postrow.PROFILE_FANTASYLINKONE_VALUE}" title="{postrow.PROFILE_FANTASYLINKONE_VALUE}">{postrow.PROFILE_FANTASYNAMEONE_VALUE}</a></dd>
            <!-- IF postrow.S_PROFILE_FANTASYNAMETWO and postrow.S_PROFILE_FANTASYLINKTWO -->
               <dd><a href="{postrow.PROFILE_FANTASYLINKTWO_VALUE}" title="{postrow.PROFILE_FANTASYLINKTWO_VALUE}">{postrow.PROFILE_FANTASYNAMETWO_VALUE}</a></dd>
            <!-- ENDIF -->
            </li><br>
         <!-- ENDIF -->       
         </ul>      

      </dl>
   <!-- ENDIF -->

      <div class="back2top"><a href="#wrap" class="top" title="{L_BACK_TO_TOP}">{L_BACK_TO_TOP}</a></div>

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

   <hr class="divider" />


Also:
Code: Select all
      <!-- IF not postrow.S_IGNORE_POST -->
         <dl class="postprofile" id="profile{postrow.POST_ID}">
         <dt>
            <!-- IF postrow.POSTER_AVATAR -->
               <!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
            <!-- ENDIF -->
            <!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<br><!-- ENDIF -->
            
             <!-- IF postrow.S_PROFILE_REALNAME -->
             <i>{postrow.PROFILE_REALNAME_VALUE} &nbsp;</i><br><!-- ENDIF -->
            
             <!-- IF postrow.S_PROFILE_GENDER -->
               <i>{postrow.PROFILE_GENDER_VALUE} &nbsp;</i><br />
                 <!-- ENDIF -->
         </dt>


((Again, extra shown here to show placement in both sets of codes))

I really like the idea of having the list in the profile list on the right, so I figured out how to add it there and removed it from the sig. The average number of characters for any person is three to five, so having a long list every now and then really isn't that bad for me. I also tweaked the original code you gave me. I just noticed that the <strong> tags are not taking in this code.... not sure why not.

'm still messing with the Real Name and the Gender placement as I forgot about ranks.

I just can't seem to make the lists break though. :( I've added <br> in several different places, as you can see, but no matter what, this is what I get. Any ideas? Could it have to do with whatever is keeping the <strong> tags from working as well?
Attachments
Picture 1.png
BluePlanet RP
my own creation.

Host: Host Monster
Version: 3.0.9
Honor    
STG Moderator
STG Moderator
 
Posts: 328
Joined: 23 Dec 2010, 10:53
Gender: Female
phpBB Knowledge: 2

Re: [How To] Utilizing each Custom Profile Field

Postby Honor » 11 Jan 2011, 22:33

I also made the changes to the memberlist_view.html, refreshed the templates - but it is still showing all of the profile fields, and ISNT showing the code I just added. So I went ahead and deleted the Custom Profile Fields code like in the other document. That's fine and dandy. But it just will NOT recognize this code.

Sorry to double post, but I just noticed this.
Attachments
Picture 2.png
BluePlanet RP
my own creation.

Host: Host Monster
Version: 3.0.9
Honor    
STG Moderator
STG Moderator
 
Posts: 328
Joined: 23 Dec 2010, 10:53
Gender: Female
phpBB Knowledge: 2

Re: [How To] Utilizing each Custom Profile Field

Postby King Rhyono » 11 Jan 2011, 22:57

Honor wrote:I'm so sorry... I had a really hard time following your train of thought from one post to the next.


I got bored and didn't try. If you sum this up so that I don't have to read the code to figure out what you want to hide, I could probably do it. Also, I've been too busy to work on the thing you requested (or any other requests for that matter).
King Rhyono
MOD Author
MOD Author
 
Posts: 174
Joined: 01 Aug 2007, 11:20
Gender: Male

PreviousNext

Return to Tutorials and How-Tos

Who is online

Users browsing this forum: No registered users and 3 guests