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)
-   -   [RELEASE v2.x] OPNews v1.0 << Not just another 'news' script. (https://vborg.vbsupport.ru/showthread.php?t=26562)

merk 08-28-2001 09:26 PM

Quote:

Originally posted by JJR512
OK, this little request is going to throw a major complication into the works, I know, but I just have to ask.

Instead of limiting the number of news items that show up to a fixed number (with $newsitems), could there be a way to show news items during the past certain amount of time? For example, show all from the past two days, or something like that (the time limit would be a admin-set variable, just like $newsitems).

There very well should be. Give me a few hours on this one, ill try think up a method, but i may not be able to get it all done straight away.

However, its starting to get past my SQL knowledge, however i have a few buddies who can help ;)

JJR512 08-29-2001 02:51 AM

This isn't a problem or anything, but just some thinking out loud, so please bear with me.

My website is mainly about computers, or at least, that's how it's supposed to be. Computer hardware and software, tips and tutorials, stuff like that (although most of it is in development).

I have a forum on my board for sports, another for entertainment (movies, music, etc.), another for cars, and several computer-related forums.

I would like news from all of these very different types of topics to show up on the home page of the website. But in order to get news to show up there, it has to be posted in one specific forum, and not the forum it actually belongs in. Sure, with some of the other news hacks, I could specify to pull from multiple forums, but then everything from those forums gets pulled.

The problem with putting everything in one forum is that it then means two forums for people to check if they want the latest entertainment news, for example. Because a lot of people just come straight to the board, not to the home page of the site. Or if they want to see the comments that people make, it means going to two forums.

So what I'm thinking is that a completely different way of getting news on another page is needed. This is, I believe, a completely new idea. The old way is pulling all threads out of one specified forum. My idea is that you post news in the appropriate forum for that type of news (like putting movie news in the entertainment forum), and when you post, there would be an option, a checkbox, to make it a news item. Checking that checkbox, like the one to make a thread a poll, would flag that thread as one that should be displayed on the separate news page. Only Admins, or maybe Admins and Mods, would be able to use that checkbox.

This could even be taken a step further. Because news items can now be posted in all forums, the forum becomes like a category. For example, news items I post in my Entertainment forum are categorized as Entertainment news, and news items I post in my Sports forums are categorized as Sports news. This could be part of a search and sort feature on the separate news page. A user could click a link to show all the Sports news, or to search for something based on category.

All of this is just something to think about. I'm posting it in this thread because I think that of all the news page hacks I've seen so far, this one is the best. I realize it would be quite a lot of work to do something like this. But this is just to give you (merk), or anyone, something to think about, and maybe if you feel it's a good idea, work on doing sometime. :)

merk 08-29-2001 04:01 AM

Excelent idea.

I have quite a use for a similar system.

Im thinking, that the best method of what you sugest, is that once you check that check box, it becomes duplicated in 2 forums.

This probably isnt desirable, because if you edit the post in the forum, nothing will happen to the news post. Also with the comments.

Another option, would be to create a completly different table in the database, which stores the postid of each news post, and the details needed.

At the moment, such a system isnt so urgently needed by myself- however, the system i do need, is 'columns' as mentioned above for OPNews v1.5, or columns, cant remember what i called it :)

Your welcome to come to my board to discuss it all(*pimp* need more hits D: *pimp*)

So yer, atm im working on a columns system, which details are still fuzzy, and after releasing that ill help you out with this one, cause i can use it too(and i can imagine that they would be similar).

Give me about another 24/48 hours and i should be well underway!

merk 08-29-2001 06:35 AM

Updated:

http://www.vbulletin.com/forum/showt...threadid=26792

JJR512 08-29-2001 04:27 PM

How do you get the thread subject to show up on the news page, as you seem to have in your demo link above?

merk 08-29-2001 08:04 PM

If its not there, you need to add

$newsarray[title] to the newsbit template.

I cant imagine why its not there- i remember adding it, but who knows, i might have spelt it wrong :/


All times are GMT. The time now is 11:26 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.02093 seconds
  • Memory Usage 1,728KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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