PDA

View Full Version : Extra Profile Fields Page


Wired1
10-12-2005, 10:00 PM
This is the 3.5.x version of Zachery (https://vborg.vbsupport.ru/member.php?u=18025)'s hack by the same name. (linkage (https://vborg.vbsupport.ru/showthread.php?t=59618))


3.6.0 version: https://vborg.vbsupport.ru/showthread.php?t=123253


This hack will add an extra page to the User CP. This area can be used for extra profile fields that for one reason or another you would like to split from the main list.

Personally, I use this page for PC specs, but it can also be used for other specs as well (e.g. cars). I have the specs in a dropdown list under the user title in each user's post, as well as in their profile page, but that's another hack :) You can see my 3.0.x hack for that here (https://vborg.vbsupport.ru/showthread.php?t=82040), and the 3.5.x hack for it here (https://vborg.vbsupport.ru/showthread.php?t=98753).

Here's some examples of how I use this hack (with the Add-On hack, Additional Section within Profile and Dropdown within Posts (https://vborg.vbsupport.ru/showthread.php?t=98753)):
http://www.houseofhelp.com/v2/showthread.php?t=39826
http://www.houseofhelp.com/v2/member.php?u=15

NOTE: The above 2 links show the results of another hack I did that's based upon this one. In otherwords, this hack doesn't add dropdowns in posts, and doesn't hack the member page to display the extra options in a new area. For that, install the Add-On hack, Additional Section within Profile and Dropdown within Posts (https://vborg.vbsupport.ru/showthread.php?t=98753).

# of plugin hooks: 1
# of php page edits: 3 (or 4)
# of new templates: 1
# of template edits: 1
# of new phrases: 2

The "successfully saved" and extra option search are not tested, but they should both work.

Don't forget to hit INSTALL! (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=98282).

Wired1
10-13-2005, 03:44 AM
Comments / Suggestions / Bug Reports?

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

-=Sniper=-
10-13-2005, 06:10 AM
I will report back when I get home and try it

Billspaintball
10-13-2005, 06:12 AM
I think this was just what I was looking for :)

Ummmm... Pics please. :)

Allan
10-13-2005, 07:08 AM
little screens please

lamilein
10-13-2005, 12:24 PM
great, exactly what i need :)

pipin
10-13-2005, 12:27 PM
seems there are some things missing: $vbphrase[edit_system_specs] at
least.

Edit: must be: $vbphrase[edit_extra_options]

profile.php?do=extra doesnt list the extra fields

DivisionByZero
10-13-2005, 01:22 PM
hack works, other than the fact that vB seems to have a real nasty time saving a new template with the name "extra". Other than that, some template cleanups "system specs"?? and its all set.

Thanks a bunch!

Wired1
10-13-2005, 03:15 PM
Bah, I thought I may have missed something. I'll fix it in a couple of min. Going to put new template name back to page, and fix the vB phrases.

Wired1
10-13-2005, 03:26 PM
Ok, fixed. Sorry about that, I was sort of reverse engineering it from what I did to my site.

pipin
10-13-2005, 04:37 PM
Ok, fixed. Sorry about that, I was sort of reverse engineering it from what I did to my site.

great. works better now, but still lacks the extra options in the profil view (as shown here: http://www.houseofhelp.com/v2/member.php?u=15)

gael11
10-13-2005, 04:53 PM
I have installed but I don't see the link "edit system spec".
I didn't understant this in the installation file:

Add New Phrase

// This adds the label of the edit button in the User CP

Varname = edit_extra_options
Text = Edit Extra Options

// This adds the label for the extra options page within the profile
Varname = extra_options
Text = Extra Options

is it important ?

OOPS I'm tired, that's right.
But the true problem is when I click on my "edit extra options" button, I have a white page like this :(
http://www.image-dream.com/up/1129226848-screen.jpg

Thanks for your help

pipin
10-13-2005, 05:09 PM
I have installed but I don't see the link "edit system spec".
I didn't understant this in the installation file:

is it important ?

OOPS I'm tired, that's right.
But the true problem is when I click on my "edit extra options" button, I have a white page like this :(


Thanks for your help

i run into the same problem, but doing the whole install with the new template called "page" instead of "extra" worked for me.

gael11
10-13-2005, 07:29 PM
Yes , in fact my new template was called "Page", I have modified for "page" and I get that now:
https://vborg.vbsupport.ru/

Now, I search how I can add fields :ermm:

Ramsesx
10-13-2005, 08:21 PM
Is it possible to put a link in this fields?

Wired1
10-14-2005, 12:37 AM
great. works better now, but still lacks the extra options in the profil view (as shown here: http://www.houseofhelp.com/v2/member.php?u=15)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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=82040)

Wired1
10-14-2005, 12:55 AM
Yes , in fact my new template was called "Page", I have modified for "page" and I get that now:
http://www.image-dream.com/up/1129235431-screen.jpg

Now, I search how I can add fields :ermm:

You add the profile fields just like it has in the manual.

AdminCP -> User Profile Fields -> Add New User Profile Field -> (select Profile Field Type) ->

Where it says "Display Page" (at the bottom), it asks "Which page displays this option?" Select Options: Extra Options, or Options: ($vbphrase[extra_options])

As for the page being blank, that is normal. Once you add new profile fields into the above area (or edit an existing one and move it there), it should show up.

Try it with one of the default profile fields (just remember to move it back later so as not to confuse your member base).

gael11
10-14-2005, 09:09 AM
Thanks it works now.
But is it possible to screen this fields on user profile like this for example:
http://www.image-dream.com/up/1129284697-Sanstitre-2.jpg

pipin
10-14-2005, 09:15 AM
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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=82040)

sorry throw that alltogether ;)

would like to have that put alltogether, great work btw.

Wired1
10-14-2005, 05:36 PM
gael11: Do you mean like this?
https://vborg.vbsupport.ru/external/2005/10/1.php?attachmentid=34450

pipin: me too :) Now that I guess I've taken over the 3.5.0 version of Zachary's hack, I could.

I'll try to do the 3.5.0 version of my profile hack this weekend. Most of the code didn't change, except for some PHP code being slightly changed, and moved into a hook.

Setting up the AdminCP stuff for both hacks will be the next big hurdle.

gael11
10-14-2005, 06:43 PM
gael11: Do you mean like this?
https://vborg.vbsupport.ru/attachment.php?attachmentid=34450

Yes like this.

Wired1
10-15-2005, 05:16 AM
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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=82040)

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


$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


$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 (http://mediaportal.sourceforge.net).

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:: (http://mediaportal.elite-squad.net/forum/showthread.php?t=183)

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
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:: (http://mediaportal.elite-squad.net/forum/showthread.php?t=183)

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
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
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:

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

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;

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

Wired1
10-19-2005, 04:15 AM
Screw looking at code, I finished the other hack:

https://vborg.vbsupport.ru/showthread.php?t=98753

I kinda forgot I had already done 95% of the documentation, just had to clean it up a bit. Please post any questions / comments about it in the new thread.

Avalon111
10-19-2005, 04:28 AM
BTW Avalon, u know about www.htpcnews.com ? Great HTPC site.
Thank you for the link.
I have been talking with KirbyDE. He is doing the modification for me. I think it will be release here too.

Wired1
10-19-2005, 04:34 AM
No problemo. Tell him to check out the add-on hack, it may help him out.

Wired1
10-21-2005, 04:12 PM
Simplifying the extra fields entry form in the back end is my next goal, and then multiple pages after that. Of course, my other hack will be similarly upgraded to deal with these changes.

deta
10-26-2005, 07:54 PM
Hello!
This change of the php files, must this be?
Is it not to be done possibly this about a Plugin or product without changing the PHPs?

cu Deta

Wired1
10-26-2005, 08:23 PM
Nope. There are no plugin locations near this area, and to place an articifial hook at the same locations would defeat the purpose, as they are 1 line hacks.

Also, if you have installed this hack, please hit the install button, thanks!

deta
10-27-2005, 05:43 AM
Nope. There are no plugin locations near this area, and to place an articifial hook at the same locations would defeat the purpose, as they are 1 line hacks.

Also, if you have installed this hack, please hit the install button, thanks!

Hello!
This is very bad!
I would like to want to change no PHPs on the new 3.5.
Up to now to realize another solution this gabs then always, nevertheless.
I will not install the minced meat!
Although it is a first-class thing.

cu Deta

Wired1
10-27-2005, 11:45 PM
If you think it's bad, blame Jelsoft for not placing hooks at every single line. Some hacks just can't be done with only hooks.

moonclamp
10-29-2005, 01:37 AM
Great hack, works perfectly ... just one thing I can't find

Where do I edit the "Extra Info Page" text in the navbar breadcrumbs?

moonclamp
10-29-2005, 02:00 AM
Great hack, works perfectly ... just one thing I can't find

Where do I edit the "Extra Info Page" text in the navbar breadcrumbs?

Scrap that, I found it in the plugin text.

(I'm tired)

Wired1
10-29-2005, 02:16 AM
No problemo, and thanks for hitting install! :)

Where's it installed?

moonclamp
10-29-2005, 02:40 AM
Where's it installed?

You have to be a member to see anything so here is a screenie (You'll see I edited the template slightly too by adding the catagory strip thing at the top)

I also added the bit to show the info in the groups pane too

Wired1
10-29-2005, 03:00 AM
Kewlness. Don't forget the other install button! :) (yeah, I'm install crazy lol)

moonclamp
10-29-2005, 03:17 AM
Kewlness. Don't forget the other install button! :) (yeah, I'm install crazy lol)

Nearly forgot that one ... done it now though :)

Wired1
10-29-2005, 07:36 PM
thanks! Oooohhhh, i posted @ 00:00... that's a new one lol!

The Chief
11-02-2005, 12:23 AM
Ok, I really tried everything, and it just doesn't seem to work...

I really went through all the steps 3 times each but it just doesn't work...

First of all, when you go to your User CP, it comes out blank.

Second, when I enter ..../profile.php?do=extra in my firefox, I can see the fields that I got matched, I enter something and it doesn't show me the Redirect thing you said it would...

Third, I cannot see anything changed in my profile.

Can you please tell me what is wrong?

Wired1
11-02-2005, 12:58 AM
Redirect's bugged, damned if I know why, still tracking it down.

As for the other parts, sounds like you need to install this:

https://vborg.vbsupport.ru/showthread.php?t=98753

Wired1
11-02-2005, 01:08 AM
Also, PLEASE hit install!

The Chief
11-02-2005, 01:28 AM
It is not installed yet, your second plug-in is really complicated to modify...

What is up with this: <a href="#specs">$post[username]'s PC Specs</a>..

<div id="specs_$post[postid]" class="vbmenu_control">
what do i change it to? and where do I change them?

The Chief
11-02-2005, 02:33 AM
Installed and works fine, but their is still a edit_extra_fields problem with the phrases...

I really don't get why... I added it manually though and it works, thanks again!

*clicks install*

Wired1
11-02-2005, 02:43 AM
The bolded areas you don't change, or if you do, they need to be the same word.

All phrases are added manually in this hack. Also, those involve the other hack, not this one.

Hellen
11-08-2005, 03:45 PM
Hello gael11,

thank you very much for this hack. Exact the tool I need :) *happy*
And now I go and look for the Add-On - but before i will do my click ;)

Wired1
11-08-2005, 05:00 PM
Hello gael11,

thank you very much for this hack. Exact the tool I need :) *happy*
And now I go and look for the Add-On - but before i will do my click ;)

Um, I created this hack, not gael11, but thanks!

rootnik
12-01-2005, 01:21 PM
For me, installing this was like pulling teeth. It took me a while to figure out what importing the XML file did and didn't do.

That said, I am new to vbulletin (even though I did buy a year lease a couple years ago). This is much easier than any of the hacks I installed back then...

It works great though! I needed this badly for the site I am building. It makes those important custom fields allot easier to find.

*clicks install*

Wired1
12-01-2005, 01:27 PM
For me, installing this was like pulling teeth. It took me a while to figure out what importing the XML file did and didn't do.

That said, I am new to vbulletin (even though I did buy a year lease a couple years ago). This is much easier than any of the hacks I installed back then...

It works great though! I needed this badly for the site I am building. It makes those important custom fields allot easier to find.

*clicks install*

Was it just installing hacks on 3.5.x that was new and maybe causing confusion, or was it something in the instruction file?

rootnik
12-01-2005, 07:29 PM
Was it just installing hacks on 3.5.x that was new and maybe causing confusion, or was it something in the instruction file?

It was more of me not knowing anything about 3.5X than anything else...

Your instructions were fine, thanks :)

Wired1
12-01-2005, 08:10 PM
It was more of me not knowing anything about 3.5X than anything else...

Your instructions were fine, thanks :)

Good to know!

rootnik
12-01-2005, 10:03 PM
Wired,

Any idea how I can force users to enter numbers in these extra fields?

Not really related to your mod, just thought you may know where to look since you have worked with the profile fields as much as you have...

Wired1
12-01-2005, 10:42 PM
Wired,

Any idea how I can force users to enter numbers in these extra fields?

Not really related to your mod, just thought you may know where to look since you have worked with the profile fields as much as you have...

Yep.

AdminCP -> User Profie Fields -> User Profile Field Manager -> Edit the field. There's an option there that says: Field Required.

I have the extra specs set to No, but show at registration. It's used a lot, which has helped out a lot. Make a sticky on how to get to the new area, and how to add info to it.

I've got a Replacement Variable (under Admin CP -> Styles and Templates -> Replacement Variable Manager) that I use for that.

Example:
Search for Text: **extraspecs**
Replace with Text: [URL=LINK ]Click here to add info to extra specs[URL]

Warrior
12-02-2005, 12:16 PM
This looks like something I have been looking for - but I am confused... does it replace showing what usergroups the member is subscribed to... when someone views their profile?

Nice hack!

rootnik
12-02-2005, 01:34 PM
Yep.

AdminCP -> User Profie Fields -> User Profile Field Manager -> Edit the field. There's an option there that says: Field Required.

I have the extra specs set to No, but show at registration. It's used a lot, which has helped out a lot. Make a sticky on how to get to the new area, and how to add info to it.

I've got a Replacement Variable (under Admin CP -> Styles and Templates -> Replacement Variable Manager) that I use for that.

Example:
Search for Text: **extraspecs**
Replace with Text: [URL=LINK ]Click here to add info to extra specs[URL]

I think you misunderstood. What I was asking is how to force them to enter a numerical value into the extra field (not wanting them to be able to enter text). Now that I think of it, it is much more complicated than I earlier thought it would be.

Thanks for answering though! :)

Wired1
12-02-2005, 02:54 PM
I think you misunderstood. What I was asking is how to force them to enter a numerical value into the extra field (not wanting them to be able to enter text). Now that I think of it, it is much more complicated than I earlier thought it would be.

Thanks for answering though! :)

Instead of making the Profile Field Type a Single-Line Text Box, you could try Single-Selection Menu, assuming there's a limited amount of selections they would need. If not, you may want to post a Modification Request (https://vborg.vbsupport.ru/forumdisplay.php?f=112) for it. If this is how those RPG hacks are done, you'll probably get a response pretty quickly. I'll look into it this weekend as well as a separate hack. Just did a quick search, no one's posted a hack like that as far as I could see.

Wired1
12-02-2005, 03:10 PM
This looks like something I have been looking for - but I am confused... does it replace showing what usergroups the member is subscribed to... when someone views their profile?

Nice hack!

It does replace it (as I haven't seen many people use that at all), however there's a simple work around:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=98753
https://vborg.vbsupport.ru/showpost.php?p=816812&postcount=14

Don't forget to hit Install if you use a hack! :)

Snake
12-02-2005, 05:16 PM
Great, just installed the hack and works like a charm! :)

Wired1
12-02-2005, 06:27 PM
Great, just installed the hack and works like a charm! :)
Glad to hear!

rootnik
12-07-2005, 11:13 PM
Wired1,

Is there an easy way to have 2 seperate extra profile pages?

I know it can be done by picking through your code make changes, but if there is an easier way you may be able to save me a big headache :)

Wired1
12-08-2005, 03:58 AM
Yep, you could pick through the code and... :)

It's on the list :) Just gotta hit the lottery and get rid of this darn job, then hacks will be edited more often!

Curious: why more than one page?

SupermanInNY
12-12-2005, 09:17 PM
Is there a Heck that allows me to add more information about the user, custom fields, but that the user CANNOT modify?

Wired1
12-12-2005, 10:14 PM
Is there a Heck that allows me to add more information about the user, custom fields, but that the user CANNOT modify?
There's no need for a hack, it's built into vB.

AdminCP -> User Profile Fields -> User Profile Field Manager -> (select a field) -> EDIT -> Field Editable by User (Yes, No, Only at registration)

SupermanInNY
12-12-2005, 10:47 PM
(where can I hide - feeling very stupid not seeing this one earlier).
Thanks!
Thats exactly what I was looking for.

-Alon

Wired1
12-13-2005, 01:50 AM
No problemo! Don't forget to hit install if you installed it!

The Chief
12-14-2005, 03:35 AM
works great on vB 3.5.2, yay! :)

Mastar
12-14-2005, 03:48 AM
so this will add another field of anything that I want?

From the options in the ACP?

As many fields as I want?

The Chief
12-14-2005, 04:25 AM
I am having a problem with the upgrade, though, but this is something I had fixed before when i first moved over to vB 3.5.1, but I totally forgot how to do it...

Check my profile to see what I'm talking about, everything else works fine...

http://etalk.gamebgs.com/forums/member.php?u=1

Wired1
12-14-2005, 05:09 AM
so this will add another field of anything that I want?

From the options in the ACP?

As many fields as I want?It simply adds a separate page, and a way to easily separate those marked fields from the others in the adminCP. only limited by vB's limits.


I am having a problem with the upgrade, though, but this is something I had fixed before when i first moved over to vB 3.5.1, but I totally forgot how to do it...

Check my profile to see what I'm talking about, everything else works fine...

http://etalk.gamebgs.com/forums/member.php?u=1Gotta re-install (fix the templates basically) the other hack as well:
https://vborg.vbsupport.ru/showthread.php?t=98753

It gives you the fields there. BTW< nice vB look there @ eTalk!

The Chief
12-14-2005, 05:43 PM
It simply adds a separate page, and a way to easily separate those marked fields from the others in the adminCP. only limited by vB's limits.


Gotta re-install (fix the templates basically) the other hack as well:
https://vborg.vbsupport.ru/showthread.php?t=98753

It gives you the fields there. BTW< nice vB look there @ eTalk!

Thank you for the comments. Just got it too work ;)

I had forgot the member.php part...o_o'

Thank you for the nice hack and the fast support :)

Wired1
12-15-2005, 11:46 AM
Thank you for the comments. Just got it too work ;)

I had forgot the member.php part...o_o'

Thank you for the nice hack and the fast support :)

No problemo!

Cyricx
12-16-2005, 04:46 PM
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 :)

* Cyricx installs!

Wired1
12-16-2005, 06:54 PM
What function_user edit?

I'll have to read that product making thread again. Last time I read it it wasn't that informative.

ImportPassion
12-19-2005, 03:32 AM
is there any way to get this working w/o the code edits?

ImportPassion
12-19-2005, 04:40 AM
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 :)

* Cyricx installs!

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


// *** 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

$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
This


// *** 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

$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.


$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
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 if ($_REQUEST['do'] == 'extra') to: if ($_REQUEST['do'] == 'mginfo')


change construct_usercp_nav('extra'); to: construct_usercp_nav('mginfo');

change $navclass[extra] to: $navclass[mginfo]

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


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

EricaJoy
01-01-2006, 11:23 PM
Looking good! I'll be installing this once its nice and productified.

Wired1
01-01-2006, 11:40 PM
coincidentally I'm working on it ATM :)

Wired1
01-01-2006, 11:41 PM
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?

Wouldn't be too hard to do multiple pages, but why multiple pages?

Wired1
01-02-2006, 12:48 AM
Just as a minor update, I got the redirect message to work! yaaaaaayyyy.

Snake
01-02-2006, 06:58 AM
Thanks Wired, it's working just fine! :D

Wired1
01-02-2006, 06:31 PM
with any luck and time, I may have the product up tonight.

pipin
01-02-2006, 06:42 PM
with any luck and time, I may have the product up tonight.

woohoo, nice.

Wired1
01-03-2006, 04:22 AM
forgot to work on it actually, eheh. Last day for a certain badge in City of Villains, got it though!

Set up a demo vB install and re-read the product creation notes. Still don't think it'll all fit into the product (being the custom hook location, although I can't remember if that's this hack or the other one). We'll see though. Just got some great news about Ze Secret Project, so that may interfere with this, but I'll try to make the product tomorrow (gonna test it by removing the Demo forum and re-creating it).

Snake
01-03-2006, 11:46 AM
This is weird. After the installation of this hack, some of my newly custom profiles fields do not appear on the registeration page. Can you just tell me why?

Wired1
01-03-2006, 11:57 AM
Can't think of a reason off the top of my head. Are they marked as standard profile fields, or as ones to be displayed for this hack?

Snake
01-03-2006, 12:11 PM
Standard profile fields. Hmm this is really strange. I'll check my edits once again and see the problem. If I coudn't, I'll get back to ya as soon as I can.

Wired1
01-04-2006, 12:20 AM
Well I'd upload the updated XML plugin and the product if the site wouldn't hang on uploading XML files! Rassa frassa frassa rassa

Snake
01-04-2006, 12:13 PM
Actually I have managed to fix it. Thanks anyway. :)

Wired1
01-04-2006, 01:30 PM
kewl, what was it? I'll try tonight to upload the XML files again. Just tried to upload a fake XML (gibberish in the file) from work, worked fine. Worst case scenario is I'll have to upload it tomorrow from work.

Snake
01-04-2006, 01:33 PM
The field for display order was set to '0'. That's the reason why it wasn't working. Hehehe. Silly me.

Just more thing. When a user has not edited or updated his profile page and left as empty, it is supposed to say "N/A" rather than a blank space just like the "Forum Info"...

Wired1
01-05-2006, 02:24 AM
Just more thing. When a user has not edited or updated his profile page and left as empty, it is supposed to say "N/A" rather than a blank space just like the "Forum Info"...

Where are you looking exactly?


BTW, BETA Product's now available.

Snake
01-05-2006, 10:35 AM
I'm looking at profile view (or page). And what's with the BETA products? What's new?

pipin
01-05-2006, 04:10 PM
Aren't the two text files with the instructions identical?

@wired

Could you please include the Versionshistory in the first Posting?

Maybe like Abe here: https://vborg.vbsupport.ru/showthread.php?t=93970

Wired1
01-05-2006, 05:21 PM
I'm looking at profile view (or page). And what's with the BETA products? What's new?nothing, just a product for it, BETA because it's my first one :) I'll look at the n/a thing @ home.


Aren't the two text files with the instructions identical?Doh! Uploaded the wrong one :) I'll fix that tonight.


Could you please include the Versionshistory in the first Posting?No, as there's no real changes to speak of yet. When actual changes are done, then yes, they'll be added.

Wired1
01-06-2006, 03:45 AM
BTW, currently looking into the cleanest way to do multiple pages.

The basic way to do do this would be simply to rename some variables, and install the hack more than once (changing the variable names with each install). It'd be functional, but it could certainly be better and more intuitive.

To do it right would require some interesting code :) ATM the only reasons I can think of to have multiple pages would be to have multiple dropdowns in the related hack, so I'm thinking of how to efficiently do multiple dropdowns / profile areas. May just enhance the page with a dropdown in it. Each option in the dropdown would show/hide the fields associated w/ that option.

Example: dropdown has 3 options: Car / Boat / Plane. Selecting Car would let you enter in fields that relate to cars, e.g. rims, spoiler, etc. Selecting plane would let you select jet engine field, turbine engine, etc.

Having a proper admin backend page for the overall hack would make it much easier to adminstrate and update though, so I'll try to work on that first.

pipin
01-06-2006, 07:21 AM
nothing, just a product for it, BETA because it's my first one :) I'll look at the n/a thing @ home.


Doh! Uploaded the wrong one :) I'll fix that tonight.


No, as there's no real changes to speak of yet. When actual changes are done, then yes, they'll be added.

installed and working as designed. great one!

Wired1
01-06-2006, 11:57 AM
installed and working as designed. great one!

The product you mean? Or just the hack in general?

pipin
01-06-2006, 12:40 PM
The product you mean? Or just the hack in general? the product. i'm using the hack as long as it exists on a testforum. some problems with our old server combo are the cause that i dont use it in the the real forum, but on sunday we will move to our new dual opteron rig and then i will make use of it. :classic:

Wired1
01-06-2006, 04:59 PM
the product. i'm using the hack as long as it exists on a testforum. some problems with our old server combo are the cause that i dont use it in the the real forum, but on sunday we will move to our new dual opteron rig and then i will make use of it. :classic:

Gotcha, glad to hear it worked for others than myself :) vB 3.5.2 or vB3.5.3?


FYI to all, looking into adding entries into the AdminCP Navigation Menu for the backend.

pipin
01-06-2006, 05:49 PM
Gotcha, glad to hear it worked for others than myself :) vB 3.5.2 or vB3.5.3?


FYI to all, looking into adding entries into the AdminCP Navigation Menu for the backend.

3.5.2

GamerJunk.net
01-07-2006, 06:22 AM
What is the code to put this in Member Info?

Snake
01-07-2006, 07:51 AM
It's already explained in the instruction file.

GamerJunk.net
01-07-2006, 08:18 AM
No its not. It only explains how to set it up so it is searchable.

Wired1
01-07-2006, 06:36 PM
Neither. It's the addon hack:
https://vborg.vbsupport.ru/showthread.php?t=98753

htscpl
01-30-2006, 02:45 AM
Thanks great hack ** clicks installs**:D

Wired1
01-30-2006, 03:24 AM
Kewl, thanks.

As for when the next update will be, I dunno. The next time I work "only" 40 hours in a week, I'll see what I can do :)

cbr929rrerion
01-30-2006, 04:13 PM
so does this hack give me a blank page I can add profile fields and build at my whim?

Wired1
01-30-2006, 09:54 PM
You mark profile fields that you'd like on the entry page, and it puts it there.

DivisionByZero
01-30-2006, 09:58 PM
I've found a way to add "additional" pages into this hack as painlessly as possible.... I'll do some more testing after I nap and if it works, i'll post my edits to the hack. :)

cbr929rrerion
01-30-2006, 10:35 PM
ok.. maybe I was to vague..

I have my profile page the way I want it but I would like to add an additional page and set it up containing whatever i want, can I do that with this hack..

Wired1
01-31-2006, 01:25 AM
I've found a way to add "additional" pages into this hack as painlessly as possible.... I'll do some more testing after I nap and if it works, i'll post my edits to the hack. :)Only for entering data, or also for displaying? Marked with unique markers, or all the same one? Using separate markers it'd be easy to split into boxes for the profile page for display.


I have my profile page the way I want it but I would like to add an additional page and set it up containing whatever i want, can I do that with this hack..The page you want, is it for entering data, or for displaying data?

cbr929rrerion
01-31-2006, 01:34 AM
displaying, another words if I wanted to build a "My Garage" page based solely on user profile fields info..

on its own page

cbr929rrerion
01-31-2006, 01:35 AM
well.. I guess both, have a seperate page to enter it, and have it displayed on its own page as well

DivisionByZero
01-31-2006, 07:45 AM
Only for entering data, or also for displaying? Marked with unique markers, or all the same one? Using separate markers it'd be easy to split into boxes for the profile page for display.For entering data right now... I don't use the display part of the hack because what I'm doing it for is mostly "chat server" preferences.

DivisionByZero
01-31-2006, 07:46 AM
... and using separate markers....

profile.php?mod_XXX

where the script will strip out the "mod_" and parse the XXX for the appropriate page

Snake
02-01-2006, 04:31 PM
I am getting a blank page after filling in the fields via the UserCP. Any idea?

cbr929rrerion
02-03-2006, 11:15 PM
* clicks install *

works flawless using beta

Wired1
02-04-2006, 03:03 PM
I am getting a blank page after filling in the fields via the UserCP. Any idea?
blank as nothing whatsoever, boxes, etc, or the entered data isn't being saved?

* clicks install *

works flawless using beta

Kewl!

htscpl
02-06-2006, 10:11 AM
OK, maybe I've missed something in this thread or during the install, but after installing I can view my edit my extra profile info but it doesn't show up on the profile page or have a link to it?

Do I need to add the fields into the profile or should they or a link be there. I'm confused, so any little help would be a lot.

Thanks!
Henry

Wired1
02-06-2006, 12:24 PM
OK, maybe I've missed something in this thread or during the install, but after installing I can view my edit my extra profile info but it doesn't show up on the profile page or have a link to it?

Do I need to add the fields into the profile or should they or a link be there. I'm confused, so any little help would be a lot.

Thanks!
Henry

Additional Section within Profile and Dropdown within Posts (https://vborg.vbsupport.ru/showthread.php?t=98753)

htscpl
02-06-2006, 09:12 PM
Thanks for the quick response. I thought I had that part of the hack but I'll download it and try again.

Henry

MissKalunji
02-09-2006, 02:55 PM
is it possible to create two extra fields like that?

Wired1
02-09-2006, 05:12 PM
is it possible to create two extra fields like that?

Please clarify what you mean.

MissKalunji
02-09-2006, 05:15 PM
never mind i figured it out :) thanks!

Arissa
02-10-2006, 02:36 AM
I've installed this but when I click on the option to edit in the cp I get a blank white page. Changed extra_options to biography_options. Any ideas?

evenmonkeys
02-10-2006, 07:52 PM
I've got a problem with this...

When you use radio buttons, it all looks nice. When you use a single line, it all looks nice. However, when you use the select from drop down list, it all gets screwed up. It says the title in the right spot. Says the description in the right spot. Then it says the title again followed by a semi colon, and the actual selector is all the way on the right. O_o

Could you please tell me how to fix this. If you need a screenshot, please ask.

evenmonkeys
02-10-2006, 08:54 PM
Nevermind- I figured it out.

Wired1
02-11-2006, 01:59 AM
I've installed this but when I click on the option to edit in the cp I get a blank white page. Changed extra_options to biography_options. Any ideas?

Did you use the product install or the manual install? Did you change it in every location or just one?

Arissa
02-11-2006, 03:47 AM
I did it manually in the admin cp. I copied all the codes into ms works and did a find replace all for extra to biography.

MissKalunji
02-16-2006, 06:19 AM
i got a slight problem.....i cant search Single-Selection Menu

everything else works but when i try to search through single selection menue it doesnt work help?

Smiry Kin's
02-20-2006, 01:47 AM
dude, could you make something that ads the extra bit in the User CP? i don't have a clue how to add that..?

Wired1
02-20-2006, 09:23 PM
i got a slight problem.....i cant search Single-Selection Menu

everything else works but when i try to search through single selection menue it doesnt work help?Don't understand what you mean.

dude, could you make something that ads the extra bit in the User CP? i don't have a clue how to add that..?Which part exactly do you mean? Are you using the manual install (just removed) or the product install?

Rich
03-30-2006, 05:08 PM
Hello,

There are 6 uncached templates on the usercp extra-options page.

Uncached templates: page (1)
Uncached templates: userfield_radio (1)
Uncached templates: userfield_radio_option (2)
Uncached templates: userfield_select (1)
Uncached templates: userfield_select_option (92)
Uncached templates: userfield_textbox (1)

Wired1
03-31-2006, 01:32 PM
Hello,

There are 6 uncached templates on the usercp extra-options page.

Uncached templates: page (1)
Uncached templates: userfield_radio (1)
Uncached templates: userfield_radio_option (2)
Uncached templates: userfield_select (1)
Uncached templates: userfield_select_option (92)
Uncached templates: userfield_textbox (1)


Is this an error you are getting somewhere?

Snake
04-07-2006, 08:52 PM
Thanks for the update but could you fix up the bug if a member has not updated their extra profile fields while in profile view page? It still shows up as blank and is supposed to say "N/A".

Wired1
04-08-2006, 03:10 AM
Thanks for the update but could you fix up the bug if a member has not updated their extra profile fields while in profile view page? It still shows up as blank and is supposed to say "N/A".

Do you mean in this page?
https://vborg.vbsupport.ru/attachment.php?attachmentid=36005&d=1129699261

Does it have the var name, and nothing under it? e.g. Processor w/ no value, or does it not show up at all? Example of where I can see this in action?

Rich
04-08-2006, 01:03 PM
Hello,

I installed this, tested it, and everything works fine. The only problem is that it says that the templates listed in the preceding post of mine were uncached. I have the stats modification installed that shows queries and uncached templates. The actual Edit Options page has like 6-7 uncached templates. Every other page of my site is fine but that one. Any thoughts?

bairy
04-11-2006, 12:02 PM
Rich,
It's because the templates aren't cached under the ?do=extra.

I've done a quick way of doing it though I'm not sure it's the best:
Add new plugin under General >> cache_templates
I've called mine Extra Profile Page Cache Templates

Content:
if (THIS_SCRIPT == 'profile' AND $_REQUEST['do'] == 'extra')
{
$globaltemplates = array_merge($globaltemplates, array(
'page',
'userfield_checkbox_option',
'userfield_optional_input',
'userfield_radio',
'userfield_radio_option',
'userfield_select',
'userfield_select_option',
'userfield_select_multiple',
'userfield_textarea',
'userfield_textbox'));
}

Then the templates will be cached when editing of that page is requested.

Wired1
04-18-2006, 10:23 PM
Damned if I know anything about caching templates :)

If someone can kindly point me to some good info about it (too busy ATM to search myself, which also explains my slowness on the board lately), I'll add it into the hack.

Wired1
04-21-2006, 02:53 PM
Found some info about caching templates, going to implement that hopefully over the weekend. Going to see if anything can be tweaked as well, MAYBE some new features, if time allows.

Snake
04-21-2006, 06:26 PM
OK I'm hardly waiting... :)

Snake
04-29-2006, 12:21 PM
Do you mean in this page?
https://vborg.vbsupport.ru/attachment.php?attachmentid=36005&d=1129699261

Does it have the var name, and nothing under it? e.g. Processor w/ no value, or does it not show up at all? Example of where I can see this in action?
First of all, sorry for my late respond.

Anyway, I have noticed a few members who just got a blank area and some who got the "N/A" phrase included in their extra field. Let's take Smokey (http://www.bonethugsforums.com/memberslist/smokey.html) and Ameen (http://www.bonethugsforums.com/memberslist/ameen.html) for example. As you can see, Smokey shows up just blank while as Ameen shows up the "N/A" phrase thing. Do you have any idea what's going on?

Also how do I change the URL "profile.php?do=extra" to "profile.php?do=editboneinfo"?

Wired1
05-01-2006, 12:51 AM
As you can see, Smokey shows up just blank while as Ameen shows up the "N/A" phrase thing. Do you have any idea what's going on?I checked HoH (in the sig), and I've found similar profiles. I'll have to look into it, only thing I can think of is that because it's really just an extension of the additional info area, it sees some info, and therefore doesn't see a need to use the N/A, as it thinks something's already in that column. I'll see if there's a way around it.


Also how do I change the URL "profile.php?do=extra" to "profile.php?do=editboneinfo"?Edit lines 41 and 44 of the XML product.

Snake
05-01-2006, 05:55 PM
Edit lines 41 and 44 of the XML product.

Huh? I didn't get you.

Wired1
05-01-2006, 10:23 PM
Huh? I didn't get you.

Lines 41-44:
if ($_REQUEST['do'] == 'extra')
{
// makes the user cp nav look correct
construct_usercp_nav('extra');

replace "extra" with "editboneinfo"

May not even need to do the 2nd edit. Basically, take the XML file, open it, edit that, save it, upload it, run it, done.

Snake
05-02-2006, 08:35 AM
Right, working fine. Thanks!

futuredood
06-16-2006, 06:29 AM
great hack, been looking for this. i haven't installed but hoping i can install multipe pages. keep up the good work.

Wired1
06-16-2006, 12:29 PM
great hack, been looking for this. i haven't installed but hoping i can install multipe pages. keep up the good work.

Please clarify "multiple pages" and why this would be needed.

futuredood
06-17-2006, 01:04 AM
Please clarify "multiple pages" and why this would be needed.

i'm trying to make the user cp as easy as possible, guiding the user from category to category. instead of having everything on one page, i plan to have

"personal"
- real name
- uesr name
- hometown

"contact"
- e-mail
- web site
- phone

"pictures"
- profile picture
- avatar
- vbadvanced gallery

it doesn't seem like much of a difference, but i think ease of use really plays well for visitors, especially if you plan to expand your profiles.

vb_guru
07-08-2006, 08:35 PM
This is great! I have installed it and now can really see the benefit of having multiple categories on the left nav bar. Is there any chance this will be updated for multiple categories?

Does anyone know how I can change this myself?

Ted S
07-08-2006, 11:09 PM
vb_guru,
If you copy the plugin file and change the referances to "page" and "extra", you can set this up for multiple extra profile pages.

Wired1
07-09-2006, 06:51 AM
This is great! I have installed it and now can really see the benefit of having multiple categories on the left nav bar. Is there any chance this will be updated for multiple categories?

Does anyone know how I can change this myself?vb_guru,
If you copy the plugin file and change the referances to "page" and "extra", you can set this up for multiple extra profile pages.

Depending on your use of the pages, you may need to do more than that. Please clarify the multiple pages' usage.

As for the left bar in the UserCP, you would also need to do a similar change with the extra instructions in the text file.

vb_guru
07-09-2006, 03:50 PM
Depending on your use of the pages, you may need to do more than that. Please clarify the multiple pages' usage.

As for the left bar in the UserCP, you would also need to do a similar change with the extra instructions in the text file.

OK thanks for the reply. Here is what I want to do.

In the left nav bar will be 3 different "Extra" links:
Extra1
Extra2
Extra3

This will link to 3 separate pages. Each page will have their custom profile fields.

Extra1Page1 with custom profile fields 1,2,3,4,5,6,7,8
Extra2Page2 with custom profile fields 9,10,11,12
Extra3Page3 with custom profile fields 13,14,15,16,17,18,19,20,21

Therefore if I understand all this correctly within vBulletin Admin where it asks "Which page displays this option?" I will assign profile field 1 ExtraPage and so on.

I hope this all makes sense. Thanks for the help in advance.

Wired1
07-09-2006, 07:20 PM
do=extra in the text file instructions (and the extra plugins) would be replaced by something else (just add a 2 at the end for instance). You'd also need to add extra vbphrases and change them accordingly throught the plugin and text file instructions.

If you wanted to you could have them all in the same page, just depends on how much extra coding you'd want to do for the custom page.

vb_guru
07-10-2006, 07:37 PM
Thanks for the reply. I was able to change all the names and have a whole separate page and nav link in the User CP. This is great.

One unrelated question, do you know how to put a time stamp whenever a user updates the extra profile questions?

Wired1
07-10-2006, 09:27 PM
where does the date go

vb_guru
07-10-2006, 10:51 PM
where does the date go

The date will be for internal use only and will probably be stored in a new MySQL column in the user table or it could possibly be another custom profile field. I am not exactly sure the best way to do this.

futuredood
07-11-2006, 02:15 PM
Hey Wired_1,

I tried searching this thread but couldn't find any results. I noticed in your System Specs example, you were able to allow single-line text box options.

I've installed everything and got it working correctly on 3.5.4. The problem I'm facing is single-line text box profile field options don't show up on the profile.php?do=extra page.

I'm sure the single-line profile field option I created works b/c when I change the display page to editprofile, it works fine.

Is this a known bug, or just me?

Wired1
07-11-2006, 03:09 PM
Hey Wired_1,

I tried searching this thread but couldn't find any results. I noticed in your System Specs example, you were able to allow single-line text box options.

I've installed everything and got it working correctly on 3.5.4. The problem I'm facing is single-line text box profile field options don't show up on the profile.php?do=extra page.

I'm sure the single-line profile field option I created works b/c when I change the display page to editprofile, it works fine.

Is this a known bug, or just me?

Does the profile field show up on the extra page, the normal member page, or both? The editprofile page you are looking at, is it in the admincp, or just the normal member edit info page that each user has in their usercp? (screenshots would be awesome)

Wired1
07-11-2006, 03:10 PM
The date will be for internal use only and will probably be stored in a new MySQL column in the user table or it could possibly be another custom profile field. I am not exactly sure the best way to do this.

Ummmm.... nope :)

Somewhere in the Extra Profile Page plugin under the submit area I'm guessing, with the appropriate vBulletin database functions.

futuredood
07-11-2006, 05:53 PM
Does the profile field show up on the extra page, the normal member page, or both? The editprofile page you are looking at, is it in the admincp, or just the normal member edit info page that each user has in their usercp? (screenshots would be awesome)

It's an editable user profile field, so I'm accessing it through the usercp. The link I use is profile.php?do=extra. How I tested it was I changed the display page of the profile field to "editprofile" in the admin backend, and it showed up fine in the users' "editprofile". When I set the display page to "options: extra options", it does not show up. The tests were tested on a "registered users" account in their own usercp.

I hope this explains it well enough. I've included a screen shot though it doesn't show much.. thanks.

Wired1
07-11-2006, 06:36 PM
futuredood:

sounds like it's done right. so you can basically mark any profile field that's not a single-line text box as extra options, and it'll work fine?

doesn't make sense. Is this site live, or up enough where a temp registered user can be set up so that I can look at it?

futuredood
07-11-2006, 07:19 PM
wired1, sorry about that, let me try again.

the site's not public yet, it's a fresh install of 3.5.4 that's being modified.

for the extra profile page, i can add any type of custom profile field. this includes single-selection menu, multi-selection check box, etc. the only custom profile fields that do not work is single-line text box and multi-line text box.

when i link a custom profile field single-line text box to the extra options page that this hack created, it does not show up.

does that make more sense?

Wired1
07-11-2006, 08:30 PM
that's what I said :) the hack's too generic to affect some profile fields and not others, as it just adds that dropdown as an option for all fields to be marked as, and then the new page looks for fields with those marks and grabs them.

do you have any other hacks installed that affect profile fields?

futuredood
07-11-2006, 09:29 PM
lol great, we both have an understanding now.

i've got a number of hacks installed as well as customized modify profile templates. which template is the extra profile field page in? maybe i made an alteration that causes single-line text boxes to not appear.

to note, i have interactive profiles installed which may alter the profile page some how.

Wired1
07-12-2006, 03:20 AM
The extra profile field is its own template, made by the product XML.

futuredood
07-15-2006, 03:49 PM
Hmm.. I just can't get this to work. My board is heavily modified, but I don't see which one could possibly conflict with this profile field hack. I'm not very familiar with how plugins work exactly, but is their a certain location I should look at and disable other plugins that might be conflicting with this hack?

futuredood
07-15-2006, 04:04 PM
Wired_1, can I send you admin access to check this out? I think I've tried everything.

Wired1
07-15-2006, 08:59 PM
Sure. Can't think off the top of my head what would do it though. doesn't make sense, as all the hack really does is to mark profile fields to be editable in a different location.

Wired1
07-17-2006, 03:00 PM
I'm thinking of doing a upgrade for this hack. Basically, instead of storing info in profile fields, it'd store them in a SQL table. This would make it easier to have multiple pages of the same item (e.g. car stats, PC specs, etc), although it would still suffer from the same issue this current version has, where if you want multiple pages with different specs in each one, then you'd have to install the hack multiple times.

Comments?

futuredood
07-17-2006, 06:11 PM
I'm thinking of doing a upgrade for this hack. Basically, instead of storing info in profile fields, it'd store them in a SQL table. This would make it easier to have multiple pages of the same item (e.g. car stats, PC specs, etc), although it would still suffer from the same issue this current version has, where if you want multiple pages with different specs in each one, then you'd have to install the hack multiple times.

Comments?

Easier = Better :cool:

futuredood
07-19-2006, 04:17 AM
do=extra in the text file instructions (and the extra plugins) would be replaced by something else (just add a 2 at the end for instance). You'd also need to add extra vbphrases and change them accordingly throught the plugin and text file instructions.

If you wanted to you could have them all in the same page, just depends on how much extra coding you'd want to do for the custom page.

Can you give a clearer instruction on how to create multiple pages? When I searched the code in the .xml and .txt instructions, do=extra came up only once each. Also, I'm not sure how to upload a .xml product copy since it asks you to overwrite the previous one. Thanks.

Wired1
07-19-2006, 08:18 PM
I'll try to get to it tonight or tomorrow, a bit under the weather currently. Migraines SUCK. Will probably crash when I get home.

egyptsons
07-19-2006, 08:46 PM
mmmm
I think it's not bad :cool:

futuredood
07-20-2006, 09:53 PM
hey wired, how's it lookin today?

Arissa
07-20-2006, 10:26 PM
I've tried to get it to show up on the members profile by using your other hack. It didn't work. What I really want is to create another page where the extra fields are shown with a link to the page in their profile.

bio.php would work.

Wired1
07-21-2006, 02:42 PM
hey wired, how's it lookin today?
This is UNTESTED, but unless I missed an edit here or there, it should work. Basically created a new product and updated names of all the plugins and calls and whatnot.

Wired1
07-21-2006, 02:45 PM
I've tried to get it to show up on the members profile by using your other hack. It didn't work. What I really want is to create another page where the extra fields are shown with a link to the page in their profile.

bio.php would work.

In otherwords, you'd like a link on their member page that goes to a new page where these extra specs can be seen? If so, shouldn't be that hard to whip up. If this is what you want, do me a fav, post this in that thread so I'll get the update in my email. That way I'll remember when I get home :)

futuredood
07-21-2006, 04:40 PM
This is UNTESTED, but unless I missed an edit here or there, it should work. Basically created a new product and updated names of all the plugins and calls and whatnot.

I did a quick install of this and received this error when I went to the Profile Field Manager in AdminCP:

Parse error: parse error, unexpected '\"', expecting ')' in /path/to/public_html/admincp/profilefield.php on line 383

And line 383 is this:
"$vbphrase[options]: $vbphrase[extra_options2]"

I'm pretty sure I followed the instructions correectly. I just added extra_options2 lines right under the original extra_options. But, I've got to go for the day, so will try again later tonight, thanks Wired.

Wired1
07-21-2006, 06:11 PM
Did you place a 6 or 7 behind those two values? :) I've updated the txt file.

futuredood
07-22-2006, 08:06 AM
Haha thanks Wired, works great. In case anyone's wondering.. to make 3'rd or 4'th pages, just rename the 2's in the .xml file to the appropriate number, as well as the install.txt file.

Wired1
07-22-2006, 07:14 PM
Sweet :)

Also don't forget to increment the steps where it's a numerical list! :)

barryhand
07-26-2006, 07:45 PM
Great Add-on, for some reason my extra's are showing up as Additional Information?

Are there some php edits for this to display correctly

Wired1
07-26-2006, 10:31 PM
Great Add-on, for some reason my extra's are showing up as Additional Information?

Are there some php edits for this to display correctly

Yep, read the instruction text file.

barryhand
07-27-2006, 07:04 AM
Yep, read the instruction text file.
I've done that, but then it doesn't display on the member.php

I've edited it to be 0 or 6 and it shows additional information like hobbies/age/location etc.

Wired1
07-27-2006, 01:32 PM
When you use this hack, it removes the specified profiles from the member.php. If you're looking for the fields to show up in the bottom right quadrant, you need to install the associated hack:

https://vborg.vbsupport.ru/showthread.php?t=98753

Jeordie015
07-29-2006, 04:46 PM
I'm having a problem. Profile fields won't show up on the extra options page. I've tried making a new profile field and setting it to go in there. I've also tried moving a default profile field into the extra options page. What could be the problem?

Wired1
07-29-2006, 10:03 PM
I'm having a problem. Profile fields won't show up on the extra options page. I've tried making a new profile field and setting it to go in there. I've also tried moving a default profile field into the extra options page. What could be the problem?Does it disappear when you move it, in otherwords does it move from their member page into oblivion, or does it stay where it is?

What vB version do you have? Have you done all the steps in the text file?

Jeordie015
07-29-2006, 11:59 PM
If I move a profile field from Edit Profile into the Extra Options, it will disappear from Edit Profile.

I'm running vB3.5.4. And I believe I've done everything required in the text file. Going to the Extra Options page just shows a collapsed table where the fields should be, if that tells you anything.

Wired1
07-30-2006, 05:06 AM
Dunno, got me! Got any other hacks installed? If so, may want to disable one plugin at a time and see if one of them causes the problem.

Post (or PM me) the URL to the site and I'll set up a test account (unless you have one already). Only thing else I can really suggest would be to uninstall the product, reverse the text hacks, and re-do it.

Jeordie015
07-30-2006, 07:46 AM
Well, I do have quite a few hacks installed, but I disabled all the ones I thought might be the problem and it didn't help.

I've tried uninstalling and reinstalling and that didn't work either. But I might have overlooked something twice.

Here's the URL. http://www.theawesomebbs.com

Do you need to be an admin to see/fix the problem?

Wired1
07-30-2006, 04:37 PM
Well, I do have quite a few hacks installed, but I disabled all the ones I thought might be the problem and it didn't help.

I've tried uninstalling and reinstalling and that didn't work either. But I might have overlooked something twice.

Here's the URL. http://www.theawesomebbs.com

Do you need to be an admin to see/fix the problem?

May need it, don't know yet.

Which Edit page is the hack? Account is test.

Jeordie015
07-30-2006, 04:45 PM
<a href="http://www.theawesomebbs.com/profile.php?do=extra" target="_blank">http://www.theawesomebbs.com/profile.php?do=extra</a>

Jeordie015
07-30-2006, 05:49 PM
Alright, I got it. It was my fault. I missed the functions_user.php edit apparently.

Jeordie015
07-30-2006, 05:53 PM
I do have a question though. My extra profile fields page is going to be for video game online usernames and codes. Is there some way I can make groups in this page the same way the Edit Options page does? Like it has Login & Privacy, Messaging & Notification, etc.

Wired1
07-30-2006, 11:31 PM
I do have a question though. My extra profile fields page is going to be for video game online usernames and codes. Is there some way I can make groups in this page the same way the Edit Options page does? Like it has Login & Privacy, Messaging & Notification, etc.

Yep, it'd be similar to the code I recently posted about creating a second page. Read the attached file, groups.txt. It should explain everything for you.

Jeordie015
07-31-2006, 12:47 AM
Yep, it'd be similar to the code I recently posted about creating a second page. Read the attached file, groups.txt. It should explain everything for you.
Alright, I did the edits in the php files, but am not sure what to do next.

Wired1
07-31-2006, 01:49 AM
Did you also update the page file and customize it as needed, and then associate various fields to each group?

Jeordie015
07-31-2006, 01:52 AM
What page file? In the instructions, it just gives a sample template or whatever, but I have no idea what to do with it.

Wired1
07-31-2006, 02:21 AM
Replace the page template that the product made with that, although you MUST customize it.

Jeordie015
07-31-2006, 02:24 AM
What page template? I could never find a template for it.

Wired1
07-31-2006, 02:41 AM
it's called Page :) PM'd you one to try w/ two groups. After you update it, The first extra options will be for the first group, the second for the second.

gator777
08-04-2006, 03:22 AM
Hi Wired1,

I upggraded to 3.6, and it will no longer accept

Open member.php

FIND:

// END CUSTOM PROFILE FIELDS
// *************************

AFTER IT ADD:

($hook = vBulletinHook::fetch_hook('member_extras')) ? eval($hook) : false;

without getting database errors. Can you help piz? :)

Wired1
08-04-2006, 12:10 PM
probably because the hack's for vB 3.5.x and not 3.6 :)

Installing vB 3.6.x on a test server this weekend. Did they change how hooks are implemented?

gator777
08-05-2006, 03:00 AM
probably because the hack's for vB 3.5.x and not 3.6 :)

Installing vB 3.6.x on a test server this weekend. Did they change how hooks are implemented?

I'm not sure Wired1, because I'm not a coder, but I think it has something to do with the Infraction system. :alien: :)

lanc3lot
08-05-2006, 01:49 PM
Hello, if it can be changed so it will work with 3.6, it will be sweet :)

Ty in advance

Wired1
08-06-2006, 04:12 AM
It'll be updated. Guys, PLEASE hit install :)

BTW, gator, that code is for the other hack, not this one.

This hack works fine w/ 3.6.0, no changes needed. Going to check out Additional Section within Profile and Dropdown within Posts now.

gator777
08-06-2006, 06:11 AM
It'll be updated. Guys, PLEASE hit install :)

BTW, gator, that code is for the other hack, not this one.

This hack works fine w/ 3.6.0, no changes needed. Going to check out Additional Section within Profile and Dropdown within Posts now.

Sorry Wired1, I think I am losing my mind. I also use this hack as well, but I got it to work. Will you be abble to fix the other on as well? :D

Wired1
08-06-2006, 07:47 PM
Yep, got the other one to work, just want to clean up the instructions and stuff a bit. That and I was doing it at 3 AM, so I want to check it over lol.

Wired1
08-07-2006, 02:03 AM
Link to 3.6.0 version:
https://vborg.vbsupport.ru/showthread.php?t=123253

legionofangels
01-10-2008, 10:19 PM
Hello Wired,

I am not sure which add on we have, as i"ll have to check with the coder but we either have this or Zac's version on our forum which is 3.6.8 PL2.

I am currently experiencing a small problem and was wondering if you could tell me anything about it or what we could do to fix the problem:

We use 3.6.8 PL2 at the moment. I'm wondering if there are any comapitiblity issues?

Our current problem is that we used it to give an option to members to Show or Hide the Inferno Shoutbox we have. The buttons and everything works fine for registered members.

Our problem is though that while logged out, guests cannot view the shoutbox and I don't understand why. Is there an option that comes with this mod that would affect that?

Or is there some coding I need to add to make the shoutbox show for those not logged in, but that upon logging into an account it of course accepts the accounts choice of Show or Hide?

It's set to default Show in the profile field for a new member so I don't know why it won't show automatically for everyone prior to log in.

Please help if anyone can, and thank you in advance,

Legion of Angels

Wired1
01-11-2008, 03:19 PM
This mod is NOT for 3.6.x, it is for 3.5.4. My profile contains links to the 3.6.8 versions.

legionofangels
01-11-2008, 09:22 PM
EDIT: Nevermind, we used a code to get what we want, not an add on. Sorry for any confusion.

MarkoXaser
05-04-2008, 10:06 PM
PLEASE help me now with 3.7 i get an error when any user try to save the field...

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

PLEASE HELP ME!!!!!!!!!!

Wired1
05-05-2008, 02:18 AM
PLEASE help me now with 3.7 i get an error when any user try to save the field...



PLEASE HELP ME!!!!!!!!!!

THIS IS A 3.5.x VERSION OF THIS PLUGIN, NOT 3.7.x!

MarkoXaser
05-05-2008, 06:46 AM
and what can i do now?

MarkoXaser
05-05-2008, 07:40 PM
there's nothing can i do?

i will remove this hack? :(

MarkoXaser
05-22-2008, 06:19 PM
now works but i have a little problem, you have a pm...please help me

Wired1
05-22-2008, 07:05 PM
I will only say this ONE more time. This thread is for the 3.5.x version of this mod. DO NOT USE IT WITH 3.7.X. Uninstall it by reversing the instructions, and install the 3.7.x version!