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 Tab (https://vborg.vbsupport.ru/showthread.php?t=180329)

neologan 05-26-2008 03:30 AM

what would be the best way to revamp the styling for the fields? i mean for all the pc specs on the tab, how can i style this with my own html?

Wired1 05-26-2008 03:53 AM

Quote:

Originally Posted by neologan (Post 1531485)
what would be the best way to revamp the styling for the fields? i mean for all the pc specs on the tab, how can i style this with my own html?

Damned if I know :) The mod's pretty much a schmorgasboard of code from my previous mods + this tutorial on how to make a tab.

Put it this way: Any code that works on the About Me Tab's profile fields should automatically work on this tab, and if it doesn't, it should only take a modification or two to get it to work here.

There's 3 points where it intersects with templates:

In the Plugin: Extra Profile Fields Tab

Code:

        if ($profilefield['value'] != '')
        {
                $show['extrainfo'] = true;
                eval('$category[\'fields\'] .= "' . fetch_template('memberinfo_profilefield') . '";');
        }
}

if ($category['fields'])
{
        eval('$profilefields .= "' . fetch_template('memberinfo_profilefield_category') . '";');
}

and then of course there's the TEMPLATE: memberinfo_block_EPFP_tab.

odeezie 05-26-2008 05:22 AM

I dont have the knowledge of this stuff so this may be completely absurd, but is there a way to put a small picture on the Extra Profile Tab?

I am using this mod on a Motocross forum and just got it going today and it is very well liked. The only thing I have had a few people ask for is if they could put a picture of their bike in there as well. Similar to how the About Me tab has their signature picture.

Is this possible to do?

Wired1 05-26-2008 07:10 AM

Quote:

Originally Posted by odeezie (Post 1531518)
I dont have the knowledge of this stuff so this may be completely absurd, but is there a way to put a small picture on the Extra Profile Tab?

I am using this mod on a Motocross forum and just got it going today and it is very well liked. The only thing I have had a few people ask for is if they could put a picture of their bike in there as well. Similar to how the About Me tab has their signature picture.

Is this possible to do?

Since it's done in another tab, it's definitely possible, looking at different ways to do it. Where would you be storing this picture though?

Jase2 05-26-2008 10:31 AM

Anyway to stop this using any queries, or at least cut down on one?

odeezie 05-26-2008 02:31 PM

Quote:

Originally Posted by Wired1 (Post 1531580)
Since it's done in another tab, it's definitely possible, looking at different ways to do it. Where would you be storing this picture though?

I have no idea where I could store it. I guess anywhere would work, similar to the profile or signature picture. Or maybe have it hosted on photobucket or something like that and let them link to the offsite picture. I really dont know how that would work. I think it would be cool if you could go to the usercp "edit extra options" and put it in there at the bottom of the specs list.

Let me know if I can be of any help. I dont know much about code, so if I cant I will be sure to throw some $ your way. :up:

Jase2 05-26-2008 03:56 PM

Ummm, how would I make each category title bold in the tab? For example: CPU bold, Hard Drive bold ect ect.

neologan 05-26-2008 04:00 PM

it would be cool to be able to hook some album pics to the tab, but that sounds like a lo of work.

Wired1 05-27-2008 02:08 AM

Quote:

Originally Posted by Jase2 (Post 1531692)
Anyway to stop this using any queries, or at least cut down on one?

? It only has ONE query, and it's necessary for now.


Quote:

Originally Posted by odeezie (Post 1531883)
I guess anywhere would work, similar to the profile or signature picture. I think it would be cool if you could go to the usercp "edit extra options" and put it in there at the bottom of the specs list.

Quote:

Originally Posted by neologan (Post 1531984)
it would be cool to be able to hook some album pics to the tab, but that sounds like a lo of work.

The profile and sig pics have their own locations within the database, and I'd like to stay away from any DB edits if possible. The album is what I was thinking of, but I haven't looked at the album code yet.


Quote:

Originally Posted by Jase2 (Post 1531977)
Ummm, how would I make each category title bold in the tab? For example: CPU bold, Hard Drive bold ect ect.

You mean the Profile Field titles, not categories. I'm just using the standard memberinfo_profilefield template for them, just like the About Me tab uses.

Jase2 05-27-2008 10:11 AM

Ok, no worries. Well, I did some testing and this seems to use two queries. Not a big deal, though I guess.


All times are GMT. The time now is 08:05 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.01106 seconds
  • Memory Usage 1,745KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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