• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] How to ... redirect after uploading video?

Started by Heiby,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HeibyTopic starter

Hello,
after uploading a video (by clicking on "Save" and after saving the details) the user should be redirected to an own site:
i.e. www.myownsite.com

I've searched in files like lib/upload.php, lib/upload-ffmpeg, com/com_add.php, lib/functions.php,.... , but I didn't find anything where I could put my redirect-Code ("header: location...").

In which file do I have to put the redirect?

Thanks in advance.
Heiby

P.S. And where can I change the text of the "Save"-Button into an other language?
  •  

PHPVibe A.

Hi! In com/com_add.php after

add_activity('4', $doit->id);


something like

redirect(site_url());

HeibyTopic starter

Hello Alexander,
thank you very much - this works perfectly!

Another question ... how hiding the activity-bar?
There is a sidebar, which will be shown when a user is logged in, like "Admin watched ...", an which is faded out, when I do something else.
I tried to find the html-id to hide it (z-index), but it's not written in the html-code.

Could you tell me please, where I can find this activity-bar?

Thanks in advance,
Heiby
  •  

PHPVibe A.

Hi,

not sure I follow, maybe you are looking for this

http://www.phpvibe.com/forum/how-to/hidden-sidebar-on-4-0/

Quote from: Alexander on
Open tpl/main/sidebar.php and change at the top

<div id="sidebar" <?php if(com() == "video") {echo 'class="hide"';} ?> >


to

<div id="sidebar" class="hide">


Similar topics (7)