Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-13-2003, 07:20 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default If no subject entered in post, default to "Re: Last subject entered"

I have my forum set up to automatically use

"Re: title of thread"

for the subject of each post entered after the original post. i am trying to make it so it defaults to

"Re: last subject entered"

So if the thread was titled

"Thread Title"

then the reply subject would default to

"Re: Thread Title"

but I want to make it so if someone puts in their own subject, then it would default to

"Re: Last subject"

Does that make sense? I also am wondering if it possible to show the subject of posts on the profile under last post, instead of the thread title where the post was made... Any suggestions?
Reply With Quote
  #2  
Old 02-23-2003, 08:20 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OOHHHHH!!! Somebody please at least point me in the right direction.

Please??????? :ermm:
Reply With Quote
  #3  
Old 03-06-2003, 06:36 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, does anybody know if this is possible? Is it hard? HELP!

:banana:
Reply With Quote
  #4  
Old 03-06-2003, 07:27 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:

In newreply.php, find:

PHP Code:
    $threadratingoption ''
and add this ABOVE it:

PHP Code:
   if ($postinfo[title]!="") {
     
$title="Re: ".unhtmlspecialchars($postinfo[title]);
   } else {
     
$title="Re: ".unhtmlspecialchars($thread[title]);
   }
     
$title str_replace("Re: Re: ""Re: "$title); 
Let me know if this is what you wanted.
Reply With Quote
  #5  
Old 03-06-2003, 07:33 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By the way, if you default to the last subject entered, that won't always work. You might be replying to a message at the beginning of a thread instead of the message with the last subject entered. Then it might not make sense.
Reply With Quote
  #6  
Old 03-06-2003, 12:15 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's sort of what I am trying to do.

Right now I have the newreply template with this in the title field:
Code:
<normalfont><input type="text" class="bginput" onFocus="this.value='';" 
onBlur="if (this.value=='') {this.value='Re: $thread[title]';}" type="text" 
name="title" value="Re: $thread[title]" size="40" maxlength="85" tabindex="1"></normalfont>
The way I really want this to work is probably more than you are willing to do, but just to give you an example, I want this to work is as follows:

Someone starts a thread called "test"

Someone posts a reply to it and titles it "yeah"

Somewhere in the postbit there would be a small link to "reply" to the individual thread.

when clicking this, it would automatically default the title of your thread to "Re: test" or "Re: yeah" depending on which one you clicked on.

Then if somebody just used the normal reply button at the botton of the page, it would simply be titled "Re: yeah" since that was the last title of the last post.

Then of course if someone typed in their own title in any of these occations, their own title would take priority over the default titles.

As you can see in the code I entered above, that automatically prepopulates the title with the main title of the thread. I would like for this to prepopulate based on the factors that I mentioned here.

If you, or anyone else wants to make this hack, I'd really appreciate it. If not then I'll understand. It does seem a little hard but you tell me. Thanks.

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 09:44 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.04054 seconds
  • Memory Usage 2,214KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete