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)

Kayn 07-02-2001 10:00 PM

UPDATED! Woohoo!

I just fixed/added stuff from version 1.0!

Download the new version 1.5 if you have the old 1.0 - lots of better features.

From the readme.txt:

Quote:

This script isn't really a hack, just an external script that pulls information out of the VBulletin Database for news
or whatever reason you see fit. It's easy to install and configure, and has tons of the same features that many other
news scripts have, except you don't have to modify any Vbulletin source code (which I'm never comfortable doing
for some reason, but that's just me :).

I had a really rough time finding a good, EASY news script that did what this does. I searched and found some, but
it really came down to easy installation. I didn't want to modify MySql tables or mess with the advanced Vbulletin
source (well, to me anyway). So I wrote this script. Yer.

This script was intended for VBulletin 2.0 only (I don't know if it will work with previous releases) and PHP4.

Working Demos can be found in use at http://pluh.com/forums/PluhNews.php and for headlines,
http://pluh.com/forums/PluhHeadlines.php

After you install, if at all possible, I would appreciate some credit to my script. A link to http://pluh.com
on your page before or after your news would be great. Let me know when you have it installed too - I love
seeing my stuff working on other websites!
You can check out the raw demo here for PluhNews: http://pluh.com/forums/PluhNews.php

And Headlines! http://pluh.com/forums/PluhHeadlines.php


Let me know if you like it! (Thanks Dark Wizard and Bane)

*NOTE: I will not be able to provide support for this hack, as I am extremely busy. Sorry...*

99SIVTEC 07-03-2001 07:30 PM

Sweet script, this is what i've been looking for. I have one problem though. After configuring everything the links to view the news appear on my page but when you click on the links is is looking at the wrong path. It is using the default /forums path instead of the one I specified in the config file. you can see what I mean over at MY SITE

99SIVTEC 07-03-2001 07:32 PM

Ok i'm a moron, you can delete that last post if you want. It was a simple line I needed to edit in the html portion of the script. If your forums are in a directory other than /forums then you need to edit the text to the links at the bottom of the script in the html section. On a side note how would I go about changing the text color displayed so I can change the background color of my table?

Kayn 07-03-2001 08:31 PM

You can change that using plain HTML. Like , <font face=\"#000000\">blah blah</font> Just remember the slashes in front of the quotes so you don't get a parse error when the script executes.

...that's a good suggestion though, an option for font colors inside the setup. I'll take note of that for the next release, plus more options.

Looks like the script is working for you! That is very good. Yes. :)

(the error that you were talking about was fixed - stupid me)

TechTalk 07-04-2001 01:13 AM

This is an awesome script! Didnt want you to think noone was checking it out ;)

If you could make it do auto formatting on the posts (so i dont have to use html in my news posts) I would be a happy camper! I think you could sneak some code out of printthread.php and noone would notice ;)

As soon as this is added this feature will be added to iguanaland.com :) Hell, i will even give you credit!

Thanks again
~Chris

Kayn 07-04-2001 02:30 AM

Hey man, thanks! It was really simple to do too (the code, for any php guru, is a no-brainer).

I did some research on the auto formatting and came across some special functions that allow breaks without <br>'s and <p>'s. Just gotta test 'em.

I'm going to attempt to get the rest (like VBcode, etc) to work. This would make this script much better for people, like yourself, who don't want to hassle with HTML. :)

Thanks again!

RobAC 07-09-2001 09:25 PM

First off....this is a very cool hack and exactly what I was looking for. However, there are a couple problems:

1. The html in the new.php file needs to be checked/cleaned. It's not a big deal and it isn't that bad...but just being picky. :)

2. The time stamp seems to be screwed up. The times that the posts were actually made is incorrect and looks like they are 1-2 hours ahead of the actual posting time.

3. Suggestion....you may want to see how you can require the config.php file in the admin directory rather than including the database name, password, etc right in the php file. Just a suggestion.

Otherwise, good job!

Kayn 07-09-2001 10:01 PM

Thanks man for the suggestions.

1. The HTML was thrown together really quick, but that is a good idea for a future release.

2. I don't know why the time is messed up. A bug to tackle!

3. Another good idea. Will work on it. :)

RobAC 07-11-2001 01:04 AM

Just another suggestion. It would be great if this hack was able to parse vb code. :)

TechTalk 07-11-2001 01:35 AM

Be easier to just recreate printthread.php IMHO

Kayn 07-11-2001 01:12 PM

I went through printthread.php, and I was scratchin' my head. I'm gonna try some stuff with the code. I got the results to recognize line breaks, which was actually easy. :)

But once I get this working with VBcode and all that stuff, I'll be sure to let you know.

Thanks!

White Knight 07-11-2001 05:37 PM

Nice job on the addon i would say.. I am using it at my site right now for the front page www.sportbikes.net

I did notice about the line breaks it would be nice if it can look just like what is posted. Because If I do add the line breaks then the post looks wrong. Just something I noticed.

Also.. This is kind of a permission thing but I figured I would ask here. I want it so only admin and moderators can post in the forum but everyone can reply. Is there a place I need to go to set this permission up?

Thanks again.. keep up on the updates.. i love it

Goodbye newspro.. hello Pluhnews

eva2000 07-11-2001 05:50 PM

this looks great just needs parsing of vB code & smilies and sent to friend link and you're set :D

jarvis 07-11-2001 06:59 PM

White knight...

I like how you have the

"0 Comment(s) Last comment was by Fred"

after your news posts. Did you use this hack to do that, or is there some other line of code that your are using? I would like to be able to do this at my site www.mhogaming.com

Thanks for the help!! :)

Kayn 07-12-2001 12:39 AM

Working on those new features, and yes, the script includes the (0 Comments, last comment was by So-and-so).

This might take a while, so bear with me... :)

Dark_Wizard 07-12-2001 12:47 AM

I have fixed the time so it displays properly....Kayn >> I PM'd you can you get back to me so I can give you the changes?

SuitCase 07-12-2001 08:48 AM

Wow, this hack looks excellent! Great work, Kayn.

One question, though... Can I make multiple news forums and have several news things used on different pages? If not, would it be too hard to modify it and make that work? Thanks. :)

White Knight 07-12-2001 12:58 PM

Hey Kayn I found something I dont know if someone pointed out.

Today I tried to add a new post which worked fine. The problem is the vb URL tag does not work correctly. The code just shows and does not make the url. I went back into the post and used html code but I figured this would be something to look at.

Just trying to give a helping hand. This script is very nice for me not having to give away passwords for newspro..

White Knight 07-12-2001 01:00 PM

Quote:

Originally posted by jarvis
White knight...

I like how you have the

"0 Comment(s) Last comment was by Fred"

after your news posts. Did you use this hack to do that, or is there some other line of code that your are using? I would like to be able to do this at my site www.mhogaming.com

Thanks for the help!! :)

Accually the tag was in the code itself I just moved it to where i needed it. The biggest thing I had to remember is to put a \ in front of all the " color codes. Otherwise I would get a damn parse error..

Yes I am still new to php.. but lovin every minute of it

Kayn 07-12-2001 03:19 PM

Dark_Wizard, I PMed ya back. :)

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.

The VBcode is still not working as of yet, White Knight, but I am taking that on. It should be included in the next release.

Keep the suggestions coming, I would love for this to have tons of features.

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!

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...

Dark_Wizard 07-13-2001 03:24 PM

Kayn >>> Did you implement the time fix I sent you? Let me know what else I can help with....keep up the great work!

Kayn 07-13-2001 03:31 PM

I wanted to let you all know that I'm going to try and have line breaks and VBcode working on Sunday, but that depends on how things go this weekend for me (I have a show on Saturday, and those are exhausting for me). ;)

Dark Wizard added some stuff and sent it over to me (which is really handy), so I'll be implemeting those additions as well. I'll keep you updated.

rmusic 07-13-2001 03:33 PM

Quote:

Originally posted by Kayn
I wanted to let you all know that I'm going to try and have line breaks and VBcode working on Sunday, but that depends on how things go this weekend for me (I have a show on Saturday, and those are exhausting for me). ;)

Dark Wizard added some stuff and sent it over to me (which is really handy), so I'll be implemeting those additions as well. I'll keep you updated.


good line breaks

im getting tired of <br>'s

jarvis 07-13-2001 03:46 PM

Not to stray off-topic here, but...

RobAC,

That home page for you is HTML?!? It looks like a php portal of sorts.

White Knight 07-13-2001 04:49 PM

Just some help from me if you want to do the ssi command. This is what I have on my website www.sportbikes.net

Quote:

<!--#include file="forums/news.php"-->
parses in nicely

MarkB 07-14-2001 01:00 AM

Great hack, exactly what I was after, and now I even have it working! :D

http://www.metaltours.com/

RobAC 07-14-2001 02:43 AM

Quote:

Originally posted by jarvis
Not to stray off-topic here, but...

RobAC,

That home page for you is HTML?!? It looks like a php portal of sorts.

It's pure html. I shaped it to look like php portal in appearance, but everything that's running on it that's forum related is through individual hacks.

jarvis 07-15-2001 07:23 AM

Quote:

It's pure html
Thanks for the reply, Rob.

I'm trying to do something similar as the:

"0 Comment(s) Last comment was by Fred"

on my page, but I really do not want to implement all of the features of PluhNews. I manually type in the articles and links and photos, but I would love to replace my "Discuss this post" with the above real-time counter.

The only way I see I'd be able to do it with PluhNews is to call an unique file for each article and manually specify the threadid's in each file, i.e. news1.php, news2.php, etc.

Any ideas, or would I have to go all or none in order to do this. My site is www.mhogaming.com so that you may see exactly what I am talking about.

Thanks!!

sysmom 07-15-2001 12:14 PM

I installed this yesterday without any troubles and am ever so pleased with it.

Heck, even my boss is pleased with it!

Thank you!

Redmak 07-15-2001 02:33 PM

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 :)


All times are GMT. The time now is 04:48 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.01539 seconds
  • Memory Usage 1,836KB
  • 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
  • (3)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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