vb.org Archive

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

SVTOA 05-23-2008 09:54 AM

Quote:

Originally Posted by Wired1 (Post 1528547)
This mod is not a dropdown, so... NO. It's clearly only for PROFILE FIELDS. I have a different mod for dropdown (which I've gotta upload tonight, after some forum work).

I think people are getting confused by the example shown. If you bother to read carefully, it's explained pretty clearly what this mod does.

MarkoXaser 05-23-2008 01:16 PM

excuse me if i not understand but i'm italian, and this forum is only english...please have a patience with me ;)

i still wait for a dropdown mod ;)

tpn87 05-24-2008 12:22 AM

Quote:

Originally Posted by MarkoXaser (Post 1528944)
excuse me if i not understand but i'm italian, and this forum is only english...please have a patience with me ;)

i still wait for a dropdown mod ;)


See this mod also by wired1: https://vborg.vbsupport.ru/showthread.php?t=180309

Gio~Logist 05-24-2008 06:17 AM

Can you add as many pages as you'd like, or just one?

Giovanni Martinez

Wired1 05-24-2008 06:40 AM

Quote:

Originally Posted by gio~logist (Post 1529748)
Can you add as many pages as you'd like, or just one?

One. Still no easy way to do it w/o editing vars. Looking into working something out w/ the new Categories, but no great luck ATM.

Mike-D 05-25-2008 08:00 AM

To Wired: Is that correct, that we don't need editing the functions_user.php File anymore? Thank you, Sir :)

HTML Code:

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


Wired1 05-25-2008 08:38 AM

Quote:

Originally Posted by Mike-D (Post 1530723)
To Wired: Is that correct, that we don't need editing the functions_user.php File anymore? Thank you, Sir :)

Please read the instructions.

Mike-D 05-25-2008 08:58 AM

Quote:

Originally Posted by Wired1 (Post 1530741)
Please read the instructions.

That why I asked. Because I couldn't find the old Info in it. I'd like to know why we don't need to edit the functions_user.php anymore!

Wired1 05-25-2008 08:59 PM

Quote:

Originally Posted by Mike-D (Post 1530751)
That why I asked. Because I couldn't find the old Info in it. I'd like to know why we don't need to edit the functions_user.php anymore!

Because the manual edit is just no longer need :) Works without it, right? RIGHT.

Jase2 05-26-2008 10:35 AM

Can you cache all templates ?

Gio~Logist 05-26-2008 04:18 PM

Why not just change the var to a .= instead of a = and then change the query to pull all categories and sections within a table where the categories are made. From there it's just a matter of editing what's inserted in the usercp shell and then recoding the query on your custom page. But your custom page can be based on a request so that your query doesn't have to be edited too much.

Giovanni Martinez

Wired1 05-27-2008 02:25 AM

Quote:

Originally Posted by gio~logist (Post 1532001)
Why not just change the var to a .= instead of a = and then change the query to pull all categories and sections within a table where the categories are made. From there it's just a matter of editing what's inserted in the usercp shell and then recoding the query on your custom page. But your custom page can be based on a request so that your query doesn't have to be edited too much.

Are you thinking of a manual edit of a php file somewhere?


Jase2: Only 1 template, and yes, you can cache it.

shlomot 05-28-2008 06:53 AM

Dear Wired1, need this MOD and much more additional help.

Sent you a PM. Please let me know.

Mike-D 05-29-2008 05:12 PM

Quote:

Originally Posted by Wired1 (Post 1531285)
Because the manual edit is just no longer need :)

Aaah, that's the reason why :)

Quote:

Originally Posted by Wired1 (Post 1531285)
Works without it, right? RIGHT.

Yep it does. I'm really surprised how it works without any editing the functions_user.php file. Excellent job as always :up: Thank you so much for updating :) -Mike

Wired1 05-29-2008 06:44 PM

Quote:

Originally Posted by Mike-D (Post 1535364)
Aaah, that's the reason why :)

Yep it does. I'm really surprised how it works without any editing the functions_user.php file. Excellent job as always :up: Thank you so much for updating :) -Mike

That's what hooks are for.

Mike-D 05-29-2008 08:40 PM

Quote:

Originally Posted by Wired1 (Post 1535466)
That's what hooks are for.

Sigh, the mystery Hooks. Some loves them and some hate them. Sometimes it's still a book of 7 seals for me :(

Mike-D 05-29-2008 08:43 PM

Quote:

Originally Posted by Jase2 (Post 1531699)
Can you cache all templates ?

You can do it yourself. It depends too which Templates should be cached.

Regarding my Snapshots here's the way I did...
PHP Code:

<plugin active="1"
 <
title>Extra Profile Page Cache Templates</title
 <
hookname>cache_templates</hookname
 <
phpcode><![CDATA[$globaltemplates array_merge($globaltemplates, array('page','userfield_radio''userfield_radio_option''userfield_select''userfield_select_option'userfield_wrapper));]]></phpcode
</
plugin

Quote:

Originally Posted by Wired1 (Post 1532447)
Jase2: Only 1 template, and yes, you can cache it.

Strange because I had several of them :)

RedGTiVR6 05-29-2008 09:38 PM

This might already be answered elsewhere in the bagillion posts...

is it possible to make this into multiple tabs?

In otherwords, lets say I want to have a tab for PC specs, but also a tab for Audio specs, and another for car specs...

Is this possible or is this only able to handle one page to enter these specs and one tab to display?

RedGTiVR6 05-29-2008 09:42 PM

Also, I remember there being some talk about making these fields searchable through the members search list.

Has this been implemented yet or is it not possible/entirely too much work?

Wired1 05-29-2008 11:18 PM

Quote:

Originally Posted by RedGTiVR6 (Post 1535626)
is it possible to make this into multiple tabs?

Also, I remember there being some talk about making these fields searchable through the members search list.

Search turns out was a typo all along, easy to implement. The 3.6.x page has the code near the end of the thread. I'll add it here, or add it in somehow later. Multiple pages / tabs is also on the schedule, probably this weekend. Easy way: duplicate code. Correct way: recode some stuff :)

RedGTiVR6 05-30-2008 02:05 AM

https://vborg.vbsupport.ru/showpost....&postcount=292

This is the post I take it?

The provided code is a bit off, but I figured it out.

I've entered the code as follows, but now my memberlist.php page doesn't even show up...

In memberlist.php:


FIND:
PHP Code:

    $profilefields $db->query_read_slave("
        SELECT *
        FROM " 
TABLE_PREFIX "profilefield
        WHERE searchable = 1
            WHERE form = 0 " 

REPLACE WITH:
PHP Code:

    $profilefields $db->query_read_slave("
        SELECT *
        FROM " 
TABLE_PREFIX "profilefield
        WHERE searchable = 1
            WHERE form = 0 OR form = 6 " 


FIND:
PHP Code:

    // get extra profile fields
    
$profilefields $db->query_read_slave("
        SELECT *
        FROM " 
TABLE_PREFIX "profilefield
        WHERE searchable = 1
            AND form = 0 

REPLACE WITH:
PHP Code:

    // get extra profile fields
    
$profilefields $db->query_read_slave("
        SELECT *
        FROM " 
TABLE_PREFIX "profilefield
        WHERE searchable = 1
            AND form = 0 OR form = 6 

The correct code should be as follows for the first replacement, the second one is right.

PHP Code:

    $profilefields $db->query_read_slave("
        SELECT profilefieldid, type, data, optional, memberlist, searchable
        FROM " 
TABLE_PREFIX "profilefield
            WHERE form = 0 OR form = 6" 


Mike-D 05-30-2008 12:55 PM

To Wired: Would you please so kindly to tell me: How it's possible to prevent the page switching to the UserCP, after the Settings have been saved. Know what I mean? Let's start an example...

1. Currently I'm on the vbulletin/profile.php?do=extra page
2. After pressing the Save Button the Redirect appears to save the settings
3. After saving the page returned to vbulletin/usercp.php

And exactly the last point I'd like to know how it works. So I'm not sure but I believe it has something to do with that Code below. Especially the last "else" statement...

PHP Code:

if (empty($vbulletin->GPC['gotopassword']))
 {
  
$vbulletin->url 'usercp.php' $vbulletin->session->vars['sessionurl_q'];
 }
  else
 {
 
$vbulletin->url 'profile.php?' $vbulletin->session->vars['sessionurl'] . 'do=editpassword';
 } 


Would you please help me? I'm sure it's just a small thing. Thanks in advance :) -Mike

Mike-D 05-31-2008 10:22 AM

Quote:

Originally Posted by odeezie (Post 1527374)
I figured out why it would not show up.

The Extra Options link in the userCP will not show up if you have the UserCP icons hack installed: https://vborg.vbsupport.ru/showthread.php?t=170558

Once I disabled those icons, it worked just fine. Is there anyway I can make this work with the icons enabled?

Regarding the "Icons for UserCP Navigation 1.2" here an example to add the Extra Profile Link below the "Profile Picture" Link inside the UserCP...

Template USERCP_SHELL_ICONS => Add this Code
Code:

<if condition="$show['profilepiclink']">
          <tr>
            <td class="$navclass[profilepic]" nowrap="nowrap">
                  <table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="20"><img border="0" src="$stylevar[imgdir_misc]/usercp_icons/picture_edit.gif" width="16" height="16"></td>
                            <td><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a></td>
                    </tr>
                  </table>
            </td>
          </tr>
    </if>

<!-- Extra Profile Field -->
<tr>
  <td class="$navclass[extraoptions]" nowrap="nowrap">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="20">
                <img border="0" src="$stylevar[imgdir_misc]/usercp_icons/page_user.gif" width="16" height="16"></td>
                <td><a class="smallfont" href="profile.php?$session[sessionurl]do=extraoptions">$vbphrase[extra_options]</a></td>
          </tr>
    </table>
  </td>
</tr>
<!-- / Extra Profile Field -->

<!-- / My Profile -->


Mike-D 05-31-2008 06:27 PM

Attn To Wired: Could you please help regarding my last Post #62 ??? Please! Thank you :)

UK-Biker 06-01-2008 08:06 AM

This is great, but it would be 500% greater if I could include an image field.

I was going to use the VB_garage mod for our motorbike club site, but ti's not compatible with 3.7

https://vborg.vbsupport.ru/showthrea...63681&page=119

I've installed this mod, and made some extra fields for bike make, model, mods etc but would be awsome if I could include some images. Maybe 2 or 3 images.

I suppose I need to be able to create a New User Profile Field but have the option to have an image field instead of radio buttons or single line text box's etc.


Great hack anyway. Hope somebody can look into images side of it.

SVTOA 06-01-2008 01:28 PM

Quote:

Originally Posted by UK-Biker (Post 1537624)
This is great, but it would be 500% greater if I could include an image field.

I was going to use the VB_garage mod for our motorbike club site, but ti's not compatible with 3.7

https://vborg.vbsupport.ru/showthrea...63681&page=119

I've installed this mod, and made some extra fields for bike make, model, mods etc but would be awsome if I could include some images. Maybe 2 or 3 images.

I suppose I need to be able to create a New User Profile Field but have the option to have an image field instead of radio buttons or single line text box's etc.


Great hack anyway. Hope somebody can look into images side of it.

Not sure what you mean, but I have this working for images as well with Vb Garage and Vb3.7.x. There's a field on my board "VB Garage Picture" using the IMG tag where if the member pastes an image URL into the profile field, it correctly parses the IMG code into the Vb Garage and displays the picture in the Garage section. This is nice because they can put any image they want on the web without having to upload it to my server or use up one of the uploads they get with the garage. I am using this hack for "Edit Vehicle Profile" but I can add any fields I want to that versus only the Timeslip Database fields. it works perfectly...

Audentio 06-01-2008 05:05 PM

I don't see the point in this mod if you can't view what people fill in lol.

UK-Biker 06-01-2008 07:55 PM

Quote:

Originally Posted by SVTOA (Post 1537814)
Not sure what you mean, but I have this working for images as well with Vb Garage and Vb3.7.x. There's a field on my board "VB Garage Picture" using the IMG tag where if the member pastes an image URL into the profile field, it correctly parses the IMG code into the Vb Garage and displays the picture in the Garage section. This is nice because they can put any image they want on the web without having to upload it to my server or use up one of the uploads they get with the garage. I am using this hack for "Edit Vehicle Profile" but I can add any fields I want to that versus only the Timeslip Database fields. it works perfectly...




VB Garage will not install on my 3.7 site

Get the error

Code:

Fatal error: Call to a member function on a non-object in /dir/00/0000000/htdocs/website/admincp/install_vbgarage.php on line 321

Wired1 06-03-2008 02:08 AM

Quote:

Originally Posted by Mike-D (Post 1537214)
Attn To Wired: Could you please help regarding my last Post #62 ??? Please! Thank you :)

When I fix it in a future version :)


Quote:

Originally Posted by UK-Biker (Post 1537624)
Great hack anyway. Hope somebody can look into images side of it.

Well that'd be me since it's my mod :) However, this mod is purely for the input page, so you'd use a different mod to display the image. In this mod, all you'd do is create a profile field that would take in the URL.

Guys, if you're having a problem with someone else's thread, please take it to their thread, not mine!


Quote:

Originally Posted by Audentio (Post 1537988)
I don't see the point in this mod if you can't view what people fill in lol.

Read the thread. People use it with other various mods, some are mine, some aren't. You've already downloaded it I see, so you've either installed it, or not...

Mike-D 06-03-2008 02:05 PM

Quote:

Originally Posted by Wired1 (Post 1539320)
When I fix it in a future version :)

There's no fix needed, because I have deleted that Code. The lines starting with 'gotopassword' makes no sense and is really not needed. Unless there exist an hidden Form Field 'gotopassword' and its value is '1'. After the User is being redirected to the Page to change his password. Without these lines it works perfectly ;)

UK-Biker 06-05-2008 03:49 PM

Quote:

Originally Posted by Wired1 (Post 1539320)


Well that'd be me since it's my mod :) However, this mod is purely for the input page, so you'd use a different mod to display the image. In this mod, all you'd do is create a profile field that would take in the URL.



Any advice on how to create that profile field ?

Wired1 06-05-2008 05:15 PM

Just like every other profile field: from the AdminCP.

UK-Biker 06-06-2008 04:53 PM

Quote:

Originally Posted by Wired1 (Post 1541662)
Just like every other profile field: from the AdminCP.



I'm trying not to sound too thick here, and really appreciate your help and understand it's not part of your mod, BUT I know how to add a custom profile field, but getting it to allow the insertion of an image has stumped me.

I am sorry for bothering you. I'll have a good poke about for maybe a different mod that does what I need.

Many thanks - Still a good mod you have done by the way. Maybe not for me though.

Wired1 06-06-2008 05:21 PM

Depending on where you call and want to display the img, you'd place the appropriate BBCODE or HTML references around it.

UK-Biker 06-07-2008 06:39 AM

Quote:

Originally Posted by Wired1 (Post 1542469)
Depending on where you call and want to display the img, you'd place the appropriate BBCODE or HTML references around it.


Already tried that. Will not display image. Would be much easier to use a mod that has a full editor with insert image option OR an upload option, or something along those lines.

What I want is an option for my members along the lines of vb garage, but vb garage will not work on my site.
(and I've posted on that mods thread with no reply as yet from the developer).

solidlink 06-07-2008 05:09 PM

is it possible to add icon/picture beside the field? for example MSN?

Wired1 06-07-2008 08:56 PM

Quote:

Originally Posted by solidlink (Post 1543320)
is it possible to add icon/picture beside the field? for example MSN?

Please hit the INSTALL button for support.

Why would you want a MSN icon next to a profile field? There's already an IM option for MSN built into vB.

Subah 06-09-2008 04:31 AM

Thanks for the update :)

RedGTiVR6 06-10-2008 07:08 PM

Just install the .xml and that's it for updating I take it?

Wired1 06-10-2008 09:51 PM

Quote:

Originally Posted by RedGTiVR6 (Post 1546069)
Just install the .xml and that's it for updating I take it?

Yes, but if you've upgraded vB, then you'll need to make the manual edits as well.


All times are GMT. The time now is 01:33 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.01837 seconds
  • Memory Usage 1,876KB
  • 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_html_printable
  • (7)bbcode_php_printable
  • (26)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