2 yabba Sep 05, 2008 11:17

Thanks Yabba - that takes care of the error.
I'm still left with the custom message issue though...
Just a side note:
in changing the error above with your code Yabba, it gets rid of the single post's title in the browser. Ie. If I have a post called 'How to do this' on the page 'Learn' (and the title is 'Learn - How to do this'), it now shows only 'Learn' in the title. Is there anyway to fix it so it shows the post title again?
Thanks!
Na
Hmmm, you might like to try Tblue's fix in [url=http://forums.b2evolution.net/viewtopic.php?p=77969#77969]this post[/url]
¥
Thanks. I'm still not showing the title in the browser, but at least I'm not getting an error! :)
Hmmm, weird ... I'll have to tell Tblue that his code is flawed and let him work out why .... life's hard :D
btw :
Custom error when logged out and no post ( note : this doesn't detect if there *would* have been a post if logged in ;) ) :
display_if_empty( 'msg_empty' => ( is_logged_in() ? T_(' There is no post to display' ) : 'your custom message' ) );
ish :roll:
¥
Thanks - actually that new code sort of doesn't help me. I'm tricking the site into doing something special: when someone comes across a protected post, I want them to see an invitation message to become a member. So if they're logged in, with your new code, they'd still see the invite - which doesn't make much sense to the person logged in.
Perhaps this isn't the best way to do it, but I couldn't figure out another way.
Thanks for the help though Yabba - always nice to have someone giving good advice!
If they're logged in then they'll see the "T_('there is no post fool!')" ?
Nice off you to stroke my ego though ... I'm blonde and we purrrrrrrrrrr better than a cute cat ..... not that I like cats, but you get the picture?
¥
Thanks
By the way, I put back the code for itemslistlight (but left all other changes as suggested by you) and now there's no error plus the browser titles are back.
inc/items/model/_itemlistlight.class.php ( approx 913 ), change it to look like this :
¥