![]() |
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..
|
Is this wonderful piece of software ready for full release yet?
|
Ok I want this hack..exactly which link do I get :P
is it fully out yet? |
JJR512,
Could you send me the latest version? I'd like to try and convert this over to vbportal. |
I'm confused. I can't access newspost.php because I don't have the rights - even though I'm the admin (of course). And homeindex.php is nice, there's a news bar down the right hand side. But isn't something supposed to go in the middle?
<newbie> Help? |
[QUOTE]Originally posted by nakkid
i posted here on this thread how to make homeindex.php your home page. ;) search through.. |
Can anyone let me know if/where i can get this hack or one that dose the same thing it`s just what i have been looking for thanks
|
if there is an image as attachment is there a way to also have it displayed on homeindex, as a thumb, using php resize function?
|
I can't get this to work for my site. My board is at www.website.com/forums/
and i want to put the homeindex at www.website.com Not at /forums/ How would i go ahead to do this. Can someone please tell me in detail because i am not to good at this. Thanks |
I know I've never been able to get it to work outside of the forums directory, and I don't recall anyone else saying they did it, either. So that's where I kept it. At first, I changed my root index.html to instantly redirect to homeindex.php. Eventually, I just moved my entire forums to the root web level.
|
does this work on vb 2.2.6?
|
It should. It does for me, and I don't remember having to modify it.
|
thank you
|
This is a great hack. I have a little problem. I have 5 different sections in my site and each of them have a different news forum. Is it possible to use this hack and have the news from each news forum show up and their respective index pages. Meaning I will need to have basically a different homeindex.php for each index page. Is something like this possible for this hack? Also, why is the news posted on the right sidebar and not in the middle? I hope this is possible to do this. Maybe not with this hack but maybe there is another one here that I haven't found yet. I tried pluhnews but i didn't like that because I couldnt' get that to use the current style of my board and I had to edit it with html and what if I have a different style then the colors won't match and stuff like that. Help please.
|
i think i found a Bug:
when i make a new thread, mark this thread as news and would start a poll, i got a with page, i fgured it out that the poll function now work but only when i don't try to do both makr as news and start a poll. Any idears or is this only my problem??? I use VB 2.2.4 |
I get this as an error please help
Warning: ChDir: No such file or directory (errno 2) in /usr/local/psa/home/vhosts/url.com/httpdocs/index.php on line 6 [QUOTE]Originally posted by Nakkid 01. open homeindex.php. place: PHP Code:
PHP Code:
PHP Code:
PHP Code:
04. find: PHP Code:
************************** 01. open newspost.php. find the code: PHP Code:
http: //yoursite.com/index.php 02. find: PHP Code:
03. find: PHP Code:
|
Can someone please help me. Read above. PLEASE@!!!!!
|
All times are GMT. The time now is 04:17 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:
|