vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Moderators Functions - Ban from Thread (https://vborg.vbsupport.ru/showthread.php?t=158445)

FullyTested 10-13-2007 08:11 AM

tiredoff, please check your PM.

tiredoff 10-13-2007 07:32 PM

Quote:

Originally Posted by FullyTested (Post 1358829)
tiredoff, please check your PM.

hi
You received my PM?

tiredoff 10-13-2007 07:50 PM

Hi
I cannot find this in postbit_legacy 3). Find $template_hook[postbit_user_popup]
just i found i8t in postbit

FullyTested 10-15-2007 03:35 AM

Quote:

I cannot find this in postbit_legacy 3). Find $template_hook[postbit_user_popup]
Just add the code right ABOVE
Code:

        </table>
</div>
<!-- / post $post[postid] popup menu -->


I got your PM and emailed you the info you requested.

tiredoff 10-15-2007 10:10 AM

Quote:

Originally Posted by FullyTested (Post 1360383)
Just add the code right ABOVE
Code:

        </table>
</div>
<!-- / post $post[postid] popup menu -->


I got your PM and emailed you the info you requested.

above here ?
</table>
</div>
<!-- / post $post[postid] popup menu -->

tiredoff 10-15-2007 11:32 AM

Hi
After i add that above the code , i can see the link :) thank you
but just the ban from the thread or from the all forum ?

FullyTested 10-15-2007 04:40 PM

This mod only bans from threads.
I have one that will do both but it is not free :eek:

oceanizer 10-17-2007 05:36 AM

Hrm, I don't see "ban user" link under the username. What did possibly go wrong?

Also, is this correct from banning_PHP.txt?
Quote:

3). Find if (!$canbanuser)
and ABOVE insert:

// start code 'ban from thread'
// added ,'threadid' => TYPE_INT
// above
// end code 'ban from thread'
All quoted out? And there were multiple "if (!$canbanuser)."


= Edit =
Trying out the fix you gave to Tiredoff...

FullyTested 10-17-2007 05:45 AM

Hi,

First of all the ban from thread link under the username has to do with code in the postbit and/or postbit_legacy templates and not 'banning.php'.

Secondly,
Quote:

All quoted out? And there were multiple "if (!$canbanuser)."
Yes, all commented out as it is there only as reference for future VB file upgrades.
The "if (!$canbanuser)" is the one found right after step 2.

I hope this helps.

oceanizer 10-17-2007 05:49 AM

Thanks, Fullytested.

It turned out I was modifying postbit_legacy/postbit for a different skin. It shows up now. Sorry for the trouble.

FullyTested 10-17-2007 05:52 AM

No problem.
Let me know if you find this mod useful and user friendly.

oceanizer 10-17-2007 05:58 AM

I'm sure it'll be useful. I tested it really quick, but nothing was difficult.

One of my staff brought up - is it possible to apply this to a usergroup? If that's possible, we can throw bunch of troll-candidates into that usergroup, then ban the usergroup from the thread that may be attracted to those troll-candidates.

... I guess that'd be a different hack...

tiredoff 10-17-2007 06:24 AM

Quote:

Originally Posted by FullyTested (Post 1360857)
This mod only bans from threads.
I have one that will do both but it is not free :eek:

Any chance to get it free :) ?

FullyTested 10-17-2007 06:25 AM

Quote:

apply this to a usergroup?
That's an interesting idea and could be done from the 'thread tools' drop down menu button.
But like you said that would have to be a new hack all together.

tiredoff 10-17-2007 07:53 PM

Hi
need permission from you , if you can please to change the titles of the script to arabic language, just titles to make the manage of it , in arabic language.
So if you please can tell me where exactly must make changes to titles and options
thank you

An example
lebroom_oJtcIwILZ.GIF

FullyTested 10-17-2007 08:16 PM

To replace the phrases to Arabic do the following:

1). Open the 'ban_from_thread' product and at the bottom you will see all the phrases.
Code:

<phrase name="xxx"><![CDATA[yyy]]></phrase>
2). For each phrase replace the 'yyy' text with your own. Only the 'yyy' part, not the 'xxx'.
3). Re-upload the product via the admin cp product page and be sure to select 'Allow Overwrite'.
4). Done.


P.S.
Is your site Lebanese? If so, I used to be your neighbour :)

tiredoff 10-18-2007 05:05 AM

Thank you very much :)
neighbour of south :) ?
you didnt answer me about the full version neighbour ;)

FullyTested 10-18-2007 10:18 PM

Hi tiredoff,

Yes to the south ;)
As for a free combined mod there are a few problems with that.
The first is that I have to pay my rent somehow.
The second is that it is not yet in phrases (English Only) and will require time to convert.
The third is that it also has admin moderation for when a moderator applies a permanent site ban (if not approved (or ignored) by admin, the ban reverts to a 7 day ban). This means that instructions on inserting the code will leave room for confusion as this mod has and will consume a lot of my time supporting it :eek:

tiredoff 10-19-2007 06:07 AM

it is ok if you believe that :)
thank you any way

FullyTested 10-19-2007 07:36 AM

If you really want it I could work on it this weekend.
Not sure if I should add it to this mod or create a new one called 'Ban via Postbit' which seems a little more accurate.
At any rate, check back here in a few days.

CP, 10-24-2007 01:19 AM

Hi i would like to install this hack but it seems too tedious to edit files now seeing as we are in the 3.6.x era could you kindly make this hack more easier to install just like this hack here for 3.5.x

https://vborg.vbsupport.ru/showthrea...an+from+Thread

Cheers!

DevilYellow 10-24-2007 02:26 AM

Quote:

Originally Posted by CP, (Post 1367149)
Hi i would like to install this hack but it seems too tedious to edit files now seeing as we are in the 3.6.x era could you kindly make this hack more easier to install just like this hack here for 3.5.x

https://vborg.vbsupport.ru/showthrea...an+from+Thread

Cheers!

I agree - I dont mind editing templates, but files are a bit much. Especially since there are so many updates that happen with vBulletin.

I will say tho that I really do like the functionality of your plugin :)

FullyTested 10-24-2007 02:54 AM

You guys are comparing Apples to Oranges.
As the saying goes, anything that's worthwhile requires an effort.

f4vn 10-27-2007 03:57 AM

Please help me !
This my error
Code:

Not Found

The requested URL /Array[threadbanlink] was not found on this server.
Apache/2.0.52 (CentOS)


itdevil 10-31-2007 06:47 PM

Guests (Spiders) on my forums are giving a DB error. when they visit the newreply.php


my vBulletin version is : 3.6.2

Quote:

SELECT liftdate, reason
FROM userbanthread
WHERE userid = 0 AND threadid =
LIMIT 1;

MySQL Error : You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'LIMIT
1' at line 4
Error Number : 1064
Date : Wednesday, October 31st 2007 @ 04:23:02 AM
Script : http://www.xxxx.com/forum/newreply.php
Referrer :
IP Address : 64.xxx.xxx.136
Username : Unregistered
Classname : vb_database
if i disable the hack it gets fine, registered users have no problem, only guests is creating the db error. How do i fix it ?

TheBlackPoet 10-31-2007 07:51 PM

that sucks... i too the time to edit all the files... and the link doesnt show.... could it be I am the only one on this forum and it doesnt show up for usergroup 6????

FullyTested 11-01-2007 07:01 AM

Quote:

Originally Posted by itdevil (Post 1372942)
Guests (Spiders) on my forums are giving a DB error. when they visit the newreply.php


Thanks for reporting the error.
Version 1.1 should fix this problem.

FullyTested 11-01-2007 07:04 AM

Quote:

Originally Posted by tiredoff (Post 1360642)
just the ban from the thread or from the all forum ?


If you are still interested in the version that allows your mods to ban from thread as well as from site, PM your email and I'll send it to you.

itdevil 11-01-2007 07:16 AM

Quote:

Originally Posted by FullyTested (Post 1373297)
Thanks for reporting the error.
Version 1.1 should fix this problem.

do i need to redo all PHP & Templates edits for the upgrade ?

FullyTested 11-01-2007 07:41 AM

No.
Just re-import the product but remember to select 'allow overwrite'.

f4vn 11-02-2007 05:48 AM

Quote:

Originally Posted by FullyTested (Post 1373303)
If you are still interested in the version that allows your mods to ban from thread as well as from site, PM your email and I'll send it to you.

Can you send me that version ? If you oki I will PM my email. Thank anyway !

SuperTaz 11-02-2007 06:15 AM

What is the difference between this hack and the one I already have?

https://vborg.vbsupport.ru/showthread.php?t=152121

FullyTested 11-02-2007 08:08 PM

Quote:

Originally Posted by f4vn
Can you send me that version ?

Sure.


Quote:

Originally Posted by Warden-B-
What is the difference between this hack and the one I already have?

  • This one allows your moderators to ban users.
  • This one allows you to temporary or permanently ban the user
  • Can also ban via admin/mod cp
  • Provides ban info via an icon in postbit

thompson 11-02-2007 10:12 PM

great hack.

towermatt 11-03-2007 03:46 PM

Could anyone help me out? I am not finding this line in my postbit template

3). Find $template_hook[postbit_user_popup]

so I can't follow that piece of instruction. :(

It also does not appear in the postbit_legacy template

towermatt 11-03-2007 05:10 PM

Seems like the only thing its not doing is putting the option to ban from thread in the post bit.

There in the ModCP and seems to work fine otherwise

NM--I fixed it. I just basically put the code at the bottom of the member pop up menu stuff in those templates

Great Mod!

FullyTested 11-03-2007 06:08 PM

Quote:

Originally Posted by towermatt (Post 1374896)
Could anyone help me out? I am not finding this line in my postbit template

3). Find $template_hook[postbit_user_popup]


Please see this post:
https://vborg.vbsupport.ru/showpost....3&postcount=44

towermatt 11-03-2007 06:28 PM

That was it, thanks Fully :)

FullyTested 11-06-2007 07:27 AM

For those of you who were interested in the ban from site and/or thread mod, please follow this link:
https://vborg.vbsupport.ru/showthread.php?t=162037

NFLfbJunkie 11-15-2007 03:28 AM

Is the blank space above the private message title supposed to be there, as well as the "Posts: n/a" and "Credits: 0" information? The zero credits is also incorrect, as the user that this test message was sent to has more than zero credits.

The attached picture of the private message for this MOD does not show anything above the message title so I am not sure if what I am getting is a problem on my end.


All times are GMT. The time now is 01:05 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
  • Page Generation 0.01869 seconds
  • Memory Usage 1,828KB
  • 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
  • (4)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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