News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Custom Profile Field Mod

Started by winrules, March 30, 2006, 02:21:25 PM

Previous topic - Next topic

Jumbobeef

Thanks.

Done that, and tried to install the package again and I get this message:

QuoteError in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

1. Execute Modification ./Sources/ModSettings.php Test successful
2. Execute Modification ./Themes/default/Profile.template.php Test successful
3. Execute Modification ./Themes/default/Display.template.php Test failed
4. Execute Modification ./Themes/default/PersonalMessage.template.php Test successful
5. Execute Modification ./Themes/default/Register.template.php Test successful
6. Execute Modification ./Sources/Register.php Test successful
7. Extract File ./Sources/CustomProfile.php 
8. Extract File ./Themes/default/languages/CustomProfile.english.php

Kindred

right...   so something else has modified Display.template.php and the mod can tnot automatically install there...   you will have to manually apply the mod to that file.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Jumbobeef

#1942
So do I manually change the file to:

QuoteIn file $themedir/Display.template.php
Find: 
                        <a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';


Replace with:

                        <a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
            DisplayFieldPostsPictures();



Find: 
         // Show how many posts they have made.


Replace with:

         global $sourcedir, $messagevars;
         $messagevars = $message;
         require_once($sourcedir . '/CustomProfile.php');
         DisplayFieldPosts();

         // Show how many posts they have made.


......then install the package through the Package Manager?

Thanks.

Kindred

no... install the mod first and then do the manual portion
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mrw1986

Is there anyway to make these custom fields appear under a users name in the postbit? Like maybe a link you click that pops open a small javascript window that shows the value of the fields.

I'm looking to use this for my Tech/PC Related site. I want something under the User's name that says maybe "System Specs" and when you click it a little "Pull Down" pops up and it shows the data from the custom fields. VB uses something similar when you click a members name it gives a dropdown menu listing stuff like "View Profile" and such.

Kindred

of course there IS a way...

you'll have to do the coding yourself, though...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mrw1986

Well...thats really helpful...lol

bposner

Tried searching couldn't find exact answer
Installed this mod in our system, first mod installed.  Both in custom (downloaded) and default themes, nothing shows up. No errors during installation.

Not a coder, nor do I pretend to be, but can follow directions :)


Printman2000

Same problem here. Brand new SMF install, the only mod I have installed is CPF. All the tests passed and the install said it was successful.

The tab on Features and Options screen is not there. Tried uninstalling and reinstalling.

I have this mod installed on another site and working fine.

Kindred

are you running default them and english language?

(english utf-8 is DIFFERENT from english)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

bposner

Darn, dude, that was it, thanks!!!

<putting on dunce cap>


Printman2000

The language fixed it. Thanks!

Jumbobeef

Quote from: Kindred on April 10, 2008, 11:09:23 AM
no... install the mod first and then do the manual portion

Did it, and it works ~ thanks!

DenDen60

HI,

I am using 1..1.4 and customprofile 3.17.

I need to bring my custum profiles up in the register page. Now it is after "Verify password" box. I want them after their username. How can I do this?

Thaks

Kindred

move the code in regsiter.template.php
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

fecu2008

1.14 default

whenever I make a new field and type in the field name and hit save, it still shows up as unnamed field.  Can someone help? 

Basie

Sorry if this question has already been asked, but...

How do I make my custom profile fields appear AFTER "local time", instead of before "gender"?

Kindred

move the code around in profile.template.php
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Basie

I have no knowledge of PHP - which code do I need to move?

JaredBlake1

#1959
I have and installed Custom Profile Field Mod 3.17 and it works great!

I have a new custom field on my registration page and would like the field box to show just under the username field box and this field box should be the same size as the username field box.

Summary:
1. Have control over the final position of the custom field box.
2. Be able to make the custom field box smaller in size.

-----------------------------------------------------------------------------
UPDATE:

1. I was able to modify the CustomProfile.php file to get the smaller text field box.
2. I attempted to modity the Register.template.php to reposition the field up in the Registration window but I keep getting a Template Parse Error.

Here is the code I believe needs to be moved in order for the field to be placed in a different location within the Register.template.php file:

global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();


Please advise on what I might be doing wrong to make this modification.

Thank you...Regards, Jared

Advertisement: