vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Prevent Doubleposting (https://vborg.vbsupport.ru/showthread.php?t=40145)

Xenon 06-24-2002 03:21 PM

hmm, which version of vb are you using?

try just change the $title in $subject in my replacements and implement it.

Link14716 06-24-2002 03:24 PM

Nice hack..... Thanks ;)

Smoothie 06-24-2002 04:30 PM

I'm finding the same as X-Fan. We should change $subject to $title?

Xenon 06-24-2002 04:43 PM

no change the $title in my instructions into $subject :)

i think it should work, but i don't really know, here at my files its $title :)

Smoothie 06-24-2002 05:05 PM

To change the time that the post would be new "new" instead of added to, is this the line that needs to be changed?
PHP Code:

$lastpost[dateline])>3600 


X-Fan 06-24-2002 11:54 PM

Well I don't really want to go installing a hack and changing a string value if noone is certain that it will work or not!

Can someone please check it first on a test board to make sure that changing $title to $subject works?

Xenon 06-25-2002 02:01 PM

@Smothie yes :)

@X-Fan: just make a backup of your newreply.php, if it doesn't work, you can upload your backup agin without any problems.

tell me what vb-version you use, because i couldn't find $subject in my newreply.php (except of the one which is used to send email to mods)

X-Fan 06-25-2002 02:14 PM

I'm using v2.2.5 if that helps any.

Xenon 06-25-2002 02:22 PM

arg, problems on this server now, can't acces to page 2 anymore....

hmm, i also use v2.2.5.
this is the part of the original file:
PHP Code:

if ($attachmentid and !$foruminfo[moderateattach]) {
        
$DB_site->query("UPDATE thread SET attach = attach + 1 WHERE threadid = '$threadid'");
      }
      
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($title))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','$visible')");
      
$postid=$DB_site->insert_id();

      
indexpost($postid,0); 

if every $title is canged in $subject in your file, then it won' be a problem.
just replace evere $title in my hack with $subject. but i'm wondering why you have differen files then.

X-Fan 06-25-2002 02:32 PM

I've got that in my newreply.php as well. My board is a heavily-hacked one, so I'm wondering if it may be another hack that has changed that line?


All times are GMT. The time now is 11:57 PM.

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.01134 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete