Former Member
inherit
guest@proboards.com
165779
0
Nov 26, 2024 17:50:13 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 25, 2015 6:37:13 GMT -8
Hi all Im using the template below in the Mini Profile section but the issue im having is that the Custom Titles or Personal Text arent showing up. Also underneath the "Joined" information can the code be edited to include the Gender ? Thanks Dave <div class="$[miniprofile_class]" {foreach $[user.custom_field]} {if $[user.custom_field.name] == "Mini Profile Background Image (Enter URL)"}style="background-image: url('$[user.custom_field.value]');"{/if}{/foreach}> <center>$[user]<br /> {if !$[user.is_member]}Guest<br />{/if} <hr size="2" style="margin:1px" color= #000000 /> {if $[user.group]} <b>$[user.group.name]</b> <br />$[user.group.stars]<br /> <hr size="2" style="margin:1px" color= #000000 /> {/if}{if !$[user.is_staff]} {if $[user.rank]} <b>$[user.rank.name]</b><br /> {if $[user.rank.stars]} $[user.rank.stars]</center><br \> <hr size="2" style="margin:1px" color= #000000 /> <hr size="2" style="margin:1px" color= #000000/> {/if} {/if}
{/if} {if $[user.is_online]}<span class="italic" style="font-weight:bold;">Member Is </span><span style="color: #1d77de; font-weight: bold; font-style:italic;">Online</span><br />{/if} $[user.warning.bar] <br /> {if $[user.avatar]} <div class="avatar">$[user.avatar]</div><br /> {/if} {if $[user.custom_title]}<b>$[user.custom_title]</b><br />{/if} <hr size="2" style="margin-top:2px; margin-bottom:0px;" color= #000000/> {if $[user.is_member]} <div class="info" style="padding-top:5px; font-size:11px;"> <u>Posts</u> - $[user.posts]{if $[user.gender]}<span class="float-right">$[user.gender.image]</span>{/if} <br /><u>Likes</u> - $[user.likes] <br /><u>Joined</u> - $[current_user.registered_on_short] {if $[user.location]}<br /><u>Location</u> - $[user.location]{/if} <hr size="2" style="margin-top:4px; margin-bottom:1px;" color= #000000/> {if $[user.website]}<u>Website</u> - $[user.website]<br/> {if $[user.social_network]}<u>Social Networks</u> - {foreach $[user.social_network]} $[user.social_network]$[user.social_network.comma] {/foreach}{/if}<br/>{/if} {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/> <center>{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}</center>
</div> {/if} {if $[user.miniprofile_badge]} <div class="$[user.miniprofile_badge_container_class]"> {foreach $[user.miniprofile_badge]} $[user.miniprofile_badge.image.thumb] {/foreach} </div> {/if} </div>
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on May 28, 2015 11:37:27 GMT -8
I stuck your coding on my test site and the custom title didn't showed up until I gave myself one. As far as the gender, the member has to enable that under privacy settings in their profile so make sure it is enabled. Personal notes I don't believe are supposed to show at all. I just added a personal note to my profile here on Proboards and it doesn't show nor does it show on my test site so I believe that is just private for when you view your profile.
Oh and to move the gender below the joined just copy this (found in your code above but with a break added)...
{if $[user.gender]}<span class="float-left">$[user.gender.image]</span>{/if}<br />
And then just slip it right below the blue:
<br /><u>Joined</u> - $[current_user.registered_on_short]<br /> {if $[user.gender]}<span class="float-left">$[user.gender.image]</span>{/if}<br />
Thought I'd add, if you checked the things I said to check and things are still not showing up, can you make a thread/post in the one board viewable to guests so we can see the profile.
|
|
Former Member
inherit
guest@proboards.com
165779
0
Nov 26, 2024 17:50:13 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 28, 2015 14:13:21 GMT -8
I stuck your coding on my test site and the custom title didn't showed up until I gave myself one. As far as the gender, the member has to enable that under privacy settings in their profile so make sure it is enabled. Personal notes I don't believe are supposed to show at all. I just added a personal note to my profile here on Proboards and it doesn't show nor does it show on my test site so I believe that is just private for when you view your profile.
Oh and to move the gender below the joined just copy this (found in your code above but with a break added)...
{if $[user.gender]}<span class="float-left">$[user.gender.image]</span>{/if}<br />
And then just slip it right below the blue:
<br /><u>Joined</u> - $[current_user.registered_on_short]<br /> {if $[user.gender]}<span class="float-left">$[user.gender.image]</span>{/if}<br />
Thought I'd add, if you checked the things I said to check and things are still not showing up, can you make a thread/post in the one board viewable to guests so we can see the profile. Thanks Tumbleweed www.codv5test.proboards.com I have made the changes above. And i have also made all the boards viewable to everyone The part i was referring too is the below in the red box which doesnt show up in the mini profile Thanks Dave
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on May 28, 2015 14:51:28 GMT -8
I stuck your coding on my test site and the custom title didn't showed up until I gave myself one. As far as the gender, the member has to enable that under privacy settings in their profile so make sure it is enabled. Personal notes I don't believe are supposed to show at all. I just added a personal note to my profile here on Proboards and it doesn't show nor does it show on my test site so I believe that is just private for when you view your profile.
Oh and to move the gender below the joined just copy this (found in your code above but with a break added)...
{if $[user.gender]}<span class="float-left">$[user.gender.image]</span>{/if}<br />
And then just slip it right below the blue:
<br /><u>Joined</u> - $[current_user.registered_on_short]<br /> {if $[user.gender]}<span class="float-left">$[user.gender.image]</span>{/if}<br />
Thought I'd add, if you checked the things I said to check and things are still not showing up, can you make a thread/post in the one board viewable to guests so we can see the profile. Thanks Tumbleweed www.codv5test.proboards.com I have made the changes above. And i have also made all the boards viewable to everyone The part i was referring too is the below in the red box which doesnt show up in the mini profile Thanks Dave O.K. You don't seem to have that part in your template so add this wherever you want it:
{if $[user.personal_text.message]} $[user.personal_text]<br /> {/if}
|
|
Former Member
inherit
guest@proboards.com
165779
0
Nov 26, 2024 17:50:13 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 28, 2015 15:25:16 GMT -8
Thanks Tumbleweed www.codv5test.proboards.com I have made the changes above. And i have also made all the boards viewable to everyone The part i was referring too is the below in the red box which doesnt show up in the mini profile Thanks Dave O.K. You don't seem to have that part in your template so add this wherever you want it:
{if $[user.personal_text.message]} $[user.personal_text]<br /> {/if}
Thanks Tumbleweed, I know im a pain but ..... Ive inserted that code into my template and seems to be displaying now. I have moved the Online / Offline Status to the section below the avatar. Now the admin one looks perfect ... But if you look at the reply below the member profile looks a little messed up and could do without tidying up a little The user one has a double margin line in which could do with being hidden and the user status has a !0Offline and a gap between this and the posts. How can i tidy this up for the user but leave intact for the admin Thanks Dave
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on May 28, 2015 15:37:11 GMT -8
Yep, Dave B, that does kind of look bad. We'll probably need to use some if else statement but I need to get offline so will think about the best way to handle that when I have a chance to get back online. And no problem needing more help. That's why I'm here and no one holds a gun to my head. lol
|
|
Former Member
inherit
guest@proboards.com
165779
0
Nov 26, 2024 17:50:13 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 28, 2015 15:45:38 GMT -8
Yep, Dave B, that does kind of look bad. We'll probably need to use some if else statement but I need to get offline so will think about the best way to handle that when I have a chance to get back online. And no problem needing more help. That's why I'm here and no one holds a gun to my head. lol Ok thanks Tumbleweed Have a well deserved rest and il look forward to seeing what you come up with. And yeah i think im going to do the same and go to bed .. No idea where you are but here in the UK its 12:45am be time ive had a smoke and a drink it be 1am lol Thanks for your help so far couldnt have got anywhere even close to where i am now without you Dave
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on May 28, 2015 20:10:54 GMT -8
Yep, Dave B, that does kind of look bad. We'll probably need to use some if else statement but I need to get offline so will think about the best way to handle that when I have a chance to get back online. And no problem needing more help. That's why I'm here and no one holds a gun to my head. lol Ok thanks Tumbleweed Have a well deserved rest and il look forward to seeing what you come up with. And yeah i think im going to do the same and go to bed .. No idea where you are but here in the UK its 12:45am be time ive had a smoke and a drink it be 1am lol Thanks for your help so far couldnt have got anywhere even close to where i am now without you Dave I'm in the Midwest in the U.S. Just was going out with friends for a bit. It's only 11:00pm here 4 hours later. I think if you make sure all the hr tags are inside the if statement directly above it, that should do it: I think most of them are but there are a couple like posted below: (I think one, not the one I'm posting, was missing a break tag so make sure it is there)
if !$[user.is_member]}Guest<br />{/if} <hr size="2" style="margin:1px" color= #000000 />
So it would be:
if !$[user.is_member]}Guest<br /><hr size="2" style="margin:1px" color= #000000 />{/if}
|
|
Former Member
inherit
guest@proboards.com
165779
0
Nov 26, 2024 17:50:13 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 29, 2015 0:20:25 GMT -8
Ok thanks Tumbleweed Have a well deserved rest and il look forward to seeing what you come up with. And yeah i think im going to do the same and go to bed .. No idea where you are but here in the UK its 12:45am be time ive had a smoke and a drink it be 1am lol Thanks for your help so far couldnt have got anywhere even close to where i am now without you Dave I'm in the Midwest in the U.S. Just was going out with friends for a bit. It's only 11:00pm here 4 hours later. I think if you make sure all the hr tags are inside the if statement directly above it, that should do it: I think most of them are but there are a couple like posted below: (I think one, not the one I'm posting, was missing a break tag so make sure it is there)
if !$[user.is_member]}Guest<br />{/if} <hr size="2" style="margin:1px" color= #000000 />
So it would be:
if !$[user.is_member]}Guest<br /><hr size="2" style="margin:1px" color= #000000 />{/if}
I think that just broke it Dave
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on May 29, 2015 18:50:45 GMT -8
I'm in the Midwest in the U.S. Just was going out with friends for a bit. It's only 11:00pm here 4 hours later. I think if you make sure all the hr tags are inside the if statement directly above it, that should do it: I think most of them are but there are a couple like posted below: (I think one, not the one I'm posting, was missing a break tag so make sure it is there)
if !$[user.is_member]}Guest<br />{/if} <hr size="2" style="margin:1px" color= #000000 />
So it would be:
if !$[user.is_member]}Guest<br /><hr size="2" style="margin:1px" color= #000000 />{/if}
I think that just broke it Dave I have a feeling you either left some tags floating around or pasted something in the wrong spot. This is not the issue but you don't need the slash tag at the end (www.w3schools.com/tags/tag_hr.asp) and the color should be like your size:
<hr size="2" style="margin:1px;" color="#000000">
Would you mind posting your mini profile template here or pm it to me.
|
|
Former Member
inherit
guest@proboards.com
165779
0
Nov 26, 2024 17:50:13 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 30, 2015 1:31:55 GMT -8
I think that just broke it Dave I have a feeling you either left some tags floating around or pasted something in the wrong spot. This is not the issue but you don't need the slash tag at the end (www.w3schools.com/tags/tag_hr.asp) and the color should be like your size:
<hr size="2" style="margin:1px;" color="#000000">
Would you mind posting your mini profile template here or pm it to me.
Sure here is the mini template as it stands at the moment.. <div class="$[miniprofile_class]" {foreach $[user.custom_field]} {if $[user.custom_field.name] == "Mini Profile Background Image (Enter URL)"}style="background-image: url('$[user.custom_field.value]');"{/if}{/foreach}>
<center>$[user]<br />
if !$[user.is_member]}Guest<br /><hr size="2" style="margin:1px" color= #000000 />{/if}
{if $[user.group]}
<b>$[user.group.name]</b>
<br />$[user.group.stars]<br />
<hr size="2" style="margin:1px" color= #000000 />
{/if}{if !$[user.is_staff]}
{if $[user.rank]}
<b>$[user.rank.name]</b><br />
{if $[user.rank.stars]}
$[user.rank.stars]</center><br \>
<hr size="2" style="margin:1px" color= #000000 />
if !$[user.is_member]}Guest<br /><hr size="2" style="margin:1px" color= #000000 />{/if}
{/if}
{/if}
{/if}
{if $[user.custom_title]}<b>$[user.custom_title]</b>{/if}<br />
$[user.warning.bar]
<br />
<hr size="2" style="margin-top:2px; margin-bottom:0px;" color= #000000/>
{if $[user.avatar]}
<div class="avatar">$[user.avatar]</div><br />
{/if}
if !$[user.is_member]}Guest<br /><hr size="2" style="margin:1px" color= #000000 />{/if}
{if $[user.personal_text.message]}
$[user.personal_text]<br />
{/if}
<hr size="2" style="margin-top:2px; margin-bottom:0px;" color= #000000/>
{if $[user.is_member]}
<div class="info" style="padding-top:5px; font-size:11px;">
<u>Status</u> - {if $[user.is_online]}<span style="color: #1d77de; font-weight: bold; font-style:italic;">Online</span> {else} !$[user.is_online]<span style="color: #ff0000; font-weight: bold; font-style:italic;">Offline</span><br />{/if}
<br /><u>Posts</u> - $[user.posts]
<br /><u>Likes</u> - $[user.likes]
<br /><u>Joined</u> - $[current_user.registered_on_short]<br />
{if $[user.gender]}<span class="float-right">$[user.gender.image]</span>{/if}<br />
{if $[user.location]}<br /><u>Location</u> - $[user.location]{/if}
<hr size="2" style="margin-top:4px; margin-bottom:1px;" color= #000000/>
{if $[user.website]}<u>Website</u> - $[user.website]<br/>
{if $[user.social_network]}<u>Social Networks</u> -
{foreach $[user.social_network]}
$[user.social_network]$[user.social_network.comma]
{/foreach}{/if}<br/>{/if}
{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}
if !$[user.is_member]}Guest<br /><hr size="2" style="margin:1px" color= #000000 />{/if}
<center>{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}</center>
</div>
{/if}
{if $[user.miniprofile_badge]}
<div class="$[user.miniprofile_badge_container_class]">
{foreach $[user.miniprofile_badge]}
$[user.miniprofile_badge.image.thumb]
{/foreach}
</div>
{/if}
</div> Thanks Dave
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on May 30, 2015 7:20:37 GMT -8
Dave B, A few of your if statements lost their { tag. Like here:
if !$[user.is_member]}Guest<br /><hr size="2" style="margin:1px" color= #000000 />{/if}
Here is the fixed code and I think I got them all. <div class="$[miniprofile_class]" {foreach $[user.custom_field]} {if $[user.custom_field.name] == "Mini Profile Background Image (Enter URL)"}style="background-image: url('$[user.custom_field.value]');"{/if}{/foreach}>
<center>$[user]<br />
{if !$[user.is_member]}Guest<br /><hr size="2" style="margin:1px" color="#000000">{/if} {if $[user.group]} <b>$[user.group.name]</b><br />$[user.group.stars]<br /> <hr size="2" style="margin:1px" color="#000000"> {/if} {if !$[user.is_staff]} {if $[user.rank]}<b>$[user.rank.name]</b><br /> {if $[user.rank.stars]}$[user.rank.stars]</center><br \> <hr size="2" style="margin:1px" color= #000000 /> {if !$[user.is_member]}Guest<br /> <hr size="2" style="margin:1px" color= #000000 /> {/if} {/if} {/if} {/if}
{if $[user.custom_title]}<b>$[user.custom_title]</b>{/if}<br /> $[user.warning.bar] <br /> <hr size="2" style="margin-top:2px; margin-bottom:0px;" color= #000000/>
{if $[user.avatar]} <div class="avatar">$[user.avatar]</div><br />{/if}
{if !$[user.is_member]}Guest<br /><hr size="2" style="margin:1px" color= #000000 />{/if} {if $[user.personal_text.message]}$[user.personal_text]<br />{/if}
<hr size="2" style="margin-top:2px; margin-bottom:0px;" color= #000000/>
{if $[user.is_member]} <div class="info" style="padding-top:5px; font-size:11px;">
<u>Status</u> - {if $[user.is_online]}<span style="color: #1d77de; font-weight: bold; font-style:italic;">Online</span> {else} !$[user.is_online]<span style="color: #ff0000; font-weight: bold; font-style:italic;">Offline</span><br />{/if}
<br /><u>Posts</u> - $[user.posts]
<br /><u>Likes</u> - $[user.likes]
<br /><u>Joined</u> - $[current_user.registered_on_short]<br />
{if $[user.gender]}<span class="float-right">$[user.gender.image]</span>{/if}<br />
{if $[user.location]}<br /><u>Location</u> - $[user.location]{/if}
<hr size="2" style="margin-top:4px; margin-bottom:1px;" color= #000000/>
{if $[user.website]}<u>Website</u> - $[user.website]<br/> {if $[user.social_network]}<u>Social Networks</u> - {foreach $[user.social_network]} $[user.social_network]$[user.social_network.comma] {/foreach} {/if}<br/> {/if}
{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}
{if !$[user.is_member]}Guest<br /><hr size="2" style="margin:1px" color= #000000 />{/if}
<center>{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}</center>
</div> {/if}
{if $[user.miniprofile_badge]} <div class="$[user.miniprofile_badge_container_class]"> {foreach $[user.miniprofile_badge]} $[user.miniprofile_badge.image.thumb] {/foreach} </div> {/if}
</div>
|
|
Former Member
inherit
guest@proboards.com
165779
0
Nov 26, 2024 17:50:13 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 30, 2015 8:30:16 GMT -8
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on May 30, 2015 16:55:04 GMT -8
Replace that status line with this:
<u>Status</u> - {if $[user.is_online]}<span style="color: #1d77de; font-weight: bold; font-style:italic;">Online</span> {else !$[user.is_online]}<span style="color: #ff0000; font-weight: bold; font-style:italic;">Offline</span><br />{/if}
It was the else statement.
|
|
Former Member
inherit
guest@proboards.com
165779
0
Nov 26, 2024 17:50:13 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 31, 2015 0:26:06 GMT -8
Replace that status line with this:
<u>Status</u> - {if $[user.is_online]}<span style="color: #1d77de; font-weight: bold; font-style:italic;">Online</span> {else !$[user.is_online]}<span style="color: #ff0000; font-weight: bold; font-style:italic;">Offline</span><br />{/if}
It was the else statement. Thanks Tumbleweed You are a star !! Dave
|
|