• 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)