PDA

View Full Version : Extra Profile Fields Page


Zachery
01-03-2004, 10:00 PM
Extra Profile Fields Page Version 1.2
1.1 updated version, minor fix for searching in memberlist.php
1.2 fixed for RC2 the current instructions will not work with anything lowerrequested by
Caszi @ http://www.vbulletin.nl/community/showthread.php?t=1190
(http://www.vbulletin.nl/community/showthread.php?t=1499)

Screen Shots
(http://www.vbulletin.nl/community/attachment.php?attachmentid=715)
update2.gif is the optional part of the hack :)

Description
Adds an Extra Page for you to Define Profile Fields :D

install time~ 5-10 min

Files to Edit 4
Tempaltes to edit/add 2

Enjoy ^^

deathemperor
01-04-2004, 12:57 AM
you should attach screenshot here, no one can see those in vb.nl if they dont have account.

Link14716
01-04-2004, 02:00 AM
Not to mention you copied disfigured URLs. ;)

the_sisko
01-04-2004, 11:27 AM
I'm also interested in this hack, but don't want to sign up on your site just to see the screenshot.

Cassidy
01-04-2004, 11:17 PM
Whe thank you for releasing this here XD you still gave me credit for requesting *Sniffs*

Anyway i'll get some screenshots up of it working on my forums. It's really helpfull ^^;

Zachery
01-05-2004, 04:15 PM
you did ;D its in the install

#Idea: Caszi

i will get updated screens posted here, sometimes i forget about vbnl restriction

Zachery
01-05-2004, 05:49 PM
all updated, screens too

corsacrazy
01-06-2004, 12:22 PM
possible to be able to upload images to that w00t page? that would be cool

Zachery
01-06-2004, 12:23 PM
not at this time, however you can have them point to a url and then include it in your own coding

corsacrazy
01-06-2004, 12:31 PM
fair enough, i just saw this as a great basis for the hack i requested
https://vborg.vbsupport.ru/showthread.php?t=59581
and with image attachments wood b perfect :) nice werk

Zachery
01-06-2004, 12:36 PM
i can take a look into it, however i feel it would be a hole nother hack more than anything else >.< and im sure it would be rather large of a hack @ that

Wired1
01-09-2004, 02:55 AM
If I'm reading that 3rd screen right, then you can add a variable to the user, but you can set it so that the member won't know it's there, it won't show up on their profile, and there's no option for them to edit it anywhere in their cp?

Zachery
01-09-2004, 04:20 AM
If I'm reading that 3rd screen right, then you can add a variable to the user, but you can set it so that the member won't know it's there, it won't show up on their profile, and there's no option for them to edit it anywhere in their cp?
no thats what the edit to usercp_shell does ;)

schuelerd
01-10-2004, 02:43 PM
I would like to add fields like you are doing here but when they show up, allow the USER to decide if the fields are publicly viewable or not....this is for an alumni site and they may not want to share certain info....anyone done anything like this?

gmarik
01-10-2004, 03:06 PM
This one feels food.
Agree with "schuelerd's" post.

Zachery
01-10-2004, 04:39 PM
I would like to add fields like you are doing here but when they show up, allow the USER to decide if the fields are publicly viewable or not....this is for an alumni site and they may not want to share certain info....anyone done anything like this?
well you can add an extra profile feild to allow them to share or not share info, and you can have it set not to be searchable and not to show on their profile page.

eXtremeTim
01-15-2004, 09:16 PM
BIG PROBLEM

If you update the options page for vb3 all your options for the second options page are reset to defualt. Any ideas on how to fix this?

Zachery
01-15-2004, 11:48 PM
BIG PROBLEM

If you update the options page for vb3 all your options for the second options page are reset to defualt. Any ideas on how to fix this?
i never personally exprirend this problem, but i will look into it

???`S?LV?R???`
02-01-2004, 10:25 PM
Does This Work Fine On VB3 RC3?

Zachery
02-01-2004, 10:59 PM
i dont see why it wouldnt :) it is working on RC2 and i dont think there was too much more, its sorta stand alone. as in it shoudl always work :D

NuclioN
02-02-2004, 12:28 AM
With all respect but...what is the function of this hack? I tried to understand it but i can't. Can someone explain it? :)

Zachery
02-02-2004, 12:29 AM
It gives you an extra page to display uuser profile feilds :)

chapsrulez
03-27-2004, 03:29 PM
Will this hack give me the option to add a new custom user filed, which is NON editable by the user, and every time a new user signs up, add a default value in the database?

I have tried to do this but no success.

cheers.

AlexanderT
03-27-2004, 11:08 PM
That is a nice hack, exactly what I was looking for. Was tired of adding all custom profiles under "Miscellaneous Options". Will add your hack soon!

sjau
04-02-2004, 12:55 PM
Could you use put into the install instructions where above or below to add code?
I'm not sure if I have changed my profile.php.

Here are my lines 2415-2120

$attachsize = ceil($attachsum / $permissions['attachlimit'] * 100);
$totalsize = 100 - $attachsize;
}

$attachlimit = vb_number_format($permissions['attachlimit'], 1, true);
}


Is that the right place to add?

AlexanderT
04-06-2004, 03:55 PM
Hack (1.1 / 1.2?) needs 2 fixes (one bug mentioned by eXtremeTim). Thanks to Zachery for this nice hack :P
Edit: FIX FIXED :)

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
FIX 1 (no more option resets)

- Open file includes/functions_user.php

Find:
-----
// check extra profile fields
$profilefields = $DB_site->query("
SELECT profilefieldid,required,title,size,maxlength,type, data,optional, regex
FROM " . TABLE_PREFIX . "profilefield
WHERE editable = 1
AND form " . iif($formtype, '>= 1', '= 0'). "
");

REPLACE with:
-------------
// vB currently only uses $formtype=0(profile form 0) or $formtype=1(all options (form 1 to 5))
if ($formtype >= 1 and $formtype <=5) {
$typestart = 1;
$typeend = 5;
}
// formtype is either 0(profile) or our extra page
else $typestart = $typeend = $formtype;

// check extra profile fields
$profilefields = $DB_site->query("
SELECT profilefieldid,required,title,size,maxlength,type, data,optional, regex
FROM " . TABLE_PREFIX . "profilefield
WHERE editable = 1
AND (form >= $typestart)
AND (form <= $typeend)
");

- Open file profile.php

Find:
----
if ($_POST['do'] == 'updateextra')
{
$userfields = verify_profilefields(1);

REPLACE with:
-------------
if ($_POST['do'] == 'updateextra')
{
$userfields = verify_profilefields(6);

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
FIX 2 (Cache templates)

- Open file profile.php

Find:
-----
'removelist' => array(
'modifylist_removeuser',
),

BELOW it add:
-------------
'extra' => array(
'page',
'modifyoptions_timezone',
'userfield_checkbox_option',
'userfield_optional_input',
'userfield_radio',
'userfield_radio_option',
'userfield_select',
'userfield_select_option',
'userfield_select_multiple',
'userfield_textarea',
'userfield_textbox',
),

Zachery
04-06-2004, 04:13 PM
There is still a problem when a user submits an empty field (that field is not saved then). Must think of a solution...
Sorry, i havent updated this as of late, no one has really shown any intrest :) ill make the updates to my code.

AlexanderT
04-07-2004, 06:28 AM
Zachery, I fixed my fix. Your hack works great now.

Thanks again!

Zachery
04-07-2004, 04:50 PM
so your code is all good now?

If so i will patch this with my original instructions

sjau
04-08-2004, 07:30 AM
Can this hack be modified, so that only certain user(groups) get access / can fill in those extra profile fileds?

AlexanderT
04-08-2004, 03:14 PM
so your code is all good now?

If so i will patch this with my original instructions
Yes it works well now. I am using your hack with the fix for my upcoming site.

Greets
Alex

AlexanderT
04-08-2004, 03:20 PM
Can this hack be modified, so that only certain user(groups) get access / can fill in those extra profile fileds?

I guess so... all you have to add the following changes to USERCP_SHELL instead of the ones mentioned in the hack description:


<if condition="$bbuserinfo['usergroupid'] == XX">
<tr>
<td class="$navclass[extra]" style="white-space:nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=extra">Extra Info</a></td>
</tr>
</if>

Where XX is the usergroup you want to allow access.

Note that this is not fool-proof. A user who KNOWS that there is such an extra field section and who knows the url can access it directly. In this case, I guess adding some php code would do the trick.

sjau
04-08-2004, 06:16 PM
Thx for that alexander,

I'll have a further go then myself.

I'm setting up vB for my fraternity. so far we've used a private Lotus Notes R5 DB for internal affairs, however I can't give access to our alumni anymore and I would like to have some sort of "address tool" that I can associate with vB users... I think those extra fields will do the trick.

sjau

raxafarian
04-10-2004, 12:07 AM
Could you use put into the install instructions where above or below to add code?
I'm not sure if I have changed my profile.php.

Here are my lines 2415-2120

$attachsize = ceil($attachsum / $permissions['attachlimit'] * 100);
$totalsize = 100 - $attachsize;
}

$attachlimit = vb_number_format($permissions['attachlimit'], 1, true);
}


Is that the right place to add?
yea...profile.php has changed...

Can somebody update where this needs to be placed? I'm trying to find my copy of rc1 to try and figure it out...

AlexanderT
04-10-2004, 12:47 AM
it is not really so important where you put the code... you can for instance put the hack code ABOVE the following original code:
// ############################### List of attachments for current user ################
if ($_REQUEST['do'] == 'editattachments')

raxafarian
04-10-2004, 05:33 PM
it is not really so important where you put the code... you can for instance put the hack code ABOVE the following original code:
// ############################### List of attachments for current user ################
if ($_REQUEST['do'] == 'editattachments')
thanks...got it installed..

but I changed something trying to change some of the displayed text and now I no longer have the extra options appear in the admincp when using the profile field manager. The Extra fields are still in the usercp and if I add a new profile field, I can select the other: extra, and it appears in the usercp, but not in the admin profile manager. I've checked the profilefield.php file but I must be missing something

thanks

AlexanderT
04-10-2004, 07:13 PM
yes i suggest you go over Zachery's hack instruction again. There shouldn't be any problem with admincp and the hack if you follow the instruction correctly.

Sketch
04-13-2004, 08:48 PM
Out of curiosity, how would I refer to the custom field in the postbit?

Zachery
04-13-2004, 08:49 PM
Same way you do any other field in the postbit

$post[fieldX]

Sketch
04-13-2004, 08:52 PM
yeah but is it referred to as fieldx or is it referred to by name (in my case, blog)? Bear with me, it's been about 8 months since I did any kind of extensive work with vB and vb3 is quite different, you know? ;)

AlexanderT
04-14-2004, 05:37 AM
Refer to it as $post[fieldX],

wheread X is the number displayed in your /admincp/profilefield.php?do=modify User Profile AdminCP.

Sketch
04-14-2004, 09:19 AM
Okay. Very good. Thanks.

SVTBlackLight01
04-20-2004, 05:15 AM
Quick question about a possible add-on to this feature. How can I get it to e-mail the Admin when this form is submitted?

GregorS
04-25-2004, 01:57 PM
Hi!

Sorry for the dummyquestion, but work this mod also with the vB3 Gold (i use v3.0.1) and what changes is necessary between the "orginal" (v1.1) and yet, because AlexanderT recommend someone.

thx!!

AlexanderT
04-25-2004, 05:34 PM
GregorS, the hack should work just as fine with the latest vB version (3.0.1).

I am not sure when Zachery is going to update his hack instruction.

But for now, it should be sufficient if you follow his instruction first:
https://vborg.vbsupport.ru/showpost.php?p=455673&postcount=1

Then follow the fix I posted:
https://vborg.vbsupport.ru/showpost.php?p=496529&postcount=26

And perhaps this:
https://vborg.vbsupport.ru/showpost.php?p=497936&postcount=35

Greets
Alex

GregorS
04-25-2004, 08:33 PM
GregorS, the hack should work just as fine with the latest vB version (3.0.1).

I am not sure when Zachery is going to update his hack instruction.

But for now, it should be sufficient if you follow his instruction first:
https://vborg.vbsupport.ru/showpost.php?p=455673&postcount=1

Then follow the fix I posted:
https://vborg.vbsupport.ru/showpost.php?p=496529&postcount=26

And perhaps this:
https://vborg.vbsupport.ru/showpost.php?p=497936&postcount=35

Greets
Alex


Hi Alex!

OK, thanks for the fast reply!

GregorS
04-26-2004, 04:32 PM
GregorS, the hack should work just as fine with the latest vB version (3.0.1).

I am not sure when Zachery is going to update his hack instruction.

But for now, it should be sufficient if you follow his instruction first:
https://vborg.vbsupport.ru/showpost.php?p=455673&postcount=1

Then follow the fix I posted:
https://vborg.vbsupport.ru/showpost.php?p=496529&postcount=26

And perhaps this:
https://vborg.vbsupport.ru/showpost.php?p=497936&postcount=35

Greets
Alex

Hello again!

I merge the orginal-code with your improvements in a new document, and installed it yesterday on my forum, and it works perfect! ;)

Attached the complete code in one doc..

greets!

DivisionByZero
05-04-2004, 06:31 PM
ok, so there's ten pages of hacking, can the author do a rewrite for vb 3.0.1 ?

GregorS
05-04-2004, 06:49 PM
ok, so there's ten pages of hacking, can the author do a rewrite for vb 3.0.1 ?


Use my txt ;)

It works perfect with 3.0.1!!

boiboi
05-21-2004, 07:12 AM
is there a new instruction set in the zip file? this is the hack i've been looking for, but the fixes should be updated in the zip instead of hunting for it in the threads.

GregorS
05-21-2004, 07:30 AM
is there a new instruction set in the zip file? this is the hack i've been looking for, but the fixes should be updated in the zip instead of hunting for it in the threads.

jepp it is! ;)

boiboi
05-21-2004, 08:32 PM
works very well. thanks!

Agent XY
06-08-2004, 06:36 PM
very nice hack !!
works perfect ;)

fabz
07-06-2004, 07:24 AM
Well I hope I'm in the right place...

I'm looking for a way to add a new menu in USERCP_SHELL (seems to be this, the drop down menu you have when clicking onto the member name in threads)

I would like this new item to be added only if the user didn't leave blank the user field : I want it to be an external link (especially to an external photo gallery of the member clicked)

Is it possible and how could I do ?
thx a lot

www.alfisti.net
08-13-2004, 07:14 AM
thank you very much for this great hack :)

reach_srinivas
09-27-2004, 06:24 AM
HI, I am new to this stuff.., I installed the hack, add the new fileds to extra section, but not displying at extra section in profile page, any one help me..
Thanks in advance..

Ted S
09-27-2004, 07:30 AM
Did you add the link to the proper templates? What happens if you load profile.php?do=extra directly?

reach_srinivas
09-28-2004, 06:50 AM
display Title(extra info.. I modified) not diplaying fileds i added, I got some div area with out fileds..
Thanks in advance

reach_srinivas
09-28-2004, 11:09 AM
Thanks for the help, I got it now(installed again..)

crd
09-28-2004, 06:52 PM
I got this hack installed and nothing broke

so am I correct to assume that now I start tweaking the new template I made called "page" to get the stuff I want on it? which qualifies as a template hack but not a true hack? Yes?

Fargo
10-14-2004, 02:21 PM
works great! thanks for the info :)

Lee Wilde
10-16-2004, 09:30 AM
Very cool, thanks.

Lionel
10-19-2004, 04:43 AM
Can someone please tell me what is line 2418? I installed some hacks and I am not too sure. As a result, I installed the hack, it displays properly, but it is not updating the profile. I had installed the favorites hack from vbtemplates, that was working. I placed it on the extra page, it displays, but cannot update.

Lionel
10-19-2004, 05:28 AM
ok, I fixed it. I am using the fix at

https://vborg.vbsupport.ru/showpost.php?p=496529&postcount=26

if ($_POST['do'] == 'updateextra')
{
$userfields = verify_profilefields(6);

But since the weather is using (6), I changed it to 7 and that works.

bi11i
12-07-2004, 08:15 PM
will this work on v3.0.3? I notice that some i have // Process Custom Fields..
$userfields = '';
$profilefields = $DB_site->query("
SELECT profilefieldid, type, data, optional, title, memberlist, searchable
FROM " . TABLE_PREFIX . "profilefield
WHERE form = 0 "
. iif(!($permissions['genericpermissions'] & CANSEEHIDDENCUSTOMFIELDS), " AND hidden = 0") . "
ORDER BY displayorder
");instead of $profilefields = $DB_site->query("
SELECT profilefieldid, type, data, optional, title, memberlist, searchable
FROM " . TABLE_PREFIX . "profilefield
WHERE form = 0 "
. iif(!can_moderate(), " AND hidden = 0") . "
");in my member.php and memberlist.php - i'm a bit leary on changing it. anyone?

robertuss
12-08-2004, 05:03 PM
can someone please explain a bit more:
a.) is it possible to add more than one page of new Useroptions with this hack (two, three?)
b.) what is the most recent hackinstructions? I do not understand some of the code-snip-postings here. Are those modifications not included in the dowload?

thanks!

Wifey
01-17-2005, 05:46 AM
Just curious. What exactly does this hack do? Can you use this to hide these profile fields from normal users and specify per usergroup?

Thanks!

bi11i
01-17-2005, 12:12 PM
with that post of mine being month's old - i wouldn't expect much as far as support. i've been subscribed to this thread since i posted in December and nothing....

I couldn't get it to work - i really wanted to, and a really cool feature, but my code differed too much than from what was explained in the howTo.

-=Sniper=-
01-17-2005, 03:26 PM
I have it working on vb 3.0.5 with out any problems! Just read the instructions carefully.

bi11i
01-17-2005, 04:33 PM
which i did, but never could get an answer on this one: https://vborg.vbsupport.ru/showpost.php?p=579885&postcount=65

boiboi
01-28-2005, 02:01 AM
Can't get it to work on 3.0.6

profile.php has changed.

2418 is now 2421 added it there. the template in usercp shows the link to that extra field but when clicked it's blank.

boiboi
01-28-2005, 02:37 AM
nevermind fixed it.

I added the following above line: 707 in profile.php
instead above line: 2418 in the original instruction.

// ############## boiboi #####################
// ## Start Extra Profile Page - by Faranth ##
//############################################
// This is if a user requests ?do=extra it will do start the actions
if ($_REQUEST['do'] == 'extra')
{
// makes the user cp nav look correct
construct_usercp_nav('extra');
// Gets our Extra Page Fields
$customfields = array();
fetch_profilefields(1);
// sets the area discription, feel free to change
$navbits[''] = "Extra Info Page";
// sets template name to be called when the action is preformed
$templatename = 'page';
// sets shell template
$shelltemplatename = 'USERCP_SHELL';
}
// this is so that when a user saves their info it does get saved
if ($_POST['do'] == 'updateextra')
{
$userfields = verify_profilefields(6);
if (!empty($userfields))
{
$DB_site->query("UPDATE " . TABLE_PREFIX . "userfield SET userid=$bbuserinfo[userid]$userfields WHERE userid=$bbuserinfo[userid]");
}
eval(print_standard_redirect('redirect_updatethank s'));
}
// #########################################
// ## End Extra Profile Page - by Faranth ##
// #########################################
noticed i changed $userfields = verify_profilefields(1);
to:
$userfields = verify_profilefields(6);as AlexanderT suggested here:
https://vborg.vbsupport.ru/showpost.php?p=496529&postcount=26
Don't forget that, otherwise your users won't be able to update.

AlexanderT
01-29-2005, 05:39 PM
Sorry for the lack of updates; notice this is not "my" hack, I only added a few fixes. It still works very well with vB 3.0.5, as you can see on my site (use profile). (I haven't upgraded to 3.0.6 yet, but see no reason why it shouldn't work for it as well).

-=Sniper=-
01-29-2005, 07:45 PM
Alex is it working in the admincp > profile fields?

I upgraded to the latest vb and now in the admincp > profile fields sometimes it shows the extra fields, sometimes not.

try viewing profile fileds in the admincp a few times to see what I mean!

a fix would excellent.

-=Sniper=-
01-29-2005, 11:01 PM
ok, it seems to be working in IE but not Firefox 1.0, I have reinstalled, cleared cache etc still no luck!

but its working in 3.0.6

AlexanderT
01-29-2005, 11:24 PM
Its a bug in Firefox or one of its extensions that was already discussed somewhere at vb.com. Not related to this hack ;)

Cheers!

Lee Wilde
02-09-2005, 05:51 AM
I have this hack installed and use Firefox v 1.0 without any problem.

SVTBlackLight01
02-20-2005, 06:04 AM
nevermind fixed it.

I added the following above line: 707 in profile.php
instead above line: 2418 in the original instruction.

Could you post a few lines of the surrounding code? I'm sure my lne 707 is probably different than yours.

SVTBlackLight01
02-20-2005, 07:10 AM
ok, I fixed it. I am using the fix at

https://vborg.vbsupport.ru/showpost.php?p=496529&postcount=26

if ($_POST['do'] == 'updateextra')
{
$userfields = verify_profilefields(6);

But since the weather is using (6), I changed it to 7 and that works.

I had to do something similar, but I need it to update two field areas with this hack, 8 & 9 in my case. How would I do this?

BluPhoenix
02-22-2005, 02:05 AM
Could you post a few lines of the surrounding code? I'm sure my lne 707 is probably different than yours.
add before:
// ################################################## ##########################
// ############################### EDIT PROFILE ###############################
// ################################################## ##########################
if ($_REQUEST['do'] == 'editprofile')

Benj
04-05-2005, 10:34 AM
anyone got this working with 3.0.7 ??

Lionel
04-12-2005, 12:25 AM
I had to uninstall. The weather is messing things up for me. Anything past that weather field, regardless if private or not , when put on the extra page will cause all hidden fields including the previous one to display on member page.

-=Sniper=-
04-12-2005, 08:18 AM
working fine here on the latest vb.

DivisionByZero
04-12-2005, 11:45 AM
read back in this thread, there's a fix

Benj
04-12-2005, 11:53 AM
just added this with the fix but ive added loads of fields to it and i just get this on the extra page...

any ideas???

DivisionByZero
04-12-2005, 03:39 PM
you have to go to the profile fields you want, and select which page they appear on in the select menu all the way at the bottom

Benj
04-12-2005, 05:47 PM
i have ive added loads to the extra page! when i click the submit button on the page (in screen shot) it tells me that i havent filled in the required fields which leads me to believe its a template issue.... But ive updated all the templates no change any ideas ?

Snitz
05-17-2005, 07:32 PM
im facing a prob in here
i'm using vb 3.0.7

and in ur documentation: extra_options_install_1_1.txt
open member.php(this part is optional, it will display the extra profile feilds in the members public profile page)

find

$profilefields = $DB_site->query("
SELECT profilefieldid, required, title, type, data, def, height
FROM " . TABLE_PREFIX . "profilefield
WHERE form = 0 " . iif(!can_moderate(), "
AND hidden = 0") . "
ORDER BY displayorder
");
replace with

$profilefields = $DB_site->query("
SELECT profilefieldid, required, title, type, data, def, height
FROM " . TABLE_PREFIX . "profilefield
WHERE form = 0 OR 6 " . iif(!can_moderate(), "
AND hidden = 0") . "
ORDER BY displayorder
");

save and close member.php


well I can't seem to find the code so I can replace it :\
instead I found another similar code
$profilefields = $DB_site->query("
SELECT profilefieldid, required, title, type, data, def, height
FROM " . TABLE_PREFIX . "profilefield
WHERE form = 0 " . iif(!($permissions['genericpermissions'] & CANSEEHIDDENCUSTOMFIELDS), "
AND hidden = 0") . "
ORDER BY displayorder
");

what should I do, I really do want to display the info on member.php

Snitz
05-17-2005, 07:51 PM
man this mod is a pain
I finished installing following these messed up instructions
and I ended up with a blank page when I visit the extra field in the usercp

could you please provide us with a clear documentation for the vb3.0.7 !!!!

narunet
05-19-2005, 03:52 AM
I've got this working perfectly on 3.0.7, but i'd like to be able to show people browsing the forums what they have listed in their extra profiles where the join date, post count, and birthday phrases are in postbit. Is there any way of getting this to be shown there?

boo.3
05-19-2005, 11:13 AM
is there away to make it show up in posts also ? below avatar?

narunet
05-19-2005, 11:33 PM
is there away to make it show up in posts also ? below avatar?

Yes, I just found out the way!

First off, you'll need to create a phrase, in detail:

Phrase Type: GLOBAL

Varname: X

Text: XX

Now, the X = whatever you want your profile to be, so if you have multiple custom fields, you can name them whichever they are (ex. anime, console, book, movie, etc.)

The XX = whatever you want it to say before it shows what the user has typed in for their custom profile (ex. Fav. Anime, Fav. Console, Fav. Book, Fav. Movie, etc.)

The phrase depends on how many custom fields you have and what you want them to say under the avatar.

Now, onto the template editing..

Go into the Style Manager, and click the dropdown box for whatever style you want to use this on, and select "Edit Templates." Then go to Postbit Templates >> postbit OR postbit_legacy

Ok, now on to the templates, First is the legacy version of postbit, and then the horizontal version.

*postbit_legacy*

Search around in here until you find this:

<div class="postbit" align="left"">
<span style="color: #8B9DB0;
font-weight: bold">$vbphrase[posts]:</span> $post[posts]</div>

Under that, add this:

<if condition="$post['X']"><div class="postbit" align="left"><span style="color: #8B9DB0; font-weight: bold">$vbphrase[xx]:</span> $post[XXX]</div></if>

Edit the X, XX, and XXX Before you add this line though..
X = field # (it'll say this when you go to the "User Profile Field Manager" option on the right towards the dropdown box, ex. field6, field7, field9, etc.)

XX = the varname of the vbphrase you added first (movie, anime, book, etc.)

XXX = same as X

*postbit*

This is pretty much the same, but search around for this code:


<div>
$vbphrase[posts]: $post[posts]
</div>


Under this, add the following code:

<if condition="$post['X']"><div>$vbphrase[XX]: $post[XXX]</div></if>

X = Field Number
XX = Phrase varname
XXX = same as X

The location of the added code might not look perfect to you, so just move it around and customize it for your forum's style or whatnot.


And there you have it! Should be working for everyone, but if you need more help, just reply! ^_^

Wired1
05-24-2005, 02:23 AM
I think this hack will do what I want, but I'm not sure. Will it let you add a separate category to the Profile area?

Basically, I want the UserCP -> Edit Profile to have a new category (e.g. Registration Required Information, Optional Information, Additional Information, etc.) and its own fields below that.

Also, does anyone have a site with this hack running so I can see it in action?

Zachery
05-24-2005, 03:01 AM
Im going to rehack this for 3.5.0 when I get a chance :)

Wired1
05-24-2005, 03:05 AM
Ummmm.... does the current hack let you create categories?

Zachery
05-24-2005, 03:07 AM
Ummmm.... does the current hack let you create categories?
It adds a whole new page, which could be seen as a category.

Wired1
05-24-2005, 03:17 AM
A whole new page for the UserCP, correct? On the last example pic, it's just showing up under the rest of the fields, as if it was just a field made by the vB Admin Panel Profile Manager. Can it be separated into its own box with this hack, or does further hacking have to take place for that to happen?

Just to clarify, what I'm looking to do is to add a section to the profile for PC specs. The specs will also be shown in posts. May just hack an option to have a radio button if they want the specs in the sig, and it formats and inserts it accordingly, or have some type of hack for the sidebar (Name, pic, join date, etc.) where it pops out in a menu, or expands down like the AdminCP options.

As an example of how another site uses system specs in posts (soooo not how I want, IMHO this way is ugly):
http://forums.guru3d.com/showthread.php?s=&threadid=137963 (look on the right side of a post)

In that site, they're just added fields, looks ugly when you check out someone's profile.

mustang_lex
06-03-2005, 02:11 AM
Can these fields be available for selected usergroups only?

yoyoyoyo
07-11-2005, 05:29 AM
can someone pleae provide updated/better instructions for this hack? It starts off withOpen profile.php

Goto Line 2418
Add above

and that is just a bit too vague considering has been awhile since this was updated, and there have been a few revisions of vbulletin, and also since I have already heavily edited that page. A "virgin" copy of profile.php shows:if (($perm & CANVIEW) AND ($perm & CANGETATTACHMENT))is this correct?

VirtualBurn
08-08-2005, 07:59 PM
thanks this would be good, as I can create a field for 'Computer Exp' and disable features based on the selection.. thnks

sketch42
08-09-2005, 04:29 PM
can someone pleae provide updated/better instructions for this hack? It starts off withOpen profile.php

Goto Line 2418
Add above

and that is just a bit too vague considering has been awhile since this was updated, and there have been a few revisions of vbulletin, and also since I have already heavily edited that page. A "virgin" copy of profile.php shows:if (($perm & CANVIEW) AND ($perm & CANGETATTACHMENT))is this correct?

i redid the instructions for this hack awhile ago and got it to work on 3.0.5 but iv since upgraded to 3.0.7 and havent had a chance to reinstall if you want them here they are


Use these Instructions at Your OWN Risk

Wired1
09-29-2005, 03:58 AM
any chance this will be updated for 3.5?

-=Sniper=-
09-29-2005, 06:00 AM
this is the only hack I am waiting for an update for :)

Zachery
09-29-2005, 02:31 PM
Anyone is free to port this to 3.5 :) just a little credit for the idea would be nice.

Wired1
09-30-2005, 04:58 PM
I think I may take a crack at it this weekend then, esp. since my profile mod needs this to work! :)

-=Sniper=-
10-02-2005, 10:33 AM
cool, please keep us updated :) will give $10 to the first one to do it :)

Edit: you'd find that the current version works with 3.5.0 the only part not working correctly is saving and validation of fields.

DivisionByZero
10-06-2005, 11:40 PM
gotta have this one :-\

Wired1
10-09-2005, 05:41 AM
FYI, I'm working on it right now. Found a perfect hook location for it, so it's looking good so far.

Wired1
10-09-2005, 08:44 AM
Pretty much done, however I can't get the damned thing to SAVE when updating on the page.

Wired1
10-09-2005, 09:28 AM
I do believe I got it all working, yaaayyyy!!! The instructions aren't too clear though. I'm gonna catch some zzz's, clean up the instruction file, and submit it, then pop a link to it in here as well.

www.alfisti.net
10-09-2005, 10:59 AM
I got it all working
you are my hero :)
thanks!

-=Sniper=-
10-09-2005, 05:43 PM
excellent news :) PM me if you want the $10.

Wired1
10-10-2005, 03:35 PM
Waiting on 3rd party confirmation from posters from my site to make sure it's working fine.

Just to explain it a bit, vB changed some code that altered the hack. To make the install easy there's 1 PHP edit. It's just 1 line of code, a hook placement, member.php IIRC. 2 hooks used total (1 is mine, 1 is vB's).

Tonight I'm gonna mess with exporting the hack via XML. If it works, I'll upload that file directly.

DivisionByZero
10-10-2005, 03:49 PM
nice! will this support more than one page of extra fields? I have one for "chat options" and desire another one for "something else" and perhaps "something even different"... making it 3 areas where I'd like to organize things.

Wired1
10-11-2005, 04:30 AM
Not initially, but I can't see it being that hard to implement.

How would you want these options to be viewed (if at all) from someone else's view? Think of a unregistered reader checking out someone's profile and how you would want them to see it.

My hack (partially based on this hack):
https://vborg.vbsupport.ru/showthread.php?s=&threadid=82040

shows one option to display the data. More areas could be made within the profile window to display more data.

Wired1
10-13-2005, 01:45 AM
FYI, I'm re-writing the instructions as we speak. I'll post here when it's done, and then create the new thread, and then link to it from here.

Wired1
10-13-2005, 03:11 AM
Ok, I think the instructions are done. Going to make the new thread.

DivisionByZero
10-13-2005, 03:26 AM
Not initially, but I can't see it being that hard to implement.

How would you want these options to be viewed (if at all) from someone else's view? Think of a unregistered reader checking out someone's profile and how you would want them to see it.

My hack (partially based on this hack):
https://vborg.vbsupport.ru/showthread.php?s=&threadid=82040

shows one option to display the data. More areas could be made within the profile window to display more data.

yes, exactly that! with the options of creating categories for the data to be displayed in :)

Wired1
10-13-2005, 03:45 AM
OK, linkage:
https://vborg.vbsupport.ru/showthread.php?t=98282

Wired1
10-13-2005, 03:48 AM
yes, exactly that! with the options of creating categories for the data to be displayed in :)

I THINK I know what you mean, not 100% sure though. Once I work on the updates, I will have multiple categories, and in turn my other hack that's based on this one will have multiple ways to update it.

DivisionByZero
10-13-2005, 09:27 AM
ok cool.

hack works, other than the fact that vB seems to have a real nasty time saving a new template with the name "extra". Other than that, some template cleanups "system specs"?? and its all set.

Thanks a bunch!

Wired1
10-13-2005, 03:42 PM
Fixed. Check the new thread.

Club3G
11-06-2005, 02:43 PM
Installed, working great, thanks. :)

legionofangels
01-10-2008, 08:11 PM
Hello,

We apparently have installed this modification on our forum. However it appears its a bit out of date perhaps. We use 3.6.8 PL2 at the moment. I'm wondering if there are any comapitiblity issues?

Our current problem is that we used it to give an option to members to Show or Hide the Inferno Shoutbox we have. The buttons and everything works fine for registered members.

Our problem is though that while logged out, guests cannot view the shoutbox and I don't understand why. Is there an option that comes with this mod that would affect that?

Or is there some coding I need to add to make the shoutbox show for those not logged in, but that upon logging into an account it of course accepts the accounts choice of Show or Hide?

It's set to default Show in the profile field for a new member so I don't know why it won't show automatically for everyone prior to log in.

Please help if anyone can, and thank you in advance,

Legion of Angels

Wired1
01-11-2008, 03:19 PM
This mod is not for 3.6.x, it is for vB Version: 3.0.0