VCD-db v. 0.991 - View movie without being logged in

If you are having problems with VCD-db, and you are unsure whether or not it is a bug, post it here.

Moderators: Carpo, Saviq

VCD-db v. 0.991 - View movie without being logged in

Postby tazmahan » Tue Apr 01, 2008 1:23 pm

First of all VCD-db is a great program for what if has to offer!

Now, onto the problem.

I have been trying to make VCD-db to allow unregistered users to view the movie I upload as an admin. I've found that the function that hides the play button resides in VCDPageBaseItem.php at around line 176:
Code: Select all
if (VCDUtils::isLoggedIn()) {
         $this->doMetadata();
      }

and by commenting this line it does shows the play button. :lol:

Thing is that if I press the play button nothing happens if I'm logged out, but if I'm logged in the file plays. I guess :roll: you have a code to the .class java file that checks to see if there's a session saved, so if it is, redirect the user to the appropriate page (?page=launcher&id=ID) but if not don't play it.

I know you have a special function in version 1.0 to make a movie playable for the public but I'm supposed to have a site ready the coming week (and I don't think you'll release the new version that fast cause I know it needs lots of work :)), so I'm kinda stuck here.

Any help will be greatly appreciated!

Thanks in advance.
tazmahan
 
Posts: 3
Joined: Tue Apr 01, 2008 12:46 pm

Re: VCD-db v. 0.991 - View movie without being logged in

Postby jantle » Sat Jan 09, 2010 5:56 pm

asked long time ago, but maybe the answer is helpful for other users:

in file /pages/pages.xml look for the section for the MoviePlayer
Code: Select all
   <page standalone="true" auth="true">
      <name>Movie launcher</name>
      <handler>VCDPageUserMoviePlayer</handler>


change auth="true" to auth="false"

thats it

Gruß, Jantle
jantle
 
Posts: 2
Joined: Mon Nov 16, 2009 1:57 pm


Return to Troubleshooting and Problems

Who is online

Users browsing this forum: No registered users and 1 guest

cron