1 fredsy Sep 05, 2008 10:13
3 fredsy Sep 05, 2008 19:05
Thanks Yabba - that takes care of the error.
I'm still left with the custom message issue though...
4 fredsy Sep 07, 2008 01:43
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
5 yabba Sep 07, 2008 09:48
Hmmm, you might like to try Tblue's fix in [url=http://forums.b2evolution.net/viewtopic.php?p=77969#77969]this post[/url]
¥
6 fredsy Sep 07, 2008 11:29
Thanks. I'm still not showing the title in the browser, but at least I'm not getting an error! :)
7 yabba Sep 08, 2008 17:39
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:
¥
8 fredsy Sep 08, 2008 18:25
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!
9 yabba Sep 08, 2008 19:20
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?
¥
10 fredsy Sep 10, 2008 03:42
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 :
¥