• Welcome to PHPVIBE Forums. Please log in.

uploading redirection

Started by yafe3,

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

yafe3Topic starter




Hi
since i   dont need  images or music on my website i want  to make some change its just for us who do video only
i want when users click on upload he will get redirected straight  to


http://www.mywebsite.com/add-video


not to :


http://www.mywebsite.com/share


i know its easy but lase mario guide me where to make the change
thanks

  •  

Marius P.

Edit /tpl/main/tpl.header.php and just change the link.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

yafe3Topic starter

Quote from: @Mario on
Edit /tpl/main/tpl.header.php and just change the link.
thanks
  •  

yafe3Topic starter

is this okay

if((get_option('upmenu') == 1) ||  is_moderator()) {
$nav .= '<a id="uplBtn" href="http://www.yaratube.com/add-video" class="btn btn-default btn-small " title="'._lang('Upload video').'">   
<i class="icon-cloud-upload uqi"> <span>'._lang('Upload').'   </span>
</a>';   


i changed

'.site_url().share.'

with:

http://www.yaratube.com/add-video

because this   '.site_url().add-video.'   didnt work for me is this okay ?

http://www.yaratube.com/add-video
  •  

spirog

can we just make this an   [admin feature]

not allow upload of video music or photo ie. share or upload etc. etc. ??
so in admin panel we have separate: allow - disallow

allow: video yes / no(hide from users)
allow: share yes / no(hide from users)
allow: music yes / no (hide from users)
allow: photos yes / no(hide from users)

this way we all have option to make whatever we want video only site, music only site etc..

Admin can only upload videos as admin if wanted, just hide from users...
not sure if this is hard to do as I am not Super @Mario :) but I am sure he can do this :)

thanks

Spiro
  •  

spirog

Quote from: spirog on
can we just make this an   [admin feature]

not allow upload of video music or photo ie. share or upload etc. etc. ??
so in admin panel we have separate: allow - disallow

allow: video yes / no(hide from users)
allow: share yes / no(hide from users)
allow: music yes / no (hide from users)
allow: photos yes / no(hide from users)

this way we all have option to make whatever we want video only site, music only site etc..

Admin can only upload videos as admin if wanted, just hide from users...
not sure if this is hard to do as I am not Super @Mario :) but I am sure he can do this :)

thanks

Spiro

Maybe Option to make this into a user group, who can add video or not, so if we do subscription, customer can add video or music etc.. if they pay.. they can add..
or create user-group custom user:

custom user :


allow video upload ? yes - no
allow music upload ? yes - no
allow photo upload ? yes - no
  •  

Marius P.

You can deny uploads from Settings- > Uploads, also hide menus for users in Site & Globals.
I should give a seconds look to that.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

spirog

Quote from: @Mario on
I should give a seconds look to that.

Thanks Mario :) hope we get an update soon my brother - patches :)
  •  

Marius P.

One tip: Moderators and Admins are not affected by hidden rules.
So, use a simple user account to test.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •