Custom Profile Field Mod

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

Previous topic - Next topic

pixelpeter

For all you germans out there  8)

I've attached a german translation for this mod.

have fun !!
Opel-GT-Forum [nofollow] - ... und wieder ist nur fliegen schöner
Proudly build with SMF 1.1.4

Kindred

Quote from: afe on February 24, 2008, 12:22:13 AM
Hey I am not getting any errors, however, I cannot find the configuration under "Features and Options"...

Please help and thank you.

Ok folks...

When you request help like this, it is next to useless.
1- read previous posts in this thread. (use the search) chances are that the question has been answered.
2- If you don't find the answer (or are too lazy to read the rest of the thread) then at least tell use what version of SMF, what language you are using and what theme you are using.
(note: English utf-8 is DIFFERENT from English)
(note2: If you installed smf via fantastico, then you are probably running in english utf-8. Mods only install in "english" by default.)
Сл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."

pixelpeter

I'm kindly asking if there's something wrong with my posting or any additional information missing to get help with my issue ?
Opel-GT-Forum [nofollow] - ... und wieder ist nur fliegen schöner
Proudly build with SMF 1.1.4

toddbedard

I have installed the package on another forum and it has worked flawlessy, but for some reason it's not doing what it should on a new discussion board.  It installed fine, but the button to actually do something isn't visible on the features and options section.

Help a brother out, would ya...

p.s.  I'm updated to 1.14, I'm also using the default theme.

toddbedard

#1784
Quote from: MrQBerrt on February 14, 2008, 08:22:03 PM
Quote from: Kindred on February 14, 2008, 08:14:34 PM
If you are running in anything except English (and english utf-8 is different from english) you will have to add the text strings to your modifications.yourlanguage.php file.

I changed from English-utf8 to English and that did it.  Thanks everyone.

How do you change the UTF to English?  I downloaded it directly from the smf mods page, and installed it via the package install utility on the admin page.

fecu2008

Quote from: Kindred on February 22, 2008, 01:39:05 PM
DHC...  try using search?   That question has been answered at leats 6 times in this thread.

the themes table. under the variable name CP1, CP2, etc.

And no...  the custom profile fields are not even IN the memberlist, as standard. There is code further back in this thread about how to add them to your member list, but I don't know if the coder ever put in a sort capability.

On the other hand, the custom profile fields in SMF 2.0 can be added to the member list and can be sorted on.

Ive looked through this whole thing and i dont see where you add it to your memberlist.  Can someone explain this to me or if its possible?

Kindred

it's there... it may be scattered somewhere in the 90 pages...

but you would use:
echo '$context['member']['options']['CP1']';

or CP2, CP3, etc... whatever field you want displayed.
Сл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

Quote from: Kindred on February 25, 2008, 01:48:22 AM
it's there... it may be scattered somewhere in the 90 pages...

but you would use:
echo '$context['member']['options']['CP1']';

or CP2, CP3, etc... whatever field you want displayed.


thanks kindred, where would i insert that text at in the script?

Judgey

I have installed the mod good work, but i want to know how to

Well my forums want a facebook link/icon on there profile just under there name in forum post, so how would i make an icon (like wot code would i use) so people and click it and it takes them to there facebook url.

Many thx :)

pixelpeter

Quote from: Judgey on February 25, 2008, 05:42:31 AM
I have installed the mod good work, but i want to know how to

Well my forums want a facebook link/icon on there profile just under there name in forum post, so how would i make an icon (like wot code would i use) so people and click it and it takes them to there facebook url.

Many thx :)

That's described on the first page in the first posting of this thread !!!

Quote
In the text to add before and after the field you can type "%1" (without the quotes) and it will replace %1 with the content of the field. Example: If you wanted to make a MySpace Field, you could use in the before spot and [nofollow] in the after spot, and it would just show the username but link to the site.
Opel-GT-Forum [nofollow] - ... und wieder ist nur fliegen schöner
Proudly build with SMF 1.1.4

BitBass

Quote from: BitBass on February 20, 2008, 11:43:04 PM
Awesome mod!  It's just lacking one thing for me.  I'd like to use it for users to be able to plug in personal contact info.  I'd only like that to viewable by certain member groups, and not just Admins.  Is there an easy way to do that?

I guess that would be a no?

Kindred

Quote from: BitBass on February 25, 2008, 08:45:20 AM<br />
Quote from: BitBass on February 20, 2008, 11:43:04 PM<br />Awesome mod!  It's just lacking one thing for me.  I'd like to use it for users to be able to plug in personal contact info.  I'd only like that to viewable by certain member groups, and not just Admins.  Is there an easy way to do that?<br />
<br /><br />I guess that would be a no?<br />

No... not simple.

Quote from: fecu2008 on February 25, 2008, 02:36:56 AM<br />
Quote from: Kindred on February 25, 2008, 01:48:22 AM<br />it's there... it may be scattered somewhere in the 90 pages...<br /><br />but you would use:<br />echo '$context['member']['options']['CP1']';<br /><br />or CP2, CP3, etc... whatever field you want displayed.<br /><br />
<br /><br />thanks kindred, where would i insert that text at in the script?<br />

Wherever you want the field displayed.  If you want it in the memberlist, you'll have to build it into the memberlist table.
Сл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."

Darkorical

alright I have searched a few places and read some of this and am not finding my answer

Im trying to place this form in a TP block


<form action="xmltest2.php" method="post">
Name: <input type="text" name="cust" />
<input type="submit" />
</form>


but I want the field to automatically pull info for the field at first I started with getting the user name and did this and since it was gonna fill it in automatically I hid the field and it worked just fine with this code.


echo '
<form action="xmltest2.php" method="post">
<center><input name="cust" type="hidden"type="text" value=' , $context['user']['name'] , ' > <input type="submit" value="Order Status" />
</form></center>';


Then I decided I'd try using a custom profile field to allow people to use something besides their customer number to register with so I added the mod and a field and filled it in and then changed the code to this


echo '
<center><form action="xmltest2.php" method="post">
<center><input name="cust" type="text" value=' , $context['member']['options']['CP1'] , ' > <input type="submit" value="Order Status" />
</form></center>';


and as I was typing this I discovered something

Originally I was going to say that it wouldn't fill in the field. HOWEVER I just discovered that it does in fact fill in the field ... but only on the Summery section of the profile page. can someone tell me what I'm missing?

perplexed

I've been trying to get something to work and I don't know if it's possible or not.

I want to create a profile field for something like an amazon wishlist for example and have the member input their wishlist reference but I want it to display an icon instead of the info they have input. 

The reason I want an image to display instead of the member info is because with the amazon wishlist it's just a bunch of numbers and letters and not a member name, which looks weird on the profiles.

I've tried it with both html and bbc and I can get the image to display as well as the text but not only the image on its own.

Anyone have any ideas how to do this with this mod?

Kindred

in the PRE-TEXT, you would do something like

<a href="amazon.com/wishlist/

Then the field itself would be the amazon wishlist ID

in the POST-TEXT, you would then include...
"><img src="amazon.com/image.gif" alt="Amazon Wishlist" /></a>
Сл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."

perplexed

Quote from: Kindred on February 26, 2008, 09:19:42 AM
in the PRE-TEXT, you would do something like

<a href="amazon.com/wishlist/

Then the field itself would be the amazon wishlist ID

in the POST-TEXT, you would then include...
"><img src="amazon.com/image.gif" alt="Amazon Wishlist" /></a>

oh thank you so much Kindred.

I had this code, but I think what I was doing wrong was splitting the code in the wrong place for the before and after text, and also I was adding the %1 which I don't think I needed.

It works great now - thanks again - I just couldn't see the wood for the trees

pixelpeter

I'm still having the problem, that the mod is stopping to work when I'm doing modifications to Profile.template.php by copying it from the default directory to my custom theme.

Can anybody help me, please.

More details are here: http://www.simplemachines.org/community/index.php?topic=79004.msg1439200#msg1439200

thanks
pp
Opel-GT-Forum [nofollow] - ... und wieder ist nur fliegen schöner
Proudly build with SMF 1.1.4

Kindred

why are you copying the template file into your own theme?

Does profile.template.php already exist in your theme?   if no, then there's no need to copy it.   If yes, then you need to modify THAT file, not copy the default version.
Сл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."

pixelpeter

Profile.template.php does NOT exist in the custom theme directory.
Because I need make the form fields smaller I need to modify this template.

Everything is ok when I use the default theme, or my custom theme (without modification to profile.template.php).
As soon as I copy it to the custom theme the mod stopped working.
Opel-GT-Forum [nofollow] - ... und wieder ist nur fliegen schöner
Proudly build with SMF 1.1.4

Kindred

"stops working" is not very descriptive.

HOW does it "stop working"
Are there any errors?
Do fields show up, but no text?
Сл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."

Advertisement: