vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Thread Reply Subject! (https://vborg.vbsupport.ru/showthread.php?t=41482)

Webmasta XT 07-24-2002 09:18 PM

Thread Reply Subject!
 
ok, what I am looking for is, like, say if a person replies to a thread, "HE CANNOT HAVE HIS OWN TITLE" every post in that thread has the same title as the first post.. so for example this is the first posts Subject

1st Post "Thread Reply Subject!"
The second posts subject should look like this
2nd Post" Re: Thread Reply Subject!"

and it goes on for all the posts in the thread.. even if ppl use Quick Reply Box.. :squareeyed:

Chris M 07-24-2002 09:21 PM

Hmmm...

What exactly do you mean? I dont understand...

Satan

Xenon 07-24-2002 09:25 PM

i don't know if it works with quick reply hack, because i haven't installed it
ash over my head

but it sould work for the normal reply:

open newreply.php find
PHP Code:

$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')"); 

replace it with:
PHP Code:

$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','Re: ".$threadinfo[title]."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','$visible')"); 

not tested but should work

Webmasta XT 07-24-2002 09:33 PM

it doesn't work at all...
Code:

Parse error: parse error in /home/virtual/site1/fst/var/www/html/newreply.php on line 282
:surprised:

Webmasta XT 07-24-2002 09:35 PM

what I mean is, all the posts in a thread, should have the same subject.. if the first posts subject is "Hello World" the second and the other posts subject should be "Re: Hello World"

Xenon 07-24-2002 09:38 PM

try it again i've just forgot an $ before threadinfo[title] ;)

Webmasta XT 07-24-2002 09:51 PM

yes it works..

Webmasta XT 07-24-2002 09:53 PM

both with Quick Reply and normal..

Webmasta XT 07-24-2002 10:02 PM

Thank You Xenon

Xenon 07-24-2002 10:09 PM

:)
you're welcome


All times are GMT. The time now is 09:27 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.01131 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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