Jump to content

gerkintrigg

Members
  • Posts

    830
  • Joined

  • Last visited

Everything posted by gerkintrigg

  1. Awesome! You guys are truly amazing! And Thanks (Obviously)
  2. That sounds perfect but I'm not sure how to do what you've said at all. I expected my rules to look a bit like this: RewriteEngine on RewriteRule ^(.*) sites/index.php?page_name=$1 [L]
  3. Either would work for my purpose, but I was thinking a sub folder might be better. Which is easier? The sub folder I was thinking of would be something like: http://www.truro.com/gerkintrigg I suppose a subdomain like: http://gerkintrigg.truro.com would work too, but I'd prefer the first example if possible.
  4. Hi all, I want to have a similar kind of functionality to a lot of sites where I make a sub-folder of a domain (like www.whatever.com/subfolder). I know how to use .htaccess to rewrite (limited knowledge, I admit) but my problem is that I need the server to work out when the folder is a folder and when it is a database record. I've Googled things like "parse PHP in .htaccess" but keep drawing a blank there. How do so many sites (Like Facebook) do it? Thanks, Neil
  5. I can't see the logic as to why this would work, but it certainly seems to. Thanks very much! Neil
  6. Hi All. When I have mod-rewritten my URLs, the login AJAX box seems to find it hard to reach my login page. Have a look at http://www.truro.com and then search for something. When the search results come up, you can still click login and it works fine, but if you then visit the searched page (now a re-written URL) and click on "login" then the AJAX includes fine (i tested it with a hello world script and it's including that file okay, but it's not loading the login page. An example of a page it doesn't work on: http://truro.com/pages/Information~pages/Feock.html Do you have any suggestions? I put this post here because I think it's possibly the best fit.
  7. That explains it. Beautiful!
  8. I've got my site working pretty much as I want it: http://www.truro.com but when I search for something (doesn't matter what) and find a page, When I click on it, It directs me to a page like: http://www.truro.com/pages/Ghostly~Publishing/Ghostly~Publishing.html Everything's great so-far. Then when I get there, the URL in the top bar reads like the ugly database code that sits behind it: http://www.truro.com/pages/pages/reader.php?profile=Ghostly~Publishing&page=Ghostly~Publishing Both pages are essentially the same because of the Mod re-write rule: RewriteRule ^pages/(.*)/(.*)\.html http://www.truro.com/pages/pages/reader.php?profile=$1&page=$2 [L] Is there something I'm doing that means I don't see the pretty URL I want to see?
  9. I got it working eventually here: http://www.truro.com/sitemap.xml
  10. That's got it! Thanks.
  11. gerkintrigg

    long div

    Let's say I want to be able to scroll a lot of information within a defined div tag, how would I be able to render it so that the div could contain (potentially) an infinate number of images, all rendered along side each other, and then output them into one div that only scrolls horizontally? I've done this: http://www.truro.com/pages/Ghostly~Publishing/Ghostly~Publishing.html but as you can see, it's not really very workable in its current form. Any suggestions?
  12. Hi guys. I can get an ajax script to work fine here: http://www.truro.com (just click on "Membership Signup" at the bottom), but I then want to scroll down to the bottom of the page because otherwise when the Ajax window opens, it's kinda hidden below the fold. Do you know of a handy tip to allow me to do that? I don't want to have to get into Javascript refreshes and stuff. Any help much appreciated. Neil
  13. Hmm... i think I might have sorted it. The only issue now will be passing the variable to the javascript, but I have an idea.
  14. Hi guys. I have this working already: http://truro.com/test.php It takes a hard-coded postcode variable and lets the buttons instantiate the centering of the map and placing the marker etc. My main problem is that the functionality needs to center the map and place the marker automatically on load. I'm not sure how to do that... I'll place the code if it'll help, but I don't quite know where to look.
  15. I am using AJAX and PHP (which is why I thought it best to post here) My website (http://www.truro.com) works fine when you visit the homepage and click on login at the top right. My problems come when I visit a page that uses mod re-write (like here: http://truro.com/pages/Ghostly~Publishing/Ghostly~Publishing.html) The $root variable is being referenced correctly and the ajax script seems to be loaded, but for some reason it's just not loading the login page into the login box div. Any suggestions? I really don't know what else to try. Neil
  16. Here's the most recent URL change. the others might not work. http://truro.com/pages/Ghostly~Publishing/The~Weird~Case~of~Mrs~Etherington-Strange.html
  17. Hi All, I have designed this page: http://98.131.0.168/~truro/pages/Ghostly~Publishing/Ghostly~Publishing.html The problem is that the images (in the scroll box) should be scrolling to the right, but they're not. I have the following CSS code to control this action: #display_images{ height:200px; width:640px; overflow-x:scroll; overflow-y:hidden; } I don't want the box to scroll vertically at all. Is it something in the way I'm outputting the images? <div id="display_images"><?php while($ri=mysql_fetch_array($sqli)){ list($width, $height, $type, $attr)= getimagesize($root.$ri['big_img']); ?><img src="<?php echo $root.$ri['big_img'];?>" width="<?php echo $width;?>" height="<?php echo $height;?>" border="0" class="magnify" data-magnifyby="2.5" style="width:<?php echo round($width/2.5);?>px; height:<?php echo round($height/2.5);?>px; cursor:pointer;"/><?php } ?></div> I can't seem to work it out, and I don't want to have to resort to iframes.
  18. No I don't think you're getting what I mean.... The file works fine. Mod re-write is used to handle URL parsing. I want someone to enter "sitemap.xml" into their browser and be directed to the "sitemap.php" page that already works fine. This is a mod-rewrite issue, not a PHP/XML one. that's why this post is in this forum as opposed to anywhere else. I hope that helps.
  19. This header is already there. The PHP page is working fine, but the mod re-write will not recognise the PHP page as an XML page. I need this to work so that Google can look for sitemap.xml and find the PHP page that accesses my database. Mod rewrite's working for other pages, but seems to have a problem with the line (above) which changes an XML page into a PHP one. Neil
  20. Hi. I have a neat little script which outputs my database as XML here: http://98.131.0.168/~truro/sitemap.php I'm trying to use Mod Re-Write to tell google and others that the PHP script is a XML page by adding this to a .htaccess file: RewriteRule (.*)\.xml(.*) $1.php$2 [nocase] It's just not working. Here's the URL: http://98.131.0.168/~truro/sitemap.xml Any suggestions?
  21. this is what it'd look like: http://98.131.0.168/~truro/pages/reader.php?page=The~Weird~Case~of~Mrs~Etherington-Strange
  22. Hi all, Here's a site I'm working on :http://98.131.0.168/~truro/pages/reader.php?id=1 It's just a test URL for now, but that page explains the issue better than this post probably does. I've known for a while that video seems to be plonked on top of stuff (flash used to have a horrible habit of doing it too). Is there a way of making sure that my image (the iTunes logo, in this case) expands over the top of the video? I love the fact that the video is there (yeah I know it doesn't work... but it will) but I need both the CSS expansion of images and the video to work. Thanks. Neil
  23. Hi everyone, I've created a website: http://www.neiltrigger.com/truro/index.php and the Ajax works fine on the homepage, but if I were to go into to one of the pages that I use with a mod re-write, it doesn't work. (example here: http://www.neiltrigger.com/truro/pages/reader.php?profile=Unclaimed~Pages&page=tin~gifts) I know the example above is long-form, but it doesn't seem to make a difference. When you click on "Log In", it loads a page called login.php I know what's happening, but not how to solve it... it's loading my error page into the login div tag. You don't need to log in to see the error, so if you can have a look and let me know what you think might be causing it, that'd really help. I'm referencing to $root correctly, I think. Neil
×
×
  • 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.