solved Celebrity Skin Biography

franko
@franko
6 years ago
56 posts
Some of my members use the CELEBRITY SKIN
and like this skin very much but don’t like it don’t show the full contents you have to click READ FULL BIOGRAPHY to see whats there.

In fact i was able to sort this one for Follow Me.

My Members like to add auto playing videos and stuff into Info

and would like there friends to see it when they go to there profile page

I know some skins do show it but this one don't

Is there away around this to show full contents that is add into INFO

A code would be great and where to add would be very helpful.

Thank you

Franko
updated by @franko: 06/25/18 09:50:25AM
paul
@paul
6 years ago
4,330 posts
For the profile bio edit the skin's profile_info.tpl template. At line 29 see this -
                            <div class="bio">
                                {$profile_bio|jrCore_format_string|jrCore_strip_html|truncate:160}
                            </div>

                            {if strlen($profile_bio) > 160}
                                <br>
                                <a class="full_bio" onclick="jrCelebrity_modal('#bio_modal')">{jrCore_lang skin="jrCelebrity" id=132 default="Read Full Biography"}</a>
                            {/if}

Remove the truncate modifier and the 'read more' link -
                            <div class="bio">
                                {$profile_bio|jrCore_format_string|jrCore_strip_html}
                            </div>



--
Paul Asher - JR Developer and System Import Specialist
franko
@franko
6 years ago
56 posts
That didn’t work does not leave open profile bio

still have to click to view

want it to show like this see image

Thank s Franko
Unknown.png
Unknown.png  •  199KB


updated by @franko: 03/15/18 02:03:55PM
franko
@franko
6 years ago
56 posts
paul:
For the profile bio edit the skin's profile_info.tpl template. At line 29 see this -
                            <div class="bio">
                                {$profile_bio|jrCore_format_string|jrCore_strip_html|truncate:160}
                            </div>

                            {if strlen($profile_bio) > 160}
                                <br>
                                <a class="full_bio" onclick="jrCelebrity_modal('#bio_modal')">{jrCore_lang skin="jrCelebrity" id=132 default="Read Full Biography"}</a>
                            {/if}

Remove the truncate modifier and the 'read more' link -
                            <div class="bio">
                                {$profile_bio|jrCore_format_string|jrCore_strip_html}
                            </div>


I done all that does no keep bio open just removes click read full bio
michael
@michael
6 years ago
7,740 posts
What is the code you have now? Please paste it here, because the instructions are correct.

Did you reset the cache?
ACP -> MODULES -> CORE -> SYSTEM CORE -> TOOLS -> RESET CACHE

Are you sure you're editing the correct template.

Write "CAN YOU SEE THIS??????" in the template, then check it comes out on the page where you expect it to. If it doesn't, you're editing the wrong template.
franko
@franko
6 years ago
56 posts
yes did all the above

I take it im in right place correct template.

Please note its to show full bio info without needing to clicking to see it
CP.png
CP.png  •  168KB

gary.moncrieff
gary.moncrieff
@garymoncrieff
6 years ago
865 posts
Probably stating the obvious but after saving changes did you check the box to tell the system to use this template structure?
franko
@franko
6 years ago
56 posts
@gary yes i did :)I try it a few times and RESET CACHE
paul
@paul
6 years ago
4,330 posts
The problem here is that you said you were using the Celebrity skin when in fact FollowMe is set as your active skin and you have made changes to its profile_info.tpl and not Celebrity.
You are also using the ProfileTweaks module and have your profile set to the Celebrity skin. That is why you are not seeing any changes.
Edit the Celebrity profile_info.tpl as described above and you should be good to go.
hth


--
Paul Asher - JR Developer and System Import Specialist
franko
@franko
6 years ago
56 posts
@Paul Thank you

Yes main skin is Follow me but some members use cele skin on profile pages
franko
@franko
6 years ago
56 posts
OK i taken all on board and i even made Celebrity skin as main skin at the time just so i can see for myself what you are saying and the code did not work like it does for Follow me skin.
I don’t want my follow me skin touch as this has had changes to it and want to keep as it works.

As i understand members can choose a skin for profile page if you allow it ?or am wrong and this is not the case, infact as you said rightly so im using celebrity for my profile page but the main site is using follow me skin is this not the case i can do that?

please see my original message was below :)

—————————————————————————
Some of my members use the CELEBRITY SKIN
and like this skin very much but don’t like it don’t show the full contents you have to click READ FULL BIOGRAPHY to see whats there.

In fact i was able to sort this one for Follow Me.

My Members like to add auto playing videos and stuff into Info

and would like there friends to see it when they go to there profile page

I know some skins do show it but this one don't

Is there away around this to show full contents that is add into INFO

A code would be great and where to add would be very helpful.

Thank you

Franko
Unknown.png
Unknown.png  •  232KB

michael
@michael
6 years ago
7,740 posts
Do this:
* get "WHERE DOES THIS COME OUT???" coming out to the screen before moving on to anything more complicated.

If you cant get that to come out, you're editing in the wrong place.
franko
@franko
6 years ago
56 posts
I done all the above step by step all it does is remove link read full Bio

It does not leave open the bio box to show contents…..

Like it did for me in follow me…

I have now reset the cele to the way it was original.
franko
@franko
6 years ago
56 posts
franko:
paul:
For the profile bio edit the skin's profile_info.tpl template. At line 29 see this -
                            <div class="bio">
                                {$profile_bio|jrCore_format_string|jrCore_strip_html|truncate:160}
                            </div>

                            {if strlen($profile_bio) > 160}
                                <br>
                                <a class="full_bio" onclick="jrCelebrity_modal('#bio_modal')">{jrCore_lang skin="jrCelebrity" id=132 default="Read Full Biography"}</a>
                            {/if}

Remove the truncate modifier and the 'read more' link -
                            <div class="bio">
                                {$profile_bio|jrCore_format_string|jrCore_strip_html}
                            </div>


I done all that does no keep bio open just removes click read full bio

I done all the above step by step all it does is remove link read full Bio

It does not leave open the bio box to show contents…..

Like it did for me in follow me…

I have now reset the cele to the way it was original.
nate
@nate
6 years ago
917 posts
remove the strip_html
franko
@franko
6 years ago
56 posts
@nate yes wanted Friends Visitors to see the whole bio without them having to click to view it.
nate
@nate
6 years ago
917 posts
Paul's code was good accept remove jrCore_strip_html. If you still don't see it, remove the other modifier.
franko
@franko
6 years ago
56 posts
to prove the point it does not leave the read bio open on profile page it just removes the link!
Unknown.png
Unknown.png  •  50KB

code Removed.png
code Removed.png  •  261KB

paul
@paul
6 years ago
4,330 posts
I've just set your Celebrity and FollowMe skins to show the full bio exactly how was outlined above, and it seems to be working.
Let me know if it looks ok to you.
Thanks


--
Paul Asher - JR Developer and System Import Specialist
franko
@franko
6 years ago
56 posts
@paul thank you :)Spot on now working awesome :)
franko
@franko
6 years ago
56 posts
Can there be made wider or dose it have to stay that small on Profile Pages …Profile Biography i mean when it shows on profile pages …..Be cool if was 400px wide would be good,If i can i give a good try lol…No big deal if they can’t :)
If i know where to change…
Thank you

Franko
michael
@michael
6 years ago
7,740 posts
You have total control over your site. If its not wide enough, the issue is probably CSS. Adjusting something in your skins CSS files found at:

/skins/YOUR SKIN/css/(any of the files in here).css

will effect how your site looks.

Tags