News:

Join the Facebook Fan Page.

Main Menu

Pretty URLs

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

Previous topic - Next topic

speshul

#2320
Quote from: Dannii on September 06, 2008, 10:31:33 PMYou need to fix modifications.english.php so that there is only one ?> and it's the very last thing in the file.

where is this file? i see no such file under this name in the dl package.

Dannii

It's a SMF file, look in Themes/default/languages
"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."

speshul

Quote from: Dannii on September 06, 2008, 10:31:33 PMTo change it to mysite.com/memberprofilename [nofollow] edit the profiles callback function so that the constructed URL just adds the profile name directly to $boardurl and not $boardurl.'/profile/.
can you please tell me the file that this profiles callback function would be located in?


Quote from: Dannii on September 06, 2008, 10:31:33 PMYou'll then need to edit the rewrite rules by going to action=admin;area=pretty;sa=filters and removing profile/ from the beginning of the rule.
So the code here listed as  "rewrite": {
            "priority": 40,
            "rule": "RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]"


Should be
"rewrite": {
            "priority": 40,
            "rule": "RewriteRule ^([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]"
  ???

also in the pretty url's admin it shows everything listed as undefined & Version info:
Current version: 0.9

Latest version: 0.8.4 Download ... I took the advice you gave to the last post and dl;d your 0.9 version but it showd that info so just wanted to make sure its normal and that i wasn't required to dl an older version first..

Dannii

Quotecan you please tell me the file that this profiles callback function would be located in?
Sources/PrettyUrls-Filters.php

"rewrite": {
            "priority": 40,
            "rule": "RewriteRule ^([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]"

Exactly.

Quotealso in the pretty url's admin it shows everything listed as undefined & Version info:
Current version: 0.9

Latest version: 0.8.4 Download ... I took the advice you gave to the last post and dl;d your 0.9 version but it showd that info so just wanted to make sure its normal and that i wasn't required to dl an older version first..
That's a little strange, but isn't a problem.
"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."

cassie

Thanks Dannii

When I go to uninstall my current 0.8 version, I get test failed messages for subs.php, ManageBoards.template.php, and Modifications.english.php. 

Not sure I should continue. My forum went down the other day for no apparent reason and the support at my host had to comment out a small line in subs.php to get the forum back up.

Dannii

What line did they change? Have you installed any other mods since installing 0.8?
"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."

cassie

They had to comment out line 2714  ----->    ob_start('ob_sessrewrite'); 

Yes, I've installed other mods since 0.8.

speshul

OK I've made the changes to all 3 areas but when i type in www.mysite.com/profilename [nofollow] its just an error page, something im missing? i did not change any of the pretyURL admin settings, should i?

just a side not: when i clicked core Enable URL rewriting & Rewrite Profile URLs i got blank pages.  I must be lacking something. im restored as before but apparently lacking something on my end or not?

Dannii

Quote from: cassie on September 07, 2008, 08:22:42 AM
They had to comment out line 2714  ----->    ob_start('ob_sessrewrite'); 

Yes, I've installed other mods since 0.8.
Well that was a bit of a silly thing to do...

I suggest you uninstall it, and then for the files it had problems with, you'll have to manually uninstall the changes from those.

Quote from: speshul on September 07, 2008, 01:26:23 PM
OK I've made the changes to all 3 areas but when i type in www.mysite.com/profilename its just an error page, something im missing? i did not change any of the pretyURL admin settings, should i?

just a side not: when i clicked core Enable URL rewriting & Rewrite Profile URLs i got blank pages.  I must be lacking something. im restored as before but apparently lacking something on my end or not?
Did you ever have the mod working before? You server does have mod_rewrite and .htaccess enabled doesn't it?
"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."

speshul

#2329
Quote from: Dannii on September 07, 2008, 08:11:20 PM
Did you ever have the mod working before? You server does have mod_rewrite and .htaccess enabled doesn't it?

I have had it installed but once i clicked those two functions together it cleared out the site so ill have to get back to you on that one, i have no idea how to tell through the cpanel X yet as this is a brand new host, I changed simply for the use of apache(?) since apparently alot of mods require it or dont work well with windows.


p.s. thank you very much for helping me Danii. You have the patience of a saint!

Dannii

If you had it working on another host it may not work on your current one...
"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."

cassie

Quote from: Dannii on September 07, 2008, 08:11:20 PM
Quote from: cassie on September 07, 2008, 08:22:42 AM
They had to comment out line 2714  ----->    ob_start('ob_sessrewrite'); 

Yes, I've installed other mods since 0.8.
Well that was a bit of a silly thing to do...

I suggest you uninstall it, and then for the files it had problems with, you'll have to manually uninstall the changes from those.


I don't know what made them choose that line to comment out. Have no idea. But host support rarely knows anything about SMF stuff. I troubleshoot and fix things myself. But I still don't know why my forum went down and apparently no one here does either. Weird.

I will do as you suggest and hopefully that should work fine. Thanks for your help, as usual.

speshul

Quote from: Dannii on September 07, 2008, 08:11:20 PM
Did you ever have the mod working before? You server does have mod_rewrite and .htaccess enabled doesn't it?

According to my host i have both  mod_rewrite and .htaccess enabled on my server so i am doing something wrong because i ennabled al of the check boxes and got teh blank screen. must be missing a step.

Dannii

If you get blank pages then something should be added to either the SMF or the Apache error logs.
"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."

MultiformeIngegno

This MOD isn't compatible with SMF beta 4!!
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Tanshaydar

Quote from: lorenzone92 on September 08, 2008, 05:05:42 PM
This MOD isn't compatible with SMF beta 4!!

but it's compatible with smf 1.1.6

Dannii

Quote from: lorenzone92 on September 08, 2008, 05:05:42 PM
This MOD isn't compatible with SMF beta 4!!
Ok.. well I'll get to that when I have spare time.
"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."

stanaca

#2337
Danii please make it compatible for beta 4 for because i am losing my lot of traffic from search engines.
...

MultiformeIngegno

Quote from: stanaca on September 10, 2008, 12:03:51 AM
Danii please make it compatible for beta 4 for because i am losing my lot of traffic from search engines.
You can emulate SMF beta 3 in the packages options, so you can install it..
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Dannii

Yeah it seems to problem that they didn't change it to say "Public"... does it work if you emulate? I haven't checked, so I don't know if extra changes are required.
"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."

Advertisement: