vBulletin Mods

The Official vBulletin Modifications Site
http://www.vbulletin.org/forum/showthread.php?t=62164

edesi 21 Dec 2008 19:05

Hello
I am trying to show another php file which generates a directory listing for some mp3 files along with the forum header and footer..
How can I show that php file's generated output in the template area?
I know i can use an iframe code in the template file but I am trying to avoid that. Is there any other way for me to accomplish this?

music.php

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

where can i put the other script's code? It's a pretty big script (135KB) named Andromeda.. maybe some of you know about it.

Chunky Monkey 22 Dec 2008 15:58

Can somebody please explain how I can make the custom page show up in Currently Active Users? I read in this thread that you have to use plugins or hooks to accomplish this feat but I have no idea how I would go about it. Can anyone tell me specifically what code to add and where so that when you look on Current Active Users page you will see <custom page name> as the location users viewing the custom page are looking at?

Thank you!

Lynne 22 Dec 2008 16:26

Quote:

Originally Posted by Chunky Monkey (Post 1691137)
Can somebody please explain how I can make the custom page show up in Currently Active Users? I read in this thread that you have to use plugins or hooks to accomplish this feat but I have no idea how I would go about it. Can anyone tell me specifically what code to add and where so that when you look on Current Active Users page you will see <custom page name> as the location users viewing the custom page are looking at?

Thank you!

This question has been covered in other articles and also out in the General vBulletin Discussions forum several times. I'll post the code here, if you need further help, you should post out there.

hook online_location_process:
Code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


hook online_location_unknown
Code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Chunky Monkey 22 Dec 2008 16:41

Thank you but can you please tell me where to put that code?

Lynne 22 Dec 2008 18:31

I did. Reread my post - I have the hook locations specified.

Chunky Monkey 22 Dec 2008 18:48

I see. I didn't realize I had to go to Manage Plugins and create a new plugin. I've followed your instructions but the location is reading Unknown common/lists.css. Any idea as to why that might be happening?

Lynne 22 Dec 2008 18:54

Quote:

Originally Posted by Chunky Monkey (Post 1691293)
I see. I didn't realize I had to go to Manage Plugins and create a new plugin. I've followed your instructions but the location is reading Unknown common/lists.css. Any idea as to why that might be happening?

I have no idea since I can't see exactly what you did for the two plugins. Like I said before, if you need further help you should post in the correct forum - this thread isn't really about the Who's Online locations.

Chunky Monkey 22 Dec 2008 18:55

Thanks, I'll post my question in the General Discussion forum.

supergper 22 Dec 2008 23:41

Ok, this is excellent info, I've tried to read most of this thread but I'm sure i have missed this somewhere. I am trying to create a page within a directory within my forum directory (forum is at /var/www/html/forum, directory is at /var/www/html/forum/directory). I added the
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and my page is showing up, mostly. The problem I am having is my header, navbar, or footer are not showing up on my page??? Do I need to change a path in my Template, or??? If I create a test page in my forum directory everything works fine, so I'm sure I'm just missing something simple. Any help would be appreciated. ...and sorry if this has already been answered

Thanks

amcd 23 Dec 2008 03:28

supergper, in your template, put

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

at the appropriate place.

supergper 23 Dec 2008 08:08

Quote:

Originally Posted by amcd (Post 1691670)
supergper, in your template, put

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

at the appropriate place.

I've already got them. Here is my template:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Like i said, if I put my page in the directory with my forum, it works fine, however if it's one directory deeper, forum/directory/, then my header, navbar, and footer don't show.

amcd 23 Dec 2008 08:17

do the chdir before you include/require global.php

supergper 23 Dec 2008 08:25

It's already there. Here is my php file (I've named it index.php and my template is named GrandTech)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


amcd 23 Dec 2008 08:45

Try to call it somethingelse.php and put it in the forum directory and comment out the chdir and see if it works. If it does, then the problem because of the changed directory.

supergper 23 Dec 2008 09:13

Quote:

Originally Posted by amcd (Post 1691797)
Try to call it somethingelse.php and put it in the forum directory and comment out the chdir and see if it works. If it does, then the problem because of the changed directory.

Quote:

Originally Posted by supergper (Post 1691782)

Like i said, if I put my page in the directory with my forum, it works fine, however if it's one directory deeper, forum/directory/, then my header, navbar, and footer don't show.

;)


I am fully aware it's because of the changed directory, I'm trying to figure out how to rectify that :)


All times are GMT. The time now is 02:52.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2001 - , vbulletin.org. All rights reserved.