Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Phpbb Bridge: Restrict access Gallery only to users who make 1 Post in the Board  (Read 6179 times)

0 Members and 1 Guest are viewing this topic.

cavallino

  • Coppermine newbie
  • Offline Offline
  • Posts: 18

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
« Last Edit: October 20, 2005, 06:11:50 pm by GauGau »
Logged

Nibbler

  • Guest

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

cavallino

  • Coppermine newbie
  • Offline Offline
  • Posts: 18

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
Logged

cavallino

  • Coppermine newbie
  • Offline Offline
  • Posts: 18

anyone?  ::)
Logged

Nibbler

  • Guest

Open your bridge file, find

Code: [Select]
"SELECT user_id, username as user_name, user_level "
change both places to this

Code: [Select]
"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

Code: [Select]
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;
}
Logged

cavallino

  • Coppermine newbie
  • Offline Offline
  • Posts: 18

thanks nibbler! you're the best !!  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.