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)

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;

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



All times are GMT. The time now is 02:22 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.01298 seconds
  • Memory Usage 1,763KB
  • 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
  • (5)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