![]() |
Quote:
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 |
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! |
Quote:
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! |
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? |
*shows off the hack that is in his signature*
(newsportal hack, that is :)) (this one: https://vborg.vbsupport.ru/showthrea...threadid=38334 ) |
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! :) |
bump
|
double bump
|
Anyone having trouble getting it to work with VB 2.3.0?
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|