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)

Lethal 07-16-2002 04:05 AM

bump

Lethal 07-19-2002 05:03 PM

Would the output be able to be done through vb templates? I would then use your vb styles correct? Like instead of using the echo to do the output make it do an eval("\$variable = \"".gettemplate($templatename)."\";");

would that work?

Gutspiller 07-19-2002 06:33 PM

Quote:

Originally posted by Mithan
Just a FYI:

I have version 1.0 installed on my site and it works great.

http://www.ac2hq.com

We had to put in some extra code to suppress an error message, but other than that, its great.

PS: Whats so good about 1.5?

With a little tweaking 1.5 can do this -> www.3dNewz.com

Lethal 07-20-2002 02:41 AM

that is nice, are you willing to tell what you did to make it look like that?

Gutspiller 07-23-2002 07:05 PM

Sorry, it was a lot of tweaking here and there. Some of the stuff I can't even remember how to do it. Some of the things I have added though are in this thread around pages 15 - 20 I think that allows you to get multiple news headlines on the same page.

Lethal 08-03-2002 05:53 AM

Ok is there a reason my smilies don't show up? I have my smilies path set to the full path but nothing. Anyone else have probs with smilies not showing?

Gutspiller 08-03-2002 05:55 PM

I think we talked about this at around page 18 or so. Go 3 or 4 pages in both directions of page 18 and I think that's were we were talking about something like this.

Lethal 08-04-2002 03:29 AM

ok thank you

Lethal 08-05-2002 04:19 PM

Quote:

Originally posted by Redmak
There's an easy way to have vbcode and linebreaks and stuff interpreted by vbulletin so it shows up on your main news page.

Make sure the following line is added to the news script

PHP Code:

require("./global.php"); 

To have the message parsed by vbulletin add the following:

PHP Code:

  $bericht=bbcodeparse2($pagetext,"1","1","1","1"); 

$bericht is now the formatted message

The 1's stand for "dohtml,dobbimagecode,dosmilies,dobbcode"


Enjoy :)


Ok this is already in the hack, but my smilies still don't show up, the links are good just not the smilies. I have the script in the forums directory and I am php including it in a file that is outside of the forums directory. Any ideas why my smilies aren't showing up. It really isn't a big deal cause I could just go with out smilies. So if know one knows why that's fine.

Caliber 08-15-2002 10:48 AM

I love this script, but it is very hard on a large site's performance (40k+ visitors/day). We have dual servers running our vBulletin and MySQL set for max_connections of 1000, but it still caused our server to crash.

I would like to use cron to run it once a day and then SSI the results to the homepage. Any suggestions? Extra credit if anyone knows how to modify it to return the top most active threads from the previous day. That would make the most compelling content appear on the homepage I believe. Many thanks.

Lethal 08-30-2002 12:03 PM

anyone know who to have this script use vbulletins styles for colors and stuff like that. I have the script in my forums directory and it is included on a page outside of the forums directory. I try using stuff like {categoryfontcolor} and stuff like that but it either gives me a parse error or shows a wierd color or just doesn't show up. Any ideas?

EnriqueHavoc 09-12-2002 04:32 PM

im also wondering how to get avatars working for newsposts. im close but just cant seem to get it to work. I can get avatars showing up for whos logged in, but not for the damn news posts :P

anyone still supporting this hack? id hate to have to completely remove pluh and install a different one just for avatars

sauron2002 10-14-2002 08:00 PM

i was wondering if you have fixed it so when your not logged into the forums and the forums is "logged in only" style you dont see the login page interfere with the site and not the recent posts

Lethal 10-15-2002 03:02 AM

Is there going to be an updated version on this anytime soon?

Brew 11-07-2002 12:08 AM

Has anyone gotten this to work with PostNuke or PhPnuke?

I have applied every fix in this thread. I got it so I can go the pluhnews.php from the root and it displays fine.

But in PostNuke I have tried all the different block types there that would work and I either get blank pages or errors. I have included the pluhnews.php, I have used php type blocks and inserted all the code into that that is in pluhnews.php, I have used the php type blocks and used php includes.

Nothing has worked.

If this hack isn't the right one to work for getting news posted from vBulletin to a PostNuke main page can you tell me which hack it would take?

Thank you so much!

Brew

Crazy Pete 11-26-2002 07:11 PM

Ok this is irritating me. I had previously had another news script working for me on my old board (not vB), but this one just doesn't want to.

It works fine if you go to the script directly... http://www.expectedmiracles.com/forums/PluhNews.php

But if you go to the page which calls that script, you get a blank section where it's supposed to be... http://www.expectedmiracles.com/index2.php

My include looks like:
<?php include("/s/expectedmiracles.com/httpdocs/forums/PluhNews.php");?>

Which is exactly how I had my old one working, the only difference being the script name. Anyone have any ideas?


Edit -- Nevermind, I got it going. Well, apart from the smilies but I guess I can live without them. How easy would it be to limit the output to a certain amount of characters rather than displaying the whole post at once?

todd.o.callen 11-27-2002 08:39 PM

I have a headlines page that reads a moderated forum.

BIG PROBLEM: the headlines show, even if they have not been approved yet. The links to unapproved posts yield bad thread errors, so all is not lost, but if the unapproved thread says something like "You guys suck" , then some damage is already done. I use this on a corporate intranet homepage, and have been lucky thus far...

Zivilyn 12-03-2002 08:20 PM

Hmm, I loaded my php page with the includes etc, but for
<? include ("PluhNews.php"); ?> I get this:

Fatal error: Cannot redeclare stripslashesarray() (previously declared in C:\forums\upload\global.php:31) in C:\forums\upload\global.php on line 31

Aaron1 12-15-2002 05:53 PM

I installed the Pluhnews hack on my forum:
As you can see here it works fine:

http://www.housequake.com/forum/PluhNews.php

But what i want to do, just doesn't work for me somehow.
I can include <?php include ("http://www.housequake.com/forum/PluhNews.php"); ?>
in my index.php, that works for me aswell, but it parses the pluhnews in the beginning of my forum homepage, and that looks awfull.

I just like to add the pluhnews in a certain place in my forumhome template. Just like i can move the $pminfo or $loggedinusers in any place i want. Is this possible?

Or in other words, how do i incorperate the content generated by PluhNews.php, in my forumhome template?

Thanks for helping me out!

www.tfw2005.com 12-18-2002 04:17 AM

AVATAR

AVATAR

AVATAR

AVATAR

ICONS

ICONS

ICONS

ICONS

ICONS


I finally find the perfect news script, install it in 2 minutes, and spend hours on trying to get it to pull the damn avatar or icon.

PLEASE, SOMEONE WRITE THIS OUT for us, Ill pay you!

thanks :)

neocivitas 01-20-2003 03:06 PM

Quote:

Originally posted by TWTCommish
Code:

chdir("/usr/home/web/path/to/forums");

Thank you thank you thank you thank you!!!

I've been trying for hrs to get this script to work on my home page but just got a blank white page.
I found this was because my forums are on a subdomain not in a directory.

My host wanted to charge ?25 GBP per year to enable a redirect from 'mysite.com/forums' to 'forums.mysite.com' so SSI would work.
My other options were frames (which screw up the hit counter) or...
iframe Akk!


Anyway.
I tried this, it works, it's free, and I'm happy :D

ga.net 02-05-2003 10:24 AM

Question. Is there a way I could display only the first few lines of the post? Like this:
http://www.housequake.com/forum/PluhNews.php

Thanks!

Aaron1 02-05-2003 06:04 PM

Quote:

Originally posted by ga.net
Question. Is there a way I could display only the first few lines of the post? Like this:
http://www.housequake.com/forum/PluhNews.php

Thanks!


Yes you can, a part of my pluhnews.php looks like this:

-----------------------------------
if (!$sql_result2) {
echo "<p>Could not get record in second statement.";
}

while ($row2 = mysql_fetch_array($sql_result2)) {

if (strlen($row2[pagetext]) > $car) {
$pagetext = substr($row2["pagetext"],0,$car);
$pagetext .= "...";
}
else {
$pagetext = $row2[pagetext];
}




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

-----------------------------------


And my pluhconfig looks like this:
-----------------------------------
<?
//This is the Config file to get PluhNews running.
//**********************
//Set some Variables

//Retrieve news from the correct forum, which is the forumid
$newsforums = 12;

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

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

//Number of characters to display for each news item
$car = 400;

?>

-----------------------------------

Hope this will help ya!

ga.net 02-06-2003 11:23 AM

Did it! but how come there's no READ MORE link after the last character? http://www.greenarcher.net/forums/PluhNews.php

Thanks so much! :)

Btw. And is there away that it can display more than 1 news forums?

KuraFire 02-06-2003 12:23 PM

*shows off the hack that is in his signature*

(newsportal hack, that is :))

(this one: https://vborg.vbsupport.ru/showthrea...threadid=38334 )

ga.net 02-09-2003 01:46 AM

I think its too complicated. You see Ill be using frames in my main page so i think Pluh News is better.

Anyway just to repeat my question earlier, how come there's no READ MORE link after the last character?

And I notice If i set the character limit, unfinished sentences end with a "...." . Worse case, last words using VB code will display the unfinished code. Is there a way to limit it to the last paragraph or last sentence?

http://www.greenarcher.net/forums/PluhNews.php

Thanks dude! :)

ga.net 02-11-2003 10:57 AM

bump

ga.net 02-16-2003 09:31 PM

double bump

ProParadox 02-23-2003 01:52 AM

Anyone having trouble getting it to work with VB 2.3.0?

Seby 02-23-2003 04:07 PM

why would you use pluhnews when there is vBhome lite, it is so much faster and better ;)

Gutspiller 03-08-2003 09:15 PM

Quote:

Originally posted by Seby
why would you use pluhnews when there is vBhome lite, it is so much faster and better ;)
let's see vbhome do THIS

:banana:

Xelation 04-03-2003 10:50 PM

how can I include this into a vb page? im trying to do a php include but dont know how to.... anyone wanna help me?

Nebby 04-07-2003 12:06 AM

From what I've seen this is a top class hack, but i get this:

Fatal error: Call to undefined function: bbcodeparse2() in /home/nebby/public_html/vb/PluhNews.php on line 111


and line 111 is
Code:

$bericht=bbcodeparse2($pagetext,"1","1","1","1");

Nebby 04-07-2003 03:16 AM

double post.

for those that have been having problems, change your required shiznit to this

Code:

$vbulletin_root_path = 'http://www.THEFULLURLTOYOURSITE.com/vb';

include($vbulletin_root_path . '/global.php');
include($vbulletin_root_path . '/PluhConfig.php');
include($vbulletin_root_path . '/admin/config.php');

that's the full URL, worked for me (on other hacks.)

Nebby 04-09-2003 06:06 PM

Bump!

Argh. i urgently need this mod!

any help from anyone please!

Katman 04-10-2003 09:05 PM

Quote:

[i]04-06-03 at 08:00 PM Nebby said this in
and line 111 is
Code:

$bericht=bbcodeparse2($pagetext,"1","1","1","1");
[/B]
Can't really help, it works for me! No errors! Maybe, just by chance you had a brainfart and uploaded the file as ASCII? Or maybe you need to chmod it to at least 755? I FTP all my PHP files as binary and they work fine.

Example:
http://www.tlplanet.com/new/

What I would like to know is, is there anyway to truncate the number of characters to display? And is there anyway to display posts from more than one forum?

Nebby 04-11-2003 01:34 PM

Thank, i'll give it another try.

What version vb are you running?

and as for the cut of limit and multiple forums there's info deep inside this thread... somewhere.

Nebby 04-11-2003 01:42 PM

EDIT: Heh, i'm such a dumbass.

Got it working! cheers.

Jujimufu 05-14-2003 03:08 AM

I love this thing.. You rock *hugs guy that made this hacK*

I LOVE YOU HAHA!! THANKS SO MUCH MAN!! THANXXX!!

Nebby 05-18-2003 10:48 PM

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


All times are GMT. The time now is 12:52 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.01918 seconds
  • Memory Usage 1,832KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (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
  • (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