The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Additional Section within Profile and Dropdown within Posts Details »» | |||||||||||||||||||||||||||
Additional Section within Profile and Dropdown within Posts
Developer Last Online: Dec 2021
NOTE: After checking out the vBulletin 3.7 First Look thread, which contains significant changes to the Member Profile page, it is clear that this mod as-is will probably not work properly when it comes to displaying the Extra Profile Info on that page. As soon as an official 3.7 comes out, I'll start working on the changes.
The 3.5.x version of this hack can be found here. This hack builds upon my Extra Profile Fields Page hack. This template mod lets you take the extra fields from that hack and places them within a dropdown that sits below the user's title within each post, as well as replaces the Group Memberships area with a listing of only these specs. The EPFP hack is basically the entry form for the data that's manipulated in this hack. Please check out the pics at the EPFP hack link to get the full idea. In my case, it is used for PC specs (and as you will see the instructions are tailored towards this), however it can be easily used for parts or specifications of almost anything (car parts for example). An example is shown here: http://www.houseofhelp.com/forums/sh...ad.php?t=39826 Example of user profile with specs: http://www.houseofhelp.com/forums/member.php?userid=15 # of plugin hooks: 1 # of php page edits: 1 (just 1 line to add the custom hook line into member.php) # of template edits: 3 # of phrase edits: 1 Any suggestions are appreciated. Don't forget to hit INSTALL! Support will only be given to people who have hit install. Also, please post where you've installed this, as I'd like to see how people are using it. Or if guests can't see the effects, then please post a pic. Show Your Support
|
Comments |
#152
|
|||
|
|||
Hi,
I put the code into the postbit_legacy template, but it still doesnt show the dropdown, so I set the forums to use the new postbit, and it still doesnt show. Here's what I have for postbit templates in the admincp, and have tried it in both of the ones that are highlighted red. Any ideas? Thanks |
#153
|
||||
|
||||
Check the dropdown code for <if>. Most likely you left it in, and that particular field has no data in it, so the dropdown doesn't show up.
|
#154
|
|||
|
|||
Thanks
I've just searched in both the postbit templates for <if> and it comes up with "not found". I'm cursed aren't I? |
#155
|
||||
|
||||
I had this hack installed prior to the 3.6.8 update and everything was fine. I performed the update and re-installed the hack. THe dropdown in the post work fine but I can't get the Computer Specs to show up in user profiles anymore.
In the instructions it says: Code:
FIND: <if condition="$show['membergroups']"> <dl id="membergroups_list" class="smallfont"> $membergroupbits </dl> <else /> <div class="smallfont"><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></div> </if> REPLACE WITH: <if condition="$show['extrainfo']"> <dl id="additionalinfo_list"> $customfields2 </dl> <else /> <div class="smallfont"><strong><phrase 1="$userinfo[username]">$vbphrase[n_a]</phrase></strong></div> </if> |
#156
|
||||
|
||||
Quote:
Code:
FIND: <!-- / post $post[postid] popup menu --> After it post: <!-- post specs_menu --> <div class="vbmenu_popup" id="specs_$post[postid]_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">$post[username]'s PC Specs</td> </tr> <tr><td class="vbmenu_option">Motherboard: $post[field5]</td></tr> <tr><td class="vbmenu_option">Processor: $post[field6]</td></tr> </table> |
#157
|
||||
|
||||
Quote:
|
#158
|
|||
|
|||
Quote:
I have replaced the old code from the instructions with that new code above, and still dont have the dropdown. |
#159
|
||||
|
||||
Let's take a step back. In the User CP, in the Edit Extra Options page, are there any fields there?
|
#160
|
|||
|
|||
I appreciate the help
Yep, I have those. |
#161
|
||||
|
||||
Quote:
I looked at the version I had from 3.6.4. It doesn't have the coding I need either. Cant' you just point out where I need to put the code. Below is my Memberinfo template. Thanks Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <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> </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> </div> </if> <if condition="$show['currentlocation']"> <div>$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time] </div> </if> </td> </tr> </table> </td> </tr> </table> <!-- / main info - avatar, profilepic etc. --> <!-- 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&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&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a> <else /> <a href="profile.php?$session[sessionurl]do=removelist&userlist=buddy&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&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a> <else /> <a href="profile.php?$session[sessionurl]do=removelist&userlist=ignore&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&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&u=$userinfo[userid]">$vbphrase[give_infraction]</a></td> </if> </tr> </table> </if> <!-- / button row --> <br /> <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> </span>$vbphrase[infractions]</td> </tr> <tr> <td class="thead" colspan="2"> $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> <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> <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&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=process&showposts=0&starteronly=1&exactname=1&searchuser=$userinfo[urlusername]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td> </tr> </table> </fieldset> <if condition="$vboptions['usereferrer']"> <div class="fieldset"> <div style="padding:$stylevar[formspacer]px"> $vbphrase[referrals]: <strong>$referrals</strong> </div> </div> </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&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> <!-- [START HACK='Yet Another Awards System hack' AUTHOR='HacNho'] --> <if condition="$show['userawards']"> <fieldset class="fieldset"> <legend>$vbphrase[award_showcase]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td align="center"> $userawards </td> </tr> </table> </fieldset> </if> <!-- [END HACK='Yet Another Awards System hack' AUTHOR='HacNho'] --> </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&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&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> </table> </fieldset> </if> </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]"> <div class="fieldset"> <if condition="$show['extrainfo']"> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <if condition="$show['birthday']"> <tr> <td> <strong>$vbphrase[birth_date]</strong>:<br /> $userinfo[birthday] </td> </tr> </if> <if condition="$show['age']"> <tr> <td> <strong>$vbphrase[age]</strong>:<br /> $userinfo[age] </td> </tr> </if> $customfields <if condition="!empty($userinfo[mood])"> <strong>$vbphrase[my_mood]:</strong> <br /> <img src="images/mood/$userinfo[mood].gif" border="0" /> </if> </table> <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> </div> </td> </tr> <!-- XFire Hack --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" width="100%">xFire Profile Info</td> </tr> <tr valign="top"> <td class="panelsurround" align="center"> <div class="panel"> <div align="$stylevar[center]"> <div class="fieldset"> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <td><strong>$vbphrase[x_xfire_info]</phrase></strong></td> <if condition="$post['field29']"> <a href="http://profile.xfire.com/$post[field29]" rel="nofollow"><img src=http://miniprofile.xfire.com/bg/$post[field30]/type/0/$post[field29].png width=440 height=111 border=0></a> <br> <p align="center"><a href="xfire:add_friend?user=$post[field29]" rel="nofollow"><b>Add to xFire Friends List</b></a></p> </if> </if> </table> </div> </div> </td> <!-- / End XFire Hack --> </table> <!-- [START HACK='Yet Another Awards System hack' AUTHOR='HacNho'] --> $awards_showcase <!-- [END HACK='Yet Another Awards System hack' AUTHOR='HacNho'] --> $footer </body> </html> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|