Works fine with with 3.7.1, and the only difference there is some bug/security fixes.
|
So I don't end up making like 10 pages, is there a way I can do like the misc.php page and be like test.php?do=mypage
I wish to make a custom page, but also have links that go to a different subpage within the same link. |
I have a php script I need to run could someone please tell me how I can use it with this article, seeing as with templates it can only call variables from php it seems.
Please I really need help with this thanks |
Quote:
|
Alot of people seem to have troubles prohibiting guests from accessing their custom pages, I've seen a couple of different methods but none of which seem to work.
Here's what I did, and it works just fine: Code:
// ######################################################## |
For some reason this has issues with my submit button. It is suppose to convert text to hex, but instead it refreshes. Any idea?
Code:
<input id="box" value="YourHexCodeHere" maxlength="48" size="90" name="text" type="text"><input onclick="runHex(document.text2hex.text.value);return false" generate="" value="Convert" type="submit"> |
^ This has nothing to do with the article, but to solve your problem I think all you need to do is change the "type" attribute from "submit" into "button"
|
|
Quote:
http://www.mknexusonline.com/test.php |
Mine does show to guests and members , hints the Register Link on the page
Its HTML dropped in to a VB powered page that this mod creates , Your test page does not have this mod on it , you have to make a vb powered page then on the template insert html code to get what you want . Land a version of Front Page 2003 , Open a new page and click design and knock your self out then switch to code and copy everything between the Body tags and put in your vb template and your done |
how to make mod could to made and pm me that mod Please
|
There is no mod here , its just html
Design the page in html and use this article to build a vb powered page and paste the html code in the new template |
Thanks my page is finally using the vbulletin login systen due to this =D thanks a lot, members areas working anyone that need help fell free to send me a private message I wont probably reply on here
|
Using this method, is there anyway I can pass the content of the page into the template from the script? Essentially, I'm wondering if I can replace the value "Text" with something that is generated by the php script. Any hints would be appreciated.
|
Quote:
Suppose I have some pages I need to execute and show : page1.php, page2.php, page3.php I should create some templates : template1, template2, template3 Then insert the variables : $show1 (containing the html execution of page1.php) into template1, $show2 (containing the html execution of page2.php) into template2 and so on. But how can I generate/fill (for example) the variables and insert them into the template when I link the user to mysite.com/forums/page2.php ? --------------- Added [DATE]1216770050[/DATE] at [TIME]1216770050[/TIME] --------------- Found, may be, I should add a plugin : Code:
ob_start(); Is it ? |
Is there a way to do this outside of the forums directory?
|
Quote:
PHP Code:
PHP Code:
--------------- Added [DATE]1216816873[/DATE] at [TIME]1216816873[/TIME] --------------- Ok, I apologize for all this asking and answering by myself :D , I've tried and it's working. Can be a big shortcut, no templates, no plugins, but it's obviously less safe. |
Quote:
|
Quote:
|
How can you get your page to auto adapt to the current theme a user is running (ie. font and panel colors)?
|
Quote:
PHP Code:
|
Quote:
|
Quote:
|
No idea. I'm just responding the to the question about how to have a users style show up on that page. In fact, if you have multiple styles, you have to make a template for each style, otherwise you get a blank page.
|
If you have multiple styles, ideally they should be in a heirarchy. Just add the template to the top level and it will be inherited by child styles.
The question of how to execute php from templates is being asked frequently. The answer is that you cannot. It is not supposed to be that way. The primary objective of templating is to separate logic (php) from presentation (templates). Search for my posts in this thread. I have explained the whole thing with code examples. |
Quote:
By the way, you can execute code in a plugin but it's a p.i.t.a. |
this is my php file code
Quote:
and this my Template Code Quote:
but nothing working since 4 month |
Code:
$navbits = array(); Code:
$navbits = array(); |
i did but not working
|
Quote:
PHP Code:
|
Quote:
|
Quote:
PHP Code:
PHP Code:
Quote:
|
i don;t understand why it's not working where as file is still there
|
In chdir('/home/username/public_html/content/mkgames/mk1/');, did you actually put in your username, or did you just leave it like this?
|
Quote:
|
Hi there,
Do you know how I could edit this template or .php file so that the Notices do not show up if they are active? Thank you so much for your help! |
I Like it, do you know how to add the tag box too it?
|
It must be me but i don't know in wich directory i have to put the template file. Ive uploaded the test.php in the root directory of vbulletin but i can't find a folder with templates to put the test.tpl in. Can anybody tell me what i'm doing wrong?
edit: I've found the way to add templates but when i go to the test.php i've a blanc page. Quote:
|
Quote:
|
I've copied unchanged the exact text from the first post (test.php and the template test)
|
All times are GMT. The time now is 05:50 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:
|