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: 1.00, by TECK TECK is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-20-2002 Last Update: Never Installs: 14
 
No support by the author.

This hack will remove the Reply link and replace it with the threadclosed.gif image only.
I did this hack because i wanted to see 'Thread Closed' with no link, instead of the link 'Post A Reply' that points to a VB error message, when the thread is closed.

Update
at Jawelin's request, i enabled the posting on a Closed Thread for admins and mods only. for those of you who installed already this hack, read Post #9.

Show Your Support

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

Comments
  #2  
Old 01-21-2002, 01:26 PM
Shenlong's Avatar
Shenlong Shenlong is offline
 
Join Date: Nov 2001
Location: Manhattan, New York
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sounds good, installing now, infact, sounds excellent
Reply With Quote
  #3  
Old 01-21-2002, 01:34 PM
Shenlong's Avatar
Shenlong Shenlong is offline
 
Join Date: Nov 2001
Location: Manhattan, New York
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BUG!!!!

it only removes the link from the top, the link on the bottom is still there. so the top table works but the bottom still has the closed link
Reply With Quote
  #4  
Old 01-21-2002, 01:41 PM
Shenlong's Avatar
Shenlong Shenlong is offline
 
Join Date: Nov 2001
Location: Manhattan, New York
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it, when u DL the script, u'll see this step:

Quote:
03. Open showthread template and find the code:
code:
------------------------------------
<a href="newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid"><img src="$replyclose" border="0" alt="Post A Reply"></a>
------------------------------------

Replace it with:
code:
------------------------------------
$replyopenclosed
------------------------------------
Simply do that twice and it will work!
Reply With Quote
  #5  
Old 01-22-2002, 01:40 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the info is ok.. i think. i said in the info file this:
replace the code [...] with the variable [...]

well the code is repeated identicaly 2 times on that template page so i never thought to mention it that you have to replace it twice.
anyway Shenlong said it here... so there is no need to edit the file. thanks for taking the time to evaluate it. is a very simple hack, that took me 5min to make it. it took me more to make the actual cosmetics on the template installer-remover file.

since i broke the ice with my first hack, please click the I INSTALLED THIS FILE button. thanks for your time, and post your comments.
Reply With Quote
  #6  
Old 01-28-2002, 10:45 AM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by nakkid
This hack will remove the Reply link and replace it with the threadclosed.gif image only.
I did this hack because i wanted to see 'Thread Closed' with no link, instead of the link 'Post A Reply' that points to a VB error message, when the thread is closed.
Very interesting. But when the reader of a closed post is Admin/Mod, that link make possible to reply the message without opening and reclosing it later.
Does your hack differentiate between users this way ?

Thanks.
Reply With Quote
  #7  
Old 01-28-2002, 11:24 PM
69-FLy-gUy's Avatar
69-FLy-gUy 69-FLy-gUy is offline
 
Join Date: Oct 2001
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok. I went to uninstall this, and now even when a thread is closed, it shows taht it is open. it wont show the closed thread icon.. Can you help me?

Ciao

-Trips
Reply With Quote
  #8  
Old 01-31-2002, 09:03 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Jawelin Very interesting. But when the reader of a closed post is Admin/Mod, that link make possible to reply the message without opening and reclosing it later.
Does your hack differentiate between users this way ?
Thanks.
i will add the mod to the hack. check this thread tomorrow.

69-FLy-gUy, can you be more specific? to uninstall the hack, simply follow the instructions in reverse. this hack does not modify any of the VB functions.
Reply With Quote
  #9  
Old 01-31-2002, 10:24 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok Jawelin i updated the file.
for those of you who installed already the hack, do this:

01. open showthread.php and find the code:
PHP Code:
if ($thread[open]) {
  eval(
"\$replyopenclosed = \"".gettemplate("showthread_replyopen")."\";");
} else {
  eval(
"\$replyopenclosed = \"".gettemplate("showthread_replyclosed")."\";");

replace it with:
PHP Code:
if ($thread[open]) {
  eval(
"\$replyopenclosed = \"".gettemplate("showthread_replyopen")."\";");
} else {
  if (
ismoderator($thread[forumid],'canopenclose')) {
    eval(
"\$replyopenclosed = \"".gettemplate("showthread_replyclosedmod")."\";");
  } else {
    eval(
"\$replyopenclosed = \"".gettemplate("showthread_replyclosed")."\";");
  }

02. run one more time the tplopcl.php file to install the 3rd template.
Reply With Quote
  #10  
Old 01-31-2002, 08:41 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by nakkid
ok Jawelin i updated the file.
Thanks. That make the difference between a professional hacker and a lonely coder!
Thanks a lot for sharing your work.
I'll install asap.
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 07:56 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.04384 seconds
  • Memory Usage 2,303KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_php
  • (4)bbcode_quote
  • (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
  • (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
  • (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