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 03-07-2005, 10:47 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default allow users to send new pm's with no title

i was gonna do thsi myself thinking it'd be as simple as putting
PHP Code:
    if (!isset($pm['title']))
    {
        
$pm['title'] = "No Subject";
    } 
before the query but then i noticed that theirs some jscript in the template and i have no idea what's going on there so i'm gonna have to request it in the hope that someone else who know jscript wants to have a go :nervous:
Reply With Quote
  #2  
Old 03-07-2005, 12:48 PM
Scrub's Avatar
Scrub Scrub is offline
 
Join Date: Oct 2001
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, this is what I've got so far, not sure if it is what you are wanting..

Open up private.php

Find:
PHP Code:
if ($pm['title'] == '' OR $pm['message'] == '')
        {
            eval(
'$errors[] = "' fetch_phrase('nosubject'PHRASETYPEID_ERROR) . '";');
        } 
Should be around line: 866-869

Replace the above with:
PHP Code:
        if ($pm['message'] == '')
        {
            eval(
'$errors[] = "' fetch_phrase('nosubject'PHRASETYPEID_ERROR) . '";');
        } 
Find:
PHP Code:
$title addslashes(htmlspecialchars_uni(fetch_censored_text($pm['title']))); 
That should be around line 1065

Below that add:
PHP Code:
                if ($title == ''
                     { 
                          
$title "No Subject"
                      } 
Save private.php.

Now go into your templates and open up pm_newpm

Find:
HTML Code:
formname.title.value
Change to
HTML Code:
0
I tested it out and it does work.
Reply With Quote
  #3  
Old 03-07-2005, 12:56 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great work, works on firefox, not sure about ie lol
Reply With Quote
  #4  
Old 03-07-2005, 01:00 PM
Scrub's Avatar
Scrub Scrub is offline
 
Join Date: Oct 2001
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

IE 6.0 here.
Reply With Quote
  #5  
Old 03-07-2005, 07:33 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To make this hack complete how can you set it up so it says No Subject when sent???
Reply With Quote
  #6  
Old 03-08-2005, 12:13 AM
Scrub's Avatar
Scrub Scrub is offline
 
Join Date: Oct 2001
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Explain? If you send a message without a subject, it will currently put "No Subject" in the subject line while inserting the values into the database. If that is what you are needing, then it already does that.

Or are you wanting it to do something else?
Reply With Quote
  #7  
Old 03-08-2005, 07:58 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Scrub
Explain? If you send a message without a subject, it will currently put "No Subject" in the subject line while inserting the values into the database. If that is what you are needing, then it already does that.

Or are you wanting it to do something else?
oh if it does that alread that is cool. I am on a site that has a poor note system but one thing that is cool is if you send a note (PM for us) and dont have a title or subject... it will say no subject when the user goes to their inbox. The reason this is cool it shows the user the person who sent it didnt put a subject.

Its good to know aparently.
Reply With Quote
  #8  
Old 03-13-2005, 08:18 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

3.0.7 this don't work, i can't find "formname.title.value" at all.
Reply With Quote
  #9  
Old 03-15-2005, 09:42 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this worked it was there after all
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 06:23 PM.


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.07026 seconds
  • Memory Usage 2,254KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_html
  • (5)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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