Warning: The author of this contribution does not provide support for it anymore.

User Blog Mod

overall_header receives no variables on message_body pages - User Blog Mod

overall_header receives no variables on message_body pages

by Moogie » Wed Jun 19, 2013 12:15 pm

I've got a bit of an odd one here and hoping someone can help!

The blog mod works great with one exception - when adding/editing/deleting a blog or comment and the 'Information' page is displayed to say the it has been added/edited/deleted, overall_header and overall_footer do not seem to pick up any of the usual variables, ie I'm getting { LOGIN_LOGOUT } appearing on the page, no T_TEMPLATE_PATH specified so the page is unstyled. I can't figure out why this is happening when all the blogs themselves and the rest of it looks fine.

Anyone encountered this problem before?
Moogie
User avatar
Moogie
Registered User
Posts: 363
Joined: Thu Aug 22, 2002 11:39 am
Location: UK
Contact:

Re: overall_header receives no variables on message_body pag

by Moogie » Sun Jun 23, 2013 10:07 pm

I've done a couple more tests on this and it happens with both themes I used on my forum (Artodia Mobile & Afterburner). Both are trying to display the correct theme file headers when trigger_error is called to output a message but the header and footer do not have the language vars or theme folder vars - so it's appearing very messy & un-styled.

Hope someone can please help with this. Can't find for the life of me where this might be happening.
Moogie
User avatar
Moogie
Registered User
Posts: 363
Joined: Thu Aug 22, 2002 11:39 am
Location: UK
Contact:

Re: overall_header receives no variables on message_body pag

by Moogie » Sun Jun 23, 2013 10:35 pm

Okay, more testing.
When I (or one of my test accounts) reply to my own blog, the message pages are styled correctly.
When I reply to other blogs, they are not.

I have tried changing the default style & resetting all user styles to the main board style (then purging the cache). This has not helped!
I then tried changing the user permissions to allow them to select a style (in case this was a way to force the above to be applied) - again, this does not work.

I feel like I'm getting closer to tracking this down, but I still can't find any difference in the settings for my (admin) blog compared with everyone else's (reg users & mods).

Other info which might help - I deleted the styles which came with the blog mod as I didn't want users choosing their own styles. I just wanted the blog to default to whatever the selected display style is for the user viewing it.
Moogie
User avatar
Moogie
Registered User
Posts: 363
Joined: Thu Aug 22, 2002 11:39 am
Location: UK
Contact:

Re: overall_header receives no variables on message_body pag

by Moogie » Sun Jun 23, 2013 10:48 pm

Okay, last bit of troubleshooting for tonight (forgive all these posts, but it's a good way for me to keep track and also hopefully provide enough info to anyone else who might be able to help troubleshoot!).

I've found that having set the style blog_style in phpbb_blog_users the templates seem to load correctly for those users.
However, there are only 50 or so blog users in the table - and yet some 350+ users blogging (checked by grouping blog entries by user id). How is it they are blogging but not in the blog_users table?
Is there somewhere in the script where I can set a style for it to use if they're not in the blog_users table & therefore have no style set? Should they always be added to the users table and if so why might this not be happening?

Thanks for any and all help :)
Moogie
User avatar
Moogie
Registered User
Posts: 363
Joined: Thu Aug 22, 2002 11:39 am
Location: UK
Contact: