Jump to content

redwall_hp

Members
  • Content Count

    136
  • Joined

  • Last visited

Community Reputation

0 Neutral

About redwall_hp

  • Rank
    Member
  1. redwall_hp

    How SMF Works?

    The forum software, I would assume: http://simplemachines.org/
  2. You could try this: RewriteEngine OnRewriteCond %{HTTP_HOST} ^www.example.com [NC] RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]RewriteCond %{REQUEST_FILENAME} -f [OR]RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^(.+) - [PT,L]RewriteRule ^(.*) index.phpAddHandler php5-script .php
  3. Try this: <?php$string = file_get_contents(filename.txt);$string = nl2br($string);$string = str_replace("<br />\r\n<br />","</p>\n<p>,$string);?> There might be a carriage return as well as a newline in there.
  4. EDIT: Oops, never mind. I missed your last reply, Manik. Disregard this post.
  5. Well, I did say "built-in" was a bad choice of words, didn't I? :)That looks like quite a world of difference between MySQLi and it's predecessor. I'll have to read up on it more and consider using it in future projects.
  6. @boen_robot: By "built-in" (bad choice of words, I know), I meant the MySQL/MySQLi ones, such as mysql_query(). Most PHP install packages include MySQL extensions, do they not?@Synook: That it does, but it acts as a somewhat friendlier middleman, which theoretically could save time in development. I don't really use ezSQL myself, unless of course I'm working with WordPress, as I stated earlier.Generally I use the "mysql_" functions, though I've been looking at the MySQLi ones, and wondering about their advantages/disadvantages.
  7. Okay, just to be clear, I found a solution. Apparently the checkbox has an id of subscribe, which is a dupe of another element's id. So I changed the id of my other element, and the accompanying CSS, and voila, no positioning issue. I didn't know that the checkbox, which was added by one of the installed plugins in WordPress, had that id, and I hadn't accounted for it when I built the design.Darn plugins/modules with their undocumented ids.
  8. Okay, I dropped the "display:relative;", not sure how it got in there to begin with... At any rate, it didn't make any difference.The code block in the "#subscribe" selector is irrelevant. It is a completely different element, at the very top of the page in the header, that holds RSS/Email subscription links for the blog's posts.
  9. I was just wondering how you all prefer to query databases from PHP.Personally, I tend to use PHP's included functions, but when I'm doing work with WordPress I use Ezsql, since WordPress's $wpdb class is a modified version of Ezsql.
  10. Mysql.com has an article with a few options: http://dev.mysql.com/tech-resources/articl...-microsoft.html
  11. I've been working on a redesign of one of my blogs, and it's nearing completion, but I've run into a bit of an odd problem. I'm running a WordPress plugin that adds a "subscribe to comments" checkbox in the comment form, and usually it works fine. However, with the new design the checkbox appears waaay to the right of the element's label.I'm not sure what's going on, and I've spent hours hunting through my source and Googling, looking for anything that could be causing the weird issue (which occurs in Firefox, Safari, IE, etc).Maybe a pair of fresh eyes would spot the problem? You can see an example at the bottom of this page:http://www.webmaster-source.com/2008/12/02...view_theme=wsc5
  12. I think I figured it out, *slaps head*. I had stored the key in a text document, an example output of the script that generates the activation key and emails it. The key was wrapped onto a new line, which could conceivably cause this issue. I guess I'll have to revise the script then and have it email an HTML-type email instead, to prevent things like that.
  13. I tried, expecting it to not work (since it hadn't so many times before), but it seems to be working now. I've performed the SELECT query three times now, and it's returned it every time. What are you doing differently?
  14. As I'm currently developing this, I'm working with only 3 records in the database for now, to keep things simple. To ensure that it works, only the one record has a value stored in the activation_key field. I've checked, and the activation_key appears to be exactly the same (no spaces or anything). Maybe I missed something, but it looks identical. I exported the table and pasted the SQL results in a post above, if you want to check yourself. Here's the relevant portion: I find it interesting that the query worked a single time after editing the table structure and then quit. Simply changing a column from TEXT to VARCHAR(32) fixed the problem for one query (the exact same query I listed in my original post). But then it didn't work when I tried it again.
  15. I changed the `password` field to a 32-char VARCHAR field, and now my query's working? What the heck does the password field have to do with the activation_key??EDIT: Well, it worked once. Now it's not. Very odd...
×
×
  • Create New...