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)

Goldfinger 10-09-2001 10:23 PM

here is a MINI im talkin lil modification i did to the headlines.php to make it display a selected number of headlines instead of showing the same amout as the news.

in pluhheadlines.php find:

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 that with

PHP Code:

//headline count
$headlines "5";

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

and just put how many headlines you want to display in the $headlines variable :). Enjoy.

Kayn 10-10-2001 08:22 PM

Wow, look at all these posts. :)

Sorry I've been gone, but I'm glad there are people using my little hack. :)

SirSteve 10-10-2001 08:30 PM

Quote:

Originally posted by Kayn
Wow, look at all these posts. :)

Sorry I've been gone, but I'm glad there are people using my little hack. :)

Time for some updated features?

:)

Hamma 10-10-2001 08:35 PM

I want to use this hack. However theres allota stuff to read here hehe, would it be ok to use the stuff from the first page or were there bugs fixed?

Kayn 10-10-2001 08:36 PM

Well, haven't messed with it in a while...

Post any suggestions that ya'll would think is necessary, or wanted, or whatever. :D

Hamma 10-10-2001 09:45 PM

hmm, getting some odd errors:

Warning: Undefined variable: REQUEST_URI in
path\to\global.php on line 39

Warning: Undefined variable: QUERY_STRING in path\to\global.php on line 47

Warning: Undefined index: HTTP_POST_VARS in
path\to\global.php on line 64

Warning: Undefined index: action in
path\to\global.php on line 64

Warning: Undefined index: action in
path\to\global.php on line 67

Warning: Cannot add header information - headers already sent by (output started at path\to\global.php:39) in path\to\functions.php on line 1457
Today's News

However at the very bottom its posting my news.. is there somthin I missed? hehe

Goldfinger 10-10-2001 09:47 PM

if you go back a couple pages you'll find out how to fix your header problem a whole bunch of us had that same problem :).

Goldfinger 10-10-2001 09:49 PM

Quote:

Originally posted by Kayn
Well, haven't messed with it in a while...

Post any suggestions that ya'll would think is necessary, or wanted, or whatever. :D


you should add my code fix in the headlines :). lol. its simple but yeah it is useful.

Hamma 10-10-2001 09:52 PM

I read it but have a short term memory :p Ill dig back a bit hehe

Hamma 10-10-2001 10:17 PM

Im getting that assortment of errors when I am logged in? I already have the cookie thing set. Also do I put those require commands on the index of the site itself where the news is included?


All times are GMT. The time now is 11:42 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.01411 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_php_printable
  • (2)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