i add php page it;s not working plz help me what i am doing wrong
here is a Link http://www.mknexusonline.com/content/mkgames/test.php |
Quote:
Thanks sabrina |
Read the vbulletin manual, especially the chapter about plugins/hooks.
|
I'm terribly confused by this entire thing.
The guide really doesn't explain this well for a newbie. I've made the .php file and uploaded it to the FTP file manager then I have saved the template.... That's all the guide tells me to do and of course nothing has happened. What am I missing? |
Quote:
You say you saved the template and uploaded the PHP file. What happened when you navigated to the page? |
Hi All,
I have tried and tried for the last few hours to integrate this with phplist. Could someone please explain in laymans terms how this can be done simply!. I can change the directory because it is out side however all I want to use is the headers and the footers from vbulletin. I find myself hitting a major brick wall! Somebody please help! if there are any experts out there who can do for a small fee I will gladly pay for their time. Thanks in advance tim |
Quote:
I need this new page because I want a page where I can place article links to get rid of the clutter in my forum. Thanks for help --------------- Added [DATE]1208381875[/DATE] at [TIME]1208381875[/TIME] --------------- hey, okay so basically i copied and pated test.php to my publictml directory. I am now at a loss as to what to do from there. I dont mod VB alot all i wish is to have a page with a few links and a few bits of text. What do i do, i know i edit the bits labled test but i dont know what to edit them too. Please help guys! |
Quote:
1. a php file calling a template 2. a template with the content for the page Since you already have the file, you now need to create a template. Look in your test.php and find a line that looks like this: eval('print_output("' . fetch_template('TEST') . '");'); The bit that says TEST is the name of the template that is called when a person navigates to www.yourforum.com/test.php This name can be anything you choose. So create a template called TEST by going to Styles & Templates -> Your style -> Add Template. Call it TEST, and put the example code provided in the first post of this article. Edit the basic html to show the article links you want to show. www.yourdomain.com/test.php should now show whatever you put in the template called TEST. The last part of the tutorial is just so that when people are looking at the test.php page they show up on online.php list as 'Viewing article links' (or whatever you choose to say) instead of 'Unknown Location'. Hope that makes more sense to you. |
hmm...all i get is this
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/ede/public_html/test.php on line 2 Parse error: syntax error, unexpected T_STRING in /home/ede/public_html/test.php on line 2 i did step by step everything like in the tut. any1 any idea ? |
I'm trying to have this page outside of the forum root folder.
I replaced Code:
require_once('./global.php'); Code:
chdir('./forum_root_folder/'); www.mathhelpforum.com/downloads.php And the images (curiously one of the images is working) and links are not looking in the forum root folder as they should. How do I fix that? |
Can you post "html" in this created page to personalize it with pics, etc.?
|
Quote:
|
Quote:
|
Is it possible to make the user signup before viewing this page?
Like denying guest access? |
|
I actually got this to work, what an asset. Thanks so much for this infomation.
|
Quote:
|
how do u make a new file?
what does that mean |
Hrm, I'm not sure how else you could put it, as that's pretty straightforward. Open up whatever HTML editor you use and create a file with the code the tutorial tells you to put in there.
|
but how do u upload it to vb. Do u just save it to the directory
--------------- Added [DATE]1210301985[/DATE] at [TIME]1210301985[/TIME] --------------- so.. |
Yup, just add it to your forum directory where all your other files are.
|
im using this custom vb page for my site, so its forums/videos.php
im going to be adding videos so how can i make it so i dont need to add a template everytime...cause ive seen video.php?id=1 <-just something like that. any help is very much appreciated! |
I am wanting to get a page from elsewhere and insert it so it looks like it's on my site (the other page is also mine ie hosted on the same please) how can i do this?
--------------- Added [DATE]1210794909[/DATE] at [TIME]1210794909[/TIME] --------------- Quote:
|
Quote:
Just follow the instructions as stated, and then in the HTML area add: <iframe src="tickers/index.php" height="xx" width="xx" frameborder="0"></iframe> And, of course, you can adjust things as you like, and you'd never have to change the template again other then for tweaking and getting the style just right, and it will look like one integrated page. There's a also a really good script on Dynamic Drive for creating an iFrame that resizes based on the content of the frame, in case you have really dynamic content that would need that. You can save the page as tickets.php and it won't conflict with /tickers/ |
Is there a way to make it open, just whatever size it is? Cos the page changes. Like 100% instead?
|
100% wont do it. It will just stretch to 100% of the users browser window. The code for making the iframe adjust to the size of the content is at Dynamic Drive. http://www.dynamicdrive.com/dynamici...iframessi2.htm
|
i have completed what the tutorial says. i have made a test template and changed header include to what is stated. then i put my code in another folder...
pub_html>community pub_html>file here heres the code i have i dont really know if i made the template right or not in stylemanager since it didnt really state where to put it. Code:
// ####################### SET PHP ENVIRONMENT ########################### |
Try just putting the PHP file in your main forum directory.
I'm not sure what you mean by you don't know where to put the template, as the template can only be in one place, in the style manager. Also, you should not have made any changes to your headinclude. |
i added it to the main forum and i still have a blank page
|
I just noticed that the code you posted looks quite different from the sample PHP code. I'd recommend starting over and keep everything exactly the way it is in the tutorial, except for your template and file names of course, and see if that fixes your problem.
|
this time after resetting the php to what it defaults to in the beginning of the tutorial. and i also did the style change.
RESULTS TIME: still a plain white page. so i decided to see the source of that blank page and i got Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> where do i put the second part of the tut if it doesnt explain really where to put it.. header, footer, includes. where? |
Quote:
|
Actually, it works on FireFox 1+ and IE 5+.
--------------- Added [DATE]1211384723[/DATE] at [TIME]1211384723[/TIME] --------------- Quote:
Okay, I think I understand what the problem is. It doesn't explain where to put it, because your supposed to create a new template with the template code provided. Your page is coming up blank because it's trying to fetch a template that you havn't created yet. Quote:
|
ok so now that i figured out that you have to have your test style witch i thought was the template. have the default style set to the main style for your setting... i had the wrong style set. and i thought the style was the template how to fix that tell them how to make a template! cause i didnt know how!
|
I'm not entirely sure I understand what you just said, but just in case, you create this template for each style the page will be using. You don't have to create a test or new style. Just a new template for each style your using.
|
This should work with vB 3.7.0 also, right ?
|
Of course.... ;)
|
Thanks! On my 3.7.0 no problemo worked in 30 seconds :)
|
I can remove the php i made, but how do i remove a template if i no longer want it?
|
Quote:
(ADMIN CP > Styles & Templates > Style Manager > Edit Templates > Select Your Template > Revert) |
All times are GMT. The time now is 10:20 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|