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)

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


All times are GMT. The time now is 05:31 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.01444 seconds
  • Memory Usage 1,743KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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