vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Additional Section within Profile and Dropdown within Posts (https://vborg.vbsupport.ru/showthread.php?t=123254)

RedGTiVR6 05-25-2007 01:50 PM

Upgraded to 3.6.7PL1 and I've got a small issue with the formatting on the memberinfo page.

It looks like the following:

http://www.mj-garage.com/pics/specs.JPG

I've added the code to the template, but something isn't right.

Here's my code:

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<style type="text/css">
#additionalinfo_list dd, #membergroups_list dd { margin: 0px 0px $stylevar[cellpadding]px 0px; }
</style>
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
</head>
<body>
$header
$navbar
<!-- main info - avatar, profilepic etc. -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
 <td class="tcat">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
</tr>
<tr>
 <td class="alt2">
  <table cellpadding="0" cellspacing="0" border="0" width="100%">
  <tr>
  <td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" width="100%" colspan="2">
    <if condition="$userinfo['rank'] OR $userinfo['reputationdisplay']">
    <div style="float:$stylevar[right]; padding:4px">
      <if condition="$userinfo['rank']"><div align="center">$userinfo[rank]</div></if>
      <if condition="$userinfo['reputationdisplay']"><div align="center">$userinfo[reputationdisplay]</div></if>
    </div>
    </if>
    <div class="bigusername">$userinfo[musername] $userinfo[onlinestatus]</div>
    <if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
  </td>
  <if condition="$show['profilepic']">
  <td valign="top" align="$stylevar[right]" rowspan="2">
    <img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />
  </td>
  </if>
  </tr>
  <tr valign="top">
  <if condition="$show['avatar']">
    <td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
  <else />
    <td>&nbsp;</td>
  </if>
  <td class="smallfont" valign="bottom" align="$stylevar[right]">
    <if condition="$show['lastactivity']">
    <div>$vbphrase[last_activity]: $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span>&nbsp;</div>
    </if>
    <if condition="$show['currentlocation']">
    <div>$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time]&nbsp;</div>
    </if>
  </td>
  </tr>
  </table>
 </td>
</tr>
</table>
<!-- / main info - avatar, profilepic etc. -->
$template_hook[memberinfo_pos1]
<!-- button row -->
<if condition="$show['profilelinks']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
 <if condition="$userinfo['showvcard']">
  <td class="vbmenu_control"><a href="member.php?$session[sessionurl]do=vcard&amp;u=$userinfo[userid]" rel="nofollow">$vbphrase[download_vcard]</a></td>
 </if>
 <if condition="$show['member']">
 <td class="vbmenu_control">
  <if condition="$show['addbuddylist']">
  <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a>
  <else />
  <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_buddylist]</phrase></a>
  </if>
 </td>
 <td class="vbmenu_control">
  <if condition="$show['addignorelist']">
  <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a>
  <else />
  <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a>
  </if>
 </td>
 </if>
 <if condition="can_moderate()">
  <td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[user_options]</a></td>
 </if>
 <if condition="$show['giveinfraction']">
    <td class="vbmenu_control"><a href="infraction.php?$session[sessionurl]do=report&amp;u=$userinfo[userid]">$vbphrase[give_infraction]</a></td>
 </if>
</tr>
</table>
</if>
<!-- / button row -->
<br />
$template_hook[memberinfo_pos2]
<if condition="$show['infractions']">
<!-- infractions row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
 <td class="tcat" colspan="$colspan"><span style="float:$stylevar[right]" class="smallfont"><phrase 1="$userinfo[ipoints]">$vbphrase[x_points_total]</phrase>&nbsp; &nbsp;</span>$vbphrase[infractions]</td>
</tr>
<tr>
  <td class="thead">&nbsp;</td>
  <td class="thead">$vbphrase[post]</td>
 <td class="thead">$vbphrase[date]</td>
 <td class="thead">$vbphrase[expires]</td>
 <td class="thead">$vbphrase[points]</td>
 <td class="thead">$vbphrase[reason]</td>
 <td class="thead" nowrap="nowrap">$vbphrase[posted_by]</td>
 <if condition="$show['reverse']"><td class="thead">$vbphrase[details]</td></if>
</tr>
$infractionbits
</table>
<if condition="$pagenav">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px">
<tr valign="bottom">
 <td align="$stylevar[right]">$pagenav</td>
</tr>
</table>
</if>
<!-- / infractions row -->
<br />
</if>
$template_hook[memberinfo_pos3]
<if condition="$show['signature']">
<!-- signature row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
 <td class="thead">$vbphrase[signature]</td>
</tr>
<tr>
 <td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td>
</tr>
</table>
<!-- / signature row -->
<br />
</if>
$template_hook[memberinfo_pos4]
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
 <td class="tcat" width="50%">$vbphrase[forum_info]</td>
 <td class="tcat" width="50%">$vbphrase[contact_info]</td>
</tr>
<tr valign="top">
 <td class="panelsurround" align="center">
 <div class="panel">
  <div align="$stylevar[left]">
  <div class="fieldset">
    <div style="padding:$stylevar[formspacer]px">
    $vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
    </div>
  </div>
  <fieldset class="fieldset">
    <legend>$vbphrase[posts]</legend>
    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
    <tr>
    <td>
      $vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
    </td>
    </tr>
    <if condition="$vboptions['profilelastpost']">
    <tr>
    <td>
      $vbphrase[last_post]:<br />
      <a href="$userinfo[lastposturl]">$userinfo[lastposttitle]</a><br />
      $userinfo[lastpostdate] <span class="time">$userinfo[lastposttime]</span>
    </td>
    </tr>
    </if>
    <tr>
    <td><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td>
    </tr>
    <tr>
    <td><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]&amp;starteronly=1" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
    </tr>
    </table>
  </fieldset>
  $dmemberinfo
  <if condition="$vboptions['usereferrer']">
  <div class="fieldset">
    <div style="padding:$stylevar[formspacer]px">
    $vbphrase[referrals]: <strong>$referrals</strong>
    </div>
  </div>
  </if>
    <if condition="$vboptions[vbclassified_active] == '1'">
  <fieldset class="smallfont"><legend>$vbphrase[vbclassified]</legend>
  <div><b>$vbphrase[vbclassified_feedscore]:</b> $userinfo[vbclassified_score]</div>
  <div><b>$vbphrase[vbclassified_posfeed]:</b> $userinfo[vbclassified_pcnt]</div>
  </fieldset>
  </if>
  <if condition="$show['usernotes']">
  <div class="fieldset">
    <div style="padding:$stylevar[formspacer]px">
    $vbphrase[user_notes]:
    <if condition="$show['usernoteview']">
      <strong>$usernote[total]</strong> [<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[view]</a>]
    </if>
    <if condition="$show['usernotepost']">
      [<a href="usernote.php?$session[sessionurl]do=newnote&amp;u=$userinfo[userid]">$vbphrase[post_user_note]</a>]
    </if>
    <if condition="$show['usernoteview']">
      <br />($vbphrase[last_note]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
    </if>
    </div>
  </div>
  </if>
      $template_hook[memberinfo_foruminfo]
  </div>
 </div>
 </td>
 <td class="panelsurround" align="center">
 <div class="panel">
  <div align="$stylevar[left]">
  <div class="fieldset">
    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
    <if condition="!$show['contactlinks']">
    <tr>
    <td><strong><phrase 1="$userinfo[username]">$vbphrase[x_has_no_contact_info]</phrase></strong></td>
    </tr>
    </if>
    <if condition="$show['homepage']">
    <tr>
    <td>
      $vbphrase[home_page]:<br />
      <a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>
    </td>
    </tr>
    </if>
    <if condition="$show['email']">
    <tr>
    <td>
      $vbphrase[email]:<br />
      <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_message_via_email_to_x]</phrase></a>
    </td>
    </tr>
    </if>
    <if condition="$show['pm']">
    <tr>
    <td>
      $vbphrase[private_message]:<br />
      <a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
    </td>
    </tr>
    </if>
    </table>
  </div>
  <if condition="$show['hasimicons']">
  <fieldset class="fieldset">
    <legend>$vbphrase[instant_messaging]</legend>
    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
    <if condition="$show['textimicons']">
    <if condition="$userinfo['showicq']">
    <tr>
      <td>$vbphrase[icq]</td>
      <td>$userinfo[icq]</td>
    </tr>
    </if>
    <if condition="$userinfo['showaim']">
    <tr>
      <td>$vbphrase[aim]</td>
      <td>$userinfo[aim]</td>
    </tr>
    </if>
    <if condition="$userinfo['showmsn']">
    <tr>
      <td>$vbphrase[msn]</td>
      <td>$userinfo[msn]</td>
    </tr>
    </if>
    <if condition="$userinfo['showyahoo']">
    <tr>
      <td>$vbphrase[yahoo]</td>
      <td>$userinfo[yahoo]</td>
    </tr>
    </if>
    <if condition="$userinfo['skype']">
    <tr>
      <td>$vbphrase[skype]</td>
      <td>$userinfo[skype]</td>
    </tr>
    </if>
    <else />
    <if condition="$userinfo['showicq']">
    <tr>
      <td>$userinfo[icqicon]</td>
      <td><a href="#" dir="ltr" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a></td>
    </tr>
    </if>
    <if condition="$userinfo['showaim']">
    <tr>
      <td>$userinfo[aimicon]</td>
      <td><a href="#" dir="ltr" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a></td>
    </tr>
    </if>
    <if condition="$userinfo['showmsn']">
    <tr>
      <td>$userinfo[msnicon]</td>
      <td><a href="#" dir="ltr" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a></td>
    </tr>
    </if>
    <if condition="$userinfo['showyahoo']">
    <tr>
      <td>$userinfo[yahooicon]</td>
      <td><a href="#" dir="ltr" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a></td>
    </tr>
    </if>
    <if condition="$userinfo['showskype']">
    <tr>
      <td>$userinfo[skypeicon]</td>
      <td><a href="#" dir="ltr" onclick="imwindow('skype', '$userinfo[userid]', 400, 285); return false;">$userinfo[skype]</a></td>
    </tr>
    </if>
    </if>
    $template_hook[memberinfo_iminfo]
    </table>
  </fieldset>
  </if>
  $template_hook[memberinfo_contactinfo]
  </div>
 </div>
 </td>
</tr>
<tr>
 <td class="tcat" width="50%">$vbphrase[additional_information]</td>
 <td class="tcat" width="50%">$vbphrase[extra_options]</td>
</tr>
<tr valign="top">
 <td class="panelsurround" align="center">
 <div class="panel">
  <div align="$stylevar[left]">
  <if condition="$show['extrainfo']">
                <dl id="additionalinfo_list">
    <if condition="$show['birthday']">
    <dt class="smallfont"><strong>$vbphrase[birth_date]</strong>:</dt>
                    <dd class="smallfont">$userinfo[birthday]</dd>
    </if>
    <if condition="$show['age']">
  <dt class="smallfont"><strong>$vbphrase[age]</strong>:</dt>
                    <dd class="smallfont">$userinfo[age]</dd>
    </if>
    $customfields
    </dl>
  <else />
    <em>$vbphrase[n_a]</em>
  </if>
  </div>
  </div>
 </div>
 </td>
 <td class="panelsurround" align="center">
 <div class="panel">
  <div align="$stylevar[left]">
  <div class="fieldset">
    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
    <tr>
    <if condition="$show['extrainfo']">
    <td></td>
    <else />
    <td><strong><em>$vbphrase[n_a]</em></td>
    </if>
    </tr>
    $customfields2
    </table>
  </div>
 </div>
 </td>
</table>
<br />
$dmemberfiles
$footer
</body>
</html>

Any help?

RedGTiVR6 05-29-2007 05:23 PM

Does anyone happen to have any insight?

I'm sure I just need to write the code correctly. Problem is, I'm not sure how to do that as I don't know code very well at all.

DataVampire 05-30-2007 08:29 PM

hi guys i got a majour prob with this hack i cannot get it to work, i feel it might have something to do with two additial programs installed. vportal and photoplog, anybody else have any isues with this running what im running, i have installed it to the letter.
And it wont show up wher eit is supposed to show up, the plugin is showing up in admin cp under manage products but thats it.
im running hte latest vbull/
Help please

Wired1 05-31-2007 10:54 PM

Just upgraded to 3.6.7 myself and skimming the code it looks like they have plugin locations now, so I'm going to upgrade the code for it this weekend. I'll also look into the normal member info issue, but off the top of my head I don't see the correlation as it's a different cell, but I do see it on my own forums, so we'll see.

DataVampire 05-31-2007 11:33 PM

Quote:

Originally Posted by Wired1 (Post 1258640)
Just upgraded to 3.6.7 myself and skimming the code it looks like they have plugin locations now, so I'm going to upgrade the code for it this weekend. I'll also look into the normal member info issue, but off the top of my head I don't see the correlation as it's a different cell, but I do see it on my own forums, so we'll see.

Ok thank you for the update, i look forward to the update

4x4 Mecca 06-06-2007 02:13 AM

I've added new skins, and even though I've made the edits to postbit, I can't see the drop down in there. I've reinstalled the product too. The information is still in the fields too. Any idea where I should start looking?

4x4 Mecca 06-06-2007 03:34 PM

Never Mind, the template cache updated.

fox3nova 06-11-2007 08:15 AM

in the instructions:

Code:

vB AdminCP -> Styles & Templates -> Style Manager -> (Select Style) -> Member Info Templates -> MEMBERINFO

FIND:

                        <div class="fieldset">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <if condition="$show['membergroups']">
                                        <td></td>
                                        <else />
                                        <td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></td>
                                        </if>
                                </tr>
                                $membergroupbits
                                </table>
                        </div>

REPLACE WITH:

                        <div class="fieldset">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <if condition="$show['extrainfo']">
                                        <td></td>
                                        <else />
                                        <td><strong><em>$vbphrase[n_a]</em></td>
                                        </if>
                                </tr>
                                $customfields2
                                </table>
                        </div>

I don't understand why use $customfields2 ?
I cant find the $customfields2 in any php files, my MEMBERINFO can't show the info about I created in Extra Profile Fields Page !

calord 06-12-2007 06:38 PM

As with post #118 above, that piece of code doesn't exist in my template. Where should I place it?

calord 06-12-2007 06:43 PM

double post


All times are GMT. The time now is 01:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01266 seconds
  • Memory Usage 1,841KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete