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
  #62  
Old 12-13-2001, 08:02 PM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ross I'm not sure I understand your question.

There is "Expland All | Contract All" links at the top of every thread.

If you mean putting a similar link on the forumdisplay page - where the list of all threads in a forum - then I don't really see the point for it: that's what you have the option to select the default action in your user's profile Edit Options page.
Reply With Quote
  #63  
Old 12-13-2001, 08:11 PM
Frank Frank is offline
 
Join Date: Nov 2001
Location: Toronto, Canada
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still doesn't work Bira, I looked for that error and simply don't have it.

Line 444 is:

// Contract Old Posts in Thread (v1.0)
$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield." parentemail,coppauser,homepage ,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,joindate,cooki euser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotificat ion,receivepm,emailonpm,options,birthday,maxposts, startofweek,ipaddress,pmpopup, referrerid,nosessionhash,avatarid,hideposts) VALUES (NULL,'".addslashes(htmlspecialchars($username))." ','".addslashes(md5($password) )."','".addslashes(htmlspecialchars($email))."',". $newstyleval."'".addslashes(ht mlspecialchars($parentemail))."','$coppauser','".a ddslashes(htmlspecialchars($ho mepage))."','".addslashes(htmlspecialchars($icq)). "','".addslashes(htmlspecialch ars($aim))."','".addslashes(htmlspecialchars($yaho o))."','".addslashes($signatur e)."','$adminemail','$showemail','$invisible','".a ddslashes($usertitle)."','".ti me()."','$cookieuser','".addslashes($prunedays)."' ,'".time()."','".time()."','$n ewusergroupid','".addslashes($timezoneoffset)."',' $emailnotification','$receivep m','$emailonpm','$options','".addslashes($birthday )."','".addslashes($umaxposts) ."','".addslashes($startofweek)."','".addslashes($ ipaddress)."','$pmpopup','".ad dslashes($testreferrerid['userid'])."','$nosessionhash','$avatarid','$hideposts')" );
// Contract Old Posts in Thread (v1.0)
Reply With Quote
  #64  
Old 12-13-2001, 08:21 PM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Frank, there was an extra dot in the file you sent me

Anyhow, I looked at it again and I think I see the problem (maybe).

You seem to have deleted an extra line too much.

Right under the line you pasted, should appear:

Code:
  $userid=$DB_site->insert_id();
But in your file it's missing.

That would explain the error you pasted in the earlier posts - there was simply a missing userid!

So paste this line back, right under the "insert", and you should be fine.
Reply With Quote
  #65  
Old 12-13-2001, 09:42 PM
Frank Frank is offline
 
Join Date: Nov 2001
Location: Toronto, Canada
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you kindly Bira, that has fixed the problem completely
Reply With Quote
  #66  
Old 12-14-2001, 12:01 AM
nafae's Avatar
nafae nafae is offline
 
Join Date: Nov 2001
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey bira, nice hack. It all works except for the fact that when i shrink the posts, they shrink about 5% larger than my forum size. any ideas?
Reply With Quote
  #67  
Old 12-14-2001, 12:11 AM
nafae's Avatar
nafae nafae is offline
 
Join Date: Nov 2001
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

eep and i get a parse error when i click the register button. Do you have a .txt file with the updates so I can go back and make sure i installed it right? or do I have to go through the entire table creation etc process again..?
Reply With Quote
  #68  
Old 12-14-2001, 01:51 AM
fineclicks's Avatar
fineclicks fineclicks is offline
 
Join Date: Dec 2001
Location: Shelby Twp, MI
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know why I would get a blank white page when trying to run the install_contractposts.php file?
Reply With Quote
  #69  
Old 12-14-2001, 06:29 AM
rawnet's Avatar
rawnet rawnet is offline
 
Join Date: Oct 2001
Location: London, UK
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Bira,

Unless I'm being a total blind muppet, I can't see any Expand / Contract links on my forums. Eg. http://www.servicepals.com/forums/sh...=&threadid=190

Can you give me any pointers where I should put this link in my templates?

Ross
Reply With Quote
  #70  
Old 12-14-2001, 11:06 AM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ross, I looked at your forums. I found at least two changes you didn't make. Coupled with the previous question you asked, I can only conclude that you rushed through installing this hack, skipped several steps, and are now wondering why some stuff isn't working.

That's really not the way to go, and it is completely unfair to myself as well. I cann't install hacks for you. I cannot make sure you do it right. I can only offer very detailed and accurate instructions.

So either you follow them fully or you don't - that's up to you. But I won't be giving support to a half-baked hack installation.

Please go over the installation again, step by step.
Reply With Quote
  #71  
Old 12-14-2001, 11:07 AM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by fineclicks
Anyone know why I would get a blank white page when trying to run the install_contractposts.php file?
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:55 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.04858 seconds
  • Memory Usage 2,313KB
  • 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_code
  • (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