If you are seeing this message, it is possible the page did not load properly. Please hit reload/refresh on your browser.
If you still see this message, you probably do not have a browser that supports web standards, although its content is accessible to any browser or Internet device.

Cool Tips & Tricks Cool Tips & Tricks

Help Communities:
Help Forums Bug Base
<< Prev Topic | Next Topic >>
Cool Tips & Tricks ::: Javascripts and Java ::: Replace Blanks And Re:'s In Subject Heading
New Topic    Add Reply
Topic: Replace Blanks And Re:'s In Subject Heading  (?)  Click to receive email notification of replies Click to stop receiving email notification of replies email this topic to a friend
Southern Crane

Registered User
Posts: 24
Posted: 12/6/05 12:02 pm    
Replace Blanks And Re:'s In Subject Heading
Wasn't sure if there's an existing script that I just can't find or if this should be a new request...

I'm reducing the security level on my board to allow for visitors to post, affecting the subject headings in replied posts, leading to either blank subjects or long strings of Re:'s. :x

Is there a script that replaces blank subject headings in the reply screens of posting visitors with the subject of the post being replied to?


  reply to this message

Nutrocker

ezboard Moderator
ezSupporter
Posts: 16634
Posted: 12/6/05 3:27 pm    
Re: Replace Blanks And Re:'s In Subject Heading
I don't think such a script exisits.


  reply to this message

Te1emachus

Registered User
Posts: 895
Posted: 12/6/05 5:06 pm    
Re: Replace Blanks And Re:'s In Subject Heading
Try this in your Custom Footer:
 
<script type="text/javascript">
if (document.getElementsByName("subject")){
        document.getElementsByName("subject")[0].value = document.title.replace(" - www.ezboard.com","").replace(/(re\:)+/ig,"Re\:");
}
</script>


  reply to this message

Southern Crane

Registered User
Posts: 24
Posted: 12/7/05 7:46 am    
Re: Replace Blanks And Re:'s In Subject Heading
Thanks! It works! :lol


  reply to this message

bluediver2

Registered User
ezSupporter
Posts: 19
Posted: 12/7/05 12:34 pm    
Re: Replace Blanks And Re:'s In Subject Heading
I have a similar problem and can probably use this code with mods, but I'm not javascript savvy.

Okay, I have people who don't log on before posting and they're too lazy to type in a title, LOL, so they type in three dots or three sss's, like so:

...

or

sss

Which results in a lot of posts that start with:

Re:...

or

Re: sss

Very annoying!

Is there a way I can replace those with the real subject line?

Thanks!


  reply to this message

bluediver2

Registered User
ezSupporter
Posts: 20
Posted: 12/9/05 12:26 pm    
Re: Replace Blanks And Re:'s In Subject Heading
Just bumping this up. :)

I figure it should be easy enough to do, but I'm not javascript-literate, so I don't know how to modify the code.


  reply to this message

Click to receive email notification of replies Click to stop receiving email notification of replies email this topic to a friend

New Topic    Add Reply

jump to:
Topic Control Image::: Topic Commands
<< Prev Topic | Next Topic >>

Icon Legend

reply button:::Reply to Post Button   edit button:::Edit Post Button  delete button:::Delete Post Button (Moderator Only)

subscribe/unsubscribe to thread button:::Subscribe to Thread Button   email to friend button:::Email to Friend Button  



- Cool Tips & Tricks - Javascripts and Java -

Communitiesezboard Help Communities:

Help Forums Help Forums Bug Base Bug Base





Powered By ezboard® Ver. 7.32
Copyright ©1999-2007 ezboard, Inc.