inherit
167837
0
Apr 30, 2013 15:32:12 GMT -8
leif
939
June 2011
akiglass
|
Post by leif on Dec 28, 2014 13:46:07 GMT -8
Cover images! They're amazing and super simple. I rather like them on website profiles, don't you? Well, a long time ago I developed them for ProBoards for this little Harry Potter RPG known as Fidelius. It's a bit crazy there. Our cover images sometimes gets a bit crazy, but, I like it that way. If you credit me, you can link to Fidelius. Previews: fidelius.forums.net/user/640fidelius.forums.net/user/478Anyways it's super easy! Templates > User Profile > Find: div class="container show-user"> <div class="title-bar"> <h1>View Profile - $[user.name] ($[user.username])</h1> </div> Add Under: <div style="width:100%;height:300px;background-image: url('http://i.imgur.com/npcoBXg.jpg');{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Cover Image"}background-image:url('$[user.mini_custom_field.value]');{/if}{/foreach}background-size:cover;background-position: right center;display:none;{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Show Cover Image"}{if $[user.mini_custom_field.value] == "Yes"}display:inline-block;{/if}{/if}{/foreach}"></div>
Save: Go to Members > Custom Profile Fields > Add fields: - add a field for a link to a cover image. Title this Cover Image- add a field for Show Cover Image, Radio or dropdown with one answer being 'Yes'. Title this Show Cover Image. - Select show on Mini-Profiles only otherwise ProBoards won't allow repeat fields on profile pages! That's it!
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Jul 25, 2015 12:31:32 GMT -8
If I may ask what are the general dimensions for a cover? I know the height is 300 px and I know it re-sizes itself to accommodate the width and height but I want to know what's generally the size a person should shoot for? This works beautifully and was easy to install. Using here: thecityofsin.freeforums.net/
|
|
inherit
223758
0
Jun 10, 2020 7:15:10 GMT -8
Phear
Godzilla Saves Lives! Join the conversation at Monarch Sciences!
299
July 2015
gridlines
|
Post by Phear on Aug 4, 2015 10:37:29 GMT -8
Is it possible to set this to display by default?
|
|
inherit
167837
0
Apr 30, 2013 15:32:12 GMT -8
leif
939
June 2011
akiglass
|
Post by leif on Aug 21, 2015 20:24:10 GMT -8
the dimensions depend on your skin/template Tiffy-BeanPhear yes / no. By default this isn't a feature of custom profile fields as stated here. But, you can remove the show field option and force it to show to everyone and have a default.
|
|
inherit
223758
0
Jun 10, 2020 7:15:10 GMT -8
Phear
Godzilla Saves Lives! Join the conversation at Monarch Sciences!
299
July 2015
gridlines
|
Post by Phear on Aug 24, 2015 7:55:49 GMT -8
the dimensions depend on your skin/template Tiffy-BeanPhear yes / no. By default this isn't a feature of custom profile fields as stated here. But, you can remove the show field option and force it to show to everyone and have a default. How exactly would I go about doing that? Just keep the field private, and force it to be set to Yes by default?
|
|
inherit
167837
0
Apr 30, 2013 15:32:12 GMT -8
leif
939
June 2011
akiglass
|
Post by leif on Aug 24, 2015 20:01:02 GMT -8
Remove it from the code.
<div style="width:100%;height:300px;background-image: url('http://i.imgur.com/npcoBXg.jpg');{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Cover Image"}background-image:url('$[user.mini_custom_field.value]');{/if}{/foreach}background-size:cover;background-position: right center;display:inline;"></div>
Try that
Also if you don't want to mess with the code much just edit the display:none to display:inline and it'd force it on for everyone
|
|
FogBeam
New Member
You are the moon that breaks the night for which I have to howl.
Posts: 35
inherit
169642
0
Sept 18, 2021 11:16:12 GMT -8
FogBeam
You are the moon that breaks the night for which I have to howl.
35
August 2011
fog
|
Post by FogBeam on Jun 13, 2016 15:00:35 GMT -8
For some reason, leif , those didn't work for me. The cover photo just doesn't show up period when I do either of these options, but it shows up perfectly fine with the original code ):EDIT: In your original help post, you said "Also if you don't want to mess with the code much just edit the display:none to display:inline and it'd force it on for everyone", and I figured out that simply changing it to display:inline-block instead does the job. Thank you for this code! (:
|
|
inherit
167837
0
Apr 30, 2013 15:32:12 GMT -8
leif
939
June 2011
akiglass
|
Post by leif on Oct 5, 2016 10:25:26 GMT -8
For some reason, leif , those didn't work for me. The cover photo just doesn't show up period when I do either of these options, but it shows up perfectly fine with the original code ):EDIT: In your original help post, you said "Also if you don't want to mess with the code much just edit the display:none to display:inline and it'd force it on for everyone", and I figured out that simply changing it to display:inline-block instead does the job. Thank you for this code! (: Thanks for sharing the fix you figured out. I rather love cover images myself!
|
|
inherit
229600
0
Sept 7, 2022 11:09:51 GMT -8
Ben Goodman
96
February 2016
benhun
|
Post by Ben Goodman on Feb 23, 2017 4:22:48 GMT -8
It used to work, i have changed nothing, and now it disappeared.
The image link is still aviable.
|
|