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)

SuitCase 07-15-2001 03:29 PM

Surely it can't be that easy, can it?

Redmak 07-15-2001 03:31 PM

Yes it's that easy.

You bought vbulletin , might as well use it :)

Bane 07-15-2001 06:26 PM

Not to seem completely ignorant, but I am.. How would I use that with the file from this thread?

ztsky 07-15-2001 06:30 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 :)

I have tried your said.but no way.

Redmak 07-15-2001 06:49 PM

Ok a little explanation.


In news.php (located in my vbulletin directory)

Line 5 add the require statement

Add the $bericht= line right before the part where the html is put in (echo ")

Use $bericht instead of $pagetext in your html part



here's the output on my server http://www.neowin.net/index1.php

If things still dont work I'll post the complete news.php :)

Bane 07-15-2001 06:57 PM

Thank you! Works like a charm :)

rmusic 07-15-2001 07:00 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 :)


im going to try that now

Steve Machol 07-15-2001 07:01 PM

[QUOTE]Originally posted by Redmak
If things still dont work I'll post the complete news.php :)

Bane 07-15-2001 07:08 PM

This is it :)) Thank you so much Kayn and Redmak!

ztsky 07-15-2001 07:15 PM

Quote:

Originally posted by Redmak
Ok a little explanation.


In news.php (located in my vbulletin directory)

Line 5 add the require statement

Add the $bericht= line right before the part where the html is put in (echo ")

Use $bericht instead of $pagetext in your html part



here's the output on my server http://www.neowin.net/index1.php

If things still dont work I'll post the complete news.php :)

thanks,works well
but should Use $bericht instead of $pagetext in the whole file.;)


All times are GMT. The time now is 10:46 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.01658 seconds
  • Memory Usage 1,743KB
  • 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_php_printable
  • (3)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