Advertisement:

Author Topic: Custom Profile Field Mod  (Read 942668 times)

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: Custom Profile Field Mod
« Reply #720 on: December 11, 2006, 08:37:06 PM »
Thanks!

I used your mod with the YouTube one to create this:

http://www.murraysworld.com/talk/index.php?action=profile;u=2

Hope you like it ;)

Offline Kalika

  • Semi-Newbie
  • *
  • Posts: 44
Re: Custom Profile Field Mod
« Reply #721 on: December 12, 2006, 03:20:31 PM »
Can anyone please tell me what files need to be set writeable in order for this mod to install, so I can set them writeable manually?  I haven't been able to get this installed to save my life.   :-[  thanks!

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #722 on: December 12, 2006, 04:51:45 PM »
Kalika - just chmod all the files that are lsited to be modified to 777.
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline Kalika

  • Semi-Newbie
  • *
  • Posts: 44
Re: Custom Profile Field Mod
« Reply #723 on: December 13, 2006, 12:13:07 AM »
That's the thing, I don't know which files need to be modified.. it doesn't tell me when it tries to install, it just asks for my FTP information and when I enter it, it takes me back to the very same page.   :)

Offline vaulot

  • Newbie
  • *
  • Posts: 1
Re: Custom Profile Field Mod
« Reply #724 on: December 13, 2006, 01:59:16 AM »
I got the exact same problem with the supposedly new verions for SM 1.1....  ???

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: Custom Profile Field Mod
« Reply #725 on: December 13, 2006, 09:56:37 AM »
I really love this mod but it could just be me but the administration side of it seems very buggy (on my non-default theme).

Adding a new field doesn't happen unless I first click 'Add Field' then uncheck one of the other fields, then click save and then I assume I should have them all checked again.

The same process has to happen if I try and move the position up or down.

Also once getting it to move up or down, all of my profiles used the same description from another one.


Offline 0897jhPEFUOIyG90

  • Semi-Newbie
  • *
  • Posts: 21
Re: Custom Profile Field Mod
« Reply #726 on: December 13, 2006, 03:11:58 PM »
I have noticed that more than one user has lost functionality of this mod when upgrading to 1.1 final.

You may want to have a look at the code in "upgrade_1-1.sql" in the "smf_1-1_update.zip" package.

Particularly the code commented:
Code: [Select]
/******************************************************************************/
--- Installing new default theme...
/******************************************************************************/

---# Installing theme settings...
---{
// This is Grudge's secret "I'm not a developer" theme install code - keep this quiet ;)

;) shhhhh! (maybe it wasn't such a good idea...)


I'm not quite sure about it yet, but I suspect that these changes to the default theme in the update will adversely affect the function of the custom profile field mod and its derivatives.

I will advise once I get a look at a site that has had a derivative of this mod borked by updating to 1.1 final.

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #727 on: December 13, 2006, 03:59:24 PM »
Kalika, vaulot - Have you installed any other mods successfully?

mark7144 - Yes, I know that there are many bugs. The problem is really the backend of it - it uses a system that is designed for individual static options. I'm currently rewriting it using a much better system.

0897jhPEFUOIyG90 - You will have to reinstall the mod after upgrading.
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline Kalika

  • Semi-Newbie
  • *
  • Posts: 44
Re: Custom Profile Field Mod
« Reply #728 on: December 14, 2006, 12:21:26 AM »
winrules - No, I can't get any mod on any of my versions of SMF to install.  They all do the same thing.  I know it's not a problem with your mod.   :)  I just thought that if I could manually set the files writeable, I could skip the whole 'enter your FTP info' screen and advance to get the mod installed.. that's what I had to do to install SMF to begin with.  It wouldn't install or accept my FTP info, so I set the necessary files writeable and it went on with the install.

Offline mark25

  • Semi-Newbie
  • *
  • Posts: 53
    • RoCkRuLZ OnLiNe
Re: Custom Profile Field Mod
« Reply #729 on: December 14, 2006, 10:55:04 PM »
I'm on SMF1.1 final and everything seems to be working but if you have someone as a 'buddy', when viewing their profile the 'Remove Buddy' text moves all the way to the top.

My only additional profile field is the 'Bebo' one.

Can someone help please?


same problem.

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: Custom Profile Field Mod
« Reply #730 on: December 14, 2006, 11:50:02 PM »
I'm on SMF1.1 final and everything seems to be working but if you have someone as a 'buddy', when viewing their profile the 'Remove Buddy' text moves all the way to the top.

My only additional profile field is the 'Bebo' one.

Can someone help please?


same problem.

And we're both called mark... SPOOKY!  :P

Offline tarsia

  • Semi-Newbie
  • *
  • Posts: 16
Re: Custom Profile Field Mod
« Reply #731 on: December 15, 2006, 04:42:07 AM »
Hello,

I'm using the mod in SMF 1.1. It's working fine and i'm using some custom-field on the register-page. But i have a question:

Is it possible that the custom-fields would appear above and not under the "Visual verification" on the register page?

If yes, what do i have to change?

Many thanks
tarsia
SMF 1.1

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,629
  • Gender: Male
    • Kindred-999 on GitHub
Re: Custom Profile Field Mod
« Reply #732 on: December 16, 2006, 06:49:04 PM »
WOW!!!!   I seem to have found a BIG oversight here...

if you add a custom text field, there is no limit to the number of characters that can be added...

in other words, in the display screen, a person can have 300 lines of text added...

I think you need to add a maxlength stat in the field settings... 
(the current "size" of the field is set to 50, but that should probably be the same size as "maxlength", especially if you make it into a settable variable.)

for the moment, I have change the field size and maxlength (in my set up) to 25...
If anyone else is interested in 'fixing" this:

line 31 in CustomProfile.php
Code: [Select]

<td><b>' . $modSettings['CP' . $i . '_name'] . ': </b>' , !empty($modSettings['CP' . $i . '_desc']) ? '<div class="smalltext">' . $modSettings['CP' . $i . '_desc'] . '</div>' : '' , '</td><td><input type="text" name="default_options[' . $modSettings['CP' . $i . '_id'] . ']" size="25" maxlength="25" value="', @$context['member']['options'][$modSettings['CP' . $i . '_id']], '" /></td>
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Dem0n

  • Full Member
  • ***
  • Posts: 520
  • Gender: Male
  • Word Lyfe!
    • TheTVStop
Re: Custom Profile Field Mod
« Reply #733 on: December 16, 2006, 07:31:15 PM »
Code: [Select]
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
I get the following error when trying to install on 1.1 Final.

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: Custom Profile Field Mod
« Reply #734 on: December 16, 2006, 10:35:13 PM »
WOW!!!!   I seem to have found a BIG oversight here...

if you add a custom text field, there is no limit to the number of characters that can be added...

in other words, in the display screen, a person can have 300 lines of text added...

I think you need to add a maxlength stat in the field settings... 
(the current "size" of the field is set to 50, but that should probably be the same size as "maxlength", especially if you make it into a settable variable.)

for the moment, I have change the field size and maxlength (in my set up) to 25...
If anyone else is interested in 'fixing" this:

line 31 in CustomProfile.php
Code: [Select]

<td><b>' . $modSettings['CP' . $i . '_name'] . ': </b>' , !empty($modSettings['CP' . $i . '_desc']) ? '<div class="smalltext">' . $modSettings['CP' . $i . '_desc'] . '</div>' : '' , '</td><td><input type="text" name="default_options[' . $modSettings['CP' . $i . '_id'] . ']" size="25" maxlength="25" value="', @$context['member']['options'][$modSettings['CP' . $i . '_id']], '" /></td>
Thanks, I also was worried over this issue.

maxlength="70" was much more appropriate for my forum btw.
« Last Edit: December 16, 2006, 10:41:45 PM by mark7144 »

Offline tarsia

  • Semi-Newbie
  • *
  • Posts: 16
Re: Custom Profile Field Mod
« Reply #735 on: December 18, 2006, 03:26:58 AM »
Hi,

if you insert the maxlenght and are using a customfield on the register page, i think it makes to change line 88 (function RegistrationFields), too

tarsia
SMF 1.1

Offline mgaidia

  • Semi-Newbie
  • *
  • Posts: 69
Re: Custom Profile Field Mod
« Reply #736 on: December 20, 2006, 06:49:08 AM »
Can you please add statistics.
so we can see how many members chose a specific option.

Offline Livethefire

  • Semi-Newbie
  • *
  • Posts: 10
Re: Custom Profile Field Mod
« Reply #737 on: December 20, 2006, 06:16:36 PM »
Ok I am setting up a forum and I have Mambo version: 4.6.1

I have downloaded and installed SMF 1.1
I have downloaded and installed (the mod doesnt install successfully) "1.3.2 beta 1 [SMF 1.1]" >  MamboSMFForum_1.3.2b1.zip
which has the component and the mod.

the component works perfect, but the mod brings back a few test failures:

1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./Themes/default/script.js           Test failed
3.    Execute Modification    ./Sources/Post.php                    Test successful
4.    Execute Modification    ./Sources/Subs-Post.php         Test failed
5.    Execute Modification    ./Sources/Profile.php                     Test successful
6.    Execute Modification    ./Sources/Subs.php                    Test failed
7.    Execute Modification    ./Sources/LogInOut.php                   Test successful
8.    Execute Modification    ./Sources/QueryString.php          Test successful


I have tried several other components and mod packages, but this one brigns back less test failed, all other ones bring back more than three.
I have no other mods installed and these results where tested STRAIGHT after i uploaded and installed the SMF 1.1


What will I do to get the mod working?

thanks.

Offline sparky33

  • Jr. Member
  • **
  • Posts: 315
    • Renault Forums
Re: Custom Profile Field Mod
« Reply #738 on: December 22, 2006, 12:10:47 PM »
Just installed, and it "seems" to be working, I can't tell at the moment as it doesn't show in profiles of already registered members, as a retrospective, but if I go to my forum as a guest and open the registration page, it does ask me to fill in the fields??? I'm using Babylon theme and SMF 1.1.1

Offline !Hachi!

  • SMF Hero
  • ******
  • Posts: 1,666
  • Gender: Male
    • pakurdu.net
Re: Custom Profile Field Mod
« Reply #739 on: December 24, 2006, 09:16:52 AM »
i am unable to delete fields after adding new one and fields number getting mix up..any idea guys like 2 fields have same field id....ah
Happy Ramadan