vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Display popup with the error message instead of saving the error message as a result (https://vborg.vbsupport.ru/showthread.php?t=257360)

jscieza 01-18-2011 04:05 PM

Display popup with the error message instead of saving the error message as a result
 
Hello,

I'm using this product: https://vborg.vbsupport.ru/showthread.php?t=243913

There is an option called "Maximum characters in Status Updates". It is currently set to 140 and it works in a bad way because I'm allowed to enter more than 140 characters in the status box and when I click "Save" instead of rejecting the status and display an error message like this: "You can only enter $max_chars per status" it is saving the error message as the new status of the member.

I have tried to fix this by chaning this in file 'vbstatus/vbstatus_class.php':

Code:

                if($charcount>$vbulletin->options['vbstatus_maxchars'])
                {
                        return '[Too Long]';
                }


To:

Code:

die("my own error message");
print "my own error message";
eval(standard_error("my own error message"));


And none of these three ways was successful. The user isn't getting the error message. So I got an idea! When you're creating a new thread and you didn't enter anything in the title box, you get a popup error message. I believe that a popup will work here too! But I have no idea of how to display a popup error message. Any advice?

Thank you,
Jonathan

jscieza 01-20-2011 06:09 PM

Any advice will be more than welcome!

Lynne 01-20-2011 07:37 PM

Questions regarding modifications are only answered in the modification thread. So, you need to post this question in there.

jscieza 01-21-2011 02:08 AM

Hi Lynne,

I have posted in the product thread three days ago but the developer appears not to provide support to his modification so that's why I opted to open a new thread here.

Thank you,
Jonathan

Lynne 01-21-2011 02:19 AM

Then hopefully somebody else in the modification thread can help you. We can't help you out here because we don't know the modification at all. We don't know the code or how it works or anything about it. Users who view that thread are much more able to help than anybody out here.


All times are GMT. The time now is 06:50 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.01078 seconds
  • Memory Usage 1,718KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete