vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Extra Profile Fields Page (https://vborg.vbsupport.ru/showthread.php?t=59618)

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
Code:

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
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

Quote:

Originally Posted by boo.3
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:

Code:

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

Under that, add this:

Code:

<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:

Code:

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

Under this, add the following code:

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

Quote:

Originally Posted by Wired1
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....hreadid=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 with
Code:

Open 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:
Code:

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

Quote:

Originally Posted by yoyoyoyo
can someone pleae provide updated/better instructions for this hack? It starts off with
Code:

Open 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:
Code:

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

Quote:

Originally Posted by Wired1
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/showthrea...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

Quote:

Originally Posted by Wired1
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/showthrea...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

Quote:

Originally Posted by MisterPopularity
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.


All times are GMT. The time now is 10:31 AM.

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.01624 seconds
  • Memory Usage 1,829KB
  • 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
  • (10)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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