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)

Steve Machol 07-18-2001 12:52 AM

[QUOTE]Originally posted by Infinite
This is my config file...

$forumspath = "/vb";

?>

Infinite 07-18-2001 12:56 AM

Well, I tried two different paths. One of which was /public_html/vb and just /vb. Neither worked.

I'd give you a link, but my server just went down. VenturesOnline is changing hardware apparently.

But the link to the vb is www.ripthemic.net/vb

Pluh News is www.ripthemic.net/vb/pluhnews.php
Headlies is www.ripthemic.net/vb/pluhheadlines.php

Think that should do it.

I'll try and get the full path, smachol, when the board comes back up. I figured that'd be my last step to get this working.

Richard

Infinite 07-18-2001 02:11 AM

Works now, there was a capitalization error. In WSFTP I like to have all remote extensions forced as lower case...I was trying it as lower case when it had to be uppercase.

Richard

Kayn 07-18-2001 02:31 AM

Funny how picky php is...

I learnt that the hard way. :)

Redmak 07-18-2001 04:29 AM

You don't need to add the require admin/config bit since this is already done by global.php

Also global.php connects to the mysql database so your connection isn't really necessary. Just use $DB_site instead of $db

Great little news add-on you got here :)


Thnx for the credit Bane :)

RobAC 07-18-2001 04:34 AM

I agree....for some reason, it doesn't look to good in Netscat though. If you have more than 5 news items, for some reason, the font goes haywire.

SystemLogic 07-18-2001 04:45 AM

Some reason it's not processing the required's in mine

Fatal error: Failed opening required './admin/config.php' (include_path='') in /path/to/boards/global.php on line 66

any ideas?

sysmom 07-18-2001 04:56 AM

[QUOTE]If you have more than 5 news items, for some reason, the font goes haywire.

SystemLogic 07-18-2001 05:02 AM

im positive that's not an issue

Kayn 07-18-2001 02:45 PM

I will check for bugs with the HTML. The issue is that the loop is spitting out the HTML in a strange manner. I think...

I'll work on updating that unnecessary require (thanks!)

TWTCommish 07-18-2001 06:13 PM

Sorry, I posted this elsewhere, but think it might be better here:
--------------------------
Hmmm, something's wrong. I started getting errors, so I tried to use chdir() to fix them. Here's what I'm using now. I have these two lines:

Code:

chdir("/usr/home/web/path/to/forums");
require("/usr/home/web/path/to/forums/global.php");

And then, I do this:

Code:

$comments = bbcodeparse2($comments,"1","1","1","1");
I get this error:

Fatal error: Call to a member function on a non-object in /usr/home/web/path/to/forums/admin/functions.php on line 75

Any idea what's wrong? Thanks for your help either way! :)

webhost 07-18-2001 08:49 PM

ok guys couple of questions I have hack installed and it is running alright. Questions?

1)On the news page at the bottom when you select view all
posts should it pull up the entire forumid that you have set or
just new post in that forumid? Mind pulls up the entire forumid.

2) Is there a way to put a link on the headlines page that will
bring up the news page.

3) With this version are we able to pull from more than one
forum if so how?
4) Would there be away to add current active users in the forum
on the headlines page?

Thanks For the hack

Kayn 07-18-2001 09:20 PM

Quote:

Originally posted by webhost
ok guys couple of questions I have hack installed and it is running alright. Questions?

1)On the news page at the bottom when you select view all
posts should it pull up the entire forumid that you have set or
just new post in that forumid? Mind pulls up the entire forumid.

2) Is there a way to put a link on the headlines page that will
bring up the news page.

3) With this version are we able to pull from more than one
forum if so how?
4) Would there be away to add current active users in the forum
on the headlines page?

Thanks For the hack

1) I set it up to pull up the entire forumid. 'View all News' was meant to just be a link to the news forum that was specified. :)

2) Sure is. You have to go in and add the HTML. If you need specifics on how to do this just let me know.

3) Multiple news forums is currently in the works. It's a good idea to have...

4) That is an entirely different hack that I use on my page (http://pluh.com - under latest reviews). I forget exactly where to get it, but this hack is available somewhere in these forums. Try searching for it. If you can't find it, email me and I'll send you the code. :)

Kayn 07-18-2001 09:21 PM

Quote:

Originally posted by TWTCommish
Sorry, I posted this elsewhere, but think it might be better here:
--------------------------
Hmmm, something's wrong. I started getting errors, so I tried to use chdir() to fix them. Here's what I'm using now. I have these two lines:

Code:

chdir("/usr/home/web/path/to/forums");
require("/usr/home/web/path/to/forums/global.php");

And then, I do this:

Code:

$comments = bbcodeparse2($comments,"1","1","1","1");
I get this error:

Fatal error: Call to a member function on a non-object in /usr/home/web/path/to/forums/admin/functions.php on line 75

Any idea what's wrong? Thanks for your help either way! :)

Hmm...I'm stumped...

It should work. Anyone else here have suggestions?

webhost 07-18-2001 09:31 PM

PHP Code:

chdir("/home/username/public_html/forums/");
require(
"./global.php"); 


Guessing you might try something like this and replace username with yours for your ftp account.

Maybe?

Dark_Wizard 07-18-2001 10:13 PM

Quote:

With this version are we able to pull from more than one
forum if so how?
This would work well with categories in that each forum would be a category....I think I have some code from awhile back when I started this and never completed it...hmmm (as he looks through his files)...I'll get back to you on this ;)

webhost 07-18-2001 10:17 PM

Thanks, Wanting to pull from about 7 or 8 forumid's.

Joey

Forgot a question?

Is it possible to somehow incorporate the include script in the install.txt into a html document. Tried putting it in there but it didn't wotk very good. Would like to pull the new files from one website to another site if possible?

webhost 07-19-2001 02:26 AM

Another recommendation.

Say you have your news script setup to pull 10 messages or 40 . Any way say when someone views this page is there away to add views back to total view counts for each thread on the list back in the forum columns . I need this if possible to keep up with views.
???

Kayn 07-19-2001 02:30 PM

yes yes, all of that is possible. I can put this on a 'request' list if you like for the next release!

webhost 07-19-2001 02:41 PM

yes yes can not wait.

Thank You

webhost 07-20-2001 10:43 AM

is it possible to setup the PluhHeadlines on a different domain rather than your own where some other site could pull the headlines from you?

Kayn 07-20-2001 02:18 PM

I think you can. Try this:

PHP Code:

<? include("http://thenameofyourdomain.com/nameofforums/PluhHeadlines.php"); ?>

:)

webhost 07-20-2001 03:05 PM

try mind if you don't mind and see if it works

http://www.realwebhost.net/forums

or you might try http://forums.realwebhost.net

jarvis 07-22-2001 02:00 AM

Okay, I've really been wanting to get something like this. I'm not so interested in the thread creation part of this hack, but I am really wanting to link to my threads from my home page and be able to display information like the following:

"e.g. www.mhogaming.com News article here"

20 comment(s) Last post by Jarvis

I would think that there is a line of code from this hack that I should be able to use and just manually put in the forumid and thread strings, but my question is, where would I have my MySQL user information to pull this data. My main page is HTML-based, but PHP-parsed. I'm a bit nervous about embedding my user information in my homepage. Can this or any other hack do what I am asking?

Newbie questions I'm sure, but any help is greatly appreciated!!!

Thanks!!

webhost 07-22-2001 02:03 AM

This works had someone try it today with mind.
PHP Code:

<? include("http://thenameofyourdomain.com/nameofforums/PluhHeadlines.php"); ?>


jarvis 07-22-2001 02:30 AM

Thanks Webhost,

That solution would give me an output to my mainpage of all the articles in one particular forum, correct?

What I am wanting to do is have something that points to one specific thread in any forum. I am okay with having to manually enter the forum and threadids in the string of code which could do this. All of the news items on my site are manually entered by myself or one other, and what I was hoping was something that points to that thread from my home page (i.e. the "Discuss this Post" that I am already using) but also give the last poster and # of posts in that thread.

One way I was thinking of tackling this was that I could have an individual phunews.php (i.e. news1.php, news2.php, etc) for EACh article I post, but it seems that there would be a line of code that I could use for every post, and just manually type in the forumid and threadid specific to that news item that I have already created.

Hopefully I'm getting my needs across, but I feel like I'm talking in one huge circle. :)

Thanks!

webhost 07-22-2001 02:54 AM

Yea I asked earlier in this post about be able to pull from more than one forum at time. They stated they were working on that. I think if that could be done then what you want should be achiveable. Look back in the post and ask one of the guys that put this hack together. They might be able to help. Got my hands full now with a calendar hack I am working on.

Joey

dost 07-22-2001 07:37 AM

There is 9 hours time difference between me and where my website is hosted. vBulletin has a setting like that so that the time is displayed correctly. Could you please help to solve the time difference issue in PluhNews between the server and client. I hope I could explain my problem.

Thanks

Kengan 07-23-2001 06:10 AM

Quote:

Originally posted by Kayn
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:



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)

Wonderful script !! keep it up for your good work ! Thanks ! ;)

SystemLogic 07-23-2001 12:45 PM

I've converted our staff new at http://www.systemlogic.net to PluhNews, using PluhHeadlines.

I would like to do the same with our tech news, but like I said before, how can you create a source. I saw another site with it....

White Knight 07-23-2001 01:12 PM

By popular request I am going to post the code I used for my news posting. I have had about 20 emails asking me for it so I figure I will archive it here. I am no way a php coder. This was just placing "cookies?" where i needed them.

Demo at http://www.sportbikes.net

Quote:

// **********************

//Edit the HTML here (keep in mind that any double quote requires a backslash in front of it)

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



<table bgcolor=#003366 border=0 cellpadding=3 cellspacing=1 width=\"100%\">

<tbody> <tr bgcolor=\"#000066\">

<td width=\"100%\"><font color=#ffffff face=arial,tahoma,verdana size=2>

<a href=\"$forumspath/showthread.php?s=&threadid=$threadid\"><b>$title</b></a> - <a href=\"$forumspath/showthread.php?s=&threadid=$threadid\">$replycount Comments</a><br>

Posted By <a href=\"$forumspath/member.php?s=&action=getinfo&userid=$postuserid\"> $postusername</a> at $dateposted</b>

</center></font></td></tr><tr bgcolor=\"#000000\"> <td width=\"100%\"><font color=#ffffff face=arial,tahoma,verdana size=2>



</a>$bericht<center><br><a href=\"$forumspath/showthread.php?s=&threadid=$threadid\">$replycount Comment(s) Last comment was by <b>$lastposter</b></center></font></font></td></tr></tbody></table>

";



}

}

Kengan 07-24-2001 08:39 AM

I have just set it up ! and it show nothing. I think may be the <?


//This is the Config file to get PluhNews running.
//**********************
//Set some Variables

//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 = "";

?>


What should I put on $forumspath= ? My fourm files is under the root domain ( www.adb.com ) all index.php is under www.abc.com not www.abc.com/forum

is there any idea ?

Thanks !:confused:

Pie'oh'pah 07-24-2001 09:54 AM

nice :)

Kayn 07-24-2001 02:50 PM

Kengan, Try putting a slash "/" for that. It should work.

webhost 07-26-2001 10:23 PM

Kayn

Any word on the features to be able to pull from more than one forumid?

Great hack

Dark_Wizard 07-26-2001 10:25 PM

Hmmm...are you working on this Kayn? If not I can easily do it for you....;)

Kengan 07-27-2001 02:19 AM

Can you hack like this too ?

http://woody.molofox.net/inline6/

I like part of the feature here !!

sysmom 07-27-2001 05:27 AM

Kengen:

Yes, PluhNews could be configured to look like that, or almost anything else.

You'll just have to adjust the HTML output lines in it.

I modified it a lot before I installed it, and the boss was very pleased when he looked at it. He said adopt it. :)

deb

Kengan 07-27-2001 06:12 AM

Quote:

Originally posted by SysMom
Kengen:

Yes, PluhNews could be configured to look like that, or almost anything else.

You'll just have to adjust the HTML output lines in it.

I modified it a lot before I installed it, and the boss was very pleased when he looked at it. He said adopt it. :)

deb


I see ! that is neat !!

Kayn 07-27-2001 04:40 PM

Hey, if all of you using PluhNews could send me a link, I would love to see that!

Please post it here: http://pluh.com/forums/showthread.php?s=&postid=8830

Thanks. ;)


All times are GMT. The time now is 12:11 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.01740 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
  • (4)bbcode_code_printable
  • (3)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