Thread: Forum Display Enhancements - My Forum - Personalised Forum Aggregator
View Single Post
  #84  
Old 07-03-2009, 02:18 PM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shuangddr View Post
great job!
& I have just tested it on vb3.8 beta1,"my forum" keeps displaying "You do not currently have any forum subscriptions or you do not have access to the forums you are subscribed to.Please visit the main forums to add subscriptions."
Quote:
Originally Posted by MrEyes View Post
A couple of question:

Do you have any subscriptions?
Have you set any "auto" subscriptions in ACP?
Does the viewing user have access to the forums you are expecting to see?

As a test would it be possible to do the following:
  1. Open myforum.php in a text editor.
  2. Find the following line:

    Code:
    if ($myforum['hasaccess'] && $myforum['includedforumcount'] > 0)
  3. Immediately before that paste in:

    Code:
    echo "Auto Sub Forums:".$myforum['autoSubbedForums']."<br/>";
    echo "User Sub Forums:".$myforum['userSubbedForums']."<br/>";
    echo "Included Forums:".$myforum['includedforums']."<br/>";
    exit;
  4. Save the file back to the server and goto My Forum.
  5. Copy the text that appears on screen and paste it back here.

Once you are done remove the added lines and put the original myforum.php back.

You should end up with something that looks like this:
Quote:
Originally Posted by shuangddr View Post
I added the code, ,and it displays :
Quote:
Originally Posted by MrEyes View Post
That is rather odd, in summary the outputs you have provided tell me this:
  • For the current users usergroup you have assigned "1,2,3,4,5,6,7,8" as the auto subscribe forums.
  • The current user has manually subscribed to forums "2, 4"

The mod has then mashed these together and checked the permissions on each forum ID, it has then removed forums "5,6,7,8" as the current user does not have permission to view and then created the final display list with forums "2,1,2,3,4" *. What this means is that when the mod does its DB query to get thread titles it will only look for titles in forums:

1,2,3,4

If there are no threads in these forums (or they don't exist) then you will get the message you are seeing.

Is there any chance you could PM me with the URL of your board? I will setup a test user account and have a look around.

* The duplication of ID 2 is a minor bug, but doesn't explain this.
I tried all of this and the out put I get is this:

Auto Sub Forums:17,510,38
User Sub Forums:38
Included Forums:38,17,510

but it still will not display the threads. Any ideas?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01308 seconds
  • Memory Usage 1,782KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete