vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Thread passwords (https://vborg.vbsupport.ru/showthread.php?t=156147)

Been Told 09-13-2008 08:27 PM

All plugins and the product are active.

netwind 09-13-2008 08:33 PM

what about edit templates again ?
Readme.txt :
...
2. In template SHOWTHREAD find
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif"

..

Been Told 09-14-2008 08:58 AM

It's there.
The thing is that it doesn't show up ANYWHERE in the AdminCP.

netwind 09-14-2008 09:38 AM

That's OK. This product does not add any options in AdminCP at all.
Turn on product and it ready to work.

Been Told 09-14-2008 10:16 AM

Oh ok. Are only mods and admins allowed to assign passwords to threads then?

netwind 09-14-2008 07:46 PM

For a new thread only admins and mods can assign password. Thread masters can change (and delete) password for thread.

Been Told 09-14-2008 07:58 PM

Okay, then the problem remains that the box for creating a password and thread master is not there... :(

superthang 09-17-2008 10:17 PM

is there a way make the member start the thread to put their own password?
I am doing a school forum, and i want the student to create their own study group thread and password protect it so only their group can go in.

flasher33 09-18-2008 12:30 AM

will this work on 3.7.x

Been Told 09-18-2008 04:19 AM

Quote:

Originally Posted by superthang (Post 1624421)
is there a way make the member start the thread to put their own password?
I am doing a school forum, and i want the student to create their own study group thread and password protect it so only their group can go in.

I don't think it is possible with this hack. You might have to do it via usergroups and forum permissions and subforums or something like that.

Quote:

Originally Posted by flasher33 (Post 1624467)
will this work on 3.7.x

I had to change the template edit in order to make it work.
But with my edit, only admins can set/change the password.

Find:
Code:

<tr>
                <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif"

Before, add:
Code:

<if condition="$show['admincplink']">
                <tr>
                        <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/thread_lock.gif" alt="$vbphrase[threadpassword_setup_title]" /> <a href="threadpassword.php?$session[sessionurl]do=modify&amp;t=$threadid" rel="nofollow">$vbphrase[threadpassword_setup_title]</a></td>
                </tr>
        </if>


netwind 10-11-2008 09:24 AM

Quote:

Originally Posted by Been Told (Post 1624554)
I had to change the template edit in order to make it work.
But with my edit, only admins can set/change the password.

You must understand, that moderators still can change password by cheating tools.
Template changes not necessary. You must change plugins too.

Been Told 10-11-2008 09:32 AM

Quote:

Originally Posted by netwind (Post 1642570)
You must understand, that moderators still can change password by cheating tools.
Template changes not necessary. You must change plugins too.

None of my mods are technically minded enough to do that. Plus, if this mod was INTENDED to make it ok for Moderators to do that, I see no problem.

2impulsiv 11-29-2008 02:23 PM

Is there a way so that each time the thread is viewed the password is required?

Cheers..

Been Told 11-29-2008 02:40 PM

That would be so annoying...

netwind 11-30-2008 08:27 AM

Maybe your client software does not send cookies ?
It can be browser, firewall, anonymization software.

lostgirl815 12-24-2008 01:28 AM

Quote:

Originally Posted by lostgirl815 (Post 1543385)
Is there by any chance an easy way to allow more characters in the password/allow longer passwords?

Quote:

Originally Posted by netwind (Post 1546133)
try alter thread table :
ALTER TABLE `thread` CHANGE `threadpassword` `threadpassword` VARCHAR(255) DEFAULT NULL;

Input fields in templates are big enough (80 chars), but you can edit them.

Quote:

Originally Posted by netwind (Post 1549821)
lostgirl815 you don't need change files.
just install product . make database backup . run sql query by mysql client (phpmyadmin or other). text located in message above (alter table)

Okay, my skills don't extend to following any of the above directions, so I just let it go - but at this point it would be really really convenient to have more than 16 characters, since I use this for a lot of games. So if someone could tell me where I find the table that needs to be altered, I would appreciate it. And, I'll give it a try.

(I can't run sql queries, I have to ask my host to run them since so many people evidently accidentally deleted their boards or something by messing with it themselvse.)

inciarco 01-08-2009 02:40 PM

Great mod, Works Fine on vB373. :up:

Also to Protect the Password Change Form you can include the following conditional If so that only admins can access it:

Template threadpassword_form

Code:

        <if condition="in_array($bbuserinfo[usergroupid], array(6))">


<form action="threadpassword.php" method="post">
<input type="hidden" name="threadid" value="$threadid" />
<input type="hidden" name="do" value="domodify" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<table class="tborder" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" align="center" width="100%">
<tr><td colspan=2 class="alt1" align=center><b>$vbphrase[threadpassword_setup_title]</b></td></tr>
<if condition="$show[editpassword]">
        <tr>
                <td nowrap class="alt1">$vbphrase[threadpassword_password]
</td>
                <td nowrap class="alt1"><input type="text" name="threadpassword" value="$threadpassword" /></td>
        </tr>   
</if>             
<if condition="$show['masters']">
<tr>
                <td nowrap class="alt1">$vbphrase[threadpassword_masters]
</td>
                <td class="alt1">$threadmasters_listwlinks</td>
</tr>
</if>
<if condition="$show['editmasters']">
<tr>
                <td nowrap class="alt1">$vbphrase[threadpassword_editmasters]</td>
                <td nowrap class="alt1"><input type="text" name="threadmasters" value="$threadmasters_list" size="80"/></td>
</tr>
</if>
<if condition="$show['editmasters'] OR $show['editpassword']">
<tr>
<td colspan=2 class="alt1">
<center>
<input type="submit" value="$vbphrase[save_changes]">
</center>
</td>
</tr>
</if>
</table>
</form>

        </if>

Notice the

Quote:

<if condition="in_array($bbuserinfo[usergroupid], array(6))">

...

</if>
My Best Regards.

:)

Been Told 04-25-2009 04:55 PM

Seems to work with 3.8.2 with the modifications I described further up this page.

AMUforums 05-03-2009 07:39 PM

Works perfectly, this should come standard on the next vBulletin Update.

Nominated for MOTM

BRotondi 06-30-2009 12:49 PM

When I move the thread into another forum or rename it, the password still will work, right?

And what if I merge or split threads?

Thanks!
Bruno

Ramya108 08-14-2009 08:41 PM

Great! Thank you very much for this mod.
I have been looking for it.

(works on 3.8)

lostgirl815 09-04-2009 09:59 PM

Netwind, what would make it worth it to you to provide a version of this that allowed an unlimited number of characters for the password form? Or at least a very high number.

kotkerk 10-29-2009 10:36 PM

Quote:

unlimited number of characters for the password form? Or at least a very high number
you need to change field threadpassword in the table thread
Code:

ALTER TABLE `thread` CHANGE `threadpassword` `threadpassword` VARCHAR( 255 ) DEFAULT NULL
change 255 to your pass length

lostgirl815 11-23-2009 06:18 AM

Thank you very much Kotkerk, I'll give that a try!

BirdOPrey5 10-02-2010 08:13 PM

looks interesting...

yotsume 10-28-2010 09:00 PM

INSTALLED and works perfectly as I need it to!

ywwz 04-16-2012 04:32 AM

Does anyone run it on 4.x?

ywwz 04-16-2012 04:40 AM

Can anyone update this hack to suit VBB version 4.1.11 please?!!!

BirdOPrey5 04-16-2012 10:57 AM

Will do. Got it 95% done already... will post a link later today hopefully.

BirdOPrey5 04-16-2012 09:28 PM

Updated for VB4: https://vborg.vbsupport.ru/showthread.php?t=281649


All times are GMT. The time now is 12:55 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.01271 seconds
  • Memory Usage 1,790KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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