The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Extra Profile Fields Page Details »» | |||||||||||||||||||||||||
IMPORTANT INSTRUCTIONS for those upgrading to vB 3.6.10!!!
https://vborg.vbsupport.ru/showpost....&postcount=269 EVERYONE: PLEASE BE CRYSTAL CLEAR IN WHAT ISSUES YOU ARE HAVING WITH THIS MOD IF YOU ARE USING IT IN 3.7.x! A 3.7.x version is already in the works. ------------------------------------------------------------ You can find the 3.5.x version of this hack here. This hack will add an extra page to the User CP. This area can be used for extra profile fields that for one reason or another you would like to split from the main list. Personally, I use this page for PC specs, but it can also be used for other specs as well (e.g. cars). I have the specs in a dropdown list under the user title in each user's post, as well as in their profile page, but that's another hack You'll see a link to it under Add-Ons to the right. Here's some examples of how I use this hack (with the Add-On hack, Additional Section within Profile and Dropdown within Posts): http://www.houseofhelp.com/forums/sh...ad.php?t=39826 http://www.houseofhelp.com/forums/member.php?u=15 # of plugin hooks: 1 # of php page edits: 3 # of new templates: 1 # of template edits: 1 # of new phrases: 2 To install, upload the product and then make the manual edits as listed in the text file. Don't forget to hit INSTALL! Support will only be given to people who have hit install. Show Your Support
|
Comments |
#122
|
|||
|
|||
Quote:
Are you saying to find/copy the BETA code out of the 3.5.x version into the 3.6.x version -or- to locate the 'similar code' in the 3.6.x version and then tidy it up somehow to get it to work properly? If the latter, the 'somehow' part would stump me. Has anyone installed this MOD on vB3.6x that could copy/paste their modified memberlist.php file into a CODE box perhaps? I LOVE the idea of this MOD, but at present it's broken on my system. |
#123
|
||||
|
||||
Ok I installed this hack but like others I am having problems. I can go to my User CP and click on (Computer Specs) and it will bring me to the extra page. From there the only thing that is displayed is 'Save Changes' and 'Reset Fields'. Where do I go to add fields?
Did I miss something in the editing? The help file for this mod doesn't tell you how to add fields? The add-on does show you how to make certain fields display but I can't figure out this mod first. |
#124
|
||||
|
||||
Ok so I have this mod working on my forum and I will say that I like it a lot.
Thank you. I have two questions. How would I move it to the right side under: Join Date, Location, Etc. Also I am trying to figure out how to remove the box placed around 'EaglezEye's Computer Specs'. I want it to just display the text. Can anyone help me? ???? |
#125
|
||||
|
||||
Quote:
What you have said is on the right, is on the left. What do you mean exactly? Quote:
|
#126
|
||||
|
||||
Doh....I meant to post this problem under the posbit hack. I will move the post over.
|
#127
|
|||
|
|||
Hey man nice hack.
I tried installing this got an Error. Did everything followed all steps, getting a blank page for user profile fields >> User Profile Field Manager ?? any suggestions? |
#128
|
||||
|
||||
un/reinstall it, it's a typo somewhere.
|
#129
|
|||
|
|||
Can anyone tell me if this mod added any tables to the DB and if so, what are the names of those tables?
Perhaps I should ask for some assistance on this. I have added Zoints to our web site. One of the blocks that's avaliable out there will take the additional fields that are added to the normal profile (for lack of a better term) and port them over to your Zoints profile page. It calls on table "cprofilefield" for this information. I'm gathering that this mod uses the same table? I'm trying to figure out how to tell this block to look at the fields for this mod rather than the fields that are under the normal profile area. I'm sure it's super easy (or maybe I'm just that ignorant), but I can't figure it out. I've attached the code below. Code:
# vBulletin Custom Profile Fields # 1.0 # Soup (soup@zoints.com) # http://dev.zoints.com/ # # This block lets you display your custom profile fields # from the old vBulletin profile class user_vbulletin_custom_profile_fields extends z_module { function contents() { $vbulletin = $this->_zoints->external->vbulletin; $languageid = intval($vbulletin->userinfo['languageid']); # get custom phrases used in this block $vbphrase = array(); $phrases = $vbulletin->db->query_read(" SELECT * FROM " . TABLE_PREFIX . "phrase WHERE fieldname = 'cprofilefield' AND (languageid = $languageid OR languageid = -1) ORDER BY languageid DESC "); while ($phrase = $vbulletin->db->fetch_array($phrases)) { $vbphrase[$phrase['varname']] = $phrase['text']; } unset($phrase); $vbulletin->db->free_result($phrases); # get data from usertextfield for this user $extended_info = $vbulletin->db->query_first(" SELECT * FROM " . TABLE_PREFIX . "userfield WHERE userid = " . $this->zuser . " "); $profilefields = $vbulletin->db->query_read(" SELECT profilefieldid, required, type, data, def, height FROM " . TABLE_PREFIX . "profilefield WHERE form = 0 AND hidden = 0 ORDER BY displayorder "); $search = array( '#(\r\n|\n|\r)#', '#(<br />){3,}#', // Replace 3 or more <br /> with two <br /> ); $replace = array( '<br />', '<br /><br />', ); $customfields = ''; while ($profilefield = $vbulletin->db->fetch_array($profilefields)) { $profilefieldname = "field$profilefield[profilefieldid]"; $profilefield['title'] = $vbphrase[$profilefieldname . '_title']; if ($profilefield['type'] == 'checkbox' OR $profilefield['type'] == 'select_multiple') { $data = unserialize($profilefield['data']); foreach ($data AS $key => $val) { if ($extended_info["$profilefieldname"] & pow(2, $key)) { $profilefield['value'] .= iif($profilefield['value'], ', ') . $val; } } } else if ($profilefield['type'] == 'textarea') { $profilefield['value'] = preg_replace($search, $replace, trim($extended_info["$profilefieldname"])); } else { $profilefield['value'] = $extended_info["$profilefieldname"]; } if ($profilefield['value'] != '') { $customfields .= '<div class="' . $this->style['phead'] . '">' . $profilefield['title'] . '</div>'; $customfields .= '<div class="' . $this->style['pmain1'] . '">' . $profilefield['value'] . '</div>'; } } $vbulletin->db->free_result($profilefields); return $customfields; } } |
#130
|
||||
|
||||
Quote:
The answer is NO. Quote:
|
#131
|
|||
|
|||
wow - sorry dood - just looking for a bit of help....perhaps from someone else in the thread.
Sorry! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|