Jump to content

JesseD

Members
  • Posts

    21
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://

Profile Information

  • Location
    Cincinnati, OH

JesseD's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. I bank online with Chase, Wells Fargo, Bank of America, and Citi (not a govt. card, so it might be a different web site) using Firefox, with no issues. But some other web sites, particularly U.S. government sites, are problematic. Dept. of Education sites like to let me get to the very end of long, multi-page online forms only to present me with a non-functioning Submit button in Firefox.
  2. If you really want your site to look the same whether accessed through your domain or your IP address, you can accomplish it with some PHP code. You'll have to either change the file extension of your .html files to .php, or change .htaccess so that PHP inside .html files will be parsed. (Off the top of my head I'm not sure what needs to go in .htaccess for this, but someone more familiar with .htaccess than me must be reading. ) One easy thing you can do is to use PHP's include statement instead of server-side includes. PHP include takes a system path instead of a URL so your problem is sidestepped. So ><!-- include virtual="/header.html" --> becomes ><? include "/home/username/public_html/header.html"; ?> (It may be possible to do the same thing in a server-side include, and I just don't know how.) Making all of your HTML tags work, not just includes, is a little trickier. On my site, I use a hack like this to detect whether the site is being accessed via the domain name or the IP address / server name: ><? $base_dir = dirname($_SERVER['PHP_SELF']); if (strstr($base_dir, "~username") == FALSE) $base_dir = ""; else $base_dir = "/~username"; ?> For convenience, you can put the above code in a separate file (say, global.php) and then include it at the beginning of all your HTML files like this: ><? include "/home/username/public_html/global.php"; ?> Then, anywhere in your HTML files that you want to refer to the root of your site, use the string <?=$base_dir?>. So ><link rel="stylesheet" type="text/css" href="/mycss.css"> becomes ><link rel="stylesheet" type="text/css" href="<?=$base_dir?>/mycss.css"> It's a little rough around the edges, but it works, and it's something you can use even if you don't necessarily understand what all the PHP does yet. Good luck with your site!
  3. Two additional issues, now that I'm fully awake. First, the code to write to the log file is always executed, whether the page is requested by Googlebot or not. You want to move the rest of the code into the if (eregi("googlebot",$HTTP_USER_AGENT)) block. Also, when you open the log file to write to it, you're wiping out the existing contents, which means you'll only ever have one entry in the log file at a time. This is probably not what you want, so open the file in append mode ("a") instead. With that and the other suggested changes, the script should do what you want. Are you still having problems with all these changes implemented? Try the following code: ><?php if(eregi("googlebot",$HTTP_USER_AGENT)) { if ($QUERY_STRING != "") {$url = "http://".$SERVER_NAME.$PHP_SELF.'?'.$QUERY_STRING;} else {$url = "http://".$SERVER_NAME.$PHP_SELF;} $today = date("F j, Y, g:i a"); mail("someone@somewhere.puga", "$HTTP_USER_AGENT has indexed your http://$SERVER_NAME", "$today - $HTTP_USER_AGENT indexed $url"); $filename = "/home/yourcpanelname/public_html/botlog.txt"; $log = fopen($filename, "a"); fwrite($log, "$HTTP_USER_AGENT crawled this site on $today\n"); fclose($log); } ?>
  4. Hi mr_lucas, Yes, the filename string you have there looks correct. The line: >print "$HTTP_USER_AGENT crawed this site on $today"; doesn't write to the log file, which I'm assuming is what you want. Try this instead: >fwrite($log, "$HTTP_USER_AGENT crawled this site on $today"); Also, this line can be removed: >$log = "$HTTP_USER_AGENT,$today\n"; It's not causing any problems for you, it's just not doing anything. The syntax error Bruce mentioned is the only one I could find, so the code should at least run. But then I am only half awake. The error message you gave mentions line 338 in index.php, but we don't know what that line is. Could you copy/paste that line and a handful of lines before & after it? That would help. Good luck!
  5. I think that some issues could be avoided if the TCH support page were reorganized and reworded. It seems to me that it's misleading to people who are new to the forums. It lists the forums ahead of the Help Desk and says that you can find the support team here, which implies that it's a place you can get tech support from TCH. If I were having a problem and came upon the forums for the first time via the support page I would probably think that it was the preferred avenue for technical support, and not think twice about posting here instead of submitting a ticket.
  6. On Linux, I use gFTP. On Windows, I used WS_FTP LE for years. The last time I reformatted and went to download it again, I found that it had finally been discontinued, so I got FileZilla instead, which I already like better.
  7. My old host was (and still is) expensive. I paid about $20 a month for a plan that's more restrictive than any of TCH's. I put up with it because I was skeptical of cheaper hosts, but eventually the service from my old host became sufficiently bad that I had nothing to lose. They had rolled out new site management tools for new customers only, and stuck existing clients with resources that were outdated and, in some cases, outright broken. They repeatedly made promises to transition old accounts to the new system "soon" but never delivered. I started looking at other hosts and decided to try TCH after visiting these forums. I really liked the atmosphere. That was about 9 months ago. I don't make many posts here but I'm a very happy TCH customer. Rock Sign
  8. I agree that making site navigation easier and more consistent would be a big help. The only original thought I can add is that, if you decide to go with a new design, steer clear of anything too "super-hip" where everything's in a 7-point font and you need a magnifying glass to read it. My previous host rolled out a new web site with a lot of fanfare, but it was really difficult to use because they were more concerned with being trendy than functional.
  9. It looks like $uploadDir is set incorrectly. Try this: >$uploadDir = '/home/your_username_here/public_html/uploadedfiles/'; // Other code unchanged Where your_username_here is your TCH username. With PHP filesystem functions, pathnames are relative to the server root and not your own public_html directory. Your original code is trying to write to a directory just under the server root directory, which presumably doesn't exist (and of course, you wouldn't have permission to access it even if it did exist). Edited to add: Alternately, you could use a relative path such as >$uploadDir = 'uploadedfiles/'; Note that there is no slash at the beginning of the path. Maybe this is what you meant to do? Since the script is located in your public_html directory, 'uploadedfiles/' points to '/home/your_username_here/public_html/uploadedfiles/' That will work too, but I prefer to use complete path names whenever possible. That way a script doesn't break if you decide to move it to a different directory.
  10. I use phpBB for my site's forums. At the time I set it up I didn't really know about Invision at all, or I would have considered using it instead. Having used both now I still prefer the "feel" of phpBB, but that's probably because I frequent at least two other communities that use it, so I'm very accustomed to it. From an administration standpoint, it's more difficult than it probably should be to customize some basic settings with phpBB (it looks like TheWraith has just found that out ). Just changing the logo or making a background image show up is not a trivial task at first, although once you know how it's done it isn't a problem. I don't know whether or not Inivision is better in this respect. (I'll assume for this that you're using the standard subSilver theme that is installed with phpBB.) The easiest way to change the board logo is to replace the default logo image with your own, but keep the same file name as before. The logo image is located in the /templates/subSilver/images/ subdirectory of the main phpBB directory, and is named logo_phpBB.gif. But if you want to use a JPG image instead of a GIF, or if you just don't want your logo to have that file name, then it's not quite so easy. You have to edit one of phpBB's template files to supply your own image name. Templates files are located in the /templates/subSilver/ subdirectory. The file called overall_header.tpl contains the HTML that is included at the beginning of every page. You need to find the <IMG> tag in the file that displays the logo, and change the filename to point to your own image. For the subSilver theme, the tag is located around Line 230 and looks like this: ><td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td> As for the background image problem: the subSilver theme, by default, will not show a background image on the page even if you specify one in the Styles Admin section of the control panel. This is really annoying considering that it is in no way obvious. In overall_header.tpl (the same file as above), find the BODY tag around Line 220. It looks like this: ><body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}"> (The text surrounded in { curly brackets } are special phpBB tokens. When phpBB reads the template file, it replaces the tokens with the appropriate values for the theme.) Note the absence of the "background" property, which specifies the background image for the page. Add the background property to the BODY tag so that it looks like this: ><body background="{T_BODY_BACKGROUND}" bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}"> The {T_BODY_BACKGROUND} token is automatically replaced by phpBB with the background image you specify in the Styles Admin section of the control panel. I don't have any ideas offhand as to why your color changes are not taking effect. From what I can tell the subSilver theme should automatically use the settings you specify in the control panel. (It's been a long time since I've used a "fresh" phpBB installation, so I took a quick glance at the template files to refresh my memory, but I'm in no way an expert when it comes to the default subSilver theme. Still, I hope this helps.)
  11. Unfortunately, my system and Firebird did not get along well and I had crash problems the entire time I was using it. But I used it for several months that way, which is a testament to how much I like it. I try each new version when it comes out but so far have had no luck resolving the problems. In the meantime I'm using Opera. Either of the above is preferable to IE in my opinion.
  12. So your domain is currently with a different registrar, not TCH? If you're already using TCH as your registrar then I think it should renew automatically. Otherwise, transferring a domain to TCH is really easy. From the TCH homepage click the Domain Registration link, and then "Transfer Domains." It costs about $11 and that includes a one-year extension. One important thing to do before you start the transfer is to make sure you are the administrative contact for your domain and that the admin e-mail address is correct. That's accomplished by logging into the account you have with your old registrar. They have to send a message to that e-mail address to get authorization for the transfer, so it needs to be current. And if you didn't register the domain yourself but had it done indirectly by a web host, then they may have listed themselves as the admin contact instead of you. You can transfer at any point -- the one-year extension goes from the expiration date, not the transfer date, so you don't have to worry about losing time. (For example, I had about 9 months left on my domain when I transferred it to TCH, so with the extension I now have almost 2 years before it expires.)
  13. Unfortunately, I wasn't the administrative contact for my domain -- the old host was. Rather, my name was listed but the contact e-mail was theirs. The last time I had accessed the domain I noticed that, but it didn't occur to me to change it, since at the time I had no intention of switching hosts. I finally did get access to the domain restored, though, and I've since changed both the DNS info and the contact information. The next step will be transferring the domain to TCH.
  14. If I can do that too, then that's what I'll do. Thanks again.
  15. indeed! I'll get with some of my site's users and see if we can't agree on a good name for a new domain. Thank you for the quick response!
×
×
  • Create New...