![]() |
Extra Modoptions into users posts (Ban Link, Edit Avatar, Edit sign,..)
1 Attachment(s)
Useful. This mod allows you to ban an user directly from his posts. A link appear in the dropwon menu of the member. When you click "Ban this user", it opens a popup window where you can ban ban user of the post. v2: Now you can edit signature, avatar, profilpic
v2 Special Thanks to SirHappy for this code In the template postbit and postbit_legacy, Find: HTML Code:
<if condition="$post['userid'] AND $show['member']"> Add below: HTML Code:
<!-- / start - happy extra modoption --> Modcp Name : If you've rename your modcp folder in your server, please change a href="modcp/ in this code. First condition : <if condition="in_array($post[usergroupid], array(2))"> Show link in menu of usergroupid specified. Don't enter admin and mod ID. If you enter "2", ban link appear in the dropdown menu of Members. Second condition : <if condition="in_array($bbuserinfo['usergroupid'], array(6,7))"> In this example, only admins and moderators are able to view ban link. Pleaser specify usergroup ID who can vien ban link. v1 ** Remove ** Please click INSTALL if you like this mod. Enjoy ! :) Edit by Lynne: 2009-12-12 - The comment line in the code was incorrect - it showed --!> at the end of the comment line and was supposed to be -->. I corrected that in the code above. |
Thanks Sofia!
Nice |
thank you sofia
|
Modification : Now, when you click "Ban this user", it opens a popup window where you can ban ban user of the post.See screenshot ;)
|
How similar in code is this in relation to an existing modification located here?
https://vborg.vbsupport.ru/showthread.php?t=133257 |
Quote:
I didn't see this mod. Sorry. :) |
works great, installed.
|
This code only works for one usergroup. How can you add multiple user groups to it?
|
nevermind....didnt read it enough
|
best mod
|
Nice; I have something similar but rather than "this user" I've used the variable "$post[username]" so that it actually shows their username.
|
Quote:
|
nice ne , thanks
|
thanks sweety, lets try it
|
Thanks Sofia,
I have your code for me extended;) Code:
<!-- / start - happy extra modoption --!> |
Thank you Sofia for the edit and SirHappy for the extension. I <3 it
|
Best Mod..
|
Quote:
Thank you, SirHappy, I'll include it in my first post ;) |
i seem to be having a problem with this. i get the extra mod options to show up for me, but all the users on my forum complain that they can only see the first post in any thread after i install this?:confused:
|
Quote:
this problem is with IE only. Users with Firefox did not experience this issue |
Quote:
I've just found out this problem, had it installed for 2 days,! |
When I use this Mod, the Internet Explorer users can only see the first 2 posts in a thread
Please fix this.....I would love to use this mod |
getting same issue :(
|
Nice mod...
|
Same problem as above (threads cut off). Uninstalled for the time being.
EDIT: Fixed it, reinstalled. The problem is that the html comment tags are wrong: They should be <!-- COMMENT --> instead of <!-- COMMENT --!>; the rest of the page is getting commented out by the non-terminated tags (behaviour is probably browser dependent) EDIT2: Also, those two conditionals (if... if...) can be made into one statement with an && in it |
Ok, got it to working
GREAT MOD!!! |
This didnt show up at all for me...:(
using 3.8.3 |
Thanks for mod, but there is a little problem in comment tag.
Like Birched said, comment tag in HTML is NOT <!-- blabla --!> but <!-- blabla -->. So, remove the second ! or just copy/paste this: Code:
<!-- / start - happy extra modoption --> Anyway, i think, better to use 640*480 popup size instead of 500*300, so here is modifed code :) Code:
<!-- / start - happy extra modoption --> |
HolyKiller thanks 100 times man
now it's working But I will not Install it as the Coder didn't help us ;) |
I put it directly after this code in postbit_legacy: is anything wrong in my code?
Code:
<if condition="$post['userid'] AND $show['member']"> Code:
<!-- / start - happy extra modoption --> using 3.8.4 |
For the second IF rahter than this
PHP Code:
PHP Code:
|
You may also want to change this line
PHP Code:
PHP Code:
|
Quote:
Quote:
I changed both according to your codes and it saved the template with no errors, then i refreshed forum and still no show.....:( is there anything else that needs changing? although my skin has been coded in a unique way, because my skin is the only one of it's kind in the world. i have had coders take a look and even they say it's been coded in a very complicated way, maybe that has something to do with it. |
it should have nothing to do with it, if you want to supply your postbit code here i'll help as far as i can.
|
2 SᴩiDᴇЯ: Check id of your usergroup.
Code:
<if condition="in_array($post[usergroupid], array(2))"><if condition="in_array($bbuserinfo['usergroupid'], array(X))"> For example: Code:
<if condition="in_array($post[usergroupid], array(2))"><if condition="in_array($bbuserinfo['usergroupid'], array(5,6,7))"> |
Quote:
PHP Code:
Thank you in advance. |
Spider, your postbit is exactly the same as mine in that end section, are you sure you are making the edits to a style you are viewing?
|
Quote:
Like i said this is a very unique and rare skin You are welcome to come and check with admin status, at http://undergroundteam.org I will be there for another 2 hours from now. |
can't get this to show in v3.8.3
|
Did you make the changes to the code with regards the "<!-- blah --!>"?
|
All times are GMT. The time now is 04:06 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|