Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Additional Section within Profile and Dropdown within Posts Details »»
Additional Section within Profile and Dropdown within Posts
Version: 2.1.1, by Wired1 Wired1 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.8 Rating:
Released: 08-06-2006 Last Update: 06-18-2007 Installs: 182
Uses Plugins Template Edits
Code Changes  
No support by the author.

NOTE: After checking out the vBulletin 3.7 First Look thread, which contains significant changes to the Member Profile page, it is clear that this mod as-is will probably not work properly when it comes to displaying the Extra Profile Info on that page. As soon as an official 3.7 comes out, I'll start working on the changes.

The 3.5.x version of this hack can be found here.

This hack builds upon my Extra Profile Fields Page hack. This template mod lets you take the extra fields from that hack and places them within a dropdown that sits below the user's title within each post, as well as replaces the Group Memberships area with a listing of only these specs. The EPFP hack is basically the entry form for the data that's manipulated in this hack. Please check out the pics at the EPFP hack link to get the full idea.

In my case, it is used for PC specs (and as you will see the instructions are tailored towards this), however it can be easily used for parts or specifications of almost anything (car parts for example).

An example is shown here:
http://www.houseofhelp.com/forums/sh...ad.php?t=39826

Example of user profile with specs:
http://www.houseofhelp.com/forums/member.php?userid=15


# of plugin hooks: 1
# of php page edits: 1 (just 1 line to add the custom hook line into member.php)
# of template edits: 3
# of phrase edits: 1

Any suggestions are appreciated.

Don't forget to hit INSTALL!

Support will only be given to people who have hit install.

Also, please post where you've installed this, as I'd like to see how people are using it. Or if guests can't see the effects, then please post a pic.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 09-08-2006, 05:27 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ninth Dimension
My idea is based around the fact I run an interactive story site that intregrates with my forum. What I'm looking to do is query the database for each user to see if they have made any posts on the story site, and have links to them listed under their username, as well as on their member profile page.
I take it you already know the appropriate queries to gather the story site info? To be honest, that would be a different hack, as mine gathers static profile field info, whereas what I believe you are looking to accomplish will gather constantly changing data.

Only thing I can think of offhand would be to create some vB database queries that hit the story tables and save the results as vB variables (all of this in the member page), and then slap the variable into the member page similar to how I've done. The ones under each user's name in each post could be more difficult, depending on how your story site tables link with vB, if at all.


Quote:
Originally Posted by Jericho2004
This is strange. The dropdown only shows up for admins and mods on my site and not for regular members. Anyone know what would cause that?
It would have to be wrapped in conditionals that limit the viewing for this to happen. PM me the code for your member page and I'll analyze it.
Reply With Quote
  #63  
Old 09-09-2006, 12:00 AM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wired1
I take it you already know the appropriate queries to gather the story site info?
Oh yeah, that's no problem at all. I can do the queries and everything else I need to do, it was more the drop-down list thing you have in the postbit that I was most interested in, for someone to hit the link and have a list of the chapters they posted appear - although I think at this point, that might be a bit advanced for me

I know that this is not really the best place to talk about it, but I was wondering if you might be able to do me a HUGE favour? I'm totally new to the way that vB handles hacks, etc.. If I understand it correctly, there are hooks dotted about within the files, you just choose the most relevent one (say, at a point just before you want the data to display), and insert some code, say a query.. which you can then load into a variable, and have displayed within a template? (I'm probally making it sound really basic, but I think that's how it's meant to work).

Seeing as you've taken over the group membership box on the member profile page (which is where I'd probally have my chapter links appear), would you be kind enough to let me know which hook you're using, and some basic tips on how I should go about creating it?

Thank you
Reply With Quote
  #64  
Old 09-09-2006, 01:00 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hooks are within PHP pages, and the one I used I made and slapped into the XML hook listings page and the PHP file

The hook isn't related to the location of the extra profile field's location on the member page though. That's due to the edits made in the member page in the instructions. The hook code gets the specially marked profile fields from the profile field list. The template edits basically just relabel the box and call the list of marked profile fields.

The dropdown code is manually created by the forum admin who creates it, as per the instructions. It simply calls the profile fields they want.
Reply With Quote
  #65  
Old 09-09-2006, 01:44 AM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there, thank you for the info... I've actully succeded in my task, I don't know if I've done is the best way it can be done, but so far it appears to be working: http://theice.co.uk/member.php?u=5 (take a look at where the group membership should be).

I've used the hook of member_complete (I did try using member_start, but the $userinfo[userid] variable wasn't available), and as I say, it looks like it's working

All I need to do now is explore some more of your code and see if I can't borrow what you've done in the postbit

Cheers for the help
Reply With Quote
  #66  
Old 09-09-2006, 02:15 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ninth Dimension
Hi there, thank you for the info... I've actully succeded in my task, I don't know if I've done is the best way it can be done, but so far it appears to be working: http://theice.co.uk/member.php?u=5 (take a look at where the group membership should be).

I've used the hook of member_complete (I did try using member_start, but the $userinfo[userid] variable wasn't available), and as I say, it looks like it's working

All I need to do now is explore some more of your code and see if I can't borrow what you've done in the postbit

Cheers for the help
Looks good!
Reply With Quote
  #67  
Old 09-09-2006, 10:53 PM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a problem :-(...

the dropdown list doesn' t excist

and i think that there is a mistake with the member info page... at the top it shows me this:

Code:
Parse error: syntax error, unexpected '<' in /var/www/vhosts/localhost/subdomains/forum/httpdocs/member.php(625) : eval()'d code on line 1
any ideas?
Reply With Quote
  #68  
Old 09-10-2006, 01:42 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the code shown indicates a typo.

Have you followed all of the instructions for the dropdown?
Reply With Quote
  #69  
Old 09-10-2006, 03:44 PM
hexus.net hexus.net is offline
 
Join Date: Oct 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get the same thing - just installed it and my member page does that too.

Double checked I hadn't done a typo :O
Reply With Quote
  #70  
Old 09-10-2006, 03:56 PM
Jericho2004 Jericho2004 is offline
 
Join Date: Jan 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wired1
I take it you already know the appropriate queries to gather the story site info? To be honest, that would be a different hack, as mine gathers static profile field info, whereas what I believe you are looking to accomplish will gather constantly changing data.

Only thing I can think of offhand would be to create some vB database queries that hit the story tables and save the results as vB variables (all of this in the member page), and then slap the variable into the member page similar to how I've done. The ones under each user's name in each post could be more difficult, depending on how your story site tables link with vB, if at all.




It would have to be wrapped in conditionals that limit the viewing for this to happen. PM me the code for your member page and I'll analyze it.
I fixed the dropdown issue. There happened to be one small part of the code that pointed to field5. That was not identified in the instructions. I still cannot get the public profile area in the bottom right quadrant to grab the system specs from the usercp. The instructions are too vague for non-coders and miss alot of specifics. Other than that, everything else is working.
Reply With Quote
  #71  
Old 09-10-2006, 04:02 PM
cyvok cyvok is offline
 
Join Date: Apr 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have now installed both of these hacks. Its the little things that add so much!

Thank you
-CYVOK-
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04638 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete