• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Removing sidebar on specific pages, image page appearance, 3.6

Started by shtefcs,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shtefcsTopic starter

While changing theme look i ran into some problems. So I have two questions and i would really appreciate the help because i am web designer without knowledge of php.

1. Is there any way to remove sidebar from specific pages? For example, from login page ( http://yoursite.com/login ) ?

2. I want to have different appearance for image page but I can't figure it out where to change codes? It seems like video page and image page are the same ones, so can i somehow separate that?

Thanks in advance.
  •  

PHPVibe A.

1.
if(com()=="your page") {

}


2.

On com/com_video.php replace

include_once(TPL.'/video.php');


with
if ($video->media == 3) {
include_once(TPL.'/mythemefileforimages.php');
} else {
include_once(TPL.'/video.php');
}

shtefcsTopic starter

The solution for second answer works perfect, but I don't understand the first one. Can u write me where I have to put that code and what should I place inside it? If i want to remove it from login page for example, what should I exactly write?
  •  

PHPVibe A.

You can check the "case" in index.php to figure them all out :)

if(com()=="login") {

}

Similar topics (7)