collapse

Author Topic: Edit screen "Connection Problems"  (Read 605 times)

0 Members and 1 Guest are viewing this topic.

Offline Costa

  • Bystander
  • *
  • Posts: 3
  • Don't feed the trolls
  • OS:
  • Windows XPWindows XP
  • Browser:
  • Firefox 3.5.6Firefox 3.5.6
    • View Profile
    • In4tek!
Edit screen "Connection Problems"
« on: December 30, 2009, 02:09:16 PM »
When the SMF forum for some reason can not connect to the database, gives the following screen in your browser.



But you can change it for the message you want ;D
Simple and practical.

You just need to modify a file.
./Sources/Subs-Auth.php
Code: (Find) [Select]
// What to do?  Language files haven't and can't be loaded yet...
else
echo '



Connection Problems


Connection Problems


Sorry, SMF was unable to connect to the database.  This may be caused by the server being busy.  Please try again later.

';

Is just edit as they wish.
Explain for those who do not know HTML

Connection Problems </ title></strong><br> This is the page title, which appears in the bar of your browser<br> <br> <strong><body><br> <h3> Connection Problems </ h3><br> Sorry, SMF was unable to connect to the database.  This may be caused by the server being busy.  Please try again later. Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.<br> </body></strong><br> This is the message that appears on the screen.<br> <br> Farewell </div> </div> </div> <div class="moderatorbar"> <div class="smalltext modified" id="modified_15135"></div> <div class="smalltext reportlinks"> <img src="/GMForum/Themes/Whisper_Gray/images/ip.gif" alt="" border="0">Logged </div> <div class="signature" id="msg_15135_signature"> <table class="bbc_table"> <tr> <td> <strong>Costa</strong><br> SMF Lang Moderator<br> Dream Portal Lang Coordinator</td> <td> <strong>My Links</strong><br> In4tek<br> Dream Portal<br> InfoDZ SMF<br> Planet SMF</td> </tr> </table> </div> </div> </div> <span class="botslice"><span></span></span> </div> <hr class="post_separator"> <a id="msg15137" name="msg15137"></a><a id="new" name="new"></a> <div class="windowbg2"> <span class="topslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <img src="/GMForum/Themes/Whisper_Gray/images/useroff.gif" alt="Offline"> <a href="/GMForum/index.php?action=profile;u=8" title="View the profile of SoLoGHoST">SoLoGHoST</a> </h4> <ul class="reset smalltext" id="msg_15137_extra_info"> <li class="title">SMF MOD Expert!</li> <li class="postgroup">Connoisseur</li> <li class="stars"><img src="/GMForum/Themes/Whisper_Gray/images/banners/member6.png" alt="*" border="0"></li> <li class="avatar" style="overflow: auto;"><a href="/GMForum/index.php?action=profile;u=8"><img class="avatar" src="/GMForum/GMayhem-Avatars/avatar_8_1263802547.png" alt="" border="0"></a></li> <li class="postcount">Posts: 2375</li> <li class="margintop"><b>OS:</b></li> <li> <img src="/GMForum/Themes/Whisper_Gray/images/os_browser_detection/icon_vista.png" align="top" alt="Windows Vista/Server 2008">Windows Vista/Server 2008</li> <li><b>Browser:</b></li> <li> <img src="/GMForum/Themes/Whisper_Gray/images/os_browser_detection/icon_firefox.png" align="top" alt="Firefox 3.0.16">Firefox 3.0.16</li> <li class="profile"> <ul> <li><a href="/GMForum/index.php?action=profile;u=8"><img src="/GMForum/Themes/Whisper_Gray/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" border="0"></a></li> </ul> </li> </ul> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon"><img src="/GMForum/Themes/Whisper_Gray/images/post/xx.gif" alt="" border="0"></div> <h5 id="subject_15137"><a href="/GMForum/index.php/topic,1185.msg15137.html#msg15137" rel="nofollow">Re: Edit screen "Connection Problems"</a></h5> <div class="smalltext"> « <strong>Reply #1 on:</strong> December 30, 2009, 03:08:28 PM » </div> <div id="msg_15137_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_15137">Thanks for adding a neat little hack in here Costa.<br> <br> Good STuFF!<br> <br> Cheers <img src="/GMForum/Smileys/BlueDude/smiley.png" alt=":)" title="Smiley" border="0" class="smiley"> </div> </div> </div> <div class="moderatorbar"> <div class="smalltext modified" id="modified_15137"></div> <div class="smalltext reportlinks"> <img src="/GMForum/Themes/Whisper_Gray/images/ip.gif" alt="" border="0">Logged </div> <div class="signature" id="msg_15137_signature"> <div align="center"><img src="/GMForum/index.php?sigrotator=mysig;sig=81261475406;name=GraphicsMayhem" alt="" width="500" height="125" class="bbc_img resized"></div> </div> </div> </div> <span class="botslice"><span></span></span> </div> <hr class="post_separator"> </form> </div> <a id="lastPost" name="lastPost"></a> <div class="pagesection"> <div class="buttonlist align_right"> <ul> <li><a href="/GMForum/index.php?action=emailuser;sa=sendtopic;topic=1185.0"><span>Send this topic</span></a></li> <li><a href="/GMForum/index.php?action=printpage;topic=1185.0" rel="new_win nofollow"><span class="last">Print</span></a></li> </ul> </div> <div class="pagelinks align_left"> Pages: [<strong>1</strong>]   <a href="#top"><strong>Go Up</strong></a> </div> <div class="nextlinks_bottom"> <a href="/GMForum/index.php/topic,1185.0/prev_next,prev.html#new">« previous</a> <a href="/GMForum/index.php/topic,1185.0/prev_next,next.html#new">next »</a> </div> </div> <div class="navigate_section"> <ul> <li> <a href="/GMForum/index.php?action=forum"><span>Graphics Mayhem</span></a> »</li> <li> <a href="/GMForum/index.php?action=forum#c7"><span>Development Centre</span></a> »</li> <li> <a href="/GMForum/index.php/board,94.0.html"><span>Simple Machines Forum</span></a> »</li> <li> <a href="/GMForum/index.php/board,95.0.html"><span>Hacks & Tricks</span></a> »</li> <li class="last"><a href="/GMForum/index.php/topic,1185.0.html"><span>Edit screen "Connection Problems"</span></a></li> </ul> </div> <div id="moderationbuttons"></div> <div class="plainbox" style="text-align: right;" id="display_jump_to">   </div> <br class="clear"> <form action="http://graphicsmayhem.com/GMForum/index.php?action=spellcheck" method="post" accept-charset="UTF-8" name="spell_form" id="spell_form" target="spellWindow"> <input type="hidden" name="spellstring" value=""> </form> <script type="text/javascript" src="/GMForum/Themes/default/scripts/spellcheck.js"></script> <script type="text/javascript" src="/GMForum/Themes/default/scripts/topic.js"></script> <script type="text/javascript"> <!-- // --><![CDATA[ if ('XMLHttpRequest' in window) { var oQuickModify = new QuickModify({ sScriptUrl: smf_scripturl, bShowModify: true, iTopicId: 1185, sTemplateBodyEdit: '\n\t\t\t\t\t\t\t\t<div id="quick_edit_body_container" style="width: 90%">\n\t\t\t\t\t\t\t\t\t<div id="error_box" style="padding: 4px;" class="error"><' + '/div>\n\t\t\t\t\t\t\t\t\t<textarea class="editor" name="message" rows="12" style="width: 100%; margin-bottom: 10px;" tabindex="1">%body%<' + '/textarea><br />\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="b4d028d7d" value="ecda3db267f0256d104bb3414abe038a" />\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="topic" value="1185" />\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="msg" value="%msg_id%" />\n\t\t\t\t\t\t\t\t\t<div class="righttext">\n\t\t\t\t\t\t\t\t\t\t<input type="submit" name="post" value="Save" tabindex="2" onclick="return oQuickModify.modifySave(\'ecda3db267f0256d104bb3414abe038a\', \'b4d028d7d\');" accesskey="s" class="button_submit" />  <input type="button" value="Spell Check" tabindex="3" onclick="spellCheck(\'quickModForm\' . \'message\');" class="button_submit" />  <input type="submit" name="cancel" value="Cancel" tabindex="4" onclick="return oQuickModify.modifyCancel();" class="button_submit" />\n\t\t\t\t\t\t\t\t\t<' + '/div>\n\t\t\t\t\t\t\t\t<' + '/div>', sTemplateSubjectEdit: '<input type="text" style="width: 90%;" name="subject" value="%subject%" size="80" maxlength="80" tabindex="5" class="input_text" />', sTemplateBodyNormal: '%body%', sTemplateSubjectNormal: '<a hr' + 'ef="http://graphicsmayhem.com/GMForum/index.php' + '?topic=1185.msg%msg_id%#msg%msg_id%" rel="nofollow">%subject%<' + '/a>', sTemplateTopSubject: 'Topic: %subject%  (Read 605 times)', sErrorBorderStyle: '1px solid red' }); aJumpTo[aJumpTo.length] = new JumpTo({ sContainerId: "display_jump_to", sJumpToTemplate: "<label class=\"smalltext\" for=\"%select_id%\">Jump to:<" + "/label> %dropdown_list%", iCurBoardId: 95, iCurBoardChildLevel: 1, sCurBoardName: "Hacks & Tricks", sBoardChildLevelIndicator: "==", sBoardPrefix: "=> ", sCatSeparator: "-----------------------------", sCatPrefix: "", sGoButtonLabel: "go" }); aIconLists[aIconLists.length] = new IconList({ sBackReference: "aIconLists[" + aIconLists.length + "]", sIconIdPrefix: "msg_icon_", sScriptUrl: smf_scripturl, bShowModify: true, iBoardId: 95, iTopicId: 1185, sSessionId: "ecda3db267f0256d104bb3414abe038a", sSessionVar: "b4d028d7d", sLabelIconList: "Message Icon", sBoxBackground: "transparent", sBoxBackgroundHover: "#ffffff", iBoxBorderWidthHover: 1, sBoxBorderColorHover: "#adadad" , sContainerBackground: "#ffffff", sContainerBorder: "1px solid #adadad", sItemBorder: "1px solid #ffffff", sItemBorderHover: "1px dotted gray", sItemBackground: "transparent", sItemBackgroundHover: "#e0e0f0" }); } // ]]> </script> <script type="text/javascript"> <!-- // --><![CDATA[ var verificationpostHandle = new smfCaptcha("http://graphicsmayhem.com/GMForum/index.php?action=verificationcode;vid=post;rand=af79b30c5c6b9d537b3d9b0dab12a8b1", "post", 1); // ]]> </script><br> </td> <td id="sp_right" width="175"> <h3 class="catbg"> <span class="left"></span> <a class="sp_float_right" style="padding-top: 7px;" href="javascript:void(0);" onclick="sp_collapseBlock('53')"><img id="sp_collapse_53" src="/GMForum/Themes/Whisper_Gray/images/collapse.gif" alt="*" name="sp_collapse_53"></a> Search</h3> <div id="sp_block_53"> <div class="windowbg2"> <span class="topslice"><span></span></span> <div class="sp_block"> <form action="http://graphicsmayhem.com/GMForum/index.php?action=search2" method="post" accept-charset="UTF-8"> <div class="sp_center"> <input type="text" name="search" value="" class="sp_search"><br> <input type="submit" name="submit" value="Search"><input type="hidden" name="advanced" value="0"> </div> </form> </div> <span class="botslice"><span></span></span> </div> </div> <br> <h3 class="catbg"> <span class="left"></span> <a class="sp_float_right" style="padding-top: 7px;" href="javascript:void(0);" onclick="sp_collapseBlock('52')"><img id="sp_collapse_52" src="/GMForum/Themes/Whisper_Gray/images/collapse.gif" alt="*" name="sp_collapse_52"></a> Latest Activity.</h3> <div id="sp_block_52"> <div class="windowbg2"> <span class="topslice"><span></span></span> <div class="sp_block"> <a href="/GMForum/index.php/topic,81.msg22910/topicseen.html#new">A GM Wallpaper</a> <span class="smalltext">by <a href="/GMForum/index.php?action=profile;u=25" style="color: #ff0000;">NerdBoy</a><br> [<strong>Yesterday</strong> at 07:31:24 AM]</span><br> <hr> <a href="/GMForum/index.php/topic,1725.msg22906/topicseen.html#new">Next Topic Page 1.2</a> <span class="smalltext">by <a href="/GMForum/index.php?action=profile;u=25" style="color: #ff0000;">NerdBoy</a><br> [December 15, 2010, 06:28:37 PM]</span><br> <hr> <a href="/GMForum/index.php/topic,1693.msg22902/topicseen.html#new">Windows 8 Wallpaper Concepts</a> <span class="smalltext">by <a href="/GMForum/index.php?action=profile;u=25" style="color: #ff0000;">NerdBoy</a><br> [December 14, 2010, 09:31:08 PM]</span><br> <hr> <a href="/GMForum/index.php/topic,1724.msg22895/topicseen.html#new">Who can make me a custom mod?</a> <span class="smalltext">by <a href="/GMForum/index.php?action=profile;u=510">VintageJetBoats</a><br> [December 13, 2010, 10:35:47 AM]</span><br> <hr> <a href="/GMForum/index.php/topic,1719.msg22885/topicseen.html#new">December 2010 Uptop Logo Contest</a> <span class="smalltext">by <a href="/GMForum/index.php?action=profile;u=25" style="color: #ff0000;">NerdBoy</a><br> [December 12, 2010, 07:01:48 PM]</span><br> <hr> <a href="/GMForum/index.php/topic,1721.msg22866/topicseen.html#new">Icon request</a> <span class="smalltext">by <a href="/GMForum/index.php?action=profile;u=25" style="color: #ff0000;">NerdBoy</a><br> [December 10, 2010, 06:39:27 PM]</span><br> <hr> <a href="/GMForum/index.php/topic,925.msg22864/topicseen.html#new">Ultimate Weather</a> <span class="smalltext">by <a href="/GMForum/index.php?action=profile;u=25" style="color: #ff0000;">NerdBoy</a><br> [December 10, 2010, 12:22:41 PM]</span><br> <hr> <a href="/GMForum/index.php/topic,852.msg22862/topicseen.html#new">General Wallpapers</a> <span class="smalltext">by <a href="/GMForum/index.php?action=profile;u=25" style="color: #ff0000;">NerdBoy</a><br> [December 10, 2010, 12:17:18 PM]</span><br> <hr> <a href="/GMForum/index.php/topic,1661.msg22845/topicseen.html#new">Logo request</a> <span class="smalltext">by <a href="/GMForum/index.php?action=profile;u=25" style="color: #ff0000;">NerdBoy</a><br> [December 09, 2010, 08:26:51 AM]</span><br> <hr> <a href="/GMForum/index.php/topic,1720.msg22795/topicseen.html#new">Nerdboy's Birthday</a> <span class="smalltext">by <a href="/GMForum/index.php?action=profile;u=25" style="color: #ff0000;">NerdBoy</a><br> [December 07, 2010, 06:02:44 AM]</span><br> <hr> <a href="/GMForum/index.php/topic,1644.msg22770/topicseen.html#new">Happy Birthday Shortie</a> <span class="smalltext">by <a href="/GMForum/index.php?action=profile;u=38" style="color: #00ffff;">MJCSD</a><br> [December 05, 2010, 08:48:02 PM]</span><br> </div> <span class="botslice"><span></span></span> </div> </div> <br> </td> </tr> </table> </div> </div> </div> </div> </div> <div class="catbot-l"> <div class="catbot-r"> <div class="catbot-m"></div> </div> </div> <div class="cattop-l"> <div class="cattop-r"> <div class="cattop-m"></div> </div> </div> <div class="catmid-l"> <div class="catmid-r"> <div class="catmid-m"> <div id="footer_section"> <div class="frame"> <ul class="reset"> <li class="copyright"><span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;">Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC<br> SimplePortal 2.3.2 © 2008-2010, SimplePortal</span></li> <li><a href="/GMForum/index.php?action=sitemap"><span>Sitemap</span></a></li> <li><span>XHTML</span></li> <li><a id="button_rss" href="/GMForum/index.php?action=.xml;type=rss" class="new_win" name="button_rss"><span>RSS</span></a></li> <li class="last"><a id="button_wap2" href="/GMForum/index.php" class="new_win" name="button_wap2"><span>WAP2</span></a></li> <li> <br> <a href="/">Whisper Gray Designed By Shortie 2010</a> </li> </ul> <p>Page created in 0.1 seconds with 23 queries.</p> </div> </div> </div> </div> </div> <div class="catbot-l"> <div class="catbot-r"> <div class="catbot-m"></div> </div> </div> </div> </body> </html>