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)
-   -   Additional Section within Profile and Dropdown within Posts (https://vborg.vbsupport.ru/showthread.php?t=98753)

Wired1 10-18-2005 10:00 PM

Additional Section within Profile and Dropdown within Posts
 
Link to 3.6.0 version:
https://vborg.vbsupport.ru/showthread.php?t=123254

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 EFP hack is basically the entry form for the data that's manipulated in this hack. Please check out the pics at the EFP 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/v2/showthread.php?t=39826

Example of user profile with specs:
http://www.houseofhelp.com/v2/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


An admin section will eventually be done for this, as well as extra areas to place the new specs within. Because this is based upon the EFP hack, the upgrades in functionality to this hack will depend on the EFP hack's upgrades. In otherwords, staggered upgrades. Other functionality has been recommended and will be added at a later date. Any suggestions are appreciated.

Don't forget to hit INSTALL!

Also, please post where you've installed this, as I'd like to see how people are using it. That'll help me think of new ways to add to it aside from my own needs for this hack. Or if guests can't see the effects, then please post a pic.

Wired1 10-19-2005 04:09 AM

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

pipin 10-19-2005 07:46 AM

Thanx Wired.

Just two points:

You should add that <td class="tcat" width="50%">$vbphrase[group_memberships]</td> has to be changed <td class="tcat" width="50%">$vbphrase[extra_options]</td>

and my extras fields that are set to "Show on Members List - No" are displayed too.

nexialys 10-19-2005 10:41 AM

interesting... really
... your release, please .zip it for easier uses...

Wired1 10-19-2005 12:02 PM

Quote:

Originally Posted by pipin
Thanx Wired.

Just two points:

You should add that <td class="tcat" width="50%">$vbphrase[group_memberships]</td> has to be changed <td class="tcat" width="50%">$vbphrase[extra_options]</td>

Well... it doesn't HAVE to be, but yeah, it would make it neater under certain circumstances. (in otherwords, when coding @ 1 AM, you forget things! :) ) I left them separate in case someone wanted different titles for both areas, although I will update the instruction file with that note, no version # change though.

Quote:

Originally Posted by nexialys
please .zip it for easier uses...

It's only 7K though, and the XML file is not needed per se, as the same code is in the instruction file. IMHO, it'd take longer to download 1 file and unzip it then to download 2 files.

Wired1 10-19-2005 01:52 PM

Quote:

Originally Posted by pipin
and my extras fields that are set to "Show on Members List - No" are displayed too.

Displayed in the members list you mean?

pipin 10-19-2005 02:03 PM

Quote:

Originally Posted by Wired1
Displayed in the members list you mean?

in the profile, sorry left that out. :surprised

i had a dropdown that sits below the user's title before your hack was released and i have one extra field that can be set to no or yes, so the member can decide himself if the specs are shown in this dropdown or not.

Wired1 10-19-2005 02:47 PM

Ahhh, gotcha. Possible, but ATM I can't think of a reason why someone would put info in the list, but not want anyone to see it. Got an example?

One thing I intend to add on is for a field to be able to get info from 1 of 2 different areas. Example: the field by default is a dropdown selection, with all of the current motherboards listed in it. But what if they have one that's so new, it isn't on the list? Then they can select OTHER: and slap something in.

Combining 2 fields to show on one line is relatively easy (as someone will eventually bring this idea up).

predatorkill 10-19-2005 05:23 PM

installed,works perfectly!!!

take a look http://www.xbox-live.gr/forum/showth...hp?p=95#post95

click on Predators games at the bottom of the page to see!!!

it's a little bit modified to meet my needs!!

Thanx m8,great plug in!!

EDIT: found a little bug,i dont know if i did anything wrong.When i click "Edit"(via AJAX)
on a post,when i save it and click the tab it wont show up!!If i click refresh,everything's fine!

Wired1 10-19-2005 07:29 PM

Quote:

Originally Posted by predatorkill
installed,works perfectly!!!

take a look http://www.xbox-live.gr/forum/showth...hp?p=95#post95

click on Predators games at the bottom of the page to see!!!

it's a little bit modified to meet my needs!!

Thanx m8,great plug in!!

EDIT: found a little bug,i dont know if i did anything wrong.When i click "Edit"(via AJAX)
on a post,when i save it and click the tab it wont show up!!If i click refresh,everything's fine!

Nice! The info in the dropdown, it's supposed to be in one line? Where'd the info come from?

Never noticed that bug, pretty sure it's because of how AJAX works. I'll ask an AJAX-savvy friend of mine about it.


All times are GMT. The time now is 07:34 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.01221 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)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
  • (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