![]() |
I have been trying to implement this hack, but since it's so scattered, I am having a hard time applying it.
If you can spare a moment, please tell me what I am doing wrong. 1. I've created "active.inc.php" file and uploaded into forum/admin. Code:
<?php Code:
<?php The problem is, nothing is showing up. Thanks -Hideki |
"default.html" should be "default.php" if you want to parse it as php
|
Menno, thanks for the reply,
I was under the impression that the entire purpose of this hack was to display vB elements on a non PHP page. Am I mistaken? So, people who have latest threads, total number of members, etc. on their homepage/front page are actually using default.php instead of default.htm? Thanks again. -Hideki :) |
The purpose is to display vB elements on non-vB pages. On my site, all the pages are *.php, as I run scripts on various pages throughout it.
Hope this helps :) |
Hes saying that in order to do that as a php command you need a php file.. in order to do it as a SSI command you should change your extension to .shtml and use
<!--#include virtual="../forums/admin/active.inc.php"--> I believe |
I don't know if that would work...calling a PHP file from a SSI. It might not parse the PHP...be interesting to try it and find out. ;)
|
It will work fine, the only thing Im unsure of is if it should be called like that. I used the code in sidebars which were in a subdirectory thus the [ ../forum/blah/ ]
|
Thanks guys,
I really appreciate your help. Hopefully it will work now. Question, I'm not too familiar with the .shtml extension. Could you give me a bit more info on it? Thanks -Hideki |
Yeah that's the correct syntax, except remove the .. so it looks like
Code:
<!--#include virtual="/forums/admin/active.inc.php"--> Code:
root [aka yoursite.com/] |
The SHTML or SHTM extension is for files that are server-parsed for SSI (server side includes). Basically it allows you to include stuff like the contents of another file, various stuff about the current file, and even execute scripts (CGI, PHP, etc) as we're doing in this case.
You can find more info here. ;) |
All times are GMT. The time now is 02:42 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|