vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   PluhNews 1.5 (https://vborg.vbsupport.ru/showthread.php?t=21875)

garymill 07-13-2001 10:43 AM

Not sure how to pull the news onto my main page from the news.php script.

I would appreciate your help in doing this.

Thanks,

Gary

RobAC 07-13-2001 12:25 PM

Quote:

Originally posted by garymill
Not sure how to pull the news onto my main page from the news.php script.

I would appreciate your help in doing this.

Thanks,

Gary

You need to use a server side include on your home page.

Kayn 07-13-2001 12:26 PM

Well, unfortunately you cannot include the file on an index.html page.

The page has to be either .php or .phtml - whichever your server is configured to parse php code.

You can then include it like so:

PHP Code:

<?  include ("news.php"); ?>

Hope that helps.

garymill 07-13-2001 12:30 PM

Thanks for everyone's help, after making the post, I thought that maybe an SSI would work.


This hack is really terrific, and you can see my site at
CyberMacro

Gary

RobAC 07-13-2001 12:39 PM

Well....it's running on my home page as an SSI and it works. And, my home page is an HTML document. :)

garymill 07-13-2001 12:46 PM

Right Rob, in my last post I did not make it clear that it is working for my as an ssi on my html based front page.

Gary

White Knight 07-13-2001 01:25 PM

Accually I am running mine on my index.html page. Via SSI. No problems as of yet.

rmusic 07-13-2001 02:49 PM

sorry if this was answerd but

is there any news on getting vB code and line breaks to work yet ??

SuitCase 07-13-2001 03:10 PM

Quote:

Originally posted by Kayn
Suitcase, I don't see why you couldn't. You can copy and rename the the hack file to pluhnews2.php and configure it to whatever forum you wanted. That way you could have tons of different news forums if you chose.
That's good to know, thanks.
Quote:

Originally posted by Kayn
Another feature I was working on is categories. I have a 'rigged' version of categories on http://pluh.com if you want to see it. If that would be an interesting feature, let me know and I'll plug it in. Thanks!
They look nice, but personally I wouldn't need them. I'm sure many others would, though... Maybe have it as a selectable option in the next release.

Oh, I just thought of something that's possible with this hack... A picture for each news post! All one would need to do is make an <IMG src="webhost.com/news/images/thumbnails/$threadid"> somewhere in the HTML, and perhaps have it link to another image with the $threadid for a full sized image. Hey, that's cool... Thanks for the hack, it's very flexible! :)

Kayn 07-13-2001 03:21 PM

Quote:

Originally posted by RobAC
Well....it's running on my home page as an SSI and it works. And, my home page is an HTML document. :)
Woa, I learned something new today about SSI's. :)

Line breaks and other stuff are on the way...


All times are GMT. The time now is 07:31 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
  • Page Generation 0.01361 seconds
  • Memory Usage 1,740KB
  • 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)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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