vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Any-forum News hack (https://vborg.vbsupport.ru/showthread.php?t=33314)

JJR512 02-13-2002 06:20 PM

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.)

squawell 02-13-2002 06:29 PM

so u mean the hack didn't finish yet~~

and i got that is normal!!

pdaGuy 02-13-2002 07:09 PM

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)

JJR512 02-14-2002 01:37 AM

[QUOTE]Originally posted by squawell
so u mean the hack didn't finish yet~~

and i got that is normal!!

pdaGuy 02-14-2002 01:53 AM

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);
?>

JJR512 02-14-2002 09:22 PM

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.

pdaGuy 02-15-2002 02:38 AM

Well.... I did what you said but it didn't work :(
When I added the echo... I received
[QUOTE]echo (0);

pdaGuy 02-16-2002 12:05 AM

Just so you know.. I find out how to include the poll script ;)
Everything needed to go on the phpinclude ;)

voogru 02-21-2002 05:41 PM

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

TECK 02-22-2002 03:34 AM

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
  • Page Generation 0.01111 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete