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)
-   -   Logician NEWS: Drag Any Message to Your Main Page (https://vborg.vbsupport.ru/showthread.php?t=39278)

zonegray 09-30-2002 10:51 PM

Yup, it seems to work.

I just added this right below the global.php include in my copy of show.php:
Code:

include("./newsconfig.php");
$newsoutput=news();

And then inserted $newsoutput into a template. Obviously, the news adds extra overhead, so it seems wise to use a "clean" copy of show.php for most templates, and only use the modified copy for pages that need to include the news. I suppose you could include the news into just about any page this way, if there were a reason to.

Whee, this is going to work out great. Thanks for the great add-on.... it works exactly the way we need it to.

Brew 11-07-2002 01:21 AM

I am wondering if you know this hack to work with PostNuke or other CMS as a block?

Thank you,

Brew

TheJANG 11-15-2002 06:29 AM

A+! This is a truly A+ add-on/hack and it's already saving me time. I've done a little modifying and inserted it in an iframe on my site at http://www.UltimateRC.com . I've got three more sites lined up & ready to use it!

Thank you VERY much for the great work. This looks like the simplest, easiest-to-use, most configurable news-from-vB-on-a-non-vB-page setup around.

*clicks INSTALL*

zonegray 11-17-2002 05:45 PM

hmmm... the timestamp (??NEWSDATE??) seems to be coming up an hour earlier than the actual post. It reads 12:21 pm on the front page, and 1:21 pm in vBulletin. Can I fix it?

Looks like it has something to do with $gelentarih, but my Turkish is even worse than my PHP ;)

Logician 11-17-2002 06:32 PM

Quote:

Originally posted by zonegray
hmmm... the timestamp (??NEWSDATE??) seems to be coming up an hour earlier than the actual post. It reads 12:21 pm on the front page, and 1:21 pm in vBulletin. Can I fix it?
Looks like it has something to do with $gelentarih, but my Turkish is even worse than my PHP ;)

:classic:

it's in phpheader.php:
PHP Code:

## Time difference between the time zone post you want for your news and your server(vbulletin) time. 
## Set is as a positive or negative number such as -3, +5 etc.
$timeset=0


Sebastian 11-17-2002 08:07 PM

Logician, does this have an archive news page? basically I am looking for something like this but also a way to get old news from a forum and put them on a different page, sorted by month the news was posted. What happens when there are 30 articles posted? does it archive them?

Logician 11-17-2002 09:40 PM

Quote:

Originally posted by Sebastian
Logician, does this have an archive news page? basically I am looking for something like this but also a way to get old news from a forum and put them on a different page, sorted by month the news was posted. What happens when there are 30 articles posted? does it archive them?
Sebastian this hack does not have an archive feature.. It just pulls the tagged posts to your non-vb page and removes their "news status" when they expired according to your configuration. So it does not archieve old posts..

GTGT 11-29-2002 09:36 AM

I have 250 000 posts and it's too slow for me :(

But seem to be workign good but slow :(

How much faster will the advance hack improve it?

I am hesitant to use it since it changes the database. Can the changes be resetted?

www.bmwm5.com

Logician 11-29-2002 10:50 AM

Quote:

Originally posted by GTGT
How much faster will the advance hack improve it?

I am hesitant to use it since it changes the database.

Advanced installation will cure the slowness dramatically. As a matter of fact it is for large databases like yours so dont hesitate to use it. Although my board is small, even I use the hack with advanced installation.

If you want to revert back your db to original values, you can do it via PhpMyadmin easily. The advanced installation adds a new field (news) to "post" table and adds an "index" to that field so that searching will be fast, that's it. If you want to remove it later, all you need to do is to delete this field from your table. It's no big deal, but you should always backup your database before every altering step anyway..This is a general rule..

GTGT 11-29-2002 10:55 AM

Thanks for the answer. I am hesitant to change my database though. Hmmw, what eould you think of this hack:

#### Subject Preview by DR2000 ####
I looked at all other hack avaliable for this, and all of them are trying to do too much by editing your database structure, and modifying the way data is inserted. Why overcomplicate things, when all data is already there, and it only needs to be extracted...
#### DEMO ####
To see this hack in action take a look at http://forum.4adrive.com
#### FEATURES ####
- Shows the subject of the last active post on the front page
- Shows the icon of the last active post on the front page
- No need to alter database, and risk to screwing something up
- Only one file to change
- If the subject was very long, shows trunkated version of it, and replaces the rest with '...', preventing your main page layout from being screwed up.
#### #### ####
Nov 14, 2001
#### #### ####


Maybe it doesn't worh for vbulletin 2.2.9?


All times are GMT. The time now is 06:38 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.01167 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)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
  • (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