Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2001, 12:41 AM
krohn krohn is offline
 
Join Date: Nov 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've seen it for the old 1.1.x but anybdoy try it with 2.0 yet? I use newspro and would like to see it work
Reply With Quote
  #2  
Old 03-04-2001, 05:11 PM
Guest
 
Posts: n/a
Default

I would suggest you wait until version 4.0 comes out code named "Coranto". The code has been rewritten from the ground up. I am a alpha tester for it and I know they are working with Matt from ikonboard for an integration between the 2 products....when it is released I may work on it as well....
Reply With Quote
  #3  
Old 03-04-2001, 11:54 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by krohn
I've seen it for the old 1.1.x but anybdoy try it with 2.0 yet? I use newspro and would like to see it work
Yeah. Tribalwar did this or made the hack. Anyway.. we havn't switched over to vB 2.0 yet so we haven't created it yet. I don't know if were keeping Newspro, but if we are, were going to get it working soon.
Reply With Quote
  #4  
Old 03-05-2001, 01:13 AM
Guest
 
Posts: n/a
Default

Let me know I'm weighing out all of my options and looking at things besides newspro too.
Reply With Quote
  #5  
Old 03-05-2001, 02:13 AM
Guest
 
Posts: n/a
Default

I use vB for my news. I wrote a script to grab the latest x posts from my news forum (that aren't closed or invisible) and the replies/views. This works really well because it adds commenting to the news and requires 0 hacking to vb. You already have a permissions control system in place, a template engine, and a search engine. What could be better?
Reply With Quote
  #6  
Old 03-05-2001, 06:13 PM
Guest
 
Posts: n/a
Default

That's very neat! I like to see that News Script leadZERO and see if it could work with out new site!
Reply With Quote
  #7  
Old 03-05-2001, 07:01 PM
Guest
 
Posts: n/a
Default

Well the script is still imature as of yet. The version running on that site is different then my latest one. All the HTML is hard coded into the one that is running, however here is what I have done. I added templates for this version to make it easier to work with.

PHP Code:
<?php
chdir
"./forum" );
require( 
"./global.php" );
chdir".." );

/*
  Move to CP
  $newsForum_ID = 33;
  $numberPerPage = 20;
*/
$newsForum_ID 33;
$numberPerPage 20;
$newsDateFormat "l, F d, Y";
$newsTimeFormat "h:i A";

$stories $DB_site->query"
SELECT threadid, dateline, TO_DAYS( FROM_UNIXTIME( dateline,\"%Y-%c-%d\" )) AS day,
postuserid, user.username, user.email, replycount, views, title
FROM thread LEFT JOIN user ON thread.postuserid=user.userid
WHERE forumid=
$newsForum_ID AND pollid=0 AND visible=1
ORDER BY day DESC, dateline DESC
LIMIT 
$numberPerPage;");

$cDay 0;
while ( 
$story $DB_site->fetch_array$stories ))
{
 
$date vbdate$newsDateFormat$story[dateline]);
 
$time vbdate$newsTimeFormat$story[dateline]);

 
$text $DB_site->query_first"SELECT pagetext, dateline FROM post WHERE threadid=$story[threadid] AND userid=$story[postuserid] ORDER BY dateline LIMIT 1;");
 
$text bbcodeparse$text[pagetext], $newsForum_ID );

 if ( 
$cDay != $story[day] )
 {
      if ( 
$cDay != )
      {
           eval( 
"\$newstext .= \"".gettemplate('news_postdaybit')."\";");
      }
      eval( 
"\$newstext .= \"".gettemplate('news_datelinebit')."\";");
      eval( 
"\$newstext .= \"".gettemplate('news_predaybit')."\";");
      
$cDay $story[day];
 }
 eval( 
"\$newstext .= \"".gettemplate('news_storybit')."\";");  // story text
}
eval( 
"\$news = \"".gettemplate('news_display')."\";");
?>
Just place that block at the beginning of the news page, it must be placed at the beginning because of cookie settings run through the session.php included from global.php.

Then where I want to put the news I have the line:

PHP Code:
      <?php echo"$news"?>
I'm adding a lot of stuff to this though, support for announcements and polls.

If you would like email me at: ryans@ravingaming.com and I'll let you know when I make changes. I figure its the least I can do since I've used your site as an inspiration for my development.

If you need any help with it let me know.
Reply With Quote
  #8  
Old 03-05-2001, 07:08 PM
Guest
 
Posts: n/a
Default

By the way...

The templates I use, and you would need to add are:

news_postdaybit -- after the last story for a day
news_datelinebit -- used to create the date header per day
news_predaybit -- after the dateline but before the first story (this is kind of redundant because it could be included in the dateline template)
news_storybit -- each story
news_display -- main stuff...

Let me know if you have questions about them, if you can't figure out where one template is used turn on the option in vb2 that prints the template name before it, I find that really helpful when working with the templates.
Reply With Quote
  #9  
Old 03-05-2001, 07:13 PM
Guest
 
Posts: n/a
Default

Hmm...

I also forgot to add a URL, but our current site is http://www.ravingaming.com. Although, as in the news, I have a new layout and design in the works. Hopefully in the next week or so I will switch the site over, I hate that current design but then I made it...
Reply With Quote
  #10  
Old 03-05-2001, 07:27 PM
Guest
 
Posts: n/a
Default

when we upgrade to 2.0 i'll get the newspro thing working with it, and release a new version. i've a few additions already that i should've probably put in an upgrade anyways (Comments>> link, etc) but i've been busy with other stuff.

when i have to work on it again to get it working for 2.0 i'll have no excuse not get put out a new one though :P
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04380 seconds
  • Memory Usage 2,259KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete