Back to vBulletin 5.x Products & Extensions

[vBMods.rocks] Quick fix for guests having no access to the reset-password page
Mod Version: 1.00, by noypiscripter

vB Version: 5.2.x Rating: (0 vote - 0 average) Installs: 5
Released: 06 Aug 2016 Last Update: Never Downloads: 0
Supported Code Changes  

If you are running a private vB5 forum that requires registered users to access and view the forums, you are experiencing this bug where the reset-password page is not accessible when user is not logged in. So it's not possible for your users to reset their password.

Enabling "Can View Channels" permission fixes the issue, however it's not a desirable workaround as it allows guests to partially view the site.

This issue occurs in vB 5.2.1 to 5.2.3 which was recently released. Based on the http://tracker.vbulletin.com/browse/VBV-15975, it seems that vBulletin will fix it in the next version 5.2.4 which would probably be released in 3 months or so. I based this on the time it took to release 5.2.3 from the time 5.2.2 was released. But you'll never know when.

If you cannot wait for the official fix, then this hack is for you.

Open and edit this file in a text editor.

Code:
/core/vb/api/route.php

Find and replace this line:

PHP Code:
protected $whitelistPrefix = array('help''contact-us''lostpw''register''activateuser''activateemail''admincp'); 

with:

PHP Code:
protected $whitelistPrefix = array('help''contact-us''lostpw''register''activateuser''activateemail''admincp''reset-password'); 

Notice that you simply have to add the URL prefix for Reset Password page to the array. I don't know why it is taking time for vBulletin to fix this issue.

Note: Since this is a core hack, you have to re-apply this change whenever you upgrade. But this wouldn't matter anymore if they would fix this in vB 5.2.4.

This hack is also posted in my site http://vbmods.rocks/forum/vbulletin-5-modifications/vbulletin-5-core-hacks/309-quick-fix-for-the-reset-password-page-being-inaccessible-to-logged-out-users-in-a-private-forum.

Download

No files for download.

Similar Mods

Show Thread Enhancements [vBMods.rocks] Add Custom Profile Fields in Postbit vBulletin 5.x Products & Extensions
New Posting Features [vBMods.rocks] Quote Selected Text vBulletin 5.x Products & Extensions
Show Thread Enhancements [vBMods.rocks] Display Status Update in Postbit vBulletin 5.x Products & Extensions

vblts.ru supports vBulletin®, 2022-2024