• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Share media by link for guests

Started by bandito,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

banditoTopic starter

Hey folks,
how can i activate "share media by link " for guests

Author as "guest"

only Social video link (youtube etc.)
without remote upload!!

greetz
  •  

Marius P.

Easiest way, create an user for guest, get the id and do this :

In lib/ajax/addVideo.php remove is_user check, replace all instances of user_id() with $user_id , define a default $user_id for guest (a fake profile) and before all the inserts add a

if(is_user()) {
$user_id = user_id();
} else {
$user_id = x;
}

Where x is the fake user's id.


in tpl/main/tpl/globals.php move


<li><a class="topicon tipN" href="'.site_url().share.'&type=2" title="'._lang('Share media by link').'"><i class="icon-link">[/url]</li>



before/after the is_user() if condition.


In com/com_share.php remove this


if(!is_user()) { redirect(site_url().'login/'); }



I think this is all.
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!
  •  

 

Similar topics (7)

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 38048

The problem of video viewing PHPVibe 5.0

Started by Nayn


Replies: 25
Views: 69313

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 49153

when slecting to unpublish music mp3 - next page says unpublished video ?

Started by spirog


Replies: 2
Views: 4039

insite ads issue when selecting above/below video player location

Started by georgepanaitescu


Replies: 3
Views: 21276

Video that I've uploaded needs to have that value in admin to upload

Started by spirog


Replies: 4
Views: 4376

video,playlist,images, etc. (frontend) select all deselect all reselect all

Started by spirog


Replies: 3
Views: 4494