Jump to content

spike-spiegel

Members
  • Posts

    20
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

spike-spiegel's Achievements

Member

Member (2/5)

0

Reputation

  1. I need something that: 1 - Tells the user that in order to download the file, he's got to insert his email. 2 - Send the download link with a random temporary url to his email, or at least something that sends a verification email, so after verifying, he can download the file from the site. Just like Template Monster does with their free templates.
  2. You mean there should be only left or right, and not both?
  3. Look http://lucrebem.com.br/empreendedorismo-online, my left side bar is below everything, I searched the whole css and can't seem to find a solution.
  4. I've been doing my homework for 2 days and still couldn't find a solution, there is this template that is a blogger template, I exported it from another blog, then it should be working, but it isn't. When I try to upload it I get the error: We were unable to save your template. Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly. XML error message: Content is not allowed in prolog. There were duplicated IDs, I changed them all, and still get the error. Checked the script with W3C, there were 36+ errors plus warnings, so I kept fixing each one, until I finally got only 2 errors and 6 warnings: Notes and Potential IssuesThe following notes and warnings highlight missing or conflicting information which caused the validator to perform some guesswork prior to validation, or other things affecting the output below. If the guess or fallback is incorrect, it could make validation results entirely incoherent. It is highly recommended to check these potential issues, and, if necessary, fix them and re-validate the document. Using experimental feature: HTML5 Conformance Checker. The validator checked your document with an experimental feature: HTML5 Conformance Checker. This feature has been made available for your convenience, but be aware that it may be unreliable, or not perfectly up to date with the latest development of some cutting-edge technologies. If you find any issues with this feature, please report them. Thank you. Missing "charset" attribute for "text/xml" document. The HTTP Content-Type header (text/xml) sent by your web browser (Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Firefox/24.0) did not contain a "charset" parameter, but the Content-Type was one of the XML text/* sub-types. The relevant specification (RFC 3023) specifies a strong default of "us-ascii" for such documents so we will use this value regardless of any encoding you may have indicated elsewhere. If you would like to use a different encoding, you should arrange to have your browser send this new encoding information. Character Encoding Override in effect! The detected character encoding "us-ascii" has been suppressed and "utf-8" used instead. Byte-Order Mark found in UTF-8 File. The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported. Conflict between Mime Type and Document Type The document is being served with the text/xml Mime Type which is not a registered media type for the Document Type. The recommended media type for this document is: Using a wrong media type for a certain document type may confuse the validator and other user agents with respect to the nature of the document, and you may get some erroneous validation errors. How to fix this problem? One of the following techniques should help: If you are serving a static file on a Web server, changing its extension should help. Use e.g .xhtml for XHTML or .mml for MathML. You may need to reconfigure your Web server. This Setting up MIME Types tutorial has instructions for Apache, Tomcat and IIS. If the document is generated dynamically, the scripting language should allow you to set up the mime type: this article on MIME Types and Content Negotiation has examples in PHP, Perl, and ASP. ↑ Top Validation Output: 2 Errors The preferred Content-Type for XHTML5 is application/xhtml+xml. The Content-Type was text/xml. ✉ Line 3, Column 6: Unnamespaced element html not allowed in this context. (Suppressing further errors from this subtree.) <html> ✉ Line 5, Column 48: undeclared element prefix in: b:include <b:include data='blog' name='all-head-content'/> Anyway, I don't think that's what's preventing the template from installing. This is the xml file: http://hidemyass.com/files/vIx1j/
  5. Thx for the reply. Yes, I thought about that before, but while searching on Google I saw some people saying to use ^ before the bot name (e.g. ^Googlebot) in order to block them, so.. So how do I allow those bots to pass and block any other one?
  6. My Rewrite condition doesn't work (htaccess)? I'm trying to allow only the bots bellow to access my site content, however, I'm receiving 403 error every time I try to submit a sitemap to Google webmaster tools. When I delete the rules, I stop getting the error. It's more like Googlebot is the wrong name of the bot.. IDK... What I need to do is to allow Googlebot, bing, yahoo and altavista, then block any other bot that tries to access the website. My rules are as follows: RewriteEngine on RewriteBase / -----> There are other rules here, just system related. <----- RewriteCond %{HTTP_USER_AGENT} Googlebot [OR] RewriteCond %{HTTP_USER_AGENT} Googlebot-2.1 [OR] RewriteCond %{HTTP_USER_AGENT} Googlebot-Mozilla-2.1 [OR] RewriteCond %{HTTP_USER_AGENT} Google-AdSense-2.1 [OR] RewriteCond %{HTTP_USER_AGENT} Googlebot-Image [OR] RewriteCond %{HTTP_USER_AGENT} AdsBot-Google [OR] RewriteCond %{HTTP_USER_AGENT} msnbot [OR] RewriteCond %{HTTP_USER_AGENT} AltaVista [OR] RewriteCond %{HTTP_USER_AGENT} Yahoo-Slurp [OR] RewriteCond %{HTTP_USER_AGENT} Alexa-1 [OR] RewriteCond %{HTTP_USER_AGENT} Alexa-2 [OR] RewriteCond %{HTTP_USER_AGENT} MSN-1.0 [OR] RewriteCond %{HTTP_USER_AGENT} Slurp RewriteRule .* - [F,L]
  7. I'm getting this error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '«»)' at line 3 My code: INSERT INTO hwkix_comprofiler_plugin (id, NAME, element, TYPE, folder, backend_menu, access, ordering, published, iscore, client_id, checked_out, params) VALUES (501, "Iframe Integration", "iframe", "user", "plug_iframe", "", 0, 100, 1, 1, 0, 0, ""«»); INSERT INTO hwkix_comprofiler_tabs (tabid, title, description, ordering, ordering_register, width, enabled, pluginclass, pluginid, FIELDS, params, sys, displaytype, POSITION, useraccessgroupid) VALUES (25, "Newsletter", "", 102, 10, 1, 1, "getIFrameTab", 501, 1, "", 1, "tab", "cb_tabmain", -2); Is it something to do with "", 0, 100, 1, 1, 0, 0, "???
  8. Here is a little video I created this week, made it with Flash, enjoy, comments are welcome http://www.youtube.com/watch?v=CFwy8FpfbKk
  9. Parcela means installment in english, the taxes are multiplied by avista (one time price) and divided by installments I guess. what I know is that it calcs 14 per 3 correctly, 140 per 3 correctly, but something like 999 / 3 won't calc correctly...
  10. There is this script that calculates a loan by dividing and raising taxes according to amount of installments. But it is calculating wrong, if you divide 140 for 3, it will work just fine, but if you do it with 999, it wont give the correct result: <script> function calcula(parcela){ var valor= parseFloat(document.getElementById("avista").value); var parcela= parseFloat(parcela); document.getElementById("resultado").value = (valor+50)*parcela; } </script> <font face="Verdana" size="2"> Digite aqui o valor do empréstimo:<br> <!-- Formata dados --> <script type="text/javascript"><!-- Original: Mario Costa (mariocosta@openlink.com.br) --> <!-- Bug fix: John Kiernan --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function currencyFormat(fld, milSep, decSep, e) { var isIE8 = false; if (window.ActiveXObject) { // IE // http://www.javascriptkit.com/javatutors/navigator.shtml if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x; var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number if (ieversion>= { isIE8 = true; } else if (ieversion>=7) { } else if (ieversion>=6) { } else if (ieversion>=5) { } } } var isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; if (isIE8 /*|| isChrome*/) { } else { var sep = 0; var key = ''; var i = j = 0; var len = len2 = 0; var strCheck = '0123456789'; var aux = aux2 = ''; var whichCode = (window.Event) ? e.which : e.keyCode; if (whichCode == 13) return true; // Enter if (whichCode == return true; // Delete (Bug fixed) key = String.fromCharCode(whichCode); // Get key value from key code if (strCheck.indexOf(key) == -1) return false; // Not a valid key len = fld.value.length; for(i = 0; i < len; i++) if ((fld.value.charAt(i) != '0') && (fld.value.charAt(i) != decSep)) break; aux = ''; for(; i < len; i++) if (strCheck.indexOf(fld.value.charAt(i))!=-1) aux += fld.value.charAt(i); aux += key; len = aux.length; if (len == 0) fld.value = ''; if (len == 1) fld.value = '0'+ decSep + '0' + aux; if (len == 2) fld.value = '0'+ decSep + aux; if (len > 2) { aux2 = ''; for (j = 0, i = len - 3; i >= 0; i--) { if (j == 3) { aux2 += milSep; j = 0; } aux2 += aux.charAt(i); j++; } fld.value = ''; len2 = aux2.length; for (i = len2 - 1; i >= 0; i--) fld.value += aux2.charAt(i); fld.value += decSep + aux.substr(len - 2, len); } return false; } } // End --> </script> <!-- Fim da formatação de dados --> <input type="text" id="avista"> <!-- onkeypress="return(currencyFormat(this,'',',',event))"> --> <br> <select name="parcelas" size="1" onchange="calcula(this.value)"> <option value="">Parcelas</option> <option value="0.3128">2x com juros de % ao mês.</option> <option value="0.2528">3x</option> <option value="0.1575">4x</option> <option value="0.1102">5x</option> <option value="0.1039">6x</option> <option value="0.1039">7x</option> <option value="0.1039">8x</option> <option value="0.1039">9x</option> <option value="0.1039">10x</option> <option value="0.1039">11x</option> <option value="0.1039">12x</option> </select> <br> <hr size="1" color="gray"> Resultado: <input type="text" id="resultado" readonly> </BODY> </HTML> Ps: I think it's a problem with document.getElementById("resultado").value = (valor+50)*parcela; the 50 part
  11. Well, the page is not displaying the sql results, perhaps there is something wrong in this line, but I still dont know how to fix: echo "<tr bgcolor=\"$col\"><td><a class=TN href=\"javascript:popUp('preview.php?uname=$a1[uname]&ename=$ename')\"> $a2[0] $a2[1]</a></td><td> $a1[clname] </td></tr>"; Is it the $a2[0] $a2[1] part? The code: { $q2 = "select fname, lname from job_seeker_info where uname = \"$a1[uname]\" "; $r2 = mysql_query($q2) or die(mysql_error()); $a2 = mysql_fetch_array($r2); if($col == "cococo") { $col = "dddddd"; } else { $col = "cococo"; } echo "<tr bgcolor=\"$col\"><td><a class=TN href=\"javascript:popUp('preview.php?uname=$a1[uname]&ename=$ename')\"> $a2[0] $a2[1]</a></td><td> $a1[clname] </td></tr>"; } If you want the full code, let me know.
  12. well, the commented start section was part of the problem. The other part was the /tmp/ folder cache, suddenly, that error described in my last message disappear, so that only means they answered my support ticket to clean the server cache. I've been trying to fix this issue during 3 free days, sleeping only 4 hours a day, and working the website aobut 13 hours a day. Thank you all for the great support, and I'm sorry if I offended someone sometime, cause I noticed some irritation with some of my sentences, it wasn't my intention to offend anyone, seriously, you know, text can be read by many ways. Before coming here, I searched the whole web for support, but your team was the only one who could fully support me. You guys are really php freaks, experts. And sorry for the bad english. See ya . Now I can rest in peace, oops, sleep.
  13. I uncommented the session start at main.php, the search worked, but the login still fails. and now I got this: Warning: session_start() [function.session-start]: open(/tmp/sess_d79b5ce9df3d41be643125fce72a29a1, O_RDWR) failed: Permission denied (13) in /home/balcaoce/public_html/jobseekers/accesscontrol.php on line 2
  14. When I say "I don't think so" I mean that the full code works just fine with the other path, seriously, I tested it, so that's not the code's fault, that's why I opened that other topic. What you mean with IS? Server?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.