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)

Gutspiller 05-15-2002 07:31 PM

I have that hack installed and I still sometimes get that error location. Don't expect that hack to fix the problem completely. :(

Mithan 05-24-2002 02:00 AM

This is a great news program, but I would like to know if there is a way for me to display 5 news headlines instead of the same number of News items it shows in the news?

Currently I have 10 news items to be shown, but I only want 5 headlines in that area. How can I edit this?

My site is at www.ac2hq.com

Thank you.

Seby 05-29-2002 08:36 AM

Hi,

I really like this hack/addon, but I have a request for a new feature. I use coranto (new version of newspro) right now and it has an option to display a dividing table after a new day starts. You can see that at www.cscentral.com Here is how it looks in the code:

PHP Code:

<If: SubisNewDate>
<
TABLE WIDTH=100BORDER=0 CELLPADDING=0 CELLSPACING=0>
  <
TR
    <
TD ROWSPAN=3 width="206"> <IMG SRC="http://cscentral.barrysworld.com/images/devider_01.gif" WIDTH=206 HEIGHT=48></TD>
    <
TD background="http://cscentral.barrysworld.com/images/devider_02.gif"> <IMG SRC="http://cscentral.barrysworld.com/images/devider_02.gif" WIDTH=10 HEIGHT=21 align="right"
    </
TD>
    <
TD ROWSPAN=3 width="44"> <IMG SRC="http://cscentral.barrysworld.com/images/devider_04.gif" WIDTH=44 HEIGHT=48></TD>
  </
TR>
  <
TR
    <
TD background="http://cscentral.barrysworld.com/images/devider_05.gif" height="25"
      <
div align="right"><font color="A7A7A5" size="4"><b><FieldDay> <FieldMonth_Name> <FieldYear>&nbsp;&nbsp;&nbsp;&nbsp;</b></font></div>
    </
TD>
  </
TR>
  <
TR
    <
TD HEIGHT=2 background="http://cscentral.barrysworld.com/images/devider_07.gif"> <IMG SRC="http://cscentral.barrysworld.com/images/devider_07.gif" WIDTH=10 HEIGHT=2></TD>
  </
TR>
</
TABLE>
</If> 

edit: I have thought of another feature, maybe edit the format of the news date, e.g. just the date and time instead of the day, since when you have a daily devider table you dont need the date to be displayed.

Would it be possible to implement this in pluhnews?

Thanks,
Sebastian

Seby 05-29-2002 09:16 AM

Quote:

Originally posted by Mithan
This is a great news program, but I would like to know if there is a way for me to display 5 news headlines instead of the same number of News items it shows in the news?

Currently I have 10 news items to be shown, but I only want 5 headlines in that area. How can I edit this?

My site is at www.ac2hq.com

Thank you.

Find this line in PluhHeadlins.php

PHP Code:

// create sql statement
$sql "SELECT threadid, title, forumid, replycount, postusername, postuserid, lastposter, dateline, iconid FROM thread WHERE forumid = \"$newsforums\" ORDER BY threadid DESC LIMIT $newsitems"

replace $newsitems with the number of headlines you want to have displayed.

Hope this helps,
Sebastian

filburt1 06-25-2002 12:17 PM

So has anybody figured out how to add avatars to the news events? I know others wanted this feature too.

Mithan 06-25-2002 09:50 PM

Just a FYI:

I have version 1.0 installed on my site and it works great.

http://www.ac2hq.com

We had to put in some extra code to suppress an error message, but other than that, its great.

PS: Whats so good about 1.5?

dogbomb 06-29-2002 02:27 PM

There seems to be a strange bug in this. Whe you are pulling an article from the selected forum, it runs fine. However, when you COPY an old article (one no longer on the main PluhNews page) from that forum to another this start to get a bit kooky.

The article reshows back on the page, but not the original article but a reply firther down.

Anyone else encountered this problem?

TooHectic 07-13-2002 10:36 PM

Quote:

Originally posted by GuruXL
i don't know what i did now, but it works if i directly go to PluhNews.php, however, if i try to include PluhNews.php from the root directory (where my main files are), i don't get an error, but a blank page...
Quote:

I fixed the errors hehe
How did you fix this problem?

I'm having the same problem with my site. I can open http://my site/forums/pluhnews.php just fine, and it works as intended, but if I try to include pluhnews.php inside my http://my site/index.php, I just get a blank page.

Like everyone else, I know the error comes from global.php. Even if I add the full path to global.php in the pluhnews.php file, it still produces a blank page since inside global.php other requires are called. And since those other requires don't have a full path defined, the script cannot find them. (since all requires are called like "./global.php" and "./functions.php".... and since I'm requiring the file from the root directory, it's looking for functions.php, global.php, etc in the root rather than in /forums.)

How did you remedy this problem? Is there a command that will force require statements to look in the same directory as the required file versus the directory the initial call is made from?

Any help is appreciated! Thanks.

TooHectic 07-14-2002 06:49 AM

ok, i fixed it. I just added added some chdir stuff to the beginning of pluhnews.php where the requires are called:

Code:

chdir("./forums");
require("./global.php");
require("./PluhConfig.php");
require("./admin/config.php");
chdir("..");

I'm not sure if that's the best way, but it works.... but then I started getting that weird "Cannot add header information" error. But luckily I found the answer a few pages back. I just moved the requires including the chdir statements out of the PluhNew.php file and put them above the <html> tag in my /index.php file. Seems to work.

If anyone knows of a better solution. Feel free to point it out. Optimization is good.

Lethal 07-14-2002 04:51 PM

is there anyway to have pluhnews inherit vbulletin styles or code like <smallfont> and {categoryfont } ect. ect.

That would be great. I want to put my news in tables but I am going to have different styles and I want the news to inherit the different style colors when a user changes styles. Is this possible. I tried to do it but I kept getting errors and it just wouldn't work with the echo" being in the script.

Well what I want to do is, i have vbportal and the front page I am using the news from that, and then I am going to have different sections of within the site and each section is going to have a news forum. I need a script that will post the news from the specific forum on the sections front page. Pluhnews is great but I want something that will use vbulletins styles like vbportal does. I asked about this over at phpportals.com and I they didn't give me an answer. Any ideas?


All times are GMT. The time now is 07:41 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.01555 seconds
  • Memory Usage 1,765KB
  • 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_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