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)

Nebby 05-18-2003 10:49 PM

Is there any way I can add an avatar to show with this?

Nebby 05-18-2003 10:49 PM

Is there any way I can add an avatar to show with this?

Nebby 05-18-2003 10:49 PM

Is there any way I can add an avatar to show with this?

Nebby 05-18-2003 10:49 PM

Is there any way I can add an avatar to show with this?

Nebby 05-18-2003 10:50 PM

Is there any way I can add an avatar to show with this?

Nebby 05-18-2003 10:51 PM

Is there any way I can add an avatar to show with this?

Nebby 05-18-2003 10:51 PM

Is there any way I can add an avatar to show with this?

Nebby 05-27-2003 12:44 PM

++++, what the hell happened there?

Kayn 06-04-2003 09:20 PM

Hey all...

I know I suck at supporting this hack (hopefully that will change :) ), however I do plan on releasing a new version for vbulletin 3.0 when the time comes.

I'll be sure to post it once it's working and stuff. I'll be sure that it'll end up a lot easier to configure and maintain than this one (I've gotten a lot better at PHP since I created this hack).

Thanks ya'll! :D

Moto 06-11-2003 08:11 AM

This works great! I had to mod the hack a bit because I wanted 30 news post to show on my front news page and only 8 news headline to show on my right side nav bar.

Check it out at work: http://thetechzone.com/

Thanks for the great hack!

Splitfyre 06-12-2003 08:46 PM

This hack has been something we've been looking to do for quite sometime. Great work to the author(s) of this hack.

We're just making slight tweaks to it here at: http://www.futurelooks.com

Splitfyre 06-13-2003 03:51 AM

How do I get the print/email function in the news threads like it is on TheTechZone.com ?

Splitfyre 06-13-2003 05:30 AM

Ignore my last post. Figured it out :)

Moto 06-13-2003 06:41 AM

With a little help from Moto, you can figure anything out. :D

Splitfyre 06-13-2003 06:46 AM

Yup. Thanks Moto :)

Zachariah 06-17-2003 11:50 PM

Any help would be cool.

I have this line in the body of a page: (content of the news to show up in a table)
The news shows up ok in the page but I get an error.

Error:

Warning: Cannot modify header information - headers already sent by (output started at c:\www\test\cs\index.php:5) in c:\www\test\forums\admin\functions.php on line 1649

Root of site /www/test

$siteroot/cs/Index.php: (page has its own <head> </head>)

<div align="left">
<?php include("/www/test/cs/news.php"); ?>
</div>

$siteroot/cs/News.php:
<?php
chdir("/www/test/forums");
include("/www/test/forums/PluhNews.php");
?>

only thing in the PluhHeader.txt :

<!-- Pluh Header -->
<font face="Verdana" size="2"><b>Today's News</b><p>

DarkSavior 06-25-2003 09:00 PM

Sorry for being a newbie but how do I make the headlines show up in forum main page, my header for forums is quite big and I have a table there where I would want the headlines to show up...

I'm pretty much an idiot when it comes to php anyways. :/

santino 06-26-2003 03:05 PM

Egad - I changed servers and am getting a line exactly similar to yours:

Warning: Cannot modify header information - headers already sent by (output started at /home/squareamp/public_html/index.php:6) in /home/squareamp/public_html/forum/admin/functions.php on line 1690


I have the output going to /home/squareamp/public_html/forum/PluhNews.php and when I load that by itself its just fine - it is only the file that has the include line in it that is producing that output.

-joshua



Quote:

06-17-03 at 05:50 PM HarryButt said this in Post #496
Any help would be cool.

I have this line in the body of a page: (content of the news to show up in a table)
The news shows up ok in the page but I get an error.

Error:

Warning: Cannot modify header information - headers already sent by (output started at c:\www\test\cs\index.php:5) in c:\www\test\forums\admin\functions.php on line 1649



Root of site /www/test


$siteroot/cs/Index.php: (page has its own <head> </head>)

<div align="left">
<?php include("/www/test/cs/news.php"); ?>
</div>


$siteroot/cs/News.php:
<?php
chdir("/www/test/forums");
include("/www/test/forums/PluhNews.php");
?>

only thing in the PluhHeader.txt :

<!-- Pluh Header -->
<font face="Verdana" size="2"><b>Today's News</b><p>


santino 06-30-2003 10:26 PM

Re-uploading functions.php zaps this problem, fyi.

upnorth 07-10-2003 07:29 PM

is there any way to set the number of characters that are displayed followed by "..."?

Gutspiller 07-11-2003 11:09 PM

Quote:

Yesterday at 02:29 PM upnorth said this in Post #500
is there any way to set the number of characters that are displayed followed by "..."?

yeah it's in the config file. Just look at the config file and it's all in there.

upnorth 07-12-2003 12:22 AM

These are the only items in the config file. I thought that $newsforums identified which forum to pull from, $newsitems identified how many threads to show at one time, and then $forumspath. Am I mistaken re $newsitems? IS this for the number of characters to display for each thread or am I missing something?

Code from config file:
========================
//Retrieve news from the correct forum, which is the forumid
$newsforums = 1;

//Number of news items to show at once
$newsitems = 10;

//Path to your forums directory (leave out trailing slash)
$forumspath = "/forums";
==========================

Gutspiller 07-12-2003 09:56 AM

I must be thinking abut the Latest XX hack then. I use both quite a bit on my site: http://www.3dnewz.com

upnorth 07-17-2003 07:36 PM

anyone know what would need to be changed to get an attached image file to be displayed with this hack?

D2Expansion 07-21-2003 07:12 AM

awesome script
got it in use and integrated into my site at
www.d2expansion.com

but i have one thing i want to do, and it doesnt really have anthing todo with the script but rather with php

i split the $dateposted variable into 2 variables
PHP Code:

//gotta convert that damn unix time crap
$dateposted date("D, M j",$dateline);
$timeposted date("g:i A",$dateline);
//end the goodies 

wich displays it as:
$dateposted = Mon, Jul 21
$timeposted = 4:45 AM

i want $dateposted to display as Monday, July 21

is this possible?

thanks
Aku12

ga.net 08-01-2003 11:32 PM

Im getting this error:

Warning: main(): stream does not support seeking in /home/green/public_html/index_uaap.php on line 313


FYI, i inserted this tag in my html file and saved it as php

<? include ("http://www.greenarcher.net/forums/campusbuzz.php"); ?>

Hows this?

Thanks

ga.net 08-04-2003 07:47 AM

bump

ProParadox 08-18-2003 04:13 AM

I added a simple bit of code to make it not say last comment was posted by $username when there were no comments. Here it is:
";
if ($replycount[replycount]==0]){
echo "<a href=\"$forumspath/showthread.php?s=&threadid=$threadid\"><b>$replyco unt</b> $commenttext</a>";
}else{
echo "<a href=\"$forumspath/showthread.php?s=&threadid=$threadid\"><b>$replyco unt</b> $commenttext</a> Last comment was by <b>$lastposter</b>";
}
echo"

SweetiePie* 09-08-2003 02:18 PM

Hoping someone can help.

On my site, we are trying to PREVENT certain sections from being viewed in the Actice Topics list (www.clanbrats.com).

Any offers of suggestion?

3DSJFH 09-09-2003 05:15 AM

Any clues whether this can work with vB 3 betas at its current stage?

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 02:11 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.01743 seconds
  • Memory Usage 1,831KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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