Quote:
Code:
Warning: require_once(/home/svtcobra/public_html/includes/init.php) [function.require-once]: failed to open stream: No such file or directory in /home/svtcobra/public_html/global.php on line 20 |
And does this file exist at this path?
public_html/includes/init.php |
and the answer is one post above yours.
|
Quote:
|
it would be much simpler to put the new file in forums directory and use it as www.example.com/forums/test.php in your browser.
|
Quote:
|
Add a rewrite rule to your web server software. Keep the actual php file in the same directory as your forum. It will make life easier.
|
are excellent and do as my own personal pages ...
|
This is the original code:
PHP Code:
PHP Code:
|
AFAIK, the THIS_SCRIPT constant is used mainly for tracking user activity and who's online. So I guess you can do that.
|
Please tell me its possible to display 1 users most recent albums in one of these 'powered by' pages. I want to make a intro page with just my albums in it so when people enter the 'menu' page it will show them the most recent pics I've uploaded.
|
It is possible to display whatever you want to code. You just need to code it.
|
I see, Im kind of an amature and was hoping someone knew the code off hand. No worries then, nice code!
(Tried putting 'Todays Events' code from the FORUMHOME template and its not displaying Todays Events. Is it not that easy?) |
No, it's not that easy. You need to grab all the php code that creates all the variables that are called in the template also.
|
and would that php code go in the php part of your system, or the template part?
|
php code goes in the php page. html goes in the templates.
|
thanks you've been most helpful!!
I'll try to look for the corresponding php probably in the calendar.php file and add it to this test.php and see if it works... appreciate the help Lynne! |
This Article is really useful. Thank dude.
|
Anyone tested on vBulletin 3.8.1?
|
Why it shouldn't work?:D
It's working! --------------- Added [DATE]1234807628[/DATE] at [TIME]1234807628[/TIME] --------------- But, i've forgotten, there are some things which changed with the time(because the code seems to be old*g* 1. PHP Code:
|
So the "define('CSRF_PROTECTION', true);" code should be added under #1 above, even if the script and related custom template contains NO forms whatsoever?
|
Quote:
|
Quote:
|
A login is processed by the login.php page, not your page.
|
sorry, your right
|
how can we modify this php page to use it in the admincp with admin permissions? or is there another tutorial?
Thx |
<a href="https://vborg.vbsupport.ru/showthread.php?t=83122&highlight=admincp" target="_blank">https://vborg.vbsupport.ru/showt...hlight=admincp</a>
|
ragtek thanks for the link
|
question...
are both those first two codes in the instructions in the same file? my file looks like this: and I placed in under my forum directory and just got a black white page. what am I doing wrong? Code:
<?php |
I am guessing this line is the problem:
PHP Code:
And per the article, the stuff under the ?> is supposed to go into the template you create called "'Norcal 4x4 Forum Dark Side'" (usually we don't use spaces, but use _ instead.) |
What would I need to go about to create a template called "header2" (so i can modify the other and not pull everything in) and call it via $header2 in the test template. I created a duplicate header (same code), but it doesn't want to pull and im not sure where it needs to be added to make it work.
thanks :) |
You need to make sure to eval the template. And include it at the top of the file as one of the globaltemplates.
|
i made another globals file and renamed header and called that through the script... im sure thats the long way, but given im changing the footer template too and im not huge on php, that seemed easy. I'm not sure what you mean by eval the template.
|
Quote:
PHP Code:
|
Quote:
im really confused? your saying this... Code:
$stylevar[htmldoctype] |
Here's a tutorial how to create a template:
http://www.vbulletin.com/docs/html/s...edit_templates |
I don't understand why you are bringing up some CSS box. I don't know where that is coming from.
|
Great tutorial, highly useful.
|
I like that people are not registered or not logueadas can not access
Simply put permissions to different groups .. |
i don't understand why I would need to make another template? I though I was simple placing a file in the forums root?
|
All times are GMT. The time now is 09:21 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:
|