News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Custom Profile Field Mod

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

Previous topic - Next topic

Sofadia

I installed this mod. It seemed to install correctly. I was able to add fields, but they're not coming up in the profile to see.

Any ideas?

winrules

Eastwood - You can't put it in a post. Could I have a link to your site and a test account?


Sofadia - are you using a custom theme?


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


resakse

so, will there be any new version of custom profile mod? (the one that can be search by custom profile on memberlist).

winrules

Yes, but I'm not giving any timetables.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Nomina

#624
I've found that the "Add a horizontal rule before field?" option only differentiates properly if I make the following change to CustomProfile.php at line 269:

Code (original) Select
if ($modSettings['CP' . $i . '_hr'] == 'edit' || $modSettings['CP' . $i . '_hr'] == 'summary_edit')


Code (modified) Select
if ($modSettings['CP' . $i . '_hr'] == 'summary' || $modSettings['CP' . $i . '_hr'] == 'summary_edit')


Am I alone in this?  Without the change, horizontal rules only appear on the Profile Summary if I select the "On both" option.  I had to make this change in both the 3.13 release, as well as after I upgraded to 3.15.  The above seems to work (all three options display as expected), but if there's a better change, or something is amiss with my version of the mod, please let me know.


Eastwood

Quote from: winrules on November 01, 2006, 09:58:30 AM
Eastwood - You can't put it in a post. Could I have a link to your site and a test account?

Sorry, Winrules, I think I don´t explain myself very good  :(  I want to say "in the left of the posts, when avatars, user info and number of messages are", not in the posts. I can´t give you a link or test account for now because I´ve got my web in local mode. In a few weeks it will be up, but not for now.

Is there anyway to do what I say?  :-\


Thanks anyway

Eastwood

winrules

Nomina - you shouldn't have to do that. Are you sure you selected on both?

Eastwood - do you mean just displaying it without the title?


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Nomina

Quote from: winrules on November 05, 2006, 10:28:39 AM
Nomina - you shouldn't have to do that. Are you sure you selected on both?

* Nomina nods.

I can undo the change to test again, if that would help, but prior to the edit I recall getting the following behavior with fields displayed on the Summary page:

On Profile Summary => no HR on any pages.
On Profile Edit Screen => behaved as expected: HR only on Edit Screen.
On Both => behaved as expected: HR on both pages.

The edit made sense when I made it, as the conditional in question was the same for both the Edit and Summary pages, whereas (I figured) the first part of the disjunction ought to coincide with the section it was being applied to...  Sorry if I'm not making any sense.  I'm a bit goofy from lack of sleep at the moment.  What I do know, however, is that my coding skills probably pale in comparison to 90% of the posters on these boards, and so I'm happy to defer to you (in particular) on such matters.  So no big surprise if my "fix" was wrong (although it did work... ::))

Let me know if you'd like me to go back and double-check the before and after versions of the script.  I'm guessing from your reaction and the lack of replies that I'm alone in experiencing this condition.

Best,
n.

Eastwood

Quote from: winrules on November 05, 2006, 10:28:39 AM
Eastwood - do you mean just displaying it without the title?

Yes, that´s what I mean  :) It´s possible? If I let the title in blank, always display the sign ---> :  And I want only displays the text that users write in the text box, without title. :(


Eastwood

winrules

In CustomProfile.php Find:

echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '<br />';

And replace with (several times)

echo '
' . $modSettings['CP' . $i . '_name'] , !empty($modSettings['CP' . $i . '_name']) ? ': ' : '' , $field . '<br />';


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Panzer-


Assistance

some reason the custom fields do not show under post count infact they show above

in display.temp it shows it under the post count, what am i missing?
~playing poker~

winrules



winrules
SMF Developer
               
My Mods
Please do not PM me for support.


cc4digital

I would like to download one of my custom fields from the Custom Profile Field.
I looked in the mysql database.  I looked at the tables, but do not see the field I created.  Anyone know how I can find the data from one of the custom fields?

winrules



winrules
SMF Developer
               
My Mods
Please do not PM me for support.


eriktm

I can't install it, it comes up with "Modification parse error:'( :'(

Can anyone help me?
I need this mod, right now...

PS: Version 3.15

winrules

Can you try redownloading it in a different browser? It might be a corrupt download.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


BakerLee

Quote from: winrules on November 05, 2006, 05:36:04 PM
In CustomProfile.php Find:

echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '<br />';

And replace with (several times)

echo '
' . $modSettings['CP' . $i . '_name'] , !empty($modSettings['CP' . $i . '_name']) ? ': ' : '' , $field . '<br />';


Where is this CustomProfile.php file located?  Is this in the install package, or in my SMF directory?  I see CustomProfile.english.php  Is that it?

winrules



winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Eastwood

Quote from: winrules on November 05, 2006, 05:36:04 PM
In CustomProfile.php Find:

echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '<br />';

And replace with (several times)

echo '
' . $modSettings['CP' . $i . '_name'] , !empty($modSettings['CP' . $i . '_name']) ? ': ' : '' , $field . '<br />';


Thanks for the answer, Winrules, I´ll try it ;)

Do you know the answer for the other question I asked? When I create a field by checkbox, If checkbox is activated I can see the text that I wrote in "Text to display when box is checked", but if the user uncheck the box, nobody can see the text I wrote in "Text to display when box isn't checked"... Do you know why?   :(


Eastwood

Advertisement: