MyBB Community Forums

Full Version: Postbit Background
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello my friends. I'm searching for a plugin or option to get something like that - 
https://gyazo.com/3873bb5137019c9bb7b27b5ac9f92eab

So you are able to put a Background behind your Avatar. And it's visible if you post something in a thread or whatever. It does not need to be a whole different picture. It can be the same Picture as the Avatar.


I hope someone can help me. If it is a custom plugin, I would like to pay for it.


Sincerely

Koshitso
Sure it's not just the postbit background (check the postbit css)? Either way, you wouldn't need a plugin unless you want groups/users to be able to choose their own background.
I want that people are able to choose there own Background.
sent an external link through PM. check if that helps.
please do not post anything about that content here.

instead you may PM me
- however not sure when I'll be able to devote time Sad
Any updates about this? I also wish to know how to do this?
You can create a custom profile field that asks for a valid URL and use that as the background value using CSS. You can do the same but with a plugin like:
https://community.mybb.com/mods.php?action=view&pid=127

But god, it would be nice to allow users to upload files as profile fields, wouldn't it ?
(2018-02-17, 12:58 AM)Omar G. Wrote: [ -> ]You can create a custom profile field that asks for a valid URL and use that as the background value using CSS. You can do the same but with a plugin like:
https://community.mybb.com/mods.php?action=view&pid=127

But god, it would be nice to allow users to upload files as profile fields, wouldn't it ?

Any ideas how to make it display postbit instead of member profile ^^ that plugin?
That plugin adds a new field to the user table, which means it should be accessible from postbit, yes. But it is not prepared for that. The easiest way to add it safely and properly in postbit without modifying the code would be to use something like the template conditionals plugin from mybb hacks.

But {$post['profilepic']} should be _safe_ to use by itself without template conditionals if you are brave enough.

Using template conditionals you could use:
<?=htmlspecialchars_uni($post['profilepic'])?>
(2018-05-06, 07:42 PM)Omar G. Wrote: [ -> ]That plugin adds a new field to the user table, which means it should be accessible from postbit, yes. But it is not prepared for that. The easiest way to add it safely and properly in postbit without modifying the code would be to use something like the template conditionals plugin from mybb hacks.

But {$post['profilepic']} should be _safe_ to use by itself without template conditionals if you are brave enough.

Using template conditionals you could use:
<?=htmlspecialchars_uni($post['profilepic'])?>

Say I did use {$post['profilepic']} for example.. how can I choose specific groups so they can add their own image link and how can I also add the option example User CP > Edit Profile.

Edit nevermind managed to make it work but one problem... this shows when someone doesn't have an image how can I remove this? :/
https://i.imgur.com/DmWBUQj.png

Edit #2 After playing around I've managed to make it work by adding this in postbit <if $post['profilepic'] then><img height="280" width="200" src="{$post['profilepic']}" class="post_avatarhuge"></if>

It now works perfectly fine.. Thank you omar. Smile
Don't me to comment on an old post but how did you call the image from the plugin.

I used $post['profilepic'] and this calls it but it adds a dateline= to the end of it causing it not to work.
Pages: 1 2