Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[Core - FIX] Broken Unsubscribe from forum Details »
[Core - FIX] Broken Unsubscribe from forum
Mod Version: 1.00, by Dr.CustUmz (Coder) Dr.CustUmz is offline
Developer Last Online: Dec 2017 I like it Show Printable Version Email this Page

vB Version: 3.8.10 Rating: (0 vote - 0 average) Installs: 2
Released: 06 Apr 2016 Last Update: Never Downloads: 0
Not Supported Template Edits Code Changes Additional Files  

im not too sure how good of a fix this is, i have been up and down the core files, trying to figure this out. Just because it bothered me they include in the default template a condition for this, yet it does not work (by default)

By default when you subscribe to a forum (not a thread) underneath the forum you should see an unsubscribe link
Attachment 154644

This is supposed to happen with the code from:
forumhome_forumbit_level1_post
forumhome_forumbit_level2_post

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But this code does not work.

I was trying to show images for this using an if / else statement but couldn't for the life of me get it to work.
so hours browsing / searching / asking; I finally find a fix (source: http://tracker.vbulletin.com/browse/VBIV-8931)

in includes/functions_forumlist.php
Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I was happy for a minute because now the link was showing, but then i realized it doesn't work on forumhome. (why not lvl1 and lvl2 are there, this code should work)

so I searched the core files up and down and I came up with this, which i took from another core file.

in index.php (forumhome)
add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

below:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

im not sure how good of a fix this is, but it works. i have not noticed any ill side effects applying these changes.

I did how ever notice in index.php is

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and i do not know if the added code will conflict with that, i tried adding just

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

below that, and in other places but it wouldn't work without

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Now for an addon!
got the fix applied? well you have to for this.

Attachment 154641

so now if your users are subscribed to a forum they can see an unsubscribe link under the forum title, but hey you've come all this way, lets not keep it ugly.

so in both forumhome_forumbit_level1 & level2_post
find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

replace with: (change style and img locations as you see fit)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

attached are the images in the screenshot.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	2016-04-06_16-30-34.png
Views:	55
Size:	59.5 KB
ID:	154641   Click image for larger version

Name:	2016-04-06_15-58-57.png
Views:	47
Size:	6.2 KB
ID:	154644  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Thread & Forum Subscribe/Unsubscribe Link bigmattyh vBulletin 2.x Full Releases 18 02 Jul 2003 01:02
Subscribe/Unsubscribe from Forum TWTCommish vBulletin 2.x Full Releases 12 04 Sep 2002 08:07

Reply

Tags
broken, forumhome, subscribe, unsubscribe


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 23:35.

Layout Options | Width: Wide Color: