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-27-2001 04:45 PM

Quote:

Originally posted by webhost
Kayn

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

Great hack

I've been busy pretty much 24/7 and haven't been able to look at it lately. But it's on the list!

badmeetsevil- 07-27-2001 11:18 PM

Kayn.. I can't seem to find where it says "Todays News" in the HTML code. Where is it? I'd like to remove it with an image.

Thanks.

Kengan 07-28-2001 12:07 AM

Quote:

Originally posted by Kayn
New Version is out. Go to the first page to get it!

Thanks for all your help ya'll! :) :)

Will you tell me where is new version ?

webhost 07-28-2001 12:07 AM

badmeetsevil-

Look in PluhHeader.txt file;)

badmeetsevil- 07-28-2001 12:19 AM

Yeah, I figured it out right before I came back here to reply. :) It was hidding in the PHP. The include that is.

IanMFT 08-05-2001 01:29 PM

Yeah, well, i gotta bump this thread up because i need some help...My images (smilies are not showing and for the life of me, i can figure out how to fix this. Heres my PluhConfig.php file:
PHP Code:

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

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

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

//Path to your forums directory (leave out trailing slash)
$forumspath = "http://forums.mainframetech.net";

?>

As you can see, my forums are at http://forums.mainframetech.net but the images come up as if they are in the images directory on the main site (www.mainframetech.net) instead of the forum site (forums.mainframetech.net). Anyone have any ideas on whats wrong here?

ruph 08-11-2001 09:54 AM

this is what ive been looking! does the script support vB 2.0.3?? the news appears but when i click on the links like Comments,Search or View i get a 404 error?? help? im just testing it on a test board till i get that fixed.. heres the link http://www.digital-host.net/~ruph/forum/PluhNews.php

I really need to get this working!

Kayn 08-11-2001 01:19 PM

The only fix I can think if IAN, is to go to your admin for the VBulletin and change the paths to your images to something like:

/forums/images/smilies/whatever.gif

Hmm, I looked at ruph's page - it looks like something is wrong in your config. Double check and make sure the paths are right. :)

webhost 08-11-2001 04:23 PM

Ok what I have done is just make 5 sets of this to pull from different forum id's. seems to work alright.

2 questions

First is there a way that when someone opens the news or headlines that it would automaically add to the thread view totals for the post that are included in the news or headlines page.

Second is there a way to add a reply button or link under each thread shown for someone to reply to the thread.

Rostor 08-12-2001 04:40 PM

Hi,
this hack works fine...but I'v got some problems to configure more then 1 headlilne on my home page.

It continues to give me this error:
Fatal error: Cannot redeclare stripslashesarray() in C:\inetpub\wwwroot\swzone.it\forum\global.php on line 10

There is a way to solve it ?

Thx in advance.

Renato

BiOS 08-13-2001 09:11 AM

up! ;)

BiOS 08-16-2001 01:02 PM

Quote:

this hack works fine...but I'v got some problems to configure more then 1 headlilne on my home page.

It continues to give me this error:
Fatal error: Cannot redeclare stripslashesarray() in C:\inetpub\wwwroot\swzone.it\forum\global.php on line 10
Any idea what's wrong? :confused: :confused: :(

webhost 08-16-2001 01:12 PM

I followed hack instructions.
here is how mind looks http://www.realwebhost.net/PluhHeadlines.php

Pulsorock 08-17-2001 10:42 PM

does this script works for VB 2.0.3?

sysmom 08-17-2001 11:02 PM

It works in mine. :) And I've only got version 1 of the script going.

deb

ender 08-17-2001 11:58 PM

Check this out: http://www.particlesun.com

It's based off the same concept, just looks different.

Pulsorock 08-31-2001 04:46 AM

Great script
But I get this error when making a include of the headlines from the amin page (/index.php3)
[QUOTE]
Fatal error: Failed opening required './admin/config.php' (include_path='.:/usr/lib/php') in /var/www/pulsorock/foro/global.php on line 72

Rostor 08-31-2001 07:33 AM

Hi Guillermo,
add this line before the require command:

PHP Code:

chdir("yourpath/toforum/admin/config.php"); 

and this one to the end of the script:

PHP Code:

chdir("yourpath"); 

Bye

Renato

Pulsorock 08-31-2001 12:40 PM

Hi Rostor,
So I should add this line
PHP Code:

chdir("/var/www/pulsorock/foro/admin/config.php"); 

To the index.php located in the root folder of my web site before the include line and add
PHP Code:

chdir("/var/www/pulsorock"); 

at the end of the headlines script located in the /foro folder?

Thanks

Rostor 08-31-2001 01:51 PM

ReHI :)

The line must be added in the first and the last lines of pluhHeadlines.php.


First part:
PHP Code:

require("./global.php");
require(
"./PluhConfig.php");
chdir("/var/www/pulsorock/foro/admin/");  // <----- HERE
require("./config.php"); 

Last part:
PHP Code:

mysql_free_result($sql_result);
mysql_close($connection);
chdir("/var/www/pulsorock");  // <---- HERE 


Pulsorock 08-31-2001 01:59 PM

ohh...
:)
I'll will try them now

Thanks for all the help

Rostor 08-31-2001 02:01 PM

No Problem i'm here for other 3 hours :D:D:D lol

Pulsorock 08-31-2001 02:14 PM

:(

I tried as you said, but now I get thi error:[QUOTE]
Fatal error: Failed opening required './global.php' (include_path='.:/usr/lib/php') in /var/www/pulsorock/foro/PluhHeadlines.php on line 6

Rostor 08-31-2001 02:27 PM

Try to send me the file :)

helpguillermo@rostor.net ;)

Pulsorock 08-31-2001 03:45 PM

Thanks!
It worked
:)

Bouddha 09-07-2001 12:47 PM

this script is really good but I have a problem when I try to use this script twice on the same page.
In fact I need two headlines displaying on my homepage.
Each headline related to a distinct subforum.
So I use the script 2 times but I rename PluhHeadlines.php and Pluconfig.php for the second headline.

When I try I get this error for the second headline script :
Code:

Fatal error: Cannot redeclare stripslashesarray() in /forum/global.php on line 10
What can I do to fix this error ?
thank you in advance

vortech 09-07-2001 05:00 PM

Is there any way to pull a date with this so it could look like this.
09-07-2001 05:54 PM - News Here - Posted By User name

Just want to be able to add the date to it.. Not a bug php guy so easier the better.. :)

webhost 09-07-2001 05:10 PM

look here
<removed>

sysmom 09-07-2001 07:31 PM

Is version 1.5 up in the first message the most recent version of PluhNews? :)

deb

Bouddha 09-07-2001 08:45 PM

I found my error (see above), I just put in comment the require global.php in the PluhConfig.php and now I can run this script twice on the same page.

Goldfinger 09-13-2001 10:27 AM

Ok this hack is GREAT, when i am logged on my board. But when i am logged out. i get this error

Warning: Cannot add header information - headers already sent by (output started at /path/to/index.php:10) in /path/to/admin/functions.php on line 1457

Note: it shows the direct path i didnt want to show it on here :) to save somewhat privacy. But anyone have any ideas on how to fix it? I am using 2.0.3.

You can view it at S-Files Online

Thanks :).

webhost 09-13-2001 11:00 AM

I just ran into this on another hack. I found that it was because the database name and password was wrong, check your Pluhconfig file for proper settings

Goldfinger 09-13-2001 11:19 AM

all the variables are right in the PluhConfig.

Goldfinger 09-13-2001 08:37 PM

Still have the same problem Web. Even after you fixed it... i cleared my cookies. and it didnt work. but if im cookied it'll work..

P1aGu3 09-15-2001 11:05 AM

Brilliant Script ... saved me alot of hairpulling and pain ...

I am getting the same header problem ...

My index is basicly a series of includes

PHP Code:

<? include ("location/includes/header.php")?>
various html for table layouts
<? include ("forums/PluhNews.php")?>
various finishing html
<? include ("location/includes/footer.php")?>


P1aGu3 09-15-2001 11:09 AM

I can already guess that the inclusion of the global.php and admin/config.php is causing the Vbulleting Header functions to kick in causing the conflict with my header.php.

But no idea how to fix it.

Goldfinger 09-15-2001 11:22 AM

Actually the problem is with cookies. there is no header.php and footer.php

P1aGu3 09-15-2001 11:28 AM

Hmmm ... thats a point ...

My error occurs on line 1459 ... which is "setcookie($name,$value,$expire,$cookiepath);" Below

PHP Code:

// ###################### Start vbsetcookie #######################
function vbsetcookie($name,$value="",$permanent=1) {
  global 
$cookiepath,$cookiedomain;

  if (
$permanent) {
    
$expire=time() + 60*60*24*365;
  } else {
    
$expire 0;
  }
  
  if (
$cookiedomain) {
    
setcookie($name,$value,$expire,$cookiepath,$cookiedomain);
  } else {
    
setcookie($name,$value,$expire,$cookiepath);
  }
  



Goldfinger 09-15-2001 11:30 AM

I know for a fact its a cookie problem because when you are logged into your board it'll work. But when you delete your cookies from your browser it'll be messed up.

P1aGu3 09-15-2001 11:33 AM

I think I know how to fix this (long time since I worked with cookies)

Add the following to the top of the index.

PHP Code:

<?
require("forum/fnqglglob.php");
require("forum/fnqglconfig.php");
require("forum/admin/config.php");
?>

Before the require("layout/header.php");

The cookies from memory have to be loaded before the first < html > tag.

Mind you my memory is sad.


All times are GMT. The time now is 12:44 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.01756 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
  • (10)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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