Show hide profile Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
3 posters

    Show hide profile

    --kml--
    --kml--
    Forumember


    Male Posts : 456
    Reputation : 1
    Language : english

    Solved Show hide profile

    Post by --kml-- November 15th 2009, 1:34 pm

    now look at Jalokims Website
    For example

    [url=Here]http://tealeafgraphics.7forum.net/general-discussions-f3/best-and-worst-things-u-ve-done-in-your-life-t581.htm[/url]

    you could see the Profile have View profile .
    How to do that?

    or at least just show me the User mini profile template Mr. Green
    avatar
    LilJur
    Forumember


    Male Posts : 212
    Reputation : 8
    Language : xml, css, html, hex, english and dutch

    Solved Re: Show hide profile

    Post by LilJur November 15th 2009, 1:39 pm

    That is in the viewtopic_body template.

    There are many ways to do this
    Here's an easy one:
    JQuery:
    Code:
     <script src="http://code.jquery.com/jquery-latest.js"></script>
     
      <script>
      $(document).ready(function(){
       
        $("button1").click(function () {
          $("t").toggle("slow");
        });   

      });</script>
    HTML
    Code:
    <button1>View Profile</button1>
      <t style="display: none">Content goes here
    </t>
    Hopes that this helps a bit
    --kml--
    --kml--
    Forumember


    Male Posts : 456
    Reputation : 1
    Language : english

    Solved Re: Show hide profile

    Post by --kml-- November 15th 2009, 1:41 pm

    oh my , thx !! Mr. Green
    i'll try it now Mr. Green

    Edit : For the next post , Thx even more!! Mr. Green


    Last edited by --kml-- on November 15th 2009, 1:46 pm; edited 1 time in total
    avatar
    LilJur
    Forumember


    Male Posts : 212
    Reputation : 8
    Language : xml, css, html, hex, english and dutch

    Solved Re: Show hide profile

    Post by LilJur November 15th 2009, 1:45 pm

    oh and the code your searching for the profile is this ( in the template)
    Code:
    <!-- BEGIN profile_field -->
                            {postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
                            <!-- END profile_field -->
    And the things as 'Contact', 'Website' and 'Send PM'
    Code:

                   <div class="user-contact">
                         {postrow.displayed.PROFILE_IMG} {postrow.displayed.PM_IMG} {postrow.displayed.EMAIL_IMG}<!-- BEGIN contact_field --> {postrow.displayed.contact_field.CONTENT}<!-- END contact_field -->
                      </div>
    --kml--
    --kml--
    Forumember


    Male Posts : 456
    Reputation : 1
    Language : english

    Solved Re: Show hide profile

    Post by --kml-- November 15th 2009, 1:49 pm

    how to combine these to only 1 View profile Button?

    Show hide profile Proble10

    Here's the code

    Code:
    <script type="text/javascript">
    //<![CDATA[
    var multiquote_img_off = '{JS_MULTIQUOTE_IMG_OFF}', multiquote_img_on = '{JS_MULTIQUOTE_IMG_ON}', _atr = '{JS_DIR}addthis/', _ati = '{PATH_IMG_FA}addthis/'{ADDTHIS_LANG}, addthis_localize = { share_caption: "{L_SHARE_CAPTION}", email: "{L_EMAIL}", email_caption: "{L_EMAIL_CAPTION}", favorites: "{L_SHARE_BOOKMARKS}", print: "{L_PRINT}", more: "{L_MORE}" };
    $(function(){
       _atc.cwait = 0;
       $('.addthis_button').mouseup(function(){
          if ($('#at15s').css('display') == 'block') {
             addthis_close();
             addthis_close();
          }
       });
    });
    //]]>
    </script>

    <script src="http://code.jquery.com/jquery-latest.js"></script>
     
      <script>
      $(document).ready(function(){
     
        $("button1").click(function () {
          $("t").toggle("slow");
        }); 

      });</script>

    <!-- BEGIN switch_user_logged_in -->
    <div id="pun-visit" class="clearfix">
       <ul>
          <li>
             <script type="text/javascript">
             //<![CDATA[
             insert_plus_menu_new('f{FORUM_ID}&t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
             //]]>
             </script>
           </li>
          <li><a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=forumotion">{L_SHARE}</a></li>
           <li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
           <li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
           <!-- BEGIN watchtopic -->
           <li>{S_WATCH_TOPIC}</li>
           <!-- END watchtopic -->
       </ul>
       <p>{LOGGED_AS}. {LAST_VISIT_DATE}</p>
    </div>
    <!-- END switch_user_logged_in -->
    <!-- BEGIN switch_user_logged_out -->
    <div id="pun-visit">
       <p>{L_NOT_CONNECTED} {L_LOGIN_REGISTER}</p>
    </div>
    <!-- END switch_user_logged_out -->

    <div class="pun-crumbs noprint">
       <p class="crumbs">
          <a href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}&nbsp;&raquo;&nbsp;
          <!-- google_ad_section_start -->
          <strong><a href="{TOPIC_URL}">{TOPIC_TITLE}</a></strong>
          <!-- google_ad_section_end -->
       </p>
    </div>

    <div class="main paged">
       <div class="paged-head clearfix">
          <!-- BEGIN topicpagination -->
          <p class="paging">{PAGINATION}</p>
          <!-- END topicpagination -->
          <p class="posting">
             <!-- BEGIN switch_user_authpost -->
             <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" class="{POST_IMG_CLASS}" alt="{L_POST_NEW_TOPIC}" /></a>&nbsp;&nbsp;
             <!-- END switch_user_authpost -->

             <!-- BEGIN switch_user_authreply -->
             <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" class="i_reply" alt="{L_POST_REPLY_TOPIC}" /></a>
             <!-- END switch_user_authreply -->
          </p>
       </div>
       {POLL_DISPLAY}
       <div class="main-head clearfix">
          <p class="h2">
             <a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a>&nbsp;<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a>&nbsp;<a href="#bottom">{L_GOTO_DOWN}</a>&nbsp;&nbsp;
             {L_MESSAGE} [{PAGE_NUMBER}]
          </p>
       </div>

       <div class="main-content topic">
          <!-- BEGIN postrow -->
             <!-- BEGIN displayed -->
             <div class="post"{postrow.displayed.THANK_BGCOLOR}>
                <a name="{postrow.displayed.U_POST_ID}"></a>
                <div class="postmain"{postrow.displayed.THANK_BGCOLOR}>
                   <div id="p{postrow.displayed.U_POST_ID}" class="posthead clearfix"{postrow.displayed.THANK_BGCOLOR}>
                      <h2>
                         <strong>{postrow.displayed.COUNT_POSTS}</strong>
                         {postrow.displayed.ICON} <a href="{postrow.displayed.POST_URL}">{postrow.displayed.POST_SUBJECT}</a> {postrow.displayed.POST_DATE_NEW}
                      </h2>
                   </div>

                   <div class="postbody"{postrow.displayed.THANK_BGCOLOR}>
                      <div class="user online">
                         <div class="user-ident">
                            <h4 class="username">{postrow.displayed.POSTER_NAME}</h4>
                            <div class="user-basic-info">
                               {postrow.displayed.POSTER_AVATAR}<br />
                               {postrow.displayed.POSTER_RANK_NEW}{postrow.displayed.RANK_IMAGE}
                            </div>
                         </div>
                         <div class="user-info">
                            {postrow.displayed.ONLINE_IMG}
                            
    <!-- BEGIN profile_field -->
    <button1>View Profile</button1>
      <t style="display: none">
                            {postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
    </t>
                            <!-- END profile_field -->
                            {postrow.displayed.POSTER_RPG}
                         </div>
                      </div>

                      <div class="post-entry">
                         <div class="entry-content">
                            <!-- BEGIN switch_vote_active -->
                            <div class="vote gensmall">
                               <!-- BEGIN switch_vote -->
                               <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a></div>
                               <!-- END switch_vote -->

                               <!-- BEGIN switch_bar -->
                               <div class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
                                  <!-- BEGIN switch_vote_plus -->
                                  <div class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;"></div>
                                  <!-- END switch_vote_plus -->

                                  <!-- BEGIN switch_vote_minus -->
                                  <div class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;"></div>
                                  <!-- END switch_vote_minus -->
                               </div>
                               <!-- END switch_bar -->

                               <!-- BEGIN switch_no_bar -->
                               <div title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">----</div>
                               <!-- END switch_no_bar -->

                               <!-- BEGIN switch_vote -->
                               <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a></div>
                               <!-- END switch_vote -->
                            </div>
                            <!-- END switch_vote_active -->
                            <div>
                               <!-- google_ad_section_start -->
                               {postrow.displayed.MESSAGE}
                               <!-- google_ad_section_end -->
                            </div>
                            <p>
                               {postrow.displayed.EDITED_MESSAGE}
                            </p>
                         </div>
                      </div>
                   </div>

                   <!-- BEGIN switch_signature -->
                   <div class="sig-content">
                      {postrow.displayed.SIGNATURE_NEW}
                   </div>
                   <!-- END switch_signature -->

                   <div class="postfoot clearfix">
                      <div class="user-contact">
                         {postrow.displayed.PROFILE_IMG} {postrow.displayed.PM_IMG} {postrow.displayed.EMAIL_IMG}<!-- BEGIN contact_field --> {postrow.displayed.contact_field.CONTENT}<!-- END contact_field -->
                      </div>
                      <div class="post-options">
                         {postrow.displayed.THANK_IMG} {postrow.displayed.MULTIQUOTE_IMG} {postrow.displayed.QUOTE_IMG} {postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}
                      </div>
                   </div>
                </div>
             </div>
             <!-- BEGIN first_post_br -->
          </div>
          <hr id="first-post-br" />
          <div class="main-content topic">
             <!-- END first_post_br -->
             <!-- END displayed -->
             <!-- BEGIN hidden -->
                <p class="p-hidden">{postrow.hidden.MESSAGE}</p>
             <!-- END hidden -->
          <!-- END postrow -->
       </div>

       <div class="main-foot clearfix">
          <p class="h2">
             <a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a>&nbsp;<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a>&nbsp;<a href="#top">{L_BACK_TO_TOP}</a>&nbsp;&nbsp;
             {L_MESSAGE} [{PAGE_NUMBER}]
          </p>
          <p class="options">
             <input type="hidden" name="t" value="{TOPIC_ID}" />
             <input type="hidden" name="sid" value="{S_SID}" />
             <!-- BEGIN viewtopic_bottom -->
             {S_TOPIC_ADMIN}
             <!-- END viewtopic_bottom -->
          </p>
       </div>

       <a name="bottomtitle"></a>

       <div class="paged-foot clearfix">
          <!-- BEGIN topicpagination -->
          <p class="paging">{PAGINATION}</p>
          <!-- END topicpagination -->
          <p class="posting">
             <!-- BEGIN switch_user_authpost -->
             <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" class="{POST_IMG_CLASS}" alt="{L_POST_NEW_TOPIC}" /></a>&nbsp;&nbsp;
             <!-- END switch_user_authpost -->

             <!-- BEGIN switch_user_authreply -->
             <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" class="i_reply" alt="{L_POST_REPLY_TOPIC}" /></a>
             <!-- END switch_user_authreply -->
          </p>
       </div>

    </div>

    <div class="pun-crumbs">
       <p class="crumbs">
          <a href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}&nbsp;&raquo;&nbsp;
          <strong><a href="{TOPIC_URL}">{TOPIC_TITLE}</a></strong>
       </p>
    </div>

    <!-- BEGIN switch_user_logged_in -->
    <a name="quickreply"></a>
    {QUICK_REPLY_FORM}
    <!-- END switch_user_logged_in -->

    <div id="pun-info" class="main">
       <div class="main-content">
          <div id="stats">
             <p>{L_TABS_PERMISSIONS} <br />{S_AUTH_LIST}</p>
          </div>
       </div>
    </div>

    <!-- BEGIN switch_image_resize -->
    <script type="text/javascript">
    //<![CDATA[
    $(function(){
       $('.post-entry .entry-content img').not('.signature_div img').css('display','none');
    });
    $(window).load(function(){
        $('.post-entry .entry-content img').not('.signature_div img').each(function(){
          if ( ( $(this).width() > {switch_image_resize.IMG_RESIZE_WIDTH} && {switch_image_resize.IMG_RESIZE_WIDTH} != 0 ) || ( $(this).height() > {switch_image_resize.IMG_RESIZE_HEIGHT} && {switch_image_resize.IMG_RESIZE_HEIGHT} != 0 ) ) {
             $(this).before(document.createElement('div')).prev().click(function(){
                return false;
             }).addClass('resizebox').append(document.createElement('div')).children().addClass('resize_border clearfix').append(document.createElement('div')).children().addClass('resize_content clearfix').append(document.createElement('a')).children().addClass('enlarge').attr('href', '#').text('{switch_image_resize.L_IMAGE_ENLARGE}').click(function(){
                $(this).parent().parent().parent().next().css('display','none').attr('resizeWidth', $(this).parent().parent().parent().next().width()).width('');
                $(this).parent().parent().parent().next().width($(this).parent().parent().parent().next().width() > $(this).closest('.entry-content').width()?'100%':'').css('max-width','100%').css('display','inline');
                $(this).css('display','none').next('a.resize').css('display','inline-block');
                $(this).parent().parent().parent().width($(this).parent().parent().parent().next().width());
                return false;
             }).parent().append(document.createElement('a')).children().next().addClass('resize').attr('href','#').text('{switch_image_resize.L_CLICK_TO_RESIZE}').click(function(){
                $(this).parent().parent().parent().next().width(parseInt($(this).parent().parent().parent().next().attr('resizeWidth'))).removeAttr('resizeWidth');
                $(this).css('display','none').prev('a.enlarge').css('display','inline-block');
                $(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
                return false;
             }).parent().append(document.createElement('div')).children('a.resize').next().addClass('resize_filler').text(' ').parent().append(document.createElement('a')).children('div.resize_filler').next().addClass('fullsize').attr('href','#').click(function(){
                window.open('/viewimage.forum?u=' + encodeURIComponent($(this).parent().parent().parent().next().attr('src')));
                return false;
             }).attr('target', '_blank').text('{switch_image_resize.L_CLICK_TO_SEE_FULLSIZE}');
             if ($(this).width() > ($('html').attr('dir') != 'rtl' ? $(this).closest('.entry-content').width() - $(this).prev().offset().left + $(this).closest('.entry-content').offset().left : $(this).prev().width() + $(this).prev().offset().left - $(this).closest('.entry-content').offset().left)){
                $(this).prev().find('a.fullsize').attr('href','/viewimage.forum?u=' + encodeURIComponent($(this).attr('src'))).css('display', 'inline-block');
             }
             $(this).width($(this).width() * ( ( {switch_image_resize.IMG_RESIZE_WIDTH} != 0 && ( {switch_image_resize.IMG_RESIZE_HEIGHT} == 0 || $(this).width() / $(this).height() > {switch_image_resize.IMG_RESIZE_WIDTH} / {switch_image_resize.IMG_RESIZE_HEIGHT} ) ) ? {switch_image_resize.IMG_RESIZE_WIDTH} / $(this).width() : {switch_image_resize.IMG_RESIZE_HEIGHT} / $(this).height() ) ).prev().width($(this).width());
          }
       }).css('display', 'inline');
    });
    //]]>
    </script>
    <!-- END switch_image_resize -->

    <script type="text/javascript" src="{JS_DIR}addthis/addthis_widget.js?pub=forumotion"></script>
    avatar
    LilJur
    Forumember


    Male Posts : 212
    Reputation : 8
    Language : xml, css, html, hex, english and dutch

    Solved Re: Show hide profile

    Post by LilJur November 15th 2009, 1:57 pm

    pretty easy,
    just put this on top
    Code:
    <button1>View Profile</button1>
    and then put all the variables between the 't' tags
    something like this ( just check for yourself with the br tags to space the text:
    Code:
    <button1>View Profile</button1>
    <t style="display: none">
    <!-- BEGIN profile_field -->
                            {postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
                            <!-- END profile_field -->{postrow.displayed.PROFILE_IMG} {postrow.displayed.PM_IMG} {postrow.displayed.EMAIL_IMG}<!-- BEGIN contact_field --> {postrow.displayed.contact_field.CONTENT}<!-- END contact_field -->

    </t>
    --kml--
    --kml--
    Forumember


    Male Posts : 456
    Reputation : 1
    Language : english

    Solved Re: Show hide profile

    Post by --kml-- November 15th 2009, 2:06 pm

    Hmmmm seems i cant make it work lol Razz Just now it did , but too many View profile words for each info .

    Can you add this for me? i would realy appreciate it Mr. Green

    Code:
    <script type="text/javascript">
    //<![CDATA[
    var multiquote_img_off = '{JS_MULTIQUOTE_IMG_OFF}', multiquote_img_on = '{JS_MULTIQUOTE_IMG_ON}', _atr = '{JS_DIR}addthis/', _ati = '{PATH_IMG_FA}addthis/'{ADDTHIS_LANG}, addthis_localize = { share_caption: "{L_SHARE_CAPTION}", email: "{L_EMAIL}", email_caption: "{L_EMAIL_CAPTION}", favorites: "{L_SHARE_BOOKMARKS}", print: "{L_PRINT}", more: "{L_MORE}" };
    $(function(){
       _atc.cwait = 0;
       $('.addthis_button').mouseup(function(){
          if ($('#at15s').css('display') == 'block') {
             addthis_close();
             addthis_close();
          }
       });
    });
    //]]>
    </script>

    <!-- BEGIN switch_user_logged_in -->
    <div id="pun-visit" class="clearfix">
       <ul>
          <li>
             <script type="text/javascript">
             //<![CDATA[
             insert_plus_menu_new('f{FORUM_ID}&t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
             //]]>
             </script>
           </li>
          <li><a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=forumotion">{L_SHARE}</a></li>
           <li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
           <li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
           <!-- BEGIN watchtopic -->
           <li>{S_WATCH_TOPIC}</li>
           <!-- END watchtopic -->
       </ul>
       <p>{LOGGED_AS}. {LAST_VISIT_DATE}</p>
    </div>
    <!-- END switch_user_logged_in -->
    <!-- BEGIN switch_user_logged_out -->
    <div id="pun-visit">
       <p>{L_NOT_CONNECTED} {L_LOGIN_REGISTER}</p>
    </div>
    <!-- END switch_user_logged_out -->

    <div class="pun-crumbs noprint">
       <p class="crumbs">
          <a href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}&nbsp;&raquo;&nbsp;
          <!-- google_ad_section_start -->
          <strong><a href="{TOPIC_URL}">{TOPIC_TITLE}</a></strong>
          <!-- google_ad_section_end -->
       </p>
    </div>

    <div class="main paged">
       <div class="paged-head clearfix">
          <!-- BEGIN topicpagination -->
          <p class="paging">{PAGINATION}</p>
          <!-- END topicpagination -->
          <p class="posting">
             <!-- BEGIN switch_user_authpost -->
             <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" class="{POST_IMG_CLASS}" alt="{L_POST_NEW_TOPIC}" /></a>&nbsp;&nbsp;
             <!-- END switch_user_authpost -->

             <!-- BEGIN switch_user_authreply -->
             <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" class="i_reply" alt="{L_POST_REPLY_TOPIC}" /></a>
             <!-- END switch_user_authreply -->
          </p>
       </div>
       {POLL_DISPLAY}
       <div class="main-head clearfix">
          <p class="h2">
             <a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a>&nbsp;<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a>&nbsp;<a href="#bottom">{L_GOTO_DOWN}</a>&nbsp;&nbsp;
             {L_MESSAGE} [{PAGE_NUMBER}]
          </p>
       </div>

       <div class="main-content topic">
          <!-- BEGIN postrow -->
             <!-- BEGIN displayed -->
             <div class="post"{postrow.displayed.THANK_BGCOLOR}>
                <a name="{postrow.displayed.U_POST_ID}"></a>
                <div class="postmain"{postrow.displayed.THANK_BGCOLOR}>
                   <div id="p{postrow.displayed.U_POST_ID}" class="posthead clearfix"{postrow.displayed.THANK_BGCOLOR}>
                      <h2>
                         <strong>{postrow.displayed.COUNT_POSTS}</strong>
                         {postrow.displayed.ICON} <a href="{postrow.displayed.POST_URL}">{postrow.displayed.POST_SUBJECT}</a> {postrow.displayed.POST_DATE_NEW}
                      </h2>
                   </div>

                   <div class="postbody"{postrow.displayed.THANK_BGCOLOR}>
                      <div class="user online">
                         <div class="user-ident">
                            <h4 class="username">{postrow.displayed.POSTER_NAME}</h4>
                            <div class="user-basic-info">
                               {postrow.displayed.POSTER_AVATAR}<br />
                               {postrow.displayed.POSTER_RANK_NEW}{postrow.displayed.RANK_IMAGE}
                            </div>
                         </div>
                         <div class="user-info">
                            {postrow.displayed.ONLINE_IMG}
                            <!-- BEGIN profile_field -->
                            {postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
                            <!-- END profile_field -->
                            {postrow.displayed.POSTER_RPG}
                         </div>
                      </div>

                      <div class="post-entry">
                         <div class="entry-content">
                            <!-- BEGIN switch_vote_active -->
                            <div class="vote gensmall">
                               <!-- BEGIN switch_vote -->
                               <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a></div>
                               <!-- END switch_vote -->

                               <!-- BEGIN switch_bar -->
                               <div class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
                                  <!-- BEGIN switch_vote_plus -->
                                  <div class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;"></div>
                                  <!-- END switch_vote_plus -->

                                  <!-- BEGIN switch_vote_minus -->
                                  <div class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;"></div>
                                  <!-- END switch_vote_minus -->
                               </div>
                               <!-- END switch_bar -->

                               <!-- BEGIN switch_no_bar -->
                               <div title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">----</div>
                               <!-- END switch_no_bar -->

                               <!-- BEGIN switch_vote -->
                               <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a></div>
                               <!-- END switch_vote -->
                            </div>
                            <!-- END switch_vote_active -->
                            <div>
                               <!-- google_ad_section_start -->
                               {postrow.displayed.MESSAGE}
                               <!-- google_ad_section_end -->
                            </div>
                            <p>
                               {postrow.displayed.EDITED_MESSAGE}
                            </p>
                         </div>
                      </div>
                   </div>

                   <!-- BEGIN switch_signature -->
                   <div class="sig-content">
                      {postrow.displayed.SIGNATURE_NEW}
                   </div>
                   <!-- END switch_signature -->

                   <div class="postfoot clearfix">
                      <div class="user-contact">
                         {postrow.displayed.PROFILE_IMG} {postrow.displayed.PM_IMG} {postrow.displayed.EMAIL_IMG}<!-- BEGIN contact_field --> {postrow.displayed.contact_field.CONTENT}<!-- END contact_field -->
                      </div>
                      <div class="post-options">
                         {postrow.displayed.THANK_IMG} {postrow.displayed.MULTIQUOTE_IMG} {postrow.displayed.QUOTE_IMG} {postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}
                      </div>
                   </div>
                </div>
             </div>
             <!-- BEGIN first_post_br -->
          </div>
          <hr id="first-post-br" />
          <div class="main-content topic">
             <!-- END first_post_br -->
             <!-- END displayed -->
             <!-- BEGIN hidden -->
                <p class="p-hidden">{postrow.hidden.MESSAGE}</p>
             <!-- END hidden -->
          <!-- END postrow -->
       </div>

       <div class="main-foot clearfix">
          <p class="h2">
             <a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a>&nbsp;<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a>&nbsp;<a href="#top">{L_BACK_TO_TOP}</a>&nbsp;&nbsp;
             {L_MESSAGE} [{PAGE_NUMBER}]
          </p>
          <p class="options">
             <input type="hidden" name="t" value="{TOPIC_ID}" />
             <input type="hidden" name="sid" value="{S_SID}" />
             <!-- BEGIN viewtopic_bottom -->
             {S_TOPIC_ADMIN}
             <!-- END viewtopic_bottom -->
          </p>
       </div>

       <a name="bottomtitle"></a>

       <div class="paged-foot clearfix">
          <!-- BEGIN topicpagination -->
          <p class="paging">{PAGINATION}</p>
          <!-- END topicpagination -->
          <p class="posting">
             <!-- BEGIN switch_user_authpost -->
             <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" class="{POST_IMG_CLASS}" alt="{L_POST_NEW_TOPIC}" /></a>&nbsp;&nbsp;
             <!-- END switch_user_authpost -->

             <!-- BEGIN switch_user_authreply -->
             <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" class="i_reply" alt="{L_POST_REPLY_TOPIC}" /></a>
             <!-- END switch_user_authreply -->
          </p>
       </div>

    </div>

    <div class="pun-crumbs">
       <p class="crumbs">
          <a href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}&nbsp;&raquo;&nbsp;
          <strong><a href="{TOPIC_URL}">{TOPIC_TITLE}</a></strong>
       </p>
    </div>

    <!-- BEGIN switch_user_logged_in -->
    <a name="quickreply"></a>
    {QUICK_REPLY_FORM}
    <!-- END switch_user_logged_in -->

    <div id="pun-info" class="main">
       <div class="main-content">
          <div id="stats">
             <p>{L_TABS_PERMISSIONS} <br />{S_AUTH_LIST}</p>
          </div>
       </div>
    </div>

    <!-- BEGIN switch_image_resize -->
    <script type="text/javascript">
    //<![CDATA[
    $(function(){
       $('.post-entry .entry-content img').not('.signature_div img').css('display','none');
    });
    $(window).load(function(){
        $('.post-entry .entry-content img').not('.signature_div img').each(function(){
          if ( ( $(this).width() > {switch_image_resize.IMG_RESIZE_WIDTH} && {switch_image_resize.IMG_RESIZE_WIDTH} != 0 ) || ( $(this).height() > {switch_image_resize.IMG_RESIZE_HEIGHT} && {switch_image_resize.IMG_RESIZE_HEIGHT} != 0 ) ) {
             $(this).before(document.createElement('div')).prev().click(function(){
                return false;
             }).addClass('resizebox').append(document.createElement('div')).children().addClass('resize_border clearfix').append(document.createElement('div')).children().addClass('resize_content clearfix').append(document.createElement('a')).children().addClass('enlarge').attr('href', '#').text('{switch_image_resize.L_IMAGE_ENLARGE}').click(function(){
                $(this).parent().parent().parent().next().css('display','none').attr('resizeWidth', $(this).parent().parent().parent().next().width()).width('');
                $(this).parent().parent().parent().next().width($(this).parent().parent().parent().next().width() > $(this).closest('.entry-content').width()?'100%':'').css('max-width','100%').css('display','inline');
                $(this).css('display','none').next('a.resize').css('display','inline-block');
                $(this).parent().parent().parent().width($(this).parent().parent().parent().next().width());
                return false;
             }).parent().append(document.createElement('a')).children().next().addClass('resize').attr('href','#').text('{switch_image_resize.L_CLICK_TO_RESIZE}').click(function(){
                $(this).parent().parent().parent().next().width(parseInt($(this).parent().parent().parent().next().attr('resizeWidth'))).removeAttr('resizeWidth');
                $(this).css('display','none').prev('a.enlarge').css('display','inline-block');
                $(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
                return false;
             }).parent().append(document.createElement('div')).children('a.resize').next().addClass('resize_filler').text(' ').parent().append(document.createElement('a')).children('div.resize_filler').next().addClass('fullsize').attr('href','#').click(function(){
                window.open('/viewimage.forum?u=' + encodeURIComponent($(this).parent().parent().parent().next().attr('src')));
                return false;
             }).attr('target', '_blank').text('{switch_image_resize.L_CLICK_TO_SEE_FULLSIZE}');
             if ($(this).width() > ($('html').attr('dir') != 'rtl' ? $(this).closest('.entry-content').width() - $(this).prev().offset().left + $(this).closest('.entry-content').offset().left : $(this).prev().width() + $(this).prev().offset().left - $(this).closest('.entry-content').offset().left)){
                $(this).prev().find('a.fullsize').attr('href','/viewimage.forum?u=' + encodeURIComponent($(this).attr('src'))).css('display', 'inline-block');
             }
             $(this).width($(this).width() * ( ( {switch_image_resize.IMG_RESIZE_WIDTH} != 0 && ( {switch_image_resize.IMG_RESIZE_HEIGHT} == 0 || $(this).width() / $(this).height() > {switch_image_resize.IMG_RESIZE_WIDTH} / {switch_image_resize.IMG_RESIZE_HEIGHT} ) ) ? {switch_image_resize.IMG_RESIZE_WIDTH} / $(this).width() : {switch_image_resize.IMG_RESIZE_HEIGHT} / $(this).height() ) ).prev().width($(this).width());
          }
       }).css('display', 'inline');
    });
    //]]>
    </script>
    <!-- END switch_image_resize -->

    <script type="text/javascript" src="{JS_DIR}addthis/addthis_widget.js?pub=forumotion"></script>
    avatar
    LilJur
    Forumember


    Male Posts : 212
    Reputation : 8
    Language : xml, css, html, hex, english and dutch

    Solved Re: Show hide profile

    Post by LilJur November 15th 2009, 2:10 pm

    I'll try it

    Try this code:
    Code:
    <script type="text/javascript">
    //<![CDATA[
    var multiquote_img_off = '{JS_MULTIQUOTE_IMG_OFF}', multiquote_img_on = '{JS_MULTIQUOTE_IMG_ON}', _atr = '{JS_DIR}addthis/', _ati = '{PATH_IMG_FA}addthis/'{ADDTHIS_LANG}, addthis_localize = { share_caption: "{L_SHARE_CAPTION}", email: "{L_EMAIL}", email_caption: "{L_EMAIL_CAPTION}", favorites: "{L_SHARE_BOOKMARKS}", print: "{L_PRINT}", more: "{L_MORE}" };
    $(function(){
      _atc.cwait = 0;
      $('.addthis_button').mouseup(function(){
          if ($('#at15s').css('display') == 'block') {
            addthis_close();
            addthis_close();
          }
      });
    });
    //]]>
    </script>

    <!-- BEGIN switch_user_logged_in -->
    <div id="pun-visit" class="clearfix">
      <ul>
          <li>
            <script type="text/javascript">
            //<![CDATA[
            insert_plus_menu_new('f{FORUM_ID}&t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
            //]]>
            </script>
          </li>
          <li><a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=forumotion">{L_SHARE}</a></li>
          <li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
          <li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
          <!-- BEGIN watchtopic -->
          <li>{S_WATCH_TOPIC}</li>
          <!-- END watchtopic -->
      </ul>
      <p>{LOGGED_AS}. {LAST_VISIT_DATE}</p>
    </div>
    <!-- END switch_user_logged_in -->
    <!-- BEGIN switch_user_logged_out -->
    <div id="pun-visit">
      <p>{L_NOT_CONNECTED} {L_LOGIN_REGISTER}</p>
    </div>
    <!-- END switch_user_logged_out -->

    <div class="pun-crumbs noprint">
      <p class="crumbs">
          <a href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}&nbsp;&raquo;&nbsp;
          <!-- google_ad_section_start -->
          <strong><a href="{TOPIC_URL}">{TOPIC_TITLE}</a></strong>
          <!-- google_ad_section_end -->
      </p>
    </div>

    <div class="main paged">
      <div class="paged-head clearfix">
          <!-- BEGIN topicpagination -->
          <p class="paging">{PAGINATION}</p>
          <!-- END topicpagination -->
          <p class="posting">
            <!-- BEGIN switch_user_authpost -->
            <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" class="{POST_IMG_CLASS}" alt="{L_POST_NEW_TOPIC}" /></a>&nbsp;&nbsp;
            <!-- END switch_user_authpost -->

            <!-- BEGIN switch_user_authreply -->
            <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" class="i_reply" alt="{L_POST_REPLY_TOPIC}" /></a>
            <!-- END switch_user_authreply -->
          </p>
      </div>
      {POLL_DISPLAY}
      <div class="main-head clearfix">
          <p class="h2">
            <a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a>&nbsp;<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a>&nbsp;<a href="#bottom">{L_GOTO_DOWN}</a>&nbsp;&nbsp;
            {L_MESSAGE} [{PAGE_NUMBER}]
          </p>
      </div>

      <div class="main-content topic">
          <!-- BEGIN postrow -->
            <!-- BEGIN displayed -->
            <div class="post"{postrow.displayed.THANK_BGCOLOR}>
                <a name="{postrow.displayed.U_POST_ID}"></a>
                <div class="postmain"{postrow.displayed.THANK_BGCOLOR}>
                  <div id="p{postrow.displayed.U_POST_ID}" class="posthead clearfix"{postrow.displayed.THANK_BGCOLOR}>
                      <h2>
                        <strong>{postrow.displayed.COUNT_POSTS}</strong>
                        {postrow.displayed.ICON} <a href="{postrow.displayed.POST_URL}">{postrow.displayed.POST_SUBJECT}</a> {postrow.displayed.POST_DATE_NEW}
                      </h2>
                  </div>

                  <div class="postbody"{postrow.displayed.THANK_BGCOLOR}>
                      <div class="user online">
                        <div class="user-ident">
                            <h4 class="username">{postrow.displayed.POSTER_NAME}</h4>
                            <div class="user-basic-info">
                              {postrow.displayed.POSTER_AVATAR}<br />
                              {postrow.displayed.POSTER_RANK_NEW}{postrow.displayed.RANK_IMAGE}
                            </div>
                        </div>
                        <div class="user-info">
                            {postrow.displayed.ONLINE_IMG}
                            <button1>View Profile</button1>
    <t style="display: none">
    <!-- BEGIN profile_field -->
                            {postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
                            <!-- END profile_field -->{postrow.displayed.PROFILE_IMG} {postrow.displayed.PM_IMG} {postrow.displayed.EMAIL_IMG}<!-- BEGIN contact_field --> {postrow.displayed.contact_field.CONTENT}<!-- END contact_field -->

    </t>
                            {postrow.displayed.POSTER_RPG}
                        </div>
                      </div>

                      <div class="post-entry">
                        <div class="entry-content">
                            <!-- BEGIN switch_vote_active -->
                            <div class="vote gensmall">
                              <!-- BEGIN switch_vote -->
                              <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a></div>
                              <!-- END switch_vote -->

                              <!-- BEGIN switch_bar -->
                              <div class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
                                  <!-- BEGIN switch_vote_plus -->
                                  <div class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;"></div>
                                  <!-- END switch_vote_plus -->

                                  <!-- BEGIN switch_vote_minus -->
                                  <div class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;"></div>
                                  <!-- END switch_vote_minus -->
                              </div>
                              <!-- END switch_bar -->

                              <!-- BEGIN switch_no_bar -->
                              <div title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">----</div>
                              <!-- END switch_no_bar -->

                              <!-- BEGIN switch_vote -->
                              <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a></div>
                              <!-- END switch_vote -->
                            </div>
                            <!-- END switch_vote_active -->
                            <div>
                              <!-- google_ad_section_start -->
                              {postrow.displayed.MESSAGE}
                              <!-- google_ad_section_end -->
                            </div>
                            <p>
                              {postrow.displayed.EDITED_MESSAGE}
                            </p>
                        </div>
                      </div>
                  </div>

                  <!-- BEGIN switch_signature -->
                  <div class="sig-content">
                      {postrow.displayed.SIGNATURE_NEW}
                  </div>
                  <!-- END switch_signature -->

                  <div class="postfoot clearfix">

                      <div class="post-options">
                        {postrow.displayed.THANK_IMG} {postrow.displayed.MULTIQUOTE_IMG} {postrow.displayed.QUOTE_IMG} {postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}
                      </div>
                  </div>
                </div>
            </div>
            <!-- BEGIN first_post_br -->
          </div>
          <hr id="first-post-br" />
          <div class="main-content topic">
            <!-- END first_post_br -->
            <!-- END displayed -->
            <!-- BEGIN hidden -->
                <p class="p-hidden">{postrow.hidden.MESSAGE}</p>
            <!-- END hidden -->
          <!-- END postrow -->
      </div>

      <div class="main-foot clearfix">
          <p class="h2">
            <a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a>&nbsp;<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a>&nbsp;<a href="#top">{L_BACK_TO_TOP}</a>&nbsp;&nbsp;
            {L_MESSAGE} [{PAGE_NUMBER}]
          </p>
          <p class="options">
            <input type="hidden" name="t" value="{TOPIC_ID}" />
            <input type="hidden" name="sid" value="{S_SID}" />
            <!-- BEGIN viewtopic_bottom -->
            {S_TOPIC_ADMIN}
            <!-- END viewtopic_bottom -->
          </p>
      </div>

      <a name="bottomtitle"></a>

      <div class="paged-foot clearfix">
          <!-- BEGIN topicpagination -->
          <p class="paging">{PAGINATION}</p>
          <!-- END topicpagination -->
          <p class="posting">
            <!-- BEGIN switch_user_authpost -->
            <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" class="{POST_IMG_CLASS}" alt="{L_POST_NEW_TOPIC}" /></a>&nbsp;&nbsp;
            <!-- END switch_user_authpost -->

            <!-- BEGIN switch_user_authreply -->
            <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" class="i_reply" alt="{L_POST_REPLY_TOPIC}" /></a>
            <!-- END switch_user_authreply -->
          </p>
      </div>

    </div>

    <div class="pun-crumbs">
      <p class="crumbs">
          <a href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}&nbsp;&raquo;&nbsp;
          <strong><a href="{TOPIC_URL}">{TOPIC_TITLE}</a></strong>
      </p>
    </div>

    <!-- BEGIN switch_user_logged_in -->
    <a name="quickreply"></a>
    {QUICK_REPLY_FORM}
    <!-- END switch_user_logged_in -->

    <div id="pun-info" class="main">
      <div class="main-content">
          <div id="stats">
            <p>{L_TABS_PERMISSIONS} <br />{S_AUTH_LIST}</p>
          </div>
      </div>
    </div>

    <!-- BEGIN switch_image_resize -->
    <script type="text/javascript">
    //<![CDATA[
    $(function(){
      $('.post-entry .entry-content img').not('.signature_div img').css('display','none');
    });
    $(window).load(function(){
        $('.post-entry .entry-content img').not('.signature_div img').each(function(){
          if ( ( $(this).width() > {switch_image_resize.IMG_RESIZE_WIDTH} && {switch_image_resize.IMG_RESIZE_WIDTH} != 0 ) || ( $(this).height() > {switch_image_resize.IMG_RESIZE_HEIGHT} && {switch_image_resize.IMG_RESIZE_HEIGHT} != 0 ) ) {
            $(this).before(document.createElement('div')).prev().click(function(){
                return false;
            }).addClass('resizebox').append(document.createElement('div')).children().addClass('resize_border clearfix').append(document.createElement('div')).children().addClass('resize_content clearfix').append(document.createElement('a')).children().addClass('enlarge').attr('href', '#').text('{switch_image_resize.L_IMAGE_ENLARGE}').click(function(){
                $(this).parent().parent().parent().next().css('display','none').attr('resizeWidth', $(this).parent().parent().parent().next().width()).width('');
                $(this).parent().parent().parent().next().width($(this).parent().parent().parent().next().width() > $(this).closest('.entry-content').width()?'100%':'').css('max-width','100%').css('display','inline');
                $(this).css('display','none').next('a.resize').css('display','inline-block');
                $(this).parent().parent().parent().width($(this).parent().parent().parent().next().width());
                return false;
            }).parent().append(document.createElement('a')).children().next().addClass('resize').attr('href','#').text('{switch_image_resize.L_CLICK_TO_RESIZE}').click(function(){
                $(this).parent().parent().parent().next().width(parseInt($(this).parent().parent().parent().next().attr('resizeWidth'))).removeAttr('resizeWidth');
                $(this).css('display','none').prev('a.enlarge').css('display','inline-block');
                $(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
                return false;
            }).parent().append(document.createElement('div')).children('a.resize').next().addClass('resize_filler').text(' ').parent().append(document.createElement('a')).children('div.resize_filler').next().addClass('fullsize').attr('href','#').click(function(){
                window.open('/viewimage.forum?u=' + encodeURIComponent($(this).parent().parent().parent().next().attr('src')));
                return false;
            }).attr('target', '_blank').text('{switch_image_resize.L_CLICK_TO_SEE_FULLSIZE}');
            if ($(this).width() > ($('html').attr('dir') != 'rtl' ? $(this).closest('.entry-content').width() - $(this).prev().offset().left + $(this).closest('.entry-content').offset().left : $(this).prev().width() + $(this).prev().offset().left - $(this).closest('.entry-content').offset().left)){
                $(this).prev().find('a.fullsize').attr('href','/viewimage.forum?u=' + encodeURIComponent($(this).attr('src'))).css('display', 'inline-block');
            }
            $(this).width($(this).width() * ( ( {switch_image_resize.IMG_RESIZE_WIDTH} != 0 && ( {switch_image_resize.IMG_RESIZE_HEIGHT} == 0 || $(this).width() / $(this).height() > {switch_image_resize.IMG_RESIZE_WIDTH} / {switch_image_resize.IMG_RESIZE_HEIGHT} ) ) ? {switch_image_resize.IMG_RESIZE_WIDTH} / $(this).width() : {switch_image_resize.IMG_RESIZE_HEIGHT} / $(this).height() ) ).prev().width($(this).width());
          }
      }).css('display', 'inline');
    });
    //]]>
    </script>
    <!-- END switch_image_resize -->

    <script type="text/javascript" src="{JS_DIR}addthis/addthis_widget.js?pub=forumotion"></script>
    --kml--
    --kml--
    Forumember


    Male Posts : 456
    Reputation : 1
    Language : english

    Solved Re: Show hide profile

    Post by --kml-- November 15th 2009, 2:39 pm

    This Thread is solved Mr. Green
    Thx Lil-J Mr. Green
    Sanket
    Sanket
    ForumGuru


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

    Solved Re: Show hide profile

    Post by Sanket November 15th 2009, 4:05 pm

    Since this thread appears to be solved, I will lock this thread and mark it as solved.
    Show hide profile 2j4t5a8

    Sanket Smile