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)
-   -   Simple newsportal / thread overview to add to your board... (https://vborg.vbsupport.ru/showthread.php?t=38334)

Darren Lewis 05-13-2002 10:15 AM

Great work KuraFire :)

I like to be able to pull info from my vB forum database onto my webpages, but I don't want to use a portal system. I write the website in HTML, and use PHP scripts for certain areas by having "include" statements in those HTML pages (named with .php extensions rather than .html). The portals I've looked at require you to write your webpages via vB templates, which I don't want to do.

I've got your hack working on a non-vB webpage. Had to alter the templates to suit my needs (I use Tubedog's hack for the latest threads), and had to tinker a small amount with the newsportal.php script to make it work OK outside of the vB forums directory. No modifications to any of vB's own php file needed :)

I'm trying to teach myself php, and a lot of what I learn is by looking at how other people have done things, and reading these forums a lot.

If anyone's interested, and as long as KuraFire doesn't mind, I'll post the "modifications" to get it working on a non-vB page.

I've had another idea of using your script to preview the latest book review on the website homepage too. The reviews are in their own forum, so could be pulled as for a news item.

The only thing that concerns me is the "bug" that you mention. I haven't noticed it yet.

Thanks.

Darren.

Darren Lewis 05-24-2002 12:12 PM

Quote:

Originally posted by KuraFire
.... and I don't know how to fix it, either :(
Kurafire, I've sent you a PM about this. Let me know what you think :)

JTMON 05-24-2002 02:52 PM

Quote:

Originally posted by Darren Lewis
Great work KuraFire :)

I like to be able to pull info from my vB forum database onto my webpages, but I don't want to use a portal system. I write the website in HTML, and use PHP scripts for certain areas by having "include" statements in those HTML pages (named with .php extensions rather than .html). The portals I've looked at require you to write your webpages via vB templates, which I don't want to do.

I've got your hack working on a non-vB webpage. Had to alter the templates to suit my needs (I use Tubedog's hack for the latest threads), and had to tinker a small amount with the newsportal.php script to make it work OK outside of the vB forums directory. No modifications to any of vB's own php file needed :)

I'm trying to teach myself php, and a lot of what I learn is by looking at how other people have done things, and reading these forums a lot.

If anyone's interested, and as long as KuraFire doesn't mind, I'll post the "modifications" to get it working on a non-vB page.

I've had another idea of using your script to preview the latest book review on the website homepage too. The reviews are in their own forum, so could be pulled as for a news item.

The only thing that concerns me is the "bug" that you mention. I haven't noticed it yet.

Thanks.

Darren.

I understand that vbPortal is overkill for some people but you can easily write pages in html, it's built right into vbPortal.

At any rate, nice hack

KuraFire 05-24-2002 05:00 PM

Okay, I have the bug fixed, people! :)

I will edit the first post later tonight or tomorrow, I don't have time right now but I can say this:

it requires some database work;
more importantly: if you don't want to wait X newsthreads before it'll work entirely, you will have to do some search-find-and-query work on the newsthreads you already have. But, I can safely say that once done, not a single random post will ever appear, anymore. Ever! :D

AndyTSJ 05-24-2002 11:11 PM

Sweet :)

KuraFire 05-26-2002 07:32 AM

It's fixed! Check the first post:

https://vborg.vbsupport.ru/showthrea...547#post248547

to see how to patch your board to remove the random bug! :):up:

Floris 05-26-2002 08:47 AM

The first version didn't require any MySQL modification right?
So I can just upload your new file and re-add the template. Then run the query?

KuraFire 05-26-2002 10:36 AM

Upload new file;
Template: wha? there's no template adjusting with the bug-fix...

hack newthread.php;
hack newreply.php;
upload both files
alter your database to set the existing threads' "isfirst" column to 'Y';

done.

Travis641 06-08-2002 02:59 AM

I got it working outside the vb directory, that was easy. But how would I call it to my index.php page?

If you could include that feature it would be great!

Travis641 06-08-2002 03:06 AM

Nevermind I was able to do it myself! :D


All times are GMT. The time now is 08:07 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.01091 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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