News:

Wondering if this will always be free?  See why free is better.

Main Menu

Pretty URLs

Started by SMFHacks.com Team, January 31, 2007, 10:56:43 AM

Previous topic - Next topic

Dannii

Excellent.

Yeah, that only means that it's the latest version of the packages you've downloaded to the server, not that it's the latest available package.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

chadon

Now I have a new problem.
The URL's don't have the same path since the upgrade and it will create double content pages. The URL's changed from
Quote/forum/parts-for-sale-or-trade/0/
to
Quote/forum/parts-for-sale-or-trade/
and the old one isn't doing any redirection.
Is there any fix to that?

Dannii

Hmm, although I doubt it will make a problem for duplicate content you can fix it by making these changes to PrettyUrls-Filters.php:
Code (find) Select
$start = $url['start'] != '0' || is_numeric($topicData[$url['topic_id']]['pretty_url']) ? $url['start'] . '/' : '';
Code (replace) Select
$start .= '/';
Code (find) Select
$start = $start != '0' ? $start . '/' : '';
Code (replace) Select
$start .= '/';
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

chadon

That fixed the problems with the board URLs but not the topic ones. They were missing the 0 and were like the following: /board-name/word1-word2////////////////
I better like the new URLs but I don't think it would be good to have them in double. If there was a way to have a redirection made like you have with index.php?topic=ID to the new one, maybe it would be better.
I have all kind of links posted in topics sending to other topics and links from other websites sending to boards or topics so I think the duplicate pages would be a problem.

Dannii

Ahh how silly of me. Try this:
            $start = $url['start'] . '/';
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

nnixxonn

#1685
i hav the .htaccess  but not sure hav it in all directory or not.

but bro problem is that i already install it and active. now can not browse my forum  accept the index page. any help.

http://yesterdayforum.com [nofollow]

Nixon

Dannii

#1686
Follow the instructions here, and then we can see what can be done to get it working.
http://code.google.com/p/prettyurls/wiki/TroubleShooting
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

nnixxonn

Quote from: Dannii on May 17, 2008, 07:11:41 AM
Follow the instructions here, and then we can see what can be done to get it working.
http://code.google.com/p/prettyurls/wiki/TroubleShooting [nofollow]


showing this error


QuoteFatal error: Call to undefined function phprequire_once() in /home/yesterd/public_html/p.php on line 1

wht i can do now?

chadon

Quote from: Dannii on May 16, 2008, 10:07:59 PM
Ahh how silly of me. Try this:
            $start = $url['start'] . '/';

That worked great. Thank you very much Danni.

Dannii

Quote from: nnixxonn on May 17, 2008, 07:51:06 AMshowing this error

QuoteFatal error: Call to undefined function phprequire_once() in /home/yesterd/public_html/p.php on line 1
wht i can do now?
What the...

Are you sure you copied it correctly? It's not missing any line breaks?
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."


Dannii

It doesn't look like it's installed...
How long has the forum been there? Google can take a while to index your forum.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

badbo

#1692
I  uploaded the mod and  and installed it, but now I can't get to anything. It really changed the urls. Admin is no longer found on my server. So I guess a clean install of smf is in order.
Oh well three weeks of work shot to ####. LOL!!

Never mind how silly of me I just went to a backup before i made the mod active and uninstalled it.


badbo

Dannii

No need to start over... you can easily disable the mod. Did you find out what the problem was? Does your server support mod_rewrite and .htaccess files?
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

badbo

Quote from: Dannii on May 21, 2008, 05:39:20 AM
No need to start over... you can easily disable the mod. Did you find out what the problem was? Does your server support mod_rewrite and .htaccess files?
It probably does not support it because it uses no .htaccess files. I had to do a manual backup to get it done and then I uninstall the mod. I am sure it would have been a great mod. I will see what else I can find. Thanks Bo

Dannii

New snapshot that should work with TinyPortal 1.0.5 on the download site.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

shaitanfr

#1696
Hi,
Sorry for my bad English.
Thank you for your work Dannii


Quote from: punjabilokvirsa on May 06, 2008, 10:36:17 PM
I noticed there was actually a problem with the tiny portal download manager module,
I fixed this by changing the BasePath to point to the correct FCKEditor.

The reason is once you're inside the hxxp://x.com/tpmod/?sa=upload (then the FCKEditor cannot be found inside the /tpmod/ directory. I'm not sure if this should be corrected by PrettyURLs or TinyPortal. Let me know as I will post on their forum next if this is not PrettyURL's problem.

I have exactly the same problem.
I don't know how to change the BasePath to point to the correct FCKEditor?
I have deactivated Rewrite Auction Urls and Fckeditor work but it's not a good solution.

SMF 1.1.5. TP 0.9.8, Pretty URLs - Base 0.8.3

Dannii

Upgrade to TinyPortal 1.0.5, and then download and use the latest snapshot.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

shaitanfr

Ok,
But I prefer waiting a new TP release, I have tried it and it's not enough stable for using in production (my opinion).
Thank you Dannii.

_Anthony_


Advertisement: