Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Zajako's News Hack Details »»
Zajako's News Hack
Version: 1.00, by zajako zajako is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-13-2002 Last Update: Never Installs: 12
Is in Beta Stage  
No support by the author.

This hack lets you make any page you want have the first post of your x amount of threads in the forum you choose, which is bassicaly a news feed. What makes mine different from any others is first its alone and not attached to anythign else.

2nd you can do it on any page that calls the global page, including non vb pages.

3rd it uses a single template that allows you to show anything in your postbit for each of the threads an example is to output your news using your default postbit for your threads, which is similar to what the one that is default does.

I hope you guys find it useful and also i want to point out theh template included should be changed. It uses the postbit that is default to vb, and shows all the details of a normal post including the links to profile and all that stuff its merely of an example at what it can do. I also plan to update this in the uture to contain coments type of links and numbers to make it more like a news displayer.

Anyways i hope it works well. for all of you

For a demo board here is one of my sites i have installed it on.

www.therpgia.com



Here is the updated file

Zajako's News Hack

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-14-2002, 04:23 PM
MoonSlasher's Avatar
MoonSlasher MoonSlasher is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was wondering what kind of news script I would use for my site, sice I'm not allowed to use newspro anymore >_<
Maybe I'll try this out, thanks AGAIN for making a great hack
Reply With Quote
  #13  
Old 11-14-2002, 04:27 PM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heres a better newsbit to work with. A little less liek a post, and a bit more like news. Has a comment link as well as a cut off link for text extending the limit of characters.

PHP Code:


<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextrawidth="100%">
<
tr id="cat">
<
td align=left width="50%" bgcolor="{categorybackcolor}" ><normalfont>$article[icon] <a href="$bburl/showthread.php?s=$session[sessionhash]&threadid=$post[threadid]"><b>$post[icon$post[title]</b></a><normalfont></td>
<
td align=right width="50%" bgcolor="{categorybackcolor}">
<
normalfont><b>$post[username]</b></normalfont>
    <
font size=1><i>$post[usertitle]</i></font>
</
td>
</
tr>
<
tr>
<
td colspan="2" >
<
table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0"   cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%"><!-- spacer -->

<
table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextrawidth="{contenttablewidth}" align="center"  ><tr><td>
<
table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextrawidth="100%">
<
tr>
    <
td bgcolor="$post[backcolor]width="175" valign="top" nowrap>
    <
a name="post$post[postid]"></a>
    
$post[firstnewinsert]
        
$post[avatar]
</
td>
    
    <
td bgcolor="$post[backcolor]width="100%" valign="top">
    
    <
p><normalfont>$post[message] <br><div align=center><a href="$bburl/showthread.php?threadid=$post[threadid]">[Read Full Article]</a></normalfont></div></p>
    

    </
td>
</
tr>
<
tr>
    <
td bgcolor="$post[backcolor]width="175" height="16" nowrap><smallfont>$post[foldericon]
    
$post[postdate] <font color="{timecolor}">$post[posttime]</font></smallfont></td>
    
    <
td bgcolor="$post[backcolor]width="100%" valign="middle" height="16">
        <
table width="100%" border="0" cellpadding="0" cellspacing="0">
        <
tr valign="bottom">
            <
td><smallfont>$onlinestatus
            $post
[profile$post[pmlink$post[useremail]  </smallfont></td><td align=center><smallfont><a href="$bburl/newreply.php?threadid=$post[threadid]">>>Comment<<</a></td>
            </
smallfont>
            <
td align="right" nowrap><smallfont>
            <
a href="$bburl/editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="{imagesfolder}/edit.gif" border="0" alt="Edit/Delete Message"></a>
            <
a href="$bburl/newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{imagesfolder}/quote.gif" border="0" alt="Reply w/Quote"></a>
            </
smallfont></td>
        </
tr>
        </
table>
    </
td>
</
tr>
</
table>
</
td></tr></table>

<!-- 
spacer --></td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>
</
td>
</
tr>
</
table>
<
br
Reply With Quote
  #14  
Old 11-14-2002, 08:09 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah - I get it now. Looks Cool! Thanks zajako
Reply With Quote
  #15  
Old 11-15-2002, 04:09 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very interesting concept, to show the first post in each thread of every forum.

But, would it make more sense to show the latest post of each thread in every forum? Maybe not..since viewers wouldn't be keened in on the topic, but then again..who knows?

Well, nifty idea of a hack, but I'll have to consider whether I need it or not.
Reply With Quote
  #16  
Old 11-15-2002, 08:42 AM
blackice912's Avatar
blackice912 blackice912 is offline
 
Join Date: Jun 2002
Location: Tacoma, WA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like! I'll probably use this for some interesting reason...heh
Reply With Quote
  #17  
Old 11-16-2002, 04:16 AM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Velocd, i don't think you understand it. It is for displaying news. The news post is shown, and lets your members read it on another page, and then they can clikc a link to lead to the forum so they can comment on the news. For example you have a forum called site news. then you have a main site page. You can use this hack to display the news thread's first post listing off the current news. Thus any comments or replies about the news would not matter nor want to be shown.
Reply With Quote
  #18  
Old 04-03-2003, 04:03 PM
Trident Trident is offline
 
Join Date: Aug 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sory for bump

i want only titles of the news , also i want it as columns like :

news1 | news2 | news3

any one help me please ?
Reply With Quote
  #19  
Old 05-18-2003, 06:27 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if your looking for a live demo i belive that he has also installed it at his website www.tfogame.com
Reply With Quote
  #20  
Old 05-28-2003, 04:05 AM
kaotic's Avatar
kaotic kaotic is offline
 
Join Date: Mar 2003
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Zajako just sent me an update to this hack. I'm attaching it with his permission. The instructions should be self-explanatory, but I don't believe that you need to make any changes to admin/functions.php or the template.
Reply With Quote
Reply


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 11:29 AM.


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.04224 seconds
  • Memory Usage 2,337KB
  • Queries Executed 24 (?)
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)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)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_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