View Full Version : New user - one small prob
01-17-2006, 08:11 PM
Will introduce myself fully when I get my new blog up and running, apologies for the quick post but I have to rush out...
Hope someone can tell me how to do this. I installed pixelpost a couple of days ago on a directory on my main server. Have since reg'd another domain and have used web forwarding into this directory, so my blog has its own proper domain.
I have updated the site URL in the Admin settings. However, the links generated - e.g. for the comments popup - still point to the old address (the directory on the other server) instead of pointing to the new URL. How can I update this so all generated links use the new URL?
Is this info hidden in the SQL table somewhere? If so, could someone give me a small php file with the correct sql query in to replace this info with the new URL? (sorry, SQL confuses me at the best of times!)
Or do I need to re-install the whole shebang all over again? :confused: I mean, I *could*... but there has to be an easier way?
Hope you can help with this. Good luck with 1.5... it must rock pretty hard if it's better than 1.4! :)
01-17-2006, 09:08 PM
adding the new url into your options page and clicking update should do the SQL query for you just fine.
if you are still on the same server and stuff is pointing at the old directory then you need to check your configured imagepath... best idea is to simply make it relative. ie, your configured imagepath should look exactly like the following:
01-17-2006, 11:23 PM
Hey Joe :-)
Nope, that doesn't do it. Seems URL masking/forwarding only does so much. Whatever I try (even a reinstall), the links still seem to point to the old name (the actual server name) rather than the forwarded, blog's URL. Unless I hard-code the new URL into various places in index.php and the template files.
It's kludgy. I'm sure others must have come across this before? Does URL forwarding not actually mask *everything*? I thought it would, else what would be the point?
:confused: Ah well, time to hit the sack!
If anyone can shed light...?
01-18-2006, 01:30 AM
from the sounds of it, i'm having a similar if not identical problem.
on january 2nd, i installed pixelpost here (http://www.paulgalipeau.com/pinhole).
The next day, i installed it a second time (for a second photoblog) in the root directory of my domain but using the initial configuration as a template. Before actually installing, I was sure to correct the database info, etc... Today I noticed that the link after commenting led me to my first photoblog - and in the small comment window.
I've since noticed an error with the base href in the 2nd blog's index.php and repaired that but this doesn't immediately appear to be the solution. I'm new at using databases and PHP/sql in general. could the database take a while to update?
Really, I'd be happier if that post-comment link just closed the comment window rather than link back to the site.
01-18-2006, 05:40 AM
In the end, I used the solution that I posted here.
01-18-2006, 11:21 AM
Any changes to the database should take effect immediately (you may need a single refresh to a page to show any new data, but that's it).
I have since looked into my prob - I'm not happy with hardcoding all the lines of index.php which generate links back to "index.php" - changing them all to "http://......../index.php" is a kludgy solution at best, and only works for those links. Annoyingly, things like the title of my comments window still show the underlying domain.
So I used my head to do something other than hit the desk, considered it might be a wider problem not specific to pixelpost, and made a new page, test1.html:
...and uploaded it to my webspace. Sure enough, hovering over this basic link showed that it was linking to the underlying server, rather than the new domain.
The conclusion I hope I didn't jump to is that my Domain Forwarding is working, but my Domain Masking isn't - after all, this is what Domain Masking is supposed to do, right? Hide all traces of the actual server you're loading pages from?
Anyway, I've contacted the host (GoDaddy, seemed like a sensible idea at the time!) and asked if there's anything they can do at their end to rectify the problem. I'm crossing my fingers that it's a cockup with their server which is easily fixed!
Will let you know!...
01-19-2006, 06:19 AM
So I did, and it turns out that Domain Masking is just this bit of code. (http://pchere.blogspot.com/2005/02/secrets-of-domain-masking-how-it-works.html)
Well, whaddaya know. I'll give that a try, then. Although now I'm not sure, because I also read a few things about domain masking *not* being a good idea (breaking certain features of sites, etc.?)
Anyway, am currently changing my main hosting over to another domain, which would be better suited to having my pixelpost blog domain sitting on top of it. Then it won't really matter if I use domain masking or not.
Will hopefully get things up and running for the weekend! :)
Don'tcha just love these technical probs?! *grin*
01-19-2006, 07:45 AM
lol. what an assey webhost!
01-19-2006, 09:00 AM
To be fair, I've found GoDaddy pretty good, they have great online support, FAQ, etc... and excellent tools for doing pretty much anything. You can usually find an answer to any tech questions, although it may require a little digging.
As with all hosts, I suppose, you can find horror stories and problems if you go looking for them! But my needs are fairly basic, so I'm satisfied at the moment...
Who are you with, if you don't mind me asking, Joe?
01-19-2006, 02:59 PM
Who are you with, if you don't mind me asking, Joe?
by far the best quality hosting i've ever had at the most affordable price. of course eleven2.com are good as well but i like having my people on the phone - and living in the UK makes 4uhosting ideal.
01-19-2006, 05:40 PM
I'll keep them in mind should I have any further problems, then. Thanks Joe!
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.