Posts: 695
Threads: 91
Joined: Nov 2014
Reputation:
34
(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?
Do NOT PM me for support unless I ask you on your support thread.
Posts: 695
Threads: 91
Joined: Nov 2014
Reputation:
34
2018-05-07, 07:19 PM
(This post was last modified: 2018-05-07, 10:37 PM by Livewire.)
(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.
Do NOT PM me for support unless I ask you on your support thread.