PHP code - Need help - CB & Joomlaboard

17 years 10 months ago #15133 by shyneweb
PHP code - Need help - CB & Joomlaboard was created by shyneweb
Hi and thanks for looking,

I am going to explain this in as much detail as possible, so it might seem a little long winded a post but it's necessary.

I am trying to make the Upload Image/File option in Joomlaboard only appear to certain users. I have a plan but it's a little out of my league.

I have set up a field in the users "Additional" tab in CB called "imagesallowed", it's a checkbox. Only the admin is able to tick the box.

Now, I want only those users with a tick in that checkbox to be able to use the image/file upload option in Joomlaboard.

I have located this code in the "post.php" file in the Joomlaboard directory:

if ($attachimage != '' ) {
$noImgUpload=0;
include $sbp.'/image_upload.php';
if ($rc==0){
$noImgUpload=1;

Is this the right code for the images and what do I need to do to get it to look at the "imagesallowed" checkbox? I'm not a PHP coder or a programmer at all but I am use to doing minor stuff here and there.

Any help with this would be HUGELY appreciated!

Thanks in advanced

Ben.

Post edited by: shyneweb, at: 2006/06/12 13:27

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.144 seconds

Facebook Twitter LinkedIn