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

Reply
 
Thread Tools
Details »»

Version: , by bira bira is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-08-2001 Last Update: Never Installs: 141
 
No support by the author.

Hi all,

This is a brand new addition to my own BB, so I don't even know how my own users will react to it, let alone how you guys would

Hack Description:
  • Posts you have already read in a thread, will show up with their header only (a row that includes the username, post subject and date only). New posts only will appear in full.
  • This is user selectable via the 'Edit Options' page: each user can decide if he wants this option on or not. (By default all existing and new users will have this turned Off).
  • A link at the top of the thread offers to "expand all" posts or "contact all" posts.
  • by clicking on the + sign on a shruk post, it will expand without the page reloading. By clicking on the - sign on an expanded post, it will shrink without the page reloading.
  • [high]this option is available for your IE users only! Netscape users will see no difference and will not be affected anyway at all by the change[/high]
How to install:
  • Please download the attached zipfile.
  • Upload plus.gif and minus.gif to your images directory
  • Upload install_contractposts.php to your admin directory and run that script.
Note: there are quite a few changes to make (primarily additions, not replacements) to the vb scripts and templates. The process should take you several minutes, so I recommend you close your Bulletin Board while installing the hack.

Demo:

You are welcome to visit my Bulletin Board, at http://www.atlasf1.com , to see what the additions look like. To test it in full (ie, the option of old posts being shrunk by default), you will have to register and modify your options after you have received your password.

Cheers,

Bira

Show Your Support

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

Comments
  #272  
Old 07-23-2002, 12:03 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please help mine is messed up it looks like the attachment

also here is my postbit code whats wrong with it

PHP Code:
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E"  width="95%" align="center"><tr><td>
<
table cellpadding="0" cellspacing="1" border="0"  width="100%">
<
tr>

    <
td bgcolor="$post[backcolor]width="175" valign="top" nowrap>$plusimg<normalfont><b>$post[username]</b></normalfont></td>
    <
td bgcolor="$post[backcolor]width="100%" valign="top">
        <
table width="100% cellspacing="0" cellpadding="0" border="0">
        <tr>
        <td><smallfont>
$post[icon] <b>$post[title]</b></smallfont></td>
        <td align="
right" nowrap><smallfont>$onlinestatus $post[foldericon] $post[postdate] <font color="#FF9C58">$post[posttime]</font></smallfont></td>
        
</tr>
        </
table>
</
tr>
</
table>

<
DIV id="p$post[postid]e" style="display:$pe">
<
table cellpadding="4" cellspacing="1" border="0"  width="100%">
<
tr>
    <
td bgcolor="$post[backcolor]width="175" valign="top" nowrap>
    <
a name="post$post[postid]"></a>
    
$post[firstnewinsert$minusimg
    
<font size="4"><b>$post[username]</b></font><br>
                
$bigstars
                $goldstars
                $pips
<br>
                <
smallfont>$post[usertitle]</smallfont><br>
    
$post[avatar]<br>
<
p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font face="verdana,arial,helvetica" size="1"><B>LEVEL $level Member ID :
              
$post[userid]</b></font></p>
              <
p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font face="verdana,arial,helvetica" size="1"><B>MP$maxmp%</font></B></p>
<
table border="1" cellpadding="0" cellspacing="0" width="90%" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000">
  <
tr>
    <
td width="100%"><img border="0" src="https://vborg.vbsupport.ru/images/bar1.gif" width="$maxmp%" height="9"></td>
  </
tr>
</
table>
<
font face="verdana,arial,helvetica" size="1"><B>HP$hp%</B>
<
table border="1" cellpadding="0" cellspacing="0" width="90%" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000">
  <
tr>
    <
td width="100%"><img border="0" src="https://vborg.vbsupport.ru/images/bar2.gif" width="$hp%" height="9"></td>
  </
tr>
</
table>
<
font face="verdana,arial,helvetica" size="1"><B>EXP$exp%</B>
<
table border="1" cellpadding="0" cellspacing="0" width="90%" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000">
  <
tr>
    <
td width="100%"><img border="0" src="https://vborg.vbsupport.ru/images/bar3.gif" width="$exp%" height="9"></td>
  </
tr>
</
table><br>

    <
smallfont>
                
Registered$post[joindate]<br>
    
Location$post[field2]<br>
    
Posts$post[posts]<br>
                
Board Pounds$post[storep$donate<br>
                
Thread Views$post[views]<br>
                
Local Time$post[localtime]<br>
                
Local Date$post[localdate]<br>
                </
smallfont></td>
    <
td bgcolor="$post[backcolor]width="100%" valign="top">
    <
table border="0" width="100%"
<
tr
<
td width="85%"
<
smallfont>$post[icon] <b>$post[title] </b></smallfont>
</
td
<
td width="15%" align="right"
<
smallfont>
(
Post# <a href="showthread.php?postid=$post[postid]#post$post[postid]"><smallfont>$countposts</smallfont></a>)</smallfont></td> 
</tr
</
table

    <
p><normalfont>$post[message]</normalfont></p>
                
$post[attachment]
    <
p>$post[signature]</p>
    <
p>$post[editedby]</p>
    <
p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
    </
td>
</
tr>
<
tr>
    <
td bgcolor="$post[backcolor]width="175" height="16" nowrap><smallfont>$post[foldericon]
    
$post[postdate] <font color="#FF9C58">$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$post[homepage$post[search$post[buddy]
            <!-- $ 
post[icqicon] --> <!-- $ post[aimicon] --> <!-- $ post[yahooicon] --> 
            </
smallfont></td>
            <
td align="right" nowrap><smallfont>
<
a href="javascript:showwin('store.php?action=rate&postuserid=$post[userid]&postid=$post[postid]&postusername=$post[username]', 'width=550,height=250')"><img src="https://vborg.vbsupport.ru/images/storerate.gif" border="0" alt="Rate This Post"></a>
            <
a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="https://vborg.vbsupport.ru/images/edit.gif" border="0" alt="Edit/Delete Message"></a>
            <
a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="https://vborg.vbsupport.ru/images/quote.gif" border="0" alt="Reply w/Quote"></a>
            </
smallfont></td>
        </
tr>
        </
table>
    </
td>
</
tr>
</
table>
</
DIV>
</
td></tr></table
please help


also the + and - aint showing please help me
Reply With Quote
  #273  
Old 07-23-2002, 01:49 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me Bumps This Thread And Crys For Help
Reply With Quote
  #274  
Old 07-31-2002, 07:23 PM
Inferno's Avatar
Inferno Inferno is offline
 
Join Date: Mar 2002
Location: UK
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Only just found this hack and think its one of the most useful I have come across. Really easy to install as well. Thanks a lot bira

L8R
Reply With Quote
  #275  
Old 08-13-2002, 12:07 PM
Sho Sho is offline
 
Join Date: Nov 2001
Location: Berlin, Germany
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, I remember a "Collapsable forums on forum home" hack that does a similar thing, but also works with MoZilla. I wish this one would work with MoZilla, too ...
Reply With Quote
  #276  
Old 08-22-2002, 06:43 AM
SiXXGuNNZ's Avatar
SiXXGuNNZ SiXXGuNNZ is offline
 
Join Date: Oct 2001
Location: WA, USA
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by FireFly
place $post[shortmsg] in the posbit template.
Reply With Quote
  #277  
Old 08-29-2002, 05:50 AM
Storm's Avatar
Storm Storm is offline
 
Join Date: Mar 2002
Location: RPG Palace Control Panel
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, installed and works perfectly!
Reply With Quote
  #278  
Old 08-29-2002, 08:40 AM
kmfdm_kid2000's Avatar
kmfdm_kid2000 kmfdm_kid2000 is offline
 
Join Date: Mar 2002
Location: Where Towers Crumble (NYC)
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by SiXXGuNNZ


where abouts to I put it? do I replace anything in postbit? or do I just add it wherever I feel like it?
Reply With Quote
  #279  
Old 09-01-2002, 03:44 AM
wolfman wolfman is offline
 
Join Date: Aug 2002
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do havea agree that this is a nice hack, though I know I have messed up on the install, nothing seems to be broken though the expand all / contract all does not work. I have tried to go through the reg process to see if there were any problems there and I have found none. The board is up and working fine other than that one problem.

I am running 2.2.6 and I have a few mods installed already any help with this would be welcomed and my thanks for this in advance.
Reply With Quote
  #280  
Old 09-02-2002, 04:56 AM
wolfman wolfman is offline
 
Join Date: Aug 2002
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I went back after a good nights sleep and found that I had left one of the steps out. So this was totally my error and this is one of those hacks that are a must have
Reply With Quote
  #281  
Old 09-04-2002, 05:49 AM
cybrcyfr cybrcyfr is offline
 
Join Date: Aug 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really wanted an expand/contract all that is client side. This will not hold state when moving from page to page.

Note that the object I am referencing to get the DIV collection has the id of "tblResults". You will have to modify the "postbit" tempate and add a name to the parent table that encapsules all of the threads.

id="tblResults"

JavaScript Code
[QUOTE]
<script language="JavaScript" type="text/javascript">
<!--
function ExpandAll(){
var objDivs = tblResults.all.tags("DIV");
for(i = 0; i < objDivs.length; i++){
if (objDivs(i).style.display=="none") {
objDivs(i).style.display="";
}else {
objDivs(i).style.display="none";
}
}
}
function ContractAll(){
var objDivs = tblResults.all.tags("DIV");
for(i = 0; i < objDivs.length; i++){
if (objDivs(i).style.display=="show" || objDivs(i).style.display=="") {
objDivs(i).style.display="none";
}else {
objDivs(i).style.display="";
}
}
}
</script>
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 04:34 AM.


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.04911 seconds
  • Memory Usage 2,393KB
  • Queries Executed 25 (?)
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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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