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)

neocivitas 01-20-2003 03:06 PM

Quote:

Originally posted by TWTCommish
Code:

chdir("/usr/home/web/path/to/forums");

Thank you thank you thank you thank you!!!

I've been trying for hrs to get this script to work on my home page but just got a blank white page.
I found this was because my forums are on a subdomain not in a directory.

My host wanted to charge ?25 GBP per year to enable a redirect from 'mysite.com/forums' to 'forums.mysite.com' so SSI would work.
My other options were frames (which screw up the hit counter) or...
iframe Akk!


Anyway.
I tried this, it works, it's free, and I'm happy :D

ga.net 02-05-2003 10:24 AM

Question. Is there a way I could display only the first few lines of the post? Like this:
http://www.housequake.com/forum/PluhNews.php

Thanks!

Aaron1 02-05-2003 06:04 PM

Quote:

Originally posted by ga.net
Question. Is there a way I could display only the first few lines of the post? Like this:
http://www.housequake.com/forum/PluhNews.php

Thanks!


Yes you can, a part of my pluhnews.php looks like this:

-----------------------------------
if (!$sql_result2) {
echo "<p>Could not get record in second statement.";
}

while ($row2 = mysql_fetch_array($sql_result2)) {

if (strlen($row2[pagetext]) > $car) {
$pagetext = substr($row2["pagetext"],0,$car);
$pagetext .= "...";
}
else {
$pagetext = $row2[pagetext];
}




//gotta convert that damn unix time crap
$dateposted = date("D j M Y, g:i A",$dateline);
//end the goodies

-----------------------------------


And my pluhconfig looks like this:
-----------------------------------
<?
//This is the Config file to get PluhNews running.
//**********************
//Set some Variables

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

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

//Path to your forums directory (leave out trailing slash)
$forumspath = "/forum";

//Number of characters to display for each news item
$car = 400;

?>

-----------------------------------

Hope this will help ya!

ga.net 02-06-2003 11:23 AM

Did it! but how come there's no READ MORE link after the last character? http://www.greenarcher.net/forums/PluhNews.php

Thanks so much! :)

Btw. And is there away that it can display more than 1 news forums?

KuraFire 02-06-2003 12:23 PM

*shows off the hack that is in his signature*

(newsportal hack, that is :))

(this one: https://vborg.vbsupport.ru/showthrea...threadid=38334 )

ga.net 02-09-2003 01:46 AM

I think its too complicated. You see Ill be using frames in my main page so i think Pluh News is better.

Anyway just to repeat my question earlier, how come there's no READ MORE link after the last character?

And I notice If i set the character limit, unfinished sentences end with a "...." . Worse case, last words using VB code will display the unfinished code. Is there a way to limit it to the last paragraph or last sentence?

http://www.greenarcher.net/forums/PluhNews.php

Thanks dude! :)

ga.net 02-11-2003 10:57 AM

bump

ga.net 02-16-2003 09:31 PM

double bump

ProParadox 02-23-2003 01:52 AM

Anyone having trouble getting it to work with VB 2.3.0?

Seby 02-23-2003 04:07 PM

why would you use pluhnews when there is vBhome lite, it is so much faster and better ;)


All times are GMT. The time now is 09:12 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.01704 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)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
  • (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