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)

ImportPassion 12-19-2005 04:40 AM

Quote:

Originally Posted by Cyricx
Nice!! I actually found a way to take out one of the function_user edits by adding another hook into usercp_nav_start but still had to do the other file edit :)

I hope you compile this into a product xml, would make the phrases and such much easier :)

[high]* Cyricx installs![/high]

I am rewriting this as a Product. I was hoping to find a hook for the CASE statement, but there is none.

Wired1 12-19-2005 05:09 AM

Code Edits are needed. If I could have used a hook, or made one for the code, I would have. IIRC hack rewrites can't be posted w/o permission.

ImportPassion 12-19-2005 05:17 AM

u did miss one tho.

are u saying I don't have permission? I was gonna ask once it was done. More for me anyway, just way cleaner. No need to add phrases manually and crap like that.

Wired1 12-19-2005 11:44 AM

It's just common courtesy to ask before publicly stating something like that, not after. Where'd I miss a hook?

Cyricx 12-19-2005 12:28 PM

This

Code:

// *** open includes/functions_user.php

        find

                'attachments'

        add under

                'extra',

(don't forget to place a comma after 'attachments')

Can be replaced by

Plugin - usercp_nav_start
Code:

$cells[] = 'extra';
I just made a product and then added the plugins and stuff by hand.

Wired, it would really be much easier to toss all this into a product, or at least give 7thgen permission to post it in this thread then you can update the mainattachment.

It takes a 10-15 minute install to about a 1 minute install, because you don't have to keep clicking all around to languages and phrases, to templates, etc and cutting and pasting like mad ;)

-=Sniper=- 12-19-2005 01:38 PM

nice, I would be interested in a product version, would make the creating of more pages easy.

Wired1 12-19-2005 02:34 PM

Quote:

Originally Posted by Cyricx
This

Code:

// *** open includes/functions_user.php

        find

                'attachments'

        add under

                'extra',

(don't forget to place a comma after 'attachments')

Can be replaced by

Plugin - usercp_nav_start
Code:

$cells[] = 'extra';
I just made a product and then added the plugins and stuff by hand.

Wired, it would really be much easier to toss all this into a product, or at least give 7thgen permission to post it in this thread then you can update the mainattachment.

It takes a 10-15 minute install to about a 1 minute install, because you don't have to keep clicking all around to languages and phrases, to templates, etc and cutting and pasting like mad ;)

Damned if I know why a search on the instruction file didn't find that function lol.

Code:

$cells[] = 'extra';
That appends the array I take it? (rusty PHP skillz) [EDIT: Why yes, yes it does!)

Nothing against a product, just haven't been able to find the time lately to work on it (work and MCSE classes).

Anyone can product it up and send it to me, and I'll update the install file, just would appreciate a heads up before everyone else so I can look it over and whatnot (may try to slip in an update if time allows). Of course I'll append the intro with a nod to whomever's product compilation I use.

Antivirus 12-21-2005 07:44 PM

Great idea wired! I would however love to see this as a product before installing it permanently. Also, i'm looking forward to multiple pages as well, it seems as though there's only on at them moment, unless I am mistaken?

Snake 01-01-2006 05:46 PM

I have reinstalled the hack once again but my forums was kinda messed up so I'd no other choice but to clean up all the other hacks that existed. Anyway, is it possible to change the URL from "http://www.metalgearforums.com/profile.php?do=extra" to "http://www.metalgearforums.com/profile.php?do=mginfo"?

Wired1 01-01-2006 06:53 PM

Quote:

Originally Posted by Aftermath
I have reinstalled the hack once again but my forums was kinda messed up so I'd no other choice but to clean up all the other hacks that existed. Anyway, is it possible to change the URL from "http://www.metalgearforums.com/profile.php?do=extra" to "http://www.metalgearforums.com/profile.php?do=mginfo"?

Yep!

change
Code:

if ($_REQUEST['do'] == 'extra')
to:
Code:

if ($_REQUEST['do'] == 'mginfo')

change
Code:

        construct_usercp_nav('extra');
to:
Code:

        construct_usercp_nav('mginfo');
change
Code:

$navclass[extra]
to:
Code:

$navclass[mginfo]
change
Code:

<input type="hidden" name="do" value="updateextra" />
to:
Code:

<input type="hidden" name="do" value="updatemginfo" />

Should do it I think. BTW, nice use of the hack!


All times are GMT. The time now is 12:20 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.01340 seconds
  • Memory Usage 1,749KB
  • 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
  • (13)bbcode_code_printable
  • (3)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