WordPress if page is X don't check for logged in user id
<p>I had a developer write a plugin for registered users to upload videos to their private profile page that would appear in the public video gallery. The developer has gone MIA so I can't get him to modify the code. He gave me a [shortcode] that I placed in the private profile page that gives the users the ability to upload, delete videos, etc.</p>

<p>Now that I need those user videos to display also on their public profile page, they won't because of some code in his plugin that checks if the user is logged in. If any user is logged in, they can see their videos on their public page, but no one else can that's not logged in. Users not logged in see a message saying they must be logged in to have the video functionality. I think I've identified the code below in the plugin that's causing this:</p>

<pre><code>public function videoAdd() {


global $wpdb;



$current_user = wp_get_current_user();



if ($current_user-&gt;ID == 0) {

$view = new View(dirname(__FILE__) . '/views/not-logged-in.phtml');

return $view-&gt;render(true);

}
</code></pre>

<p>My question is (because I can't write php code), can else if statements take care of this by specifying a page name? For instance, if page X, require user to be logged in to upload, but if page Y, only display the user's videos. Here's some example code I found that looks like it can be modified to work, but I'm not savvy enough to do it:</p>

<pre><code>&lt;?php   if ( is_page(123) ) { 
?&gt;
&lt;div class="option one"&gt;my content&lt;/div&gt;


&lt;?php } elseif( is_page(124) ) {

?&gt;
&lt;div class="option one"&gt;abc content&lt;/div&gt;

&lt;?php } 
else {
echo  '&lt;div class="option one"&gt;any content&lt;/div&gt;';
}

?&gt;
</code></pre>

<p>Can anyone please help me with a code example to make this work?</p>