• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Admin Uploads vs Members Uploads

Started by megaman79,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

megaman79Topic starter

Hello PHPVibe,

How can I make all Admin YouTube Upload be Published by Default, but Members Uploaded Videos Go to Unpublished ?

Because I want to control who Upload Videos. (Spammers upload video)

I want all my videos to go Published Only.
"Very Happy with PHPVibe"
  •  

PHPVibe A.

if(is_admin()) { /* It's an admin */}

Example for web videos:

lib/ajax/addVideo.php

replace bth instances of
intval(get_option('videos-initial'))


with
$initial


and at the top of the files, after
require_once('../../load.php');


you can do

if(is_admin()) { $initial = 1;} else { $initial = 0;}

Same for other pages.
lib/upload{and + something}

megaman79Topic starter

Quote from: Alexander on
if(is_admin()) { /* It's an admin */}

Example for web videos:

lib/ajax/addVideo.php

replace bth instances of
intval(get_option('videos-initial'))


with
$initial


and at the top of the files, after
require_once('../../load.php');


you can do

if(is_admin()) { $initial = 1;} else { $initial = 0;}

Same for other pages.
lib/upload{and + something}



Hello Alexander, Thanks. can you make it more simple, step by steps . Which file I need to edit..etc I don't know that much.
What do you mean with: Same for other pages.

Audio Upload section for example ?
"Very Happy with PHPVibe"
  •  

PHPVibe A.


hexertem

Hi Alex. Can you help me about this?

Can you describe the individual ?
aswell ...
  •  

Wnux

Quote from: megaman79 on

Hello Alexander, Thanks. can you make it more simple, step by steps . Which file I need to edit..etc I don't know that much.
What do you mean with: Same for other pages.

Audio Upload section for example ?

Quote from: Alexander on

lib/ajax/addVideo.php

home(phpvibe) /lib/ajax/addVideo.php

;)
  •  

PHPVibe A.

Quote from: hexertem on
Hi Alex. Can you help me about this?

Can you describe the individual ?
aswell ...

Hi, what individual? Is the same code change for every page.

hexertem

I'm just so I can see the notification (activity) screen. You will see other users.
  •  

hexertem

Quote from: hexertem on
I'm just so I can see the notification (activity) screen. You will see other users.
  •  

PHPVibe A.

I don't understand...what are you trying to say about activity?

hexertem

Quote from: Alexander on
I don't understand...what are you trying to say about activity?

User1 not look (not view).

User2 private
  •  

PHPVibe A.

I understand, so you are trying to say only the user should see his own activity, right?

hexertem

Quote from: Alexander on
I understand, so you are trying to say only the user should see his own activity, right?

Yes...

I need to do? Php code.
  •  

PHPVibe A.

You can wrap link and activity in

<?php if(is_powner()) { ?>


existing code
<?php } ?>



hexertem

Quote from: Alexander on
You can wrap link and activity in

<?php if(is_powner()) { ?>


existing code
<?php } ?>


Thank you Alex..
  •  

max18121980

How to remove a mandatory description for editing MP3
  •  

max18121980

And another thing: how to change the number of pages to an endless scrolling
  •  

PHPVibe A.

Quote from: max18121980 on
How to remove a mandatory description for editing MP3

A field is mandatory if it has the class
validate[required]
if you remove this from input's class it's done.

tpl/main/manager.php

<textarea rows="5" cols="5" name="description" class="auto validate[required] span12" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 88px;"><?php echo $video->description; ?></textarea>

PHPVibe A.

Quote from: max18121980 on
And another thing: how to change the number of pages to an endless scrolling

Depends on page/selector.

max18121980

I removed and I get the code, but still asks description

<textarea rows="5" cols="5" name="description" class="auto validate[required] span12" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 88px;"><?php echo $video->description; ?></textarea>               
  •  

PHPVibe A.


max18121980

Thank you. I think you made a mistake in finding the file. It was necessary to remove the code in moderator/edit-video.php :)
  •  

PHPVibe A.

You didn't explain where, so I tought in front-end :) My bad!

Similar topics (7)