Phpbb Bridge: Restrict access Gallery only to users who make 1 Post in the Board Phpbb Bridge: Restrict access Gallery only to users who make 1 Post in the Board
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Phpbb Bridge: Restrict access Gallery only to users who make 1 Post in the Board

Started by cavallino, October 16, 2005, 11:53:31 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

cavallino

Hello,
Is it possible to allow gallery access only to those users who makes at least 1 new post in the board?
My phpbb board is successfully integrated with coppermine but i would like to add also this feature.
Please if you can, help me...

Thanks

Nibbler

Certainly possible, but I don't know the code required to obtain a reliable post count from phpbb.

cavallino

Quote from: Nibbler on October 16, 2005, 12:43:48 PM
Certainly possible, but I don't know the code required to obtain a reliable post count from phpbb.

If you need, i can provide you with a link to a simple mod made for phpbb to allows the admin to define how many posts are needed to view a certain forum...That's the mod i installed in my board to make users write at least 1 post before access other areas. Inside the mod instructions there are certain parts that calls up the post count table...if you wanna have a look at it Just search in google this string < View forum postcount threshold > and you will find it in the 1st result.

But probably someone else more into phpbb bridge has done it already, I'm sure I will find a solution soon :)

Thanks for ur help


Nibbler

Open your bridge file, find

"SELECT user_id, username as user_name, user_level "

change both places to this

"SELECT user_id, username as user_name, user_level, user_posts "

Then in init.inc.php or in specific files you wish to enforce this, add


if ($USER_DATA['user_posts'] < 1) {
pageheader('Please post');
msg_box('Notice', 'You must post in the forum before you can access the gallery');
pagefooter();
exit;
}