Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Extra Profile Fields Page Details »»
Extra Profile Fields Page
Version: 2.1.10, by Wired1 Wired1 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.9 Rating:
Released: 08-06-2006 Last Update: 04-25-2008 Installs: 388
Uses Plugins Template Edits
Code Changes  
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #122  
Old 02-08-2007, 07:51 PM
adwade adwade is offline
 
Join Date: Aug 2006
Location: SouthEast, TN
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wired1 View Post
Read the 3.5.x hack instructions. There's BETA search code in there (which is really just vB's search code w/ one minor change). Search for the new code in 3.6.x (they changed like 1 minor thing in it IIRC), and it should work fine.
OH, this sounds like what I need to do!? But for someone who's not a coder, could you say that one-more-time...a little slower?

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.
Reply With Quote
  #123  
Old 02-19-2007, 03:14 PM
afmarko99's Avatar
afmarko99 afmarko99 is offline
 
Join Date: Jan 2007
Location: Louisiana
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #124  
Old 02-19-2007, 06:58 PM
afmarko99's Avatar
afmarko99 afmarko99 is offline
 
Join Date: Jan 2007
Location: Louisiana
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?

????
Reply With Quote
  #125  
Old 02-19-2007, 10:56 PM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EaglezEye View Post
How would I move it to the right side under: Join Date, Location, Etc.
Example: http://www.thepublicenemy.net/member.php?u=1

What you have said is on the right, is on the left. What do you mean exactly?


Quote:
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.
I don't see a box, which I'm assuming means you've fixed it? I'm assuming you were talking about a box created by a table or cell, or some vBulletin CSS code.
Reply With Quote
  #126  
Old 02-20-2007, 06:12 PM
afmarko99's Avatar
afmarko99 afmarko99 is offline
 
Join Date: Jan 2007
Location: Louisiana
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doh....I meant to post this problem under the posbit hack. I will move the post over.
Reply With Quote
  #127  
Old 02-26-2007, 08:01 AM
imranbaig imranbaig is offline
 
Join Date: Sep 2005
Location: India
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #128  
Old 02-28-2007, 12:26 PM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

un/reinstall it, it's a typo somewhere.
Reply With Quote
  #129  
Old 03-02-2007, 11:16 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
	}
}
Any help would be greatly appreciated!
Reply With Quote
  #130  
Old 03-05-2007, 01:39 PM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedGTiVR6 View Post
Can anyone tell me if this mod added any tables to the DB and if so, what are the names of those tables?
At the top of all hacks it states if tables are added or not, or if any SQL changes have been made.

The answer is NO.


Quote:
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?
NO.
Reply With Quote
  #131  
Old 03-05-2007, 04:06 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow - sorry dood - just looking for a bit of help....perhaps from someone else in the thread.

Sorry!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:49 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.04868 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete