Solved: 3 Years, 6 Months, 2 Weeks ago Show Signature Privs revoked in postbit
#1
Solved: 3 Years, 6 Months, 2 Weeks ago
Hey there, Mybb Community!

I was wondering if there was a potential way to display an image in the users postbit if they've lost their signature privileges like this: 

[Image: 5bc7df514af8f4c01410b344f9e772bd.png]    I have it's position just below the groupicons in this example.

Thanks!
Reply
#2
Solved: 3 Years, 6 Months, 2 Weeks ago
Multiple Usergroup Images on Postbit/Profile
https://community.mybb.com/mods.php?action=view&pid=133
[Image: sig2.jpg]
Reply
#3
Solved: 3 Years, 6 Months, 2 Weeks ago
(2018-02-27, 11:58 PM)iAndrew Wrote: Multiple Usergroup Images on Postbit/Profile
https://community.mybb.com/mods.php?action=view&pid=133

Does this support individual signature revoked images though? :/ I'm already using the multiple usergroups for the ranks but I'd looking to have it display if the user has their signature revoked.

Similar to how you'd make an individual image pop up like here: https://community.mybb.com/thread-215344...pid1295173

I'm not too familiar with PhP as a language but looking through the admin panel code, is there something i could do with "$mybb->input['suspendsignature']" to display it in the postbit?
Reply
#4
Solved: 3 Years, 6 Months, 2 Weeks ago
There are some ways to do that:
  • Install PHP in Templates / Complex Templates or Template Conditionals plugin.
    Then you can use conditional like this on your postbit or postbit_classic or postbit_author_user template (depends on where you want to place it):
    <if $post['suspendsignature'] then><div class="blah">Your signature is too awesome for us</div></if>
    


  • Use this HTML inside your postbit or postbit_classic or postbit_author_user template (depends on where you want to place it):
    <div class="blah_{$post['suspendsignature']}">Your signature is too awesome for us</div>
    
    Then add a class in your global.css
    .blah_0 {display:none;}
    
XThreads App For MyBB: Link Directory, YouTube Gallery & etc - Full List
My Demo Site
Reply
#5
Solved: 3 Years, 6 Months, 2 Weeks ago
(2018-02-28, 03:26 AM)RateU Wrote:
  • -snip-

This is exactly what i was looking for!

On a side note regarding your reply though, i tried to also put it into the member_profile template but it stops the member page from responding.

EDIT: Nevermind, resolved it. Thank you so much! Smile Method one on the member_profile seems to break my page but the second method works fine.
Reply
#6
Solved: 3 Years, 6 Months, 2 Weeks ago
Which one? By using the plugin or by using the CSS?
Member profile use different variable. You can try using $memprofile['suspendsignature']

Edit: didn't see your edit above.
Glad you can solve it Smile
XThreads App For MyBB: Link Directory, YouTube Gallery & etc - Full List
My Demo Site
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)