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

Assistance

Quote from: Assistance on November 06, 2006, 07:45:43 AM
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?
Quote from: winrules on November 06, 2006, 03:47:26 PM
Are you using a custom theme?
nope
~playing poker~

Greengoat

Running 1.1 RC3 with security update and it's working perfectly.

Great mod.  Looks and works beautifully.  Only thing I wished for would be more definition between the different fields inside the post.  However by simply changing the color of each field does the trick.

Thanks again for the nice mod.

Lill-Micke

Hi!

If I use i custom theme and want to install this grate mod.
Can I alter all install files so it install it to the custom theme?
Is it this lines that have to bee altered:


<file name="$themedir/xxxxxxxxxxxxxx.template.php">


My theme's name is: pdx-dk03 RC3
Hove do I alter the code so it install the mod to pdx-dk03 RC3 theme?

//Micke
On my page:
MKPortal M1.1.1
SMF 1.1.1

Jim R

#643
Winrules,

If I'm understanding this correctly, the information for the Custom Profile Fields is stored in the _themes database.  Each entry is stored separately as opposed to being stored within each Member's database entry in _members.  Correct?

I know it's linked to a Member's profile by ID_Member, but is there a way to change how that is stored within the database?

As I'm learning more about how to query a database, I'm looking for ways to change the layout of each person's Profile, including where the information farmed by the Custom Profile Fields are positioned.  I just assumed this information would be stored as part of each Member's entry into the database, instead of separately (then linked back to it).

How would I query that to put relevant data on a Member's profile?

Thanks.


Calimarina

#644
I use the default theme and SMF v1.1 RC3.

It showed everything went ok but I would get an error when I clicked on Features and Options. So I uninstalled Custom Profile and deleted the files. Now when I go to click on a forum thread, any thread, I get this error

Fatal error: template_main() [function.require]: Failed opening required '/home/kamikaze/public_html/Joomla/smf/Sources/CustomProfile.php' (include_path='.:/usr/lib/php:/usr/local
/lib/php') in /home/kamikaze/public_html/Joomla/smf/Sources/Load.php(1709) : eval()'d code on line 322

Can someone please help me to get my site working correctly again. I tried reinstalling and uninstalling the mod but that doesn't work.




Okay I reinstalled the mod and got my forum back. If I uninstall it I'm screwed. However installed I get this error when accessing the Features and Options portion of the admin area:

Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/kamikaze/public_html/Joomla/smf/Sources/ModSettings.php:300) in /home/kamikaze/public_html/Joomla/smf/Sources/ModSettings.php on line 305

I'd still like to either get this mod to work correctly or have it completely gone from my site. Any ideas? Any help would be greatly appreciated.

winrules

Lill-Micke - Look at the first post in this topic.

Jim R - Try something like this:

SELECT value
FROM {$db_prefix}themes
WHERE variable = 'fieldID'
AND ID_MEMBER = $ID_MEMBER


Calimarina - Look in ModSettings.php. You will find two blocks of code like this:

function ModifyProfileSettings()
{
[...]
}

Delete one of them.


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


Jim R

#646
So Winrules, if I want to change the DB it writes to I just change the DB and make sure the tables are set up accordingly?

I'm interested in having the custom profile information in the same table as the rest of the member information.  Can that be easily changed?  I have everything backed up, so if I screw up it's no big deal.

:)

Xarcell

I was wonder if you would be interested in adding a feature to it.

The ability to allow a user with permissions to add field only to those of the same membergroup.

If it's possiable and you have time, can you add it, or post instruction here so some of us can use it if we wish?

winrules

Quote from: Jim R on November 12, 2006, 05:44:40 PM
So Winrules, if I want to change the DB it writes to I just change the DB and make sure the tables are set up accordingly?

I'm interested in having the custom profile information in the same table as the rest of the member information.  Can that be easily changed?  I have everything backed up, so if I screw up it's no big deal.

:)
You mean move the fields to the members table?

Xarcell, But what about higher membergroups?


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


Jim R

Winrules, yes.  I've looked, and I can't really find where it writes the information to any table.  I see where it is sits in my database.  I'd just like to have it with the rest of my Member information.

I also have a very nice query set up to print Member information.  I was lucky to get my brain wrapped around that.

Mikal D. Huber

I have passed this info along to my techie. Hopefully he will be able to figure out how to implement it.

Calimarina

Don't know why but after I entered in the fields it shows up in the posts as double info.

CLASS: WARRIOR
RACE: HUMAN
GENDER: FEMALE
LEVEL: 60
CLASS: WARRIOR
RACE: HUMAN
GENDER: FEMALE
LEVEL: 60

winrules

Calimarina what version are you using?


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


Lill-Micke

Hi!

I have in my custom theme (pdx-dk04rc3) Profile.template.php and PersonalMessage.template.php.
Where can I find the code to add in this two files?

The code to my Display.template.php I find in the first post in this topic but not to the other two files.

Plz help me so I can install this great mod.
//Micke
On my page:
MKPortal M1.1.1
SMF 1.1.1

Calimarina

Quote from: winrules on November 13, 2006, 04:10:49 PM
Calimarina what version are you using?

I'm using Joomla v1.0.10 with SMF v1.1 RC3. I'm also using SMF v1.1 RC3 Joomla Bridge v1.1.6. SMF is using Community Builder v1.0 RC 2. For Custom Profile Field Mod I'm using v3.15.

NotNice

I am using 1.1 RC3 with the Terra Incognita template v1.0.1
I installed the mod without problems, I can make fields in the admin-center, but the fields do not show up in the profiles.

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

// Show how many posts they have made.

in the Display.template.php and in the Display.template.php but nothing changed


thank you in advance for your help!
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little.

Lewo

hxxp:www.abonem.com [nonactive] hxxp:www.abonem.net [nonactive] hxxp:toplist.abonem.com [nonactive]

Lill-Micke

Hi!
I think you NotNice need help whit same problem that I need help whit.


Quote from: NotNice on November 17, 2006, 05:07:57 AM
I am using 1.1 RC3 with the Terra Incognita template v1.0.1
I installed the mod without problems, I can make fields in the admin-center, but the fields do not show up in the profiles.

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

// Show how many posts they have made.

in the Display.template.php and in the Display.template.php but nothing changed


thank you in advance for your help!



Quote from: Lill-Micke
Hi!

I have in my custom theme (pdx-dk04rc3) Profile.template.php and PersonalMessage.template.php.
Where can I find the code to add in this two files?

The code to my Display.template.php I find in the first post in this topic but not to the other two files.

Plz help me so I can install this great mod.
//Micke

Only we can do i wait for help from the great master winrules  ;)

Thx for this great mod!!!
On my page:
MKPortal M1.1.1
SMF 1.1.1

NotNice

you are right, same problem...
we will wait patiently and without complaining  :D
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little.

winrules

Quote from: Calimarina on November 14, 2006, 09:57:07 AM
Quote from: winrules on November 13, 2006, 04:10:49 PM
Calimarina what version are you using?

I'm using Joomla v1.0.10 with SMF v1.1 RC3. I'm also using SMF v1.1 RC3 Joomla Bridge v1.1.6. SMF is using Community Builder v1.0 RC 2. For Custom Profile Field Mod I'm using v3.15.
Did you upgrade from a previous version?

NotNice and Lill-Micke, read this.


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


Advertisement: