vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Moderators Functions - Ban Users From a Thread (https://vborg.vbsupport.ru/showthread.php?t=259017)

bryanb 07-28-2011 01:22 PM

Does this work with 4.1.5? Getting ready to upgrade.

nerbert 08-09-2011 04:09 AM

Quote:

Originally Posted by bryanb (Post 2226019)
Does this work with 4.1.5? Getting ready to upgrade.

Works for me with one minor change to btu_link template: I removed alt="{vb:rawphrase btu_unban}" from the img tag. For some reason I don't get the little image to work and so I get the alt text "UNBAN USER' or something like that, which causes the link to disappear.

And that's for another post.

diettalk 08-09-2011 01:25 PM

Quote:

Originally Posted by nerbert (Post 2231200)
Works for me with one minor change to btu_link template: I removed alt="{vb:rawphrase btu_unban}" from the img tag. For some reason I don't get the little image to work and so I get the alt text "UNBAN USER' or something like that, which causes the link to disappear.

And that's for another post.

If I'm remembering right, you have to go into the xml file and change this line... to take out the slash in front of images.

<img src="/images/site_icons/ignore.png" alt="{vb:rawphrase btu_unban}" />

to

<img src="images/site_icons/ignore.png" alt="{vb:rawphrase btu_unban}" />

and it should work.

Dragaon 08-17-2011 01:55 AM

Quote:

Originally Posted by Danny M (Post 2201729)
Hey,

I get this error at the top of the page on "View all thread bans":

Code:

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 3957

Parse error: syntax error, unexpected T_STRING in /home/dannym/public_html/forums/postings.php(210) : eval()'d code(92) : eval()'d code on line 1

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: btu_bans in [path]/includes/functions.php on line 3957


Same here, running 4.1.5
Code:

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 4183

Parse error: syntax error, unexpected T_STRING in /home//public_html/forum/postings.php(212) : eval()'d code(102) : eval()'d code on line 1



The second issue is ok, the fix below for the missing postbit graphic and link worked perfectly.

Other than the error above and the fix posted below for the separate issue the mod works on 4.1.5

Quote:

Originally Posted by diettalk (Post 2231362)
If I'm remembering right, you have to go into the xml file and change this line... to take out the slash in front of images.

<img src="/images/site_icons/ignore.png" alt="{vb:rawphrase btu_unban}" />

to

<img src="images/site_icons/ignore.png" alt="{vb:rawphrase btu_unban}" />

and it should work.


Successfulsteps 08-17-2011 05:02 AM

Looks good, I'll wait until the bugs are out and this one is updated for mods to use besides admins. It would just make better sense also so the mods all know and can see. Until then it may just be too confusing.

OturanBoğa 08-24-2011 10:04 AM

i need using this hack by our moderators, not only administrators.. Can someone help?

Thanks

And:


Quote:

Originally Posted by AcidX (Post 2164876)
[...]
However, I must advise you to be patient. Both features you mentioned are in my to-do list.

To-Do:

- Allow Mods/Supermods to use thread bans [optional];
- Time ban [hours, days, weeks...];
- Display ban reason when user tries to enter thread;
- Notification for banned users via PM.


EdQ 08-27-2011 02:31 PM

Quote:

Originally Posted by diettalk (Post 2231362)
If I'm remembering right, you have to go into the xml file and change this line... to take out the slash in front of images.

<img src="/images/site_icons/ignore.png" alt="{vb:rawphrase btu_unban}" />

to

<img src="images/site_icons/ignore.png" alt="{vb:rawphrase btu_unban}" />

and it should work.

Thanks for this :)

EdQ 08-27-2011 08:35 PM

Quote:

Originally Posted by OturanBoğa (Post 2237353)
i need using this hack by our moderators, not only administrators.. Can someone help?

Thanks

And:

Yes, needed by Moderators

attroll 08-30-2011 05:02 PM

What would be nice is once you ban a user from a thread, when you click on there name in the postbit it would display a Banned icon instead of the Thread Ban/Unban icon. There is no way of a quick reference to know if the user is already banned from the thread.

Dragaon 09-07-2011 11:14 AM

Quote:

Originally Posted by futureaudio (Post 2182061)
I've fixed the error and attached the updated .xml product file.
Please edit/remove this post if this is against the rules.

All credit to OP. I've just updated it to be compatible with recent version of vblulletin. ( Simple fix )

The fix posted above works on both errors mentioned on this thread, installed on 4.1.5 PL1 with allow overwrite checked in the upload plug-in form.

great mod btw!


All times are GMT. The time now is 02:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01259 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete