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

Deadpool

Would there be a way to enable HTML parsing for a field?

winrules

Quote from: Deadpool on May 08, 2006, 05:51:30 PM
Would there be a way to enable HTML parsing for a field?
wouldn't that be a security risk?


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


Deadpool

If everyone was able to do yes, but I just want the admin to be able to do it. So I could just make that field to be edited by admins only right?

winrules

#323
if you enable bbc parsing and [html] use tags I think it might work


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


Deadpool

Well, the code I want to use isn't available in bbcode.

winrules

Quote from: Deadpool on May 08, 2006, 06:00:15 PM
Well, the code I want to use isn't available in bbcode.
arg, I meant to say [html] tags but it got edited out of my post because I forgot to put [nobbc] tags around it :P


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


Deadpool

Oh, I've already tried that as well. The html bbcode only allows certain html.

winrules

Quote from: Deadpool on May 08, 2006, 06:05:47 PM
Oh, I've already tried that as well. The html bbcode only allows certain html.
not when your admin...try[html]<insertadvancedhtmlhere>[/html]


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


NEOhidra

i solved my problem custom fields - just change type of encoding in Themes\default\languages\Install.english.php. I use English translation but write with Cyrillic and when encoding is cp-1251 everything is fine - Kiril is shown as Кирил.

Søren Bjerg

Quote from: winrules on May 08, 2006, 05:43:24 PM
Version 3.02 has been released! This version fixes a bug with fields not being able to be displayed on posts.
Good work 8).
RUNE HORDES dot INFO - SMF 1.1.10 w/ Custom Profile Mod... and various permissions hooks and template changes (new topic form).

devdevil


JamesA

Great Mod this, keep up the good work!

Just wondering where the data is stored, ive had a look through the database and nothing jumps out at me. The reason i wanted to know was i have someone writing an add-on for my site and i want it to be able to update one of the custom fields without going through the normal edit profile screens.

Cheers!

winrules

Quote from: devdevil on May 11, 2006, 02:51:45 AM
any chance for 1.0.7 ??

probly not.


Quote from: JamesA on May 12, 2006, 06:33:57 AM
Great Mod this, keep up the good work!

Just wondering where the data is stored, ive had a look through the database and nothing jumps out at me. The reason i wanted to know was i have someone writing an add-on for my site and i want it to be able to update one of the custom fields without going through the normal edit profile screens.

Cheers!
in the themes table. Also look in profile.php, there are a few functions you might look into there also.


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


winrules

#333
Version 3.1 has been release! This version adds an option to reorder and delete fields, makes some small changes in the admin interface, adds field descriptions, makes the text for the admin tab be stored in language files, adds some more options for horizontal rules, and makes fields enabled by default when you create them.

Note to people wanting to update translated version s:
-$txt['co_optinput'] has been renamed to $txt['cp_optinput']
-$txt['cp_enable'] has changed
-$txt['cp_hrule'] has changed
-All strings after $txt['cp_regerror'] are new


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


Harzem

Nice to hear the new version, winrules :)

Søren Bjerg

Great new version - good work!
RUNE HORDES dot INFO - SMF 1.1.10 w/ Custom Profile Mod... and various permissions hooks and template changes (new topic form).

Søren Bjerg

One thing; when clicking 'Add an option' you are redirected to...

/.index.php?action=featuresettings;sa=profile;cp=

...with nothing but a 'Save' button (an option is still added).
RUNE HORDES dot INFO - SMF 1.1.10 w/ Custom Profile Mod... and various permissions hooks and template changes (new topic form).

winrules

Quote from: Søren Bjerg on May 16, 2006, 10:43:28 AM
One thing; when clicking 'Add an option' you are redirected to...

/.index.php?action=featuresettings;sa=profile;cp=

...with nothing but a 'Save' button (an option is still added).
Will release bug fix ASAP :)


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


winrules

Version 3.11 has been released! This version fixes a bug with adding options and a bug with moving selection box fields.


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


borbosha

I have added the correct code to my theme template file and am getting the fields in my profile but they won't show up on posts. Could anyone explain why this is happening?

I am using 1.1RC2 with TP0.8.6 and a custom theme (with modified display.template.php).

"It seems one thing has been true all along, you don't really know what you've got 'till it's gone." - Fort Minor

Advertisement: