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)

Mithan 02-13-2004 10:39 PM

I just upgraded my forum to a clean install of vBulletin 3.0, and got PluhNews working with it.


Here are some tips for people doing the same:

PluhConfig.php
Basic editing here...

Edit:
$newsforums = ; to the new News Forum. (same # if you just upgrade)
$forumspath = "/forum"; to the new vB 3.0 forum dir (probably the same)



PluhHeadlines.php
Basic editing here...

Change:
require("./admin/config.php");
to
require("./includes/config.php");



PluhNews.php
Change:
require("./admin/config.php");
to
require("./includes/config.php");

Change:
$bericht=bbcodeparse2($pagetext,"1","1","1","1");
to

require_once("./includes/functions_bbcodeparse.php");
$bericht=parse_bbcode2($pagetext,"1","1","1","1"," 1");



Where you might have problems:
Getting the global.php file to load in PluhNews.php may be a problem.

For me, the old method of loading the global.php file didn't work.
This WAS my code for vb2.3.4:
PHP Code:

chdir("/home/virtual/site22/fst/var/www/html/forum/");
require(
"./global.php");
require(
"./PluhConfig.php");
require(
"./admin/config.php");

....(
at the bottom of the page)...
chdir("/home/virtual/site22/fst/var/www/html"); 

That did NOT work.

I had to delete require("./global.php"); from PluhNews.php entirely (or // it out) and I had to move it to my main sites index.php file.

This is what I put in at the top of my Index.php File:
PHP Code:

chdir("/home/virtual/site22/fst/var/www/html/forum/");

require(
"./global.php");
chdir("/home/virtual/site22/fst/var/www/html/"); 

This is what the top of my PluhNews.php File looks like now:
PHP Code:

chdir("/home/virtual/site22/fst/var/www/html/forum/");
require(
"./PluhConfig.php");
require(
"./includes/config.php"); 


Anyways, to make a long story short, I got this working fairly quickly, the only problem was with the global.php file not working, which stops the parsing and doesn't allow your script to format the output correctly.

A good way to error test is to // (rem) out require("./global.php"); and replace $bericht=bbcodeparse2($pagetext,"1","1","1","1"); with $bericht=$pagetext;

That will allow you to do some basic error checking and isolate the global.php problems from the actual news posting.


I still get MySQL errors though. Trying to suppress those now...

Tannerman 02-16-2004 02:18 PM

Mithan, thanks for posting about your progress. I appreciate the details. I haven't got vB3 up and running yet, but this is going to be very helpful soon!

Owen 03-11-2004 01:52 PM

Ah got it running, no global.php problems, running RC4

Tannerman 03-11-2004 10:12 PM

Quote:

Originally Posted by Owen
Ah got it running, no global.php problems, running RC4

Owen, thanks for the update. What sort of modifications (if any) did you make to the original script?

Owen 03-12-2004 06:30 AM

What Mithan suggested I do, didnt do the global.php stuff though... His Post: https://vborg.vbsupport.ru/showpost....&postcount=521

Crazy Pete 03-22-2004 03:48 PM

What do you have to alter to have this recognize the vB3 bbcode? Right now it just seems to ignore it. Thanks.

HUNTER|UF 03-24-2004 11:41 AM

Thanks Mithan i got it working fine, i think on my site running vb3 full :D

JacobiKenobi 03-26-2004 03:49 PM

Wow, all I have to say is GREAT SCRIPT!

definitely in top 5 for me. Does exactly what I want. and fully customizeable and easily comprehendible for changes!!

i have 1 small problem though, concerning smilies/images, and I would bet that it interferes with some otehr bbcode thing but I haven't checked yet.

i place the script here: /website_root_directory/forum/PluhNews.php
i php-include the script here: /website_root_directory/another_directory/some_page.php

and the smilie doesn't show up. i viewed the properties of the smilie and this is where it is trying to load it from: website_root_directory/another_directory/images/smilies/some_smilie.gif

how can i fix this so it grabs the smilie images from the forum directory?

JacobiKenobi 03-26-2004 03:50 PM

By the way, i may edit this news script and release a version for vB 3.0.0 with some extra features.

SK 04-13-2004 04:25 PM

Is there any way of making it so it cuts the news post to a certain number of characters and adds a [Read More] URL to the end of a news post?


All times are GMT. The time now is 05:58 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.01625 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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