Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on January 31, 2007, 10:56:43 AM

Title: Pretty URLs
Post by: SMFHacks.com Team on January 31, 2007, 10:56:43 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=636)

Pretty URLs is a URL management package for Simple Machine Forums (SMF).

It is simple, powerful, extensible and free. Most of all, it is pretty! Its main purpose is to rewrite the important SMF URLs, like these:


Pretty URLs will work with SMF 2.1.x, SMF 2.0x, SMF 1.1.x It requires an Apache webserver with support for mod_rewrite and .htaccess files.

prettyurls-extras-1.0-RC.zip - Provides rewrite filters for mods including seo4smf, Tinyportal Articles, Tagging System, Download System, ezPortal Pages, SMF Gallery, SMF Articles, SMF Classifieds, and SMF Store

Need more SEO and features? Check out Pretty Urls SEO Pro https://www.smfhacks.com/prettyurls-seo-pro.php (https://www.smfhacks.com/prettyurls-seo-pro.php)

Overview and installation info (http://code.google.com/p/prettyurls/wiki/Overview)

Need help? Check the trouble shooting page first! (https://www.smfhacks.com/index.php/topic,9619.0.html)

Pretty URLs is released under a new BSD licence
Copyright (c) 2006-2019 The Pretty URLs Contributors
Title: Re: Pretty URLs 0.9.2
Post by: KGIII on January 31, 2007, 11:27:22 AM
/me decides to poke at it seeing as no one else seems to have made much use of it.

Wish me luck. ;)

Anything I need to know before hand? (Going to try it on a dev site first I suppose so, I probably won't actually get a response from you before I've broken stuff.)
Title: Re: Pretty URLs 0.9.2
Post by: RoarinRow on January 31, 2007, 12:50:38 PM
Can you post a screen shoot?   :)
Title: Re: Pretty URLs 0.9.2
Post by: Mick. on January 31, 2007, 07:03:35 PM
Bump!
Title: Re: Pretty URLs 0.9.2
Post by: RoarinRow on January 31, 2007, 07:32:47 PM
Bump!

I installed on my test server and didn't see anything that jumped out on me.  It was looing a my base URL, but no sure what it was supposed to do.

I deleted for now.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 31, 2007, 08:35:26 PM
Can you post a screen shoot?   :)
There isn't anything to post a screen shot of. It changes the urls of your forum, not the templates.

You can see an example of it at: http://dev.eldacar.com/prettyurls/index.php
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 31, 2007, 08:38:27 PM
Links: (I can't edit the above sorry)

Home page: http://code.google.com/p/prettyurls/
Source code: http://prettyurls.googlecode.com/svn/trunk/
Download: http://code.google.com/p/prettyurls/downloads/list
Example/dev forum: http://dev.eldacar.com/prettyurls/

Please post and spam anything you like in the dev forum, especially if it uses funky characters.
Title: Re: Pretty URLs 0.9.2
Post by: Vinspire on January 31, 2007, 09:05:27 PM
I don't get the idea of what this mod is suppose to do. Can anyone explain ? :(
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 31, 2007, 09:13:12 PM
Turn http://dev.eldacar.com/prettyurls/index.php?topic=1.0 into http://dev.eldacar.com/prettyurls/general-discussion/welcome-to-smf/0/ :)
Title: Re: Pretty URLs 0.9.2
Post by: webmistress on January 31, 2007, 09:22:06 PM
I just installed this and highly recommend it.  
Title: Re: Pretty URLs 0.9.2
Post by: Vinspire on January 31, 2007, 09:51:18 PM
Turn http://dev.eldacar.com/prettyurls/index.php?topic=1.0 into http://dev.eldacar.com/prettyurls/general-discussion/welcome-to-smf/0/ :)

Oh i c .... I got the idea and I think it is Awesome. Will check it out later.

Thanks for the explaination and such a great mod eldʌkaː :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 31, 2007, 09:58:27 PM
To install:


Please note that this mod is still in beta testing (by you!), so there could be problems. I've been using it my live site for a few months though, and haven't had any serious issues.
Title: Re: Pretty URLs 0.9.2
Post by: GetRank on January 31, 2007, 10:30:06 PM
can someone help install this mod to RC3 ?

errors in RC3 (top of the forum)
Code: [Select]
Notice: Undefined index: pretty_board_urls in /home/****/public_html/forum/index.php on line 75

Notice: unserialize(): Argument is not a string in /home/****/public_html/forum/index.php on line 75

Quote from: index.php line 75
$context['pretty']['board_urls'] = unserialize($modSettings['pretty_board_urls']);

error during the installation (to RC3)

Code: [Select]
Fatal error: Call to undefined function: generateprettyurl() in /home/****/public_html/forum/Packages/temp/prettyurls-base_0_3/install.php on line 34
Quote from: install.php line 34
$pretty_text = generatePrettyUrl($row['name']);
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 31, 2007, 10:38:19 PM
1.1 RC3 isn't supported sorry. Can you upgrade to 1.1.1?
Title: Re: Pretty URLs 0.9.2
Post by: NEMINI on January 31, 2007, 11:00:33 PM
Hit an error on Sources/BoardIndex.php  found it to be related to using the board viewers mod.  The fix was to make one change to the installation routine

change:
Code: [Select]
<operation>
<search position="replace"><![CDATA[
'new' => empty($row_board['isRead']) && $row_board['posterName'] != '',
'topics' => $row_board['numTopics'],
'posts' => $row_board['numPosts'],
'href' => $scripturl . '?board=' . $row_board['ID_BOARD'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row_board['ID_BOARD'] . '.0">' . $row_board['boardName'] . '</a>'
);
]]></search>
<add><![CDATA[
'new' => empty($row_board['isRead']) && $row_board['posterName'] != '',
'topics' => $row_board['numTopics'],
'posts' => $row_board['numPosts'],
'href' => $modSettings['pretty_root_url'] . '/' . (isset($context['pretty']['board_urls']) ? $context['pretty']['board_urls'][$row_board['ID_BOARD']] : $row_board['ID_BOARD']) . '/0/',
);
$this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']]['link'] = '<a href="' . $this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']]['href'] . '">' . $row_board['boardName'] . '</a>';
]]></add>
</operation>
to:
Code: [Select]
<operation>
<search position="replace"><![CDATA[
'href' => $scripturl . '?board=' . $row_board['ID_BOARD'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row_board['ID_BOARD'] . '.0">' . $row_board['boardName'] . '</a>'
);
]]></search>
<add><![CDATA[
'href' => $modSettings['pretty_root_url'] . '/' . (isset($context['pretty']['board_urls']) ? $context['pretty']['board_urls'][$row_board['ID_BOARD']] : $row_board['ID_BOARD']) . '/0/',
);
$this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']]['link'] = '<a href="' . $this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']]['href'] . '">' . $row_board['boardName'] . '</a>';
]]></add>
</operation>

The string is still unique and what I removed remained uneditted anyway so no real need for it to be included.
 
Title: Re: Pretty URLs 0.9.2
Post by: NEMINI on January 31, 2007, 11:04:36 PM
I should add the above is found in Major.xml in the prettyurls-ext-none_0_3.tar.gz package
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 31, 2007, 11:09:14 PM
Hmmm, honestly, I can't remember why I have that long search string. I'll have a look at changing it for the next release :)
Title: Re: Pretty URLs 0.9.2
Post by: KGIII on February 01, 2007, 08:30:50 AM
eldʌka...

I will have you know that I had to install that HUGE thing manually. Every last bit (I tried the above tweak but I have a heavily modified forum) of it in the MessageIndex.php file... So far, as near as I can tell, I only missed one comma and everything seems to be working just fine. It installed perfectly on a pretty bare version of SMF but for those of us with modifications (and even with default themes) it is possible but plan on spending a few minutes with it.
Title: Re: Pretty URLs 0.9.2
Post by: NEMINI on February 01, 2007, 05:13:12 PM
I've a few modsinstalled myself:
Code: [Select]
1.  TinyPortal 97 1.1.1 FIX 
2. Custom Profile Field Mod
3. Active Members In Topic
4. Coppermine Userpics
5. Treasury
6. SMF Arcade
7. Board Viewers Mod
8. Custom Action Mod
9. Karma Description Mod
10. Merge Double Posts
11. Enhanced Quick Reply
12. Global Announcements
13. Googlebot & Spiders Mod
14. SMF Shoutbox 
15. SMF Links
16. MessagePreviewOnHover
17. New Topic Button
18. SmileyLimit
19. Reason For Editing Mod
20. Automatically Remove Inbox Label Mod
21. Signature Settings Mod
22. SMF Staff Page 
23. Sticky First Post (extends sticky topic)
24. Trim Url
25. User Email System
26. Users Online Today Mod
27. User Post Limit Options
28. Google Member Map
29. Enhanced Calendar
30. RSS Feed Poster
31. Enable/Disable Themes
32. FontandSizeDropdown1.1
33. Ignore user 1.3
34. Pretty URLs - Base
35. Pretty URLs - TinyPortal - Extention: none
36. Pretty URLs - Extention: none

But board viewers was the only one that caused an issue for me.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 01, 2007, 07:55:37 PM
I will have you know that I had to install that HUGE thing manually. Every last bit (I tried the above tweak but I have a heavily modified forum) of it in the MessageIndex.php file... So far, as near as I can tell, I only missed one comma and everything seems to be working just fine. It installed perfectly on a pretty bare version of SMF but for those of us with modifications (and even with default themes) it is possible but plan on spending a few minutes with it.
Ouch! yeah the 51kb one is pretty crazy.. Surely they all weren't conflicting though? Only a few changes should have had problems. And as I plan on adding a ob_exit filter, it won't matter if a few get missed.
Title: Re: Pretty URLs 0.9.2
Post by: KGIII on February 02, 2007, 12:02:38 AM
LOL I have some 70+ mods installed - all on the default theme - just to see if it breaks stuff. Oh yes, MANY of them had to be done manually but only in that one file. When I am approved to the team and work my way up so that I can convince 'em that there should be an SMF con? The first round is officially on you - but I have the next one just 'cause it worked. Sound fair?
Title: Re: Pretty URLs 0.9.2
Post by: Gandalf The White on February 03, 2007, 02:43:30 AM
Hi,

I tried to install "Pretty URLs - Base", and nothing happen to my url.
Then I installed "Extention: none", when I click on the forum link, the url was not found...

I was previously using phpbb and just switch to SMF, so I'm not familiar with the SMF mod thing.
What should I do to install pretty urls? Please advice...

Thanks
Title: Re: Pretty URLs 0.9.2
Post by: KGIII on February 03, 2007, 02:45:41 AM
After you installed it did you rename example.htaccess to .htaccess? It is a bit of a pain perhaps but not too hard - just follow all the directions in the 11th post in the thread and, well, you should be all set.
Title: Re: Pretty URLs 0.9.2
Post by: Gandalf The White on February 03, 2007, 03:19:43 AM
Thanks KGIII, i got it now...
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 03, 2007, 06:10:00 AM
I'm glad it's working now :)
Title: Re: Pretty URLs 0.9.2
Post by: KGIII on February 03, 2007, 07:28:02 AM
/me thinks that this should be so popular that adding the directions to the first post might be a good idea. ;)
 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 03, 2007, 07:28:44 AM
I couldn't before because editing was broken, but I'll do it now ;)
Title: Re: Pretty URLs 0.9.2
Post by: KGIII on February 03, 2007, 12:51:37 PM
Hmm... I went to go rate it. There is no rate option for this mod anywhere? That is too bad, I was going to vote early and often. (I like it in other words.)
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on February 05, 2007, 12:24:49 AM
hi i just installed this mod and at the top of my site i getv this // Pretty URLs mod $txt['pretty_root_url'] = 'Pretty URLs root URL
(Without a final slash)
'; // Pretty URLs mod $txt['pretty_root_url'] = 'Pretty URLs root URL
(Without a final slash)
'; wot do i need to do to get rid of it thanks in advance
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on February 05, 2007, 12:45:25 AM
hi i just installed this mod and at the top of my site i getv this // Pretty URLs mod $txt['pretty_root_url'] = 'Pretty URLs root URL
(Without a final slash)
'; // Pretty URLs mod $txt['pretty_root_url'] = 'Pretty URLs root URL
(Without a final slash)
'; wot do i need to do to get rid of it thanks in advance
ive uninstalled but itsbsrtill there
Title: Re: Pretty URLs 0.9.2
Post by: KGIII on February 05, 2007, 02:25:54 AM
Did you install it even though it had errors when you went to install it? You will need to reverse the manual installation of mods routine that is listed in the online documentation.
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on February 05, 2007, 02:48:12 AM
Did you install it even though it had errors when you went to install it? You will need to reverse the manual installation of mods routine that is listed in the online documentation.


no there wasnt no errers
Title: Re: Pretty URLs 0.9.2
Post by: KGIII on February 05, 2007, 03:11:46 AM
wdm2005: Did you rename the HTACCESS file and follow all of the directions in the first post?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 05, 2007, 07:43:44 AM
wdm2005, post up your modifications.english.php file. Something went wrong with the package manager.
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on February 05, 2007, 03:03:54 PM
wdm2005, post up your modifications.english.php file. Something went wrong with the package manager.
where do i find that on my server  
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on February 05, 2007, 07:41:14 PM
wdm2005, post up your modifications.english.php file. Something went wrong with the package manager.
where do i find that on my server 

i cantm find it where should it be sry for being a noob but im new to all this and i just want to get ride of all this writing

// Pretty URLs mod $txt['pretty_root_url'] = 'Pretty URLs root URL
(Without a final slash)
'; // Pretty URLs mod $txt['pretty_root_url'] = 'Pretty URLs root URL
(Without a final slash)

thanks in advance if you can help i dont realy want to reinstall smf becuse it took me ages to get this far many many thanks if you can help ps it has made the writng bigger as well hears a link to myu site so u can see
www.joyrider.web-space.ws/forum
 
Title: Re: Pretty URLs 0.9.2
Post by: NEMINI on February 05, 2007, 08:38:03 PM
theme/default/language folder
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on February 06, 2007, 12:13:49 AM
theme/default/language folder

rite i found it and i just delleted it and its all ok thanks for ure help ps ididnt need it did i? i havnt got it installed any more so i didnt think it matterd let me no thanks again for ure help
 
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on February 06, 2007, 12:39:17 AM
ok i relised i needed it so here it is thanks


<?php
// Version: 1.1; Modifications

$txt['arcade'] = 'Arcade';
$txt['arcade_admin'] = 'Arcade Admin';   
$txt['arcade_manage_games'] = 'Games';
$txt['arcade_manage_category'] = 'Categories';
$txt['arcade_settings'] = 'Settings';

// Permission names and help
$txt['permissiongroup_arcade'] = 'Arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_play'] = 'Play on Arcade';
$txt['permissionhelp_arcade_play'] = 'Allows member to play on arcade, in games which he/she has rights to';
$txt['permissionname_arcade_admin'] = 'Administrate arcade';
$txt['permissionhelp_arcade_admin'] = 'Arcade Administarator can Install/Edit/Delete game, Delete scores and edit settings for arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_favorite'] = 'Use Favorites feature';
$txt['permissionhelp_arcade_favorite'] = 'Allows member to favorite and unfavorite games';
$txt['permissionname_arcade_submit'] = 'Save scores';
$txt['permissionhelp_arcade_submit'] = 'Allows users to save their scores.';
$txt['permissionname_arcade_rate'] = 'Rate games';
$txt['permissionhelp_arcade_rate'] = 'Allows users to rate games.';
$txt['permissionname_arcade_comment'] = 'Allow to comment/edit comment';
$txt['permissionhelp_arcade_comment'] = 'Allows user to edit comments, own or any';
$txt['permissionname_arcade_comment_any'] = 'Any';
$txt['permissionname_arcade_comment_own'] = 'Own';

// Errors if they can't do something
$txt['cannot_arcade_play'] = 'You are not allowed to play games!';
$txt['cannot_arcade_view'] = 'You are not allowed to access arcade.';
$txt['cannot_arcade_favorite'] = 'You are not allowed to favorite games';
$txt['cannot_arcade_rate'] = 'You are not allowed to rate games';
$txt['cannot_arcade_comment_own'] = 'You are not allowed to comment';

// Who's online
$txt['who_arcade'] = 'Viewing Arcade index';
$txt['who_arcade_play'] = 'Playing <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';
$txt['who_arcade_highscore'] = 'Viewing highscores of <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';

// Help
$txt['arcade_max_scores_help'] = 'Maximum scores that will be stored per member. (0 means unlimited)';
$txt['arcade_membergroups_help'] = 'These groups will be allowed to play and view highscores. Others will not see this game, only used if permission mode will use game permissions.';// Karma Blocks Package v0.4
$txt['karma_applauds'] = "Applauds";
$txt['karma_smites'] = "Smites";
$txt['karma_applaud_color'] = "green";
$txt['karma_smite_color'] = "red"; //html can be used (red - #ff0000)
//
//Begin SMF Staff Page Text Strings
$txt['smfstaff_stafflist'] = 'Staff List';
$txt['smfstaff_admin'] = 'Staff Configuration';

$txt['permissionname_view_stafflist'] = 'View Staff List';
$txt['permissionhelp_view_stafflist'] = 'Staff List shows all members on your Staff. You can change which member groups are shown by going to Layout and Options and look for SMF Staff filter. This permission allows you to toggle who can view the staff list.';
$txt['cannot_view_stafflist'] = 'You can not view the staff list.';

//Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contact';
$txt['permissionname_view_contact'] = 'View Contact Page';
$txt['permissionhelp_view_contact'] = 'Allows members to view contact page and send email.';
$txt['cannot_view_contact'] = 'You can not view the contact page.';
//END Contact Page Text Strings         

//Begin SMF Links Text Strings
$txt['smflinks_menu'] = 'Links';
$txt['smflinks_admin'] = 'Links Configuration';


$txt['permissiongroup_smflinks'] = 'SMF Links';
$txt['permissionname_view_smflinks'] = 'View Links Page';
$txt['permissionhelp_view_smflinks'] = 'Sets if the user can view the links page.';
$txt['cannot_view_smflinks'] = 'You can not view the links page.';
$txt['permissionname_add_links'] = 'Add Links';
$txt['permissionhelp_add_links'] = 'If the user is allowed to submit links';
$txt['cannot_add_links'] = 'You can not add links.';
$txt['permissionname_edit_links'] = 'Edit Links';
$txt['permissionhelp_edit_links'] = 'If the user is allowed to edit links';
$txt['cannot_edit_links'] = 'You can not edit links.';
$txt['permissionname_delete_links'] = 'Delete Links';
$txt['permissionhelp_delete_links'] = 'If the user is allowed to delete links';
$txt['cannot_delete_links'] = 'You can not delete links.';
$txt['permissionname_approve_links'] = 'Approve Links';
$txt['permissionhelp_approve_links'] = 'If the user is allowed to approve links';
$txt['cannot_approve_links'] = 'You can not approve links.';
$txt['permissionname_links_auto_approve'] = 'Links Auto Approved';
$txt['permissionhelp_links_auto_approve'] = 'If the users links are auto approved when submitted.';
$txt['permissionname_rate_links'] = 'Rate Links';
$txt['permissionhelp_rate_links'] = 'If the user is allowed to rate links';
$txt['cannot_rate_links'] = 'You are not allowed to rate links.';
$txt['permissionname_links_manage_cat'] = 'Manage Categories';
$txt['permissionhelp_links_manage_cat'] = 'User can add/remove/edit/reorder categories';
$txt['cannot_links_manage_cat'] = 'You are not allowed to manage categories.';
//END SMF Links Strings         

$txt['visual_warning_mod']='Visual Warning Mod';
$txt['visualw_mess_ban']='Message To Show For Banned User';
$txt['visualw_mess_mute']='Message To Show For Muted User';
$txt['visualw_mess_pmod']='Message To Show For Post Moderated User';
$txt['visualw_mess_warn']='Message To Show For Warned User';
$txt['visualw_color_ban']='Color of Message For Banned User';
$txt['visualw_color_mute']='Color of Message For Muted User';
$txt['visualw_color_pmod']='Color of Message For Post Moderated User';
$txt['visualw_color_warn']='Color of Message For Warned User';
$txt['visualw_image_ban']='Image to Show For Banned User';
$txt['visualw_image_mute']='Image to Show For Muted User';
$txt['visualw_image_pmod']='Image to Show For Post Moderated User';
$txt['visualw_image_warn']='Image to Show For Warned User';
$txt['warningAutoTime']='Default Time Before Warning Removed (Days):';
$txt['moderationAutoTime']='Default Time Before Moderation Removed (Days):';
$txt['muteAutoTime']='Default Time Before Mute Removed (Days):';
$txt['visualw_pmod_edit']='Moderated Users May Edit Messages:';
$txt['visual_require_mod'] = 'messages require moderation';
$txt['visual_raise']='Raise Warning Level';
$txt['visual_no_perm']='You Do Not Have Permission To Raise Warning Levels';
$txt['visual_no_warnings']='User has NO Current Warnings!';
$txt['visual_prev_warning']='Previous Warning Details';
$txt['visual_current_level']='Current Level:';
$txt['visual_topic_raised']='Topic Where Raised:';
$txt['visual_time_raised']='Time When Raised:';
$txt['visual_reason_raised']='Reason For Raise:';
$txt['visual_level_details']='New Level Details';
$txt['visual_submit']='Submit';
$txt['visual_new_level']='New Level:';
$txt['visual_warning_management']='Warning Management';
$txt['visual_list_desc']='This lists all users that currently have some form of warning (levels 1,2 or 3. Level 4 is not listed as these members have already been banned! You can choose to mass reduce members here or click the member to adjust level accordingly';
$txt['visual_member']='Member';
$txt['visual_level']='Level';
$txt['visual_reason']='Reason';
$txt['visual_when']='When';
$txt['visual_text_warn']='Warned';
$txt['visual_warn']='Warn';
$txt['visual_perm_modify']='You Do Not Have Permission To Modify This Message';
$txt['visual_official_warning']='You Have Received an Offical Warning';
$txt['visual_received_warning']='You have received a warning for recent conduct on our message board. Please follow the link below for more information:';
$txt['visual_been_muted']='You Have Been Muted Due To Bad Behaviour';
$txt['visual_no_karma']='You May Not Give Karma Whilst Warned';
$txt['visual_stages']='(0=None, 1=Warned, 2=Moderated, 3=Muted. 4=Banned)';
$txt['visual_text_pmod']='Moderated';
$txt['visual_text_mute']='Muted';
$txt['visual_text_ban']='Banned';
$txt['visual_none']='None';
$txt['visual_warning_increased']='I have to inform you that your warning level on the board has been increased.';
$txt['visual_warning_reduced']='I am pleased to announce that your warning level on the board has been reduced.';
$txt['visual_reduced']='Warning level reduced';
$txt['visual_lasts']='Time Warning Lasts (Blank=Default)';
$txt['visual_postmod_manager']='Post Moderation Manager';
$txt['visual_postmod_user_under']='This User Is Currently Having All Theirs Posts Approved Before Posting';
$txt['visual_postmod_under']='You Are Currently Under Post Moderation';
$txt['visual_postmod_not']='This User Is Not Post Moderated';
$txt['visual_postmod_is']='This User Is Post Moderated';
$txt['visual_postmod_change']='Change This User\'s Status';
$txt['visual_postmod']='Post Moderation';
$txt['visual_postmod_auth']='You are not authorised to perform this action!';
$txt['visual_postmod_appear']='You Are Currently Under Post Moderation - Your Post Will Appear After Approval';
$txt['visual_postmod_awaiting']='These are all the posts awaiting moderation. To approve a posts (or posts) check all the messages you wish to approve and select "Approve" to delete messages off select those messages you wish to delete and select "Delete"';
$txt['visual_postmod_username']='Username';
$txt['visual_postmod_subject']='Subject/Message';
$txt['visual_postmod_approve']='Approve';
$txt['visual_postmod_delete']='Delete';
$txt['permissiongroup_visual_warn']='Give warnings and perform post moderation';
$txt['permissionname_visual_warn_any']='Warn users';
$txt['permissionname_visual_approve_any']='Approve posts';

// Board Viewers Mod

$txt['enable_board_viewers'] = 'Enable displaying viewer numbers of boards';
$txt['boardViewersGuestsMembers'] = 'Seperate guest and member numbers';
$txt['boardViewersClickable'] = 'Enable pop-up list by clicking viewer numbers';
$txt['countChildPosts'] = 'Count child\'s viewers and posts in parent\'s totals';
$txt['bv_members_guests_none'] = 'There are no users viewing this board.';
$txt['bv_members_guests_this'] = 'There are %s members and %s guests viewing this board.';
$txt['bv_members_guests_child'] = '%s members and %s guests are viewing the child boards of this board.';
$txt['bv_members'] = 'Members';
$txt['viewersBrowsing'] = 'Viewers browsing this board';

$txt['board_v_members'] = 'members'; // 43 members
$txt['board_v_member'] = 'member'; // 1 member

$txt['board_v_guests'] = 'guests'; // 26 guests
$txt['board_v_guest'] = 'guest'; // 1 guest

$txt['board_viewers'] = 'viewing'; // 32 viewing
$txt['board_viewer'] = 'viewing'; // 1 viewing

$txt['board_viewers_child'] = 'Viewers'; // Viewers: 145
$txt['board_viewer_child'] = 'Viewer'; // Viewer: 1

// End Of Board Viewers Mod

// Radio
$txt['radio_modname'] = 'Radio';
$txt['permissiongroup_radio'] = $txt['radio_modname'];
$txt['permissionname_radio_view'] = 'To Listen the Radio';
$txt['racdc'] = 'Activate:';
$txt['nstat'] = 'How many stations?';
for ($cnum = 1; $cnum < ((int)$modSettings['nstat'] + 1); $cnum++)
{
$txt['rname'.$cnum.''] = $cnum.'- Name:';
$txt['rip'.$cnum.''] = 'Server:';
$txt['rport'.$cnum.''] = 'Port:';
$txt['rdir'.$cnum.''] = 'Directory (only if required):';
}
$txt['rstats'] = 'SHOUTCast Stats:';
$txt['rvvar'] = 's';
$txt['revar'] = 'We are listening';
$txt['roff'] = 'Disabled.';
$txt['rnfsock'] = 'Your server does NOT support fsockopen (on port) or incorrect configuration.<br /> Please, disable PHP of "SHOUTCast Stats" (for verify).';
$txt['nope'] = 'Sorry, you have NOT permission to listen the Radio.';
$txt['rmen'] = 'user';
$txt['rnum'] = 'of';
$txt['rlist'] = 'listening';
$txt['radmin'] = 'Radio Administration';
$txt['radmd'] = 'Configure and Add your Radio Stations.';
$txt['rconf'] = 'Configuration';
$txt['rstatis'] = 'Stations';
$txt['rnone'] = 'None';
// Radio - End
$txt['arcade'] = 'Arcade';
$txt['arcade_admin'] = 'Arcade Admin';   
$txt['arcade_manage_games'] = 'Games';
$txt['arcade_manage_category'] = 'Categories';
$txt['arcade_settings'] = 'Settings';

// Permission names and help
$txt['permissiongroup_arcade'] = 'Arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_play'] = 'Play on Arcade';
$txt['permissionhelp_arcade_play'] = 'Allows member to play on arcade, in games which he/she has rights to';
$txt['permissionname_arcade_admin'] = 'Administrate arcade';
$txt['permissionhelp_arcade_admin'] = 'Arcade Administarator can Install/Edit/Delete game, Delete scores and edit settings for arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_favorite'] = 'Use Favorites feature';
$txt['permissionhelp_arcade_favorite'] = 'Allows member to favorite and unfavorite games';
$txt['permissionname_arcade_submit'] = 'Save scores';
$txt['permissionhelp_arcade_submit'] = 'Allows users to save their scores.';
$txt['permissionname_arcade_rate'] = 'Rate games';
$txt['permissionhelp_arcade_rate'] = 'Allows users to rate games.';
$txt['permissionname_arcade_comment'] = 'Allow to comment/edit comment';
$txt['permissionhelp_arcade_comment'] = 'Allows user to edit comments, own or any';
$txt['permissionname_arcade_comment_any'] = 'Any';
$txt['permissionname_arcade_comment_own'] = 'Own';

// Errors if they can't do something
$txt['cannot_arcade_play'] = 'You are not allowed to play games!';
$txt['cannot_arcade_view'] = 'You are not allowed to access arcade.';
$txt['cannot_arcade_favorite'] = 'You are not allowed to favorite games';
$txt['cannot_arcade_rate'] = 'You are not allowed to rate games';
$txt['cannot_arcade_comment_own'] = 'You are not allowed to comment';

// Who's online
$txt['who_arcade'] = 'Viewing Arcade index';
$txt['who_arcade_play'] = 'Playing <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';
$txt['who_arcade_highscore'] = 'Viewing highscores of <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';

// Help
$txt['arcade_max_scores_help'] = 'Maximum scores that will be stored per member. (0 means unlimited)';
$txt['arcade_membergroups_help'] = 'These groups will be allowed to play and view highscores. Others will not see this game, only used if permission mode will use game permissions.';?>
//   Pretty URLs mod
$txt['pretty_root_url'] = 'Pretty URLs root URL<div class="smalltext">(Without a final slash)</div>';
//   Pretty URLs mod
$txt['pretty_root_url'] = 'Pretty URLs root URL<div class="smalltext">(Without a final slash)</div>';

 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 06, 2007, 02:00:32 AM
See the ?> a few lines from the end? Delete it from there and put it at the very end at it will be fixed. You could try reinstalling it too, it should work like that.
Title: Re: Pretty URLs 0.9.2
Post by: [Lucien] on February 06, 2007, 08:53:56 AM
Oke i did everything here in this thread...

The installation went just fine, no problems at all.

Changed the example.htaccess to .htaccess, i modified the Modifications.english.php >? and for other languages as well...

Why it doesn't work? I think it's a great feature, i hope i can get it working :)


Thank You!
Title: Re: Pretty URLs 0.9.2
Post by: [Lucien] on February 06, 2007, 09:03:45 AM
Isn't this the same feature as :

Search engine friendly URLs
Apache only!
?

When i disable this in the forum, the url's  remains the same..

Turn http://dev.eldacar.com/prettyurls/index.php?topic=1.0 into http://dev.eldacar.com/prettyurls/general-discussion/welcome-to-smf/0/ :)

It's not doing this...
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 06, 2007, 09:29:13 AM
The SMF SE friendly URLs just change it to using commas and .html and stuff, but not the title.
Can I have a link to your forum? Did you install the ext-none package as well?
Title: Re: Pretty URLs 0.9.2
Post by: [Lucien] on February 06, 2007, 09:44:15 AM
Yeah sure :D

http://thelivezone.net

And what do you mean by ext-none package? :)
Title: Re: Pretty URLs 0.9.2
Post by: [Lucien] on February 06, 2007, 09:48:14 AM
I'm sorry, i did not see this!!!!

I'm going to do it right away... i must be blind or something.....
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 06, 2007, 09:53:09 AM
You need both packages for it to do anything ;) This is so that it can be tested (I'll make it easier to do this eventually) before you change all the URLs. Otherwise you might change them, breaking your forum, and be unable to fix it again.
Title: Re: Pretty URLs 0.9.2
Post by: [Lucien] on February 06, 2007, 10:03:06 AM
they al work, i installed:
 
 prettyurls-tp-ext-none_0_3.tar.gz  Pretty URLs - TinyPortal - Extention: none 0.3   Featured  Jan 19 1.2 KB   
 prettyurls-base_0_3.tar.gz  Pretty URLs - Base 0.3   Featured  Jan 19 5.8 KB 24   


exept.....

Installations actions for "Pretty URLs - Extention: none":

1. Execute Modification - Modification parse error
2. Execute Modification ./Sources/Stats.php Test successful

:(
 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 06, 2007, 10:04:19 AM
Hmm, that's strange. Can you try redownloading it?
Title: Re: Pretty URLs 0.9.2
Post by: [Lucien] on February 06, 2007, 10:07:25 AM
Yes i have redownloaded the file, but still the same error... what file should it modify?
Title: Re: Pretty URLs 0.9.2
Post by: [Lucien] on February 06, 2007, 10:39:29 AM
I'm going nuts... should there be a mod that would not be compatible on my forum?
I have the same problem with the "enhanced calendar" and "Advanced Visual Verification 1.1.1" mods...

The also give me a Modification parse error  :(

1. BBCode Bar For Signature 1.2   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
2. audiblepm 1.5 1.5   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
3. MySpace Field 2.4  [ Pas mod toe ] [ Overzicht bestanden ] [ Verwijderen ] 
4. GoogleVideo BBCode 0.1   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
5. YouTube BBC Tag (XHTML Compliant) 1.0   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
6. SMF Arcade 2.0.6   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]   
7. SMF Gallery Lite 1.7.1   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
8. Pretty URLs - TinyPortal - Extention: none 0.3   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
9. Profile User Action 1.0   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
10. Modbreaktag 1.0   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
11. Pretty URLs - Extention: none 0.3  [ Pas mod toe ] [ Overzicht bestanden ] [ Verwijderen ] 
12. Advanced Visual Verification 1.1.1  [ Pas mod toe ] [ Overzicht bestanden ] [ Verwijderen ] 
13.  Permission Mod 1.01   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
14. Google Video 1.1.1 (ahmetarig) 1.0   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
15. Award Mod 1.11   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
16. Ad Managment 2.3   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
17. Color Bar 2.0   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
18. SMF Radio 1.1.1   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
19. Sticky First Post (extends sticky topic) 1.3.1   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
20. Profile Comments 1.2.1   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
21. TinyPortal 0.971   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
22. Topic Ratings 1.03   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
23. YouTube BBCode by Yakuza 0.2   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
24. Wrap Text Around Image 1.0   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
25. Display Age and Location next to posts 1.0   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
26. Pretty URLs - Base 0.3   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
27. Automatic Avatar for New Users 2   [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ] 
 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 07, 2007, 11:53:19 PM
Prehaps there's an issue with your server's zlib.. I really have no idea sorry.
Title: Re: Pretty URLs 0.9.2
Post by: GetRank on February 08, 2007, 12:50:00 AM
1.1 RC3 isn't supported sorry. Can you upgrade to 1.1.1?

sure  :)

now have some problems with Turkish characters
if boardname has a TR char its link like "...../b34/0"

no problem boardname and topicname without TR characters

installed succesfully both packeges
rename "example.htaccess" to ".htaccess"
checked Pretty URLs root URL

sorry for my english
regards
 
Title: Re: Pretty URLs 0.9.2
Post by: Toadmund on February 08, 2007, 12:50:53 AM
Under 'install actions' in package manager, I get this:
Quote
3.     Execute Modification     ./Sources/Display.php     Test failed

I use the 'moonraker' theme.
Title: Re: Pretty URLs 0.9.2
Post by: hawkshaw on February 08, 2007, 01:21:47 AM
I found this error msg when i was trying to install extension none
Quote
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./SSI.php    Test successful
2.    Execute Modification    ./Sources/BoardIndex.php    Test failed
3.    Execute Modification    ./Sources/Display.php    Test successful

 
Title: Re: Pretty URLs 0.9.2
Post by: Toadmund on February 08, 2007, 01:26:48 AM
I'll trade you a used:
Quote
3.     Execute Modification     ./Sources/Display.php     Test failed

For your:
Quote
3.    Execute Modification    ./Sources/Display.php    Test successful
;D
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 08, 2007, 01:43:17 AM
Quote
now have some problems with Turkish characters
if boardname has a TR char its link like "...../b34/0"

no problem boardname and topicname without TR characters
Which Turkish characters? I thought I had them fixed (http://dev.eldacar.com/prettyurls/general-discussion/turkce-karekter-sisgsg/0/). Is your forum using UTF-8? If it doesn't, it might not work.

Under 'install actions' in package manager, I get this:
Quote
3.     Execute Modification     ./Sources/Display.php     Test failed
I found this error msg when i was trying to install extension none
Quote
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./SSI.php    Test successful
2.    Execute Modification    ./Sources/BoardIndex.php    Test failed
3.    Execute Modification    ./Sources/Display.php    Test successful
Do either of you have any other mods installed?
Title: Re: Pretty URLs 0.9.2
Post by: hawkshaw on February 08, 2007, 01:48:20 AM
I'll trade you a used:
Quote
3.     Execute Modification     ./Sources/Display.php     Test failed

For your:
Quote
3.    Execute Modification    ./Sources/Display.php    Test successful
;D

  :D hahaha..

Guess id better just wait patiently til this mod is not in beta version any longer  :P
Title: Re: Pretty URLs 0.9.2
Post by: hawkshaw on February 08, 2007, 01:50:10 AM
eldakai :
Modification Packages
   Mod Name    Version    
1.    Ad Managment    2.0    [ Uninstall ] [ List Files ] [ Delete ]
2.    Zodiac Starsigns    1.0    [ Uninstall ] [ List Files ] [ Delete ]
3.    Users Online Today Mod    1.4.0    [ Uninstall ] [ List Files ] [ Delete ]
4.    Board Viewers Mod    1.1    [ Uninstall ] [ List Files ] [ Delete ]
5.    Profile Comments    1.2.1    [ Uninstall ] [ List Files ] [ Delete ]
6.    RSS Feed Icon    1.1    [ Uninstall ] [ List Files ] [ Delete ]
7.    Hide Post    1.0.8    [ Uninstall ] [ List Files ] [ Delete ]
8.    ShowTopics    1.1    [ Uninstall ] [ List Files ] [ Delete ]
9.    SMFShop 2.3 to 3.0 Update    3.0    [ List Files ] [ Delete ]
10.    SMFShop    2.3    [ Uninstall ] [ List Files ] [ Delete ]
11.    Signature Settings Mod    1.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    Sticky First Post (extends sticky topic)    1.3.1    [ Uninstall ] [ List Files ] [ Delete ]
13.    Pretty URLs - Extention: none    0.3    [ Apply Mod ] [ List Files ] [ Delete ]
14.    Profile Music    1.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    Hide Board    1.1    [ Uninstall ] [ List Files ] [ Delete ]
16.    Custom Profile Field Mod    3.16    [ Uninstall ] [ List Files ] [ Delete ]
17.    Move Old Topics    1.2    [ Uninstall ] [ List Files ] [ Delete ]
18.    Who Voted What?    1.1.1    [ Uninstall ] [ List Files ] [ Delete ]
19.    vReportBoard Mod    0.97    [ Uninstall ] [ List Files ] [ Delete ]
20.    Spam Me Not Mod    1.02    [ Uninstall ] [ List Files ] [ Delete ]
21.    Gender On Registration    1.0    [ Uninstall ] [ List Files ] [ Delete ]
22.    Streaming 3    4.2.2b    [ Uninstall ] [ List Files ] [ Delete ]
23.    Related Topics    1.1.1    [ Uninstall ] [ List Files ] [ Delete ]
24.    Karma Description Mod    2.2    [ Uninstall ] [ List Files ] [ Delete ]
25.    Custom Board Sort    1.0    [ Uninstall ] [ List Files ] [ Delete ]
26.    Pretty URLs - Base    0.3    [ Uninstall ] [ List Files ] [ Delete ]

^^
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 08, 2007, 01:52:28 AM
Well it's probably clashing with one of them. You can try installing it anyways, and see if it will work.
Title: Re: Pretty URLs 0.9.2
Post by: hawkshaw on February 08, 2007, 01:56:35 AM
plus tinyportal. forgot to mention..
try installing the next version you mean ? ^^
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 08, 2007, 01:59:15 AM
No try installing this one. If it misses one part of the mod, it should still work fine. (well as long as the base package installed perfectly). I might even make it skip errors...
Title: Re: Pretty URLs 0.9.2
Post by: hawkshaw on February 08, 2007, 02:06:47 AM
Execute Modification    ./Sources/BoardIndex.php    Test failed

Continue the installation by ignoring that ? uh oh... that sounds full of risk :p :(

 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 08, 2007, 02:08:27 AM
It means that not all of the URLs will be changed, however as I will add a filter in a later version, that won't matter.
Title: Re: Pretty URLs 0.9.2
Post by: hawkshaw on February 08, 2007, 02:09:59 AM
I prefer to wait then :) Good luck in making the next version ^^
Title: Re: Pretty URLs 0.9.2
Post by: Toadmund on February 08, 2007, 10:56:09 AM
Welp, here's mine:
Quote
Modification Packages
   Mod Name    Version    
1.    SMF 1.0.9 and 1.1 RC3-1 Security Patch    1.0.8/1.1 RC3    [ List Files ] [ Delete ]
2.    SMF 1.1.1 Update Package    1.1.1    [ Uninstall ] [ List Files ] [ Delete ]
3.    SMF 1.0.9 and 1.1 RC3-1 Security Patch    1.0.8/1.1 RC3    [ List Files ] [ Delete ]
4.    Pretty URLs - Extention: none    0.3    [ Apply Mod ] [ List Files ] [ Delete ]
5.    Pretty URLs - Base    0.3    [ Uninstall ] [ List Files ] [ Delete ]
6.    SMF 1.0.8 Update Package    1.0.8    [ List Files ] [ Delete ]
7.    SMF 1.0.9 and 1.1 RC3-1 Security Patch    1.0.8/1.1 RC3    [ List Files ] [ Delete ]
8.    SMF 1.1.1 Update Package    1.1.1    [ Uninstall ] [ List Files ] [ Delete ]
9.    Seo 4 SMF    0.2.4    [ Apply Mod ] [ List Files ] [ Delete ]
10.    Topic description    1.0    [ Uninstall ] [ List Files ] [ Delete ]
11.    SMF 1.1.1 Update Package    1.1.1    [ Uninstall ] [ List Files ] [ Delete ]
12.    SMF Archive    1.1    [ List Files ] [ Delete ]
13.    YouTube BBC Tag (XHTML Compliant)    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
14.    SMF 1.0.9 and 1.1 RC3-1 Security Patch    1.0.8/1.1 RC3    [ List Files ] [ Delete ]
15.    SMF 1.0.8 Update Package    1.0.8    [ List Files ] [ Delete ]
16.    SMF 1.1.1 Update Package    1.1.1    [ Uninstall ] [ List Files ] [ Delete ]

As you can see, I actually have only 2 mods installed, the other ones I put on the backburner.
Is it safe to delete all that pre-1.1.1 stuff?

I assume it's SMF Archive that may be conflicting?
Quote
Execute Modification    ./Sources/BoardIndex.php    Test failed
Title: Re: Pretty URLs 0.9.2
Post by: rubble on February 09, 2007, 11:42:43 PM
I'd love to use this mod but can't get it to work. I've tried to follow your directions but I don't know what you're taking about on that third one.

    * Download and install the base package from the mod site.
    * Using FTP, rename example.htaccess to .htaccess
    * Download the extension-none (and the TP-ext-none if you use TinyPortal) package from the Package List, or just from the site directly, and then install them.

Done 1 and 2 no problem but what is "extension-none package from the package list"?

There's no link to it on your mod page. I can't find a mod called that in the download section. I can't find it on my server. In my admin>packages I can't find any mention of it.  I also tried to figure out what this means: "or just from the site directly". What site?

I have a feeling that this must be something well know in the SMF community but I've only been here 2 days so any info is appreciated. Thanks.  :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 09, 2007, 11:55:00 PM
If you go to "Download Packages" you'll see "Pretty URLs Package List" listed there. Click on "[ Browse ]", and then you can download the other mods.
Or just get them from http://code.google.com/p/prettyurls/downloads/list
Title: Re: Pretty URLs 0.9.2
Post by: rubble on February 10, 2007, 01:38:31 AM
Got it to work very quickly once I found that file. Thanks for your help! It's a great mod!  
Title: Re: Pretty URLs 0.9.2
Post by: Toadmund on February 10, 2007, 02:17:02 AM
I got it working, previously I had a problem with the extension
Quote
Execute Modification    ./Sources/BoardIndex.php    Test failed

Then I tried to install the
Quote
prettyurls-ext-none_0_3.tar.gz    
and then display.php frigged up, then I simply deleted it (display.php) and replaced it, I don't know if I changed boardindex.php or it just frigged up too. Oh Well.
Now it works :D
Thanks man!!! :P

Edit-looking back it was hawkshaw that had the boardindex.php problem, not me, I must have quoted the wrong line? Mine was display.php.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 10, 2007, 06:02:31 AM
I'm glad it's working for you both now.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on February 11, 2007, 01:28:19 PM
I installed this then decided i didn't want it, so I uninstalled it.

Although in the admin section, Base URL box is still under features and options, what code do I change to remove it?
Title: Re: Pretty URLs 0.9.2
Post by: stoecki on February 11, 2007, 04:02:57 PM
it would be nice if they were replaced in this way:

ä becomes ae
ö becomes oe
ü becomes ue
ß becomes ss

anyway, thanks for this great mod!
 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 11, 2007, 06:49:38 PM
L.G.S., look in ModSettings.php
stoecki, hmmm, I'll consider that.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on February 13, 2007, 07:28:44 AM
I've read these pages and I still have a question :)

Does this mod properly handle 301 redirects to the new URLs ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 13, 2007, 07:35:42 AM
Not yet, but I'm working on adding that.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on February 13, 2007, 07:50:25 AM
Kewl..
The reason I asked is that I too started working on something similar (and looks uglier than yours too), but never got the time to finish it :D nor I feel very motivated now that I see the results on your work.

So I will wait for yours to finish and use it :) as it looks pretty.

Couple of more questions:
a) about .htaccess file - do IPs of visitors appear properly in forum stats ?
b) does "Database Backup" work (the one in the admin backend) ?

 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 13, 2007, 07:51:29 AM
Hmm.. I don't know about the IPs, but I can't see why they wouldn't appear properly.
As to the database backup, that should work perfectly.
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on February 13, 2007, 04:04:29 PM
I installed the mod and it looks like it is working well.
5 questions:

1. Why didn't SMF work like this from the start? ;)

2. I get urls like http://forum.skeptic.za.org/9/0/ instead of http://forum.skeptic.za.org/introduce-yourself/0/ when I use the SSI.php functions on my homepage. Just realized, that's probably because I didn't modify the .htaccess file for my homepage, it is on a different subdomain.  :-[

3. One topic is prettified as t12. I suspect it is a problem with the ä character.

4. When will the 301 redirects be ready?

5. I have custom sitemaps both for Google and an html page, like here: http://www.simplemachines.org/community/index.php?topic=59676.0
How can I modify it to use my pretty urls?

Thanks for a great mod.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 14, 2007, 06:38:22 AM
1. Well it is less efficient than how SMF works by default.. however for most boards the performance hit probably won't be noticeable.

2. Hmm weird. Can you check in your error log for anything suspicious? You won't need a .htaccess file in your homepage, I very much doubt that would be the problem.

3. Hmm, can you again check the error log. Accented characters should work fine (as I've tested them on the dev forum (http://dev.eldacar.com/prettyurls/index.php)). Which character encoding does your forum use? Maybe it's a problem.

4. Hopefully not too long, a week maybe if you're lucky. I'm kind of busy with other stuff though ;)

5. Hmmm.. can you post up the code?
Title: Re: Pretty URLs 0.9.2
Post by: Zenigata on February 15, 2007, 11:30:44 AM
Great mod! This have to be integrated in SMF core!
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on February 16, 2007, 06:26:10 AM
There are no errors in the log files, and I am using ISO-8859-1 character encoding as it is a standard english board.

The code to the custom sitemap is at the link I provided, it is too much to post.
Maybe you can give a quick overview of how the mod works. I also do not have time to go through your mod in detail now. Whenever you have time ;)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 16, 2007, 06:33:48 AM
Changing to UTF-8 might give better results.. it's all I've tested on. I wouldn't have thought that would be a problem though, as it should convert it to unicode itself.

As to the sitemaps.. the code in it is pretty bad, but it shouldn't be too hard. You'll need to change the queries so that they get the pretty_urls column from the topics table. Ask the sitemaps creator for help, as they'll know how to do it more easily.
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on February 17, 2007, 09:45:14 AM
Mmm, I don't think I'll be changing to UTF-8 anytime soon. Will poke around and see if I can find the problem with the extended characters. Maybe it is because the Subs-PrettyUrls.php file is in UTF-8?

The problem with my index page was that $context['pretty']['board_urls'] was not defined in SSI.php. Adding the following lines like in index.php fixed it.

Code: [Select]
--- SSI.php~    2007-02-13 22:39:19.000000000 +0200
+++ SSI.php     2007-02-17 16:15:54.000000000 +0200
@@ -79,6 +79,9 @@
 
 // Load installed 'Mods' settings.
 reloadSettings();
+$context = array('pretty' => array());
+// Unserialize the array of pretty board URLs
+$context['pretty']['board_urls'] = unserialize($modSettings['pretty_board_urls']);
 // Clean the request variables.
 cleanRequest();
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on February 17, 2007, 01:02:10 PM
A modified google sitemap to work with pretty urls is here:
http://smf-pretty-sitemap.googlecode.com/svn/trunk/sitemap.php
 
Title: Re: Pretty URLs 0.9.2
Post by: lostinphp on February 17, 2007, 01:28:49 PM
I have installed everything, no errors, fixed the .htaccess file. Get "Pretty URLs" on my site, but when I click on them, get Not Found errors on the Pretty URLs. My base folder is /forum/. I uncommented the line in .htaccess file to account for this. I had this same problem when I was trying to work on a Mambo site and get the URLs looking good. Always get the Not Found error, so it must be something I am doing wrong. Any suggestions??
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on February 17, 2007, 03:56:32 PM

        RewriteRule ^([-_a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
#       To change the base url, just add the child folder name to the front of the pattern. Example:
#       RewriteRule ^/forum/([-_a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]

You have to add /forum/ between the ^ and ( to all the rules I think.
Title: Re: Pretty URLs 0.9.2
Post by: lostinphp on February 17, 2007, 07:23:15 PM
I just tried that too and still get NOT FOUND for the URLs. I know it's probably something simple I'm doing wrong. Hopefully I will figure it out soon.....
Title: Re: Pretty URLs 0.9.2
Post by: NEMINI on February 17, 2007, 07:58:06 PM
is mod rewrite enabled on your server?
Title: Re: Pretty URLs 0.9.2
Post by: lostinphp on February 17, 2007, 08:28:55 PM
Yeah, mod rewrite is enabled too. Stumped on this one.....
Title: Re: Pretty URLs 0.9.2
Post by: lostinphp on February 17, 2007, 08:55:08 PM
Sweeeet! Finally got it fixed. Here is what I was doing wrong. Number one, I was fooling with the .htaccess in the public_html folder, not the /forum/ folder. There wasn't even a .htaccess file in the /forum/ folder. Had to make one and then added this into that folder:

Quote
Options +FollowSymLinks
RewriteEngine on

#        Pretty board urls
RewriteRule ^([-_a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#        Pretty topic urls
RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/msg([0-9]*)/?$ ./index.php?pretty;board=$1;topic=$2.msg$3 [L,QSA]
RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/new/?$ ./index.php?pretty;board=$1;topic=$2.new [L,QSA]

#        To change the base url, just add the child folder name to the front of the pattern. Example:
RewriteRule ^/forum/([-_a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]

Now everything seems to be working kosher. Thanks for the help. Hope nobody else has such a hard time with such a simple problem.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 17, 2007, 10:06:11 PM
Mmm, I don't think I'll be changing to UTF-8 anytime soon. Will poke around and see if I can find the problem with the extended characters. Maybe it is because the Subs-PrettyUrls.php file is in UTF-8?
It's possible... all I can recommend is using UTF-8. I don't know how the other character encodings would work with it.

Quote
The problem with my index page was that $context['pretty']['board_urls'] was not defined in SSI.php. Adding the following lines like in index.php fixed it.

Code: [Select]
--- SSI.php~    2007-02-13 22:39:19.000000000 +0200
+++ SSI.php     2007-02-17 16:15:54.000000000 +0200
@@ -79,6 +79,9 @@
 
 // Load installed 'Mods' settings.
 reloadSettings();
+$context = array('pretty' => array());
+// Unserialize the array of pretty board URLs
+$context['pretty']['board_urls'] = unserialize($modSettings['pretty_board_urls']);
 // Clean the request variables.
 cleanRequest();
Oh, I hadn't thought of that. I'll add it myself too. Thanks :)

A modified google sitemap to work with pretty urls is here:
http://smf-pretty-sitemap.googlecode.com/svn/trunk/sitemap.php
Nice!

Sweeeet! Finally got it fixed. Here is what I was doing wrong. Number one, I was fooling with the .htaccess in the public_html folder, not the /forum/ folder. There wasn't even a .htaccess file in the /forum/ folder. Had to make one and then added this into that folder:

Quote
Options +FollowSymLinks
RewriteEngine on

#        Pretty board urls
RewriteRule ^([-_a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#        Pretty topic urls
RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/msg([0-9]*)/?$ ./index.php?pretty;board=$1;topic=$2.msg$3 [L,QSA]
RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/new/?$ ./index.php?pretty;board=$1;topic=$2.new [L,QSA]

#        To change the base url, just add the child folder name to the front of the pattern. Example:
RewriteRule ^/forum/([-_a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]

Now everything seems to be working kosher. Thanks for the help. Hope nobody else has such a hard time with such a simple problem.
the .htaccess file should be in your forum's root directory (although it might work elsewhere too). You should probably comment out that last line. It shows what to do if you want to add a pretend base folder to your urls. I use it in my forum: http://ftgforums.com/forum/general-game/0/. There is actually no /forum/ there, SMF is located just at http://ftgforums.com/.
Title: Re: Pretty URLs 0.9.2
Post by: lostinphp on February 18, 2007, 05:42:27 AM
Just one thing I noticed about this Mod - When you use the jump to at the bottom of the page it takes you to the original URLs for the thread. Noticed this on your site that you posted also. Instead of directing to http://ftgforums.com/forum/general-game/0/ where you want the URL to redirect, the jump to is taking you to http://ftgforums.com/index.php?board=1.0 Google is noticing both URLs too as you have PR1 for one page and PR0 for the other. Maybe a fix for that? Or am I missing something?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 18, 2007, 05:46:33 AM
The jumpto box isn't controlled by the Source files (the only place where I've been replacing URLs so far). I'll have to fix it later.
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on February 18, 2007, 05:47:53 AM
Is it possible to add a robots noindex meta tag or something to all pages but the pages with pretty urls? That would maybe be easier than 301 redirects, just thinking out load here ;)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 18, 2007, 05:55:07 AM
Hmm, you could do it by checking whether $_REQUEST['pretty'] is set, and adding a noindex if it isn't. I will add redirects, but it will take time ;)
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on February 18, 2007, 11:14:07 AM
The jumpto box isn't controlled by the Source files (the only place where I've been replacing URLs so far). I'll have to fix it later.
Links in the search pages should also be fixed.

Hmm, you could do it by checking whether $_REQUEST['pretty'] is set, and adding a noindex if it isn't. I will add redirects, but it will take time ;)
Added the following lines to Sources/Display.php. Do you think $modSettings['pretty_root_url'] is a good way to check whether pretty urls is installed or not, or is there a better way?  Anyway, look like it works.
Code: [Select]
--- Sources/Display.php.bkp     2007-02-18 17:52:08.000000000 +0200
+++ Sources/Display.php 2007-02-18 17:54:08.000000000 +0200
@@ -813,6 +813,10 @@
        // Load up the "double post" sequencing magic.
        if (!empty($options['display_quick_reply']))
                checkSubmitOnce('register');
+
+       // If it is not a pretty url, tell the robots not to index this page.
+       if (!isset($_REQUEST['pretty']) && isset($modSettings['pretty_root_url']))
+               $context['robot_no_index'] = true;
 }
 
 // Callback for the message display.
Something similar could also be added to the board and message index pages. Just a note that you have to think carefully before adding this, as this will cause bots to remove the old urls from the search index as it crawls your site, which is not a problem if you are committed to the new urls. It should prevent duplicate content though.
Title: Re: Pretty URLs 0.9.2
Post by: lostinphp on February 18, 2007, 06:34:36 PM
Also getting another URL for the same post on main board (over by Last post by) ending in sequence message posted eg. /test-url/msg6/#new, /test-url/msg7/#new, /test-url/msg8/#new . Just another URL to fidget with.  
Title: Re: Pretty URLs 0.9.2
Post by: Col on February 18, 2007, 07:07:25 PM
Hi eldʌkaː,

Why, when I click an individual message, the URL displays such as this: http://dev.eldacar.com/prettyurls/general-discussion/turkce-karekter-sisgsg/msg69/#msg69

Also, what happens if two threads have the same title?

I really like the look of this mod. It will help with page rankings.

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 18, 2007, 09:27:05 PM
Also getting another URL for the same post on main board (over by Last post by) ending in sequence message posted eg. /test-url/msg6/#new, /test-url/msg7/#new, /test-url/msg8/#new . Just another URL to fidget with.
What's the problem with these?

Why, when I click an individual message, the URL displays such as this: http://dev.eldacar.com/prettyurls/general-discussion/turkce-karekter-sisgsg/msg69/#msg69
That's the same as how it is normally. The msg69/#msg69 allows you to link to a single message.

Quote
Also, what happens if two threads have the same title?
It will add the topic number to the end, like these ones:
http://dev.eldacar.com/prettyurls/general-discussion/making-two-pages-of-threads/0/
http://dev.eldacar.com/prettyurls/general-discussion/making-two-pages-of-threads-t41/0/
Title: Re: Pretty URLs 0.9.2
Post by: Col on February 19, 2007, 06:31:04 AM
Thanks, eldʌkaː.

Why, when I click an individual message, the URL displays such as this: http://dev.eldacar.com/prettyurls/general-discussion/turkce-karekter-sisgsg/msg69/#msg69
That's the same as how it is normally. The msg69/#msg69 allows you to link to a single message.

The bit I don't understand is the repetition of "msg69". Why do you need that twice? I understand its function, just not its form.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 19, 2007, 06:47:18 AM
http://www.simplemachines.org/community/index.php?topic=146969.msg968208#msg968208
It's the same here.
The .msg part tells SMF which message is being view, so that it can show the right page.
The #msg part isn't actually part of the url. It's a fragment, and is used by the browser to take you to a particular location of the page. It either isn't sent to the server, or if it is, is ignored.
Title: Re: Pretty URLs 0.9.2
Post by: schled on February 20, 2007, 05:41:54 AM
Thanks for a great mod! I too think this should be a part of core smf!!

My only question; is it possible to use the topic etc id numbers rather than name? What would happen to links if a topic name changes? Is anyone able to point me in the right direction to change this?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 20, 2007, 06:27:16 AM
If a topic name changes, the pretty url to it won't. (I will eventually add a mod feature to allow changes to the pretty url though.)
Title: Re: Pretty URLs 0.9.2
Post by: hawkshaw on February 21, 2007, 06:56:10 AM
I tried it to my test forum. Boardindex.php test failed while installing, i ignored it.

When i hovered on a thread link, the link's been changed into prettyurl link.. but when i clicked it, i got this error message :
Quote
Not Found
The requested URL /testforum/general-discussion/welcome-to-smf/0/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: Pretty URLs 0.9.2
Post by: stoecki on February 21, 2007, 07:02:12 AM
you probably missed to rename the .htaccess file  ;)
Title: Re: Pretty URLs 0.9.2
Post by: CyberOto on February 21, 2007, 07:22:46 AM
Hi,

I have just tried to install the Pretty URLs mod on a clean installation of SMF 1.1.2 and got this

Quote
Installations actions for "Pretty URLs - Extention: none":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    -    Modification parse error
2.    Execute Modification    ./Sources/Stats.php    Test successful

when trying to install the extension. I have ignored the error and installed the mod, but alas.

The .htaccess file is renamed and the host have mod_rewrite working on it.

Any ideas ?

Thanks in advance.
Title: Re: Pretty URLs 0.9.2
Post by: moonrock on February 21, 2007, 04:06:23 PM
 I don't seem to get it work.

my forum root is at /forum/
and i edited the .htacess (yes..i've renamed it from example.htaccess)
the .htaccess file is in my forum root

Quote
#   Example .htaccess file for the SMF Pretty Urls mod
#   If you already have a .htaccess file you will have to manually edit this and that file together. If not, you should be able rename this file to .htaccess and have it work without any changes. The default options should work, but other possible options are also provided commented out (for example, if you want to change the base location to /forum/)

RewriteEngine on

#   Pretty board urls
RewriteRule ^/forum/([-_a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^/forum/([-_a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#   Pretty topic urls
RewriteRule ^/forum/([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^/forum/([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
RewriteRule ^/forum/([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/msg([0-9]*)/?$ ./index.php?pretty;board=$1;topic=$2.msg$3 [L,QSA]
RewriteRule ^/forum/([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/new/?$ ./index.php?pretty;board=$1;topic=$2.new [L,QSA]

#   To change the base url, just add the child folder name to the front of the pattern. Example:
#   RewriteRule ^/forum/([-_a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]

but still the URL is not found when i click on the url
did i miss something ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 21, 2007, 09:22:52 PM
If your forum's index.php is in /forum/ and so is your .htaccess, you don't want to do that. Adding on a directory like that is useful only for pretend directories, or if your .htaccess isn't in the same location as your forum's index.php
Title: Re: Pretty URLs 0.9.2
Post by: moonrock on February 22, 2007, 10:43:43 AM
If your forum's index.php is in /forum/ and so is your .htaccess, you don't want to do that. Adding on a directory like that is useful only for pretend directories, or if your .htaccess isn't in the same location as your forum's index.php

yes my forum index.php is in the /forum/ .. of course.
so i shouldn't do that ?? what do I do then ?

the renamed .htaccess is in my forum root.
but i still get the 404 error
Title: Re: Pretty URLs 0.9.2
Post by: CyberOto on February 22, 2007, 12:36:59 PM
If your forum's index.php is in /forum/ and so is your .htaccess, you don't want to do that. Adding on a directory like that is useful only for pretend directories, or if your .htaccess isn't in the same location as your forum's index.php

yes my forum index.php is in the /forum/ .. of course.
so i shouldn't do that ?? what do I do then ?

the renamed .htaccess is in my forum root.
but i still get the 404 error

a) move the .htaccess file outside the forum folder
b) remove the /forum from RewriteRule


Cheers
Title: Re: Pretty URLs 0.9.2
Post by: Carlos Gandra on February 28, 2007, 10:30:18 PM
Quote
Installations actions for "Pretty URLs - Extention: none":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    -    Modification parse error
2.    Execute Modification    ./Sources/Stats.php    Test successful

Exactly same problem here... :(
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 28, 2007, 10:35:40 PM
Do other mods work? Anything in the error log?
Title: Re: Pretty URLs 0.9.2
Post by: moonrock on March 01, 2007, 02:54:54 PM
If your forum's index.php is in /forum/ and so is your .htaccess, you don't want to do that. Adding on a directory like that is useful only for pretend directories, or if your .htaccess isn't in the same location as your forum's index.php

yes my forum index.php is in the /forum/ .. of course.
so i shouldn't do that ?? what do I do then ?

the renamed .htaccess is in my forum root.
but i still get the 404 error

a) move the .htaccess file outside the forum folder
b) remove the /forum from RewriteRule


Cheers

tried all!.. still 'Requested URL not found'

- moved .htaccess outside forum and also keep it inside
- renamed /RewriteRule and also using default

all doesn't work!!

though i can see the links are change to Pretty URLs, but unable to link it to the topic..etc..

what did i miss ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 01, 2007, 05:54:17 PM
Can you give a link to your forum please.
Title: Re: Pretty URLs 0.9.2
Post by: schled on March 01, 2007, 09:18:00 PM
Since installing this mod, I have multiple entries each of

Code: [Select]
File does not exist: /home/forum.url.com/html/forum-category
and

Code: [Select]
Premature end of script headers: php5, referer: http://forum.url.com/forum-category/topic-name/0/
in my error log.

Could the first error be due to robots searching?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 01, 2007, 09:40:36 PM
It could be.. is your .htaccess file working properly?
I don't know what the cause of the second is, but I doubt it's got much to do with this mod.
Title: Re: Pretty URLs 0.9.2
Post by: schled on March 01, 2007, 10:16:46 PM
The forum and mod seem to be working perfectly. Perhaps my host is just having some issues :( I thought they were strange errors.
Title: Re: Pretty URLs 0.9.2
Post by: Carlos Gandra on March 02, 2007, 12:32:56 AM
Do other mods work? Anything in the error log?

Hi,

Well, I decided to install manually and it was a good exercise... more than an hour to install the Major.xml 8)

Is working now :D but I need some technical support from you (or any other member) in one thing: my Forum is Portuguese, so it have characters like à, ú, ç, etc, frequently, and when it happens, it do not transmite the name of the board and topic, but the number of the board and the number off the topic...

Please check it: http://forum.mundodosanimais.pt/, for example:
Without "special" characters: http://forum.mundodosanimais.pt/sugestoes/
With them: http://forum.mundodosanimais.pt/b25/0/

I've got to the Subs-PrettyUrls and I tried everything... make html entities, numerical entities, the characters itself (inside the '',) but nothing works. I've also tried to modify the encode of the entire page, done it but the desired effect doesn't apppear.

I really appreciate any help that could be given to me ;) (please consider a-priori that I can't put all of my forum in UTF-8)

Eldaka, congrats for this mod, I hope you keeping developing it because is an essential part of the seo-competition today.

Regards

 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 02, 2007, 12:58:20 AM
The code that matters is the generatePrettyUrl() function of Subs-PrettyUrls.php (http://prettyurls.googlecode.com/svn/trunk/Base/Subs-PrettyUrls.php)

The preg_match_all() function is supposed to accept any encoding, and convert it to Unicode, but prehaps it isn't.

Hm... actually I think I got that backwards. It looks like it only accepts UTF-8 :S weird. Which encoding do you use?

I think I'll have to put something on the download page that this mod is designed for UTF-8 and that the results will be unpredictable in other encodings. Hopefully we can get it working in all of them though :)
Title: Re: Pretty URLs 0.9.2
Post by: eladio on March 02, 2007, 06:44:42 AM
is there any chance to see a version  for forum on WIN server  :(  :'(

 
Title: Re: Pretty URLs 0.9.2
Post by: Carlos Gandra on March 02, 2007, 12:42:07 PM
Hi,

Hm... actually I think I got that backwards. It looks like it only accepts UTF-8 :S weird. Which encoding do you use?

I'm using ISO_8859-1.

In Subs-PrettyUrls.php, I was convicted that if we add the characters missing, it works, but unfortunately not :(

That's what I've done, for example:
'c'   =>   array ('ç', 'c', 'C', 'ç', 'Ç', 'ć', 'Ć'),

But all the names with ç became the number off the topic.

I'm sorry I don't have the knowledge enough of code to be able to help, me and consequently all the ones that have the same problem.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 02, 2007, 09:48:14 PM
eladio, it will work with Apache on Windows, and would also work in IIS if there is a mod_rewrite for it too. I know nothing about IIS though.

ac99, in your copy of Subs-PrettyUrls.php, make this change:
Code: (find) [Select]
preg_match_all("~.~su", $text, $characters);
Code: (replace) [Select]
preg_match_all("~.~su", utf8_encode($text), $characters);
Title: Re: Pretty URLs 0.9.2
Post by: Carlos Gandra on March 03, 2007, 11:12:37 AM
Doesn't work... well, it works of course, but as the same as before ;)

I'm thinking if "we" aren't on the wrong way... instead trying convert to utf-8, trying a method that will accept any encoding, even if some file has to be manually changed to setup the correct encoding that the forum admin want.

Only suppositions ;)  
Title: Re: Pretty URLs 0.9.2
Post by: Carlos Gandra on March 03, 2007, 11:26:57 AM
Wow please forgot my last post, cause I think I've seen a very positive signal :D

Look, all my Boards, Sub-Boards and Topics with one of them: áàâãéèíóòúç continue appearing with numbers and not names, but, I've created a test post named "Novo teste: áàâãéèíóòúç" and the URLs retrieve: "novo-teste-aaaaeeioouc/0/" :D :D

So, a cache problem? What it could be? How all my titles became the names of them? :D I've also cleaned my browser cache (I don't know if it had someting relation with this) but not works. What I know is that, this topic title as retrieved characters as we want :D that only could be positive, right?
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on March 03, 2007, 11:37:34 AM
ac99, in your copy of Subs-PrettyUrls.php, make this change:
Code: (find) [Select]
preg_match_all("~.~su", $text, $characters);
Code: (replace) [Select]
preg_match_all("~.~su", utf8_encode($text), $characters);
Yup, that seems to work for new topics. I think old topics will keep the wrong name though - its in the database right?
Title: Re: Pretty URLs 0.9.2
Post by: Carlos Gandra on March 03, 2007, 12:33:01 PM
Yeah, all the topics created by my members after the change in Subs-PrettyUrls, appears as we want.  
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 03, 2007, 09:43:34 PM
Uninstall the mod, delete the pretty_topic_urls table and the pretty_url column from the topics table, and then reinstall the mod. That will reset everything.
Title: Re: Pretty URLs 0.9.2
Post by: NEMINI on March 03, 2007, 09:45:00 PM
would truncating the tables accomplish the same thing with less work eldakai?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 03, 2007, 09:50:11 PM
You could truncate the pretty_topic_urls table, but I think you will still need to delete the pretty_url column from the topics table, unless you can remove all those values quickly while still leaving the column.
Title: Re: Pretty URLs 0.9.2
Post by: haltoyou on March 03, 2007, 11:53:49 PM
I recently launched a Website that was just a fourm based site with SMF. The forum root is SMF, so it was important the site would be able to get indexed properly in search engines.

As it turns out, I wasn't able to use the search engine friendly URLs built-in SMF, which meant I was stuck with the core URLs generated by SMF.

In short, that meant I would not get forum content indexed in Google or other search engines.

I've looked at dozens of sites running SMF with the core URLs and in every case, the forum content doesn't get indexed. Some pages will get indexed, but not the threads and content in the threads.

I tried Pretty URLs and I ran into a conflict with another mod. I was unable to find the conflict, so I set up a test board with a fresh install and tried installing Pretty URLs. It worked great.

Because my forums site was new, I dumped it and did a fresh install and the first mod I added was Pretty URLs and it worked fine.

Here's the good news -

I run Google ads on the forums and now the ads really do match the content. My forum without Pretty URLs was hit and miss with Google ads and most of the time the ads did not match content.

And now I know the forum content will get indexed by Google and othe search engines.

Here's the proof:

A cached copy of a page using Pretty URLs from Google:
http://72.14.209.104/search?sourceid=navclient-ff&ie=UTF-8&q=cache:http%3A%2F%2Feldacar.com%2Fcuriouser-and-curiouser%2Finternet-debates%2F0%2F

Here's what you get from Google's cache of this thread:
http://72.14.209.104/search?sourceid=navclient-ff&ie=UTF-8&q=cache:http%3A%2F%2Fwww.simplemachines.org%2Fcommunity%2Findex.php%3Ftopic%3D146969.0

Nothing!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 04, 2007, 12:12:15 AM
I'm glad it's working for you, and that the ads are more context sensitive now too! :)
I'll work on making it more compatible with other mods, but it won't be possible to make it completely compatible with all.
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on March 04, 2007, 02:48:12 AM
Here's the proof:

A cached copy of a page using Pretty URLs from Google:
http://72.14.209.104/search?sourceid=navclient-ff&ie=UTF-8&q=cache:http%3A%2F%2Feldacar.com%2Fcuriouser-and-curiouser%2Finternet-debates%2F0%2F

Here's what you get from Google's cache of this thread:
http://72.14.209.104/search?sourceid=navclient-ff&ie=UTF-8&q=cache:http%3A%2F%2Fwww.simplemachines.org%2Fcommunity%2Findex.php%3Ftopic%3D146969.0

Nothing!
That's not really true.
http://72.14.209.104/search?hl=en&q=pretty+urls+site%3Awww.simplemachines.org&btnG=Search
http://66.102.9.104/search?q=cache:UBq9WesUeCUJ:www.simplemachines.org/community/index.php%3Ftopic%3D146969.30+pretty+urls+site:www.simplemachines.org&hl=en&ct=clnk&cd=4&hl=en

I have done similar tests. Prettyurls or the built in SEF links is not necessary for Google to index your site. There could be a number of other reasons why your site was not indexed right away. And as you can see, Google indexed this thread just fine. There are a few things you can do however to improve your site and make it more SEF.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 04, 2007, 10:48:24 PM
SSI.php should be fixed, and it will automatically try to convert encodings now in r24. That might not work on all servers though...

Arabic is now being romanised: http://dev.eldacar.com/prettyurls/general-discussion/'rby-tjrb-ll'rby/0/
I don't know how good a romanisation that is though... any comments?
Title: Re: Pretty URLs 0.9.2
Post by: Carlos Gandra on March 05, 2007, 05:27:00 PM
Uninstall the mod, delete the pretty_topic_urls table and the pretty_url column from the topics table, and then reinstall the mod. That will reset everything.

It works, and now all topics appears well ;)

Just one more question... and how about the board names?

Thanks a lot,
Carlos
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 05, 2007, 06:53:08 PM
You want to reset the board names too? Uninstall, and then delete the pretty_board_urls row from the settings table, and reinstall.
Title: Re: Pretty URLs 0.9.2
Post by: Carlos Gandra on March 06, 2007, 01:32:08 AM
You want to reset the board names too? Uninstall, and then delete the pretty_board_urls row from the settings table, and reinstall.

Perfect! Really perfect! :D

I hope that this roll of doubts and now the solutions helps the development of this GREAT mod ;)

Thanks for all
Title: Re: Pretty URLs 0.9.2
Post by: Kristoffer Lindqvist on March 07, 2007, 06:56:09 AM
Hi,

I have just tried to install the Pretty URLs mod on a clean installation of SMF 1.1.2 and got this

Quote
Installations actions for "Pretty URLs - Extention: none":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    -    Modification parse error
2.    Execute Modification    ./Sources/Stats.php    Test successful

when trying to install the extension. I have ignored the error and installed the mod, but alas.

The .htaccess file is renamed and the host have mod_rewrite working on it.

Any ideas ?

Thanks in advance.

You are likely bumping into an issue with PHP5. The major.xml file in the Extention package is simply too heavy and splitting it into several files solves the issue. I needed three files for it to work. Am attaching a modified package that should make you golden.

eldʌkaː, thanks for an awesome package! Very useful.  8)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 07, 2007, 06:59:27 AM
Too big? Interesting.. I'll look into that. If it is too big I'll break it up.
Title: Re: Pretty URLs 0.9.2
Post by: Kristoffer Lindqvist on March 07, 2007, 07:08:53 AM
Apparently, PHP5 has some issues with too much data being pushed at once. Makes me wonder whether I should roll back to PHP4 for now...

Here's the reference that led me to the solution:
http://galleryproject.oldiesmann.us/index.php?topic=284.msg3009#msg3009

Edit: FWIW, increasing resource limits in php.ini does not solve the issue, tried that as well. If anyone knows anything further about the extent of this PHP bug, I'm all ears.  :D
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 13, 2007, 10:10:51 AM
I've released 0.4 now. No major changes, but I felt there had been enough time that I should get it into testing.
I split up the files, so hopefully it will install more reliably now.
Note that the TP package is gone, instead the ext-none package will modify TP if it is installed.
I'd be interested to hear someone's opinion about how well it now romanises Arabic.

changelog.txt (http://prettyurls.googlecode.com/svn/trunk/changelog.txt)
Title: Re: Pretty URLs 0.9.2
Post by: arya on March 13, 2007, 11:10:31 AM
Pretty url is damn good. only problem is when we have images with relative url for an image it goes for a toss. It will be better if we have something like site.com/forums/topic-name-here-0.html

let us know if its possible

cheers
Arya

p.s. : my forums are ported from a ASP portal using SQL export and import directly into smf db. It used lots of relative path for smileys and images which is difficult to change into absolute path.
Title: Re: Pretty URLs 0.9.2
Post by: giggetto on March 13, 2007, 12:09:12 PM
I've released 0.4 now.

changelog.txt (http://prettyurls.googlecode.com/svn/trunk/changelog.txt)
thank you!
Title: Re: Pretty URLs 0.9.2
Post by: ishan on March 13, 2007, 12:29:32 PM
Just too good !!
Keep it up!
Title: Re: Pretty URLs 0.9.2
Post by: stuartbrandon on March 13, 2007, 02:01:15 PM
Hi eldaka!

I have installed this awasome mod. I need some quick help here. Google is indexing pages like this:

www.mydomain.com/forum/myforum_general_discussion-b1.0/;sort=last_post

www.mydomain.com/forum/myforum_general_discussion-b1.0/;sort=views

as I think it is not good to have this I wonder how can I block them on robots? My old robots looks like this (se below) but I'm not sure if this works now with the new pretty URL installed. What I need to change?

Disallow: /forum/index.php?action=mlist*
Disallow: /forum/index.php?action=who*
Disallow: /forum/index.php?action=post*
Disallow: /forum/index.php?action=admin*
Disallow: /forum/index.php?action=help*
Disallow: /forum/index.php?action=search*
Disallow: /forum/index.php?action=calendar*
Disallow: /forum/index.php?action=login*
Disallow: /forum/index.php?action=register*
Disallow: /forum/index.php?action=profile*
Disallow: /forum/index.php?action=stats*
Disallow: /forum/index.php?action=arcade*
Disallow: /forum/index.php?action=printpage*
Disallow: /forum/index.php?action=reminder*
Disallow: /forum/index.php?action=activate*
Disallow: /forum/index.php?action=viewmembers*
Disallow: /forum/index.php?*rss*
Disallow: /forum/index.php?*wap*
Disallow: /forum/index.php?*wap2*
Disallow: /forum/index.php?*imode*
Disallow: /forum/index.php?*topicseen*
 
Title: Re: Pretty URLs 0.9.2
Post by: Ensiferous on March 13, 2007, 02:41:04 PM
how will it handle two threads with the same name in the same forum?
does it 301 redirect old threads to their newer counterpart?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 13, 2007, 07:06:00 PM
p.s. : my forums are ported from a ASP portal using SQL export and import directly into smf db. It used lots of relative path for smileys and images which is difficult to change into absolute path.
I'd recommend you do a search and replace on the database to change them all into absolute urls. That shouldn't be too difficult, there have been many topics about it before.

as I think it is not good to have this I wonder how can I block them on robots? My old robots looks like this (se below) but I'm not sure if this works now with the new pretty URL installed. What I need to change?
Try adding this to your robots.txt
Disallow: *sort=*

how will it handle two threads with the same name in the same forum?
does it 301 redirect old threads to their newer counterpart?
Two topics: yes, one is suffixed with it's topic number
301 redirects: not yet, but I will add that in when I figure out the best way to.

Btw, if you had 0.3 installed, you can uninstall the old packages and then download them straight from the package list. No need to come to SM.org or the Google code site.
Title: Re: Pretty URLs 0.9.2
Post by: 99Paul on March 14, 2007, 01:06:21 AM
Ok, I know this is going to seem like a dumb question, but, how do I install this thing?

Do I make a new folder on my hosting like /forum/packages/prettyurls/ and upload all  the files there, then go through the install process in my SMF admin?

Thanks everyone

Paul
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 14, 2007, 03:56:15 AM
You should be able to upload the package directly through the package manager, no need to decompress it yourself.
Title: Re: Pretty URLs 0.9.2
Post by: 99Paul on March 14, 2007, 03:57:58 AM
You should be able to upload the package directly through the package manager, no need to decompress it yourself.

Thanks kindly. I'll gve it a whirl.

Paul
Title: Re: Pretty URLs 0.9.2
Post by: 99Paul on March 14, 2007, 04:05:06 AM
I keep getting  the following error message when trying to download from my admin panel:

"An Error Has Occurred!
The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

Any other way to install it?

Paul

You should be able to upload the package directly through the package manager, no need to decompress it yourself.

Thanks kindly. I'll gve it a whirl.

Paul
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 14, 2007, 04:09:54 AM
What version of SMF do you use?
Title: Re: Pretty URLs 0.9.2
Post by: 99Paul on March 14, 2007, 04:16:22 AM
What version of SMF do you use?

Hi eldʌkaː,

I downloaded the tar to my computer and just uploaded it through the smf admin. Haven't gotte to installing it yet, but I will try in a few minutes.

I'm using smf 1.1.2

I'll let you know my progress

Paul
Title: Re: Pretty URLs 0.9.2
Post by: 99Paul on March 14, 2007, 04:36:06 AM
Thanks for being so helpful and patient with me eldʌkaː

I've installed the base package successfully with no errors in the package manager. I then went and put the proper code in my .htaccess file and also uncommented and changed the last line to /go/ instead of /forum/

I then installed the second part of the package and everything went fine there too.

It 'appears' to be working correctly, like when I hover my mouse over a forum title, I see the following http://www.xxxx.com/go/show-off-your-stuff/0/ but when I click it gives me a 404 error.

Am I missing something obvious?

Oh, I have the Orange lt theme installed and one other mod that puts an RSS feed icon and link next to each individual forum.

Also, here's a copy of the contents of my .htaccess file in case something may be conflicting:

Options +FollowSymLinks
<Files ".ht*">
order allow,deny
deny from all
</Files>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^xxxx\.com
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [R=301,L]

#   Example .htaccess file for the SMF Pretty Urls mod
#   If you already have a .htaccess file you will have to manually edit this and that file together. If not, you should be able rename this file to .htaccess and have it work without any changes. The default options should work, but other possible options are also provided commented out (for example, if you want to change the base location to /forum/)

#   Pretty board urls

RewriteRule ^([-_!~*'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#   Pretty topic urls

RewriteRule ^([-_!~*'()a-zA-Z0-9]+)/([-_!~*'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()a-zA-Z0-9]+)/([-_!~*'()a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

#   To change the base url, just add the child folder name to the front of the pattern.

RewriteRule ^/go/([-_!~*'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]




Paul
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 14, 2007, 04:53:41 AM
Did you change the base url setting to reflect that?
You should also recomment the last line (it's just an example) and add go/ to the beginning of the other lines.
Title: Re: Pretty URLs 0.9.2
Post by: 99Paul on March 14, 2007, 05:05:18 AM
 just made the changes you suggested above and still no luck. Still 404 errors.

I also discovered something else. When hovering over urls for new messages on the right, they look like this:

http://www.xxxx.com/go/show-off-your-stuff/example-of-how-and-what-to-post-in-this-forum/msg7/#new

http://www.xxxx.com/go/videos-and-podcasting/freeiq-com-a-new-video-business-medium/msg7/#new

http://www.xxxx.com/go/rules-and-announcements/our-mission/msg7/#new

They ALL have /msg7/ at the end.

Paul
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 14, 2007, 05:36:22 AM
Can you post up the .htaccess file again, try putting it in [code] tags too ;)
As to the msg7, that's the way it is in SMF normally. It uses the last message number + 1 to ensure you go to the end of the topic.
Title: Re: Pretty URLs 0.9.2
Post by: 99Paul on March 14, 2007, 05:44:40 AM
Can you post up the .htaccess file again, try putting it in [code] tags too ;)
As to the msg7, that's the way it is in SMF normally. It uses the last message number + 1 to ensure you go to the end of the topic.

Ok, here's the last .htaccess code I have:

Code: [Select]
Options +FollowSymLinks
<Files ".ht*">
order allow,deny
deny from all
</Files>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^xxxx\.com
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [R=301,L]

# Example .htaccess file for the SMF Pretty Urls mod
# If you already have a .htaccess file you will have to manually edit this and that file together. If not, you should be able rename this file to .htaccess and have it work without any changes. The default options should work, but other possible options are also provided commented out (for example, if you want to change the base location to /forum/)

# Pretty board urls
RewriteRule ^/go/([-_!~*'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^/go/([-_!~*'()a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Pretty topic urls
RewriteRule ^/go/([-_!~*'()a-zA-Z0-9]+)/([-_!~*'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^/go/([-_!~*'()a-zA-Z0-9]+)/([-_!~*'()a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# To change the base url, just add the child folder name to the front of the pattern. Example:
#RewriteRule ^/go/([-_!~*'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]

Still the same problems.

I was reading page 9 of this thread and was thinking of reinstalling to see if that would help. Maybe my mistake with putting the /go/ in the wrong place did something to the database?

Paul
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 14, 2007, 06:21:28 AM
Is your forum's index.php actually located in the /go/ folder?
Title: Re: Pretty URLs 0.9.2
Post by: 99Paul on March 14, 2007, 06:26:58 AM
Is your forum's index.php actually located in the /go/ folder?

Yes, it's at /go/index.php

Paul
Title: Re: Pretty URLs 0.9.2
Post by: 99Paul on March 14, 2007, 06:47:24 AM
I got it working!!

At first, I included the example.htaccess code in the root .htaccess file at /public_html/.htaccess and tried to use /go/ at the beginning of each line. That didn't work.

So I did this:

I placed that code in /public_html/go/.htaccess and took the /go/ off the beginning of each line.

Now pretty URLs are working perfectly.

I know, it was probably a dumb mistake on my part, but just in case someone else has the same problem I did, at least you now know that the mod will work if the .htaccess is in the same folder as your forum.

BTW, thanks again for all your help and patience eldʌkaː. I hope I didn't put you to too much trouble.

 :-[

Paul
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 14, 2007, 07:06:34 AM
I'll need to explain it more clearly, you should only add a directory to the beginning of the urls if you want to redirect to a 'fake' directory, or if the .htaccess file is in a different location.
Title: Re: Pretty URLs 0.9.2
Post by: sarfarazaabbasi on March 14, 2007, 08:51:21 PM
Plz explain me clearly
what is example.htaccess where it is? rename.....?
and then?


Actually i installed both files without this renaming of this file and it has installed but when i clicked on any topic then THE PAGE CAN NOT BE DISPLAYED so i uninstalled it
plz help me
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 14, 2007, 08:53:48 PM
example.htaccess should be in the same location as your forum's index.php. You will need to rename it to .htaccess before it will work. You should have done that before installing the ext-none package.
Title: Re: Pretty URLs 0.9.2
Post by: sarfarazaabbasi on March 14, 2007, 09:01:38 PM
does it work with SMF 1.1.2
Title: Re: Pretty URLs 0.9.2
Post by: sarfarazaabbasi on March 14, 2007, 09:02:57 PM
No dear example.htaccess is not there
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 14, 2007, 09:04:19 PM
Yes it does, I use it with 1.1.2 myself.
If it's not there (which is weird) you can download it from http://prettyurls.googlecode.com/svn/trunk/Base/example.htaccess
Title: Re: Pretty URLs 0.9.2
Post by: sarfarazaabbasi on March 14, 2007, 09:14:35 PM
Thank U
Title: Re: Pretty URLs 0.9.2
Post by: Piggie on March 15, 2007, 02:25:31 PM
I tried installing this mod, but received the following error:

Notice: unserialize() [function.unserialize]: Error at offset 1545 of 2554 bytes in /home/xxxxxx/public_html/forum/index.php on line 77

It reported that the mod had installed correctly, but the text size was oversized. This is odd as I have no mods already installed. SMF1.1.2.

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 15, 2007, 06:37:29 PM
Can you post up the pretty_board_urls value from the smf_settings table please.
Title: Re: Pretty URLs 0.9.2
Post by: Piggie on March 15, 2007, 07:09:37 PM
Sorry, no speakee geek! :D

I assume you mean from the databse, but I'm unsable to find that. I select browse of smf_settings but nothing like this is listed (I did remember to reinstall and start over my search of the DB).
Title: Re: Pretty URLs 0.9.2
Post by: Piggie on March 15, 2007, 07:25:06 PM
I've tried again. This time I selected 'structure' for the smf_settings. I then selected 'browse' for the value field. There was no listing for pretty urls.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 15, 2007, 09:42:53 PM
Try reinstalling the mod, it should definitely add in a row for pretty_board_urls. I'm guessing the problem has something to do with quotes.. which previously weren't allowed.
Title: Re: Pretty URLs 0.9.2
Post by: Piggie on March 15, 2007, 10:15:43 PM
I've tried reinstalling several times. It seems to uninstall without a hitch too.

Am I definitely looking in the right place from my earlier description?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 15, 2007, 10:17:55 PM
You want to be looking in the 'variable' column, and if you find 'pretty_board_urls' post up the corresponding variable. If you don't find it, something is seriously going wrong with the installation.
Title: Re: Pretty URLs 0.9.2
Post by: Piggie on March 15, 2007, 10:45:53 PM
I'm pretty sure I'm looking in the right place. I guess I will delete and reinstall the mod, and see if that does the trick.

I assume that in the .htaccess I add /forum/ to all four entries?
Title: Re: Pretty URLs 0.9.2
Post by: Piggie on March 15, 2007, 10:50:51 PM
I deleted the mod, and reuploaded. I used the first zip file - I assume that's correct.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 15, 2007, 10:54:44 PM
I'm pretty sure I'm looking in the right place. I guess I will delete and reinstall the mod, and see if that does the trick.

I assume that in the .htaccess I add /forum/ to all four entries?
No, just put the .htaccess file in the same location as your forum's index.php. I need to write a wiki page explaining what to do if you need to change the default .htaccess file.
Title: Re: Pretty URLs 0.9.2
Post by: Piggie on March 15, 2007, 11:13:58 PM
Understood. It made no difference when I changed it back.

As I said, this was on an unmodded forum.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 16, 2007, 12:46:34 AM
Can you show me a link to your forum, and PM the details of a temp admin account please?
Title: Re: Pretty URLs 0.9.2
Post by: Svend Rugaard on March 16, 2007, 02:45:10 AM
I have try to install the "no.exent" version 0.4 on

SMF 1.1.2 + TP 0.97 but get this error

Code: [Select]
Unknown column 't.pretty_url' in 'field list'
File: D:\Domains\domain.com\wwwroot\board\Sources\TPortal.php
Line: 1628

and another in "Recent Topics" Block i cant see what it is, because it only show [unknown column "t.pretty" line 354 then the rest isnt visible.

And all my stats from site with users online and etc are disaperring.

 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 16, 2007, 08:09:39 AM
Did you install the base package?
Title: Re: Pretty URLs 0.9.2
Post by: SacmaliK on March 16, 2007, 09:18:26 AM
There are a lot of mistakes, Somebody fatal :@
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 16, 2007, 11:27:30 PM
Piggie, I think i've fixed it. I added a link to index.php, so the base package won't uninstall. I'll include the fix in the next version.

SacmaliK: ?
Title: Re: Pretty URLs 0.9.2
Post by: Piggie on March 16, 2007, 11:32:25 PM
That's great, and very much appreciated.

You mean, you've altered the installed package, so the unistaller won't work? That's fine. I'm competant enough to that manually if I ever should need to do so, or just alter the uninstaller.

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 16, 2007, 11:33:48 PM
Sorry, I added a line to index.php that will break the uninstaller. It won't be hard to change manually.
I'm glad it's working for you :)

How many people put html tags in their board names?
Title: Re: Pretty URLs 0.9.2
Post by: Piggie on March 17, 2007, 12:26:02 PM
Hi eldʌkaː,

As per my PM, I did sort out the problem with access to some boards. I had used some HTML tags in board titles, but even after removing them the problem remained. I tried editing the pretty_board_urls table, but that just broke the forum again. I eventually forced an uninstall, and manual edited the index.php. After everything looked OK, I reinstalled (and created a new pretty table, by renaming the old one), and again altered the index.php file to match the way you had it. I have noticed since though that boards with an apostrophe in the title are still affected. Fortunately, this was on an empty board that I had decided not to use, so no real problem, but something for you to look at maybe.

Again, Thanks. All is working fine now. :)
 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 17, 2007, 10:23:18 PM
Yeah quotes/apostrophes can cause some problems.
I could possibly filter out the html tags, if that would be useful for many people. If I don't, I do plan on adding a way to easily change the urls in the admin panel, without having to mess with the database.
Title: Re: Pretty URLs 0.9.2
Post by: Daniel15 on March 18, 2007, 06:57:57 AM
Eldacar, using version 0.4 of your Pretty URLs base package, I get these errors:
Quote
Notice: unserialize() [function.unserialize]: Error at offset 200 of 504 bytes in /var/www/dev/daniel15-web/forum/index.php on line 77

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/dev/daniel15-web/forum/index.php:77) in /var/www/dev/daniel15-web/forum/Sources/Load.php on line 1945

Warning: Cannot modify header information - headers already sent by (output started at /var/www/dev/daniel15-web/forum/index.php:77) in /var/www/dev/daniel15-web/forum/Sources/Load.php on line 1949

Warning: Cannot modify header information - headers already sent by (output started at /var/www/dev/daniel15-web/forum/index.php:77) in /var/www/dev/daniel15-web/forum/Sources/Subs.php on line 3174

Warning: Cannot modify header information - headers already sent by (output started at /var/www/dev/daniel15-web/forum/index.php:77) in /var/www/dev/daniel15-web/forum/Sources/Subs.php on line 3175

Warning: Cannot modify header information - headers already sent by (output started at /var/www/dev/daniel15-web/forum/index.php:77) in /var/www/dev/daniel15-web/forum/Sources/Subs.php on line 3181

Warning: Cannot modify header information - headers already sent by (output started at /var/www/dev/daniel15-web/forum/index.php:77) in /var/www/dev/daniel15-web/forum/Sources/Subs.php on line 3184

$modSettings['pretty_board_urls'] contains:
Quote
a:18:{i:2;s:13:"announcements";i:1;s:18:"general-discussion";i:5;s:11:"web-hosting";i:6;s:24:"computers-and-technology";i:8;s:10:"staff-only";i:19;s:11:"suggestions";i:12;s:23:"the-'thank-you'-board";i:4;s:12:"general-chat";i:3;s:7:"smfshop";i:20;s:27:"smf-akismet-spam-protection";i:10;s:11:"smf-captcha";i:13;s:17:"userbar-generator";i:7;s:20:"shop-button-requests";i:11;s:22:"completed-shop-buttons";i:17;s:6:"coding";i:14;s:5:"items";i:16;s:21:"installation-problems";i:15;s:18:"completed-requests";}

EDIT: My bad, it was an apostrophe in a board name that was causing this.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 18, 2007, 07:19:04 AM
In index.php
Code: (find) [Select]
$context['pretty']['board_urls'] = unserialize($modSettings['pretty_board_urls']);
Code: (replace) [Select]
$modSettings['pretty_board_urls'] = str_replace("'", "\\'", $modSettings['pretty_board_urls']);
$context['pretty']['board_urls'] = unserialize($modSettings['pretty_board_urls']);
I'm not sure that's the best fix, I might try adding the slashes into it when I update the database..
Title: Re: Pretty URLs 0.9.2
Post by: Lemming on March 19, 2007, 08:27:04 PM
Hi,

just a little question: Is this mod just a "simple version" of this big mod:
http://custom.simplemachines.org/mods/index.php?mod=518
?
Title: Re: Pretty URLs 0.9.2
Post by: ziycon on March 20, 2007, 12:36:39 AM
I've tried but with no luck, can anyone tell me how to remove the '/0/' from the end of the links and put '.html'?????

Thanks in advance.
Title: Re: Pretty URLs 0.9.2
Post by: Daniel15 on March 20, 2007, 12:43:09 AM
I've tried but with no luck, can anyone tell me how to remove the '/0/' from the end of the links and put '.html'?????

Thanks in advance.
As far as I know, the /0/ is for what page number you're on (the second page is /1/, etc.). I could be wrong though, as I haven't really looked into this mod yet.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 20, 2007, 05:07:52 AM
just a little question: Is this mod just a "simple version" of this big mod: http://custom.simplemachines.org/mods/index.php?mod=518 ?
No, It's a completely different mod written by different people using different methods. Besides, mine is better, it doesn't leave the topic numbers in the URLs ;). I wouldn't say it's simpler, I'd say the other mod is bloated. I have no intention to add sitemaps or social bookmarks, they should be a separate mod. Feel free to try both though :)

I've tried but with no luck, can anyone tell me how to remove the '/0/' from the end of the links and put '.html'?????
You can't currently, but you're perfectly free to write an ext-html package! :D That's why I've written the mod as it is, to allow this kind of extensibility. I won't write an ext-html package as I prefer extension-less urls (and so does Time Berners-Lee (http://www.w3.org/Provider/Style/URI)), but someone else can. I can give them SVN access too.
However as Daniel15 said, you'd need to keep the 0, it refers to the page. You could however change it to topicname.0.html The second page would actually be the number of posts-per-page setting, just as it is with normal SMF urls. You should know that Dan!
Title: Re: Pretty URLs 0.9.2
Post by: Daniel15 on March 20, 2007, 05:47:45 AM
Quote
You should know that Dan!
Oops, my bad :P... Yeah, I should have known that ;)
Title: Re: Pretty URLs 0.9.2
Post by: Lemming on March 20, 2007, 12:46:53 PM
All right  ;D

Mh you say that there are no IDs of topics in the URIs - so how can I find out the ID of a topic (for example for SSI polls)?  :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 20, 2007, 08:13:20 PM
At the moment the other links (mod actions etc) don't have Pretty URLs, so you could check there. When they're rewritten.. I'm not sure lol.
Title: Re: Pretty URLs 0.9.2
Post by: goitalone on March 23, 2007, 06:18:39 PM
Ok, so this mod is unsafe correct?
Title: Re: Pretty URLs 0.9.2
Post by: schled on March 23, 2007, 06:27:49 PM
I've jumped in the deep end and installed this mod on a live site... hope it isn't unsafe. I haven't noticed any show stoppers. Rather I am really pleased with how well it is working!
Title: Re: Pretty URLs 0.9.2
Post by: goitalone on March 23, 2007, 06:29:46 PM
I am too afraid to install it until I hear some better news but the last few posts here suggested otherwise.

Let me know if it's safe er not.

Also, would this conflict with the search engine friendly URL's option turned on or if it were turned on while this mod was installed?

Title: Re: Pretty URLs 0.9.2
Post by: schled on March 23, 2007, 06:59:12 PM
I am not completely familiar with the SEO mod but I thought that you wouldn't use both mods at the same time as they do very similar things. My guess would be that there would be conflicts between the two mods.
Title: Re: Pretty URLs 0.9.2
Post by: goitalone on March 23, 2007, 07:34:07 PM
Yeah I would think so...I havfe decided not to mess with it...right now though I am trying to figure out some off topic stuff..mainly why my one main theme Moonraker takes so long to post messages..takes like 5-6 seconds to post something after you hit post button...all my other themes post fast within 1 second  
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 23, 2007, 09:35:09 PM
It's not unsafe at all. And yes, you wouldn't want to use it and any other url changing mod/feature at the same time. I haven't tested what would happen, but I doubt it would have serious problems.
Title: Re: Pretty URLs 0.9.2
Post by: goitalone on March 23, 2007, 09:59:59 PM
K, do you know anything about forum error logs or the debugging mode code you can add to show errors etc?

I am having real long hang times while posting messages on my forum on one particular theme (my main theme Moonraker) ...takes like 5-6 seconds to post a message

here's the thread and the error reports if you know anything about it that might help:

http://www.simplemachines.org/community/index.php?topic=159432.msg1020061#msg1020061

 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 23, 2007, 10:20:33 PM
Looks like your language files are corrupted, but please don't hijack this thread.
Title: Re: Pretty URLs 0.9.2
Post by: webvision on March 25, 2007, 06:27:48 AM
I want to install this tool but I am receiving this error:

An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted. 

Plz suggest wats going wrong and wat I have to do.
Title: Re: Pretty URLs 0.9.2
Post by: schled on March 25, 2007, 06:52:16 AM
Are you using a Mac? I get that error with any package when uploading from a Mac.
Title: Re: Pretty URLs 0.9.2
Post by: webvision on March 25, 2007, 06:57:43 AM
Ok, my 1st problem is resolved, but now after installing I am recieving this error at the top of page, and my loging is also not working and the size of font also change, error is:

Notice: unserialize() [function.unserialize]: Error at offset 1500 of 3049 bytes in /home/webtechv/public_html/forums/index.php on line 77

So, what I have to do, is there any solution or I uninstall/delete this mod ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 25, 2007, 07:03:39 AM
http://www.simplemachines.org/community/index.php?topic=146969.msg1011894#msg1011894
Try making that code change.
Title: Re: Pretty URLs 0.9.2
Post by: webvision on March 25, 2007, 07:28:17 AM
Hi eldʌkaː  thanks for guide, I just did it and its solved my current problem, but although this mod is intalled but there is no change in my url these are working as default urls.

Before installing this mode I was enabled Search Engine Frienldy URL and these are working, I now disabled them thinking may be due this this your Mod is not working, but nothing change.

So, wat you will say now ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 25, 2007, 07:29:06 AM
You'll have to disable the default ones.
Did you rename example.htaccess to .htaccess? Did you install the ext-none package too?
Title: Re: Pretty URLs 0.9.2
Post by: webvision on March 25, 2007, 08:32:23 AM
I disabled the default SEF URLs and I also rename the .htaccess file and I had only installed the base package.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 25, 2007, 08:59:20 AM
You'll need to install the ext-none package too for any urls to be rewritten. Have a look for it in the new package list that the Base package added.
Title: Re: Pretty URLs 0.9.2
Post by: webvision on March 25, 2007, 09:25:45 AM
After installing ext-none package now its working. thank you
But R u working to replace /0 with .html at he end of each url ?
and plz also recommend me, how I can make a sitemap of my forum.
 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 25, 2007, 09:45:47 AM
No I'm not working on that, but someone else is free to! :)
Search around, there are other mods and stuff for sitemaps. Or you can just use your forum's RSS feeds like I do.
Title: Re: Pretty URLs 0.9.2
Post by: danskmacabre on March 25, 2007, 11:47:58 AM
Where do get the "TP-ext-none" mod?  
Title: Re: Pretty URLs 0.9.2
Post by: schled on March 25, 2007, 04:37:08 PM
Where do get the "TP-ext-none" mod? 

http://code.google.com/p/prettyurls/downloads/list
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 26, 2007, 04:21:16 AM
Where do get the "TP-ext-none" mod?
In 0.4 it's not needed as it's been merged into the ext-none package.
Title: Re: Pretty URLs 0.9.2
Post by: edwardsiow on March 26, 2007, 09:19:18 AM
http://www.mortgago.com/index.php
http://www.mortgago.com/index.php?action=forum
http://www.mortgago.com/general-discussion/0/
http://www.mortgago.com/general-discussion/rtrt/0/
http://www.mortgago.com/index.php?action=profile
http://www.mortgago.com/index.php?page=7

am i installed correctly?
 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 26, 2007, 09:40:21 AM
Yep. Only boards and topics are being rewritten so far. It's still in beta remember.
Title: Re: Pretty URLs 0.9.2
Post by: edwardsiow on March 26, 2007, 10:03:52 AM
thanks.....i wish that final release will be coming soon..

anyway, thanks for your effort on it....
Title: Re: Pretty URLs 0.9.2
Post by: edwardsiow on March 26, 2007, 12:13:02 PM
hi, eldʌka

after i have installed this mod, can you teach me how to get the links (a thread's link) which are normal without beautifying?

 
Title: Re: Pretty URLs 0.9.2
Post by: danskmacabre on March 26, 2007, 01:56:12 PM
In index.php
Code: (find) [Select]
$context['pretty']['board_urls'] = unserialize($modSettings['pretty_board_urls']);
Code: (replace) [Select]
$modSettings['pretty_board_urls'] = str_replace("'", "\\'", $modSettings['pretty_board_urls']);
$context['pretty']['board_urls'] = unserialize($modSettings['pretty_board_urls']);
I'm not sure that's the best fix, I might try adding the slashes into it when I update the database..


I had some major errors appearing, this code fix did the trick.
Thanks  :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 26, 2007, 09:20:55 PM
hi, eldʌka

after i have installed this mod, can you teach me how to get the links (a thread's link) which are normal without beautifying?
Any of the mod buttons aren't beautified at the moment. You can get the topic ID from them.
Title: Re: Pretty URLs 0.9.2
Post by: SticKer on March 27, 2007, 12:24:04 AM
Installed on my site and it works perfect..

thanks eldʌka for this cool mod..
 
Title: Re: Pretty URLs 0.9.2
Post by: goitalone on March 27, 2007, 02:46:43 PM
It's only for good looking topic URL's? Do search engines see/display the links the same way on search results??
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 27, 2007, 09:26:06 PM
Search engines should see the new urls after a little while.
http://www.google.com.au/search?q=site:eldacar.com&hl=en&client=firefox-a&rls=com.ubuntu:en-US:official&hs=R01&start=10&sa=N
Title: Re: Pretty URLs 0.9.2
Post by: SticKer on March 28, 2007, 02:00:09 AM
hi eldʌka,

the mod installed perfect yesterday,

but i found one post were it does not show the topic name

it shows like this http://www.orbitforum.com/car-audio/t542/

all the other links are working perfect as they should after i installed the mod but its only this 1 link.

i felt i better inform you so if its a bug u can fix it.

Regards,
SticKer
Title: Re: Pretty URLs 0.9.2
Post by: danskmacabre on March 28, 2007, 02:23:45 AM
hi eldʌka,

the mod installed perfect yesterday,

but i found one post were it does not show the topic name

it shows like this http://www.orbitforum.com/car-audio/t542/

all the other links are working perfect as they should after i installed the mod but its only this 1 link.

i felt i better inform you so if its a bug u can fix it.

Regards,
SticKer


I've seen that before on my site.
I was doing some testing with the mod and duplicate thread names.
If you have a non-unique (for my site anyway) it put extra characters on the end to make the url unique.
 
 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 28, 2007, 02:32:15 AM
Mmm, anything in the error log? Which character encoding do you use?
Title: Re: Pretty URLs 0.9.2
Post by: SticKer on March 28, 2007, 07:28:10 AM
Mmm, anything in the error log? Which character encoding do you use?

UTF-8
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 28, 2007, 07:45:27 AM
I have no idea why it didn't generate a proper url sorry. We've had similar issues before, but they weren't using UTF-8.
Title: Re: Pretty URLs 0.9.2
Post by: SticKer on March 28, 2007, 11:18:56 AM
there is an option in the admin panel to convert data and db to utf 8 do u want me to do that
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 28, 2007, 11:24:38 AM
I thought you said it already was UTF-8? You can try that, afterwhich you should uninstall the mod, and delete the pretty_topic_urls table and the pretty_urls column from the topics table. If you reinstall the base package, hopefully it will work.

Btw, what version of PHP do you use?
Title: Re: Pretty URLs 0.9.2
Post by: SticKer on March 28, 2007, 12:11:19 PM
I thought you said it already was UTF-8? You can try that, afterwhich you should uninstall the mod, and delete the pretty_topic_urls table and the pretty_urls column from the topics table. If you reinstall the base package, hopefully it will work.

Btw, what version of PHP do you use?

i use 4.4.3

will try the uninstall reinstall thingy n c if it wrks..

just wanted to ask u if i run the convertion to utf8 thts in the admin panel, would i face any problems?
Title: Re: Pretty URLs 0.9.2
Post by: jewels on March 28, 2007, 12:53:44 PM
I've spent about two hours trying to get this to work. The good thing, I suppose, is that I received no errors. I've changed the access file accordingly, but to no avail, I cannot get the urls to work. I get 404 error code.

I've read the entire posts here and tried several of ways to get this to work. I really like this mod and don't want to uninstall. But right now, I've set the board on maintenance because every forum link clicked leads to the 404 error page. I assume it may have something to do with the htaccess file.


No one has actually explained clearly what the file coding should look like  (if the file is located inside the root of the smf forum). The name of my forum is "Interact". It is located on a sub domain of my site. What I'm trying to find out is exactly how the htaccess file is suppose to be coded.

I tried moving outside of the smf folder and that didn't work. So, I assume it's suppose to remain inside of the smf folder.

Since the smf root is called "Interact", do I add that name in the htaccess file? If I'm suppose to--I've already done that and it did not work.

If I'm suppose to remove the word "/interact/" from the htaccess file, then I don't know what I'm to replace it with. And also, do I keep the slash and just remove "interact" or do I remove "/interact/" with the slash? Please help. Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: schled on March 28, 2007, 04:06:49 PM
Have you tried using the htaccess file without editing apart from renaming to ".htaccess"? The file probably should be placed in the root directory of your forum.

I didn't make any changes to the contents of the htaccess file itself.
Title: Re: Pretty URLs 0.9.2
Post by: DoA on March 28, 2007, 04:29:33 PM
I have apostrophes in my board URLS and some of my topics. This is causing SMF to error and redirect back to the board index. Is there a way round this??

Great mod! Thanks for all the help!

DoA
Title: Re: Pretty URLs 0.9.2
Post by: jewels on March 28, 2007, 04:40:54 PM
Have you tried using the htaccess file without editing apart from renaming to ".htaccess"? The file probably should be placed in the root directory of your forum.

I didn't make any changes to the contents of the htaccess file itself.


I changed the file to .htaccess using ftp
I first tried adding the file to the same directory as the forum (didn't work)
I tried using the file inside the forum folder (didn't work)
Then I added the file to the root of the sub domain (didn't work)

I've removed it for the time being. I'm going to set up a test board to see what's wrong. I don't have but maybe two other mods running, in which I don't think are the problems.

My host allows htaccess, so I know it's not the host.

Here is a copy of it below:


#   Example .htaccess file for the SMF Pretty Urls mod
#   If you already have a .htaccess file you will have to manually edit this and that file together. If not, you should be able rename this file to .htaccess and have it work without any changes. The default options should work, but other possible options are also provided commented out (for example, if you want to change the base location to /forum/)

RewriteEngine on

#   Pretty board urls
RewriteRule ^/interact/([-_!~*'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^/interact/([-_!~*'()a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#   Pretty topic urls
RewriteRule ^/interact/([-_!~*'()a-zA-Z0-9]+)/([-_!~*'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^/interact/([-_!~*'()a-zA-Z0-9]+)/([-_!~*'()a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
 
Title: Re: Pretty URLs 0.9.2
Post by: DoA on March 28, 2007, 04:49:37 PM
jewels - could you copy and paste an erroring URL here, then paste what you THINK it should look like. that may help me. I'll try and help if you can figure my apostrophe problem :P
Title: Re: Pretty URLs 0.9.2
Post by: jewels on March 28, 2007, 04:52:29 PM
jewels - could you copy and paste an erroring URL here, then paste what you THINK it should look like. that may help me. I'll try and help if you can figure my apostrophe problem :P

There is no error url. The mod has been removed. I'm going to re-install the mod on a test board. The only problem I had with the mod was the fact that when I clicked on the links, I get a 404 not found page (as if the url name doesn't exist).


 
Title: Re: Pretty URLs 0.9.2
Post by: schled on March 28, 2007, 04:55:26 PM
Did you try using the htaccess file without editing apart from renaming to ".htaccess"?
Title: Re: Pretty URLs 0.9.2
Post by: jewels on March 28, 2007, 04:57:13 PM
I'm not sure what you mean. Are you asking if I just renamed it and did no further editing?
Title: Re: Pretty URLs 0.9.2
Post by: schled on March 28, 2007, 05:06:39 PM
I'm not sure what you mean. Are you asking if I just renamed it and did no further editing?

Yes. I didn't make any changes to the htaccess file provided apart from placing it in the root directory of my forum and renaming it.
Title: Re: Pretty URLs 0.9.2
Post by: jewels on March 28, 2007, 05:09:15 PM
No.

Does UTF-8 character set has anything to do with the urls working properly? I asked because I remember seeing something in the thread about it.
Title: Re: Pretty URLs 0.9.2
Post by: jewels on March 28, 2007, 05:37:39 PM
Here's a link to the test board. The mod doesn't work on the (new) board either. And this is a different domain.  :(

Test Board (http://lloar.net/interact/index.php)
Title: Re: Pretty URLs 0.9.2
Post by: schled on March 28, 2007, 06:05:48 PM
Where is the .htaccess file placed in your structure? Can you post its contents?
Title: Re: Pretty URLs 0.9.2
Post by: jewels on March 28, 2007, 08:14:52 PM
Where is the .htaccess file placed in your structure? Can you post its contents?

The ht file is currently inside "interact" folder. "Interact" is the forum's name. Here's another copy of the ht file:

#   Example .htaccess file for the SMF Pretty Urls mod
#   If you already have a .htaccess file you will have to manually edit this and that file together. If not, you should be able rename this file to .htaccess and have it work without any changes. The default options should work, but other possible options are also provided commented out (for example, if you want to change the base location to /forum/)

RewriteEngine on

#   Pretty board urls
RewriteRule ^([-_!~*'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#   Pretty topic urls
RewriteRule ^([-_!~*'()a-zA-Z0-9]+)/([-_!~*'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()a-zA-Z0-9]+)/([-_!~*'()a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]


The one I tried before that is this:

#   Example .htaccess file for the SMF Pretty Urls mod
#   If you already have a .htaccess file you will have to manually edit this and that file together. If not, you should be able rename this file to .htaccess and have it work without any changes. The default options should work, but other possible options are also provided commented out (for example, if you want to change the base location to /forum/)

RewriteEngine on

#   Pretty board urls
RewriteRule ^/interact/([-_!~*'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^/interact/([-_!~*'()a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#   Pretty topic urls
RewriteRule ^/interact/([-_!~*'()a-zA-Z0-9]+)/([-_!~*'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^/interact/([-_!~*'()a-zA-Z0-9]+)/([-_!~*'()a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]



In both tries, I place the ht file inside the "interact" folder (the test forum).

 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 28, 2007, 10:00:35 PM
i use 4.4.3

will try the uninstall reinstall thingy n c if it wrks..

just wanted to ask u if i run the convertion to utf8 thts in the admin panel, would i face any problems?
You shouldn't have any problems converting.

The PHP functions I use to convert encodings won't always be present. I think I'll just have to say that UTF-8 is strongly recommened for this mod.


Jewels, can you put up a phpinfo file please?
Title: Re: Pretty URLs 0.9.2
Post by: jewels on March 29, 2007, 01:24:09 AM
Where can I find the phpinfo file?

I asked about the utf-8 because it's not supported on the database server I'm on.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on March 29, 2007, 01:48:26 AM
http://docs.simplemachines.org/index.php?topic=479.0
Title: Re: Pretty URLs 0.9.2
Post by: glennk on April 06, 2007, 08:56:56 AM
Hi Guys,

I found the pretty urls mod whilst searching smf community for seo tips. I downloaded it from there and it installed nicely on my forum at :

http://www.whitbyseaanglers.co.uk/forum/index.php

I had a search around in the admin area but couldn't find anything to make the mod work in there.

Would one/some of you kind people let me know what this mod does and how I get it to work please ??

Also I got an error when I first installed the mod. I have now uninstalled and the error went away again.

I am happy to try again if someone could advise me on where I am going wrong.

error said

2: Cannot modify header information - headers already sent by (output started at /mounted-storage/home28b/sub001/sc24906-HICM/glennk/whitbyseaanglers.co.uk/forum/index.php:77)
File: /mounted-storage/home28b/sub001/sc24906-HICM/glennk/whitbyseaanglers.co.uk/forum/Sources/Subs.php
Line: 3202

KIndest regards - Glenn
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 06, 2007, 09:01:34 AM
I've answer on the dev forum. I did say the topic or the dev forum ;)
Title: Re: Pretty URLs 0.9.2
Post by: glennk on April 06, 2007, 09:15:14 AM
ok mate. Will have a look now.  
Title: Re: Pretty URLs 0.9.2
Post by: glennk on April 07, 2007, 11:09:51 AM
Hi Eldaka,

Just wanted to say thankyou for your help with this. I tried to get into the dev forum but kept getting a blank screen. All works fine now and all the urls come up great. Your help has been really appreciated.

Do you know of anyway to manually alter the title ? or description tags ?

Thanks again - Glenn
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 07, 2007, 11:52:41 AM
http://dev.eldacar.com/prettyurls/index.php
Sure you get a blank page?
[edit]Hmmm, I do too now. I'll fix it tomorrow.

Title and desciption tags - edit your template. That has nothing to do with this mod sorry.
Title: Re: Pretty URLs 0.9.2
Post by: TTP on April 07, 2007, 08:31:10 PM
Thank eldʌka,

The Mode Was great and working
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 08, 2007, 12:35:48 AM
I've just released version 0.5.
If you have (and only if) changed the root url to something different from $boardurl, then you can try install the actions-ext-none package too. I've changed how the mod works quite a bit this version. Although I didn't change anything in the ext-none package (use 0.4), I plan to change it substantially next time.

Hopefully it works for all of you! :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 08, 2007, 06:04:33 AM
There's a minor bug in QueryString.php:
Code: (find) [Select]
$url['replacement'] = preg_replace(array('\"', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
Code: (replace) [Select]
$url['replacement'] = preg_replace(array('~\"~', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
Title: Re: Pretty URLs 0.9.2
Post by: schled on April 10, 2007, 01:45:06 PM
Thanks again for this great mod! :)

Are there plans to include code to redirect any old URLs (such as those previously indexed by search engines) to the new URL along the lines of this post (http://www.simplemachines.org/community/index.php?topic=60194.msg420219#msg420219)?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 10, 2007, 06:03:04 PM
I'll be adding in 301 redirects to the next version.
Title: Re: Pretty URLs 0.9.2
Post by: schled on April 11, 2007, 07:04:01 AM
Thank you :)

Another possible issue... could this mod be interfering with spell check and post preview in IE7? Similar to this issue (http://www.simplemachines.org/community/index.php?topic=115776.msg861665#msg861665)?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 11, 2007, 07:15:27 AM
Another possible issue... could this mod be interfering with spell check and post preview in IE7? Similar to this issue (http://www.simplemachines.org/community/index.php?topic=115776.msg861665#msg861665)?
I doubt it, but I can't test as I don't have IE7.
Title: Re: Pretty URLs 0.9.2
Post by: schled on April 12, 2007, 12:42:42 AM
I'll just wait for the next version of Pretty URLs before investigating further as it seems so much has been done already :)
Title: Re: Pretty URLs 0.9.2
Post by: komirad on April 12, 2007, 04:31:09 AM
After I installed 0.5, many pages are "not found", I can't uninstall, can't delete threads...
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 12, 2007, 07:34:59 AM
What pages aren't found? What is your .htaccess? To disable the url rewriting, go to the settings table, and set 'pretty_enable_filters' to 0.
Title: Re: Pretty URLs 0.9.2
Post by: komirad on April 12, 2007, 09:44:35 AM
check http://forum.moneyearningclub.com/ , the url which are changed can't be found.
And the forum/topic urls didnt change, but the menus did
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 12, 2007, 09:46:44 AM
What is your .htaccess? To disable the url rewriting, go to the settings table, and set 'pretty_enable_filters' to 0.
Title: Re: Pretty URLs 0.9.2
Post by: komirad on April 12, 2007, 09:47:51 AM
The database table?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 12, 2007, 09:49:37 AM
Yes the smf_settings table in your database. Or whichever prefix you use.
Title: Re: Pretty URLs 0.9.2
Post by: komirad on April 12, 2007, 09:55:19 AM
Hmm, there is no phpmyadmin in cpanel... looks like i gotta wait
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 12, 2007, 10:34:31 AM
You can install it yourself.
In any case, what is your .htaccess?
Title: Re: Pretty URLs 0.9.2
Post by: metallica48423 on April 12, 2007, 09:47:24 PM
Good to hear about the 301 redirects being in the next version -- is there any timeframe for this?  I'm in rather big need (not to rush :P, not at all)

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 12, 2007, 11:34:19 PM
A week or two maybe. Depends how much time I have after uni work.
Title: Re: Pretty URLs 0.9.2
Post by: Drew™ on April 13, 2007, 01:56:31 AM
Gah, I am having a problem. I am no longer able to access my Admin anymore. It looks like this:
http://mydomain.net/forum/admin/

I tried deleting .htaccess, going back to an old URL ( http://mydomain.net/forum/index.php?action=packages;sa=browse ) to uninstall the mod, all takes me to my 404 Error page.

Help!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 13, 2007, 01:58:24 AM
To disable the url rewriting, go to the settings table, and set 'pretty_enable_filters' to 0.
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 13, 2007, 07:42:46 AM
This looks cool but I have a Q :)

If any current links to posts exist using the normal URLs ie:
Code: [Select]
http://www.site.com/index.php?topic=1010. will they be broken if that changes to
Code: [Select]
http://www.site.com/posttitle after the mod??

I'm very interested in this (even though content is king...not urls) as my users will love it but I don't want broken links everywhere. Also...did the above guys problem represent a problem that we'll all experience? ie...will we be locked out of admin?

Ta

:)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 13, 2007, 07:46:52 AM
The old ones will still work, and I'll be adding in redirects soon too.
And no, you won't be locked out if you follow the instructions properly.
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 13, 2007, 09:03:26 AM
Thanks :)

Have the small query code errors you mention at the start of this thread been fixed in the latest download?

Also...

Quote
Download the extension-none package from the Package List, or just from the site directly, and then install them. Use the 0.4 version, it has not been updated since 0.5

Bit confused...is this not in the original download from the mod section? Do I need it to make this work? What is it? hehe

Also...is .4 newer than .5 as that's what seems to be what's being said :)

Ta very much

Sy
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 13, 2007, 09:06:08 AM
The ext-none and ext-actions packages are on the download site, which you can access through the package list which the Base package adds.
0.5 is newer than 0.4, but as there weren't any changes to the ext-none package, why update it?
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 13, 2007, 09:15:43 AM
I read this and presumed it was an error in this package :)

There's a minor bug in QueryString.php:
Code: (find) [Select]
$url['replacement'] = preg_replace(array('\"', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
Code: (replace) [Select]
$url['replacement'] = preg_replace(array('~\"~', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 13, 2007, 09:18:11 AM
Just to be clear...So downloading the mod from the mod page is just half of it. I need to download the rest from another site to make it work?

I got it from your google site :) I was just confused to why it's in two parts spread across different areas.

I'm gonna tackle this when I get home as I use Babylon and I'll need to manually install.

It looks extensive ;)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 13, 2007, 09:50:48 AM
I read this and presumed it was an error in this package :)
There's a minor bug in QueryString.php:
Code: (find) [Select]
$url['replacement'] = preg_replace(array('\"', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
Code: (replace) [Select]
$url['replacement'] = preg_replace(array('~\"~', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
Ahh yes, that is still required. It's only two extra characters though ;)

Just to be clear...So downloading the mod from the mod page is just half of it. I need to download the rest from another site to make it work?

I got it from your google site :) I was just confused to why it's in two parts spread across different areas.
Well the Mod Site only really allows one download, and this way its a little simpler. You can download the other packages through the package manager...

Quote
I'm gonna tackle this when I get home as I use Babylon and I'll need to manually install.

It looks extensive ;)
There aren't any theme changes, you won't need to do that.
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 13, 2007, 01:19:44 PM
Nice one...I'm gonna try it :D

Can I just paste the contents of the htaccess file into my current one?
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 13, 2007, 01:45:37 PM
It took literally 2 seconds to do on my test forum (clone) but it say it can't do it on my live forum as some of the files are writeable!!!! It's exactly the same permission wise. All the folders seem to be too. Totally typical. lol
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 13, 2007, 01:51:02 PM
After I by pass via the ftp prompt I get:

Quote
Fatal error: packageinstall() [function.require]: Failed opening required '/***/***/public_html//Packages/temp/./install.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /***/***/public_html/Sources/Packages.php on line 552

It worked in second on my other version and now this mission on the real one!!! I'm so peeved.
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 13, 2007, 04:41:10 PM
OK...

I've just spent the last 2 hours manually installing it (thanks for using replaces btw...makes it much easier :) )

But I have a big problem :(

One of the boards doesn't now work and it's one of the most important ones. A link to the post inside is fine but trying to get to it via the homepage link gives the following:

Quote
Not Found
The requested URL /thetrex600forum\'s-monthly-competition/0/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

And the URL in the address bar reads:

Quote
http://www.thetrex600forum.com/thetrex600forum%5C's-monthly-competition/0/

For some reason the (') in thetrex600forum's has knacked it up. All the other (') in titles are fine. Where did the %5C come from?

How do I fix this as it's the bread and butter board?
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 13, 2007, 05:03:45 PM
On the clone forum that installed via package manager flawlessly also had the above issue with that thread with the (') but when going to modify or post a message it works fine.

The real forum is screwed! I can not edit or modify a post with out errors of pages not found.

Luckily I had backed up the sources files and I've just put them all back and I'm now back to normal. (I left index.php and SSI as they not effecting it now)

How can to identical forums have stark different results?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 13, 2007, 10:31:26 PM
I don't know where that %5C came from.
Can you please post up the pretty_board_urls setting data please?
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 14, 2007, 05:45:41 AM
Can you please post up the pretty_board_urls setting data please?

What's that?

This all seems to be because the unpacker couldn't right to certain files but because it doesn't tell me which ones...I have no idea what permissions to alter. But all of the files and folders have the same permissions as the clone site which worked flawlessly apart from that one url.

I was so chuffed when it installed without trouble on the test site. I couldn't believe it didn't on the clone!

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 14, 2007, 07:17:04 AM
Using phpMyAdmin or a similar tool, go to the smf_settings table, and find the valude for 'pretty_board_urls'. The quotes are proving to be a problem, and I still musn't have escaped them properly.
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 14, 2007, 07:38:26 AM
Thanks for the attention :)

On the clone it is as follows:

pretty_enable_filters     1
pretty_filter_callbacks    a:0:{}
pretty_board_urls    a:96:{i:31;s:7:"welcome";i:27;s:23:"the-rules-of-this-forum";i:35;s:18:"newsletter-archive";i:12;s:9:"off-topic";i:13;s:30:"site-suggestions-and-site-news";i:28;s:6:"events";i:15;s:5:"clubs";i:50;s:12:"syndications";i:33;s:33:"downloads-for-the-align-t-rex-600";i:108;s:33:"downloads-for-the-align-t-rex-450";i:109;s:33:"downloads-for-the-align-t-rex-500";i:110;s:38:"downloads-for-the-align-t-rex-600-b110";i:34;s:26:"the-arcade-t-rex-600-games";i:30;s:38:"thetrex600forum\'s-monthly-competition";i:49;s:38:"want-your-logo-at-the-top-of-our-pages";i:1;s:8:"chat-600";i:63;s:8:"chat-450";i:64;s:8:"chat-500";i:65;s:12:"chat-600-b65";i:6;s:27:"problems-with-the-t-rex-600";i:66;s:27:"problems-with-the-t-rex-450";i:67;s:27:"problems-with-the-t-rex-500";i:68;s:31:"problems-with-the-t-rex-600-b68";i:32;s:31:"safety-first-things-to-remember";i:26;s:47:"t-rex-600-beginner-(or-just-beginner-full-stop)";i:69;s:18:"t-rex-450-beginner";i:70;s:18:"t-rex-500-beginner";i:71;s:18:"t-rex-600-beginner";i:17;s:26:"pictures-of-your-t-rex-600";i:72;s:26:"pictures-of-your-t-rex-450";i:73;s:26:"pictures-of-your-t-rex-500";i:74;s:30:"pictures-of-your-t-rex-600-b74";i:18;s:24:"videos-of-your-t-rex-600";i:76;s:24:"videos-of-your-t-rex-450";i:75;s:24:"videos-of-your-t-rex-500";i:77;s:28:"videos-of-your-t-rex-600-b77";i:16;s:11:"flight-sims";i:11;s:6:"stores";i:2;s:18:"t-rex-600-building";i:78;s:18:"t-rex-450-building";i:79;s:18:"t-rex-500-building";i:80;s:22:"t-rex-600-building-b80";i:3;s:20:"t-rex-600-setting-up";i:81;s:20:"t-rex-450-setting-up";i:82;s:20:"t-rex-500-setting-up";i:83;s:24:"t-rex-600-setting-up-b83";i:5;s:23:"t-rex-600-modifications";i:84;s:23:"t-rex-450-modifications";i:85;s:23:"t-rex-500-modifications";i:86;s:27:"t-rex-600-modifications-b86";i:4;s:18:"t-rex-600-upgrades";i:87;s:18:"t-rex-450-upgrades";i:88;s:18:"t-rex-500-upgrades";i:89;s:22:"t-rex-600-upgrades-b89";i:44;s:21:"t-rex-600-flight-data";i:90;s:21:"t-rex-450-flight-data";i:91;s:21:"t-rex-500-flight-data";i:92;s:25:"t-rex-600-flight-data-b92";i:48;s:24:"t-rex-600-scale-projects";i:93;s:24:"t-rex-450-scale-projects";i:94;s:24:"t-rex-500-scale-projects";i:95;s:28:"t-rex-600-scale-projects-b95";i:7;s:5:"lipos";i:96;s:15:"t-rex-450-lipos";i:97;s:15:"t-rex-500-lipos";i:98;s:15:"t-rex-600-lipos";i:10;s:10:"radio-gear";i:105;s:20:"t-rex-450-radio-gear";i:106;s:20:"t-rex-500-radio-gear";i:107;s:20:"t-rex-600-radio-gear";i:8;s:13:"escs-and-becs";i:99;s:23:"t-rex-450-escs-and-becs";i:100;s:23:"t-rex-500-escs-and-becs";i:101;s:23:"t-rex-600-escs-and-becs";i:9;s:6:"motors";i:102;s:16:"t-rex-450-motors";i:103;s:16:"t-rex-500-motors";i:104;s:16:"t-rex-600-motors";i:36;s:15:"align-t-rex-450";i:47;s:39:"thunder-tiger-raptor-e325-e550-and-e620";i:37;s:16:"century-swift-16";i:38;s:16:"hirobo-lepton-ex";i:43;s:11:"mikado-logo";i:55;s:11:"micro-helis";i:54;s:21:"align-t-rex-600-nitro";i:40;s:13:"thunder-tiger";i:39;s:12:"hirobo-nitro";i:42;s:9:"knight-50";i:41;s:10:"synergy-n9";i:22;s:11:"helicopters";i:23;s:11:"electronics";i:24;s:5:"other";i:25;s:6:"wanted";i:45;s:32:"moderator-and-admin-private-area";i:46;s:23:"sy\'s-private-test-area";i:56;s:25:"sy\'s-private-test-area-2";}

On the live site:

pretty_enable_filters     1
pretty_filter_callbacks    a:0:{}
pretty_board_urls    a:99:{i:31;s:7:"welcome";i:27;s:23:"the-rules-of-this-forum";i:35;s:18:"newsletter-archive";i:12;s:9:"off-topic";i:13;s:30:"site-suggestions-and-site-news";i:28;s:6:"events";i:113;s:16:"toledo-expo-2007";i:15;s:5:"clubs";i:50;s:12:"syndications";i:33;s:33:"downloads-for-the-align-t-rex-600";i:108;s:33:"downloads-for-the-align-t-rex-450";i:109;s:33:"downloads-for-the-align-t-rex-500";i:110;s:38:"downloads-for-the-align-t-rex-600-b110";i:34;s:26:"the-arcade-t-rex-600-games";i:30;s:38:"thetrex600forum\'s-monthly-competition";i:49;s:38:"want-your-logo-at-the-top-of-our-pages";i:1;s:8:"chat-600";i:63;s:8:"chat-450";i:64;s:8:"chat-500";i:65;s:12:"chat-600-b65";i:6;s:27:"problems-with-the-t-rex-600";i:66;s:27:"problems-with-the-t-rex-450";i:67;s:27:"problems-with-the-t-rex-500";i:68;s:31:"problems-with-the-t-rex-600-b68";i:32;s:31:"safety-first-things-to-remember";i:26;s:47:"t-rex-600-beginner-(or-just-beginner-full-stop)";i:69;s:18:"t-rex-450-beginner";i:70;s:18:"t-rex-500-beginner";i:71;s:18:"t-rex-600-beginner";i:17;s:26:"pictures-of-your-t-rex-600";i:72;s:26:"pictures-of-your-t-rex-450";i:73;s:26:"pictures-of-your-t-rex-500";i:74;s:30:"pictures-of-your-t-rex-600-b74";i:18;s:24:"videos-of-your-t-rex-600";i:76;s:24:"videos-of-your-t-rex-450";i:75;s:24:"videos-of-your-t-rex-500";i:77;s:28:"videos-of-your-t-rex-600-b77";i:16;s:11:"flight-sims";i:11;s:6:"stores";i:2;s:18:"t-rex-600-building";i:78;s:18:"t-rex-450-building";i:79;s:18:"t-rex-500-building";i:80;s:22:"t-rex-600-building-b80";i:3;s:20:"t-rex-600-setting-up";i:81;s:20:"t-rex-450-setting-up";i:82;s:20:"t-rex-500-setting-up";i:83;s:24:"t-rex-600-setting-up-b83";i:5;s:23:"t-rex-600-modifications";i:84;s:23:"t-rex-450-modifications";i:85;s:23:"t-rex-500-modifications";i:86;s:27:"t-rex-600-modifications-b86";i:4;s:18:"t-rex-600-upgrades";i:87;s:18:"t-rex-450-upgrades";i:88;s:18:"t-rex-500-upgrades";i:89;s:22:"t-rex-600-upgrades-b89";i:44;s:21:"t-rex-600-flight-data";i:90;s:21:"t-rex-450-flight-data";i:91;s:21:"t-rex-500-flight-data";i:92;s:25:"t-rex-600-flight-data-b92";i:48;s:24:"t-rex-600-scale-projects";i:93;s:24:"t-rex-450-scale-projects";i:94;s:24:"t-rex-500-scale-projects";i:95;s:28:"t-rex-600-scale-projects-b95";i:111;s:28:"t-rex-600-aerial-photography";i:7;s:18:"lipos-and-chargers";i:96;s:15:"t-rex-450-lipos";i:97;s:15:"t-rex-500-lipos";i:98;s:15:"t-rex-600-lipos";i:10;s:10:"radio-gear";i:105;s:20:"t-rex-450-radio-gear";i:106;s:20:"t-rex-500-radio-gear";i:107;s:20:"t-rex-600-radio-gear";i:8;s:13:"escs-and-becs";i:99;s:23:"t-rex-450-escs-and-becs";i:100;s:23:"t-rex-500-escs-and-becs";i:101;s:23:"t-rex-600-escs-and-becs";i:9;s:6:"motors";i:102;s:16:"t-rex-450-motors";i:103;s:16:"t-rex-500-motors";i:104;s:16:"t-rex-600-motors";i:36;s:15:"align-t-rex-450";i:47;s:39:"thunder-tiger-raptor-e325-e550-and-e620";i:37;s:16:"century-swift-16";i:38;s:16:"hirobo-lepton-ex";i:43;s:11:"mikado-logo";i:55;s:11:"micro-helis";i:54;s:21:"align-t-rex-600-nitro";i:40;s:13:"thunder-tiger";i:39;s:12:"hirobo-nitro";i:42;s:9:"knight-50";i:41;s:10:"synergy-n9";i:112;s:8:"avant-rc";i:22;s:11:"helicopters";i:23;s:11:"electronics";i:24;s:5:"other";i:25;s:6:"wanted";i:45;s:32:"moderator-and-admin-private-area";i:46;s:23:"sy\'s-private-test-area";i:56;s:25:"sy\'s-private-test-area-2";}

Is that any help? :)
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 14, 2007, 07:54:40 AM
It does it to the end URLs too...

'Sy's private area'

 :)

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 14, 2007, 08:07:13 AM
Hmm thanks for that. I'm not sure what the problem is. I'll have a look at it when I have the time. This should fix your board urls at least:
Code: [Select]
a:99:{i:31;s:7:"welcome";i:27;s:23:"the-rules-of-this-forum";i:35;s:18:"newsletter-archive";i:12;s:9:"off-topic";i:13;s:30:"site-suggestions-and-site-news";i:28;s:6:"events";i:113;s:16:"toledo-expo-2007";i:15;s:5:"clubs";i:50;s:12:"syndications";i:33;s:33:"downloads-for-the-align-t-rex-600";i:108;s:33:"downloads-for-the-align-t-rex-450";i:109;s:33:"downloads-for-the-align-t-rex-500";i:110;s:38:"downloads-for-the-align-t-rex-600-b110";i:34;s:26:"the-arcade-t-rex-600-games";i:30;s:36:"thetrex600forums-monthly-competition";i:49;s:38:"want-your-logo-at-the-top-of-our-pages";i:1;s:8:"chat-600";i:63;s:8:"chat-450";i:64;s:8:"chat-500";i:65;s:12:"chat-600-b65";i:6;s:27:"problems-with-the-t-rex-600";i:66;s:27:"problems-with-the-t-rex-450";i:67;s:27:"problems-with-the-t-rex-500";i:68;s:31:"problems-with-the-t-rex-600-b68";i:32;s:31:"safety-first-things-to-remember";i:26;s:47:"t-rex-600-beginner-(or-just-beginner-full-stop)";i:69;s:18:"t-rex-450-beginner";i:70;s:18:"t-rex-500-beginner";i:71;s:18:"t-rex-600-beginner";i:17;s:26:"pictures-of-your-t-rex-600";i:72;s:26:"pictures-of-your-t-rex-450";i:73;s:26:"pictures-of-your-t-rex-500";i:74;s:30:"pictures-of-your-t-rex-600-b74";i:18;s:24:"videos-of-your-t-rex-600";i:76;s:24:"videos-of-your-t-rex-450";i:75;s:24:"videos-of-your-t-rex-500";i:77;s:28:"videos-of-your-t-rex-600-b77";i:16;s:11:"flight-sims";i:11;s:6:"stores";i:2;s:18:"t-rex-600-building";i:78;s:18:"t-rex-450-building";i:79;s:18:"t-rex-500-building";i:80;s:22:"t-rex-600-building-b80";i:3;s:20:"t-rex-600-setting-up";i:81;s:20:"t-rex-450-setting-up";i:82;s:20:"t-rex-500-setting-up";i:83;s:24:"t-rex-600-setting-up-b83";i:5;s:23:"t-rex-600-modifications";i:84;s:23:"t-rex-450-modifications";i:85;s:23:"t-rex-500-modifications";i:86;s:27:"t-rex-600-modifications-b86";i:4;s:18:"t-rex-600-upgrades";i:87;s:18:"t-rex-450-upgrades";i:88;s:18:"t-rex-500-upgrades";i:89;s:22:"t-rex-600-upgrades-b89";i:44;s:21:"t-rex-600-flight-data";i:90;s:21:"t-rex-450-flight-data";i:91;s:21:"t-rex-500-flight-data";i:92;s:25:"t-rex-600-flight-data-b92";i:48;s:24:"t-rex-600-scale-projects";i:93;s:24:"t-rex-450-scale-projects";i:94;s:24:"t-rex-500-scale-projects";i:95;s:28:"t-rex-600-scale-projects-b95";i:111;s:28:"t-rex-600-aerial-photography";i:7;s:18:"lipos-and-chargers";i:96;s:15:"t-rex-450-lipos";i:97;s:15:"t-rex-500-lipos";i:98;s:15:"t-rex-600-lipos";i:10;s:10:"radio-gear";i:105;s:20:"t-rex-450-radio-gear";i:106;s:20:"t-rex-500-radio-gear";i:107;s:20:"t-rex-600-radio-gear";i:8;s:13:"escs-and-becs";i:99;s:23:"t-rex-450-escs-and-becs";i:100;s:23:"t-rex-500-escs-and-becs";i:101;s:23:"t-rex-600-escs-and-becs";i:9;s:6:"motors";i:102;s:16:"t-rex-450-motors";i:103;s:16:"t-rex-500-motors";i:104;s:16:"t-rex-600-motors";i:36;s:15:"align-t-rex-450";i:47;s:39:"thunder-tiger-raptor-e325-e550-and-e620";i:37;s:16:"century-swift-16";i:38;s:16:"hirobo-lepton-ex";i:43;s:11:"mikado-logo";i:55;s:11:"micro-helis";i:54;s:21:"align-t-rex-600-nitro";i:40;s:13:"thunder-tiger";i:39;s:12:"hirobo-nitro";i:42;s:9:"knight-50";i:41;s:10:"synergy-n9";i:112;s:8:"avant-rc";i:22;s:11:"helicopters";i:23;s:11:"electronics";i:24;s:5:"other";i:25;s:6:"wanted";i:45;s:32:"moderator-and-admin-private-area";i:46;s:21:"sys-private-test-area";i:56;s:23:"sys-private-test-area-2";}
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 14, 2007, 09:33:52 AM
Thanks.

I did the tweak on the 's in the clone one but on closer inspection if I go to edit, modify, unread anything I get errors.

I also get this everywhere:

Quote
Notice: unserialize() [function.unserialize]: Error at offset 496 of 3158 bytes in /home/*****/public_html/site/index.php on line 78

I'm going to leave this for now as it's still far from being beta ready.

I can't wait till it's good to go as it will rock :)

Cheers

SY
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 14, 2007, 11:07:17 AM
Hmm, uninstall the mod, and remove those database settings. Remove all apostrophese and install it again, that should fix the error. You can change your board titles without changing the database settings so it should work.
But yes, it's not completely ready ;)
Title: Re: Pretty URLs 0.9.2
Post by: schled on April 15, 2007, 04:24:39 PM
Another possible issue... could this mod be interfering with spell check and post preview in IE7? Similar to this issue (http://www.simplemachines.org/community/index.php?topic=115776.msg861665#msg861665)?
I doubt it, but I can't test as I don't have IE7.

I have just resolved my issue of spell check and preview not working by updating the QueryString.php code in Base 0.5 to the latest trunk code. :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 15, 2007, 09:53:49 PM
Great to hear of it :) I found that problem because quotes weren'r working, but it would apply to the spell checker too. Basically it was building bad database queries when there weren't any URLs in a page, like a quote or spell check page.
Title: Re: Pretty URLs 0.9.2
Post by: PixieWAttitude on April 17, 2007, 10:08:02 AM
Hi there

Just installed this and went good. Just wanted to see if this is normal

http://mysite.com/rules/hello/0/

The 0 at the end?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 17, 2007, 10:19:22 AM
Yes it's normal, just as this topic's url is http://www.simplemachines.org/community/index.php?topic=146969.0
The last number is a page/post number.
Title: Re: Pretty URLs 0.9.2
Post by: PixieWAttitude on April 17, 2007, 10:24:03 AM
Perfect. Can't believe I got this to install (manuially at that), lol.
Title: Re: Pretty URLs 0.9.2
Post by: PixieWAttitude on April 18, 2007, 01:41:04 PM
Hello

Im not sure if this is where I sshould post my problem, but I was looking at my error logs and found something that I think is relevant to the pretty url mod.

preg_replace(): Delimiter must not be alphanumeric or backslash
File: /home/content/j/o/u/jout/html/Sources/QueryString.php
Line: 520

That line consists of
            
Quote
$url['replacement'] = preg_replace(array('\"', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);

Im not sure what I should do? Does anyone have any ideas? It takes up 556 pags of error log, lol.
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 18, 2007, 04:02:40 PM
There's a minor bug in QueryString.php that is mentioned earlier on. It hasn't been updated in the download which is crazy as everyone is getting this. But here you go:

Code: (find) [Select]
$url['replacement'] = preg_replace(array('\"', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
Should be:

Code: (replace) [Select]
$url['replacement'] = preg_replace(array('~\"~', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);

I hope it works for you :D
Title: Re: Pretty URLs 0.9.2
Post by: glennk on April 18, 2007, 06:27:21 PM
Hi Eldaka,

Not sure if this is a problem or not ??

In the forum I have this topic url

http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/cheers-smokey/0/

Yet in a search for the topic the url shows as follows :

http://www.whitbyseaanglers.co.uk/forum/index.php/topic,504.0.html

They are however the same topic. Which one of these will google crawl ?

Is their potential for a duplicate content issue here leading to supplemental results or even worse a penalty ?

Cheers again Glenn
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 18, 2007, 09:19:20 PM
Google will hopefully index the pretty one as they can't search. They next version will have comprehensive replacements.. you won't see an old style url anywhere.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on April 19, 2007, 02:59:20 AM
Thanks Eldacar - I look forward to the new one. Just for curiosity I ran both the urls through a spider crawl checker and both were readable so I fear both will be looked at, Which could mean a high chance of a supplemental result.

Cheers - Glenn
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 24, 2007, 11:48:19 PM
I've just added 301 redirects to the dev forum :)
http://dev.eldacar.com/prettyurls/index.php?topic=66.msg204;topicseen#msg204
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 25, 2007, 04:02:25 AM
I'm getting 'page not found' errors when I click on any of the general categories here: http://dev.eldacar.com/prettyurls/
:(
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 25, 2007, 04:15:33 AM
I don't get any errors. Can you copy the links for me please?
Title: Re: Pretty URLs 0.9.2
Post by: symon on April 25, 2007, 04:19:00 AM
lol

It's sorted now ;)

It was only the 'General Category' links and not the 'recent posts' links.

When do you think it might be safe for me to use? :D
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 25, 2007, 04:51:38 AM
Anytime you like. I've been using it on two non-development forums for a long while. Just be prepared to get a little messy because the next upgrade will be a big one.
Title: Re: Pretty URLs 0.9.2
Post by: metallica48423 on April 25, 2007, 06:07:39 PM
/me puts on hard hat, goggles, gloves, and protective clothing. :P

Eagerly awaiting this one :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 26, 2007, 10:31:20 PM
Just to make you all even more eager, I plan for the next version not to require any custom .htaccess editing. Or any editing at all. It will all be manageable from with SMF I hope.
Title: Re: Pretty URLs 0.9.2
Post by: schled on April 26, 2007, 10:40:31 PM
I have been running this mod since v0.3 and thought it has been great... I think I'll fall off my seat after the next release!

Please help me stop checking for updates every day by releasing the next version ;)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 26, 2007, 11:05:33 PM
Hehe, the next one will still be quite a while off.
And I've just found that the session urls are still broken. Arghh.
Title: Re: Pretty URLs 0.9.2
Post by: zemond on April 29, 2007, 02:43:21 PM
Gday,

I have a problem, I used the convert.php package to rip all my phpbb data, and all the links still work with your mod, but the urls are just ids,

example: http://domain.com/sm/7/257/0/

Whenever I create a new board, topic or post then I get the right urls

example http:/domain.com/sm/7/new-topic/0/

Any help getting the old data to update would be good,

Cheers
-- Zemond
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on April 29, 2007, 06:09:48 PM
Reinstalling the mod should fix all those urls.
Title: Re: Pretty URLs 0.9.2
Post by: zemond on April 29, 2007, 07:29:30 PM
Lol, i re did the coverter but not the mod,

Cheers, Mate
-- Zemond
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 01, 2007, 08:03:05 PM
0.6 is released. There is no longer any ext-none package, and you shouldn't have to manually edit .htaccess files. Enjoy! :)
Title: Re: Pretty URLs 0.9.2
Post by: schled on May 01, 2007, 08:53:07 PM
I have uninstalled the old version 0.4/0.5 and installed this new one which was reported to be successful but now have a 404 for all my Pretty URLs. Any suggestions while I investigate?
Title: Re: Pretty URLs 0.9.2
Post by: schled on May 01, 2007, 09:55:01 PM
Found my problem... had to remove "/" from the .htaccess file by changing

Quote
#   Rules for: boards
RewriteRule ^/([-_!~*\'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^/([-_!~*\'()a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#   Rules for: topics
RewriteRule ^/([-_!~*\'()a-zA-Z0-9]+)/([-_!~*\'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^/([-_!~*\'()a-zA-Z0-9]+)/([-_!~*\'()a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

to

Quote
#   Rules for: boards
RewriteRule ^([-_!~*\'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*\'()a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#   Rules for: topics
RewriteRule ^([-_!~*\'()a-zA-Z0-9]+)/([-_!~*\'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*\'()a-zA-Z0-9]+)/([-_!~*\'()a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]


It now seems to be working well!

Thanks for this mod!!
Title: Re: Pretty URLs 0.9.2
Post by: metallica48423 on May 01, 2007, 10:59:15 PM
Does .6 include the 301 redirects?

Thanks eldacar :)
Title: Re: Pretty URLs 0.9.2
Post by: schled on May 01, 2007, 11:54:53 PM
Does .6 include the 301 redirects?
They seem to be working on my forum :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 02, 2007, 02:23:31 AM
Found my problem... had to remove "/" from the .htaccess file by changing
Weird.. but those don't look like the automatically generated .htaccess files. Anything in the error log?

Does .6 include the 301 redirects?
Yep!
Title: Re: Pretty URLs 0.9.2
Post by: schled on May 02, 2007, 02:55:53 AM
Found my problem... had to remove "/" from the .htaccess file by changing
Weird.. but those don't look like the automatically generated .htaccess files. Anything in the error log?

Sorry... I copied into my post parts of the old .htaccess content when I was trouble shooting. The correct ones work fine after removing the initial "/".
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 02, 2007, 03:28:27 AM
I think I've found the problem that caused it, but your manual edit should be fine too.
Title: Re: Pretty URLs 0.9.2
Post by: metallica48423 on May 02, 2007, 03:55:11 AM
eldacar:

The mod installed beautifully and i have not had a problem since.  the redirects work wonders :)

Thanks, i really appreciate the effort and time you have put into the mod!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 02, 2007, 04:10:24 AM
Everyone, let me know how your performance goes. The mod changes the load time string if you have it enabled.
Title: Re: Pretty URLs 0.9.2
Post by: metallica48423 on May 02, 2007, 04:12:34 AM
Quote
(Pretty URLs adds 0.015s, 3q)

This is on a board with little to no activity to speak of (a board that is being developed for an upcoming site) 

I will load the mod on my active forums tomorrow and see what sort of impact it has, and let you know.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 02, 2007, 04:15:12 AM
It should reduce down to 1 query once it has been used a bit more.. the URLs are cached in the database.
Also, not all of the time is caused by the mod, because SMF doesn't calculate it as the very last thing it does. Unless you're getting several seconds however, it shouldn't be a big problem.
Title: Re: Pretty URLs 0.9.2
Post by: metallica48423 on May 02, 2007, 03:53:36 PM
Just an update, installed on my other forum.  Got the 404 error.  Made the change to the .htaccess - they worked.

Quote
(Pretty URLs adds 0.035s, 3q)

I will let it sit installed for a bit and see what happens :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 02, 2007, 11:39:01 PM
Get them here! (http://dev.eldacar.com/prettyurls/forum/general-discussion/fixes-for-0-6/)
Title: Re: Pretty URLs 0.9.2
Post by: metallica48423 on May 02, 2007, 11:55:16 PM
you were right, it did drop down to 1 query
Quote
(Pretty URLs adds 0.031s, 1q)

Id say thats not a bad performance hit for such a useful mod :)
Title: Re: Pretty URLs 0.9.2
Post by: schled on May 03, 2007, 08:10:02 AM
2 Questions about the database;

Should we have a pretty_url column in smf_topics table or has this been carried over from older versions?

Can we delete single (or all) entries from the smf_pretty_urls_cache table?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 03, 2007, 08:27:41 AM
Quote
Should we have a pretty_url column in smf_topics table or has this been carried over from older versions?
You can remove it. Once I release version 1.0, I'll make upgrades remove any columns (if they ever need to that is) but for now it's just not worth it. The few people who are using the mod are pretty technically able.

Quote
Can we delete single (or all) entries from the smf_pretty_urls_cache table?
You can delete any you like. Additionally, if you install any other filter packages, they will empty that table too. And.. entries older than a day aren't used either. I think I'll add a setting that will allow you to change that age though.. so that you could set it to a week or something. There shouldn't be many circumstances where URLs should be changing more frequently than that.
Title: Re: Pretty URLs 0.9.2
Post by: CrazyMerlin on May 03, 2007, 07:31:21 PM
always good to have user-friendly urls.

the bit you said about it being good for SEO though...no longer true.

All search engines now follow query strings. This didn't used to be the case, but now is.

But still, good urls are good for members.

//erlin!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 03, 2007, 10:32:13 PM
Query strings isn't the issue so much as having keyword rich URLs. I have noticed improvements.
Mostly however this is a people friendly mod :)
Title: Re: Pretty URLs 0.9.2
Post by: Matthew Schenker on May 09, 2007, 04:38:05 PM
I really want to install this modification on my forum.  This is a great idea!

But in reading the comments from people, it looks like there are some errors with the modification.  Should I wait to install it?  Or is it good to go now?

I'm running SMF 1.1.2.

Thanks!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 09, 2007, 09:52:16 PM
Make the changes in this post and you should be fine: http://www.simplemachines.org/community/index.php?topic=146969.msg1078748#msg1078748
Title: Re: Pretty URLs 0.9.2
Post by: Matthew Schenker on May 10, 2007, 10:04:38 AM
eldʌka,
So, there are just two bugs (you said you found "a few").  That's not bad at all!

When are you planning on doing the next release of this?

Is this going to be a basic feature in SMF 2.0?

Thanks!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 10, 2007, 10:30:27 AM
When I have some more features and filters to add. When I'm less busy with uni ;)
Probably not in 2.0. I'll update it for 2.0 though.
Title: Re: Pretty URLs 0.9.2
Post by: Matthew Schenker on May 13, 2007, 08:32:35 AM
eldʌka,
Thanks again for the information.&nbsp; I think I'll download Pretty URLS and then update later, if and when a new version is ready.
Title: Re: Pretty URLs 0.9.2
Post by: Goad on May 16, 2007, 04:32:54 PM
Using 1.1.1 I get this error on install

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
File: /homepages/xx/xxxxxxxxx/htdocs/scjb-test/Packages/temp/install.php
Line: 61
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 16, 2007, 10:54:42 PM
What mysql version do you have?
Title: Re: Pretty URLs 0.9.2
Post by: glennk on May 18, 2007, 04:41:29 PM
HI Eldaka,

what are your thoughts on supplemental results with regards to pretty urls ?

Every page of my forum is in supplemental. Do you think this is anything to do with duplicate content ? Is there anyway we can get rid of the duplicate content ?

Kindest regards - Glenn
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 18, 2007, 10:03:55 PM
Your pages shouldn't be indexed as duplicate content in 1.1 because of the noindex meta tag.
Title: Re: Pretty URLs 0.9.2
Post by: matasanos on May 19, 2007, 04:45:51 PM
it has taken down my forum
please..some help

i have "installed" it trough package manager...but when it was being installed...the page get completely white...and thats was all....then ...this package isn't in the list of installed packages...but i have the option to enable it...
and when i want to enter to a board..or read a message..it says ERROR....

someone knows how to solve it?
Title: Re: Pretty URLs 0.9.2
Post by: schled on May 19, 2007, 08:24:11 PM
i have "installed" it trough package manager...but when it was being installed...the page get completely white...and thats was all....then ...this package isn't in the list of installed packages...but i have the option to enable it...
and when i want to enter to a board..or read a message..it says ERROR....

someone knows how to solve it?

A little difficult to help without knowing what the exact error is but try http://www.simplemachines.org/community/index.php?topic=146969.msg1077220#msg1077220 (http://www.simplemachines.org/community/index.php?topic=146969.msg1077220#msg1077220) to be able to access the boards.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 19, 2007, 10:39:45 PM
Anything in your error log?
Title: Re: Pretty URLs 0.9.2
Post by: matasanos on May 20, 2007, 09:37:25 AM
yes

Unknown column 'ID_BOARD' in 'field list'
File: /var/www/vhosts/lords-beer.info/httpdocs/foro/Sources/Subs-Post.php
Line: 1639
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 20, 2007, 10:31:10 AM
Make the changes in this post:
http://www.simplemachines.org/community/index.php?topic=146969.msg1078748#msg1078748

Can you post up your .htaccess
Title: Re: Pretty URLs 0.9.2
Post by: mladja04 on May 20, 2007, 12:35:20 PM
Using 1.1.1 I get this error on install

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
File: /homepages/xx/xxxxxxxxx/htdocs/scjb-test/Packages/temp/install.php
Line: 61

I have 1.1.2. version of SMF and download and try to install prettyurls-base_0_6.tar.gz  but get this error:

You have an error in your SQL syntax near 'ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`u' at line 5
Datoteka: /home/httpd/vhosts/mysite.com/httpdocs/forum/Packages/temp/install.php
Linija: 61

What I to do to solve this problem please?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 20, 2007, 07:48:47 PM
What mysql version do you have?
Title: Re: Pretty URLs 0.9.2
Post by: mladja04 on May 21, 2007, 08:24:18 AM
My MySql version is: 3.23.58

Client API version &nbsp;3.23.58 &nbsp;
Title: Re: Pretty URLs 0.9.2
Post by: mladja04 on May 22, 2007, 09:04:38 AM
My MySql version is: 3.23.58

Client API version &nbsp;3.23.58 &nbsp;

This is problem - my mysql version or some else?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 22, 2007, 09:45:35 AM
I think so. I've only tested with MySQL 4 and 5 (curiously the server with MySQL 4 has PHP 5 and the server with MySQL 5 has PHP 4...) but as SMF officially supports MySQL 3.23.4+, I'm sure I can get it to work for you too.
Title: Re: Pretty URLs 0.9.2
Post by: mark1987 on May 22, 2007, 09:46:33 AM
Hi,

I really liked the look of this mod so I applied it, but noticed it was causing problems with relative URLs that I'd included in a custom theme. So I disabled it whilst I fixed those, but it rendered my boards useless  - when I tried to get into any board, FireFox told me that the page was trying to redirect in a way that could not be completed, i.e. caught in an infinite loop.

I've since re-enabled it and things are working fine, but I still think this is a bug.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 22, 2007, 10:27:10 AM
What should the relative URLs be, and what are they being changed to?
What did you disable? The tick box in the Features and Options page?
Title: Re: Pretty URLs 0.9.2
Post by: mark1987 on May 22, 2007, 10:31:11 AM
What should the relative URLs be, and what are they being changed to?
No, sorry...that wasn't the issue I was having. That was just background to how I found the problem. But for those who are interested, I had a couple of URL's that were of the form '<a href="../page.php">,' but because this mod fools the browser into thinking that the user is in a sub-directory, they went up to the wrong place (if that makes sense). I've fixed them by simply using absolute URLs.

My problem was with being frozen out of boards after removing the mod.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 22, 2007, 10:33:48 AM
I think I've found the problem:
Sources/Display.php:
Code: (find) [Select]
// 301 redirects
if (isset($context['pretty']['oldschoolquery']))
Code: (replace) [Select]
// 301 redirects
if (isset($context['pretty']['oldschoolquery']) && $modSettings['pretty_enable_filters'])
Sources/MessageIndex.php:
Code: (find) [Select]
// 301 redirects
if (isset($context['pretty']['oldschoolquery']) || $_REQUEST['board'] != $context['pretty']['board_urls'][$board])
Code: (replace) [Select]
// 301 redirects
if ((isset($context['pretty']['oldschoolquery']) || $_REQUEST['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Title: Re: Pretty URLs 0.9.2
Post by: mark1987 on May 22, 2007, 10:40:59 AM
That seems to have fixed it. (Although I'll be keeping the mod applied anway!)
Title: Re: Pretty URLs 0.9.2
Post by: nitio on May 22, 2007, 06:49:30 PM
Excellent! I had installed earlier and had the problem with new topics but then I've read the bug fixes posts and now works perfect.

Just a question though, I have a topic (not to mention boards) that use special characters (e.g., tópico de teste) which then becomes ".../tpico-de-teste/". I know this would probably require quite some work but wouldn't it look better as ".../topico-de-teste/" ?

Thanks for the great mod :)
Title: Re: Pretty URLs 0.9.2
Post by: redhotmustang on May 22, 2007, 07:37:15 PM
Uninstall the mod, delete the pretty_topic_urls table and the pretty_url column from the topics table, and then reinstall the mod. That will reset everything.

Hi,

ac99 recommended me your mod, and because my forum is in portuguese I'm having the same problem he had.

I followed what you told him, changed the Subs-PrettyUrls.php and deleted the pretty_topic_urls table and the pretty_urls rows in the settings table.

But I can't find where the pretty_url column is in the topics table. It's not there, I checked the structure, and it isn't there.

I uninstalled the mod, I deleted all those rows and tables, except for that column which I can't find. And installed it again and still it doesn't work as I wanted.

I'm using SMF 1.1.2 and your mod's version prettyurls-base_0_6.

What can I do? My forum is in portuguese, encoded ISO-8859-1. I need this mod to change the board's names and the topics names as well.

I have a board named "Anúncios e Regras" and your mod turn this to anncios-e-regras (the "u" is gone).
My forum is at http://forum.redcodestudio.com/

I hope you can help me.
Thanks in advance.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 23, 2007, 07:48:25 AM
Quote
Just a question though, I have a topic (not to mention boards) that use special characters (e.g., tópico de teste) which then becomes ".../tpico-de-teste/". I know this would probably require quite some work but wouldn't it look better as ".../topico-de-teste/" ?
Those characters are there, however if you're not using UTF-8 it won't work properly. Same for redhotmustang, UTF-8 will work better.

Quote
But I can't find where the pretty_url column is in the topics table. It's not there, I checked the structure, and it isn't there.
Yep, the topics table isn't modified anymore.
Title: Re: Pretty URLs 0.9.2
Post by: redhotmustang on May 23, 2007, 11:32:07 AM
Thanks! I'll try later, but as I said ac99 had the same problem we did (it seems that there are more than one portuguese people in this topic ;) ) and he uses ISO-8859-1 and not utf-8, and he wasn't got this problem.

But I don't care, if this works with utf-8 I'll use it anyway.

EDIT: Nope, that's impossible. If we use the utf-8 encode in portuguese forums or pages the words with special characters become misspelled like an||ncios instead of anúncios.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 23, 2007, 08:53:59 PM
The UTF-8 conversion should take care of those characters. It it doesn't, that's a SMF bug.
Title: Re: Pretty URLs 0.9.2
Post by: Col on May 23, 2007, 09:40:56 PM
Hi,

I've not updated to the latest version, so maybe this has been already addressed, but if the board name contains an exclamation mark, then a link placed somewhere else on the forum referring to a thread on that board will fail. I'm unsure of this is really a problem with SMF or not, but by using this mod the board name becomes part of the URL - normally it does not, of course.
Title: Re: Pretty URLs 0.9.2
Post by: nitio on May 23, 2007, 09:50:14 PM
Yes, the SMF conversion to UTF-8 didn't work for me either. I've did it manually (nothing like iconv). Anyways, it works like a charm... but for new topics. How can I re-generate the pretty urls again so they look all nice?

Thanks for the reply before :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 23, 2007, 10:14:15 PM
I've not updated to the latest version, so maybe this has been already addressed, but if the board name contains an exclamation mark, then a link placed somewhere else on the forum referring to a thread on that board will fail. I'm unsure of this is really a problem with SMF or not, but by using this mod the board name becomes part of the URL - normally it does not, of course.
I thought about fixing this myself, but really it's a bug with SMF. I reported it on the bugtracker, but I don't know if anyone's done anything about it yet.

nitio, uninstall the mod, and delete the tables it creates. If you want to regenerate the board urls, delete the rows in the settings table the mod makes as well. They all start with "pretty_"
Title: Re: Pretty URLs 0.9.2
Post by: SlammedDime on May 23, 2007, 10:18:29 PM
I've not updated to the latest version, so maybe this has been already addressed, but if the board name contains an exclamation mark, then a link placed somewhere else on the forum referring to a thread on that board will fail. I'm unsure of this is really a problem with SMF or not, but by using this mod the board name becomes part of the URL - normally it does not, of course.
I thought about fixing this myself, but really it's a bug with SMF. I reported it on the bugtracker, but I don't know if anyone's done anything about it yet.

nitio, uninstall the mod, and delete the tables it creates. If you want to regenerate the board urls, delete the rows in the settings table the mod makes as well. They all start with "pretty_"
Why would it be a bug in SMF?  Your code should be encoding board names and removing characters that may cause issue, such as the !, or a /, etc.
Title: Re: Pretty URLs 0.9.2
Post by: nitio on May 23, 2007, 10:42:14 PM
Perfect! Of course, having to re-edit the bug fixes in version 0.6 took me some time (my ssh connection is AWFUL to the server today).

Thanks again for this great mod!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 23, 2007, 11:12:30 PM
Why would it be a bug in SMF?  Your code should be encoding board names and removing characters that may cause issue, such as the !, or a /, etc.
The mod follows the RFC defining URIs (http://www.ietf.org/rfc/rfc2396.txt). It's a bug in SMF that stops quicklinking from following the standard. Note that normal links using the [url] tag work.
If lots of people complain I will reconsider making the fix myself.
Title: Re: Pretty URLs 0.9.2
Post by: Col on May 24, 2007, 09:55:03 AM
Hi Eldeka,

Unless I'm mistaken, in a standard SMF installation, board names never appear as part of the URL, so special characters are not an issue. If ever a standard installation did make use of boards names as part of the URL, then it certainly would be an SMF bug. If, however, this is only ever an issue when using your mod, then I'm inclined to think that it is bug with your mod.

Even if this error only ever occurs with your mod (or similar mods) installed, it might be nice if SMF did make the fix so that SMF is compatible with such modifications. There is, after all, at least one other mod that changes URLs in a similar manner. However, I'd be surprised if SMF went to the trouble of making the fix, so, I for one, would appreciate your fixing it.

Thanks Eldeka. This is still a great a mod.
Title: Re: Pretty URLs 0.9.2
Post by: redhotmustang on May 24, 2007, 10:52:00 AM
Why would it be a bug in SMF?  Your code should be encoding board names and removing characters that may cause issue, such as the !, or a /, etc.
The mod follows the RFC defining URIs (http://www.ietf.org/rfc/rfc2396.txt). It's a bug in SMF that stops quicklinking from following the standard. Note that normal links using the [url] tag work.
If lots of people complain I will reconsider making the fix myself.

I'm complaining lol. Please make the fix.
Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 24, 2007, 10:53:08 AM
It's not just my mod, any url with a ! can't be quicklinked, even though they're quite valid.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 28, 2007, 10:47:59 AM
I think so. I've only tested with MySQL 4 and 5 (curiously the server with MySQL 4 has PHP 5 and the server with MySQL 5 has PHP 4...) but as SMF officially supports MySQL 3.23.4+, I'm sure I can get it to work for you too.
For those with MySQL 3.23, edit your install.php as follows:
Code: (find) [Select]
`log_time` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
Code: (replace) [Select]
`log_time` TIMESTAMP NOT NULL,Hopefully that will work.
Title: Re: Pretty URLs 0.9.2
Post by: maldo on May 31, 2007, 07:13:55 PM
Do I have to edit any files to use this with other themes, I am using the orange lt theme. If anyone know how to edit the files if its required pls let us all know, i would be helpful for evey one, thanks
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 31, 2007, 08:04:08 PM
No, there are no theme changes, even to the default theme.
Title: Re: Pretty URLs 0.9.2
Post by: maldo on May 31, 2007, 10:58:15 PM
Thanks eldAka for this wonderful mod, but I have installed it in http://ndoctors.com and use the orange lt theme and I am not able to view any board now, the urls are changed perfectly fine, but it says that they are not availbe 404 error. (pls try clicking on a borad or child board) pls have a look and let me know what i am doing wrong.

Thanks for your time.
Cheers
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on May 31, 2007, 11:22:27 PM
Can you copy your .htaccess here please?
Did you make these changes? (http://dev.eldacar.com/prettyurls/forum/general-discussion/fixes-for-0-6/)
Title: Re: Pretty URLs 0.9.2
Post by: maldo on June 01, 2007, 10:05:46 AM
Thanks eldAka, I will try the fixes you have mentioned. Will get back to here if there is any problems. I don't have direct access to the .htaccess as the site is in a cheap hosting. I will try and move the site to my hostmonster hosting soon.

Thanks for this much needed mod. The google ads are very relevant when this mod is installed. cheers mate.
Title: Re: Pretty URLs 0.9.2
Post by: Goad on June 05, 2007, 03:30:57 PM
Using 1.1.1 I get this error on install

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
File: /homepages/xx/xxxxxxxxx/htdocs/scjb-test/Packages/temp/install.php
Line: 61

What mysql version do you have?

4.0  ;D
Title: Re: Pretty URLs 0.9.2
Post by: [Lucien] on June 08, 2007, 09:31:07 AM
Perfect mod!! Works like a charm, thanks for this  :D
Title: Re: Pretty URLs 0.9.2
Post by: Goad on June 08, 2007, 05:35:44 PM
still getting this one....

Quote
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
File: /homepages/29/xxxxxxxx/htdocs/xxxxx/Packages/temp/install.php
Line: 61

i'd love to get this thing workin&nbsp; >:(
Title: Re: Pretty URLs 0.9.2
Post by: EBK on June 09, 2007, 03:39:57 PM
If after installed this mod I see 404 error page on forum's topics URLs, what does it means?

How can fix it?
Title: Re: Pretty URLs 0.9.2
Post by: smckeown on June 11, 2007, 03:55:44 PM
Does anyone know if this will work with a MS windows IIS server?
Thanks
Scott
Title: Re: Pretty URLs 0.9.2
Post by: saosangmo on June 12, 2007, 01:12:21 AM
I download version 0.7 some minutes ago, how to update my old verion?
Title: Re: Pretty URLs 0.9.2
Post by: madalin on June 12, 2007, 10:07:17 AM
Glad to see you fixed it :P

I download version 0.7 some minutes ago, how to update my old verion?

Installed and it works. For anybody who needs to install the latest version UNINSTALL the old one and INSTALL the latest one. The error regarding new boards/forums was fixed.

Thanks :)
Title: Re: Pretty URLs 0.9.2
Post by: Goad on June 13, 2007, 01:45:46 PM
still getting this one....

Quote
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
File: /homepages/29/xxxxxxxx/htdocs/xxxxx/Packages/temp/install.php
Line: 61

i'd love to get this thing workin&nbsp; >:(

0.7 fixed this issue....now im getting the 404 error on all pretty urls.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 14, 2007, 12:35:40 AM
If after installed this mod I see 404 error page on forum's topics URLs, what does it means?
If you try with 0.7 does it still give errors?

Does anyone know if this will work with a MS windows IIS server?
If there is some sort of rewriting module it should be possible.

I download version 0.7 some minutes ago, how to update my old verion?
Uninstall the old, and then reinstall the new. Once I get to version 1.0, I'll make the next updates be properly upgradeable.

0.7 fixed this issue....now im getting the 404 error on all pretty urls.
Can you post your .htaccess
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 15, 2007, 06:40:24 PM
Hi Eldaka,

Glenn here again.

Still fighting with supplemenatl pages.

I have checked both these urls through a spider checker and both are readable by google.

http://www.whitbyseaanglers.co.uk/forum/index.php/topic,899.0.htm

and

http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/bass-fishing-match-bridlington-beach/0/

Could this be the reason why I have supplemental  site wide forum results ?

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 15, 2007, 10:09:18 PM
No, it doesn't matter if they're readable, unless they're linked to somewhere, and the first shouldn't be linked to anywhere.

But.. it should be redirected with a 301.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 16, 2007, 04:57:56 AM
Hi Eldaka,

Thanks for the reply. Google is a bit of a pain and has a habbit of finding these things. There are quite a few pages in my forum that google knows are there twice. If you do a search for a topic and then put up the resulting url it is in the old format. Google actually did index quite a few of my topics twice and I did 301 them but to 301 the whole forum would be a difficulty with over 1000 topics now.

Is anyone else reading this getting sitewide supplemental results ? Or is there anyone out there with this mod installed getting the majority of their pages listed in googles main index ?

Is there another reason for what I am experiencing, am I being paranoid blaiming it on the pretty urls mod ?

Many thanks - Glenn
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 16, 2007, 07:43:36 AM
The mod should automatically redirect the oldstyle urls with 301s. I'll have a look at the code, maybe it won't always do it..
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 16, 2007, 08:48:33 AM
Thanks Eldackar

Ive just realised my pretty urls version is a little out of date. Will an update help ??

Only thing is I am getting an error message on the uninstall option.

    Type     Action     Description
1.    Execute Modification    ./index.php    Test failed
2.    Execute Modification    ./SSI.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Sources/PackageGet.php    Test successful
5.    Execute Modification    ./Sources/QueryString.php    Test successful
6.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
7.    Execute Modification    ./Sources/Subs-Post.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
9.    Delete File    ./Sources/Subs-PrettyUrls.php    
10.    Delete File    ./example.htaccess
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 16, 2007, 09:48:20 AM
Yes upgrading will help.
Any other mods installed afterwards? You should be able to uninstall it and make the change manually to index.php, theres just one I think.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 16, 2007, 10:16:22 AM
Ok I uninstalled both parts of  0.4 (that was an old version) and have now installed both parts of 0.7.

At the moment the urls are still in the old format and I get this above the forum header banner

Notice: unserialize() [function.unserialize]: Error at offset 166 of 731 bytes in /mounted-storage/home28b/sub001/sc24906-HICM/glennk/whitbyseaanglers.co.uk/forum/index.php on line 82
// Pretty URLs mod $txt['pretty_root_url'] = 'Pretty URLs root URL
(Without a final slash)
'; $txt['pretty_enable_filters'] = 'Enable URL filters
This may be a substantial performance hit
';
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 16, 2007, 10:19:55 AM
Can you post your ModSettings.english.php
You don't need to install the other 0.7 packages other than the Base btw. The others are optional, though if most people do install them, I'll include them in the Base later on.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 16, 2007, 11:44:33 AM
Can you post your ModSettings.english.php


Yes. What folder is it in please I cant locate this file
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 16, 2007, 11:47:16 AM
Ok located it. Never been in the language bit before.

<?php
// Version: 1.1; ModSettings

$txt['smf3'] = 'This page allows you to change the settings of features, mods, and basic options in your forum.  Please see the <a href="' . $scripturl . '?action=theme;sa=settings;th=' . $settings['theme_id'] . ';sesc=' . $context['session_id'] . '">theme settings</a> for more options.  Click the help icons for more information about a setting.';

$txt['mods_cat_features'] = 'Basic Features';
$txt['pollMode'] = 'Poll mode';
$txt['smf34'] = 'Disable polls';
$txt['smf32'] = 'Enable polls';
$txt['smf33'] = 'Show existing polls as topics';
$txt['allow_guestAccess'] = 'Allow guests to browse the forum';
$txt['userLanguage'] = 'Enable user-selectable language support';
$txt['allow_editDisplayName'] = 'Allow users to edit their displayed name?';
$txt['allow_hideOnline'] = 'Allow non-administrators to hide their online status?';
$txt['allow_hideEmail'] = 'Allow users to hide their email from everyone except admins?';
$txt['guest_hideContacts'] = 'Do not reveal contact details of members to guests';
$txt['titlesEnable'] = 'Enable custom titles';
$txt['enable_buddylist'] = 'Enable buddy lists';
$txt['default_personalText'] = 'Default personal text';
$txt['max_signatureLength'] = 'Maximum allowed characters in signatures<div class="smalltext">(0 for no max.)</div>';
$txt['number_format'] = 'Default number format';
$txt['time_format'] = 'Default time format';
$txt['time_offset'] = 'Overall time offset<div class="smalltext">(added to the member specific option.)</div>';
$txt['failed_login_threshold'] = 'Failed login threshold';
$txt['lastActive'] = 'User online time threshold';
$txt['trackStats'] = 'Track daily statistics';
$txt['hitStats'] = 'Track daily page views (must have stats enabled)';
$txt['enableCompressedOutput'] = 'Enable compressed output';
$txt['databaseSession_enable'] = 'Use database driven sessions';
$txt['databaseSession_loose'] = 'Allow browsers to go back to cached pages';
$txt['databaseSession_lifetime'] = 'Seconds before an unused session timeout';
$txt['enableErrorLogging'] = 'Enable error logging';
$txt['cookieTime'] = 'Default login cookies length (in minutes)';
$txt['localCookies'] = 'Enable local storage of cookies<div class="smalltext">(SSI won\'t work well with this on.)</div>';
$txt['globalCookies'] = 'Use subdomain independent cookies<div class="smalltext">(turn off local cookies first!)</div>';
$txt['securityDisable'] = 'Disable administration security';
$txt['send_validation_onChange'] = 'Require reactivation after email change';
$txt['approveAccountDeletion'] = 'Require admin approval when member deletes account';
$txt['autoOptDatabase'] = 'Optimize tables every how many days?<div class="smalltext">(0 to disable.)</div>';
$txt['autoOptMaxOnline'] = 'Maximum users online when optimizing<div class="smalltext">(0 for no max.)</div>';
$txt['autoFixDatabase'] = 'Automatically fix broken tables';
$txt['allow_disableAnnounce'] = 'Allow users to disable announcements';
$txt['disallow_sendBody'] = 'Don\'t allow post text in notifications?';
$txt['modlog_enabled'] = 'Log moderation actions';
$txt['queryless_urls'] = 'Search engine friendly URLs<div class="smalltext"><b>Apache only!</b></div>';
$txt['max_image_width'] = 'Max width of posted pictures (0 = disable)';
$txt['max_image_height'] = 'Max height of posted pictures (0 = disable)';
$txt['mail_type'] = 'Mail type';
$txt['mail_type_default'] = '(PHP default)';
$txt['smtp_host'] = 'SMTP server';
$txt['smtp_port'] = 'SMTP port';
$txt['smtp_username'] = 'SMTP username';
$txt['smtp_password'] = 'SMTP password';
$txt['enableReportPM'] = 'Enable reporting of personal messages';
$txt['max_pm_recipients'] = 'Maximum number of recipients allowed in a personal message.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['pm_posts_verification'] = 'Post count under which users must enter code when sending personal messages.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['pm_posts_per_hour'] = 'Number of personal messages a user may send in an hour.<div class="smalltext">(0 for no limit, moderators are exempt)</div>';

$txt['mods_cat_layout'] = 'Layout and Options';
$txt['compactTopicPagesEnable'] = 'Limit number of displayed page links';
$txt['smf235'] = 'Contiguous pages to display:';
$txt['smf236'] = 'to display';
$txt['todayMod'] = 'Enable &quot;Today&quot; feature';
$txt['smf290'] = 'Disabled';
$txt['smf291'] = 'Only Today';
$txt['smf292'] = 'Today &amp; Yesterday';
$txt['topbottomEnable'] = 'Enable Go Up/Go Down buttons';
$txt['onlineEnable'] = 'Show online/offline in posts and PMs';
$txt['enableVBStyleLogin'] = 'Show a quick login on every page';
$txt['defaultMaxMembers'] = 'Members per page in member list';
$txt['timeLoadPageEnable'] = 'Display time taken to create every page';
$txt['disableHostnameLookup'] = 'Disable hostname lookups?';
$txt['who_enabled'] = 'Enable who\'s online list';

$txt['smf293'] = 'Karma';
$txt['karmaMode'] = 'Karma mode';
$txt['smf64'] = 'Disable karma|Enable karma total|Enable karma positive/negative';
$txt['karmaMinPosts'] = 'Set the minimum posts needed to modify karma';
$txt['karmaWaitTime'] = 'Set wait time in hours';
$txt['karmaTimeRestrictAdmins'] = 'Restrict administrators to wait time';
$txt['karmaLabel'] = 'Karma label';
$txt['karmaApplaudLabel'] = 'Karma applaud label';
$txt['karmaSmiteLabel'] = 'Karma smite label';

$txt['caching_information'] = '<div align="center"><b><u>Important! Read this first before enabling these features.</b></u></div><br />
   SMF supports caching through the use of accelerators. The currently supported accelerators include:<br />
   <ul>
      <li>APC</li>
      <li>eAccelerator</li>
      <li>Turck MMCache</li>
      <li>Memcached</li>
      <li>Zend Platform/Performance Suite (Not Zend Optimizer)</li>
   </ul>
   Caching will only work on your server if you have PHP compiled with one of the above optimizers, or have memcache
   available. <br /><br />
   SMF performs caching at a variety of levels. The higher the level of caching enabled the more CPU time will be spent
   retrieving cached information. If caching is available on your machine it is recommended that you try caching at level 1 first.
   <br /><br />
   Note that if you use memcached you need to provide the server details in the setting below. This should be entered as a comma separated list
   as shown in the example below:<br />
   &quot;server1,server2,server3:port,server4&quot;<br /><br />
   Note that if no port is specified SMF will use port 11211. SMF will attempt to perform rough/random load balancing across the servers.
   <br /><br />
   %s
   <hr />';

$txt['detected_no_caching'] = '<b style="color: red;">SMF has not been able to detect a compatible accelerator on your server.</b>';
$txt['detected_APC'] = '<b style="color: green">SMF has detected that your server has APC installed.';
$txt['detected_eAccelerator'] = '<b style="color: green">SMF has detected that your server has eAccelerator installed.';
$txt['detected_MMCache'] = '<b style="color: green">SMF has detected that your server has MMCache installed.';
$txt['detected_Zend'] = '<b style="color: green">SMF has detected that your server has Zend installed.';

$txt['cache_enable'] = 'Caching Level';
$txt['cache_off'] = 'No caching';
$txt['cache_level1'] = 'Level 1 Caching';
$txt['cache_level2'] = 'Level 2 Caching (Not Recommended)';
$txt['cache_level3'] = 'Level 3 Caching (Not Recommended)';
$txt['cache_memcached'] = 'Memcache settings';

?>
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 16, 2007, 10:15:38 PM
Sorry, should have said modifications.english.php, it will be in the same location.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 17, 2007, 03:02:16 AM
Hi Eldacka,

Few proplems this end today.

I uninstalled the 0.7 hoping things would work unrill we got sorted but it seems to have made matters worse. I keep getting the session time out error and continually have to run the repair settings file to get into admin area.

Now when I have looked for the file you told me to upload I cannot find the languages file on the server. How is this possible ?

Can it be reinstalled ?

The forum currently says :

Notice: unserialize() [function.unserialize]: Error at offset 187 of 813 bytes in /mounted-storage/home28b/sub001/sc24906-HICM/glennk/whitbyseaanglers.co.uk/forum/index.php on line 82

The forum is currently not working.

If you need to have a look at the appearance it is at this link

http://www.whitbyseaanglers.co.uk/forum/index.php

Im trying not to panic at the moment and I have a copy of the database at hand if necassery.

Cheers - Glenn
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 17, 2007, 03:19:42 AM
Hi Eldacka

Cancel my last post I found the file you mention.

What an idiot I am - looking in the wrong place


<?php
// Version: 1.1; Modifications

//Begin Tagging System Text Strings
$txt['smftags_menu'] = 'Tags';
$txt['smftags_admin'] = 'Tags Configuration';

$txt['smftags_addtag'] = '[Add Tag]';
$txt['smftags_seperate'] = 'Seperate each tag by a comma';

$txt['smftags_topic'] = 'Tags: ';
$txt['permissiongroup_smftags'] = 'SMF Tags';
$txt['permissionname_smftags_suggest'] = 'Suggest Tags';
$txt['permissionhelp_smftags_suggest'] = 'Users can suggest tags to add';
$txt['cannot_smftags_suggest'] = 'You are not allowed to suggest tags.';

$txt['permissionname_smftags_manage'] = 'Manage Tags';
$txt['permissionhelp_smftags_manage'] = 'Users can modify the tag settings and add and remove tags';
$txt['cannot_smftags_manage'] = 'You are not allowed to manage tags.';
//END  Tagging System Strings         

//Begin Welcome Topic Text Strings
$txt['welcome_admin'] = 'Welcome Configuration';
// End Welcome Topic Mod Text Strings


// Pogo Awards adminIndex text strings.
$txt['awards'] = 'Awards';
$txt['pa_view_album'] = 'View member\'s badge album.';
$txt['pa_mods'] = 'Mods';
$txt['whoallow_pogoawards'] = 'Managing <a href="' . $scripturl . '?action=awards">Awards</a>.';

$txt['arcade'] = 'Arcade';
$txt['arcade_admin'] = 'Arcade Admin';   
$txt['arcade_manage_games'] = 'Games';
$txt['arcade_manage_category'] = 'Categories';
$txt['arcade_settings'] = 'Settings';

// Permission names and help
$txt['permissiongroup_arcade'] = 'Arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_play'] = 'Play on Arcade';
$txt['permissionhelp_arcade_play'] = 'Allows member to play on arcade, in games which he/she has rights to';
$txt['permissionname_arcade_admin'] = 'Administrate arcade';
$txt['permissionhelp_arcade_admin'] = 'Arcade Administarator can Install/Edit/Delete game, Delete scores and edit settings for arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_favorite'] = 'Use Favorites feature';
$txt['permissionhelp_arcade_favorite'] = 'Allows member to favorite and unfavorite games';
$txt['permissionname_arcade_submit'] = 'Save scores';
$txt['permissionhelp_arcade_submit'] = 'Allows users to save their scores.';
$txt['permissionname_arcade_rate'] = 'Rate games';
$txt['permissionhelp_arcade_rate'] = 'Allows users to rate games.';
$txt['permissionname_arcade_comment'] = 'Allow to comment/edit comment';
$txt['permissionhelp_arcade_comment'] = 'Allows user to edit comments, own or any';
$txt['permissionname_arcade_comment_any'] = 'Any';
$txt['permissionname_arcade_comment_own'] = 'Own';

// Errors if they can't do something
$txt['cannot_arcade_play'] = 'You are not allowed to play games!';
$txt['cannot_arcade_view'] = 'You are not allowed to access arcade.';
$txt['cannot_arcade_favorite'] = 'You are not allowed to favorite games';
$txt['cannot_arcade_rate'] = 'You are not allowed to rate games';
$txt['cannot_arcade_comment_own'] = 'You are not allowed to comment';

// Who's online
$txt['who_arcade'] = 'Viewing Arcade index';
$txt['who_arcade_play'] = 'Playing <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';
$txt['who_arcade_highscore'] = 'Viewing highscores of <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';

// Help
$txt['arcade_max_scores_help'] = 'Maximum scores that will be stored per member. (0 means unlimited)';
$txt['arcade_membergroups_help'] = 'These groups will be allowed to play and view highscores. Others will not see this game, only used if permission mode will use game permissions.';
$txt['youtube'] = 'YouTube';?>
//   Pretty URLs mod
$txt['pretty_root_url'] = 'Pretty URLs root URL<div class="smalltext">(Without a final slash)</div>';
$txt['pretty_enable_filters'] = 'Enable URL filters<div class="smalltext">This may be a substantial performance hit</div>';

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 17, 2007, 06:28:30 AM
Code: (find) [Select]
$txt['youtube'] = 'YouTube';?>
//   Pretty URLs mod
$txt['pretty_root_url'] = 'Pretty URLs root URL<div class="smalltext">(Without a final slash)</div>';
$txt['pretty_enable_filters'] = 'Enable URL filters<div class="smalltext">This may be a substantial performance hit</div>';
Code: (replace) [Select]
$txt['youtube'] = 'YouTube';

//   Pretty URLs mod
$txt['pretty_root_url'] = 'Pretty URLs root URL<div class="smalltext">(Without a final slash)</div>';
$txt['pretty_enable_filters'] = 'Enable URL filters<div class="smalltext">This may be a substantial performance hit</div>';

?>
Looks like the package manager screwed up the change.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 17, 2007, 10:47:30 AM
sorry.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 17, 2007, 10:57:01 AM
Ok I have now done that but have got this error at the top of the forum ?

Notice: unserialize() [function.unserialize]: Error at offset 187 of 813 bytes in /mounted-storage/home28b/sub001/sc24906-HICM/glennk/whitbyseaanglers.co.uk/forum/index.php on line 82
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 17, 2007, 11:00:05 AM
No need to apologise, it's a bug in SMF!

What's on line 82 of index.php?
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 17, 2007, 11:07:25 AM
Line 84

unserialize($modSettings['pretty_board_urls']);


Lines 80-84


// Unserialize the array of pretty board URLs
$modSettings['pretty_board_urls'] = str_replace("'", "\\'", $modSettings['pretty_board_urls']);
$context['pretty']['board_urls'] = unserialize($modSettings['pretty_board_urls']);
// Clean the request variables, add slashes, etc.
cleanRequest();
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 17, 2007, 11:24:41 AM
Argh, I thought I had fixed that! Damn quotes.

Can you get the contents of the pretty_board_urls setting (from the smf_settings table).
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 17, 2007, 11:32:10 AM
Hi Mate,

Where do I find that ?

Fingers crossed its not in the database as thats Nicks department and he hasn't been in touch the passed few days.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 17, 2007, 11:36:57 AM
Yes it's in the database. Do you have access to phpMyAdmin?
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 17, 2007, 11:39:40 AM
where would I find that please ?

Think I do
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 17, 2007, 11:47:43 AM
In cPanel, possibly.
I suggest you uninstall the mod until 'Nick' can return and help. Give him a link to this topic.
Sorry but there's nothing I can do now until we sort out this quotes problem.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 17, 2007, 11:49:58 AM
Ok thats fine mate. Will the forum work untill Nick gets back ?

Thanks for your help so far.

 ;) ;) :)
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 17, 2007, 11:54:52 AM
Ok Uninstalled base0.7

the other bit wont come out and gives this error :

1.     Execute Modification     ./Sources/PrettyUrls-Filters.php     File not found
2.    Execute Code    uninstall.php
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 17, 2007, 12:12:00 PM
You should uninstall them in the opposite order to how you installed them. But never mind, just uninstall it now, it doesn't really matter if that file is missing.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 17, 2007, 12:15:57 PM
I get this error when I try to uninstall

Fatal error: require_once() [function.require]: Failed opening required '/mounted-storage/home28b/sub001/sc24906-HICM/glennk/whitbyseaanglers.co.uk/forum/Sources/Subs-PrettyUrls.php' (include_path='.:/usr/local/lib/php/') in /mounted-storage/home28b/sub001/sc24906-HICM/glennk/whitbyseaanglers.co.uk/forum/Packages/temp/uninstall.php on line 19
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 17, 2007, 11:02:14 PM
Okay, yeah you will need to reinstall the Base, uninstall the the other, then uninstall the base. Remember next time to do it in the opposite order! :)
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 18, 2007, 07:34:50 AM
Good morning,

Nick is currently doing a clean install on the forum and tidying things up. He says this should help us get the mod in place.

Ill let you know how we get on.

Cheers - Glenn
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 18, 2007, 08:31:04 AM
Hi Eldacka,

We now have the mod installed with apparently no errors. However we are not getting rewritten urls at the moment. Weve probably missed something real basic at the set up stage. Could you please advise.

Cheers - Glenn
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 18, 2007, 09:01:48 AM
Did you tick the box saying "Enable URL filters" in the settings page?
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 18, 2007, 11:43:30 AM
All is working now I think.

A few slight problems you may wish to know about.

A similar problem to when we installed 0.4 is that in any board containing a ' sign

eg Ramrod's Pictures

I get a page not found error from the browser and the url looks like this :

http://www.whitbyseaanglers.co.uk/forum/ramrod%5C's-pictures-b18/0/

Another thin is

that urls that once looked like this :

http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/pollock-fishing/0/

Now look like this

http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing-b2/pollock-fishing/0/

Not quite sure why the b2 bit is there ? Is this an error. Again could cause duplicate content problems for google ending in supplemental results.

This quick reply box needs some smilies.

Thanks again - Glenn
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 18, 2007, 11:47:41 AM
Sorry just 1 more question for piece of mind( I bet your sick of me).

I still have this in the forum .htaccess - Is it required still ?
Does it need anything adding or changing to work with this version ?

#   Pretty URLs mod
#   http://code.google.com/p/prettyurls/
#   .htaccess file generated automatically on: June 18, 2007, 13:20

RewriteEngine on

#   Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#   Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
Title: Re: Pretty URLs 0.9.2
Post by: jinji on June 18, 2007, 06:49:48 PM
Which is better for search engines? Pretty URLs or SEO4SMF?
Why dosen't the profile mod? It shows me blank pages.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 18, 2007, 10:56:45 PM
A similar problem to when we installed 0.4 is that in any board containing a ' sign
eg Ramrod's Pictures
I get a page not found error from the browser and the url looks like this :
http://www.whitbyseaanglers.co.uk/forum/ramrod%5C's-pictures-b18/0/

Another thin is that urls that once looked like this :
http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/pollock-fishing/0/
Now look like this
http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing-b2/pollock-fishing/0/
Not quite sure why the b2 bit is there ? Is this an error. Again could cause duplicate content problems for google ending in supplemental results.
Hmm. Try uninstalling the mod, and ask Nick to delete everything the mod added to the database. There are a few tables, and some rows in the smf_settings table. Reinstall it. You'll be starting completely fresh, which should hopefully remove those -b2s.

I still have this in the forum .htaccess - Is it required still ?
Does it need anything adding or changing to work with this version ?
It's required yes, but no you don't have to do anything, the mod creates it automatically.

Which is better for search engines? Pretty URLs or SEO4SMF?
SEO4SMF always has the topic numbers in the URLs, whereas mine only has the numbers for topics with the same title. I think that's better :)

Quote
Why dosen't the profile mod? It shows me blank pages.
What shows blank pages? The profiles package?
Title: Re: Pretty URLs 0.9.2
Post by: metallica48423 on June 18, 2007, 11:50:35 PM
Quote
SEO4SMF always has the topic numbers in the URLs, whereas mine only has the numbers for topics with the same title. I think that's better

Depends on how somone views the idea of having an additional sql query done :P

Its a matter of taste :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 19, 2007, 12:29:44 AM
Quote
Page created in 0.081 seconds with 21 queries. (Pretty URLs adds 0.007s, 1q)
Seems pretty reasonable to me ;) The queries are all very simple, and the load time increase is pretty small (not all of it is my mod either).

I'd be interested to find out from everyone how big their smf_pretty_topic_cache tables are. Mine are pretty big, more than everything else combined :o
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 20, 2007, 11:34:48 AM
Hi Eldaka,

Just a quick update.

Nick got rid of the b2 bit in the urls for me. Which is great. Also some good news is that the first pages indexed by google under the 0.7 update have gone into the google main index and not supplemental so I think the 301 from the numbered url to the pretty url has fixed that. I would be interested on your views on that on.

The only bad news is goggle indexed a lot of urls with the b2 bit in the url and the topics appear to still exist. so now we have

http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing-b2/amble-boat-fishing-match/0/

and

http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/amble-boat-fishing-match/0/

Duplicate content again. Is there any code that can be put in the .htaccess that will rewrite all urls with a board number in the url to one without the board number. Ie 301 rewrite the b2 urls

Thanks again (big smiley face)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 20, 2007, 11:45:45 AM
Hmmm, I'll think about what could be done.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on June 20, 2007, 11:57:03 AM
Good man (bigger smiling smiley)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 21, 2007, 11:49:50 PM
Okay I think this will work.
Display.php
Code: (find) [Select]
// 301 redirects
if (isset($context['pretty']['oldschoolquery']) && $modSettings['pretty_enable_filters'])
Code: (replace) [Select]
// 301 redirects
if ((isset($context['pretty']['oldschoolquery']) || $_REQUEST['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Title: Re: Pretty URLs 0.9.2
Post by: Goad on June 22, 2007, 01:37:53 PM
0.7 fixed this issue....now im getting the 404 error on all pretty urls.
Can you post your .htaccess

sorry I'm lagging on this...i didnt know there was replys.....my email notifications arent working...

heres my .htaccess:

Code: [Select]
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: June 13, 2007, 13:41

RewriteEngine on

# Rules for: boards
RewriteRule ^([-_!~*\'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*\'()a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*\'()a-zA-Z0-9]+)/([-_!~*\'()a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*\'()a-zA-Z0-9]+)/([-_!~*\'()a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 23, 2007, 04:34:56 AM
That .htaccess file looks fine.
Is mod_rewrite enabled? Can you post a link to a phpinfo.php (http://www.simplemachines.org/community/index.php?topic=18250.0) file.
Title: Re: Pretty URLs 0.9.2
Post by: Goad on June 23, 2007, 11:45:24 AM
That .htaccess file looks fine.
Is mod_rewrite enabled? Can you post a link to a phpinfo.php (http://www.simplemachines.org/community/index.php?topic=18250.0) file.

http://test.socaljetboats.com/phpinfo.php

how do i tell if mod_rewrite is enabled? my host is 1and1. i am going to drop them soon and get a VM. I am sick of running into roadblocks like this.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 23, 2007, 10:56:00 PM
From what I can tell, your server doesn't have mod_rewrite. I don't know much about 1and1 or VMs, but hopefully your next server will be more useful.
Title: Re: Pretty URLs 0.9.2
Post by: Col on June 29, 2007, 11:40:18 AM
Hi Eldeka,

I'm having some intractable problems with my forum so I'm having to slowly add modifications to a test forum to find the fault. However, I cannot successfully install this mod (0.7) to an unmodified 1.1.2 or upgraded 1.1.3 forum. It appears to install, but the filters option in Features and Options doesn't appear, and the Search Engine Friendly URLs option is removed (is that right)? That option still appears in my version on my real forum, but I've not upgraded from 0.4 yet.

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Sakae on June 29, 2007, 01:01:55 PM
Works fine for me and my 1.1.3 SMF forum... Great job!!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 29, 2007, 10:56:00 PM
Col, are you using a custom theme? SMF's normal SEF URLs option should be removed, but the new settings should be added in its place.
Title: Re: Pretty URLs 0.9.2
Post by: Green CoW on June 30, 2007, 12:24:46 PM
I got "SMF Arcade 2.0.7" installed and today I installed "Pretty URLs - Base 0.7" and somehow the pretty URLs is causing problems for the Arcade!
I get
Code: [Select]
You need to enable javascript in order to play games. when I'm trying to access the Arcade!
When I uninstalled the "Pretty URLs - Base 0.7" I could play again!
Any ideas what's causing the problem?
Title: Re: Pretty URLs 0.9.2
Post by: Flying Drupalist on June 30, 2007, 01:54:50 PM
Pretty URLs are interfering with some of my other functions and I've found them to be unnecessary. I uninstalled pretty urls but it doesn't go away... 0.o
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on June 30, 2007, 10:59:23 PM
Green CoW, anything in the error log? I don't see how it could possibly conflict with javascript.

Miraploy, if it's still happening then the code must still remain in QueryString.php and wasn't uninstalled properly.
Title: Re: Pretty URLs 0.9.2
Post by: Flying Drupalist on July 02, 2007, 11:05:12 AM
Very strange I just installed Pretty Urls again and my urls went back to being normal. But now it's INSTALLED.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 02, 2007, 11:07:15 AM
Weird! Is the enable filters setting on?
Title: Re: Pretty URLs 0.9.2
Post by: saosangmo on July 02, 2007, 10:52:15 PM
HI eldʌkaː,

I'm using version 0.7.
Whenever I split posts, then I go to Forum Error Log, I see the below message:

Apply Filter: Only show the errors with the same message
8: Undefined index: targetboard
File: /home/xxx/public_html/yyy/Sources/SplitTopics.php
in line: 1094

my lines: 1088 to 1098 in SplitTopics.php

Code: [Select]

// Tell the user the move was done properly.
function MergeDone()
{
global $txt, $context;

// Make sure the template knows everything...
$context['target_board'] = $_GET['targetboard'];
$context['target_topic'] = $_GET['to'];

$context['page_title'] = $txt['smf252'];
$context['sub_template'] = 'merge_done';

I wonder if I have something wrong?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 03, 2007, 03:49:10 AM
Hmmmm, yes I think there is a problem there! I think it's looking at targetboard= and cutting out the board= part. I'll have to fix that!
Get the fix here (http://dev.eldacar.com/prettyurls/forum/general-discussion/fixes-for-0-7/)
Title: Re: Pretty URLs 0.9.2
Post by: PiTXI on July 03, 2007, 03:50:41 AM
I am using SMF 1.1.3 Updated (1.1.2) and pretty urls 0.7 doesn't work. I'm using a custom theme.

I need help, the filter option in Features and Options doesn't appear. >:(
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 03, 2007, 03:56:38 AM
PITXI, did you get any errors when you installed the mod? Using a custom theme shouldn't matter, but try accessing the Features and Options page with the default theme to be sure.
Title: Re: Pretty URLs 0.9.2
Post by: PiTXI on July 03, 2007, 04:15:36 AM
PITXI, did you get any errors when you installed the mod?

Yes. I have seen that it's the problem.

Code: [Select]
Error with Package Install
At least one error was encountered during a test installation of this package.
It is strongly recommended that you do not continue with installation unless you
know what you are doing, and have made a backup very recently.
This error may be caused by a conflict between the package you're
trying to install and another package you have already installed, an error in
the package, a package which requires another package that you don't have
installed yet, or a package designed for another version of SMF.

Code: [Select]
Execute Mod  ./Sources/QueryString.php  Failed
This warning appears since I've upgraded to 1.1.3.


In 1.1.2 pretty url worked perfectly for me.

Can you help me? pls!!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 03, 2007, 04:16:30 AM
Well, what file had the error?
Title: Re: Pretty URLs 0.9.2
Post by: PiTXI on July 03, 2007, 04:17:19 AM
./Sources/QueryString.php

thx
Title: Re: Pretty URLs 0.9.2
Post by: PiTXI on July 03, 2007, 05:31:15 AM
Hi eldʌkaː, I've uploaded a clean QueryString.php and now I don't get the error.

The mod works but I can't see the pretty url's. :o

I have tested with an old url, and now works, but the forum shows normal url.


HELP.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 03, 2007, 08:41:38 AM
You'll need to reinstall it now that you have a clean QueryString.php.
Title: Re: Pretty URLs 0.9.2
Post by: PoLlama on July 03, 2007, 12:25:46 PM
Installed easily and actually works. Much better then SEO4SMF(which not only was a pain, but crashed my forum, and still didn't work).

However, theres only one problem I have with this mod. I noticed in feature and options...
"This may be a substantial performance hit"
Are you saying this may substantial slow down the entire forum? I may have to scrap it then... not worth it. Right now I can't check what its doing to the forum because my own connection is acting up.
Title: Re: Pretty URLs 0.9.2
Post by: saosangmo on July 03, 2007, 01:25:50 PM
Hi eldʌkaː
I also get the below message when I view my Forum Error Log

Code: [Select]
http://mydomain.com/index.php?action=viewkarma
Apply Filter: Only show the errors with the same message
8: Undefined offset: 0
File: /home/xxx/public_html/yyy/Sources/PrettyUrls-Filters.php
In line: 55

I'm also using Karma Description Mod

plz help me, thanks
Title: Re: Pretty URLs 0.9.2
Post by: PiTXI on July 03, 2007, 04:38:26 PM
It works!!!!
Title: Re: Pretty URLs 0.9.2
Post by: PoLlama on July 03, 2007, 07:44:38 PM
I've found a bug... had to uninstall this because of it...

For the Board "King_Leopold's Maps", which has 4 sub-forums, the user would be redirected to a 404 error page. I tried changing the name to King_Leopold's, and then King Leopold, but it still had not worked. I also tried reinstalling after the name was changed, and still, no luck.

URL it gave: http://www.pollama.com/king_leopold%5C's-maps/0/
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 03, 2007, 09:11:55 PM
Col, are you using a custom theme? SMF's normal SEF URLs option should be removed, but the new settings should be added in its place.

Hi eldeka,

I use my own variation of the default theme - but the admin templates are untouched!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 03, 2007, 10:57:55 PM
PoLlama, The load isn't very high in any forum I've tried the mod on, although with very big forums it might be. You can look at the modified Load time text at the bottom to check.
And the problem with apostrophes is known, and I'm working on it. In 0.8 hopefully it will be finally fixed.

saosangmo, I've had that error occasionally, don't know what it means, and I've never been able to produce it on purpose. It's nothing to worry about though :)

PiTXI, :D

Col, Hmmm. Well try manually adding the two settings into ModSettings.php. If they're already there (in the source file) then I have no idea why they wouldn't be displaying.
Title: Re: Pretty URLs 0.9.2
Post by: PoLlama on July 03, 2007, 11:27:20 PM
Yes but I took out the apostrophe, and it stuck. I even reinstalled it, and it still stuck.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 03, 2007, 11:53:31 PM
If you uninstall the mod completely, removing all database settings, remove the apostrophe, and then reinstall the mod it should work. You can add the apostrophe back into the board's name and the url won't be changed.
Title: Re: Pretty URLs 0.9.2
Post by: saosangmo on July 04, 2007, 03:50:51 AM
Hi eldʌkaː,
When I go into Kama Log (a part of Karma Description Mod), I click on the topic which user changed karma of another user.
One of links displays like
http://mydomain.com///0/?-y-cho-muc-am-nhc.msg23586#msg23586
And It is an invalid link.


Quote
saosangmo, I've had that error occasionally, don't know what it means, and I've never been able to produce it on purpose. It's nothing to worry about though :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 04, 2007, 04:13:21 AM
Anything in the error log about that?
Title: Re: Pretty URLs 0.9.2
Post by: saosangmo on July 04, 2007, 04:31:24 AM
I have posted it and now I quote that message.

Hi eldʌkaː
I also get the below message when I view my Forum Error Log

Code: [Select]
http://mydomain.com/index.php?action=viewkarma
Apply Filter: Only show the errors with the same message
8: Undefined offset: 0
File: /home/xxx/public_html/yyy/Sources/PrettyUrls-Filters.php
In line: 55

I'm also using Karma Description Mod

plz help me, thanks
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 04, 2007, 04:41:47 AM
Oh yes sorry. Okay... well maybe they are connected.


Try making this change to PrettyUrls-Filters.php:
Code: (find) [Select]
if (isset($url['topic_id']))
Code: (replace) [Select]
if (isset($url['topic_id']) && isset($topicData[$url['topic_id']]))
Title: Re: Pretty URLs 0.9.2
Post by: saosangmo on July 04, 2007, 05:40:57 AM
I'm testing this fix and report later.
many thanks
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 04, 2007, 06:11:45 AM
You may need to empty the smf_pretty_urls_cache table too.
Title: Re: Pretty URLs 0.9.2
Post by: saosangmo on July 04, 2007, 07:37:41 AM
my forum works well and I must empty the smf_pretty_urls_cache table.
thank eldʌkaː!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 04, 2007, 07:42:56 AM
:D
Now to fix the problem with apostrophes.
Title: Re: Pretty URLs 0.9.2
Post by: PoLlama on July 04, 2007, 11:45:29 AM
So there is no support for changing board names? Is there support for new boards?

EDIT: It does support new boards, but it doesn't support moving boards...
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 04, 2007, 07:40:35 PM
Col, are you using a custom theme? SMF's normal SEF URLs option should be removed, but the new settings should be added in its place.

Hi eldeka,

I use my own variation of the default theme - but the admin templates are untouched!

Hi Eldeka,

Scrub what I wrote above - I've been away for a few days and forgot what I had done. I installed 0.7 to a completely unmodified 1.1.2 forum and it failed. It also failed with the 1.1.3 upgraded (unmodified) forum. It is very odd.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 04, 2007, 11:32:43 PM
Quote
So there is no support for changing board names? Is there support for new boards?
The support for changing board names is in the source code, I'll just have to write the template changes sometime too.

Scrub what I wrote above - I've been away for a few days and forgot what I had done. I installed 0.7 to a completely unmodified 1.1.2 forum and it failed. It also failed with the 1.1.3 upgraded (unmodified) forum. It is very odd.
Did it give you any errors, or were the files just unchanged?
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 05, 2007, 09:19:12 AM
Hi Eldeka,

It appeared to install without any error whatsoever. However the filters option does not appear for some reason. I've removed the test forum now, bit I'll install a new one and check it more thoroughly (to see is the code is installed and not displayed, or if the install of the code fails).

I'll try to get back to you today.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 05, 2007, 09:28:56 AM
It might be file permissions/ownerships. I think I had a similar program before, where it said it modified the files, but actually did nothing at all.
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 05, 2007, 11:14:48 AM
Hi,

I've installed another forum, and the option appears. I'm unsure if I just missed it before (because it appears a few places below the code that is removed for SEF URLs), or if it didn't appear at all. Maybe I missed it because the text that appears in 0.4 ('Pretty URLs root URL (Without a final slash)') does not appear in 0.7 - I'm unsure now. Is that as it should be - no text identifying the purpose of the option?

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: PoLlama on July 05, 2007, 11:24:45 AM
It doesn't support moving boards.

The 'easy' method, where you click move, and then select where to put it on the list, brings up the 'Board not found' error. And the other method, where you use the 2 drop down boxes(ChildOf/After/Before and BoardName) freezes when you try to set it.
Title: Re: Pretty URLs 0.9.2
Post by: kamili34 on July 05, 2007, 03:55:15 PM
When i want install

i got error     

Code: [Select]
Wykonaj modyfikację  ./Sources/QueryString.php  Not Success
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 05, 2007, 07:59:27 PM
Hi Eldeka,

I'm reinstalling my forum, from scratch, to track down some bugs. I will be reinstalling this mod. I've had one or two small problems with apostrophes that I never corrected properly - you gave instructions for working around the problem, but I just ended up not using the board concerned (it was new, so I created a new board instead with a different name). I have version 0.4 installed. What I need to know is, will I have any problems with removing the present version and installing 0.7. I'd like a completely fresh install of this mod - can I just drop the table from the database?

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 05, 2007, 09:23:30 PM
I've installed another forum, and the option appears. I'm unsure if I just missed it before (because it appears a few places below the code that is removed for SEF URLs), or if it didn't appear at all. Maybe I missed it because the text that appears in 0.4 ('Pretty URLs root URL (Without a final slash)') does not appear in 0.7 - I'm unsure now. Is that as it should be - no text identifying the purpose of the option?
No that should still be there... this is very weird.

It doesn't support moving boards.

The 'easy' method, where you click move, and then select where to put it on the list, brings up the 'Board not found' error. And the other method, where you use the 2 drop down boxes(ChildOf/After/Before and BoardName) freezes when you try to set it.
Hmmm, okay, I'll look into that.

i got error
Code: [Select]
Wykonaj modyfikację  ./Sources/QueryString.php  Not Success
Any other mods installed?

I'm reinstalling my forum, from scratch, to track down some bugs. I will be reinstalling this mod. I've had one or two small problems with apostrophes that I never corrected properly - you gave instructions for working around the problem, but I just ended up not using the board concerned (it was new, so I created a new board instead with a different name). I have version 0.4 installed. What I need to know is, will I have any problems with removing the present version and installing 0.7. I'd like a completely fresh install of this mod - can I just drop the table from the database?
I'm going to be making a big post soon about apostrophes, they just keep causing so many problems.
As to uninstalling it completely, remove everything shown in this page: http://code.google.com/p/prettyurls/wiki/DatabaseChanges
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 05, 2007, 10:02:53 PM
See this discussion topic too: http://dev.eldacar.com/prettyurls/forum/general-discussion/the-state-of-apostrophes/0/
Title: Re: Pretty URLs 0.9.2
Post by: kamili34 on July 08, 2007, 10:08:25 AM
What this mod do. Please screen shot  :'(
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 08, 2007, 10:13:09 AM
What this mod do. Please screen shot&nbsp; :'(

http://www.simplemachines.org/community/index.php?topic=146969.msg937167#msg937167
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 08, 2007, 10:22:53 AM
All, I think I just fixed the quotes problem (finally) :D :D :D :D :D :D :D :D :D
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 08, 2007, 10:30:51 AM
Great!

Hopefully, I will be able to try this out today. :)
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 09, 2007, 04:42:54 PM
Hi Guys,

I guess quite a few of you are using the pretty urls Mod by Eldacaka ?

Just to put my mind at rest could you people who use this mod reassure me that your forums are in google's main index and not supplemental ?

All my forum is in supplemental results but I'm hoping this is due to lack of links rather than any problem google has with the url rewriter. However I am paranoid as I should have enough pr and links to get some pages into main index.

So users please check out google and let me know how much of your forum is in the main index and how much is in supplementals?

Please feel free to pm me.

Cheers - Glenn
Title: Re: Pretty URLs 0.9.2
Post by: Goad on July 09, 2007, 04:55:30 PM
ok...so i finally got this working on my test site and i installed and enabled it on my production site.....everything seems to work fine except for whenever its enabled, the SMF arcade takes a dump....when you click on a game, it says "You need to enable javascript in order to play games."

as soon as i disable pretty urls, it works fine. any ideas?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 10, 2007, 04:00:15 AM
Anything in the error logs? What javascript is there?
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 10, 2007, 07:58:23 AM
They all just ignore me. I am concerned there is something with this mod that google doesn't like. It would take just 1 person to say I have x amount of pages indexed in the main search results and I would be happy.

I am in a dilemma as to remove the mod and loose the links I have built up or to persevere as is ??
Title: Re: Pretty URLs 0.9.2
Post by: schled on July 10, 2007, 08:08:11 AM
I have seen more topics from my forum appear in Google's main index after installing this mod. I have been extremely pleased with the performance of this mod in all respects and believe it should be a part of the default package.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 10, 2007, 09:13:16 AM
http://www.google.com.au/search?q=site%3Aeldacar.com
I've got 341 pages indexed, which isn't bad when my site has only 74 posts.
[edit]Oh, that includes dev.eldacar.com, which is why there's more ;)
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 10, 2007, 01:57:59 PM
Hi eldacar,

Ive checked it out and that's eased my worries as I found some of your pages in the main index. Out of the 341 you only have 26 in the main index the rest are supplementals and of no use to you traffic wise. But I shouldnt knock that as you have 24 more than me in the main index, From 74 posts that good.

Thanks for that. I can rest at night now
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 10, 2007, 10:45:42 PM
Actually the number of posts doesn't matter, it's the number of topics. I have 26 in public boards, of which only 17 are indexed. 3 are in the supplemental index.
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 11, 2007, 02:37:49 PM
I think all my topics are indexed. It takes time for Google to decide if your pages are worth the effort of indexing.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 12, 2007, 06:53:42 AM
Hi Col,

I checked out your forum. You don't have one single topic in the full index mate, your login section is indexed as is your arcade and a couple of boards but I couldn't find any topics in the main index.

All 699 except those mentioned are supplemental results.

Can anyone show me a site with all the pages in the main index ?
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 12, 2007, 06:00:50 PM
Hi Glennk,

How did you perform the search with Google? I use the following, and gain 700 results.

Quote
site:www.benzobuddies.org/forum
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 12, 2007, 06:07:32 PM
Glennk,

I just performed a similar search with your forum URL, and it returned 1,640 results! I gleaned your site URL from another of your posts. I'm assuming that your forum is about angling, right?
Title: Re: Pretty URLs 0.9.2
Post by: diplomat. on July 12, 2007, 10:03:47 PM
I installed this mod about a week or two ago and quite a few of my topics have been indexed, especially my ringtones

http://www.google.com/search?q=site%3Atitaniumwg.com
Title: Re: Pretty URLs 0.9.2
Post by: viulian on July 16, 2007, 02:29:54 AM
Wow, this topic has now 25 pages (I think I last checked it when it had 5 pages or so) and things are looking good :)

Thanks eldʌkaː !

I have a question: I am using mkportal for my site, and was wondering whether some of you guys actually used Pretty URLs with mkportal + UTF8 charset.
Thanks!
Title: Re: Pretty URLs 0.9.2
Post by: anakmacan on July 19, 2007, 12:13:09 PM
ive just installed this wonderful mod 5 minutes ago, tested on my forum.. and it seems no trouble at all, hopefully for good. Thank you eldakai! how can we show you gratitude? dont you have google ads somewhere for me to *uhum*uhum* hehehehe..
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 23, 2007, 07:09:21 AM
Hi Eldacka,

I currently have a problem. I installed the tagging mod and it wouldn't function correctly so as suggested in the tagging mod topic I uninstalled pretty urls and the tagging mod started to work.

I then tried to reinstall the pretty urls mod and get the following error :

An Error Has Occurred!
Hacking attempt...

Can you advise please ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 23, 2007, 07:18:03 AM
The tagging mod is using $_REQUEST['topic'] directly rather than $topic. I already asked for it to be fixed. but I don't know if vbgamer is interested anymore. If you changed it manually to use $topic I think it would work.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 23, 2007, 07:30:57 AM
How about getting the pretty urls mod back in place though ? Even with the tagging mod uninstalled I get this error when trying to install pretty urls

An Error Has Occurred!
Hacking attempt...
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 23, 2007, 07:34:55 AM
What does it say in the error log?
Title: Re: Pretty URLs 0.9.2
Post by: TrueSatan on July 23, 2007, 07:42:40 AM
Not meaning it disrespectfully but I'd been answering glennk's queries regarding the Tagging Mod and wouldn't be willing to advise making code changes to such a degree without vbgamer's blessing...I've advised that glennk should opt for one mod or the other but not both.

 Glennk appears to be a non coder so, if I'm correct, would be unable to do his own support for  code changes.

 I'm not meaning to tread on any toes, yours or vbgamer's, but just thought I'd best chip in with those thoughts.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 23, 2007, 07:45:24 AM
Honestly I think it's a pretty big mistake on vbgamer's behalf, by doing what he's done he also makes all the validation etc done by SMF in QueryString.php pointless. I've actually offered to take over maintaining the tags mod, but he never replied.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 23, 2007, 07:49:03 AM
Well its a shame as I like both mods and would like to use both. At the moment as all links I have are to the pretty urls this one is essential. Big shame with the users being the ones who loose out.

Ill check the error log and report back.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 23, 2007, 07:50:38 AM
It says "

    
Apply Filter: Only show the error messages of this member Baramundi Bob    July 23, 2007, 12:43:22 PM
Apply Filter: Only show the error messages of this IP address 86.30.65.79      Apply Filter: Only show the error messages of this session ebe864c4ef1716f029557afa9621aee7
Apply Filter: Only show the error messages of this URL http://www.whitbyseaanglers.co.uk/forum/index.php?action=packages;sa=install2;package=prettyurls-base_0_7.tar.gz
Apply Filter: Only show the errors with the same message
Hacking attempt...

REPLACE INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (1125, "fishing-fantastic"), (1132, "help-re-fishfinder-selection-for-me-yak")
File: /home/glennk/public_html/forum/Sources/Subs-PrettyUrls.php
Line: 233"
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 23, 2007, 07:53:09 AM
If you use the uninstall.php (http://prettyurls.googlecode.com/svn/trunk/uninstall.php) tool are you able to install it? That will remove all pretty URLs stuff in the database letting you install it clean (hopefully).
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 23, 2007, 07:57:33 AM
Sorry to sound thick but what do I do with it ? Do I download that from somewhere and upload it or is it already there ? what do I need to do please ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 23, 2007, 08:00:28 AM
Download it to your computer, and then put it in the same place as your forum's SSI.php. Run it with your browser, and delete it right after that!
Title: Re: Pretty URLs 0.9.2
Post by: TrueSatan on July 23, 2007, 08:07:30 AM
Honestly I think it's a pretty big mistake on vbgamer's behalf, by doing what he's done he also makes all the validation etc done by SMF in QueryString.php pointless. I've actually offered to take over maintaining the tags mod, but he never replied.

 I'll try to contact vbgamer45 and see what he says...if you are given permission to take it over (and just for anyone else reading this it is vbgamer's choice not ours) I'll also make an offer to you of my continuing to do whatever support for it that I can. I'll get back to you with any answers (via PM if I may?).
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 23, 2007, 08:12:58 AM
PMs are fine. I'll renew my offer to him.
Title: Re: Pretty URLs 0.9.2
Post by: TrueSatan on July 23, 2007, 08:21:52 AM
OK...looks to be alls well now anyhow.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 23, 2007, 08:26:53 AM
did my post get lost ?

I installed the mod now but its not working. Were still on the old urls
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 23, 2007, 08:29:00 AM
error log

Apply Filter: Only show the error messages of this member  Baramundi Bob       July 23, 2007, 01:04:40 PM
Apply Filter: Only show the error messages of this IP address 86.30.65.79      Apply Filter: Only show the error messages of this session ebe864c4ef1716f029557afa9621aee7
Apply Filter: Only show the error messages of this URL http://www.whitbyseaanglers.co.uk/forum/index.php?action=packages;sa=install2;package=prettyurls-base_0_7.tar.gz
Apply Filter: Only show the errors with the same message
8: Undefined index: pretty_root_url
File: /home/glennk/public_html/forum/Sources/Subs-PrettyUrls.php
Line: 274
Title: Re: Pretty URLs 0.9.2
Post by: TrueSatan on July 23, 2007, 08:31:53 AM
You have two developers working on this to get a new version of a mod out...give them a little time to sort it all out.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 23, 2007, 08:34:30 AM
I don't know what could cause that error, unless somehow the database got momentarily out of sync. If you try again does it work?
Title: Re: Pretty URLs 0.9.2
Post by: cru on July 23, 2007, 08:53:21 AM
Installation went well for smf1.1.3. but when i clicked home, i get this error...


Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500

i used the package manager..
Title: Re: Pretty URLs 0.9.2
Post by: TrueSatan on July 23, 2007, 08:55:34 AM
As the error indicates it sounds like a hosting problem...if it is overload than waiting a while as the error advises may well resolve it.
Title: Re: Pretty URLs 0.9.2
Post by: cru on July 23, 2007, 09:18:31 AM
its in a localhost boss, and i have not much content yet.  how about the cgi script thing? as mentioned in the error. can i correct that?
Title: Re: Pretty URLs 0.9.2
Post by: TrueSatan on July 23, 2007, 10:15:30 AM
cgi is part of the hosting configuration...if you have access to the host error logs you might be able to spot a problem and, with sufficient access, fix it otherwise it's down to the host admin/sysop to sort it out. If you are on shared hosting you won't have such access...it would be unlikely even on dedicated hosting.

 Your content may be small but what about other users on the same hosting...the overload is from the total use on that server.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 23, 2007, 10:27:56 AM
I'm pretty sure this mod will work if PHP is installed as a CGI. I'd check as many error logs as you can, and if there's nothing there I'd guess its probably overloaded.
Title: Re: Pretty URLs 0.9.2
Post by: TrueSatan on July 23, 2007, 10:36:15 AM
I've run it in that configuration myself and it does work properly.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 23, 2007, 11:36:36 AM
Nope uninstalled and reinstalled now several times and still only getting the old urls

eg :

http://www.whitbyseaanglers.co.uk/forum/index.php?topic=1238.0
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 23, 2007, 11:38:14 AM
Did you remember to tick the enable box again? Nothing in the error log?
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 23, 2007, 11:43:06 AM
Nothing in the error log

Enable box ??? I bet that's the problem
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 23, 2007, 11:45:39 AM
Sorted now cheers guys.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 23, 2007, 08:44:44 PM
:) Good to hear
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 24, 2007, 07:56:44 PM
Hi Eldacar,

I've just tried 0.7 - I thought you'd fixed the quotes problem!? I'm still returned to the index page when I try entering a board with an apostrophe. :(
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 24, 2007, 09:36:39 PM
It's only fixed in SVN, I haven't made a new release yet.
Title: Re: Pretty URLs 0.9.2
Post by: cru on July 24, 2007, 11:59:05 PM
Did you remember to tick the enable box again? Nothing in the error log?

which box to enable? maybe that's what im missing. im just trying this version on smf1.1.3 under xampp local server
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 25, 2007, 12:23:52 AM
The one which says "Enable URL filters" in the Features and Options page.
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 25, 2007, 09:05:34 AM
It's only fixed in SVN, I haven't made a new release yet.

SVN?

Do you have and idea of when of when it's likely to be released?

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 25, 2007, 09:18:36 AM
http://prettyurls.googlecode.com/svn/trunk/Base/

When I've made enough large changes that I think justify a new release.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 25, 2007, 06:17:15 PM
:) Good to hear

Big thanks yet again. Plus I have a lot more pages in the main index now. Things are looking good.
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 25, 2007, 09:00:18 PM
http://prettyurls.googlecode.com/svn/trunk/Base/

When I've made enough large changes that I think justify a new release.

What do I need to do to add those changes myself? Which file do I need to change?

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 25, 2007, 09:12:44 PM
Uninstall the mod, and remove the database stuff too (http://code.google.com/p/prettyurls/wiki/DatabaseChanges)
Then just download all the files in http://prettyurls.googlecode.com/svn/trunk/Base/ and make your own zip file to use.
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 25, 2007, 09:16:53 PM
Thanks. :)
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on July 28, 2007, 01:52:16 AM
ok...so i finally got this working on my test site and i installed and enabled it on my production site.....everything seems to work fine except for whenever its enabled, the SMF arcade takes a dump....when you click on a game, it says "You need to enable javascript in order to play games."

as soon as i disable pretty urls, it works fine. any ideas?


i have the same problem is there any fix for this there is no errors eaither please help  as i would realy like to use this mod many thanks wdm2005
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 28, 2007, 02:00:47 AM
As I said to Goad...
Anything in the error logs? What javascript is there?
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on July 28, 2007, 02:12:48 AM
no there isnt anything in the error logs and what do you mean what javscript is there
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 28, 2007, 02:13:38 AM
What's the javascript code.
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on July 28, 2007, 02:14:11 AM
hmmmmmm sry but i dont understand how do i find that out
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 28, 2007, 02:15:01 AM
Look in the pages' source code.
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on July 28, 2007, 02:20:44 AM
im sry but i dont get it where is pages

sry for being a newb :P
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 28, 2007, 02:22:48 AM
Give me a link to the broken page please.
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on July 28, 2007, 02:24:59 AM
http://waynesworld.kicks-ass.net/forum/index.php?action=arcade;sa=play;game=2299



here is the link to the arcade where it says i need to enable javascipt but when i turn off pretty urls it works
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 28, 2007, 02:27:39 AM
Okay, yep I see the problem, and it's one I know of. I'm working on a solution now.
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on July 28, 2007, 02:29:31 AM
thanks for having a look whatb is the problem and will it be long befor the solution is out


ps just for futar referance how do ifind the source code?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 28, 2007, 02:30:50 AM
It could be while... depends how long it takes me to find a good solution.
Right click and go to "view page source" in most browsers.
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on July 28, 2007, 02:31:58 AM
yeah i just figard that out lol sry is there any chace you can pm me when its ready thanks again
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 28, 2007, 02:34:44 AM
I'll post here when I've fixed it. OR check here: http://code.google.com/p/prettyurls/issues/detail?id=15
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 28, 2007, 02:47:38 PM
Hi Eldacar,

I've been having the same problem, but curiously, only since reinstalling my forum a few days ago. I was, and still am, using 0.7. I did upgrade slightly with the Arcade, but this bug has been reported for a while now (before this latest version of the Arcade). Is it possible that the order in which the mods are applied can trigger this bug? I'm just puzzled as to why my forum now suffers from this bug, but did not before. :-\
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 28, 2007, 10:53:46 PM
I'm not sure why it might have only just started being a problem... weird. It has been reported for a while yes, but I've only just confirmed what the problem is.
Title: Re: Pretty URLs 0.9.2
Post by: PoLlama on July 29, 2007, 01:36:25 PM
Well the final strike against this mod for me, its been killing my member's sessions. They complain they are logged out constantly and it went away when I disabled this, and returned when I reinstalled.
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 29, 2007, 02:36:48 PM
Hi Eldacar,

I think my memory is playing tricks. I've been sorting out quite a few bugs with mods recenlty - I think I tried 0.7, but in the end reverted to 0.4 on my previous install of my forum. So, 0.4 works with the Arcade - I hope this helps you norrow down the problem.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 29, 2007, 04:40:26 PM
Hi again,

I have a redirect question.

I changed a forum name from

/forum/charter-boats-and-tackle-shops-etc/0/

to

/forum/charter-boats-and-tackle-shops/0/

the problem is that 1st url does not redirect to the second one. I tried a 301 redirect (as you should always do when changing urls). But for some odd reason it wont work.

but when I visit the url that should be redirected I get this :

http://www.whitbyseaanglers.co.uk/forum/charter-boats-and-tackle-shops/0/?pretty;board=charter-boats-and-tackle-shops-etc.0

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 29, 2007, 08:58:51 PM
Well the final strike against this mod for me, its been killing my member's sessions. They complain they are logged out constantly and it went away when I disabled this, and returned when I reinstalled.
I've never had this problem before. Any more information you can provide?

I think my memory is playing tricks. I've been sorting out quite a few bugs with mods recenlty - I think I tried 0.7, but in the end reverted to 0.4 on my previous install of my forum. So, 0.4 works with the Arcade - I hope this helps you norrow down the problem.
That would be right, 0.4 is the last version before I started using the filters system, so it wouldn't touch the arcade links.

glennk, how did you do the 301 redirect? The mod has a system built in already, it's just not very user accessible.
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 29, 2007, 11:38:53 PM
Hi Eldacar,

http://www.smfarcade.info/index.php/topic,3175.msg20449.html#msg20449

It at least provides a work-around for me, but just maybe it will help you with a proper solution.
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on July 29, 2007, 11:59:27 PM
i tryed that and got the samae error
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 30, 2007, 05:36:21 AM
It at least provides a work-around for me, but just maybe it will help you with a proper solution.
I'm looking for a complete solution, but unfortunately it involves very complicated regexs.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 30, 2007, 02:00:36 PM
Hi Eldacar this is my htaccess in the main directory. As you can see the last entry is the one for the board I want to redirect.

Quote
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^whitbyseaanglers\.co\.uk
RewriteRule ^(.*)$ http://www.whitbyseaanglers.co.uk/$1 [R=permanent,L]

RewriteBase /
RewriteRule (.*).htm$ /$1.php [R=301]

redirect 301 /peelers.php http://www.whitbyseaanglers.co.uk/peeler-crabs.php

redirect 301 /forum/index.php/topic,203.0.html http://www.whitbyseaanglers.co.uk/forum/index.php/topic,47.0.html

redirect 301 /holding-peeler-crabs.php http://www.whitbyseaanglers.co.uk/peeler-crabs.php

redirect 301 /peeler-crabs.php http://www.whitbyseaanglers.co.uk/keeping-peeler-crabs.php

redirect 301 /tackleshops.php http://www.whitbyseaanglers.co.uk/whitby-tackle-shops.php

redirect 301 /forum/index.php/topic,120.0.html http://www.whitbyseaanglers.co.uk/forum/charter-boats-and-tackle-shops-etc/shytorque-whitby-charter-boat-shy-torque-boat-fishing-at-whitby/0/

redirect 301 /forum/index.php/topic,157.0.html http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/cowbar-jetty/0/

redirect 301 /fishing-marks-index.php http://www.whitbyseaanglers.co.uk/north-east-fishing-marks-index.php

redirect 301 /northeastfishingnews.php http://www.whitbyseaanglers.co.uk/north-east-fishing-news.php

redirect 301 /north-east-fishing-news.php http://www.whitbyseaanglers.co.uk/north-east-fishing-news/

redirect 301 /north-east-coast-rock-fishing-cod.php http://www.whitbyseaanglers.co.uk/rock-fishing.php

redirect 301 /whitby-sea-fishing-cod.php http://www.whitbyseaanglers.co.uk/cod-fishing.php

redirect 301 /forum/charter-boats-and-tackle-shops-etc/0/ http://www.whitbyseaanglers.co.uk/forum/charter-boats-and-tackle-shops/0/
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 31, 2007, 03:03:25 AM
Can you post your 'pretty_board_lookup' and 'pretty_board_urls' database settings (from smf_settings) and I'll fix them so that you can do the redirect from with Pretty URLs.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 31, 2007, 03:11:48 AM
Okay I think I've fixed the problem with <script> tags in R50. :D
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 31, 2007, 03:36:58 AM
Hi Eldcar,

What is r50 ?

do you want me to post up the things you mention ? where do I find them please ?

Thanks - glenn
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 31, 2007, 03:57:38 AM
R50 is the latest revision in SVN: http://prettyurls.googlecode.com/svn/trunk/Base/

Using phpMyAdmin, go to the smf_settings table, and copy the content of those two rows.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 31, 2007, 04:14:16 AM
Cant find those mate. Are these the ones ?

smf_pretty_topic_urls      
   
smf_pretty_urls_cache

Thats all I can find with anything to do with the pretty urls unless Im looking in the wrong spot.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 31, 2007, 04:17:39 AM
Those are the two tables created by the mod. Go to the smf_settings table, and then look for two rows in it, they'll probably be on the last page.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 31, 2007, 04:52:46 AM
pretty_board_urls     a:26:{i:2;s:24:"north-east-coast-fishing";i:8;s:16...

pretty_board_lookup     a:26:{s:24:"north-east-coast-fishing";s:1:"2";s:16...

Its all very complicated mate. Well done for understanding that lot.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 31, 2007, 04:54:37 AM
Can you copy the whole of it?
Title: Re: Pretty URLs 0.9.2
Post by: glennk on July 31, 2007, 05:50:56 PM
Is this what your after ?

pretty_board_lookup     a:26:{s:24:"north-east-coast-fishing";s:1:"2";s:16:"members-pictures";s:1:"8";s:11:"please-read";s:2:"22";s:9:"mwws-pics";s:1:"3";s:12:"cps-pictures";s:1:"9";s:15:"mackys-pictures";s:2:"10";s:16:"lobbers-pictures";s:2:"13";s:15:"glenns-pictures";s:2:"14";s:37:"paul-kilpatricks-sea-otter-2-pictures";s:2:"15";s:16:"grovers-pictures";s:2:"16";s:16:"ringers-pictures";s:2:"17";s:18:"pictures-by-ramrod";s:2:"18";s:18:"kelpsters-pictures";s:2:"19";s:17:"bassmans-pictures";s:2:"20";s:17:"the-docs-pictures";s:2:"21";s:16:"smokeys-pictures";s:2:"23";s:23:"skippyicelands-pictures";s:2:"24";s:16:"pictures-by-robq";s:2:"25";s:22:"pictures-from-mikefish";s:2:"26";s:19:"pictures-from-bucko";s:2:"28";s:15:"rustys-pictures";s:2:"29";s:22:"site-reviews-and-links";s:1:"4";s:30:"charter-boats-and-tackle-shops";s:1:"5";s:16:"non-fishing-chat";s:1:"6";s:18:"pictures-from-baza";i:30;s:19:"pictures-from-andyp";i:31;}
pretty_board_urls    a:26:{i:2;s:24:"north-east-coast-fishing";i:8;s:16:"members-pictures";i:22;s:11:"please-read";i:3;s:9:"mwws-pics";i:9;s:12:"cps-pictures";i:10;s:15:"mackys-pictures";i:13;s:16:"lobbers-pictures";i:14;s:15:"glenns-pictures";i:15;s:37:"paul-kilpatricks-sea-otter-2-pictures";i:16;s:16:"grovers-pictures";i:17;s:16:"ringers-pictures";i:18;s:18:"pictures-by-ramrod";i:19;s:18:"kelpsters-pictures";i:20;s:17:"bassmans-pictures";i:21;s:17:"the-docs-pictures";i:23;s:16:"smokeys-pictures";i:24;s:23:"skippyicelands-pictures";i:25;s:16:"pictures-by-robq";i:26;s:22:"pictures-from-mikefish";i:28;s:19:"pictures-from-bucko";i:29;s:15:"rustys-pictures";i:4;s:22:"site-reviews-and-links";i:5;s:30:"charter-boats-and-tackle-shops";i:6;s:16:"non-fishing-chat";i:30;s:18:"pictures-from-baza";i:31;s:19:"pictures-from-andyp";}
Title: Re: Pretty URLs 0.9.2
Post by: vosje505 on July 31, 2007, 06:17:59 PM
http://waynesworld.kicks-ass.net/forum/index.php?action=arcade;sa=play;game=2299



here is the link to the arcade where it says i need to enable javascipt but when i turn off pretty urls it works

i've got the same problem :(
Title: Re: Pretty URLs 0.9.2
Post by: Col on July 31, 2007, 07:29:29 PM
Hi Vosje505,

Here's a temporary fix: http://www.smfarcade.info/index.php/topic,3175.msg20449.html#msg20449
Title: Re: Pretty URLs 0.9.2
Post by: vosje505 on July 31, 2007, 08:33:37 PM
Hi Vosje505,

Here's a temporary fix: http://www.smfarcade.info/index.php/topic,3175.msg20449.html#msg20449

thx Col :D that did the job for now  ;D
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on July 31, 2007, 10:15:21 PM
Glennk, replace pretty_board_lookup with this:
Code: [Select]
a:27:{s:24:"north-east-coast-fishing";s:1:"2";s:16:"members-pictures";s:1:"8";s:11:"please-read";s:2:"22";s:9:"mwws-pics";s:1:"3";s:12:"cps-pictures";s:1:"9";s:15:"mackys-pictures";s:2:"10";s:16:"lobbers-pictures";s:2:"13";s:15:"glenns-pictures";s:2:"14";s:37:"paul-kilpatricks-sea-otter-2-pictures";s:2:"15";s:16:"grovers-pictures";s:2:"16";s:16:"ringers-pictures";s:2:"17";s:18:"pictures-by-ramrod";s:2:"18";s:18:"kelpsters-pictures";s:2:"19";s:17:"bassmans-pictures";s:2:"20";s:17:"the-docs-pictures";s:2:"21";s:16:"smokeys-pictures";s:2:"23";s:23:"skippyicelands-pictures";s:2:"24";s:16:"pictures-by-robq";s:2:"25";s:22:"pictures-from-mikefish";s:2:"26";s:19:"pictures-from-bucko";s:2:"28";s:15:"rustys-pictures";s:2:"29";s:22:"site-reviews-and-links";s:1:"4";s:30:"charter-boats-and-tackle-shops";s:1:"5";s:16:"non-fishing-chat";s:1:"6";s:18:"pictures-from-baza";i:30;s:19:"pictures-from-andyp";i:31;s:34:"charter-boats-and-tackle-shops-etc";i:5;}
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 01, 2007, 03:12:02 AM
Hi Eldacar

I see this at the end

"charter-boats-and-tackle-shops-etc";i:5;}

As I am changing from that url to one without -etc, is this right ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 01, 2007, 06:34:54 AM
Yes, it should now recognise both, and redirect to the correct one.
Title: Re: Pretty URLs 0.9.2
Post by: PoLlama on August 01, 2007, 05:18:18 PM
Quote
I've never had this problem before. Any more information you can provide?

Ok removing your mod only fixed it for a couple people, turns out the problem is still around, so I really have no idea.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 02, 2007, 06:50:09 PM
Thanks Eldacar. Sorted I think.

Something Else I have spotted. I now get 3 listings for the same topic. The other day I got 4 google listings for this topic . Should this happen ? With three listing all sharing the same title and description its a duplicate content issue.

A SECRET LOCATION SOMEWHERE NEAR TO BRID. - 1 Aug
Welcome, Guest. Please login or register. 1 Hour, 1 Day, 1 Week, 1 Month, Forever. Login with username, password and session length ...
www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/a-secret-location-somewhere-near-to-brid/20/ - 94k - Cached - Similar pages - Note this


A SECRET LOCATION SOMEWHERE NEAR TO BRID.
Welcome, Guest. Please login or register. 1 Hour, 1 Day, 1 Week, 1 Month, Forever. Login with username, password and session length ...
www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/a-secret-location-somewhere-near-to-brid/40/ - 27k - Cached - Similar pages - Note this


Print Page - A SECRET LOCATION SOMEWHERE NEAR TO BRID.
Well the yakkers hit the sea big time today a floatilla of them out around ???????? in search of the elusive cod. I wont bore you with a report on the ...
www.whitbyseaanglers.co.uk/.../a-secret-location-somewhere-near-to-brid/0/?action=printpage - 26k - Cached - Similar pages - Note this
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 02, 2007, 08:22:46 PM
The first two are different pages of the topic, which is a good thing! The third is the print version, which you should block with robots.txt
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 03, 2007, 02:54:14 AM
Thanks Eldacar,

With two different pages of the same topic using almost identical page titles google will stick both those pages into supplemental index as it appears you need unique page titles to stay in main index (I think this will be the case although I could be wrong ???)
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 03, 2007, 09:13:02 AM
Also is it possible to rewrite this

http://www.whitbyseaanglers.co.uk/forum/

to this

http://www.whitbyseaanglers.co.uk/forum/index.php

?

And do you know what this is please it also shows up in google and looks like a 3rd version of the same page  ?

 :) :) ;)

http://www.whitbyseaanglers.co.uk/forum/index.php/topic
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 03, 2007, 09:35:12 AM
I don't think having the same titles is enough, it needs to have substantially the same content.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 06, 2007, 03:09:23 AM
Hi Eldacar,

For google one of the criteria for keeping out of supplemental results is having unique title tags (admittedly not always, but for someone without enough pr or links into a specific page, floating on the edge of supplementals then the title tag can make the difference). Maybe it would be a good idea to go the same way as seo4smf and offer such a feature for setting your own titles? It would be useful.  ;) :) :)

Also is there a way to make redirects easier for board names ? I have another slight problem as I changed another board name and it wont redirect through htaccess.

In future I will give more thought when I set up boards. I like to have a play around for seo purposes to see what keywords bring the best traffic.

This wont redirect


redirect 301 /forum/site-reviews-and-links-north-east-coast-fishing/0/
http://www.whitbyseaanglers.co.uk/forum/site-reviews-and-links/0/

Thanks - Glenn  :) :)

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 06, 2007, 04:24:32 AM
Quote
For google one of the criteria for keeping out of supplemental results is having unique title tags (admittedly not always, but for someone without enough pr or links into a specific page, floating on the edge of supplementals then the title tag can make the difference). Maybe it would be a good idea to go the same way as seo4smf and offer such a feature for setting your own titles? It would be useful.  ;) :) :)
I don't want to go the same way as SEO4SMF and fill this mod with bloat. It would be better to have another mod, but in this case I think it could just be a theme edit.

Quote
Also is there a way to make redirects easier for board names ? I have another slight problem as I changed another board name and it wont redirect through htaccess.
I do plan on doing this.. I'll see if I can get it done for the next release.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 06, 2007, 06:43:00 AM
Your a good lad Eldacar, I like people who are open to suggestion. At least you didnt tell me to bugger off. Do you think someone may write a mod for title changing ?

In the mean time could you advise on a redirect for this forum board.

redirect 301 /forum/site-reviews-and-links-north-east-coast-fishing/0/
http://www.whitbyseaanglers.co.uk/forum/site-reviews-and-links/0/

and also from

.forum/index.php to /forum

Title: Re: Pretty URLs 0.9.2
Post by: Col on August 06, 2007, 08:15:40 AM
Your a good lad Eldacar, I like people who are open to suggestion. At least you didnt tell me to bugger off. Do you think someone may write a mod for title changing ?

In the mean time could you advise on a redirect for this forum board.

redirect 301 /forum/site-reviews-and-links-north-east-coast-fishing/0/
http://www.whitbyseaanglers.co.uk/forum/site-reviews-and-links/0/

and also from

.forum/index.php to /forum

How do you do this? Do you use the following?

http://www.simplemachines.org/community/index.php?topic=165358.0

Are you aware of any negative effects?

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 06, 2007, 09:58:01 AM
glennk, if you can post up those database settings again I'll fix them for you. As for index.php I think that can be changed just by editing Querystring.php like in Col's link.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 06, 2007, 12:05:42 PM
Hi Cheers,

That redirect thing with the query string doesnt work for me (Typical isnt it) Ive posted into the topic to try find out why.

Ive been having my forum reviewed on an seo forum and the guys flagged a couple of issues

Quote
* You have a canonical issue with your website and have multiple versions of your forums like

http://www.whitbyseaanglers.co.uk/forum/index.php
http://www.whitbyseaanglers.co.uk/forum/

and the non-www version of your site http://whitbyseaanglers.co.uk/forum/ gets redirected to one having a long trail of PHP Session ID

http://www.whitbyseaanglers.co.uk/forum/index.php?PHPSESSID=8a6b3b8dc0a1bf49ae2d59b414440a80;www

I don't know where that is coming from. Though it is now appearing every time the page redirects - sometimes it shows up.

Get this thing resolved through a 301 permanent redirection.


* I found that the internal pages are also having a trail of this long session IDs such as

http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/0/?PHPSESSID=1c6efc0858a655f97e74f5685d876a80

http://www.whitbyseaanglers.co.uk/forum/site-reviews-and-links/0/?PHPSESSID=1c6efc0858a655f97e74f5685d876a80

http://www.whitbyseaanglers.co.uk/forum/charter-boats-and-tackle-shops/0/?PHPSESSID=1c6efc0858a655f97e74f5685d876a80

It's really weird that they don't appear on a constant basis, sometimes they do - sometimes they don't

Do you know if any of these are linked to the pretty urls mod ?

Thanks again - Glenn

p.s will post the datbase thingys in a bit  :)
Title: Re: Pretty URLs 0.9.2
Post by: Minare on August 06, 2007, 01:01:36 PM
Hello

Great mod

But I got this error while installing as package :

querystring.php (unsuccesfull)

the others were succesfull, any ideas, why ?  :'(
Title: Re: Pretty URLs 0.9.2
Post by: Col on August 06, 2007, 08:15:50 PM
Your a good lad Eldacar, I like people who are open to suggestion. At least you didnt tell me to bugger off. Do you think someone may write a mod for title changing ?

In the mean time could you advise on a redirect for this forum board.

redirect 301 /forum/site-reviews-and-links-north-east-coast-fishing/0/
http://www.whitbyseaanglers.co.uk/forum/site-reviews-and-links/0/

and also from

.forum/index.php to /forum

How do you do this? Do you use the following?

http://www.simplemachines.org/community/index.php?topic=165358.0

Are you aware of any negative effects?

Thanks.

The code at the linked page above to change the forum URL from /forum/index.php to /forum/ has a very unfortunate side-effect. Whenever someone first visits your forum the CSS files are not processed by your browser - the forum looks terrible and very unwelcoming. Upon all subsequent viewings the forum is rendered with the CSS. This effect happens with all browsers. I cannot recommend this code change as people will often look once only and move on, never reloading the page or delving deeper into the forum. I knew of this problem before, but never realised until I just tried adding this code again, what was the cause. I reinstalled my forum from scratch because of this issue, I considered it so serious. It's a shame that I didn't think to restore that one line of code before the reinstall! :( Anyway, I feel the code needs some kind of fix before use.

http://www.simplemachines.org/community/index.php?topic=179131.0
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 06, 2007, 08:41:41 PM
glennk, the session ids shouldn't show to spiders, so it should be okay.

Minare, do you have other mods installed that edited QueryString.php?
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 07, 2007, 01:05:21 AM
The guys at the seo forum say the session id's need to go.

How about the redirects Eldacar ? Is something in the forum htaccess stopping them ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 07, 2007, 02:28:19 AM
The guys at the seo forum are wrong. :P
I don't know what the problem with the redirects is sorry.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 07, 2007, 03:00:59 AM
I ran the urls through a redirect checker and the session ids are visible to a search engine.

The redirect thing is driving me bonkers now.

Gonna have to join a coding forum for the 301 probs I reckon.

Thanks again.

Back before to long to bug you no doubt  ;) :)
Title: Re: Pretty URLs 0.9.2
Post by: Minare on August 07, 2007, 05:03:25 AM
glennk, the session ids shouldn't show to spiders, so it should be okay.

Minare, do you have other mods installed that edited QueryString.php?

These are the mods I had installed :

1. RSS Feed Icon 1.1 
2. Profile Comments 1.2.1
3. SSI Topic and Replies 0.1 
4. SMF Staff Page 1.5.1 
5. User Email System
6. Tagging System 1.0.4
7. RSS Feed Poster 1.0.4 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 07, 2007, 05:07:04 AM
You'll have to check if any of them edit QueryString.php.
Title: Re: Pretty URLs 0.9.2
Post by: Minare on August 07, 2007, 06:34:57 AM
You'll have to check if any of them edit QueryString.php.

So can I edit this file manually ? If yes, how ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 07, 2007, 10:16:05 AM
You can, but if the mods are conflicting it might not be a good idea.
http://docs.simplemachines.org/index.php?topic=402
Title: Re: Pretty URLs 0.9.2
Post by: Minare on August 07, 2007, 11:17:10 AM
You can, but if the mods are conflicting it might not be a good idea.
http://docs.simplemachines.org/index.php?topic=402

Thank you, I will try after backing up my files ;)
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 07, 2007, 11:50:35 AM
Hi Back again,

Sussed the index to /forum redirect but I am still getting a problem with the non www. the www 301 Im after creating

When I try to redirect all non www to www's I get urls like :

http://www.whitbyseaanglers.co.uk/forum/?pretty%253bboard=north-east-coast-fishing%253btopic=flambro-today.0

this was created when trying to redirect this

http://whitbyseaanglers.co.uk/forum/north-east-coast-fishing/flambro-today/0/

to this

http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/flambro-today/0/

using this code in the forum htaccess :

RewriteCond %{HTTP_HOST} !^www\.whitbyseaanglers\.co.uk
RewriteRule (.*) http://www.whitbyseaanglers.co.uk/forum/$1 [R=301,L]

Is the pretty urls hta causing this one ?

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 07, 2007, 09:11:33 PM
It's probably best to do that sort of redirection through cpanel or something rather than .htaccess. Personally I wouldn't bother though, search engines are smart enough to realise that they're the same page.
Title: Re: Pretty URLs 0.9.2
Post by: saosangmo on August 21, 2007, 11:48:27 AM
hi eldʌkaː,
I'm using the lastest version of Pretty URL but my users can't access my forum via their mobiles.

http://huongtinhyeu.net/hty/index.php?wap2 >> work well
but http://huongtinhyeu.net/hty/lam-quen-t-gii-thiu/0/;wap2 doesn't work

plz help me, thanks
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 21, 2007, 11:59:37 AM
http://huongtinhyeu.net/hty/lam-quen-t-gii-thiu/0/?wap2 will though. Does it link to ;wap2 anywhere?
Title: Re: Pretty URLs 0.9.2
Post by: saosangmo on August 21, 2007, 12:38:53 PM
Yes, URL always ends with "/;wap2" when I click on one of my boxes
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 21, 2007, 12:45:45 PM
Okay, yep I can see thats a serious problem. I'll have a look into it.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 24, 2007, 04:40:59 PM
Hi Eldacka,

How do I go about finding a board number for a new board I put on the forum.

I am using the cbi mod which adds pictures at the sides of each board on the board index page. But this mod to work relies on me knowing the board numbers to be able to upload a file with the picture in.

How can I find the number of my new board ?
Title: Re: Pretty URLs 0.9.2
Post by: Col on August 24, 2007, 06:35:25 PM
Hi Glennk,

What I do is go into the admin area, select Boards, and click Modify for the board I'm interested. The URL will contain the ID for that board. ;)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 24, 2007, 11:10:43 PM
Yep the board ID will be at the end of the modify link.
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 25, 2007, 03:46:41 AM
Thanks guys.

Another small problem today.

When adding a child board the forum screwed up (not sure why) and I managed to loose the parent board of all the child boards. I managed to salvage the parent board into slavged topics board. SO I renamed the salvaged topics board and put it back where it was.

Now all the child boards display but the parent board says its redirecting in a way that wont resolve and I notice it hasnt taken on the pretty url but is instead displaying the board nume number

http://www.whitbyseaanglers.co.uk/forum/36/0/


Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 25, 2007, 07:34:34 AM
Hmm, anything in the error log?
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 25, 2007, 04:16:46 PM
Hi,

Thanks for the reply. I solved it by making a new board and moving all the child boards into there. The urls of the child boards remain the same anyway so no worries. All is fine now.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 26, 2007, 01:58:16 AM
I'm using the lastest version of Pretty URL but my users can't access my forum via their mobiles.

http://huongtinhyeu.net/hty/index.php?wap2 >> work well
but http://huongtinhyeu.net/hty/lam-quen-t-gii-thiu/0/;wap2 doesn't work

plz help me, thanks
I can't actually reproduce this on my forums. Do you have any other mods?

Good to hear it glenn :)
Title: Re: Pretty URLs 0.9.2
Post by: saosangmo on August 26, 2007, 02:08:55 AM
There are many mods on my forum, sry

1.     vMoveTopic Notify by PM      0.90       [ List Files ]  [ Delete ]
2.    SMF Shoutbox    1.16    [ List Files ] [ Delete ]
3.    Enhanced Quick Reply Box 2.0    2.0    [ Uninstall ] [ List Files ] [ Delete ]
4.    New Topic Button    1.0    [ List Files ] [ Delete ]
5.    Tagging System    1.0.1    [ List Files ] [ Delete ]
6.    Reason For Editing Mod    1.14    [ Uninstall ] [ List Files ] [ Delete ]
7.    Bookmarks    1.0    [ List Files ] [ Delete ]
8.    FontandSizeDropdown1.1    1.1    [ Uninstall ] [ List Files ] [ Delete ]
9.    View Single Post    1.1    [ Uninstall ] [ List Files ] [ Delete ]
10.    Recent posts user preference    2.1    [ List Files ] [ Delete ]
11.    Users Online Today Mod    1.4.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    Referrals Mod    1.3    [ Uninstall ] [ List Files ] [ Delete ]
13.    New RSS Button Per Board    1.0    [ Uninstall ] [ List Files ] [ Delete ]
14.    Admin Notepad    1.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    Member Color Link    2.0.0    [ List Files ] [ Delete ]
16.    Signature Settings Mod    1.0    [ Uninstall ] [ List Files ] [ Delete ]
17.    Googlebot & Spiders Mod    2.0.2    [ Uninstall ] [ List Files ] [ Delete ]
18.    SMFShop    2.3    [ Uninstall ] [ List Files ] [ Delete ]
19.    Single Category    1.4    [ Uninstall ] [ List Files ] [ Delete ]
20.    Image Align Tag    0.2    [ List Files ] [ Delete ]
21.    Custom Edit Times    1.0    [ Uninstall ] [ List Files ] [ Delete ]
22.    SMF Ajax Registration Feedback    1.0.0    [ Uninstall ] [ List Files ] [ Delete ]
23.    Trim Url    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
24.    Simple ImageShack    2.0.3    [ List Files ] [ Delete ]
25.    SSI Latest Members    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
26.    Pretty URLs - Base    0.7    [ Uninstall ] [ List Files ] [ Delete ]
27.    BBCode Bar For Signature    1.2    [ Uninstall ] [ List Files ] [ Delete ]
28.    PM On Registration    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
29.    Karma Description Mod    2.3    [ Uninstall ] [ List Files ] [ Delete ]
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 26, 2007, 02:37:02 AM
I can't see anything there that would cause problems. I can only suggest to reinstall the mod. If you are still having problems after I release 0.8, I'll have another look at it.

Actually, can you temporarily switch off the mod (through the setting in Features and Options) and copy some of the URLs used by wap?
I just had a thought though, do you actually want the pretty URLs when using WAP? They'll probably be longer - slower and more costly to download and use on a phone. Should I disable them for the wireless modes?
Title: Re: Pretty URLs 0.9.2
Post by: saosangmo on August 26, 2007, 06:17:50 AM
thank eldʌkaː,
I have uninstalled Pretty_URL mod, I think it may cause some errors in search function with non-latin characters.
I'm testing for this error.
Title: Re: Pretty URLs 0.9.2
Post by: Col on August 26, 2007, 04:54:13 PM
saosangmo,

<off topic>
  I really like your forum template. Did you design it yourself?
</off topic>
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 30, 2007, 10:14:09 PM
Does anyone get traffic from Google Mobile Search? I think that just removing the pretty URLs in wireless mode would be best.

Also, is anyone interested in helping develop and program stuff for this mod?
Title: Re: Pretty URLs 0.9.2
Post by: Kevin Paquet on August 31, 2007, 12:24:27 PM
I have just nstalled this mode. it seems to work fine.. but, something is kind annoying
mysite.com/category/topic/o/
does that in bold has to be?
Title: Re: Pretty URLs 0.9.2
Post by: glennk on August 31, 2007, 04:46:06 PM
Would help out any way I could Eldacar but I know naff all about programming. I have come back to ask you to reconsider something. I am getting more and more listings in google for the 2nd and 3rd pages of a topic. Unfortunately by this point the people in my forum are invariably off topic and the reader doesnt get what the topic was about, doesnt realise they landed on page 3 and probably bounces straight back off the site. Wouldnt it not be best for all pages to redirect into page 1 so a visitor who is new to the forum can read the topics first post and see if it is of interest to them. They are far more likely to stay and read more if they read the first post rather than the 31st, I find no value in listing seperate topic pages.  :) :)

eg :

http://www.google.co.uk/search?hl=en&safe=off&q=bempton+bird+ash+fishing&btnG=Search&meta=

I have number 1 spot but its page 3 of the topic and the bounce rate will be around 100 percent.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on August 31, 2007, 04:57:34 PM
If I install this mod, will it have the same links as SEO4SMF? I ask because my site links to a lot of stuff on the forums so if I cannot replicate the exact link then I won't be able to use this mod...
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 31, 2007, 09:06:06 PM
I have just nstalled this mode. it seems to work fine.. but, something is kind annoying
mysite.com/category/topic/o/
does that in bold has to be?
That's the page number, and it's needed (just like in normal URLs).

Would help out any way I could Eldacar but I know naff all about programming. I have come back to ask you to reconsider something. I am getting more and more listings in google for the 2nd and 3rd pages of a topic. Unfortunately by this point the people in my forum are invariably off topic and the reader doesnt get what the topic was about, doesnt realise they landed on page 3 and probably bounces straight back off the site. Wouldnt it not be best for all pages to redirect into page 1 so a visitor who is new to the forum can read the topics first post and see if it is of interest to them. They are far more likely to stay and read more if they read the first post rather than the 31st, I find no value in listing seperate topic pages.  :) :)

eg :

http://www.google.co.uk/search?hl=en&safe=off&q=bempton+bird+ash+fishing&btnG=Search&meta=

I have number 1 spot but its page 3 of the topic and the bounce rate will be around 100 percent.
I don't think that's really possible... except perhaps to block the second pages with robots.txt somehow. I don't know how.

If I install this mod, will it have the same links as SEO4SMF? I ask because my site links to a lot of stuff on the forums so if I cannot replicate the exact link then I won't be able to use this mod...
No it uses different URLs.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on August 31, 2007, 10:37:06 PM
Okay, this is an experimental package that will hopefully 301 redirect SEO4SMF topic and board URLs to the ones used in this mod. I can't really test it, but as it's very simple code, I'm pretty sure it will work fine. After you've installed Pretty URLs, upload and install this package too.
Title: Re: Pretty URLs 0.9.2
Post by: Kevin Paquet on September 01, 2007, 01:20:32 AM
Oh, ok, thanks :D
Anyway, I'm having a problem, I had a forum category named
<font color="red">Announcements</font> and then with the mod installed, I clicked on it, it brought me to an error page x_X
I edited the category to simply, announcements, but still error
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 01, 2007, 01:23:59 AM
Got a link please?
Title: Re: Pretty URLs 0.9.2
Post by: Kevin Paquet on September 01, 2007, 04:23:52 AM
http://pinoyteens.net click on the announcements so you'll see.. error page
Title: Re: Pretty URLs 0.9.2
Post by: Col on September 01, 2007, 08:23:37 AM
Eldecar,

I think Pasaway is using HTML in the board title to change the text colour to red. The HTML is being passed into the URL - not a failed attempt at using HTML to colour the word 'Announcement' in Pasaway's post here! I can't be certain because the board is now working and the colour is standard.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 01, 2007, 08:41:16 AM
I can't tell everything when it's switched off! :)
Title: Re: Pretty URLs 0.9.2
Post by: Kevin Paquet on September 02, 2007, 04:32:09 AM
Eldecar,

I think Pasaway is using HTML in the board title to change the text colour to red. The HTML is being passed into the URL - not a failed attempt at using HTML to colour the word 'Announcement' in Pasaway's post here! I can't be certain because the board is now working and the colour is standard.

Sorry, I have had the mod uninstall now, since my new members were not able to enter the Introduction forum since  I have had named it
Code: [Select]
<font color="orange">Introduction</font> before I installed the mod
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 02, 2007, 05:10:27 AM
What you can do is remove the <font> tag (which is just terrible HTML btw!), delete the database settings (http://code.google.com/p/prettyurls/wiki/DatabaseChanges), reinstall the mod, and then add it back again.
Title: Re: Pretty URLs 0.9.2
Post by: Kevin Paquet on September 02, 2007, 05:13:35 AM
smf_pretty_urls_cache
smf_pretty_topic_urls

that?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 02, 2007, 05:14:37 AM
No, pretty_board_lookup and pretty_board_urls from smf_settings.
Title: Re: Pretty URLs 0.9.2
Post by: Kevin Paquet on September 02, 2007, 05:26:18 AM
IDK how to do that :(
How about dropping the said above?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 02, 2007, 05:42:38 AM
You can try uploading this file in the same location as SSI.php and running it. Remember to delete it afterwards!
http://prettyurls.googlecode.com/svn/trunk/uninstall.php
Title: Re: Pretty URLs 0.9.2
Post by: Kevin Paquet on September 02, 2007, 05:55:02 AM
Uhm, and where is SSI.php located? :(
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 02, 2007, 05:55:53 AM
Usually wherever your forum's index.php is...
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 02, 2007, 11:22:04 AM
I encountered several issues while trying to get pretty urls installed.

First, after reading this whole thread, I decided the best way is to get the SVN version. Which I did, put all the files in Base/ directory in a zip, and uploaded as package.
Tests went fine, and when I hit the "Install" button, it sits a while (let's say 30 seconds) then it complains about "Hacking Attempt...".

After investigating the files in the package, I saw that .php files were copied into the Souces directory so I decided to copy install.php into the main folder (/community/) alongside with SSI.php and accessed it by URL.

And then something strange happens, and still is:

Load average started to increase slowly, from something 0.02 to now:

load average: 54.27, 43.52, 27.76

and continues to rise.

As I'm writting this, it got to 56.82 (watching it using top - have an SSH account too).

However, I'm not able to kill the process (it's been running for 35 mins now), nor do I see any data being populated in the two additional tables.

One thing: I have mkportal installed - and some redirects I did by hand previously in my .htaccess file (for example removing links with PHPSESSION).

Ok, load is now 72.59, 56.82, 36.63

Time to call the sysadmin :)
Title: Re: Pretty URLs 0.9.2
Post by: Kevin Paquet on September 02, 2007, 11:53:18 AM
its working fine now.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 02, 2007, 07:50:03 PM
Quote
First, after reading this whole thread, I decided the best way is to get the SVN version.
It's not... various things in SVN are at different stages of development, so unless you absolutely need bug fixes, I wouldn't recommend using SVN.

How big is your forum?
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 03, 2007, 12:35:00 AM
Well, yes, you are right about SVN. I was eager to have the bug with the board names containing ' chars fixed :)
I don't even know if the way I tried the manual installation was the correct one.

Forum is ~50.000 posts in ~ 4100 threads.

The machine required a reboot after reaching load of 250. The system is a dedicated one (only a couple of domains hosted) and it usually hovers around 100 processes, most idle. During the 'rush' it went to 400 processes, and before it reached too much load I started to get "Too many connections" when trying to connect to MySQL.

The story continues :D system was rebooted, but somehow the install.php (the one next to SSI.php) got started again via a redirect or something, and the same 'rush' started all over again.
I figured out that if a lot of httpd processes are started, there's a chance that the install.php might call itself or something, so I tried

rm ~/htdocs/community/install.php
rm ~/htdocs/community/Sources/Pretty*.php

In a couple of minutes everything went back to normal.

I have to go now, but I'll enter later and explain how I tried to install the plugin manually (do not know if I did it correctly, that is).
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 03, 2007, 01:47:27 AM
Ok, I tried installing the 0.7 version, here's what I get:

Code: [Select]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'o-noua-provocare"), (3180, "traieste-clipa"), (3181, "sexul-a-fi-sau-a-nu-fi!"),' at line 3
File: [...]/htdocs/community/Sources/Subs-PrettyUrls.php
Line: 233

About the manual installation, here are the steps I did:

a) tried installing the base from SVN - complained about hacking alert.
b) checked if the new tables are in the database - they were but no data was present. Sources/ folder seemed to contain the .php files in the package.
c) checked the install.php file, it had a header saying that the recommended way was the "Package manager", etc, decided to give it a shot by accessing the URL. (I don't have Error log active)
d) Put install.php alongside with SSI.php and give it a go.

I did not apply any changes in the .xml files, just copied install.php in the forum's baseurl and started it O:) I know it's a stupid way to do - but I was extreeeemely tired and somehow thought that the install.php is smart enough to also apply the .xml file or something.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 03, 2007, 04:21:27 AM
Quote
Forum is ~50.000 posts in ~ 4100 threads.
Okay.. that should be alright. Just checking it wasn't some 2 million post thing. I wouldn't have though 4k would be a problem, but maybe it does need something to split the queries up.

Quote
The story continues :D system was rebooted, but somehow the install.php (the one next to SSI.php) got started again via a redirect or something, and the same 'rush' started all over again.
I figured out that if a lot of httpd processes are started, there's a chance that the install.php might call itself or something, so I tried
Hmmm, I don't see how it could restart itself. It just runs straight through once.

Code: [Select]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'o-noua-provocare"), (3180, "traieste-clipa"), (3181, "sexul-a-fi-sau-a-nu-fi!"),' at line 3
File: [...]/htdocs/community/Sources/Subs-PrettyUrls.php
Line: 233
Is there anyway you can get the whole query? Check the forum's error log, it hopefully will be there.

Quote
I did not apply any changes in the .xml files, just copied install.php in the forum's baseurl and started it O:) I know it's a stupid way to do - but I was extreeeemely tired and somehow thought that the install.php is smart enough to also apply the .xml file or something.
It doesn't, but seeing as install.php is the last thing to be done, it's possible the xml file changes were finished already.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 03, 2007, 05:33:14 AM
Hmmm, I don't see how it could restart itself. It just runs straight through once.

Or it might be some Apache configuration error - don't know, I did not configure that Apache.
As soon as I removed install.php , threads started to die (I assume each process actually tried to convert the topic names and then started another copy of itself). Then Mysql started to give out errors ("Too many connections") then the threads spawned lot quicker till the system was too loaded.

After removing install.php - it calmed down, so while I can't for sure know what the problem is, removing install.php while it happened cleaned the issue.
I will try to figure out what happened and let you know.
Title: Re: Pretty URLs 0.9.2
Post by: Minare on September 03, 2007, 06:44:58 AM
querystring.php gave error again , I changed the querystring.php with a new one. And it is ok now. But does anything happen to my forum because of that change ?  :D
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 03, 2007, 06:52:38 AM
Which error?
You replace QueryString.php with a non-edited one? Well then the mod won't do anything.
Title: Re: Pretty URLs 0.9.2
Post by: Minare on September 03, 2007, 07:32:51 AM
There is no error elhamdulillah*  (thanks to god) . I just wondered if there will be because of that change.But it is ok  ;)



I just want to ask sth.

For example this is my category name : "İsimler"

But it shows like this : "simler"

That letter doesn't show : "İ"

This is because , it only supports english alphabet. What should I additionally do in order to show these as well:  Ş - Ç  - İ - Ü - Ö

Thanks, great mod
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 03, 2007, 07:41:09 AM
Are you using UTF-8? I'm pretty sure I have all of those letters in the conversion table.
Title: Re: Pretty URLs 0.9.2
Post by: Minare on September 03, 2007, 07:51:28 AM
No I am not using UTF-8


This is my category name :  Düşünce İklimi

I am expecting this to be seen as : http://minare.net/forum/dusunce-iklimi/0/

But this is how it shows : http://minare.net/forum/dnce-klimi/0/

I dunno why this happens and how to solve   :-\
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 03, 2007, 08:01:00 AM
To do the conversion it really needs to be in UTF-8. I do have it set to convert character encodings if possible, but it doesn't work very reliably.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 03, 2007, 05:17:54 PM
Code: [Select]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'o-noua-provocare"), (3180, "traieste-clipa"), (3181, "sexul-a-fi-sau-a-nu-fi!"),' at line 3
File: [...]/htdocs/community/Sources/Subs-PrettyUrls.php
Line: 233
Is there anyway you can get the whole query? Check the forum's error log, it hopefully will be there.

The whole query has 138Kb :D plain text. Nothing in Error Log, had to patch up a bit Subs-PrettyUrls.php with a

Code: [Select]
                fwrite($Handle, "
                        REPLACE INTO {$db_prefix}pretty_topic_urls
                                (ID_TOPIC, pretty_url)
                        VALUES " . implode(', ', $tablePretty));
                fclose($Handle);

Please excuse the uppercase H  O:) did it with copy paste from a tutorial on how to write a file from PHP and wad too lazy to fix.


Here's more text from around what mysql thinks is an error:

Code: [Select]
3, "omul-este-condamnat-la-libertate-!!"), (3174, "jocul-de-a-relatia!"), (3175, "din-ciclul-\'oameni-in-strofe-cu-sperante-ca-rime\'"), (3177, "\'moderatoarea-si-purceii\'-sau-\'ospat-pe-cinste-(a)-celei-ce-pofteste-la-el-!\"), (3179, "o-noua-provocare"), (3180, "traieste-clipa"), (3181, "sexul-a-fi-sau-a-nu-fi!"),
Now, as the error the forum throws is not helpfull, I loaded up a local database, created a dummy table with ID_TOPIC and pretty_url, and gave it 140Kb of a single command to chew on.

It came up with a more helpful:

Code: [Select]
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unclosed quote @ 73312
STR: '
SQL:

By looking around position 73312 (which turned out to be more like 72706), I spotted the problem:

Code: [Select]
(3177, "\'moderatoarea-si-purceii\'-sau-\'ospat-pe-cinste-(a)-celei-ce-pofteste-la-el-!\"),

It seems that instead of escaping a ', the code escaped the " character.

Searched up the forum (me did not remember the topic  O:)) turned out the title is:

Code: [Select]
"Moderatoarea si purceii" sau "Ospat pe cinste (a) ...celei ce pofteste la el !"
Hope this helps.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 03, 2007, 08:57:22 PM
Code: [Select]
"\'moderatoarea-si-purceii\'-sau-\'ospat-pe-cinste-(a)-celei-ce-pofteste-la-el-!\"Is indeed the problem... The problem is that it's being cut off at 80 characters (the maximum for pretty topics). I'll see if I can put together a patched version of 0.7 with the quotes fix.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 04, 2007, 05:09:21 PM
Phew.................................

After 2 debugging sessions (last night and this one which is about to end) I made my forum work with pretty url 0.7 (a bit patched).

What I found out and fixed:

a)

"Hacking attempt..." message comes from Subs.php method db_query. SMF checks that a user tries to overload the server with queries, and will refuse to do them.
Fix is to add the "disableQueryCheck" in {dbprefix}settings, with the value 1 - before running pretty url.

I discovered this while doing a lot of trial and error, and ending up commenting the db_query in Subs-PrettyUrls.php. Instead of "Hacking attempt...", I got a nice message that the package was installed successfully.

So then I realised that db_query is causing the issue, probably because the query is too big (mine, as I said, had 140Kb of text).
I then patched the code to something like:

Code: [Select]
// Update the database
if (count($tablePretty) > 0)
{
  $chunks = array_chunk($tablePretty, 1);
  $n = count($chunks);
  fwrite($fh, "There are " . $n . " chunks.\n");
  for($i = 0; $i < $n; $i ++)
  {
    fwrite($fh, "Running cycle " . $i . "\n");
    fwrite($fh, "
  REPLACE INTO {$db_prefix}pretty_topic_urls
(ID_TOPIC, pretty_url)
  VALUES " . implode(', ', $chunks[$i]));
  fflush($fh);
    db_query("
  REPLACE INTO {$db_prefix}pretty_topic_urls
(ID_TOPIC, pretty_url)
  VALUES " . implode(', ', $chunks[$i]), __FILE__, __LINE__);
 
  fwrite($fh, "Cycle ran.\n");
  fflush($fh);
}
  }

After rerunning the package installation, discovered that only ~30 queries are successfully ran (with chunk of size 1) and one query is actually ran with chunks of size 100.
I looked then where db_query is defined -> bingo. Time checks.

They can be disabled, like I said, by creating (my forum didn't have it) the setting disableQueryCheck to 1, using a command like:

Code: [Select]
INSERT INTO `[YOURPREFIX]_settings` (`variable`, `value`) VALUES ('disableQueryCheck', '1');
b)

A sollution to the trimming down to 80, I'm trying it now.
The current one is using '_' instead of " \\' " for ' and " chars, it works.
But a better one - I think - is to let those pesky chars unnoticed and then use mysql_real_escape_string before adding the pretty_text in the $tablePretty.

Will post back soon :)
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 04, 2007, 05:41:31 PM
Ok, sollution with mysql_real_escape_string works for me, I suggest it.

For example, here's how that title looks now:

Code: [Select]
http://www.lovetime.ro/community/b33/moderatoarea-si-purceii-sau-ospat-pe-cinste-(a)-celei-ce-pofteste-la-el-!/msg21601/#msg21601
There were 2 changes in the Subs-PrettyUrls.php file:

a)

Removing the line:

Code: [Select]
"\\'" => array ("'", '"', 'ﺀ', 'ع'),
(I know about the " and ' chars, did not care about the other two)

b)

Instead of:

Code: [Select]
// Update the arrays
$tablePretty[] = '(' . $row['ID_TOPIC'] . ', "' . $pretty_text . '")';

I put:

Code: [Select]
      $pretty_text = mysql_real_escape_string($pretty_text);
  // Update the arrays
$tablePretty[] = '(' . $row['ID_TOPIC'] . ', "' . $pretty_text . '")';


One more thing about the huge load:

I think it is the fact that install.php will not remove the .htaccess file it creates and if it encounters an error (such as the "Hacking attempt..." - caused by a die() after a huge query). This way, instead of redirecting back to the homepage of the forum to announce the error, it will redirect to install.php again (and another huge query); the cycle starts, and the sollution is to remove the .htaccess file in the forum folder.


But I love the package (loved it since the beginning, my first post on topic is on page 4).

:)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 05, 2007, 02:16:01 AM
Quote
The current one is using '_' instead of " \\' " for ' and " chars, it works.
But a better one - I think - is to let those pesky chars unnoticed and then use mysql_real_escape_string before adding the pretty_text in the $tablePretty.
What I'm using in the development version of 0.8 is an unused control character. It's not printable, so I doubt it will actually ever be used in a piece of text.

Quote
I think it is the fact that install.php will not remove the .htaccess file it creates and if it encounters an error (such as the "Hacking attempt..." - caused by a die() after a huge query). This way, instead of redirecting back to the homepage of the forum to announce the error, it will redirect to install.php again (and another huge query); the cycle starts, and the sollution is to remove the .htaccess file in the forum folder.
If there's a huge error... it should just die. I'm not sure what would make it redirect. And also, the .htaccess file shouldn't redirect any .php files, it only touches files/directories without an extension.
Title: Re: Pretty URLs 0.9.2
Post by: Minare on September 07, 2007, 04:19:19 AM
Hello again.

Now there is another problem for me.

If url inludes " ' ", it doesn't show the topic and page gives error, doesn't open.

For example ( fake url ) : www.myforum.com/Infor'mative/0/

Or if this character is on the message, again it gives error , and page doesn't open.

Example (fake) : www.myforum.com/Informative/web'logy/0/

How can I overcome this ?

Thanks
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 07, 2007, 05:18:04 AM
The quotes problem should be fixed in the next version. I can try fixing it now for you if you can post up the pretty_board_lookup and pretty_board_urls database settings (from smf_settings).
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 07, 2007, 05:52:15 AM
Ok, so for a confirmation: in the next version you're working on, the ' and " characters will disappear from the URL, right ?
[So I would know and fix the DB myself, so when I can update with no changes, when I'll have pretty url 0.8 upgraded.

And a second thing:

Just noticed that a URL looks like:

Code: [Select]
http://www.lovetime.ro/community/b14/schimbari-pe-lovetime-(explicatii-pentru-downtime-ul-din-sept-2007)/0/
I guess board names did not generate correctly ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 07, 2007, 09:01:31 AM
No they'll still be allowed, but they'll be escaped properly so they all work.

Quote
http://www.lovetime.ro/community/b14/schimbari-pe-lovetime-(explicatii-pentru-downtime-ul-din-sept-2007)/0/
Hmm... would it be using non-roman characters? It does have a proper url (if it was only /14/ it wouldn't), but it doesn't look like it found any valid characters.
Title: Re: Pretty URLs 0.9.2
Post by: mladja04 on September 07, 2007, 09:26:57 AM
I install this mod, but it dont appear in my site (still old url rewrite are in site)!

Site is www.velikibrat.us/forum

Why this happen?
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 07, 2007, 09:40:41 AM
mladja04, you should go to your Admin backend, hit "Features and Options" and then you'll see a checkmark on where to enable filters.

It's not enough just to install the mod, you need to activate it too.

Second, you might not see "Enable filters" (it happened to me too) - but if you scroll down in that page you'll notice that there are 1 text edit box (with your forum url in it) and below another checkmark which is not checked.

Plugin did not update my english-utf8 language I guess, so I did not see it at first. But it's there after "Max height of posted pictures (0 = disable)".
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 07, 2007, 09:57:53 AM
Hmm wait... you're using english-utf8? Are you specifically using the english-utf8 files, or just UTF8 with english? I don't think I have the proper utf8 english files as I don't think they were needed.
Title: Re: Pretty URLs 0.9.2
Post by: mladja04 on September 07, 2007, 10:21:34 AM
I dont see that option in Settiong page.
But I go to my database and manually change "pretty_enable_filters" to "1" but and after that I dont see that anything change in my site! :(
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 07, 2007, 10:37:55 AM
Were there any errors when you installed it?
Title: Re: Pretty URLs 0.9.2
Post by: mladja04 on September 07, 2007, 02:02:35 PM
No, site work with old apache url rewrite. I try to disable url rewrite in admin area, but than ugli link are visible, no preety links!

http://www.velikibrat.us/forum/ is my site
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 07, 2007, 03:01:04 PM
Hmm wait... you're using english-utf8? Are you specifically using the english-utf8 files, or just UTF8 with english? I don't think I have the proper utf8 english files as I don't think they were needed.

Yup.. I got a bunch of files from simple machine site a while ago when I decided to switch to UTF-8. There were two bundles claiming they are english utf8 - and I picked the one that seemed most likely to be what I was after.
 I ended up with:

Admin.english-utf8.php
Errors.english-utf8.php
....

I have the non UTF-8 too (such as Admin.english.php).

Then I my Settings.php I put:

$language = 'english-utf8';

And it worked.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 07, 2007, 03:25:11 PM
When I try to install this I get a 500 Internal Server Error. All files installed fine on the test page. The Pretty URLS footer is there but the options to change the filters is not!
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 07, 2007, 03:32:46 PM
I got an Internal Server Error (when installing Pretty URL) a while ago, due to the fact that Apache did not have mod_rewrite active and so, it did not know how to interpret the newly created .htaccess file.

Dunno if it helps, but wanted to point it out for reference.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 07, 2007, 03:35:34 PM
Sorry no idea what that means ^^

Going in manually..........
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 07, 2007, 03:50:07 PM
Alright I installed all files but it hasn't made a difference...

Does this mod need a htaccess? Because it hasn't been added after running the install.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 07, 2007, 03:52:09 PM
Got this from the SEO4SMF redirect script:

Fatal error: Call to undefined function: upretty_update_filters() in /home/tscar/public_html/board/Packages/temp/install.php on line 47

And got this from the standard install script:

Parse error: syntax error, unexpected T_STRING in /home/tscar/public_html/board/install.php on line 26
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 07, 2007, 03:55:23 PM
Well, it should generate the .htaccess file itself - as it has to redirect from the old style URLs to the new ones.

I have one it generated in the /community/ folder:

Code: [Select]
#       Pretty URLs mod
#       http://code.google.com/p/prettyurls/
#       .htaccess file generated automatically on: September 5, 2007, 0:24

.....
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 07, 2007, 03:58:39 PM
Any chance you can post your htaccess full code here please? Unless you have your own changes to it, that is.

However seeing as the install didn't work I don't think it will make a difference, because nothing in install.php has actually been installed :(
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 07, 2007, 04:04:45 PM
Sure:

Code: [Select]
#       Pretty URLs mod
#       http://code.google.com/p/prettyurls/
#       .htaccess file generated automatically on: September 5, 2007, 0:24

RewriteEngine on

#       Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2
[L,QSA]

#       Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pret
ty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|n
ew)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

I got errors too when installing the mod - what helped was actually turning on the Forum Error Log (I turned it off myself cos nothing really happens there) but it did catch some errors.
But Forum Error Log is not too helpful.

Better is if you have access to the Apache's error-log file. I got to it via SSH but I kinda remember that CPanel was also able to show Apache's error log.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 07, 2007, 05:01:07 PM
I tried the htaccess but its giving me internal server errors... hmmmm
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 07, 2007, 05:04:24 PM
Please try an .htaccess file with only one line:

Code: [Select]
RewriteEngine on
If you still get errors, then you should check httpd.conf (Apache's config file) that the line:

Code: [Select]
LoadModule rewrite_module modules/mod_rewrite.so
doesn't have a # in front. The line should be uncommented.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 07, 2007, 05:19:50 PM
eldʌka, can you please add the two chars below to the list that gets converted to 't' (so they'll be there in the next version)?

The chars are: ţ and Ţ

Thanks!
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 07, 2007, 06:36:32 PM
Please try an .htaccess file with only one line:

Code: [Select]
RewriteEngine on
If you still get errors, then you should check httpd.conf (Apache's config file) that the line:

Code: [Select]
LoadModule rewrite_module modules/mod_rewrite.so
doesn't have a # in front. The line should be uncommented.

Well I know rewrite works because I used it for SEO4SMF.

But I tried anyway, and yes it works.

Is the mod supposed to remove the Search Engine Friendly links option in features? Maybe I changed the wrong code manually because it's not there.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 07, 2007, 06:41:05 PM
BTW when I have Enable URL Filtering my forum stops loading whenever I try to go into a forum. Do I need this ticked to use Pretty URLS?
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 07, 2007, 06:46:20 PM
Yeah, you need to have the filters enabled..
About the 500 errors though, I am out of ideas :(
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 07, 2007, 06:49:30 PM
Really no idea how the site won't even load (get a not responding message when the feature is enabled) when the box is ticked.

Guess I gotta wait for Eld to get back,
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 07, 2007, 09:21:11 PM
Quote
No, site work with old apache url rewrite. I try to disable url rewrite in admin area, but than ugli link are visible, no preety links!

http://www.velikibrat.us/forum/ is my site
If it installed properly it should be impossible to have the old apache rewrites because that code was completely removed.

Quote
Yup.. I got a bunch of files from simple machine site a while ago when I decided to switch to UTF-8. There were two bundles claiming they are english utf8 - and I picked the one that seemed most likely to be what I was after.
I'll add UTF-8 to the install file.

Quote
eldʌka, can you please add the two chars below to the list that gets converted to 't' (so they'll be there in the next version)?

The chars are: ţ and Ţ
Sure!

Quote
Is the mod supposed to remove the Search Engine Friendly links option in features? Maybe I changed the wrong code manually because it's not there.
It is supposed to remove that option. If it's still there then it hasn't been installed properly.

Quote
BTW when I have Enable URL Filtering my forum stops loading whenever I try to go into a forum. Do I need this ticked to use Pretty URLS?
Did you check the Apache log?
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 08, 2007, 01:53:24 AM
A while ago I wrote my own Google Sitemap Generator (but was too lazy to polish it enough to share).
Anyway, can you please tell me if it's better if I regenerate the sitemap.xml on my domain using the new pretty urls, or should I let them be the standard smf style (as they are).

BTW, I also fixed my board names which were like b14, b16 etc.
What happened was that I always truncated the two tables pretty url creates when reinstalling the module, but did not touch the other two arrays (settings related to board names) in the {prefix}settings table.
So they never got computed again after being incorrectly computed (due to my mistakes) the first time. My mistake was that when saving Subs-PrettyUrls.php and index.php (to do the debugging) I did not save them with UTF-8. I realized the mistake back then and switched to proper encoding, but ignored the settings.

I'm telling this maybe you can put it in the documentation or something... :) so others won't make the same mistakes.

Thanks!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 08, 2007, 01:57:37 AM
It would be best to use the same style of URLs for everything, for consistency alone. Do you use SSI.php? If so it wouldn't be hard to make sure they all have pretty URLs.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 08, 2007, 02:10:32 AM
Well... as long as pretty url handles all the cases and I get to see the correct page, I don't care about inconsistencies  O:)
I do care however about Google. Won't it 'protest' when I switch all the links from sitemap.xml and maybe it will decide to erase them from the database [and I would have to wait for all the site to be reindexed again?] I am clueless on how Google proceeds :)

I mean, is it better to let the sitemap be as is, and for Google to slowly update it's URLS (due to redirects) and then only after a while to switch the links ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 08, 2007, 02:21:11 AM
The old URLs will be 301 redirected so Google shouldn't protest much at all.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 08, 2007, 02:23:06 AM
Purrfect! Thanks for confirmation :)

Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 08, 2007, 05:57:55 AM
Quote
No, site work with old apache url rewrite. I try to disable url rewrite in admin area, but than ugli link are visible, no preety links!

http://www.velikibrat.us/forum/ is my site
If it installed properly it should be impossible to have the old apache rewrites because that code was completely removed.

Quote
Yup.. I got a bunch of files from simple machine site a while ago when I decided to switch to UTF-8. There were two bundles claiming they are english utf8 - and I picked the one that seemed most likely to be what I was after.
I'll add UTF-8 to the install file.

Quote
eldʌka, can you please add the two chars below to the list that gets converted to 't' (so they'll be there in the next version)?

The chars are: ţ and Ţ
Sure!

Quote
Is the mod supposed to remove the Search Engine Friendly links option in features? Maybe I changed the wrong code manually because it's not there.
It is supposed to remove that option. If it's still there then it hasn't been installed properly.

Quote
BTW when I have Enable URL Filtering my forum stops loading whenever I try to go into a forum. Do I need this ticked to use Pretty URLS?
Did you check the Apache log?

What is the apache log? I'm on shared hosting using Cpanel so I'm not sure if I can get that.

Any idea why the installer doesn't work? I think that's the problem with the mod not working because none of the settings were added because it never actually started.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 08, 2007, 08:50:36 AM
The error log will probably explain why the installer didn't work. You can get to it through Cpanel, though I can't remember exactly how. I think it's on the front page of Cpanel though.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 08, 2007, 03:10:15 PM
I get nothing in my apache error log from the running of the file.

Just this message:
Parse error: syntax error, unexpected T_STRING in /home/cccc/public_html/board/ins.php on line 26
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 08, 2007, 03:14:33 PM
But this was in error log:

Premature end of script headers: /home/tscar/public_html/board/ins.php
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 08, 2007, 03:17:08 PM
Installer works, I got the version 0.7.

When you try to install the mod via package manager, do all files pass the test successfully ?
Please take some time and explain what exactly were the steps that you did to install.

How do you invoke install.php ? Install.php has to be in the forum's directory (alongside SSI.php - and it will exit if ran from other address - for example directly from the Packages/temp) directory. I remember sawing that in a previous post from you. Just copy it alongside SSI.php and access it from there.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 08, 2007, 03:20:50 PM
Sorry but not once did I say I ran install.php anywhere else than from the forum directory. As I said there was an error in the QueryString.php test so I did that change manually then continued with the install. I can see all the options in admin panel and the Pretty URLs footer is there.

The htaccess was not created because obviously I could not run the installer (which the error can be found above) and the only thing stopping me from using this mod at this point must be the installer.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 08, 2007, 03:30:23 PM
Got this from the SEO4SMF redirect script:

Fatal error: Call to undefined function: upretty_update_filters() in /home/tscar/public_html/board/Packages/temp/install.php on line 47

And got this from the standard install script:

Parse error: syntax error, unexpected T_STRING in /home/tscar/public_html/board/install.php on line 26

Well :) ?

I checked the file, install.php seem to choke in db_query(" (as the line continues on the next line).
It happened to me when I saved the file using ISO-8859-2 encoding instead of UTF-8.
Did you try to manipulate that file somehow ? I mean edit it on your system and uploading it after edit ?
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 08, 2007, 03:41:32 PM
No that was being installed through the package manager, not directly accessed. Anyway, I just tried it direct, here is the error:

Fatal error: Call to undefined function: upretty_update_filters() in /home/tscar/public_html/board/install.php on line 47

That still doesn't answer my problem about the Pretty URLs installer though. I'd rather get Pretty URLs installed first and then sort out the url fixer.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 08, 2007, 03:48:57 PM
It's strage..
The text "upretty_update_filters" does not appear in the 0.7 version of "pretty url". Just grepped all the files from the package.

Ahhhhh... Just grepped the files I got from SVN and bingo. You are working with the SVN version :)
That's not stable. Please try and install version 0.7: http://custom.simplemachines.org/mods/index.php?mod=636
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 08, 2007, 03:59:31 PM
Nope I still used 0.7.

Downloaded again and tried to be sure, and got the same problem: Internal Server Error when trying to install the package.

Then the footer is there, but not the admin options. Gotta be the install.php surely
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 08, 2007, 04:43:03 PM
Well, then we gotta wait for eldʌkaː then..  because it's strange.

I just checked the 0.7 base version from the mod site, and I don't see any "upretty_update_filters" function call inside it.
But you say you do use 0.7 and that the method call is there and it's causing the issues. I can't understand...   :-\
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 08, 2007, 11:21:48 PM
Try downloading the files again, it looks like your install.php is corrupted. And indeed, the function is called updateFilters() in 0.7.

Ohhh wait, no you're using the SEO4SMF one aren't you. Yeah I'll have to change that. Get the mod working before doing that though!
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 06:59:36 AM
Yeah that's the problem - I can't.

I can get it installed alright, I can do that myself.

Problem is with the installer and creating the tables etc.

Is there any way I can add the database changes myself? I don't know how to do it so would you be able to tell me please? And are there any other changes in the installer I need to make?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 09, 2007, 07:33:11 AM
You can't get it installed yourself right if install.php won't run...

What happens if you run this file: http://prettyurls.googlecode.com/svn/tags/0.7/Base/install.php
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 07:50:27 AM
I already said what happens, I get an internal server error.

From the code it just looks like database changes, so why can't I do it manually through phpmyadmin?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 09, 2007, 08:13:15 AM
Does the error log say what caused the internal server error? It should.
And you can't just make the changes manually, because it needs to run big complicated functions.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 08:37:54 AM
As I've said I have posted all the errors at least once in this thread, but one more time:

[Sun Sep  9 07:37:42 2007] [error] [client 84.69.1.169] Premature end of script headers: /home/tscar/public_html/board/install.php
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 09, 2007, 08:59:19 AM
Are you sure you uploaded it correctly? There's shouldn't be anything in the file that would make it fail like that.
Is PHP running as CGI on your server? Reading up on the error a bit more it's possible due to a memory limit, your forum is larger than any others I know who have installed this mod.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 09:24:35 AM
Yes it is, so if this is the problem how can I get around it?

I have the SEF Override mod installed which helped me install SEO4SMF, but it doesn't seem to help with this.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 09, 2007, 09:27:37 AM
That mod wouldn't help at all.

Is it possible to install a new testing version of SMF on your server somewhere, to try installing the mod on? If it works fine, and memory is the issue on your proper forum, I'll work on something to split the query up into smaller ones.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 09:43:16 AM
Yeah you got it, works fine on clean install.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 09, 2007, 09:50:56 AM
Okay, try uploading this to your sources directory, and running install.php again. If it works, run it again, 75 times :P
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 09:52:20 AM
Maaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaan can't you make it so I have to run it 10 or 20 times ::| :| :|
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 09, 2007, 09:55:14 AM
Well... open up the file, and change LIMIT 1000 to something higher if you like. I really just guessed what a safe number would be...
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 09:57:04 AM
In the original install was it basically no limit?

I set it to 10,000.... here we go
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 09, 2007, 09:58:29 AM
Actually wait, that file won't work properly. Grr.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 09, 2007, 10:00:44 AM
Yeah in the original there was no limit.
This is something completely new to me... I'm not sure how to make it get spaced out so that the server won't overload.

Try this one, I already changed it to 10000.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 10:02:51 AM
So I ran the file and it immediatly gave me a blank page....
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 10:03:13 AM
The second subs you posted, is the change only 10,000? If so I did it myself.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 09, 2007, 10:05:11 AM
The second file gave you a blank page? If so, there should be something in the error log (hopefully a lot more descriptive than the internal server error!)
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 10:06:18 AM
Alright thanks for the help its done!

No the first file did, but it did the changes anyway
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 10:07:37 AM
Problem: I still get

Fatal error: Call to undefined function: upretty_update_filters() in /home/tscar/public_html/board/Packages/temp/install.php on line 47

for the SEO4SMF converter!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 09, 2007, 10:12:45 AM
Okay :)
If you only ran it once however, only 10000 of the topics will have pretty URLs. Hopefully running it again will get the rest of the topics, and not just the same 10000.

I need to come up with a proper solution though... after my exam ;)


Ahh yep, Here's the fixed seo4smf patch.
Title: Re: Pretty URLs 0.9.2
Post by: cassie on September 09, 2007, 10:24:54 AM
Just wanted to comment that I installed this last week with zero problems and it's running great.

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 09, 2007, 10:28:24 AM
:) It's comments like those that make it worth going to the effort of fixing it for those who it doesn't work easily for. That's really why I made this mod, none of the others were up to a high enough standard. Like for example, on most servers there's no need for the users to manually screw around with .htaccess files, so why make them do so? Automate it :)
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 11:07:21 AM
Okay :)
If you only ran it once however, only 10000 of the topics will have pretty URLs. Hopefully running it again will get the rest of the topics, and not just the same 10000.

I need to come up with a proper solution though... after my exam ;)


Ahh yep, Here's the fixed seo4smf patch.


Yeah I know lol. Only had to run it 20 times
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 11:12:53 AM
Something's just seriously messed my forum up.

In installed the seo4smf script everything went fine.

I downloaded the profile pretty urls from the google page and installed, it said installed fine and now I get a blank page no matter where I try to go on my forum, so it is now unuseable.

And I'm not getting any errors in the error log.

Don't know if this helps or not:

I'm using SSI on my website and now because of the forum I'm getting this on my main website:

"Fatal error: ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot use output buffering in output buffering display handlers in /home/tscar/public_html/board/Sources/Subs.php on line 2791"

EDIT: Okay I can use the admin. Removed package for now.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 09, 2007, 11:48:59 AM
Quote
In installed the seo4smf script everything went fine.

I downloaded the profile pretty urls from the google page and installed, it said installed fine and now I get a blank page no matter where I try to go on my forum, so it is now unuseable.

And I'm not getting any errors in the error log.
Well I just looked at your forum, and the board and topic URLs seem to be working! They're really the most important URLs, especially as you don't allow guests to see profiles, it doesn't matter much for them! :P
We will be able to get the other ones working, but personally I don't think there's a huge rush anymore. It's really late, so I'm going to bed. I'll help you get the rest working tomorrow if I can.

Quote
I'm using SSI on my website and now because of the forum I'm getting this on my main website:

"Fatal error: ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot use output buffering in output buffering display handlers in /home/tscar/public_html/board/Sources/Subs.php on line 2791"
Is this only when you had the profiles package installed?
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 09, 2007, 02:15:36 PM
Yes it is. I would love for the profiles to work though because otherwise the forum links just appear like random otherwise.
Title: Re: Pretty URLs 0.9.2
Post by: cassie on September 09, 2007, 06:43:58 PM
Yikes!

I changed the name of one of my boards and now when I go to access it, it gives me a 404 Not Found error.

I've tried to rename it back to what it was but I can't remember the exact punctuation and capitalization.

Can you help me?

Other than this goof up, which I caused, I love this Mod!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 09, 2007, 08:07:36 PM
I remember now that there was a bug in the profiles package. LGS, if you make this fix does it work?
Code: (find) [Select]
   WHERE ID_MEMBER IN (" . implode(', ', $querty_data) . ")", __FILE__, __LINE__);
Code: (replace) [Select]
   WHERE ID_MEMBER IN (" . implode(', ', $query_data) . ")", __FILE__, __LINE__);
Cassie, did you just change the board name, or also the database setting?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 10, 2007, 01:53:52 AM
LGS, if you need more help, check to see if I'm on MSN, I think I added you before.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 10, 2007, 03:54:48 AM
I proudly announce that the new style "pretty url" links are now on Google index - yupeeeeeee

Thank you eldʌkaː :) this is excelent.

/viulian is engulfed in a warm fuzzy feeling..

PS: Do you have any ideea how I can get rid of PHPSESSION id ?

Code: [Select]
www.lovetime.ro/community/b38/fantana-(sinucidere)/msg13149/?PHPSESSID=nfcrfq19njtmq2hr6i7iu86kp6

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 10, 2007, 04:12:10 AM
It's not shown to search engines, and it won't be shown to users either unless they don't have cookies.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 10, 2007, 08:27:18 AM
I see.....
However, that's the way it is indexed in google -> if you search for "fantana sinucidere" (without the "") you'll see what I mean (there should be a link from lovetime.ro there, the first one).
Title: Re: Pretty URLs 0.9.2
Post by: cassie on September 10, 2007, 09:34:24 AM
eldʌkaː... 

I just changed the name of the board through the Admin panel.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 10, 2007, 01:04:53 PM
I remember now that there was a bug in the profiles package. LGS, if you make this fix does it work?
Code: (find) [Select]
   WHERE ID_MEMBER IN (" . implode(', ', $querty_data) . ")", __FILE__, __LINE__);
Code: (replace) [Select]
   WHERE ID_MEMBER IN (" . implode(', ', $query_data) . ")", __FILE__, __LINE__);
Cassie, did you just change the board name, or also the database setting?

Where do I make these changes? Can't find that code in any of the files in the package.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 10, 2007, 08:46:42 PM
I see.....
However, that's the way it is indexed in google -> if you search for "fantana sinucidere" (without the "") you'll see what I mean (there should be a link from lovetime.ro there, the first one).
Hmm, you're right. That's a bug with SMF then, not with this mod.

I just changed the name of the board through the Admin panel.
Hmmm, I'm not sure how that could be a bug :S What's the link it tries to use?

LGS, it should be in Changes.xml of the profiles package.

Does anyone actually use the package server this mod adds?
Title: Re: Pretty URLs 0.9.2
Post by: cassie on September 11, 2007, 09:37:03 AM
It's trying to use the link of the board name, but then goes to 404 error.

Could it be something to do with the apostrophe in the board name?

It's like this: /bb/name-of-board-this-is-the-subtitle-don%5C't-tell-you/0

I didn't give the exact name of course but the end is the same. So the link is

http://website.com/bb/name-of-board-this-is-the-subtitle-don%5C't-tell-you/0/

I edited the board name to remove the subtitle of the board and then tried to access it to move some topics around and that's when I noticed the error. I tried to go back in and rename it back to what it was, but it still doesn't work. I can't remember exactly the capitalization on the subtitle part and I figured that had to be exactly as it was before to work. Haven't had any luck.

I could go into the database I suppose and move those posts somewhere else, create a new board and delete this old one. I just need to know how to do that--can't access the posts on this board. Would need instructions on how to do the database manipulation I need to do.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 11, 2007, 10:08:13 AM
Could you copy the contents of pretty_board_lookup and pretty_board_urls (from smf_settings) here please.
Title: Re: Pretty URLs 0.9.2
Post by: cassie on September 11, 2007, 10:26:27 AM
Contents of pretty_board_lookup:

a:70:{s:18:"general-discussion";s:1:"1";s:13:"announcements";s:2:"50";s:18:"introduce-yourself";s:1:"2";s:19:"help-with-the-forum";s:1:"3";s:27:"tell-us-about-your-business";s:1:"4";s:15:"calendar-events";s:2:"28";s:32:"mary-kay-inventory-trading-board";s:1:"6";s:30:"mary-kay-inventory-liquidators";s:2:"45";s:15:"the-classifieds";s:2:"27";s:23:"comment-on-blog-entries";s:2:"21";s:25:"all-mary-kay-all-the-time";s:2:"25";s:17:"book-sell-recruit";s:2:"11";s:46:"diq-and-directorship-what-they-don\'t-tell-you";s:1:"9";s:28:"mary-kay-facts-and-fallacies";s:1:"8";s:27:"active-mary-kay-consultants";s:2:"10";s:25:"dealing-with-the-emotions";s:1:"7";s:18:"men-affected-by-mk";s:2:"20";s:12:"amwayquixtar";s:2:"66";s:7:"arbonne";s:2:"51";s:4:"avon";s:2:"53";s:22:"buy-sell-or-trade-avon";s:2:"69";s:13:"beauticontrol";s:2:"52";s:18:"cookie-lee-jewelry";s:2:"55";s:17:"creative-memories";s:2:"57";s:35:"buy-sell-or-trade-creative-memories";s:2:"72";s:14:"discovery-toys";s:2:"56";s:19:"gold-canyon-candles";s:2:"59";s:19:"longaberger-baskets";s:2:"58";s:9:"melaleuca";s:2:"67";s:13:"pampered-chef";s:2:"63";s:31:"buy-sell-or-trade-pampered-chef";s:2:"71";s:9:"partylite";s:2:"64";s:27:"buy-sell-or-trade-partylite";s:2:"73";s:23:"southern-living-at-home";s:2:"62";s:17:"tastefully-simple";s:2:"65";s:10:"tupperware";s:2:"61";s:28:"buy-sell-or-trade-tupperware";s:2:"74";s:13:"usborne-books";s:2:"60";s:5:"xango";s:2:"68";s:34:"all-other-mlms-and-home-businesses";s:2:"14";s:28:"returning-mary-kay-inventory";s:2:"12";s:13:"money-matters";s:2:"13";s:4:"ebay";s:2:"39";s:15:"the-mom-hideout";s:2:"41";s:26:"makeup-favorites-and-finds";s:2:"15";s:12:"beauty-bliss";s:2:"48";s:15:"fashion-passion";s:2:"16";s:44:"inspiration-spirituality-humor-and-fun-stuff";s:2:"40";s:15:"gratitude-board";s:2:"34";s:21:"prayerenergy-requests";s:2:"35";s:36:"interesting-websites-and-other-finds";s:2:"22";s:39:"current-events-news-tv-movies-books-etc";s:2:"24";s:21:"hobbies-and-interests";s:2:"17";s:16:"food-and-cooking";s:2:"18";s:25:"health-diet-and-nutrition";s:2:"19";s:17:"the-polling-place";s:2:"46";s:13:"brainstormers";s:2:"33";s:30:"ptlies-material-and-discussion";s:2:"47";s:9:"admin-use";s:2:"32";s:10:"moderators";s:2:"38";s:20:"beauty-and-skin-care";i:75;s:24:"home-and-home-decorating";i:77;s:20:"food-and-cooking-b78";i:78;s:7:"jewelry";i:79;s:24:"scrapbooking-and-hobbies";i:80;s:24:"educational-and-learning";i:81;s:22:"supplements-and-health";i:82;s:16:"candles-and-such";i:83;s:18:"my-former-director";i:84;s:18:"the-suggestion-box";i:85;}

Contents of pretty_board_urls:

a:70:{i:1;s:18:"general-discussion";i:50;s:13:"announcements";i:2;s:18:"introduce-yourself";i:3;s:19:"help-with-the-forum";i:4;s:27:"tell-us-about-your-business";i:28;s:15:"calendar-events";i:6;s:32:"mary-kay-inventory-trading-board";i:45;s:30:"mary-kay-inventory-liquidators";i:27;s:15:"the-classifieds";i:21;s:23:"comment-on-blog-entries";i:25;s:25:"all-mary-kay-all-the-time";i:11;s:17:"book-sell-recruit";i:9;s:46:"diq-and-directorship-what-they-don\'t-tell-you";i:8;s:28:"mary-kay-facts-and-fallacies";i:10;s:27:"active-mary-kay-consultants";i:7;s:25:"dealing-with-the-emotions";i:20;s:18:"men-affected-by-mk";i:66;s:12:"amwayquixtar";i:51;s:7:"arbonne";i:53;s:4:"avon";i:69;s:22:"buy-sell-or-trade-avon";i:52;s:13:"beauticontrol";i:55;s:18:"cookie-lee-jewelry";i:57;s:17:"creative-memories";i:72;s:35:"buy-sell-or-trade-creative-memories";i:56;s:14:"discovery-toys";i:59;s:19:"gold-canyon-candles";i:58;s:19:"longaberger-baskets";i:67;s:9:"melaleuca";i:63;s:13:"pampered-chef";i:71;s:31:"buy-sell-or-trade-pampered-chef";i:64;s:9:"partylite";i:73;s:27:"buy-sell-or-trade-partylite";i:62;s:23:"southern-living-at-home";i:65;s:17:"tastefully-simple";i:61;s:10:"tupperware";i:74;s:28:"buy-sell-or-trade-tupperware";i:60;s:13:"usborne-books";i:68;s:5:"xango";i:14;s:34:"all-other-mlms-and-home-businesses";i:12;s:28:"returning-mary-kay-inventory";i:13;s:13:"money-matters";i:39;s:4:"ebay";i:41;s:15:"the-mom-hideout";i:15;s:26:"makeup-favorites-and-finds";i:48;s:12:"beauty-bliss";i:16;s:15:"fashion-passion";i:40;s:44:"inspiration-spirituality-humor-and-fun-stuff";i:34;s:15:"gratitude-board";i:35;s:21:"prayerenergy-requests";i:22;s:36:"interesting-websites-and-other-finds";i:24;s:39:"current-events-news-tv-movies-books-etc";i:17;s:21:"hobbies-and-interests";i:18;s:16:"food-and-cooking";i:19;s:25:"health-diet-and-nutrition";i:46;s:17:"the-polling-place";i:33;s:13:"brainstormers";i:47;s:30:"ptlies-material-and-discussion";i:32;s:9:"admin-use";i:38;s:10:"moderators";i:75;s:20:"beauty-and-skin-care";i:77;s:24:"home-and-home-decorating";i:78;s:20:"food-and-cooking-b78";i:79;s:7:"jewelry";i:80;s:24:"scrapbooking-and-hobbies";i:81;s:24:"educational-and-learning";i:82;s:22:"supplements-and-health";i:83;s:16:"candles-and-such";i:84;s:18:"my-former-director";i:85;s:18:"the-suggestion-box";}
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 11, 2007, 10:55:12 AM
Replace with these:
Code: (pretty_board_lookup) [Select]
a:70:{s:18:"general-discussion";s:1:"1";s:13:"announcements";s:2:"50";s:18:"introduce-yourself";s:1:"2";s:19:"help-with-the-forum";s:1:"3";s:27:"tell-us-about-your-business";s:1:"4";s:15:"calendar-events";s:2:"28";s:32:"mary-kay-inventory-trading-board";s:1:"6";s:30:"mary-kay-inventory-liquidators";s:2:"45";s:15:"the-classifieds";s:2:"27";s:23:"comment-on-blog-entries";s:2:"21";s:25:"all-mary-kay-all-the-time";s:2:"25";s:17:"book-sell-recruit";s:2:"11";s:44:"diq-and-directorship-what-they-dont-tell-you";s:1:"9";s:28:"mary-kay-facts-and-fallacies";s:1:"8";s:27:"active-mary-kay-consultants";s:2:"10";s:25:"dealing-with-the-emotions";s:1:"7";s:18:"men-affected-by-mk";s:2:"20";s:12:"amwayquixtar";s:2:"66";s:7:"arbonne";s:2:"51";s:4:"avon";s:2:"53";s:22:"buy-sell-or-trade-avon";s:2:"69";s:13:"beauticontrol";s:2:"52";s:18:"cookie-lee-jewelry";s:2:"55";s:17:"creative-memories";s:2:"57";s:35:"buy-sell-or-trade-creative-memories";s:2:"72";s:14:"discovery-toys";s:2:"56";s:19:"gold-canyon-candles";s:2:"59";s:19:"longaberger-baskets";s:2:"58";s:9:"melaleuca";s:2:"67";s:13:"pampered-chef";s:2:"63";s:31:"buy-sell-or-trade-pampered-chef";s:2:"71";s:9:"partylite";s:2:"64";s:27:"buy-sell-or-trade-partylite";s:2:"73";s:23:"southern-living-at-home";s:2:"62";s:17:"tastefully-simple";s:2:"65";s:10:"tupperware";s:2:"61";s:28:"buy-sell-or-trade-tupperware";s:2:"74";s:13:"usborne-books";s:2:"60";s:5:"xango";s:2:"68";s:34:"all-other-mlms-and-home-businesses";s:2:"14";s:28:"returning-mary-kay-inventory";s:2:"12";s:13:"money-matters";s:2:"13";s:4:"ebay";s:2:"39";s:15:"the-mom-hideout";s:2:"41";s:26:"makeup-favorites-and-finds";s:2:"15";s:12:"beauty-bliss";s:2:"48";s:15:"fashion-passion";s:2:"16";s:44:"inspiration-spirituality-humor-and-fun-stuff";s:2:"40";s:15:"gratitude-board";s:2:"34";s:21:"prayerenergy-requests";s:2:"35";s:36:"interesting-websites-and-other-finds";s:2:"22";s:39:"current-events-news-tv-movies-books-etc";s:2:"24";s:21:"hobbies-and-interests";s:2:"17";s:16:"food-and-cooking";s:2:"18";s:25:"health-diet-and-nutrition";s:2:"19";s:17:"the-polling-place";s:2:"46";s:13:"brainstormers";s:2:"33";s:30:"ptlies-material-and-discussion";s:2:"47";s:9:"admin-use";s:2:"32";s:10:"moderators";s:2:"38";s:20:"beauty-and-skin-care";i:75;s:24:"home-and-home-decorating";i:77;s:20:"food-and-cooking-b78";i:78;s:7:"jewelry";i:79;s:24:"scrapbooking-and-hobbies";i:80;s:24:"educational-and-learning";i:81;s:22:"supplements-and-health";i:82;s:16:"candles-and-such";i:83;s:18:"my-former-director";i:84;s:18:"the-suggestion-box";i:85;}
Code: (pretty_board_urls) [Select]
a:70:{i:1;s:18:"general-discussion";i:50;s:13:"announcements";i:2;s:18:"introduce-yourself";i:3;s:19:"help-with-the-forum";i:4;s:27:"tell-us-about-your-business";i:28;s:15:"calendar-events";i:6;s:32:"mary-kay-inventory-trading-board";i:45;s:30:"mary-kay-inventory-liquidators";i:27;s:15:"the-classifieds";i:21;s:23:"comment-on-blog-entries";i:25;s:25:"all-mary-kay-all-the-time";i:11;s:17:"book-sell-recruit";i:9;s:44:"diq-and-directorship-what-they-dont-tell-you";i:8;s:28:"mary-kay-facts-and-fallacies";i:10;s:27:"active-mary-kay-consultants";i:7;s:25:"dealing-with-the-emotions";i:20;s:18:"men-affected-by-mk";i:66;s:12:"amwayquixtar";i:51;s:7:"arbonne";i:53;s:4:"avon";i:69;s:22:"buy-sell-or-trade-avon";i:52;s:13:"beauticontrol";i:55;s:18:"cookie-lee-jewelry";i:57;s:17:"creative-memories";i:72;s:35:"buy-sell-or-trade-creative-memories";i:56;s:14:"discovery-toys";i:59;s:19:"gold-canyon-candles";i:58;s:19:"longaberger-baskets";i:67;s:9:"melaleuca";i:63;s:13:"pampered-chef";i:71;s:31:"buy-sell-or-trade-pampered-chef";i:64;s:9:"partylite";i:73;s:27:"buy-sell-or-trade-partylite";i:62;s:23:"southern-living-at-home";i:65;s:17:"tastefully-simple";i:61;s:10:"tupperware";i:74;s:28:"buy-sell-or-trade-tupperware";i:60;s:13:"usborne-books";i:68;s:5:"xango";i:14;s:34:"all-other-mlms-and-home-businesses";i:12;s:28:"returning-mary-kay-inventory";i:13;s:13:"money-matters";i:39;s:4:"ebay";i:41;s:15:"the-mom-hideout";i:15;s:26:"makeup-favorites-and-finds";i:48;s:12:"beauty-bliss";i:16;s:15:"fashion-passion";i:40;s:44:"inspiration-spirituality-humor-and-fun-stuff";i:34;s:15:"gratitude-board";i:35;s:21:"prayerenergy-requests";i:22;s:36:"interesting-websites-and-other-finds";i:24;s:39:"current-events-news-tv-movies-books-etc";i:17;s:21:"hobbies-and-interests";i:18;s:16:"food-and-cooking";i:19;s:25:"health-diet-and-nutrition";i:46;s:17:"the-polling-place";i:33;s:13:"brainstormers";i:47;s:30:"ptlies-material-and-discussion";i:32;s:9:"admin-use";i:38;s:10:"moderators";i:75;s:20:"beauty-and-skin-care";i:77;s:24:"home-and-home-decorating";i:78;s:20:"food-and-cooking-b78";i:79;s:7:"jewelry";i:80;s:24:"scrapbooking-and-hobbies";i:81;s:24:"educational-and-learning";i:82;s:22:"supplements-and-health";i:83;s:16:"candles-and-such";i:84;s:18:"my-former-director";i:85;s:18:"the-suggestion-box";}Hope that works!
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 11, 2007, 01:27:11 PM
LGS, it should be in Changes.xml of the profiles package.

Does anyone actually use the package server this mod adds?

The profiles package does not have "Changes.xml" and yes, I got it from the package server.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 11, 2007, 04:39:52 PM
I see.....
However, that's the way it is indexed in google -> if you search for "fantana sinucidere" (without the "") you'll see what I mean (there should be a link from lovetime.ro there, the first one).
Hmm, you're right. That's a bug with SMF then, not with this mod.

Do you think it can be the theme ? I am not using the default theme, switched it to a eye candier one..
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 11, 2007, 09:04:13 PM
The profiles package does not have "Changes.xml" and yes, I got it from the package server.
I just checked it then, and it does have Changes.xml.

Do you think it can be the theme ? I am not using the default theme, switched it to a eye candier one..
No, absolutely any theme can be used. This mod doesn't touch any of the code that decides whether to display the sessid or not. I suggest you make a topic in the general support board :)
Title: Re: Pretty URLs 0.9.2
Post by: Kevin Paquet on September 12, 2007, 10:17:57 AM
I've got such a strange error.
HACK ATTEMPT...
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 12, 2007, 10:28:05 AM
Please check this post: http://www.simplemachines.org/community/index.php?topic=146969.msg1229095#msg1229095 see if it helps..
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 12, 2007, 10:41:42 AM
A bit of context, like what you're doing, would help ;) But you can try vuilian's suggestions too.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 12, 2007, 12:45:49 PM
Install.php is still not working for the profile add on.

Error:
Parse error: syntax error, unexpected T_STRING in /home/tscar/public_html/board/instal.php on line 26

Yes I've got it with SSI.php.

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 12, 2007, 11:07:44 PM
Code: [Select]
'priority' => 80,That's line 26 for your install.php isn't it? It can't cause a syntax error..
Title: Re: Pretty URLs 0.9.2
Post by: cassie on September 13, 2007, 04:09:15 PM
eldʌkaː,

I replaced them with the code you gave and I'm still getting the same error.

If we can't figure out how to fix this, if someone could tell me how to go about gathering all the posts on this board, thru php my admin, and transferring them to a new board, I'll do that. I'll just create a new board and go into the database and transfer all the posts on this board I can't access to a new one.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 13, 2007, 09:11:42 PM
Okay, try deleting both rows and reinstalling the mod.
And can you please give a real link that is broken on your forum for me to see?
Title: Re: Pretty URLs 0.9.2
Post by: Flying Drupalist on September 14, 2007, 12:41:22 AM
Hi, if I install SMF4SEO will I still need to install this mod? Is there any feature missing in SMF4SEO that I will need PrettyURL for?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 14, 2007, 01:40:12 AM
They're incompatible. Choose one or the other.
Title: Re: Pretty URLs 0.9.2
Post by: Kevin Paquet on September 14, 2007, 08:31:29 AM
I've got such a strange error.
HACK ATTEMPT...

Help needed still, a detailed explanation for a noob please.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 14, 2007, 10:51:28 AM
When I try to use my TP shoutbox I get a 404 error after hitting submit, I go back and the message is there, so how can I stop it going to the 404?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 15, 2007, 03:13:44 AM
Pasaway,
A bit of context, like what you're doing, would help ;) But you can try vuilian's suggestions too.

LGS, what's the URL for the shoutbox that's broken?
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on September 15, 2007, 05:10:20 AM
Strange it works now, nevermind.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 15, 2007, 10:52:56 PM
Ok :)
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 16, 2007, 04:03:51 PM
Hi there again.

I am back with a question :)
I am using a module named "Karma Description Mod" in which, when you applaud/smite - you also have to type a reason, and everything is then display in a 'Karma stats' page.
My users are very fond of it, eagerly awaiting for anyone do something and check what, who, when why.

It seems that this module actually tries to parse informations from the submit - and it saves info such as the one below:

5748.msg51900#msg51900

This is used to display the position where the karma point was awarded or taken away.

The issue is that the submit (for karma) is interpreted, parsed, and the topic name is taken from it and put in the karma_log table.
After PrettyURL was installed, this module fails to find the topic id (needed to reconstruct the initial post where karma change happened).

Basically, it correctly takes the textual topic name, and it ends up with entries such as:

un-dulce-crin.msg47896#msg47896

The issue is that it cannot reconstruct the full URL now, as it needs the topic id instead of the prettyfied 'un-dulce-crin'. I manually put the topic id (in the karma_log) instead of un-dulce-crin, and it works - in the Karma Stats window the URL-s look pretty.
(I don't know if in fact it's the karma description mod, or karma engine of SMF).

Do you have any suggestions ? How can I, based on the prettyfied url, get to the topic ID and manually patch the karma mod to take this into account ?

Thanks
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 16, 2007, 08:32:01 PM
Grr, this is what happens when people write mods badly :P It should be using $topic and $start rather than looking at the URL. I'll have a look at that mod later when I get home tonight.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 17, 2007, 03:09:40 PM
Yep, you are right. The piece of code is in Sources/Karma.php:

Code: [Select]
if (isset ($_REQUEST['topic'])) {
                         $link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);

Any quick ideea what to use instead of $_REQUEST['topic'] - I hate debugging remotely - feels like... php again :D
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 17, 2007, 09:41:16 PM
Try replacing it with $topic (but make sure $topic is in the list of globals at the beginning of the function too).
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 18, 2007, 05:29:15 PM
Yep, thanks, it was defined and I replaced it with $topic. But not the if part:

Code: [Select]
if (isset ($_REQUEST['topic'])) {
                         $link = ($topic).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);

I saw that in fact the if actually checks if the request contains a topic, otherwise it will consider the karma point as coming from PM. So I left the check in place, and just changed the $link variable.

It's working :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 18, 2007, 09:30:56 PM
Good to hear :)
Title: Re: Pretty URLs 0.9.2
Post by: ourfavwine on September 21, 2007, 03:52:41 PM
Hi Eld^ka,

First let me express my appreciation for this great mod and all the hard work you've put in to it, not only with the original coding but also the support you've given in this thread. I had previously tried to get seo4smf working and after about a week of banging my head against the wall, finally found this mod, which seems far superior.

I have looked through this thread quite a bit and been unable to figure out what is wrong with my site and this mod. I am using the latest, 0.7 version, along with 1.1.3 smf.

When I mouse over the board topic, the link that displays is a "pretty one", but when I click, I get a 404 error. I'm not sure if I'm supposed to have a .htaccess automatically generated in the forum folder? There is not one there. Do I need to write one myself? I do have a .htaccess in a higher directory.

The forums are located at http://ourfavoritewines.com/forum

Thanks again for any help you can provide, and I apologize if I'm missing something obvious or overlooked something in the thread up to this point.
Title: Re: Pretty URLs 0.9.2
Post by: ourfavwine on September 21, 2007, 04:19:25 PM
Hmm, ok I uninstalled and reinstalled (btw, never had any error messages on install) and there is a .htaccess file automatically generated now in my forum folder.

But I'm still getting the 404 error when I click on a board...thanks
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 21, 2007, 04:34:13 PM
The answer is in Apache's logs (not Forum Error Log). Please access them and check the last lines, you'll see what the server tries to do and copy paste the lines here.

From my point of view, an 404 can mean anything :) from bugs to bad configuration, etc. Unless more details are provided... I personally can't tell what's wrong.
Title: Re: Pretty URLs 0.9.2
Post by: ourfavwine on September 21, 2007, 05:26:29 PM
Thanks for your help Viulian...I have turned on the Apache error logs (I have go daddy, they don't have an option where the logs are always on) and have let it run while I clicked on the boards. There's doesn't seem to be anything there about this issue, but it does say:

[Fri Sep 21 13:56:24 2007] [error] [client xx.xxx.xxx.xxx] File does not exist: /xxx/xxx/favicon.ico
[Fri Sep 21 13:56:24 2007] [error] [client xx.xxx.xxx.xxx] File does not exist: /xxx/xxx/missing.html
Title: Re: Pretty URLs 0.9.2
Post by: aldo on September 21, 2007, 11:23:46 PM
HOw come you cant make it so the URL doesnt have a 0 in it? Oh and Where can I get that profile mod you were talking about, and great mod :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 23, 2007, 01:52:19 AM
First let me express my appreciation for this great mod and all the hard work you've put in to it, not only with the original coding but also the support you've given in this thread. I had previously tried to get seo4smf working and after about a week of banging my head against the wall, finally found this mod, which seems far superior.
You're welcome ;)

Quote
I have looked through this thread quite a bit and been unable to figure out what is wrong with my site and this mod. I am using the latest, 0.7 version, along with 1.1.3 smf.

When I mouse over the board topic, the link that displays is a "pretty one", but when I click, I get a 404 error. I'm not sure if I'm supposed to have a .htaccess automatically generated in the forum folder? There is not one there. Do I need to write one myself? I do have a .htaccess in a higher directory.

The forums are located at http://ourfavoritewines.com/forum

Thanks again for any help you can provide, and I apologize if I'm missing something obvious or overlooked something in the thread up to this point.
As you've turned it off, I can't help much. Switch it on and I'll see how I can help.

aldo, I don't recommend removing the page number, but if you really want to, you could exit PrettyUrls-Filters.php to test whether $urls[$crc]['start'] == 0, and if so, change the output format.
And I don't know what profile mod you're referring to.
Title: Re: Pretty URLs 0.9.2
Post by: clarkkent93 on September 23, 2007, 04:18:26 PM
I'm trying to go to the forum you have listed but it keeps giving me an error saying it can't find the server.  I'd like to see what you have before installing.

Does it also show the profile package as well?
Title: Re: Pretty URLs 0.9.2
Post by: ourfavwine on September 23, 2007, 08:15:34 PM
Quote
The forums are located at http://ourfavoritewines.com/forum

Thanks again for any help you can provide, and I apologize if I'm missing something obvious or overlooked something in the thread up to this point.
As you've turned it off, I can't help much. Switch it on and I'll see how I can help.

Oops. Ok, it's back on now...I do have an auto-generated .htaccess file now. When I mouse over, the link looks good, but when I click it goes to gobbledygook (ex:http://ourfavoritewines.com/ourfavoritewines/forum/index.php/?pretty%3bboard=your-favorite-wines.0)

Any ideas?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 23, 2007, 08:25:22 PM
I'm trying to go to the forum you have listed but it keeps giving me an error saying it can't find the server.  I'd like to see what you have before installing.

Does it also show the profile package as well?
The Dev forum? Yeah the server died and I haven't put it back up again yet. I might get time to do so today.

ourfavwine, that's really weird. Can you copy up the .htaccess file here? Do you have a .htaccess file in the root domain?
Title: Re: Pretty URLs 0.9.2
Post by: ourfavwine on September 23, 2007, 09:01:57 PM
ourfavwine, that's really weird. Can you copy up the .htaccess file here? Do you have a .htaccess file in the root domain?

I do have two .htaccess files, one in the root domain and one in the /forum folder. My understanding is that the one in the /forum folder would over-ride the one at a higher level, for files within the /forum folder? The .htaccess in the /forum folder is the auto-generated one from pretty urls, and reads:

#   Pretty URLs mod
#   http://code.google.com/p/prettyurls/
#   .htaccess file generated automatically on: September 23, 2007, 17:11

RewriteEngine on

#   Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#   Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

-------------------------------------------------------------------------------

I am running Wordpress for another part of the site, and have a www to no-www redirect in the other .htaccess (in the root folder), which reads as follows:

Options +Indexes
Options +FollowSymLinks
RewriteEngine on
RewriteCond ${HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^ourfavoritewines\.com
RewriteRule (.*) http://ourfavoritewines.com/$1 [L,R=301]

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule (.*) http://ourfavoritewines.com/$1/ [L,R=301]


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

--------------------------------------------------------------------------------------

Thanks again!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 23, 2007, 09:09:46 PM
Quote
I do have two .htaccess files, one in the root domain and one in the /forum folder.
No, it runs each of them in turn, first the root, then the forum specific ones.

You'll have to add a RewriteCond to ignore anything in the /forum/ directory. I've never used RewriteCond's, so I can't help sorry.
Title: Re: Pretty URLs 0.9.2
Post by: ourfavwine on September 23, 2007, 09:13:04 PM
Quote
I do have two .htaccess files, one in the root domain and one in the /forum folder.
No, it runs each of them in turn, first the root, then the forum specific ones.

You'll have to add a RewriteCond to ignore anything in the /forum/ directory. I've never used RewriteCond's, so I can't help sorry.

Ahh, ok...well I will look in to that, and if I figure it out, I'll be sure to post it here.
Title: Re: Pretty URLs 0.9.2
Post by: Kevin Paquet on September 27, 2007, 09:00:20 AM
Quote
// Pretty URLs mod $txt['pretty_root_url'] = 'Pretty URLs root URL
(Without a final slash)
'; $txt['pretty_enable_filters'] = 'Enable URL filters
This may be a substantial performance hit
';

help me
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 27, 2007, 10:14:33 PM
I don't know what your problem is, nor why you're quoting code at me.
Title: Re: Pretty URLs 0.9.2
Post by: boylah on September 28, 2007, 02:31:22 AM
First of all I want to thank you for this helpfull mod!

I have one question
Will PrettyURLS work with SMF 1.1.4?

Thank you
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 28, 2007, 03:04:00 AM
Yep, should work fine.
Title: Re: Pretty URLs 0.9.2
Post by: Kevin Paquet on September 28, 2007, 06:11:54 AM
I don't know what your problem is, nor why you're quoting code at me.
the post I quoted is the error message I got
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 29, 2007, 12:06:02 AM
You're getting HACK ATTEMPT still? That code should be in a language file, can you post the whole file here?
Title: Re: Pretty URLs 0.9.2
Post by: Cavan on September 29, 2007, 08:32:15 AM
Here we go again...I've installed this mod successfully but there are zero changes to my URLs.

Questions:

I've read in this topic that you need to install other files (actions, profile) for this mod to work but that isn't even mentioned in the first post about this mod. How do you expect users to install this mod properly if you don't bother to explain this in the first place? Don't take that as my being rude but as a legitimate question.

Where on earth do you even enable this mod? The only thing in Features and Options is a text box for "Pretty URLs root URL" and a check box to "Enable URL filters"? Is something missing or is that it?

What's all this about an .htaccess file being generated by installing this mod? I already have an .htaccess file in my root directory but this mod has had absolutely NO effect on it.

FYI, I'm using a clean SMF 1.1.4 install because I just had to reinstall everything after the SEO4SMF mod broke navigation and sorting on my site. Looks like I'll have to uninstall this mod...and then probably have to reinstall everything all over again.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 29, 2007, 09:04:40 AM
It seems you did not read the Readme :) or whatever.
You need to activate it too.. Search this thread and you'll find out where.
Title: Re: Pretty URLs 0.9.2
Post by: Cavan on September 29, 2007, 09:08:23 AM
It seems you did not read the Readme :) or whatever.
You need to activate it too.. Search this thread and you'll find out where.

Read me? What "Read Me" file? There ISN'T one....not in the base, profile, or actions files.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on September 29, 2007, 09:13:02 AM
Read here please: http://www.simplemachines.org/community/index.php?topic=146969.msg1232172#msg1232172
Title: Re: Pretty URLs 0.9.2
Post by: Cavan on September 29, 2007, 09:18:47 AM
If I check the box to "enable filters" I get blank pages...I'm assuming you're telling me that this is where I need to enable this mod?

If this is the case, I'm uninstalling the mod.
Title: Re: Pretty URLs 0.9.2
Post by: albataur on September 29, 2007, 12:22:48 PM
Hi,
I wrote on the dev board (before server crash) about a problem with accents.
I would to say that I retry today to reinstall the mod and it seems to work fine.
So I don't know why (new version of smf ?) but it works.

Nevertheless, there is something strange ... Accented characters disapear on topics url whereas on boards name accented characters are replaced by the same character without accent. Any explanation ?

Thanks for this mod ! I hope google will love it ;)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 29, 2007, 10:48:55 PM
Quote
I've read in this topic that you need to install other files (actions, profile) for this mod to work but that isn't even mentioned in the first post about this mod. How do you expect users to install this mod properly if you don't bother to explain this in the first place? Don't take that as my being rude but as a legitimate question.
The actions and profile filters are optional. Everything that is needed is found in the single base package. It didn't used to be that way, back in the dark ages of version 0.3, but it's a lot better now ;)

Quote
Where on earth do you even enable this mod? The only thing in Features and Options is a text box for "Pretty URLs root URL" and a check box to "Enable URL filters"? Is something missing or is that it?
Nope, that's it :) Although I'm working on adding a fuller interface, it will still basically be a tickbox. I want to make it as simple as possible, so that on most servers you don't need to do anything manually outside of SMF's admin panel.

Quote
What's all this about an .htaccess file being generated by installing this mod? I already have an .htaccess file in my root directory but this mod has had absolutely NO effect on it.
Is your forum in the root directory, or a subdirectory? The mod makes one in the same location as your forum's index.php, all others will be left untouched, however they may be conflicting (as ourfavwine's are).

Quote
Read me? What "Read Me" file? There ISN'T one....not in the base, profile, or actions files.
I know... I'll get to writing them eventually, but they're not my biggest priority now. I'll get them done before I release version 1.0.

Quote
If I check the box to "enable filters" I get blank pages...I'm assuming you're telling me that this is where I need to enable this mod?

If this is the case, I'm uninstalling the mod.
Without further information I can't help, but I'm guessing your .htaccess files are conflicting.

Quote
Nevertheless, there is something strange ... Accented characters disapear on topics url whereas on boards name accented characters are replaced by the same character without accent. Any explanation ?
Hmmm, are the board and topic tables using the same encoding?
Title: Re: Pretty URLs 0.9.2
Post by: Cavan on September 30, 2007, 12:41:51 AM
eldʌka:

Yes, my SMF is in the root directory. It doesn't matter now since when uninstalling this mod I received a ton of errors (files missing, etc). I spent the better part of the evening, as I predicted I would, reinstalling SMF and uploading a gleaned back-up (minus any mod variables) of my database (it's a good thing I backup on a regular basis).

Good luck...maybe I'll give this thing a shot another day.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on September 30, 2007, 01:04:52 AM
Quote
Yes, my SMF is in the root directory.
Hmm, does PHP have write access to .htaccess then? You'll probably need to make a custom .htaccess file, but that shouldn't be too hard.

Quote
It doesn't matter now since when uninstalling this mod I received a ton of errors (files missing, etc). I spent the better part of the evening, as I predicted I would, reinstalling SMF and uploading a gleaned back-up (minus any mod variables) of my database (it's a good thing I backup on a regular basis).
Which files, which errors?
Title: Re: Pretty URLs 0.9.2
Post by: albataur on September 30, 2007, 06:40:19 AM
Quote
Hmmm, are the board and topic tables using the same encoding?
I don't know, I'm on MySQL 4.0.25 so there is no encodage type management. I will try to upgrade to MySQL 5 and I keep you in touch.
Title: Re: Pretty URLs 0.9.2
Post by: Kevin Paquet on September 30, 2007, 07:24:45 AM
You're getting HACK ATTEMPT still? That code should be in a language file, can you post the whole file here?
This is what I get
Code: [Select]
// Pretty URLs mod $txt['pretty_root_url'] = 'Pretty URLs root URL
(Without a final slash)
'; $txt['pretty_enable_filters'] = 'Enable URL filters
This may be a substantial performance hit
';
Title: Re: Pretty URLs 0.9.2
Post by: albataur on October 01, 2007, 09:29:38 AM
Tables boards and topics have the same encodage type.

I have constated a new bug. When the topic contains some " the topic is unavailable.

[Edit]
Ok I believe to know where does the problem come.
First, the problem is the same with ' and " than with accents (see my previous messages).

But I noticed :
- in the boards name wich contains " or ', it's replaced by -
- in the topics name it's not replaced

Why is there this difference between topics name and boards name ?
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 01, 2007, 12:16:26 PM
Got a problem with RSS feeds. Because of pretty URLs the link is changed to:

http://www.ruthlessintent.com/board/.xml/?type=rss

and also

http://www.ruthlessintent.com/board/.xml/

But there is nothing there.
Title: Re: Pretty URLs 0.9.2
Post by: jvan on October 01, 2007, 02:23:05 PM
Has there been a fix for the Javascript arcade error? I browsed this thread, found it mentioned and check the google url that was listed as the place where the solution would be posted, but there's nothing there.

Thanks
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 01, 2007, 10:10:23 PM
You're getting HACK ATTEMPT still? That code should be in a language file, can you post the whole file here?
This is what I get
Code: [Select]
// Pretty URLs mod $txt['pretty_root_url'] = 'Pretty URLs root URL
(Without a final slash)
'; $txt['pretty_enable_filters'] = 'Enable URL filters
This may be a substantial performance hit
';
Can you provide a link to where you get this? Is it on all pages of your forum?

Tables boards and topics have the same encodage type.

I have constated a new bug. When the topic contains some " the topic is unavailable.

[Edit]
Ok I believe to know where does the problem come.
First, the problem is the same with ' and " than with accents (see my previous messages).

But I noticed :
- in the boards name wich contains " or ', it's replaced by -
- in the topics name it's not replaced

Why is there this difference between topics name and boards name ?
Ahhh, quotes are nasty, although they'll be fixed soon. I don't know why they're different though... Are you using UTF-8?

Got a problem with RSS feeds. Because of pretty URLs the link is changed to:

http://www.ruthlessintent.com/board/.xml/?type=rss

and also

http://www.ruthlessintent.com/board/.xml/

But there is nothing there.
Ahh, I think I know the solution. Can you post your .htaccess?

Has there been a fix for the Javascript arcade error? I browsed this thread, found it mentioned and check the google url that was listed as the place where the solution would be posted, but there's nothing there.
Yes, but only in the development SVN version. I'm really busy with uni, so I'm not sure when I'll be able to complete the next version and release it to you all sorry.
Title: Re: Pretty URLs 0.9.2
Post by: jvan on October 02, 2007, 01:47:45 AM
Thanks for the reply.

Also, have there been any reports of this mod conflicting with the imageshack mod in 1.1.4? I'm asking because the imageshack mod quit functioning along with the arcade, but I didn't think it might be related until now. That mod also became functional again after disabling the pretty urls filters.  In any event, I appreciate your hard work and will stand by until you're able to work the kinks out.

I don't know how you find the time to have a life and do all of this for free but I am grateful.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 02, 2007, 02:43:44 PM
Code: [Select]
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: September 13, 2007, 7:36

RewriteEngine on

# Rules for: seo4smf
RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/;(.*) index.php?board=$2.$3;$4 [L]
RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/$ index.php?board=$2.$3 [L]
RewriteRule ^(.*)-b([0-9]*)\.([0-9])$ index.php?board=$2.$3 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*);(.*)$ index.php?topic=$2.$4;$6 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*) index.php?topic=$2.$4 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;(.*)$ index.php?topic=$2.$3;$4 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html$ index.php?topic=$2.$3 [L]

# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]

# Rules for: actions
RewriteRule ^([a-zA-Z0-9]+)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 03, 2007, 04:08:34 AM
Try replacing it with this:
Code: [Select]
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: September 13, 2007, 7:36

RewriteEngine on

# Rules for: seo4smf
RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/;(.*) index.php?board=$2.$3;$4 [L]
RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/$ index.php?board=$2.$3 [L]
RewriteRule ^(.*)-b([0-9]*)\.([0-9])$ index.php?board=$2.$3 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*);(.*)$ index.php?topic=$2.$4;$6 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*) index.php?topic=$2.$4 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;(.*)$ index.php?topic=$2.$3;$4 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html$ index.php?topic=$2.$3 [L]

# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]

# Rules for: actions
RewriteRule ^([.a-zA-Z0-9]+)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 03, 2007, 08:51:21 AM
Nope, I get internal server errors on all pages with that one.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 03, 2007, 09:09:50 AM
Hmm, well thats really strange. Okay put it back to how it was before, and try making this change to PrettyUrls-Filters.php
Code: (find) [Select]
$pattern = '~' . $scripturl . '(.*)action=([^;]+)~S';
$replacement = $boardurl . '/$2/$1';
foreach ($urls as $crc => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$crc]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
Code: (replace) [Select]
$pattern = '~' . $scripturl . '(.*)action=([^;]+)~S';
$replacement = $boardurl . '/$2/$1';
foreach ($urls as $crc => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
if ($matches[2] != '.xml')
$urls[$crc]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 03, 2007, 02:08:07 PM
I still get the 404 even with that
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 04, 2007, 12:09:38 AM
Are you sure you made the change to the right file? It should now just use the normal URLs for the feeds (with index.php).
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 04, 2007, 06:26:42 PM
Checked and double checked.

Sorry I meant I get the 404s for the RSS link, not the entire forum.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 05, 2007, 01:36:35 AM
Oh, I forgot to say... empty the pretty_urls_cache table too.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 05, 2007, 03:45:37 PM
Eldaka does it again.  Good going BIn!
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 06, 2007, 09:55:01 AM
Problem... the code change you gave me fixes RSS but now it stops my members from being able to quote. It just hangs on the ajax loading bar.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 06, 2007, 11:25:03 AM
Using something like firebug, can you get the URL that the quote button uses with AJAX?
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 06, 2007, 02:48:18 PM
http://www.ruthlessintent.com/board/feedback/quote/0/#quickreply

That's from my browser. I'll download firebug now and get the other one.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 06, 2007, 02:51:30 PM
http://www.ruthlessintent.com/board/index.php?action=quotefast;quote=146061;sesc=54e39fb9b5563a785613a3e1eaadcd74;xml

XMLDoc.getElementsByTagName("quote")[0] has no properties
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 06, 2007, 03:35:16 PM
Just had a look around, it's shut down all of my AJAX features.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 07, 2007, 09:21:34 AM
ahh, well yes thats a known bug with script tags. It's fixed in SVN, so you could try getting the files from: http://prettyurls.googlecode.com/svn/trunk/Base/ and making your own zip package for it.

Also, the dev forum is back: http://dev.eldacar.com/smf/
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 07, 2007, 03:19:38 PM
What do I do to just upgrade it from my package manager? Simply put it in a zip and nothing else?
Title: Re: Pretty URLs 0.9.2
Post by: eslao on October 07, 2007, 05:39:20 PM
hi there ara Turkish charecter problem how can i solve it

http://www.cumhuriyetcafe.org/foruma-ikayet-ve-stek-bildir/0/ this is pretty url but
it must be like this
http://www.cumhuriyetcafe.org/foruma-şikayet-ve-istek-bildir/0/
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 08, 2007, 12:13:42 AM
LGS, yep, but install the old one first. If you have topics with quotes in them they'll likely be broken by this though (as the old code for quotes is buggy). Hmm there's an idea actually... I could do the conversion when you install.

eslao, are you using UTF-8?
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 08, 2007, 06:19:06 AM
Are you sure you don't mean uninstall the Pretty URLS package I already had? Because I get this:

1.     Execute Modification     ./index.php     Test failed
2.    Execute Modification    ./SSI.php    Test successful
3.    Execute Modification    ./Sources/ManageErrors.php    Test successful
4.    Execute Modification    ./Sources/ModSettings.php    Test failed
5.    Execute Modification    ./Sources/News.php    Test successful
6.    Execute Modification    ./Sources/PackageGet.php    Test failed
7.    Execute Modification    ./Sources/QueryString.php    Test failed
8.    Execute Modification    ./Sources/Subs.php    Test failed
9.    Execute Modification    ./Sources/Display.php    Test successful
10.    Execute Modification    ./Sources/MessageIndex.php    Test successful
11.    Execute Modification    ./Sources/QueryString.php    Test failed
12.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
13.    Execute Modification    ./Sources/Subs-Post.php    Test failed
14.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
17.    Extract File    ./Sources/PrettyUrls-Filters.php    
18.    Extract File    ./Sources/Subs-PrettyUrls.php    
19.    Execute Code    install.php
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 08, 2007, 06:20:45 AM
Oops yes I meant uninstall. Damn typos!
Title: Re: Pretty URLs 0.9.2
Post by: eslao on October 08, 2007, 07:11:39 AM
LGS, yep, but install the old one first. If you have topics with quotes in them they'll likely be broken by this though (as the old code for quotes is buggy). Hmm there's an idea actually... I could do the conversion when you install.

eslao, are you using UTF-8?

no not utf-8 im using turkish language files
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 08, 2007, 07:33:56 AM
This mod works best with UTF-8. Although I do have code to try converting character encodings, it will only work on a few servers.
Title: Re: Pretty URLs 0.9.2
Post by: eslao on October 08, 2007, 09:14:26 AM
ok am watching the working progress thanks
Title: Re: Pretty URLs 0.9.2
Post by: glennk on October 08, 2007, 04:09:40 PM
Hi Eldacar,

Had something strange happen today. I viewed my site at work in my lunch break and noticed that after the urls there was a ling sessionid visible. However when I return home no such think is visible.

Do you have any idea why this would have happened ? and have you given anymore thought to getting rid of session id's as my SEO guy insists they are bad for the site in terms of seo.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 08, 2007, 05:36:42 PM
Great mod! I did write something similar on one of my boards, but it forced me to manually edit a lot of files in Sources.php and my themes. Of course, it also allows for better flexiblity in the URL format. Hard-coding the thread subject is nice because you don't have to specify the topic ID in the URL to be able to read it, but on the other hand it prevents the user from renaming that thread (or at least I suppose so).

My alternative version also doesn't use extra SQL queries either (which might be a good thing for huge boards). I'm wondering whether I should keep my system, or adopt Pretty URLs. It's always better to use a mod than re-coding everything everytime a new SMF is released! ;)

I'm a bit concerned with the CRC encoding of the URLs, though. Is it me, or does the mod call URLs by their CRC checksum? Obviously there's a chance two URLs will get the same CRC result, so one may end up with URL conflicts... I think.

Oh, yes, I also made a SMF 2.0 version of the mod. I'm currently testing it on a live install and it seems to be working... eldʌkaː, would you be interested in seeing it?

glennk > Session IDs only appear when you're a guest and no cookies. Usually, only on the first page. After following a link, the sessid should disappear.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 08, 2007, 08:43:38 PM
Had something strange happen today. I viewed my site at work in my lunch break and noticed that after the urls there was a ling sessionid visible. However when I return home no such think is visible.

Do you have any idea why this would have happened ? and have you given anymore thought to getting rid of session id's as my SEO guy insists they are bad for the site in terms of seo.
As Nao said, it's probably got something to do with cookies.

Quote
Great mod! I did write something similar on one of my boards, but it forced me to manually edit a lot of files in Sources.php and my themes. Of course, it also allows for better flexiblity in the URL format. Hard-coding the thread subject is nice because you don't have to specify the topic ID in the URL to be able to read it, but on the other hand it prevents the user from renaming that thread (or at least I suppose so).
It will be easy enough to change topic URLs once an interface is made to do so, I just haven't had the time to do so yet. Got more important changes to make first!

Quote
My alternative version also doesn't use extra SQL queries either (which might be a good thing for huge boards). I'm wondering whether I should keep my system, or adopt Pretty URLs. It's always better to use a mod than re-coding everything everytime a new SMF is released! ;)
Extra queries could definitely slow things down, which is why I've included a little hack to show the time and queries the mod adds. I think LGS's forum is the largest with this mod, and it shows: Page created in 1.032 seconds with 24 queries. (Pretty URLs adds 0.048s, 1q) I think that's pretty good! :)

Quote
I'm a bit concerned with the CRC encoding of the URLs, though. Is it me, or does the mod call URLs by their CRC checksum? Obviously there's a chance two URLs will get the same CRC result, so one may end up with URL conflicts... I think.
There is that possibility. If someone reports collisions I'll change to MD5 or another hash. So far noone's reported collisions, so might as well keep with CRCs cause they're simpler.

Quote
Oh, yes, I also made a SMF 2.0 version of the mod. I'm currently testing it on a live install and it seems to be working... eldʌkaː, would you be interested in seeing it?
I would! Sounds interesting.

If you end up deciding to switch, would you be interested in helping develop this one more?
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 09, 2007, 03:59:20 AM
As Nao said, it's probably got something to do with cookies.
Since session IDs only appear on a first page, I've found they can be removed altogether from the code. Well, it works for me anyway.

Quote
It will be easy enough to change topic URLs once an interface is made to do so, I just haven't had the time to do so yet. Got more important changes to make first!
What important changes? :)

Quote
Page created in 1.032 seconds with 24 queries. (Pretty URLs adds 0.048s, 1q) I think that's pretty good! :)
Yeah... It's very good.

Quote
There is that possibility. If someone reports collisions I'll change to MD5 or another hash. So far noone's reported collisions, so might as well keep with CRCs cause they're simpler.
I think collisions might be reported when the thread number goes over the millions... I don't mean forums with low thread numbers are safe. Just saying chances to have collisions can only go up.
Why not simply use the topic URLs themselves in the database? Because indexing based on a VARCHAR, TEXT or BLOB field is slower?

Quote
Quote
Oh, yes, I also made a SMF 2.0 version of the mod. I'm currently testing it on a live install and it seems to be working... eldʌkaː, would you be interested in seeing it?
I would! Sounds interesting.
I'm sending the link to you by PM.

I only made one change to the code -- made sure the PrettyURLs stats are shown only when $db_show_debug is set to true. (I don't think it's of any interest to non-admins ;) And my index.php code is modified to set $db_show_debug if the user is an admin.)

Quote
If you end up deciding to switch, would you be interested in helping develop this one more?
Well, re: the topic subject I reckon? I don't know, I'm no better than a rookie PHP coder. I even had a site crash when attempting to convert your mod ;) (Actually, it was because I had forgotten to convert a db_query into $smfFunc['db_query']... Boom! It screwed up the install process.)
Also, I had issues with the automatically generated .htaccess file, I don't know why. I had originally installed the board into a subdirectory. When I moved it to the root and reinstalled, it worked flawlessly. (And believe me, I have some prior knowledge of .htaccess -- you need that if you want to change your URL format!)

Anyway, I might just do that (switch to PrettyURLs) if we can add more formatting options for the URLs. What I could do is, try to gather all of the mods I made on my side (keep in mind I didn't make an actual mod--this is really a series of modifications directly on the 1.1.3 source files), and share with you anything that could be of interest to PrettyURLs.

For example, here's my URL conversion code. You'll notice it's much shorter than yours ;) My database isn't in UTF-8, though. It basically only converts French accents, well, because I'm French, and my website is French-only. Your mod converts such things as Japanese kana, but it doesn't work on French accents, strangely enough.

Code: [Select]
function clean_name($txt)
{
$txt = str_replace(array(' ','/','.',',','"','&quot;','?'),'-',strtolower($txt));
$txt= preg_replace('/&#(\d+);/me',"chr(\\1)",$txt);
$txt = strtr($txt,'çàäîïéèëêôöùûüÇÀÄÎÏÉÈËÊÔÖÙÛÜ', 'caaiieeeeoouuucaaiieeeeoouuu');
while (strpos($txt,'--') !== false) $txt = str_replace('--','-',$txt);
if (substr($txt, 0, 4) == 're:-')
$txt = substr($txt, 4);
return trim($txt,'-');
}

Here's an example URL... (Taken from a friend's blog hosted on my system.)
Topic subject: Les douze travaux de Ryô (4e épreuve: Ryo & the secret workers - 1)
Topic URL: http://ryo.cyna.fr/4921/les-douze-travaux-de-ryo-(4e-epreuve:-ryo-&-the-secret-workers-1)/
Having the & sign in the URL is no issue. The .htaccess parser has no problem with it. The only special character I think we have to take care of is "?" because it tells Apache that the rest is $_GET data so it just won't parse it.
Anyway, the subject won't be parsed by SMF, because obviously it uses directly the topic number (4921), saving a SQL query in the process, and allowing for later subject modifications. The subject is here really only for SEO purposes. And user convenience, of course.

I also added an extra field to the boards table, "shortname" (shall be renamed to "short_name" for SMF 2.0...), which holds the URL name for the boards. Allowing for a long and complicated name in the database (and MessageIndex template) without prejudice in the URL. For instance, board #18 in my website is named "Naologismes", but its "short_name" is set to "nao", hence the URL "/nao/". Actually, I changed the system so it would generate a subdomain instead, so it renders it as "http://nao.cyna.fr/". The .htaccess file then just checks for the presence of a subdomain, and if there is, it sends a flag to SMF, similar to your "pretty;" flag in your .htaccess. I'm surprised at how many things we did the same way, while we weren't aware of each other's attempts to do these modifications ;)

Although it's entirely in French, you may want to check out http://cyna.fr -- you can click pretty much anywhere and check the results. It may give you new ideas. :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 09, 2007, 06:50:53 AM
Quote
What important changes?
The big thing now I'm working on is a maintenance system for fixing up the database of pretty stuff. It's tricky because I need it to work in stages so large forums won't time out.

Quote
I think collisions might be reported when the thread number goes over the millions... I don't mean forums with low thread numbers are safe. Just saying chances to have collisions can only go up.
Why not simply use the topic URLs themselves in the database? Because indexing based on a VARCHAR, TEXT or BLOB field is slower?
I expect it would be slower, and it would make the database far larger too. I'm no MySQL expert though, so if it doesn't actually make it slower that could always be an option.

Quote
I only made one change to the code -- made sure the PrettyURLs stats are shown only when $db_show_debug is set to true. (I don't think it's of any interest to non-admins ;) And my index.php code is modified to set $db_show_debug if the user is an admin.)
Mmm, I find it useful for checking people's forums. And it provides a link back too lol. But removing it's fine, I don't want people to feel they're forced to like other mods.

Quote
Well, re: the topic subject I reckon? I don't know, I'm no better than a rookie PHP coder.
I still think of myself as a rookie too :P Writing mods is a great way to learn. Really what's most important is willingness to try. I only started this mod cause the guys in charge of SMFSEO were losers.

Quote
Anyway, I might just do that (switch to PrettyURLs) if we can add more formatting options for the URLs. What I could do is, try to gather all of the mods I made on my side (keep in mind I didn't make an actual mod--this is really a series of modifications directly on the 1.1.3 source files), and share with you anything that could be of interest to PrettyURLs.
I would like to make more options, however I still want to keep it simple and uncluttered and unbloated, unlike SEO4SMF.

Quote
For example, here's my URL conversion code. You'll notice it's much shorter than yours ;) My database isn't in UTF-8, though. It basically only converts French accents, well, because I'm French, and my website is French-only. Your mod converts such things as Japanese kana, but it doesn't work on French accents, strangely enough.
I'm pretty sure it does work on the French accents, but possibly only with UTF-8.

Quote
Having the & sign in the URL is no issue. The .htaccess parser has no problem with it. The only special character I think we have to take care of is "?" because it tells Apache that the rest is $_GET data so it just won't parse it.
Hmmm... & might be okay, but I've prefer to take no chances. Different Apache configs could possibly get it wrong.

Quote
I also added an extra field to the boards table, "shortname" (shall be renamed to "short_name" for SMF 2.0...), which holds the URL name for the boards. Allowing for a long and complicated name in the database (and MessageIndex template) without prejudice in the URL. For instance, board #18 in my website is named "Naologismes", but its "short_name" is set to "nao", hence the URL "/nao/". Actually, I changed the system so it would generate a subdomain instead, so it renders it as "http://nao.cyna.fr/". The .htaccess file then just checks for the presence of a subdomain, and if there is, it sends a flag to SMF, similar to your "pretty;" flag in your .htaccess. I'm surprised at how many things we did the same way, while we weren't aware of each other's attempts to do these modifications ;)
Subdomains is something that should be possible with mine too, however I'm not sure I'd want to add it to the default package. I think it's more suited to be an alternate filter that you could install and use instead of the default one included in Base. And I'm not sure what your flag does, but the pretty in my querystring is only to stop redirects.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 09, 2007, 08:05:16 AM
It's tricky because I need it to work in stages so large forums won't time out.
Ah, yeah... You might want to do something like SMF's installer I suppose!

Quote
I expect it would be slower, and it would make the database far larger too. I'm no MySQL expert though, so if it doesn't actually make it slower that could always be an option.
It'll probably be slower, but not by a large margin. I mean, you also benefit from not converting URLs to MD5 (very slow) or CRC (high chances of URL collisions).
Or you may just want to get rid of the CRC table and just use the topic / topic name table. Well, this is how I would do it. (Actually, I would put the cleaned-up topic name in the {$db_prefix}topics table, but it's probably a better idea to keep these in separate tables.)

Quote
Mmm, I find it useful for checking people's forums.
How about putting something like "if (!empty($_GET['check_prettyurls']))" at the beginning of that code? Then you get to see the stats on all forums, by just adding ";check_prettyurls" at the end of the URLs... Just my .2$ of course.

Quote
Writing mods is a great way to learn. Really what's most important is willingness to try. I only started this mod cause the guys in charge of SMFSEO were losers.
:P
Didn't know this one... Just checked it out, it seems to be quite similar to Pretty URLs... Why do you think they're losers?
Also, I see they only use one extra table (for topic subjects), just like I suggested.
They also deal with thread splitting and everything, to update topic names. I don't think your mod does that? (Does it? Does it need to? I don't know it well enough.)

Quote
I would like to make more options, however I still want to keep it simple and uncluttered and unbloated, unlike SEO4SMF.
Unbloated is a good idea... It always makes it easier to update the mod.
Although at some point one has to figure out what they want, of course.
Fact is, on cyna.fr I'm looking into having as much of the website as possible, behave like this new URL format is "native" and not a quick hack.

Quote
I'm pretty sure it does work on the French accents, but possibly only with UTF-8.
This is a problem -- UTF-8, as far as I know, takes twice much space in the database (which can be an issue with huge databases), doesn't add much (I can post in Japanese and French with accents on my boards, without any apparent issue), and is slower to deal with (mb_* functions are known for being slower than regular string functions).

Quote
Hmmm... & might be okay, but I've prefer to take no chances. Different Apache configs could possibly get it wrong.
Well I guess it's no big deal, I can always remove the special behavior for & manually.

Quote
Subdomains is something that should be possible with mine too, however I'm not sure I'd want to add it to the default package.
Of course not. But you could as well allow users to specify a URL format such as:

http://mywebsite.com/<board_name>/<topic_name>/

With a pool of dedicated pseudo-variables (board_name, board_short_name, board_id, topic_name, topic_id), users can change it to, for example, my way of doing this:

http://<board_short_name>.mywebsite.com/<topic_id>/<topic_name>/

Quote
I think it's more suited to be an alternate filter that you could install and use instead of the default one included in Base.
Changing URL formats will anyway always force users to update their .htaccess file manually, so it'd be safe to say this is "for power users only".

Quote
And I'm not sure what your flag does, but the pretty in my querystring is only to stop redirects.
My flag just tells LoadBoard() to take the board's short name and have a quick lookup at the corresponding board ID in order to fill the $board_info array later. (I'm not sure but IIRC I'm using an existing SQL query so there's no additional query for that.)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 09, 2007, 08:18:32 AM
Quote
Didn't know this one... Just checked it out, it seems to be quite similar to Pretty URLs... Why do you think they're losers?
The way the interacted with people using the mod. It's development stalled anyways...

Quote
Or you may just want to get rid of the CRC table and just use the topic / topic name table. Well, this is how I would do it. (Actually, I would put the cleaned-up topic name in the {$db_prefix}topics table, but it's probably a better idea to keep these in separate tables.)
If you do this you have to query the topic table every page view, and the profiles table and the whatever-else table. By using a cache table ideally only one extra query needs to be made to get all the URLs.

Quote
They also deal with thread splitting and everything, to update topic names. I don't think your mod does that? (Does it? Does it need to? I don't know it well enough.)
It doesn't yet. It's something that needs to be fixed before version 1.0, but it's not a high priority. Those are actually the sorts of things I want help with lol.

Quote
This is a problem -- UTF-8, as far as I know, takes twice much space in the database (which can be an issue with huge databases), doesn't add much (I can post in Japanese and French with accents on my boards, without any apparent issue), and is slower to deal with (mb_* functions are known for being slower than regular string functions).
It is true that for accented characters two bytes are needed, however it's a lot less than the entities needed for other scripts. The mb functions don't usually need to be used... SMF doesn't do too much string processing.

Quote
Of course not. But you could as well allow users to specify a URL format such as:

http://mywebsite.com/<board_name>/<topic_name>/

With a pool of dedicated pseudo-variables (board_name, board_short_name, board_id, topic_name, topic_id), users can change it to, for example, my way of doing this:

http://<board_short_name>.mywebsite.com/<topic_id>/<topic_name>/
Hmmm, that's an interesting idea. I'll think about that some more.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 09, 2007, 09:28:48 AM
If you do this you have to query the topic table every page view, and the profiles table and the whatever-else table. By using a cache table ideally only one extra query needs to be made to get all the URLs.
Oh, you mean I can also rewrite the profile URLs? :)
I didn't notice that. No option for that, at least ;)

Yeah, in that case... It'd be best to keep that table, I suppose.

Quote
It doesn't yet. It's something that needs to be fixed before version 1.0, but it's not a high priority. Those are actually the sorts of things I want help with lol.
Ah ah :)
Why don't you just get inspiration from the SEOSMF mod? I realize you don't like the guy, but it's open source, we might as well enjoy the benefits of sharing source code ;)
(Well, at least I don't mind sharing my own code.)

Quote
It is true that for accented characters two bytes are needed,
As far as I know, all characters (even non-accented ones) take at least two bytes (I've read somewhere that they take up to 3 bytes, oops).

Quote
however it's a lot less than the entities needed for other scripts.
I don't think so.

On a non-related note, my clean_name code has a neat thing I believe: turning &#digit; sequences into chr(digit), which will obviously reduce the number of entities that need to be converted manually. Non-occidental characters can be put into an URL without any consequence, have a look at Wikipedia for instance.
桜庭統 (http://ja.wikipedia.org/wiki/桜庭統)

Quote
Hmmm, that's an interesting idea. I'll think about that some more.
Thanks :D
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 09, 2007, 09:44:53 AM
Quote
Why don't you just get inspiration from the SEOSMF mod? I realize you don't like the guy, but it's open source, we might as well enjoy the benefits of sharing source code ;)
Not SEO4SMF, SMFSEO. It wasn't open source. I haven't seen any problems with sacx, I just think his mod is too filled with bloat :P

Quote
As far as I know, all characters (even non-accented ones) take at least two bytes (I've read somewhere that they take up to 3 bytes, oops).
ASCII characters take 1 byte. The others take a differing number of bytes depending on the 'plane' they're in, some up to 4 bytes for the asian scripts.

Quote
On a non-related note, my clean_name code has a neat thing I believe: turning &#digit; sequences into chr(digit), which will obviously reduce the number of entities that need to be converted manually. Non-occidental characters can be put into an URL without any consequence, have a look at Wikipedia for instance.
桜庭統
You mean this? http://ja.wikipedia.org/wiki/%E6%A1%9C%E5%BA%AD%E7%B5%B1 It's a bit more messy :P
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 09, 2007, 01:42:19 PM
ASCII characters take 1 byte. The others take a differing number of bytes depending on the 'plane' they're in, some up to 4 bytes for the asian scripts.
Okay... I assumed they all took 2 bytes but "UTF-8" probably means "8 bits or more". That's logical. It would be nice to be able to find benchmarks comparing ISO and UTF performances, though.

Quote
You mean this? http://ja.wikipedia.org/wiki/%E6%A1%9C%E5%BA%AD%E7%B5%B1 It's a bit more messy :P
I don't get it--how did you get this garbage?

Anyway... I took some time to rewrite your mod to use full URLs instead of CRCs. Performance-wise, I'm a bit surprised: it's the exact same thing. Your mod takes around 0.07 to 0.1s to execute on a test page of mine, and my version of the mod takes around 0.07 to 0.12s to execute, with a similar average (~0.09s). So, basically, it would probably be a good idea to get rid of the CRCs altogether and just use plain URLs. The field format I used was "VARCHAR(255)" (I don't think URLs generated by SMF would take more than 255 characters anyway), although it could probably be set to "VARBINARY(255)", which is case-sensitive (i.e. a bit faster).

What do you think?
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 09, 2007, 03:33:19 PM
PS--
1/ I noticed the Subs-PrettyURLs.php file I sent you by PM is corrupted. I edited it with an editor that doesn't support Unicode, so it destroyed the UTF-8 data. The second half of the file is fine, though... (This is where the changes are.)
2/ I don't know why, but even a clean install of the converted mod on SMF 2.0 will call your rewriting functions twice. I tried to edit the $buffer variable to add debug data but it behaves just like it's been called only once. However, the query list does show that the SELECT query on urls_cache is repeated twice. This might be a bug within SMF 2.0 instead.
Title: Re: Pretty URLs 0.9.2
Post by: metallica48423 on October 09, 2007, 03:52:59 PM
i would be interested in seeing a 2.0 version of this :o

But i won't count on it lol
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 09, 2007, 04:13:08 PM
But i won't count on it lol
Why not count on it?
You can just ask nicely :)

I sent the files to the author, he's free to release them if he likes.
I can also send them by PM.

Also, I figured out why there were extra queries in my board. It's because $db_show_debug will call ob_sessrewrite a second time, discarding the first attempt. This is apparently needed for XHTML compliance. Since I don't care about such compliance for now, I just disabled the lines and it's working.

Still, it's saying "2q" (instead of 3), which is one more than what view_query actually allows me to see (SELECT url_crc, replacement
FROM {$db_pretty}pretty_urls_cache). I have no idea where the other one is...
Oh yes, and while I'm at it, {$db_pretty} doesn't work when selecting url_crc if url_crc is a varchar field. I don't know why... Probably something to do with escape characters or something. Not a real problem, I just changed the code there (".$db_pretty.")
Title: Re: Pretty URLs 0.9.2
Post by: metallica48423 on October 09, 2007, 04:24:09 PM
if eldacar has no arguments, i wouldn't mind testing out the 2.0 version.  it won't be on a live site for quite some time, however, just in a dev/test board :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 09, 2007, 08:57:57 PM
Quote
I don't get it--how did you get this garbage?
Aside from unaccented latin characters, numerals and few punctuation characters, all other characters get URL encoded. I'm not sure how reliable this is, nor whether the search engines like it. I am planning to add an option to use URL encoding for boards and topics, but I think the default will be to remove the accents and romanise other scripts.

Quote
Anyway... I took some time to rewrite your mod to use full URLs instead of CRCs. Performance-wise, I'm a bit surprised: it's the exact same thing. Your mod takes around 0.07 to 0.1s to execute on a test page of mine, and my version of the mod takes around 0.07 to 0.12s to execute, with a similar average (~0.09s). So, basically, it would probably be a good idea to get rid of the CRCs altogether and just use plain URLs. The field format I used was "VARCHAR(255)" (I don't think URLs generated by SMF would take more than 255 characters anyway), although it could probably be set to "VARBINARY(255)", which is case-sensitive (i.e. a bit faster).
I've thought of more advantages of using the full urls. However remember it caches ALL URLs, so some URLs posted by users possibly might be longer. To make them shorter we could cut out the protocol and also the scripturl if they are SMF URLs.

Quote
2/ I don't know why, but even a clean install of the converted mod on SMF 2.0 will call your rewriting functions twice. I tried to edit the $buffer variable to add debug data but it behaves just like it's been called only once. However, the query list does show that the SELECT query on urls_cache is repeated twice. This might be a bug within SMF 2.0 instead.
Does it do the queries twice without the debug data? It does messy stuff I think.

i would be interested in seeing a 2.0 version of this :o

But i won't count on it lol
I'll get there eventually, after I've made the 1.1 version more stable. I also want to see it installed on the SMF docs :P

if eldacar has no arguments, i wouldn't mind testing out the 2.0 version.  it won't be on a live site for quite some time, however, just in a dev/test board :)
Go for it.
Title: Re: Pretty URLs 0.9.2
Post by: arabiancoder on October 09, 2007, 11:35:37 PM
It would be a nice mod if it works fine,
after [apply mod]
eventhough 17 [ Test successful ] as a result

The following msg shown

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.sorah.org%2Fid%2Fcd4a070195ec5af581cc11c11fdb11c7.png&hash=0f7c44347b4030dc06bf6bda38df2533)

when clicked Back
Now this message is in every page!
Code: [Select]
Notice: Undefined index: pretty_board_urls in /home/aswatgro/public_html/forum/index.php on line 77

Notice: unserialize() [function.unserialize]: Argument is not a string in /home/aswatgro/public_html/forum/index.php on line 77
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 10, 2007, 02:19:31 AM
Aside from unaccented latin characters, numerals and few punctuation characters, all other characters get URL encoded.
This doesn't answer my question sorry ;)
(I think I don't get the whole encoding thing at all...)

Quote
I've thought of more advantages of using the full urls.
Cool :)

Quote
However remember it caches ALL URLs, so some URLs posted by users possibly might be longer. To make them shorter we could cut out the protocol and also the scripturl if they are SMF URLs.
Yeah...
First of all, use array_unique($crc_query) instead of $crc_query. It will remove the many many links that are posted several times on a board page.
Then, you might want to check for the domain name in the URLs, and drop them if they're external.
And, yes, dropping the whole $scripturl part would make for shorter URLs. :)

I will send you my updated Sources.xml later when I'm satisfied with it.

Quote
Does it do the queries twice without the debug data?
I didn't try that.
(You may have seen I managed to fix the thing by not calling ob_sessrewrite from within the db_debug_junk function, BTW. But I have yet to find out why there are 2 queries shown in your stats, while view_query shows only one query. With the db_debug_junk, it did show the repeated query in that page!)

As for metallica, I sent him the link by PM :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 10, 2007, 04:56:11 AM
Quote
It would be a nice mod if it works fine,
after [apply mod]
eventhough 17 [ Test successful ] as a result
I'm guessing your forum has a lot of Arabic, and it's having problems with the quotes. This is a problem that I have fixed in the development SVN, so try again once I have released 0.8. Uninstalling the mod should remove the error.

Quote
(I think I don't get the whole encoding thing at all...)
Basically only a-zA-Z0-9,.;?!()* and maybe a few other characters can actually be used in URLs. Our browsers are nice and convert other characters for us, but they're not really used.

Quote
First of all, use array_unique($crc_query) instead of $crc_query. It will remove the many many links that are posted several times on a board page.
Does this provide much of a difference? I suppose it might make queries a lot smaller, and if we changed to using the full urls that would make an even larger difference.

Quote
Then, you might want to check for the domain name in the URLs, and drop them if they're external.
I think that all URLs still need to be kept in the system. One possible use for this is that external pages could be put through a 'gateway' page saying "these pages are not part of this site and we don't endorse them" type of thing. Another possibility is that email links could be obfuscated. If we limit the mod to only work on SMF URLs it becomes less useful.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 10, 2007, 05:20:40 AM
Basically only a-zA-Z0-9,.;?!()* and maybe a few other characters can actually be used in URLs. Our browsers are nice and convert other characters for us, but they're not really used.
Oh, yes of course...... IE  :'(
I had the feeling IE7 would support oriental text in the URLs. Well, turns out I was wrong...
Still, I'm entitled to believe that the Japanese versions of IE support Japanese text in the URLs. (I'd love not to be proven wrong ;))
And this is what matters most. Plus, Wikipedia is one of the most visited websites in the world. IE is poised to end up supporting non-ASCII URLs in the future if they don't want to look bad...
After all they did fix most of their CSS issues didn't they? ;)

Quote
Does this provide much of a difference? I suppose it might make queries a lot smaller, and if we changed to using the full urls that would make an even larger difference.
I'm not sure the query size matters much, but having less entries in the query itself is always a good thing to try. I don't think array_unique uses a lot of resources. When I get to fix the multiple query issue, I will then try to benchmark my calls with and without array_unique().

Quote
I think that all URLs still need to be kept in the system. One possible use for this is that external pages could be put through a 'gateway' page saying "these pages are not part of this site and we don't endorse them" type of thing.
I somehow do that already, in Javascript though ;)
Just have a look at http://nao.cyna.fr and check the external URLs in the lower bottom corner.

function setHref()
{
var i, a, hre;
for(i=0; (a = document.getElementsByTagName("a")[i]); i++)
{
if (a.getAttribute("title") && (a.getAttribute("title") == '-'))
continue;

hre = a.getAttribute("href");
if (typeof hre == "string" && hre.length > 0) {
if ((hre.indexOf("<?=$_SERVER['SERVER_NAME'] ?>") == -1) && (hre.indexOf("://") != -1))
{
a.setAttribute("class", "xt");
a.setAttribute("className", "xt");
}
}
}
}

window.onload = function(e)
{
setHref();
}


Then followed by this CSS code:

a.xt:link {
background: url(/ext2.gif) no-repeat 100% 0;
padding: 0 15px 0 0;
}

a.xt:visited {
color: purple;
background: url(/ext2.gif) no-repeat 100% -27px;
padding: 0 15px 0 0;
}

a.xt:hover {
color: red;
background: url(/ext2.gif) no-repeat 100% -54px;
padding: 0 15px 0 0;
}

The picture itself is at http://cyna.fr/ext2.gif
This method has a few issues, though. It doesn't work well with external pictures, for example, and sometimes has issues with justified text. It may be a good idea to look into doing this from inside PrettyURLs indeed. The only problem is that it's quite out of context. But it shouldn't stop you from thinking about an implementation idea.

Quote
Another possibility is that email links could be obfuscated.
Hmm yes indeed. Another out of context thing, but isn't QueryString just a fantastic piece of code? :)

You could also remove from the process any "javascript:" link. (It's just a matter of using "substr", it takes less resources than strpos... And it's not UTF-8 so it's just plain old substr.)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 10, 2007, 05:48:19 AM
Quote
I had the feeling IE7 would support oriental text in the URLs. Well, turns out I was wrong...
Still, I'm entitled to believe that the Japanese versions of IE support Japanese text in the URLs. (I'd love not to be proven wrong ;))
And this is what matters most. Plus, Wikipedia is one of the most visited websites in the world. IE is poised to end up supporting non-ASCII URLs in the future if they don't want to look bad...
It's not IE, it's the HTTP standard. Although most browsers these days can automatically URL-encode stuff, not all will, so I don't consider it completely reliable.

Quote
I somehow do that already, in Javascript though
No, not just an icon, but a full gateway page, which would transform <a href="http://somedomain.com"> into <a href="http://mydomain.com/external.php?page=somedomain.com"> or whatever.

Quote
Another out of context thing, but isn't QueryString just a fantastic piece of code?
Well I'm actually wondering if it might be better to move my processing code out of QueryString.php to a new file. However that would mean we'd have to load an extra file whereas QueryString.php is already being loaded, so it's probably not worth it.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 10, 2007, 06:08:27 AM
It's not IE, it's the HTTP standard. Although most browsers these days can automatically URL-encode stuff, not all will, so I don't consider it completely reliable.
Maybe you (we?) should just leave the choice up to the user...

Quote
Quote
I somehow do that already, in Javascript though
No, not just an icon, but a full gateway page, which would transform <a href="http://somedomain.com"> into <a href="http://mydomain.com/external.php?page=somedomain.com"> or whatever.
I see. Well, if I were you, I would not change the link, and I would add an icon that points to a special popup saying it's an external page blah blah blah. Something like <a href="javascript:ext_link()"><img src="..." alt="" /></a> with ext_link() being declared in script.js (it will just open that pop-up... The goal being to have the shortest possible link to that pop-up.)

Quote
Well I'm actually wondering if it might be better to move my processing code out of QueryString.php to a new file. However that would mean we'd have to load an extra file whereas QueryString.php is already being loaded, so it's probably not worth it.
Yup...

As for QueryString.php, I only discovered what it actually does *after* I started my own pretty-urls mod. Which explains why I went the queryless way. Still, it works great, but it adds a ton more code.
I checked the other day, and I have approx. 170 occurrences of the word "url(" in my Sources and Themes source files. (This is the function that builds my own URLs based on parameters retrieved at the same time as the board & topic ID, of course.)

If you want to give up on the QueryString.php pollution, then you might want to look into doing things the way I'm doing them currently. It is a lot of extra work, though. But my options are open, too.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 10, 2007, 06:24:49 AM
Quote
I see. Well, if I were you, I would not change the link, and I would add an icon that points to a special popup saying it's an external page blah blah blah. Something like <a href="javascript:ext_link()"><img src="..." alt="" /></a> with ext_link() being declared in script.js (it will just open that pop-up... The goal being to have the shortest possible link to that pop-up.)
I wouldn't want to do anything, but other people have gateway pages and it's something that could easily be made with this mod, so I want to keep it easy.

Quote
If you want to give up on the QueryString.php pollution, then you might want to look into doing things the way I'm doing them currently. It is a lot of extra work, though. But my options are open, too.
If you're working on replacing the URLs in all the source files, that's what I originally did. I had a 60kb mod file hehe. The current way is a lot more reliable.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 10, 2007, 06:43:02 AM
I wouldn't want to do anything, but other people have gateway pages and it's something that could easily be made with this mod, so I want to keep it easy.
Well it's such a good idea that I might be adding it to my custom version of the mod anyway ;) (I want to get rid of the Javascript code as much of possible so I won't put an external link warning, though.)

Quote
If you're working on replacing the URLs in all the source files,
Yes that's what I did...

Quote
that's what I originally did. I had a 60kb mod file hehe.
Oh, my!!

Quote
The current way is a lot more reliable.
Yes but on the other hand, it adds extra queries and buffer manipulations. But I must admit I like the idea of being able to update my SMF easily ;)
(Originally, I planned to stick to v1.1.3 and never ever upgrade. Well, some of the new things in v2.0 made me change my mind.)

Ooops, I'm sorry to see we're reaching the end of our conversation :(
We should make a list of what we learned in it, and what we should focus on ;)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 10, 2007, 06:48:28 AM
Quote
We should make a list of what we learned in it, and what we should focus on
Lol.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 10, 2007, 07:44:54 AM
Quote
We should make a list of what we learned in it, and what we should focus on
Lol.
Well I have a tendency to forget everything after a conversation, hence the remark :P
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 11, 2007, 09:35:59 AM
Okay... I've made lots of tests using these three caching methods:
- crc32 (default one)
- md5 (much better one, but slower)
- plain URLs

The results have surprised me (but not that much): they pretty much all behave the same. I get between 0.059s and 0.2s each time I refresh the page. With an average time of about 0.07s. md5() doesn't seem to be any slower than crc32() on small-scale pages (most of SMF's pages I'd say). Plain URLs would be the right choice, then, considering there just can't be any name collision this way.

I've also tested with and without array_unique(). Same results: both versions get the same average time. I would recommend to include array_unique() because it's probably better to put the server load on the PHP server, rather than the SQL server (considering that even if the PHP server gets less busy, the database will *always* grow whatever you do about it, and so it'll be slower to crawl.)

Now, all I have left to do is figure out why there's a minimum of 2 queries in the PrettyURLs stats. I tried to add a static variable to ob_sessrewrite so that I can limit it to being called only once. This helped in removing the extra cache call that was written down at the end of the viewquery page. Now, even though there's only one "pretty" query in the viewpage log, it STILL says "2q" on topic pages. What is the other query and why isn't it included in the viewpage log?!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 11, 2007, 09:47:33 AM
I'm thinking too that plain text would be better. Eventually we'll be able to change the URLs of topics (mod action), so to fix the old URLs the cache will need to have them removed. With plain text we can just search for those rows, otherwise we'd have to empty the whole table.

Quote
Now, all I have left to do is figure out why there's a minimum of 2 queries in the PrettyURLs stats. I tried to add a static variable to ob_sessrewrite so that I can limit it to being called only once. This helped in removing the extra cache call that was written down at the end of the viewquery page. Now, even though there's only one "pretty" query in the viewpage log, it STILL says "2q" on topic pages. What is the other query and why isn't it included in the viewpage log?!
It needs one query to find which topic it is, and another to get the cached URLs. It probably is in the list, just at the top. On new topics you can get 4 or more queries, which is why the cache is better. Not that it's caching properly... so many things to fix hehe.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 11, 2007, 01:21:05 PM
It needs one query to find which topic it is, and another to get the cached URLs. It probably is in the list, just at the top.
Nope, it really isn't...
But I don't get it. I looked at your code and... Why do you query for the topic ID, when there are so many globals that offer the same thing?
Oh, let me check... You do this before the topic ID is checked by SMF, okay.

Of course, I don't do that on my website--since the topic ID is hardcoded into the URL.

So, I guess the time indicated by PrettyURLs only takes into account the whole "ob_sessrewrite" section of the mod?
I thought the thing was called twice. So I could cut the times in half. But since it's only called once, the .07s average represents over 30% of the total loading page for my page. It's a bit... Slow.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 11, 2007, 09:21:50 PM
Quote
But I don't get it. I looked at your code and... Why do you query for the topic ID, when there are so many globals that offer the same thing?
Oh, let me check... You do this before the topic ID is checked by SMF, okay.

Of course, I don't do that on my website--since the topic ID is hardcoded into the URL.
Yeah it's done very early. The query is a simple one though, so I don't think it has any real effect on performance.

Quote
So, I guess the time indicated by PrettyURLs only takes into account the whole "ob_sessrewrite" section of the mod?
I thought the thing was called twice. So I could cut the times in half. But since it's only called once, the .07s average represents over 30% of the total loading page for my page. It's a bit... Slow.
It's taken from the time that SMF thinks it's finished, but before all the templates are actually run and sent to the buffer (I think). So it's not entirely the mod. 30% seems slower than I thought... I had measured about 15% before. There are some PHP profilers that I really should test it with sometime.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 12, 2007, 03:59:32 AM
Yeah it's done very early. The query is a simple one though, so I don't think it has any real effect on performance.
No, it doesn't. Actually, the topic cache query doesn't have any real effect either. I believe about 80%-90% of the performance hit is due to the buffer rewriting process in PHP. Possibly because of the use of regexp.
What do you think?

Quote
30% seems slower than I thought... I had measured about 15% before.
This morning, my average is:

Page created in 0.169 seconds with 23 queries. (Pretty URLs adds 0.047s, 2q)

My average with the 1.1.3 version of my website (same contents, but uses my own URL-rewriting system):

Page générée en 0.162 secondes avec 32 requêtes.

So it has 30% more queries (I have a custom sidebar), but it's still faster... Definitely not SQL causing issues here.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 12, 2007, 05:11:29 AM
Regexs are another thing that I'm not too big an expert on, I'm sure they could be optimised more too.

How are you calculating your averages?
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 12, 2007, 05:39:26 AM
Regexs are another thing that I'm not too big an expert on, I'm sure they could be optimised more too.
Let's see... You're using preg_replace which is faster than ereg_replace... Check...
You seem to be using str_replace whenever possible... Check...
Are your expressions case-insensitive? Just in case, case-sensitive searches are fine here, and faster obviously.

Quote
How are you calculating your averages?
With the good old method of "I'm refreshing 5 times or so, dropping the fastest and slowest results, and making a mental average."
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 12, 2007, 06:44:41 AM
Quote
Let's see... You're using preg_replace which is faster than ereg_replace... Check...
You seem to be using str_replace whenever possible... Check...
Are your expressions case-insensitive? Just in case, case-sensitive searches are fine here, and faster obviously.
I'm using case-sensitive mostly, however there are bigger improvements to be made I'm sure.

Code: [Select]
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|sesc=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);This line could be optimised more, as several of them don't actually use regexs. But would having multiple statements be slower overall? I'm not sure.

Quote
With the good old method of "I'm refreshing 5 times or so, dropping the fastest and slowest results, and making a mental average."
Thought as much ;)

Btw, I started a topic at the dev forum.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 12, 2007, 07:05:10 AM
I'm using case-sensitive mostly, however there are bigger improvements to be made I'm sure.
Let's say,

preg_match('~#.*~', $matches[2], $fragment);

It could be replaced with a "strpos" test for #, followed by a substr to put the anchor into $fragment, couldn't it?
As for PHPSESSID, I'm one of these guys who think the variable should be removed from URLs once and for all. The ob_googlebot mod does it at the beginning of index.php when the agent is a bot. I see no reason why it should be there for regular users, since guests don't have more rights than bots, and logger users won't get the variable anyway...
The only thing that really bothers me is the sesc variable.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 12, 2007, 08:04:54 AM
Another quick way to get $fragment:

http://fr.php.net/manual/en/function.parse-url.php

It says it doesn't work with relative URLs, and SMF doesn't use it much itself, but it might be worth checking out if you end up profiling your code.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 12, 2007, 10:13:26 AM
Okay I'm giving up...
I should have tried this since the beginning: remove all preg_replace and preg_match calls from the callback function. As a result, the whole thing is no more than 0.01s faster. It's not worth the hassle...
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 12, 2007, 10:32:47 AM
Quote
It could be replaced with a "strpos" test for #, followed by a substr to put the anchor into $fragment, couldn't it?
Hmm interesting, that should work. But as you said, if it doesn't actually help it's probably not worth it.

Quote
As for PHPSESSID, I'm one of these guys who think the variable should be removed from URLs once and for all. The ob_googlebot mod does it at the beginning of index.php when the agent is a bot. I see no reason why it should be there for regular users, since guests don't have more rights than bots, and logger users won't get the variable anyway...
The only thing that really bothers me is the sesc variable.
PHPSESSID usually won't be shown, only if cookies aren't available, in which case it's essential. sesc is different, and only needed for a few things, none of which bots should be doing.

Quote
I should have tried this since the beginning: remove all preg_replace and preg_match calls from the callback function. As a result, the whole thing is no more than 0.01s faster. It's not worth the hassle...
Well there must be something that can be done to make it faster. I get as low as 0.007 on mine sometimes. I'll look into installing a profiler next week.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 12, 2007, 10:48:32 AM
Hmm interesting, that should work.
Yup, it does... (But it doesn't save a single cycle!)

Quote
PHPSESSID usually won't be shown, only if cookies aren't available,
Actually, it does show in all situations (even when you have cookies enabled), as long as you're not logged in, and this is the first page you're visiting. As soon as you click on a link, cookies are "registered" and PHPSESSID disappears.

Quote
Well there must be something that can be done to make it faster. I get as low as 0.007 on mine sometimes. I'll look into installing a profiler next week.
But you're on a dedicated server, right? Your server's default website (from the bare IP) is a SMF board, so I guess you're sharing the server with it. My test website runs on a shared hosting, so it's poised to be slower. (Although it's one of the fastest shared hostings I've ever seen. I have another board on a semi-dedicated server and sometimes it's slower!)

I should also add that my tests are done on large topics with lots of links.

As for profiling, maybe a simple PHP function would be enough. I'll give it a try...
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 12, 2007, 11:03:16 AM
Made my quick benchmarking tool...

Here's how the time taken is split:

- 25% is taken by the first preg_match_all to find all links on the page, and most of it by the subsequent series of preg_replace
- 25% is taken by the sql query to retrieve the cached URLs
- and finally, 50% by the callback function.

Where do you think we could gain some speed?

Oh yes, and a question: is it normal that you're calling a preg_replace on PHPSESSID, sesc etc. in the first part *and* in the last part? I'm a bit lost here ;)

Edit -- another suggestion: include an index on the "log_time" field, because the main query always uses it in the WHERE clause. I think it would benefit from the index.
Or, maybe, just remove the log_time mention in the query, and remove older entries from time to time. Why the field, by the way? If this is to minimize risks of URL collision, then it's no longer needed, right?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 12, 2007, 11:32:57 PM
http://dev.eldacar.com/smf/general-discussion/optimisation-etc/
Continuing here so as to not clutter up this support topic so much.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 13, 2007, 02:21:48 AM
'kay.
Title: Re: Pretty URLs 0.9.2
Post by: ian1 on October 16, 2007, 10:39:24 PM
I get this error when trying to install.  Any suggestions?

 Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/ManageErrors.php Test successful
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./Sources/News.php Test successful
6. Execute Modification ./Sources/PackageGet.php Test successful
7. Execute Modification ./Sources/QueryString.php Test failed
8. Execute Modification ./Sources/Subs.php Test successful
9. Execute Modification ./Sources/Display.php Test successful
10. Execute Modification ./Sources/MessageIndex.php Test successful
11. Execute Modification ./Sources/QueryString.php Test successful
12. Execute Modification ./Sources/Subs-Boards.php Test successful
13. Execute Modification ./Sources/Subs-Post.php Test successful
14. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
15. Extract File ./Sources/PrettyUrls-Filters.php 
16. Extract File ./Sources/Subs-PrettyUrls.php 
17. Execute Code install.php


Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 17, 2007, 04:04:07 AM
If you have other mods installed, uninstall them before.
If you don't, just replace your copy of Sources/QueryString.php with a fresh one from the SMF install package.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 17, 2007, 04:32:46 AM
Indeed, there's probably a conflict with another mod. Which others do you have installed?
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 17, 2007, 09:21:27 AM
does this mod work on a heavy board? coz i installed it with ease, and liked it. after a month, i  get 404 errors.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 17, 2007, 09:29:14 AM
Yes it should work. What do you get 404 errors on?
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 17, 2007, 09:37:11 AM
Quote
What do you get 404 errors on?
when i click on any links within the forum.

anyway i uninstalled it. But now i want to reinstall. Here are my mods.

SMF1.1.4DefaultTheme. My mods- TP0.9.8, New Topic Button1.0,
SMF Trader System1.1, Referrals Mod1.4, Ad Managment2.3, SMF Gallery Lite1.8,
YouTube BBC Tag (XHTML Compliant)1.0, SMF Sitemap 1.2.1, Favicon Mod1.0

>> in the instructions:
Quote
1 Download and install the base package from the mod site.
    2 Using FTP, rename example.htaccess to .htaccess
    3 Download the extension-none (and the TP-ext-none if you use TinyPortal) package from the Package List, or just from the site directly, and then install them.
how do i do number 2 and 3?
>> i cant find example.htaccess in my root folder
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 17, 2007, 10:26:33 AM
Don't worry about the third instruction, it's optional. And no you shouldn't have to edit the .htaccess file.
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 17, 2007, 10:32:35 AM
Quote
The requested URL /forum-news-and-announcements/0/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

so i have to uninstall quickly.

where do i download TP-ext-none?
what i only see in http://code.google.com/p/prettyurls/downloads/list
are:
prettyurls-base_0_7.tar.gz
prettyurls-profiles_0_7.tar.gz      
prettyurls-actions-ext-none_0_6.tar.gz


 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 17, 2007, 11:57:53 AM
There is no TP package, it's all included in the base package.

What's your .htaccess file?
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 17, 2007, 12:04:35 PM
Quote
What's your .htaccess file?

im sorry i dont know. how would i find that out?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 17, 2007, 12:11:26 PM
Use FTP to log into your server and download the file.
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 17, 2007, 12:16:46 PM
i dont see any htaccess file :(

EDIT: i searched it through cpanel. i see the result.
but when i double click it, i am brought to the /public_html folder.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 17, 2007, 12:26:11 PM
It should be at the root of your website.
If you don't see it, make sure your FTP client allows to view .* files like .htaccess!
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 17, 2007, 12:30:17 PM
Got it! Now what do i do with this?

Quote
#   Pretty URLs mod
#   http://code.google.com/p/prettyurls/
#   .htaccess file generated automatically on: July 28, 2007, 1:27

#   Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#   Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
Title: Re: Pretty URLs 0.9.2
Post by: Valiantheart on October 17, 2007, 01:54:11 PM
Why is there a /0/ after the URL? For example, the topic "About" would be http://www.mydomain.com/about/0/
Title: Re: Pretty URLs 0.9.2
Post by: ian1 on October 17, 2007, 03:59:08 PM
Indeed, there's probably a conflict with another mod. Which others do you have installed?

1. YouTube BBC Tag (XHTML Compliant) 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
2. Website Button 1.1.4   [ Uninstall ] [ List Files ] [ Delete ] 
3. Digg Topic 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
4. Lots_o_Smileys 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
5. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
6. Ad Managment 2.3   [ Uninstall ] [ List Files ] [ Delete ] 
7. SMF 1.0.11 / 1.1.3 Update 1.1   [ List Files ] [ Delete ] 
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 17, 2007, 06:59:49 PM
Why is there a /0/ after the URL? For example, the topic "About" would be http://www.mydomain.com/about/0/
It's the equivalent to "?topic=xxx.0" where xxx is the topic ID.
0 is the message or topic index. "/about/50/" will show you the next 50 topics.
The latest PrettyURLs beta removes these useless zeros. Or read earlier pages of this topic for a quick hack to remove them.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 17, 2007, 10:17:18 PM
Try replacing it with this cru:
Code: [Select]
#   Pretty URLs mod
#   http://code.google.com/p/prettyurls/
#   .htaccess file generated automatically on: July 28, 2007, 1:27

RewriteEngine on

#   Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#   Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

Ian1, can you send me your QueryString.php please.
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 18, 2007, 01:07:53 AM
ok, is this process correct?
1. download prettyurls-base_0_7.tar.gz
                     prettyurls-profiles_0_7.tar.gz     
                     prettyurls-actions-ext-none_0_6.tar.gz

2. I will replace my htaccess file with your post above.

just would like to make sure i wont mess this up. TIA
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 18, 2007, 03:49:41 AM
Don't use the profiles and actions ones unless you absolutely need to.

Ian1, this mod isn't compatible with SEO4SMF.
Title: Re: Pretty URLs 0.9.2
Post by: ian1 on October 18, 2007, 09:10:58 PM
Don't use the profiles and actions ones unless you absolutely need to.

Ian1, this mod isn't compatible with SEO4SMF.

I'm not sure what you are referring to about the profiles and actions.

I tried to uninstal SEO4SMF but its giving me a lot of problems.  It won't uninstall.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 18, 2007, 09:15:43 PM
Ask the SEO4SMF for help in uninstalling it completely first, and then try installing this mod.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on October 19, 2007, 08:15:47 AM
I'm not sure what you are referring to about the profiles and actions.
The two smaller packages that say, err... profiles and actions.
I have to agree with the author, I'd say. Actions aren't compatible with Board rewriting (only with Topic rewriting). And Profiles... Well, they basically work (no extra work done, it just redirects to SMF's Profile.php file), but there are several issues that are connected to SMF itself. (If a user registers using a strange name with non-alphanumeric characters, he will never be able to see and change his own profile. Oops.)
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 20, 2007, 08:59:53 AM
Try replacing it with this cru:
Code: [Select]
#   Pretty URLs mod
#   http://code.google.com/p/prettyurls/
#   .htaccess file generated automatically on: July 28, 2007, 1:27

RewriteEngine on

#   Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#   Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]


This is what you told me to replace
Code: [Select]
#   Pretty URLs mod
#   http://code.google.com/p/prettyurls/
#   .htaccess file generated automatically on: July 28, 2007, 1:27

#   Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

#   Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

i don't see any difference
Title: Re: Pretty URLs 0.9.2
Post by: 2pac on October 20, 2007, 10:16:47 AM
I cant get mine to work properly :(

I had a board called "   the 'stick  " right? with the ' in front of stick.... any way when i tried to get into that board, it gave me an error... so i changed the name of the board, and same thing, it kept the previous name... i even uninstalled the package and installed it back up and it still kept the same name and kept giving me an error... is there a file i need to delete to have it start anew? otherwise i cant use this mod :(
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 21, 2007, 06:10:14 AM
Quote
i don't see any difference
You need the RewriteEngine line.

Quote
I had a board called "   the 'stick  " right? with the ' in front of stick.... any way when i tried to get into that board, it gave me an error... so i changed the name of the board, and same thing, it kept the previous name... i even uninstalled the package and installed it back up and it still kept the same name and kept giving me an error... is there a file i need to delete to have it start anew? otherwise i cant use this mod :(
Uninstall the mod, then delete all the settings added by the mod. Try the new files from http://prettyurls.googlecode.com/svn/trunk/Base/
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 21, 2007, 07:04:07 AM
Quote
You need the RewriteEngine line.

what do you mean?

Quote
http://prettyurls.googlecode.com/svn/trunk/Base/
what do we do with it? zip then install thru package manager?

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 21, 2007, 08:12:45 AM
Quote
what do you mean?
They're not the same because yours was missing a line.

Quote
what do we do with it? zip then install thru package manager?
Yep. Make sure you delete the existing database settings though otherwise it won't help.
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 21, 2007, 09:32:05 AM
Quote
Yep. Make sure you delete the existing database settings though otherwise it won't help.
how? does everyone have to do this? coz i think i  experienced the same problem as ninerskickass. I used this mod around a month with no problems, but after a month i don't know which caused the 404error, but i had board titles with " (quotes) in them, and i just noticed the 404errors after a few days.

Quote
They're not the same because yours was missing a line.
which line? i still don't see any difference.

sorry for asking so many questions, i really like this mod so much, but i don't want to mess anything. TIA
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 21, 2007, 09:41:51 AM
Quote
how? does everyone have to do this? coz i think i  experienced the same problem as ninerskickass. I used this mod around a month with no problems, but after a month i don't know which caused the 404error, but i had board titles with " (quotes) in them, and i just noticed the 404errors after a few days.
Yes they will, the code to handle quotes has changed greatly.

Quote
which line? i still don't see any difference.
The line that says:
RewriteEngine on

Quote
sorry for asking so many questions, i really like this mod so much, but i don't want to mess anything. TIA
Don't worry, I don't mind helping anyone. 0.8 should be more user-friendly... :)
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 21, 2007, 09:51:12 AM
Quote
Yep. Make sure you delete the existing database settings though otherwise it won't help.
how do i do this? im no mysql coder...

Quote
The line that says:
RewriteEngine on
i don't see this line in the code you gave me as a replacement to my .htaccess

Quote
0.8 should be more user-friendly...
so, when will 0.8 be available?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 21, 2007, 10:01:03 AM
Quote
how do i do this? im no mysql coder...
http://prettyurls.googlecode.com/svn/trunk/uninstall.php
Download that file and put it in the same place as your SSI.php, then run it, and delete it.

Quote
i don't see this line in the code you gave me as a replacement to my .htaccess
It's there... Look up in this post: http://www.simplemachines.org/community/index.php?topic=146969.msg1280589#msg1280589

Quote
so, when will 0.8 be available?
Quite a while to go.. I've got big exams coming up so I don't have much time to work on this.
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 21, 2007, 10:13:41 AM
thank you man! great support!
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 22, 2007, 12:26:30 AM
it still doesn't support board titles with quotes or '
here's what i did..
1. i followed your instruction
Quote
http://prettyurls.googlecode.com/svn/trunk/uninstall.php
Download that file and put it in the same place as your SSI.php, then run it, and delete it.

2. i changed my .htaccess as you have instructed
3. i downloaded the files from http://prettyurls.googlecode.com/svn/trunk/Base/  then zipped and installed thru package manager.

4. here's what i got
Quote
   Type     Action     Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./SSI.php    Test successful
3.    Execute Modification    ./Sources/ManageErrors.php    Test successful
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./Sources/News.php    Test successful
6.    Execute Modification    ./Sources/QueryString.php    Test successful
7.    Execute Modification    ./Sources/Subs.php    Test successful
8.    Execute Modification    ./Sources/Display.php    Test successful
9.    Execute Modification    ./Sources/MessageIndex.php    Test successful
10.    Execute Modification    ./Sources/QueryString.php    Test successful
11.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
12.    Execute Modification    ./Sources/Subs-Post.php    Test successful
13.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
16.    Extract File    ./Sources/PrettyUrls.php    
17.    Extract File    ./Sources/PrettyUrls-Filters.php    
18.    Extract File    ./Sources/Subs-PrettyUrls.php    
19.    Extract File    ./Themes/default/PrettyUrls.template.php    
20.    Extract Tree    ./Themes/default/pretty    
21.    Extract File    ./Themes/default/languages/PrettyUrls.english.php    
22.    Execute Code    install.php

4. So installation  of 0.8 went well.
5. I uploaded Pretty URLs - Actions - Extention: none
When i applied mod:
Quote
1.     Execute Modification     ./Sources/PrettyUrls-Filters.php     Test successful
2.    Execute Code    install.php
But when i click install:
Quote
Fatal error: Call to undefined function updateFilters() in /home/user/public_html/Packages/temp/install.php on line 37

6. I disregarded this, opened my site, I clicked on topics, and see my urls improved.
7. when i click on topics with ' or quotes, i get this error
Quote
Not Found
The requested URL /ambulleros\'-gallery/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

8. I restored my backup, then started from step 1 without installing the
Pretty URLs - Actions - Extention: none
I still get the same problem.

9. I tried checking the radio buttons for
Quote
Rewrite Topic URLs
Rewrite Profile URLs.
thru prettyurls admin

When i go back to the forums, what i only see is my header, user panel and the footer.
I click on Admin, same thing, i only see my header, user panel and footer, so i have no way to uninstall. I have to restore my backup.

10. Does this installation, as stated above affect my db? do i have to restore the db too? coz i just restored the files.
 
my mods before installation of pretty urls0.8
Quote
SMF1.1.4DefaultTheme. My mods- TP0.9.8, New Topic Button1.0,
Referrals Mod1.4, Ad Managment2.3, SMF Gallery Lite1.8,
YouTube BBC Tag (XHTML Compliant)1.0, SMF Sitemap 1.2.1, Favicon Mod1.0

GOODLUCK ON YOUR EXAMS ELDACAR. Take your time. I know we can make this work.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 22, 2007, 12:50:51 AM
Quote
i wonder why quotes do not work on my board, while they are ok on your eldacar's playground?
I don't know either... Can you show me a link to a page that has broken quotes?
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 22, 2007, 01:29:28 AM
i edited my post above.
Quote
I don't know either... Can you show me a link to a page that has broken quotes?
you won't see the effect now, i restored my backup.

1.in this link http://mydoggy.net/index.php/board,361.0.html
when you click on the first or third topic, it just reloads the same page. It doesn't open the topic.

2. And it is in this board http://mydoggy.net/index.php/board,367.0.html
that i get the
 
Quote
The requested URL /ambulleros\'-gallery/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

3. Also in this topic http://mydoggy.net/index.php/topic,303.new.html#new i get the 404 error as quoted above
Title: Re: Pretty URLs 0.9.2
Post by: scwebman on October 25, 2007, 12:03:17 PM
Looks like a great mod here, but when I try to install I get "hacking attempt..."  Is there a fix for this?  Thanks!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 26, 2007, 06:19:50 AM
You're installing it just through the package manager? Anything in the error log?
Title: Re: Pretty URLs 0.9.2
Post by: Carlos Gandra on October 27, 2007, 11:46:31 AM
Hi,

I'm using pretty-urls on my projects since 0.3 version, but recently, I have installed this mod in a fresh installation of SMF, with encoding utf-8 (portuguese language) and some problems are sometimes happening.

I've also created this topic, with the first issue:
http://www.simplemachines.org/community/index.php?topic=200110.0

This happen two more times, and I have reinstalled pretty-urls again and again to solve. It solves for the detected topic, but days after other topic will be affected. And today, was not a redirection of action=post to action=report, but an action=post to topic Y from the REPLY button on topic X.

I always make clean installations of the mod (using your uninstall.php tool to remove database tables). I also have tried 0.8 from source but the install gives me hacking attempt.

I'm afraid I have to remove definitively this mod, but it will impact on my Forum, cause Google have indexed all the pretty-urls of topics and replies :(
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 27, 2007, 10:59:11 PM
So you click on one thing, but it takes you to something else?

Sounds like you're getting collisions with the CRC hashing... which although unlikely is possible. Have a look at 0.8 when it's released as we won't be using CRCs anymore so collisions won't be possible.
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 28, 2007, 06:09:05 PM
I don't think Pretty URLs work properly with moving boards. I tried to move a forum and it told me the ID does not exist. I had to use the drop down box way (which is longer because you have to go through 3 pages to finish it) to move it in the end.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on October 28, 2007, 09:23:36 PM
Yeah there were some bugs in it, though they've been fixed in the SVN. Do you have to move many more boards?

I think making this change in PrettyUrls-Filters.php will work
Code: (find) [Select]
$pattern = '~' . $scripturl . '(.*)board=([.0-9]+)(.*)~S';
Code: (replace) [Select]
$pattern = '~' . $scripturl . '(.*[?;&])board=([.0-9]+)(.*)~S';
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on October 29, 2007, 05:18:45 AM
Whoops forgot that I didn't update yet. Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: scwebman on October 31, 2007, 09:05:19 PM
Sorry for the late response.  Here is my error log when I get "hacking attempt...":

Code: [Select]
REPLACE INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (76, "how-to-sell-on-ebay-frequently-asked-questions-by-new-ebay-sellers"), (3, "getting-started-with-html"), (4, "cold-calling"), (6, "selecting-a-camera-for-ebay-photography"), (7, "cameras-controls-and-settings-for-your-internet-photos"), (8, "what-laris-feature-do-you-like-best"), (9, "top-10-to-do-list-for-starting-a-successful-ebay-drop-off-store"), (10, "adding-product-and-ebay-catergories"), (11, "what-is-the-best-handheld-scanner-or-pda-to-use"), (12, "new!-support-for-marketing-analytics"), (13, "vista-print-offers-many-free-business-cards-and-marketing-items-but-beware!"), (14, "how-to-deal-with-harassment-from-ebay-buyers"), (15, "free-christmas-countdown-banners-for-your-listings-or-store"), (16, "bulk-update-templates-for-current-ebay-auctions"), (17, "combined-shipping-discounts-on-calculated-shipping-items"), (18, "bulk-image-resize-and-quality-change-optimize-your-pics-for-the-web-for-free"), (19, "setting-up-laris-for-google-base"), (20, "thinking-of-getting-laris-q-and-a-here!"), (21, "choosing-a-name-for-your-online-company-website-or-store"), (22, "can-laris-automatically-generate-reports-then-email-them"), (23, "moved-can-laris-automatically-generate-reports-then-email-them"), (24, "inventory-not-available-for-listing"), (25, "how-about-a-template-preview-button"), (26, "need-a-way-to-offer-free-shipping-to-the-us-and-canada"), (27, "ebay-auctions-and-store-inventory"), (28, "ebay-uk"), (29, "moved-new!-support-for-marketing-analytics"), (30, "resolved-ups-ship-api-shipping-calculator-issue-(resolved)"), (31, "resolved-ecommerce-websites-database-connection-error"), (32, "multichannelmerchant-has-a-must-read-article-on-shipping-changes"), (33, "resolved-order-lookup-by-ebay-user-id-is-causing-slow-downs-and-errors"), (34, "resolved-ongoing-paypal-troubles"), (35, "amazon-integration-now-live!-click-for-details"), (36, "laris-system-outage-525pm-est-to-535pm-est"), (37, "email-notifications-enhancements-and-reversions"), (38, "paypal-initiate-payments-from-the-pay-anyone-tab-will-not-disable"), (39, "resolved-important-usps-shippers"), (40, "ebay-store-inventory"), (41, "what-does-an-ecommerce-store-look-like-when-hosted-through-laris"), (42, "usps-shipping"), (43, "been-working-with-laris-for-2-days-nothing-so-far"), (44, "resolved-website-downtime-and-server-errors"), (45, "does-laris-work-with-ups-worldship"), (46, "e-bay-branching-out-to-a-younger-generation-see-how"), (47, "direct-shipments"), (48, "introduction-to-multi-venue-management"), (49, "the-new-hot-blog-to-track-in-e-commerce"), (50, "export-to-ubid"), (51, "reducing-your-paypal-fees-with-merchant-rates"), (52, "ok-can-we-do-this-half-way"), (53, "update-server-maintenance-scheduled-for-friday-may-4-at-500-am-900-am-est"), (54, "ability-to-re-email-order-invoice-by-logging-into-order"), (55, "laris-provides-integration-with-paypal-express-checkout"), (56, "feedback-2-0-ebay-to-go-google-checkout-and-more"), (57, "reminder-usps-service-options-have-changed!"), (58, "usps-rate-server-causing-timeouts-with-calculator"), (59, "ebay-givingworks"), (61, "auto-list-new-auction-for-item-receiving-bid"), (62, "emergency-downtime-at-500pm-est"), (63, "final-value-fee-discount-for-ebay-com-ebay-ca-and-motors-ebay-com"), (64, "when-does-google-checkout-get-integrated"), (65, "paypal-scheduled-maintenance-friday-july-13-1230-am-to-130-am-pdt"), (66, "ebay-issue-description-corrupted-for-items-listed-via-both-laris-and-syi"), (67, "google-checkout-is-now-available-to-laris-merchants!"), (68, "important-please-backup-pr-notification-for-e-mail-notification-engine-upgrade"), (69, "hello-my-name-is-antonio"), (70, "important-request-to-our-customers-regarding-ebay-listings"), (71, "ship-more-efficiently-the-basics"), (72, "getting-started-with-html-t72"), (73, "laris-now-supports-rubber-stamp-for-fedex\'s-labels"), (74, "i-would-like-to-see-ebay-title-cap-for-inventory-upload"), (75, "moved-when-does-google-checkout-get-integrated"), (77, "can-the-little-guy-still-make-money-on-ebay"), (78, "managing-a-full-time-job-and-an-ebay-business"), (79, "an-introduction-to-multi-venue-e-commerce-selling"), (80, "what-should-i-sell-on-ebay-part-i"), (81, "what-should-i-sell-on-ebay-part-ii"), (82, "how-to-make-$9-95-extra-income-on-almost-every-ebay-auction-that-closes-successf"), (83, "how-to-save-money-on-shipping"), (84, "the-seven-deadly-sins-of-ebay-sellers"), (85, "learn-the-math-if-you-want-to-make-money-on-ebay"), (86, "help-i-pictures-not-showing-up!!!"), (87, "drop-shipping-for-ebay"), (88, "how-and-why-to-get-a-state-sales-tax-number"), (89, "t89"), (90, "dropshipping-frequenly-asked-questions-(faqs)"), (91, "what-are-the-dangers-of-dropshipping"), (92, "niche-marketing-strategies-on-ebay"), (93, "buying-closeout-merchandise"), (95, "love-the-multi-image-upload!!"), (96, "social-bookmarking-what-is-it-and-how-will-it-drive-traffic-to-your-business"), (97, "why-your-e-commerce-website-needs-a-blog"), (98, "automotive-ebay"), (99, "i-am-finding-new-features-that-would-help-laris-become-even-more"), (100, "testing"), (101, "want-to-add-some-holiday-spice-to-your-listings")
File: /var/www/vhosts/sellcenter.net/httpdocs/community/Sources/Subs-PrettyUrls.php
Line: 233

It passes all of the tests fine previously, but when I click proceed I get the "Hacking attempt..." error.

Thanks for your help!
Title: Re: Pretty URLs 0.9.2
Post by: cru on October 31, 2007, 10:31:09 PM
eldacar! it worked now! the problem was for previous topics with quotes before installation of this mod. i deleted all topics with quotes, then installed 0.8 and it worked!

i have tp installed but i did not install this >> Pretty URLs - Actions - Extention: none

thank you!!!!!
Title: Re: Pretty URLs 0.9.2
Post by: Col on November 03, 2007, 12:41:49 AM
Hi ელდაქა, (thank heavens for copy/paste)

If I uninstall this mod, but keep the index table in the DB, will the redirects still work for the existing posts? I suppose I'm mostly worried about what would happen if support for this mod ever dried up.

Also, if I did indeed remove this mod, is there some way of redirecting the search engines to the usual URL for all the search engine indexed pages?

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on November 03, 2007, 06:38:55 AM
If I uninstall this mod, but keep the index table in the DB, will the redirects still work for the existing posts?
Yes they will.

Quote
I suppose I'm mostly worried about what would happen if support for this mod ever dried up.
Why would it stop?
And what would be the problem? When a popular mod is no longer supported, there's always someone to step up and keep maintaining it, if not for bug fixes, at least for newer SMF versions.

Quote
Also, if I did indeed remove this mod, is there some way of redirecting the search engines to the usual URL for all the search engine indexed pages?
Yes but you would have to program it manually. (Not much to do, though. About 20 lines of code I'd say, and they're all in the mod.)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 03, 2007, 09:36:38 AM
Quote
(thank heavens for copy/paste)
Hehe, Isn't Georgian pretty?

Quote
If I uninstall this mod, but keep the index table in the DB, will the redirects still work for the existing posts? I suppose I'm mostly worried about what would happen if support for this mod ever dried up.
Hmm you're wanting to rewrite the pretty to the numbered URLs? If you uninstalled it completely that wouldn't work, but if you left a little bit of the code it could.

Quote
And what would be the problem? When a popular mod is no longer supported, there's always someone to step up and keep maintaining it, if not for bug fixes, at least for newer SMF versions.
Not always, depends on the licencing of the mod...

scwebman, I'm sorry but I can't see what's wrong with that query... does it work if you enable the 'disableQueryCheck' setting (ie, add it to the smf_settings table)?
Title: Re: Pretty URLs 0.9.2
Post by: Col on November 04, 2007, 01:08:52 AM
And what would be the problem? When a popular mod is no longer supported, there's always someone to step up and keep maintaining it, if not for bug fixes, at least for newer SMF versions.
Not always, depends on the licencing of the mod...

And how popular the mod, and if someone capable will take up the challenge when the original developer moves on. There is more than one mod here that I will not use because it is not properly supported.

What are people's experiences with mod in terms of SEO? I can't say I've noticed, much, if any, difference. I can see why it should help, but it doesn't seem to have helped me. :(

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 04, 2007, 01:17:31 AM
Mine seems to be going pretty well, but at the same time I also shifted to using one of Eren's themes... so it might be a combination of the two.
Title: Re: Pretty URLs 0.9.2
Post by: Col on November 04, 2007, 09:58:39 PM
What is it about the Erin's theme that might help?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 05, 2007, 02:09:15 AM
It has beautiful semantic HTML.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on November 05, 2007, 09:34:55 AM
Such as <h1> at the right place?
(Wow, you have 7000 posts!)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 05, 2007, 09:47:13 AM
That it even has <h1> tags is a huge enough step up from the SMF default :P

And of course I do! The question is, is it worth keeping enough that I should delete an old post for each new one I make to keep myself at this number?
Title: Re: Pretty URLs 0.9.2
Post by: Col on November 05, 2007, 11:30:31 AM
Hi,

Yes, the omission of H1 tags is a pretty big ommision!
Title: Re: Pretty URLs 0.9.2
Post by: Col on November 07, 2007, 06:39:57 PM
Hi,

OK, I would like uninstall this mod. Any help would be greatly appreciated.

If possible, I would like to keep the Pretty table (and whatever code I need) to keep the internal links working after I uninstall. Ideally, I would really like some way of using the existing Pretty table to produce permanent redirects for the search engines.

I cannot code, so it needs to be pretty simple.

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on November 08, 2007, 02:45:22 AM
I'd advise you to learn a bit more about PHP before you start using complex mods... There's never any guarantee that they'll work out-of-the-box. Otherwise they'd probably be in the default SMF package by now :P

Anyway, I don't see why you can't uninstall PrettyURLs. I do that on a daily basis to test my new code ;)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 08, 2007, 02:49:59 AM
Quote
If possible, I would like to keep the Pretty table (and whatever code I need) to keep the internal links working after I uninstall. Ideally, I would really like some way of using the existing Pretty table to produce permanent redirects for the search engines.
Hmm, what I'd do is to keep the mod installed but disable the filters. Then try making these two changes:
Display.php:
Code: (find) [Select]
if (isset($context['pretty']['oldschoolquery']) && $modSettings['pretty_enable_filters'])
Code: (replace) [Select]
if (!isset($context['pretty']['oldschoolquery']))
MessageIndex.php:
Code: (find) [Select]
if ((isset($context['pretty']['oldschoolquery']) || $_REQUEST['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Code: (replace) [Select]
if (!isset($context['pretty']['oldschoolquery']))
Title: Re: Pretty URLs 0.9.2
Post by: 2pac on November 08, 2007, 04:47:11 AM
That it even has <h1> tags is a huge enough step up from the SMF default :P

And of course I do! The question is, is it worth keeping enough that I should delete an old post for each new one I make to keep myself at this number?

no, you gotta go for 10,000

lol i did that in a forum once, and then i created another account name, but i forgot i had automatic login in one of our computers and i was logged in as my old SN, so i posted and it went up to 10001... i asked the mod to delete a post for me, but it didnt work, the number stayed :(
Title: Re: Pretty URLs 0.9.2
Post by: 2pac on November 08, 2007, 04:50:13 AM
im just wondering, is there an advantage to installing pretty urls? do bots prefer them over the regular ones? does it help with search engine position? im just curious... although i already have it installed
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 08, 2007, 04:53:47 AM
I'm not sure if the bots do like them (though I suspect they do), but the main advantage is that they just exude awesomeness.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on November 08, 2007, 05:37:55 AM
I'm not sure if the bots do like them (though I suspect they do), but they main advantage is that they just exude awesomeness.
I read somewhere that it doesn't help Google ranking, although it might be due to not waiting long enough for the change to occur.
Maybe it's not useful at first, but if someone posts somewhere a link to your topic, and this link only shows the URL, then you may get extra points for the keywords in your URL. Anyway, in any case people outside your forum will be more likely to click on a link when they can see the contents, instead of an obscure topic ID.
Title: Re: Pretty URLs 0.9.2
Post by: Col on November 08, 2007, 08:24:43 PM
I'd advise you to learn a bit more about PHP before you start using complex mods... There's never any guarantee that they'll work out-of-the-box. Otherwise they'd probably be in the default SMF package by now :P

Anyway, I don't see why you can't uninstall PrettyURLs. I do that on a daily basis to test my new code ;)

Hi,

I think you will find that vast majority of those that use SMF and install mods cannot code. I will seek out information and make small changes, but mostly I just play about with what PHP is already there, and just change the appearance of things.

Nearly always, all I need do install the mod through admin. There might be occasional complications that I can sort out for myself. This mod, though, is still under development, so maybe I should have left it alone until later. There are some things I find frustrating, like the URL retaining the original board name if it is moved to another board. That sort of thing just irritates me (other's, I'm sure, would dismiss it as unimportant, because, usually, it is unimportant); but that's the way I'm put together.

Uninstalling is not without consequences. I've been using this mod for many months, so many links have developed using the Pretty URLs. Uninstalling will break the links - this matters to a working forum!

Eldeka (or whatever your name is now ::)) - thanks. I don't suppose there is any practical way of generating permanent redirects? Also, what are your future plans for this mod in terms of functionality?

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 08, 2007, 09:36:22 PM
Quote
There are some things I find frustrating, like the URL retaining the original board name if it is moved to another board. That sort of thing just irritates me (other's, I'm sure, would dismiss it as unimportant, because, usually, it is unimportant); but that's the way I'm put together.
That's just the cache. If you clear the cache table, the topics will show the correct boards.

Quote
Eldeka (or whatever your name is now ::)) - thanks. I don't suppose there is any practical way of generating permanent redirects? Also, what are your future plans for this mod in terms of functionality?
The code I suggested above should give permanent redirects.

Future plans... nothings set in stone yet ;)
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on November 08, 2007, 09:40:04 PM
sry but i havnt got time to read throw all the pages bit is this alright to use with smf arcade yet sry i should read throw the commentnts biut i havint got time at them momnet thanks again wdm2005
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 08, 2007, 09:45:02 PM
The one in the SVN should be fine to use.
http://prettyurls.googlecode.com/svn/trunk/Base/
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on November 08, 2007, 09:57:54 PM
thanks is ther a packeg yet as i prefer to install packeges lol its easyer hehe
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 08, 2007, 09:59:39 PM
Not yet.
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on November 08, 2007, 10:12:41 PM
thanks do i download all them files and install them [dont have pretty urls installed at mo
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 08, 2007, 10:24:14 PM
Yep, you can either make your own zip file, or just upload them to a new directory in Packages.
Title: Re: Pretty URLs 0.9.2
Post by: SA™ on November 08, 2007, 10:28:04 PM
thanks ill see if i can sort it out thanks eldka
Title: Re: Pretty URLs 0.9.2
Post by: cru on November 09, 2007, 04:22:28 AM
hi eldacar, its working fine now in my forum. but it disabled this newsfader script which i previously used on a block in my TP.

Code: [Select]
<Script Type="text/javascript">

var delay = 4000; // Set delay between message change (in miliseconds)
var maxsteps=30; // Number of steps to take to change from start color to endcolor
var stepdelay=40; // Time in miliseconds of a single step

//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(255,255,255); // start color (red, green, blue)
var endcolor=new Array(0,0,0); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div align="center" style="font: normal 14px Arial; padding: 5px;">'; //set opening tag, such as font declarations
fcontent[0]="WELCOME<Br>TO<Br>DOGFINDER<Br>PHILIPPINES!!!<Br><Br>";
fcontent[1]="READ<Br>OUR<Br>FEATURES!<Br><a href='http://mydoggy.net/forum-news-and-announcements/be-the-alpha-male-of-this-site!/'>CLICK HERE!</a><Br>";
closetag='</div>';

var fwidth='150px'; //set scroller width
var fheight='100px'; //set scroller height

var fadelinks=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.

/// No Need To Edit Anything Below This Line ///

var ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var faderdelay=0;
var index=0;

/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
  if (index>=fcontent.length)
    index=0
  if (DOM2){
    document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
    document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
    if (fadelinks)
      linkcolorchange(1);
    colorfade(1, 15);
  }
  else if (ie4)
    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
  index++
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

function linkcolorchange(step){
  var obj=document.getElementById("fscroller").getElementsByTagName("A");
  if (obj.length>0){
    for (i=0;i<obj.length;i++)
      obj[i].style.color=getstepcolor(step);
  }
}

/*Rafael Raposo edited function*/
var fadecounter;
function colorfade(step) {
  if(step<=maxsteps) {
    document.getElementById("fscroller").style.color=getstepcolor(step);
    if (fadelinks)
      linkcolorchange(step);
    step++;
    fadecounter=setTimeout("colorfade("+step+")",stepdelay);
  }else{
    clearTimeout(fadecounter);
    document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
    setTimeout("changecontent()", delay);

  }   
}

/*Rafael Raposo's new function*/
function getstepcolor(step) {
  var diff
  var newcolor=new Array(3);
  for(var i=0;i<3;i++) {
    diff = (startcolor[i]-endcolor[i]);
    if(diff > 0) {
      newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
    } else {
      newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
    }
  }
  return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
}

if (ie4||DOM2)
  document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+'"></div>');

if (window.addEventListener)
window.addEventListener("load", changecontent, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent)
else if (document.getElementById)
window.onload=changecontent
</Script>

any idea how i can make this script work along with pretty urls?
it just shows a blank TP block after i installed pretty url. The reason why i prefer this over the smf newsfader is because the default smf newsfader takes up too much space.

TIA
Title: Re: Pretty URLs 0.9.2
Post by: ericmn on November 09, 2007, 04:30:57 AM
DUDES, this thing just broke my forum. Doesn't it work with SMF 1.1.4? When i applied it through package manager, every test was succesfull and then after hittin the install button, everything went wrong. Now my site gives an error, something with unserialized something...GOSH, i should've made backups...Well, basically its my fault that i've been careless...

Error occured on index.php, line 78. I had tinyportal installed...

I guess i have to create new forum files now? My forum applications were pretty old though...i had been maintainin it for like 2,3 years...over 9000 members and god-knows-how-many posts and attachments...

Agh.. yes..mm i wasnt able uninstall the package. It doesn't show up in the "installed packages" list.
I would go for it and uninstall it manually if i knew how.
(See, my admin panel works fine with those errors printed on the top of the page)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 09, 2007, 04:44:46 AM
cru, does it work if you change <Script to <script ?

ericmn, let me guess, you have a lot of boards with quotes in them? This is a known problem with 0.7. Uninstall the mod, delete the database entries, then try with the files at
http://prettyurls.googlecode.com/svn/trunk/Base/
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on November 09, 2007, 05:36:03 AM
ericmm> Normally, SMF does an automatic backup of your board files in the Packages/Backup folder. Check it out.
Title: Re: Pretty URLs 0.9.2
Post by: cru on November 09, 2007, 07:23:45 AM
Quote
cru, does it work if you change <Script to <script ?

it worked!  :D :D :D :D :D

you're a whiz man, thanks!
Title: Re: Pretty URLs 0.9.2
Post by: Col on November 09, 2007, 09:59:22 AM
Quote
There are some things I find frustrating, like the URL retaining the original board name if it is moved to another board. That sort of thing just irritates me (other's, I'm sure, would dismiss it as unimportant, because, usually, it is unimportant); but that's the way I'm put together.
That's just the cache. If you clear the cache table, the topics will show the correct boards.

Oh, right - I now understand, I think.

Quote
Eldeka (or whatever your name is now ::)) - thanks. I don't suppose there is any practical way of generating permanent redirects? Also, what are your future plans for this mod in terms of functionality?
The code I suggested above should give permanent redirects.

Future plans... nothings set in stone yet ;)

Oh. So search engines will re-list each page that they have already listed with a Pretty URL for a standard SMF URL? The search engines will not list both URLs for the same page (big SEO no-no)? I do mean a PERMANENT redirect. I cannot code at all, so I cannot tell from reading your code what will happen.

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on November 09, 2007, 05:30:25 PM
I think you're pretty safe in terms of permanent redirect, yes. Eldakar has been VERY cautious in making sure his code is as robust and smart as possible. I myself am still surprised at the beauty of some of his functions. Which is probably why I spend a month working on making the mod fit my own needs... I couldn't pass up the opportunity to use it :)
Title: Re: Pretty URLs 0.9.2
Post by: ericmn on November 09, 2007, 06:16:20 PM
ericmm> Normally, SMF does an automatic backup of your board files in the Packages/Backup folder. Check it out.

Holy ******, AWESOME! This is the kinda thing that i love about SMF.

THANKS Nao, You've saved me a hella a lot of time!!!

Hey, what about the database entry changes??? Can anybody suggest anything on that?
Thanks
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 09, 2007, 09:44:55 PM
http://prettyurls.googlecode.com/svn/trunk/uninstall.php
Download that file and put it in the same place as SSI.php, then run it, and delete it afterwards! That will remove everything that pretty urls added. Normally you wouldn't want to do that, but you need to in this case before changing from 0.7 to 0.8.

Quote
Oh. So search engines will re-list each page that they have already listed with a Pretty URL for a standard SMF URL? The search engines will not list both URLs for the same page (big SEO no-no)? I do mean a PERMANENT redirect. I cannot code at all, so I cannot tell from reading your code what will happen.
It will do a permanent redirect, if it redirects at all. I'm not 100% sure it will redirect (as I haven't tested it myself) but I think it will.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 09, 2007, 10:02:19 PM
Okay I'm trying something new. I'll be making new snapshot packages and putting them on the downloads page (http://code.google.com/p/prettyurls/downloads/list). They won't be nightly or even weekly, just when I feel I've made some significant changes to the development version. Hopefully this is a lot easier than downloading the files off SVN yourself. These packages should be fairly stable, but they won't be feature complete or as bug free as the full official versions.

So the first one is up there which has the important single quotes fixes.
Title: Re: Pretty URLs 0.9.2
Post by: Col on November 10, 2007, 07:43:04 PM
http://prettyurls.googlecode.com/svn/trunk/uninstall.php
Download that file and put it in the same place as SSI.php, then run it, and delete it afterwards! That will remove everything that pretty urls added. Normally you wouldn't want to do that, but you need to in this case before changing from 0.7 to 0.8.

Quote
Oh. So search engines will re-list each page that they have already listed with a Pretty URL for a standard SMF URL? The search engines will not list both URLs for the same page (big SEO no-no)? I do mean a PERMANENT redirect. I cannot code at all, so I cannot tell from reading your code what will happen.
It will do a permanent redirect, if it redirects at all. I'm not 100% sure it will redirect (as I haven't tested it myself) but I think it will.

Thanks. :)
Title: Re: Pretty URLs 0.9.2
Post by: distortedice on November 12, 2007, 03:30:35 AM
To install:
  • Download and install the base package from the mod site.
  • Using FTP, rename example.htaccess to .htaccess
  • Download the extension-none (and the TP-ext-none if you use TinyPortal) package from the Package List, or just from the site directly, and then install them.

....

Okay, I'm officially stumped!

I've downloaded it, installed the base files, no problems. No errors. All went smoothly and it said it was installed.

But where in the heck is example.htaccess? It's not in the root of my forum where my index.php is. I'm using a test forum with only one mod (Members Post Recount) and the default theme.

I tried moving to the third step, but that didn't do anything either. I've plored through this topic trying to find an explanation but to no avail, my URL's are still ugly :( I'm using PHP version 4.4.4 and MySQL version 4.1.22-standard in case that helps.

Hopefully someone can help :D
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 12, 2007, 05:39:31 AM
There is none, those are the instructions for a very old version of the mod. The instructions in the first post are:
Quote
# Download and install the base package from the mod site.
# Enable the filters in the Features and Options page
# If you have changed the base url to something different from $boardurl, you can install the actions-ext-none package too.
Title: Re: Pretty URLs 0.9.2
Post by: distortedice on November 12, 2007, 05:48:44 AM
There is none, those are the instructions for a very old version of the mod. The instructions in the first post are:

Lol, I feel stupid! It's running perfectly now though :)

Thanks very much for the awesome support! I had a look through the support forums for the other SMF SEO mods and you are definitely the most helpful. Thank you very much for being so supportive of all of us :)

One more question ... I know this is still in Beta, but I'm really keen to use it on my site. Since it's working fine on my test site (which will eventually be going live), I'm assuming it will be safe to use. Or should I wait till it's out of Beta?

Ryan,

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 12, 2007, 06:02:59 AM
It should be fine, I use it on several sites. It's not stable yet though, so upgrading may take a little bit of work, though I'll try and make that easy too. But the day-to-day running of it should be fine.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on November 12, 2007, 06:05:53 AM
There are lots of issues remaining in v0.7 and even in the 0.8 cvs... For instance, splitting and merging topics should bring unexpected results. I don't think it is advisable to use it on a production board, except if it's not huge and you can cope with following the beta release process.

Eldacar> Got a post waiting for you on your board ;)
Title: Re: Pretty URLs 0.9.2
Post by: distortedice on November 12, 2007, 06:14:59 AM
There are lots of issues remaining in v0.7 and even in the 0.8 cvs... For instance, splitting and merging topics should bring unexpected results ...

I do quite a bit of splitting and merging of topics but my forum is quite small.

What type of 'unexpected results' do you mean? When I tried merging and splitting a few topics on my test board it worked fine, albeit the URLs matched that of only one topic, but I'm not too bothered by that. Are there more serious problems I could encounter?

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 12, 2007, 06:19:27 AM
No, the only thing is that the new topics won't get pretty URLs.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on November 12, 2007, 06:55:57 AM
No, the only thing is that the new topics won't get pretty URLs.
Which we should start working on ;)
Title: Re: Pretty URLs 0.9.2
Post by: Smasher on November 12, 2007, 12:47:46 PM
Like what I am seeing... Installed the most recent package (uploaded 2 days ago) and everything went fine...
 
I remember reading though that there was TP support... is that a separate download that I am not seeing somewhere?
 
Thanks for a great mod...
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 12, 2007, 01:00:30 PM
Pretty much everything is in the base package now, and it still supports TP. It doesn't rewrite TP's articles though.
Title: Re: Pretty URLs 0.9.2
Post by: Smasher on November 12, 2007, 01:35:37 PM
That is why I was asking... I have a few articles that I noticed did not change the URL...

Is there something that prevents rewriting a URL for an article?

I was trying to figure out how to make the title of the article the end of the URL and then I had found this mod... and thought it was the answer...
 
I do thank you though for a great mod... it makes the rest of the site look so much better...
Title: Re: Pretty URLs 0.9.2
Post by: distortedice on November 12, 2007, 04:21:55 PM
No, the only thing is that the new topics won't get pretty URLs.

Meh, that's a minor thing. I'm not too bothered by a few topics having non-pretty URL's. Google isn't indexing my forum at all at the moment, so this mod will probably help quite a lot.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 12, 2007, 10:25:32 PM
Quote
Is there something that prevents rewriting a URL for an article?
I just haven't gotten around to writing one yet ;)

Now in TinyPortal I think there is an option to display the page name already, so it would be something like index.php?page=title rather than index.php?page=number

If that's the case it will be very easy to rewrite that into /page/title/
Title: Re: Pretty URLs 0.9.2
Post by: Smasher on November 13, 2007, 03:20:58 AM
Now in TinyPortal I think there is an option to display the page name already, so it would be something like index.php?page=title rather than index.php?page=number

If that's the case it will be very easy to rewrite that into /page/title/

I will have to look into that more.... thank you
Title: Re: Pretty URLs 0.9.2
Post by: Mick. on November 17, 2007, 07:56:44 PM
Well....after 48 pages i decided to upload this mod without issues yet.   We'll see what this thing does.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on November 19, 2007, 04:14:41 AM
I have converted Pretty URL .htaccess rules (generated for Apache) into the rewrite rules needed by nginx. And Pretty URL just works :)

In case some one is interested - please check this thread: http://www.simplemachines.org/community/index.php?topic=206578.0
Title: Re: Pretty URLs 0.9.2
Post by: DarrenDriven on November 22, 2007, 01:41:45 AM
Hey, just installed the latest version of SMF and the base pretty URL mod, worked flawlessly... then installed the profiles pretty URL mod and the index page of the forum refused to load... just white nothingness. Uninstalled the profiles mod and everything seems to work again.  Is this a known issue?  Paged through this topic a little, then realized it was almost 50 pages and figured it would be easier to ask. :)
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on November 22, 2007, 04:00:06 AM
You're aware that the Search box inside a topic will only search through this very topic, right? ;) (It's one of these little things I like in SMF...)
Title: Re: Pretty URLs 0.9.2
Post by: DarrenDriven on November 22, 2007, 01:02:45 PM
I hadn't realized that... but in doing so now I am still not sure of the problem.  I would assume that if the package didn't work on a new version of SMF it would say so on the package download page... but I didn't see that anywhere. 

Oh well, I uninstalled it and I will watch this topic for mention of anyone else having problems... or a solution.
Title: Re: Pretty URLs 0.9.2
Post by: Mick. on November 23, 2007, 12:51:15 PM
This mod will interfere with the arcade mod.

When users try to play a game, a message shows:

"You need to enable javascript in order to play games. "

I removed the this mod and the arcade is now playable.

Note*  when i installed the pretty url mod,i had no errors.


Something to look at if youre having arcade problems.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 25, 2007, 08:37:22 AM
viulian, interesting, is that httpd used widely? Maybe we could make it generate the rules for it automatically.

DarrenDriven and BlueDevil: try the latest snapshot on the downloads page (http://code.google.com/p/prettyurls/downloads/list)
Title: Re: Pretty URLs 0.9.2
Post by: Mick. on November 26, 2007, 05:35:12 PM
viulian, interesting, is that httpd used widely? Maybe we could make it generate the rules for it automatically.

DarrenDriven and BlueDevil: try the latest snapshot on the downloads page (http://code.google.com/p/prettyurls/downloads/list)
Hey this update "prettyurls-base_20071116.tar.gz" seems to work just fine.  Thanx.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on November 26, 2007, 06:11:13 PM
viulian, interesting, is that httpd used widely? Maybe we could make it generate the rules for it automatically.

Don't know exactly how spread it is.. This is a copy/paste from the author's website (http://nginx.net/):
Quote
nginx has been running for more than three years on many heavily loaded Russian sites including Rambler (RamblerMedia.com). In March 2007 about 20% of all Russian virtual hosts were served or proxied by nginx. According to Google Online Security Blog nginx serves or proxies about 4% of all Internet virtual hosts, although Netcraft shows much less percent.

I've mainly chosen it as I had to keep the memory consumption low, and the few people I saw blogging about nginx prised it's stability and no memory leaks. I intend to blog about it myself after a month or so to see how things go.

Here's another quote from this blog (http://hostingfu.com/article/nginx-vs-lighttpd-for-a-small-vps):
Quote
I have been using Lighttpd for almost a year and Nginx for a month on my servers. I know that they were created to be massively scalable, solving the C10k problem.

I think the technically aware people will start using lighttpd and nginx more and more, it's just that not being like Apache, its hard to convert. For lighttpd, for example, you need to rewrite Apache's mod-rewrite rules using LUA language (which myself I don't know) plus, as far as I read, they are server dependent, not directory dependent (as you would put in a .htaccess file inside in a directory).

But anyway, I am happy to use SMF + PrettyURL on a small OpenVZ VPS, and the results are impressive.
SMF 2.0 (I read a while ago) will also support PostgreSQL, I guess that would mean independence from MySQL too. As your module gives a lot of value to SMF, making it less Apache dependent will give a plus to SMF as a whole and give it a lot of flexibility.

Thank you for the clever way of only using a couple of rules  :D It only took me 4-5 hours to convert (understanding how things work with nginx included) instead of weeks!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 26, 2007, 08:52:10 PM
I know that for Lighttpd you have to put all the rules in a central config file. I was thinking (if people asked) that the mod could generate the rules and just put them in a text file for the user to copy over manually. Perhaps it would be possible to get SMF to modify that file directly. Might require nasty permissions though...
Title: Re: Pretty URLs 0.9.2
Post by: Riotblade on November 27, 2007, 11:45:23 AM
I just installed it and enabled filters.  I'm getting a blank index, anyone know why?

Okay I installed the latest snapshot and it works.  However, some topics aren't accessible and leads back to the topic index.  This topic in question contains a single quote(').  Is this the problem?

THanks
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 27, 2007, 07:52:51 PM
Did you have an older version installed before the snapshot? You have to clear the database entries for it to work.
Title: Re: Pretty URLs 0.9.2
Post by: Riotblade on November 27, 2007, 11:54:22 PM
Oh, how would I clear the database entries for it?
Title: Re: Pretty URLs 0.9.2
Post by: viulian on November 28, 2007, 12:12:00 AM
ܝܠܕܟ I think a wiki page should be made ( on http://code.google.com/p/prettyurls/w/list ) which describes these informations - too many people are asking how to do X or Y, which has already been answered a lot of times on the [now 49 pages length] topic.

Also, when I try to copy paste your name here - inserting it some text, I get the whole text put in reverse order!

Riotblade You should empty the tables: smf_pretty_topic_urls and smf_pretty_urls_cache [in case smf_ is your database prefix. If not, replace with your prefix.]

Then access the forum again. It will take a while till it answers (as it recomputes the content from those tables) but it should come back properly.

PS: make sure you empty them and not DROP them :) [in phpmyadmin those buttons are one next to each other and I dropped it one time; had to recreate the table structure from backup]
Title: Re: Pretty URLs 0.9.2
Post by: viulian on November 28, 2007, 01:06:45 AM
A separate issue: on my forum:

Database size: 94Mb
smf_pretty_urls_cache: 43Mb
smf_messages table: 35Mb
.....

I noticed that a lot of entries in the table also include the Forum URL..

For example, I have ~ 358,000 rows in that table. My Forum URL has a length of 33 chars. That means that removing the unnecessarily URL (which is the same, minus a couple of outside links) on all rows, I would save 11.81 Mb!

Memory is also an issue, as DumpDatabase.php limits the total amount of memory to be used during backup procedure to 128Mb.
For unaware people (just like me till last hour or so  O:) ) this will make the web backup procedure in SMF fail with an error such as:

Allowed memory size of 134217728 bytes exhausted (tried to allocate 50914081 bytes) in /usr/local/nginx/html/community/Sources/DumpDatabase.php on line 253

Issue is that you don't see this error, because if you let the default 'compress' on, the PHP script will die internally, and all you end up with is an 0 lenght .sql.gz file.

I just increased the memory to 256Mb - seems to be working so far :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 28, 2007, 01:45:38 AM
Riotblade, use this file: http://prettyurls.googlecode.com/svn/trunk/uninstall.php

Viulian, just empty the table before backing it up ;) That's what I always do.
I am working on making the cache table more efficient though.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on November 28, 2007, 01:55:58 AM
For example, I have ~ 358,000 rows in that table. My Forum URL has a length of 33 chars. That means that removing the unnecessarily URL (which is the same, minus a couple of outside links) on all rows, I would save 11.81 Mb!
My custom version of PrettyURLs removes $scripturl from the URL so it's much shorter in effect.
Also, in the future it will be possible (scheduled task) to clear the URL cache when a cache entry is too old. (Say, over one month.) I think Eldacar is planning to take it to the next level.
The ideal would be to delete an entry when it hasn't been used for a couple of days, but I don't know if it's possible to UPDATE a field when accessing a field in read mode... I don't think it is. (Or, it would take too much time to do. Performance is critical here.)
Title: Re: Pretty URLs 0.9.2
Post by: tkam on November 28, 2007, 04:22:10 PM
I get a "hacking attempt..." error message when I tried to install this mod.  I'm using the latest development snapshot version.  My forum is running smf 1.1.4 and the mods i have installed are:

1.     Auto Embed Video Clips      1.4   
2.    Gallery 2 Integration    1.0beta3.1    
3.    Fix Message Empty Error For Embed Video Mods    1.0    
4.    TinyPortal    0.983
5.    Remove Post Modified Time    1.1    
Title: Re: Pretty URLs 0.9.2
Post by: viulian on November 28, 2007, 07:59:44 PM
My custom version of PrettyURLs removes $scripturl from the URL so it's much shorter in effect.
Also, in the future it will be possible (scheduled task) to clear the URL cache when a cache entry is too old. (Say, over one month.) I think Eldacar is planning to take it to the next level.
The ideal would be to delete an entry when it hasn't been used for a couple of days, but I don't know if it's possible to UPDATE a field when accessing a field in read mode... I don't think it is. (Or, it would take too much time to do. Performance is critical here.)

These are good ideas, however, from my 'bird eye' view over the problem, they appear as 'hacks' which are trying to bring memory consumption down while trying to keep performance reasonable.
But there are still issues: if the scheduled task empties the links which are over 1 month old, all my links will probably get dropped (as I've just set up the table) and recreated after 1 month.
Then for the next 30 days nothing happens, then again, all is dropped and gets recreated.
About the other idea: what is faster, a query from an item is a big table, or computing it every time.. again, it depends on the hardware, available memory, load at that moment, etc.. Again, not a safe solution from my point of view.

I would just accept the cache size and that's it. It's scalable.
Small forum, small cache, no memory requirements, hosting price low.
Huge forum, huge memory requirements, lots of CPU power already there, it doesn't matter if cache was also high - you pay up a lot already - 512Mb more or less doesn't count.
Maybe, for huge forums, an option should be added to use a separate database just for cache, running on a dedicated computer connected with the given forum via a gigabit lan.

But I won't recommend on tweaking a clean code to the max just to squeeze some memory/performance.

When I posted, I was frustrated because I figured out why backups did not work [I wrote that Java SMF Backup using SMF' built in backup system]; having half of database for pretty URL seemed unnecessary. After a while, I realized that those 11Mb saved using $scriptUrl aren't in fact a big deal, database would have been 83Mb instead of 94Mb.

As long as this module is not part of the core for everything to happen instantly, without the need to intercept each URL and check it against a cache [I assume this is the way Pretty URL works, haven't checked], I accept it it's OK the way it is :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 28, 2007, 08:26:37 PM
tkam, anything in the error log?

viulian, the mod is designed to be optimised for runtime, not for backing it up. I think one huge table is the most efficient way to do this, as the index should (hopefully) mean that the entries can be found in the same speed regardless of the table length.
Title: Re: Pretty URLs 0.9.2
Post by: tkam on November 28, 2007, 08:37:45 PM
The error log shows the following:

Hacking attempt...

REPLACE INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (8, "welcome-everyone!"), (70, "regarding-discussion-in-the-for-sale-forums")

There's many more items listed after the "VALUES" so it looks like it's having problems at the stage where it's attempting to fill the pretty_url related tables in the DB.  Any ideas?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 28, 2007, 08:54:20 PM
Try adding this line before the query in Subs-PrettyUrls.php
Code: [Select]
$modSettings['disableQueryCheck'] = true;
Title: Re: Pretty URLs 0.9.2
Post by: Greyhound on November 28, 2007, 08:56:33 PM
Got a quick question....

I installed the pretty urls mod, great idea.  I like that it captures the forum name.  I changed one of my forum names but the url still shows the old forum name in the url link. 

Anyway to change that?  Thanks!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 29, 2007, 05:20:28 AM
Not easily, yet. If you uninstall it, delete the 'pretty_board_lookup' and 'pretty_board_urls' settings and then reinstall the mod, then you should get the new names.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on November 29, 2007, 06:51:30 AM
There's many more items listed after the "VALUES" so it looks like it's having problems at the stage where it's attempting to fill the pretty_url related tables in the DB.  Any ideas?
A possible reason: one of the topic titles got stripped to 70 characters, and it ended with a "-". And two of the topics had the same name (or at least the same first 70 characters), so Pretty URLs added a "-t" followed by the topic ID to differentiate them. Then we get two "--" in a row and your SQL server thinks it is a comment.

Obviously, PrettyURLs should deal with this and remove extra dashes in the final query...

$pretty_text = preg_replace('/-+/', '-', $pretty_text);
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 29, 2007, 07:49:07 AM
Ahhh, that explains how those two dashes got there!
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on November 29, 2007, 08:22:57 AM
Kind of a big problem which seems to have happened recently.

I get this on a white error page when trying to save a change to profiles which have content in the signatures:

Service Temporarily Unavailable

I do not get this error with blank signatures though.

My members also get it.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 29, 2007, 08:54:21 AM
Sure it's a problem with this mod? I don't see how that could possibly be affected.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on November 29, 2007, 12:04:15 PM
Ahhh, that explains how those two dashes got there!
I thought we had already discussed that? I wasn't aware about the whole "-- is a comment" thing, *you* taught me about it ;)
Title: Re: Pretty URLs 0.9.2
Post by: rehan on November 29, 2007, 01:28:21 PM
hi..
I installed it.. An i m getting this error on the right top of everypage ..

// Pretty URLs mod $txt['pretty_root_url'] = 'Pretty URLs root URL
(Without a final slash)
'; $txt['pretty_enable_filters'] = 'Enable URL filters
This may be a substantial performance hit
';

My theme is city scape is it all bcoz of the theme

I uninstalled it for now.. and i tried to install it manually via http://www.smfhacks.com/packageparser

but when i imported the package it says...
This is general information about the package, such as the package ID and name.
Package ID: vbgamer45:UserEmailSystem
Package name: User Email System
Package version: 1.2
Package type: modification
i blieve this is not prety url package.. i m confused... :s
Title: Re: Pretty URLs 0.9.2
Post by: L.G.S on November 29, 2007, 04:27:00 PM
Sure it's a problem with this mod? I don't see how that could possibly be affected.

That's what I thought, but I haven't changed anything nor has my host since it started happening, the only thing I can think of is PrettyUrls because most of my errors come from that when things are linked properly.... :S
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 29, 2007, 08:42:23 PM
Quote
I installed it.. An i m getting this error on the right top of everypage ..
Looks like there's a problem in your Modifications.english.php

Quote
That's what I thought, but I haven't changed anything nor has my host since it started happening, the only thing I can think of is PrettyUrls because most of my errors come from that when things are linked properly.... :S
Does it still happen if you disable pretty urls? Anything in the error log etc?
Title: Re: Pretty URLs 0.9.2
Post by: ketchup on November 29, 2007, 08:57:12 PM
I'm not seeing anything in the featues and settings that says activat pretty urls

all the packegs were intalled suscessfully

I am using default theme


Also i tried installing other mods and their functionality doesn't show up either I notice like feed poster link in admin area

this is new install
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on November 29, 2007, 10:52:59 PM
In 0.7 there'll be a small section in the Features and Options page. In the 0.8 snapshot there's a whole new section in the menu.

However if other mods aren't installing then it's probably a problem with your package manager and not this mod.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on November 29, 2007, 10:57:21 PM
viulian, the mod is designed to be optimised for runtime, not for backing it up. I think one huge table is the most efficient way to do this, as the index should (hopefully) mean that the entries can be found in the same speed regardless of the table length.

Yah, it's ok with me, it runs fast and does a good job! [Even if I have to admit it was a surprise to find out it doubled the database size :D ]

I am running a version I installed 3-4 months ago and it works properly [Version: 0.6; PrettyUrls-Filters]. I noticed that there are new releases - however... Is there a reason to upgrade :) ? I remember doing some patching so I would not want to go through diffs again, etc..

Thanks!
Title: Re: Pretty URLs 0.9.2
Post by: rehan on November 30, 2007, 12:36:13 AM
Looks like there's a problem in your Modifications.english.php

Yes i was also thinking the same.. coz in cityscape theme there's no file with this name is language folder..
I'll try to create an empty file with this name.. and try to install it again..
But still i think i shld install it manually.. I need ur suggetion's about its manuall installation...

Also one more thing will it convert the url's of  posts already made to pretty looking url's or it will only convert new post's that are made after the installation..?

Title: Re: Pretty URLs 0.9.2
Post by: Greyhound on November 30, 2007, 09:32:02 AM
OK, i have another question.  I like this mod.  I want to put it on another site that I have.  It is conflicting with one of the mods.  It installs OK but once pretty urls is installed it makes it so the Simple Awards Mod (http://custom.simplemachines.org/mods/index.php?mod=539) doesn't show the images.  Is the pretty urls changing an image directory link or something? 

Any ideas? 
Title: Re: Pretty URLs 0.9.2
Post by: ketchup on November 30, 2007, 12:19:46 PM
I'm just getting a white screen when I activate this...what do you think?
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on December 01, 2007, 11:11:43 AM
yeah, me too. All I get is a blank page. Tried 0.7 and the latest snapshot...

Now I can't even uninstall the mod. All I get is blank pages everywhere. How do I manually uninstall the mod?
Title: Re: Pretty URLs 0.9.2
Post by: BN on December 01, 2007, 11:55:10 AM
I just installed my new WiiHealthy Forum and I wanted to have the SEO friendly links, I have the pack installed.

http://www.wiihealthy.com/forum

I chose for HTML links in my adminboard, but the links don't work as you can see. Anyone who knows what to do?
Title: Re: Pretty URLs 0.9.2
Post by: Greyhound on December 03, 2007, 04:33:04 PM
OK, i have another question.  I like this mod.  I want to put it on another site that I have.  It is conflicting with one of the mods.  It installs OK but once pretty urls is installed it makes it so the Simple Awards Mod (http://custom.simplemachines.org/mods/index.php?mod=539) doesn't show the images.  Is the pretty urls changing an image directory link or something? 

Any ideas? 

I fixed my problem.  I just went in and hard coded the link that the awards should come from in display.template.  Works fine now. 

I am having no problems.  Just to note, I did not activate SEF before I installed the mod.  Not sure if that makes a difference or not will some of the issues others are having.
Title: Re: Pretty URLs 0.9.2
Post by: Col on December 04, 2007, 06:10:45 AM
Quote
If possible, I would like to keep the Pretty table (and whatever code I need) to keep the internal links working after I uninstall. Ideally, I would really like some way of using the existing Pretty table to produce permanent redirects for the search engines.
Hmm, what I'd do is to keep the mod installed but disable the filters. Then try making these two changes:
Display.php:
Code: (find) [Select]
if (isset($context['pretty']['oldschoolquery']) && $modSettings['pretty_enable_filters'])
Code: (replace) [Select]
if (!isset($context['pretty']['oldschoolquery']))
MessageIndex.php:
Code: (find) [Select]
if ((isset($context['pretty']['oldschoolquery']) || $_REQUEST['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Code: (replace) [Select]
if (!isset($context['pretty']['oldschoolquery']))

Thanks,

I did the above, and all seems well.

I notice that the smf_pretty_urls_cache table is enormous (85MB) - can I just click 'empty'?

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on December 04, 2007, 06:21:08 AM
Well, you should to that before backing up the database - because after you empty it, it will get repopulated on the first access on the forum and reach that size fast. I mean unless for the specific purpose of backing up the forum, there's no gain if you remove it.

Or at least that seems to be the behavior on my forum.
Title: Re: Pretty URLs 0.9.2
Post by: Col on December 04, 2007, 07:46:18 AM
Well,

I'm unsure of the purpose of the cache, but I have now deactivated Pretty URLs, and only need the redirects to work. I assume the cache continues to grow (whatever it is recording), because at that size if it is far bigger than the Messages and Personal Messages tables combined!

I've just had a look at the table, and it appears to log each and every action on the forum, or at least when it comes to posts. I imagine that with the cache cleared, and the filters turned off, it will remain at zero. I'll await Dannii/Eldecar's reply though.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 05, 2007, 09:34:22 AM
Quote
I am running a version I installed 3-4 months ago and it works properly [Version: 0.6; PrettyUrls-Filters]. I noticed that there are new releases - however... Is there a reason to upgrade :) ? I remember doing some patching so I would not want to go through diffs again, etc..
Yes there are some substantial changes. However to upgrade you'll first need to completely remove the old mod including all the database settings. It's not tricky.

Quote
Also one more thing will it convert the url's of  posts already made to pretty looking url's or it will only convert new post's that are made after the installation..?
All of them (except mod actions currently).

Quote
OK, i have another question.  I like this mod.  I want to put it on another site that I have.  It is conflicting with one of the mods.  It installs OK but once pretty urls is installed it makes it so the Simple Awards Mod (http://custom.simplemachines.org/mods/index.php?mod=539) doesn't show the images.  Is the pretty urls changing an image directory link or something? 
No it won't change the src attribute for images at all...

Quote
I'm just getting a white screen when I activate this...what do you think?
Errorlog etc?

Quote
yeah, me too. All I get is a blank page. Tried 0.7 and the latest snapshot...

Now I can't even uninstall the mod. All I get is blank pages everywhere. How do I manually uninstall the mod?
Try changing the pretty_enable_filters setting to 0.

Quote
I fixed my problem.  I just went in and hard coded the link that the awards should come from in display.template.  Works fine now
Ahh, was it using relative links?

Quote
I notice that the smf_pretty_urls_cache table is enormous (85MB) - can I just click 'empty'?
Sure.

Quote
I'm unsure of the purpose of the cache, but I have now deactivated Pretty URLs, and only need the redirects to work. I assume the cache continues to grow (whatever it is recording), because at that size if it is far bigger than the Messages and Personal Messages tables combined!
Hmm no if you've disabled the filters it shouldn't be growing any further. I think it should stay empty now.
Title: Re: Pretty URLs 0.9.2
Post by: Col on December 05, 2007, 12:22:15 PM
Quote
I'm unsure of the purpose of the cache, but I have now deactivated Pretty URLs, and only need the redirects to work. I assume the cache continues to grow (whatever it is recording), because at that size if it is far bigger than the Messages and Personal Messages tables combined!
Hmm no if you've disabled the filters it shouldn't be growing any further. I think it should stay empty now.

Hi,

No, I didn't mean to imply that it would still grow now that I've disabled the filters.

I imagine that with the cache cleared, and the filters turned off, it will remain at zero. I'll await Dannii/Eldecar's reply though.

My remarks were in response to Viulian:

Well, you should to that before backing up the database - because after you empty it, it will get repopulated on the first access on the forum and reach that size fast. I mean unless for the specific purpose of backing up the forum, there's no gain if you remove it.

Anyway, I'm glad to have confirmed that I can just go ahead and empty the cache table.

Can I delete the cache table too?

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on December 05, 2007, 01:18:41 PM
FYI:

Let's say that I have 3 child boards inside a parent, and I want the last one listed to become the first one listed. Usually I am able to click 'move' next to the last one and then select the parent and it will become the first one.

With Pretty URL active, I am unable to do that.
Tried on a server hosted on nginx - I get the message "An Error Has Occurred! -> The board you specified doesn't exist "
Tried on my windows test server running on Apache, I get logged out.
Disabled Pretty URL on local, it works.

So far I was able to manually change the boardOrder in the {dbprefix}_board and then "ALTER TABLE {dbprefix}_boards ORDER BY boardOrder" as I do not want to disable Pretty URL 'in production' :)
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on December 05, 2007, 04:10:26 PM
Just from memory: isn't this because the move operation uses something like "toboard" or "fromboard" in the URL, instead of just "board"?
I know I've fixed this in my own version of SMF2 (which I always insist Eldacar should use too ;)), it's simply a matter of making sure "board" is preceded by [?;&].
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 05, 2007, 09:36:34 PM
Quote
Can I delete the cache table too?
Um, probably. But empty tables really don't have much of a performance hit...

And yep, it's because it uses toboard I think. Should be fixed in the latest snapshot.
Title: Re: Pretty URLs 0.9.2
Post by: Riotblade on December 08, 2007, 12:21:26 PM
Great mod but I'm still having problems here and there.  Whenever I have pretty URL's on and go to some action pages, the page would be blank.  Also, if I try to access the child board through the parent board, it'll use the original unpretty URL and return a 404 error.  I've cleared my cache and everything prior to this.  Oh yeah, if I uncheck board pretty url, the pages would be ridirected infinitely and return an error.  If I uncheck all options but the main pretty url option, the same would happen.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 08, 2007, 05:15:01 PM
Are you using the latest snapshot? At least some of that sounds like things that have been fixed already.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on December 08, 2007, 08:44:42 PM
Hey Dannii, did you see my posts on the other board.....?
Title: Re: Pretty URLs 0.9.2
Post by: WAHS on December 09, 2007, 02:30:49 AM
Hello,

I installed v8 and the url works like a charm... but I realise that when I go inside boards and threads, I need to re-log in (the header shows the log in form). When I click "Home", it's logged in...

Why will this happen and how to solve this pls? Thanks...
Title: Re: Pretty URLs 0.9.2
Post by: Riotblade on December 11, 2007, 03:41:02 PM
Yes, I'm using the latest snapshot.  If those things should be fixed already, there might be some conflicting code left over by SMF's uninstallation system.  I should go over the code manually and check.
Title: Re: Pretty URLs 0.9.2
Post by: fangweile on December 14, 2007, 06:24:07 AM
I installed this mod(Snapshot 2007-11-16)   in my forum successfully but I am having problem with my custom gallery menu bar link. it displays this url when I try to view my custom gallery link
Quote
gallery/?pretty;action=gallery

There is no action for that link cause I directly link their my coppermine gallery. I can't now access my gallery page using the smf menu bar.

I tried to uninstall the mod and it uninstalled successfully. When I try to click my gallery link it display the error. I can't get it back. I already find the modified files but can't seem find the errors. :(

Hope someone could help, thanks in advance.  ;)
Title: Re: Pretty URLs 0.9.2
Post by: Dorian on December 15, 2007, 12:00:22 PM
I got some questions.
1. What does
Quote
# If you have changed the base URL to something different from $boardurl, you can install the actions-ext-none package too.
mean? How do I do that, so I get it working? I mean I can't change the base URL to be not the board URL because that'd mean my URL I am pointing to would be different form where I actually get to, right?

2. Would it be anyhow possible to get Child board trees into the URL tree? Changing the URL slug manually in the board options would be neat, too. :)
I'd do it myself, but I'm not that used to the SMF code... Help with this would be great.

Thanks in advance for answers.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 16, 2007, 07:13:16 PM
WAHS, do they all have the same subdomains etc? I don't think this mod could change how the login process works.

fangweile, Have a full link to the gallery?

Dorian:
Quote
mean? How do I do that, so I get it working? I mean I can't change the base URL to be not the board URL because that'd mean my URL I am pointing to would be different form where I actually get to, right?
it's probably badly written, but I mean adding something to the end of the base url like "forum", so that it looks like a subfolder, except it doesn't exist.

Quote
2. Would it be anyhow possible to get Child board trees into the URL tree? Changing the URL slug manually in the board options would be neat, too. :)
Not without lotssss of effort :P I doubt it's worth it.
Title: Re: Pretty URLs 0.9.2
Post by: cru on December 17, 2007, 07:25:10 AM
hi, Dannii

i have installed 0.8 from here,
http://prettyurls.googlecode.com/svn/trunk/Base/
and its doin good.

are there any updates? coz i see in the mod site its still 0.7
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 17, 2007, 07:05:32 PM
It takes a lot of time to get to the stage where I consider something worthy of being a complete version (and therefore being published on the mod site), however as a lot of people want to keep up with the changes I make, I've been uploading snapshots (http://code.google.com/p/prettyurls/downloads/list). I've been very busy for a month though, so I haven't made any recent changes sorry. But in the future that's the place to look.
Title: Re: Pretty URLs 0.9.2
Post by: cru on December 17, 2007, 10:18:23 PM
so is it safe to say that i don't have to upgrade to the  "snapshots", since im not having any issues with my 0.8?

TIA!
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on December 18, 2007, 02:45:15 AM
so is it safe to say that i don't have to upgrade to the  "snapshots", since im not having any issues with my 0.8?

TIA!
No. If you want to stay compatible--you'll have to upgrade. There are lots of changes ahead (for the better), so you really should. Still, no hurry for now. Wait for a future version.

PS: there's also the also of topic splitting/removing/merging which may or may not work on current versions. I've submitted the fix to eldacar/Dannii, I'm guessing he'll be implementing it in v0.8 as well.
Title: Re: Pretty URLs 0.9.2
Post by: mrzcn on December 19, 2007, 06:11:34 AM
there r another way to resolve turkish character problem without utf8 ?
 
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 19, 2007, 09:09:24 AM
If you have the mb string extension installed it should work I hope.
Title: Re: Pretty URLs 0.9.2
Post by: mrzcn on December 19, 2007, 09:12:24 AM
If you have the mb string extension installed it should work I hope.

 u said for me ?
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on December 19, 2007, 10:50:39 AM
Yes.
Or, try to replace this in Subs-PrettyUrls.php:
Code: [Select]
if ((empty($modSettings['global_character_set']) || $modSettings['global_character_set'] !== 'UTF-8') && function_exists('mb_convert_encoding'))
$text = mb_convert_encoding($text, 'UTF-8', 'auto');
You can first try to remove , 'auto' and save. If it doesn't work, replace the whole thing with:

Code: [Select]
if ((empty($modSettings['global_character_set']) || $modSettings['global_character_set'] !== 'UTF-8') && function_exists('utf8_encode'))
$text = utf8_encode($text);

It might work...
(eldacar, why isn't this implemented in the svn by default? One of many things you should really steal from my custom version...)
Title: Re: Pretty URLs 0.9.2
Post by: mrzcn on December 19, 2007, 11:40:24 AM
thanks for reply but it doesnt work still :(

Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on December 19, 2007, 04:20:50 PM
You have to uninstall the mod, delete the smf_pretty_topic_urls table and reinstall the mod after uploading the modified file...
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on December 19, 2007, 04:44:51 PM
Message for Eldacar/Dannii :)

(Writing to you both here, in your PM and on your forum, since I don't know which place you visit most ;) Just reply anywhere you like.)

I was thinking... Since you added a whole portion of code to make sure PHPSESSID isn't cached but is still retained in the final URL, why not do the same for "msg="...?
I've checked my database. For my last 30 cached URLs, 18 of them have a "msg=..." in it, and about 25 have msg=, at= or quote= in it (followed with a message ID). When I switch to another page in a board, it will cache another series of "msg=..." URLs with the same contents otherwise.

Actually, there are SEVEN new cached entries PER single message in a topic. That is, if I start reading a topic with 100 messages, in it, a total of 700 semi-useless entries will be cached, which could be saved just by doing a search/replace pattern for "(msg|at|quote)=[0-9]+".

I don't know exactly what will be the performance impact if this is done (there will probably BE a performance impact, since sending the REPLACE INTO query is quite fast in its own right), but I guess it won't be much different from a PHPSESSID search & replace, since PHPSESSID basically is on NO link at all, or on ALL of them.

Anyway, the point here is that I would like to avoid having the cache table reach sizes of 75-80MB like was mentioned by other users. I know this can be fixed by purging the table on a daily basis, but still, on huge boards, this is probably not the best solution.

Would like your opinion on that...
Title: Re: Pretty URLs 0.9.2
Post by: ryanhellyer on December 21, 2007, 03:24:06 PM
52 pages of reading and I still haven't found the answer to my question :(

I thought this post was the solution to my problem ...
Why is there a /0/ after the URL? For example, the topic "About" would be http://www.mydomain.com/about/0/
It's the equivalent to "?topic=xxx.0" where xxx is the topic ID.
0 is the message or topic index. "/about/50/" will show you the next 50 topics.
The latest PrettyURLs beta removes these useless zeros. Or read earlier pages of this topic for a quick hack to remove them.
... but I downloaded the latest Pretty URL's beta and it didn't fix the problem and I couldn't find a 'quick hack' in the earlier pages of the topic :(

Can anyone help/point me in the direction of the 'quick hack'?

I see that they're working on http://dev.eldacar.com/smf/ so it's possible.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on December 21, 2007, 04:53:57 PM
Uninstall prettyurls, delete your pretty urls mysql tables, and reinstall...
Title: Re: Pretty URLs 0.9.2
Post by: ryanhellyer on December 21, 2007, 05:11:23 PM
Uninstall prettyurls, delete your pretty urls mysql tables, and reinstall...

Ah, so it's meant to work out of the box then? But something went wrong?

I'll give your advice a bash though and see if that does the trick.

thanks,
Ryan
Title: Re: Pretty URLs 0.9.2
Post by: ryanhellyer on December 21, 2007, 05:19:54 PM
Uninstall prettyurls, delete your pretty urls mysql tables, and reinstall...

Tried that. But it didn't help :(
Title: Re: Pretty URLs 0.9.2
Post by: Dorian on December 21, 2007, 06:08:20 PM
I've got a suggestion. :)
Maybe I'm doing it the next days myself, or someone else does it, it doesn't really matter. But how about converting unicode UTF-8 characters into %<HEX-A>%<HEX-B> in the URLs as Wikipedia does this?
Just for those which can't be really expressed in latin letters. ;)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 21, 2007, 07:59:27 PM
Ryan, when did you explain your problem? I have no idea what you're talking about.

Dorian, Nao has tried something similar to that. I'll be looking into it sometime, but it's lower priority than the other stuff I'm working on.
Title: Re: Pretty URLs 0.9.2
Post by: ryanhellyer on December 21, 2007, 08:02:59 PM
Ryan, when did you explain your problem? I have no idea what you're talking about.

It was a few posts up the page. I'm just trying to strip out the zero's from the end of the URL's like you have in your dev forum ...

52 pages of reading and I still haven't found the answer to my question :(

I thought this post was the solution to my problem ...
Why is there a /0/ after the URL? For example, the topic "About" would be http://www.mydomain.com/about/0/
It's the equivalent to "?topic=xxx.0" where xxx is the topic ID.
0 is the message or topic index. "/about/50/" will show you the next 50 topics.
The latest PrettyURLs beta removes these useless zeros. Or read earlier pages of this topic for a quick hack to remove them.
... but I downloaded the latest Pretty URL's beta and it didn't fix the problem and I couldn't find a 'quick hack' in the earlier pages of the topic :(

Can anyone help/point me in the direction of the 'quick hack'?

I see that they're working on http://dev.eldacar.com/smf/ so it's possible.

Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on December 22, 2007, 03:34:47 AM
Maybe I'm doing it the next days myself, or someone else does it, it doesn't really matter. But how about converting unicode UTF-8 characters into %<HEX-A>%<HEX-B> in the URLs as Wikipedia does this?
Just for those which can't be really expressed in latin letters. ;)
Just visit Eldacar's forum, click on one of my posts, read through my list of latest posts and you'll probably find a copy of my custom version. It has flawless support for percent-encoded data, among other things. (Faster by 200 to 300%, less bugs...)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 22, 2007, 03:37:39 AM
Or just install the latest snapshot.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 26, 2007, 02:30:37 AM
There's a new snapshot to try, with some big changes. Check the changelog for details.
Title: Re: Pretty URLs 0.9.2
Post by: Mick. on December 26, 2007, 03:42:26 PM
I have an issue.

Im using your mod and when i go to whatever board and click a topic,it brings me back to the board index.  It doesnt take me to the topic i want to read. This doesnt happen to all topics,just some of them.

any ideas?

I uploaded your latest but it also happened on your previous version.
Title: Re: Pretty URLs 0.9.2
Post by: Assistance on December 26, 2007, 03:44:37 PM
is something suppose to happen when I click the maintenance icon ?
cause it takes me no where

also, no idea where this change log is...
Title: Re: Pretty URLs 0.9.2
Post by: Mick. on December 26, 2007, 03:53:58 PM
I have an issue.

Im using your mod and when i go to whatever board and click a topic,it brings me back to the board index.&nbsp; It doesnt take me to the topic i want to read. This doesnt happen to all topics,just some of them.

any ideas?

I uploaded your latest but it also happened on your previous version.


Ok....i found my problem not being able to read some topics.

If the topics has these simbol   '        like   michael's or  joe's in any word....it wont read the topic.

How can i correct this?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 26, 2007, 11:13:12 PM
Quote
is something suppose to happen when I click the maintenance icon ?
cause it takes me no where
Not yet.

Quote
also, no idea where this change log is...
http://prettyurls.googlecode.com/svn/trunk/changelog.txt

Quote
Ok....i found my problem not being able to read some topics.

If the topics has these simbol   '        like   michael's or  joe's in any word....it wont read the topic.

How can i correct this?
You were using an older version of the mod before upgrading to the snapshot? Before upgrading to a 0.8 snapshot you really have to completely uninstall the mod sorry. You can try using this tool: http://prettyurls.googlecode.com/svn/trunk/uninstall.php
I'll try to release another snapshot in a couple of days that would solve this problem so you don't have to uninstall it. Feel like waiting till then?
Title: Re: Pretty URLs 0.9.2
Post by: ryanhellyer on December 26, 2007, 11:15:41 PM
Can anyone help me with this? I'm going to get square eyes if I try to read through all of the posts in this topic again (I've read them twice so far). I'm sure the answer is staring me in the face, but I just can't find it :( It's possible, coz it's working in the Dev forum, but it won't work when I install the latest version on my own board :(


52 pages of reading and I still haven't found the answer to my question :(

I thought this post was the solution to my problem ...
Why is there a /0/ after the URL? For example, the topic "About" would be http://www.mydomain.com/about/0/
It's the equivalent to "?topic=xxx.0" where xxx is the topic ID.
0 is the message or topic index. "/about/50/" will show you the next 50 topics.
The latest PrettyURLs beta removes these useless zeros. Or read earlier pages of this topic for a quick hack to remove them.
... but I downloaded the latest Pretty URL's beta and it didn't fix the problem and I couldn't find a 'quick hack' in the earlier pages of the topic :(

Can anyone help/point me in the direction of the 'quick hack'?

I see that they're working on http://dev.eldacar.com/smf/ so it's possible.

Title: Re: Pretty URLs 0.9.2
Post by: Mick. on December 27, 2007, 05:32:21 PM
You were using an older version of the mod before upgrading to the snapshot? Before upgrading to a 0.8 snapshot you really have to completely uninstall the mod sorry. You can try using this tool: http://prettyurls.googlecode.com/svn/trunk/uninstall.php
I'll try to release another snapshot in a couple of days that would solve this problem so you don't have to uninstall it. Feel like waiting till then?

I can wait.  Thanx.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 27, 2007, 09:57:56 PM
ryanhellyer, did you install 0.7, or the latest snapshot?
Title: Re: Pretty URLs 0.9.2
Post by: ryanhellyer on December 27, 2007, 10:57:19 PM
ryanhellyer, did you install 0.7, or the latest snapshot?

prettyurls-base_0_7.tar.gz which I'm guessing is different from the latest snapshot?

In which case I'll go try the snapshot, or is that too buggy for use?

Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 28, 2007, 12:03:46 AM
No it's not buggy.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 30, 2007, 01:23:16 AM
New snapshot which should fix the problems people had upgrading from 0.7.
Also, the Actions filter has been rewritten and is now enabled by default.
Title: Re: Pretty URLs 0.9.2
Post by: Mick. on December 30, 2007, 04:52:27 PM
Thanx Dannii!

This update prettyurls-base_20071230.tar.gz  sure cleared the issues i was having.
Title: Re: Pretty URLs 0.9.2
Post by: Mick. on December 30, 2007, 06:30:14 PM
Thanx Dannii!

This update prettyurls-base_20071230.tar.gz&nbsp; sure cleared the issues i was having.

Just found something.  Although the new update works entirely in the forums,it doesnt work for TP 9.8

When editing an existing article or block,the code or html is not visible (blank).

I uninstalled the mod and i was able to finish the edit on the article.

Just something you should know.
Title: Re: Pretty URLs 0.9.2
Post by: Mick. on December 30, 2007, 06:35:19 PM
I found a way to keep the mod running. I "unchecked" actions in the settings.

Now i can see and edit blocks & articles with the "pretty url" mod active.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on December 30, 2007, 08:04:47 PM
Quote
Just found something.  Although the new update works entirely in the forums,it doesnt work for TP 9.8

When editing an existing article or block,the code or html is not visible (blank).
Very strange...
Title: Re: Pretty URLs 0.9.2
Post by: IbrahimA on January 01, 2008, 11:05:52 PM
Hmm, I just installed version 0.7, enabled it and found that it has bugs with ' so I uninstalled via your script and installed the snapshot but now I can't find the option to enable pretty urls. Err, ok I just found it by looking at the source but why is there a link without any text? The control panel looks very nice btw.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 01, 2008, 11:07:48 PM
There should be a link to in the side panel. If there's no text, it sounds like the language entries are broken. You using another language? At the top of your language's Modifications.language.php file add:
Code: [Select]
require_once(dirname(__FILE__) . '/Modifications.english.php');
Title: Re: Pretty URLs 0.9.2
Post by: Dorian on January 02, 2008, 09:18:49 PM
Hmm, I just installed version 0.7, enabled it and found that it has bugs with ' so I uninstalled via your script and installed the snapshot but now I can't find the option to enable pretty urls. Err, ok I just found it by looking at the source but why is there a link without any text? The control panel looks very nice btw.
Simple: You're using a custom theme, and have not made the appropriate changes to the settings.template.php or additionally, you don't have entered the appropriate variables to your modifications.(insert your language here).php Am I right? :)
I'm going to hack up the SMF code now, hehe. :)
Title: Re: Pretty URLs 0.9.2
Post by: Chadrew on January 09, 2008, 03:39:14 AM
 This is a very nice plugin indeed! I only had some trouble with Lithuanian characters, had to add some, and then delete cached ones in database since they wouldn't change.

 Here's a thing though, when I changed the board name, the URL stayed the same...
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 09, 2008, 04:37:46 AM
Yeah the board names stuff isn't finished yet.
Title: Re: Pretty URLs 0.9.2
Post by: Goad on January 09, 2008, 02:08:26 PM
I installed this mod and now im getting 404's on all pages.....is there any way i can disable this mod?
Title: Re: Pretty URLs 0.9.2
Post by: Goad on January 09, 2008, 02:09:41 PM
i cant find anything i can edit easily in the database to turn this damn thing off.
Title: Re: Pretty URLs 0.9.2
Post by: Goad on January 09, 2008, 02:28:25 PM
i cant find anything i can edit easily in the database to turn this damn thing off.

got it....had to remove the "on" entry from pretty_enable_filters   ...i was changing it to "off"
Title: Re: Pretty URLs 0.9.2
Post by: Goad on January 09, 2008, 02:32:02 PM
soooo.....now, does anyone have any idea why i instantly got 404's on all pages of my site? in the database, my pretty_root_url entry is correct

using prettyurls-base_20071230.tar.gz on smf 1.1.1
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 09, 2008, 08:16:48 PM
Are mod_rewrite and per-directory configuration (.htaccess) enabled on your server?
Title: Re: Pretty URLs 0.9.2
Post by: Goad on January 10, 2008, 01:34:21 PM
Are mod_rewrite and per-directory configuration (.htaccess) enabled on your server?

now this makes me curious....

root = no .htaccess
root/webroot = .htaccess is there, but its empty
root/webroot/website (where my domain.com points to) = no .htaccess

i have never had a reason to go into my .htaccess, shouldn't I have something there?
Title: Re: Pretty URLs 0.9.2
Post by: eleven0 on January 10, 2008, 05:40:06 PM
can someone tell me why there is "/0/" at the end of every link...?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 10, 2008, 09:36:57 PM
Quote
now this makes me curious....

root = no .htaccess
root/webroot = .htaccess is there, but its empty
root/webroot/website (where my domain.com points to) = no .htaccess

i have never had a reason to go into my .htaccess, shouldn't I have something there?
There should be one in your forum's directory. Does the PHP user have write permission?

Quote
can someone tell me why there is "/0/" at the end of every link...?
That's the page number, though in the snapshots it's been removed.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on January 12, 2008, 03:17:29 AM
I have a question... if you search: "site:lovetime.ro "dor de tine"" you will end up with a lots of these URLs:

www.lovetime.ro/community/psihologie/dor-de-tine/105/
www.lovetime.ro/community/psihologie/dor-de-tine/msg51655/
www.lovetime.ro/community/psihologie/dor-de-tine/msg13194/
.....

Which seem to be individual pages, but each message is considered a separate web page (because it has it's own URL).

Now, I knew that Google will actually drop the page ranking if content is duplicate, and it seems that on my site, after 4-5 months since running Pretty URL, from Google point of view, there are lots of duplicate content.

I am wondering if this is a real problem.. and if there are some solutions for it ?

Thanks!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 12, 2008, 04:24:35 AM
Have you edited your templates somehow? Those message pages should have the noindex meta tag.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on January 12, 2008, 05:28:31 AM
As far as I know, it has the flag only on my version of SMF.
Basically, if you look at Display.php, it sets the flag when ".from" or ".new" is used. Not with ".msg". You can "fix" this by setting $context['robot_no_index'] = true; right after // Duplicate link!  Tell the robots not to link this.
What's even better, is to add, just before // Figure out all the link to the next/prev/first/last/etc. for wireless mainly., this code:

Code: [Select]
if (!empty($context['robot_no_index']) && function_exists('ob_googlebot_getAgent'))
if (ob_googlebot_getAgent($_SERVER['HTTP_USER_AGENT'], $spider_name, $agent))
redirectexit('topic=' . $topic . '.' . (($context['page_info']['current_page']-1) * $context['messages_per_page']), false, true);

Of course, in order for this to do something, you need to install the "Googlebot & Spiders" mod. Or you can use SMF 2.0's own spider detection system, but I'm not using it for now so I can't provide you with code for this. (I think it's $user_info['possibly_robot'])
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on January 12, 2008, 08:34:14 AM
Now, I knew that Google will actually drop the page ranking if content is duplicate, and it seems that on my site, after 4-5 months since running Pretty URL, from Google point of view, there are lots of duplicate content.

I am wondering if this is a real problem.. and if there are some solutions for it ?
You can also edit your robots.txt file in the root directory to include some of the following lines. This is mine for my forum. The last one is for those msg urls
Code: [Select]
User-agent: *
Disallow: /cgi-bin/
Disallow: /index.php?action=activate
Disallow: /index.php?action=admin
Disallow: /index.php?action=arcade
Disallow: /index.php?action=calendar
Disallow: /index.php?action=collapse
Disallow: /index.php?action=deletemsg
Disallow: /index.php?action=editpoll
Disallow: /index.php?action=help
Disallow: /index.php?action=helpadmin
Disallow: /index.php?action=lock
Disallow: /index.php?action=login
Disallow: /index.php?action=logout
Disallow: /index.php?action=markasread
Disallow: /index.php?action=mergetopics
Disallow: /index.php?action=mlist
Disallow: /index.php?action=modifykarma
Disallow: /index.php?action=movetopic
Disallow: /index.php?action=notify
Disallow: /index.php?action=notifyboard
Disallow: /index.php?action=pm
Disallow: /index.php?action=post
Disallow: /index.php?action=profile
Disallow: /index.php?action=register
Disallow: /index.php?action=removetopic2
Disallow: /index.php?action=reporttm
Disallow: /index.php?action=search
Disallow: /index.php?action=sendtopic
Disallow: /index.php?action=splittopics
Disallow: /index.php?action=stats
Disallow: /index.php?action=sticky
Disallow: /index.php?action=trackip
Disallow: /index.php?action=unread
Disallow: /index.php?action=unreadreplies
Disallow: /index.php?action=who
Disallow: /Themes/

Disallow: */msg
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on January 12, 2008, 10:08:26 AM
Your robots.txt file will forbid Google from visit these pages, right...?
Then it will have more trouble indexing the latest posts.
My solution allows it to visit the latest pages, and be redirected to the page that should be indexed. It works well on my website. Try it (search for "site:nao.cyna.fr nao")
I would also recommend putting this somewhere in Post() in Post.php:

Code: [Select]
// Spiders should not be able to index a Post template
$context['robot_no_index'] = true;

This is because Google will index your answer page if guest posting is enabled. I just found out that my nao.cyna.fr website has this problem.
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on January 12, 2008, 10:48:00 AM
Your robots.txt file will forbid Google from visit these pages, right...?
Then it will have more trouble indexing the latest posts.
Yes, it will stop Google from visiting that page, but since it is duplicate content, it won't matter because it will still index your main unblocked page that you want to have indexed. I prefer this method, because GoogleBot won't have to follow all those duplicate links and redirections. So it should index your site much faster.

You do have a point about the latest posts though. With the robots.txt method, there will only be a new url for Google to index if the posts are enough to make a new page. The content of the pages will still change with each post though.
But I'm not sure if that would even make a difference, since Google will not necessarily read the new page if it is redirected from a new msg url, if that url is already in it's cache.
Will do some tests ;)
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on January 12, 2008, 10:57:22 AM
Yes, it will stop Google from visiting that page, but since it is duplicate content, it won't matter because it will still index your main unblocked page that you want to have indexed.
I think Google is more likely to visit your homepage more often than the rest. So, if a .msg link there can't be visited, it won't update the page until it reaches it via the traditional browsing method. Which means new messages won't be indexed immediately. That's the way I see it, at least.

Quote
I prefer this method, because GoogleBot won't have to follow all those duplicate links and redirections.
Well, one thing that could be improved, is setting to "nofollow" flag on message links (i.e. the links that are found at the beginning of every message in a display page). Because, basically, these links lead Google to exactly the same page.

Quote
But I'm not sure if that would even make a difference, since Google will not necessarily read the new page if it is redirected from a new msg url, if that url is already in it's cache.
Will do some tests ;)
I think it's worth it...
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on January 12, 2008, 11:08:43 AM
Update: from what I can see (at least on SMF 2.0), SMF already adds "nofollow" to most of its .msg links.
It doesn't use $message['link'] though (which has nofollow), for individual posts I mean, it only uses a hardcoded link with $message['href'] as the target. I've modified this to add the rel="nofollow" flag.
Hopefully this will have an influence... Although Wikipedia says Nofollow shouldn't be used for search engines and doesn't work very well for telling spiders not to follow a link:
http://en.wikipedia.org/wiki/Nofollow
Title: Re: Pretty URLs 0.9.2
Post by: viulian on January 12, 2008, 12:04:49 PM
Thanks for the response guys.

Dannii - you are right. With the default theme, I get <meta name="robots" content="noindex" /> added in the page content, but with the narenciye theme I am using, it is not there.

I did not know to pay attention to these :) I have to investigate and add this the noindex thing to the other template. It didn't even cross my mind to check this. I hate it. Oh well...

Thanks for the updates, I'll also follow the other advices (robots.txt updates) seems to be much cleaner!
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on January 13, 2008, 05:19:06 PM
I'm still having problems with the latest snapshot. Looks like there is some php error that causes it to exit. There is no error messages and now errors in the log and all I get is a blank page on all my forum urls. I have to revert to using 0.3 since its working fine...

I tried removing all modifications - no difference. I also tried the uninstall.php script.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 13, 2008, 08:51:12 PM
Anything in the php error log (not SMF's)?
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on January 14, 2008, 01:34:49 AM
Not that I can see... where is the default location for the php error log. If it is the file error_log in the forum directory, there is no errors reported.
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on January 14, 2008, 03:14:34 AM
I found the problem. Still no errors in the error log though.
The problem was with my theme when including code for http://www.crawltrack.fr/
It worked fine with the last version of pretty urls I used though (0.3). What could cause this incompatibility?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 14, 2008, 03:33:00 AM
What's the code you included?
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on January 14, 2008, 04:11:53 AM
Sorry for the bother. I think I have it under control now. I upgraded to the latest version of crawltrack and moved the included code for crawltrack from the theme template to the index.php file as recommended on their site.

Looks like everything is working fine now - thanks for your patience ;)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 14, 2008, 04:23:03 AM
Hmm weird. But if it's working now, that's great :).
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on January 14, 2008, 05:42:28 AM
It seems that not all the boards and topics are working. I still get blank pages for some boards and topics. I tried reinstalling and rebuilding the database (I used the uninstall.php on the google code site).

I get the following smf error.

Code: [Select]
Hacking attempt...

INSERT INTO `bluegray_smf`.smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (11, "the-locator-locates!-(danie-krugel)")
File: /root/forum/Sources/PrettyUrls-Filters.php
Line: 139
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 14, 2008, 06:00:07 AM
That's the full query?
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on January 14, 2008, 06:06:03 AM
yeah, there are some other values, but they are all similar to the one I posted. (13, "recommended-reading"), (143, "promises-promises") etc.
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on January 14, 2008, 02:04:21 PM
Looks like it is line 316 in Subs.php
Code: [Select]
log_error('Hacking attempt...' . "\n" . $db_string, $file, $line);that causes the log error.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on January 14, 2008, 05:25:04 PM
Hey there.
Dannii, as your website has been down for some time now (like a week), I'm forced to post here about this.

I'm officially announcing my retirement as a co-developer of PrettyURLs.
It just so happens that my work was never used in PrettyURLs, except maybe for a couple of cool ideas I had. I was not credited anywhere either. I constantly submitted my custom changes to Dannii, with many solutions to problems people encountered, but apparently it was never good enough.

Today, I finally upgraded my prod website to SMF 2.0 and am using my custom version of PrettyURLs to "emulate" my previous version's hardcoded URL prettifier. It seems to be working okay and I will probably add more functionality in the future, but I will not do this in a mod file any longer, I will directly hardcode it into my prod website, just as I do the rest of my custom programming. So it means it'll be harder for me to share my code, and as the code I previously shared was never put to use by Dannii, I think it's time to stop trying and call it quits.

Thanks to Dannii for sharing a lot of his good PHP coding practices, though. It was very helpful for me. And kudos to a great mod!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 14, 2008, 06:46:51 PM
Oh, thats a shame, cause in the work I haven't commited yet I have both added you to the credits/licence file, and add in your UTF8 conversion code.

That said, you were always welcome to make changes yourself rather than offering them to me. Your suggestions were usually quite good, but just not in the part of the program I was thinking about at that time.

Anyways, thanks for your help!
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on January 15, 2008, 03:07:36 AM
I tried installing 0.7 which gave me all blank pages again, but it fixed the database hacking errors I've been getting with the latest snapshot. I reinstalled 0.8 again and touch wood, all pages look ok so far.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on January 15, 2008, 04:24:54 AM
Oh, thats a shame, cause in the work I haven't commited yet I have both added you to the credits/licence file, and add in your UTF8 conversion code.
As I already said -- you're free to use my improvements. And you're free to credit me for them, of course ;)
It just means I'm stopping most of my work on PrettyURLs. It works just as intended on my website now. The only thing left to do for me is to allow different URL types, and I'll do that the hardcoded way anyway.
Not sure if I'll implement the actions filter either -- I'll probably manually implement things like /help/ and /profile/ but nothing more.

Quote
That said, you were always welcome to make changes yourself rather than offering them to me.
I've always made changes myself. Whether or not I had to share them with you was really up to me. I'm actually glad I did it, you know ;) I spent ten years working on closed-source software, it can be a little boring at times.

Quote
Your suggestions were usually quite good,
I know  :P

Quote
Anyways, thanks for your help!
You're welcome. Good luck for improving what is already a great mod ;)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 15, 2008, 08:36:04 AM
Quote
I tried installing 0.7 which gave me all blank pages again, but it fixed the database hacking errors I've been getting with the latest snapshot. I reinstalled 0.8 again and touch wood, all pages look ok so far.
Cool. Keep me posted if you get more errors.

Quote
I've always made changes myself. Whether or not I had to share them with you was really up to me. I'm actually glad I did it, you know ;) I spent ten years working on closed-source software, it can be a little boring at times.
Oh you didn't have to share them, that's why it's BSD licenced. I meant though that you could have committed changes rather than posting them up. Anyways, doesn't matter. You've got good code you're happy with now, and I had someone to talk through some of the more complex issues in the mod. Happiness all round!
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on January 15, 2008, 01:16:28 PM
Oh you didn't have to share them, that's why it's BSD licenced. I meant though that you could have committed changes rather than posting them up.
No... It's your baby, I preferred to see you integrate my ideas into your existing code.

Quote
Anyways, doesn't matter. You've got good code you're happy with now, and I had someone to talk through some of the more complex issues in the mod. Happiness all round!
You can still come to me if you have any troubling matters of course!
Your website seems to be dead and at one point I'll end up closing this permanent tab, but I'm still available here on this topic and via PM...
Title: Re: Pretty URLs 0.9.2
Post by: Kleidi on January 20, 2008, 05:13:17 PM
this mod has problems with " and : . If a forum name is "Test forum" this mod didn;t make it readable and when you click on that forum you will have a 404 error. Any idea how to resolve it?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 20, 2008, 07:37:29 PM
Are you using the latest snapshot?
Title: Re: Pretty URLs 0.9.2
Post by: Lurker28 on January 22, 2008, 03:00:43 PM
Okay, after uninstalling this mod it does not "fix" my urls.

I can not go to my files and even if I enter in "fake" exentions it still pops up with my website (no errors).

for instance here is my website www.ordusinferi.com (http://www.ordusinferi.com)
www.ordusinferi.com/butt (http://www.ordusinferi.com/butt)
www.ordusinferi.com/fixthis (http://www.ordusinferi.com/fixthis)

The last two are not even real paths, but it uses them anway, problem being is I have other urls on the website that are covered by my SMF forum....even after uninstalling the pretty urls, anyone know how to fix this?
Title: Re: Pretty URLs 0.9.2
Post by: Angelotus on January 22, 2008, 03:10:05 PM
WTF???? I installed and got the message: ...hacking attempt!

After that the package manager say that the mod isn't installed but all my files are modified and I receive all kinds of errors!!!

Quote
Notice: Undefined index: pretty_board_urls in /storage/mijndomein/users/073949/public/sites/www.klifix.eu/u/index.php on line 85

and

Quote
Notice: Undefined index: pretty_board_urls in /storage/mijndomein/users/073949/public/sites/www.klifix.eu/u/SSI.php on line 85

Notice: Undefined index: pretty_board_urls in /storage/mijndomein/users/073949/public/sites/www.klifix.eu/u/SSI.php on line 90

Notice: Undefined index: pretty_board_urls in /storage/mijndomein/users/073949/public/sites/www.klifix.eu/u/SSI.php on line 95

HELP PLEASE!!!!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 22, 2008, 11:16:29 PM
Quote
The last two are not even real paths, but it uses them anway, problem being is I have other urls on the website that are covered by my SMF forum....even after uninstalling the pretty urls, anyone know how to fix this?
If you've uninstalled the mod, just delete the .htaccess file. If you want to keep using the mod, add an extra rewrite rule at the top that makes those folders open themselves.

Quote
WTF???? I installed and got the message: ...hacking attempt!

After that the package manager say that the mod isn't installed but all my files are modified and I receive all kinds of errors!!!
Try running the install.php file again. Also, try upgrading to the 0.8 snapshot too, it might possibly help with the "hacking attempt" problem.
Title: Re: Pretty URLs 0.9.2
Post by: viulian on January 29, 2008, 05:28:26 AM
I'm back with another question..

One of my moderators tried to split a topic (the last message in fact, wanted to create a separate thread from it), and ended up with a new thread that didn't have it's URL computed properly:

Instead of :

http://www.lovetime.ro/community/poezii-de-dragoste/dorinta-t6075/0/

It was only:

http://www.lovetime.ro/community/poezii-de-dragoste/6075/0/

(This created issues when someone tried to rename the new thread etc - such as 'you're not allowed to access this section' or 'there's an error in your SQL near t.ID_TOPIC' etc...)

To fix the error:
1) I manually inserted the mapping <6075, dorinta-t6075> in the pretty_topic_urls (there was nothing there with the ID_TOPIC being 6075).
2) I had to manually clear the pretty_urls_cache using:
DELETE FROM smf_pretty_urls_cache WHERE replacement LIKE '%6075%'

And now it works.

Was this ever reported before, maybe there's a quick fix?

If not, I'll try to do further testing, but I am behind with Pretty URL code version also [i'm affraid to upgrade!].
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on January 29, 2008, 06:41:40 AM
You could also try with my custom version...  ;)
When you split a topic, the subject is updated in the table dedicated to subject search. My version simply rebuilds the pretty URL at the same place.
(It's SMF2 only, though. You'd have to re-convert it back to 1.1.4)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 29, 2008, 07:37:09 AM
viulian, I think those issues should be fixed in the latest snapshot. You're also very welcome to try Nao's code if he sends it to you.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on January 29, 2008, 08:51:30 AM
viulian, I think those issues should be fixed in the latest snapshot. You're also very welcome to try Nao's code if he sends it to you.
Naaah, (hey my code is available on your board... If it's still online ;))
I simply forgot that your latest snapshot had an alternative way of checking for new topics. Which works just as well :)
Title: Re: Pretty URLs 0.9.2
Post by: viulian on January 29, 2008, 04:41:31 PM
Ok guys, I'll give it a go in the weekend :). Maybe it's time for upgrade after all.
I'm sorry for cluttering the thread by reporting bugs that were already fixed.

Nao 尚, as I'm not yet a Charter Member, I only have 1.1.4 versions around; for the time being and to not consume everybody's time with eventual questions about back porting 2.0 code back to 1.1.4, I guess I should stick with the defaults from Pretty URLs - and upgrade to yours after that..

But I have to check the new code [including yours] and see what it offers before deciding what I have to do.

Thanks :)
Title: Re: Pretty URLs 0.9.2
Post by: Col on January 30, 2008, 08:07:04 AM
Hi Dannii,
 
I removed this mod v=back in November, per your instructions: http://www.simplemachines.org/community/index.php?topic=146969.msg1301522#msg1301522 (http://www.simplemachines.org/community/index.php?topic=146969.msg1301522#msg1301522) and have noticed no problems.
 
Because I kept most of your code in place to allow the redirects to continue working, I've just come across a bug - perhaps you have already addressed it though? If a '/' is included in the title of new thread, it generates a hacking attempt notice.
 
From the error log:
 
Quote
REPLACE INTO smf_pretty_topic_urls (ID_TOPIC, pretty_url)
VALUES (7169, "post-benzo-still-can\'t-sleep-wo-supplements")
File: /home/xxxxxx/public_html/forum/Sources/Subs-Post.php
Line: 1601

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 30, 2008, 08:50:26 AM
Yeah that would be fixed by now.
Is anyone still using the old URLs? You could remove the mod, or just comment out that part of Subs-Post.php, I don't think it's important in your situation.
Title: Re: Pretty URLs 0.9.2
Post by: Col on January 30, 2008, 09:13:00 AM
Is anyone still using the old URLs? You could remove the mod, or just comment out that part of Subs-Post.php, I don't think it's important in your situation.

You mean anyone at my forum?
 
There are existing internal links within the forum, so I kept the mod so the redirects would still work. I'd prefer to keep the mod for that reason. I'll have a look in Subs-Post.php, but I'm not sure what code I should be commenting out. Maybe it's obvious though. What if I updated the mod? Though I'd first have to change back those code changes I made.
 
Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on January 31, 2008, 08:04:32 AM
It's adding urls for new topics, which will never be used, so I'd just comment out the query. The error messages says the line number.
Title: Re: Pretty URLs 0.9.2
Post by: eslao on February 02, 2008, 05:44:47 AM
hi,mod dont convert the turkish charecters for example Ü must be u but dont,
wwww.cumhuriyetcafe.org/ataturk-kosesi/0 original txt is Atatürk Köşesi
but its like this
http://www.cumhuriyetcafe.org/atatrk-kesi/0/
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 02, 2008, 07:41:12 AM
Are you using UTF-8? The mod is designed to work with that encoding, and may sometimes work with others, but not as well.
Title: Re: Pretty URLs 0.9.2
Post by: eslao on February 02, 2008, 08:34:49 AM
im not usuing utf-8 but in other forums that not use utf-8 it works correctly
Title: Re: Pretty URLs 0.9.2
Post by: cassie on February 02, 2008, 11:00:23 AM
I'm having an apparent conflict between Pretty URLs and the Karma Description Mod. It appears to be recent because was never a problem before.

Inside the Karma log, you have the option of showing a link so that you can see the thread that a person gave you karma in. It says "In Topic" and if you click on the link, it takes you to that thread.

It looks like Pretty URLs is putting the message number on the link in twice. It looks like this

http://website.com/bb///0/?-topic-on-the-board.msg63643#msg63643

So the link doesn't go to the topic, it goes to the front page of the board.

I tried uninstalling and reinstalling Pretty URLs and it fixed it for about 2 minutes, then it did this again.

Any ideas? It isn't a biggie but if I could fix it I would.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 03, 2008, 05:36:54 AM
cassie, are you using 0.7 or a 0.8 snapshot?
Title: Re: Pretty URLs 0.9.2
Post by: cassie on February 03, 2008, 09:55:02 AM
I'm using 0.7. 
Title: Re: Pretty URLs 0.9.2
Post by: viulian on February 03, 2008, 02:44:42 PM
cassie, I too stumbled on some problems with the 0.7 and the general consent is to upgrade before reporting bugs that might have already been fixed in 0.8 version :)
So if you upgrade, the guys will assist you with the problems..

Dannii Here's what Google tells me:
URLs not followed
When we tested a sample of the URLs from your Sitemap, we found that some URLs were not accessible to Googlebot because they contained too many redirects.

It suggests that I write directly the 'destination' URL instead the principal one so it doesn't go through all of those redirects.

:D

I think I need to rewrite the sitemap algorithm (I'm using one I wrote myself as it still contains normal style URL).

So I have two questions:
a) Can you give me a short example please, on having a topic ID (let's say 1546) how to properly construct the Pretty URL from it ? (so I can update my sitemap.xml code). What queries should be done? (generics needed, I can figure it out locally, but as a starting point).
b) Will Pretty URL be active in SMF 2.0 ?

Thanks!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 03, 2008, 05:46:11 PM
Quote
So I have two questions:
a) Can you give me a short example please, on having a topic ID (let's say 1546) how to properly construct the Pretty URL from it ? (so I can update my sitemap.xml code). What queries should be done? (generics needed, I can figure it out locally, but as a starting point).
Just including SSI.php on the page that's outputted should be enough.

Quote
b) Will Pretty URL be active in SMF 2.0 ?
Yes, 0.8 already supports it, though not the latest beta.
Title: Re: Pretty URLs 0.9.2
Post by: cassie on February 03, 2008, 05:53:54 PM
Sorry to be a little confused...

From what I can tell in the Mods section 0.7 is the latest version. There is a "snapshot" version released in dec 2007. Is that a beta? Not familiar with "snapshot."

Should I be upgrading to the snapshot version?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 03, 2008, 11:46:21 PM
Yes use the latest snapshot from Dec 07. When you install it it will say 0.8, but it's not the official 0.8 release if that makes any sense. 0.8 isn't ready, but because people really needed the features in 0.8, I started releasing snapshots too.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on February 04, 2008, 04:02:14 AM
You haven't worked much on 0.8 recently have you? Actually I think you haven't committed any change since I left the team.
Why not simply release it as is? The only thing that won't work is SMF2 support...
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 04, 2008, 06:26:41 AM
Yeah. Maybe.
Title: Re: Pretty URLs 0.9.2
Post by: cassie on February 04, 2008, 08:59:54 AM
Do I need to uninstall 0.7 before installing the snapshot? If so, do I need to delete any tables from the database?

Thank you for all your help. I LOVE this mod and I hope it will continue to be developed and tweaked  :)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 04, 2008, 07:42:33 PM
Yes uninstall 0.7, but don't delete any tables.
Title: Re: Pretty URLs 0.9.2
Post by: riker on February 05, 2008, 06:40:04 AM
I get this error every time I try it and thats the message on two different smf forums both using 1.1.4

Quote
// Pretty URLs mod $txt['pretty_root_url'] = 'Pretty URLs root URL
(Without a final slash)
'; $txt['pretty_enable_filters'] = 'Enable URL filters
This may be a substantial performance hit
';
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 05, 2008, 09:16:44 AM
Looks like your modifications.english.php file is corrupt. Check that there's only one ?> and that it's at the very end of the file.
Title: Re: Pretty URLs 0.9.2
Post by: cassie on February 05, 2008, 10:29:54 AM
That fixed it! Thanks for your help everyone  :)
Title: Re: Pretty URLs 0.9.2
Post by: riker on February 05, 2008, 03:56:40 PM
Looks like your modifications.english.php file is corrupt. Check that there's only one ?> and that it's at the very end of the file.

Just started a forum from scratch today and tried this on it and got the same error so their can't be bad files in all three SMF forums
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 05, 2008, 06:31:56 PM
Quote
Just started a forum from scratch today and tried this on it and got the same error so their can't be bad files in all three SMF forums
The server could be doing something silly?
Title: Re: Pretty URLs 0.9.2
Post by: riker on February 06, 2008, 02:53:04 AM
Quote
Just started a forum from scratch today and tried this on it and got the same error so their can't be bad files in all three SMF forums
The server could be doing something silly?

two sites on one host and my main one is on another
Title: Re: Pretty URLs 0.9.2
Post by: riker on February 06, 2008, 03:32:56 AM
Another error messege I've found

Quote
2: unlink(/srv/www/vhosts/***.info/httpdocs/forum/Sources/Subs-PrettyUrls.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /srv/www/vhosts/***.info/httpdocs/forum/Sources/Subs-Package.php
Line: 1047

Rmember the mod installed each time with no error so these only happen when trying to us it
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 06, 2008, 09:20:02 AM
Yeah it definitely sounds like there's a problem with the server... permissions set incorrectly perhaps?

Have you had problems with any other mods?
Title: Re: Pretty URLs 0.9.2
Post by: riker on February 06, 2008, 10:15:23 AM
Thats what I thought the problem was until I setup a forum from scratch and still had the problem
Title: Re: Pretty URLs 0.9.2
Post by: tomate on February 08, 2008, 05:57:19 AM
hello,

I need your help.
Pretty URL mod is installed and works, but I have something weird : sometimes, characters like 'é' or 'è' are not changed by a simple 'e', but replaced with "andeacute" ! It looks like &acute
Or sometimes just squeezed ...

for example, I have a board named "Discussions générales" and pretty urls changed it by "discussions-gandeacutenandeacuterales"

What can I do to replace "andeacute" with "e" ?

Thanks.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 08, 2008, 08:34:09 AM
Hi tomate, this mod is designed for use with the UTF-8 database encoding. If you convert your database to UTF-8, use the "convert entities" tool you should be able to reinstall this mod and it should work a lot better.
Title: Re: Pretty URLs 0.9.2
Post by: tomate on February 08, 2008, 08:50:26 AM
my database is already using UTF-8 encoding ;)
and I have already reinstalled the mod twice, droping the two tables, but no effect :/
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on February 08, 2008, 10:57:21 AM
Latest snapshot?
Title: Re: Pretty URLs 0.9.2
Post by: Lurker28 on February 08, 2008, 04:47:50 PM
Okay, after uninstalling this mod it does not "fix" my urls.

I can not go to my files and even if I enter in "fake" exentions it still pops up with my website (no errors).

for instance here is my website www.ordusinferi.com (http://www.ordusinferi.com)
www.ordusinferi.com/butt (http://www.ordusinferi.com/butt)
www.ordusinferi.com/fixthis (http://www.ordusinferi.com/fixthis)

The last two are not even real paths, but it uses them anway, problem being is I have other urls on the website that are covered by my SMF forum....even after uninstalling the pretty urls, anyone know how to fix this?

So I deleted the htaccess.txt but I still have the issue with the pretty urls, trying to create paths that are not there. Any other ideas?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 09, 2008, 04:18:00 AM
my database is already using UTF-8 encoding ;)
and I have already reinstalled the mod twice, droping the two tables, but no effect :/
Did you use the entities tool? Your topic titles are using entities!

Quote
So I deleted the htaccess.txt but I still have the issue with the pretty urls, trying to create paths that are not there. Any other ideas?
What do you mean it's trying to create paths that aren't there?
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on February 09, 2008, 05:34:47 AM
Did you use the entities tool? Your topic titles are using entities!
Since you told me it was in your plans, I'd recommend you implement my rewritten conversion function into your next snapshot ASAP. Plus, it works perfectly on ISO-8859-x character sets.
Title: Re: Pretty URLs 0.9.2
Post by: tomate on February 09, 2008, 01:11:01 PM
I have those installed :

Pretty URLs - Profiles - Extention: none      0.7
Pretty URLs - Base      0.7
Pretty URLs - Actions - Extention: none      0.6
Title: Re: Pretty URLs 0.9.2
Post by: mrzcn on February 09, 2008, 02:29:15 PM
arcade games dont working when i install this mod.
error showing while open about java..
please help
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 09, 2008, 09:44:46 PM
tomate, did you use the entities tool?

mrzcn, use the latest snapshot.
Title: Re: Pretty URLs 0.9.2
Post by: mrzcn on February 10, 2008, 07:11:25 AM
Quote from: Dannii link=topic=146969.msg1418737#msg1418737 date=1202611486

mrzcn, use the latest snapshot.
[/quote

sorry i dont understand ? snapshot ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 10, 2008, 07:55:57 AM
http://code.google.com/p/prettyurls/downloads/list
Get the top file, uninstalling 0.7 first.
Title: Re: Pretty URLs 0.9.2
Post by: tomate on February 11, 2008, 02:35:34 AM
tomate, did you use the entities tool?

mrzcn, use the latest snapshot.
entities tool ? what do you mean ?
I installed the 3 packages of the mod using the smf admin interface
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on February 11, 2008, 03:42:09 AM
"Convert entities to utf8" or something. This option should be available in the Maintenance menu once you convert your database to utf8.
It allows your database to get rid of all &eacute; (and such) entities, which are turned into their utf8 equivalent, such as é.
Title: Re: Pretty URLs 0.9.2
Post by: tomate on February 11, 2008, 05:16:41 AM
"Convert entities to utf8" or something. This option should be available in the Maintenance menu once you convert your database to utf8.
It allows your database to get rid of all &eacute; (and such) entities, which are turned into their utf8 equivalent, such as é.
ho yes, I used these tools to convert to UTF-8
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 11, 2008, 05:50:45 AM
Well if you did then you shouldn't have any entities in your topic titles anymore. Can you try it again perhaps?

And after you have, remember to completely uninstall it with http://prettyurls.googlecode.com/svn/trunk/uninstall.php
Title: Re: Pretty URLs 0.9.2
Post by: tomate on February 11, 2008, 06:16:55 AM
I have done thatn but still the same problem :/

I think there are still some &eacute; somewhere in the database or in the sources ....
I have to replace them with UTF-8 code ?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 11, 2008, 06:42:43 AM
Where are they appearing, topic or board names?
Title: Re: Pretty URLs 0.9.2
Post by: Kleidi on February 11, 2008, 07:41:59 AM
Are you using the latest snapshot?
That mean?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 11, 2008, 07:45:50 AM
Get the 2007-12-30 snapshot from http://code.google.com/p/prettyurls/downloads/list
Title: Re: Pretty URLs 0.9.2
Post by: tomate on February 11, 2008, 08:09:33 AM
Where are they appearing, topic or board names?
yes
sometimes there are andeacute, sometimes there is nothing
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 11, 2008, 08:23:56 AM
Yes, but in board or topic names?
Title: Re: Pretty URLs 0.9.2
Post by: Igor Warneck on February 11, 2008, 05:22:29 PM
Hello!
I installed the actuall mod on a clean installation (utf-8 german). I have APC as Cache. Could this matter??? In hard testing the board crashed and I've only seen a blank page.

Is there anywhere outthere a little tutorial or something else, how to install and tune Pretty Urls, or have I read 58 pages here in the forum ... ???

Thanks very much,
Igor
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 11, 2008, 07:47:59 PM
APC should work fine, I use it.
Anything in the error logs? (SMF, PHP, Apache etc)
Title: Re: Pretty URLs 0.9.2
Post by: Igor Warneck on February 12, 2008, 01:14:46 AM
Ok. Let's give a realy try :)

I reenabled APC.

At Settings caption I have marked:
All without ACTION

The Section Enable URL rewriting
URL rewriting filters I cant understand and it is not marked.

The SMF told no error.

So we will go and wait for the next crash and will have then a look. I could go to the admin menu, but not on frontpage.

Igor
Title: Re: Pretty URLs 0.9.2
Post by: tomate on February 12, 2008, 04:28:57 AM
Yes, but in board or topic names?
both :/


well, I think SMF does not store messages, topic names, etc... in UTF-8 in my database !
Title: Re: Pretty URLs 0.9.2
Post by: Igor Warneck on February 12, 2008, 08:40:50 AM
I tried to change it and set the tables to utf8-general - now we will see what happens.

Another easy question :)

In the Pretty Urls Admin I can find two tabs. The first Tab is now enabled, the second tab not. What is the reason of this setting?

thanks a lot! It's raly a nice tool and I will love it a lot if we can kill the problems :)
Title: Re: Pretty URLs 0.9.2
Post by: Igor Warneck on February 12, 2008, 09:04:16 AM
Here now my first error:

Hacking attempt...

INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (173, "focus-pakistan-zwei-beamten-der-atombehorde-entfuhrt"), (174, "focus-mohammed-karikaturen-attentat-auf-zeichner-verhindert"), (175, "focus-cinema-for-peace-joschkas-standchen-fur-den-frieden"), (176, "focus-kleiderwahl-spears-ahnelt-prostituierter"), (177, "focus-1-fc-nurnberg-roth-zeigt-meyer-rot"), (178, "focus-kenia-90-prozent-weniger-besucher"), (179, "(gb)-lg-neue-touchscreen-handys-und-slider"), (180, "focus-microsoft-neues-office-auf-den-mac-t180"), (181, "focus-fleischproduktion-schlachtrekord-bei-schweinen"), (182, "focus-tarifvertrage-union-gegen-mindestlohn-fur-zeitarbeit")
Datei: /var/www/web16/web/Sources/PrettyUrls-Filters.php
Zeile: 139
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 12, 2008, 09:45:40 AM
Quote
well, I think SMF does not store messages, topic names, etc... in UTF-8 in my database !
Then it's not really using UTF-8. You'll have to ask for help to convert it in the support boards.

Quote
In the Pretty Urls Admin I can find two tabs. The first Tab is now enabled, the second tab not. What is the reason of this setting?
The maintenance page is being worked on now (slowly).

Quote
Here now my first error:

Hacking attempt...
Hmmm, I can't see what the problem would be there. Does it work if you add this before line 135?
Code: [Select]
$modSettings['disableQueryCheck'] = 1;
Title: Re: Pretty URLs 0.9.2
Post by: Igor Warneck on February 12, 2008, 10:31:13 AM
The error came up from the Feed Machine - now it works - waiting for the next crash ... If it crashes again I will try the disable QueryCheck.

Thank You!
Title: Re: Pretty URLs 0.9.2
Post by: samvirtual on February 12, 2008, 06:52:53 PM
I am getting these errrors on accessing some of the messages on the board. This happens only when a user is logged on, does not happen with guests, happens only with a few of the messages on the board, and only when pretty urls is on. I am using pretty urls mod for url rewriting. If i turn this feature off, none of the messages on the board show this error.

Another interesting thing i discovered just now, is that if i change the title of the message to "choosing a residency program" the errror does not occur. Does that mean using the word "selecting" in a title counts as a hacking attempt.?


Code: [Select]
Hacking attempt...

INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (300, "selecting-a-residency-program")
File: /home/usmle2/public_html/forums/Sources/PrettyUrls-Filters.php
Line: 139
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 13, 2008, 02:52:49 AM
Hmm, it would be "select" not "selecting"... but that's very weird. If you keep getting the error you can try adding this before line 135 on PrettyUrls-Filters.php:
Code: [Select]
$modSettings['disableQueryCheck'] = 1;
Title: Re: Pretty URLs 0.9.2
Post by: tomate on February 13, 2008, 03:16:44 AM
ok I think it is good now
I wondered why i had so strange caracters in my database, and I think the reason is there :
http://docs.simplemachines.org/index.php?topic=865

in fact, i first used pretty URLs, and when i see the problems with "french" caracters i started to use UTF-8
but in fact i only used the convertion in the admin panel
all that was stored previously in the DB with andeacute or else, i had to replace using sed ! :D

i think now all is good, as you can see : http://www.fiestast.fr
:)
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 13, 2008, 06:36:14 AM
Good to hear it's working fine now :)
Title: Re: Pretty URLs 0.9.2
Post by: tomate on February 14, 2008, 02:12:51 AM
yes everything is ok now, i am very happy ! :)
Title: Re: Pretty URLs 0.9.2
Post by: Jpg on February 16, 2008, 06:50:46 PM
Is there anyway to make the profiles something cleaner?

Like yourdomain.com/username instead of-

 yourdomain.com/profile/username

edit-
Nvm got it.

edit-
If you go to select User Stats or Show Posts, etc...how do you make it so it goes, for example-

yourdomain.com/profile/"username";sa=showPosts
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 17, 2008, 09:02:02 AM
Quote
If you go to select User Stats or Show Posts, etc...how do you make it so it goes, for example-

yourdomain.com/profile/"username";sa=showPosts
It should do yourdomain.com/profile/"username"?sa=showPosts normally.
Title: Re: Pretty URLs 0.9.2
Post by: Shonick on February 17, 2008, 11:45:20 AM
Quote
To install:

    * Download and install the base package from the mod site.
    * Enable the filters in the Features and Options page
    * If you have changed the base url to something different from $boardurl, you can install the actions-ext-none package too.

I have done the first two parts. When I go to my board. I hover the mouse on the link, it shows me the pretty url, but I click on it I got 404 page.

What exactly the third step mean. I get confuse and do not understand what it mean. My forum on http://domain.com/forum/

Please help me to make it work.

Thank you very much.
Title: Re: Pretty URLs 0.9.2
Post by: Jpg on February 17, 2008, 01:54:49 PM
Is it possible to make subdomains for the stats, admin, and actions?

Like- stats.yourdomain.com instead of yourdomain/stats?
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on February 17, 2008, 05:49:59 PM
You'll have to program your own filter for that -- or at least change the output URL to match your needs. It can be done easily when you have some knowledge in PHP. I'm currently playing with my profile links -- http://user.cyna.fr/Nao/ or http://cyna.fr/~1/ -- anything I like... Nice to know :)
Title: Re: Pretty URLs 0.9.2
Post by: Jpg on February 17, 2008, 08:15:36 PM
You'll have to program your own filter for that -- or at least change the output URL to match your needs. It can be done easily when you have some knowledge in PHP. I'm currently playing with my profile links -- http://user.cyna.fr/Nao/ or http://cyna.fr/~1/ -- anything I like... Nice to know :)

I tried doing it, but I don't have access to my server's http.conf file.

So far, all I have is my users set to-
yourdomain.com/username
It goes along side with the other pretty urls.
Actions have the extra "/".
Title: Re: Pretty URLs 0.9.2
Post by: Shonick on February 17, 2008, 10:29:01 PM
Quote
To install:

    * Download and install the base package from the mod site.
    * Enable the filters in the Features and Options page
    * If you have changed the base url to something different from $boardurl, you can install the actions-ext-none package too.

I have done the first two parts. When I go to my board. I hover the mouse on the link, it shows me the pretty url, but I click on it I got 404 page.

What exactly the third step mean. I get confuse and do not understand what it mean. My forum on http://domain.com/forum/

Please help me to make it work.

Thank you very much.

Can anyone help me with this please?

After downloading,installing and enabling the filters in the Features and Options page. I got 404 page when I click on the link in my forum.

I put my forum at http://mydomain.com/forum
and .htacess at http://mydomain.com/forum

Please help.

thank you very much.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 17, 2008, 11:20:22 PM
Does your server support .htaccess and mod_rewrite?
Title: Re: Pretty URLs 0.9.2
Post by: Shonick on February 18, 2008, 01:11:05 AM
Yes, it is. I am using it for my main website and .htaccess in the root folder. I also have another .htaccess locate at domain.com/default

The .htaccess for pretty url is located at http://domain.com/forum

That means now I have total 3 .htaccess files.

I do not know if there are any problem with the one for forum pretty url.

do we have to do any else? I just download the latest snapshot and install it. I also enable it in the admin control. I got the same problem before.

Do I have to do anything else after those steps?






Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 18, 2008, 01:21:35 AM
You need to check if the one in the root folder is conflicting.
Title: Re: Pretty URLs 0.9.2
Post by: Shonick on February 18, 2008, 03:49:35 PM
Thanks, how can I check it. I do not know .htaccess language.

Can you please check for me
this is my file
Code: [Select]

RewriteEngine on
RewriteRule .*(<|>|;|UNION|SELECT|WHERE).* /go.html [QSA,NC,L]
ErrorDocument 404 http://mydomain.com/error.html


Thank you
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 18, 2008, 08:12:16 PM
You can just remove that... I think it's trying to protect against injections, but it's probably quite useless.
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on February 19, 2008, 04:17:30 AM
Yes. SMF already removes UNION statements from queries. And the upcoming SMF2 does a great deal to completely shut down possible malicious injections.
Title: Re: Pretty URLs 0.9.2
Post by: Shonick on February 19, 2008, 05:56:08 PM
I know, but I need it for my main site,not for forum.

So, if I keep it there, is there any way to make pretty url mod to work with my forum.

Or can I move the .htaccess for pretty url to the root. If so, how can I do it?

Thank you
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 19, 2008, 06:45:30 PM
You can, just add /forum/ to both the pattern and before index.php
Title: Re: Pretty URLs 0.9.2
Post by: Shonick on February 19, 2008, 11:26:52 PM
Sorry for silly question. I do not know much about .htaccess

Is this correct?

Code: [Select]
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: February 18, 2008, 22:07

RewriteEngine on

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./forum/index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./forum/index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./forum/index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./forum/index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

RewriteRule .*(<|>|;|UNION|SELECT|WHERE).* /go.html [QSA,NC,L]
ErrorDocument 404 http://mydomain.com/error.html

or

Code: [Select]
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: February 18, 2008, 22:07

RewriteEngine on
RewriteBase /forum

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

RewriteRule .*(<|>|;|UNION|SELECT|WHERE).* /go.html [QSA,NC,L]
ErrorDocument 404 http://mydomain.com/error.html

If I want to use the second one. I guess there will be an error for
Code: [Select]
RewriteRule .*(<|>|;|UNION|SELECT|WHERE).* /go.html [QSA,NC,L]right?

If so, how can I correct it.

Thank you.
Title: Re: Pretty URLs 0.9.2
Post by: bluegray on February 20, 2008, 03:51:17 AM
I'm trying to make a custom sitemap and I am getting the pretty urls directly from the database. But I noticed that certain characters like apostrophes are converted to a '' character (hex value 12).
Is there something wrong with my database settings? Or is this normal, and how do I convert it to something usable?

Thanks

BTW. I see the database entries is in latin1_swedish_ci, and I'm pretty sure I converted ti utf a while back. I don't see anything in the admin to do it again...
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 20, 2008, 07:42:27 AM
viet, try this:
Code: [Select]
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: February 18, 2008, 22:07

RewriteEngine on

# Rules for: boards
RewriteRule ^forum/([-_!~*'()$a-zA-Z0-9]+)/?$ ./forum/index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^forum/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./forum/index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^forum/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./forum/index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^forum/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./forum/index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

RewriteRule .*(<|>|;|UNION|SELECT|WHERE).* /go.html [QSA,NC,L]
ErrorDocument 404 http://mydomain.com/error.html

bluegray, that character is being used instead of a single quote, so you can do a simple str_replace. Encodings shouldn't matter for this mod's tables, though if the main smf tables aren't correct you should fix that.
Title: Re: Pretty URLs 0.9.2
Post by: Shonick on February 20, 2008, 07:22:11 PM
Thank you very much for your help. Now, it still does not work for me :P.

I think I should stop this for a while. I am really busy now. When I have time, I will check back this mod again. It is wonderful.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 20, 2008, 08:07:51 PM
Well it should work if you just remove the other .htaccess, but okay.
Title: Re: Pretty URLs 0.9.2
Post by: RickJ on February 21, 2008, 10:33:19 AM
I LOVE this mod.  It's an awesome seo tool!  I've got it on 7 forums and it works fine on all but one:

www.forum.bib-arch.info.

On the features and options page, there is no text for the Filters box (see attached).

When I check the box the mod works fine EXCEPT for our admin only boards.  With the filters enabled, we get the following when going to an admin only baord:

404 Not Found
The requested URL /font-color%5C'0000ff%5C'admin-and-moderator-discussionsfont/0/ does not exist.

Can you help us with a workaround?

Thanks!
Title: Re: Pretty URLs 0.9.2
Post by: lonrot on February 21, 2008, 12:43:40 PM
I have two big issues.

1) When I write something in the shoutbox, I'll be redirected to 404 not found, even though the message will be posted when I reload. Shoutbox is part of TinyPortal Mod.

2) There are three boards which are uncassesible since I installed Pretty URLS, and even if I uninstall and reinstall again they will keep being 404.

Please check this example:
Board Name: Consolemaniak News
Pretty Address: http://consolemaniak.com/consolemaniak%5C's-news/0/
Real Address: http://consolemaniak.com/index.php/board,1.0.html
If I manually remove the "%5C'" part, the board will show up correctly!

Help me out please!!!
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 22, 2008, 12:58:44 AM
RickJ, check your modifications.english.php.
You should completely uninstall the mod removing the database settings, remove the font tags from your boards, and then install the mod again. Hopefully that will work.

lonrot, are you using the 0.8 snapshot?
Title: Re: Pretty URLs 0.9.2
Post by: RickJ on February 22, 2008, 07:24:40 AM
RickJ, check your modifications.english.php.
You should completely uninstall the mod removing the database settings, remove the font tags from your boards, and then install the mod again. Hopefully that will work.

Thanks, Dannii.  Will try that.
Title: Re: Pretty URLs 0.9.2
Post by: lonrot on February 22, 2008, 04:47:00 PM
lonrot, are you using the 0.8 snapshot?

Nope.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 22, 2008, 06:50:25 PM
Well you should try it :)
Title: Re: Pretty URLs 0.9.2
Post by: Dorian on February 23, 2008, 09:58:30 AM
Well you should try it :)
How about finally making it the 0.8 version or writing that into the first post?
There's just one bug with the rewriting of actions. Maybe you should check the admin panel out and confirm all links to be working properly. ;)
And... it's somehow bugging me to be redirected to the board index.
Do you have a fix for this already? I'd prefer a 404 or similar 400 type error when the board or thread isn't present. I'm trying to change that stuff myself now, but I want to stay in sync with your code, though. This in par with major bugs you discovered and fixed...
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 23, 2008, 10:10:11 AM
Quote
How about finally making it the 0.8 version or writing that into the first post?
I will when I feel it's ready, which it's not, so I won't, yet.

Quote
There's just one bug with the rewriting of actions. Maybe you should check the admin panel out and confirm all links to be working properly. ;)
Which link?
Title: Re: Pretty URLs 0.9.2
Post by: Dorian on February 23, 2008, 10:38:24 AM
I will when I feel it's ready, which it's not, so I won't, yet.
Well, at least write it somewhere, that if they have some issues with 0.7 the 0.8 snapshot might fix it. ;)

Quote
Which link?
For example $scripturl .'/news' or some links in the package manager.
I can't recall which ones it all were, you know, I need my admin panel. :)
Title: Re: Pretty URLs 0.9.2
Post by: Nibogo on February 23, 2008, 05:18:27 PM
where i can see a demo of this mod?
Title: Re: Pretty URLs 0.9.2
Post by: Nao 尚 on February 23, 2008, 05:42:46 PM
I don't remember any other links (dev.eldacar.com/smf/ has been down for so long), but in the meantime you can try mine: http://cyna.fr/
It's largely modified (SMF2 version, boards are sub-domains and topic IDs are included in the URL to make it easier to rename topics without losing the original links), but it's pretty much the real thing.
Title: Re: Pretty URLs 0.9.2
Post by: goldenboy48 on February 23, 2008, 08:36:23 PM
Ok right after installing on my forum, all of the my forum went down except for the frontpage that is supported by TinyPortal. Please help. Is the mod working on the changing everything? Will everything be back soon or do I have to upload a backup?

I get this error message

Not Found

The requested URL /forum/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a mod_auth_passthrough/2.1 FrontPage/5.0.2.2635 mod_bwlimited/1.4 PHP/5.2.4 Server at ecric.net Port 80
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 23, 2008, 09:49:19 PM
Link to your site? Does your server support mod_rewrite and .htaccess?
Title: Re: Pretty URLs 0.9.2
Post by: goldenboy48 on February 23, 2008, 09:58:33 PM
http://eCric.net

Please help...I can't afford any downtime.

I'm with MonteCarlo Hosting [ http://montecarlohosting.net/ ] so you might know if they support that stuff.

I can't even uninstall it cuz I can't access anything.

http://code.google.com/p/prettyurls/downloads/list

I downloaded 1230 from there...the top one.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 23, 2008, 10:14:06 PM
Ask your host if they support it.
In the mean time, try running this query in phpmyadmin:
Code: [Select]
UPDATE smf_settings SET value = '0' WHERE variable = 'pretty_enable_filters'
Title: Re: Pretty URLs 0.9.2
Post by: goldenboy48 on February 23, 2008, 10:25:49 PM
Ok. I ran the query [Hopefully I did ok cuz this is like the 2nd time I visited PHPMyAdmin....

My site is up :D

but the links are NOT PRETTY. :S What do we do about that?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 23, 2008, 10:48:59 PM
Well you need to check if the mod will actually work on your server's hardware before turning it on again.
Title: Re: Pretty URLs 0.9.2
Post by: goldenboy48 on February 23, 2008, 10:58:45 PM
It works fine on my test site

http://ecric.net/smftest/general-discussion/welcome-to-smf!/

http://ecric.net/smftest/index.php

Mods installed on my site:

1.     Internal Links Use Same Window      1.1       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    GoogleTagged    1.2    [ Uninstall ] [ List Files ] [ Delete ]
3.    Auto Embed Video Clips    2.1.2    [ Uninstall ] [ List Files ] [ Delete ]
4.    Custom Action Mod    2.04    [ Uninstall ] [ List Files ] [ Delete ]
5.    Custom Profile Field Mod    3.17    [ Uninstall ] [ List Files ] [ Delete ]
6.    Redirection Boards    2.01    [ Uninstall ] [ List Files ] [ Delete ]
7.    Karma Description Mod    2.3    [ Uninstall ] [ List Files ] [ Delete ]
8.    Award Mod    1.11    [ Uninstall ] [ List Files ] [ Delete ]
9.    Attachments layout    1.3    [ Uninstall ] [ List Files ] [ Delete ]
10.    FavIcon    1.1    [ Uninstall ] [ List Files ] [ Delete ]
11.    Fix Message Empty Error For Embed Video Mods    1.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    Image Thumbnail BBCode    1.0    [ Uninstall ] [ List Files ] [ Delete ]
13.    PM On Registration    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
14.    SMF Ajax Registration Feedback    1.0.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    Wrap Text Around Image    1.0    [ Uninstall ] [ List Files ] [ Delete ]
16.    SearchResultsMod    1.0    [ Uninstall ] [ List Files ] [ Delete ]
17.    LinkImageToOriginalSize    1.0    [ Uninstall ] [ List Files ] [ Delete ]
18.    Trim Url    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
19.    Profile Comments    1.3.5    [ Uninstall ] [ List Files ] [ Delete ]
20.    Popup PM Message - Uses The Same Window    1.3    [ Uninstall ] [ List Files ] [ Delete ]
21.    Enhanced Quick Reply Box 2.0.2    2.0.2    [ Uninstall ] [ List Files ] [ Delete ]
22.    Pretty URLs - Base    0.8    [ Uninstall ] [ List Files ] [ Delete ]
23.    Signature BBCode Bar    1.4    [ Uninstall ] [ List Files ] [ Delete ]
24.    DailyMotion BBC Tag (XHTML Compliant)    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
25.    Invite    1.14    [ Uninstall ] [ List Files ] [ Delete ]
26.    Ad Managment    2.3    [ Uninstall ] [ List Files ] [ Delete ]
27.    Automatically Email Inactive Ordinary Users    1.0    [ Uninstall ] [ List Files ] [ Delete ]
28.    New Topic Button    1.0    [ Uninstall ] [ List Files ] [ Delete ]
29.    Signature Settings Mod    1.1    [ Uninstall ] [ List Files ] [ Delete ]
30.    TinyPortal    0.983    [ Uninstall ] [ List Files ] [ Delete ]
31.    View Topic Permissions    1.1.0a    [ Uninstall ] [ List Files ] [ Delete ]
32.    Force Reason for Deletion    1.0    [ Uninstall ] [ List Files ] [ Delete ]
33.    SMF Archive    1.1    [ List Files ] [ Delete ]
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 23, 2008, 11:29:08 PM
Ahh excellent.
Well next thing to check is all of your error logs just in case there's something useful there.
And please copy your .htaccess file.
Title: Re: Pretty URLs 0.9.2
Post by: goldenboy48 on February 23, 2008, 11:44:03 PM
Ok. Nothing in the forum error log related to "Pretty URLs".

But for some damn reason, I don't see .htaccess in my cPanel File Manager. It appears in the search results of the File Manager but not actually in the File Manager. Any other ways to access it?

Edit: I see .htaccess in Core FTP Lite. But when I try to edit it in Notepad there is nothing in it :|

Then I tried renaming it to htaccess.txt and then edit but same result. Nothing in .htaccess.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 23, 2008, 11:52:18 PM
Yeah it won't say pretty URLs, but are there any recent errors? And check the apache and php error logs too.
That's cause it's a hidden file, but you should be able to access it still...
Title: Re: Pretty URLs 0.9.2
Post by: goldenboy48 on February 24, 2008, 12:03:10 AM
I see .htaccess in Core FTP Lite. But when I try to edit it in Notepad there is nothing in it :|

Then I tried renaming it to htaccess.txt and then edit but same result. Nothing in .htaccess.

How to check apache and php error logs?

Recent Forum error logs are related to TPortal.php so yea nothing there.

Most of the ones on the first page (today) are:

Code: [Select]
Guest Today at 10:01:01 PM 84.208.224.151    83e407d2bcb8fbc414b8fdccfc4ac038 http://ecric.net/index.php?page=15 8: Undefined index:  12
File: /home/ecricnet/public_html/Sources/TPortal.php
Line: 917
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 24, 2008, 12:23:16 AM
Try chmodding it to 777 and then try enabling the mod again.
Title: Re: Pretty URLs 0.9.2
Post by: goldenboy48 on February 24, 2008, 12:36:49 AM
Yo sweeeeeeettttttt......Works perfectly now :D :D :D :D

Thank you so much man....My site will surely improve google rankings after this....THANK YOU SO MUCH....... :D :D
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 24, 2008, 12:38:16 AM
Good to hear it :)
Title: Re: Pretty URLs 0.9.2
Post by: goldenboy48 on February 24, 2008, 03:28:34 PM
Hey Dannii,

Is it safe to leave .htaccess at 777? or Should it to something else?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 24, 2008, 06:45:21 PM
It should be safe.
Title: Re: Pretty URLs 0.9.2
Post by: goldenboy48 on February 25, 2008, 12:55:11 AM
Ok cool. Btw, my site is already topping the google search results for particular topics. :D :D Thanks again.
Title: Re: Pretty URLs 0.9.2
Post by: au8ust on February 25, 2008, 08:50:38 PM
Using prettyurls-base_20071230.tar.gz I got blank page on some topics but work fine when turn of Pretty URLs. Any idea?
Title: Re: Pretty URLs 0.9.2
Post by: salguod on February 25, 2008, 10:24:56 PM
I had this installed on my new forum and it was working fine.  Before going live, I decided to change the folder the forum was installed in, so I renamed the folder, uploaded repair-settings.php and ran it.  After updating all the paths my forum seemed fine at first, but I realized that all my board and posts were still pointed at the old folder path.

I tracked this down to the Pretty URLs mod and I uninstalled it which fixed the paths.  However, I still want pretty URLs.  I tried re-installing the mod, but it just returned the old, broken URLs.  What can I do to use this mod now?
Title: Re: Pretty URLs 0.9.2
Post by: salguod on February 25, 2008, 11:19:00 PM
I figured it out. 

I installed the actions-ext-none (http://"http://code.google.com/p/prettyurls/downloads/detail?name=prettyurls-actions-ext-none_0_6.tar.gz&can=2&q=") and found the setting for changing the base url in the features and options area.

Is there someplace that describes what this and the other extensions do?  I tried this on a guess based on the description in the first post.  I have no idea what the profiles extension does.  I tried installing it, but all it seemed to do was render my profile page a blank screen.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 26, 2008, 04:58:19 AM
au8ust, well which topics? Anything in the error log?

salguod, you could try using the 0.8 snapshot, it's a lot easier to understand.
Title: Re: Pretty URLs 0.9.2
Post by: au8ust on February 26, 2008, 06:28:45 AM
Hi Dannii,

Here is the error log
Code: [Select]
Hacking attempt...

INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (280, "my-topic-name-here")
File: /home/www/virtual/domain.tld//htdocs/Sources/PrettyUrls-Filters.php
Line: 139

Any idea?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 26, 2008, 07:24:22 AM
Is that literally the topic name?
Title: Re: Pretty URLs 0.9.2
Post by: salguod on February 26, 2008, 08:37:08 AM
salguod, you could try using the 0.8 snapshot, it's a lot easier to understand.
Any known issues with 0.8 that don't exist in 0.7?
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 26, 2008, 09:12:04 AM
Nope.
Title: Re: Pretty URLs 0.9.2
Post by: salguod on February 26, 2008, 09:20:54 AM
I'll give it a shot later, I'm at work now.  :D  Can you tell me what the extensions are for?  I discovered that removing actions-ext-none didn't remove the base url otpion, I just must have missed it before.  So, I'm not sure what it or the profile one do.  Are they obsolete with 0.8?
Title: Re: Pretty URLs 0.9.2
Post by: lonrot on February 26, 2008, 10:25:38 AM
I dropped the following tables:
smf_pretty_topic_urls
smf_pretty_urls_cache

Unintalled PrettyURLs 0.7
Tried to reinstall, but I'm getting this error:
Quote
Fatal error: Maximum execution time of 30 seconds exceeded in /home/consolem/public_html/Sources/Subs-PrettyUrls.php on line 216

@Danni:
Where is the 0.8 snapshot?
Title: Re: Pretty URLs 0.9.2
Post by: lonrot on February 26, 2008, 10:38:06 AM
Well, I just downloaded and installed prettyurls-base_20071230.tar.gz

And I'm getting the same Not Found error!

Please check this example:
Board Name: Consolemaniak News
Pretty Address: http://consolemaniak.com/consolemaniak%5C's-news/0/
Real Address: http://consolemaniak.com/index.php/board,1.0.html
If I manually remove the "%5C'" part, the board will show up correctly!

Help me out please!!!
Title: Re: Pretty URLs 0.9.2
Post by: lonrot on February 26, 2008, 10:42:03 AM
Even worse, I can't access my admin section anymore, it redirects me to the homepage :(
Title: Re: Pretty URLs 0.9.2
Post by: au8ust on February 26, 2008, 09:08:04 PM
Is that literally the topic name?

Code: [Select]
Hacking attempt...

INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (280, "union-tech-abstract-wallpapers-pack")
File: /home/www/virtual/domain.tld/htdocs/Sources/PrettyUrls-Filters.php
Line: 139
Title: Re: Pretty URLs 0.9.2
Post by: lonrot on February 26, 2008, 11:18:55 PM
Argh, I can't disable this mod.
I can't acess the admin section.
Members can't access to their profiles.
Guests can't login, members can't logoff.
Guests can't register.
Cannot see PMs.

Please, I'm very desperate.
Title: Re: Pretty URLs 0.9.2
Post by: goldenboy48 on February 27, 2008, 01:49:57 AM
When I go to "Featured & Options" in Admin CP, I get the following error:

Code: [Select]
Fatal error: Cannot redeclare modifyinvitesettings() (previously declared in /home/ecricnet/public_html/Sources/ModSettings.php:343) in /home/ecricnet/public_html/Sources/ModSettings.php on line 362
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 27, 2008, 02:45:02 AM
lonrot, when you upgraded to 0.8, did you delete the database settings first?
If you want to disable it, run this query in phpmyadmin:
Code: [Select]
UPDATE smf_settings SET value = '0' WHERE variable = 'pretty_enable_filters'
salgoud, the profile and actions packages installed a filter for profile URLs and a general filter for all actions respectively. They're now included in 0.8, the actions filter is turned on by default, though you have to manually enable the profile filter if you want it.

au8ust, follow the instructions here: http://www.simplemachines.org/community/index.php?topic=146969.msg1423526#msg1423526

PanesarV, I don't think that has anything to do with this mod.
Title: Re: Pretty URLs 0.9.2
Post by: au8ust on February 27, 2008, 04:37:38 AM
Thanks Dannii!

It seems working fine now ;)
Title: Re: Pretty URLs 0.9.2
Post by: salguod on February 27, 2008, 08:41:44 AM
Upgraded to 0.8 and it's working fine.  Like the dedicated settings area, however there is no longer a place to set the base URL, is that right or did I just miss it?  Not a big deal for me now.

The other thing I noticed is that the move from 0.7 to 0.8 changed the URLs.  The URLs from 0.7 ended in a /0 (I think) and the ones in 0.8 don't.  Again, not a big deal for me as this is a private forum and not indexed (and not actually open yet), but changing URLs on long standing posts would be bad for others.
Title: Re: Pretty URLs 0.9.2
Post by: Dannii on February 27, 2008, 09:19:41 AM
Quote
however there is no longer a place to set the base URL, is that right or did I just miss it?
Yeah I haven't added one yet. Not quite sure of the wording for it... it's more of a fake subdirectory setting. Sort of.

Quote
The other thing