inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 14, 2013 15:17:39 GMT -8
ive seen all the threads but they werent what i wanted or something. all i want is to be able to enter a link in a custom profile field and have it show up in the profile and miniprofile. please dont link to another thread
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 14, 2013 16:23:56 GMT -8
Do you want the link to show up as the full URL, or as a piece of separate text that links elsewhere? Taking PBS as an example, would you like the miniprofile to display support.proboards.com or ProBoards Support? =]
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 14, 2013 16:51:11 GMT -8
i didnt think of that, text
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 14, 2013 17:21:07 GMT -8
The solution I had (which should work in theory) actually seems to be throwing up a minor bug. If you'll give me a little bit to properly check it (and possibly make a bug report) I should be able to get this working for you. =]
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 14, 2013 17:25:10 GMT -8
In the mean time, you can make a custom field, and call it (for the sake of this thread) custom_url Set it as a text field, but make no restrictions (DO NOT make it URL only, as this seems to cause a bug). Placement and editing options you can choose yourself.
Now in your miniprofile template, look for the section about custom fields, which should look something like this;
{foreach $[user.mini_custom_field]} <br /><span class="$[user.mini_custom_field.content_class]">$[user.mini_custom_field.name]: $[user.mini_custom_field.value]</span> {/foreach}
Edit it to the following;
{foreach $[user.mini_custom_field]} {if $[user.mini_custom_field.name] == custom_url}<br /><span class="$[user.mini_custom_field.content_class]"><a href="$[user.mini_custom_field.value]" target="_blank">Test</a></span> {else} <br /><span class="$[user.mini_custom_field.content_class]">$[user.mini_custom_field.name]: $[user.mini_custom_field.value]</span> {/if} {/foreach}
I'm sure it goes without saying that the bluesection needs renaming to your custom field name. The purple part is what will display in the mini profile.
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 14, 2013 18:03:58 GMT -8
thanks paul, heres what im trying to do. i want to take it out of where all the custom fields are but it still shows up as text where the custom fields are. and i want to have the text Blog show as all the other miniprofile field names and let the user put the name of their blog or whatever else i use this for as a text link {foreach $[user.mini_custom_field]}<br/> <span class="$[user.mini_custom_field.content_class]"><u>$[user.mini_custom_field.name]</u> - $[user.mini_custom_field.value]</span> {/foreach} <hr size="2" style="margin-top:4px; margin-bottom:1px;" color= #000000/> {if $[current_user.is_member]}<a href="$[user.pm_href]" alt="PM $[user.name]" style="font-size:11px;">{if $[user.is_member]}Send Message{/if}</a><br/>{/if} {if $[user.website]}<u>Website</u> - $[user.website]<br/>{/if}
{foreach $[user.mini_custom_field]} {if $[user.mini_custom_field.name] == Blog}<a href="$[user.mini_custom_field.value]" target="_blank">Blog</a> {else} {/if} {/foreach}<br/>
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 14, 2013 18:16:29 GMT -8
Moving it away from the rest of the custom fields I can do. However, i'm not entirely sure if it's possible to give it a user chosen name. To do so would mean calling the details from two custom fields in one {if} statement, which I don't see a way to do. It might be that the PB variables are more flexible than I'm aware, but unless someone more knowledgeable than me knows otherwise I can't see a way to make that work. For the sake of closure I'll tag Tim Camara, see if he knows otherwise. =]
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 14, 2013 18:21:49 GMT -8
alrite, when i looked at it just Website and Blog looked good together but i still like the idea of the text link
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Mar 15, 2013 6:42:49 GMT -8
Hrm, without playing with it myself, perhaps it would be possible to loop through the custom fields again inside of the first loop to extract the second custom field's value? If that doesn't work, I'm not sure it's possible.
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 15, 2013 6:46:30 GMT -8
Hrm, without playing with it myself, perhaps it would be possible to loop through the custom fields again inside of the first loop to extract the second custom field's value? If that doesn't work, I'm not sure it's possible. Actually think I might have worked it out. Need to get on my laptop to check, but this might be doable. =] edit; okay, so whatever I had in my head really didn't work. =[
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 17, 2013 15:40:15 GMT -8
if you cant get it can you help me get the one that shows up as a url where the custom stuff is
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 17, 2013 20:23:52 GMT -8
if you cant get it can you help me get the one that shows up as a url where the custom stuff is Until someone comes up with a proper solution, the post I made here will do that for you. =]
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 17, 2013 20:31:16 GMT -8
i dont get it, i took it out of the custom area, i dont see what im missing
{foreach $[user.mini_custom_field]}<br/> <span class="$[user.mini_custom_field.content_class]"><u>$[user.mini_custom_field.name]</u> - $[user.mini_custom_field.value]</span> {/foreach} <hr size="2" style="margin-top:4px; margin-bottom:1px;" color= #000000/> {if $[current_user.is_member]}<a href="$[user.pm_href]" alt="PM $[user.name]" style="font-size:11px;">{if $[user.is_member]}Send Message{/if}</a><br/>{/if} {if $[user.website]}<u>Website</u> - $[user.website]<br/>{/if}
{foreach $[user.mini_custom_field]} {if $[user.mini_custom_field.name] == Blog}<a href="$[user.mini_custom_field.value]" target="_blank">Blog</a> {else} {/if} {/foreach}
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 21, 2013 6:58:45 GMT -8
i tried to put another link in but it doesnt show up, does it need something else
{foreach $[user.mini_custom_field]} {if $[user.mini_custom_field.name] == Blog}<a href="$[user.mini_custom_field.value]" target="_blank">Blog</a> {if $[user.mini_custom_field.name] == Personal Thread}<a href="$[user.mini_custom_field.value]" target="_blank">Personal Thread</a> {else} {/if} {/foreach}<br/>
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 22, 2013 20:44:48 GMT -8
i tried to put another link in but it doesnt show up, does it need something else {foreach $[user.mini_custom_field]} {if $[user.mini_custom_field.name] == Blog}<a href="$[user.mini_custom_field.value]" target="_blank">Blog</a> {if $[user.mini_custom_field.name] == Personal Thread}<a href="$[user.mini_custom_field.value]" target="_blank">Personal Thread</a> {else} {/if} {/foreach}<br/> Replace using the following where applicable, and it should work again. =] {elseif $[user.mini_custom_field.name] == Personal Thread}
|
|