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)

Clegg 10-12-2003 02:47 PM

Heres the Deal, I modified Pluh enough to work under VB3 pretty much fine. Heres the MAIN peice of code that needs to be changed:
(I emailed the writer of Pluh but his response a few months ago let me to believe that vb3 versions of the mod were far off. so reading through the vb3 functions php files I was able to ID what code needed to be altered in the Pluh script to get it to work right:

Code:

Find:
$bericht=parse_bbcode2($pagetext,"1","1","1","1");
Replace With:
$bericht=parse_bbcode2($pagetext,"","","1","1","1");

the parse_bbcode2 function has some different switches on it now that needed an additional bit and some different values. Other than that everything else was childs play to fix... so easy I cant even remember what other code changes I made.

An example is here http://www.midwestlan.com All the fields on the front page were based off the Pluh scripts but then highly modified. The Upcomign events is a script I wrote from scratch.

Tannerman 10-14-2003 09:06 PM

Like ga.net was having problems back on 8/1, today I started getting this error:
Quote:

Warning: main(): stream does not support seeking in /home/tannerwo/public_html/steveandamysly/index.php on line 94
Did anyone come up with a solution to fix this problem?

Unfortunately, my webhost (Ventures Online) updated Apache and PHP on my server today (as a part of an overall MySQL upgrade) and this messed some stuff up.

You can view my homepage here:
http://steveandamysly.tannerworld.com/

The modification is still pulling the last 5 posts, however an error message appears at the top of these posts.

I'm running vBulletin 2.3.2 on my forums (which are located at http://forums.tannerworld.com/). Not being a huge techie, what should I do to fix this problem? The update to Apache and PHP caused this problem, so maybe some calls need to be fixed relating to that.

Any help would be greatly appreciated.

Thanks,
Steve

Tannerman 10-15-2003 07:22 PM

I've got an update on this problem. My webhost was able to track down the problem, which appears to be a bug in the latest version of PHP which has been documented at:

http://bugs.php.net/bug.php?id=24053

The include for PluhNews is actually working, however the error message is displayed. A quick fix is to place an @ symbol in front of the include to suppress the error message.

The bottom line is that it's a bug in PHP which will most likely be addressed in a future update, however there appears to be several temporary work arounds for this issue :)

mrplow 11-18-2003 05:12 PM

This 'hack' is absolutely awesome dude, thanks hugely.
In use at my website, working beautifully. :D

ScubaClicks 12-03-2003 06:53 PM

Will this work with allheadlinenews.com?

ScruffyDeluxe 12-07-2003 04:18 PM

This rocks my box. I tried it on my Main gaming news site, worked a treat. I hacked it slightly for vB3 Gamma, worked just as well.

http://www.hoteldope.com/forums/PluhNews.php - running on my Current vB3 beta 4 testboards, also working spiffy :B

I'll be modifying this to work using only CSS1 for layout, when I learn the new template system. Finally I can get rid of vBPortal and build a custom frontpage for vB3.

*makes devil sign with hands and bangs head* YOU RULE!

Memnoch-NMX- 12-12-2003 07:05 PM

Quote:

Originally Posted by ScruffyDeluxe
I hacked it slightly for vB3 Gamma, worked just as well.

I'm admittedly no PHP or SQL expert...not even close. But this script was extremely easy to get working with vB3 Gamma. I've got it running perfectly on my development site. My main site is still running vB 2.3.3, but with this script working I'll be moving to vB3 Gamma pretty damn soon.

And the thing I like about this "hack" the most? It requires no custom templates or modifying of existing templates at all!!

Awesome job...thanks for the script!! ;)

Beowolf 12-27-2003 01:19 PM

Hi, I have been using PluhNews and now I modified it just a very little to work as a Game Reviews script. The problem is, that even with the threadid variable successfully passing, it still displays all the threads in the forum. (I have page1 which shows all reviews, click on one and it brings you to page two, where the correct threadid variable has been passed, but it still outputs all the threads in forum 17)

This is the line:

PHP Code:

$sql2 "SELECT postid, threadid, username, userid, title, dateline, pagetext, iconid FROM post WHERE threadid = '{$_GET['threadid']}' LIMIT 1"

Anyone know why it seems to ignore the WHERE and LIMIT statements?

[FG]Omega 01-01-2004 01:04 AM

I read the previous pages but I still get this error when I try to include PluhNews.php:

Fatal error: Cannot redeclare stripslashesarray() (previously declared in /home/www/web/html/forum/global.php:31) in /home/www/web/html/forum/global.php on line 31

I did this:

I added in the PluhNews.php File this:
chdir("/home/www/web/html/forum/");

and at the end of the file:
chdir("/home/www/web/html/");

Anyone can help?

btw: I have vb 2.3.3

*edit*: made some changes in PluhNews...works now

Tannerman 01-15-2004 08:07 PM

I've been running this without a problem on my vB2 board. Before upgrading to vB3, I was wondering if someone could list any modifications they needed to make to get it working.


All times are GMT. The time now is 09:38 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.01964 seconds
  • Memory Usage 1,747KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (2)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