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

ArkServer

Anyone know how to solve my problems? if you want i can send the file for you to edit..

digit

Quote from: winrules on April 15, 2006, 09:40:31 AM

Can you try

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

to see if it's even including ssi?



yep, working fine.


http://www.treasurenet.com/f/members.php
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!)

winrules

Quote from: ArkServer on April 15, 2006, 10:35:07 AM
Anyone know how to solve my problems? if you want i can send the file for you to edit..
are your sure your using the default theme (and not a copy of it)?

digit, could you PM me your ssi.php?


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


ArkServer

Yup thats the only theme on our forums so that makes it the default one right? We dont hae any other themes in our theme directory.

perplexed

I uninstalled the 2.1 version and installed the 2.12 version and now I have different errors:

8: Undefined index: CP3_view
File: /home/xxxxx/public_html/forum/Themes/default/languages/Who.english.php (summary sub template - eval?)
Line: 316

and

8: Undefined index: CP4_edit
File: /home/xxxxx/public_html/forum/Themes/default/Profile.template.php (forumProfile sub template - eval?)
Line: 1663

over and over and over for every CP field 1-6 that I have enabled.  1 and 2 are registration CP fields and the rest are in profile only

winrules

Quote from: ArkServer on April 15, 2006, 03:02:10 PM
Yup thats the only theme on our forums so that makes it the default one right? We dont hae any other themes in our theme directory.
Could you pm me your register.template.php?


Quote from: perplexed on April 15, 2006, 06:19:05 PM
I uninstalled the 2.1 version and installed the 2.12 version and now I have different errors:

8: Undefined index: CP3_view
File: /home/xxxxx/public_html/forum/Themes/default/languages/Who.english.php (summary sub template - eval?)
Line: 316

and

8: Undefined index: CP4_edit
File: /home/xxxxx/public_html/forum/Themes/default/Profile.template.php (forumProfile sub template - eval?)
Line: 1663

over and over and over for every CP field 1-6 that I have enabled.  1 and 2 are registration CP fields and the rest are in profile only
OK, I think I've figured out what's causing this. To fix it go to this URL for field 1
http://www.mysite.com/smfdir/index.php?action=featuresettings;sa=profile;addfield=1
And then for field 2:
http://www.mysite.com/smfdir/index.php?action=featuresettings;sa=profile;addfield=2
ect, replacing the "addfield=2" with "addfield=field number" for every field that is giving you a problem. I'll release a fix ASAP.


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


perplexed

thanks, but I'm not sure what you want me to do, can you explain a little more or should I wait for the fix?

~thanks

winrules

Quote from: perplexed on April 16, 2006, 07:12:26 AM
thanks, but I'm not sure what you want me to do, can you explain a little more or should I wait for the fix?

~thanks
2.13 will probly be released tomorow, and it will fix all the current bugs.


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



Skipdawg

Update! kewl I very much like this Mod  ;D ;)
Skipdawg's Community

Powered by SMF 1.1.3

Greycloak

#150
I'm looking for a way to allow moderators to be able to edit a custom field.  I tried to modify the code myself, but it's not working.

Other than that, this is is a great mod!

[edit]Nevermind...I figured it out.  That was easier than I expected.

digit

Quote from: winrules on April 15, 2006, 12:36:00 PM
Quote from: ArkServer on April 15, 2006, 10:35:07 AM
Anyone know how to solve my problems? if you want i can send the file for you to edit..
are your sure your using the default theme (and not a copy of it)?

digit, could you PM me your ssi.php?

ok, I did - did you get it?  Still can't get that page to work. :(

also - a small feature request.

A field type that is a linked URL.  (like the existing website field)
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!)

winrules

Quote from: digit on April 17, 2006, 07:44:14 AM
Quote from: winrules on April 15, 2006, 12:36:00 PM
Quote from: ArkServer on April 15, 2006, 10:35:07 AM
Anyone know how to solve my problems? if you want i can send the file for you to edit..
are your sure your using the default theme (and not a copy of it)?

digit, could you PM me your ssi.php?

ok, I did - did you get it?  Still can't get that page to work. :(

also - a small feature request.

A field type that is a linked URL.  (like the existing website field)
yes, can you try an if (isset($context['member']['options']['CP1']))


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


digit

Quote from: winrules on April 17, 2006, 03:45:35 PM
Quote from: digit on April 17, 2006, 07:44:14 AM
Quote from: winrules on April 15, 2006, 12:36:00 PM
Quote from: ArkServer on April 15, 2006, 10:35:07 AM
Anyone know how to solve my problems? if you want i can send the file for you to edit..
are your sure your using the default theme (and not a copy of it)?

digit, could you PM me your ssi.php?

ok, I did - did you get it?  Still can't get that page to work. :(

also - a small feature request.

A field type that is a linked URL.  (like the existing website field)
yes, can you try an if (isset($context['member']['options']['CP1']))

still nothing... :(

here's my php page code...




<?php

require("/users/me/pages/f/SSI.php");

echo 
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">
<link rel="stylesheet" href="/css/fx.css" type="text/css">
</head>
<body background="/images/coinsc.jpg">'
;


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

'
;
}
else
{

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




here's the url...

http://www.treasurenet.com/f/members.php
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!)

Nomina

Do we have a 2.13 update yet to correct the "undefined index" errors?  The mods page still lists versions 2.12, so I suppose that means, "No."    :'(

winrules

Quote from: digit on April 18, 2006, 01:08:13 AM
Quote from: winrules on April 17, 2006, 03:45:35 PM
Quote from: digit on April 17, 2006, 07:44:14 AM
Quote from: winrules on April 15, 2006, 12:36:00 PM
Quote from: ArkServer on April 15, 2006, 10:35:07 AM
Anyone know how to solve my problems? if you want i can send the file for you to edit..
are your sure your using the default theme (and not a copy of it)?

digit, could you PM me your ssi.php?

ok, I did - did you get it?  Still can't get that page to work. :(

also - a small feature request.

A field type that is a linked URL.  (like the existing website field)
yes, can you try an if (isset($context['member']['options']['CP1']))

still nothing... :(

here's my php page code...




<?php

require("/users/me/pages/f/SSI.php");

echo 
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">
<link rel="stylesheet" href="/css/fx.css" type="text/css">
</head>
<body background="/images/coinsc.jpg">'
;


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

'
;
}
else
{

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




here's the url...

http://www.treasurenet.com/f/members.php
You have to be logged in.

Quote from: Nomina on April 18, 2006, 08:09:25 AM
Do we have a 2.13 update yet to correct the "undefined index" errors?  The mods page still lists versions 2.12, so I suppose that means, "No."    :'(
just give me a little bit and it'll be out...I'm working on another mod, but I'll bump this update up on my list :)


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


digit

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!)

winrules



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


perplexed

*waits patiently for 2.13*

Just to be clear, any fields that I have made and entered info into will be gone when I install 2.13 or will they still be there?  (they seemed to stay last time)  I just wanted to check before I go ahead and tell people its safe to add stuff

digit

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!)

Advertisement: