SOLVED Only First Post Possible To Read For Guests


Goto page Previous  1, 2

Subject: Re: Only First Post Possible To Read For Guests
Hey Informpro,
thanks for your testing.

I saw now that I was testing it with latest SVN version and not IP 1.3
It is very similar but maybe this was the problem.

I fixed it now I little bit different

OPEN viewtopic.php
FIND
Code: [Download] [Hide] [Select]
LIMIT " . $start . ", " . $config['posts_per_page'];

REPLACE WITH
Code: [Download] [Hide] [Select]
LIMIT " . (($userdata['user_id'] == ANONYMOUS) && ($forum_id == 1) ? 1 : $start . ", " . $config['posts_per_page']);


Do you think this is safe to use?
Thanks for your opinion.

Profile PM  
Subject: Re: [SOLVED] Only First Post Possible To Read For Guests
Oh ! yeah ! sorry. I havn't guessed.

Quote:
save to use?
I suppose you mean "safe" : so yeah, for posts, it's safe. But there's many other ways to get the content. They are listed in a key lang (about self auth) : as "random post", "recent post", and so on.

Last edited by Informpro on Wed 13 Apr, 2011 20:45; edited 1 time in total
Profile PM  
Subject: Re: [SOLVED] Only First Post Possible To Read For Guests
Yes, thats right... but I dont care about the other options to get the content.

Thanks for your help

Profile PM  
Goto page Previous  1, 2

Page 2 of 2


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.436s (PHP: 6% SQL: 94%)
SQL queries: 30 - Debug Off - GZIP Enabled