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

Mulgarus

is there anyway to make what is someone puts into the custom field a hyperlink?

steiger

#2121
Quote from: Mulgarus on August 27, 2008, 01:32:24 AM
is there anyway to make what is someone puts into the custom field a hyperlink?

Parse BBC: yes
Text to display before field: <url=http://www.simplemachines.org/>
Text to display after field: </url>

Mulgarus

yea, BUT i don't want to show the entire url in their profile or posts.

steiger

Quote from: Mulgarus on August 27, 2008, 02:56:56 AM
yea, BUT i don't want to show the entire url in their profile or posts.
I've corrected my posting.
Doing it this way the URL is not displayed

Mulgarus

for x sample

http://s3.ikariam.org/index.php?view=city&id=166849

I know how to make a hyperlink, just not with it working with this custom field mod like i want it to :)
I would want them to enter their city ID# in a custom field, but not show the entire url(which it does now).

steiger

Parse BBC: yes
Text to display before field: <url=http://s3.ikariam.org/index.php?view=city&id=%1>ID=
Text to display after field: </url>

generates the following HTML (if ID=123)


<a href="http://s3.ikariam.org/index.php?view=city&id=123>ID=123</url>


Kindred

just to note...   this WAS already answered (several times) in this very thread.

Also...   you probably want something like

before: [ url=http://http://s3.ikariam.org/index.php?view=city&id=
after:]CITY[/url ]

(without the spaces and using whatever text you actually want displayed in place of CITY.
Using %1 will display the contents of the actual field....)
Сл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."

bfeo

#2127
Quote from: bfeo on August 25, 2008, 08:39:06 AM
How do I clear all previous custom fields?  I've deleted them, but for some reason, when I add a new one, say an xfire field, it shows as a duplicate on the profile settings and summary. 

I think it has something to do with the Field ID, but I couldn't find where they were kept in my database.  I'd like to remove them, because I don't want the old ones, and my other admins aren't very inept with smf.

Please assist.


I even tried a search for "CP", in my database, and it came up with 0 results.


I uninstalled and reinstalled, and now even new fields are duplicating!  This is frustrating.

Quote from: steiger on August 25, 2008, 12:46:41 PM
The field definitions are stored in the smf_settings table as CP{number}_type, CP{number}_id, ...

Quote from: bfeo on August 25, 2008, 01:58:02 PM
Should I uninstall mod, delete those definitions, and reinstall?

Kindred

why would you uninstall/reinstall?   Just remove any rows of CP1_type and CP1_id (and then do the same for the additional numbers, CP2, CP3, etc)
Сл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."

wmcintosh

Another handy mod, quite easy additions, installed without a hitch.

steiger

Quote from: Kindred on August 27, 2008, 11:07:00 AM
why would you uninstall/reinstall?   Just remove any rows of CP1_type and CP1_id (and then do the same for the additional numbers, CP2, CP3, etc)
I would also remove all the other CP rows like CP1_bbc, CP1_data1, ...

bfeo

I deleted all CP related tables, and it still duplicates when I make new ones.

brans

Dear all,

does anyone have a clue about the problem I posted earlier in this thread: http://www.simplemachines.org/community/index.php?topic=79004.msg1674225#msg1674225

It can't be so hard, I just don't know where to start searching for the solution.

Thanks in advance for your help,
brans

steiger

@bfeo
I hope you deleted all relevant rows (not tables).
Sorry, don't know why you are still getting duplicates.


@brans
You could try to modify the mod ;D
Look inside CustomProfile.php in function DisplayFieldsProfile(). There you could handle the output  yourself.

steiger

A question about modifying the mod:
I have made two additional settings and contacted winrules twice if he is interested.
No reply, no feedback, just ignorance.

As I am new in this community I do not know if there is a certain way to discuss such topics.
Is it?

wmcintosh

Quote from: steiger on August 28, 2008, 03:32:26 AM
I have made two additional settings and contacted winrules twice if he is interested.
No reply, no feedback, just ignorance.

Take note of his signature "Please do not PM me for support."

jako7444

Hi there
I am sorry to be a nuisance, but I have looked all through thread and can't find anything similar.
I have running 1.1.5 and have installed this mod - no probs.
The problem is, I can't seem to find the Fields in Features and Options.
Is there something else I need to do, or can someone point me to a reference sheet that I can use.....
Or perhaps it is just me having a "blonde" day.
Again, sorry to be a nuisance, I am very new to this and would appreciate anyone pointing me in the right direction.
Cheers
Di

wmcintosh

#2137
@jako7444, you don't see whats highlighted in the red.

Correction.

jako7444

Hey there,
No, nothing looks different.  Nothing in red.

jako7444

Sorry, meant to say - no - that heading is not there

Advertisement: