News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Custom Profile Field Mod

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

Previous topic - Next topic

ArkServer

Quote from: winrules on April 14, 2006, 06:14:57 PM
Quote from: ArkServer on April 14, 2006, 06:13:17 PM
Quote from: winrules on April 14, 2006, 06:09:08 PM
Quote from: ArkServer on April 14, 2006, 06:07:27 PM
profiles yes, registration no
any errors on install?
also are you sure you've enabled show on registration?

Yup no install errors, the problem is this:
admin etc.. custom profiles -> "Show field on regristration?" when i click öptional input" and save its still on "dont show" the same as "show in posts" i just wont save. i tried it with 2 Custom Profile Fields both same results.

atm no one can register because you need to fill in the information but it isnt shown in the registration field.
At what version of this mod did you initially install?
I  installed customprofile2-11.zip from the mod page.

winrules

Quote from: ArkServer on April 14, 2006, 06:18:30 PM
Quote from: winrules on April 14, 2006, 06:14:57 PM
Quote from: ArkServer on April 14, 2006, 06:13:17 PM
Quote from: winrules on April 14, 2006, 06:09:08 PM
Quote from: ArkServer on April 14, 2006, 06:07:27 PM
profiles yes, registration no
any errors on install?
also are you sure you've enabled show on registration?

Yup no install errors, the problem is this:
admin etc.. custom profiles -> "Show field on regristration?" when i click öptional input" and save its still on "dont show" the same as "show in posts" i just wont save. i tried it with 2 Custom Profile Fields both same results.

atm no one can register because you need to fill in the information but it isnt shown in the registration field.
At what version of this mod did you initially install?
I  installed customprofile2-11.zip from the mod page.
Is that the first version you install, or did you start at a different version and then upgrade?


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


ArkServer

Quote from: winrules on April 14, 2006, 06:22:20 PM
Quote from: ArkServer on April 14, 2006, 06:18:30 PM
Quote from: winrules on April 14, 2006, 06:14:57 PM
Quote from: ArkServer on April 14, 2006, 06:13:17 PM
Quote from: winrules on April 14, 2006, 06:09:08 PM
Quote from: ArkServer on April 14, 2006, 06:07:27 PM
profiles yes, registration no
any errors on install?
also are you sure you've enabled show on registration?

Yup no install errors, the problem is this:
admin etc.. custom profiles -> "Show field on regristration?" when i click öptional input" and save its still on "dont show" the same as "show in posts" i just wont save. i tried it with 2 Custom Profile Fields both same results.

atm no one can register because you need to fill in the information but it isnt shown in the registration field.
At what version of this mod did you initially install?
I  installed customprofile2-11.zip from the mod page.
Is that the first version you install, or did you start at a different version and then upgrade?

Yup first version ever

Orstio

This mod is great Winrules.

I do have a request, though.  Can you make sure that href fields in anchor tags are surrounded by double-quotes?  It breaks some integration functions to have <a href=URL> instead of <a href="URL">, not to mention that without the quotations, the page is not XHTML compliant. ;)

winrules

Quote from: Orstio on April 14, 2006, 06:51:05 PM
This mod is great Winrules.

I do have a request, though.  Can you make sure that href fields in anchor tags are surrounded by double-quotes?  It breaks some integration functions to have <a href=URL> instead of <a href="URL">, not to mention that without the quotations, the page is not XHTML compliant. ;)
OK, I guess that is the problem. Will release fix ASAP :)

I hate it when it's stupid mistakes like that that screw things up :P
Quote from: ArkServer on April 14, 2006, 06:24:26 PM
Quote from: winrules on April 14, 2006, 06:22:20 PM
Quote from: ArkServer on April 14, 2006, 06:18:30 PM
Quote from: winrules on April 14, 2006, 06:14:57 PM
Quote from: ArkServer on April 14, 2006, 06:13:17 PM
Quote from: winrules on April 14, 2006, 06:09:08 PM
Quote from: ArkServer on April 14, 2006, 06:07:27 PM
profiles yes, registration no
any errors on install?
also are you sure you've enabled show on registration?

Yup no install errors, the problem is this:
admin etc.. custom profiles -> "Show field on regristration?" when i click öptional input" and save its still on "dont show" the same as "show in posts" i just wont save. i tried it with 2 Custom Profile Fields both same results.

atm no one can register because you need to fill in the information but it isnt shown in the registration field.
At what version of this mod did you initially install?
I  installed customprofile2-11.zip from the mod page.
Is that the first version you install, or did you start at a different version and then upgrade?

Yup first version ever
Wierd, does your theme have a registration.template.php? Also, could you try recreating the field?


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


john109

Yes winrules this is a great mod like Orstio says (now that I have it working :D).

With the help of the great Orstio I'm able to use the mod without any problems now except maybe the unwrapping of my forums thing.  I asked Orstio about that as well which is why he made the above post.  See this thread if you had similar problems to myself.

http://www.simplemachines.org/community/index.php?topic=81676.0


I hope that fixes my unwrapping problem.  I anxiously await your fix.  Thanks winrule.

winrules

Version 2.12 has been released! :)
This release fixes a bug with the Mambo/Joomla bridge.



Quote from: john109 on April 14, 2006, 07:10:59 PM
Yes winrules this is a great mod like Orstio says (now that I have it working :D).

With the help of the great Orstio I'm able to use the mod without any problems now except maybe the unwrapping of my forums thing.  I asked Orstio about that as well which is why he made the above post.  See this thread if you had similar problems to myself.

http://www.simplemachines.org/community/index.php?topic=81676.0


I hope that fixes my unwrapping problem.  I anxiously await your fix.  Thanks winrule.
Didn't take too long, just hadded to add a few quotes :)


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



uberjon

it works great! i love this mod but i am geting my error logs flooded with this

**********url removed***/index.php?action=profile
Apply Filter: Only show the errors with the same message
8: Undefined index: CP3_view
File: /home/uberjon/public_html/koc/Themes/default/languages/Who.english.php (eval?)
Line: 250

fix that and il be happy as can be

digit

#129
Quote from: winrules on April 14, 2006, 05:24:49 PM

Can you post what code your using?


In SSI.php, I found....



setupThemeContext();



and added after it:



require_once($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);



Then I created a php page....




<?php

include ('/f/SSI.php');

echo 
'
<html>
<head>
<title>test</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">
</head>
<body background="/images/coinsc.jpg">'
;

if (
$context['member']['options']['CP1'])
{
echo 
'please print that field!  ' $context['member']['options']['CP1'] , '

'
;
}
else
{

echo 
'nope, no data yet!';
}
echo 
'
</body>
</html>
'
;



For some reason, it's not printing the field.

here is that URL....

http://www.treasurenet.com/f/members.php

I can't post SSI.php and Profile.php because they ecxeed the maximum allowed characters. (can I email them to you?)

Thanks in advance.

Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

john109

#130
Thanks for the updated fix winrules!! Everything works great now.

Just one more thing if I may?  I inserted the code you posted in your first post of this thread into my custom theme's display.theme.php .  It shows in PM's fine.



But in posts it shows like this.  What can I add to get it starting on its own line?



Is it also possible so that if they don't enter anything in that custom field nothing shows in the posts/pm's ?  If I leave the field blank the text I set to print before and/or after the field still gets printed.  Maybe for the future some might want the choice to show or not show if the field is empty?


Edit - Forget everything I said above.  I'm still figuring things out.  I had set it to show in posts next to the pictures.  That's why it looked like that in my screenshots.   ::)

Still though how about when the field is empty?  Choice of whether or not to still print the text?

GJ-tje

Is it possible, to add the BBC generetor to those fields as well?
I mean the editor box, you have when you post a reply in a topic, where you can select some things, like the B, for bold text and the like.

It's above the message field...

Many thanks in advance!
"People cannot gain anything without sacrificing something of equal value.
To obtain, something of equal value must be lost.
That is alchemy's first law of Equivalent Exchange."

"People should not be afraid of their Goverments. Goverments should be afraid of their People."

winrules

Quote from: digit on April 15, 2006, 01:25:19 AM
Quote from: winrules on April 14, 2006, 05:24:49 PM

Can you post what code your using?


In SSI.php, I found....



setupThemeContext();



and added after it:



require_once($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);



Then I created a php page....




<?php

include ('/f/SSI.php');

echo 
'
<html>
<head>
<title>test</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">
</head>
<body background="/images/coinsc.jpg">'
;

if (
$context['member']['options']['CP1'])
{
echo 
'please print that field!  ' $context['member']['options']['CP1'] , '

'
;
}
else
{

echo 
'nope, no data yet!';
}
echo 
'
</body>
</html>
'
;



For some reason, it's not printing the field.

here is that URL....

http://www.treasurenet.com/f/members.php

I can't post SSI.php and Profile.php because they ecxeed the maximum allowed characters. (can I email them to you?)

Thanks in advance.


Can you try

if (isset($context))
{
echo 'test';
}

to see if it's even including ssi?


GJ-tje, No, I really don't see the point in that.

john109, That is a bug, it shouldn't be doing that, I will release a fix ASAP.

uberjon, I am currently looking into that.

ArkServer, are you using the actual default theme, or a copy of it?


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


GJ-tje

#133
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...

I mean this box to be added (as option):
"People cannot gain anything without sacrificing something of equal value.
To obtain, something of equal value must be lost.
That is alchemy's first law of Equivalent Exchange."

"People should not be afraid of their Goverments. Goverments should be afraid of their People."

winrules

Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
[/qu
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
You could still open up a post box and then copy and paste.


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


GJ-tje

#135
Quote from: winrules on April 15, 2006, 09:52:10 AM
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
[/qu
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
You could still open up a post box and then copy and paste.

I do not expect the users to do that, keep in mind (and sorry for the flame, but it's true) simple users are very lazy to do such things... ;)

And I have to give those users the possibility too...
"People cannot gain anything without sacrificing something of equal value.
To obtain, something of equal value must be lost.
That is alchemy's first law of Equivalent Exchange."

"People should not be afraid of their Goverments. Goverments should be afraid of their People."

winrules

Quote from: GJ-tje on April 15, 2006, 09:54:22 AM
Quote from: winrules on April 15, 2006, 09:52:10 AM
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
[/qu
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
You could still open up a post box and then copy and paste.

I do not expect the users to do that, keep in mind (and sorry for the flame, but it's true) simple users are very lazy to do such things... ;)
I really just don't think there's a need, and there isn't one for signature either.


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


GJ-tje

#137
Quote from: winrules on April 15, 2006, 09:56:40 AM
Quote from: GJ-tje on April 15, 2006, 09:54:22 AM
Quote from: winrules on April 15, 2006, 09:52:10 AM
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
[/qu
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
You could still open up a post box and then copy and paste.

I do not expect the users to do that, keep in mind (and sorry for the flame, but it's true) simple users are very lazy to do such things... ;)
I really just don't think there's a need, and there isn't one for signature either.

A signature is just a signature, why would some one have fancy stuff in there?
Have you ever made an image for your signature on letters? ;)

I think that there really is a need for it... Especially on chatservers... Which I am running and have installed the mod to add special fields... ;)
"People cannot gain anything without sacrificing something of equal value.
To obtain, something of equal value must be lost.
That is alchemy's first law of Equivalent Exchange."

"People should not be afraid of their Goverments. Goverments should be afraid of their People."

winrules

Quote from: GJ-tje on April 15, 2006, 09:58:59 AM
Quote from: winrules on April 15, 2006, 09:56:40 AM
Quote from: GJ-tje on April 15, 2006, 09:54:22 AM
Quote from: winrules on April 15, 2006, 09:52:10 AM
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
[/qu
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
You could still open up a post box and then copy and paste.

I do not expect the users to do that, keep in mind (and sorry for the flame, but it's true) simple users are very lazy to do such things... ;)
I really just don't think there's a need, and there isn't one for signature either.
A signature is just a signature, why would some one have fancy stuff in there?
Have you ever made an image for your signature on letters? ;)

I think that there really is a need for it... Especially on chatservers... Which I am running and have installed the mod to add special fields... ;)
I still don't really see the point, but i will consider it for next version.


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


GJ-tje

Quote from: winrules on April 15, 2006, 10:02:51 AM
Quote from: GJ-tje on April 15, 2006, 09:58:59 AM
Quote from: winrules on April 15, 2006, 09:56:40 AM
Quote from: GJ-tje on April 15, 2006, 09:54:22 AM
Quote from: winrules on April 15, 2006, 09:52:10 AM
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
[/qu
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
You could still open up a post box and then copy and paste.

I do not expect the users to do that, keep in mind (and sorry for the flame, but it's true) simple users are very lazy to do such things... ;)
I really just don't think there's a need, and there isn't one for signature either.
A signature is just a signature, why would some one have fancy stuff in there?
Have you ever made an image for your signature on letters? ;)

I think that there really is a need for it... Especially on chatservers... Which I am running and have installed the mod to add special fields... ;)
I still don't really see the point, but i will consider it for next version.

I (and I think others too) would really appreciate it, if you've added it! :D
Many thanks in advance
"People cannot gain anything without sacrificing something of equal value.
To obtain, something of equal value must be lost.
That is alchemy's first law of Equivalent Exchange."

"People should not be afraid of their Goverments. Goverments should be afraid of their People."

Advertisement: