![]() |
Sorry, please ignore the test forum for now. If you want to see the hack in action, please look at it on my production forums: http://forums.jjr512.com/homeindex.php
(This hack on the test forum is not currently working due to being in the middle of testing of something that isn't finished yet.) |
so u mean the hack didn't finish yet~~
and i got that is normal!! |
JJR512,
I'd like to suggest something... Wouldn't it be better if the "Headbits" didn't show the threads that are "News Items" too? I mean, what's the point of showing them in two places on the same page? What do you think? P.S. Any idea on the include statement? (see post #119) |
[QUOTE]Originally posted by squawell
so u mean the hack didn't finish yet~~ and i got that is normal!! |
JJR512,
Thanks for considering my request and I look forward to see what you?ll come up with on the new version ;) Is there any chance that you or someone else could let me know how to insert extra PHP code on the homeindex.php page? For example, I want to include a separate Poll script that I found here, but the installation instructions say that I must add the following in order to have the Poll on my site. [QUOTE] <?php require "./booth.php"; ?> <?php echo $php_poll->poll_process(1); ?> |
You cannot add PHP code to templates. (Unless it's the phpinclude template, of course.) You must add the code to the file; in this case, homeindex.php file.
Because the file is entirely PHP to begin with, you can strip the PHP opening and closing tags, so you are left with these two lines: require "./booth.php"; and echo $php_poll->poll_process(1); Without having read the instructions for that hack, I would assume you should put the require line below the line that requires global.php, and the echo line...well, I don't really know where to stick that, honestly. I think an echo statement will work in this file because all the HTML is generated by templates, and the output of the echo statement would need to go wherever in the HTML that you want it, which isn't possible this way. I think wherever you stick that echo statement in the homeindex.php file, the output will just end up at the top of the page, above the header and everything. |
Well.... I did what you said but it didn't work :(
When I added the echo... I received [QUOTE]echo (0); |
Just so you know.. I find out how to include the poll script ;)
Everything needed to go on the phpinclude ;) |
i want to be able to include the news hack on my non-vB page this is how i have it setup
main site is in the public_html/ folder and my forums are in the public_html/forums/ folder now what i want to do is simply modify my index.php to get the news and make working links to the posts. i dont know how to include it and keep my normal page up. basicly heres what im looking for, this is a IMAGE EDIT just for your info :) http://www.voogru.com/images/homepage.jpg i attached my index.php if someone could lead me in the right direction that would be great :) -voogru |
i posted here on this thread how to make homeindex.php your home page. ;) search through..
|
All times are GMT. The time now is 01:43 AM. |
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:
|