Jump to content


- - - - -

(V88)Posts Required To Enter Forum


  • Please log in to reply
74 replies to this topic

#61 Tom

Tom

    Posting God

  • IM Supporters
  • PipPipPipPipPipPipPipPipPip
  • 1,541 posts
  • IPB Version:v2.3.x

Posted 10 January 2009 - 06:36 PM

Has anyone else a suggestion how I could get the Search Engine Spiders in?

#62 Vince

Vince

    Lead Developer

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,973 posts
  • Location:California, USA / Israel
  • Real Name:Vince
  • IPB Version:v3.1.x
Contributor

Posted 15 January 2009 - 10:53 AM

@Tom the search spiders have the same restrictions as guests. so it will require some core files editing to do that.

@xtr3mx7 It's located there refer to my post at the Posts required to post topic.
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image


Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com

formerly known as vadimg88

#63 Tom

Tom

    Posting God

  • IM Supporters
  • PipPipPipPipPipPipPipPipPip
  • 1,541 posts
  • IPB Version:v2.3.x

Posted 27 January 2009 - 07:08 PM

View PostVince, on Jan 15 2009, 06:53 AM, said:

@Tom the search spiders have the same restrictions as guests. so it will require some core files editing to do that.

Thanks Vince.

How about to bypassing for certain usergroups? Guess it is what you mean, right?
How much would an "improved" version cost? Settings via ACP, excluded members...

#64 ASTRAPI

ASTRAPI

    Coder

  • Banned
  • PipPipPipPipPip
  • 240 posts
  • Real Name:Dimitris
  • IPB Version:v2.3.x

Posted 01 February 2009 - 12:15 AM

is it possible to do that to count topic's started and not posts to view a forum?

Thanks

#65 deathrace

deathrace

    Member

  • Banned
  • PipPipPip
  • 27 posts
  • IPB Version:v2.3.x

Posted 01 February 2009 - 06:44 PM

tried installing this on version 2.3.6 and seems the code has been altered, u said this to: @xtr3mx7 It's located there refer to my post at the Posts required to post topic.

no idea what you mean by that.

half the code in sources/action_public/attach.php the second edit is commented out in the new ipb version

Find: (In Function show_topic_attachments() )
if ( $this->ipsclass->check_perms($this->ipsclass->forums->forum_by_id[ $post['forum_id'] ]['read_perms']) == FALSE )
{
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_permission' ) );
}


Add Below:

# Posts Requirement To Enter A Forum
if( ! $this->ipsclass->member['g_access_cp'] && ( $this->ipsclass->member['posts'] < $this->ipsclass->forums->forum_by_id[ $post['forum_id'] ]['post_required'] ) )
{
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_permission' ) );
}


There was a few code edits that did not exactly match from your document, but they were very similar so i assumed that i should make the edits still.

#66 deathrace

deathrace

    Member

  • Banned
  • PipPipPip
  • 27 posts
  • IPB Version:v2.3.x

Posted 01 February 2009 - 06:53 PM

i made all the edits i thought were nessessary according to your instructions and making a few things that were similar. It seems to work. Now when i go to lofi version it says beside the forum 5 posts



    * A Test Category
          o A Test Forum (5 posts)

Now that is how many posts is required to enter it, but does not say anything informative, how can i change that message to maybe (x posts required to enter)

Something along those lines?

#67 deathrace

deathrace

    Member

  • Banned
  • PipPipPip
  • 27 posts
  • IPB Version:v2.3.x

Posted 01 February 2009 - 08:24 PM

i also noticed i get this error when a member tries to view a topic with not enough posts:


The error returned was:

Sorry, you must have a total of <#EXTRA#> posts or above to enter this forum.


it does not display the number, any idea wat is causing this?

#68 Tom

Tom

    Posting God

  • IM Supporters
  • PipPipPipPipPipPipPipPipPip
  • 1,541 posts
  • IPB Version:v2.3.x

Posted 08 March 2009 - 10:52 AM

Due to this line, added in search.php, guests are no longer able to access usual search queries like Today's Active Topics or View New Posts

		# Posts Requirement To Enter A Forum
			if( ! $this->ipsclass->member['g_access_cp'] && ( $this->ipsclass->member['posts'] < $i['post_required'] ) )
			{
				$can_read = FALSE;
			}
			else
			{
				$can_read = TRUE;
			}



Could anyone help or was anyone able to fix that issue?

#69 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • Location:Cracow, Poland
  • Real Name:David
  • IPB Version:v3.2.x
Contributor

Posted 08 March 2009 - 11:04 AM

Because guests have this:
$this->ipsclass->member['posts']

'set' to 0 ( zero ).

Try this:
if( ! $this->ipsclass->member['g_access_cp'] && ( $this->ipsclass->member['posts'] < $i['post_required'] ) && $this->ipsclass->member['id'] )

Edited by DawPi, 08 March 2009 - 11:19 AM.

Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence

#70 Tom

Tom

    Posting God

  • IM Supporters
  • PipPipPipPipPipPipPipPipPip
  • 1,541 posts
  • IPB Version:v2.3.x

Posted 08 March 2009 - 11:28 AM

Good that David is 24/ 7 here to assist. Thank you very much - works!

#71 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • Location:Cracow, Poland
  • Real Name:David
  • IPB Version:v3.2.x
Contributor

Posted 09 March 2009 - 01:33 AM

Glad i can help you. ;)
Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence

#72 reeps

reeps

    Novice

  • Members
  • PipPip
  • 10 posts
  • Real Name:John
  • IPB Version:v3.0.x

Posted 10 March 2009 - 10:34 PM

can't seem to get this to work on 2.3.6 any ideas anyone..it installs and all the edits are done but ppl with less than the set amount still enter and post..

#73 ilovemint12

ilovemint12

    n00b

  • Members
  • Pip
  • 1 posts
  • IPB Version:v1.1.x or older

Posted 12 March 2009 - 03:45 PM

Yeah, I got the same problem with 2.3.6.

#74 Tom

Tom

    Posting God

  • IM Supporters
  • PipPipPipPipPipPipPipPipPip
  • 1,541 posts
  • IPB Version:v2.3.x

Posted 24 April 2009 - 11:08 AM

@Vince - how much do you charge for the improvement where staff can determine certain members via ACP to bypass the restriction?

Or if you dont have the time maybe someelse could be develop an addon.

Tia

#75 aphichat

aphichat

    n00b

  • Members
  • Pip
  • 3 posts
  • Real Name:joh
  • IPB Version:v2.3.x

Posted 15 July 2011 - 01:23 PM

I want to required to sub forum. Why member can post in sub forum.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users