vb.org Archive

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

Wired1 10-12-2005 10:00 PM

Extra Profile Fields Page
 
This is the 3.5.x version of Zachery's hack by the same name. (linkage)


3.6.0 version: https://vborg.vbsupport.ru/showthread.php?t=123253


This hack will add an extra page to the User CP. This area can be used for extra profile fields that for one reason or another you would like to split from the main list.

Personally, I use this page for PC specs, but it can also be used for other specs as well (e.g. cars). I have the specs in a dropdown list under the user title in each user's post, as well as in their profile page, but that's another hack :) You can see my 3.0.x hack for that here, and the 3.5.x hack for it here.

Here's some examples of how I use this hack (with the Add-On hack, Additional Section within Profile and Dropdown within Posts):
http://www.houseofhelp.com/v2/showthread.php?t=39826
http://www.houseofhelp.com/v2/member.php?u=15

NOTE: The above 2 links show the results of another hack I did that's based upon this one. In otherwords, this hack doesn't add dropdowns in posts, and doesn't hack the member page to display the extra options in a new area. For that, install the Add-On hack, Additional Section within Profile and Dropdown within Posts.

# of plugin hooks: 1
# of php page edits: 3 (or 4)
# of new templates: 1
# of template edits: 1
# of new phrases: 2

The "successfully saved" and extra option search are not tested, but they should both work.

Don't forget to hit INSTALL!.

Wired1 10-13-2005 03:44 AM

Comments / Suggestions / Bug Reports?

Link to 3.6.0 version:
https://vborg.vbsupport.ru/showthread.php?t=123253

-=Sniper=- 10-13-2005 06:10 AM

I will report back when I get home and try it

Billspaintball 10-13-2005 06:12 AM

I think this was just what I was looking for :)

Ummmm... Pics please. :)

Allan 10-13-2005 07:08 AM

little screens please

lamilein 10-13-2005 12:24 PM

great, exactly what i need :)

pipin 10-13-2005 12:27 PM

seems there are some things missing: $vbphrase[edit_system_specs] at
least.

Edit: must be: $vbphrase[edit_extra_options]

profile.php?do=extra doesnt list the extra fields

DivisionByZero 10-13-2005 01:22 PM

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

Bah, I thought I may have missed something. I'll fix it in a couple of min. Going to put new template name back to page, and fix the vB phrases.

Wired1 10-13-2005 03:26 PM

Ok, fixed. Sorry about that, I was sort of reverse engineering it from what I did to my site.

pipin 10-13-2005 04:37 PM

Quote:

Originally Posted by Wired1
Ok, fixed. Sorry about that, I was sort of reverse engineering it from what I did to my site.

great. works better now, but still lacks the extra options in the profil view (as shown here: http://www.houseofhelp.com/v2/member.php?u=15)

gael11 10-13-2005 04:53 PM

I have installed but I don't see the link "edit system spec".
I didn't understant this in the installation file:
Quote:

Add New Phrase

// This adds the label of the edit button in the User CP

Varname = edit_extra_options
Text = Edit Extra Options

// This adds the label for the extra options page within the profile
Varname = extra_options
Text = Extra Options
is it important ?

OOPS I'm tired, that's right.
But the true problem is when I click on my "edit extra options" button, I have a white page like this :(
http://www.image-dream.com/up/1129226848-screen.jpg

Thanks for your help

pipin 10-13-2005 05:09 PM

Quote:

Originally Posted by gael11
I have installed but I don't see the link "edit system spec".
I didn't understant this in the installation file:

is it important ?

OOPS I'm tired, that's right.
But the true problem is when I click on my "edit extra options" button, I have a white page like this :(


Thanks for your help

i run into the same problem, but doing the whole install with the new template called "page" instead of "extra" worked for me.

gael11 10-13-2005 07:29 PM

Yes , in fact my new template was called "Page", I have modified for "page" and I get that now:
https://vborg.vbsupport.ru/

Now, I search how I can add fields :ermm:

Ramsesx 10-13-2005 08:21 PM

Is it possible to put a link in this fields?

Wired1 10-14-2005 12:37 AM

Quote:

Originally Posted by pipin
great. works better now, but still lacks the extra options in the profil view (as shown here: http://www.houseofhelp.com/v2/member.php?u=15)

If you mean the system specs, as I stated, that effect came from another hack using the fields created from this hack. The hack is a 3.0.x hack I did, but it still works (although I am going to update it). here is a link to that hack

Wired1 10-14-2005 12:55 AM

Quote:

Originally Posted by gael11
Yes , in fact my new template was called "Page", I have modified for "page" and I get that now:
http://www.image-dream.com/up/1129235431-screen.jpg

Now, I search how I can add fields :ermm:

You add the profile fields just like it has in the manual.

AdminCP -> User Profile Fields -> Add New User Profile Field -> (select Profile Field Type) ->

Where it says "Display Page" (at the bottom), it asks "Which page displays this option?" Select Options: Extra Options, or Options: ($vbphrase[extra_options])

As for the page being blank, that is normal. Once you add new profile fields into the above area (or edit an existing one and move it there), it should show up.

Try it with one of the default profile fields (just remember to move it back later so as not to confuse your member base).

gael11 10-14-2005 09:09 AM

Thanks it works now.
But is it possible to screen this fields on user profile like this for example:
http://www.image-dream.com/up/112928...anstitre-2.jpg

pipin 10-14-2005 09:15 AM

Quote:

Originally Posted by Wired1
If you mean the system specs, as I stated, that effect came from another hack using the fields created from this hack. The hack is a 3.0.x hack I did, but it still works (although I am going to update it). here is a link to that hack

sorry throw that alltogether ;)

would like to have that put alltogether, great work btw.

Wired1 10-14-2005 05:36 PM

gael11: Do you mean like this?
https://vborg.vbsupport.ru/external/...chmentid=34450

pipin: me too :) Now that I guess I've taken over the 3.5.0 version of Zachary's hack, I could.

I'll try to do the 3.5.0 version of my profile hack this weekend. Most of the code didn't change, except for some PHP code being slightly changed, and moved into a hook.

Setting up the AdminCP stuff for both hacks will be the next big hurdle.

gael11 10-14-2005 06:43 PM

Quote:

Originally Posted by Wired1

Yes like this.

Wired1 10-15-2005 05:16 AM

Quote:

Originally Posted by Wired1
If you mean the system specs, as I stated, that effect came from another hack using the fields created from this hack. The hack is a 3.0.x hack I did, but it still works (although I am going to update it). here is a link to that hack

pipin just asked the same thing.

Ramsesx: Sorry, missed your post. It's just a modification of how profile fields are presented and edited, but their properties haven't changed, In otherwords, I didn't hack that part. I have been thinking about that, unfortunately I can see lots of ways to abuse it, so I'm not going to hack profile permissions just yet. Search the forums though, maybe someone else already did.

gael11 10-15-2005 12:26 PM

Ok big thanks for your answers. I haven't understand.

Ted S 10-15-2005 07:09 PM

Great addon... thanks for getting this out! I just wish this could be done without code hacks... hah!

If you're having trouble showing the custom fields on user's profiles try doing this as well:

in member.php find

PHP Code:

$profilefields $db->query_read("
    SELECT profilefieldid, required, title, type, data, def, height
    FROM " 
TABLE_PREFIX "profilefield
    WHERE form = 0 " 
iif(!($permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canseehiddencustomfields']), "
        AND hidden = 0"
) . "
    ORDER BY displayorder
"
); 

and change it to

PHP Code:

$profilefields $db->query_read("
    SELECT profilefieldid, required, title, type, data, def, height
    FROM " 
TABLE_PREFIX "profilefield
    WHERE form = 0 or form = 6 " 
iif(!($permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canseehiddencustomfields']), " /* hacked for extra profile page --> dive info */
        AND hidden = 0"
) . "
    ORDER BY displayorder
"
); 

Where 6 is the value of this particular profile page.

Wired1 10-17-2005 04:37 AM

Update: didn't get a chance to work on update of other hack this weekend, mondo busy @ work. I'm gonna like that next paycheck though :)

Avalon111 10-18-2005 06:18 AM

Hi!
i am very interested in your modification!

i am runnning a software testing forum at www.elite-squad.net. Its about the free HTPC software Media Portal.

Our members are reporting bugs in the forum, therefor they have to use a system specification template in their posts. they have to post it every time when they start a new bugreport. thats realy borthering me as admin.

::example Bug Report::

it would be realy realy great if you could change your mod a bit to fit your needs.

adding the system specs in the usercp is great!
when posting a reply or starting a new thread a option to add the system specs would realy help us! but it has to be added as text of the message! if the systemspecification would change after i have posted a bugreport the information would get useless.

Or would it be possible that this user specific hardware setup appears automatically when starting a new topic in a specific forum?

This is the template we are using.

Windows Version: your windows version incl. service packs
CPU Type: manufacturer and speed
Memory: amount and type
Motherboard Chipset: manufacturer and model
Video Card: manufacturer and model
Video Card Driver: driver version you used for testing
Video Render Type: VMR9 or Overlay
Video Codec Type & Version: video codec you used for testing
Audio Codec Type & Version: audio codec you used for testing
TV Card: type of TV card, manufacturer and model
TV Card Type: software / hardware / DVB
TV Card Driver: driver version you used for testing
Satelite/CableTV Provider: i.e. Astra 19.2?E

pipin 10-18-2005 08:25 AM

Quote:

Originally Posted by Avalon111

Our members are reporting bugs in the forum, therefor they have to use a system specification template in their posts. they have to post it every time when they start a new bugreport. thats realy borthering me as admin.

::example Bug Report::

it would be realy realy great if you could change your mod a bit to fit your needs.

adding the system specs in the usercp is great!
when posting a reply or starting a new thread a option to add the system specs would realy help us! but it has to be added as text of the message! if the systemspecification would change after i have posted a bugreport the information would get useless.

Or would it be possible that this user specific hardware setup appears automatically when starting a new topic in a specific forum?

thats a great idea, we are running a hardware forum and are considering similar things for a minireview forum, where users can post their reviews about hardware and it would be nice if their whole system would be included in their posting.

and for hardware or software help forums it would be nice too as an option to include system spec at top of the postings. :classic:

Wired1 10-18-2005 10:51 PM

Quote:

Originally Posted by Avalon111
Or would it be possible that this user specific hardware setup appears automatically when starting a new topic in a specific forum?

This is the template we are using.

Windows Version: your windows version incl. service packs
CPU Type: manufacturer and speed
Memory: amount and type
Motherboard Chipset: manufacturer and model
Video Card: manufacturer and model
Video Card Driver: driver version you used for testing
Video Render Type: VMR9 or Overlay
Video Codec Type & Version: video codec you used for testing
Audio Codec Type & Version: audio codec you used for testing
TV Card: type of TV card, manufacturer and model
TV Card Type: software / hardware / DVB
TV Card Driver: driver version you used for testing
Satelite/CableTV Provider: i.e. Astra 19.2?E


Pretty sure it's doable. A conditional trigger could flip the postbit area where you make posts from a blank one to one with the PC specs (as of that posting).

Wired1 10-18-2005 10:56 PM

Quote:

Originally Posted by pipin
thats a great idea, we are running a hardware forum and are considering similar things for a minireview forum, where users can post their reviews about hardware and it would be nice if their whole system would be included in their posting.

and for hardware or software help forums it would be nice too as an option to include system spec at top of the postings. :classic:

The PC specs @ top of posting is already done (the vB 3.0.x hack works fine in 3.5.0). I'll flip out a new hack (double checking code mainly, improvements later) ASAP. Coding ain't #1 on my list after working 10 hours in a day! ATM it looks like my work schedule will be back to normal on Thurs I think. I'm going to try to take a look at the code at least tonight.

Check out www.houseofhelp.com if you want to see the post spec dropdown in action.

BTW Avalon, u know about www.htpcnews.com ? Great HTPC site.

Wired1 10-19-2005 03:52 AM

2.0.2
Nothing to worry about, just removed some code from the instructions that's for my other hack! Here's the snippet I removed:

Code:

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

To create the new hook:


Open /includes/xml/hooks_vbulletin.xml

FIND:

                <hook>member_complete</hook>

AFTER IT ADD:

                <hook>member_extras</hook>


This creates a new hook location:

Hook Location: vBulletin: Member's Profile -> member_extras (see? I told you it would create a new hook!)


Now, we have to place it in the file.

Open member.php

FIND:

// END CUSTOM PROFILE FIELDS
// *************************

AFTER IT ADD:

($hook = vBulletinHook::fetch_hook('member_extras')) ? eval($hook) : false;

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


Wired1 10-19-2005 04:15 AM

Screw looking at code, I finished the other hack:

https://vborg.vbsupport.ru/showthread.php?t=98753

I kinda forgot I had already done 95% of the documentation, just had to clean it up a bit. Please post any questions / comments about it in the new thread.

Avalon111 10-19-2005 04:28 AM

Quote:

Originally Posted by Wired1
BTW Avalon, u know about www.htpcnews.com ? Great HTPC site.

Thank you for the link.
I have been talking with KirbyDE. He is doing the modification for me. I think it will be release here too.

Wired1 10-19-2005 04:34 AM

No problemo. Tell him to check out the add-on hack, it may help him out.

Wired1 10-21-2005 04:12 PM

Simplifying the extra fields entry form in the back end is my next goal, and then multiple pages after that. Of course, my other hack will be similarly upgraded to deal with these changes.

deta 10-26-2005 07:54 PM

Hello!
This change of the php files, must this be?
Is it not to be done possibly this about a Plugin or product without changing the PHPs?

cu Deta

Wired1 10-26-2005 08:23 PM

Nope. There are no plugin locations near this area, and to place an articifial hook at the same locations would defeat the purpose, as they are 1 line hacks.

Also, if you have installed this hack, please hit the install button, thanks!

deta 10-27-2005 05:43 AM

Quote:

Originally Posted by Wired1
Nope. There are no plugin locations near this area, and to place an articifial hook at the same locations would defeat the purpose, as they are 1 line hacks.

Also, if you have installed this hack, please hit the install button, thanks!

Hello!
This is very bad!
I would like to want to change no PHPs on the new 3.5.
Up to now to realize another solution this gabs then always, nevertheless.
I will not install the minced meat!
Although it is a first-class thing.

cu Deta

Wired1 10-27-2005 11:45 PM

If you think it's bad, blame Jelsoft for not placing hooks at every single line. Some hacks just can't be done with only hooks.

moonclamp 10-29-2005 01:37 AM

Great hack, works perfectly ... just one thing I can't find

Where do I edit the "Extra Info Page" text in the navbar breadcrumbs?

moonclamp 10-29-2005 02:00 AM

Quote:

Originally Posted by moonclamp
Great hack, works perfectly ... just one thing I can't find

Where do I edit the "Extra Info Page" text in the navbar breadcrumbs?

Scrap that, I found it in the plugin text.

(I'm tired)


All times are GMT. The time now is 07:46 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.02909 seconds
  • Memory Usage 1,856KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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