vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Extra Profile Fields Page (https://vborg.vbsupport.ru/showthread.php?t=123253)

Slash_ 11-22-2006 07:14 AM

i am not understanding this part at all

====================================

The following code adds an extra area to:

User Profile Fields -> User Profile Field Manager

When a new profile field is added, in the Display Page area, select Options: Extra Options (or whatever you placed in the extra_options vB Phrase)

// *** open admincp/profilefield.php

find

"$vbphrase[options]: $vbphrase[other]"

replace with

"$vbphrase[options]: $vbphrase[other]",
"$vbphrase[options]: $vbphrase[extra_options]"

find

5 => "$vbphrase[options]: $vbphrase[other]",
add under

6 => "$vbphrase[options]: $vbphrase[extra_options]",

// *** save and close admincp/profilefield.php

// *** open includes/functions_user.php

find

case 5:
$customfields['other'] .= $tempcustom;
break;
add under

case 6:
$customfields['extra'] .= $tempcustom;
break;

// *** save and close includes/functions_user.php

====================================

Kadi 11-24-2006 02:19 PM

Great idea! I have a health forum and now we can have a page with members health info.

Does this work on 3.6.4?

Raw Sugar 11-27-2006 04:51 AM

I was wondering what template I go to to edit the way this Extra Info Page looks and the title of it and all that?

I've been wondering how the hell to do this, so thank you!

Thorlax402 12-08-2006 10:47 PM

Sorry maybe this is a stupid question but I'm having problems.
I'm new to modifying vBulletin so I'm learning.
When I go to user cp to edit it, it's blank.
I've attached an image.
Sorry if I'm a noob.
http://img91.imageshack.us/img91/3679/usercpid4.jpg


**edit*
Figured out more..I think something about postbit?
I'm earning vBulletin as I go along.
If it has anything to do with postbit can someone please tell me what needs to be changed?
Thanks.

Raw Sugar 12-10-2006 05:02 AM

Thorlax...

You need to edit the USERCP_SHELL template... I think. All you need to do is look at the coding for the menu and then, depending on how the coding is, add a link to the new page (which I believe would be /profile.php?do=extra. If you show me the coding for that template I could edit it in for you?

Thorlax402 12-10-2006 10:08 PM

I actually finally got the words to show up, but its just a blank page now.
Sorry, this was my first addon, I'm not as stupid anymore but still I don't remember what I even did with this one...

Heres a template we're using it with..Its the USERCP_SHELL

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
        <title>$vboptions[bbtitle] - $pagetitle</title>
</head>
<body$onload>
$header
$navbar

<!-- table to support left column nav -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td>
       
<!-- usercp nav -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<tr>
        <td class="tcat"><a href="usercp.php$session[sessionurl_q]">$vbphrase[control_panel]</a></td>
</tr>
<tr>
        <td class="thead">$vbphrase[settings_and_options]</td>
</tr>
<if condition="$show['siglink']">
        <tr>
                <td class="$navclass[signature]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td>
        </tr>
</if>
<tr>
        <td class="$navclass[password]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editpassword">$vbphrase[edit_email_and_password]</a></td>
</tr>
<!-- v3 Arcade -->
<tr>
        <td class="$navclass[arcade]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editarcade">$vbphrase[edit_arcade_options]</a></td>
</tr>
<!-- /v3 Arcade -->
<tr>
        <td class="$navclass[profile]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td>
</tr>
<tr>
        <td class="$navclass[extra]" style="white-space:nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=extra">$vbphrase[edit_extra_options]</a></td>
</tr>
<tr>
        <td class="$navclass[options]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td>
</tr>
<if condition="$show['avatarlink']">
        <tr>
                <td class="$navclass[avatar]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td>
        </tr>
</if>
<if condition="$show['profilepiclink']">
        <tr>
                <td class="$navclass[profilepic]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a></td>
        </tr>
</if>
<if condition="$show['pmmainlink']">
        <tr>
                <td class="thead" nowrap="nowrap">
                        <span id="nav_pmfolders">$vbphrase[private_messages] <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("nav_pmfolders"); </script></if></span>
                        <if condition="$show['popups']">                       
                                <div class="vbmenu_popup" id="nav_pmfolders_menu" style="display:<if condition="$show['popups']">none<else />block</if>">
                                        <table cellpadding="4" cellspacing="1" border="0">
                                        <tr>
                                                <td class="thead" nowrap="nowrap">$vbphrase[folders]</td>
                                        </tr>
                                        $cpnav[pmfolders]
                                        </table>
                                </div>
                        </if>
                </td>
        </tr>
        <tr>
                <td class="$navclass[pm_messagelist]" nowrap="nowrap"><a class="smallfont" href="private.php$session[sessionurl_q]">$vbphrase[list_messages]</a></td>
        </tr>
        <if condition="$show['pmsendlink']">
        <tr>
                <td class="$navclass[pm_newpm]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=newpm">$vbphrase[send_new_message]</a></td>
        </tr>
        </if>
        <if condition="$show['pmtracklink']">
                <tr>
                        <td class="$navclass[pm_trackpm]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=trackpm">$vbphrase[track_messages]</a></td>
                </tr>
        </if>
        <tr>
                <td class="$navclass[pm_editfolders]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td>
        </tr>
</if>
<tr>
        <td class="thead" nowrap="nowrap">
                <span id="nav_subsfolders">$vbphrase[subscribed_threads] <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("nav_subsfolders"); </script></if></span>
                <if condition="$show['popups']">
                        <div class="vbmenu_popup" id="nav_subsfolders_menu" style="display:<if condition="$show['popups']">none<else />block</if>">
                                <table cellpadding="4" cellspacing="1" border="0">
                                <tr>
                                        <td class="thead" nowrap="nowrap">$vbphrase[folders]</td>
                                </tr>
                                $cpnav[subsfolders]
                                </table>
                        </div>
                </if>
        </td>
</tr>
<tr>
        <td class="$navclass[substhreads_listthreads]" nowrap="nowrap"><a class="smallfont" href="subscription.php?$session[sessionurl]do=viewsubscription">$vbphrase[list_subscriptions]</a></td>
</tr>
<tr>
        <td class="$navclass[substhreads_editfolders]" nowrap="nowrap"><a class="smallfont" href="subscription.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td>
</tr>
<if condition="$show['deleteditems'] OR $show['moderateditems']">
<tr>
        <td class="thead">$vbphrase[moderation]</td>
</tr>
        <if condition="$show['deleteditems']">
        <tr>
                <td class="$navclass[deletedthreads]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&amp;type=deleted">$vbphrase[deleted_threads]</a></td>
        </tr>
        <tr>
                <td class="$navclass[deletedposts]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&amp;type=deleted">$vbphrase[deleted_posts]</a></td>
        </tr>
        </if>
        <if condition="$show['moderateditems']">
        <tr>
                <td class="$navclass[moderatedthreads]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&amp;type=moderated">$vbphrase[moderated_threads]</a></td>
        </tr>
        <tr>
                <td class="$navclass[moderatedposts]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&amp;type=moderated">$vbphrase[moderated_posts]</a></td>
        </tr>
        </if>       
</if>
<tr>
        <td class="thead">$vbphrase[miscellaneous]</td>
</tr>
<tr>
        <td class="$navclass[event_reminders]" nowrap="nowrap"><a class="smallfont" href="calendar.php?$session[sessionurl]do=viewreminder">$vbphrase[event_reminders]</a></td>
</tr>
<if condition="$show['paidsubscriptions']">
<tr>
        <td class="$navclass[paid_subscriptions]" nowrap="nowrap"><a class="smallfont" href="payments.php$session[sessionurl_q]">$vbphrase[paid_subscriptions]</a></td>
</tr>
</if>
<if condition="$show['publicgroups']">
<tr>
        <td class="$navclass[usergroups]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editusergroups">$vbphrase[group_memberships]</a></td>
</tr>
</if>
<tr>
        <td class="$navclass[buddylist]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editlist">$vbphrase[buddy_ignore_lists]</a></td>
</tr>
<if condition="$show['attachments']">
<tr>
        <td class="$navclass[attachments]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editattachments">$vbphrase[attachments]</a></td>
</tr>
</if>
</table>
<!-- / usercp nav -->
       
</td>
<td>&nbsp;&nbsp;</td>
<td width="100%">

<!-- main page contents -->
$HTML
<!-- / main page contents -->
       
</td>
</tr>
</table>
<!-- / table to support left column nav -->
$footer
</body>
</html>


Raw Sugar 12-11-2006 03:41 AM

What's a blank page? The whole thing or just when you click on it? I created a new style on my board and used that code that you gave me and it seems to be working fine now.

The only thing that I can suggest is, if you're not going to have an arcade... copy the code I have below to get rid of the ugly gray space between the 'Edit Email & Password' link and the 'Edit Profile' link.

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
        <title>$vboptions[bbtitle] - $pagetitle</title>
</head>
<body$onload>
$header
$navbar

<!-- table to support left column nav -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td>
       
<!-- usercp nav -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<tr>
        <td class="tcat"><a href="usercp.php$session[sessionurl_q]">$vbphrase[control_panel]</a></td>
</tr>
<tr>
        <td class="thead">$vbphrase[settings_and_options]</td>
</tr>
<if condition="$show['siglink']">
        <tr>
                <td class="$navclass[signature]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td>
        </tr>
</if>
<tr>
        <td class="$navclass[password]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editpassword">$vbphrase[edit_email_and_password]</a></td>
</tr>

<tr>
        <td class="$navclass[profile]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td>
</tr>
<tr>
        <td class="$navclass[extra]" style="white-space:nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=extra">$vbphrase[edit_extra_options]</a></td>
</tr>
<tr>
        <td class="$navclass[options]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td>
</tr>
<if condition="$show['avatarlink']">
        <tr>
                <td class="$navclass[avatar]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td>
        </tr>
</if>
<if condition="$show['profilepiclink']">
        <tr>
                <td class="$navclass[profilepic]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a></td>
        </tr>
</if>
<if condition="$show['pmmainlink']">
        <tr>
                <td class="thead" nowrap="nowrap">
                        <span id="nav_pmfolders">$vbphrase[private_messages] <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("nav_pmfolders"); </script></if></span>
                        <if condition="$show['popups']">                       
                                <div class="vbmenu_popup" id="nav_pmfolders_menu" style="display:<if condition="$show['popups']">none<else />block</if>">
                                        <table cellpadding="4" cellspacing="1" border="0">
                                        <tr>
                                                <td class="thead" nowrap="nowrap">$vbphrase[folders]</td>
                                        </tr>
                                        $cpnav[pmfolders]
                                        </table>
                                </div>
                        </if>
                </td>
        </tr>
        <tr>
                <td class="$navclass[pm_messagelist]" nowrap="nowrap"><a class="smallfont" href="private.php$session[sessionurl_q]">$vbphrase[list_messages]</a></td>
        </tr>
        <if condition="$show['pmsendlink']">
        <tr>
                <td class="$navclass[pm_newpm]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=newpm">$vbphrase[send_new_message]</a></td>
        </tr>
        </if>
        <if condition="$show['pmtracklink']">
                <tr>
                        <td class="$navclass[pm_trackpm]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=trackpm">$vbphrase[track_messages]</a></td>
                </tr>
        </if>
        <tr>
                <td class="$navclass[pm_editfolders]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td>
        </tr>
</if>
<tr>
        <td class="thead" nowrap="nowrap">
                <span id="nav_subsfolders">$vbphrase[subscribed_threads] <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("nav_subsfolders"); </script></if></span>
                <if condition="$show['popups']">
                        <div class="vbmenu_popup" id="nav_subsfolders_menu" style="display:<if condition="$show['popups']">none<else />block</if>">
                                <table cellpadding="4" cellspacing="1" border="0">
                                <tr>
                                        <td class="thead" nowrap="nowrap">$vbphrase[folders]</td>
                                </tr>
                                $cpnav[subsfolders]
                                </table>
                        </div>
                </if>
        </td>
</tr>
<tr>
        <td class="$navclass[substhreads_listthreads]" nowrap="nowrap"><a class="smallfont" href="subscription.php?$session[sessionurl]do=viewsubscription">$vbphrase[list_subscriptions]</a></td>
</tr>
<tr>
        <td class="$navclass[substhreads_editfolders]" nowrap="nowrap"><a class="smallfont" href="subscription.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td>
</tr>
<if condition="$show['deleteditems'] OR $show['moderateditems']">
<tr>
        <td class="thead">$vbphrase[moderation]</td>
</tr>
        <if condition="$show['deleteditems']">
        <tr>
                <td class="$navclass[deletedthreads]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&amp;type=deleted">$vbphrase[deleted_threads]</a></td>
        </tr>
        <tr>
                <td class="$navclass[deletedposts]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&amp;type=deleted">$vbphrase[deleted_posts]</a></td>
        </tr>
        </if>
        <if condition="$show['moderateditems']">
        <tr>
                <td class="$navclass[moderatedthreads]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&amp;type=moderated">$vbphrase[moderated_threads]</a></td>
        </tr>
        <tr>
                <td class="$navclass[moderatedposts]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&amp;type=moderated">$vbphrase[moderated_posts]</a></td>
        </tr>
        </if>       
</if>
<tr>
        <td class="thead">$vbphrase[miscellaneous]</td>
</tr>
<tr>
        <td class="$navclass[event_reminders]" nowrap="nowrap"><a class="smallfont" href="calendar.php?$session[sessionurl]do=viewreminder">$vbphrase[event_reminders]</a></td>
</tr>
<if condition="$show['paidsubscriptions']">
<tr>
        <td class="$navclass[paid_subscriptions]" nowrap="nowrap"><a class="smallfont" href="payments.php$session[sessionurl_q]">$vbphrase[paid_subscriptions]</a></td>
</tr>
</if>
<if condition="$show['publicgroups']">
<tr>
        <td class="$navclass[usergroups]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editusergroups">$vbphrase[group_memberships]</a></td>
</tr>
</if>
<tr>
        <td class="$navclass[buddylist]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editlist">$vbphrase[buddy_ignore_lists]</a></td>
</tr>
<if condition="$show['attachments']">
<tr>
        <td class="$navclass[attachments]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editattachments">$vbphrase[attachments]</a></td>
</tr>
</if>
</table>
<!-- / usercp nav -->
       
</td>
<td>&nbsp;&nbsp;</td>
<td width="100%">

<!-- main page contents -->
$HTML
<!-- / main page contents -->
       
</td>
</tr>
</table>
<!-- / table to support left column nav -->
$footer
</body>
</html>

If you let me know what you mean by 'its just a blank page' then perhaps I can help you out a bit more?

Konstantinos 12-19-2006 09:28 PM

why using this instead of creating custom fields using vb built system ?

Kadi 12-20-2006 10:17 PM

Hi,

I'm installing this but I don't know where admincp/profilefield.php or includes/functions_user.php is for this part:

Quote:

// *** open admincp/profilefield.php

find

"$vbphrase[options]: $vbphrase[other]"

replace with

"$vbphrase[options]: $vbphrase[other]",
"$vbphrase[options]: $vbphrase[extra_options]"

find

5 => "$vbphrase[options]: $vbphrase[other]",
add under

6 => "$vbphrase[options]: $vbphrase[extra_options]",

// *** save and close admincp/profilefield.php




// *** open includes/functions_user.php



find

case 5:
$customfields['other'] .= $tempcustom;
break;
add under

case 6:
$customfields['extra'] .= $tempcustom;
break;


// *** save and close includes/functions_user.php

timetunnel 12-21-2006 04:46 PM

Hello.

Open these files onto your PC and use your file editor to search for e.g. $vbphrase[options]: $vbphrase[other]

then follow the instructions you quoted in your thread post. When done, re-upload these 2 files (admincp/profilefield.php and includes/functions_user.php)

HTH


All times are GMT. The time now is 08:12 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.02007 seconds
  • Memory Usage 1,832KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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