Link to the mod (https://custom.simplemachines.org/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:
Works with both Apache and Nginx (Requires rules to be copied to Nginx configuration).
- http://domain.com/board/topic/
- http://domain.com/profile/user/
- http://domain.com/unreadreplies/
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 (https://www.smfhacks.com/index.php/board,76.0.html)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-2023 The Pretty URLs Contributors
/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.)
Can you post a screen shoot? :)
Bump!
Quote from: BlueDevil on January 31, 2007, 07:03:35 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.
Quote from: RoarinRow on January 31, 2007, 12:50:38 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
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.
I don't get the idea of what this mod is suppose to do. Can anyone explain ? :(
Turn http://dev.eldacar.com/prettyurls/index.php?topic=1.0 into http://dev.eldacar.com/prettyurls/general-discussion/welcome-to-smf/0/ :)
I just installed this and highly recommend it.
Quote from: eldʌkaː 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/ :)
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ː :)
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.
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.
can someone help install this mod to RC3 ?
errors in RC3 (top of the forum)
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)
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']);
1.1 RC3 isn't supported sorry. Can you upgrade to 1.1.1?
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:
<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:
<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.
I should add the above is found in Major.xml in the prettyurls-ext-none_0_3.tar.gz package
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 :)
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.
I've a few modsinstalled myself:
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.
Quote from: KGIII on February 01, 2007, 08:30:50 AMI 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.
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?
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
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.
Thanks KGIII, i got it now...
I'm glad it's working now :)
/me thinks that this should be so popular that adding the directions to the first post might be a good idea. ;)
I couldn't before because editing was broken, but I'll do it now ;)
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.)
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
Quote from: wdm2005 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
ive uninstalled but itsbsrtill there
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.
Quote from: 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.
no there wasnt no errers
wdm2005: Did you rename the HTACCESS file and follow all of the directions in the first post?
wdm2005, post up your modifications.english.php file. Something went wrong with the package manager.
Quote from: eldʌkaː on February 05, 2007, 07:43:44 AM
wdm2005, post up your modifications.english.php file. Something went wrong with the package manager.
where do i find that on my server
Quote from: wdm2005 on February 05, 2007, 03:03:54 PM
Quote from: eldʌkaː on February 05, 2007, 07:43:44 AM
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
theme/default/language folder
Quote from: NEMINI on February 05, 2007, 08:38:03 PM
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
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>';
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.
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!
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..
Quote from: eldʌkaː 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/ :)
It's not doing this...
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?
Yeah sure :D
http://thelivezone.net
And what do you mean by ext-none package? :)
I'm sorry, i did not see this!!!!
I'm going to do it right away... i must be blind or something.....
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.
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
:(
Hmm, that's strange. Can you try redownloading it?
Yes i have redownloaded the file, but still the same error... what file should it modify?
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 ]
Prehaps there's an issue with your server's zlib.. I really have no idea sorry.
Quote from: eldʌkaː on January 31, 2007, 10:38:19 PM
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
Under 'install actions' in package manager, I get this:
Quote3. Execute Modification ./Sources/Display.php Test failed
I use the 'moonraker' theme.
I found this error msg when i was trying to install
extension noneQuoteInstalling 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
I'll trade you a used:
Quote3. Execute Modification ./Sources/Display.php Test failed
For your:
Quote3. Execute Modification ./Sources/Display.php Test successful
;D
Quotenow 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.
Quote from: Toadmund on February 08, 2007, 12:50:53 AMUnder 'install actions' in package manager, I get this:
Quote3. Execute Modification ./Sources/Display.php Test failed
Quote from: hawkshaw on February 08, 2007, 01:21:47 AMI found this error msg when i was trying to install extension none
QuoteInstalling 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?
Quote from: Toadmund on February 08, 2007, 01:26:48 AM
I'll trade you a used:
Quote3. Execute Modification ./Sources/Display.php Test failed
For your:
Quote3. 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
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 ]
^^
Well it's probably clashing with one of them. You can try installing it anyways, and see if it will work.
plus tinyportal. forgot to mention..
try installing the next version you mean ? ^^
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...
Execute Modification ./Sources/BoardIndex.php Test failed
Continue the installation by ignoring that ? uh oh... that sounds full of risk :p :(
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.
I prefer to wait then :) Good luck in making the next version ^^
Welp, here's mine:
QuoteModification 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?
QuoteExecute Modification ./Sources/BoardIndex.php Test failed
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. :)
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
Got it to work very quickly once I found that file. Thanks for your help! It's a great mod!
I got it working, previously I had a problem with the extension
QuoteExecute Modification ./Sources/BoardIndex.php Test failed
Then I tried to install the
Quoteprettyurls-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.
I'm glad it's working for you both now.
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?
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!
L.G.S., look in ModSettings.php
stoecki, hmmm, I'll consider that.
I've read these pages and I still have a question :)
Does this mod properly handle 301 redirects to the new URLs ?
Not yet, but I'm working on adding that.
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) ?
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.
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.
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?
Great mod! This have to be integrated in SMF core!
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 ;)
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.
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.
--- 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();
A modified google sitemap to work with pretty urls is here:
http://smf-pretty-sitemap.googlecode.com/svn/trunk/sitemap.php
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??
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.
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.....
is mod rewrite enabled on your server?
Yeah, mod rewrite is enabled too. Stumped on this one.....
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:
QuoteOptions +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.
Quote from: bluegray on February 17, 2007, 09:45:14 AMMmm, 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.
QuoteThe 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.
--- 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 :)
Quote from: bluegray on February 17, 2007, 01:02:10 PMA modified google sitemap to work with pretty urls is here:
http://smf-pretty-sitemap.googlecode.com/svn/trunk/sitemap.php
Nice!
Quote from: lostinphp on February 17, 2007, 08:55:08 PMSweeeet! 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:
QuoteOptions +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/.
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?
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.
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 ;)
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 ;)
Quote from: eldʌkaː 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.
Links in the search pages should also be fixed.
Quote from: eldʌkaː 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 ;)
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.
--- 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.
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.
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.
Quote from: lostinphp on February 18, 2007, 06:34:36 PMAlso 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?
Quote from: Col on February 18, 2007, 07:07:25 PMWhy, 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.
QuoteAlso, 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/
Thanks, eldʌkaː.
Quote from: eldʌkaː on February 18, 2007, 09:27:05 PM
Quote from: Col on February 18, 2007, 07:07:25 PMWhy, 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.
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.
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?
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.)
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.
you probably missed to rename the .htaccess file ;)
Hi,
I have just tried to install the Pretty URLs mod on a clean installation of SMF 1.1.2 and got this
QuoteInstallations 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.
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 ?
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
Quote from: eldʌkaː 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
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
Quote from: moonrock on February 22, 2007, 10:43:43 AM
Quote from: eldʌkaː 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
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
Quote from: CyberOto on February 21, 2007, 07:22:46 AM
QuoteInstallations 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... :(
Do other mods work? Anything in the error log?
Quote from: CyberOto on February 22, 2007, 12:36:59 PM
Quote from: moonrock on February 22, 2007, 10:43:43 AM
Quote from: eldʌkaː 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
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 ?
Can you give a link to your forum please.
Since installing this mod, I have multiple entries each of
File does not exist: /home/forum.url.com/html/forum-category
and
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?
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.
The forum and mod seem to be working perfectly. Perhaps my host is just having some issues :( I thought they were strange errors.
Quote from: eldʌkaː on February 28, 2007, 10:35:40 PM
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
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 :)
is there any chance to see a version for forum on WIN server :( :'(
Hi,
Quote from: eldʌkaː on March 02, 2007, 12:58:20 AM
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.
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:
preg_match_all("~.~su", $text, $characters);
preg_match_all("~.~su", utf8_encode($text), $characters);
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 ;)
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?
Quote from: eldʌkaː on March 02, 2007, 09:48:14 PM
ac99, in your copy of Subs-PrettyUrls.php, make this change:
preg_match_all("~.~su", $text, $characters);
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?
Yeah, all the topics created by my members after the change in Subs-PrettyUrls, appears as we want.
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.
would truncating the tables accomplish the same thing with less work eldakai?
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.
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!
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.
Quote from: haltoyou on March 03, 2007, 11:53:49 PM
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.
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?
Quote from: eldʌkaː 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.
It works, and now all topics appears well ;)
Just one more question... and how about the board names?
Thanks a lot,
Carlos
You want to reset the board names too? Uninstall, and then delete the pretty_board_urls row from the settings table, and reinstall.
Quote from: eldʌkaː 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.
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
Quote from: 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
QuoteInstallations 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)
Too big? Interesting.. I'll look into that. If it is too big I'll break it up.
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
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)
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.
Quote from: eldʌkaː on March 13, 2007, 10:10:51 AM
I've released 0.4 now.
changelog.txt (http://prettyurls.googlecode.com/svn/trunk/changelog.txt)
thank you!
Just too good !!
Keep it up!
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*
how will it handle two threads with the same name in the same forum?
does it 301 redirect old threads to their newer counterpart?
Quote from: arya on March 13, 2007, 11:10:31 AMp.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.
Quote from: stuartbrandon on March 13, 2007, 02:01:15 PMas 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=*
Quote from: NoFear on March 13, 2007, 02:41:04 PMhow 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.
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
You should be able to upload the package directly through the package manager, no need to decompress it yourself.
Quote from: eldʌkaː 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.
Thanks kindly. I'll gve it a whirl.
Paul
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
Quote from: 99Paul on March 14, 2007, 03:57:58 AM
Quote from: eldʌkaː 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.
Thanks kindly. I'll gve it a whirl.
Paul
What version of SMF do you use?
Quote from: eldʌkaː on March 14, 2007, 04:09:54 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
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
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.
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
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.
Quote from: eldʌkaː 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.
Ok, here's the last .htaccess code I have:
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
Is your forum's index.php actually located in the /go/ folder?
Quote from: eldʌkaː on March 14, 2007, 06:21:28 AM
Is your forum's index.php actually located in the /go/ folder?
Yes, it's at /go/index.php
Paul
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
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.
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
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.
does it work with SMF 1.1.2
No dear example.htaccess is not there
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
Thank U
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.
Can you post up the pretty_board_urls value from the smf_settings table please.
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).
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.
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.
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?
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.
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?
I deleted the mod, and reuploaded. I used the first zip file - I assume that's correct.
Quote from: 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?
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.
Understood. It made no difference when I changed it back.
As I said, this was on an unmodded forum.
Can you show me a link to your forum, and PM the details of a temp admin account please?
I have try to install the "no.exent" version 0.4 on
SMF 1.1.2 + TP 0.97 but get this error
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.
Did you install the base package?
There are a lot of mistakes, Somebody fatal :@
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: ?
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.
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?
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. :)
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.
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.
In index.php
$context['pretty']['board_urls'] = unserialize($modSettings['pretty_board_urls']);
$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..
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
?
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.
Quote from: 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.
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.
Quote from: Lemming on March 19, 2007, 08:27:04 PMjust 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 :)
Quote from: ziycon on March 20, 2007, 12:36:39 AMI'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!
QuoteYou should know that Dan!
Oops, my bad :P... Yeah, I should have known that ;)
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)? :)
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.
Ok, so this mod is unsafe correct?
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!
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?
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.
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
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.
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
Looks like your language files are corrupted, but please don't hijack this thread.
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.
Are you using a Mac? I get that error with any package when uploading from a Mac.
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 ?
http://www.simplemachines.org/community/index.php?topic=146969.msg1011894#msg1011894
Try making that code change.
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 ?
You'll have to disable the default ones.
Did you rename example.htaccess to .htaccess? Did you install the ext-none package too?
I disabled the default SEF URLs and I also rename the .htaccess file and I had only installed the base package.
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.
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.
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.
Where do get the "TP-ext-none" mod?
Quote from: danskmacabre on March 25, 2007, 11:47:58 AM
Where do get the "TP-ext-none" mod?
http://code.google.com/p/prettyurls/downloads/list
Quote from: danskmacabre on March 25, 2007, 11:47:58 AMWhere do get the "TP-ext-none" mod?
In 0.4 it's not needed as it's been merged into the ext-none package.
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?
Yep. Only boards and topics are being rewritten so far. It's still in beta remember.
thanks.....i wish that final release will be coming soon..
anyway, thanks for your effort on it....
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?
Quote from: eldʌkaː on March 18, 2007, 07:19:04 AM
In index.php
$context['pretty']['board_urls'] = unserialize($modSettings['pretty_board_urls']);
$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 :)
Quote from: edwardsiow on March 26, 2007, 12:13:02 PMhi, 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.
Installed on my site and it works perfect..
thanks eldʌka for this cool mod..
It's only for good looking topic URL's? Do search engines see/display the links the same way on search results??
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
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
Quote from: 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
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.
Mmm, anything in the error log? Which character encoding do you use?
Quote from: eldʌkaː on March 28, 2007, 02:32:15 AM
Mmm, anything in the error log? Which character encoding do you use?
UTF-8
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.
there is an option in the admin panel to convert data and db to utf 8 do u want me to do that
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?
Quote from: eldʌkaː 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?
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?
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.
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 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
Quote from: 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.
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]
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
Quote from: 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
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).
Did you try using the htaccess file without editing apart from renaming to ".htaccess"?
I'm not sure what you mean. Are you asking if I just renamed it and did no further editing?
Quote from: 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?
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.
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.
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)
Where is the .htaccess file placed in your structure? Can you post its contents?
Quote from: schled on March 28, 2007, 06:05:48 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).
Quote from: SticKer on March 28, 2007, 12:11:19 PMi 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?
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.
http://docs.simplemachines.org/index.php?topic=479.0
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
I've answer on the dev forum. I did say the topic or the dev forum ;)
ok mate. Will have a look now.
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
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.
Thank eldʌka,
The Mode Was great and working
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! :)
There's a minor bug in QueryString.php:
$url['replacement'] = preg_replace(array('\"', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
$url['replacement'] = preg_replace(array('~\"~', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
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)?
I'll be adding in 301 redirects to the next version.
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)?
Quote from: schled on April 11, 2007, 07:04:01 AMAnother 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'll just wait for the next version of Pretty URLs before investigating further as it seems so much has been done already :)
After I installed 0.5, many pages are "not found", I can't uninstall, can't delete threads...
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.
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
Quote from: eldʌkaː on April 12, 2007, 07:34:59 AMWhat is your .htaccess? To disable the url rewriting, go to the settings table, and set 'pretty_enable_filters' to 0.
The database table?
Yes the smf_settings table in your database. Or whichever prefix you use.
Hmm, there is no phpmyadmin in cpanel... looks like i gotta wait
You can install it yourself.
In any case, what is your .htaccess?
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)
A week or two maybe. Depends how much time I have after uni work.
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!
To disable the url rewriting, go to the settings table, and set 'pretty_enable_filters' to 0.
This looks cool but I have a Q :)
If any current links to posts exist using the normal URLs ie: http://www.site.com/index.php?topic=1010.
will they be broken if that changes to 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
:)
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.
Thanks :)
Have the small query code errors you mention at the start of this thread been fixed in the latest download?
Also...
QuoteDownload 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
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?
I read this and presumed it was an error in this package :)
Quote from: eldʌkaː on April 08, 2007, 06:04:33 AM
There's a minor bug in QueryString.php:
$url['replacement'] = preg_replace(array('\"', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
$url['replacement'] = preg_replace(array('~\"~', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
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 ;)
Quote from: symon on April 13, 2007, 09:15:43 AM
I read this and presumed it was an error in this package :)Quote from: eldʌkaː on April 08, 2007, 06:04:33 AM
There's a minor bug in QueryString.php:
$url['replacement'] = preg_replace(array('\"', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
$url['replacement'] = preg_replace(array('~\"~', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
Ahh yes, that is still required. It's only two extra characters though ;)
Quote from: 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.
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...
QuoteI'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.
Nice one...I'm gonna try it :D
Can I just paste the contents of the htaccess file into my current one?
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
After I by pass via the ftp prompt I get:
QuoteFatal 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.
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:
QuoteNot 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:
Quotehttp://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?
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?
I don't know where that %5C came from.
Can you please post up the pretty_board_urls setting data please?
Quote from: eldʌkaː on April 13, 2007, 10:31:26 PM
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!
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.
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? :)
It does it to the end URLs too...
'Sy's private area'
:)
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:
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";}
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:
QuoteNotice: 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
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 ;)
Quote from: eldʌkaː on April 11, 2007, 07:15:27 AM
Quote from: schled on April 11, 2007, 07:04:01 AMAnother 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. :)
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.
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?
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.
Perfect. Can't believe I got this to install (manuially at that), lol.
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.
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:
$url['replacement'] = preg_replace(array('\"', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
Should be:
$url['replacement'] = preg_replace(array('~\"~', '~\?;~', '~\?$|;$~'), array('%22', '?', ''), $url['replacement']);
I hope it works for you :D
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
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.
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
I've just added 301 redirects to the dev forum :)
http://dev.eldacar.com/prettyurls/index.php?topic=66.msg204;topicseen#msg204
I'm getting 'page not found' errors when I click on any of the general categories here: http://dev.eldacar.com/prettyurls/
:(
I don't get any errors. Can you copy the links for me please?
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
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.
/me puts on hard hat, goggles, gloves, and protective clothing. :P
Eagerly awaiting this one :)
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.
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 ;)
Hehe, the next one will still be quite a while off.
And I've just found that the session urls are still broken. Arghh.
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
Reinstalling the mod should fix all those urls.
Lol, i re did the coverter but not the mod,
Cheers, Mate
-- Zemond
0.6 is released. There is no longer any ext-none package, and you shouldn't have to manually edit .htaccess files. Enjoy! :)
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?
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!!
Does .6 include the 301 redirects?
Thanks eldacar :)
Quote from: BlackMage on May 01, 2007, 10:59:15 PM
Does .6 include the 301 redirects?
They seem to be working on my forum :)
Quote from: schled on May 01, 2007, 09:55:01 PMFound 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?
Quote from: BlackMage on May 01, 2007, 10:59:15 PMDoes .6 include the 301 redirects?
Yep!
Quote from: eldʌkaː on May 02, 2007, 02:23:31 AM
Quote from: schled on May 01, 2007, 09:55:01 PMFound 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 "/".
I think I've found the problem that caused it, but your manual edit should be fine too.
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!
Everyone, let me know how your performance goes. The mod changes the load time string if you have it enabled.
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.
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.
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 :)
Get them here! (http://dev.eldacar.com/prettyurls/forum/general-discussion/fixes-for-0-6/)
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 :)
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?
QuoteShould 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.
QuoteCan 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.
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!
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 :)
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!
Make the changes in this post and you should be fine: http://www.simplemachines.org/community/index.php?topic=146969.msg1078748#msg1078748
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!
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.
eldʌka,
Thanks again for the information. I think I'll download Pretty URLS and then update later, if and when a new version is ready.
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?
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
Your pages shouldn't be indexed as duplicate content in 1.1 because of the noindex meta tag.
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?
Quote from: matasanos on May 19, 2007, 04:45:51 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.
Anything in your error log?
yes
Unknown column 'ID_BOARD' in 'field list'
File: /var/www/vhosts/lords-beer.info/httpdocs/foro/Sources/Subs-Post.php
Line: 1639
Make the changes in this post:
http://www.simplemachines.org/community/index.php?topic=146969.msg1078748#msg1078748
Can you post up your .htaccess
Quote from: 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
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?
My MySql version is: 3.23.58
Client API version 3.23.58
Quote from: mladja04 on May 21, 2007, 08:24:18 AM
My MySql version is: 3.23.58
Client API version 3.23.58
This is problem - my mysql version or some else?
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.
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.
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?
Quote from: eldʌkaː on May 22, 2007, 10:27:10 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.
I think I've found the problem:
Sources/Display.php:
// 301 redirects
if (isset($context['pretty']['oldschoolquery']))
// 301 redirects
if (isset($context['pretty']['oldschoolquery']) && $modSettings['pretty_enable_filters'])
Sources/MessageIndex.php:
// 301 redirects
if (isset($context['pretty']['oldschoolquery']) || $_REQUEST['board'] != $context['pretty']['board_urls'][$board])
// 301 redirects
if ((isset($context['pretty']['oldschoolquery']) || $_REQUEST['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
That seems to have fixed it. (Although I'll be keeping the mod applied anway!)
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 :)
Quote from: eldʌkaː 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.
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.
QuoteJust 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.
QuoteBut 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.
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.
The UTF-8 conversion should take care of those characters. It it doesn't, that's a SMF bug.
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.
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 :)
Quote from: Col on May 23, 2007, 09:40:56 PMI'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_"
Quote from: eldʌkaː on May 23, 2007, 10:14:15 PM
Quote from: Col on May 23, 2007, 09:40:56 PMI'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.
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!
Quote from: Matt @ ARTcom on May 23, 2007, 10:18:29 PMWhy 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.
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.
Quote from: eldʌkaː on May 23, 2007, 11:12:30 PM
Quote from: Matt @ ARTcom on May 23, 2007, 10:18:29 PMWhy 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.
It's not just my mod, any url with a ! can't be quicklinked, even though they're quite valid.
Quote from: eldʌkaː 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.
For those with MySQL 3.23, edit your install.php as follows:
`log_time` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`log_time` TIMESTAMP NOT NULL,
Hopefully that will work.
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
No, there are no theme changes, even to the default theme.
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
Can you copy your .htaccess here please?
Did you make these changes? (http://dev.eldacar.com/prettyurls/forum/general-discussion/fixes-for-0-6/)
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.
Quote from: 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
Quote from: eldʌkaː on May 16, 2007, 10:54:42 PM
What mysql version do you have?
4.0 ;D
Perfect mod!! Works like a charm, thanks for this :D
still getting this one....
QuoteYou 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 >:(
If after installed this mod I see 404 error page on forum's topics URLs, what does it means?
How can fix it?
Does anyone know if this will work with a MS windows IIS server?
Thanks
Scott
I download version 0.7 some minutes ago, how to update my old verion?
Glad to see you fixed it :P
Quote from: saosangmo on June 12, 2007, 01:12:21 AM
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 :)
Quote from: Goad on June 08, 2007, 05:35:44 PM
still getting this one....
QuoteYou 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 >:(
0.7 fixed this issue....now im getting the 404 error on all pretty urls.
Quote from: EBK on June 09, 2007, 03:39:57 PMIf 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?
Quote from: smckeown on June 11, 2007, 03:55:44 PMDoes anyone know if this will work with a MS windows IIS server?
If there is some sort of rewriting module it should be possible.
Quote from: saosangmo on June 12, 2007, 01:12:21 AMI 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.
Quote from: Goad on June 13, 2007, 01:45:46 PM0.7 fixed this issue....now im getting the 404 error on all pretty urls.
Can you post your .htaccess
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 ?
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.
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
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..
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
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.
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
';
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.
Quote from: eldʌkaː on June 16, 2007, 10:19:55 AM
Can you post your ModSettings.english.php
Yes. What folder is it in please I cant locate this file
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 "Today" feature';
$txt['smf290'] = 'Disabled';
$txt['smf291'] = 'Only Today';
$txt['smf292'] = 'Today & 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 />
"server1,server2,server3:port,server4"<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';
?>
Sorry, should have said modifications.english.php, it will be in the same location.
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
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>';
$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>';
$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.
sorry.
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
No need to apologise, it's a bug in SMF!
What's on line 82 of index.php?
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();
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).
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.
Yes it's in the database. Do you have access to phpMyAdmin?
where would I find that please ?
Think I do
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.
Ok thats fine mate. Will the forum work untill Nick gets back ?
Thanks for your help so far.
;) ;) :)
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
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.
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
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! :)
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
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
Did you tick the box saying "Enable URL filters" in the settings page?
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
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]
Which is better for search engines? Pretty URLs or SEO4SMF?
Why dosen't the profile mod? It shows me blank pages.
Quote from: glennk on June 18, 2007, 11:43:30 AM
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.
Quote from: glennk on June 18, 2007, 11:47:41 AMI 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.
Quote from: jinji on June 18, 2007, 06:49:48 PMWhich 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 :)
QuoteWhy dosen't the profile mod? It shows me blank pages.
What shows blank pages? The profiles package?
QuoteSEO4SMF 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 :)
QuotePage 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
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)
Hmmm, I'll think about what could be done.
Good man (bigger smiling smiley)
Okay I think this will work.
Display.php
// 301 redirects
if (isset($context['pretty']['oldschoolquery']) && $modSettings['pretty_enable_filters'])
// 301 redirects
if ((isset($context['pretty']['oldschoolquery']) || $_REQUEST['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Quote from: eldʌkaː on June 14, 2007, 12:35:40 AM
Quote from: Goad on June 13, 2007, 01:45:46 PM0.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:
# 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]
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.
Quote from: eldʌkaː 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.
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.
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.
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.
Works fine for me and my 1.1.3 SMF forum... Great job!!
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.
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
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?
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
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.
Very strange I just installed Pretty Urls again and my urls went back to being normal. But now it's INSTALLED.
Weird! Is the enable filters setting on?
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
// 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?
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/)
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. >:(
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.
Quote from: eldʌkaː on July 03, 2007, 03:56:38 AM
PITXI, did you get any errors when you installed the mod?
Yes. I have seen that it's the problem.
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.
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!!
Well, what file had the error?
./Sources/QueryString.php
thx
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.
You'll need to reinstall it now that you have a clean QueryString.php.
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.
Hi eldʌkaː
I also get the below message when I view my Forum Error Log
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
It works!!!!
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/
Quote from: eldʌkaː 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.
Hi eldeka,
I use my own variation of the default theme - but the admin templates are untouched!
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.
Yes but I took out the apostrophe, and it stuck. I even reinstalled it, and it still stuck.
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.
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.
Quotesaosangmo, 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 :)
Anything in the error log about that?
I have posted it and now I quote that message.
Quote from: 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
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
Oh yes sorry. Okay... well maybe they are connected.
Try making this change to PrettyUrls-Filters.php:
if (isset($url['topic_id']))
if (isset($url['topic_id']) && isset($topicData[$url['topic_id']]))
I'm testing this fix and report later.
many thanks
You may need to empty the smf_pretty_urls_cache table too.
my forum works well and I must empty the smf_pretty_urls_cache table.
thank eldʌkaː!
:D
Now to fix the problem with apostrophes.
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...
Quote from: Col on July 03, 2007, 09:11:55 PM
Quote from: eldʌkaː 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.
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.
QuoteSo 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.
Quote from: Col on July 04, 2007, 07:40:35 PMScrub 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?
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.
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.
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.
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.
When i want install
i got error
Wykonaj modyfikację ./Sources/QueryString.php Not Success
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.
Quote from: Col on July 05, 2007, 11:14:48 AMI'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.
Quote from: PoLlama on July 05, 2007, 11:24:45 AMIt 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.
Quote from: kamili34 on July 05, 2007, 03:55:15 PMi got errorWykonaj modyfikację ./Sources/QueryString.php Not Success
Any other mods installed?
Quote from: Col on July 05, 2007, 07:59:27 PMI'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
See this discussion topic too: http://dev.eldacar.com/prettyurls/forum/general-discussion/the-state-of-apostrophes/0/
What this mod do. Please screen shot :'(
Quote from: kamili34 on July 08, 2007, 10:08:25 AM
What this mod do. Please screen shot :'(
http://www.simplemachines.org/community/index.php?topic=146969.msg937167#msg937167
All, I think I just fixed the quotes problem (finally) :D :D :D :D :D :D :D :D :D
Great!
Hopefully, I will be able to try this out today. :)
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
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?
Anything in the error logs? What javascript is there?
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 ??
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.
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 ;)
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
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.
I think all my topics are indexed. It takes time for Google to decide if your pages are worth the effort of indexing.
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 ?
Hi Glennk,
How did you perform the search with Google? I use the following, and gain 700 results.
Quotesite:www.benzobuddies.org/forum
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?
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
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!
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..
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 ?
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.
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...
What does it say in the error log?
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.
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.
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.
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"
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).
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 ?
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!
Quote from: eldʌkaː 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.
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?).
PMs are fine. I'll renew my offer to him.
OK...looks to be alls well now anyhow.
did my post get lost ?
I installed the mod now but its not working. Were still on the old urls
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
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.
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?
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..
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.
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?
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.
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.
I've run it in that configuration myself and it does work properly.
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
Did you remember to tick the enable box again? Nothing in the error log?
Nothing in the error log
Enable box ??? I bet that's the problem
Sorted now cheers guys.
:) Good to hear
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. :(
It's only fixed in SVN, I haven't made a new release yet.
Quote from: eldʌkaː on July 23, 2007, 11:38:14 AM
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
The one which says "Enable URL filters" in the Features and Options page.
Quote from: eldʌkaː on July 24, 2007, 09:36:39 PM
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.
http://prettyurls.googlecode.com/svn/trunk/Base/
When I've made enough large changes that I think justify a new release.
Quote from: eldʌkaː on July 23, 2007, 08:44:44 PM
:) Good to hear
Big thanks yet again. Plus I have a lot more pages in the main index now. Things are looking good.
Quote from: eldʌkaː 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.
What do I need to do to add those changes myself? Which file do I need to change?
Thanks.
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.
Thanks. :)
Quote from: 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?
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
As I said to Goad...
Quote from: eldʌkaː on July 10, 2007, 04:00:15 AM
Anything in the error logs? What javascript is there?
no there isnt anything in the error logs and what do you mean what javscript is there
What's the javascript code.
hmmmmmm sry but i dont understand how do i find that out
Look in the pages' source code.
im sry but i dont get it where is pages
sry for being a newb :P
Give me a link to the broken page please.
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
Okay, yep I see the problem, and it's one I know of. I'm working on a solution now.
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?
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.
yeah i just figard that out lol sry is there any chace you can pm me when its ready thanks again
I'll post here when I've fixed it. OR check here: http://code.google.com/p/prettyurls/issues/detail?id=15
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. :-\
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.
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.
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.
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
Quote from: 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.
I've never had this problem before. Any more information you can provide?
Quote from: Col on July 29, 2007, 02:36:48 PM
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.
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.
i tryed that and got the samae error
Quote from: Col on July 29, 2007, 11:38:53 PMIt 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.
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.
QuoteOptions +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/
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.
Okay I think I've fixed the problem with <script> tags in R50. :D
Hi Eldcar,
What is r50 ?
do you want me to post up the things you mention ? where do I find them please ?
Thanks - glenn
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.
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.
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.
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.
Can you copy the whole of it?
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";}
Quote from: wdm2005 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
i've got the same problem :(
Hi Vosje505,
Here's a temporary fix: http://www.smfarcade.info/index.php/topic,3175.msg20449.html#msg20449
Quote from: 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
thx Col :D that did the job for now ;D
Glennk, replace pretty_board_lookup with this:
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;}
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 ?
Yes, it should now recognise both, and redirect to the correct one.
QuoteI'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.
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
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
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 ???)
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
I don't think having the same titles is enough, it needs to have substantially the same content.
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 :) :)
QuoteFor 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.
QuoteAlso 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.
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
Quote from: 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
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.
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.
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 :)
Hello
Great mod
But I got this error while installing as package :
querystring.php (unsuccesfull)
the others were succesfull, any ideas, why ? :'(
Quote from: Col on August 06, 2007, 08:15:40 AM
Quote from: 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
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
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?
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 ?
The guys at the seo forum are wrong. :P
I don't know what the problem with the redirects is sorry.
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 ;) :)
Quote from: eldʌkaː 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?
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
You'll have to check if any of them edit QueryString.php.
Quote from: eldʌkaː on August 07, 2007, 05:07:04 AM
You'll have to check if any of them edit QueryString.php.
So can I edit this file manually ? If yes, how ?
You can, but if the mods are conflicting it might not be a good idea.
http://docs.simplemachines.org/index.php?topic=402
Quote from: eldʌkaː 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
Thank you, I will try after backing up my files ;)
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 ?
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.
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
http://huongtinhyeu.net/hty/lam-quen-t-gii-thiu/0/?wap2 will though. Does it link to ;wap2 anywhere?
Yes, URL always ends with "/;wap2" when I click on one of my boxes
Okay, yep I can see thats a serious problem. I'll have a look into it.
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 ?
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. ;)
Yep the board ID will be at the end of the modify link.
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/
Hmm, anything in the error log?
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.
Quote from: saosangmo on August 21, 2007, 11:48:27 AMI'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 :)
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 ]
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?
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.
saosangmo,
<off topic>
I really like your forum template. Did you design it yourself?
</off topic>
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?
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?
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.
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...
Quote from: Pasaway on August 31, 2007, 12:24:27 PMI 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).
Quote from: glennk on August 31, 2007, 04:46:06 PMWould 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.
Quote from: L.G.S on August 31, 2007, 04:57:34 PMIf 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.
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.
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
Got a link please?
http://pinoyteens.net click on the announcements so you'll see.. error page
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.
I can't tell everything when it's switched off! :)
Quote from: 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.
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
<font color="orange">Introduction</font>
before I installed the mod
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.
smf_pretty_urls_cache
smf_pretty_topic_urls
that?
No, pretty_board_lookup and pretty_board_urls from smf_settings.
IDK how to do that :(
How about dropping the said above?
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
Uhm, and where is SSI.php located? :(
Usually wherever your forum's index.php is...
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 :)
its working fine now.
QuoteFirst, 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?
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).
Ok, I tried installing the 0.7 version, here's what I get:
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.
QuoteForum 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.
QuoteThe 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.
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.
QuoteI 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.
Quote from: eldʌkaː on September 03, 2007, 04:21:27 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.
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
Which error?
You replace QueryString.php with a non-edited one? Well then the mod won't do anything.
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
Are you using UTF-8? I'm pretty sure I have all of those letters in the conversion table.
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 :-\
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.
Quote from: eldʌkaː on September 03, 2007, 04:21:27 AM
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
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:
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:
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:
(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:
"Moderatoarea si purceii" sau "Ospat pe cinste (a) ...celei ce pofteste la el !"
Hope this helps.
"\'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.
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:
// 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:
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 :)
Ok, sollution with mysql_real_escape_string works for me, I suggest it.
For example, here's how that title looks now:
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:
"\\'" => array ("'", '"', 'ﺀ', 'ع'),
(I know about the " and ' chars, did not care about the other two)
b)
Instead of:
// Update the arrays
$tablePretty[] = '(' . $row['ID_TOPIC'] . ', "' . $pretty_text . '")';
I put:
$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).
:)
QuoteThe 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.
QuoteI 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.
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
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).
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:
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 ?
No they'll still be allowed, but they'll be escaped properly so they all work.
Quotehttp://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.
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?
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)".
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.
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! :(
Were there any errors when you installed it?
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
Quote from: eldʌkaː 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.
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.
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!
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.
Sorry no idea what that means ^^
Going in manually..........
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.
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, 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:
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: September 5, 2007, 0:24
.....
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 :(
Sure:
# 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.
I tried the htaccess but its giving me internal server errors... hmmmm
Please try an .htaccess file with only one line:
RewriteEngine on
If you still get errors, then you should check httpd.conf (Apache's config file) that the line:
LoadModule rewrite_module modules/mod_rewrite.so
doesn't have a # in front. The line should be uncommented.
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!
Quote from: viulian on September 07, 2007, 05:04:24 PM
Please try an .htaccess file with only one line:
RewriteEngine on
If you still get errors, then you should check httpd.conf (Apache's config file) that the line:
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.
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?
Yeah, you need to have the filters enabled..
About the 500 errors though, I am out of ideas :(
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,
QuoteNo, 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.
QuoteYup.. 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.
Quoteeldʌ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!
QuoteIs 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.
QuoteBTW 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?
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!
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.
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 ?
The old URLs will be 301 redirected so Google shouldn't protest much at all.
Purrfect! Thanks for confirmation :)
Quote from: eldʌkaː on September 07, 2007, 09:21:11 PM
QuoteNo, 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.
QuoteYup.. 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.
Quoteeldʌ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!
QuoteIs 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.
QuoteBTW 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.
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.
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
But this was in error log:
Premature end of script headers: /home/tscar/public_html/board/ins.php
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.
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.
Quote from: 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
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 ?
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.
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
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
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... :-\
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!
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?
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
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?
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.
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
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.
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.
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.
Yeah you got it, works fine on clean install.
Okay, try uploading this to your sources directory, and running install.php again. If it works, run it again, 75 times :P
Maaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaan can't you make it so I have to run it 10 or 20 times ::| :| :|
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...
In the original install was it basically no limit?
I set it to 10,000.... here we go
Actually wait, that file won't work properly. Grr.
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.
So I ran the file and it immediatly gave me a blank page....
The second subs you posted, is the change only 10,000? If so I did it myself.
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!)
Alright thanks for the help its done!
No the first file did, but it did the changes anyway
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!
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.
Just wanted to comment that I installed this last week with zero problems and it's running great.
:) 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 :)
Quote from: eldʌkaː 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.
Yeah I know lol. Only had to run it 20 times
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.
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.
QuoteI'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?
Yes it is. I would love for the profiles to work though because otherwise the forum links just appear like random otherwise.
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!
I remember now that there was a bug in the profiles package. LGS, if you make this fix does it work? WHERE ID_MEMBER IN (" . implode(', ', $querty_data) . ")", __FILE__, __LINE__);
WHERE ID_MEMBER IN (" . implode(', ', $query_data) . ")", __FILE__, __LINE__);
Cassie, did you just change the board name, or also the database setting?
LGS, if you need more help, check to see if I'm on MSN, I think I added you before.
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 ?
www.lovetime.ro/community/b38/fantana-(sinucidere)/msg13149/?PHPSESSID=nfcrfq19njtmq2hr6i7iu86kp6
It's not shown to search engines, and it won't be shown to users either unless they don't have cookies.
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).
eldʌkaː...
I just changed the name of the board through the Admin panel.
Quote from: eldʌkaː 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? WHERE ID_MEMBER IN (" . implode(', ', $querty_data) . ")", __FILE__, __LINE__);
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.
Quote from: viulian on September 10, 2007, 08:27:18 AMI 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.
Quote from: cassie on September 10, 2007, 09:34:24 AMI 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?
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.
Could you copy the contents of pretty_board_lookup and pretty_board_urls (from smf_settings) here please.
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";}
Replace with these:
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;}
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!
Quote from: eldʌkaː on September 10, 2007, 08:46:42 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.
Quote from: eldʌkaː on September 10, 2007, 08:46:42 PM
Quote from: viulian on September 10, 2007, 08:27:18 AMI 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..
Quote from: L.G.S on September 11, 2007, 01:27:11 PMThe 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.
Quote from: viulian on September 11, 2007, 04:39:52 PMDo 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 :)
I've got such a strange error.
HACK ATTEMPT...
Please check this post: http://www.simplemachines.org/community/index.php?topic=146969.msg1229095#msg1229095 see if it helps..
A bit of context, like what you're doing, would help ;) But you can try vuilian's suggestions too.
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.
'priority' => 80,
That's line 26 for your install.php isn't it? It can't cause a syntax error..
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.
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?
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?
They're incompatible. Choose one or the other.
Quote from: Pasaway on September 12, 2007, 10:17:57 AM
I've got such a strange error.
HACK ATTEMPT...
Help needed still, a detailed explanation for a noob please.
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?
Pasaway,
Quote from: eldʌkaː 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.
LGS, what's the URL for the shoutbox that's broken?
Strange it works now, nevermind.
Ok :)
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
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.
Yep, you are right. The piece of code is in Sources/Karma.php:
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
Try replacing it with $topic (but make sure $topic is in the list of globals at the beginning of the function too).
Yep, thanks, it was defined and I replaced it with $topic. But not the if part:
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 :)
Good to hear :)
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.
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
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.
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
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 :)
Quote from: ourfavwine on September 21, 2007, 03:52:41 PMFirst 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 ;)
QuoteI 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.
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?
QuoteThe 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?
Quote from: clarkkent93 on September 23, 2007, 04:18:26 PMI'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?
Quote from: eldʌkaː on September 23, 2007, 08:25:22 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!
QuoteI 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.
Quote from: eldʌkaː on September 23, 2007, 09:09:46 PM
QuoteI 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.
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
I don't know what your problem is, nor why you're quoting code at me.
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
Yep, should work fine.
Quote from: eldʌkaː on September 27, 2007, 10:14:33 PM
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
You're getting HACK ATTEMPT still? That code should be in a language file, can you post the whole file here?
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.
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.
Quote from: 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.
Read me? What "Read Me" file? There ISN'T one....not in the base, profile, or actions files.
Read here please: http://www.simplemachines.org/community/index.php?topic=146969.msg1232172#msg1232172
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.
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 ;)
QuoteI'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 ;)
QuoteWhere 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.
QuoteWhat'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).
QuoteRead 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.
QuoteIf 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.
QuoteNevertheless, 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?
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.
QuoteYes, 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.
QuoteIt 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?
QuoteHmmm, 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.
Quote from: eldʌkaː 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?
This is what I get
// 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
';
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 ?
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.
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
Quote from: Pasaway on September 30, 2007, 07:24:45 AM
Quote from: eldʌkaː 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?
This is what I get
// 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?
Quote from: albataur on October 01, 2007, 09:29:38 AMTables 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?
Quote from: L.G.S on October 01, 2007, 12:16:26 PMGot 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?
Quote from: jvan on October 01, 2007, 02:23:05 PMHas 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.
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.
# 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]
Try replacing it with this:# 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]
Nope, I get internal server errors on all pages with that one.
Hmm, well thats really strange. Okay put it back to how it was before, and try making this change to PrettyUrls-Filters.php
$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;
$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;
I still get the 404 even with that
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).
Checked and double checked.
Sorry I meant I get the 404s for the RSS link, not the entire forum.
Oh, I forgot to say... empty the pretty_urls_cache table too.
Eldaka does it again. Good going Batman!
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.
Using something like firebug, can you get the URL that the quote button uses with AJAX?
http://www.ruthlessintent.com/board/feedback/quote/0/#quickreply
That's from my browser. I'll download firebug now and get the other one.
http://www.ruthlessintent.com/board/index.php?action=quotefast;quote=146061;sesc=54e39fb9b5563a785613a3e1eaadcd74;xml
XMLDoc.getElementsByTagName("quote")[0] has no properties
Just had a look around, it's shut down all of my AJAX features.
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/
What do I do to just upgrade it from my package manager? Simply put it in a zip and nothing else?
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/
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?
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
Oops yes I meant uninstall. Damn typos!
Quote from: eldʌkaː 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?
no not utf-8 im using turkish language files
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.
ok am watching the working progress thanks
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.
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.
Quote from: glennk on October 08, 2007, 04:09:40 PMHad 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.
QuoteGreat 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!
QuoteMy 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! :)
QuoteI'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.
QuoteOh, 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?
Quote from: eldʌkaː on October 08, 2007, 08:43:38 PM
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.
QuoteIt 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? :)
QuotePage 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.
QuoteThere 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?
QuoteQuoteOh, 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.)
QuoteIf 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.
function clean_name($txt)
{
$txt = str_replace(array(' ','/','.',',','"','"','?'),'-',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. :)
QuoteWhat 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.
QuoteI 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.
QuoteI 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.
QuoteWell, 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.
QuoteAnyway, 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.
QuoteFor 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.
QuoteHaving 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.
QuoteI 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.
Quote from: eldʌkaː on October 09, 2007, 06:50:53 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!
QuoteI 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.)
QuoteMmm, 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.
QuoteWriting 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.)
QuoteI 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.
QuoteI'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).
QuoteHmmm... & 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.
QuoteSubdomains 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>/
QuoteI 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".
QuoteAnd 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.)
QuoteDidn'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...
QuoteOr 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.
QuoteThey 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.
QuoteThis 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.
QuoteOf 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.
Quote from: eldʌkaː on October 09, 2007, 08:18:32 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.
QuoteIt 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.)
QuoteIt 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).
Quotehowever 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/桜庭統)
QuoteHmmm, that's an interesting idea. I'll think about that some more.
Thanks :D
QuoteWhy 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
QuoteAs 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.
QuoteOn 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
Quote from: eldʌkaː on October 09, 2007, 09:44:53 AM
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.
QuoteYou 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?
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.
i would be interested in seeing a 2.0 version of this :o
But i won't count on it lol
Quote from: metallica48423 on October 09, 2007, 03:52:59 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.")
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 :)
QuoteI 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.
QuoteAnyway... 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.
Quote2/ 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.
Quote from: metallica48423 on October 09, 2007, 03:52:59 PMi 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
Quote from: metallica48423 on October 09, 2007, 04:24:09 PMif 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.
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=3643700d458ac72df33a70e1028270a94890ce62)
when clicked Back
Now this message is in every page!
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
Quote from: eldʌkaː on October 09, 2007, 08:57:57 PM
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...)
QuoteI've thought of more advantages of using the full urls.
Cool :)
QuoteHowever 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.
QuoteDoes 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 :)
QuoteIt 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.
QuoteFirst 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.
QuoteThen, 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.
Quote from: eldʌkaː on October 10, 2007, 04:56:11 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? ;)
QuoteDoes 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().
QuoteI 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.
QuoteAnother 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.)
QuoteI 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.
QuoteI 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.
QuoteAnother 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.
Quote from: eldʌkaː on October 10, 2007, 05:48:19 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...
QuoteQuoteI 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.)
QuoteWell 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.
QuoteI 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.
QuoteIf 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.
Quote from: eldʌkaː on October 10, 2007, 06:24:49 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.)
QuoteIf you're working on replacing the URLs in all the source files,
Yes that's what I did...
Quotethat's what I originally did. I had a 60kb mod file hehe.
Oh, my!!
QuoteThe 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 ;)
QuoteWe should make a list of what we learned in it, and what we should focus on
Lol.
Quote from: eldʌkaː on October 10, 2007, 06:48:28 AM
QuoteWe 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
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?!
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.
QuoteNow, 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.
Quote from: eldʌkaː on October 11, 2007, 09:47:33 AM
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.
QuoteBut 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.
QuoteSo, 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.
Quote from: eldʌkaː on October 11, 2007, 09:21:50 PM
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?
Quote30% 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.
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?
Quote from: eldʌkaː 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.
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.
QuoteHow 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."
QuoteLet'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.
$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.
QuoteWith 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.
Quote from: eldʌkaː on October 12, 2007, 06:44:41 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.
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.
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...
QuoteIt 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.
QuoteAs 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.
QuoteI 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.
Quote from: eldʌkaː on October 12, 2007, 10:32:47 AM
Hmm interesting, that should work.
Yup, it does... (But it doesn't save a single cycle!)
QuotePHPSESSID 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.
QuoteWell 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...
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?
http://dev.eldacar.com/smf/general-discussion/optimisation-etc/
Continuing here so as to not clutter up this support topic so much.
'kay.
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
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.
Indeed, there's probably a conflict with another mod. Which others do you have installed?
does this mod work on a heavy board? coz i installed it with ease, and liked it. after a month, i get 404 errors.
Yes it should work. What do you get 404 errors on?
QuoteWhat 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:
Quote1 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
Don't worry about the third instruction, it's optional. And no you shouldn't have to edit the .htaccess file.
QuoteThe 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
There is no TP package, it's all included in the base package.
What's your .htaccess file?
QuoteWhat's your .htaccess file?
im sorry i dont know. how would i find that out?
Use FTP to log into your server and download the file.
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.
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!
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]
Why is there a /0/ after the URL? For example, the topic "About" would be http://www.mydomain.com/about/0/
Quote from: eldʌkaː on October 17, 2007, 04:32:46 AM
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 ]
Quote from: 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/
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.
Try replacing it with this cru:
# 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.
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
Don't use the profiles and actions ones unless you absolutely need to.
Ian1, this mod isn't compatible with SEO4SMF.
Quote from: eldʌkaː 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.
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.
Ask the SEO4SMF for help in uninstalling it completely first, and then try installing this mod.
Quote from: ian1 on October 18, 2007, 09:10:58 PM
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.)
Quote from: eldʌkaː on October 17, 2007, 10:17:18 PM
Try replacing it with this cru:
# 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
# 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
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 :(
Quotei don't see any difference
You need the RewriteEngine line.
QuoteI 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/
QuoteYou need the RewriteEngine line.
what do you mean?
Quotehttp://prettyurls.googlecode.com/svn/trunk/Base/
what do we do with it? zip then install thru package manager?
Quotewhat do you mean?
They're not the same because yours was missing a line.
Quotewhat 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.
QuoteYep. 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.
QuoteThey'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
Quotehow? 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.
Quotewhich line? i still don't see any difference.
The line that says:
RewriteEngine on
Quotesorry 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... :)
QuoteYep. Make sure you delete the existing database settings though otherwise it won't help.
how do i do this? im no mysql coder...
QuoteThe line that says:
RewriteEngine on
i don't see this line in the code you gave me as a replacement to my .htaccess
Quote0.8 should be more user-friendly...
so, when will 0.8 be available?
Quotehow 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.
Quotei 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
Quoteso, 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.
thank you man! great support!
it still doesn't support board titles with quotes or '
here's what i did..
1. i followed your instruction
Quotehttp://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
QuoteType 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:
Quote1. Execute Modification ./Sources/PrettyUrls-Filters.php Test successful
2. Execute Code install.php
But when i click install:
QuoteFatal 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
QuoteNot 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
QuoteRewrite 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
QuoteSMF1.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.
Quotei 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?
i edited my post above.
QuoteI 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
QuoteThe 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
Looks like a great mod here, but when I try to install I get "hacking attempt..." Is there a fix for this? Thanks!
You're installing it just through the package manager? Anything in the error log?
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 :(
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.
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.
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
$pattern = '~' . $scripturl . '(.*)board=([.0-9]+)(.*)~S';
$pattern = '~' . $scripturl . '(.*[?;&])board=([.0-9]+)(.*)~S';
Whoops forgot that I didn't update yet. Thanks.
Sorry for the late response. Here is my error log when I get "hacking attempt...":
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!
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!!!!!
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.
Quote from: Col on November 03, 2007, 12:41:49 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.
QuoteI 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.
QuoteAlso, 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.)
Quote(thank heavens for copy/paste)
Hehe, Isn't Georgian pretty?
QuoteIf 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.
QuoteAnd 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)?
Quote from: ელდაქა on November 03, 2007, 09:36:38 AM
Quote from: Nao 尚 on November 03, 2007, 06:38:55 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.
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.
What is it about the Erin's theme that might help?
It has beautiful semantic HTML.
Such as <h1> at the right place?
(Wow, you have 7000 posts!)
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?
Hi,
Yes, the omission of H1 tags is a pretty big ommision!
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.
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 ;)
QuoteIf 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:
if (isset($context['pretty']['oldschoolquery']) && $modSettings['pretty_enable_filters'])
if (!isset($context['pretty']['oldschoolquery']))
MessageIndex.php:
if ((isset($context['pretty']['oldschoolquery']) || $_REQUEST['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
if (!isset($context['pretty']['oldschoolquery']))
Quote from: ܝܠܕܟ 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?
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 :(
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
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.
Quote from: ܝܠܕܟ on November 08, 2007, 04:53:47 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.
Quote from: 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 ;)
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.
QuoteThere 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.
QuoteEldeka (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 ;)
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
The one in the SVN should be fine to use.
http://prettyurls.googlecode.com/svn/trunk/Base/
thanks is ther a packeg yet as i prefer to install packeges lol its easyer hehe
Not yet.
thanks do i download all them files and install them [dont have pretty urls installed at mo
Yep, you can either make your own zip file, or just upload them to a new directory in Packages.
thanks ill see if i can sort it out thanks eldka
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.
<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
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)
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/
ericmm> Normally, SMF does an automatic backup of your board files in the Packages/Backup folder. Check it out.
Quotecru, does it work if you change <Script to <script ?
it worked! :D :D :D :D :D
you're a whiz man, thanks!
Quote from: ܝܠܕܟ on November 08, 2007, 09:36:22 PM
QuoteThere 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 from: ܝܠܕܟ on November 08, 2007, 09:36:22 PM
QuoteEldeka (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.
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 :)
Quote from: 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.
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
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.
QuoteOh. 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.
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.
Quote from: ܝܠܕܟ 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.
QuoteOh. 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. :)
Quote from: ܝܠܕܟ on January 31, 2007, 09:58:27 PM
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
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.
Quote from: ܝܠܕܟ 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:
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,
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.
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 ;)
Quote from: 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 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?
No, the only thing is that the new topics won't get pretty URLs.
Quote from: ܝܠܕܟ on November 12, 2007, 06:19:27 AM
No, the only thing is that the new topics won't get pretty URLs.
Which we should start working on ;)
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...
Pretty much everything is in the base package now, and it still supports TP. It doesn't rewrite TP's articles though.
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...
Quote from: ܝܠܕܟ on November 12, 2007, 06:19:27 AM
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.
QuoteIs 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/
Quote from: ܝܠܕܟ on November 12, 2007, 10:25:32 PM
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
Well....after 48 pages i decided to upload this mod without issues yet. We'll see what this thing does.
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
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. :)
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...)
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.
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.
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)
Quote from: ܝܠܕܟ 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)
Hey this update "prettyurls-base_20071116.tar.gz" seems to work just fine. Thanx.
Quote from: ܝܠܕܟ 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.
Don't know exactly how spread it is.. This is a copy/paste from the author's website (http://nginx.net/):
Quotenginx 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):
QuoteI 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!
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...
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
Did you have an older version installed before the snapshot? You have to clear the database entries for it to work.
Oh, how would I clear the database entries for it?
ܝܠܕܟ 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]
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 :)
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.
Quote from: viulian on November 28, 2007, 01:06:45 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.)
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
Quote from: Nao 尚 on November 28, 2007, 01:55:58 AM
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 :)
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.
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?
Try adding this line before the query in Subs-PrettyUrls.php
$modSettings['disableQueryCheck'] = true;
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!
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.
Quote from: tkam on November 28, 2007, 08:37:45 PM
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);
Ahhh, that explains how those two dashes got there!
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.
Sure it's a problem with this mod? I don't see how that could possibly be affected.
Quote from: ܝܠܕܟ on November 29, 2007, 07:49:07 AM
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 ;)
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
Quote from: ܝܠܕܟ 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.
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
QuoteI 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
QuoteThat'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?
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
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.
Quote from: ܝܠܕܟ on November 28, 2007, 08:26:37 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!
Quote from: Dannii on November 29, 2007, 08:42:23 PM
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..?
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'm just getting a white screen when I activate this...what do you think?
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?
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?
Quote from: 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?
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.
Quote from: Dannii on November 08, 2007, 02:49:59 AM
QuoteIf 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:
if (isset($context['pretty']['oldschoolquery']) && $modSettings['pretty_enable_filters'])
if (!isset($context['pretty']['oldschoolquery']))
MessageIndex.php:
if ((isset($context['pretty']['oldschoolquery']) || $_REQUEST['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
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.
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.
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.
QuoteI 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.
QuoteAlso 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).
QuoteOK, 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...
QuoteI'm just getting a white screen when I activate this...what do you think?
Errorlog etc?
Quoteyeah, 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.
QuoteI 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?
QuoteI notice that the smf_pretty_urls_cache table is enormous (85MB) - can I just click 'empty'?
Sure.
QuoteI'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.
Quote from: Dannii on December 05, 2007, 09:34:22 AM
QuoteI'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.
Quote from: Col on December 04, 2007, 07:46:18 AM
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:
Quote from: 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.
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.
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' :)
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 [?;&].
QuoteCan 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.
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.
Are you using the latest snapshot? At least some of that sounds like things that have been fixed already.
Hey Dannii, did you see my posts on the other board.....?
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...
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.
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
Quotegallery/?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. ;)
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.
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:
Quotemean? 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.
Quote2. 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.
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
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.
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!
Quote from: 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!
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.
there r another way to resolve turkish character problem without utf8 ?
If you have the mb string extension installed it should work I hope.
Quote from: Dannii on December 19, 2007, 09:09:24 AM
If you have the mb string extension installed it should work I hope.
u said for me ?
Yes.
Or, try to replace this in Subs-PrettyUrls.php:
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:
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...)
thanks for reply but it doesnt work still :(
You have to uninstall the mod, delete the smf_pretty_topic_urls table and reinstall the mod after uploading the modified file...
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...
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 ...
Quote from: Nao 尚 on October 17, 2007, 06:59:49 PM
Quote from: 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/
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.
Uninstall prettyurls, delete your pretty urls mysql tables, and reinstall...
Quote from: Nao 尚 on December 21, 2007, 04:53:57 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
Quote from: Nao 尚 on December 21, 2007, 04:53:57 PM
Uninstall prettyurls, delete your pretty urls mysql tables, and reinstall...
Tried that. But it didn't help :(
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. ;)
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.
Quote from: Dannii on December 21, 2007, 07:59:27 PMRyan, 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 ...
Quote from: 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 ...
Quote from: Nao 尚 on October 17, 2007, 06:59:49 PM
Quote from: 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/
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.
Quote from: Dorian on December 21, 2007, 06:08:20 PM
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...)
Or just install the latest snapshot.
There's a new snapshot to try, with some big changes. Check the changelog for details.
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.
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...
Quote from: BlueDevil 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.
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?
Quoteis something suppose to happen when I click the maintenance icon ?
cause it takes me no where
Not yet.
Quotealso, no idea where this change log is...
http://prettyurls.googlecode.com/svn/trunk/changelog.txt
QuoteOk....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?
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 :(
Quote from: 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 ...
Quote from: Nao 尚 on October 17, 2007, 06:59:49 PM
Quote from: 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/
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.
Quote from: Dannii on December 26, 2007, 11:13:12 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.
ryanhellyer, did you install 0.7, or the latest snapshot?
Quote from: Dannii on December 27, 2007, 09:57:56 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?
No it's not buggy.
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.
Thanx Dannii!
This update prettyurls-base_20071230.tar.gz sure cleared the issues i was having.
Quote from: BlueDevil on December 30, 2007, 04:52:27 PM
Thanx Dannii!
This update prettyurls-base_20071230.tar.gz 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.
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.
QuoteJust 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...
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.
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:
require_once(dirname(__FILE__) . '/Modifications.english.php');
Quote from: 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.
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. :)
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...
Yeah the board names stuff isn't finished yet.
I installed this mod and now im getting 404's on all pages.....is there any way i can disable this mod?
i cant find anything i can edit easily in the database to turn this damn thing off.
Quote from: 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.
got it....had to remove the "on" entry from pretty_enable_filters ...i was changing it to "off"
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
Are mod_rewrite and per-directory configuration (.htaccess) enabled on your server?
Quote from: Dannii on January 09, 2008, 08:16:48 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?
can someone tell me why there is "/0/" at the end of every link...?
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?
Quotecan 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.
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!
Have you edited your templates somehow? Those message pages should have the noindex meta tag.
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:
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'])
Quote from: viulian on January 12, 2008, 03:17:29 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
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
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:
// 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.
Quote from: 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.
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 ;)
Quote from: bluegray on January 12, 2008, 10:48:00 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.
QuoteI 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.
QuoteBut 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...
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
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!
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.
Anything in the php error log (not SMF's)?
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.
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?
What's the code you included?
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 ;)
Hmm weird. But if it's working now, that's great :).
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.
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
That's the full query?
yeah, there are some other values, but they are all similar to the one I posted. (13, "recommended-reading"), (143, "promises-promises") etc.
Looks like it is line 316 in Subs.php
log_error('Hacking attempt...' . "\n" . $db_string, $file, $line);
that causes the log error.
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!
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!
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.
Quote from: 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.
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.
QuoteThat 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.
QuoteYour suggestions were usually quite good,
I know :P
QuoteAnyways, thanks for your help!
You're welcome. Good luck for improving what is already a great mod ;)
QuoteI 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.
QuoteI'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!
Quote from: Dannii on January 15, 2008, 08:36:04 AM
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.
QuoteAnyways, 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...
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?
Are you using the latest snapshot?
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?
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!!!
QuoteNotice: Undefined index: pretty_board_urls in /storage/mijndomein/users/073949/public/sites/www.klifix.eu/u/index.php on line 85
and
QuoteNotice: 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!!!!
QuoteThe 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.
QuoteWTF???? 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.
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!].
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)
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.
Quote from: 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.
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 :)
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 :)
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:
QuoteREPLACE 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.
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.
Quote from: Dannii on January 30, 2008, 08:50:26 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.
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.
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/
Are you using UTF-8? The mod is designed to work with that encoding, and may sometimes work with others, but not as well.
im not usuing utf-8 but in other forums that not use utf-8 it works correctly
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.
cassie, are you using 0.7 or a 0.8 snapshot?
I'm using 0.7.
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!
QuoteSo 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.
Quoteb) Will Pretty URL be active in SMF 2.0 ?
Yes, 0.8 already supports it, though not the latest beta.
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?
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.
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...
Yeah. Maybe.
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 :)
Yes uninstall 0.7, but don't delete any tables.
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
';
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.
That fixed it! Thanks for your help everyone :)
Quote from: 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.
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
QuoteJust 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?
Quote from: Dannii on February 05, 2008, 06:31:56 PM
QuoteJust 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
Another error messege I've found
Quote2: 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
Yeah it definitely sounds like there's a problem with the server... permissions set incorrectly perhaps?
Have you had problems with any other mods?
Thats what I thought the problem was until I setup a forum from scratch and still had the problem
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 ´
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.
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.
my database is already using UTF-8 encoding ;)
and I have already reinstalled the mod twice, droping the two tables, but no effect :/
Latest snapshot?
Quote from: 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?
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?
Quote from: 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 :/
Did you use the entities tool? Your topic titles are using entities!
QuoteSo 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?
Quote from: Dannii on February 09, 2008, 04:18:00 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.
I have those installed :
Pretty URLs - Profiles - Extention: none 0.7
Pretty URLs - Base 0.7
Pretty URLs - Actions - Extention: none 0.6
arcade games dont working when i install this mod.
error showing while open about java..
please help
tomate, did you use the entities tool?
mrzcn, use the latest snapshot.
Quote from: Dannii link=topic=146969.msg1418737#msg1418737 date=1202611486
mrzcn, use the latest snapshot.
/quote]
sorry i dont understand ? snapshot ?
http://code.google.com/p/prettyurls/downloads/list
Get the top file, uninstalling 0.7 first.
Quote from: Dannii on February 09, 2008, 09:44:46 PM
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
"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 é (and such) entities, which are turned into their utf8 equivalent, such as é.
Quote from: 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 é (and such) entities, which are turned into their utf8 equivalent, such as é.
ho yes, I used these tools to convert to UTF-8
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
I have done thatn but still the same problem :/
I think there are still some é somewhere in the database or in the sources ....
I have to replace them with UTF-8 code ?
Where are they appearing, topic or board names?
Get the 2007-12-30 snapshot from http://code.google.com/p/prettyurls/downloads/list
Quote from: Dannii on February 11, 2008, 06:42:43 AM
Where are they appearing, topic or board names?
yes
sometimes there are andeacute, sometimes there is nothing
Yes, but in board or topic names?
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
APC should work fine, I use it.
Anything in the error logs? (SMF, PHP, Apache etc)
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
Quote from: Dannii on February 11, 2008, 08:23:56 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 !
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 :)
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
Quotewell, 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.
QuoteIn 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).
QuoteHere 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?
$modSettings['disableQueryCheck'] = 1;
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!
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.?
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
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:$modSettings['disableQueryCheck'] = 1;
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
:)
Good to hear it's working fine now :)
yes everything is ok now, i am very happy ! :)
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
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.
QuoteTo 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.
Is it possible to make subdomains for the stats, admin, and actions?
Like- stats.yourdomain.com instead of yourdomain/stats?
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 :)
Quote from: 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 :)
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 "/".
Quote from: viet on February 17, 2008, 11:45:20 AM
QuoteTo 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.
Does your server support .htaccess and mod_rewrite?
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?
You need to check if the one in the root folder is conflicting.
Thanks, how can I check it. I do not know .htaccess language.
Can you please check for me
this is my file
RewriteEngine on
RewriteRule .*(<|>|;|UNION|SELECT|WHERE).* /go.html [QSA,NC,L]
ErrorDocument 404 http://mydomain.com/error.html
Thank you
You can just remove that... I think it's trying to protect against injections, but it's probably quite useless.
Yes. SMF already removes UNION statements from queries. And the upcoming SMF2 does a great deal to completely shut down possible malicious injections.
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
You can, just add /forum/ to both the pattern and before index.php
Sorry for silly question. I do not know much about .htaccess
Is this correct?
# 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
# 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
RewriteRule .*(<|>|;|UNION|SELECT|WHERE).* /go.html [QSA,NC,L]
right?
If so, how can I correct it.
Thank you.
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...
viet, try this:# 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.
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.
Well it should work if you just remove the other .htaccess, but okay.
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!
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!!!
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?
Quote from: 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.
Thanks, Dannii. Will try that.
Well you should try it :)
Quote from: Dannii on February 22, 2008, 06:50:25 PM
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...
QuoteHow 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.
QuoteThere'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?
Quote from: Dannii on February 23, 2008, 10:10:11 AMI 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. ;)
QuoteWhich 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. :)
where i can see a demo of this mod?
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.
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
Link to your site? Does your server support mod_rewrite and .htaccess?
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.
Ask your host if they support it.
In the mean time, try running this query in phpmyadmin:
UPDATE smf_settings SET value = '0' WHERE variable = 'pretty_enable_filters'
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?
Well you need to check if the mod will actually work on your server's hardware before turning it on again.
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 ]
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.
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.
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...
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:
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
Try chmodding it to 777 and then try enabling the mod again.
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
Good to hear it :)
Hey Dannii,
Is it safe to leave .htaccess at 777? or Should it to something else?
It should be safe.
Ok cool. Btw, my site is already topping the google search results for particular topics. :D :D Thanks again.
Using prettyurls-base_20071230.tar.gz I got blank page on some topics but work fine when turn of Pretty URLs. Any idea?
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?
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.
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.
Hi Dannii,
Here is the error log
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?
Is that literally the topic name?
Quote from: Dannii on February 26, 2008, 04:58:19 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?
Nope.
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?
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:
QuoteFatal 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?
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!!!
Even worse, I can't access my admin section anymore, it redirects me to the homepage :(
Quote from: Dannii on February 26, 2008, 07:24:22 AM
Is that literally the topic name?
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
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.
When I go to "Featured & Options" in Admin CP, I get the following error:
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
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: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.
Thanks Dannii!
It seems working fine now ;)
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.
Quotehowever 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.
QuoteThe 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.
This is true, however as the mod is a beta (and 0.8 isn't even properly published yet!) you have to at least be accepting of changes.
Quote from: 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:UPDATE smf_settings SET value = '0' WHERE variable = 'pretty_enable_filters'
Thanks Dannii, Now the site works fine. But the 404 error in the boards is still there.
What can you suggest?
PS: The URL fragment for boards doesn't work for me either.
Quote from: Dannii on February 27, 2008, 09:19:41 AMThis is true, however as the mod is a beta (and 0.8 isn't even properly published yet!) you have to at least be accepting of changes.
No worries, I understand, just wanted to point it out. Just out of curiosity, are planning to revert to the old paths upon actual release of 0.8?
lonrot, I think there must be some problem with your server, because for noone else does it keep the escaping back slashes...
salguod, no I'll keep it the new way.
I don't think so Dannii. I just moved to a new server and the problem came along aswell.
Hello, great job (0.8 ) but i have some request:
- is there any way to include specific for every topic and board keywords into meta tags ?
Mod already include description into meta tags but there are not keyword support (only standard smf keywords - same pod every topic).
Such improvement is included already into "seo4smf" mod but this mod are not working too good.
Keywords can be taken from topic title + text or board title
I think it will be very important for seo.
lonrot, if you completely uninstall the mod (use the uninstall tool (http://prettyurls.googlecode.com/svn/trunk/uninstall.php) if you like), and then reinstall 0.8, does the problem remain?
vhs, no I'm not interested in doing anything will silly meta tags. I don't want this mod to be filled with bloat.
Hmm, i think meta tags are pretty important for seo and site optimizing.
Pity.
Well you can write/use another mod, or just edit your templates manually.
Thanks Dannii, the problem is finally solved with that php you gave me.
The only thing no good is the pretty url for members, but I can live without it.
:D
Dannii, is it possible have member ID in pretty url for member? ex. /profile/1-admin/
Why would you want that? (And yes it is but you'd have to edit the templates and rewrite rules manually.)
Quote from: Dannii on February 29, 2008, 01:04:25 AM
Why would you want that? (And yes it is but you'd have to edit the templates and rewrite rules manually.)
Because I don't what ID a username has LOL
Thanks for the suggestion
Sorry, you'd have to edit the filter function and rewrite rules manually, not any of the templates!
I found some time to upgrade pretty url on my forums - I just did so on my test machine, and it works! Super!
I also like the new admin interface for it :) [I'm using the prettyurls-base_20071230.tar.gz version]
I have a couple of questions:
a) By default, it will prettyfy the actions. It's ok with me, but I cannot get to the 'Packages' section in the admin page. All other sections seem to work ok ('Features and Options', 'Server settings', etc) but 'Packages' redirects me to the main page of the forum.
This is not an issue for me, I disabled the pretty for admin actions anyway, as I like to see the actions in browser and edit them by hand (I have some I created myself and I just edit one of the admin URL to run them).
b) I am using a plugin named 'Rename Topics' found here on the Modification pages. It is used for batched rename of a topic (including the first post, and the 'Re: .....' posts after them).
However, when I have pretty url active, it doesn't seem to work.
Is there a quick fix - if you guys can spot it, i'd be glad not to have to dig in myself :)
I assume the issue is around:
// Define ID_TOPIC.
$ID_TOPIC = (int)$_REQUEST['topic'];
but I'm clueless on how to modify it.
I've attached the method that does the rename:
function RenameTopic()
{
global $db_prefix, $txt, $func, $context, $sourcedir;
// Check if allowed to renameTopic.
isAllowedTo('rename_topic_own') || isAllowedTo('rename_topic_any');
// Load the template.
loadTemplate('RenameTopic');
// Check if a topic id is set.
if (!isset($_REQUEST['topic']) || is_array($_REQUEST['topic']))
fatal_lang_error('rename_topic_no_id');
// Load Subs-Post.php
require_once($sourcedir . '/Subs-Post.php');
// Define ID_TOPIC.
$ID_TOPIC = (int)$_REQUEST['topic'];
// Select the current subject.
$selectSubject = db_query("
SELECT m.subject, t.ID_FIRST_MSG
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t)
WHERE m.ID_TOPIC = '$ID_TOPIC'
AND t.ID_FIRST_MSG = m.ID_MSG
LIMIT 1", __FILE__, __LINE__);
// List the result.
list ($currentSubject, $ID_FIRST_MSG) = mysql_fetch_row($selectSubject);
mysql_free_result($selectSubject);
// Stripslashes and htmlspecialchars
$context['currentSubject'] = strtr(censorText(stripslashes($currentSubject)), array("\r" => '', "\n" => '', "\t" => ''));
// If renameTopic isset do the renaming.
if (isset($_POST['renameTopic2']) && !empty($_POST['subject']))
{
// Check if they have a valid session.
checkSession();
// Clean the new subject.
$_POST['subject'] = strtr(htmlspecialchars($_POST['subject']), array("\r" => '', "\n" => '', "\t" => ''));
// At this point, we want to make sure the subject isn't too long.
if (strlen($_POST['subject']) > 100)
$_POST['subject'] = addslashes(substr(stripslashes($_POST['subject']), 0, 100));
// Make sure the subject fits in the tinytext of the database.
if (strlen($_POST['subject']) > 255)
$_POST['subject'] = addslashes(truncate(stripslashes($_POST['subject']), 255));
// Do the dew.
$update = db_query("
UPDATE {$db_prefix}messages
SET
subject = 'RE: $_POST[subject]'
WHERE ID_TOPIC = '$ID_TOPIC'", __FILE__, __LINE__);
// Subject w/o the prefix.
$update2 = db_query("
UPDATE {$db_prefix}messages
SET
subject = '$_POST[subject]'
WHERE ID_TOPIC = '$ID_TOPIC'
AND ID_MSG = '$ID_FIRST_MSG'
LIMIT 1", __FILE__, __LINE__);
// Check if it went through. If so redirect.
if ($update == true && $update2 == true)
redirectexit('topic=' . $ID_TOPIC);
else
redirectexit('action=renameTopic;topic=' . $ID_TOPIC);
}
// Set the title.
$context['page_title'] = $txt['rename_topic'];
}
c) Third.. did any of the rules in .htaccess file changed from previous version 0.7 ? I do not use .htaccess to do the rewrites as I'm using nginx webserver (gave up on the apache - too big and slow for my requirements).
I just wanted to know if they changed because if they aren't, then I don't need to update my nginx.conf file :)
Thank you,
Quotea) By default, it will prettyfy the actions. It's ok with me, but I cannot get to the 'Packages' section in the admin page. All other sections seem to work ok ('Features and Options', 'Server settings', etc) but 'Packages' redirects me to the main page of the forum.
This is not an issue for me, I disabled the pretty for admin actions anyway, as I like to see the actions in browser and edit them by hand (I have some I created myself and I just edit one of the admin URL to run them).
How strange, I'll have to look at it later, but I've never had problems like that before.
Quoteb) I am using a plugin named 'Rename Topics' found here on the Modification pages. It is used for batched rename of a topic (including the first post, and the 'Re: .....' posts after them).
However, when I have pretty url active, it doesn't seem to work.
Does setting it just to $topic work? Add it as a global of course.
Quotec) Third.. did any of the rules in .htaccess file changed from previous version 0.7 ? I do not use .htaccess to do the rewrites as I'm using nginx webserver (gave up on the apache - too big and slow for my requirements).
I just wanted to know if they changed because if they aren't, then I don't need to update my nginx.conf file :)
nginx doesn't have any per-directory config option does it? (I just googled a bit and though I saw something say it did, but can't find any more details)
Um.. well the actions rules are now generated from the list of actions, however practically, I don't think that will actually matter.
I've just hacked my forum to take back my admin page 8)
Pretty URL 0.8 is now installed and working!
However, for reasons unknown yet - but I hope to dig in later on - after the default install, I couldn't get to the admin page at all. No "index.php?action=" actions worked anymore (I mean members could not login, for example...).
Tracking down the issue, seems that somehow the $scripturl variable doesn't end in /index.php anymore - so all form's submit actions weren't pointing to the right thing - and as the action rewrite did not work - I could only get the forum front page.
I tried to edit the 'settings' table, 'pretty_filters' was changed manually from:
?action=something)";s:7:"enabled";i:1;
to
?action=something)";s:7:"enabled";i:0;
A couple of refreshes later, It still did not render properly (pretty actions filter was active - or in fact, the result on the screen showed that instead of /community/index.php?action=admin I got /community/admin
However, If I was manually typing the 'index.php?a....' stuff, i got the pages (but again, the forms actions were not ok still, so I coun't change anything in the admin part).
The temporary solution was to (and luckily I was still logged in as admin - as logging in didn't work anymore):
1) Put this in the browser address bar:
.../community/index.php?action=packages;sa=uninstall;package=prettyurls-base_20071230.tar.gz
2) I edited the pretty url module archive (SMF1.1/install.php file) and changed enabled to '0' instead of '1' (for the 'actions' part)
'actions' => array(
'id' => 'actions',
'description' => 'Rewrite Action URLs (ie, index.php?action=something)',
'enabled' => 0,
3) Reinstall the module.
Don't know yet why it happened, but I am sure that changing the setting manually in database (the pretty_filters) did not disable the actions filter.
But everything else seems to work normally so far :) and I got my sitemap.xml generated properly (SSI.php was needed so I can have access to $modSettings['pretty_board_urls'] - but I did the lookups manually for the ID_TOPIC -> pretty_url of topic) and composed the URL's that way.
I will now look into the Rename thing.
Ok, rename solved. Thanks for the tip with global $topic, it did contain the topic id :)
Here's the new code which also invalidates the pretty url cache.
Can you please tell me if it's correct (for example, do you indend to change some logic - in future versions of pretty url - which might break the code below ?)
// Invalidate pretty url cache
// Find out what to remove first.
$cached_topic_result = db_query("SELECT pretty_url FROM {$db_prefix}pretty_topic_urls WHERE ID_TOPIC=$topic LIMIT 1", __FILE__, __LINE__);
list($current_cache_value) = mysql_fetch_row($cached_topic_result);
mysql_free_result($cached_topic_result);
// cleanup!
$update3 = db_query("DELETE FROM {$db_prefix}pretty_topic_urls WHERE ID_TOPIC=$topic", __FILE__, __LINE__);
$update4 = db_query("DELETE FROM {$db_prefix}pretty_urls_cache WHERE replacement LIKE '%" . $current_cache_value . "%'", __FILE__, __LINE__);
// Check if it went through. If so redirect.
if ($update == true && $update2 == true && $update3 == true && $update4 == true)
redirectexit('topic=' . $ID_TOPIC);
....................
QuoteDon't know yet why it happened, but I am sure that changing the setting manually in database (the pretty_filters) did not disable the actions filter.
Did you remember to empty the cache after turning off the filter?
QuoteHere's the new code which also invalidates the pretty url cache.
Can you please tell me if it's correct (for example, do you indend to change some logic - in future versions of pretty url - which might break the code below ?)
Hmm sorry, what are you trying to do here?
1. Nope, I did not remember :-[
2. I am trying to rename a topic (which happens) but I also need to regenerate all that pretty url knows about the topic (I also need pretty url to know that the topic got renamed).
I renamed one of my topics and internally the titles were ok, but the pretty url cache already had cached the older name (which I just changed).
So I am trying to invalidate the cache which is related to that topic.
Hope it makes sense..
Okay yep.
Hi All,
Ok I have been trying to get this to work with my SMF 1.1.4 install and TP 0.9.8. When I try to install this via the Admin/Packages/Upload and when it uploads that works, when I try to apply the mod and get the Dreaded Error Message up top stating the following:
QuoteError in Package Installation
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.
The only thing that failed in the list is ./Sources/QueryString.php everything else passed so any help on this would be much appreciated.
Thanks in advance.
Ron
Hi again, this time I'm getting this error every 5 minutes or so:
Hacking attempt...
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (7246, "transworld-surf-(ps2-ntsc)"), (15508, "(rpc)(mu)(ps2)-black-(palntsc)(selector-multi5-espaol)(fulldvd)")
File: /home/consolem/public_html/Sources/PrettyUrls-Filters.php
Line: 139
I don't think every member attemps to hack my site each time.
RSprinkel, what other mods do you have?
lonrot, follow the instructions here: http://www.simplemachines.org/community/index.php?topic=146969.msg1423526#msg1423526
Hi Dannii,
Below is a list of mods/packages installed and in use:
Treasury 2.06
TinyPortal 0.983
Add Domaintools to TrackIP 1.0
Ad Managment 2.3
Welcome Topic Mod 1.0
Show Google PageRank 1.0
Thanks but now a new error is spamming the error log:
2: call_user_func(pretty_urls_board_filter) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback
File: /home/consolem/public_html/Sources/Subs.php
Line: 2730
There are lapses of seconds between the reports.
RSprinkel, none of those mods stand out to me as one that would conflict, so I'm not sure what the problem is. I suggest you install the mod even though it says there's an error, and then manually edit QueryString.php.
lonrot, check that nothing's corrupted your PrettyUrls-Filters.php file.
Hey guys. I install pretty urls 0.8 snapshot and have it running fine with one problem
for viewing boards and topics, an extra slash is added
here is a page.
http://www.amtra.com.au/forum//chat-and-questions-about-amtra/
I just added an extra slash to the beginning of the topic and board rules in the .htaccess to solve the problem, but i would like to fix this, I also believe google is not indexing these pages.
Any Ideas or solutions would be great,
CHeers,
-- Zemond
Whats your pretty_root_url setting set to?
/forum/,
I even tried changing it to
/forum
with no help
After changing it to /forum, did you empty the pretty_urls_cache table?
Dammit, you beat me to it, yeah i just did and all works fine, thanks for your help Dannii
Cheers,
-- Zemond
Good to hear it's working now :)
It looks like the mod is stripping the '#' out of empty link tags. href="#"
turns to href=""
Hmmm, yes it would. Is that causing problems?
not really, it just causes a warning when trying to validate the page - the href attribute can't be empty.
Well there's little point having href="#" either... :P
To fix, make this change to QueryString.php
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"]+\"|\'[^\']+\')~';
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"]{2,}\"|\'[^\']{2,}\')~';
Yeah I know, but the standard template seems to do it that way...
Hey my site is down. Some of the topics open but most of the site is down. Homepage is down.
Apply Filter: Only show the error messages of this member PanesarV Today at 11:50:53 PM
Apply Filter: Only show the error messages of this IP address 75.157.58.126 Apply Filter: Only show the error messages of this session 8c9fb84ec4b5c0e70ec1fcbc435e3e99
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
Hacking attempt...
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (1144, "sachin-tendulkar-117-runs-1st-final-australia-v-india-at-sydney-mar-2--t1144")
File: /home/ecricnet/public_html/forums/Sources/PrettyUrls-Filters.php
Line: 139
I pressed post on a topic and after that it said hacking attempt and after that it went down.
I disabled the mod with this
UPDATE smf_settings SET value = '0' WHERE variable = 'pretty_enable_filters'
Okay, yep that's a bug I saw a while ago... never got around to fixing it. You can fix it by following the instructions here: http://www.simplemachines.org/community/index.php?topic=146969.msg1423526#msg1423526
Quote from: Dannii on March 06, 2008, 02:49:50 AM
Okay, yep that's a bug I saw a while ago... never got around to fixing it.
Just in case you didn't notice, that particular bug is fixed in my custom version ;) Have a look :)
(BTW, my version doesn't support rss feeds, because I didn't convert the search pattern last time. Now I do, but I don't suppose you're interested, since it's only of interest when you use subdomains ;))
I think the real issue is I'm using double quotes in that query rather than single quotes. Weird.
0.8 is finally released! :)
For those of you who are still using 0.7 and haven't upgraded to a snapshot before, the main different you'll notice is the new control panel.
For a full list of changes see http://prettyurls.googlecode.com/svn/trunk/CHANGES
i found some error.
Undefined index: pretty_admin_menu
File: /home/****/public_html/Sources/Subs.php
Line: 2759
8: Undefined index: pretty_enable_filters
File: /home/****/public_html/Sources/QueryString.php
Line: 483
Attempting to install the 0.8 release using the package manager for me yields the error:
"The package you tried to upload either is not a valid package or has become corrupted. "
SMF 1.1.4
Tested by downloading using different computers and browsers.
[edit]
Solved it simply by repackaging the files myself. No issues opening the archive locally.
[edit2]
What would be the easiest way to maintain additional htaccess rewrite rules given that this mod wipes .htaccess when modifications occur?
Is there any chance of adding some form of additional rules interface to the mod or making it not wipe content in the .htaccess file which is not maintained by itself?
Quote from: MorMMaM on March 07, 2008, 05:35:29 AM
i found some error.
Undefined index: pretty_admin_menu
File: /home/****/public_html/Sources/Subs.php
Line: 2759
8: Undefined index: pretty_enable_filters
File: /home/****/public_html/Sources/QueryString.php
Line: 483
Hmm, can you check the language files were edited correctly?
QuoteAttempting to install the 0.8 release using the package manager for me yields the error:
"The package you tried to upload either is not a valid package or has become corrupted. "
SMF 1.1.4
Tested by downloading using different computers and browsers.
[edit]
Solved it simply by repackaging the files myself. No issues opening the archive locally.
Hmm weird, I'm just using the same program as before...
QuoteWhat would be the easiest way to maintain additional htaccess rewrite rules given that this mod wipes .htaccess when modifications occur?
Is there any chance of adding some form of additional rules interface to the mod or making it not wipe content in the .htaccess file which is not maintained by itself?
It does back up the existing .htaccess file before editing it, so it won't be lost (however if you change the filters twice in the one day it will overwrite the backup... something to be careful with).
The best way is to add an extra filter that has your own rewrite rules. If you wait a few days, I'm currently adding a tool to view the filters in the control panel. The next snapshot should have that in it (although it will be a hidden feature you access by url).
Sounds good Dannii :)
Thanks for a great mod
This looks like a mod I need to keep my eye on.
Any clue when it's gonna come out of beta?
Not for a while yet, but it's very stable. As long as you don't have server problems it should be fine.
ShadowMaster, the latest snapshot has the tool, which you can access at index.php?action=admin;area=pretty;sa=filters
Be careful!
Hey,
'PrettyURL' changes URL and has ( ) brackets in the URL. Some websites don't support that [I was trying to submit to a site like Digg]. I don't think brackets in URL are SEO Friendly. Please put some insight on it. :)
Thanks.
Quote from: Dannii on March 09, 2008, 03:11:58 AM
ShadowMaster, the latest snapshot has the tool, which you can access at index.php?action=admin;area=pretty;sa=filters
Be careful!
Thank you. I'll play around with it some next weekend.
Quote from: PanesarV on March 09, 2008, 04:01:03 PM'PrettyURL' changes URL and has ( ) brackets in the URL. Some websites don't support that [I was trying to submit to a site like Digg]. I don't think brackets in URL are SEO Friendly. Please put some insight on it. :)
Hmm really? interesting... they should be supported!
Quote from: Dannii on March 09, 2008, 07:39:45 PM
Quote from: PanesarV on March 09, 2008, 04:01:03 PM'PrettyURL' changes URL and has ( ) brackets in the URL. Some websites don't support that [I was trying to submit to a site like Digg]. I don't think brackets in URL are SEO Friendly. Please put some insight on it. :)
Hmm really? interesting... they should be supported!
Does Google like brackets in URLs?
I don't think it as a problem with them, they're supported in the RFC.
help again.. i cannot locate my old post..
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
';
getting that on all pages
You need to fix the language files, check that ?> is the very last thing in the file.
Since the format for pretty urls changed a few times, I have some urls in the Google index that changed or does not exist anymore. It looks like the root page or board is displayed for those wrong urls - with a '200 OK' reply header. Is it possible for those pages to rather get a 301 redirect so google will know they moved? If not, maybe a '410 Gone' or '404 Not Found' error is better?
The only thing that should have changed is that 0/ got dropped off URLs. Honestly, I can't be bothered making them redirect, but you're welcome to do so yourself.
Yeah, no problem. I just don't know where to start. Where does it generate the root page when a wrong pretty url is encountered?
You could also just undo the change here: http://code.google.com/p/prettyurls/source/diff?r=52&format=side&path=/trunk/Base/PrettyUrls-Filters.php
Might need to jiggle it around a little though...
Quote from: Dannii on March 10, 2008, 02:35:22 AM
I don't think it as a problem with them, they're supported in the RFC.
This isn't a RFC violation or anything. I think it's just a logical reason.
Say you post an URL between brackets (like this very nice little website at http://cyna.fr/), where does the URL to HTML conversion stop? What if there's actually a web page on my website that can be found at ")"? Well, what are the odds? The URL is most likely to be recognized as "http://cyna.fr/".
This is one of the reasons why I'm suppressing smileys from the URL, such as ";-)", to avoid this kind of problem. When it comes to actual text inside two parenthesis, like "hi (mom)", it should be up to the conversion script to "guess" that since an opening bracket was found before reaching the end of the URL, any ending bracket should be considered as part of the URL too. Of course, writing stuff like "hi, visit my website at http://cyna.fr(cool)" isn't going to help, but I'm trying my best here.
(Hey, SMF bug here ;))
It's always been one of the things where I wasn't too sure whether I should follow the RFC rules or not.
I'm entitled to think that I shouldn't. I should just drop the brackets. But not now.
Please note that using BBcode like [url=http://nao.cyna.fr/2999/la-fin-d'une-(premiere)-epoque/] will help tremendously. Of course, the website has to support BBcode!
Hmmm good points there. So the problem would be if people post URLs without using BBCodes?
Yup, that's it.
It's really on a per-site basis, though.
Hm. I tried installing both versions of PrettyURLs on my site today (the snapshot and the Stable version), and I can't find the example.htaccess anywhere. I checked in the forum root, the site root, the Themes folder... everywhere I can think of. Where is it?
ETA: I figured out the problem - my host (Yahoo!) doesn't use Apache, and dies whenever you try to write an .htaccess file, naturally. So it wouldn't work anyway. There goes a good two hours. >:()
You don't need an example.htaccess file anymore.
Well if your host doesn't use Apache you probably won't be able to use this mod. What httpd does it use?
Dannii, have you made up your mind about the whole ( ) story?
I've been reworking my custom code (in order to merge the PrettyURLs query to get the board ID, and the SMF query to get the board info), and used the opportunity to remove support for brackets in the URL.
So, http://nao.cyna.fr/2999/la-fin-d'une-(premiere)-epoque/ has become
http://nao.cyna.fr/2999/la-fin-d'une-premiere-epoque/
It is quite sad that I've had to remove these, if only because SMF had perfect support for transforming these URLs correctly (only if an opening bracket is found before the closing bracket though), but I guess it's important to figure out whether one wants to have their forum URLs published on other media, including non-SMF software.
Honestly I haven't thought about it. I've been working on getting the mod installing on 2.0 beta 3 and SQLite.
It's working on my Beta 3. Need any help?
You're not using SQLite are you though? There are a few queries that need changing, and I think the devs are adding some custom functions too. It's not hard, just annoying!
Nah, didn't think of that. Since I'm MySQL-only, I didn't take time to make it SQLite compatible, sorry.
Yeah, I saw all the talk about REPLACE. Bad SQLite, bad!!
Quote from: Dannii on March 12, 2008, 08:59:05 PM
Well if your host doesn't use Apache you probably won't be able to use this mod.
You might want to mention that on the download page for this mod
Maybe, I'll be writing up an install wiki doc, so I'll at least put it there.
Quote from: Dannii on March 17, 2008, 03:06:21 AM
Maybe, I'll be writing up an install wiki doc, so I'll at least put it there.
Maybe??
It would be helpful and isn't that hard to write, "Hey this won't install on Windows, so don't bother"
Hell, I wouldn't have tried to install it myself if I would have known that it doesn't work with Windows.
Or do you have something against Windows users and want to see them have unneeded issues?
Sorry about the jagged reply, but "maybe" was a really lame responce to something that should be standard practice in a write-up about ANY software or mod.
It will install on Windows! And it will work with other httpds than Apache, just the user will have to manually install the rewrite rules. I don't consider it a priority because the huge majority of SMF forums run on Apache. And... the mod is still in beta, so if you install it you shouldn't expect it to work perfectly.
Oh, I'm sorry then. I miss understood you when you said "if your host doesn't use Apache you probably won't be able to use this mod". It sounded like it wouldn't work with windows. But you're now saying that it will, just needs to be modified accordingly.
Anyway, a small note in there somewhere would help a few of us out.
Thanks, and sorry for the confusion.
Hey Dannii,
Got some of these in my cache table:
?&action=profile;u=1
Which transforms to:
(start URL removed to avoid spidering) /Nao/?&
I don't think I changed anything in the "& removal area". I know PrettyURLs has a tendency to generate silly little things like "?&", but they're always cleaned up before being actually saved to the cache. Any idea why this should happen? I can't seem to reproduce these. (I could always add a "referrer" field to the table, and save the current page's URL there, so that I could easily reproduce situations where a strange URL like this is used, but that will be as a last resort really ;))
Hmmm, no I've never seen that, and I don't know why a simple str_replace() wouldn't remove it. Unless it's somehow being converted back again before it's put in the database?
I really don't know. No idea, then?
Sorry, nothing. If I think of anything I'll let you know, but it's nothing I've come across.
Okay I'll do the "extra field" stuff then ;) And I'll submit my fix if it's not specific to my version.
Hey Danii, you've got a typo in your mod package for SMF2.
You have for ./Sources/QueryString.php function cleanRequest()
{
global $board, $topic, $boardurl, $scripturl, $modSettings, $smfFunc;
function cleanRequest()
{
global $board, $topic, $boardurl, $scripturl, $modSettings, $smfFunc, $context, $db_prefix;
and for for ./Sources/Subs-Boards.php function modifyBoard($board_id, &$boardOptions)
{
global $sourcedir, $cat_tree, $boards, $boardList, $modSettings, $db_prefix, $smfFunc;
function modifyBoard($board_id, &$boardOptions)
{
global $sourcedir, $cat_tree, $boards, $boardList, $modSettings, $db_prefix, $smfFunc, $context;
And the bug is it's not $smfFunc but $smcFunc :)
Just noticed... that's the whole mod package...
QuoteAnd the bug is it's not $smfFunc but $smcFunc :)
Just noticed... that's the whole mod package...
Yeah I know, I'm in the process of updating it for Beta 3 now...
Hi there,
I had a hard time finding the answer via the search box so I thought i'd ask here:
I am trying to add a 'posted' URL parameter to the redirection URL after someone posts
the normal process goes:
/forum/mycategory/mythread/index.php?action=post
/forum/mycategory/mythread/index.php?action=post2
redirect to parent section, e.g. /forum/mycategory/mythread/
which is fine and dandy but i'd like to mod Post.php to insert that 'posted' param in the redirection URL but the .htaccess rule rewrites my ideal URL
/forum/mycategory/mythread/?posted
into
/forum/mycategory/mythread/??posted
any idea on how to mod the .htaccess to avoid the double question mark?
Thanks in advance!
What's the original URL before being rewritten?
the URL prior to the "prettyfication" is supposed to be
/forum/mycategory/mythread/?action=post2;start=0
Post.php will redirect to:
redirectexit('board=' . $board . '.0');
which should be
/forum/mycategory/
now i modded this redirectexit() to be
redirectexit('board=' . $board . '.0?posted');
which is prettyfied to:
/forum/mycategory/??posted
Try:
redirectexit('board=' . $board . '.0;posted');
Okay, version 0.8.1 is up with basic SMF 2.0 Beta 3 Public support. I've tested it and it works... though I will be surprised if there aren't any further issues.
If you're using SQLite, note that the cache won't be used and each URL will be generated again on each page.
that did it nicely; thanks so much! :D
addtionally, I found that additional parameters can actually be passed with & with no problem
thanks again, i can now place various Google Analytics url markers on top of Pretty URLs ;)
could the admins setting area use theme CSS ?
I have a black bg color, and you use black font.....
I have the mod running and installed fine, just thought I'd throw that up, something else for ya to do
Is the admin panel unreadable?
Ahh wait of course it does. Add this to the div#chrome rule in chrome.css:
background: #eee;
I need to hastle someone to finish the design for me...
I'm hoping someone can assist me as I would like to get this working on my production site. I tested this on my development server and everything worked without problems and my production is on the same exact host so I'm not sure why it is not working. What happens to me is I'm getting 404's on the production server. The only thing different between my development and host is I also have Wordpress installed on the production so I'm thinking there is maybe a conflict with the .htaccess file. I'm not familiar enough with the .htaccess syntax to intelligently troubleshoot and I would appreciate any help that can be offered.
Development
.htaccess location - /forum/.htaccess
As you can see my host supports directory level .htaccess. There is not a .htaccess file at the root of this domain.
Production
Wordpress .htaccess location - /.htaccess
Wordpress .htaccess code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
SMF .htaccess location - /forum/.htaccess
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: March 21, 2008, 20:11
RewriteEngine on
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|regcenter|register|register2|reminder|removemodified|removetopic2|removeoldtopics2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removepoll|repairboards|reporttm|reports|requestmembers|search|search2|sendtopic)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings|serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(theme|trackip|admod|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewmembers|viewprofile|verificationcode|vote|viewquery|who|\.xml)/?$ ./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]
Does it look like these two conflict? Is it possible for them both to coexist? Thanks in advance!
Try something like this in the root directory:
RewriteEngine On
# Rules for: actions
RewriteRule ^forum/(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./forum/index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./forum/index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./forum/index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./forum/index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./forum/index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./forum/index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./forum/index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./forum/index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(recent|regcenter|register|register2|reminder|removemodified|removetopic2|removeoldtopics2)/?$ ./forum/index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(removepoll|repairboards|reporttm|reports|requestmembers|search|search2|sendtopic)/?$ ./forum/index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(serversettings|serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky)/?$ ./forum/index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(theme|trackip|admod|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog)/?$ ./forum/index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(viewmembers|viewprofile|verificationcode|vote|viewquery|who|\.xml)/?$ ./forum/index.php?pretty;action=$1 [L,QSA]
# 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]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
There's probably a way to just let it pass through... but this is simple.
Dannii-
Thanks so much, this worked perfectly. Thanks for such a great add-on and support!
I installed SEF mod and enable it. Now i get this errors in my "Forum Error log"
8: Undefined index: pretty_enable_filters
File: /home/eve/public_html/eig/Sources/QueryString.php
Line: 483
How can i solve this problem??
(i have got SMF 1.1.4)
Are you continuing to get it after you enabled the mod? Does the mod work?
I have had pretty url for a whil eon my forum. Recently my forum just went blank. No front page - nothing. I finally nailed it to pretty url mod. Now when I have it on in global setting, my forum goes blank without nothing in the source, and when I turn it off in admin, the forum comes back again. Could somebody help me. The extensionless urls in google still are able to resolve to the webpage on my forum. In the pretty url setting, I have the global setting off while I have the boarda and topics tick marked. What is going on ? Honestly it has been a little frustrating to work with this mod. How can I help myself in this situation. My forum is back to the default setting in terms of url extensions. What should I do? PS I reinstalled the mod but it has not helped.
error on registration with pretty enabled
Type of error: Undefined
/forum/index.php?pretty;action=login2&sa=check
8: Undefined index: member
/forum/Sources/LogInOut.php
Line: 123
when people register for an account
Unable to login please check your cookie settings
SMF 2.0 Beta 3 Public | Pretty URLs - Base 0.8.1
~quick fix is to turn off pretty for actions
Quote from: Dannii on March 27, 2008, 07:54:17 PM
Are you continuing to get it after you enabled the mod? Does the mod work?
Yes. Mod is otherwise working fine
tufailsyed, anything in the error logs etc? (Check both SMF's and Apache's)
Assistance, I'll have a look at it. Can you please provide a link to your forum.
masss, well if the mod is working, then don't worry about the error. I'll try and track down the problem, I think I might have already.
Hi Dannii ,
Firstly,i want to thank you for modifications.I want ask you something.i took a look but i can not see at pages. I am using Turkish language at forum and my database is not UTF-8 so if a topic includes a Turkish letter,it becomes topic's number.Can you find a solution to this? i wanted to make my database UTF-8 but if i try to change my 100 MB data to utf-8,some spelling problems happens.do you think to find a solution at newer versions?
Demo : http://www.omerkoroglu.net/kopkop/general-discussion/
num topic : 7777777777777777 = 7777777777777777-t17
123123123 = 123123123-t16
normal topic :
test test = test-test
Turkish language :
ş.üğsdüğs.dfğüsüç. = t3
Eren told me there was a problem with Turkish... are you using iso-8859-9? It won't use entities for accented letters will it? I'll see what I can do for you in the later versions.
Though converting to UTF-8 would still be my suggestion. Have you asked the SMF team about the problems you've been having?
Thaks for your answers Dannii . I'm glad to *Eren's writings and he has more experience than me. I use ISO 8859-9 and i don't know it is for accented letters.
i tried with admin panel on Localhost but i coult not.And olsu there are some other programs but i did'nt try them. it is too hard for us to pass utf-8 so i asked can we solve this problem with modification. If there is a solution when will you publish this by new version
i can convert the database to UTF-8 maybe working too much about this with Smf team but you know Turkish smf comes after smf english and lots of users don't have so much experience so the solution of problem shuld be with modification.
thanks
Well UTF-8 should be the standard encoding. It's far simpler for almost everything. If there are common problems with the converter you need to report them as bugs.
When will I release it? Not sure... when it's ready, as always. Though I'd make a snapshot too so you could use that.
In forum the Turkish part split into two part. One of them use Normal language and other is UTF-8. 70 Percent of them user Normal and 30percent of them use utf-8. The first part that 70percent want to use utf-8 but the when converting database there are some character erors. My statue does not allow to show that this is a bug but i may tell this by moderators.
How can you make a snapshot for me i coultn't understand. is it like a personal private language code?
Okay, well I hope you can get those UTF-8 problems fixed.
No a snapshot is just a package made from the latest SVN files. I've started making them more frequently so that people can get bug fixes even if I'm not ready to make a full release version.
Okey, than you said you can fix turkish latters problem in the next version if you do that we are waitng you on tenterhooks.
Turkish character : ğĞ üÜ ıİ öÖ çÇ şŞ
Dannii anything you think can be done in my sitiation. I had sent you the link and login details through pm. Any help from your side will be greatly appreciated.
I just looked then... you have over 57k errors, and you're generating several of them each page view. I couldn't even find any pretty urls errors in the log cause there's so much else there. Try and fix those first please.
Do these errors hurt SEO a lot... what is ( or are) the negatives of having so many errors in the logs. Thanks.
A forum shouldn't be producing any errors at all. That's why they're called errors. It looks like you have a lot of broken mods.
Downloaded your latest release. Works smooth. Thanks a lot. One of the best mods for SMF.
Good to hear, and thanks. :)
I guess my question was different. Now that I have them and it will take me a while to fix everything, does SEO get affected by these errors getting generated when spiders visit these pages.
Probably not by most, but who knows, you have a lot of them!
Thanks Dannii. Now I have a new problem. I tried uninstalling some mods that I dont use. I uninstalled the RSS feed mod and now my forum is showing following message.
Fatal error: require_once() [function.require]: Failed opening required '/home/clinica9/public_html/Sources/Subs-RSS.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/clinica9/public_html/index.php on line 224
Should I do something in the phpmyadmin about this. Please help.
Dannii. Sent you server login info as pm. Please help. Thanks.
Ask the RSS feed mod's author for help. It looks to me like it wasn't uninstalled fully.
I fixed it, but am still wary of uninstalling any mods. Sorry to bother you. Thanks anyways.
Hello Dannii ;
My friend ( War©hild ) had worked on it. Turkish characters has no problem for 8859-9 but i guess it doesnt work with global.but only for 2.0b3. On 1.1.4 there is a problem in category..
Subs-PrettyUrls.php
// Do you know your ABCs?
add before:
Quote$text = strtr($text, chr(231).chr(199).chr(254).chr(222).chr(240).chr(208).chr(253).chr(221).chr(246).chr(214).chr(252).chr(220), 'cCsSgGiIoOuU');
+
drop tablo : pretty_topic_urls + pretty_urls_cache
& smf_settings = 7 tablo drop..
> & again install
Demo : www.yaseminergene.net/forum
nick : test
pass : 123456789
Hi
i want to change the url .for example
http://www.arakteam.net/forum/theme-b30
change to
http://www.arakteam.net/forum/theme-mobile
You can mess around with the board urls arrays in the settings table, though I wouldn't recommend it. I'll be adding an interface to do that eventually.
error:
Notice: unserialize() [function.unserialize]: Error at offset 60 of 1247 bytes in /home/best/public_html/arakteam.net/forum/index.php on line 78
Thanks Dannii. My forum www.clinicalresearchforum.com is working fine now but pretty url is not working. Hope to solve this in the future somehow. Will ask for help if needed in the future regarding pretty urls.
Quote from: mashaheer on April 01, 2008, 02:08:14 AM
error:
Notice: unserialize() [function.unserialize]: Error at offset 60 of 1247 bytes in /home/best/public_html/arakteam.net/forum/index.php on line 78
Do you have a backup of the database settings? I did say I didn't recommend it!
Quote from: tufailsyed on April 01, 2008, 03:20:59 AMThanks Dannii. My forum www.clinicalresearchforum.com is working fine now but pretty url is not working. Hope to solve this in the future somehow. Will ask for help if needed in the future regarding pretty urls.
So it's no longer producing other errors? Excellent.
What happens then if you enable the mod?
When I enable the mod, the forum goes blank. I have kind of given up on that hoping that the url thing may not hurt that much. I don't have the option of using html extensions for the theme I am using which is SAFMC . I know Dilber MC has that option where you can have the urls as html.
And when it goes blank, what errors does it give you? Now that the error log has been cleared they should be easy to see. Also check your apache error log. Different URL styles should be theme independent btw.
hello,
i need your help again
i have a blank page since my debian upgraded apache2-common
i tried to downgrade but still the same problem
where in the database can i disable pretty url ??
thanks
ok i finally found in the database what to change
but i do not understand why as soon as i enable pretty url i have a blank page ??
i installed pretty urls 0.8.1 and it is working just fine :)
still do not understand
So it's working now? Great! As to what cause it to break before... well there are lots of things. Checking the error logs might provide an indication of the cause.
like if apache mod rewrite was not working anymore
just weird ...
sitemap mod doesnt work with this mod! >:(
mashaheer, without more details how can I tell whose mod is at fault?
sitemap mod:http://custom.simplemachines.org/mods/index.php?mod=755
link in sitemap:http://www.arakteam.net/forum/index.php/board,23.0.html
link in forum:http://www.arakteam.net/forum/taayk-haay-hdh-shdh/
Well it redirects, so where's the problem?
I'm using Godaddy hosting and this mod doesn't work. Can anyone help me?
Well, anything in the error log?
Hi Danni, I can't get any error, only there is a 404 error at the front end when I click on any forum.
Does Godaddy even support mod_rewrite and .htaccess files?
yes, my Wordpress Blog works very well!
Could your wordpress .htaccess file be conflicting? How is your site set up?
Hi Dannii,
http://web.huongtinhyeu.net/ --> my wordpress
and my forum: http://www.diendanthuvien.com/forum/
and now, I google this link:
http://www.shaferdesigns.com/blog/2008/02/godaddy-htaccess-modrewrite-is-working.html
But I don't know how to modifiy .htaccess for SMF.
Thanks in advance!
-saosangmo
Do you have a .htaccess in the root directory of http://diendanthuvien.com?
No, I have a .htaccess file in /forum directory and its content:
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: September 26, 2007, 2:08
Options FollowSymLinks
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]
You might need to add a RewriteBase rule perhaps? I haven't had to use one before sorry.
the mod is installed but the posts are still the same do I need to do something else ?
Hi Dannii,
Do you mean that I need add this code:
RewriteBase /forum/
?
-saosangmo
Anarchy, did you enable it in the admin panel?
saosangmo, possibly, I don't know how Godaddy's server is set up. They have docs and stuff don't they?
when this mod is active, some users login to forum and goes to a topic or board ,they logout spontaneously
Hmmm, I don't see how that could be. What are you cookie settings like?
I've just released 0.8.2, with several fixes for SMF 2. I don't think there were any changes for SMF 1.1.
Quote from: Dannii on April 03, 2008, 04:58:26 AM
Well it redirects, so where's the problem?
Yeah, but because of the redirects Google thinks the sitemap is faulty :) The sitemap urls do not correspond the 'real' urls.
Regards
Ahh, hmmm. Okay, it should be possible to fix that. Try adding this code somewhere in the function that does the XML sitemaps:
// Pretty URLs need to be rewritten
$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';
Quote from: Dannii on January 31, 2007, 09:58:27 PM
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.
I can't get this to work for me :( Can someone please please help me...
1- I downloaded and installed the base package (tar.gz file) which installed successfully.
2- Where exactly is this example.htaccess file? I'm assuming you mean from the server, correct? If so, which directory can I find this? forum/....?
3- Can someone provide me a link to the extension-none package? I don't know where to find this?
I am using a custom theme - does that affect this at all? ALSO, I hired a programmer last year to integrate the forum with my site using the SMF bridge platform. Is that okay?
Once I get all 3 of the above things done, is there anything else I am supposed to do or is it activated once all mods are installed? If not, how do we activate it? Any help would be REALLY appreciated
Those are old instructions... check the first post. You don't need an example.htaccess file anymore, nor is there an extension-none package. And no custom themes are fine. As to your bridge... no idea, depends how it was made.
Quote from: Dannii on April 10, 2008, 02:26:13 AM
Those are old instructions... check the first post. You don't need an example.htaccess file anymore, nor is there an extension-none package. And no custom themes are fine. As to your bridge... no idea, depends how it was made.
thanks for reponding :)
Which section of the admin area can I find this?
* Enable the filters in the new Pretty URLs page
It has it's own page, which will be listed in the side column.
Here is (I guess) the function responsible for generating the XML URLs, it already has some URL trimming:
function template_XMLDisplay() {
global $context, $scripturl, $modSettings;
// Test to see if Joomla! is here...
if (defined('_VALID_MOS' )) {
global $mosConfig_live_site, $Itemid, $mosConfig_sef;
$myurl = ($mosConfig_sef=='1' ? '' : $mosConfig_live_site. '/') . 'index.php?option=com_smf&Itemid=' . $Itemid;
$mark = '&';
}
// And if its not here, create a false function...
else {
$myurl = $scripturl;
$mark = '?';
function sefReltoAbs($string) {
global $modSettings, $scripturl;
if (empty($modSettings['queryless_urls']) || $string == $scripturl)
return $string;
$string = str_replace('?board=', '/board,', $string);
$string = str_replace('?topic=', '/topic,', $string);
$string = $string . '.html';
return $string;
}
}
echo '<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">';
echo '
<url>
<loc>', sefReltoAbs($myurl), '</loc>
<lastmod>', $context['sitemap']['main']['time'], '</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>';
if (isset($context['sitemap']['board']))
foreach ($context['sitemap']['board'] as $board)
echo '
<url>
<loc>', sefReltoAbs($myurl . $mark . 'board=' . $board['id']), '</loc>
<lastmod>', $board['time'], '</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>';
if (isset($context['sitemap']['topic']))
foreach ($context['sitemap']['topic'] as $topic)
echo '
<url>
<loc>', sefReltoAbs($myurl . $mark . 'topic=' . $topic['id']), '</loc>
<lastmod>', $topic['time'], '</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>';
echo '
</urlset>';
}
Where do You suggest putting Your string replace ?
Regards
Not the template, you need to edit the source file.
Hmmm can't get it to work :/ This is the XML Display function:
function XMLDisplay() {
global $db_prefix, $context, $user_info, $modSettings;
$context['sub_template'] = 'XMLDisplay';
// Setup the main forum url...
$context['sitemap']['main'] = array('time' => date_iso8601());
// Get our information from the database
$request = db_query("
SELECT b.ID_BOARD, m.posterTime
FROM {$db_prefix}boards as b, {$db_prefix}messages as m
WHERE m.ID_MSG = b.ID_LAST_MSG
AND $user_info[query_see_board]
ORDER BY m.posterTime DESC", __FILE__, __LINE__);
// And assign it to an array
while ($row = mysql_fetch_assoc($request))
{
$context['sitemap']['board'][] = array(
'id' => $row['ID_BOARD'] . '.0',
'time' => date_iso8601($row['posterTime']),
);
}
// Free the result.
mysql_free_result($request);
// Get the right information
$request = db_query("
SELECT t.ID_TOPIC, m.posterTime
FROM {$db_prefix}messages as m, {$db_prefix}topics as t, {$db_prefix}boards as b
WHERE m.ID_MSG = t.ID_LAST_MSG
AND b.ID_BOARD = m.ID_BOARD
AND $user_info[query_see_board]
ORDER BY m.posterTime DESC
LIMIT $modSettings[sitemap_topic_count]", __FILE__, __LINE__);
// Assign it to the array
while ($row = mysql_fetch_assoc($request))
{
$context['sitemap']['topic'][] = array(
'id' => $row['ID_TOPIC'] . '.0',
'time' => date_iso8601($row['posterTime']),
);
}
// Free the result
mysql_free_result($request);
}
The 'normal' URLs (not in the XML but HERE (http://forum.sevenstring.pl/index.php?action=sitemap)) work great in this mod, so I thought it must be something wrong with the rendering of the XML itself.
Thanks for help.
Regards
Okay, try adding this after the last mysql_free_result($request); there:
// Pretty URLs need to be rewritten
ob_start('ob_sessrewrite');
$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';
Ok, I 've done that. I can't see any difference :)
Hmm, I think you must still have SMF's SEF URLs option turned on. Edit ModSettings.php and search for "Pretty URLs mod - disable the default queryless URLs". Uncomment the following line. Then turn it off in the admin panel. And just for luck, try emptying the pretty_urls_cache table.
That was IT You rule mate , thanks very much :)
Excellent.
Quote from: Dannii on April 10, 2008, 02:54:45 AM
It has it's own page, which will be listed in the side column.
Got it :)
In case anyone has trouble and uses a custom theme, you need to apply the default skin first so that you can see the option in the admin area. After activating the url's you can switch back to your regular skin.
Really? What problems did you have in your custom theme?
ohboy i need help :D
just installed this mod enabled it and now my forum is dead
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
waynesworld.kicks-ass.net
04/11/08 05:28:48
Apache/2.2.6 (Win32) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5
smf 2.0 bta 3 public
Follow the instructions here to disable the mod: http://code.google.com/p/prettyurls/wiki/TroubleShooting
And of course check all your error logs. I haven't tested 2.0 support that thoroughly, so if you can provide more information I might be able to fix it.
http://waynesworld.kicks-ass.net/forum/index.php?action=admin;area=pretty;sesc
8: Undefined index: pretty_enable_filters
File: C:/*****/htdocs/forum/Sources/QueryString.php
Line: 518
http://waynesworld.kicks-ass.net/forum/index.php?action=admin;area=pretty;sesc
8: Undefined index: pretty_enable_filters
File: C:/******/htdocs/forum/Sources/PrettyUrls.php
Line: 96
http://waynesworld.kicks-ass.net/forum/index.php?action=admin;area=pretty;sesc
8: Undefined index: pretty_enable_filters
File: C:/*****/htdocs/forum/Sources/PrettyUrls.php
Line: 60
http://waynesworld.kicks-ass.net/forum/index.php?action=admin;area=index;sesc
8: Undefined index: pretty_enable_filters
File: C:/******/htdocs/forum/Sources/QueryString.php
Line: 518
thats all the errors i see
when i first enable it i get
server error 500
i think it hta access side meaning this i deleted the htacesse fiile and could get into forum just could not read topics
Using phpMyAdmin add a row to the settings table with variable=pretty_enable_filters and value=0.
Quote from: Dannii on April 11, 2008, 02:09:02 AM
Using phpMyAdmin add a row to the settings table with variable=pretty_enable_filters and value=0.
ok i goto phpmyadmin found the smf settings table how do i add the row i click on insert
but for the varible i see a drop down box but doesnt have pretty_enable_filters am i doing it right?
It should look like the screenshot below.
got this
Error
SQL query:
INSERT INTO `forum`.`smf_settings` (
`variable` ,
`value`
)
VALUES (
'pretty_enable_filters', '0'
)
MySQL said:
#1062 - Duplicate entry 'pretty_enable_filters' for key 1
Well you shouldn't get those errors any more then. :)
I'm not able to get this mod to load.
Package Manager gives me errors, that the file is invalid or corrupt.
Package Parser gave me this error: "parseArchive(): Could not extract archive. Is it corrupted?"
Running SMF 1.1.4
Quote from: Dannii on April 09, 2008, 05:12:57 AM
I've just released 0.8.2, with several fixes for SMF 2. I don't think there were any changes for SMF 1.1.
Any chance you could list the important changes somewhere? As I haven't been "syncing" my install with yours for a few months, maybe I'm missing important fixes...?
estepp, can you install any other mods? Your server may not be set up correctly for the package manager to work at all.
Nao, when was the last time you synced it? And how important are you thinking? Oh and which SMF version?
my one doesn't work also ...
yah it work now but my site is disable ...
What's disabled?
check my site ...
www.mx5.asia, only front pages running the rest error 404 .. :(
how now ?
You're using IIS, which isn't supported. (Yet, and quite likely, never.)
Follow these instructions (http://code.google.com/p/prettyurls/wiki/TroubleShooting) to disable the mod, which you can then uninstall as normal through the admin panel.
hello ????
Looks fine now.
yah .... thanks ... :)
lucky is brand new install forum, worst come to worst, reinstall everything :)
Hi Danni are you still eldacar ?
I notice you have updated pretty urls recently. I am on the last release. Do I need to update ? is there any new features ? or should I stay with the 1 that is currently working ?
Thanks - Glenn
Quote from: Dannii on April 11, 2008, 09:09:31 PM
estepp, can you install any other mods? Your server may not be set up correctly for the package manager to work at all.
Nao, when was the last time you synced it?
That would have to be around January I'd say... At a time when you were no longer working on PrettyURLs on a daily basis -- that is, after the couple of months we spent talking about ways to improve the mod. The last time I made a sync, I believe you had just added the actions filter improvement (i.e. put all possible actions in an array and add these into the htaccess file). I think I sync'ed everything except for the actions filter (because I plan to use a different filtering type for these).
I tried to sync it again something like a month ago, but there were a lot of changes and I deemed them to be not so important compared to my current needs, so I gave up. This was an update that introduced stuff like JSON. Can't remember what else...
QuoteAnd how important are you thinking?
Compatibility with the latest SMF SVN's stuff. Obviously, I feared that I may be behind, when I found out about the "noindex" bug for MessageIndex pages, introduced by the "pretty" flag in the $_REQUEST variable (which I mentioned to you yesterday by PM). I'm trying to make sure there are no other bugs I didn't see, but which you did fix in your version ;)
Quote from: glennk on April 12, 2008, 11:10:57 AMHi Danni are you still eldacar ?
I notice you have updated pretty urls recently. I am on the last release. Do I need to update ? is there any new features ? or should I stay with the 1 that is currently working ?
Thanks - Glenn
Hi, yep I'm still me.
Although you don't have to upgrade, I do suggest it. Try upgrading a test forum first if you like.
Nao... okay well since then I've made it all SMF 2 beta 3 compatible, which hopefully is pretty compatible with the latest SVNs too. There were a lot of changes... and it's all using the proper database functions now. A lot of that was for SQLite though... so I don't know if it's relevant to you.
Think I'll save my update until I go to smf 3, just to be on the safe side.
Everything still working fine for me.
Quote from: Dannii on April 11, 2008, 09:09:31 PM
estepp, can you install any other mods? Your server may not be set up correctly for the package manager to work at all.
Nao, when was the last time you synced it? And how important are you thinking? Oh and which SMF version?
I have other mods. Some uploaded through Package Manager, some I've manually added.
The online package parser I use is http://www.gamerzgarage.com/package.php
My website: http://forum.projectlucidity.com
Edit...Just tried another package parser: http://resourcez.biz/PackageParser/index.php
This is the error report I received:
QuoteDebugging Information
Error message: String could not be parsed as XML
Source: /home/dragonfl/public_html/resourcez/PackageParser/index.php:133
Errors encountered while parsing XML file:
Stack Trace:
#0 /home/dragonfl/public_html/resourcez/PackageParser/index.php(133): SimpleXMLElement->__construct('')
#1 /home/dragonfl/public_html/resourcez/PackageParser/index.php(94): parsePackageInfoXML('/tmp/package-in...', 'install', 'all')
#2 /home/dragonfl/public_html/resourcez/PackageParser/index.php(771): parseArchive('/tmp/phpF693V1', 'install', 'all')
#3 {main}
XML File:
On my 1.1.4 site I am getting "An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted."
The version I am trying to use is;
prettyurls-base_0_8_2.tar.gz
estepp, I really don't know what the problem could be, unless perhaps your server doesn't support gzip? I suggest you start another topic in the support board, because I really don't have the time to help everyone fix their package managers.
OblivionMage, pretty much the same to you. Can you install other mods? Does your server have gzip?
I have about 30 other mods installed, various .zip/tar
Anything in the error log?
Hi,
I've recently updated to last version (0.8.2) but one of my boards return a blank page and not the list of topics inside it.
At the error log, I found this:
Hacking attempt...
INSERT INTO foruns_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (1272, "impactos-ambientais-da-producao-de-carne"), (1437, "une-verite-qui-derange-al-gore"), (1442, "enquete-(1996)-sur-lopinion-des-non-veges-sur-le-vegetarisme-et-la-viande"), (1785, "um-dos-premios-nobel-da-paz-2007-e-vegetariano"), (1860, "vida-vegetariana-newsletter"), (1956, "site-da-evu-european-vegetarian-union"), (2375, "vegetariano-(por-nuno-markl)"), (2701, "folheto-da-christian-vegetarian-association"), (2964, "ser-ou-nao-ser-vegetariano-eis-a-questao!"), (3099, "a-ortorexia-o-absurdo-da-manipulacao-e-desinformacao-na-questao-da-alimentacao"), (3142, "proposta-de-natal-vegetariano"), (3291, "veganismo-e-bodybuilding"), (3752, "vegetarianismo-na-comunicapcao-social"), (4343, "porque-ser-vegano"), (4506, "vegetarianismo-e-saude"), (5020, "hot-oat-cereal"), (6026, "entrevista-gary-l-francione-na-revista-dos-vegetarianos")
Ficheiro: /home/ac99/public_html/foruns/Sources/PrettyUrls-Filters.php
Linha: 139
What should I do? Thanks in advance :)
Follow the instructions here: http://www.simplemachines.org/community/index.php?topic=146969.msg1423526#msg1423526
I though I fixed that though... hmmm.
Thanks, it's working :D :D
Quote from: Dannii on April 14, 2008, 07:44:44 PM
estepp, I really don't know what the problem could be, unless perhaps your server doesn't support gzip? I suggest you start another topic in the support board, because I really don't have the time to help everyone fix their package managers.
OblivionMage, pretty much the same to you. Can you install other mods? Does your server have gzip?
Well, I use Gzip all the time, and it comes packaged by default on my server (HostMonster).
The package parser isn't mine. I've used 3 different
online versions (all making sure they go up to 1.1.4). All three give me the same error.
I've used the Package Manager just fine to install about 12 mods already.
There are other SEO/SEF mods out there, so I'll just drop this one. Thanks for your time.
No errors on the error log, and I just installed another mod.
I will test it on my beta 3 2.0 forum in a bit.
What other seo/sef mods are there that you are looking at?
I just installed this with 1.1.4 and nothing changed. I didn't get any errors. It said it installed, but I'm still getting the same ugly URLs.
Any ideas?
estepp, did the three online ones actually have different code though? I think the package parser has extra problens. It's not perfect. But okay.
Drover, did you enable it in the new admin page?
estepp and OblivionMage: Btw, I suspect the problem is that the mod has folders inside it, which some servers don't have the correct permissions for.
Hmm, that makes sense actually.
Would the mod work if I removed the folders, or do you have any ideas where I can change the permissions?
I'm getting a 400:Bad request error each time I try to access topics with special characters in the title (like ? and ').Otherwise, the mod is working fine. I have SMF version 1.1.4 Thanks for any help...
OblivionMage, I had a somewhat similar problem in the past, and in the end I found that creating a temp directory with SMF1-1 and SMF2-0 directories inside it fixed everything.
darkelhaym, which version of the mod? Does your forum use UTF-8? Anything in the error log? Do you have a link to a broken topic?
My version is Base 0.8.2. My forum doesn't use UTF-8 (I have standard italian as the default language but I did edit the language files) and the error log is clean. Link to an example topic:
http://www.evoyugi.com/help-desk/help-me-please!/
I am using 0.7 version, should I know anything before upgrading?
How is an upgrade done?
Thank you.
darkelhaym, all I can suggest is to contact your host's support people. I'd guess that they have some sort of module installed that blocks certain pages it thinks are insecure.
Chadrew, no you should be fine, though always make a complete backup before doing anything risky. Uninstall 0.7, then install the 0.8.2 package. You won't lose any data.
It works - thank you, great plugin.
Do you think you could add a few Lithuanian characters to the list, so I don't have to add them myself each time I upgrade? :D I'll attach the file.
Thanks again.
Okay, first of all, it's nice to see the unneeded '0'; gone at the end of the URLs, and especially the fact that old indexed URLs with 0s can still be accessed (would be bad if you lost traffic from Google).
I experienced two problems though. The first one is 'pretty profile URLs'. If you make board, topic, etc. URLs pretty, the old 'not pretty' URL redirects to the new, pretty one. But profiles doesn't. So there are two different URLs for accessing profiles. I don't want to get duplicate content in Google so I won't use them till they redirect. Plus there are different versions, like:
ageofconan.lt/forumas/profile/?u=XX
ageofconan.lt/forumas/index.php?action=profile;u=XX
Hopefully some time in the future it will be possible to redirect both to 'pretty' URLs?
Second one is errors in the error log. When I browse in the 'Pretty URL' settings and make changes, the error log fills up with stuff like:
Quotehttp:/*/ageofconan.lt/forumas/index.php?pretty;action=admin&area=pretty;save
2: fclose(): supplied argument is not a valid stream resource
File: /var/home/aoch/domains/ageofconan.lt/public_html/forumas/Sources/Subs-PrettyUrls.php
Line: 314
http:/*/ageofconan.lt/forumas/index.php?pretty;action=admin&area=pretty;save
2: fwrite(): supplied argument is not a valid stream resource
File: /var/home/aoch/domains/ageofconan.lt/public_html/forumas/Sources/Subs-PrettyUrls.php
Line: 313
http:/*/ageofconan.lt/forumas/index.php?pretty;action=admin&area=pretty;save
2: fopen(/var/home/aoch/domains/ageofconan.lt/public_html/forumas/.htaccess) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /var/home/aoch/domains/ageofconan.lt/public_html/forumas/Sources/Subs-PrettyUrls.php
Line: 312
This only happens when in the Package settings, I choose 'Only the standard files are writable' OR 'The minimum files are writable'. If I choose 'All files are writable' then there are no errors of this sort. Which leads me to believe some files need to be made writable even when 'standard' or 'minimum' is set. But I know very little about SMF of course so I might be wrong.
I usually set it to 'minimum' for security, or at least I imagine it's more secure this way :)
QuoteDo you think you could add a few Lithuanian characters to the list, so I don't have to add them myself each time I upgrade? :D I'll attach the file.
Thanks again.
I'm currently reworking the url generator, but I'll see what I can do.
QuoteI experienced two problems though. The first one is 'pretty profile URLs'. If you make board, topic, etc. URLs pretty, the old 'not pretty' URL redirects to the new, pretty one. But profiles doesn't. So there are two different URLs for accessing profiles. I don't want to get duplicate content in Google so I won't use them till they redirect. Plus there are different versions, like:
ageofconan.lt/forumas/profile/?u=XX
ageofconan.lt/forumas/index.php?action=profile;u=XX
Hopefully some time in the future it will be possible to redirect both to 'pretty' URLs?
Yeah it would be possible... though it definitely wouldn't be a priority of mine. Most people I've seen here generally don't consider the profiles to be very important SEO-wise, and many block them completely.
QuoteThis only happens when in the Package settings, I choose 'Only the standard files are writable' OR 'The minimum files are writable'. If I choose 'All files are writable' then there are no errors of this sort. Which leads me to believe some files need to be made writable even when 'standard' or 'minimum' is set. But I know very little about SMF of course so I might be wrong.
I usually set it to 'minimum' for security, or at least I imagine it's more secure this way :)
Well if you set it to minimum, make sure you still set the .htaccess file so that it can be written by PHP. If that's not the case any changes you make in the admin panel won't be applied.
Quote from: Dannii on April 15, 2008, 07:25:20 PM
estepp and OblivionMage: Btw, I suspect the problem is that the mod has folders inside it, which some servers don't have the correct permissions for.
Ok, I'm willing to go with that and try the mod again.
QuoteOblivionMage, I had a somewhat similar problem in the past, and in the end I found that creating a temp directory with SMF1-1 and SMF2-0 directories inside it fixed everything.
Not sure what you mean by this. Would it be easier to set permissions somewhere on my server? And if I had to go the temp folder route, how would I go about doing this? Thanks.
Quote from: Dannii on April 17, 2008, 10:04:03 AM
darkelhaym, all I can suggest is to contact your host's support people. I'd guess that they have some sort of module installed that blocks certain pages it thinks are insecure.
I did. I also deactivated mod_security, but it didn't work. I have an update on the error though: it seems the bad request is given only for the exclamation point (in boards or topic titles). The rest of the special characters is working fine. Since the problem is only for the exclamation point maybe there's a manual fix I can do. I had to edit some files manually for installation (100% sure I did touch index.php, Display.php, Subs.php and ModSettings.php) so I might have missed something but I don't know where to start from. Thanks again for any help.
I have prettyurls-base_0_8_2 running on my own 1.1.4 forum without any problem.
But on a NEW installed 1.1.4 i get the modificationprocesserror when i wanna install it...
when i force it to install i get blank screen with:
Fatal error: require() [function.require]: Failed opening required '/home/public_html//Packages/temp/SMF1-1/install.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/public_html/Sources/Packages.php on line 552
Other mods install ok...,this one suddenly doesnt..
Anwhats weird...when i run it at http://www.smfhacks.com/packageparser/package.php it shows :
Error: This package is not Installable on SMF 1.1.4!
How do i get this installed?
Quote from: estepp on April 17, 2008, 12:24:02 PM
Quote from: Dannii on April 15, 2008, 07:25:20 PM
estepp and OblivionMage: Btw, I suspect the problem is that the mod has folders inside it, which some servers don't have the correct permissions for.
Ok, I'm willing to go with that and try the mod again.
QuoteOblivionMage, I had a somewhat similar problem in the past, and in the end I found that creating a temp directory with SMF1-1 and SMF2-0 directories inside it fixed everything.
Not sure what you mean by this. Would it be easier to set permissions somewhere on my server? And if I had to go the temp folder route, how would I go about doing this? Thanks.
Ok, I finally figured out how to get it to load, and it seems to be working smashingly now.
Quote from: darkelhaym on April 17, 2008, 02:00:48 PMI did. I also deactivated mod_security, but it didn't work. I have an update on the error though: it seems the bad request is given only for the exclamation point (in boards or topic titles). The rest of the special characters is working fine. Since the problem is only for the exclamation point maybe there's a manual fix I can do. I had to edit some files manually for installation (100% sure I did touch index.php, Display.php, Subs.php and ModSettings.php) so I might have missed something but I don't know where to start from. Thanks again for any help.
If you delete the line with the exclamation mark from Subs-PrettyUrls.php and delete the tables then when you reinstall the mod that should fix the problem. (Delete the line from the file in the archive I mean.)
Quote from: babylon on April 17, 2008, 02:44:30 PM
I have prettyurls-base_0_8_2 running on my own 1.1.4 forum without any problem.
But on a NEW installed 1.1.4 i get the modificationprocesserror when i wanna install it...
when i force it to install i get blank screen with:
Fatal error: require() [function.require]: Failed opening required '/home/public_html//Packages/temp/SMF1-1/install.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/public_html/Sources/Packages.php on line 552
Other mods install ok...,this one suddenly doesnt..
Anwhats weird...when i run it at http://www.smfhacks.com/packageparser/package.php it shows:
Error: This package is not Installable on SMF 1.1.4!
How do i get this installed?
As for the people above, it looks like a permissions error. You can try what I suggested here, might help: http://www.simplemachines.org/community/index.php?topic=146969.msg1510112#msg1510112
Quote from: estepp on April 17, 2008, 06:50:31 PMOk, I finally figured out how to get it to load, and it seems to be working smashingly now.
Good to hear.
Hi!! First at all i want to thank you your great mod!! It's workins fine for me, only one problem.
One board, with name "administración" doesn't have the correct url, it has www.mysite.com/b6/ but it should be www.mysite.com/administracion/ . I guess that it's happen because the "ó" in Administración.
How i can modify this to use the correct url?
Thanks again!
The problem is your character encodings. UTF-8 is recommend for the mod to work problem, though I am investigating ways of support other encodings more reliably. If you can, I suggest you convert to UTF-8.
thanks Danii, i'll try it
Quote from: Dannii on April 18, 2008, 06:29:13 AM
Quote from: darkelhaym on April 17, 2008, 02:00:48 PMI did. I also deactivated mod_security, but it didn't work. I have an update on the error though: it seems the bad request is given only for the exclamation point (in boards or topic titles). The rest of the special characters is working fine. Since the problem is only for the exclamation point maybe there's a manual fix I can do. I had to edit some files manually for installation (100% sure I did touch index.php, Display.php, Subs.php and ModSettings.php) so I might have missed something but I don't know where to start from. Thanks again for any help.
If you delete the line with the exclamation mark from Subs-PrettyUrls.php and delete the tables then when you reinstall the mod that should fix the problem. (Delete the line from the file in the archive I mean.)
This worked for the exclamation point in topics, but not for board names. It doesn't really matter since the part of the problem I had no control of is solved (users making topics with exclamation marks) But now I discovered another problem: when my user try to submit a score to the arcade, the redirection brings them to the following error.
Not Found
The requested URL /arcade/index.php was not found on this server.
The address on the navigation bar is http://www.evoyugi.com/arcade/index.php?action=arcade
If I deactivate the rewriting for forum actions it works again (obviously). Any idea? Thanks.
this mod is puzzling.
im running 1.1.4 with default theme.
i normally have problems installing mods, but this one installed successfully first time. no errors.
i turn on just to change boards, save settings.
i click the now changed board links, and get the new url, but the browser says"page not available"
and the site error log, lists 2 pages of errors from "source"
so i clear all the error messages, then try it again, and this time there are no error messages! (yes thats fine but mysterious!)
but still the urls change, but when clicked the pages dont exist.
anyone shed any light on this for me please?
Ta
1.1.4 / UTF-8/ Default theme
When I try to install I get:
The package you tried to upload either is not a valid package or has become corrupted.
Quote from: denzil69 on April 18, 2008, 03:55:39 PM
this mod is puzzling.
im running 1.1.4 with default theme.
i normally have problems installing mods, but this one installed successfully first time. no errors.
i turn on just to change boards, save settings.
i click the now changed board links, and get the new url, but the browser says"page not available"
and the site error log, lists 2 pages of errors from "source"
so i clear all the error messages, then try it again, and this time there are no error messages! (yes thats fine but mysterious!)
but still the urls change, but when clicked the pages dont exist.
anyone shed any light on this for me please?
Ta
Did you rename your htaccess.txt to .htaccess ?
Quote from: darkelhaym on April 18, 2008, 10:52:29 AMThis worked for the exclamation point in topics, but not for board names. It doesn't really matter since the part of the problem I had no control of is solved (users making topics with exclamation marks) But now I discovered another problem: when my user try to submit a score to the arcade, the redirection brings them to the following error.
Not Found
The requested URL /arcade/index.php was not found on this server.
The address on the navigation bar is http://www.evoyugi.com/arcade/index.php?action=arcade
If I deactivate the rewriting for forum actions it works again (obviously). Any idea? Thanks.
Ahh, yeah you'll need to delete some settings too. You can use this tool: http://prettyurls.googlecode.com/svn/trunk/uninstall.php
For the arcade, what is the original URL from the template?
Quote from: denzil69 on April 18, 2008, 03:55:39 PM
this mod is puzzling.
im running 1.1.4 with default theme.
i normally have problems installing mods, but this one installed successfully first time. no errors.
i turn on just to change boards, save settings.
i click the now changed board links, and get the new url, but the browser says"page not available"
and the site error log, lists 2 pages of errors from "source"
so i clear all the error messages, then try it again, and this time there are no error messages! (yes thats fine but mysterious!)
but still the urls change, but when clicked the pages dont exist.
anyone shed any light on this for me please?
Link to your forum?
Quote from: spiros on April 18, 2008, 07:05:16 PM1.1.4 / UTF-8/ Default theme
When I try to install I get:
The package you tried to upload either is not a valid package or has become corrupted.
See what I said here: http://www.simplemachines.org/community/index.php?topic=146969.msg1510112#msg1510112
Quote from: spiros on April 18, 2008, 07:13:56 PMDid you rename your htaccess.txt to .htaccess ?
There is no htaccess.txt.
Quote1.1.4 / UTF-8/ Default theme
When I try to install I get:
The package you tried to upload either is not a valid package or has become corrupted.
See what I said here: http://www.simplemachines.org/community/index.php?topic=146969.msg1510112#msg1510112
You mean:
QuoteOblivionMage, I had a somewhat similar problem in the past, and in the end I found that creating a temp directory with SMF1-1 and SMF2-0 directories inside it fixed everything.
Yes.
I have SMF 1.1.4, I just make a temp directory, just upload SMF1-1 folder and nothing else, and install from that folder? Don't I need the package-info.xml and all other files in the root?
In your packages directory, make a folder named "temp" and inside that make one called "SMF1-1" and another called "SMF2-0". Set the permissions so that they can all be modified. Hopefully that will work.
Just created 2 empty folders as instructed, chmodded to 777, still, same error (tested with 2 different installations).
I'm sorry, I don't know what to suggest. If you don't mind getting messy, you could move all the files in the archive out of SMF1-1 into the root folder, and then change paths in package-info.xml. If you try that and it still doesn't work, it's probably not the folders problem.
Yep, it is strange, as I have no problem installing other mods :)
Just tried your suggestion, same again... any chance it is indeed corrupted?
Just found the solution. It installed once I deleted all install references in xml file for SMF 2.
Attached modified file.
Just checked the way it handles duplicate subjects:
Original:
general-discussion/this-is-a-test/
Second post same subject:
general-discussion/this-is-a-test-t21/
Second post same subject different board:
technical/this-is-a-test-t22/
My suggestion: maintain this-is-a-test/ structure and add the topic id after that, i.e. this-is-a-test-22/
Also, the way it handles accents in non latin characters:
The Greek phrase Δοκιμή στο τεχνικό turned into
dokim-sto-technik
Where it should provide the unaccented version of the letters in latin script, i.e. dokimi-sto-techniko
Can this be done?
Also,
If the URL has something like this:
->
It should not turn into:
andgt
But just into:
-
Quote from: spiros on April 19, 2008, 03:38:50 AM
Just found the solution. It installed once I deleted all install references in xml file for SMF 2.
Attached modified file.
So the folders weren't a problem? Very strange!
QuoteMy suggestion: maintain this-is-a-test/ structure and add the topic id after that, i.e. this-is-a-test-22/
Hmm I suppose I could actually remove the t, it's not actually needed is it... I'll have a think about that.
QuoteThe Greek phrase Δοκιμή στο τεχνικό turned into
dokim-sto-technik
Where it should provide the unaccented version of the letters in latin script, i.e. dokimi-sto-techniko
Can this be done?
Not with the current code, though I'm investigating other ways to do it. I've actually removed all of the non-latin characters. I'm thinking of adding an option to just do URL (percent) encoding which would preserve the Greek letters properly. I'm also considering using iconv()'s transliteration mode.
QuoteIf the URL has something like this:
->
It should not turn into:
andgt
But just into:
-
The issue here is entities. If you're using UTF-8 they shouldn't be needed. I'm also going to add code to convert entities too.
QuoteMy suggestion: maintain this-is-a-test/ structure and add the topic id after that, i.e. this-is-a-test-22/
Hmm I suppose I could actually remove the t, it's not actually needed is it... I'll have a think about that.
Yes, I think this should be changed as prescribed.
QuoteThe Greek phrase Δοκιμή στο τεχνικό turned into
dokim-sto-technik
Where it should provide the unaccented version of the letters in latin script, i.e. dokimi-sto-techniko
Can this be done?
Not with the current code, though I'm investigating other ways to do it. I've actually removed all of the non-latin characters. I'm thinking of adding an option to just do URL (percent) encoding which would preserve the Greek letters properly. I'm also considering using iconv()'s transliteration mode.
Transileration is good. However, I see in your subs.prettyurls.php
'g' => array ('g', 'G', 'ğ', 'Ğ', 'г', 'Г', 'γ', 'Γ'),
I could simply add the accented versions of Greek chars, would that work?
Edit: Just tested it and it does work. Now instead of getting:
dokim-sto-technikI get:
dokimi-sto-techniko QuoteIf the URL has something like this:
->
It should not turn into:
andgt
But just into:
-
The issue here is entities. If you're using UTF-8 they shouldn't be needed. I'm also going to add code to convert entities too.
I am using UTF-8. The > is converted by default by SMF to
& gt;
In order to retain xhtml compliance.
QuoteYes, I think this should be changed as prescribed.
Yeah I realised that I added in a "b" or "t" because it's needed when the generated URL is blank or numerical, however it's not needed if the URL is a duplicate.
QuoteI am using UTF-8.
Hmm... I wonder why those entities are used. Strange.
QuoteI am using UTF-8.
Hmm... I wonder why those entities are used. Strange.
See my updated previous reply.
Thanks but I can't add topics have same name. How can I fix this?
What do you mean you can't add them? If you add them the url will be prefixed with the topic ID.
I added two topics in admin's board. Now the site is working but i can't login with admin account.
This is the file for SMF 1.1.4 with perfectly working conversion for Greek and Greek polytonic
Quote from: уιℓмαz on April 19, 2008, 05:31:10 AM
I added two topics in admin's board. Now the site is working but i can't login with admin account.
Maybe it would help posting the URLs of the topics. I am not an expert, but I have a feeling that this mod may be unrelated to this problem.
I suspect so too... posting topics should be completely independent to logging in.
Hmm i realized i can go into topics but i can't go boardindex.
And i disabled this mod. Now i can go everywhere ::)
I take this error when i want add a topic named with "deneme".
Duplicate entry 'deneme' for key 2
Dosya: /var/www/vhosts/tamforum.gen.tr/httpdocs/Sources/PrettyUrls-Filters.php
Satır: 147
Any other errors? Where's a link to the topic?
Oh, and I see you're using SMF 2... you could have mentioned that, it makes a big difference!
I forgot say that i'm using smf 2.0.
I truncated table pretty_urls_cache and it's fixed. Thanks for interest.
Oh. Well good. How very strange.
thanks for the fast replys.
Quotethis mod is puzzling.
im running 1.1.4 with default theme.
i normally have problems installing mods, but this one installed successfully first time. no errors.
i turn on just to change boards, save settings.
i click the now changed board links, and get the new url, but the browser says"page not available"
and the site error log, lists 2 pages of errors from "source"
so i clear all the error messages, then try it again, and this time there are no error messages! (yes thats fine but mysterious!)
but still the urls change, but when clicked the pages dont exist.
anyone shed any light on this for me please?
Ta
Did you rename your htaccess.txt to .htaccess
ive been through every file on my forum, and all htaccess files are set correctly. (ie, .htaccess)
cannot apply it to the forum and wait for it to be viewed as its a live and active forum
Where's a link to your forum?
This messed up my forum, I have to uninstall & reinstall it because it won't let me go to any other page besides the home page. :(
Well that's unfortunate... but can you provide any more information?
dannii,
if you have time now, ill activate it and you can see?
ok, its activated now for boards only
i have the index listed as index.php
all the other files show as .../penny-pinchers/board-title/
coming up as a 404 error (page not available)
ta for the help
what does the "maintenance"option do on the control panel for this mod?
I ask as the sitemap (xml) links dont change either.
Ahhh, you're running IIS, which is unsupported at this time (and quite likely to be unsupported forever. There are rewrite mods for it, but I have no experience with them and don't really want to get any.)
Hi,
I got the mod working but something weird is going on with the rewriting.
Here's an example:
Topic: Hairstyles and beauty
http://www.mydomain.com/forums/bhairstyles-and-beautyb/
Has a 'b' before the first word and after the last word. Why is this?
It only happens for topics, not subjects.
Any ideas.
Below is my .htaccess related to this.
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: April 20, 2008, 16:50
RewriteEngine on
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|vote|viewquery|who|\.xml)/?$ ./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]
Can you provide a real link?
sample
http://www.paradisestylegroup.com/forums/bwedding-dressesb/
The problem is that you've added bold HTML tags around the board names. I think that they're actually entirely useless as the theme already makes it bold. Remove those tabs, completely uninstall (http://prettyurls.googlecode.com/svn/trunk/uninstall.php) the mod, and then reinstall it.
Is there really a need to uninstall the mod? Why not just make the filter 0 then edit the template for the board names and then reactivate the filter?
Cause it has nothing to do with the templates.
Hmm though... actually what you could do is disable the mod, delete the two pretty_board settings, delete the tags from all the board names, and then run maintenance.
Can you explain that a little.
Should I delete pretty_action_array / lookup / urls and callbacks field?
Disable the mod.
Delete pretty_board_urls and pretty_board_lookup rows from smf_settings.
Then remove the <b> and </b> from all the board names.
Run the maintenance tasks in the Pretty URLs admin panel.
Then you can enable the mod again.
That's what I thought. Worked like a charm, thanks. :D
Good to hear.
I really do need to add an interface for changing board URLs... it's one of the oldest requests.
Hey Dannii,
I encountered some problems with SMF2.0 installation. The package install smoothly but there are some errors in the log as follows:
/index.php?action=admin;area=pretty;save
8: Undefined index: pretty_enable_filters
/Sources/PrettyUrls.php
Line: 60
/index.php?action=admin;area=pretty;sesc
8: Undefined index: pretty_enable_filters
/Sources/QueryString.php
Line: 518
/index.php?action=admin;area=pretty;sesc
8: Undefined index: pretty_enable_filters
/Sources/PrettyUrls.php
Line: 96
/index.php?action=admin;area=pretty;sesc
8: Undefined index: pretty_enable_filters
/Sources/PrettyUrls.php
Line: 60
/index.php?action=admin
8: Undefined index: pretty_enable_filters
/Sources/QueryString.php
Line: 518
/index.php?
8: Undefined index: pretty_enable_filters
/Sources/QueryString.php
Line: 518
/index.php?action=admin
8: Undefined index: pretty_enable_filters
/Sources/QueryString.php
Line: 518
The mod still work fine till here without any problem but when i enable the "Actions" rewrite, it show:
/index.php?pretty;action=login2&sa=check
8: Undefined index: member
/Sources/LogInOut.php
Line: 123
and the login page show:
You were unable to login. Please check your cookie settings.
But it only show when using IE. FireFox is fine.
So now, i am actually using the mod without the "Actions" feature.
Pls kindly advise me how to retify these problems. ;)
Do you continue to get the pretty_enable_filters error even after saving and modifying your pretty URL filter settings, or only at the beginning?
Quote from: Dannii on April 21, 2008, 06:31:31 AM
Do you continue to get the pretty_enable_filters error even after saving and modifying your pretty URL filter settings, or only at the beginning?
The pretty_enable-filters errors are gone after saving & modifying. ( Only one time after the installation).After i cleared my log, it did not appear anymore.
Left with the following error which only encountered during logon using IE.
Other actions such as register, members, etc works fine (tested).
/index.php?pretty;action=login2&sa=check
8: Undefined index: member
/Sources/LogInOut.php
Line: 123
and the login page show:
You were unable to login. Please check your cookie settings.
Okay I'll definitely look into that. I haven't had it before.
Thanks Dannii ;)
I think there is another user in previous post who also encounter this problem.
Hope that you will get answer soon :D
This is problem on server(settings).You talking about to mine working. I deactive on this active / Rewrite Action URLs (ie, index.php?action=something)
:) but good to correct on this code..
Quote from: Alpay on April 21, 2008, 07:18:07 AM
This is problem on server(settings).You talking about to mine working. I deactive on this active / Rewrite Action URLs (ie, index.php?action=something)
:) but good to correct on this code..
Hey Alapy,
So you also encounter this problem? Have your problem solve?
Quote from: Xebo on April 21, 2008, 09:06:33 AM
Quote from: Alpay on April 21, 2008, 07:18:07 AM
This is problem on server(settings).You talking about to mine working. I deactive on this active / Rewrite Action URLs (ie, index.php?action=something)
:) but good to correct on this code..
Hey Alapy,
So you also encounter this problem? Have your problem solve?
Yep =) Solve : Action URLs deactive & save as..
hmm, but is good to have the Actions feature as well ;) ...i like to have a pretty URLs for Actions
i like it too but make a cookie error's and i'll take it so i close it. Well google index my site and i change title on my site.
Okay, to check, this only happens in SMF 2?
Does it happen whenever you log in? Or only when it needs to check your password (for admin or profile stuff)?
Yes this is happening at smf 2 also for everyone. And the forum is not UTF-8
did you have time to check my website yet please?
i will activate pretty urls for boards
thanks
Alpay.. hmm strange.
Denzil69, as I said before:
Quote from: Dannii on April 20, 2008, 08:38:01 PMAhhh, you're running IIS, which is unsupported at this time (and quite likely to be unsupported forever. There are rewrite mods for it, but I have no experience with them and don't really want to get any.)
Quote from: Dannii on April 21, 2008, 10:37:16 AM
Okay, to check, this only happens in SMF 2?
Does it happen whenever you log in? Or only when it needs to check your password (for admin or profile stuff)?
I only try out on SMF2 but not on SMF1.x
yes, it happen only when login (when after user name & password are entered) then the cookies error will appear.
hey, i need some help. I installed this mod a while ago, but decided to uninstall it because the arcade wouldnt work with it for some reason.
anyway, after i uninstalled it, i noticed that if i type in the name of my website to get to the forum, like this:
http://www.ninerskickass.com/forum/
it just goes to the main page and the url turns to this:
http://www.ninerskickass.com/forum/?pretty;board=forum.0
the only way people can get to the forum is if they click on a link from the front page or if they type out the whole address:
http://ninerskickass.com/forum/index.php
with index.php at the end
might you be able to tell me how to fix this?
is it a database thing? or one of the php files?
If you've uninstalled it I don't see how it could be doing that. Though the problem with the arcade mod has been fixed for a long time now.
Quote from: Dannii on April 22, 2008, 05:46:03 AM
If you've uninstalled it I don't see how it could be doing that. Though the problem with the arcade mod has been fixed for a long time now.
i was using 0.7 i believe... but i figure it is from this mod, since it does say "pretty" in the url
also i tried uploading the newer version and i get this message:
The package you tried to upload either is not a valid package or has become corrupted.
i just installed it again and uninstalled... and looks like everything is back to normal
sweet!
still wont let me upload 8.2 though
Good to hear it's back to normal.
If you can't install 0.8.2 you're probably experiencing the same problem as the people above, something to do with permissions on subfolders.
Hay, i installed the pretty url's mod and now installed the "SMF Sitemap" mod but it was not generating the pretty url's so i searched for it and looked in this forum.
According to you post at http://www.simplemachines.org/community/index.php?action=profile;u=13706
I opened source/sitemap.php and added this after the last mysql_free_result($request) in xml's display fucntion
// Pretty URLs need to be rewritten
ob_start('ob_sessrewrite');
$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';
but it still not worked then according to this post http://www.simplemachines.org/community/index.php?topic=146969.msg1503205#msg1503205
i checked my SMF's SEF urls in my admin but there was no such option and i searched for "Pretty URLs mod - disable the default queryless URLs". the following line was already Uncomment
please let me now if any thing else
Nothing in the error log?
Danii i think you are taking to me.
No error logs about this
look at
http://www.stanaca.com/index.php?action=sitemap;xml
I want url's like http://www.stanaca.com/indian-celebrities/
but there are
http://www.stanaca.com/index.php/topic,912.0.html
in sitemap
Are you sure the mod correctly edited QueryString.php?
what is QueryString.php and where i find it? what i look if find?
Daani this is my QueryString.php file. you can check it
<?php
/**********************************************************************************
* QueryString.php *
***********************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel ([email protected]) *
* =============================================================================== *
* Software Version: SMF 1.1.4 *
* Software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
* Support, News, Updates at: http://www.simplemachines.org *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version can always be found at http://www.simplemachines.org. *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
/* This file does a lot of important stuff. Mainly, this means it handles
the query string, request variables, and session management. It contains
the following functions:
void cleanRequest()
- cleans the request variables (ENV, GET, POST, COOKIE, SERVER) and
makes sure the query string was parsed correctly.
- handles the URLs passed by the queryless URLs option.
- makes sure, regardless of php.ini, everything has slashes.
- sets up $board, $topic, and $scripturl and $_REQUEST['start'].
- determines, or rather tries to determine, the client's IP.
array addslashes__recursive(array var)
- returns the var, as an array or string, with slashes.
- importantly adds slashes to keys and values!
- calls itself recursively if necessary.
array htmlspecialchars__recursive(array var)
- adds entities (", <, >) to the array or string var.
- importantly, does not effect keys, only values.
- calls itself recursively if necessary.
array urldecode__recursive(array var)
- takes off url encoding (%20, etc.) from the array or string var.
- importantly, does it to keys too!
- calls itself recursively if there are any sub arrays.
array stripslashes__recursive(array var)
- removes slashes, recursively, from the array or string var.
- effects both keys and values of arrays.
- calls itself recursively to handle arrays of arrays.
array htmltrim__recursive(array var)
- trims a string or an the var array using html characters as well.
- does not effect keys, only values.
- may call itself recursively if needed.
array validate_unicode__recursive(array var)
- makes sure a string only contains character which are allowed in
XML/XHTML (not 0-8, 11, 12, and 14-31.)
- tries to handle UTF-8 properly, and shouldn't negatively affect
character sets like ISO-8859-1.
- does not effect keys, only changes values.
- may call itself recursively if necessary.
string ob_sessrewrite(string buffer)
- rewrites the URLs outputted to have the session ID, if the user
is not accepting cookies and is using a standard web browser.
- handles rewriting URLs for the queryless URLs option.
- can be turned off entirely by setting $scripturl to an empty
string, ''. (it wouldn't work well like that anyway.)
- because of bugs in certain builds of PHP, does not function in
versions lower than 4.3.0 - please upgrade if this hurts you.
*/
// Clean the request variables - add html entities to GET and slashes if magic_quotes_gpc is Off.
function cleanRequest()
{
global $board, $topic, $boardurl, $scripturl, $modSettings, $context, $db_prefix;
// Makes it easier to refer to things this way.
$scripturl = $boardurl . '/index.php';
// Save some memory.. (since we don't use these anyway.)
unset($GLOBALS['HTTP_POST_VARS'], $GLOBALS['HTTP_POST_VARS']);
unset($GLOBALS['HTTP_POST_FILES'], $GLOBALS['HTTP_POST_FILES']);
// These keys shouldn't be set...ever.
if (isset($_REQUEST['GLOBALS']) || isset($_COOKIE['GLOBALS']))
die('Invalid request variable.');
// Same goes for numeric keys.
foreach (array_merge(array_keys($_POST), array_keys($_GET), array_keys($_FILES)) as $key)
if (is_numeric($key))
die('Invalid request variable.');
// Numeric keys in cookies are less of a problem. Just unset those.
foreach ($_COOKIE as $key => $value)
if (is_numeric($key))
unset($_COOKIE[$key]);
// Get the correct query string. It may be in an environment variable...
if (!isset($_SERVER['QUERY_STRING']))
$_SERVER['QUERY_STRING'] = getenv('QUERY_STRING');
// Are we going to need to parse the ; out?
if ((strpos(@ini_get('arg_separator.input'), ';') === false || @version_compare(PHP_VERSION, '4.2.0') == -1) && !empty($_SERVER['QUERY_STRING']))
{
// Get rid of the old one! You don't know where it's been!
$_GET = array();
// Was this redirected? If so, get the REDIRECT_QUERY_STRING.
$_SERVER['QUERY_STRING'] = urldecode(substr($_SERVER['QUERY_STRING'], 0, 5) == 'url=/' ? $_SERVER['REDIRECT_QUERY_STRING'] : $_SERVER['QUERY_STRING']);
// Replace ';' with '&' and '&something&' with '&something=&'. (this is done for compatibility...)
// !!! smflib
parse_str(preg_replace('/&(\w+)(?=&|$)/', '&$1=', strtr($_SERVER['QUERY_STRING'], array(';?' => '&', ';' => '&'))), $_GET);
}
elseif (strpos(@ini_get('arg_separator.input'), ';') !== false)
{
$_GET = urldecode__recursive($_GET);
if (get_magic_quotes_gpc() != 0 && empty($modSettings['integrate_magic_quotes']))
$_GET = stripslashes__recursive($_GET);
// Search engines will send action=profile%3Bu=1, which confuses PHP.
// !!! smflib
foreach ($_GET as $k => $v)
{
if (is_string($v) && strpos($k, ';') !== false)
{
$temp = explode(';', $v);
$_GET[$k] = $temp[0];
for ($i = 1, $n = count($temp); $i < $n; $i++)
{
@list ($key, $val) = @explode('=', $temp[$i], 2);
if (!isset($_GET[$key]))
$_GET[$key] = $val;
}
}
// This helps a lot with integration!
if (strpos($k, '?') === 0)
{
$_GET[substr($k, 1)] = $v;
unset($_GET[$k]);
}
}
}
// There's no query string, but there is a URL... try to get the data from there.
if (!empty($_SERVER['REQUEST_URI']))
{
// Remove the .html, assuming there is one.
if (substr($_SERVER['REQUEST_URI'], strrpos($_SERVER['REQUEST_URI'], '.'), 4) == '.htm')
$request = substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '.'));
else
$request = $_SERVER['REQUEST_URI'];
// Replace 'index.php/a,b,c/d/e,f' with 'a=b,c&d=&e=f' and parse it into $_GET.
parse_str(substr(preg_replace('/&(\w+)(?=&|$)/', '&$1=', strtr(preg_replace('~/([^,/]+),~', '/$1=', substr($request, strpos($request, basename($scripturl)) + strlen(basename($scripturl)))), '/', '&')), 1), $temp);
$_GET += $temp;
}
// Add entities to GET. This is kinda like the slashes on everything else.
$_GET = addslashes__recursive(htmlspecialchars__recursive($_GET));
// Clean up after annoying ini settings. (magic_quotes_gpc might be off...)
if (get_magic_quotes_gpc() == 0 && empty($modSettings['integrate_magic_quotes']))
{
// E(G)PCS: ENV, (GET was already done), POST, COOKIE.
$_ENV = addslashes__recursive($_ENV);
$_POST = addslashes__recursive($_POST);
$_COOKIE = addslashes__recursive($_COOKIE);
// FILES work like this: k -> name -> array. So be careful.
foreach ($_FILES as $k => $dummy)
$_FILES[$k]['name'] = addslashes__recursive($_FILES[$k]['name']);
}
// Take care of the server variables.
$_SERVER = addslashes__recursive($_SERVER);
// Let's not depend on the ini settings... why even have COOKIE in there, anyway?
$_REQUEST = $_POST + $_GET;
// Make sure $board and $topic are numbers.
if (isset($_REQUEST['board']))
{
// Make sure that its a string and not something else like an array
$_REQUEST['board'] = (string) $_REQUEST['board'];
// If there's a slash in it, we've got a start value! (old, compatible links.)
if (strpos($_REQUEST['board'], '/') !== false)
list ($_REQUEST['board'], $_REQUEST['start']) = explode('/', $_REQUEST['board']);
// Same idea, but dots. This is the currently used format - ?board=1.0...
elseif (strpos($_REQUEST['board'], '.') !== false)
list ($_REQUEST['board'], $_REQUEST['start']) = explode('.', $_REQUEST['board']);
// Now make absolutely sure it's a number.
// Check for pretty board URLs too, and possibly redirect if oldschool queries were used.
if (is_numeric($_REQUEST['board']))
{
$board = (int) $_REQUEST['board'];
if (!isset($_REQUEST['pretty']))
$context['pretty']['oldschoolquery'] = true;
} else {
$_REQUEST['board'] = str_replace(array('&#039;', '\\'), array(chr(18), ''), $_REQUEST['board']);
$pretty_board_lookup = unserialize($modSettings['pretty_board_lookup']);
$board = (int) isset($pretty_board_lookup[$_REQUEST['board']]) ? $pretty_board_lookup[$_REQUEST['board']] : 0;
}
// This is for "Who's Online" because it might come via POST - and it should be an int here.
$_GET['board'] = $board;
}
// Well, $board is going to be a number no matter what.
else
$board = 0;
// If there's a threadid, it's probably an old YaBB SE link. Flow with it.
if (isset($_REQUEST['threadid']) && !isset($_REQUEST['topic']))
$_REQUEST['topic'] = $_REQUEST['threadid'];
// We've got topic!
if (isset($_REQUEST['topic']))
{
// Make sure that its a string and not something else like an array
$_REQUEST['topic'] = (string)$_REQUEST['topic'];
// Slash means old, beta style, formatting. That's okay though, the link should still work.
if (strpos($_REQUEST['topic'], '/') !== false)
list ($_REQUEST['topic'], $_REQUEST['start']) = explode('/', $_REQUEST['topic']);
// Dots are useful and fun ;). This is ?topic=1.15.
elseif (strpos($_REQUEST['topic'], '.') !== false)
list ($_REQUEST['topic'], $_REQUEST['start']) = explode('.', $_REQUEST['topic']);
// Check for pretty topic URLs, and possibly redirect if oldschool queries were used.
if (is_numeric($_REQUEST['topic']))
{
$topic = (int) $_REQUEST['topic'];
if (!isset($_REQUEST['pretty']))
$context['pretty']['oldschoolquery'] = true;
} else {
$_REQUEST['topic'] = str_replace(array('&#039;', '\\'), array(chr(18), ''), $_REQUEST['topic']);
// Are we feeling lucky?
$query = db_query("
SELECT ID_TOPIC
FROM {$db_prefix}pretty_topic_urls
WHERE pretty_url = '$_REQUEST[topic]'
LIMIT 1", __FILE__, __LINE__);
// No? No topic?!
if (mysql_num_rows($query) == 0)
{
$topic = 0;
} else {
while ($row = mysql_fetch_assoc($query))
$topic = (int) $row['ID_TOPIC'];
}
mysql_free_result($query);
// That query should be counted separately
$context['pretty']['db_count']++;
}
// Now make sure the online log gets the right number.
$_GET['topic'] = $topic;
}
// There should be a $_REQUEST['start'], some at least. If you need to default to other than 0, use $_GET['start'].
if (empty($_REQUEST['start']) || $_REQUEST['start'] < 0)
$_REQUEST['start'] = 0;
// The action needs to be a string and not an array or anything else
if (isset($_REQUEST['action']))
$_REQUEST['action'] = (string) $_REQUEST['action'];
if (isset($_GET['action']))
$_GET['action'] = (string) $_GET['action'];
// Store the REMOTE_ADDR for later - even though we HOPE to never use it...
$_SERVER['BAN_CHECK_IP'] = isset($_SERVER['REMOTE_ADDR']) && preg_match('~^((([1]?\d)?\d|2[0-4]\d|25[0-5])\.){3}(([1]?\d)?\d|2[0-4]\d|25[0-5])$~', $_SERVER['REMOTE_ADDR']) === 1 ? $_SERVER['REMOTE_ADDR'] : 'unknown';
// Find the user's IP address. (but don't let it give you 'unknown'!)
if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']) && !empty($_SERVER['HTTP_CLIENT_IP']) && (preg_match('~^((0|10|172\.16|192\.168|255|127\.0)\.|unknown)~', $_SERVER['HTTP_CLIENT_IP']) == 0 || preg_match('~^((0|10|172\.16|192\.168|255|127\.0)\.|unknown)~', $_SERVER['REMOTE_ADDR']) != 0))
{
// We have both forwarded for AND client IP... check the first forwarded for as the block - only switch if it's better that way.
if (strtok($_SERVER['HTTP_X_FORWARDED_FOR'], '.') != strtok($_SERVER['HTTP_CLIENT_IP'], '.') && '.' . strtok($_SERVER['HTTP_X_FORWARDED_FOR'], '.') == strrchr($_SERVER['HTTP_CLIENT_IP'], '.') && (preg_match('~^((0|10|172\.16|192\.168|255|127\.0)\.|unknown)~', $_SERVER['HTTP_X_FORWARDED_FOR']) == 0 || preg_match('~^((0|10|172\.16|192\.168|255|127\.0)\.|unknown)~', $_SERVER['REMOTE_ADDR']) != 0))
$_SERVER['REMOTE_ADDR'] = implode('.', array_reverse(explode('.', $_SERVER['HTTP_CLIENT_IP'])));
else
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CLIENT_IP'];
}
if (!empty($_SERVER['HTTP_CLIENT_IP']) && (preg_match('~^((0|10|172\.16|192\.168|255|127\.0)\.|unknown)~', $_SERVER['HTTP_CLIENT_IP']) == 0 || preg_match('~^((0|10|172\.16|192\.168|255|127\.0)\.|unknown)~', $_SERVER['REMOTE_ADDR']) != 0))
{
// Since they are in different blocks, it's probably reversed.
if (strtok($_SERVER['REMOTE_ADDR'], '.') != strtok($_SERVER['HTTP_CLIENT_IP'], '.'))
$_SERVER['REMOTE_ADDR'] = implode('.', array_reverse(explode('.', $_SERVER['HTTP_CLIENT_IP'])));
else
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CLIENT_IP'];
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
// If there are commas, get the last one.. probably.
if (strpos($_SERVER['HTTP_X_FORWARDED_FOR'], ',') !== false)
{
$ips = array_reverse(explode(', ', $_SERVER['HTTP_X_FORWARDED_FOR']));
// Go through each IP...
foreach ($ips as $i => $ip)
{
// Make sure it's in a valid range...
if (preg_match('~^((0|10|172\.16|192\.168|255|127\.0)\.|unknown)~', $ip) != 0 && preg_match('~^((0|10|172\.16|192\.168|255|127\.0)\.|unknown)~', $_SERVER['REMOTE_ADDR']) == 0)
continue;
// Otherwise, we've got an IP!
$_SERVER['REMOTE_ADDR'] = trim($ip);
break;
}
}
// Otherwise just use the only one.
elseif (preg_match('~^((0|10|172\.16|192\.168|255|127\.0)\.|unknown)~', $_SERVER['HTTP_X_FORWARDED_FOR']) == 0 || preg_match('~^((0|10|172\.16|192\.168|255|127\.0)\.|unknown)~', $_SERVER['REMOTE_ADDR']) != 0)
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
elseif (!isset($_SERVER['REMOTE_ADDR']))
{
$_SERVER['REMOTE_ADDR'] = '';
// A new magic variable to indicate we think this is command line.
$_SERVER['is_cli'] = true;
}
// Make sure we know the URL of the current request.
if (empty($_SERVER['REQUEST_URI']))
$_SERVER['REQUEST_URL'] = $scripturl . (!empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : '');
elseif (preg_match('~^([^/]+//[^/]+)~', $scripturl, $match) == 1)
$_SERVER['REQUEST_URL'] = $match[1] . $_SERVER['REQUEST_URI'];
else
$_SERVER['REQUEST_URL'] = $_SERVER['REQUEST_URI'];
// And make sure HTTP_USER_AGENT is set.
$_SERVER['HTTP_USER_AGENT'] = isset($_SERVER['HTTP_USER_AGENT']) ? htmlspecialchars(stripslashes($_SERVER['HTTP_USER_AGENT']), ENT_QUOTES) : '';
// Some final checking.
if (preg_match('~^((([1]?\d)?\d|2[0-4]\d|25[0-5])\.){3}(([1]?\d)?\d|2[0-4]\d|25[0-5])$~', $_SERVER['REMOTE_ADDR']) === 0)
$_SERVER['REMOTE_ADDR'] = '';
}
// Adds slashes to the array/variable. Uses two underscores to guard against overloading.
function addslashes__recursive($var, $level = 0)
{
if (!is_array($var))
return addslashes($var);
// Reindex the array with slashes.
$new_var = array();
// Add slashes to every element, even the indexes!
foreach ($var as $k => $v)
$new_var[addslashes($k)] = $level > 25 ? null : addslashes__recursive($v, $level + 1);
return $new_var;
}
// Adds html entities to the array/variable. Uses two underscores to guard against overloading.
function htmlspecialchars__recursive($var, $level = 0)
{
global $func;
if (!is_array($var))
return isset($func) ? $func['htmlspecialchars']($var, ENT_QUOTES) : htmlspecialchars($var, ENT_QUOTES);
// Add the htmlspecialchars to every element.
foreach ($var as $k => $v)
$var[$k] = $level > 25 ? null : htmlspecialchars__recursive($v, $level + 1);
return $var;
}
// Removes url stuff from the array/variable. Uses two underscores to guard against overloading.
function urldecode__recursive($var, $level = 0)
{
if (!is_array($var))
return urldecode($var);
// Reindex the array...
$new_var = array();
// Add the htmlspecialchars to every element.
foreach ($var as $k => $v)
$new_var[urldecode($k)] = $level > 25 ? null : urldecode__recursive($v, $level + 1);
return $new_var;
}
// Strips the slashes off any array or variable. Two underscores for the normal reason.
function stripslashes__recursive($var, $level = 0)
{
if (!is_array($var))
return stripslashes($var);
// Reindex the array without slashes, this time.
$new_var = array();
// Strip the slashes from every element.
foreach ($var as $k => $v)
$var[stripslashes($k)] = $level > 25 ? null : stripslashes__recursive($v, $level + 1);
return $var;
}
// Trim a string including the HTML space, character 160.
function htmltrim__recursive($var, $level = 0)
{
global $func;
// Remove spaces (32), tabs (9), returns (13, 10, and 11), nulls (0), and hard spaces. (160)
if (!is_array($var))
return isset($func) ? $func['htmltrim']($var) : trim($var, " \t\n\r\x0B\0\xA0");
// Go through all the elements and remove the whitespace.
foreach ($var as $k => $v)
$new_var[$k] = $level > 25 ? null : htmltrim__recursive($v, $level + 1);
return $new_var;
}
// !!!
function validate_unicode__recursive($var)
{
if (is_array($var))
return array_map('validate_unicode__recursive', $var);
$cleanup = array_merge(range(0, 8), range(11, 12), range(14, 31));
// Assuming unicode for now - won't really hurt if we're wrong.
for ($i = 0; $i < strlen($var); $i++)
{
$c = ord($var{$i});
if (in_array($c, $cleanup))
{
$var = substr($var, 0, $i) . substr($var, $i + 1);
$i--;
continue;
}
if ($c < 192)
continue;
elseif ($c < 224)
$i++;
elseif ($c < 240)
$i += 2;
elseif ($c < 248)
$i += 3;
elseif ($c < 252)
$i += 4;
elseif ($c < 254)
$i += 5;
}
return $var;
}
// Rewrite URLs to include the session ID.
function ob_sessrewrite($buffer)
{
global $scripturl, $modSettings, $user_info, $context, $db_prefix, $sourcedir, $txt, $time_start, $db_count;
// If $scripturl is set to nothing, or the SID is not defined (SSI?) just quit.
if ($scripturl == '' || !defined('SID'))
return $buffer;
// Do nothing if the session is cookied, or they are a crawler - guests are caught by redirectexit(). This doesn't work below PHP 4.3.0, because it makes the output buffer bigger.
// !!! smflib
if (empty($_COOKIE) && SID != '' && empty($context['browser']['possibly_robot']) && @version_compare(PHP_VERSION, '4.3.0') != -1)
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(?!\?' . preg_quote(SID, '/') . ')(\?)?/', '"' . $scripturl . '?' . SID . '&', $buffer);
// Debugging templates, are we?
elseif (isset($_GET['debug']))
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(\?)?/', '"' . $scripturl . '?debug;', $buffer);
// Rewrite the buffer with Pretty URLs!
if ($modSettings['pretty_enable_filters'])
{
// Remove the script tags now
$context['pretty']['scriptID'] = 0;
$context['pretty']['scripts'] = array();
$buffer = preg_replace_callback('~<script.+?</script>~s', 'pretty_scripts_remove', $buffer);
// Find all URLs in the buffer
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';
$urls_query = array();
$uncached_urls = array();
foreach ($context['pretty']['search_patterns'] as $pattern)
{
preg_match_all($pattern, $buffer, $matches, PREG_PATTERN_ORDER);
foreach ($matches[2] as $match)
{
// Rip out everything that shouldn't be cached
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|sesc=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
$url_id = str_replace(array($scripturl . '?board=', $scripturl . '?topic=', $scripturl . '?action=', $scripturl), array('`B', '`T', '`A', '`S'), $match);
$urls_query[] = '\'' . addslashes($url_id) . '\'';
$uncached_urls[$url_id] = array(
'url' => $match,
'url_id' => $url_id
);
}
}
// Procede only if there are actually URLs in the page
if (count($urls_query) != 0)
{
$urls_query = array_keys(array_flip($urls_query));
// Retrieve cached URLs
$context['pretty']['cached_urls'] = array();
$query = db_query("
SELECT url_id, replacement
FROM {$db_prefix}pretty_urls_cache
WHERE url_id IN (" . implode(', ', $urls_query) . ')', __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($query))
{
$context['pretty']['cached_urls'][$row['url_id']] = $row['replacement'];
unset($uncached_urls[$row['url_id']]);
}
mysql_free_result($query);
// If there are any uncached URLs, process them
if (count($uncached_urls) != 0)
{
// Run each filter callback function on each URL
require_once($sourcedir . '/PrettyUrls-Filters.php');
$filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);
foreach ($filter_callbacks as $callback)
$uncached_urls = call_user_func($callback, $uncached_urls);
// Fill the cached URLs array
$cache_data = array();
foreach ($uncached_urls as $url_id => $url)
{
if (!isset($url['replacement']))
$url['replacement'] = $url['url'];
$url['replacement'] = str_replace(chr(18), '\'', $url['replacement']);
$url['replacement'] = preg_replace(array('~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('%22', ';', '?', ''), $url['replacement']);
$context['pretty']['cached_urls'][$url_id] = $url['replacement'];
if (strlen($url_id) < 256 && strlen($url['replacement']) < 256)
$cache_data[] = '(\'' . addslashes($url_id) . '\', \'' . addslashes($url['replacement']) . '\')';
}
// Cache these URLs in the database
if (count($cache_data) != 0)
db_query("
REPLACE INTO {$db_prefix}pretty_urls_cache
(url_id, replacement)
VALUES " . implode(', ', $cache_data), __FILE__, __LINE__);
}
// Put the URLs back into the buffer
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"]+\"|\'[^\']+\')~';
foreach ($context['pretty']['replace_patterns'] as $pattern)
$buffer = preg_replace_callback($pattern, 'pretty_buffer_callback', $buffer);
}
// Restore the script tags
if ($context['pretty']['scriptID'] > 0)
$buffer = preg_replace_callback('~' . chr(20) . '([0-9]+)' . chr(20) . '~', 'pretty_scripts_restore', $buffer);
}
// Update the load times
$pattern = '~<span class="smalltext">' . $txt['smf301'] . '([.0-9]+)' . $txt['smf302'] . '([0-9]+)' . $txt['smf302b'] . '</span>~';
if (preg_match($pattern, $buffer, $matches))
{
$newTime = round(array_sum(explode(' ', microtime())) - array_sum(explode(' ', $time_start)), 3);
$timeDiff = $newTime - (float) $matches[1];
$queriesDiff = $db_count + $context['pretty']['db_count'] - (int) $matches[2];
// Remove the link if you like, I won't enforce it like others do
$newLoadTime = '<span class="smalltext">' . $txt['smf301'] . $newTime . $txt['smf302'] . $db_count . $txt['smf302b'] . ' (<a href="http://code.google.com/p/prettyurls/">Pretty URLs</a> adds ' . $timeDiff . 's, ' . $queriesDiff . 'q)</span>';
$buffer = str_replace($matches[0], $newLoadTime, $buffer);
}
// Return the changed buffer.
return $buffer;
}
// Remove and save script tags
function pretty_scripts_remove($match)
{
global $context;
$context['pretty']['scriptID']++;
$context['pretty']['scripts'][$context['pretty']['scriptID']] = $match[0];
return chr(20) . $context['pretty']['scriptID'] . chr(20);
}
// A callback function to replace the buffer's URLs with their cached URLs
function pretty_buffer_callback($matches)
{
global $context, $scripturl;
// Is this URL part of a feed?
$isFeed = strpos($matches[1], '>');
// Remove those annoying quotes
$matches[2] = preg_replace('~^[\"\']|[\"\']$~', '', $matches[2]);
// Store the parts of the URL that won't be cached so they can be inserted later
preg_match('~PHPSESSID=[^;#&]+~', $matches[2], $PHPSESSID);
preg_match('~sesc=[^;#]+~', $matches[2], $sesc);
preg_match('~#.*~', $matches[2], $fragment);
// Rip out everything that won't have been cached
$cacheableurl = preg_replace(array('~PHPSESSID=[^;#]+|sesc=[^;#]+|#.*$~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $matches[2]);
$url_id = str_replace(array($scripturl . '?board=', $scripturl . '?topic=', $scripturl . '?action=', $scripturl), array('`B', '`T', '`A', '`S'), $cacheableurl);
// Stitch everything back together, clean it up and return
$replacement = isset($context['pretty']['cached_urls'][$url_id]) ? $context['pretty']['cached_urls'][$url_id] : $cacheableurl;
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
$replacement = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|;$|#$|=$~'), array(';', '?', '#', ''), $replacement);
return $matches[1] . ($isFeed === false ? '"' : '') . $replacement . ($isFeed === false ? '"' : '');
}
// Put the script tags back
function pretty_scripts_restore($match)
{
global $context;
return $context['pretty']['scripts'][(int) $match[1]];
}
?>
Okay that's fine. Can you post your Sources/Sitemap.php?
Yes, here
<?php
/**********************************************************************************
* Version 1.2.0 Sitemap.php *
***********************************************************************************
* Modification by: Matt Zuba (http://www.mattzuba.com) *
* Copyright 2007 by: AirRideTalk.com (http://www.airidetalk.com) *
***********************************************************************************
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
**********************************************************************************/
// No Direct Access!
if (!defined('SMF'))
die('Hacking attempt...');
// Main function that determines what we will view
function ShowSiteMap() {
global $context, $scripturl, $settings, $txt, $user_info, $db_prefix, $modSettings;
// Set the page title
$context['page_title'] = $txt['sitemap'];
// Load the proper template
loadtemplate('Sitemap');
$context['linktree'][] = array(
'url' => $scripturl . '?action=sitemap',
'name' => $txt['sitemap'],
'extra_before' => $settings['linktree_inline'] ? $txt[118] . ': ' : ''
);
// Get the total topics ($modSettings['totalTopics'] isn't reliable) and create the page index
$request = db_query("
SELECT t.ID_TOPIC
FROM {$db_prefix}messages as m, {$db_prefix}topics as t, {$db_prefix}boards as b
WHERE m.ID_MSG = t.ID_LAST_MSG
AND b.ID_BOARD = m.ID_BOARD
AND $user_info[query_see_board]
LIMIT $modSettings[sitemap_topic_count]", __FILE__, __LINE__);
// Fix our start value. If its higher than the max topic count, set it to the max topic count (it'll be fixed below to the proper number)
$_REQUEST['start'] = ($_REQUEST['start'] > $modSettings['sitemap_topic_count']) ? $modSettings['sitemap_topic_count'] : $_REQUEST['start'];
$context['page_index'] = constructPageIndex($scripturl . '?action=sitemap', $_REQUEST['start'], mysql_num_rows($request), 100);
if (strpos($_SERVER['QUERY_STRING'], 'start') === false)
$context['page_index'] = str_replace('[<b>1</b>]', '<a class="navPages" href="' . $scripturl . '?action=sitemap;start=0">1</a>', $context['page_index']);
// Check to see if we're viewing topics or the boards or xml sitemap
if (isset($_REQUEST['xml']))
XMLDisplay();
else if (strpos($_SERVER['QUERY_STRING'], 'start') !== false)
TopicDisplay(($_REQUEST['start']));
else
BoardDisplay();
}
function BoardDisplay() {
global $context, $db_prefix, $user_info;
// Set the right sub template
$context['sub_template'] = 'Boards';
$context['sitemap']['collapsible'] = array();
// Get our information from the database
$request = db_query("
SELECT b.ID_BOARD, b.ID_PARENT, b.childLevel, b.name, b.description, b.numTopics, b.numPosts
FROM {$db_prefix}boards as b
WHERE $user_info[query_see_board]
ORDER BY b.boardOrder", __FILE__, __LINE__);
// And assign it to an array
while ($row = mysql_fetch_assoc($request))
{
$context['sitemap']['board'][$row['ID_BOARD']] = array(
'id' => $row['ID_BOARD'],
'level' => $row['childLevel'],
'has_children' => false,
'name' => $row['name'],
'description' => $row['description'],
'numt' => $row['numTopics'],
'nump' => $row['numPosts'],
);
// If we are a child, and the first at that, let the parent know that at least one of us exists!
if(!empty($row['childLevel']) && $row['childLevel'] == '1') {
$context['sitemap']['board'][$row['ID_PARENT']]['has_children'] = true;
$context['sitemap']['collapsible'] = $context['sitemap']['collapsible'] + array($row['ID_PARENT'] => $row['ID_PARENT']);
}
}
$context['sitemap']['collapsible'] = '\'parent' . implode('\', \'parent', $context['sitemap']['collapsible']) . '\'';
// Free the result.
mysql_free_result($request);
}
function TopicDisplay($start) {
global $context, $db_prefix, $user_info, $scripturl, $modSettings;
// Set the proper sub template
$context['sub_template'] = 'Topics';
$end = $modSettings['sitemap_topic_count'] - $start < 100 ? $modSettings['sitemap_topic_count'] - $start : 100;
// Get the right information
$request = db_query("
SELECT m.ID_MSG, m.ID_TOPIC, t.numReplies, t.numViews, m.ID_BOARD,
m.subject, m.posterName, t.ID_FIRST_MSG, b.name
FROM {$db_prefix}messages as m, {$db_prefix}topics as t, {$db_prefix}boards as b
WHERE m.ID_MSG=t.ID_FIRST_MSG
AND b.ID_BOARD = m.ID_BOARD
AND $user_info[query_see_board]
ORDER BY m.ID_TOPIC DESC
LIMIT $start,$end", __FILE__, __LINE__);
// Assign it to the array
while ($row = mysql_fetch_assoc($request))
{
$context['sitemap']['topic'][] = array(
'subject' => $row['subject'],
'poster' => $row['posterName'],
'views' => $row['numViews'],
'replies' => $row['numReplies'],
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0',
'board_name' => $row['name'],
'board_href' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
);
}
// Free the result
mysql_free_result($request);
}
function XMLDisplay() {
global $db_prefix, $context, $user_info, $modSettings;
$context['sub_template'] = 'XMLDisplay';
// Setup the main forum url...
$context['sitemap']['main'] = array('time' => date_iso8601());
// Get our information from the database
$request = db_query("
SELECT b.ID_BOARD, m.posterTime
FROM {$db_prefix}boards as b, {$db_prefix}messages as m
WHERE m.ID_MSG = b.ID_LAST_MSG
AND $user_info[query_see_board]
ORDER BY m.posterTime DESC", __FILE__, __LINE__);
// And assign it to an array
while ($row = mysql_fetch_assoc($request))
{
$context['sitemap']['board'][] = array(
'id' => $row['ID_BOARD'] . '.0',
'time' => date_iso8601($row['posterTime']),
);
}
// Free the result.
mysql_free_result($request);
// Pretty URLs need to be rewritten
ob_start('ob_sessrewrite');
$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';
// Get the right information
$request = db_query("
SELECT t.ID_TOPIC, m.posterTime
FROM {$db_prefix}messages as m, {$db_prefix}topics as t, {$db_prefix}boards as b
WHERE m.ID_MSG = t.ID_LAST_MSG
AND b.ID_BOARD = m.ID_BOARD
AND $user_info[query_see_board]
ORDER BY m.posterTime DESC
LIMIT $modSettings[sitemap_topic_count]", __FILE__, __LINE__);
// Assign it to the array
while ($row = mysql_fetch_assoc($request))
{
$context['sitemap']['topic'][] = array(
'id' => $row['ID_TOPIC'] . '.0',
'time' => date_iso8601($row['posterTime']),
);
}
// Free the result
mysql_free_result($request);
}
function date_iso8601($timestamp = '') {
$timestamp = empty($timestamp) ? time() : $timestamp;
$gmt = substr(date("O", $timestamp), 0, 3).':00';
return date('Y-m-d\TH:i:s',$timestamp).$gmt;
}
?>
Hmm, and Sitemap.template.php?
<?php
// Version 1.2.0; Sitemap
function template_Begin() {
global $scripturl, $mbname, $txt;
echo '<div class="tborder"><table class="bordercolor" border="0" cellpadding="4" cellspacing="1" width="100%" align="center">
<tbody><tr>
<td class="catbg3" colspan="2" align="center" height="18" width="100%"><a href="', $scripturl, '">', $mbname, ' - ', $txt['sitemap'], '</a></td>
</tr>
<tr><td class="windowbg2">';
}
function template_Boards() {
global $context, $scripturl, $txt, $modSettings, $settings;
template_Begin();
if (!empty($modSettings['sitemap_collapsible'])) {//
echo '<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
menus_array = new Array (', $context['sitemap']['collapsible'], ');
menus_status_array = new Array ();// remembers state of switches
img_close = \'', $settings['images_url'], '/collapse.gif\';
img_open = \'', $settings['images_url'], '/expand.gif\';
function showHideSwitch (theid) {
if (document.getElementById) {
var switch_id = document.getElementById(theid);
var imgid = theid+\'Button\';
var button_id = document.getElementById(imgid);
if (menus_status_array[theid] != \'show\') {
button_id.setAttribute (\'src\', img_close);
switch_id.className = \'showSwitch\';
menus_status_array[theid] = \'show\';
}else{
button_id.setAttribute (\'src\', img_open);
switch_id.className = \'hideSwitch\';
menus_status_array[theid] = \'hide\';
}
}
}
// ]]></script>
';
}
echo '
<table width="100%">
<tr>
<td width="13"></td>
<td width="20%"><strong>', $txt['smf82'], '</strong></td>
<td width="65%"><strong>', $txt[70], '</strong></td>
<td width="40" align="center"><strong>', $txt[64], '</strong></td>
<td width="50" align="center"><strong>', $txt[21], '</strong></td>
</tr>
</table>';
if(isset($context['sitemap']['board']))
// Setup a switch to use for collapsible sub-boards
$switch = false;
foreach($context['sitemap']['board'] as $board) {
if ($board['level'] == 0 && $switch) {
$switch = false;
echo '
</div>';
}
echo '
<table width="100%">
<tr', !empty($modSettings['sitemap_collapsible']) && $board['has_children'] ? ' id="tr_parent' . $board['id'] . '" onclick="showHideSwitch(\'parent' . $board['id'] . '\')"' : '', '>
<td width="13">', !empty($modSettings['sitemap_collapsible']) && $board['has_children'] ? '<img src="' . $settings['images_url'] . '/expand.gif" alt="" name="parent' . $board['id'] . 'Button" id="parent' . $board['id'] . 'Button" />' : '', '</td>
<td width="20%"><a href="', $scripturl, '?board=', $board['id'], '.0">',$board['name'],'</a></td>
<td width="65%">', $board['description'], '</td>
<td align="center" width="40">', $board['numt'], '</div></td>
<td align="center" width="50">', $board['nump'], '</td>
</tr>
</table>';
if (!empty($modSettings['sitemap_collapsible']) && $board['has_children']) {
$switch = true;
echo '
<div class="hideSwitch" id="parent', $board['id'], '">';
continue;
}
}
if ($switch)
echo '
</div>';
template_End();
}
function template_Topics() {
global $context, $scripturl, $txt;
template_Begin();
echo '<table width="100%">
<tr>
<td><strong>', $txt[118], '</strong></td>
<td><strong>', $txt[109], '</strong></td>
<td width="40" align="center"><strong>', $txt[301], '</strong></td>
<td width="50" align="center"><strong>', $txt[110], '</strong></td>
</tr>';
$i = 1;
if (isset($context['sitemap']['topic']))
foreach ($context['sitemap']['topic'] as $topic) {
echo '
<tr>
<td>', $i, '. [<a href="', $topic['board_href'], '">', $topic['board_name'], '</a>] <a href="', $topic['href'] ,'">', $topic['subject'], '</a></td>
<td>', $topic['poster'], '</td>
<td align="center">', $topic['views'], '</td>
<td align="center">', $topic['replies'], '</td>
</tr>';
$i++;
}
echo '
</table>';
template_End();
}
function template_End() {
global $scripturl, $modSettings, $txt, $context;
echo '
<ul>';
echo '
<li><a href="',$scripturl,'?action=sitemap">', $txt['sitemap_boards'], '</a></li>';
echo '
<li>', $txt[64], ': ', $context['page_index'], '</li>';
if(!empty($modSettings['sitemap_xml']) || $context['user']['is_admin'])
echo '
<li>', getXMLLink(), '</li>';
echo '
</ul>';
echo '
</td></tr></tbody></table></div>';
}
function template_XMLDisplay() {
global $context, $scripturl, $modSettings;
// Test to see if Joomla! is here...
if (defined('_VALID_MOS' )) {
global $mosConfig_live_site, $Itemid, $mosConfig_sef;
$myurl = ($mosConfig_sef=='1' ? '' : $mosConfig_live_site. '/') . 'index.php?option=com_smf&Itemid=' . $Itemid;
$mark = '&';
}
// And if its not here, create a false function...
else {
$myurl = $scripturl;
$mark = '?';
function sefReltoAbs($string) {
global $modSettings, $scripturl;
if (empty($modSettings['queryless_urls']) || $string == $scripturl)
return $string;
$string = str_replace('?board=', '/board,', $string);
$string = str_replace('?topic=', '/topic,', $string);
$string = $string . '.html';
return $string;
}
}
echo '<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">';
echo '
<url>
<loc>', sefReltoAbs($myurl), '</loc>
<lastmod>', $context['sitemap']['main']['time'], '</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>';
if (isset($context['sitemap']['board']))
foreach ($context['sitemap']['board'] as $board)
echo '
<url>
<loc>', sefReltoAbs($myurl . $mark . 'board=' . $board['id']), '</loc>
<lastmod>', $board['time'], '</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>';
if (isset($context['sitemap']['topic']))
foreach ($context['sitemap']['topic'] as $topic)
echo '
<url>
<loc>', sefReltoAbs($myurl . $mark . 'topic=' . $topic['id']), '</loc>
<lastmod>', $topic['time'], '</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>';
echo '
</urlset>';
}
function getXMLLink() {
if (defined( '_VALID_MOS' )) {
global $mosConfig_live_site, $Itemid;
$retVal = '<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
';
$retVal .= 'document.write("<a href=\'' . $mosConfig_live_site . '/index.php?option=com_smf&Itemid=' . $Itemid . '&action=sitemap;xml\'>XML</a>")
';
$retVal .= '// ]]></script>';
return $retVal;
}
else {
global $scripturl;
return '<a href="' . $scripturl . '?action=sitemap;xml">XML</a>';
}
}
?>
Quote from: darkelhaym on April 18, 2008, 10:52:29 AMThis worked for the exclamation point in topics, but not for board names. It doesn't really matter since the part of the problem I had no control of is solved (users making topics with exclamation marks) But now I discovered another problem: when my user try to submit a score to the arcade, the redirection brings them to the following error.
Not Found
The requested URL /arcade/index.php was not found on this server.
The address on the navigation bar is http://www.evoyugi.com/arcade/index.php?action=arcade
If I deactivate the rewriting for forum actions it works again (obviously). Any idea? Thanks.
Quote from: DanniiAhh, yeah you'll need to delete some settings too. You can use this tool: http://prettyurls.googlecode.com/svn/trunk/uninstall.php
For the arcade, what is the original URL from the template?
The original URL from the template is:
http://www.evoyugi.com/index.php?action=arcade;sa=highscore;game=1
Installed cleanly, 404's everywhere except index.php
checked with host, mod_rewrite and .htaccess per directory are fine
error log
QuoteWebmaster Today at 08:43:11 AM
http://hot-rides.net/forum/index.php?action=admin;area=pretty;save
2: fclose(): supplied argument is not a valid stream resource
File: /home/dodgeste/public_html/forum/Sources/Subs-PrettyUrls.php
Line: 314
Webmaster Today at 08:43:11 AM
http://hot-rides.net/forum/index.php?action=admin;area=pretty;save
2: fwrite(): supplied argument is not a valid stream resource
File: /home/dodgeste/public_html/forum/Sources/Subs-PrettyUrls.php
Line: 313
Webmaster Today at 08:43:11 AM
http://hot-rides.net/forum/index.php?action=admin;area=pretty;save
2: fopen(/home/dodgeste/public_html/forum/.htaccess) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/dodgeste/public_html/forum/Sources/Subs-PrettyUrls.php
Line: 312
tried to uninstall and a test failed so I left it, went back to check which test failed for this post and now two have failed;
./Sources/ModSettings.php
./Sources/Subs.php
any clue?
stanaca, try removing this section:
if (empty($modSettings['queryless_urls']) || $string == $scripturl)
return $string;
$string = str_replace('?board=', '/board,', $string);
$string = str_replace('?topic=', '/topic,', $string);
$string = $string . '.html';
darkelhaym, are the other action urls working fine?
Hot Rides, looks like PHP doesn't have permission to edit .htaccess. Change the permissions so it can (Try 777).
Quote from: Dannii on April 23, 2008, 10:37:13 AM
Hot Rides, looks like PHP doesn't have permission to edit .htaccess. Change the permissions so it can (Try 777).
it wont let, thats a first, something must be controlling it, I was able to modify the one in my root directory but not the one in my /forum directory
You may not be owner, which might require your host's help to change if you don't have sudo access.
However having another .htaccess file in your root directory could also be a problem too! Can you copy it here?
root
SecFilterEngine Off
php_flag register_globals On
forum
SecFilterEngine Off
Danni thank you very much. it is now ok.
Someone should create a topic or mod about pretty url and sitemap mod working together.
Again. thank you
Hot Rides, yeah the forum one should have been edited by the mod. Can you manually edit it yourself?
Quote from: lonrot on March 02, 2008, 09:44:57 PM
Hi again, this time I'm getting this error every 5 minutes or so:
Hacking attempt...
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (7246, "transworld-surf-(ps2-ntsc)"), (15508, "(rpc)(mu)(ps2)-black-(palntsc)(selector-multi5-espaol)(fulldvd)")
File: /home/consolem/public_html/Sources/PrettyUrls-Filters.php
Line: 139
I don't think every member attemps to hack my site each time.
Quote from: 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:$modSettings['disableQueryCheck'] = 1;
I am getting this same error and the above fix doesn't work.
I am running 1.1.4
Try moving the line you added to the beginning of the function perhaps. (After the global statements though.)
That seemed to work. Thanks
Okay cool :)
Quote from: Dannii on April 23, 2008, 08:31:20 PM
Hot Rides, yeah the forum one should have been edited by the mod. Can you manually edit it yourself?
maybe, what does it need to be?
Depends which filters you have enabled.
im using pretty url in 1.1.4 and i add hoteditor
but
if i check pretty-url for BOARD the NEW TOPIC is not functionally
the url generate is http://webpage.com/nameofboard/?action=post
the box for post not appear
if i deactive pretty-url for BOARD the NEWTOPIC is correctly and the url generate is
index.php?action=post;board=36.0 example
if i check pretty-url for topic only topic, NEW REPLY is no functionally....
remember i want hoteditor
thanks for pretty url and hoteditor scripts.
I have no idea what hoteditor is, nor what your problem is. Please provide a real link to the situation.
when i try to install this through admin, i get this error:
"The package you tried to upload either is not a valid package or has become corrupted. "
Quote from: Dannii on April 25, 2008, 09:21:32 PM
I have no idea what hoteditor is, nor what your problem is. Please provide a real link to the situation.
ok mmm is a editor... but forget ok
now i want a pretty url only in BOARD and TOPICS
www.my.web.page.com/board/topic/ (http://www.my.web.page.com/board/topic/) i want
i check BOARD and TOPICS and uncheck Actions and url of BOARD and TOPICS are ok.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi27.tinypic.com%2F14v455i.png&hash=455dcd80e29192bf6104df0e5b85baef86d5ebdc)
but the BUTTOM NEW TOPIC and NEW REPLY have pretty-url. I need normal url with php parameters (index.php/?post board etc) in actions like reply notify send topic
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi30.tinypic.com%2F15yye1g.png&hash=4bd89664940e9682fd4278835f74e466d84ce7af)
what file i need modify to have pretty-url in board and topic but no pretty-url in actions (newreply-newtopic-quote)
thanks for you mod and your time. sorry for my english
starz, try creating a temp directory with SMF1-1 and SMF2-0 directories inside it. Make sure Apache and PHP have write permissions to it.
Arpegio-Is, hmm okay that could be done... though why don't the pretty URLs work?
Quote from: Dannii on April 26, 2008, 08:47:25 AM
starz, try creating a temp directory with SMF1-1 and SMF2-0 directories inside it. Make sure Apache and PHP have write permissions to it.
do i just upload all the contents of prettyurls-base_0_8_2.tar.gz to the temp folder and then run install.php?
btw this is for smf 1.1.4
edit: i tried installing manually and it didn't work. i followed all the edits from the Modsite's parser perfectly, i moved these files:
QuoteMove the included file "SMF1-1/PrettyUrls.php" to "./Sources".
Move the included file "SMF1-1/PrettyUrls-Filters.php" to "./Sources".
Move the included file "SMF1-1/Subs-PrettyUrls.php" to "./Sources".
Move the included file "PrettyUrls.template.php" to "./Themes/default".
Move the included directory "pretty" to "./Themes/default".
Move the included file "PrettyUrls.english.php" to "./Themes/default/languages".
Move the included file "PrettyUrls.french.php" to "./Themes/default/languages".
i created a dir called "Temp" in the root where i uploaded the contents of prettyurls-base_0_8_2.tar.gz into it.
i put install.php in the root of the forum directory and ran it, and it just gave me an Error 500. I tried accessing my forum, and got an Error 500 too.
mods i have installed are:
1. Reason For Editing Mod 1.14 [ Uninstall ] [ List Files ] [ Delete ]
2. Ignore user 1.4 [ Uninstall ] [ List Files ] [ Delete ]
3. Redirection Boards 2.01 [ Uninstall ] [ List Files ] [ Delete ]
4. MessagePreviewOnHover 1.7 [ Uninstall ] [ List Files ] [ Delete ]
5. Board Viewers Mod 1.2 [ Uninstall ] [ List Files ] [ Delete ]
6. Admin Notepad 1.0 [ Uninstall ] [ List Files ] [ Delete ]
7. SMF Gallery Lite 1.8.3 [ Uninstall ] [ List Files ] [ Delete ]
8. Ad Managment 2.3 [ Uninstall ] [ List Files ] [ Delete ]
9. Auto Embed Video Clips 2.1.5 [ Uninstall ] [ List Files ] [ Delete ]
10. LogModAccountEdits 1.9 [ Uninstall ] [ List Files ] [ Delete ]
11. Member Color Link 2.0.5 [ Uninstall ] [ List Files ] [ Delete ]
am i just doing something wrong?
Quote from: Dannii on April 26, 2008, 08:47:25 AM
starz, try creating a temp directory with SMF1-1 and SMF2-0 directories inside it. Make sure Apache and PHP have write permissions to it.
Arpegio-Is, hmm okay that could be done... though why don't the pretty URLs work?
because if i have prettyU my script don´t work correctly
my box dont appear
http://i29.tinypic.com/14o4wg5.png (http://i29.tinypic.com/14o4wg5.png)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi29.tinypic.com%2F14o4wg5.png&hash=4c0391208975b14fdb3cde1ba2a4c0bb8e3cb6ba)
if i check BOARDS and TOPICS the box disappears
http://i30.tinypic.com/25ingk9.png (http://i30.tinypic.com/25ingk9.png)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi30.tinypic.com%2F25ingk9.png&hash=b0d998033d85334c24ed9b387b0b7e502c6c8d8b)
what files i need modify?? i only want prettyU in boards and topics not in actions like NEWREPLY
starz, check the Apache error log please.
Arpegio-Is, well don't shout if you want help. The problem is probably with the mod/script you installed that changed the reply box, I'm guessing it is using $_GET['board'] rather than $board.
Try making these changes to PrettyUrls-Filters.php:
$pattern = '~' . $scripturl . '(.*[?;&])topic=([.a-zA-Z0-9]+)(.*)~S';
$pattern = '~' . $scripturl . '(.*[?;&])topic=([.a-zA-Z0-9]+)~S';
$pattern = '~' . $scripturl . '(.*[?;&])board=([.0-9]+)(.*)~S';
$pattern = '~' . $scripturl . '(.*[?;&])board=([.0-9]+)~S';
Danii,
Do you have a fix for this? I want to use it in a forum wich makes heavy use of the > symbol.
Quote
I am using UTF-8. The > is converted by default by SMF to
& gt;
In order to retain xhtml compliance.
Quote from: starz on April 26, 2008, 01:22:23 AM
when i try to install this through admin, i get this error:
"The package you tried to upload either is not a valid package or has become corrupted. "
See here http://www.simplemachines.org/community/index.php?topic=146969.msg1513118#msg1513118
spiros hmm. Well you could make this change to pretty_generate_url() in Subs-PrettyUrls.php, it would just remove it:
$text = str_replace(array('&', '"'), array('&', '"'), $text);
$text = str_replace(array('&', '"', '>'), array('&', '"', ''), $text);
Thanks Danii, it did work, perhaps you could integrate it to next version including any other similar characters (i.e. <).
I'm working on changing the whole generate URLs function. I think I'll even add an option to use URL percent encoding.
im ok, i can resolv my problem was easy, thanks.
Another one Danii,
The symbol ' becomes 039. How can we fix that?
Also, for some reasons, some Greek characters are omitted in Board names but not in topic titles!
For example this:
kpnisma-sto-exoteik
Should be
kapnisma-sto-exoteriko
Arpegio-Is, good to hear :)
spiros, When does the quote become that??
Are all your tables using the same encoding? That's the only way I can think of boards and topics being converted differently.
The quote becomes that on topic titles (only place I tested). UTF-8 site.
All tables (as well as smf_boards) use utf8_general_ci Collation
Just those numbers? Very strange. I'll investigate when I have the time.
I found the reason. It was a feed and it was posted like this: (Actual page source)
& # 039; need help with paperwork& # 039;
Hmm. You can add ' to the list of entities to replace. I'm going to have to find a way to convert all entities... cause there'll always be some we haven't thought of.
Tested this in 2 forums. There is no way to have topics URLs rewritten only. It will also rewrite board URLs. When the board URL check box is unchecked it will continue displaying board pretty URLs from Info center topic links, but not from actual board links.
Hmm, it seems to work for me...
Is there any way to modify the rule of the amount of words that the url will contain? Because I see that when subject is too long it is truncated. It would be good if this could be modified and especially if it could be set not to truncate a word.
Hmm there would be a way I'm sure, though I don't know what it is. The issue is that topics have a maximum length of 80 characters. You could increase the size of the column in the database. The code that truncates it is on lines 99, 107 and 127 of PrettyUrls-Filters.php. You could change those lines to do something more complicated... maybe using a regex.
Quote from: Dannii on April 23, 2008, 10:37:13 AM
stanaca, try removing this section:
if (empty($modSettings['queryless_urls']) || $string == $scripturl)
return $string;
$string = str_replace('?board=', '/board,', $string);
$string = str_replace('?topic=', '/topic,', $string);
$string = $string . '.html';
Hey Dannii,
I tried to remove as above, but i still can't get the pretty URL in xml display. I did follow all the steps taken in previous posts like inserting code in sitemap.php but still can't work.
What xml display?
==> index.php?action=sitemap;xml
Dannii:
Great mod, works perfect for me! I just need to reword a couple boards, to make the url's even more pretty.
One thing, maybe you know so i don't have to hunt the net for the best fix. How do i strip off the index.php from the root domain?
I would prefer to have my index page just my domain.
//www.mydomain.com/index.php (not pretty)
to
//www.mydomian.com (pretty)
Appreciate the help.
l_nix
Quote from: l_nix on April 30, 2008, 10:55:23 AM
Dannii:
Great mod, works perfect for me! I just need to reword a couple boards, to make the url's even more pretty.
One thing, maybe you know so i don't have to hunt the net for the best fix. How do i strip off the index.php from the root domain?
I would prefer to have my index page just my domain.
//www.mydomain.com/index.php (not pretty)
to
//www.mydomian.com (pretty)
Appreciate the help.
l_nix
Try typing out: www.yourwebsite.com
That should lead you to the index without index.php in the bar. :P
Thanks for the reply.
Sorry... my falut... you are 100% with your above reply! However, with the index.php, this is my first page (index) and as well it is the main page of the forum... i guess what i would like to do is when i click any link that takes me to my index.php page, i would like it to just show the root domain.
What file do i edit to have all links to the //mydomain.com/index.php actually just go to //www.mydomain.com. Then eliminating my problem? In theory! :P
You can edit $scripturl in QueryString.php.
Very nice I like it and use it
Hmm I'm having a strange problem. The maintenance tasks do not seem to work. I renamed some of my boards, but the links are rewritten wit the old names example : When You go here (http://forum.sevenstring.pl/index.php) the Offtopic has a forum.sevenstring.pl/pierdoly-rozne/ link instead of /offtopic/.
I tried running the maintenance tasks a few times, truncated the pretty_url_cache.
Nothing seems to help. The new rows that are created in pretty_urls_cache are still wrong, and outdated.
Regards
Quote from: Dannii on April 23, 2008, 10:37:13 AM
Hot Rides, looks like PHP doesn't have permission to edit .htaccess. Change the permissions so it can (Try 777).
That was it.
I spoke w/ my host and they made a change and I was able to change it 777. but it still wasnt working. So I ran the Maintence program inside pretty url screen and now it all work!
Love the mod, great work dannii
Quote from: Dannii on April 29, 2008, 10:04:29 PM
Hmm there would be a way I'm sure, though I don't know what it is. The issue is that topics have a maximum length of 80 characters. You could increase the size of the column in the database. The code that truncates it is on lines 99, 107 and 127 of PrettyUrls-Filters.php. You could change those lines to do something more complicated... maybe using a regex.
I made the necessary changes in smf db and core files (see here (http://www.simplemachines.org/community/index.php?topic=36080.0)) and the length works fine in subject field (without altering URL length). However, when I increased the limits in PrettyUrls-Filters.php to 255, then when clicking on the topic, it would remain on board index and then would display blank page, even on home page. When checking on db, I saw that the message was not entered. To fix the board problem, I had to delete the board.
Quote from: Harvest on May 01, 2008, 04:44:23 AM
Hmm I'm having a strange problem. The maintenance tasks do not seem to work. I renamed some of my boards, but the links are rewritten wit the old names example : When You go here (http://forum.sevenstring.pl/index.php) the Offtopic has a forum.sevenstring.pl/pierdoly-rozne/ link instead of /offtopic/.
I tried running the maintenance tasks a few times, truncated the pretty_url_cache.
Nothing seems to help. The new rows that are created in pretty_urls_cache are still wrong, and outdated.
Regards
Best course of action is to move all the topics out of the board into a new one. So, make a new board, move the topics into them, delete the old one, then name the new board the name you want.
Whenever I try to install this I get a test failure error on Sources/QueryString.php
Quote from: ccbtimewiz on May 01, 2008, 12:33:19 PM
Best course of action is to move all the topics out of the board into a new one. So, make a new board, move the topics into them, delete the old one, then name the new board the name you want.
Sure, but maybe it's just some bug in my installation.
Quote from: Harvest on May 01, 2008, 04:44:23 AMHmm I'm having a strange problem. The maintenance tasks do not seem to work. I renamed some of my boards, but the links are rewritten wit the old names example : When You go here (http://forum.sevenstring.pl/index.php) the Offtopic has a forum.sevenstring.pl/pierdoly-rozne/ link instead of /offtopic/.
I tried running the maintenance tasks a few times, truncated the pretty_url_cache.
Nothing seems to help. The new rows that are created in pretty_urls_cache are still wrong, and outdated.
Regards
Yes well that's really by design. URL's shouldn't change. If you post up the two pretty_board_ settings I can show you how to add a new board URL.
Quote from: Hot Rides on May 01, 2008, 06:59:30 AMThat was it.
I spoke w/ my host and they made a change and I was able to change it 777. but it still wasnt working. So I ran the Maintence program inside pretty url screen and now it all work!
Love the mod, great work dannii
Good to hear!
Quote from: spiros on May 01, 2008, 10:03:36 AM
Quote from: Dannii on April 29, 2008, 10:04:29 PM
Hmm there would be a way I'm sure, though I don't know what it is. The issue is that topics have a maximum length of 80 characters. You could increase the size of the column in the database. The code that truncates it is on lines 99, 107 and 127 of PrettyUrls-Filters.php. You could change those lines to do something more complicated... maybe using a regex.
I made the necessary changes in smf db and core files (see here (http://www.simplemachines.org/community/index.php?topic=36080.0)) and the length works fine in subject field (without altering URL length). However, when I increased the limits in PrettyUrls-Filters.php to 255, then when clicking on the topic, it would remain on board index and then would display blank page, even on home page. When checking on db, I saw that the message was not entered. To fix the board problem, I had to delete the board.
No database errors? So long topics wern't added to pretty_topic_urls?
Quote from: ccbtimewiz on May 01, 2008, 12:33:19 PMBest course of action is to move all the topics out of the board into a new one. So, make a new board, move the topics into them, delete the old one, then name the new board the name you want.
That is one solution, though I wouldn't say it's the best.
Quote from: bjraines on May 01, 2008, 01:07:51 PMWhenever I try to install this I get a test failure error on Sources/QueryString.php
What other mods do you have?
Quote from: bjraines on May 01, 2008, 01:07:51 PMWhenever I try to install this I get a test failure error on Sources/QueryString.php
What other mods do you have?
[/quote]
None that should affect that file. I think it may do to a modification to that file you make to get the apache SEF URLs working. I am going to try that to day and if it doesn't work I will let you know
Another question though, how well does your Pretty URLs handle duplicate message titles
Ahh well if you manually edited QueryString.php it wouldn't work.
Duplicate titles get suffixed with the topic ID.
I'm having a strange problem with this mod, it installs successfully but for some reason it's displaying the IP address in links for boards, threads and posts instead of the domain name. Any ideas?
I should mention that it shows the domain name in the url's correctly for the menu items (help, search, profile, etc)
Check what the value of the pretty_root_url setting is.
looks like changing that did the trick thanks!
Hello, how do I disable the Pretty Urls mod inside the mysql database?
if you do a search within your database for "pretty" you'll see 7 results within the smf_settings table. find the one called "pretty_enable_filters". it should say "on". change it to "off".
i have a question tho. my board urls look like this:
http://mftmforum.com//announcements/
note the double forward-slash after mftmforum.com. is there a way to fix that, perhaps by editing a mysql value? i have no problem with that. when pretty urls are disabled, i dont have any double forward-slashes in my url, so i dont suspect it to be an SMF problem.
edit: nvm i fixed it. i had to go into mysql and edit the "pretty_root_url" value. it was set to "http://mftmforum.com/" when it should've been set to "http://mftmforum.com" (without the trailing forward-slash).
I fixed the problem with querystrings.php
Is there any way to exclude more characters in the URL? I do not want "!"'s to appear in my URLs
Also has anyone noticed any performance issues with large forums?
great work Dannii.
Remember to add the number of the page:
Example:
Random ideas page 2
http://dev.eldacar.com/smf/pretty-urls-discussion/random-ideas/15/
Random ideas page 3
http://dev.eldacar.com/smf/pretty-urls-discussion/random-ideas/30/
Sorry i have so many questions, this is a wonderful component and runs so smooth.
My comments may be a more general SMF issue than your component but since it deals with SEF URLs , I thought I would start here.
1) different urls linking to the same content,
for instance,
the main topic url is very clean , it is the title of the topic
everyone after that has the message id appended to it, however each of these link to the same page
also the recent topics at the bottom of the index page links to these url but with the added "topic seen"
so these are three different links that all link to the same page, a list of messages,
2) When one of my moderators changes a URL , it doesn't update the SEF URL, even if I click maintainence.
Look at this URL.
http://www.mychemistrytutor.com/forums/high-school-chemistry/another-problem/
you can clearly see that it does not match the topic title. this is because a moderator changed it to a more descriptive title. is there a cache somewhere that the maintenance does not take care of.
Thanks!
there is a mysql table called "smf_pretty_urls_cache". you can delete all the rows tha are in there (DONT DELETE THE TABLE ITSELF), then run the pretty urls maintenance and server mainenance again.
cool thanks, whats the sql command to delete just the rows....
this could be a useful button for the component
QuoteHello, how do I disable the Pretty Urls mod inside the mysql database?
See: http://code.google.com/p/prettyurls/wiki/TroubleShooting
QuoteIs there any way to exclude more characters in the URL? I do not want "!"'s to appear in my URLs
Delete that row from the array in Subs-PrettyUrls.php (though that will only remove them for new topics/boards. If you want to remove them from all you'll have to completely uninstall the mod.)
Quote1) different urls linking to the same content,
for instance,
the main topic url is very clean , it is the title of the topic
everyone after that has the message id appended to it, however each of these link to the same page
also the recent topics at the bottom of the index page links to these url but with the added "topic seen"
so these are three different links that all link to the same page, a list of messages,
This mod doesn't change the way topics are organised like that. People have made other suggestions elsewhere to reduce those complexities.
Quote2) When one of my moderators changes a URL , it doesn't update the SEF URL, even if I click maintainence.
Look at this URL.
http://www.mychemistrytutor.com/forums/high-school-chemistry/another-problem/
you can clearly see that it does not match the topic title. this is because a moderator changed it to a more descriptive title. is there a cache somewhere that the maintenance does not take care of.
This is by design cause Cool URIs don't change (http://www.w3.org/Provider/Style/URI). Though in the distant future I'll add some mod functions to change URLs.
Great.
Thanks for the reply!
Yeah I know Cool URIs dont change but some times they have too
Write now the pretty URL that is relevant to the topic draws more traffic than any 404 takes away.
I think a feature that clears the URL cache or lets you reset the URLs (especially if you could cron ) would be useful.
Again thanks for the mod.
It is one of the smoothest I have ever seen.
I'm not sure whether this is a PrettyURLs bug or something in my implementation, but I recently noticed that if I disable cookies for my website, the URLs are not updated. This is because PHPSESSID kind of breaks the whole thing (on my server at least).
I fixed it by doing this in QueryString.php:
if ($use_cache)
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^&;]+|s(es)?c=[^;]+~', '~\"~', '~;+|=;~', '~\?;|\?&~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
else
$match = preg_replace(array('~^[\"\']~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
The only change is the addition of "|\?&" at one point. It does work now, so I won't question my change too much ;)
I was told by Tiny Portal that I need to ask forhelp with the author of this mod. My problem is that my block fck editor will not show any html . The block where you write your hyml code shows my live hime page. Here is a screen cap to show what I mean. I really need to have an html editor obviously so this is a pretty big deal for me to get fixed. By the way, This mod rocks and I can't tell you how happy I am to have it!1 . i am now using 1.15 but the problem started with smf version 1.14.
Thanks for your attention to this matter as it is quite urgent .
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.frogn.com%2FPhotos%2Ftrouble%2520with%2520fck%2520editor.jpg&hash=0f1fb0b9d39a6ff5bd70a17666296a45368ba829)
Hmm, I use SMF 1.1.5 with TinyPortal 1.05
And when I want to install this mod, I got this error:
Execute Modification ./Sources/QueryString.php Test Failed
Execute Modification ./Sources/Display.php Test Failed
Should I use TP 0.9x version? Or do I need any extensions?
Thanks for your help.
QuoteIt is one of the smoothest I have ever seen.
And it's nowhere near smooth enough yet ;)
Nao... hmm strange...
Niagra, I'm not sure what your problem is. (Other than the content of your website...)
kwilyan, do you have any other mods installed? Though I admit I haven't yet tested it with 1.1.5.
I found a bug in sigtatures. I tried to add this to my signature but my profile summary and my topics were covered with white page. Then i disabled url rewriting and it worked.
[url=WwW.TamForum.Gen.Tr][size=20pt]WwW.TamForum.Gen.Tr[/size][/url]
Great mod.
For those who are having problems and using another .htaccess on the root/parent folder that uses mod rewrite, you can add this to your forum's .htaccess so they can co-exist:
RewriteBase /forum
When I go to a thread it is logging everyone out.
Quote from: Dannii on May 06, 2008, 11:52:07 AM
QuoteIt is one of the smoothest I have ever seen.
And it's nowhere near smooth enough yet ;)
Nao... hmm strange...
Niagra, I'm not sure what your problem is. (Other than the content of your website...)
kwilyan, do you have any other mods installed? Though I admit I haven't yet tested it with 1.1.5.
So sorry that you don't like my website content. You must be in that 1%. lol Anywho, my problem again is that TP admin said your mod is causing the problem with me not being able to use the html editor box in my admin section. The reason I cant use it is because as you can clearly see the live home page is appearing in the text box and won't let me place html code there or edit any. The home page should not be showing there. I need to use that box for daily operations so its pretty critical that we figure this out. Thanks
I noticed there was actually a problem with the tiny portal download manager module,
I fixed this by changing the BasePath to point to the correct FCKEditor.
The reason is once you're inside the hxxp://x.com/tpmod/?sa=upload (then the FCKEditor cannot be found inside the /tpmod/ directory. I'm not sure if this should be corrected by PrettyURLs or TinyPortal. Let me know as I will post on their forum next if this is not PrettyURL's problem.
I tried it in my local server with freshly installed SMF. (w/o any mods)
Strangely, it works if I don't use TP and I got that error after installing TP.
Any solution?
QuoteI found a bug in sigtatures. I tried to add this to my signature but my profile summary and my topics were covered with white page. Then i disabled url rewriting and it worked.
What was the bug?
QuoteGreat mod.
For those who are having problems and using another .htaccess on the root/parent folder that uses mod rewrite, you can add this to your forum's .htaccess so they can co-exist:
RewriteBase /forum
Thanks for the tip!
QuoteWhen I go to a thread it is logging everyone out.
Can you provide more info? Anything in the error logs?
To those with TP errors, can you copy the relevant section of the HTML for me. I need to see both the original HTML and what Pretty URLs changes it to.
Quote from: Dannii on May 07, 2008, 11:00:04 AMQuoteWhen I go to a thread it is logging everyone out.
Can you provide more info? Anything in the error logs?
I cannot get it to upload correctly. Querysting and Subs will not execute. This is probably my problem. I tried editing those files myself. I believe that part of the edits in these files have Tinyportal edits in them. I attached them.
Theme: Musiconica
My mods:
1. SMF Sitemap 1.2.1
2. Reg Bar 1.0.2
3. SMF Links 1.6.7
4. TinyPortal 1.052
5. Users Online Today Mod 1.4.0
6. Googlebot & Spiders Mod 2.0.3
7. Ad Managment 2.3
Ok, my problems were just that tar.bz files don't upload correctly so I just had to make it into a .zip.
THANKS so much for this mod, its really great.
For some reason I was thinking I would have to relink everything and that the old links wouldn't work, very happy they do
So, thanks ;)
I added this code :
[url=WwW.TamForum.Gen.Tr][size=20pt]WwW.TamForum.Gen.Tr[/size][/url]
to my signature and my topics and my profile summary covered blank white page. I disabled Pretty mode and it works normally. I think Pretty mode caused.
Installed successfully on 1.1.5....Good Job.....
hey what tables does this mod affect?
i currently changed domain names and i went and did a search and replace in the two data tables pretty urls creates but it still kept some links around from the old domain... like the "last posts" from the board index all had the old domain in place. i even "dropped" the two tables ( idont know if that deletes them) and reinstalled it but it still had my old domain in the pretty urls
besides the two tables it adds, does it store anything else in other tables? how can i completely uninstall it?
Can Pretty URLs and sitemap mod work together?
I read some of the old posts but honestly do not know where to start editing the sitemap files, any direction would be most helpful.
0.8.3 is released with support for 2.0 Beta 3.1 Public.
QuoteI cannot get it to upload correctly. Querysting and Subs will not execute. This is probably my problem. I tried editing those files myself. I believe that part of the edits in these files have Tinyportal edits in them. I attached them.
Can you please check your apache error log, it should tell you what lines the problem is with.
QuoteOk, my problems were just that tar.bz files don't upload correctly so I just had to make it into a .zip.
Yay!
Quotehey what tables does this mod affect?
It only adds tables, it doesn't change any others. If you've changed domains, look at the pretty_root_url setting.
QuoteCan Pretty URLs and sitemap mod work together?
I read some of the old posts but honestly do not know where to start editing the sitemap files, any direction would be most helpful.
They should be able to, though there are many sitemap mods. Which one are you refering to, and what's the actual problem?
Quote from: Dannii on May 08, 2008, 11:41:46 PM
Quotehey what tables does this mod affect?
It only adds tables, it doesn't change any others. If you've changed domains, look at the pretty_root_url setting.
where can i find that?
It's in the smf_settings table.
Is there any way to force updating of forum names?
For example, I had Forum 1, then installed this mod.
Then a while later, I renamed it to Forum 2, but the name in the link has not changed. This is very confusing for my members and it would be good to change!
At the moment only by manually editing the database settings, though adding an admin interface is one of my top priorities. Post up the two pretty_board_ settings if you're not sure how to edit them yourself.
Quote from: Dannii on May 09, 2008, 06:31:34 AM
It's in the smf_settings table.
cool! just did a search and replace and i think we're all good now! :D
I added pretty urls and it made my site disappear so i deleted the db table for ppretty ursl as instructed and still nothing, just a blank site. any suggestions? im freaking out so no flames please, just solutions.
I have to ask... What about the file prettyurls-base_20080509.tar.gz on this link (http://code.google.com/p/prettyurls/downloads/list)?
Is it worth install this one or keep the old one?
prettyurls-base_0_8_2.tar is the file i d/ul to my site through the pckg mngr. and what do you mean
Quote from: softcore on May 09, 2008, 04:31:18 PMIs it worth install this one or keep the old one?
i deleted the tables, how could i install this without the installer? i know nothing of this, im sorry. thank you for the reply.
Quote from: Dannii on May 09, 2008, 11:41:09 AM
At the moment only by manually editing the database settings, though adding an admin interface is one of my top priorities. Post up the two pretty_board_ settings if you're not sure how to edit them yourself.
Sorry, I'm not quite sure what you mean?
QuoteI added pretty urls and it made my site disappear so i deleted the db table for ppretty ursl as instructed and still nothing, just a blank site. any suggestions? im freaking out so no flames please, just solutions.
Deleting the table was a mistake... Follow the instructions here to disable the mod: http://code.google.com/p/prettyurls/wiki/TroubleShooting
After you've done that we can see about the possibility of fixing it.
QuoteI have to ask... What about the file prettyurls-base_20080509.tar.gz on this link (http://code.google.com/p/prettyurls/downloads/list)?
Is it worth install this one or keep the old one?
At the moment 0.8.3 is probably fine for you. There aren't many big changes. The most important one is that it will now try to convert from more encodings.
QuoteSorry, I'm not quite sure what you mean?
Okay... copy the pretty_board_urls and pretty_board_lookup here for me, and then tell me which boards you want changed.
Quote from: Dannii on May 09, 2008, 10:21:27 PM
QuoteI added pretty urls and it made my site disappear so i deleted the db table for ppretty ursl as instructed and still nothing, just a blank site. any suggestions? im freaking out so no flames please, just solutions.
Deleting the table was a mistake... Follow the instructions here to disable the mod: http://code.google.com/p/prettyurls/wiki/TroubleShooting
After you've done that we can see about the possibility of fixing it.
ok your a genius, it worked! so what now?
Check SMF and Apache's error logs.
If for some unfortunate reason you want to uninstall Pretty URLs, I just made a new package that will redirect the pretty URLs to the normal SMF URLs so that indexed pages won't get broken.
Get it here: http://prettyurls.googlecode.com/svn/trunk/reverter/
im afraid to touch anythign, my site is up, i will break it ?
You won't break anything by checking the error logs!
Quote from: Dannii on May 09, 2008, 10:21:27 PM
QuoteI added pretty urls and it made my site disappear so i deleted the db table for ppretty ursl as instructed and still nothing, just a blank site. any suggestions? im freaking out so no flames please, just solutions.
Deleting the table was a mistake... Follow the instructions here to disable the mod: http://code.google.com/p/prettyurls/wiki/TroubleShooting
After you've done that we can see about the possibility of fixing it.
QuoteI have to ask... What about the file prettyurls-base_20080509.tar.gz on this link (http://code.google.com/p/prettyurls/downloads/list)?
Is it worth install this one or keep the old one?
At the moment 0.8.3 is probably fine for you. There aren't many big changes. The most important one is that it will now try to convert from more encodings.
QuoteSorry, I'm not quite sure what you mean?
Okay... copy the pretty_board_urls and pretty_board_lookup here for me, and then tell me which boards you want changed.
In the database? All there are that is present are:
smf2_pretty_urls_cache
smf2_pretty_topic_urls
No those settings will be in the settings table, smf2_settings in your case.
I have this mod working, but my site has the Forum wrapped in a shell and it needs to stay in the same sub directory, not step down multiple imaginary sub directories liek this mod does with the URL. I have implimented a rewrite on my main "brochure" pages ahat seperates each variable with a ~ instead of a / or a , like so many people use. I can of course find how to change this in the .htaccess file, but I am wondering about having to modify anything in other places.
I searched on here to see if anyone else had asked.
Thanks,
Fury
Quote from: Dannii on May 10, 2008, 12:56:36 AM
You won't break anything by checking the error logs!
and what am i looking for on the error logs? they are huge. but i can tell you this, on links ive made rto articles the link gives this error
Warning: main(C:\Inetpub\wwwroot\clan-less.com\wwwroot\smf/Settings.php) [function.main]: failed to open stream: No such file or directory in C:\Inetpub\wwwroot\clan-less.com\wwwroot\smf\index.php on line 51
and this is what i get when i go to the Pretty URLs in admin (which i expect there to be an error since i deleted the tables)
Fatal error: main() [function.require]: Failed opening required 'C:\Inetpub\wwwroot\clan-less.com\wwwroot\smf/Settings.php' (include_path='.;c:\php4.4\includes') in C:\Inetpub\wwwroot\clan-less.com\wwwroot\smf\index.php on line 51
Fatal error: admin() [function.require]: Failed opening required 'C:\Inetpub\wwwroot\clan-less.com\wwwroot\Sources/PrettyUrls.php' (include_path='.;c:\php4.4\includes') in C:\Inetpub\wwwroot\clan-less.com\wwwroot\Sources\Admin.php on line 133
my question is this, if these errors are a result of my deletion of the tables then should i just reinstall teh mod?
thanks so much for your help.
You should try reinstalling the mod I suppose... yes. You are running Apache and not IIS?
Quote from: Fury Sting on May 10, 2008, 01:48:22 PM
I have this mod working, but my site has the Forum wrapped in a shell and it needs to stay in the same sub directory, not step down multiple imaginary sub directories liek this mod does with the URL. I have implimented a rewrite on my main "brochure" pages ahat seperates each variable with a ~ instead of a / or a , like so many people use. I can of course find how to change this in the .htaccess file, but I am wondering about having to modify anything in other places.
I searched on here to see if anyone else had asked.
Thanks,
Fury
Hmmm, strange.
Well the filter functions construct the new URLs so you could edit those. If you use ~ or , as a delimiter, remove it from the list of allowed characters in Subs-PrettyUrls.php too.
Cool thanks, I will look around in there.
Yeah I know my issues are strange. <G> I built the main skin of the site to dynamically build the nav bar and other things based on the last sub directory in the URL. Of course this was before I thought about anything like having to tweak it all for search engines.
Thanks!
Fury
in my website, this mod is affecting pages outside of the forum
for example, my forum is in a public_html/forum/ folder
and then i added a public_html/freeagency/ folder
so when i access my the free agency page like this:
http://myurl.com/freeagency/index.php
it works fine
but if i try to access like this:
http://myurl.com/freeagency/
it just goes to my frontpage and the url turns into this:
http://myurl.com/freeagency/?pretty;board=freeagency.0
how do i fix that?
That can't happen unless you have a .htaccess file in the root directory?
Quote from: Dannii on May 10, 2008, 05:13:26 PM
You should try reinstalling the mod I suppose... yes. You are running Apache and not IIS?
apache is linux? no i run windows so i guess i run IIS. i just read that i cannot use this mod because the server does not have .htaccess which is on apache and i have windows server so, anything else i can do to fix my screw up? thanks again for the responses.
I just checked, and you are indeed running IIS. Are you on shared hosting? If so there's nothing you can do unfortunately (except uninstall the mod). If you own the server you could install Apache (it does run on windows) or try something like this: http://www.micronovae.com/ModRewrite/ModRewrite.html
Quote from: Dannii on May 11, 2008, 12:36:59 AM
I just checked, and you are indeed running IIS. Are you on shared hosting?
yes its shared so i think i will have to live without it. so it wont shut me down again if i uninstall it? that script i ran before to fix it wont be undone?
No once you uninstall it everything should still be fine.
Quote from: Dannii on May 10, 2008, 10:53:21 PM
That can't happen unless you have a .htaccess file in the root directory?
i think i did do a htaccess file once, im not sure though, it just kind of disappeared though, i couldnt see it on my cpanel after i put it there. how can i remove it?
Quote from: Dannii on May 10, 2008, 09:49:23 AM
No those settings will be in the settings table, smf2_settings in your case.
Easier said than done for me haha.
I'm in the table, what do I do? I tried BROWSE, but that didn't get me anything.
Quote from: 2pac on May 11, 2008, 05:16:25 AMi think i did do a htaccess file once, im not sure though, it just kind of disappeared though, i couldnt see it on my cpanel after i put it there. how can i remove it?
Try a proper FTP client.
Quote from: L.G.S on May 11, 2008, 06:52:17 AMEasier said than done for me haha.
I'm in the table, what do I do? I tried BROWSE, but that didn't get me anything.
Is it showing any of the settings? They'll probably be on the last page...
Quotea:95:{i:7;s:13:"announcements";i:197;s:8:"feedback";i:196;s:12:"intermission";i:200;s:13:"high-velocity";i:201;s:8:"join-up!";i:202;s:7:"results";i:203;s:11:"ppv-results";i:204;s:11:"raw-results";i:205;s:17:"smackdown-results";i:207;s:19:"roleplay-and-promos";i:125;s:21:"high-velocity-archive";i:131;s:10:"promo-area";i:132;s:10:"g-m-office";i:129;s:12:"sign-up-b129";i:176;s:26:"sign-up-created-superstars";i:144;s:8:"slashdot";i:73;s:12:"r-i-vote-off";i:188;s:20:"previous-tournaments";i:157;s:25:"r-i-vote-off-tournament-1";i:181;s:25:"r-i-vote-off-tournament-2";i:189;s:25:"r-i-vote-off-tournament-3";i:12;s:10:"staff-chat";i:158;s:17:"member-discussion";i:211;s:7:"deleted";i:175;s:13:"deleted-posts";i:208;s:15:"salvaged-topics";i:209;s:14:"salvaged-board";i:13;s:17:"the-chillout-zone";i:18;s:14:"spam-and-games";i:148;s:13:"member-photos";i:222;s:11:"board-games";i:15;s:12:"newbie-intro";i:115;s:13:"entertainment";i:218;s:11:"latest-news";i:221;s:15:"emcees-rap-news";i:116;s:12:"other-sports";i:219;s:16:"latest-news-b219";i:22;s:10:"technology";i:217;s:16:"latest-news-b217";i:19;s:14:"jokes-and-gags";i:220;s:12:"oddly-enough";i:38;s:8:"graphics";i:39;s:11:"gif-gallery";i:37;s:11:"gfx-request";i:74;s:13:"gfx-resources";i:69;s:14:"gfx-tournament";i:163;s:25:"previous-tournaments-b163";i:160;s:20:"r-i-gfx-tournament-4";i:161;s:7:"sign-up";i:121;s:20:"r-i-gfx-tournament-3";i:122;s:12:"sign-up-b122";i:71;s:20:"r-i-gfx-tournament-2";i:108;s:20:"r-i-gfx-tournament-1";i:70;s:15:"sign-up-in-here";i:40;s:11:"gfx-battles";i:51;s:16:"request-a-battle";i:23;s:8:"archives";i:212;s:16:"fantasy-football";i:213;s:27:"league-fixtures-and-results";i:214;s:31:"league-cup-fixtures-and-results";i:215;s:33:"player-profiles-and-stats-keeping";i:216;s:15:"transfer-market";i:52;s:15:"v-i-p-downloads";i:34;s:17:"request-downloads";i:32;s:31:"movie-video-and-music-downloads";i:66;s:5:"games";i:64;s:12:"applications";i:242;s:12:"site-updates";i:227;s:9:"rss-feeds";i:245;s:14:"private-forums";i:229;s:8:"football";i:225;s:5:"m-m-t";i:226;s:12:"video-gaming";i:246;s:19:"smackdown-vs-raw-08";i:233;s:9:"streaming";i:235;s:14:"the-board-room";i:236;s:15:"fixture-results";i:240;s:11:"last-season";i:241;s:18:"league-cup-results";i:234;s:15:"transfer-market";i:238;s:21:"scouting-plus-rumours";i:239;s:12:"sign-up-b239";i:237;s:11:"information";i:247;s:18:"user-feeback-polls";i:248;s:9:"wrestling";i:249;s:26:"ppv-results-and-discussion";i:250;s:16:"fantasy-football";i:251;s:33:"font-colorredguest-forumsfont";i:252;s:11:"guest-forum";i:253;s:12:"other-brands";i:254;s:15:"news-and-events";i:255;s:12:"music-videos";i:256;s:21:"gfx-tournament-5-2008";i:257;s:16:"gfx-tournament-5";i:258;s:11:"file-upload";}
I went through every page, and I didn't hava a lookup setting?
And now I know where to change the boards, is it just as simple as changing the names of them and saving?
There must be a lookup one... it should be near the other.
You can just edit them, however if you do remember to change the numbers too (the string lengths must be correct). You need to change the lookup array as well though, and I'd recommend adding the new URLs to the lookup array rather than replacing the old ones so that old links will work.
If you can find them... I'll do it I suppose.
Okay thanks for the help.
One other thing: I think this mod kinda killed one topic on my forum lol. It sounds stupid know, but I posted a link into a topic and now it always gives a blank page. I checked the error log, and it relates to Pretty URLS?
Database Error: Duplicate entry 'http://www.RUTHLESSINTENT.com' for key 1
INSERT INTO smf_pretty_urls_cache(url_id, replacement)
VALUES
('`Amarkasread;sa=topic;t=158718;topic=77924.0', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/?action=markasread;sa=topic;t=158718'),
('http://www.RUTHLESSINTENT.com', 'http://www.RUTHLESSINTENT.com'),
('`Areporttm;topic=77924.5;msg=158621', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/5/?action=reporttm;msg=158621'),
('`Atrackip;searchip=86.131.60.75', 'http://www.ruthlessintent.com/board/trackip/?searchip=86.131.60.75'),
('`Aeditpoll;add;topic=77924.0', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/?action=editpoll;add'),
('`Amovetopic;topic=77924.0', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/?action=movetopic'),
('`Aremovetopic2;topic=77924.0', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/?action=removetopic2'),
('`Alock;topic=77924.0', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/?action=lock'),
('`Asticky;topic=77924.0', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/?action=sticky'),
('`Amergetopics;board=22.0;from=77924', 'http://www.ruthlessintent.com/board/technology/?action=mergetopics;from=77924')
Apply Filter: Only show the errors from this file
File: /home/public_html/board/Sources/QueryString.php
Line: 609
I've installed that mod without any problems, but links are still the same as previous.
Mod works, because if I type manually url like this:
http://forum.mortal-clan.eu/smieszne
anything is ok.
But why there are links in board index like this:
http://forum.mortal-clan.eu/index.php?board=2.0
?????
Mod is not changing links ;/
Quote from: D Ogi on May 11, 2008, 11:01:35 AM
I've installed that mod without any problems, but links are still the same as previous.
Mod works, because if I type manually url like this:
http://forum.mortal-clan.eu/smieszne
anything is ok.
But why there are links in board index like this:
http://forum.mortal-clan.eu/index.php?board=2.0
?????
Mod is not changing links ;/
After serveral tries it works ;)
QuoteOne other thing: I think this mod kinda killed one topic on my forum lol. It sounds stupid know, but I posted a link into a topic and now it always gives a blank page. I checked the error log, and it relates to Pretty URLS?
Hmm I've actually had that error on my forum too, I don't know why or how. Does it still happen if you empty the pretty_urls_cache table? You're running SMF2... I think the bug only happens in SMF2. Weird.
QuoteAfter serveral tries it works ;)
Okay good to hear you got it working :)
LGS, okay this one's easy. In QueryString.php:
$smcFunc['db_insert']('',
'{db_prefix}pretty_urls_cache',
$smcFunc['db_insert']('replace',
'{db_prefix}pretty_urls_cache',
Thanks. What was the problem?
The problem was that it wasn't replacing like the 1.1 version does. Why it needs to replace at all I'm not sure...
Actually LGS, replace that whole query with this:
// Cache these URLs in the database
if (count($cache_data) != 0)
$smcFunc['db_insert']('replace',
'{db_prefix}pretty_urls_cache',
array('url_id' => 'string', 'replacement' => 'string'),
$cache_data,
array('url_id'));
I've (finally!) added an interface to edit board URLs. You simply go to the manage boards page, and click on the links. If you have any problems or suggestions, please do post here.
Get it in the latest snapshot on the downloads page (http://code.google.com/p/prettyurls/downloads/list).
(LGS, you may want to try that)
humm sweet, works like charm :)
Thanks for modification. But it has a error. Profile links must convert from private characters. This problem solved on topic links. It most solve profile links ;)
I got a lot of install errors for the new update!
* 1. Execute Modification ./index.php Test failed
1. Replace ./index.php Test failed
* 2. Execute Modification ./SSI.php Test successful
1. Replace ./SSI.php Test successful
* 3. Execute Modification ./Sources/Admin.php Test successful
1. Add After ./Sources/Admin.php Test successful
* 4. Execute Modification ./Sources/ManageErrors.php Test successful
1. Replace ./Sources/ManageErrors.php Test successful
* 5. Execute Modification ./Sources/ManageSettings.php Test failed
1. Replace ./Sources/ManageSettings.php Test failed
* 6. Execute Modification ./Sources/News.php Test successful
1. Replace ./Sources/News.php Test successful
* 7. Execute Modification ./Sources/QueryString.php Test failed
1. Replace ./Sources/QueryString.php Test failed
2. Replace ./Sources/QueryString.php Test failed
* 8. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
2. Replace ./Sources/Subs.php Test failed
* 9. Execute Modification ./Sources/Display.php Test successful
1. Replace ./Sources/Display.php Test successful
* 10. Execute Modification ./Sources/ManageBoards.php Test successful
1. Add After ./Sources/ManageBoards.php Test successful
2. Add Before ./Sources/ManageBoards.php Test successful
* 11. Execute Modification ./Sources/MessageIndex.php Test successful
1. Replace ./Sources/MessageIndex.php Test successful
* 12. Execute Modification ./Sources/QueryString.php Test failed
1. Replace ./Sources/QueryString.php Test failed
2. Replace ./Sources/QueryString.php Test failed
3. Replace ./Sources/QueryString.php Test failed
* 13. Execute Modification ./Sources/Subs-Boards.php Test failed
1. Replace ./Sources/Subs-Boards.php Test failed
2. Replace ./Sources/Subs-Boards.php Test successful
3. Replace ./Sources/Subs-Boards.php Test successful
* 14. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
1. Replace ./Themes/default/ManageBoards.template.php Test successful
2. Replace ./Themes/default/ManageBoards.template.php Test successful
3. Replace ./Themes/default/ManageBoards.template.php Test successful
4. Replace ./Themes/default/ManageBoards.template.php Test successful
5. Replace ./Themes/default/ManageBoards.template.php Test successful
6. Add Before ./Themes/default/ManageBoards.template.php Test successful
* 15. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
1. Add Before ./Themes/default/languages/Modifications.english.php Test successful
16. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
17. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
18. Extract File ./Sources/PrettyUrls.php
19. Extract File ./Sources/PrettyUrls-Filters.php
20. Extract File ./Sources/Subs-PrettyUrls.php
21. Extract File ./Themes/default/PrettyUrls.template.php
22. Extract Tree ./Themes/default/pretty
23. Extract File ./Themes/default/languages/PrettyUrls.english.php
24. Extract File ./Themes/default/languages/PrettyUrls.french.php
25. Adapt Database SMF2-0/install.php
Hi Dannii,
Is there a changelog and update procedure for new version?
Quote from: GliG on May 12, 2008, 03:10:52 PMThanks for modification. But it has a error. Profile links must convert from private characters. This problem solved on topic links. It most solve profile links ;)
Sorry, but I don't know what you mean.
Quote from: L.G.S on May 12, 2008, 03:15:30 PMI got a lot of install errors for the new update!
You had uninstalled the old version first, hadn't you?
Quote from: spiros on May 12, 2008, 03:27:26 PMIs there a changelog and update procedure for new version?
http://prettyurls.googlecode.com/svn/trunk/CHANGES
Update procedure: uninstall any old versions, install new version.
QuoteIs there a changelog and update procedure for new version?
http://prettyurls.googlecode.com/svn/trunk/CHANGES
Ok thanks! Although I only see version 0.8.1 and not 0.8.3.
Ahh, 0.8's changelog is here: http://prettyurls.googlecode.com/svn/branches/0.8/CHANGES
Hi, just downloaded and installed this mod with package manager on smf 1.1.5.
Re-writes the urls fine I guess as it wont let me do anything. cant log in, cant view topic, no nada.
care to look
http://www.schizoaffectivelife.com
everything gets re-written to
http://www.schizoaffectivelife.com/forum/
Please tell me what I might need to fix it or delete it?
No not smart enought to backup files, looked like this mod was well used and tested, just now note BETA.
sorry if I didnt search enough, tried a few terms I felt relevant with no results.
Thanks
It looks fine to me... which pages exactly are broken?
Quote from: Dannii on May 12, 2008, 07:27:26 PM
Quote from: GliG on May 12, 2008, 03:10:52 PMThanks for modification. But it has a error. Profile links must convert from private characters. This problem solved on topic links. It most solve profile links ;)
Sorry, but I don't know what you mean.
Quote from: L.G.S on May 12, 2008, 03:15:30 PMI got a lot of install errors for the new update!
You had uninstalled the old version first, hadn't you?
Quote from: spiros on May 12, 2008, 03:27:26 PMIs there a changelog and update procedure for new version?
http://prettyurls.googlecode.com/svn/trunk/CHANGES
Update procedure: uninstall any old versions, install new version.
Damn, I thought it was an update haha.
We're getting close to the stage where I will start offering update packages! :)
Quote from: Dannii on May 13, 2008, 12:17:05 PM
It looks fine to me... which pages exactly are broken?
Dope! I just got home, read your reply and checked myself, yes, it does now apear to be working for me also with no changes. Before I even ctrl f5 and everything and couldnt get anyting to work for me, everything I clicked on , admin, boards etc all went to domain/forum/
I guess that proves it, I am nutz!
I want to uninstall 0.8.2 and I get this:
QuoteThis package cannot be uninstalled, because there is no uninstaller!
Please contact the mod author for more information.
So now I am contacting you. The package is online, I can see it in the packages list and I see "Uninstall" in the Installed packages list.
Hi there,
I've been using Pretty URL's for a while now with no problems, then all of a sudden tonight as I was adding a new topic, my board started acting weird. My forum index, the last post I made and the board in which I posted it ALL show a blank page now.
I read somewhere in this forum that it was because of Pretty URL and can be fixed by uninstalling the mod. Before doing that I wanted to ask if anyone else has this problem and if there is a fix for this.
Thanks
Quote from: Jelle Mees on May 13, 2008, 05:40:37 PM
I want to uninstall 0.8.2 and I get this:
QuoteThis package cannot be uninstalled, because there is no uninstaller!
Please contact the mod author for more information.
So now I am contacting you. The package is online, I can see it in the packages list and I see "Uninstall" in the Installed packages list.
Which version of SMF are you using?
Quote from: bianca007 on May 14, 2008, 03:41:38 AMI've been using Pretty URL's for a while now with no problems, then all of a sudden tonight as I was adding a new topic, my board started acting weird. My forum index, the last post I made and the board in which I posted it ALL show a blank page now.
I read somewhere in this forum that it was because of Pretty URL and can be fixed by uninstalling the mod. Before doing that I wanted to ask if anyone else has this problem and if there is a fix for this.
Disable the mod as explained here (http://code.google.com/p/prettyurls/wiki/TroubleShooting) and then check the forum error log.
Quote from: Dannii on May 14, 2008, 10:50:24 AM
Quote from: Jelle Mees on May 13, 2008, 05:40:37 PM
I want to uninstall 0.8.2 and I get this:
QuoteThis package cannot be uninstalled, because there is no uninstaller!
Please contact the mod author for more information.
So now I am contacting you. The package is online, I can see it in the packages list and I see "Uninstall" in the Installed packages list.
Which version of SMF are you using?
Latest public beta.
Quote from: Dannii on May 14, 2008, 10:50:24 AM
Quote from: bianca007 on May 14, 2008, 03:41:38 AMI've been using Pretty URL's for a while now with no problems, then all of a sudden tonight as I was adding a new topic, my board started acting weird. My forum index, the last post I made and the board in which I posted it ALL show a blank page now.
I read somewhere in this forum that it was because of Pretty URL and can be fixed by uninstalling the mod. Before doing that I wanted to ask if anyone else has this problem and if there is a fix for this.
Disable the mod as explained here (http://code.google.com/p/prettyurls/wiki/TroubleShooting) and then check the forum error log.
Are you sure thats the link because th page discusses 404 errors and broken links. I am getting blank pages, not 404 error. Does it still apply?
Quote from: Jelle Mees on May 14, 2008, 11:54:50 AMLatest public beta.
You were running Beta 3 when you installed it but have since upgraded to Beta 3.1? You can use the emulate box (click on the advanced link at the bottom) to emulate Beta 3 and uninstall the mod.
Quote from: bianca007 on May 14, 2008, 12:27:52 PMAre you sure thats the link because th page discusses 404 errors and broken links. I am getting blank pages, not 404 error. Does it still apply?
I will (some day) rewrite the page. The method there just disables the mod.
Quote from: Dannii on May 14, 2008, 09:56:23 PM
Quote from: Jelle Mees on May 14, 2008, 11:54:50 AMLatest public beta.
You were running Beta 3 when you installed it but have since upgraded to Beta 3.1? You can use the emulate box (click on the advanced link at the bottom) to emulate Beta 3 and uninstall the mod.
Ok, the emulation works, but now I get a "Test failed" in Sources/Admin.php.
Find:
Quote'theme' => array(
'label' => $txt['theme_admin'],
'file' => 'Themes.php',
'function' => 'ThemesMain',
'custom_url' => $scripturl . '?action=admin;area=theme;sa=admin',
'icon' => 'themes.gif',
'subsections' => array(
'admin' => array($txt['themeadmin_admin_title']),
'list' => array($txt['themeadmin_list_title']),
'reset' => array($txt['themeadmin_reset_title']),
'edit' => array($txt['themeadmin_edit_title']),
),
),
Replace:
Quote'theme' => array(
'label' => $txt['theme_admin'],
'file' => 'Themes.php',
'function' => 'ThemesMain',
'custom_url' => $scripturl . '?action=admin;area=theme;sa=admin',
'icon' => 'themes.gif',
'subsections' => array(
'admin' => array($txt['themeadmin_admin_title']),
'list' => array($txt['themeadmin_list_title']),
'reset' => array($txt['themeadmin_reset_title']),
'edit' => array($txt['themeadmin_edit_title']),
),
),
Don't see any difference, so is it ok to uninstall anyway?
It should be fine... that part of the file will be easy to fix if something goes wrong.
Quote from: Dannii on May 15, 2008, 01:58:46 AM
It should be fine... that part of the file will be easy to fix if something goes wrong.
I uninstalled it and something did go rong.
I now see this on the admin CP:
QuoteNotice: Undefined index: pretty_admin_menu in /mounted-storage/home95c/sub006/sc26341-IINL/www/FlemishArmySite/Trackmania/Sources/Admin.php on line 244
Post up Admin.php
Done :)
Replace with this one. (The problem was you install the ad mod.)
Quote from: Dannii on May 15, 2008, 09:37:21 AM
Replace with this one. (The problem was you install the ad mod.)
Thank you very much for fixing it.
I have been running Pretty URLs since a while now and I recently upgraded SMF to the 1.1.5 version. I am not sure if it's related to this upgrade but I have a few topics that can't be access. When you use the search function, the links are correct but from the board they are located in they are missing the board and title words in their URL path. I tried to rename the topics, move them, create a new board and place them in it but nothing works.
Any idea how to fix this?
The topics with invalid paths can be seen here:
http://www.mustangv8.com/forum/parts-for-sale-or-trade/0/
They are the 3 oldest ones at the bottom.
If you run maintenance does it fix the problem?
No, I tried to run everything in maintenance but it didn't fix anything.
Anything in the error log?
Btw, I meant Pretty URLs maintenance, not the SMF maintenance.
No, there is nothing in the error log related to this. I checked everything in the admin section but I didn't find anything related to the maintenance of Pretty URLs. I have Pretty URLs - Base version 0.7 and noticed the last one was 0.8.3. Should I upgrade to the new one?
Yes you should upgrade.
That fixed the problem :D I guess we shouldn't trust the package manager when it says we have the latest version of the packages. Thanks for your fast support.
Excellent.
Yeah, that only means that it's the latest version of the packages you've downloaded to the server, not that it's the latest available package.
Now I have a new problem.
The URL's don't have the same path since the upgrade and it will create double content pages. The URL's changed from
Quote/forum/parts-for-sale-or-trade/0/
to
Quote/forum/parts-for-sale-or-trade/
and the old one isn't doing any redirection.
Is there any fix to that?
Hmm, although I doubt it will make a problem for duplicate content you can fix it by making these changes to PrettyUrls-Filters.php:
$start = $url['start'] != '0' || is_numeric($topicData[$url['topic_id']]['pretty_url']) ? $url['start'] . '/' : '';
$start .= '/';
$start = $start != '0' ? $start . '/' : '';
$start .= '/';
That fixed the problems with the board URLs but not the topic ones. They were missing the 0 and were like the following: /board-name/word1-word2////////////////
I better like the new URLs but I don't think it would be good to have them in double. If there was a way to have a redirection made like you have with index.php?topic=ID to the new one, maybe it would be better.
I have all kind of links posted in topics sending to other topics and links from other websites sending to boards or topics so I think the duplicate pages would be a problem.
Ahh how silly of me. Try this:
$start = $url['start'] . '/';
i hav the .htaccess but not sure hav it in all directory or not.
but bro problem is that i already install it and active. now can not browse my forum accept the index page. any help.
http://yesterdayforum.com
Nixon
Follow the instructions here, and then we can see what can be done to get it working.
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: Dannii on May 17, 2008, 07:11:41 AM
Follow the instructions here, and then we can see what can be done to get it working.
http://code.google.com/p/prettyurls/wiki/TroubleShooting
showing this error
QuoteFatal error: Call to undefined function phprequire_once() in /home/yesterd/public_html/p.php on line 1
wht i can do now?
Quote from: Dannii on May 16, 2008, 10:07:59 PM
Ahh how silly of me. Try this:
$start = $url['start'] . '/';
That worked great. Thank you very much Danni.
Quote from: nnixxonn on May 17, 2008, 07:51:06 AMshowing this error
QuoteFatal error: Call to undefined function phprequire_once() in /home/yesterd/public_html/p.php on line 1
wht i can do now?
What the...
Are you sure you copied it correctly? It's not missing any line breaks?
i have this mod installed but when i use google and search:
mundo-se
only appear the first result nothing more what i can do?
It doesn't look like it's installed...
How long has the forum been there? Google can take a while to index your forum.
I uploaded the mod and and installed it, but now I can't get to anything. It really changed the urls. Admin is no longer found on my server. So I guess a clean install of smf is in order.
Oh well three weeks of work shot to ####. LOL!!
Never mind how silly of me I just went to a backup before i made the mod active and uninstalled it.
badbo
No need to start over... you can easily disable the mod. Did you find out what the problem was? Does your server support mod_rewrite and .htaccess files?
Quote from: Dannii on May 21, 2008, 05:39:20 AM
No need to start over... you can easily disable the mod. Did you find out what the problem was? Does your server support mod_rewrite and .htaccess files?
It probably does not support it because it uses no .htaccess files. I had to do a manual backup to get it done and then I uninstall the mod. I am sure it would have been a great mod. I will see what else I can find. Thanks Bo
New snapshot that should work with TinyPortal 1.0.5 on the download site.
Hi,
Sorry for my bad English.
Thank you for your work Dannii
Quote from: punjabilokvirsa on May 06, 2008, 10:36:17 PM
I noticed there was actually a problem with the tiny portal download manager module,
I fixed this by changing the BasePath to point to the correct FCKEditor.
The reason is once you're inside the hxxp://x.com/tpmod/?sa=upload (then the FCKEditor cannot be found inside the /tpmod/ directory. I'm not sure if this should be corrected by PrettyURLs or TinyPortal. Let me know as I will post on their forum next if this is not PrettyURL's problem.
I have exactly the same problem.
I don't know how to change the BasePath to point to the correct FCKEditor?
I have deactivated Rewrite Auction Urls and Fckeditor work but it's not a good solution.
SMF 1.1.5. TP 0.9.8, Pretty URLs - Base 0.8.3
Upgrade to TinyPortal 1.0.5, and then download and use the latest snapshot.
Ok,
But I prefer waiting a new TP release, I have tried it and it's not enough stable for using in production (my opinion).
Thank you Dannii.
Very nice good job
Hey Dannii,
I've just posted a question in the charter member area. Since it's probably related to PrettyURLs, could you have a quick look at it? Maybe you'll find out you once had the same issue... I don't know. Thanks!
http://www.simplemachines.org/community/index.php?topic=241099.0
Thanks mate.... i'm running the board here
www.project-bb.org
& its working fine. But i want to ask a question. Will it affect my forum's SEO in google in i rollback it.
means its forwarding me from
http://www.project-bb.org/index.php/topic,622.0.html
to this
http://www.project-bb.org/forum-rules/new-user-registration-tutorial/
Will in future it forward me from this
http://www.project-bb.org/forum-rules/new-user-registration-tutorial/
to this
http://www.project-bb.org/index.php/topic,622.0.html
Also, It it possible to have the following syntax,
http://www.project-bb.org/forum-rules/new-user-registration-tutorial.html
instead of
http://www.project-bb.org/forum-rules/new-user-registration-tutorial/
Thanks in advance. waiting for your reply. btw.... The MOD is awesome!!!
Danni, modification has profile url error. Example profile url;
xxxx.com/profiles/ĞÜÇÖ.html
It must convert to;
xxxx.com/profiles/GUCO.html
You must use strtr replace on profile links :)
GliG> What if someone else registers under the name GUCO later, eh..?
No problem. If this error not solve the links will give errors.
Example; SEO4SMF using this function.
This operation same with topic links ;)
Quote from: Nao 尚 on May 25, 2008, 08:34:26 AM
Hey Dannii,
I've just posted a question in the charter member area. Since it's probably related to PrettyURLs, could you have a quick look at it? Maybe you'll find out you once had the same issue... I don't know. Thanks!
http://www.simplemachines.org/community/index.php?topic=241099.0
I don't actually have access to the charter boards. Send me a PM if you want.
Quote from: SwapsRulez on May 25, 2008, 09:08:44 AM
Thanks mate.... i'm running the board here
www.project-bb.org
& its working fine. But i want to ask a question. Will it affect my forum's SEO in google in i rollback it.
means its forwarding me from
http://www.project-bb.org/index.php/topic,622.0.html
to this
http://www.project-bb.org/forum-rules/new-user-registration-tutorial/
Will in future it forward me from this
http://www.project-bb.org/forum-rules/new-user-registration-tutorial/
to this
http://www.project-bb.org/index.php/topic,622.0.html
Also, It it possible to have the following syntax,
http://www.project-bb.org/forum-rules/new-user-registration-tutorial.html
instead of
http://www.project-bb.org/forum-rules/new-user-registration-tutorial/
Thanks in advance. waiting for your reply. btw.... The MOD is awesome!!!
It will redirect from the old style URLs to the new.
As to changing the style to add .html... well aside from the fact that it would no long be a cool URL (http://www.w3.org/Provider/Style/URI), it is possible. At the moment you'd have to edit the callback functions manually. After 1.0 is released I plan to make it even easier. But, just keep them without the extension!
Quote from: GliG on May 25, 2008, 04:55:10 PM
Danni, modification has profile url error. Example profile url;
xxxx.com/profiles/ĞÜÇÖ.html
It must convert to;
xxxx.com/profiles/GUCO.html
You must use strtr replace on profile links :)
Why not use the real profile name?
Quote from: Dannii on May 25, 2008, 08:46:08 PM
It will redirect from the old style URLs to the new.
As to changing the style to add .html... well aside from the fact that it would no long be a cool URL (http://www.w3.org/Provider/Style/URI), it is possible. At the moment you'd have to edit the callback functions manually. After 1.0 is released I plan to make it even easier. But, just keep them without the extension!
Thanks mate... That cool URL thing is soo much cool. & now i got that you've done it purposefully :)
Quote from: Dannii on May 23, 2008, 09:25:03 PM
Upgrade to TinyPortal 1.0.5, and then download and use the latest snapshot.
Hi Danii, I tried a fresh install with only SMF 1.1.5 and TPTPv1.05beta1 . Problème was the same with fckeditor: The requested document was not found on this server.
The path is wrong: http://xxxx.org/forumtest/
tpadmin/FCKeditor
I have solved by moving Fckeditor in a tpdamin folder. But it'strange, isnt'it? :)
(sorry for my poor English)
Hmm, I thought that was fixed. Are you able to move it back so I can fix it? I need two things, the HTML of a page with the editor on and the action filter on, and the same back but with the filter turned off. When I installed TP on my forum it seemed to work fine.
[edit] Ahh, I see it's now working. I'll track down the problem myself!
Okay, it's fairly simple, make this change to TPortalAdmin.php:
<script language="JavaScript" type="text/javascript">
function FullEditor(BodyName)
{
var FCKContent = new FCKeditor(BodyName) ;
FCKContent.BasePath = "FCKeditor/" ;
FCKContent.ToolbarSet = "Default"
FCKContent.Height = "400";
FCKContent.Width = "100%";
FCKContent.ReplaceTextarea() ;
}
function SmallerEditor(BodyName)
{
var FCKComment = new FCKeditor(BodyName) ;
FCKComment.BasePath = "FCKeditor/" ;
FCKComment.ToolbarSet = "Default"
FCKComment.Height = "400";
FCKComment.Width = "100%";
FCKComment.ReplaceTextarea() ;
}
</script>';
<script language="JavaScript" type="text/javascript">
function FullEditor(BodyName)
{
var FCKContent = new FCKeditor(BodyName) ;
FCKContent.BasePath = "' . $boardurl . '/FCKeditor/" ;
FCKContent.ToolbarSet = "Default"
FCKContent.Height = "400";
FCKContent.Width = "100%";
FCKContent.ReplaceTextarea() ;
}
function SmallerEditor(BodyName)
{
var FCKComment = new FCKeditor(BodyName) ;
FCKComment.BasePath = "' . $boardurl . '/FCKeditor/" ;
FCKComment.ToolbarSet = "Default"
FCKComment.Height = "400";
FCKComment.Width = "100%";
FCKComment.ReplaceTextarea() ;
}
</script>';
Ok, Danii, thank you. I will do this change imediatly and give my Feedback.
Danii, it seems to be ok with your modification for loading Fckeditor, great!
But I have found a sedond wrong path with the Download Manager now. Add catégorie and Item Descriptions can't load Fckeditor: The requested document was not found on this server.
Is that a bug with my host or a général bug?
Second think, just If someone have the same problème: After going back my first try (Fckeditor moved), Fckeditor was ok. but not after I do maintenance Task. (not sure you understand me)
The problem is with TinyPortal, it's using relative paths which no longer work when the URLs are changed. Make the same change to TPmodules.php.
Ok, thank you very much Danii, it's a good new for me. With this problèm solved, I will perhaps using the new TP version.
And now I be able to activate the url rewriting with Actions
Thanks a lot!!
Hi all,
I updated some of the topic names with simpler ones , ran the maintenance scripts but the URL remained the same.
Any ideas?
thanks,
neotan
Quote from: neotan on May 27, 2008, 12:03:28 AM
Hi all,
I updated some of the topic names with simpler ones , ran the maintenance scripts but the URL remained the same.
Any ideas?
thanks,
neotan
Some info on my env: SMF 1.1.5, Pretty URLs 0.8.3
I changed 'ICE' to 'Car Entertainment' : but it's still showing up as 'ice'
http://goshopjapan.com/forum/ice/
though I ran the Pretty URL maintenance script.
any ideas?
Quote from: neotan on May 27, 2008, 12:03:28 AM
Hi all,
I updated some of the topic names with simpler ones , ran the maintenance scripts but the URL remained the same.
Any ideas?
thanks,
neotan
Download and use the latest snapshot. It now has an interface to change board URLs.
Quote from: Dannii on May 27, 2008, 05:13:51 AM
Quote from: neotan on May 27, 2008, 12:03:28 AM
Hi all,
I updated some of the topic names with simpler ones , ran the maintenance scripts but the URL remained the same.
Any ideas?
thanks,
neotan
Download and use the latest snapshot. It now has an interface to change board URLs.
You mean there's a newer version than 0.8.3?
Quote from: neotan on May 27, 2008, 09:43:49 AM
Quote from: Dannii on May 27, 2008, 05:13:51 AM
Quote from: neotan on May 27, 2008, 12:03:28 AM
Hi all,
I updated some of the topic names with simpler ones , ran the maintenance scripts but the URL remained the same.
Any ideas?
thanks,
neotan
Download and use the latest snapshot. It now has an interface to change board URLs.
You mean there's a newer version than 0.8.3?
found it .. thanks
prettyurls-20080523.tar.gz Snapshot 2008-May-23 Snapshot
Quote from: neotan on May 27, 2008, 09:47:33 AM
Quote from: neotan on May 27, 2008, 09:43:49 AM
Quote from: Dannii on May 27, 2008, 05:13:51 AM
Quote from: neotan on May 27, 2008, 12:03:28 AM
Hi all,
I updated some of the topic names with simpler ones , ran the maintenance scripts but the URL remained the same.
Any ideas?
thanks,
neotan
Download and use the latest snapshot. It now has an interface to change board URLs.
You mean there's a newer version than 0.8.3?
found it .. thanks
prettyurls-20080523.tar.gz Snapshot 2008-May-23 Snapshot
Tried to install it via Package manager and got a bunch of errors. Uninstalled 0.8.3 and installed only this snapshot but I do not see the page to edit the topic/board URLs.
Thanks
It's a snapshot of what's in the SVN, but it's not really a fully released "version".
When you go to list the boards in the admin page, there's no options?
Quote from: Dannii on May 27, 2008, 10:14:51 AM
It's a snapshot of what's in the SVN, but it's not really a fully released "version".
When you go to list the boards in the admin page, there's no options?
I don't see any option. Do you have a screen shot?
Quote from: neotan on May 27, 2008, 10:16:56 AM
Quote from: Dannii on May 27, 2008, 10:14:51 AM
It's a snapshot of what's in the SVN, but it's not really a fully released "version".
When you go to list the boards in the admin page, there's no options?
I don't see any option. Do you have a screen shot?
oh.. i am using a custom theme. Do you have instructions to change the files? thanks
Sure.
I really doubt you'll need to change anything for a custom theme. Custom themes shouldn't come with admin templates.
Quote from: Dannii on May 27, 2008, 10:23:29 AM
Sure.
I really doubt you'll need to change anything for a custom theme. Custom themes shouldn't come with admin templates.
Quote from: Dannii on May 27, 2008, 10:23:29 AM
Sure.
I really doubt you'll need to change anything for a custom theme. Custom themes shouldn't come with admin templates.
Thanks ... it got refreshed eventually. BTW, do you intend to have a link to modify topic names?
again, great mod !!!
Eventually, though it will be something for after I release 1.0.
Dannii ; Will you have a look at Turkish character problem at version 1.0 ? i just want to remind you..
Which Turkish character problem?
Quote from: Alpay on March 29, 2008, 07:36:09 AM
Thaks for your answers Dannii . I'm glad to *Eren's writings and he has more experience than me. I use ISO 8859-9 and i don't know it is for accented letters.
i tried with admin panel on Localhost but i coult not.And olsu there are some other programs but i did'nt try them. it is too hard for us to pass utf-8 so i asked can we solve this problem with modification. If there is a solution when will you publish this by new version
i can convert the database to UTF-8 maybe working too much about this with Smf team but you know Turkish smf comes after smf english and lots of users don't have so much experience so the solution of problem shuld be with modification.
thanks
Or .. http://www.simplemachines.org/community/index.php?topic=146969.msg1489869#msg1489869
thanks for the mod!
2 questions:
1. is it possible to remove board names from the URL's? could you please outline the steps (the alternative htaccess lines and the few code modifications required)?
2. for an odd reason at least on my board, the action url's in the Admin area, specifically for Packages and Smileys, don't work (i get referred back to the home page). all other admin url's work. any idea???
thanks a lot for your help!
gigi
Database errors after upgrade to SMF 2.0
Today i see some database errors in my logs.
Type of error: Database
http://www.stanaca.com/index.php?pretty;board=discussions;topic=how-to-post-stories-in-this-website.new
Database Error: Duplicate entry '`T1175.msg2817' for key 1
INSERT INTO smf_pretty_urls_cache(url_id, replacement)
VALUES
('`T1175.0;prev_next=prev', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?prev_next=prev'),
('`T1175.0;prev_next=next', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?prev_next=next'),
('`T1175.0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/'),
('`Apost;topic=1175.0;num_replies=0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=post;num_replies=0'),
('`Anotify;sa=on;topic=1175.0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=notify;sa=on'),
('`Amarkasread;sa=topic;t=2819;topic=1175.0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=markasread;sa=topic;t=2819'),
('`Aemailuser;sa=sendtopic;topic=1175.0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=emailuser;sa=sendtopic'),
('`Aprintpage;topic=1175.0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=printpage'),
('`Aquickmod2;topic=1175.0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=quickmod2'),
('`T1175.msg2817', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/msg2817/'),
('`Apost;quote=2817;topic=1175.0;num_replies=0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=post;quote=2817;num_replies=0'),
('`Apost;msg=2817;topic=1175.0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=post;msg=2817'),
('`Adeletemsg;topic=1175.0;msg=2817', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=deletemsg;msg=2817'),
('`Asplittopics;topic=1175.0;at=2817', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=splittopics;at=2817'),
('`Areporttm;topic=1175.0;msg=2817', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=reporttm;msg=2817'),
('`Aeditpoll;add;topic=1175.0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=editpoll;add'),
('`Amovetopic;topic=1175.0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=movetopic'),
('`Aremovetopic2;topic=1175.0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=removetopic2'),
('`Alock;topic=1175.0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=lock'),
('`Asticky;topic=1175.0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=sticky'),
('`Amergetopics;board=22.0;from=1175', 'http://www.stanaca.com/discussions/?action=mergetopics;from=1175'),
('`Apost;calendar;msg=2817;topic=1175.0', 'http://www.stanaca.com/discussions/how-to-post-stories-in-this-website/?action=post;calendar;msg=2817')
File: /home/content/k/a/s/kashifccc/html/Sources/QueryString.php
Line: 609
This is the error to solve. i have more errors but this look dangerous.
seems related to the prettyurls mod
other errors in my log
to many errors like this
Type of error: Undefined
http://www.stanaca.com/index.php?pretty;action=login2&sa=check
8: Undefined index: member
File: /home/content/k/a/s/kashifccc/html/Sources/LogInOut.php
Line: 123
to many errors like this
Type of error: General
http://www.stanaca.com/index.php?pretty;board=stories.0&action=post2;start=0
2: strpos(): Offset not contained in string.
File: /home/content/k/a/s/kashifccc/html/Sources/Subs-Editor.php
Line: 958
Quote from: Alpay on May 27, 2008, 12:42:41 PMOr .. http://www.simplemachines.org/community/index.php?topic=146969.msg1489869#msg1489869
Those should work already.
Quote from: gigitravels on May 27, 2008, 07:31:55 PM
thanks for the mod!
2 questions:
1. is it possible to remove board names from the URL's? could you please outline the steps (the alternative htaccess lines and the few code modifications required)?
It's possible yes. You'd have to edit the rewrite rules and the callback functions. You'd have to tell me exactly what you want to change them to if you want me to tell you the steps...
Quote2. for an odd reason at least on my board, the action url's in the Admin area, specifically for Packages and Smileys, don't work (i get referred back to the home page). all other admin url's work. any idea???
thanks a lot for your help!
gigi
I don't know why that would be. Anything in the error log? Have you run maintenance?
stanaca, try running the latest snapshot. That should fix the duplicate entries error. The login error has been reported before but I haven't yet been able to reproduce it, I'll look into it further. As for the last error, do you know that it's related to this mod?
Dannii, did you read my latest PM?
I'm sending you another one... With my final views on the $_GET issue.
Yeah, and it still makes no sense sorry.
I clicked apply is there any else place to activate it ?
You have to enable the filters in the new admin page it adds.
Quote from: Dannii on May 28, 2008, 05:01:03 AM
You have to enable the filters in the new admin page it adds.
I couldnt find it can you please describe where can I find it or give a link to it like this , http://www.website.com/index.php?action=featuresettings or a screenshot ?
Thanks a lot !
It's at index.php?action=admin;area=pretty
yes now it is working very fine ! but why couldnt I see it , where is it actually ?
It should be in the side menu. Are you using a language other than English? You might have to copy the language strings from modifications.english.php.
Quote from: gigitravels on May 27, 2008, 07:31:55 PM
1. is it possible to remove board names from the URL's? could you please outline the steps (the alternative htaccess lines and the few code modifications required)?
It's possible yes. You'd have to edit the rewrite rules and the callback functions. You'd have to tell me exactly what you want to change them to if you want me to tell you the steps...
all i need is URL's without any board names. so the URL would look like:
www.forum.com/topic/
and that's it. i assume i would need to remove 'board=$1;' from htaccess, comment '$topicData[$url['topic_id']]['pretty_board']' in PrettyUrls-Filters.php, and i might be able to figure out the rest but i'd really have you shortly outline the steps so i won't screw something up there :)
Quote from: gigitravels on May 27, 2008, 07:31:55 PM
2. for an odd reason at least on my board, the action url's in the Admin area, specifically for Packages and Smileys, don't work (i get referred back to the home page). all other admin url's work. any idea???
I don't know why that would be. Anything in the error log? Have you run maintenance?
nothing in php/mysql/apache/smf error logs, and i ran maintenance. but i'd let this be for now, the 'boardless url's' are more important..
thanks a lot for your help!
gigi
I'm using SFM Sitemap but I've noticed the urls haven't changed in the Sitemap. Would this be a problem? I want the search engines to index the new urls. I've tried uninstalling SMF Sitemap but get an error when I do.
Thanks
Quote from: Dannii on May 28, 2008, 07:18:29 AM
It should be in the side menu. Are you using a language other than English? You might have to copy the language strings from modifications.english.php.
yes the language was Turkish for my users , thanks a lot !
Quoteall i need is URL's without any board names. so the URL would look like:
www.forum.com/topic/
If you do that, how will it tell boards and topics apart?
QuoteI'm using SFM Sitemap but I've noticed the urls haven't changed in the Sitemap. Would this be a problem? I want the search engines to index the new urls. I've tried uninstalling SMF Sitemap but get an error when I do.
Look back over the past pages (or search) people have asked about this before.
QuoteLook back over the past pages (or search) people have asked about this before.
I tried searching. Now, if I search for SMF Sitemap and Pretty URLs, all I get is my post above. If I leave out "SMF" all I get are posts of people listing what mods they have installed. Oh well. I guess I've got more reading to do.
I like your mod.
Here's what I did. I backed everything up, uninstalled SMF Sitemap despite the warning. It went without a hitch. I reinstalled it and the sitemap is now using the Pretty URLs!
How very strange! Good to hear it's working now though.
Quote from: Dannii on May 29, 2008, 01:22:57 AM
How very strange! Good to hear it's working now though.
It may have been a bug in the previous version of SMF Sitemap. It didn't seem to add anymore links after I initially installed it. When I went to download the mod, it said that it's now compatible with Pretty URLs. Now, my sitemap xml page is about four times as long and uses the Pretty URLs. If anyone else has the problem I had, I recommend updating to the latest version of SMF Sitemap.
Another possibility is that Pretty URLs have to be installed before SMF sitemap in order for the sitemap to use them. I don't know for sure, I'm just a noob. Maybe my original mod was just corrupt.
Quote from: Dannii on May 28, 2008, 06:44:54 PM
Quoteall i need is URL's without any board names. so the URL would look like:
www.forum.com/topic/
If you do that, how will it tell boards and topics apart?
I will use the sef mod for topics only (not boards).
Quote from: gigitravels on May 29, 2008, 05:22:07 PM
Quote from: Dannii on May 28, 2008, 06:44:54 PM
Quoteall i need is URL's without any board names. so the URL would look like:
www.forum.com/topic/
If you do that, how will it tell boards and topics apart?
I will use the sef mod for topics only (not boards).
I know there is some debate about this but having the key words of the board name in your URLs might help in SEO.
I'm curious about how the extentionless URLs work. Are they invisible or is there really no extension at all?
I've tried typing in index.html, index.htm, index.php and nothing worked. How do browsers know what type of page it is if there really is no extension? What type of page IS it anyway?
I know it's pretty trivial but I'm dying to know how that works. I really do appreciate your work.
I've seen people say, in reference to SMF itself things like "this is just unacceptable!" Hey, beggars can't be choosers! Go and buy some software, THEN you might have the right to say such things.
I feel like you go unappreciated sometimes. So, I'd really like to say a big THANK YOU for all your time and work
QuoteI will use the sef mod for topics only (not boards).
Ahhhh, okay then. Give me a little bit of time and I'll get back to you.
QuoteI'm curious about how the extentionless URLs work. Are they invisible or is there really no extension at all?
There is none.
QuoteI've tried typing in index.html, index.htm, index.php and nothing worked. How do browsers know what type of page it is if there really is no extension? What type of page IS it anyway?
Browsers don't care at all about the extension, they determine what to do with the page based on it's MIME type. PHP is still set to send text/html so the browsers are happy.
Hey, i have just found a problem in my forum and with this particular mod
Teh thing is that I installed this mod in my forum, but there was one particular forum wich I couldn't enter cause it would load a blank page. The forum's name was "Métodos de Pago" (my forum is in spanis :)) and i thought... "maybe if i change the forum's name will do". Did so, but didn't work.
Then i created another forum to move la the topics in "metodos de pago" to it, but i had the same problem (After moving the topics but not before) so i thoung "it must be a topic"
So i started moving one thread by one and enablig/disabling pretty urls after that (took a while xD) till i found the problematic topic and that topic's title was "Duda sobre Western Union".
I thought it was really weird, so i tried using that Title in your url's test forum...
AS you can see, i crahsed down your forum :S
It wasn't my intention to do so, i thought it was an odd thing particularly happening in my forum, thats why i tried in yours.
I really, really really apologize.
Once again i say it wasn't my intention.
Ahhh. hmm. I thought I had fixed that bug.
BTW i am using . Pretty URLs - Base 0.8.3
Which is the bug?
A word in particular?
Yeah union isn't an allowed word. Well it can be, I've just done something weird with the query.
In PrettyUrls-Filters.php
$add_new[] = '(' . $row['ID_TOPIC'] . ', "' . addslashes($pretty_text) . '")';
$add_new[] = '(' . $row['ID_TOPIC'] . ', \'' . addslashes($pretty_text) . '\')';
Hi i have installed this mod and it works fine, except for thanks mod and topX:
This is the error with thanks mod (by Meo):
GET http://darkwolf.altervista.org/forum/annunci-staff/bannati-ed-eliminati-account-con-email-'momentanee'/msg966/index.php?action=thanks&arg=966
document.getElementById(update[0]) has no properties
meo_handleResponse()#msg966 (line 161)
meo_sndReq("thanks", "966")#msg966 (line 151)
onclick(click clientX=0, clientY=0)#msg966 (line 1)
[Break on this error] var update2 = update[0] + 'b';
For topX instead problem is "standard" url.
You can see or test here: http://darkwolf.altervista.org/forum/index.php (http://darkwolf.altervista.org/forum/index.php)
Thanks in advance, DarkWolf :)
Can you explain the problem with the thanks mod more please?
The problem with the top 10 mod is that it's using relative rather than absolute URLs.
Quote from: Dannii on June 01, 2008, 11:02:42 AM
Can you explain the problem with the thanks mod more please?
The problem with the top 10 mod is that it's using relative rather than absolute URLs.
I have maked a test account can i send you username and password via pm?
-
Edit: ok now topX is perfect :D
-
Riedit: i have see now that don't work SMF Ajax Registration Feedback :(
-
Ok Ajax Registration Feedback fixed :P
-
Last edit now all is ok 8)
I have a few questions...
1) How do you have it so only the topic title is used rather than have a unique ID at the end of the title? Does this cause problems if a user created a topic with the same name?
2) Will the URLs on my SSI news page be good as well?
3) Is there any conversation tool to help with moving from SMF4SEO to this mod?
Dark-Wolf, good to hear it's all fix now, even though I don't know what you were fixing! :P
You're still having problems with the thanks mod?
mark, it stores the URLs for each topic in the database. If there is a duplication the topic ID is added to the end. Anything using SSI.php should be fine. You can get a conversion package at http://prettyurls.googlecode.com/svn/trunk/extras/
Quote from: Dannii on June 01, 2008, 11:02:42 AM
The problem with the top 10 mod is that it's using relative rather than absolute URLs.
After this i have fix all relative url with absolute.
For ajax registation (AjaxRegFed.js), topX and ThanksMod.
After this all is perfect ;)
Quote from: Dannii on June 01, 2008, 12:08:58 PM
Dark-Wolf, good to hear it's all fix now, even though I don't know what you were fixing! :P
You're still having problems with the thanks mod?
No, no problem now :)
Thanks Dannii, sorry for these additional questions.
Please can you tell me what to do as I didn't find the readme very helpful.
1) In which order do I do the process? Remove SMF4SEO first or install your patch then remove? That sort of thing I'm not sure about.
2) Also, am I meant to download each file in /extras/ and then zip it and upload like a separate mod?
3) What does the patch actually do?
Dark-Wolf, awesome, that makes it easy for me!
Perhaps you could recommend to the mod authors that they change to absolute URLs.
mark:
1. Uninstall SMF4SEO, install the base Pretty URLs (you'll need to get the latest snapshot) and then the extras package.
2. Yes, make your own .zip from all the files. I'll make packages for it myself once I'm ready to release 0.9.
3. It permanently redirects board and topic URLs from the SMF4SEO style to the pretty URLs style.
Thanks Dannii :)
Ok good :)
PS thank you very much for this great mod 8)
NB: I had to insert RewriteBase /forum in my htaccess to work
(maybe you can insert this advice in your first post)
-
Edit:
I have found another problem, now with arcade.
Test: http://darkwolf.altervista.org/forum/arcade/?sa=play;game=8
(click on "Send Score" and see url in the bottom bar of your browser)
i have test to fix but i don't have found any relative url (all absolute?)
how i can fix?
Hmm, it's possible the relative URL is internal to the flash. Do other games work?
Hey guys, I am usig SMF 1.1.5 & I downloaded pretty urls' mod ver 0.8.3.
Every thing is fine but one board is missing, it just displays a blank page, but the topics inside are readable if you know their link.
I need your help
Anything in the error log?
Quote from: Dannii on June 01, 2008, 08:43:01 AM
In PrettyUrls-Filters.php
$add_new[] = '(' . $row['ID_TOPIC'] . ', "' . addslashes($pretty_text) . '")';
$add_new[] = '(' . $row['ID_TOPIC'] . ', \'' . addslashes($pretty_text) . '\')';
Thanks Dannii, this fixed it
Quote from: Dannii on June 01, 2008, 11:14:50 PM
Hmm, it's possible the relative URL is internal to the flash. Do other games work?
Yes Maybe.
Can i fix via htaccess?
Or can i disable pretty url for arcade?
You probably could fix it, but it would take effort. Talk to the arcade's creator about using absolute URLs.
Ok thanks.
You can disable pretty URLs for the arcade by making this change to PrettyUrls-Filters.php:
if (in_array($matches[2], $context['pretty']['action_array']))
if (in_array($matches[2], $context['pretty']['action_array']) && $matches[2] != 'arcade')
Quote from: Dannii on June 02, 2008, 07:10:34 AM
You can disable pretty URLs for the arcade by making this change to PrettyUrls-Filters.php:
if (in_array($matches[2], $context['pretty']['action_array']))
if (in_array($matches[2], $context['pretty']['action_array']) && $matches[2] != 'arcade')
Sorry but not work.
I have make your change, ctrl+f5 for cache but all remain the same.
Run maintenance.
Dannii could You share with us how is the pretty_action_array addressed, I mean how to add some custom actions to the rewrite module ?
Regards
A new questions: i have test to rename a topic (with a very long title): http://darkwolf.altervista.org/forum/modemrouter/g604t-con-rtech_mod_3-6-0d_20070613_2-30-(20070613233015)-domanda-di-rete/
but url not update (also after maintenance).
How i can fix?
I have SMF Arcade, is this mod working with that OK?
Quote from: mark7144 on June 02, 2008, 09:56:33 AM
I have SMF Arcade, is this mod working with that OK?
see previos page.
Now in my site work fine (but actually don't rewrite Arcade Url)
-
@Dannii:
I have edit my
Subs-PrettyUrls.php like this:
// Build the new .htaccess file
$htaccess = '# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: ' . date('F j, Y, G:i') . '
# Favicon
AddType image/x-icon .ico
RewriteEngine on
RewriteBase /forum
# Rules for: sitemap
RewriteRule ^smf_sitemap.php$ /forum/index.php?action=sitemap
RewriteRule ^smf_sitemap.xml$ /forum/index.php?action=sitemap;xml';
ksort($rewrites);
.......
In your opinion is correct or is best to use [L,QSA] rules?
Quote from: Harvest on June 02, 2008, 09:29:18 AMDannii could You share with us how is the pretty_action_array addressed, I mean how to add some custom actions to the rewrite module ?
The array is updated whenever you run maintenance.
Quote from: Dark-Wolf on June 02, 2008, 09:46:33 AMA new questions: i have test to rename a topic (with a very long title): http://darkwolf.altervista.org/forum/modemrouter/g604t-con-rtech_mod_3-6-0d_20070613_2-30-(20070613233015)-domanda-di-rete/
but url not update (also after maintenance).
How i can fix?
Well they're not supposed to change, but if you really want to you can change it in the pretty_topic_urls table. Remember to drop the cache table/run maintenance too.
Quote from: mark7144 on June 02, 2008, 09:56:33 AMI have SMF Arcade, is this mod working with that OK?
Yes it should be fine. I think there was just a problem with one of the games Dark-Wolf had.
Quote from: Dannii on June 02, 2008, 10:15:47 AM
Quote from: Harvest on June 02, 2008, 09:29:18 AMDannii could You share with us how is the pretty_action_array addressed, I mean how to add some custom actions to the rewrite module ?
The array is updated whenever you run maintenance.
oh stupid me. I ran maintenance and somehow oversaw the change ;) Sorry :/
Quote from: Dannii on June 02, 2008, 10:15:47 AM
Quote from: Dark-Wolf on June 02, 2008, 09:46:33 AMA new questions: i have test to rename a topic (with a very long title): http://darkwolf.altervista.org/forum/modemrouter/g604t-con-rtech_mod_3-6-0d_20070613_2-30-(20070613233015)-domanda-di-rete/
but url not update (also after maintenance).
How i can fix?
Well they're not supposed to change, but if you really want to you can change it in the pretty_topic_urls table. Remember to drop the cache table/run maintenance too.
mmm... ok.
The problem is that same user send really strange topic title and is very good if i can change.
Maybe you can provide to fix for future release?
PS i have edit precedent post, please can you see?
-
PPS: arcade problem is for all games, test this for example (make to click and lost) and test redirect.
http://darkwolf.altervista.org/forum/arcade/?sa=play;game=44 (http://darkwolf.altervista.org/forum/arcade/?sa=play;game=44)
QuoteIn your opinion is correct or is best to use [L,QSA] rules?
L stands for Last, so it would be a good idea to include it. QSA stands for Query String Append, again it's probably a good idea to include it.
Has the arcade code changed recently? Because I haven't had anyone report issues with it for months.
Quote from: Dannii on June 02, 2008, 10:35:41 AM
QuoteIn your opinion is correct or is best to use [L,QSA] rules?
L stands for Last, so it would be a good idea to include it. QSA stands for Query String Append, again it's probably a good idea to include it.
Ok now i test (in any case now work fine and after any maintenance my htaccess is ok ;))
Quote from: Dannii on June 02, 2008, 10:35:41 AM
Has the arcade code changed recently? Because I haven't had anyone report issues with it for months.
I use release 2.0.13 (last release).
I have test to change all relative url but none work.
Quote from: Dannii on June 02, 2008, 10:35:41 AM
QuoteIn your opinion is correct or is best to use [L,QSA] rules?
L stands for Last, so it would be a good idea to include it. QSA stands for Query String Append, again it's probably a good idea to include it.
I believe it is only needed when your rewrite stuff has a query string by itself.
RewriteRule ^/(.*)$ index.php -> Calling /?test=yes would send back /index.php?test=yes (no QSA needed)
RewriteRule ^/(.*)$ index.php?works=not -> Calling /?test=yes would send back /index.php?works=not
RewriteRule ^/(.*)$ index.php?works=not [QSA] -> Calling /?test=yes would send back /index.php?works=not&test=yes
If I'm not mistaken...
Ok thanks, in any case work fine :)
PS: one questions: this is request url after submit a score in arcade: http://misyte.org/forum/arcade/index.php?action=arcade
maybe we can simply rewrite via htaccess to:
http://misyte.org/forum/index.php?action=arcade ?
QuoteI believe it is only needed when your rewrite stuff has a query string by itself.
Hmmm I thought it was needed in all cases but you could be right. It doesn't really hurt anything to add it though.
Is there a way to make the home button link to only
http://www.yoursite.com/ rather than
http://www.yoursite.com/index.php ?
I've tried a robot.txt with Disallow: /index.php but it blocks my Sitemap. Is there a way around this using a robots.txt command?
Thanks
Quote from: Dannii on June 02, 2008, 09:42:23 PM
QuoteI believe it is only needed when your rewrite stuff has a query string by itself.
Hmmm I thought it was needed in all cases but you could be right. It doesn't really hurt anything to add it though.
I suppose it's only some minor extra work for the CPU.
Also, QSA will append "index.php" to the query string in some cases. Hence some very curious contents in the $_GET variable at one point, but no biggie really.
Raw> I think that's in QueryString.php...
$scripturl = $boardurl . '/index.php';
Just replace it with:
$scripturl = $boardurl;
Thanks Nao!
Quote from: Nao 尚 on June 03, 2008, 03:14:39 AM
Raw> I think that's in QueryString.php...
$scripturl = $boardurl . '/index.php';
Just replace it with:
$scripturl = $boardurl;
Sorry but that didn't work. The home buttons are still /index.php
"Run Maintenance", maybe? :D
(I don't think it'll do the trick, but anyway...)
Quote from: Nao 尚 on June 03, 2008, 03:46:53 AM
"Run Maintenance", maybe? :D
(I don't think it'll do the trick, but anyway...)
No, that didn't work either.
Is there a way I can block search engines from using accessing the /index.php without blocking my Sitemap? The sitemap is the only thing I need to be available to the search engines.
A sitemap is pointless if it's the only thing accessible to search engines.
Check your theme's index.template.php too, maybe the index.php is hardcoded in there.
Quote from: Dannii on June 03, 2008, 04:23:49 AM
A sitemap is pointless if it's the only thing accessible to search engines.
Check your theme's index.template.php too, maybe the index.php is hardcoded in there.
What I meant was the sitemap is the only thing that uses the index.php. The rest of my urls use the extensionless Pretty URLs exept for the index page - the "home" links within the forum.
I'll look for it in the theme's index.template.php too. Thanks
I've installed Pretty URLs on my SMF 2.0 Beta 3 Forum...
All the users, when they login, receive this error:
You were unable to login. Please check your cookie settings.
So they click "back" and they are logged on anyway...
The URL of the error is:
/profile/?pretty;action=login2&sa=check
How can I fix this?
Pheraps the problem is that i changed the forum URL from rockciclopedia.com/forum to forum.rockciclopedia.com and I manually edited the pretty urls table in the database ...
What did you manually change?
Quote from: Dannii on June 03, 2008, 09:13:07 AM
What did you manually change?
With PhpMyAdmin I changed the forum URL (there was a specific entry for the forum url) in smf_pretty_urls_cache.
Before it was rockciclopedia.com/forum now forum.rockciclopedia.com ...
Quote from: Nao 尚 on June 03, 2008, 03:14:39 AM
I think that's in QueryString.php...
$scripturl = $boardurl . '/index.php';
Just replace it with:
$scripturl = $boardurl;
Thanks, i've edit like this:
$scripturl = $boardurl . '/';
now my url is: http://darkwolf.altervista.org/forum/ (http://darkwolf.altervista.org/forum/) :)
QuoteWith PhpMyAdmin I changed the forum URL (there was a specific entry for the forum url) in smf_pretty_urls_cache.
Before it was rockciclopedia.com/forum now forum.rockciclopedia.com ...
Did you change everything else with repair_settings.php first?
can anything be done for none UTF boards with accented titles and board names?
Godaddy doesn't have UTF codepages installed >:(
What encoding are you using? ISO-8859-9?
Yes, the mod works, but only for boards and topics with no accented characters... which is not too many :D
edit: oh and I've the snapshot version up now, same results
Are any of them converted? How about Ğ? Can you show me a link to your forum?
Btw, after upgrading to the snapshot, did you empty the pretty_topic_urls table? If you don't the new algorithms in the database won't be used.
I'm reinstalling now, the codepage of sql seems to be latin1,
and I'll try emptying the table as well.
forum is at: http://www.toyotaclubtr.com/
edit: ok topic titles seem to be fine now, but board names are still not there...
Good to hear :)
You can now enter new board names through the admin panel.
Gigatravels:
Okay firstly upgrade to the latest snapshot. Then disable all the filters.
Make this change to PrettyUrls-Filters.php:
$urls[$url_id]['replacement'] = $modSettings['pretty_root_url'] . '/' . $topicData[$url['topic_id']]['pretty_board'] . '/' . $topicData[$url['topic_id']]['pretty_url'] . '/' . $start . $url['match1'] . $url['match3'];
$urls[$url_id]['replacement'] = $modSettings['pretty_root_url'] . '/' . $topicData[$url['topic_id']]['pretty_url'] . '/' . $start . $url['match1'] . $url['match3'];
Make this change to Display.php:
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
if (isset($context['pretty']['oldschoolquery']) && $modSettings['pretty_enable_filters'])
Then go to index.php?action=admin;area=pretty;sa=filters and change the topics rules to:
"rule": [
"RewriteRule ^ROOTURL([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;topic=$1.0 [L,QSA]",
"RewriteRule ^ROOTURL([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;topic=$1.$2 [L,QSA]"
]
Save that, and then switch on the topics filter (as well as the actions and profiles filters if you like). Let me know if it works!
Quote from: gigitravels on May 29, 2008, 05:22:07 PM
all i need is URL's without any board names. so the URL would look like:
www.forum.com/topic/
I will use the sef mod for topics only (not boards).
hey Dannii - here is how i did it (smf 1.1.5):
1. edited htaccess this way:
##### PrettyURLs - for topics WITHOUT BOARD NAMES:
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;topic=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;topic=$1.$2 [L,QSA]
2. in PrettyUrls-Filters.php, line 282:
replaced this line:
$urls[$url_id]['replacement'] = $modSettings['pretty_root_url'] . '/' . $topicData[$url['topic_id']]['pretty_board'] . '/' . $topicData[$url['topic_id']]['pretty_url'] . '/' . $start . $url['match1'] . $url['match3'];
with this line (basically took out the board):
$urls[$url_id]['replacement'] = $modSettings['pretty_root_url'] . '/' . $topicData[$url['topic_id']]['pretty_url'] . '/' . $start . $url['match1'] . $url['match3'];
3. in Display.php, line 77 (// 301 redirects):
replaced this line:
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
with this line:
if ( isset($context['pretty']['oldschoolquery']) && $modSettings['pretty_enable_filters'] )
this is to avoid an infinite loop.
this seems to work but do you believe it impairs any functionality that i didn't consider?
thanks for your help!
gigi
Is the converter from SEO4SMF still available? I looked at the googlecode pages but it seems to have gone?
Had you already done it? Cause that's just what I suggested (aside from editing the .htaccess file manually rather than the array.)
It won't impair any functionality, it will however have the same performance cost as with using the boards. You could edit the querys but I think it's not worth risking breaking it for what would be only a barely noticeable performance increase.
Argimiro, Yes it's now at http://prettyurls.googlecode.com/svn/trunk/extras/
Thanks. Your work is most appreciated.
I noticed on SMF 2.0 beta 3.1 that SMF's built-in queryless URL's feature checkbox in "admin > configuration > features & options > options" vanishes when you install Pretty URLs - this is normal?
SEO4SMF seems to have been abandoned. This looks GREAT :)
QuoteI noticed on SMF 2.0 beta 3.1 that SMF's built-in queryless URL's feature checkbox in "admin > configuration > features & options > options" vanishes when you install Pretty URLs - this is normal?
It happens in 1.1 too, and always has.
Sorry to be thick - how do I use install-SMF2-0.php to get the extra filters?
[edit] no worries, figured it out
[edit again] ack.. thought I had.
I tried wrapping all the files up in a zip & installing them through the SMF 2.0 beta 3.1 package manager - it reported success, but when I tried to enable the SEO4SMF redirection, I got a 500 Server Error.
So I removed it all (restored the backup .htaccess & uninstalled the add-on via package manager) - all OK again. Extra options gone from Pretty URLs admin panel.
I then tried uploading install-SMF2-0.php to /forums/ alongside SSI.php & visiting it with browser. Again it seemed to install OK, but same as before, enabling the SEO4SMF tickbox resulted in 500 Server Error.
I looked in the .htaccess that the add-on created, and there was an entry:
.
.
.
# Rules for: seo4smf
Array
.
.
.
everything else looked sensible in there. Where could i be going wrong?
QuoteSorry to be thick - how do I use install-SMF2-0.php to get the extra filters?
Just get all the files put them in a zip file and upload it in the package manager.
And you need to use the latest snapshot not 0.8.3, which do you have?
Looks like version 0.9 - I downloaded the files from the link you gave, a couple of hours ago.
Saved them all, zipped them up into prettyurlsextras.zip & uploaded them via package manager - it installed just fine. It was just when I checked the SEO4SMF checkbox, that I started getting the 500 errors.
It looks like the .htaccess rules, instead of getting entered into .htaccess, are being inserted as the word 'Array'?
[edit]
gotcha - my actual base version is 0.8.3
my extras version is 0.9
I'll retry with a newer version of the base package
Sorted, all's now well with the world, sorry for being dim
Excellent :)
Icing on the cake for this mod would be something to automatically generate html sitemaps or maybe even xml sitemaps for google et al.
No, that would be bloat. I have no plans for this mod to ever do anything other than manage URLs. The SMF sitemaps mod is compatible so use it if you want sitemaps.
Great - thanks for the pointer. I'll try that :)
http://custom.simplemachines.org/mods/index.php?mod=755 - yes?
Yep.
It seems to work well.. haven't figured out how to make Pretty URLs redirect the sitemap's query-based URLs in the sitemap mod (should it be able to?) - if not I guess I could just handball them in .htaccess
It'd be nice for instance to have /forums/sitemap.xml as opposed to /forums/index.php?action=sitemap;xml etc
Hmm I'll consider adding a filter to the extras package for that.
I can only see three forms of URL that are associated with that mod & I guess the mappings ought to be something like;
/forums/index.php?action=sitemap --> /forums/sitemap.html
/forums/index.php?action=sitemap;start=[number] --> /forums/sitemap[number].html
/forums/index.php?action=sitemap;xml --> /forums/sitemap.xml
I'll have a crack with a few mod_rewrite rules, if you did do a filter that'd be pretty cool
5 hours ago I pretty much thought our board was sunk as far as moving to SMF 2.0 was concerned, your mod & suggestions have pretty much saved the day here. Massive two thumbs up.
The first two should be changed by the actions filter already.
Quote from: Dannii on June 03, 2008, 09:22:19 PM
Had you already done it? Cause that's just what I suggested (aside from editing the .htaccess file manually rather than the array.)
It won't impair any functionality, it will however have the same performance cost as with using the boards. You could edit the querys but I think it's not worth risking breaking it for what would be only a barely noticeable performance increase.
ha ha, i didn't even see your post in which you suggested the exact same changes ;) thanks anyway! the performance issue is probably dismal like you said. i'll keep it as is.
thanks again!
gigi
Quote
The first two should be changed by the actions filter already.
funny, it didn't seem to 'kick in' at first, but something's happening now.
It seems to be handling the first format perfectly. Unsure about the second.. the third might be good if it could map directly to /sitemap.xml (I don't know if /sitemap/?start=0 will upset e.g. google)
/index.php?action=sitemap --> /sitemap/
/index.php?action=sitemap;start=0 --> /sitemap/?start=0
/index.php?action=sitemap;xml --> /sitemap/?xml
The remapper from seo4smf to Pretty URLs format is working here flawlessly, right down to returning 301 codes for the old URLs and 200 codes for the Pretty URLs ones. That's a prayer answered. Was worried about losing all our old seo4smf listings.
QuoteIt seems to be handling the first format perfectly. Unsure about the second.. the third might be good if it could map directly to /sitemap.xml (I don't know if /sitemap/?start=0 will upset e.g. google)
Ahh yep I've heard that Google needs the xml file to be in the root folder which would be important.
After 1.0 is released I'll investigate making all start numbers do something like /0/
Quote from: Dannii on June 03, 2008, 09:49:57 AM
QuoteWith PhpMyAdmin I changed the forum URL (there was a specific entry for the forum url) in smf_pretty_urls_cache.
Before it was rockciclopedia.com/forum now forum.rockciclopedia.com ...
Did you change everything else with repair_settings.php first?
Mmmh... no..
Well you'll need to get the rest of SMF working first. Then you can reinstall pretty URLs and fix the pretty_root_url setting.
Quote from: Dannii on June 04, 2008, 09:22:56 AM
Well you'll need to get the rest of SMF working first. Then you can reinstall pretty URLs and fix the pretty_root_url setting.
I've uploaded repair_settings.php and I've selected all the raccomended settings.
Then I've uninstalled Pretty URLs (removing the db data also) and I've reinstalled all...
The problem still remains... :(
If I disable Pretty URLs the login error disappear!
Are you still trying to move it to the sub domain?
Quote from: Dannii on June 04, 2008, 09:37:08 AM
Are you still trying to move it to the sub domain?
I've already moved my forum to the subdomain, you can see it here: http://forum.rockciclopedia.com
When I (and all the users) try login, they receive this error:
You were unable to login. Please check your cookie settings.Seems you can't login but if you click on "back" lin you're logged in already...
Strange!
And, as I wrote, qhen the error is displayed the URL is this:
/profile/?pretty;action=login2&sa=check
It seems the check of the url is wrong but the user is logged in anyway...
Are the subdomain settings correct etc?
Quote from: Dannii on June 04, 2008, 09:44:40 AM
Are the subdomain settings correct etc?
Yes!
They are all setted as raccommanded:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg209.imageshack.us%2Fimg209%2F4017%2Frepairsettingshz2.th.png&hash=19feb6494b0c0840628054bb506aa4fff5854e97) (http://img209.imageshack.us/my.php?image=repairsettingshz2.png)
Does it work if you have URL rewriting on but turn off the actions filter?
I'll have to look into this after exams, I don't have the time now sorry.
Quote from: Dannii on June 04, 2008, 10:03:44 AM
Does it work if you have URL rewriting on but turn off the actions filter?
I'll have to look into this after exams, I don't have the time now sorry.
Disabling the action filter it works properly... :)
Mmmh... don't know.. pheraps there's a conflict in the db...
I've been using this mod without problems for a few months now but today for some reason my forum started just showing up as blank pages. I was able to get it functioning again by running the fix here: http://code.google.com/p/prettyurls/wiki/TroubleShooting .
I've spoken with my host and they assure me they've made no changes on their end that would cause this mod to stop functioning. I'm really at a loss to why it happened and how to get it functioning again. I've tried uninstalling it and them cleaning out any mention of it in the db. Upon trying to reinstall after that results in blank pages again. Any ideas?
Where is your board.. can I have a look (can't promise but maybe I will spot something)
Anything in either SMF or Apache's error log?
Nope nothing useful at all in the logs. I ended up going back to a backup of the database from earlier today and that did the trick.
Okay good to hear then.
A white page usually indicates a PHP error in an output buffering function. It should be caught by SMF's logs, though you may not have noticed it.
A new problem appeared a couple days ago. When users post a new topic they get a white page with the following error:
QuoteFatal error: Call to undefined function generatePrettyUrl() in /home/mustvco/public_html/forum/Sources/Subs-Post.php on line 1627
No modification has been done on the site or the server and the error log doesn't show anything.
I tried to disable pretty URL for the action URLs and a maintenance but it didn't do anything.
Can you post lines 1625-1630 of Subs-Post.php please.
I am using notepad to edit my files and it doesn't show the lines. Is there a free program out there allowing me to edit php files and show the line numbers?
About my problem, most lines from mods mysteriously disapeared from theme and language files. I am trying to uninstall and reinstall the mods so maybe this will fix it.
Try ConTEXT: http://www.contexteditor.org/ (you may have to turn on line numbers in the options page, it shouldn't be difficult.)
Here is what I have from line 1625 and 1630:
// Generate the pretty URL of our exciting new topic
require_once($sourcedir . '/Subs-PrettyUrls.php');
$pretty_text = substr(generatePrettyUrl($msgOptions['subject']), 0, 80);
// Is the URL already there?
$query = db_query("
I have disabled and reinstalled all mods including pretty urls but the error is still showing.
There was no new topic posted in the forum since a week or two so it's possible this bug appeared after I upgraded to SMF 1.1.5 and I have a mod that you suggested installed in this mod. Is it possible it's not compatible with SMF 1.1.5?
Mod installed (http://www.simplemachines.org/community/index.php?topic=146969.msg1545710#msg1545710)
Quote from: Dannii on May 12, 2008, 08:02:53 AM
Actually LGS, replace that whole query with this:
// Cache these URLs in the database
if (count($cache_data) != 0)
$smcFunc['db_insert']('replace',
'{db_prefix}pretty_urls_cache',
array('url_id' => 'string', 'replacement' => 'string'),
$cache_data,
array('url_id'));
I've the same problem... I've errors like this:
Type of error: Database
Database Error: Duplicate entry '`Atrackip;searchip=79.18.28.111' for key 1
File: /forum/Sources/QueryString.php
Line: 609
Do I have to make the same edit?
chadon, you must still be using 0.7. Upgrade to 0.8.3.
lorenzone92, yes make that edit.
hmm why is this showing two diff urls?
ie in my menu it show this
http://waynesworld.kicks-ass.net/forum/multiplayer/?game=Conquer_Antarctica
and in multiplayer it shows this
http://waynesworld.kicks-ass.net/forum/multiplayer/?action=multiplayer;game=Conquer_Antarctica
you can see what i mean by going here
http://waynesworld.kicks-ass.net/forum/multiplayer/
you can log in with testing testing
strang cos they both work?
dont worry solved had this missing from mp template
global $scripturl;
hey,
I have lighttpd instead of htaccess so can i use it..if so please can give me the code for lighttpd
Quote from: Dannii on June 09, 2008, 10:19:32 PM
lorenzone92, yes make that edit.
OK...
Are you going to release an update of the package?
Quotehey,
I have lighttpd instead of htaccess so can i use it..if so please can give me the code for lighttpd
If you have access to the lighhttpd config files you can. I don't know how to format the rules for it, though I think someone did before. Have a search...
lorenzone92, I will when I update it for Beta 4. Only 2 people have had an issue so far, it's not worth it.
Quote from: Dannii on June 10, 2008, 04:58:23 AM
lorenzone92, I will when I update it for Beta 4. Only 2 people have had an issue so far, it's not worth it.
Right! ;)
i have full root access...but i donno what to edit..can you please give me some info...
http://trac.lighttpd.net/trac/wiki/Docs:ModRewrite
There are the docs for it, that's pretty much all I know.
Quote from: Dannii on June 09, 2008, 10:19:32 PM
chadon, you must still be using 0.7. Upgrade to 0.8.3.
No, I am using the version 0.8.3. The error only happens when a new topic is created not when we reply to them.
If you've upgraded to 0.8.3 those lines should not be there. Subs-Post.php isn't modified anymore.
There must be something wrong with my SMF. I deleted the lines manually and it works fine now. I also noticed lines from other mods that were deleted a while ago in that file. Any idea why this happened?
Thanks Dannii
Maybe your host restored a backup? I don't know why else they'd be there.
I'm sorry if I'm dumb but this didn't seem to work the way I'm thinking. How does this actually work? I'm using a custom theme and everything appears in the admin panel but how do I get the pretty url's to appear?
Have you enabled URL rewriting in the new admin page?
Hi!
I have e feature request:
Can you put in "Run Maintenance" possibility to flush "pretty_topic_urls" table?
IMHO is really important for all strange topic title.
Quote from: Dannii on June 10, 2008, 01:18:46 PM
Have you enabled URL rewriting in the new admin page?
Yes I have. Should there be some options or buttons showing up letting me choose how a URL appears? If I paste a long url what is supposed to happen?
I just uninstalled it. My error log was filled with errors. Oh well.
QuoteI have e feature request:
Can you put in "Run Maintenance" possibility to flush "pretty_topic_urls" table?
IMHO is really important for all strange topic title.
No. Topic URLs should be permanent. Eventually I'll add a mod action to change them. You can add query to flush the table for your forum though.
QuoteI just uninstalled it. My error log was filled with errors. Oh well.
What were the errors?
Ok, please can you write me a valid query to flush this table?
SMF 1.1 or SMF 2.0?
1.1.5 :)
Just add this below the other truncate query in Subs-PrettyUrls.php
db_query("
TRUNCATE TABLE {$db_prefix}pretty_topic_urls", __FILE__, __LINE__);
Thanks!
Now after any maintenance all url are updated :)
Quote from: Dannii on June 10, 2008, 01:58:11 PM
QuoteI have e feature request:
Can you put in "Run Maintenance" possibility to flush "pretty_topic_urls" table?
IMHO is really important for all strange topic title.
No. Topic URLs should be permanent. Eventually I'll add a mod action to change them. You can add query to flush the table for your forum though.
QuoteI just uninstalled it. My error log was filled with errors. Oh well.
What were the errors?
I just reinstalled it. I don't have any errors now however I still think I'm confused as to what this does. I thought this gave me the option of changing the text of a link while still maintaining its original URL.
hi i need help i installed pretty url on my 1.14 smf forum, which has a plus gray theme, but something is messed up, at the top of every page theres some kinda of codes ->
Quote// Pretty URLs mod // Interface texts $txt['pretty_admin_menu'] = 'Pretty URLs'; $txt['pretty'] = array( 'url' => 'Pretty URL', 'url_desc' => 'A URL fragment used for boards and topics.
Note: this will be processed as only a limited set of characters are allowed - other characters will be converted. Leave blank to use the board name.
', ); // Settings descriptions $txt['pretty_board_lookup'] = 'A serialized array of URL => ID_BOARD pairs, used for processing $_GET[\'board\']. There can be more than one URL for each board.'; $txt['pretty_board_urls'] = 'A serialized array of ID_BOARD => URL pairs, used for generating pretty replacement URLs.'; $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.'; $txt['pretty_filters'] = 'A serialized array of filter data.'; $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the pretty_filters setting instead.'; $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as $boardurl.';
and it doesnt change the url, it still like ---> "index.php?board=19.0"
can you please help me, i really need this to work, thnx
Hi Danni,
We installed pretty URL's and everything went fine.
When we enable the mod our sitemap gives this error:
XML Parsing Error: no element found
Location: http://www.freeadzforum.com/sitemap/?xml
Line Number 1, Column 1:
Any ideas why this would happen?
Thanks for all your support.
Quote from: ruckstande on June 10, 2008, 03:23:32 PMI just reinstalled it. I don't have any errors now however I still think I'm confused as to what this does. I thought this gave me the option of changing the text of a link while still maintaining its original URL.
No it changes the URLs automatically (though you can specify board URLs manually). The old topic and board URLs will be 301 redirected to the new ones.
Quote from: deathgame3 on June 10, 2008, 09:18:23 PMhi i need help i installed pretty url on my 1.14 smf forum, which has a plus gray theme, but something is messed up, at the top of every page theres some kinda of codes ->Quote// Pretty URLs mod // Interface texts $txt['pretty_admin_menu'] = 'Pretty URLs'; $txt['pretty'] = array( 'url' => 'Pretty URL', 'url_desc' => 'A URL fragment used for boards and topics.
Note: this will be processed as only a limited set of characters are allowed - other characters will be converted. Leave blank to use the board name.
', ); // Settings descriptions $txt['pretty_board_lookup'] = 'A serialized array of URL => ID_BOARD pairs, used for processing $_GET[\'board\']. There can be more than one URL for each board.'; $txt['pretty_board_urls'] = 'A serialized array of ID_BOARD => URL pairs, used for generating pretty replacement URLs.'; $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.'; $txt['pretty_filters'] = 'A serialized array of filter data.'; $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the pretty_filters setting instead.'; $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as $boardurl.';
and it doesnt change the url, it still like ---> "index.php?board=19.0"
can you please help me, i really need this to work, thnx
Looks like the language entries were added incorrectly to modifications.english.php. Make sure that there's only one ?> and that it's the very last thing in the file.
Quote from: partners on June 10, 2008, 09:18:56 PMHi Danni,
We installed pretty URL's and everything went fine.
When we enable the mod our sitemap gives this error:
XML Parsing Error: no element found
Location: http://www.freeadzforum.com/sitemap/?xml
Line Number 1, Column 1:
Any ideas why this would happen?
Thanks for all your support.
Is the mod still installed? The sitemap looks fine to me. I notice that it's using SMF's friendly URLs, you should disable that before installing this mod.
How do I re-make (update) board URL? Emptying the smf_pretty_urls_cache table has no effect.
Upgrade to the latest snapshot which adds an admin page to change the URLs.
Hi,
We had Pretty URLS disabled and everything is fine.
We uninstalled and disabled the search engine friendly
URLs and reinstalled your mod and the sitemap still shows this
error.
We have the mod turned on now so you can see what it is doing:
http://www.freeadzforum.com/sitemap/?xml
Any ideas?
Thanks again!
I just installed this mod for the 1st time and I am using smf 1.1.5. I enabled the mod. Now every page in my forum is now coming up blank (white display page). Can someone please help me resolve this.
I can not even get on my forum to uninstall the this mod.
Thank you for your time.
Quote from: tkam on June 07, 2008, 05:32:15 PM
I've been using this mod without problems for a few months now but today for some reason my forum started just showing up as blank pages. I was able to get it functioning again by running the fix here: http://code.google.com/p/prettyurls/wiki/TroubleShooting .
I've spoken with my host and they assure me they've made no changes on their end that would cause this mod to stop functioning. I'm really at a loss to why it happened and how to get it functioning again. I've tried uninstalling it and them cleaning out any mention of it in the db. Upon trying to reinstall after that results in blank pages again. Any ideas?
Thank you for this.
Robots.txt!
Hi! i see now that my robots.txt is with old url like this: Disallow: /forum/index.php?action=help
in your opinion is important to update with new url type (eg: Disallow: /forum/help/)?
Or maybe is best to use both ???
Thanks, DarkWolf! :)
Quote from: partners on June 11, 2008, 01:44:56 PMHi,
We had Pretty URLS disabled and everything is fine.
We uninstalled and disabled the search engine friendly
URLs and reinstalled your mod and the sitemap still shows this
error.
We have the mod turned on now so you can see what it is doing:
http://www.freeadzforum.com/sitemap/?xml
Any ideas?
Thanks again!
Okay, it's a blank page which says "PHP error!" to me. Anything in the SMF or Apache error logs?
Quote from: runvs on June 11, 2008, 01:47:19 PMI just installed this mod for the 1st time and I am using smf 1.1.5. I enabled the mod. Now every page in my forum is now coming up blank (white display page). Can someone please help me resolve this.
I can not even get on my forum to uninstall the this mod.
Thank you for your time.
Good to hear you got it fixed. Was there anything in the PHP or Apache logs?
Quote from: Dark-Wolf on June 11, 2008, 10:13:49 PMRobots.txt!
Hi! i see now that my robots.txt is with old url like this: Disallow: /forum/index.php?action=help
in your opinion is important to update with new url type (eg: Disallow: /forum/help/)?
Or maybe is best to use both ???
Thanks, DarkWolf! :)
As the action URLs don't get redirected you'll need to have both if you want to block it.
Hacking attempt...
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (3, "hello-and-welcome"), (4, "policies-rules-and-posting-tips"), (6, "pauls-story"), (60, "anxiety-tool"), (75, "having-bad-symptoms-90-days-after-your-last-benzodiazepine-dose"), (133, "just-remember-that-we-are-all-on-this-journey-together"), (420, "music"), (449, "were-number-1-on-google-for-benzo-withdrawal"), (756, "one-of-our-members-makes-a-benzo-withdrawal-video-(wiljon)-ty!!"), (1005, "take-ambien-and-only-get-an-extra-15-minutes-sleep-could-be-hooked-for-life"), (1047, "benzo-friendly-doctors-(doctors-that-understand-and-support-ashton-method)"), (1628, "live-benzo-support-meetings-every-tuesday-9pm-est-here-in-livechat"), (1705, "hormone-fluctuations"), (1734, "word-balloons"), (1753, "brain-info"),
File: /***/*****/*/*/*/***/html/forum/Sources/PrettyUrls-Filters.php
Line: 139
Make this change to PrettyUrls-Filters.php:
$add_new[] = '(' . $row['ID_TOPIC'] . ', "' . addslashes($pretty_text) . '")';
$add_new[] = '(' . $row['ID_TOPIC'] . ', \'' . addslashes($pretty_text) . '\')';
RUNVS,
If you got another hacking attempt warning that was me. I wanted to see if I could find the code on that page so I tacked "Sources/PrettyUrls-Filters.php" to the end of your URL and I got a page that said "hacking attempt...." Sorry
Craig
Quote from: Dannii on June 11, 2008, 11:49:39 PM
Make this change to PrettyUrls-Filters.php:
$add_new[] = '(' . $row['ID_TOPIC'] . ', "' . addslashes($pretty_text) . '")';
$add_new[] = '(' . $row['ID_TOPIC'] . ', \'' . addslashes($pretty_text) . '\')';
I think this resolved the issue. Now how do I check if pretty urls is working?
Thank you Craig for info also.
It's working! I just checked! Go look at at a topic and you'll see the name in the URL.
This mod is awesome!! Thank you Dannii for tech support +100 karma to you :)
Craig Ty for this!! This should help my rankings.
Hi Danii,
I installed your latest version. When I enable URL Rewrite. When I press SAVE only for "Boards" its fine. Its also fine if I check "Actions & Profiles" but when I check "Topics" it results in a blank white homepage [index.php]. Any suggestions?
Can you check the error log please.
Here's my error log. Thanks.
Guest Today at 01:16:02 AM
Apply Filter: Only show the error messages of this IP address 71.170.48.99 Apply Filter: Only show the error messages of this session 57b97c051e711d0fa6393f20a7dc5b1c
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
Hacking attempt...
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (1871, "2008-nhl-entry-draft-order-of-selection")
File: /home/ecricnet/public_html/forums/Sources/PrettyUrls-Filters.php
Line: 139
Apply Filter: Only show the error messages of this member PanesarV Today at 01:15:57 AM
Apply Filter: Only show the error messages of this IP address 75.157.39.7 Apply Filter: Only show the error messages of this session c3d8f9926bb59593825987828c52cf25
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
Hacking attempt...
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (1871, "2008-nhl-entry-draft-order-of-selection")
File: /home/ecricnet/public_html/forums/Sources/PrettyUrls-Filters.php
Line: 139
Apply Filter: Only show the error messages of this member Guest Today at 01:15:40 AM
Apply Filter: Only show the error messages of this IP address 67.174.223.105 Apply Filter: Only show the error messages of this session 08b10d8aeea77bbdec59fb495dc25c94
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php?page=44
Apply Filter: Only show the errors with the same message
Hacking attempt...
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (1871, "2008-nhl-entry-draft-order-of-selection")
File: /home/ecricnet/public_html/forums/Sources/PrettyUrls-Filters.php
Line: 139
Apply Filter: Only show the error messages of this member Guest Today at 01:15:39 AM
Apply Filter: Only show the error messages of this IP address 124.86.109.232 Apply Filter: Only show the error messages of this session a1129c84fad31c4547fd74b207c4b6f6
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php?pretty;action=.xml&type=rss;PHPSESSID=12d63a555fc1002cde6b051c5e9fee49
Apply Filter: Only show the errors with the same message
Hacking attempt...
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (1871, "2008-nhl-entry-draft-order-of-selection")
File: /home/ecricnet/public_html/forums/Sources/PrettyUrls-Filters.php
Line: 139
Apply Filter: Only show the error messages of this member PanesarV Today at 01:15:38 AM
Apply Filter: Only show the error messages of this IP address 75.157.39.7 Apply Filter: Only show the error messages of this session c3d8f9926bb59593825987828c52cf25
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
Hacking attempt...
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (1871, "2008-nhl-entry-draft-order-of-selection")
File: /home/ecricnet/public_html/forums/Sources/PrettyUrls-Filters.php
Line: 139
Apply Filter: Only show the error messages of this member Guest Today at 01:02:12 AM
Apply Filter: Only show the error messages of this IP address 62.215.158.4 Apply Filter: Only show the error messages of this session 1f5be58ce788a6fef96ae16f5f9eca16
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
8: Undefined offset: 989
File: /home/ecricnet/public_html/forums/Themes/Outline_tp/TPortal.template.php (main_above sub template - eval?)
Line: 526
Apply Filter: Only show the error messages of this member Guest Today at 01:02:12 AM
Apply Filter: Only show the error messages of this IP address 62.215.158.4 Apply Filter: Only show the error messages of this session 1f5be58ce788a6fef96ae16f5f9eca16
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
8: Undefined offset: 992
File: /home/ecricnet/public_html/forums/Themes/Outline_tp/TPortal.template.php (main_above sub template - eval?)
Line: 523
Apply Filter: Only show the error messages of this member Guest Today at 01:02:12 AM
Apply Filter: Only show the error messages of this IP address 62.215.158.4 Apply Filter: Only show the error messages of this session 1f5be58ce788a6fef96ae16f5f9eca16
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
8: Undefined offset: 993
File: /home/ecricnet/public_html/forums/Themes/Outline_tp/TPortal.template.php (main_above sub template - eval?)
Line: 519
Apply Filter: Only show the error messages of this member Guest Today at 01:02:12 AM
Apply Filter: Only show the error messages of this IP address 62.215.158.4 Apply Filter: Only show the error messages of this session 1f5be58ce788a6fef96ae16f5f9eca16
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
8: Undefined offset: 991
File: /home/ecricnet/public_html/forums/Themes/Outline_tp/TPortal.template.php (main_above sub template - eval?)
Line: 516
Apply Filter: Only show the error messages of this member Guest Today at 01:02:12 AM
Apply Filter: Only show the error messages of this IP address 62.215.158.4 Apply Filter: Only show the error messages of this session 1f5be58ce788a6fef96ae16f5f9eca16
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
8: Undefined offset: 994
File: /home/ecricnet/public_html/forums/Themes/Outline_tp/TPortal.template.php (main_above sub template - eval?)
Line: 513
Apply Filter: Only show the error messages of this member Guest Today at 01:02:12 AM
Apply Filter: Only show the error messages of this IP address 62.215.158.4 Apply Filter: Only show the error messages of this session 1f5be58ce788a6fef96ae16f5f9eca16
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
8: Undefined offset: 988
File: /home/ecricnet/public_html/forums/Themes/Outline_tp/TPortal.template.php (main_above sub template - eval?)
Line: 510
Apply Filter: Only show the error messages of this member Guest Today at 01:02:12 AM
Apply Filter: Only show the error messages of this IP address 62.215.158.4 Apply Filter: Only show the error messages of this session 1f5be58ce788a6fef96ae16f5f9eca16
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
8: Undefined offset: 995
File: /home/ecricnet/public_html/forums/Themes/Outline_tp/TPortal.template.php (main_above sub template - eval?)
Line: 507
Apply Filter: Only show the error messages of this member Guest Today at 01:02:12 AM
Apply Filter: Only show the error messages of this IP address 62.215.158.4 Apply Filter: Only show the error messages of this session 1f5be58ce788a6fef96ae16f5f9eca16
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
8: Undefined offset: 996
File: /home/ecricnet/public_html/forums/Themes/Outline_tp/TPortal.template.php (main_above sub template - eval?)
Line: 504
Apply Filter: Only show the error messages of this member Guest Today at 01:02:12 AM
Apply Filter: Only show the error messages of this IP address 62.215.158.4 Apply Filter: Only show the error messages of this session 1f5be58ce788a6fef96ae16f5f9eca16
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
8: Undefined offset: 997
File: /home/ecricnet/public_html/forums/Themes/Outline_tp/TPortal.template.php (main_above sub template - eval?)
Line: 501
Apply Filter: Only show the error messages of this member Guest Today at 01:01:46 AM
Apply Filter: Only show the error messages of this IP address 75.157.39.7 Apply Filter: Only show the error messages of this session 0186cce568c69390c5838637f62dc863
Apply Filter: Only show the error messages of this URL http://ecric.net/forums/index.php
Apply Filter: Only show the errors with the same message
8: Undefined offset: 989
File: /home/ecricnet/public_html/forums/Themes/Outline_tp/TPortal.template.php (main_above sub template - eval?)
Line: 526
Make this change too: http://www.simplemachines.org/community/index.php?topic=146969.msg1576630#msg1576630
I think I may have to release 0.8.4 earlier than 2.0 Beta 4...
Sweetttttt!!!!!! Great Job!!!!!! All good now! Keep up the good work..Really appreciate your help. Thank you so much. I guess you should release a new version to solve this bug.
Ok, thanks Again Dannii.
PS maybe really last questions, how i can change url in notification mail?
(eg for new registered user and/or for new comments etc?)
Um, no idea! Haven't even thought about it sorry.
Quote from: Dannii on June 12, 2008, 11:30:55 AM
Um, no idea! Haven't even thought about it sorry.
Ok thanks :)
Hi Danni,
Here is the error message:
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (106, "the-ultimate-linux-library-6-cd-set-for-newbies-or-not-replace-windows!"), (110, "do-you-feel-like-there-is-a-war-going-on-in-your-body"), (127, "learn-how-to-get-free-computer-games"), (132, "psychic-advice-that-has-helped-create-millionaires"), (134, "the-fastest-way-to-train-your-dog-guaranteed"), (135, "top-secret-fat-loss-secret"), (137, "magum-iq"), (140, "20-internet-marketing-powerplays!"), (141, "every-one-needs-internet-tools-to-build-their-business-get-yours-free"), (142, "new-cutting-edge-free-affiliate-marketing-system"), (143, "want-to-see-the-1-seller-today"), (145, "hotter-than-hell"), (147, "1-internet-opportunity-147"), (157, "get-10-000-visitors-to-your-site-in-15-days!"), (169, "need-5-executive!-sign-up-today-for-only-$1!"), (177, "introducing-eplatinum-club-an-easy-way-to-earn-$4-000!!"), (179, "10dollarswonder-make-money-just-like-that-waaa"), (180, "so-damn-easy-$500-$3500-in-48-hrs-dont-believe-go-to-my-site"), (191, "can-20-minutes-change-your-life"), (214, "introducing-clubbucks-rewards-a-true-global-ground-floor-opportunity"), (201, "new-money-exchange-giving-away-$25-just-for-signing-up!"), (208, "$-389-free-membership-a-free-lap-top-to-use-!"), (217, "free-$10-00-gift-card-217"), (226, "try-fixed-odds-online-trading-plus-a-free-20-trade"), (230, "4-and-5-star-resorts-from-$298-for-a-8-day-7-night-stay!!-have-to-check-it-out!"), (239, "free-$10-00-gift-card-239"), (244, "stories-of-grandparents-grandchildren-sharing-family-fun-childrens-outings"), (245, "must-see!!!-solos-to-14-000-current-contacts-updated-daily!"), (247, "turn-1-hr-per-day-and-no-money-out-of-pockets-into"), (248, "free-$10-00-gift-card-248"), (251, "the-miracle-of-this-program-with-no-out-of-pocket-costs!"), (254, "what-the-heck-is-pay-per-play-254"), (256, "what-the-heck-is-pay-per-play-256"), (261, "sell-ups-inverter-and-batteries"), (263, "doctor-want-to-kill-this-young-women-!!!"), (264, "lost-weight-in-30-days-get-the-secret-now!"), (265, "google-filing-bankruptcy-notice"), (267, "offshore-staff-leasing-solutions"), (268, "build-operate-transfer"), (269, "general-outsourcing-services"), (270, "outsourcing-for-smb"), (271, "internet-and-mobile-industry-specialized-outsourcing"), (272, "web-development-programming"), (273, "web-design"), (274, "graphic-design"), (275, "flash-animation-design"), (276, "copywriting-and-content-development"), (278, "ameriplan-has-the-opportunity-of-a-life-time!"), (280, "hi-everybody-!-get-in-fast-before-it-is-too-late"), (281, "passive-wealth"), (283, "great-new-advertising-sources!"), (285, "frogs"), (287, "attention-all-moms-an-dads"), (292, "the-absolute-business-connection-one-time-fee-$5-50"), (297, "free-link-advertising-on-a-pr2-directory-www-toplinks4u-co-uk"), (298, "topscripts4u-com-low-cost-downloads-with-full-resell-rights!"), (299, "articleworld4u-com-free-articles-for-your-websites-ezines-and-blogs!"), (303, "best-thing-since-sliced-bread-303"), (307, "good-super-dropship-very-favourable-conditions-for-sellers!-believe!"), (308, "$$$$$$$$heres-a-unique-exciting-new-program-for-you!$$$$$$$$"), (309, "((((((((((-the-secret-pays-$100-payments-over-over-over-)))))))))"), (316, "new-club-on-the-block-take-a-look"), (317, "total-team-profit-it-works"), (318, "social-networking-on-steroids"), (319, "in-the-garden-of-eden-honey-which-rhymes-with-money-honey"), (322, "automated-system-puts-paid-referrals-under-you"), (325, "become-a-wifi-voip-multi-millionaire-fast-100-free"), (326, "free-ads-for-job-postings"), (328, "make-$$$-as-an-affiliate-marketer-!!!"), (333, "top-position-on-google-yahoo-and-38-others-free"), (336, "top-position-on-google-yahoo-and-38-others-free-with-1on40-336"), (341, "now-this-is-what-i-call-sharing!"), (345, "xocai-the-healthy-chocolate"), (350, "the-computer-training"), (353, "achieve-financial-freedom!"), (355, "download-100-ebooks-80-php-scripts-2000-website-template-totally-free!"), (362, "new-system-generates-hot-leads-for-your-business"), (363, "daily-fresh-news-about-internet-marketing"), (364, "here-are-15-free-solo-ads!"), (380, "low-cost-health-benefits"), (382, "get-a-frresh-start-and-never-stop!!!"), (383, "your-money-is-sitting-on-the-list-join-elite-safelist!"), (384, "exclusive-and-free-discounted-quality-advertising"), (385, "like-bees-to-honey-the-net-is-buzzing"), (386, "new-professional-marketing-system-explodes-your-income!"), (387, "$5-50-one-time-income-for-life-!!"), (388, "the-power-of-8-is-amazing!"), (391, "dont-build-your-business-the-old-school-way"), (392, "simple-things-make-money"), (400, "a-must-read"), (401, "free-cash-over-and-over-no-out-of-pocket-cost!"), (402, "post-your-free-ad-at-the-ad-den"), (403, "promotion-extended!"), (405, "turn-1-hr-per-day-into-100k-per-year!-free!"), (413, "lowest-phone-card-rates"), (415, "k-link-indonesia-and-internasional"), (418, "the-money-merge-account-system-showing-homeowners-interest-and-payment-savings"), (421, "make-at-least-$100-a-day-30-day-trial"), (422, "funding-available-for-your-businessproject-etc-no-commitment"), (427, "zero-risk-investmentnothing-from-your-pocket-and-you-will-make-thousands"), (431, "debts-erased-and-get-the-loan-that-you-need-new-credit-file-within-24-hour"), (435, "dont-have-down-payment-want-to-buy"), (440, "astounded-instant-cash-flow-system"), (441, "you-decide-i-havent-seen-anything-easier"), (443, "who-else-wants-a-home-based-business-443"), (446, "post-your-free-ad-today!"), (453, "free-advertising-to-thousands!"), (452, "global-travel-agency"), (455, "please-read-455"), (463, "super-eden-the-easiest-home-business"), (465, "$75-bonus-payment-just-for-signing-up"), (467, "the-ad-den-post-your-ad-free-just-added-upload-an-image!"), (481, "best-thing-since-sliced-bread-481"), (487, "$50-00-free-when-you-sign-up"), (497, "introducing-maxlife-research-com"), (498, "loan-offer"), (499, "dont-pass-this-by-pays-daily-fast!!!!"), (504, "automatic-wealth!"), (506, "join-this-revolutionary-moneyexchange-get-$25-free-plus"), (507, "liberty-health-net-health-wealth"), (509, "work-from-home-for-only-$1"), (511, "partner-with-tony-little-for-free"), (519, "show-me-the-money-519"), (534, "get-in-toksee-now-ahead-of-the-wave-or-do-an-asskick-later-free-to-join"), (538, "a-cool-way-to-earnsave-money"), (542, "how-to-get-more-advertising-for-free!"), (543, "get-paid-to-click-ads!-sign-up-100-free!"), (545, "this-advertising-program-makes-me-100-commissions!"), (546, "increase-your-website-traffic!"), (550, "it-cant-cost-less-than-free!"), (551, "online-business-alliance"), (552, "still-dreaming-of-financial-freedom"), (554, "see-what-you-can-get-for-$5-that-will-generate-an-income!"), (555, "one-step-4-income"), (556, "tony-little-says"), (558, "join-top3percent-today!"), (559, "my-traffic-spot-delivering-free-traffic-and-big-commissions"), (567, "money-into-your-paypal"), (569, "dental-discounts-for-only-$20-a-month"), (578, "simple-profit-setup"), (580, "start-business-for-free"), (581, "the-ad-den-post-your-ad-free-just-added-upload-an-image!-581"), (582, "weve-got-free-ebooks-for-you"), (598, "visit-the-profitmart-store-today-everything-you-need-on-1-site"), (599, "make-money-online-with-your-own-free-turnkey-cash-machine!"), (601, "youll-love-this!"), (603, "free-advertising"), (2414, "more-advertising-options"), (607, "free-lifetime-web-tools-~-no-more-monthly-payments"), (612, "ultimate-home-based-business"), (613, "new-moneyexchange-will-give-you-$25-just-for-signing-up!"), (616, "its-legit-you-get-$25-free-plus"), (618, "has-any-one-seen-this-yet-secrets-revealed"), (619, "be-the-1-on-search-engines-for-free"), (622, "your-$20-game-plan-for-internet-wealth"), (624, "save-your-$-with-us!"), (625, "1000stores-in-your-own-free-powermall-did-i-mention-its-free!"), (634, "get-$25-for-free-with-nothing-to-buy!"), (638, "25-millionaires-did-this-in-secret-to-keep-you-out-of-the-loop-638"), (640, "25-millionaires-did-this-in-secret-to-keep-you-out-of-the-loop-640"), (642, "best-online-businness-opportunity"), (644, "shelleys-shopping-center"), (645, "shelleys-shopping-center-645"), (647, "spare-some-time-to-look-at-my-blogs"), (649, "unique-birdhouses-649"), (650, "measly-20-bucks-turns-over-fast-easy"), (656, "a-great-free-safelist"), (658, "post-your-free-add"), (668, "home-brokers-needed-established-usa-co-!-excellent-pay-wbenefits!"), (669, "get-50-minutes-of-online-tutoring-for-$1!!!"), (672, "the-ad-den-post-your-ad-free-just-added-upload-and-image!"), (673, "i-am-looking-for-20-more-people!"), (674, "try-fixed-odds-trading-plus-a-free-20-trade"), (675, "is-cruise-to-cash-a-scam"), (677, "dog-food-poison!-677"), (680, "tired-of-reaching-into-your-pockets-and-finding-only-lint"), (681, "make-up-to-$650-or-more-in-your-first-hour-no-selling-involved!-681"), (705, "the-pays-forever-program-is-hot-and-it-makes-money!-705"), (700, "the-pays-forever-program-is-hot-and-it-makes-money!-700"), (715, "what-you-could-be-saving-with-your-membership"), (704, "this-program-is-new-its-hot-and-it-pays!-704"), (707, "over-2000-people-in-less-than-1-month!"), (692, "birdhouse-bonanza!-692"), (713, "invest-$10-75-and-start-an-unstoppable-income"), (717, "birdhouse-bonanza!-717"), (719, "get-$50-payments-instantly-over-and-over"), (722, "one-hour-translation-your-search-for-worldwide-translators-ends-here"), (725, "cash-bonuses-for-retirement-savings-accounts"), (728, "get-paid-instantly!"), (731, "dont-want-to-sell-anything"), (732, "amazing-new-program-pays-$20-instantly-over-and-over!-732"), (733, "online-income-with-absolutely-no-selling!"), (734, "pptw-edc-lgn-and-abunza"), (735, "we-gurantee-your-success"), (736, "the-best-instant-pay-program-plus-residual!-736"), (738, "this-is-your-chance-to-be-on-top!"), (739, "get-in-on-top-of-the-greatest-online-opportunity-ever!"), (740, "if-you-could-make-$100-or-more-an-hour-would-you-put-forth-the-effort"), (741, "the-most-powerful-system-on-the-web!"), (742, "get-in-on-top-of-the-greatest-online-opportunity-ever!-742"), (746, "best-program-for-the-little-guy"), (747, "best-program-for-the-little-guy-747"), (748, "make-money-join-sfi-a-free-work-at-home-business-lots-of-opportunities"), (749, "work-from-home-earn-$1000s-per-month"), (750, "generate-a-steady-income!"), (751, "earn-$500-daily-part-time-online-business-opportunities"), (756, "finally-a-sensible-way-to-earn-income-online-and-its-free-to-start!"), (758, "protect-your-eyesight-and-save!"), (759, "this-is-what-its-all-about"), (761, "please-see-our-2008-catalog"), (762, "smell-and-sell-soy-candles"), (764, "just-launched-wowzza-check-it-out-huge-earnings-$$$$"), (766, "ground-floor-positions-available!!"), (767, "free-ebay-certified-software"), (768, "wowzza-has-just-launched-dont-miss-the-tour"), (770, "your-life-your-fortune"), (771, "the-name-of-the-company-is-ameriplan"), (773, "turn-$12-into-$7000!"), (774, "do-not-toy-with-this-read-it"), (776, "requirement-of-manpower"), (778, "did-you-know-that-97-of-the-people-that-try-mlm-fail-i-have-the-answer"), (780, "the-ad-den-post-your-ad-free-just-added-upload-an-image!-780"), (781, "i-buy-houses-at-fair-market-value"), (782, "know-anyone-considering-lasik-eye-surgery"), (783, "mothers-day-gifts-783"), (787, "get-paid-4-millions-dollars-by-the-next-3-years"), (788, "super-eden-a-new-home-based-business-that-work"), (790, "never-ending-success"), (791, "pay-per-lead-affiliate-program-$75-credit-for-hosting-your-website"), (792, "still-not-earning-any-money-online"), (796, "easy-money-796"), (797, "$398-setup-fee-waivedseeking-100-new-reps"), (801, "inutrition-in-pre-launch-join-early"), (805, "mothers-day-sales-805"), (808, "free-advertising-easy-cash!"), (817, "make-$100-every-hour!-you-will-get-paid-even-if-no-sales-anr-made!"), (820, "25-millionaires-did-this-in-secret-to-keep-you-out-of-the-loop-820"), (821, "25-millionaires-did-this-in-secret-to-keep-you-out-of-the-loop-821"), (822, "25-millionaires-did-this-in-secret-to-keep-you-out-of-the-loop-822"), (825, "would-you-want-to-change-your-life-for-the-better"), (827, "1250-emails-per-week-or-more-and-more"), (828, "mothers-day-sales-828"), (830, "billion-$-software-industry-will-pay-u-$1000-per-day!"), (831, "im-creating-100-new-millionaires-in-2008-spots-going-fast"), (832, "my-new-100-million-dollar-system-is-creating-millionaires"), (834, "if-you-shop-online-get-paid-for-what-you-buy-free-online-business"), (836, "turn-your-life-around-12-price-this-month"), (844, "get-paid-to-do-surveys-1-paid-survey-program!"), (845, "online-surveys-top-money-making-opportunity"), (843, "wowzza-power!-the-community-of-possibilities"), (846, "take-an-online-survey-and-make-big-money"), (847, "stop!-you-can-make-big-money-with-paid-survey-service"), (849, "free-online-and-rss-advertising-forum"), (852, "free-1-200-free-private-label-rights-articles"), (868, "act-now-for-mothers-day"), (855, "better-than-business-world-list!"), (856, "have-you-placed-your-free-ad-yet"), (857, "the-real-google-slap-a-must-read"), (859, "burnt-out-on-mlm"), (860, "still-looking-for-the-right-home-based-business"), (861, "still-looking-for-a-way-to-stay-home"), (862, "your-new-home-page"), (865, "tired-of-promoting-your-business-with-no-results"), (871, "youve-seen-the-rest-now-try-the-very-best!!"), (872, "youve-seen-the-rest-now-try-the-very-best!!-872"), (873, "is-it-really-possible-to-make-money-online"), (874, "youve-seen-the-rest-now-try-the-very-best!!-874"), (876, "going-green-environmentally-friendly-products"), (878, "t-1-wifi-19-95-mth-and-voip-9-95-mth-available-soon!!"), (880, "get-the-power-to-control-your-destiny"), (883, "its-not-a-scam-or-a-joke-its-karma-in-action"), (884, "karma-in-action-it-turns-your-life-around"), (889, "amazing-new-program-pays-$20-instantly-over-and-over!-889"), (886, "at-first-i-thought-this-was-a-scam-but-boy-was-i-suprised-to-find-out-otherwise!"), (891, "the-best-instant-pay-program-plus-residual!-891"), (892, "amazing-new-program-pays-$20-instantly-over-and-over!-892"), (894, "the-right-place-the-right-time!"), (906, "my-internet-business-or-manual-labor"), (898, "tired-of-all-the-hype"), (907, "the-greatest-question"), (911, "xango-and-myjetstream-is-a-strong-home-based-business"), (912, "xango-and-myjetstream-is-a-strong-home-based-business-912"), (916, "you-reap-what-you-sow!!-$500-$1000-a-day-to-your-doorstep"), (918, "act-now-for-mothers-day-918"), (1340, "hello-members-this-is-ground-floor-and-its-free!!!!!!"), (933, "you-want-more-money"), (934, "is-making-money-online-even-possible"), (938, "affordable-barbados-vacation-rentalaccommodations"), (939, "this-is-the-last-business-you-will-ever-need"), (940, "get-paid-everyday-within-next-24-hours-guaranteed-!!"), (942, "manual-traffic-exchange-site-just-$300-00"), (943, "we-will-be-under-contract-to-pay-you!"), (944, "proven-free-cash-system-no-out-of-pocket-cost!-get-your-share!"), (946, "97-fail-to-make-money-online-join-the-top-3-percent"), (951, "new-forum"), (953, "no-selling!-no-buying!-just-referring-and-making-loadsa-money!"), (957, "free-maplestory-forum"), (958, "glbt-world"), (969, "all-the-e-books-informational-products-and-software-you-could-want"), (973, "20-minutes-a-day-advertising"), (980, "unique-birdhouses-980"), (982, "want-your-business-to-succeed-online"), (984, "thousands-of-members-are-not-wrong!"), (987, "have-you-posted-your-free-ad-yet"), (997, "ezpluginprofit-997"), (1000, "a-very-hot-and-pro-internet-program-is-recruiting-intenationally"), (1002, "this-program-is-new-its-hot-and-it-pays!-1002"), (1006, "act-now-for-mothers-day-1006"), (1010, "amazing-new-program-pays-$20-instantly-over-and-over!-1010"), (1016, "make-money-online-with-sfi"), (1025, "a-must-see-gift-site"), (1027, "brand-name-discount-kidswear"), (1029, "i-buy-promissory-note"), (1034, "heres-an-easy-way-to-collect-on-the-social-networking-craze"), (1038, "get-free-leads-!"), (1041, "amazing-web-tools-!-plus-free-marketing-distribution-rights!"), (1042, "grap-your-free-yaswealth-membership"), (1043, "easy-jv-affiliate-manager-powerful-jv-management-software!"), (1044, "how-to-build-your-list-at-no-cost"), (1045, "quality-software-e-books-scripts-and-much-much-more-1045"), (1047, "free-e-books-and-software"), (1048, "company-guarantees-your-success"), (1055, "make-$1000s-monthly"), (1065, "earn-60-commision-on-everything-!!!"), (1066, "who-else-wants-to-increase-the-value-of-their-products"), (1073, "fr*ee-tools-for-your-freebieforce"), (1080, "please-use-tax-refund-here"), (1088, "$$$$$-we-share-80-of-our-advertising-revenue-with-free-members!!!$$$$$"), (1089, "choke-your-account-with-$20-bills!!"), (1092, "overnight-cash-to-you-with-a-push-of-a-button!"), (1095, "make-$1000-s-with-your-own-online-health-business-1095"), (1096, "make-$1000-s-with-your-own-online-health-business-1096"), (1101, "would-you-like-to-know-how-to-join-the-social-networking-elite"), (1103, "$1-million-dollar-give-away!!!-click-here!"), (1104, "free-phones-rollover!!"), (1111, "show-his-adds-share-his-profits!-1111"), (1112, "show-his-adds-share-his-profits!-1112"), (1116, "20-000-fresh-business-leads-weekly-!-for-free"), (1146, "wowzza-!-just-launched-its-on-fire-!!!-1146"), (1150, "just-$3-to-make-you-a-passive-income!!!"), (1172, "super-savings-here!!-1172"), (1174, "wasting-time-creating-info-products"), (1175, "have-you-posted-your-free-ad-yet-1175"), (1176, "free-advertising!"), (1180, "how-to-make-$6-089-a-month-using-your-computer"), (1184, "the-best-instant-pay-program-plus-residual!-1184"), (1185, "the-best-instant-pay-program-plus-residual!-1185"), (1188, "friend-im-gonna-give-you-master-resell-rights-to-200-products"), (1192, "25-millionaires-did-this-in-secret-to-keep-you-out-1192"), (1201, "100-free-submission-service"), (1202, "get-paid-on-100-of-your-website-traffic"), (1203, "earn-even-more-money-by-using-slashmysearch-as-your-primary-search-engine"), (1204, "making-you-more-money-1204"), (1205, "good-stuff-your-websites-will-like-1205"), (1212, "tired-of-living-pay-check-to-pay-check-!-1212"), (1213, "tired-of-living-pay-check-to-pay-check-!-1213"), (1215, "write-post-card-at-home-and-earn"), (1216, "make-massive-income-from-google"), (1217, "shop-till-you-drop"), (1223, "the-spider-web-marketing-system"), (1229, "the-$30-miracle!!!!-1229"), (1231, "the-new-kind-of-online-community-the-kewljunk-network"), (1232, "ourfuture-the-most-exciting-new-company-in-2008"), (1235, "join-me-and-get-your-share-of-$1-000-000!"), (1238, "show-his-adds-share-his-profits!-1238"), (1239, "show-his-adds-share-his-profits!-1239"), (1287, "reverse-funnel-system-not-working-out-for-you"), (1313, "wooow-nonstop-$5-payments!-1313"), (1314, "$1-577-instant-cash-in-one-day-1314"), (1318, "your-at-the-right-place-the-right-time-do-you-have-the-vision"), (1323, "attention-all-merchants!-affiliates!!!"), (1330, "do-you-want-to-stay-at-home-work-on-internet-earn-real-cash-money-wow"), (1333, "i-will-pay-your-way-in-to-this-genuine-money-maker-work-from-home-business"), (1336, "measly-20-bucks-turns-fast-easy-into-paypal-$!"), (1342, "get-your-free-shares-with-this-unique-program"), (1343, "a-world-of-opportunities-and-solutions-1343"), (1345, "i-will-show-10-people-how-to-become-internet-millionaires(six-months)"), (1346, "i-will-show-10-people-how-to-become-internet-millionaires(six-months)-1346"), (1348, "a-complete-new-concept-in-internet-marketing"), (1355, "work-online-and-make-$1-000-to-$3-500-with-three-hours-of-work"), (1357, "make-lots-of-money-by-just-referring-people-to-your-site-so-easy"), (1359, "httpwww-surethingsuccess-com"), (1361, "httpwww-quickinfo247-com10055469free"), (1362, "make-money-and-help-the-american-red-cross!"), (1365, "httpwww-novelladelcanbre-drinkactweb-com"), (1369, "revolutionary-turnkey-system"), (1372, "the-zion5-profit-club-free-free-free!!!"), (1373, "help-people-drop-weight-120-fruit-drink-recipes-with-sales-letter-only-$9-95"), (1392, "t1-wireless-internet-access-$19-95-per-month-free-signup!!"), (1396, "dont-ever-pay-for-useless-leads-again!"), (1400, "are-u-tired"), (1405, "do-you-have-a-will"), (1411, "exciting-pre-launch-opportunity-be-one-of-the-first-to-get-in!"), (1412, "earn-$2-500-monthly-with-only-6-recruits-ever!"), (1415, "newbie-training-videos!-free!"), (1417, "earn-$10-000-monthly-difficult-1417"), (1418, "earn-easy-$10-000-monthly"), (1421, "the-secret-is-out"), (1426, "choke-your-account-with-$20-bills!!-1426"), (1427, "amazing-new-program-pays-$20-instantly-over-and-over!-1427"), (1428, "1000-fresh-leads-daily!"), (1430, "have-you-heard-about-streamline-magic"), (1432, "catch-in-on-this-free-market"), (1433, "4-x-9-forced-matrix-only-$5-per-month"), (1436, "are-you-tired-of-being-scammed"), (1440, "how-to-turn-your-paypal-acct-into-a-cashbox-*****"), (1441, "learn-how-we-create-income-with-social-networking-*****"), (1442, "our-team-leader-puts-people-in-our-downline-and-closes-for-us!!!"), (1443, "hello-members-this-is-ground-floor-and-its-free!!!!!"), (1446, "make-$5000-plus-every-week"), (1449, "making-money-using-leverage"), (1451, "all-the-bells-and-whistles-of-edc-abunza-pp2w-wrapped-in-a-$50-biz"), (1454, "you-can-earn-$7000-month-on-the-internet!-no-investment-needed!-1454"), (1457, "having-difficulty-earning-$5-040-monthly-1457"), (1465, "free-new-advertising-site-1465"), (1468, "learn-how-to-become-a-social-networking-elite-*****"), (1469, "free-leads-site"), (1470, "yuwie"), (1471, "get-cash-back-at-bigcrumbs-ebay"), (1474, "free-1-200-private-label-articles"), (1477, "invest-$3-for-unlimited-returns"), (1480, "five-effective-ways-to-advertise-your-business-for-free"), (1481, "100-safe-and-definitely-not-a-scam!-$7-000month-potential!-start-free!-1481"), (1484, "100-free-social-network-who-pay-users!"), (1486, "unique-toys-kids-love"), (1490, "join-a-few-good-affiliate-programs-for-free-earn-commissions"), (1491, "affiliate-programs-extra-income-commissions"), (1493, "resellrights-membership"), (1494, "resellrights-membership-1494"), (1497, "own-your-own-franchise-for-less-than-$40monthly"), (1498, "5000-hot-surveyed-leads-every-month-for-$30-for-whole-year!"), (1499, "own-your-own-franchise-for-less-than-$40monthly-1499"), (1500, "email-48000-members-every-24-hours-with-herculist"), (1503, "cash-builders-club-my-digits-pay-me-royally!"), (1504, "start-working-from-home"), (1506, "$1-577-instant-cash-in-one-day-1506"), (1511, "$100-in-1-click!!"), (1523, "free-membership-free-forever!!-ground-floor!!!!"), (1525, "atuall-teamed-up"), (1529, "turn-a-measly-$10-biz-into-$11-377mo-only-if-you-can-*cheat*-off-us"), (1542, "the-easiest-$million!-$20-at-a-time"), (1543, "if-you-were-busy-with-wowzza-you-missed-this!"), (1552, "8-000-people-join-every-week!-see-why-start-free-1552"), (1553, "having-difficulty-earning-$5-040-monthly-1553"), (1554, "$1-577-instant-cash-in-one-day-1554"), (1555, "send-to-37-221-932-people!!!-1555"), (1556, "100-free-social-network-web-site-who-pay-users!-1556"), (1739, "they-are-giving-away-$1-000-000-00-cost-nothing!"), (1561, "free-to-join-free-website-genuine-home-business"), (1563, "lhnprobuilder-and-liberty-health-net!-what-an-awesome-combination"), (1564, "powerful-free-income-generator"), (1566, "you-could-easily-collecting-$100-bills-starting-today!"), (1567, "read-this-if-you-are-tired-of-being-scammed"), (1570, "start-working-from-home-1570"), (1577, "get-100-free-advertising-for-life-takes-a-minute-to-sign-up!!-1577"), (1579, "networl-marketing-to-the-extreme"), (1581, "$15-000-in-15-days"), (1582, "passive-income-anyone"), (1584, "$100-just-for-signing-up!-$25-per-referral!-and-its-free!!-1584"), (1586, "stop-and-consider-this"), (1588, "online-data-typing-job-at-www-365jobs4u-com-scam-free-site"), (1589, "earn-$200-$500-daily"), (1590, "making-money-is-easy-when-you-know-how-take-action!"), (1591, "the-ultimate-home-business-system"), (1592, "easier-than-balancing-your-checkbook!"), (1594, "25-millionaires-did-this-in-secret-to-keep-you-out-1594"), (1595, "25-millionaires-did-this-in-secret-to-keep-you-out-1595"), (1597, "get-100-free-advertising-for-life-takes-a-minute-to-sign-up!!-1597"), (1598, "when-would-now-be-a-good-time-in-your-life-1598"), (1599, "creating-connections-that-count"), (1600, "you-can-earn-$7000-month-on-the-internet!-no-investment-needed!-1600"), (1602, "advertise-earn-together!-1602"), (1603, "profits-on-instant-cash-1603"), (1604, "work-at-home-$200-$300-daily"), (1606, "send-to-37-221-932-people!!!-1606"), (1607, "$1-577-instant-cash-in-one-day-1607"), (1608, "work-at-home-$200-$300-daily-1608"), (1612, "thailand-phuket-resort-cottages-from-30-per-night-1612"), (1613, "your-smart-home-business-that-pays-instantly!-1613"), (1615, "your-smart-home-business-that-pays-instantly!-1615"), (1620, "get-your-free-copy-of-traffic-wizard-on-the-daily-cash-club"), (1621, "free-money-$500-00-sound-ok-to-you"), (1622, "ewen-chias-brilliantly-packaged-home-business-in-a-box"), (1623, "ewen-chias-easiest-mon-ey-youll-ever-make"), (1624, "hottest-new-residual-income-opportunity-online-***-wow!"), (1626, "tired-of-high-gas-prices"), (1627, "well-never-ask-you-for-a-dime!!!!!-free!!!!!!"), (1628, "cruise-to-cash-by-joining-the-1-sales-team!-4-days-left-free-or-$500-off"), (1629, "the-chance-of-a-lifetime-free!!-1629"), (1630, "100-safe-and-definitely-not-a-scam!-$7-000month-potential!-start-free!-1630"), (1631, "get-heavy-trafic-an-easy-way-100-free"), (1633, "the-berry-tree-and-achieve-team-wants-you!"), (1634, "1-time-invest-all-time-income-1634"), (1636, "free-cb-mall"), (1645, "how-about-usd-150-00-a-day"), (1646, "here-is-the-simplest-way-to-the-m0ney"), (1647, "very-simple-but-powerful-advertising-100-free"), (2060, "web-2-0-upgrade-and-a-share-in-a-million-dollars-2060"), (1650, "work-at-home-$200-$300-daily-1650"), (1651, "$1-577-instant-cash-in-one-day-1651"), (1653, "advertise-earn-together!-1653"), (1654, "what-a-great-business-opportunity-earn$$$-daily"), (1655, "what-a-great-program-check-this-out"), (1656, "the-best-busines-opportunities"), (1661, "100-safe-and-definitely-not-a-scam!-$7-000month-potential!-start-free!-1661"), (1662, "web-2-0-and-a-share-in-a-million-dollars-1662"), (1663, "web-2-0-and-a-share-in-a-million-dollars-1663"), (1667, "100-free-advertising-big-click-through-rate-for-your-ads!-1667"), (1669, "photo-wealth-by-jean"), (1671, "teamearners-!-started-today-!-get-in-first-this-time-!-1671"), (1677, "passively-earn-$4-000-monthly-in-1yr-guaranteed"), (1680, "google-free-cash-1680"), (1685, "get-paid-for-every-visitor-to-your-website-or-blog-1685"), (1686, "get-paid-for-every-visitor-to-your-website-or-blog-1686"), (1687, "get-paid-for-every-visitor-to-your-website-or-blog-1687"), (1689, "free-e-books-will-teach-you-how"), (1690, "$1-577-instant-cash-in-one-day-1690"), (1691, "the-chance-of-a-lifetime-free!!-1691"), (1692, "send-to-37-221-932-people!!!-1692"), (1694, "want-millions-of-people-send-you-$20-each-(not-mlm)"), (1695, "can-a-website-i-own-really-generate-$1-million-dollars-you-bet!-1695"), (1696, "how-to-get-thousands-of-people-to-send-you-$20-each!"), (1697, "thousands-of-people-worldwide-will-want-to-send-you-$20-each!-1697"), (1698, "own-a-website-that-is-a-$20-magnet!"), (1701, "12-free-streams-of-income!"), (1705, "freebie-force-new"), (1708, "general"), (1709, "here-is-the-simplest-way-to-earn-m0ney-start-free!"), (1710, "get-100-free-advertising-for-life-takes-a-minute-to-sign-up!!-1710"), (1715, "turn-$10-into-$40000-again-and-again"), (1716, "turning$15to$25000"), (1717, "discover-how-tthe-home-base-entrepreneurs-are-making-vast-sums-of-money"), (1718, "advertise-earn-together!-1718"), (1721, "discover-how-to-obtain-luxury-vacations-at-whole-sale"), (1725, "mail-me-1725"), (1731, "no-miracles-no-secrets-just-a-great-opportunity-*****"), (1732, "never-buy-leads-and-cold-calling-again!"), (1736, "the-best-of-the-both-worlds-$20-bills-residual-income!-1736"), (1746, "flood-your-account-with-$98-payments"), (1753, "incredible-timing-with-a-recession-proof-product!!!"), (1758, "build-the-list-of-your-dreams!-for-freeeeeeee!-1758"), (1786, "beat-the-odds-by-changing-your-income-opportunities"), (1803, "web-2-0-upgrade-and-a-share-in-a-million-dollars-1803"), (1808, "my-new-100-million-dollar-system-is-creating-millionaires-1808"), (1813, "creating-residual-income"), (1818, "imagine-simply-clicking-the-send-button!"), (1824, "get-paid-for-every-visitor-to-your-website-or-blog-1824"), (1827, "private-millionaire-club"), (1838, "i-can-guarantee-you-get-paid"), (1855, "the-free-online-cash-system"), (1861, "you-could-make-$1000-in-the-next-24-hours"), (1875, "earn-revenue-on-100-of-your-blog-or-website-traffic-1875"), (1901, "never-ending-success!-what-more-can-you-ask-for"), (1914, "the-real-truth-of-internet-jobs-1914"), (1917, "post-your-ads-at-my-high-traffic-ad-board-100-free-1917"), (1938, "great-ptc-sign-up-bonus-$1-00-clicks-up-to-$0-05-paying!"), (1949, "my-site-listing-places-to-make-money-with-at-home"), (1957, "upgrade-the-entire-internet-share-in-a-million-dollars-1957"), (1968, "article-marketing-made-easy"), (1973, "loose-13$-1973"), (1980, "rss-feeds-software-1980"), (1993, "free1up-the-how-and-why"), (1994, "mammoth-list-builder-1994"), (2002, "affordable-healthcare-for-the-entire-family-from-asi-healthcare"), (2003, "free-motorola-cell-phone-from-govios!"), (2004, "im-not-promising-anything"), (2013, "web-2-0-upgrade-and-a-share-in-a-million-dollars-2013"), (2023, "want-massive-downlines-and-100-retention-for-your-mlm-business"), (2031, "rich-from-home-heres-how-you-do-it-today!"), (2032, "this-company-is-exploding-very-small-investment!"), (2033, "no-hype-unique-yet-simple-income-system-*****"), (2039, "earn-$500-daily-round-the-clock-even-when-u-sleep-join-www-365jobs4u-com"), (2040, "i-earn-a-minimum-of-$200-daily-with-my-google-adsense-site-great-job-from-www-3"), (2041, "life-time-income-from-google-adsense-money-back-guarantee-at-www-365jobs4u-com"), (2042, "no-fraud-no-cheating-no-scam-a-complete-legitimate-job-www-365jobs4u-com"), (2043, "grab-the-only-money-making-machine-website-from-www-365jobs4u-com-guaranteed-ea"), (2044, "leads-and-the-spider-web-marketing-lead-machine"), (2059, "get-heavy-trafic-an-easy-way-100-free-2059"), (2061, "web-2-0-upgrade-and-a-share-in-a-million-dollars-2061"), (2066, "xziex-water-generators-solve-the-growing-water-crisis-take-our-tour!!-2066"), (2071, "right-time-right-place-get-in-at-the-start"), (2076, "no-cost-no-fee-no-upgrade-make-money-now!"), (2084, "you-can-buy-any-car-30-50-off!-(heres-how)-2084"), (2085, "you-can-buy-any-car-30-50-off!-(heres-how)-2085"), (2087, "over-8-000-people-join-every-week!-see-why-start-free-2087"), (2088, "100-free-advertising-big-click-through-rate-for-your-ads!-2088"), (2093, "ill-share-with-you-in-5-minutes-how-you-can-earn-a-fortune!"), (2094, "(*-*)-new-self-funding-opportunity-(*-*)"), (2101, "free-1-200-private-label-rights-articles-to-do-as-you-please-2101"), (2102, "need-products-to-sell-on-ebay-2102"), (2104, "it-works!-paysforever-pays-instantly-forever!"), (2111, "turn-$20-into-$2k-a-wk"), (2112, "driven-rapid-wealth"), (2114, "two-good-ptc-sites!-join-today!"), (2115, "100-safe-and-definitely-not-a-scam!-$7-000month-potential!-start-free!-2115"), (2120, "$1-577-instant-cash-in-one-day-2120"), (2121, "the-chance-of-a-lifetime-free!!-2121"), (2122, "advertise-earn-together!-2122"), (2125, "stop-the-internet-maddness!-2125"), (2128, "join-the-worlds-largest-business-network-for-free!"), (2130, "want-to-make-passive-income-while-you-sleep"), (2134, "your-asense-advantage"), (2148, "show-biz-is-our-biz"), (2150, "incomes-opportunity-six-figure-yearly"), (2168, "i-will-pay-for-your-membership-best-opp-!!!"), (2177, "new-income-opportunity-with-unique-guaranteed-automatic-pay-plan"), (2189, "is-this-an-easy-money-scam"), (2208, "as-good-as-it-gets-plus-the-ad-system"), (2209, "who-flew-over-the-cockoo-nest-!!!"), (2257, "better-health-more-wealth"), (2260, "free-cruise-for-military-members-and-their-families!!!"), (2262, "what-do-you-pay-for-a-gallon-of-gas"), (2275, "whole-web2-0-upgrade-and-a-share-in-a-million-dollars-2275"), (2276, "whole-web2-0-upgrade-and-a-share-in-a-million-dollars-2276"), (2280, "advertise-to-millions-daily-lifetime-membership-only-$4-99-!!!"), (2290, "own-a-website-that-is-a-$20-magnet!-2290"), (2297, "$$$-free-$-100-for-signing-up-only-this-is-no-joke-!!-you-have-to-try-it!"), (2300, "receiving-$500-$3500-for-returning-phone-calls!"), (2315, "whole-web2-0-upgrade-and-a-share-in-a-million-dollars-2315"), (2325, "all-in-1-shopping-website-2325"), (2328, "broke-to-blessed-in-90-days-2328"), (2334, "super-savings!"), (2341, "greetings-from-china-supplier"), (2346, "the-spiderweb-marketing-system"), (2350, "100-passive-money-back-guarantee-opprotunity!"), (2357, "making-money-writing-short-articles"), (2358, "free-traffic-exchange-sites"), (2362, "turn-$9-95-a-month-into-hundreds-of-dollars-in-savings-and-get-paid-to-2362"), (2364, "whole-web2-0-upgrade-and-a-share-in-a-million-dollars-2364"), (2365, "whole-web2-0-upgrade-and-a-share-in-a-million-dollars-2365"), (2371, "gas-the-price-isnt-going-down-anytime-soon!!!-think-about-it"), (2378, "the-best-one-time-$6-investment-youll-ever-make!"), (2379, "get-$200-000-worth-of-products-for-$39-with-full-master-resell-rights"), (2380, "new-way-to-advertise-and-build-your-list-for-free!"), (2384, "free-advertising-with-great-speed-2384"), (2386, "we-give-away-personal-referrals-want-some-2386"), (2387, "we-give-away-personal-referrals-want-some-2387"), (2388, "free-advertising-on-the-toplinks4u-co-uk-pr2-link-directory"), (2389, "free-script-advertising-on-the-topscripts4u-com-pr3-directory-portal"), (2392, "thinking-about-starting-a-home-business-2392"), (2393, "all-in-1-shopping-website-2393"), (2397, "shopping-made-easy"), (2398, "get-your-own-fre*e-personal-shopping-mall"), (2399, "if-you-want-to-save-time-and-money"), (2400, "rake-in-more-cash-with-any-size-opt-in-email-list!"), (2401, "free-discover-how-to-make-your-salescopy-stand-out"), (2404, "welcome-home"), (2406, "legitimate-work-from-home-jobs"), (2417, "anyone-heard-of-web-2-0-this-offer-is-to-good-to-pass"), (2419, "sell-ups-inverter-and-battery"), (2422, "will-you-grab-these-30-awesome-website-templates-f*r*e*e-today"), (2423, "12-streams-of-passive-income-free-no-gimicks-facts-only"), (2424, "followup-to-the-12-streams-of-passive-income-marriage-made-in-heaven"), (2429, "a-new-site-with-a-new-e-product!"), (2430, "gt-new-computer-forum-lt"), (2435, "people-helping-people-succeed"), (2444, "great-gifts-more-2444"), (2450, "real-honest-opportunity-huge-income-potential!-start-free!-2450"), (2454, "mobile-downloads-let-your-mobile-do-the-talking"), (2459, "high-tech-solution-in-safelist-email-marketing-check-this-out!"), (2460, "best-thing-since-sliced-bread-2460"), (2464, "amazing-program-pays-you-instantly"), (2465, "instant-free-website-submission"), (2470, "earn-$5-to-$450-by-giving-away-this-free-system"), (2471, "russian-brides"), (2477, "join-free-and-make-money-!"), (2478, "unlimited-income-potential-free-tips-training!-start-free!-2478"), (2479, "get-free-advertising-for-life-even-if-you-dont-promote!-2479"), (2483, "best-thing-since-sliced-bread-2483"), (2489, "private-label-rights-money-making-secrets"), (2496, "digital-products-company"), (2497, "sure-fire-way-to-riches!-start-*free*-2497"), (2500, "hdd-enclosure-(s250d)"), (2501, "hdd-enclosure-safe-design-(s250v)"), (2502, "hdd-enclosure-8cm-fan-(s350m)"), (2503, "hdd-enclosuretemperature-control-(es350m)"), (2504, "digital-photo-frame-super-slim-dpf151"), (2505, "digital-photo-frame(dpf351)"), (2506, "3-5-inch-digital-photo-frame-mp3-mp4-dpf353"), (2507, "3-5-inch-digital-photo-framemp3-dpf355"), (2508, "digital-photo-frame-clock-dpf181"), (2511, "something-hot!!-new-get-in-early!!"), (2512, "hdmi-hdd-media-player-p306hdmi"), (2513, "hdd-media-player-divxmp3mp4dvd-playback-p308"), (2514, "hdd-media-player-8cm-fan-p306tv-b"), (2515, "hdd-media-player-hdmi-control-key-vga-p206hdmi"), (2516, "rmrmvb-mp5-media-player-b8"), (2517, "digital-video-recorder-time-shifting-dvr301-s"), (2518, "digital-video-recorder-dvr201-t"), (2519, "digital-photo-bank-support-all-raw-format-p1-raw"), (2520, "portable-media-player-3-mega-camera-p18"), (2521, "mp4-tv-playeranalogue-tv-k2803"), (2522, "the-slimmest-mp4-player-v1"), (2524, "darn-cow-keeps-givin-that-milk-!!!"), (2526, "expose-your-ad-to-tens-of-thousands-of-people-free"), (2527, "fast-growing-business-spreading-worldwide"), (2528, "company-that-does-most-of-the-work-for-you"), (2530, "free-work-from-home-site"), (2533, "great-birdhouses-candleholders"), (2535, "what-a-great-oppportunity-check-this-out"), (2540, "join-the-team"), (2555, "save-big-at-the-pumps!!!-new-technology"), (2544, "post-your-ads-here-for-free!!-2544"), (2545, "how-two-geeks-earn-$4-751-to-$15-000-per-month-with-a-2545"), (2547, "how-two-geeks-earn-$4-751-to-$15-000-per-month-with-a-2547"), (2549, "get-free-hits-to-your-site-for-life!-no-recruiting-needed!"), (2557, "ww~~-discount-copy-of-~craigslist-marketer-pro!-2557"), (2554, "if-you-could-would-you-ever-work-again"), (2552, "everyone-will-want-this-software-make-them-get-it-from-you"), (2558, "get-your-ads-seen-for-free-all-over-the-internet!-no-recruiting-needed!"), (2559, "over-8-000-people-join-weekly-and-you-can-profit-from-that!"), (2560, "nuke-your-competition-off-google-with-se-nuke-2560"), (2562, "nuke-your-competition-off-google-with-se-nuke-2562"), (2563, "$1-randomizer-just-launched!-2563"), (2567, "get-real-2567"), (2571, "get-paid-to-drive-your-car-wear-t-shirts-and-more!-2571"), (2572, "$1-577-instant-cash-in-one-day-2572"), (2573, "send-to-37-221-932-people!!!-2573"), (2574, "our-unselfish-system-gives-away-personal-referrals!-2574"), (2575, "best-thing-since-sliced-bread-2575"), (2579, "investor-tipster"), (2595, "lets-all-riot-in-the-streets"), (2601, "dog-food-poison!-2601"), (2604, "3-hour-profits-rank-1-at-bbbreview-org"), (2609, "nuke-your-competition-off-google-with-se-nuke-2609"), (2617, "what-exactly-are-internet-jobs-or-2617"), (2632, "neat-stuff!-2632"), (2625, "boomerang-village-cottages-beautiful-resort-in-kata-beach-2625"), (2626, "free-advertising-for-you-for-life")
File: /home/freeadzf/public_html/Sources/PrettyUrls-Filters.php
Line: 274
It's a long one.
Thanks for the help!
Deathgame3:
Quotehi i need help i installed pretty url on my 1.14 smf forum, which has a plus gray theme, but something is messed up, at the top of every page theres some kinda of codes ->
Quote
// Pretty URLs mod // Interface texts $txt['pretty_admin_menu'] = 'Pretty URLs'; $txt['pretty'] = array( 'url' => 'Pretty URL', 'url_desc' => 'A URL fragment used for boards and topics.
Note: this will be processed as only a limited set of characters are allowed - other characters will be converted. Leave blank to use the board name.
', ); // Settings descriptions $txt['pretty_board_lookup'] = 'A serialized array of URL => ID_BOARD pairs, used for processing $_GET[\'board\']. There can be more than one URL for each board.'; $txt['pretty_board_urls'] = 'A serialized array of ID_BOARD => URL pairs, used for generating pretty replacement URLs.'; $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.'; $txt['pretty_filters'] = 'A serialized array of filter data.'; $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the pretty_filters setting instead.'; $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as $boardurl.';
and it doesnt change the url, it still like ---> "index.php?board=19.0"
can you please help me, i really need this to work, thnx
Danni:
QuoteLooks like the language entries were added incorrectly to modifications.english.php. Make sure that there's only one ?> and that it's the very last thing in the file.
Hi, im not reallt good with this php stuff, but u said the language codes were incorrectly added, i checked and it was only one code there, but i want this to work on my PLUS GRAY theme not the default theme, and the PLUS GRAY theme doesn't have modifications.english.php , can u somehow give me specific instructions for that theme, it would be a gr8 gr8 help, thnx
Make this change: http://www.simplemachines.org/community/index.php?topic=146969.msg1576630#msg1576630
And please copy the default theme's modifications.english.php here please.
Quote from: Dannii on June 12, 2008, 09:55:48 PM
Make this change: http://www.simplemachines.org/community/index.php?topic=146969.msg1576630#msg1576630
And please copy the default theme's modifications.english.php here please.
Is this for our problem also?
Thanks
I went to uninstall this mod and I receive the error here:
Execute Modification ./Sources/Display.php Test failed
I opened up the file and tried working with the file and adding the lines
// 301 redirects
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
{
$filterData = unserialize($modSettings['pretty_filters']);
if ($filterData['topics']['enabled'])
{
$url = 'topic=' . $topic . '.' . (isset($_REQUEST['start']) ? $_REQUEST['start'] : '0') . (isset($_REQUEST['prev_next']) ? ';prev_next=' . $_REQUEST['prev_next'] : '') . (isset($_REQUEST['topicseen']) ? ';topicseen' : '') . (isset($_REQUEST['all']) ? ';all' : '') . (isset($_REQUEST['viewResults']) ? ';viewResults' : '');
redirectexit($url, false, true);
}
}
But it was no good. Can I upload my file or something so you can look at it?
Quote from: partners on June 12, 2008, 10:06:59 PMIs this for our problem also?
Yes, I should have added names sorry.
Quote from: ruckstande on June 13, 2008, 07:44:40 AM
I went to uninstall this mod and I receive the error here:
Execute Modification ./Sources/Display.php Test failed
I opened up the file and tried working with the file and adding the lines
// 301 redirects
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
{
$filterData = unserialize($modSettings['pretty_filters']);
if ($filterData['topics']['enabled'])
{
$url = 'topic=' . $topic . '.' . (isset($_REQUEST['start']) ? $_REQUEST['start'] : '0') . (isset($_REQUEST['prev_next']) ? ';prev_next=' . $_REQUEST['prev_next'] : '') . (isset($_REQUEST['topicseen']) ? ';topicseen' : '') . (isset($_REQUEST['all']) ? ';all' : '') . (isset($_REQUEST['viewResults']) ? ';viewResults' : '');
redirectexit($url, false, true);
}
}
But it was no good. Can I upload my file or something so you can look at it?
Sure.
Hi
I m using smf 1.15 and tufats flashchat module
In menu I have the chat button
using http://mbtcg.eu/btforum/index.php?action=chat works fine
using the modified link: http://mbtcg.eu/btforum/chat/ chat window wont open, the flash part does not get loaded
any idea?
I'm guessing it's using relative URLs, but I can't check cause it's asking me to log in.
i found a script call for /chat/javascript/activat...js
reemoved the word CHAT...
cause in apache log it showed now a double chat...only for one call..after removing it works...
Quote from: Dannii on June 14, 2008, 06:40:52 AM
Quote from: partners on June 12, 2008, 10:06:59 PMIs this for our problem also?
Yes, I should have added names sorry.
Quote from: ruckstande on June 13, 2008, 07:44:40 AM
I went to uninstall this mod and I receive the error here:
Execute Modification ./Sources/Display.php Test failed
I opened up the file and tried working with the file and adding the lines
// 301 redirects
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
{
$filterData = unserialize($modSettings['pretty_filters']);
if ($filterData['topics']['enabled'])
{
$url = 'topic=' . $topic . '.' . (isset($_REQUEST['start']) ? $_REQUEST['start'] : '0') . (isset($_REQUEST['prev_next']) ? ';prev_next=' . $_REQUEST['prev_next'] : '') . (isset($_REQUEST['topicseen']) ? ';topicseen' : '') . (isset($_REQUEST['all']) ? ';all' : '') . (isset($_REQUEST['viewResults']) ? ';viewResults' : '');
redirectexit($url, false, true);
}
}
But it was no good. Can I upload my file or something so you can look at it?
Sure.
Here you go.
There's two copies of the code you tried adding, and quite a lot else is messed up too. If you can go back to the original file I can add it in for you.
Quote from: Dannii on June 15, 2008, 08:09:51 PM
There's two copies of the code you tried adding, and quite a lot else is messed up too. If you can go back to the original file I can add it in for you.
Sorry to sound like a complete ass but how do I go back? I've kind of been thrust into this board admin thing with little to zero knowledge of this stuff so I'm kind of like a baby with all this crap. Where can I pull the file from? If there is anything else you need that you'd be willing to help out with I'd love to hear it. Everything was working good until I tried to install something called "Simple Portal" and then that just messed everything up.
Get it from the smf install or upgrade package if you need to. Unless you've installed other mods that have modified it...
0.8.4 is up now and has fixes for common problems in both 1.1 and 2.0. Hopefully it will support beta 4 too, unless things change a lot before it's released.
Thanks i upgraded latest version.
Quote from: Dannii on June 16, 2008, 01:35:03 AM
Get it from the smf install or upgrade package if you need to. Unless you've installed other mods that have modified it...
I'll look today. Thanks.
Here it is, I just downloaded the file before a couple of mods. I want to correct the error so I can remove it and then remove a few other mods and start over.
Please Help my forum is down and I have gone to the backup directory and restored all files didjn't work.
everything happened when I installed pretty urls
What I just did was restore the files in the package backup directory but I forgot the source directory restore now its working thank god
Okay... good to hear. What was the problem? Anything in the error log?
ruckstande, you need to fix the Source file, not the template.
Hmmm, okay. I'll see what I can do. Like I said, I'm not familiar with this really so I don't want to risk causing more problems by doing something wrong.
You posted it here http://www.simplemachines.org/community/index.php?topic=146969.msg1579845#msg1579845 but it seemed corrupted. That's why I suggested starting again from fresh files. Do you have any other mods installed? I'd really recommend doing a full upgrade just to be sure.
Quote from: Dannii on June 17, 2008, 08:59:35 AM
You posted it here http://www.simplemachines.org/community/index.php?topic=146969.msg1579845#msg1579845 but it seemed corrupted. That's why I suggested starting again from fresh files. Do you have any other mods installed? I'd really recommend doing a full upgrade just to be sure.
I have a ton of mods installed. You say perform a full upgrade, you mean just download the 1.1.5 upgrade package and install it? That will wipe out my mods right? I don't necessarily have a problem with that just as long as wiping out the mods will make the site stable again and then I can reinstall the mods no problem.
Yes wiping the mods by running the upgrade package will stabilise your site. If you choose to do that make a full backup (files and DB) before hand, and when you start installing mods again, try installing this one first just so that you can check it will work. It may be that this and another mod are actually incompatible. If that's the case I'll have a look at the problem to see what can be done to reconcile them.
Oh, and if you have any custom themes, the upgrade package won't touch them so they'll still work as before.
Got ya. Okay, I think I'll set some time aside and do that this weekend. I don't mind reinstalling the mods I just pray I don't mess up the posts or user database.
Make a backup of the database. This mod won't touch the posts or users tables, but even if something does go wrong you'll be able to restore it.
Quote from: Dannii on June 17, 2008, 01:03:54 PM
Make a backup of the database. This mod won't touch the posts or users tables, but even if something does go wrong you'll be able to restore it.
Will do, thank you. I have it scheduled for Sunday. I'll post how the pretty URL installs.
Hi!
I have a small problem with some link like: hxxp;//mysite,xx/forum/guida-all'uso-di-ciclamab/
This link in php stats as been converted to:
hxxp;//mysite,xx/forum/modemrouter/guida-all\'uso-di-ciclamab/
after a click converted to:
hxxp;//mysite,xx/forum/modemrouter/guida-all%5C'uso-di-ciclamab/
-
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg374.imageshack.us%2Fimg374%2F1079%2Flinkiv4.gif&hash=92b4144bd1b460c49bc99dd1f8e7a430872a2049)
-
Maybe this problem is of php-stats but.... how i can convert ' to this - or maybe annul...
(eg: guida-all-uso or guida-alluso)?
Thanks in advance, DarkWolf :)
Do links like hxxp;//mysite,xx/forum/modemrouter/guida-all\'uso-di-ciclamab/ or hxxp;//mysite,xx/forum/modemrouter/guida-all%5C'uso-di-ciclamab/ appear in your forum?
QuoteMaybe this problem is of php-stats but.... how i can convert ' to this - or maybe annul...
(eg: guida-all-uso or guida-alluso)?
Remove the row starting with chr(18) or "\x12" from Subs-PrettyUrls.php. You'll have to manually delete rows from the pretty_topic_urls table to fix exisiting topics.
Test this please: http://darkwolf.altervista.org/forum/modemrouter/ and make right click to
Guida all'uso di Ciclamab-
This is my results (with firefox):
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg362.imageshack.us%2Fimg362%2F7660%2Flink2lz3.gif&hash=8635c7065d34e0b3955509d31825b3a87fd53fe0)
Quote from: Dannii on June 17, 2008, 08:18:42 PMYou'll have to manually delete rows from the pretty_topic_urls table to fix exisiting topics.
i have your precedent patch to run with maintenance ;)
-
IMHO is best to remove all ' and " from url :)
QuoteTest this please: http://darkwolf.altervista.org/forum/modemrouter/ and make right click to Guida all'uso di Ciclamab
Looks fine to me, must be a problem with PHP stats.
Quotei have your precedent patch to run with maintenance ;)
Ahh yep of course. I forgot that.
Quote from: Dannii on June 17, 2008, 08:40:39 PM
QuoteTest this please: http://darkwolf.altervista.org/forum/modemrouter/ and make right click to Guida all'uso di Ciclamab
Looks fine to me, must be a problem with PHP stats.
Strange...
I have removed: chr(18) => array ("'", '"', 'ﺀ', 'ع'),
and now is good but i have simil problem with title and
" (only board title, topic is good):-[
-
Edit!
I have test to rename board (for remove " from title) and also after a maintenance url remain the same, maybe your precedent patch works only with topic url... can you send me a fix to refresh also board title?
Thanks :)
-
Riedit:
I have see now your last 0.8.4, maybe tomorrow i test to upgrade ;)
If you want to change board URLs I suggest upgrading to the latest 0.9 snapshot which has an interface to do so.
OK thanks!
Tomorrow i test all ;)
(I have test to uninstall 0.8.3 now but receive an error with ./Sources/Display.php :-\) in any case isn't a problem, but now i go to sleep.
First of all this is a GREAT mod. Thank you very much for all your hard work. ;D
Everything is working fine, but there's one thing I'd like to change and I've gone through almost all the pages in this topic and can't find a clearly stated way of doing it. All I want to do is remove "forum/" from the pretty urls.
Example:
http://www.website.com/board/topic/
Instead of
http://www.website.com/forum/board/topic/
I tried changing the pretty_root_url (in the smf_settings db), then deleted all the entries in the pretty_urls_cache, and then ran the maintenance script. Afterwards, the URLs looked right but all the pages were 404. I'm guessing it has something to do with the .htaccess file but I'm not sure.
Sorry, I'm more of a designer than a programmer. LOL ;D Any help would be greatly appreciated. Thanks again.
Is your forum actually in website.com/forum/?
Yes. ;D
Well that won't work... if you want to get rid of /forum/ from your URLs you'll have to move the whole thing to the root of your domain.
D'oh! Unfortunately I can't move it to the top directory.
http://www.isara.org
I thought there was a way to remove sections of a URL using .htaccess.
I notice 2 issues since installing pretty urls and maybe someone can help me.
1. Under Forum Maintenance: Optimize all tables to improve performance when enabling this it only optimize very few files now.
2. Forum Maintenance - Backup Database I am unable to download for back up.
I am using SMF 1.1.5 Pretty URLs 0.8.3
I don't think either of those would be impacted by this mod. How are you sure there's a problem?
The only information I have is after installing pretty urls when trying to get back up I get this.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
If your internal test shows it is not pretty url mod causing this I certainly do apologize.
But this is the only change made to my forum when the error keeps coming up.
Thank you for your time.
Hmm, I'll look into it sometime.
Another issue this mod did effect is FlashChat Integration. I am not sure if your aware of this but I do want to report it to you.
Pretty urls is a great mod!! I need to work out the small bug I have.
If a mod like FlashChat isn't working I'd guess that's cause it's using relative URLs.
I successfully install the MOD and all is fine except that all my sub-domains become inaccessible (got code=DNS_HOST_NOT_FOUND] The host name was not found during the DNS lookup)
guess change in .htaccess then I restore backup file, subdomain become accessible and forum start to give 404 errors.
Pls is there any way I can get around this.
.htaccess shouldn't be change anything to do with the DNS... how are your subdomains set up?
Hie Danni,
I have a forum http://www.stanaca.com with pretty urls and working fine.
When i maked a new forum on http://www.rkyboard.com pointed to http://www.stanaca.com/www.rkyboard.com as alia, the pretty urls not working please check it.
How can i slove this
Quote from: Dannii on June 19, 2008, 09:33:31 PM
.htaccess shouldn't be change anything to do with the DNS... how are your subdomains set up?
I have also problem related to this issue. subdomains are pointed to subdirectories and the .htaccess file affecting all subdirectories.
Hmm try adding a RewriteCond to check if the domain is actually for stanaca.com.
Quote from: Dannii on June 20, 2008, 06:23:53 AM
Hmm try adding a RewriteCond to check if the domain is actually for stanaca.com.
What is RewriteCond and how can can i add this
Try putting this after the RewriteEngine on line:
RewriteCond %{HTTP_HOST} stanaca\.com [NC]
Where i put this, in stanaca.com or stanaca.com/www.rkyboard.com(www.rkyboard.com) and what will change after doing this?
In the root, where Pretty URLs is.
ok, i edited but nothing changed. what i do now?
Hmm I'm not sure. You'd have to ask someone with experience for the way you've set up subdomains. I've always set up subdomains independently of the root domain.
Hey, this is fantastic! Just like what I was looking for!
I just put this mod on my forum and now it's working just... great!! ;D
But I do have some notes about this :
Quote from: Chadrew on June 11, 2008, 07:37:51 AM
How do I re-make (update) board URL? Emptying the smf_pretty_urls_cache table has no effect.
Quote from: Dannii on June 11, 2008, 08:01:54 AM
Upgrade to the latest snapshot which adds an admin page to change the URLs.
I was facing the same prob. Running maintenance tasks from the new Prettyurls at the Admin page didn't work, nor emptying pretty_urls_cache and pretty_topic_urls. But I finally figure it out. What I did was clearing the prettyurls data at smf_settings and then run the maintenance tasks again. Could someone please share what to do fix to this without clearing the db manually?
Second note, it would be great if it works for TinyPortal too ;D
Great work! Thanks a lot for making this mod!
QuoteI was facing the same prob. Running maintenance tasks from the new Prettyurls at the Admin page didn't work, nor emptying pretty_urls_cache and pretty_topic_urls. But I finally figure it out. What I did was clearing the prettyurls data at smf_settings and then run the maintenance tasks again. Could someone please share what to do fix this without clearing the db manually?
As I said, the 0.9 snapshots have an admin interface.
QuoteSecond note, it would be great if it works for TinyPortal too ;D
Should be working in 0.9...
Quote from: Dannii on June 23, 2008, 08:03:47 AM
As I said, the 0.9 snapshots have an admin interface.
I have tried that but it didn't work. Running maintenance tasks via admin interface won't update boards urls
QuoteShould be working in 0.9...
Did you mean TP 0.9...? I'm using SMF 1.1.5, TP 0.98 and Prettyurls 0.8.4.
All the urls under the boards and topics work just great except for TP (index.php?cat=xx and index.php?page=xx).
My forum is www.forumsains.com in case you want to take a look.
Thanks again
How do I do this?
QuoteRunning maintenance tasks via admin interface won't update boards urls
You don't do it through maintenance. When you go to the manage boards page there's links for you to edit the board URLs.
QuoteDid you mean TP 0.9...? I'm using SMF 1.1.5, TP 0.98 and Prettyurls 0.8.4.
No, pretty URLs 0.9, the latest snapshot from the google code download page. You also need to upgrade to TP 1.0.5.
Is it possible to get this to work with SMF 1.1.5+Joomla+Orstio's bridge?
I'm sure it is, though I have no idea how.
Hello,
I'm trying to install Pretty URLs 0.8.4 on my website (SMF 1.1.5 + TP 1.0.5) but I get the following errors:
Installations actions for "Pretty URLs - Base":
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification SMF1-1/Sources.xml Modification parse error
2. Execute Modification - Modification parse error
3. Execute Modification SMF1-1/BoardsAndTopics.xml Modification parse error
4. Execute Modification - Modification parse error
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
7. Execute Modification ./Themes/default/languages/Modifications.french.php Test successful
8. Extract File ./Sources/PrettyUrls.php
9. Extract File ./Sources/PrettyUrls-Filters.php
10. Extract File ./Sources/Subs-PrettyUrls.php
11. Extract File ./Themes/default/PrettyUrls.template.php
12. Extract Tree ./Themes/default/pretty
13. Extract File ./Themes/default/languages/PrettyUrls.english.php
14. Extract File ./Themes/default/languages/PrettyUrls.french.php
15. Execute Code SMF1-1/install.php
Any idea?
Cheers,
Okay, so I have been trying to figure this out for some time now, and I just can't do it. I have a few installations of SMF 1.1.5 that I have been trying to get this mod to work on. I have two dev boards that this mod is working great on, and then I have a production site that it will not work on. The rewrites do occur as to where topics are redirected to the pretty url, but when hovering links they are not rewritten in the status bar. Both of my dev boards work 100%, redirects in the address and status bar. However, my productions site simple doesn't rewrite to the status bar. One of the dev sites is the next version to the production site and has no issues at all. I can't figure out for the life of me why it will work on one site and not the other. All sites are hosted on the same server.
Here are the urls:
Not working:
http://www.cbrextreme.com/forum/
Working:
http://dev.cbrextreme.com/forum/
What are some things I can check that would cause this issue? I have tested with SMF SEF URLs enabled and disabled. The dev sites it works on both have SMF SEF URLs enabled.
Quote from: AoS on June 24, 2008, 10:26:02 AM
Hello,
I'm trying to install Pretty URLs 0.8.4 on my website (SMF 1.1.5 + TP 1.0.5) but I get the following errors:
Installations actions for "Pretty URLs - Base":
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification SMF1-1/Sources.xml Modification parse error
2. Execute Modification - Modification parse error
3. Execute Modification SMF1-1/BoardsAndTopics.xml Modification parse error
4. Execute Modification - Modification parse error
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
7. Execute Modification ./Themes/default/languages/Modifications.french.php Test successful
8. Extract File ./Sources/PrettyUrls.php
9. Extract File ./Sources/PrettyUrls-Filters.php
10. Extract File ./Sources/Subs-PrettyUrls.php
11. Extract File ./Themes/default/PrettyUrls.template.php
12. Extract Tree ./Themes/default/pretty
13. Extract File ./Themes/default/languages/PrettyUrls.english.php
14. Extract File ./Themes/default/languages/PrettyUrls.french.php
15. Execute Code SMF1-1/install.php
Any idea?
Cheers,
There's a problem with your package manager... check that all the permissions are correct, and maybe try making a temp directory yourself, and then copying all the files into it.
Quote from: RRasco on June 24, 2008, 05:00:59 PM
Okay, so I have been trying to figure this out for some time now, and I just can't do it. I have a few installations of SMF 1.1.5 that I have been trying to get this mod to work on. I have two dev boards that this mod is working great on, and then I have a production site that it will not work on. The rewrites do occur as to where topics are redirected to the pretty url, but when hovering links they are not rewritten in the status bar. Both of my dev boards work 100%, redirects in the address and status bar. However, my productions site simple doesn't rewrite to the status bar. One of the dev sites is the next version to the production site and has no issues at all. I can't figure out for the life of me why it will work on one site and not the other. All sites are hosted on the same server.
Here are the urls:
Not working:
http://www.cbrextreme.com/forum/
Working:
http://dev.cbrextreme.com/forum/
What are some things I can check that would cause this issue? I have tested with SMF SEF URLs enabled and disabled. The dev sites it works on both have SMF SEF URLs enabled.
You've enabled all the correct filters?
Quote from: Dannii on June 24, 2008, 10:18:41 PM
You've enabled all the correct filters?
You mean enable url rewriting and each type of rewrite? If so, yes I have. I have everything checked in the ACP, I have run maintenance, and emptied the pretty_url_cache table manually.
Anything in the error log?
Nothing that stands out. Just this, but I know it is not relevant.
8: Undefined index: pretty_enable_filters
Try enabling the mod again... looks like the changes weren't saved.
I did disable the mod for now, until I can get it working. Possibly that is why we are seeing this?
Possibly.
Add a row to the smf_settings with a variable of 'pretty_enable_filters' and a value of '0'.
Quote from: Nao 尚 on June 03, 2008, 03:14:39 AM
Quote from: Dannii on June 02, 2008, 09:42:23 PM
QuoteI believe it is only needed when your rewrite stuff has a query string by itself.
Hmmm I thought it was needed in all cases but you could be right. It doesn't really hurt anything to add it though.
I suppose it's only some minor extra work for the CPU.
Also, QSA will append "index.php" to the query string in some cases. Hence some very curious contents in the $_GET variable at one point, but no biggie really.
Raw> I think that's in QueryString.php...
$scripturl = $boardurl . '/index.php';
Just replace it with:
$scripturl = $boardurl;
I can't get any of this to work. Is there anything it the .htaccess I can edit to get rid of the index.php? I see rules for boards and topics. Can there be a rule for the index page to eliminate the index.php?
Google has put the www.domain.com (http://www.domain.com) in the ommited results and that ranked higher than the www.domain.com/index.php (http://www.domain.com/index.php) they are now showing. They are ignoring my robots.txt.
EDIT:
Nevermind! All I had to do was enable rewriting of actions! Now your fix has worked! Thanks!!!__________________
Kubuntu Forums (http://kubuntuway.net/)
Quote from: Dannii on June 26, 2008, 11:03:14 AM
Possibly.
Add a row to the smf_settings with a variable of 'pretty_enable_filters' and a value of '0'.
That variable already existed. I think the problem may be with MKPortal. The two sites it is working on do not have MKP installed. I noticed with Pretty URLs enabled it breaks some of the avatar links in the portal as well. I can wait until I move to my new version without MKP. Thanks for your time Danni.
At the top of my forum it says
"// Pretty URLs mod // Interface texts $txt['pretty_admin_menu'] = 'Pretty URLs'; $txt['pretty'] = array( 'url' => 'Pretty URL', 'url_desc' => 'A URL fragment used for boards and topics.
Note: this will be processed as only a limited set of characters are allowed - other characters will be converted. Leave blank to use the board name.
', ); // Settings descriptions $txt['pretty_board_lookup'] = 'A serialized array of URL => ID_BOARD pairs, used for processing $_GET[\'board\']. There can be more than one URL for each board.'; $txt['pretty_board_urls'] = 'A serialized array of ID_BOARD => URL pairs, used for generating pretty replacement URLs.'; $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.'; $txt['pretty_filters'] = 'A serialized array of filter data.'; $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the pretty_filters setting instead.'; $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as $boardurl.'; "
I uninstalled it. How do i get it off!
Your language files have been corrupted. Check modifications.english.php and make sure there is only one ?> and that it's the very last thing in the file.
Hey Dannii
First of all thank you for this awesome mod. I haven't read whole topic but i found an error. When i use "AJAX Instant Quick Reply" mod with pretty urls, it sends the message but doesn't reload the page. Are there any solutions for this?
i don't know how but it started working ;D
thanks again.
nice mod
but whenever i go to my forum my host says i havent uploaded the file
like
mysite.com/forum
and i have tp installed
btw do i stillneed to download the extension? cause i cant find it
Haven't uploaded what file?
Hello again Danii,
Quote from: Dannii on June 23, 2008, 08:28:40 AM
QuoteRunning maintenance tasks via admin interface won't update boards urls
You don't do it through maintenance. When you go to the manage boards page there's links for you to edit the board URLs.
QuoteDid you mean TP 0.9...? I'm using SMF 1.1.5, TP 0.98 and Prettyurls 0.8.4.
No, pretty URLs 0.9, the latest snapshot from the google code download page. You also need to upgrade to TP 1.0.5.
I've updated my forum into pretty URLs 0.9 and TP 1.0.5. Thanks, I can now see how to edit the board urls. I still have a few problems though :
1. I always redirected to /forum after logging in (I'm using TP 1.0.5) no matter what pages I came from. I can't figure out what's the problem, would it be from pretty urls? If it is, can you please tell me what to do?
2. I was actually asking if this mod will work for TP, i.e changing /index.php?page=23 into /articles/my-article-title, is this already done in the latest version?
3. I'm getting 500 Internal Server Error for some of the topics pages, i.e :
http://www.forumsains.com/fisika/pemanasan-global-akan-menghancurkan-dunia/ (500 Internal Server Error)
http://www.forumsains.com/fisika/pemanasan-global-akan-menghancurkan-dunia/30 (works just fine)
Again, I have no idea what to do with this. I really appreciate it if someone could help me out.
Many thanks in advance!
Thank . for Pretty URLs
i can not install . ERROR install
Quote from: Dannii on June 29, 2008, 07:23:47 PM
Haven't uploaded what file?
when i installed this
and go to my forum index which is yoursite.com/forum/
my host tells me i don't have this directory uploaded which is true
and i am using tinyportal btw
so its not working for me?
how can i make it work?
Thanks for mod..
I searched for the problem, but haven't found the answer. That's why asking by making a reply.
here is my site, (lol i'm not spamming... eh)
http://www.project-bb.org/
I've made some changes to my site & made some categories more specific. That's why i have moved my all posts from one board to the child of the same board. When i tried google indexed url of a moved topic, it was working very much well with the same old name. I was just like the whaaaaaaa.... ???
But when i logged in to the Google Dashboard & checked the sitemap section, they told me that ERRORS DUE TO TOO MANY REDIRECTS. Then i came to know that the intelligent pretty URL MOD created those redirects. Is there any way to remove those redirect & write all the URL's again. What should i do to create the genuine pretty URL's, instead of redirects. Should i reinstall the MOD or just disabling & enabling it again will work ? Is there any option to disable those URL redirections. Bots hate redirection, i think.
Thanks in advance. Waiting for your reply. :)
Has anyone got a 'standard' robots.txt file for use with a pretty URLS install of SMF? Save me working out all the duplicate pages to exclude?
Also i'm getting a few urls with ! in, is there anyway i can stop the ! getting included in the urls?
I just insalled this fine...
but the urls dont work... I can't do nothing because everything is trying to use the new urls that don't work...I can't even uninstall or disable it...I have no I dea what to do now...
Please help me resolve this
when I click a link I get
Not Found
The requested URL /celebrity-candids/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
thanks
Quote from: Limer on July 02, 2008, 10:40:13 PM
I just insalled this fine...
but the urls dont work... I can't do nothing because everything is trying to use the new urls that don't work...I can't even uninstall or disable it...I have no I dea what to do now...
Please help me resolve this
when I click a link I get
Not Found
The requested URL /celebrity-candids/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
thanks
i get that too, and i am using tp, what can i do?
Quote from: axlarry on June 29, 2008, 11:09:12 PM1. I always redirected to /forum after logging in (I'm using TP 1.0.5) no matter what pages I came from. I can't figure out what's the problem, would it be from pretty urls? If it is, can you please tell me what to do?
Isn't this the default TP behaviour?
Quote2. I was actually asking if this mod will work for TP, i.e changing /index.php?page=23 into /articles/my-article-title, is this already done in the latest version?
I've started working on an extras package (http://prettyurls.googlecode.com/svn/trunk/extras/) which has a TP filter.
Quote3. I'm getting 500 Internal Server Error for some of the topics pages, i.e :
http://www.forumsains.com/fisika/pemanasan-global-akan-menghancurkan-dunia/ (500 Internal Server Error)
http://www.forumsains.com/fisika/pemanasan-global-akan-menghancurkan-dunia/30 (works just fine)
Again, I have no idea what to do with this. I really appreciate it if someone could help me out.
Anything in your Apache or SMF error logs?
Quote from: vadon on June 30, 2008, 12:59:55 AMThank . for Pretty URLs
i can not install . ERROR install
What exactly is the error?
jepot5 and Limer:
Follow these instructions (http://code.google.com/p/prettyurls/wiki/TroubleShooting) to disable the mod. After doing that we can see what the problem is and whether it can be fixed. Are you both sure your servers support .htaccess and mod_rewrite?
Quote from: SwapsRulez on June 30, 2008, 01:14:07 PM
I searched for the problem, but haven't found the answer. That's why asking by making a reply.
here is my site, (lol i'm not spamming... eh)
http://www.project-bb.org/
I've made some changes to my site & made some categories more specific. That's why i have moved my all posts from one board to the child of the same board. When i tried google indexed url of a moved topic, it was working very much well with the same old name. I was just like the whaaaaaaa.... ???
But when i logged in to the Google Dashboard & checked the sitemap section, they told me that ERRORS DUE TO TOO MANY REDIRECTS. Then i came to know that the intelligent pretty URL MOD created those redirects. Is there any way to remove those redirect & write all the URL's again. What should i do to create the genuine pretty URL's, instead of redirects. Should i reinstall the MOD or just disabling & enabling it again will work ? Is there any option to disable those URL redirections. Bots hate redirection, i think.
Thanks in advance. Waiting for your reply. :)
What are the redirections going from and what to? There shouldn't be too many redirections, only one.
Quote from: BFTUK on July 02, 2008, 11:00:39 AM
Has anyone got a 'standard' robots.txt file for use with a pretty URLS install of SMF? Save me working out all the duplicate pages to exclude?
Also i'm getting a few urls with ! in, is there anyway i can stop the ! getting included in the urls?
You can remove the line with ! from Subs-PrettyUrls.php, but that will only effect new topics.
QuoteWhat are the redirections going from and what to? There shouldn't be too many redirections, only one.
@Dannii, Actually i've created about 100 topics in a board. & now i've moved them to its child board.
That's why from this...
http://www.sitename.com/old-board-where-the-topics-were/topic-name-1.html
http://www.sitename.com/old-board-where-the-topics-were/topic-name-2.html
http://www.sitename.com/old-board-where-the-topics-were/topic-name-2.html
The URL's are redirected to
http://www.sitename.com/new-board-where-i-moved-the-topics/topic-name-1.html
http://www.sitename.com/new-board-where-i-moved-the-topics/topic-name-2.html
http://www.sitename.com/new-board-where-i-moved-the-topics/topic-name-2.html
& its count is high, that's why google is giving error that too many redirects. Actually google want to say that there are too many topics which are getting redirected. Hope this information helps you. :)
Thanks for looking into the problem, waiting for your reply. :D
oh, do we need .htaccess?
cause my server doesn't support it - i am using free hosting
I am not sure if you realize this bust servers, bandwidth and support staff are not free. Companies have to make money to survive. I would like to say that we provide you with quite a load more then all of our other competitors that are going to survive. The only companies that survive are the ones who have some form of money making. A company that gives everything away for free wont last long.
Also, .htaccess is the one file type that will never be allowed on free hosting no matter what because it can be used to bypass alot of security settings that we have set for free hosting. However I do bet that you will be looking for another free hosting company not long after you find your next one because it wont last long if it has everything you want for free.
Quote from: SwapsRulez on July 05, 2008, 12:23:16 AM@Dannii, Actually i've created about 100 topics in a board. & now i've moved them to its child board.
That's why from this...
http://www.sitename.com/old-board-where-the-topics-were/topic-name-1.html
http://www.sitename.com/old-board-where-the-topics-were/topic-name-2.html
http://www.sitename.com/old-board-where-the-topics-were/topic-name-2.html
The URL's are redirected to
http://www.sitename.com/new-board-where-i-moved-the-topics/topic-name-1.html
http://www.sitename.com/new-board-where-i-moved-the-topics/topic-name-2.html
http://www.sitename.com/new-board-where-i-moved-the-topics/topic-name-2.html
& its count is high, that's why google is giving error that too many redirects. Actually google want to say that there are too many topics which are getting redirected. Hope this information helps you. :)
Thanks for looking into the problem, waiting for your reply. :D
Ahh, well I don't see how you can do anything then. There shouldn't be any problem if each topic is only being redirected once.
Quote from: jepot5 on July 05, 2008, 03:15:17 AMoh, do we need .htaccess?
cause my server doesn't support it - i am using free hosting
Yes it's required. Look into getting a better host if you really want to use this mod.
hello, i have a little question. Can i truncate the smf_pretty_urls_cache table without any issues? this table is more than 20MB after 2 days.
Yes, though it's going to build up again just as quickly.
Hello, its me again. I have never been able to get this to work right. Again, when I try to uninstall I get an error.
Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
What should I do next?
You can just ignore that error.
The mod works great, but I was wondering if there was something I could do to make articles in TinyPortal look as nice as everything else? Is this possible?
I've started working on an extras package (http://prettyurls.googlecode.com/svn/trunk/extras/) which has a TP filter.
I did see that, actually, after posting this. Manually installed what I could, and it worked as far as making it show slashes, etc. I'll keep an eye on the work on google code...hoping it works as easily for category and article titles, instead of showing "/page/2/" etc.
Once again...wonderful mod.
It will show the titles if TinyPortal is using them. If TP is just using the numbers it won't.
i cant seem to get this working on my main forum. i have it working in a test forum on the same server. but when i enable url rewrite, i lose what ever i set it for. boards, topics, actions.
Not Found
The requested URL /feedback-and-suggestions/what-do-you-think-about-the-site/ 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.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.6 Server at psychologyforum.us Port 80
i would really like to get this working if any body can help.
Do you have other .htaccess files on the server?
http://img185.imageshack.us/img185/4556/85738961nq0.jpg the mod installs without even a single error but i still get this error :'( :'( i am using smf 1.1.4
You need to fix your modifications.english.php file. Check that there is only one ?> in the file and that it's the very last thing.
Quote from: Dannii on July 12, 2008, 04:02:07 AM
Do you have other .htaccess files on the server?
thanks, that was the problem right there.
I have just installed the package and edit the settings. Now the urls are rewritten into pretty urls, but now not any page can be found anymore. What to do????
^^do u have .htaccess?
Quote from: Angelotus on July 13, 2008, 03:37:44 AM
I have just installed the package and edit the settings. Now the urls are rewritten into pretty urls, but now not any page can be found anymore. What to do????
Can you post a link?
Quote from: RedOne on July 13, 2008, 10:24:08 AM
Quote from: Angelotus on July 13, 2008, 03:37:44 AM
I have just installed the package and edit the settings. Now the urls are rewritten into pretty urls, but now not any page can be found anymore. What to do????
Can you post a link?
I manually uninstalled the package for now, so I can not give you a link now.
The webadres is at www.weeklyfun.nl (forum is at http://forum.weeklyfun.nl)
Maybe if I can make you a temp admin, you can take a look yourself? I couldn't find the solution for the prob...
Quote from: Dannii on July 10, 2008, 09:09:53 PM
It will show the titles if TinyPortal is using them. If TP is just using the numbers it won't.
Yeah...it's kinda not. I'll check with the TP side of things, but they'll probably tell me that it's not their issue. I'll figure it out, no worries. Right now, it works for everything else without a hassle for me. :D
I went from one seo software to this because the other didn't work like it should. is there a way to make this look like the other?
Example:
Old SEO: http://www.domain.com/forums/general/hello-world-t10.0.html
Pretty URL: http://www.domain.com/forums/general/hello-world
I get allot of traffic from Search engines and need to see if I can put the Topic number, post number, and .html at the end.
Can you help with this? has this been asked?
Dice :)
Hi!
Actually my printpage url is like this:
http://darkwolf.altervista.org/forum/help-desk/informazioni/?action=printpage
but with this i can block in robots.txt only with "*"
(This robots.txt file has some errors. They are marked in pink color.)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg503.imageshack.us%2Fimg503%2F3003%2Frobotserrormu3.gif&hash=ce9a77fdf1182746984c96cdeea7017e39eee915)
Can i change url from:
http://darkwolf.altervista.org/forum/help-desk/informazioni/?action=printpage
to:
http://darkwolf.altervista.org/forum/printpage/help-desk/informazioni/
???
I want this mod for this reason:
http://www.google.it/search?hl=it&q=guida+alluso+di+ciclamab&btnG=Cerca&meta= :)
Quote from: Dannii on July 12, 2008, 11:39:36 AM
You need to fix your modifications.english.php file. Check that there is only one ?> in the file and that it's the very last thing.
i did what u said but i am still getting the same error :(
Hello,
How can I change a Profile URL? Two of my users have changed their name and nick, but pretty urls didn't update the new name, so they can't actually access their profiles...
Thank you,
Regards from Portugal
Quick one - does anyone know the likely effect of trying to run SMF with Pretty URLs, over SSL? Would it work okay?
[edit] - don't worry, looks like we're not going to be using SSL afterall.
Quote from: ac99 on July 18, 2008, 03:47:03 PM
Hello,
How can I change a Profile URL? Two of my users have changed their name and nick, but pretty urls didn't update the new name, so they can't actually access their profiles...
Thank you,
Regards from Portugal
Already solved it, only by truncating pretty_urls_cache table :)
I keep getting thousands of errors like these:
http://mschat.net/forum/index.php?pretty;board=news-and-announcements.0
2: Division by zero
File: /home/nscnet/mschat.net/home/forum/Sources/MessageIndex.php
Line: 539 (I also get the same error but for line 538)
I am running SMF 2.0 Beta 3.1, is this a known bug or something?
Quote from: Angelotus on July 13, 2008, 03:37:44 AM
I have just installed the package and edit the settings. Now the urls are rewritten into pretty urls, but now not any page can be found anymore. What to do????
Can you confirm your server supports mod_rewrite and .htaccess?
Quote from: wiidice on July 13, 2008, 11:28:11 PM
I went from one seo software to this because the other didn't work like it should. is there a way to make this look like the other?
Example:
Old SEO: http://www.domain.com/forums/general/hello-world-t10.0.html
Pretty URL: http://www.domain.com/forums/general/hello-world
I get allot of traffic from Search engines and need to see if I can put the Topic number, post number, and .html at the end.
Can you help with this? has this been asked?
Dice :)
Make sure you're using a 0.9 snapshot, then make a package from these files and install it: http://prettyurls.googlecode.com/svn/trunk/extras/
Quote from: Dark-Wolf on July 15, 2008, 07:45:17 AM
Hi!
Actually my printpage url is like this:
http://darkwolf.altervista.org/forum/help-desk/informazioni/?action=printpage
but with this i can block in robots.txt only with "*"
(This robots.txt file has some errors. They are marked in pink color.)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg503.imageshack.us%2Fimg503%2F3003%2Frobotserrormu3.gif&hash=ce9a77fdf1182746984c96cdeea7017e39eee915)
Can i change url from:
http://darkwolf.altervista.org/forum/help-desk/informazioni/?action=printpage
to:
http://darkwolf.altervista.org/forum/printpage/help-desk/informazioni/
???
I want this mod for this reason:
http://www.google.it/search?hl=it&q=guida+alluso+di+ciclamab&btnG=Cerca&meta= :)
No you can't. Instead it would be better to add the noindex meta.
Quote from: keshav on July 17, 2008, 06:14:40 AM
i did what u said but i am still getting the same error :(
If you're still having a problem post the file here.
Quote from: argimiro on July 18, 2008, 08:28:06 PM
Quick one - does anyone know the likely effect of trying to run SMF with Pretty URLs, over SSL? Would it work okay?
[edit] - don't worry, looks like we're not going to be using SSL afterall.
Well for future reference, unless your server has different rules for .htaccess, I don't see why it wouldn't work.
Quote from: aldo on July 18, 2008, 09:49:09 PM
I keep getting thousands of errors like these:
http://mschat.net/forum/index.php?pretty;board=news-and-announcements.0
2: Division by zero
File: /home/nscnet/mschat.net/home/forum/Sources/MessageIndex.php
Line: 539 (I also get the same error but for line 538)
I am running SMF 2.0 Beta 3.1, is this a known bug or something?
I've never seen that before. Can you post lines 535-545 here.
Here it is:
'preview' => $row['last_body'],
'icon' => $row['last_icon'],
'icon_url' => $settings[$context['icon_sources'][$row['last_icon']]] . '/post/' . $row['last_icon'] . '.gif',
'href' => $scripturl . '?topic=' . ($row['approved'] == 2 && !empty($row['id_previous_topic']) ? $row['id_previous_topic'] : $row['id_topic']) . ($user_info['is_guest'] ? ('.' . (!empty($options['view_newest_first']) ? 0 : ((int) (($row['num_replies']) / @$context['pageindex_multiplier'])) * @$context['pageindex_multiplier']) . '#msg' . $row['id_last_msg']) : (($row['num_replies'] == 0 ? '.0' : '.msg' . $row['id_last_msg']) . '#new')),
'link' => '<a href="' . $scripturl . '?topic=' . ($row['approved'] == 2 && !empty($row['id_previous_topic']) ? $row['id_previous_topic'] : $row['id_topic']) . ($user_info['is_guest'] ? ('.' . (!empty($options['view_newest_first']) ? 0 : ((int) (($row['num_replies']) / @$context['pageindex_multiplier'])) * @$context['pageindex_multiplier']) . '#msg' . $row['id_last_msg']) : (($row['num_replies'] == 0 ? '.0' : '.msg' . $row['id_last_msg']) . '#new')) . '" ' . ($row['num_replies'] == 0 ? '' : 'rel="nofollow"') . '>' . $row['last_subject'] . '</a>'
),
'is_sticky' => !empty($modSettings['enableStickyTopics']) && !empty($row['is_sticky']),
'is_locked' => !empty($row['locked']),
'is_poll' => $modSettings['pollMode'] == '1' && $row['id_poll'] > 0,
'is_hot' => $row['num_replies'] >= $modSettings['hotTopicPosts'],
'is_very_hot' => $row['num_replies'] >= $modSettings['hotTopicVeryPosts'],
Any chance it will work with Blog: Community modification? http://custom.simplemachines.org/mods/index.php?mod=1209
Blogs with pretty URLs would be great :)
aldo, are you sure the problem is this mod? I don't see how it could be related.
SunBeam, I'm sure it could... if someone made a filter I'd be happy to include it in the extras package, or I could make one if I find enough time.
Ok, I think Charles Hills (mod creator) is working on it. Thanks.
Quote from: Dannii on July 21, 2008, 08:51:52 AM
aldo, are you sure the problem is this mod? I don't see how it could be related.
SunBeam, I'm sure it could... if someone made a filter I'd be happy to include it in the extras package, or I could make one if I find enough time.
Ok, I looked more into it, and it is another mods making >.< sorry about that, my mind jumped to pretty URLs since I saw what was in the URL
Quote from: wiidice on July 13, 2008, 11:28:11 PM
I went from one seo software to this because the other didn't work like it should. is there a way to make this look like the other?
Example:
Old SEO: http://www.domain.com/forums/general/hello-world-t10.0.html
Pretty URL: http://www.domain.com/forums/general/hello-world
I get allot of traffic from Search engines and need to see if I can put the Topic number, post number, and .html at the end.
Can you help with this? has this been asked?
Dice :)
any help for this request ?
Yes, see my response (http://www.simplemachines.org/community/index.php?topic=146969.msg1622469#msg1622469).
Quote from: Dannii on July 21, 2008, 08:58:14 PM
Yes, see my response (http://www.simplemachines.org/community/index.php?topic=146969.msg1622469#msg1622469).
sorry, miss that response :(
I am still using 0.8, can I just modify somewhere just to get .html URL for post URL ? When will 0.9 be availbale?
Get the snapshot from: http://code.google.com/p/prettyurls/downloads/list
Quote from: Dannii on July 21, 2008, 09:37:34 PM
Get the snapshot from: http://code.google.com/p/prettyurls/downloads/list
will it work just by overwrite my 0.8.4 version with the snapshot one ?
No you'll have to uninstall 0.8.4 first and then install the 0.9 snapshot. It will keep all the database stuff though.
Quote from: Dannii on July 21, 2008, 10:09:20 PM
No you'll have to uninstall 0.8.4 first and then install the 0.9 snapshot. It will keep all the database stuff though.
already install snapshot version, but still no .html at the end of post URL ?
That's correct. But you can now install the extras package and redirect the SEO4SMF URLs to the new ones.
Guys need help, just renamed one of my boards but its linking on the only board name, what must i do ?
Quote from: Dannii on July 22, 2008, 04:09:28 AM
That's correct. But you can now install the extras package and redirect the SEO4SMF URLs to the new ones.
A little misunderstanding here :), I don't use SEO4SMF mod but still need URL ended with .html , is it possible ?
QuoteGuys need help, just renamed one of my boards but its linking on the only board name, what must i do ?
Upgrade to 0.9 which gives you an interface to rename the board URLs.
QuoteA little misunderstanding here :), I don't use SEO4SMF mod but still need URL ended with .html , is it possible ?
It is possible, by editing the callback functions and rewrite rules. But why do you need .html? Cool URLs don't have extensions (http://www.w3.org/Provider/Style/URI).
Sily question but where is 9 ?
http://code.google.com/p/prettyurls/downloads/list Get the latest snapshot...
Quote from: Dannii on July 22, 2008, 10:11:47 AM
QuoteA little misunderstanding here :), I don't use SEO4SMF mod but still need URL ended with .html , is it possible ?
It is possible, by editing the callback functions and rewrite rules. But why do you need .html? Cool URLs don't have extensions (http://www.w3.org/Provider/Style/URI).
With extention will be indexed by SE easily, isn't it ?
There's no advantage to using an extension.
Quote from: Dannii on July 22, 2008, 09:07:14 PM
There's no advantage to using an extension.
one of SEO myth
No, the extension doesn't make a difference and some say this mod is useless. From my experience my forum did get more traffic after I applied it so I think keywords in the URL is a plus to have.
BUGS REPORT (snapshot version) : when rewrite action URL is enabled, we can not do file maintenance (delete old attachment file).
Which SMF version?
1.1.5 , SOL
Okay, yeah that's strange... hmm...
Hi there Dannii, i was having the 0.8.2 Version. I've uninstalled that & also deleted the the 2 pretty tables also. After that i've installed the new 0.8.4 version. My problem is that my board names are not appropriate, how can i make it to write completely again from scratch.
I'm having a forum named "Announcements", but its previous name was "Forum Rules"
Now the problem is, the announcement forum have the following URL
http://www.project-bb.org/forum-rules/
Also there are some sections which i want to rewrite. How should i achieve that.
I want the url to be written again to produce "Announcements" board URL as
http://www.project-bb.org/announcements/
Thanks in advance. Waiting for your reply. :)
EDIT: my board as well as topics are not opening. :( They are showing me 404 error. Donno why i've disabled the Pretty URL, now they are working fine. But i want all the sections to be rewritten using pretty URL. Also does this 404 error occurred due to because i deleted those database tables.
You uninstall 0.8.4 but don't delete anything. Then install the latest 0.9 snapshot, which adds an interface to change board URLs.
Are only the topic URLs broken?
No No, now when i try to enable the URL Rewrite & Open any board or topics, it shows me 404 error. Its because i deleted those two tables of topic names & cache of pretty URL's. What should i do now ? Also after installing 0.9, will it fix my board URL from "forum-rules" to "announcements" ?
Waiting for the answer, thanks for looking into it. :)
EDIT: Removed the 0.8.4 with two 2 table dropped & installed the 0.9 snapshot, but when i tried to lookup at the URL, they are old url for both board & topics. After clicking on them, they gives me 404 error. I have my database backup before deletion of those tables. Should i restore those 2 tables from that backup or is there any mechanism by which we can rewrite & create the pretty URL's of all the boards & topics again. Also in which table the URL's of the board & topics are stored. Also if they are stored in those 2 pretty tables, why the board url's are the same after deleting & reinstalling the MOD.
Thanks, hope i'm able to put my query in proper words & you understood it. Thanks & Sorry for my bad english. :P
Check that .htaccess is still writeable by all.
When you install the mod it will add an tables you've deleted, so that's not a problem. The reason why the board names are the same is that they're stored in the settings table. You can edit the board URLs by going to the manage boards page.
OK, let me tell you the thing from the first. I was having a SMF 2.0 Beta 3.1 forum on my free host. I was using the Pretty URLs 0.8.2. But due to previous mistakes my announcement sections was renamed to "forum-rules" & the URL was created with that name only. So i've decided to reinstall the pretty URL.
After that I've switched to new server, done all the settings, uninstalled the first version of pretty URLs. Downloaded the latest 0.8.4 version & installed that. I was hoping that it will create all the URLs again as they are created when i installed the MOD at very first time & my that board name issue will be solved. But instead it created a problem there. When i click on any board with the pretty URL, it says "404 - Not Found".
After that you gave me suggestion to install the latest 0.9 snapshot. I've installed that also, but still they are giving the same error 404. Then after your last reply, i've checked my .htaccess file & compared it with my previous .htaccess file in my backup. There was a change.
See here my .htaccess file after installing both 0.8.4 & 9.0 snapshot on new server.
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: July 25, 2008, 6:44
RewriteEngine on
& the below one is the file from my old backup from my old server with 0.8.2 version
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: July 24, 2008, 23: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?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 tried changing the permissions as 777 to the .htaccess file & also tried by restoring old .htaccess file, but still its not working. I've tried every possible situation there. I've explained it as much as possible. If you want the demo account, admin account, ftp account or control panel account of hosting, i will give you.
Thanks for looking into my problem, I've kept my site on maintenance so that Google wont be able to crawl the pages which are broken.
Am i doing right ? Or should i open the board by uninstalling the pretty URLs.
I'm looking for a solution. Sorry for creating too many problems. :(
Thanks/
Ahhh, you've changed servers! Are you sure your new server even supports .htaccess files and mod_rewrite?
Quote from: Dannii on July 25, 2008, 11:44:26 AM
Ahhh, you've changed servers! Are you sure your new server even supports .htaccess files and mod_rewrite?
Actually my friend gave me that hosting. Is there any way to test out that ?
I tested the board for .htaccess & mod_rewrite, both the test failed. What should i do now ? Is it ok to keep normal URL now ?
I have soo many pages cached & indexed by google.
http://www.google.co.in/search?hl=en&q=site%3Aproject-bb.org&btnG=Google+Search&meta=
Any solution for that. Because all those pages are giving a 404 error & only 1 index page is working. :(
How i can have pretty urls with the articles of Tinyportal??
Quote from: NIBOGO on July 25, 2008, 06:17:37 PM
How i can have pretty urls with the articles of Tinyportal??
I could be wrong, and Dannii, please tell me if I am, but I believe that this modification was designed for basic SMF. Meaning that Tiny Portal is not supported.
Quote from: ccbtimewiz on July 25, 2008, 06:49:01 PM
Quote from: NIBOGO on July 25, 2008, 06:17:37 PM
How i can have pretty urls with the articles of Tinyportal??
I could be wrong, and Dannii, please tell me if I am, but I believe that this modification was designed for basic SMF. Meaning that Tiny Portal is not supported.
But maybe this mod can be integrated with other mods , a lot of SMF Mods are been integrate with others like the download system with the smfshop or the seo4smf have pretty urls for TP , so i think of maybe dannii can make something with TP.
Excuse me i dont speak english ;)
Quote from: SwapsRulez on July 25, 2008, 04:42:53 PM
Quote from: Dannii on July 25, 2008, 11:44:26 AM
Ahhh, you've changed servers! Are you sure your new server even supports .htaccess files and mod_rewrite?
Actually my friend gave me that hosting. Is there any way to test out that ?
I tested the board for .htaccess & mod_rewrite, both the test failed. What should i do now ? Is it ok to keep normal URL now ?
I have soo many pages cached & indexed by google.
http://www.google.co.in/search?hl=en&q=site%3Aproject-bb.org&btnG=Google+Search&meta=
Any solution for that. Because all those pages are giving a 404 error & only 1 index page is working. :(
If mod_rewrite isn't on the server there's unfortunately nothing you can do. Perhaps your friend can install it for you?
Quote from: NIBOGO on July 25, 2008, 06:17:37 PM
How i can have pretty urls with the articles of Tinyportal??
Make a package from the "extras" files in the svn and install it.
Hi Eldacar,
Its me again. Ive been looking through my google webtools and its highlighting a lot of duplicate titles and descriptions caused by pretty urls. Have you worked anything out for this yet ?
Cheers - glenn
I had the same problem with my forum and it can be easily fixed with your robots.txt file. Here is what I have on mine:
Disallow: /cgi-bin/
Disallow: /forum/search/
Disallow: /forum/calendar/
Disallow: /forum/login/
Disallow: /forum/register/
Disallow: /forum/profile/
Disallow: /forum/contact/
Disallow: /forum/help/
Disallow: /forum/Themes/
Disallow: /forum/stats/
Disallow: /forum/reminder/
Disallow: /forum/tagged/
Disallow: /forum/*.msg*
Disallow: /forum/*sa=showPosts*
Disallow: /forum/*prev_next*
Disallow: /forum/*action=*
Disallow: /forum/*imode*
Disallow: /forum/index.php/*
Disallow: /forum/*/0*
Disallow: /forum/*PHPSESSID*
Quote from: glennk on July 26, 2008, 01:10:54 PM
Its me again. Ive been looking through my google webtools and its highlighting a lot of duplicate titles and descriptions caused by pretty urls. Have you worked anything out for this yet ?
Can you show me some specific examples?
Hi Eldacar/Danii
This is what it says in webmaster tools :
Meta description issues
Duplicate meta descriptions 67
Long meta descriptions 0
Short meta descriptions 363
Title tag issues
Missing title tags 1
Duplicate title tags 92
Long title tags 0
Short title tags 0
Obviously this is for the whole site and some of the problems are being caused by a wordpress installation I use which is using the same title tag for categories and topic tags, but analysis of the report shows some of the duplicate title tags are caused by forum pages like :
/forum/north-east-coast-fishing/a-secret-location-somewhere-near-to-brid/10/
/forum/north-east-coast-fishing/a-secret-location-somewhere-near-to-brid/20/
/forum/north-east-coast-fishing/a-secret-location-somewhere-near-to-brid/30/
/forum/north-east-coast-fishing/a-secret-location-somewhere-near-to-brid/40/
or
/forum/north-east-coast-fishing/whitby-angling-festival-2008/0
/forum/north-east-coast-fishing/whitby-angling-festival-2008/100
/forum/north-east-coast-fishing/whitby-angling-festival-2008/20
/forum/north-east-coast-fishing/whitby-angling-festival-2008/50
/forum/north-east-coast-fishing/whitby-angling-festival-2008/60
/forum/north-east-coast-fishing/whitby-angling-festival-2008/80
Also similar is said to be true of meta descriptions :
/forum/north-east-coast-fishing/new-record-bass/10/
/forum/north-east-coast-fishing/new-record-bass/20/
/forum/north-east-coast-fishing/new-record-bass/30/
/forum/north-east-coast-fishing/new-record-bass/40/
I realise in the past that you have always felt the pages to be different but if google is flagging them up it maybe needs looking at ?
As always thanks for your valuable time, you must have put many hours into this - so thanks and well done.
That's how it would be without this mod too, it's just showing all the different pages of a topic.
Okay i need another help, on one of my other boards, the website works well with www.xxx.com name in it but xxx.com dosent work well.. Wierd..
Now i want pretty urls to treat everything with www. in it... what must i do ?
I don't understand what you're asking...
Is your www. subdomain pointing to the same place as no subdomain?
I open my website with www.khu.com okay
But when i click on the boards it opens khu.com/general-discussion.
Now i want prettyurls to make it www.khu.com/general-discussion.
Hope i make sense. Cause when i turn off pretty urls it works fine.
You'll need to insert some rules before pretty urls does in .htaccess. I don't know what rules to use, you can Google for them.
Ummm nope its something with to do with pretty urls, when off my linking works with www in it on boards but when on it dosent.
Found the cure :)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
A big problem, installed the Pretty URLs, but my server still don't supports mod_rewrite & .htacess. What should i do ? I can't login to Admin Panel, also can't disable or uninstall it coz it gives 404 error. :(
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: Dannii on July 28, 2008, 07:40:24 PM
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Thanks worked. :D You always helps me a lot. Hope my friends are like you.... :(
Hey guys, great mod. I've searched around Google and the readme but can't figure this out - is it possible to setup Pretty URLs if your forum is on a subdomain of your domain? Such as smf.example.com?
The mod installs fine for us, but the URLs it generates are for example.com/smf for boards and topics, even though our SMF server settings are setup as smf.example.com and even though we've performed Pretty URLs maitenance and SMF maintenance for fixing errors and optimizing tables.
How can we set this up so that all our URLs are like this: smf.example.com/board-name/topic-title/
Thanks guys.
kanter
You'll have to change the pretty_root_url setting if you've moved the forum since installing the mod.
Quote from: oktosoma on July 23, 2008, 12:45:36 PM
BUGS REPORT (snapshot version) : when rewrite action URL is enabled, we can not do file maintenance (delete old attachment file).
Make this change to Security.php:
if (!empty($from_action) && (!isset($_SESSION['old_url']) || preg_match('~[?;&]action=' . $from_action . '([;&]|$)~', $_SESSION['old_url']) == 0))
if (!empty($from_action) && (!isset($_SESSION['old_url']) || preg_match('~[?;&]action=' . $from_action . '([;&]|$)|' . $boardurl . '/' . $from_action . '~', $_SESSION['old_url']) == 0))
Hi
I have the pretty urls mod installed and I want to know how to add custom actions to the pretty urls filters because I installed also the SMF Sitemap mod and I want to change the URL http://forums.drpennystock.com/index.php?action=sitemap to URL http://forums.drpennystock.com/sitemap.
Thanks
Quote from: Dannii on July 29, 2008, 07:42:02 AM
You'll have to change the pretty_root_url setting if you've moved the forum since installing the mod.
Thanks Dannii. How can we do this? We tried reinstalling with no luck. I see pretty_root_url $txt settings in the language files but I don't know where else we can change this in the Pretty URLs installation/database.
Quote from: [SiNaN] on July 29, 2008, 12:34:25 PM
Great mod Dannii, it is a real legend.
But I've a question; one my user is asking whether he can use my mod SimplePortal (http://custom.simplemachines.org/mods/index.php?mod=1104) with Pretty URLs. I didn't had the stuff to test both of the mods. But my mod only adds ?action=forum and uses ?sa=articles;start=1. Would they cause any problems?
That should be fine.
Quote from: Dr Web on July 29, 2008, 04:01:22 PM
Hi
I have the pretty urls mod installed and I want to know how to add custom actions to the pretty urls filters because I installed also the SMF Sitemap mod and I want to change the URL http://forums.drpennystock.com/index.php?action=sitemap to URL http://forums.drpennystock.com/sitemap.
Thanks
Run maintenance to update the list.
Quote from: kanter on July 29, 2008, 04:12:07 PM
Thanks Dannii. How can we do this? We tried reinstalling with no luck. I see pretty_root_url $txt settings in the language files but I don't know where else we can change this in the Pretty URLs installation/database.
Look in the smf_settings table.
It worked, many thanks for the the fast reply.
Quote from: Dannii on July 29, 2008, 09:10:43 PM
Look in the smf_settings table.
That did the trick, thank you. Almost forgot to fix up our .htaccess file also...!!
Maybe you can include a warning to users on the mod's page to add rules to their .htaccess. Not sure if that was supposed to be automated but it didn't work for us, we had to edit our our .htaccess file (maybe related to our subdomain problems?).
Anyway, thank you.
Quote from: kanter on July 30, 2008, 05:53:05 AM
That did the trick, thank you. Almost forgot to fix up our .htaccess file also...!!
Maybe you can include a warning to users on the mod's page to add rules to their .htaccess. Not sure if that was supposed to be automated but it didn't work for us, we had to edit our our .htaccess file (maybe related to our subdomain problems?).
Anyway, thank you.
The mod should automatically edit the .htaccess file, unless PHP doesn't have file permissions to do so.
How can I include the topic title in the description?
Right now the description is the first 55 characters of the message, what I want is the description begin with the title of the topic and only after that the first words of the message.
In a SEO perspective, the description is also very important, and, 99% of the time, the first words of a message has nothing to do with the topic.
Thanks
This mod has nothing to do with meta descriptions, though I think there might be a mod to do that already.
Of course not, my apologies, I posted here instead of in the vBulletin Style Meta Tags mod topic, that I also have installed.
Sorry.
Edit: Ignore. Check the post after this.
Hello Dannii,
I contacted you though TinyPortal.net through PM about using Pretty URLs for TinyPortal articles. I installed your new 0.9 snapshot, which messed up my forum. Reinstalled everything on my forum. Trying to install 0.8.4 again and I'm getting this error:
Fatal error: require() [function.require]: Failed opening required '/home/ecricnet/public_html/Packages/temp/./SMF1-1/install.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ecricnet/public_html/Sources/Packages.php on line 552
Ignore my last error:
Please look at this (After a fresh upgrade of SMF)
http://i263.photobucket.com/albums/ii145/ecricnet/PrettyURLs.jpg
That's a package manager error, not an error specific to this mod. Check your file permissions and maybe make a temp directory. If you still have trouble ask in the General Support board.
Parse error: syntax error, unexpected '*' in /QueryString.php on line 613
I have tried to fix this but it won't correct the issue -- been trying to make it work for 2 hrs now !
When i removed * it tell me i have unexpected /
I have attatched QueryString.php that is it giving me error in
Also i should mention - It installed successfully without giving me any errors during the install ...on default theme..
Can some one please look at this ?! Many Thanks for such cool mod.
The problem is that the file has been modified twice. You'll see two "/* Pretty URLs says no!"s and two "*/"s. Delete the first "/* Pretty URLs says no!" and then remove the first "*/" and everything up to (but not including) the second "*/".
I'd check the rest of the files that were modified to see if they were installed twice too.
oh i see ! Thanks Danniiii!!!! let me work on this
Edit:: Successss!!!!!
Thank you Danni! I looked at what you said to look at . for some odd 'O reason it got installed twice with in query.php I just simply removed the Doubles and now ! Guess what i have purrrrety URLS..
Many Thanks for this Mod Mate !
Pretty URLS and SMF Arcade (Erics Version)
When I enable the Pretty URL, it gets correct URL for main part of the Arcade, and games plays...
But the submit score will not work... when a game is done.
Anyone know a fix?
the url :
/forum/arcade/index.php?act=Arcade&do=newscore
*Thanx
Quote from: runebergen on August 01, 2008, 04:12:36 PM
Pretty URLS and SMF Arcade (Erics Version)
When I enable the Pretty URL, it gets correct URL for main part of the Arcade, and games plays...
But the submit score will not work... when a game is done.
Anyone know a fix?
the url :
/forum/arcade/index.php?act=Arcade&do=newscore
*Thanx
me sucede lo mismo, plz helpme =)
the same thing happens to me Ayuda porfavor
Does anyone here having 500 Internal server error on some of your forum pages (not the whole forum)? I'm still having this problem. Some of my members also reported that sometimes they can't post or reply. I believe it has something to do with the pretty url filters but I'm not sure exactly how. There's no particular links/text that cause this internal error, sometime by removing links (including quote from previous post) problem solved and sometime is not. I'm really frustated :(
Anyone having the same problem?
Quote from: runebergen on August 01, 2008, 04:12:36 PM
Pretty URLS and SMF Arcade (Erics Version)
When I enable the Pretty URL, it gets correct URL for main part of the Arcade, and games plays...
But the submit score will not work... when a game is done.
Anyone know a fix?
the url :
/forum/arcade/index.php?act=Arcade&do=newscore
*Thanx
OK...tested a bit more
When Pretty URL is ON, the URL gets written to :
/forum/arcade/index.php?act=Arcade&do=newscore ( gives a 404 page)
But for score to be registered, the URL needs to be :
/forum/index.php?act=Arcade&do=newscore
The flash games internal Action script loads the page "index.php?act=Arcade&do=newscore" when it is done, to write scores, but Pretty URL makes that not work, as it have the /arcade/ made
Is it possible to make some sort of exception, URL redirect or something ??
Either Pretty URL not to make URLs for action=arcade, or a redirect for the 404 page to go to correct url
I tried in .htacces
"Redirect 301 /forum/arcade/index.php?act=Arcade&do=newscore http://www.site.com/forum/index.php?act=Arcade&do=newscore"
But that didnt work
Its a bit Greek to me all this, hope someone can help
Thanx in advance
runebergen, the simplest solution is to disable the actions filter. I'll come up with a better solution in the near future.
Or make this change: http://www.simplemachines.org/community/index.php?topic=146969.msg1564990#msg1564990
axlarry, anything more in the SMF or Apache error logs?
Hi Dannii,
I have only one problèm:
This topic give Error 500!
http://passion-xbmc.org/developpement/faq-scripts-et-python/
Second page is ok:
http://passion-xbmc.org/developpement/faq-scripts-et-python/15/
If you're using 0.8 try upgrading to 0.9 and then check if you still have the problem.
I using 0.9
hi Dannii,
where can I download 0.9?
shaitanfr, is there anything unusual in that page? What kind of links are in the posts?
saosangmo, http://code.google.com/p/prettyurls/downloads/list
Dannii,
I have deleted the page and restore more important parts with a backup who was on another server. My problème is solved for now.
I dont think it was unusual content inside, jut a lot of link.
You ca see the content now but perhaps problématic-content is deleted.
http://passion-xbmc.org/developpement/re-faq-script-et-python/
Thanks for all Danny, and good night ;)
hi Dannii, do you mean the file named prettyurls-20080616.tar.gz ?
thanks
shaitanfr not Danny! y is evil!
saosangmo, yes.
Lol, Shaitan too is the Evil Name :)
Sorry.
Quote from: Dannii on August 01, 2008, 09:16:03 PM
runebergen, the simplest solution is to disable the actions filter. I'll come up with a better solution in the near future.
Or make this change: http://www.simplemachines.org/community/index.php?topic=146969.msg1564990#msg1564990
Awesome Dannii, you're gold! ;)
That works. I used your link, and disabled Pretty URLs for Arcade
If there comes a Pretty URL solution in the future thats cool, but this fix makes the Arcade work with Pretty URLs enabled :)
Thank you so much
hi, very thxs for the mod
is really good, but
how to implement to other url for example simple portal in the panel of administration?
very thxs
QuoteHola, Muchas gracias por el mod.
E realmente bueno y me ha servido bastante, pero ¿es posible implementar para url especificas, por ejemplo Simple Portal en el panel de administración?
Muchas Gracias por la ayuda.
My URL is /index.php?action=spadmin;sa=statechange;id=12;type=block;sesc=e5ee3934c428ac3ccc807d285b1d189f <--- (error 406)
i need
/index.php/action=spadmin/sa=statechange/id=12/type=block/sesc=e5ee3934c428ac3ccc807d285b1d189f <--- (hel plz)
Is this possible?
THXS
PD: Is it when the release of Url pretty 0.9 ?
PD2: Sorry for my inglish
Hey Danni ( or others)
Is it also possible to change the filters so that the FIRST url of forum only shows
/forum/
instead of /forum/index.php .... just /forum/ looks a lot prettier :)
And also, when enabling Simple Portal (to give first page some special content), is it possible to make the Forum part, not show /forum/forum, but rather disable it for that (like the arcade fix), where the forum part would be index?action=forum ?
Or some thing pretty ;) Might be hard.. not sure
Thanks for all the help
I have this mod installed and was told to ask this question here.
A member asked me to change there username which i did. Now they can not access there profile. We get this error "The user whose profile you are trying to view does not exist." I noticed the link is tying to take us to /profile/Gaming%20Soldier/?sa=account instead of /profile/MAD%20DOG%20OF%20WARS/. Also i tried this link and it works so how do i make his link point to the correct path?
cheers
Quote from: Dannii on July 25, 2008, 11:03:01 PM
Make a package from the "extras" files in the svn and install it.
Thanks and now i have the articles in this format:
http://www.mundo-se.com/page/25/ (http://www.mundo-se.com/page/25/)
How i can have something like:
http://www.mundo-se.com/CDA (http://www.mundo-se.com/CDA)_w880
* CDA w880 is the title of the article
Quote from: MarioH on August 02, 2008, 09:46:29 AMMy URL is /index.php?action=spadmin;sa=statechange;id=12;type=block;sesc=e5ee3934c428ac3ccc807d285b1d189f <--- (error 406)
I can't help you if the original URL is a 406 error!
Quote from: runebergen on August 02, 2008, 11:01:58 AM
Hey Danni ( or others)
Is it also possible to change the filters so that the FIRST url of forum only shows
/forum/
instead of /forum/index.php .... just /forum/ looks a lot prettier :)
You can try editing $scripturl in Querystring.php where it's defined, but it might give you unexpected results. In the future I'll do this automatically.
QuoteAnd also, when enabling Simple Portal (to give first page some special content), is it possible to make the Forum part, not show /forum/forum, but rather disable it for that (like the arcade fix), where the forum part would be index?action=forum ?
Or some thing pretty ;) Might be hard.. not sure
I don't know what you're asking... If you're using a portal shouldn't you just install SMF in the root folder?
Quote from: zapiy on August 02, 2008, 12:59:08 PMI have this mod installed and was told to ask this question here.
A member asked me to change there username which i did. Now they can not access there profile. We get this error "The user whose profile you are trying to view does not exist." I noticed the link is tying to take us to /profile/Gaming%20Soldier/?sa=account instead of /profile/MAD%20DOG%20OF%20WARS/. Also i tried this link and it works so how do i make his link point to the correct path?
Can you show me both full links please.
Quote from: NIBOGO on August 02, 2008, 07:18:54 PMThanks and now i have the articles in this format:
http://www.mundo-se.com/page/25/ (http://www.mundo-se.com/page/25/)
How i can have something like:
http://www.mundo-se.com/CDA (http://www.mundo-se.com/CDA)_w880
* CDA w880 is the title of the article
TP should already support that.
Hi;
I installed prettyurls and right after I enabled URL rewriting , it crashed my site and all I get is Error 404 on all links . I deleted the module from the packages folder , but the error 404 persists. How do I recover my site back . Help
@Dannii
I think shaitanfr is having the same problem as I am. I still can't find any particular links that will cause the problem and I don't know how exactly the url filter work. But the problem occurs at least :
1. When there are too many links on the page (though I've seen it also happen with only one or two links).
2. When someone try to make a long post and/or qoute.
This is an example of the server logfiles :
[Sat Jun 28 02:42:33 2008] [error] [client 74.6.22.172] mod_security: Access denied with code 503. Pattern match "!^[0-9a-z]*$" at ARG("PHPSESSID") [severity "EMERGENCY"] [hostname "www.forumsains.com"] [uri "/fisika/pemanasan-global-akan-menghancurkan-dunia/msg1825/?PHPSESSID=jr5r1i4bjpf4ov28c9i33jf7c0;topicseen"] [unique_id "2IkYNdBxvgUAACE-c8YAAAAM"]
Note : that page is not showing error now, I already removed all the links.
And one more thing, I have disabled mod_security, so I guess that wasn't causing the problem.
Quote from: Dannii on August 03, 2008, 06:53:47 AM
Quote from: NIBOGO on August 02, 2008, 07:18:54 PMThanks and now i have the articles in this format:
http://www.mundo-se.com/page/25/ (http://www.mundo-se.com/page/25/)
How i can have something like:
http://www.mundo-se.com/CDA (http://www.mundo-se.com/CDA)_w880
* CDA w880 is the title of the article
TP should already support that.
Where i can find that?
jankariwo, follow these instructions: http://code.google.com/p/prettyurls/wiki/TroubleShooting
axlarry, hmm, that seems to be saying that the PHPSESSID isn't in hexadecimal. I can't see how this mod would change that though!
NIBOGO, TP 1.0.5 supports text in the URLs. I think it's called a short name or something.
Quote from: Dannii on August 03, 2008, 07:38:10 PM
jankariwo, follow these instructions: http://code.google.com/p/prettyurls/wiki/TroubleShooting
axlarry, hmm, that seems to be saying that the PHPSESSID isn't in hexadecimal. I can't see how this mod would change that though!
NIBOGO, TP 1.0.5 supports text in the URLs. I think it's called a short name or something.
Thanks I already scrapped the site and reinstalled
runebergen, are you sure it's act=Arcade and not action=arcade?
Yes, but it seems to be both maybe...
Not an expert on this arcade mod, but the games have Action Script in the flash, that sends the code to a URL that is either "act=arcade" or "action=arcade"
BUT, your fix for leaving Arcade out of the Pretty URL filters works, so maybe its seen by SMF as action regardless... I think, havent seen errors since your filter fix..
I picked up some PHP code for you to look at, just to see... Seems like game versions 1 send action, and game versions 2 send act
As for game versions 3, I dont think they work with my Arcade mod, but maybe its something comming.
Not sure :)
Sorry, hope its of some sort of assistance...
//all default arcade actions
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'arcade') {
$SMF_ARCADE_PATH .= "&action=".$_REQUEST['action'];
if (isset($_REQUEST['sa'])) {
$SMF_ARCADE_PATH .= "&sa=".$_REQUEST['sa'];
}
$do_arcade = true;
}
//For IBPArcade v2
if (isset($_REQUEST['act']) && strtolower($_REQUEST['act']) == 'arcade') {
$SMF_ARCADE_PATH .= "&act=".$_REQUEST['act'];
if (isset($_REQUEST['do'])) {
$SMF_ARCADE_PATH .= "&do=".$_REQUEST['do'];
}
$do_arcade = true;
}
//For IBPArcade v3
if (isset($_REQUEST['autocom']) && $_REQUEST['autocom'] == 'arcade') {
$SMF_ARCADE_PATH .= "&autocom=".$_REQUEST['autocom'];
if (isset($_REQUEST['do'])) {
$SMF_ARCADE_PATH .= "&do=".$_REQUEST['do'];
}
$do_arcade = true;
}
}
By the way, I fixed the Simple Portal part...
You are right, that it could be in the root of my site, and that this would give /forum/ for index?action=forum..
But that would make for example Board Hover mod, and relative paths broken I think.
At least Board Hover mod doent work... AS it will be /forum/index.php?xxx for the URL that mod gives.
I fixed it by making a similar exception in the Pretty URL filters, as Arcade. Index.php?action=forum is ignored by Pretty URL at my site, and then Simple Portal works (a simple welcome page at "home" button or root of forum)
Reason I dont but it in root of site, is that the forum is just a community part of site, and the main site is not built around SMF :)
Hope that makes sense :)
Quote from: Dannii on August 03, 2008, 07:38:10 PM
axlarry, hmm, that seems to be saying that the PHPSESSID isn't in hexadecimal. I can't see how this mod would change that though!
You're saying that this is not hexadecimal :
PHPSESSID=jr5r1i4bjpf4ov28c9i33jf7c0
What doesn't it mean? Is it suppose to be in hexadecimal? So this could be the cause of the problem?
Pls excuse my stupid questions, I really have no clue what you're talking about :-X
When you click his name it goes here http://maturevideogamer.co.uk/profile/Gaming%20Soldier/ . gaming soldier was his old username its now mad dog of wars.
http://maturevideogamer.co.uk/profile/MAD%20DOG%20OF%20WARS/ this link works.
Cheers m8
Quote from: zapiy on August 04, 2008, 05:39:12 PM
When you click his name it goes here http://maturevideogamer.co.uk/profile/Gaming%20Soldier/ . gaming soldier was his old username its now mad dog of wars.
http://maturevideogamer.co.uk/profile/MAD%20DOG%20OF%20WARS/ this link works.
Cheers m8
Go to Pretty URL control panel, disable Pretty URL profiles... save
Then enable, and save
Then go to the maintenance part, and press run maintenance
This way will force update the urls to be correct for new profile names :)
But maybe you already did, if you are saying its working :)
Not the best mod I ever saw before ::)
Quote from: runebergen on August 04, 2008, 07:53:55 PM
Quote from: zapiy on August 04, 2008, 05:39:12 PM
When you click his name it goes here http://maturevideogamer.co.uk/profile/Gaming%20Soldier/ . gaming soldier was his old username its now mad dog of wars.
http://maturevideogamer.co.uk/profile/MAD%20DOG%20OF%20WARS/ this link works.
Cheers m8
Go to Pretty URL control panel, disable Pretty URL profiles... save
Then enable, and save
Then go to the maintenance part, and press run maintenance
This way will force update the urls to be correct for new profile names :)
But maybe you already did, if you are saying its working :)
Worked a treat nice one fella.
Quote from: runebergen on August 04, 2008, 01:03:52 PMYes, but it seems to be both maybe...
Not an expert on this arcade mod, but the games have Action Script in the flash, that sends the code to a URL that is either "act=arcade" or "action=arcade"
BUT, your fix for leaving Arcade out of the Pretty URL filters works, so maybe its seen by SMF as action regardless... I think, havent seen errors since your filter fix..
I picked up some PHP code for you to look at, just to see... Seems like game versions 1 send action, and game versions 2 send act
As for game versions 3, I dont think they work with my Arcade mod, but maybe its something comming.
Not sure :)
Sorry, hope its of some sort of assistance...
Okay, I'll have a look into it.
Quote from: runebergen on August 04, 2008, 01:10:11 PM
By the way, I fixed the Simple Portal part...
You are right, that it could be in the root of my site, and that this would give /forum/ for index?action=forum..
But that would make for example Board Hover mod, and relative paths broken I think.
At least Board Hover mod doent work... AS it will be /forum/index.php?xxx for the URL that mod gives.
How would it be broken?
QuoteI fixed it by making a similar exception in the Pretty URL filters, as Arcade. Index.php?action=forum is ignored by Pretty URL at my site, and then Simple Portal works (a simple welcome page at "home" button or root of forum)
Reason I dont but it in root of site, is that the forum is just a community part of site, and the main site is not built around SMF :)
So you have more of the site that isn't the portal? Usually a portal is used to make up the bulk of a site... but I'm sure there are other arrangements too.
Quote from: axlarry on August 04, 2008, 01:53:57 PM
You're saying that this is not hexadecimal :
PHPSESSID=jr5r1i4bjpf4ov28c9i33jf7c0
What doesn't it mean? Is it suppose to be in hexadecimal? So this could be the cause of the problem?
Pls excuse my stupid questions, I really have no clue what you're talking about :-X
The letters following PHPSSESSID should only be from 0-9 and a-f. I don't know why it has j's and r's and p's etc.
Quote from: zapiy on August 04, 2008, 05:39:12 PM
When you click his name it goes here http://maturevideogamer.co.uk/profile/Gaming%20Soldier/ . gaming soldier was his old username its now mad dog of wars.
http://maturevideogamer.co.uk/profile/MAD%20DOG%20OF%20WARS/ this link works.
So you changed the username and not just the display name? Hmm, I should add something to empty the cache when you do that.
Quote from: Kylezz on August 04, 2008, 11:49:12 PM
Not the best mod I ever saw before ::)
Well I wouldn't expect so, but what could make it better?
Quote from: Dannii on August 05, 2008, 08:39:58 AM
Quote from: runebergen on August 04, 2008, 01:10:11 PM
By the way, I fixed the Simple Portal part...
You are right, that it could be in the root of my site, and that this would give /forum/ for index?action=forum..
But that would make for example Board Hover mod, and relative paths broken I think.
At least Board Hover mod doent work... AS it will be /forum/index.php?xxx for the URL that mod gives.
How would it be broken?
Sorry, I was inaccurate.. Many mod that uses RELATIVE urls in the code, seems to be broken with Pretty URLS enabled.
One of these are for example Ajax Registration mod. As it sends index.php?action=registration=ajax something
But when Pretty URL is enabled for the actions, the Ajax mod will send
/forum/registration/index.php?action=registration=ajax something
Being relative, the url /forum/registration/ fails.
Same happened with my Board Hover mod, but only when I have Simple Portal enabled, and Pretty Url for index.php?action=forum for the forum page.
That would make the relative urls in Board Hover mod send this url /forum/forum/index.php?something
But I have fixed both, by making a filter exception for both the action=forum and for action=registration :)
Dont loose sleep over it, if it sounds like a pain to make work :) I've fixed it with filter exceptions.
But maybe there is a way to catch all relative index.php?action= etc, and make it go to the root of the SMS install? And not to the Pretty URL url...(example /forum/xxxx/)
hope it makes sense.
And hope I dont come across as a nag here, I LOVE YOUR MOD ;) Pretty URLs makes the SMF shine... not much fan of nasty silly urls ;)
Only meant as some feedbacks, and if it cant be "fixed", no worries :)
After 1.0 is released (hopefully soon... anyone want to help with the graphics?) I will investigate fixing relative URLs. For now the solution is to ask mod authors to change to using absolute URLs.
The arcade is a bit of special case though, because it can be hard, or may not even really be possible, to change to absolute URLs in flash. This is why I'm planning to add something to the extras package for it.
Edit: Okay, I added a filter in the extras package that should allow relative URLs in flash to work... as long as they at least still have "index.php" in them.
Quote from: Dannii on August 05, 2008, 11:56:58 AM
Edit: Okay, I added a filter in the extras package that should allow relative URLs in flash to work... as long as they at least still have "index.php" in them.
*Sounds interesting, might work for the other mods with relative path :)
But if the games are sorted, thats a good plus..
As for graphics, hit me up if you wanna.. I work as a Graphic designer, so might help you :)
Hello Dannii,
I moved to a new server. I imported my database to the new site. After running repair_settings.php, everything is fine.
But when I install your mod [it was installed when it was on the other server as well], it starts to point to point to old server url again.
I also tried deleted any pretty url tables in database but didn't help. Ran maintenance tasks, didn't help.
Please help.
PanesarV, check what value the pretty_root_url setting is (in the smf_settings table.)
runebergen, have you done any web design before? I've started on an admin panel design (as seen in 0.9) but I really don't know where to go from there. If you're interested in helping that would be great, otherwise I'll just do something simple.
Quote from: Dannii on August 06, 2008, 05:01:59 AM
PanesarV, check what value the pretty_root_url setting is (in the smf_settings table.)
You are amazing. Changed the URL to the new URL and everything working fine now.
Thank you very much!!!
Quote from: Dannii on August 06, 2008, 05:01:59 AM
runebergen, have you done any web design before? I've started on an admin panel design (as seen in 0.9) but I really don't know where to go from there. If you're interested in helping that would be great, otherwise I'll just do something simple.
yes ...;) If you want me to give it a go, let me know.. I'll gladly help, for the great effort you've put into this awesome mod ;)
SMF wouldnt have been the same without it
The current files are at http://prettyurls.googlecode.com/svn/trunk/Base/pretty/, chrome.svg is the source file.
I'm planning to add a picture of cherry blossoms (the prettiest thing I can think of that would work for a forum...) to the header, but I don't know waht to do with the menu or other parts on the news page. The settings page is probably fine just as a normal HTML form. If you have any ideas of what would fit in well with the border for the menu, caption and notice box then please do show me. If you want I could give you SVN access too. And... perhaps if you want to take this further maybe start a topic on the dev forum so as to not clutter this topic up too much further?
Thanks!
Hi,
A couple of the actions aren't being converted to pretty urls...
- ?action=affiliates
- ?action=info
- ?action=staff
I tried to run the maintenance but it doesn't seem to add the actions. ?action=affiliates is the affiliates mod and the other two are actions from the custom actions mod.
It seems this mod might not recognize custom actions with the mod.
Any ideas?
Brian
Hey Dannii, why don't you do the URL rewriting stuff in PHP?
So for example you get the $_SERVER[PHP_SELF] and stripe off the domain and forum path stuff and then determine form the remaining URL string which page to display.
Oh and... if the string or topic ID cannot be found send header 404, at least the header...
Just some 2 cents from me. ;)
Ok, I am having issues with this mod.
I have a directory on my website which is in /public_html/ and it is called main. If I type in http://www.gamerzgarage.com/main it goes to a blank page on my root SMF forum in /public_html/ instead of going to /main/ as it should. How can I fix this? If I type /main/index.php it loads correctly but I want to fix it for people who don't know to type index.php...
Thanks in advance,
Brian
Quote from: brianjw on August 08, 2008, 10:20:47 AMA couple of the actions aren't being converted to pretty urls...
- ?action=affiliates
- ?action=info
- ?action=staff
I tried to run the maintenance but it doesn't seem to add the actions. ?action=affiliates is the affiliates mod and the other two are actions from the custom actions mod.
It seems this mod might not recognize custom actions with the mod.
It gets the list of actions from the list in index.php. I think the custom actions mod doesn't use this list.
Quote from: Dorian on August 08, 2008, 06:38:53 PMHey Dannii, why don't you do the URL rewriting stuff in PHP?
So for example you get the $_SERVER[PHP_SELF] and stripe off the domain and forum path stuff and then determine form the remaining URL string which page to display.
Oh and... if the string or topic ID cannot be found send header 404, at least the header...
Well there's nothing wrong with how it's done now is the simple answer. But I am considering doing this in the future, to make it easier to run on lighttpd and IIS etc.
Quote from: brianjw on August 08, 2008, 08:54:51 PMI have a directory on my website which is in /public_html/ and it is called main. If I type in http://www.gamerzgarage.com/main it goes to a blank page on my root SMF forum in /public_html/ instead of going to /main/ as it should. How can I fix this? If I type /main/index.php it loads correctly but I want to fix it for people who don't know to type index.php...
Do you have a .htaccess file in /public_html/?
I use SEO4SMF but I'm ending up with queries from 26-30 on each page and I've been told it's because of the mod.
Is PrettyURLs any better with queries? Can you give me an idea of the extra queries this mod will produce?
Danni said, "You can try editing $scripturl in Querystring.php where it's defined, but it might give you unexpected results. In the future I'll do this automatically."
Please only make that optional as after experimenting, I ended up choosing to force all my forum URLs to use /forum/index.php as forcing it to /forum/ caused a lot of problems.
Dannii,
Is there a way to make it get it from the custom actions list as well?
My forum is in /public_html/ and yes I do have a .htaccess in the root of my forum because your mod added it. It seems that if there is a directory inside of the forum root which happens to be /public_html/ and if there is a directory called /main/ then. It will think that /main/ is the name of a board because it comes out as http://www.gamerzgarage.com/main/?pretty;board=main. or something very similar. Anyway to fix this?
(*NOTE*: I uninstalled the mod untill we can solve this problem)
Thanks,
Brian
Quote from: mark7144 on August 09, 2008, 05:40:01 AM
Is PrettyURLs any better with queries? Can you give me an idea of the extra queries this mod will produce?
(Pretty URLs adds 0.035s, 1q)
Quote from: mark7144 on August 09, 2008, 05:40:01 AMI use SEO4SMF but I'm ending up with queries from 26-30 on each page and I've been told it's because of the mod.
Is PrettyURLs any better with queries? Can you give me an idea of the extra queries this mod will produce?
It should add between 1-4 queries per page.
Quote from: mark7144 on August 09, 2008, 05:46:03 AMDanni said, "You can try editing $scripturl in Querystring.php where it's defined, but it might give you unexpected results. In the future I'll do this automatically."
Please only make that optional as after experimenting, I ended up choosing to force all my forum URLs to use /forum/index.php as forcing it to /forum/ caused a lot of problems.
Well it will depend on which method I choose to implement and how reliable it is. I'm not planning to actually change $scripturl anymore.
Quote from: brianjw on August 09, 2008, 11:52:07 AMDannii,
Is there a way to make it get it from the custom actions list as well?
My forum is in /public_html/ and yes I do have a .htaccess in the root of my forum because your mod added it. It seems that if there is a directory inside of the forum root which happens to be /public_html/ and if there is a directory called /main/ then. It will think that /main/ is the name of a board because it comes out as http://www.gamerzgarage.com/main/?pretty;board=main. or something very similar. Anyway to fix this?
(*NOTE*: I uninstalled the mod untill we can solve this problem)
So http://www.gamerzgarage.com/ is your SMF installation, and http://www.gamerzgarage.com/main/ is something else that's not part of SMF? Well of course it's thinking it's a board! You'll need to add a rule like this before the others in .htaccess:
RewriteRule ^main/?$ .main/index.php [L,QSA]
Hello Dannii,
thank you very much for this great mod, i installed the mod succesfully and enabled url rewriting in the admin control panel.
but i couldn't make it work on a fresh SMF 2.0 Beta 3.1 Public.
http://www.eslreader.com/beta/general-discussion/welcome-to-smf!/
this page isn't opening.
What else should i do in order to make it work?
Your help will be appreciated
Hi,
Thanks for the great mod!
We only have small problem.
About once a week with Pretty URL enabled
the index page will be blank but all the other pages
work fine.
Any ideas what will cause this?
Thanks
I have 2.0 Beta 3.1 installed and its not working for me either...
It rewrote all my urls and none of them work now.
www.realsoldiers.com
forumer and JeepJim, you need to follow these instructions to disable the mod, after which we can see whether it can be fixed.
http://code.google.com/p/prettyurls/wiki/TroubleShooting
partners, is there anything in the error log? If you upgrade to the 0.9 snapshot does it still happen?
Hi,
Thanks. Your codes solved the problem. :)
But is it possible to allow this mod to work with the custom action mod or make a tiny little hack that will make it work with this mod?
Hi,
We had The mod turned off today but just turned it back on and it is working.
How do we upgrade to 0.9 snapshot?
We do have this error in the log:
Hacking attempt...
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (4678, "online-data-typing-jobs-available-register-today-at-www-dataentryjobs--4678")
File: /home/freeadzf/public_html/Sources/PrettyUrls-Filters.php
Line: 274
Thanks for the help.
Quote from: brianjw on August 10, 2008, 08:18:56 PM
Hi,
Thanks. Your codes solved the problem. :)
But is it possible to allow this mod to work with the custom action mod or make a tiny little hack that will make it work with this mod?
Probably but it will take time and I'm busy.
Quote from: partners on August 10, 2008, 08:41:53 PM
Hi,
We had The mod turned off today but just turned it back on and it is working.
How do we upgrade to 0.9 snapshot?
We do have this error in the log:
Hacking attempt...
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (4678, "online-data-typing-jobs-available-register-today-at-www-dataentryjobs--4678")
File: /home/freeadzf/public_html/Sources/PrettyUrls-Filters.php
Line: 274
Thanks for the help.
Get it here: http://code.google.com/p/prettyurls/downloads/list
Ok, I can see that pretty url is installed, But i can`t see any option in admin panel for enabling it ?
Dannii, if you don't have time to make this mod compatible with the custom action mod then do you have any ideas how I could do this and I will code it?
Quote from: gauravtechie on August 10, 2008, 10:35:53 PM
Ok, I can see that pretty url is installed, But i can`t see any option in admin panel for enabling it ?
The mod will add it's own section. If for some reason it's not shown in the menu you can access it by action=pretty.
Quote from: brianjw on August 10, 2008, 10:38:33 PM
Dannii, if you don't have time to make this mod compatible with the custom action mod then do you have any ideas how I could do this and I will code it?
You'll have to edit the maintenance function. After getting the list from index.php you'll want to do a database query for the custom actions and then merge the two arrays together.
index.php?action=pretty bring back me to index page.
Any method to validate i have correct package installed.
Also the mod name i can see on http://www.desiconnect.net/index.php?action=packages
is Pretty URLs - Base 0.8.4
Is there anything else i need to install
It musn't have installed properly then, even though it says it has. The problem is unlikely to be specific to this mod, but probably would occur with any mod. Have you had success with any others before?
You should ask for help in the general support board.
Quote from: Dannii on August 10, 2008, 08:06:48 PM
forumer and JeepJim, you need to follow these instructions to disable the mod, after which we can see whether it can be fixed.
http://code.google.com/p/prettyurls/wiki/TroubleShooting
partners, is there anything in the error log? If you upgrade to the 0.9 snapshot does it still happen?
i upgraded to the 0.9 snapshot but it's still not working, i use php on windows hosting, may it be the cause of this problem?
Depends if you're using Apache or IIS. At the moment you really need Apache, I'm not supporting IIS yet.
Get it here: http://code.google.com/p/prettyurls/downloads/list
OK, do we need to uninstall first?
Hi again,
We hate to keep bugging you.
We installed 0.9 and have this error on top of page:
// Pretty URLs mod $txt['pretty_admin_menu'] = 'Pretty URLs'; // Board URLs interface $txt['pretty_add_url'] = 'Add'; $txt['pretty_add_url_description'] = 'Add a URL. Note that what you enter here will be processed as only certain characters are allowed.'; $txt['pretty_board_url_title'] = 'Pretty URLs for: '; $txt['pretty_deleted_board'] = 'Deleted board #'; $txt['pretty_duplicate_link'] = 'delete it first.'; $txt['pretty_duplicate_warning'] = 'That URL is already in use by another board. It will be available if you '; $txt['pretty_make_primary'] = 'Make primary'; $txt['pretty_modify_board_url'] = 'Pretty URL'; $txt['pretty_no_primary_warning'] = 'Warning, no primary URL!'; $txt['pretty_numerical'] = 'Sorry, but as that URL is either a number or the same as a forum action the board ID had to be added as a suffix.'; $txt['pretty_primary_url'] = 'Primary'; // Settings descriptions $txt['pretty_action_array'] = 'An array of forum actions, extracted from index.php.'; $txt['pretty_board_lookup'] = 'A serialized array of URL => ID_BOARD pairs, used for processing $_GET[\'board\']. There can be more than one URL for each board.'; $txt['pretty_board_urls'] = 'A serialized array of ID_BOARD => URL pairs, used for generating pretty replacement URLs.'; $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.'; $txt['pretty_filters'] = 'A serialized array of filter data.'; $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the pretty_filters setting instead.'; $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as $boardurl.';
Thanks
Quote from: partners on August 11, 2008, 06:51:13 PM
Hi again,
We hate to keep bugging you.
We installed 0.9 and have this error on top of page:
// Pretty URLs mod $txt['pretty_admin_menu'] = 'Pretty URLs'; // Board URLs interface $txt['pretty_add_url'] = 'Add'; $txt['pretty_add_url_description'] = 'Add a URL. Note that what you enter here will be processed as only certain characters are allowed.'; $txt['pretty_board_url_title'] = 'Pretty URLs for: '; $txt['pretty_deleted_board'] = 'Deleted board #'; $txt['pretty_duplicate_link'] = 'delete it first.'; $txt['pretty_duplicate_warning'] = 'That URL is already in use by another board. It will be available if you '; $txt['pretty_make_primary'] = 'Make primary'; $txt['pretty_modify_board_url'] = 'Pretty URL'; $txt['pretty_no_primary_warning'] = 'Warning, no primary URL!'; $txt['pretty_numerical'] = 'Sorry, but as that URL is either a number or the same as a forum action the board ID had to be added as a suffix.'; $txt['pretty_primary_url'] = 'Primary'; // Settings descriptions $txt['pretty_action_array'] = 'An array of forum actions, extracted from index.php.'; $txt['pretty_board_lookup'] = 'A serialized array of URL => ID_BOARD pairs, used for processing $_GET[\'board\']. There can be more than one URL for each board.'; $txt['pretty_board_urls'] = 'A serialized array of ID_BOARD => URL pairs, used for generating pretty replacement URLs.'; $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.'; $txt['pretty_filters'] = 'A serialized array of filter data.'; $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the pretty_filters setting instead.'; $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as $boardurl.';
Thanks
Open modifications.english.php
Make sure all the text is before the
?>.
You do need to uninstall the old version first, and as ccbtimewiz said, check that there is only one ?> and that it's the very last thing in the file.
Hi again,
OK, thanks. We will try that.
That should be fine, though you haven't got this mod's texts anywhere!
Just realized that. Told you we did not know what we are doing.
We think it is working now. Had ?> two times.
Deleted one and it is working now.
Thank you Danni and ccbtimewiz so much for the help.
How do I exclude one action from the pretty urls? I want to remove arcade.
I tried removing it from the .htaccess but it converted the links to /arcade/ and it went to a 404 because there was no arcade in .htaccess.
Any ideas?
Thanks,
Brian
can't figure out how to convert german characters ä, ö, ü to ae, oe, ue, NOT a, o, u....
anybody?
guess it's somewhere in the subs-prettyurls.php?
thanks in advance for any hint...
nevermind.
i found it out while frickeling with the mentioned file.
hi, first that quite thank you for this fantastic MOD, nowadays I use 0.9 and I still have a doubt.
It is possible that them ";" one changes them for "/"?
I explain, for example
/?sa=statechange;id=15;type=block;sesc=d6056560bbb9188af1706cd9ec0b0a57
for
/?sa=statechange/id=15/type=block/sesc=d6056560bbb9188af1706cd9ec0b0a57
Thnks for you help.
Sorry for my english
MarioH (By google traducctor)
Quote from: brianjw on August 12, 2008, 11:34:12 AM
How do I exclude one action from the pretty urls? I want to remove arcade.
I tried removing it from the .htaccess but it converted the links to /arcade/ and it went to a 404 because there was no arcade in .htaccess.
Any ideas?
Thanks,
Brian
Make this change: http://www.simplemachines.org/community/index.php?topic=146969.msg1564990#msg1564990
Quote from: MarioH on August 12, 2008, 06:17:57 PM
hi, first that quite thank you for this fantastic MOD, nowadays I use 0.9 and I still have a doubt.
It is possible that them ";" one changes them for "/"?
I explain, for example
/?sa=statechange;id=15;type=block;sesc=d6056560bbb9188af1706cd9ec0b0a57
for
/?sa=statechange/id=15/type=block/sesc=d6056560bbb9188af1706cd9ec0b0a57
Thnks for you help.
Sorry for my english
MarioH (By google traducctor)
No. Not that it would be any better.
This solved everything thanks. :)
Also, by looking at the filter file thing...
Could I manually add actions from the custom action mod to make them work? If So, How?
You can add them to the pretty_action_array setting, but whenever maintenance is run they'll be removed again.
Well, tell me this:
1.) How EXACTLY to add them to the pretty_action_array setting? (in find & replace instructions would be best: tell me how to do it with multiple actions)
2.) How to manually run the maintenance without the link but just by editing files?
It's a serialized array. You can use the PHP functions serialize() and unserialize() to turn it from a string to an array and back again. Make up a little PHP file to do that.
Maintenance is just a function. You can call it from any page if you've included Subs-PrettyUrls.php.
Can I manually change the URL set-up for a forum board so that it is different to that of what the board has been named?
For example:
Britney Talk would usually be /britney-talk/ but what if I wanted so it would be /britney-spears-forum/ but the board would still be called Britney Talk.
I've got a problem with this mod...
My forum's (SMF 2.0 Beta 3.1p) address used to be: http://aaz.nazwa.pl/acl
and pretty urls 0.8.4 worked flawlessly...
Then I bought a domain, so now it's www.motone.pl
Normally my adresses look like this: http://www.motone.pl/index.php?...
I want them to look like: http://www.motone.pl/category/topic
So I installed Pretty urls again, but the mod doesn't convert the adresses correctly...
Pretty urls for functions don't work and I get 404 errors...
It works for categories/topics, but it gives my old adress http://aaz.nazwa.pl/acl/category/topic instead of
http://www.motone.pl/category/topic...
I'm clueless... Can someone help me?
Quote from: mark7144 on August 13, 2008, 04:53:49 PMCan I manually change the URL set-up for a forum board so that it is different to that of what the board has been named?
For example:
Britney Talk would usually be /britney-talk/ but what if I wanted so it would be /britney-spears-forum/ but the board would still be called Britney Talk.
In 0.9 you can change a board's URL in the manage boards page.
Quote from: saneone on August 13, 2008, 05:05:31 PMI've got a problem with this mod...
My forum's (SMF 2.0 Beta 3.1p) address used to be: http://aaz.nazwa.pl/acl
and pretty urls 0.8.4 worked flawlessly...
Then I bought a domain, so now it's www.motone.pl
Normally my adresses look like this: http://www.motone.pl/index.php?...
I want them to look like: http://www.motone.pl/category/topic
So I installed Pretty urls again, but the mod doesn't convert the adresses correctly...
Pretty urls for functions don't work and I get 404 errors...
It works for categories/topics, but it gives my old adress http://aaz.nazwa.pl/acl/category/topic instead of
http://www.motone.pl/category/topic...
I'm clueless... Can someone help me?
Check that the pretty_root_url setting (in smf_settings) is correct.
Hi, first of all I'd like to say thanks for an amazing mod that all serious forum owners need.
Second, I'm about to install this (auto via my admin) and have a few questions..
1- Will this work with 1.1.5 without any further coding needed?
2- What happends to the former (DUPLICATE CONTENT) URL's, are they 302 directed to the new URL?
3- What happens if you have 2 forums on Index.php with the same name, same URL right?
4- Please PM me your paypal email addy so I can send you a beer after install :)
Louis
I think I can answer some of these for you, roulettered56.
1- It works on SMF 1.1.5. If you have other mods installed it is POSSIBLE that errors may occur during the installation, but I have over 50 mods installed on my site and this mod installed with no errors.
2- I -think- that the old URL's still work but they do not redirect. But all the links in SMF automatically change to the ones pretty urls provides.
3- I don't understand what you are asking...
Hello awesome Dannii,
Is it possible to eliminate () brackets from my URLs?
Awesome, ETA for 0.9?
Quote from: roulettered56 on August 13, 2008, 10:25:09 PM
Hi, first of all I'd like to say thanks for an amazing mod that all serious forum owners need.
Second, I'm about to install this (auto via my admin) and have a few questions..
1- Will this work with 1.1.5 without any further coding needed?
2- What happends to the former (DUPLICATE CONTENT) URL's, are they 302 directed to the new URL?
3- What happens if you have 2 forums on Index.php with the same name, same URL right?
4- Please PM me your paypal email addy so I can send you a beer after install :)
Louis
It should work fine in 1.1.5, and the old URLs are 301 redirected, not 302.
I'm not sure what you mean by having two forums...
PanesarV, you can remove those lines from Subs-PrettyUrls.php though that will only change it for new topics.
mark7144, I'm not sure.. I don't have a lot of time. 1.0 is pretty much complete now though, I just want to finish the design of the admin panel. Functionally it is complete. You can get a 0.9 snapshot from the download page.
Hi there.
I have just installed this mod and when I've came back to the site I couldn't see the site.
Instead I get this message:
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.33 Server at localhost Port 80
500 Internal Server Error"
The thing is I have checked all the posts looking for a case like me and no threat can solve my problem.
I have the Smf installed in localhost with Easyphp so I don't have the problem of the Chmod and the permissions( all the folders are writable). I also checked my .htaccess file but I don't have it and maybe is this the problem but I don't know how to create a good .htaccess file.
Could anybody guide me trhought the solutions?
Thanx in advance.
Osmaga
Osmaga,
Sometimes it is possible that Internal Server Errors are created because of Duplicate of the code. I recommend using the Package Parser (http://www.gamerzgarage.com/package.php). Upload the pretty urls mod, select your version of SMF, choose uninstall, and then all edits. Uninstall the entire mod manually. Once you've uninstalled the mod manually, then look through the files again and follow the uninstall instructions again to just check for any duplicates. Then save the files and upload the files over again and try installing again. (Internal Error Should be gone after full uninstall manually)
Is there anyway to disable the use of PHP session IDS? I hate that Google will index my forum with those,
Quote from: osmaga on August 14, 2008, 02:07:55 PM
Hi there.
I have just installed this mod and when I've came back to the site I couldn't see the site.
Instead I get this message:
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.33 Server at localhost Port 80
500 Internal Server Error"
The thing is I have checked all the posts looking for a case like me and no threat can solve my problem.
I have the Smf installed in localhost with Easyphp so I don't have the problem of the Chmod and the permissions( all the folders are writable). I also checked my .htaccess file but I don't have it and maybe is this the problem but I don't know how to create a good .htaccess file.
Could anybody guide me trhought the solutions?
Thanx in advance.
Osmaga
The .htaccess file should be created automatically, if PHP has write permissions. If you're in Windows hopefully this won't be a problem. Are you actually running Apache though? You may need to manually enable .htaccess and mod_rewrite.
Quote from: mark7144 on August 14, 2008, 03:19:43 PM
Is there anyway to disable the use of PHP session IDS? I hate that Google will index my forum with those,
SMF already does that. If the user agent matches Google it won't use the session parameters.
Quote from: Dannii on August 14, 2008, 10:17:20 PM
SMF already does that. If the user agent matches Google it won't use the session parameters.
Why are PHP sessions used for your mod? I've never had it on my forum before. Just curious :)
i get these two errors in the error log after installing the mod..
8: Undefined index: pretty_enable_filters
File: /home/actionen/public_html/goldysun/Sources/QueryString.php
Line: 517
8: Undefined index: pretty_enable_filters
File: /home/actionen/public_html/goldysun/Sources/Subs.php
Line: 2604
Please let me know what is the solution for this. Thank you.
Sorry if this is a stupid question.
I would like to use SMF for couple of things.
1. I have domain.com that I use with SimplePortal mod.
2. Normal SMF forum is at the forums.domain.com
3*. Blog: Community modification is used in usernameX.domain.com
Is this possible with Pretty URLS modification?
*) Every created blog has subdomain, username.domain.com
Thanks for help and information.
Quote from: mark7144 on August 15, 2008, 12:16:59 PMWhy are PHP sessions used for your mod? I've never had it on my forum before. Just curious :)
My mod doesn't change anything, if SMF would use them then so would the mod.
Quote from: F.L.A.M.E.R on August 15, 2008, 01:47:01 PM
i get these two errors in the error log after installing the mod..
8: Undefined index: pretty_enable_filters
File: /home/actionen/public_html/goldysun/Sources/QueryString.php
Line: 517
8: Undefined index: pretty_enable_filters
File: /home/actionen/public_html/goldysun/Sources/Subs.php
Line: 2604
Please let me know what is the solution for this. Thank you.
It looks like one of the settings didn't get installed properly. Don't worry about it. Once you've saved the settings in the admin panel it will be right.
Quote from: vetola on August 15, 2008, 02:11:54 PM
Sorry if this is a stupid question.
I would like to use SMF for couple of things.
1. I have domain.com that I use with SimplePortal mod.
2. Normal SMF forum is at the forums.domain.com
3*. Blog: Community modification is used in usernameX.domain.com
Is this possible with Pretty URLS modification?
*) Every created blog has subdomain, username.domain.com
Thanks for help and information.
Not easily, though talk to Nao cause he's done something like that. .htaccess doesn't have control over subdomains, so you'll need to set something else up to intercept all the subdomains.
Can I just say a big thanks for this mod, I've now changed from SEO4SMF to the 0.9 snapshot and the patch worked perfectly with that.
However, I notice this mod uses more queries, I'm seeing an extra 4 queries consistently per page, is there any way I can reduce that?
Quote from: Dannii on August 15, 2008, 09:36:23 PM
Quote from: F.L.A.M.E.R on August 15, 2008, 01:47:01 PM
i get these two errors in the error log after installing the mod..
8: Undefined index: pretty_enable_filters
File: /home/actionen/public_html/goldysun/Sources/QueryString.php
Line: 517
8: Undefined index: pretty_enable_filters
File: /home/actionen/public_html/goldysun/Sources/Subs.php
Line: 2604
Please let me know what is the solution for this. Thank you.
It looks like one of the settings didn't get installed properly. Don't worry about it. Once you've saved the settings in the admin panel it will be right.
I am first of all confused what this mod does.. just saw that so many people are interested so just tried it.. can you explain a bit about this mod please...
and what sort of settings do i save in there ? I dont know about this mod much... Please explain a bit more..
Thank you.
Hi Danii In the post you told me that:
QuoteThe .htaccess file should be created automatically, if PHP has write permissions. If you're in Windows hopefully this won't be a problem. Are you actually running Apache though? You may need to manually enable .htaccess and mod_rewrite.
I´m running Apache and when I have applied the mod the .htaccess file was created but the forum give me the 500 internal server error.
How can I enable the .htaccess and mod_rewrite in order to continue seeing the forum?
In the httpd.conf maybe??
Thanx for your help.
Quote from: mark7144 on August 16, 2008, 06:54:17 AM
Can I just say a big thanks for this mod, I've now changed from SEO4SMF to the 0.9 snapshot and the patch worked perfectly with that.
However, I notice this mod uses more queries, I'm seeing an extra 4 queries consistently per page, is there any way I can reduce that?
If the cache is working then there shouldn't be 4 per page, only for new topics.
Quote from: F.L.A.M.E.R on August 16, 2008, 07:07:10 AM
I am first of all confused what this mod does.. just saw that so many people are interested so just tried it.. can you explain a bit about this mod please...
and what sort of settings do i save in there ? I dont know about this mod much... Please explain a bit more..
Thank you.
If you save any of the pretty url settings it should work, though the enable/disable one definitely will.
Quote from: osmaga on August 16, 2008, 07:26:05 AM
Hi Danii In the post you told me that:
QuoteThe .htaccess file should be created automatically, if PHP has write permissions. If you're in Windows hopefully this won't be a problem. Are you actually running Apache though? You may need to manually enable .htaccess and mod_rewrite.
I´m running Apache and when I have applied the mod the .htaccess file was created but the forum give me the 500 internal server error.
How can I enable the .htaccess and mod_rewrite in order to continue seeing the forum?
In the httpd.conf maybe??
Thanx for your help.
Probably, though there could be other things you need to do too. Check with Easyphp.
Danni: It's happening for old topics as well. If I refresh the topic several times then it goes from 4q to 2q but never have I seen a thread only add 1q extra.
I use APC with Cache level 1. I've tried it with cache level 2 and 3 and there is no improvement. Do I need to configure APC or something?
It has nothing to do with APC. The mod has its own cache table and every page will require one query to get the pretty URLs from it. Topics will require another query to get the topic ID. These are both very simple queries and the tables use indices so they should be fast. New topics (whether fresh topics or just topics that haven't been viewed yet with the mod) require 2 more queries to add entries to the cache.
So most forum actions should get by with only 1 extra query, though topics will take 2.
Ah so it's because I'm going into topics that have not been viewed since I installed the mod and therefore the most active topics in my forum will always have less queries while the old ones will take longer because they are pushed out of the cache by the newer ones.
Is the cache table large enough? I have a lot of topics which are viewed with robots all the time so I would assume that even the most active topics are sometimes pushed out?
Sorry if I have no idea about how it works.
can you explain this mod a bit.. i exactly dont get this mod..
Quote from: mark7144 on August 16, 2008, 04:50:22 PM
Ah so it's because I'm going into topics that have not been viewed since I installed the mod and therefore the most active topics in my forum will always have less queries while the old ones will take longer because they are pushed out of the cache by the newer ones.
Is the cache table large enough? I have a lot of topics which are viewed with robots all the time so I would assume that even the most active topics are sometimes pushed out?
Sorry if I have no idea about how it works.
The table won't get emptied until the next time you run maintenance/enable a filter so URLs won't get pushed out of it. It can grow very big very quickly though, so large forums will need a lot more database space.
Quote from: F.L.A.M.E.R on August 16, 2008, 06:27:05 PM
can you explain this mod a bit.. i exactly dont get this mod..
It turns URLs like http://www.simplemachines.org/community/index.php?topic=146969 into ones like http://www.simplemachines.org/community/modifications-and-packages/pretty-urls-0-8-4/
Hi everyone,
I've made a new snapshot, though there are really only very minor changes from the last.
However of more interest to some of you, I've made snapshots of the extras and reverter packages. The extras package includes a filter for the arcade, so if those who have had problems with the arcade want to try it, I'd be very interested to hear if it works.
The reverter package is for those who want to uninstall the mod without breaking their links (they'll be 301 redirected back to the normal SMF style.)
If it gives me a 404 error does that mean my host doesn't support url re-writing?
Probably, you should ask them if they support mod_rewrite and .htaccess.
To disable it follow these instructions: http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: Dannii on August 17, 2008, 07:12:29 AM
Probably, you should ask them if they support mod_rewrite and .htaccess.
To disable it follow these instructions: http://code.google.com/p/prettyurls/wiki/TroubleShooting
\
They do
With my host you have to add RewriteBase /
I forgot about that.
Anyone who gets a 404 error try adding RewriteBase /
Ahh, good to hear you were able to fix it.
I'll have to see if I can write some code to automatically determine whether to use RewriteBase or not.
Quote from: Dannii on August 16, 2008, 09:56:54 PM
The table won't get emptied until the next time you run maintenance/enable a filter so URLs won't get pushed out of it. It can grow very big very quickly though, so large forums will need a lot more database space.
Do you plan to remove the need to keep the cache table manually maintained in a future version?
It doesn't need to be manually maintained...
If it keeps getting larger without any limit or a form of pruning, then surely for most people, it needs to be maintained otherwise it will eventually use up all their disk space or database size limit?
I try the extras and now i dont have problems with the arcade
Thanks :)
Quote from: mark7144 on August 17, 2008, 09:39:10 AM
If it keeps getting larger without any limit or a form of pruning, then surely for most people, it needs to be maintained otherwise it will eventually use up all their disk space or database size limit?
It won't grow without limit... it will grow to be very large, but it will be proportional to the number of posts you have. There are a few forums with over 100k posts which have installed the mod and they haven't told me of any problems. You'd need a decent host if you get that big, but then you'd need one even without the mod.
OK and can I just confirm, I can remove everything in the cache table whenever I want without it breaking the forum?
Yes.
I've installed this mod, no errors but i can't get it to work.
I always get a 404 Error
and I am allowed to upload htaccess and mod_rewrite is a loaded module
What I am missing?
The mod should make a .htaccess file already, if PHP has write permissions. Does it?
Follow these instructions to disable it until you fix it: http://code.google.com/p/prettyurls/wiki/TroubleShooting
How do I know if php has write permissions?
Or do I need to chmod something?
Check that if there's a .htaccess file there already that it's set to 775 or 777.
Oh sweet. Now its working
Awesome. :)
Hello, Dannii.
First off.. nice mod :)
I have been messing with this thing for a week now... and I think I understand 95% of it (including modifying the filters using the ;sa=filters url extension in the admin area). I am having an issue, however.
Here's what I am trying to do.... I have two new variables (article and blog) that are almost identical to topic and board. I use these two variables specifically in the Blog: Community modification I am developing. I have tried to perfectly parallel the boards and topics filters with these two new variables. I created their own filters and call back functions. The difference between articles/blogs and topics/boards is that I have added a "folder" after the root URL called blogs... so the URL
http://website.com/index.php?blog=9 would become
http://website/blogs/Blog9Name. This works great, in fact. The problem with this is... when filtering blogs is enabled, the boards in the forum don't filter at all. I have yet to be able to get the articles filter to work right at all.
If you could please give me a hint as to what might be causing the issue that'd be awesome. Thanks :)
Regards,
Charles Hill
[email protected]
Dannii,
How can I edit the maintenance system or something to only ADD your pretty urls code to the existing .htaccess or something so it doesn't continuously erase my stuff in the .htaccess such as IP bans and limits for get and post.
I asked you a couple of pages ago how to add custom actions to the list or something. You told me how in a simple, short php term but I am not of the php knowledge and was hoping you could code a little thing as an example.
Thanks,
Brian
Ok one thing, why it doesn't rewrite sa={variable}?
BUMP
Quote from: brianjw on August 21, 2008, 10:10:07 PM
Dannii,
How can I edit the maintenance system or something to only ADD your pretty urls code to the existing .htaccess or something so it doesn't continuously erase my stuff in the .htaccess such as IP bans and limits for get and post.
I asked you a couple of pages ago how to add custom actions to the list or something. You told me how in a simple, short php term but I am not of the php knowledge and was hoping you could code a little thing as an example.
Thanks,
Brian
Am I right in thinking this mod has disabled the feature for stopping duplicate content by adding a NOINDEX robot meta tag to PRINT & MSG pages?
All standard 1.1.5 add the NOINDEX to these duplicate pages but alas not anymore (after installing mod).
Dannii, this is an AMAZING mod and I thank you for helping us out so much. Is there a possible fix for this issue?
Louis
Quote from: Charles Hill on August 21, 2008, 09:02:13 PM
Hello, Dannii.
First off.. nice mod :)
I have been messing with this thing for a week now... and I think I understand 95% of it (including modifying the filters using the ;sa=filters url extension in the admin area). I am having an issue, however.
Here's what I am trying to do.... I have two new variables (article and blog) that are almost identical to topic and board. I use these two variables specifically in the Blog: Community modification I am developing. I have tried to perfectly parallel the boards and topics filters with these two new variables. I created their own filters and call back functions. The difference between articles/blogs and topics/boards is that I have added a "folder" after the root URL called blogs... so the URL http://website.com/index.php?blog=9 would become http://website/blogs/Blog9Name. This works great, in fact. The problem with this is... when filtering blogs is enabled, the boards in the forum don't filter at all. I have yet to be able to get the articles filter to work right at all.
If you could please give me a hint as to what might be causing the issue that'd be awesome. Thanks :)
Regards,
Charles Hill
[email protected]
Can you share the code for your filter and the callback function please.
Quote from: brianjw on August 21, 2008, 10:10:07 PM
Dannii,
How can I edit the maintenance system or something to only ADD your pretty urls code to the existing .htaccess or something so it doesn't continuously erase my stuff in the .htaccess such as IP bans and limits for get and post.
I asked you a couple of pages ago how to add custom actions to the list or something. You told me how in a simple, short php term but I am not of the php knowledge and was hoping you could code a little thing as an example.
Thanks,
Brian
At the moment the easiest way would just be to add an extra filter with your rules instead. If you tell me what the rules are and which version of this mod you're using I can create the filter for you.
Quote from: jepot5 on August 22, 2008, 12:13:07 AM
Ok one thing, why it doesn't rewrite sa={variable}?
What do you mean?
Quote from: roulettered56 on August 23, 2008, 12:36:16 AM
Am I right in thinking this mod has disabled the feature for stopping duplicate content by adding a NOINDEX robot meta tag to PRINT & MSG pages?
All standard 1.1.5 add the NOINDEX to these duplicate pages but alas not anymore (after installing mod).
Dannii, this is an AMAZING mod and I thank you for helping us out so much. Is there a possible fix for this issue?
Louis
It doesn't touch the noindex rules. If they are't there now they wouldn't have been there before.
Here are the filters:
"blogs": {
"description": "Rewrite Blog URLs",
"enabled": 0,
"filter": {
"priority": 45,
"callback": "pretty_urls_blog_filter"
},
"rewrite": {
"priority": 40,
"rule": "RewriteRule ^ROOTURL([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;folder=$1;blog=$2.0 [L,QSA]\nRewriteRule ^ROOTURL([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;folder=$1;blog=$2.$3 [L,QSA]"
},
"title": "Blogs"
},
"articles": {
"description": "Rewrite Article URLs",
"enabled": 0,
"filter": {
"priority": 40,
"callback": "pretty_urls_article_filter"
},
"rewrite": {
"priority": 45,
"rule": "RewriteRule ^ROOTURL([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;folder=$1;folder2=$2;article=$3.0 [L,QSA]\nRewriteRule ^ROOTURL([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;folder=$1;folder2=$2;article=$3.$4 [L,QSA]"
},
"title": "Articles"
},
Here are the callbacks:
// Filter article urls
function pretty_urls_article_filter($urls)
{
global $context, $db_prefix, $modSettings, $scripturl, $sourcedir;
$pattern = '~' . $scripturl . '(.*[?;&])article=([.a-zA-Z0-9]+)(.*)~S';
$query_data = array();
foreach ($urls as $url_id => $url)
{
// Get the topic data ready to query the database with
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
{
if (strpos($matches[2], '.') !== false)
list ($urls[$url_id]['topic_id'], $urls[$url_id]['start']) = explode('.', $matches[2]);
else
{
$urls[$url_id]['topic_id'] = $matches[2];
$urls[$url_id]['start'] = '0';
}
$urls[$url_id]['topic_id'] = (int) $urls[$url_id]['topic_id'];
$urls[$url_id]['match1'] = $matches[1];
$urls[$url_id]['match3'] = $matches[3];
$query_data[] = $urls[$url_id]['topic_id'];
}
}
// Query the database with these topic IDs
if (count($query_data) != 0)
{
// Look for existing topic URLs
$query_data = array_keys(array_flip($query_data));
$topicData = array();
$unpretty_topics = array();
$query = db_query("
SELECT t.ID_TOPIC, t.ID_BOARD, p.pretty_url
FROM {$db_prefix}topics AS t
LEFT JOIN {$db_prefix}pretty_topic_urls AS p ON (t.ID_TOPIC = p.ID_TOPIC)
WHERE t.ID_TOPIC IN (" . implode(', ', $query_data) . ")", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($query))
if (isset($row['pretty_url']))
$topicData[$row['ID_TOPIC']] = array(
'pretty_board' => (isset($context['pretty']['board_urls'][$row['ID_BOARD']]) ? $context['pretty']['board_urls'][$row['ID_BOARD']] : $row['ID_BOARD']),
'pretty_url' => $row['pretty_url'],
);
else
$unpretty_topics[] = $row['ID_TOPIC'];
mysql_free_result($query);
// Generate new topic URLs if required
if (count($unpretty_topics) != 0)
{
require_once($sourcedir . '/Subs-PrettyUrls.php');
// Get the topic subjects
$new_topics = array();
$new_urls = array();
$query_check = array();
$existing_urls = array();
$add_new = array();
$query = db_query("
SELECT t.ID_TOPIC, t.ID_BOARD, m.subject
FROM {$db_prefix}topics AS t
INNER JOIN {$db_prefix}messages AS m ON (m.ID_MSG = t.ID_FIRST_MSG)
WHERE t.ID_TOPIC IN (" . implode(', ', $unpretty_topics) . ')', __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($query))
$new_topics[] = array(
'ID_TOPIC' => $row['ID_TOPIC'],
'ID_BOARD' => $row['ID_BOARD'],
'subject' => $row['subject'],
);
mysql_free_result($query);
// Generate URLs for each new topic
foreach ($new_topics as $row)
{
$pretty_text = substr(pretty_generate_url($row['subject']), 0, 80);
// A topic in the recycle board doesn't deserve a proper URL
if (($modSettings['recycle_enable'] && $row['ID_BOARD'] == $modSettings['recycle_board']) || $pretty_text == '')
// Use 'tID_TOPIC' as a pretty url
$pretty_text = 't' . $row['ID_TOPIC'];
// No duplicates and no numerical URLs - that would just confuse everyone!
if (in_array($pretty_text, $new_urls) || is_numeric($pretty_text))
// Add suffix '-tID_TOPIC' to the pretty url
$pretty_text = substr($pretty_text, 0, 70) . '-t' . $row['ID_TOPIC'];
$query_check[] = '\'' . addslashes($pretty_text) . '\'';
$new_urls[$row['ID_TOPIC']] = $pretty_text;
}
// Find any duplicates of existing URLs
$query = db_query("
SELECT pretty_url
FROM {$db_prefix}pretty_topic_urls
WHERE pretty_url IN (" . implode(', ', $query_check) . ')', __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($query))
$existing_urls[] = $row['pretty_url'];
mysql_free_result($query);
// Finalise the new URLs ...
foreach ($new_topics as $row)
{
$pretty_text = $new_urls[$row['ID_TOPIC']];
// Check if the new URL is already in use
if (in_array($pretty_text, $existing_urls))
$pretty_text = substr($pretty_text, 0, 70) . '-t' . $row['ID_TOPIC'];
$add_new[] = '(' . $row['ID_TOPIC'] . ', \'' . addslashes($pretty_text) . '\')';
// Add to the original array of topic URLs
$topicData[$row['ID_TOPIC']] = array(
'pretty_board' => (isset($context['pretty']['board_urls'][$row['ID_BOARD']]) ? $context['pretty']['board_urls'][$row['ID_BOARD']] : $row['ID_BOARD']),
'pretty_url' => $pretty_text,
);
}
// ... and add them to the database!
db_query("
INSERT INTO {$db_prefix}pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES " . implode(', ', $add_new), __FILE__, __LINE__);
}
// Build the replacement URLs
foreach ($urls as $url_id => $url)
if (isset($url['topic_id']) && isset($topicData[$url['topic_id']]))
{
$start = $url['start'] != '0' || is_numeric($topicData[$url['topic_id']]['pretty_url']) ? $url['start'] . '/' : '';
$urls[$url_id]['replacement'] = $modSettings['pretty_root_url'] . '/blogs/' . $topicData[$url['topic_id']]['pretty_board'] . '/' . $topicData[$url['topic_id']]['pretty_url'] . '/' . $start . $url['match1'] . $url['match3'];
}
}
return $urls;
}
// Filter blog urls
function pretty_urls_blog_filter($urls)
{
global $scripturl, $modSettings, $context;
$pattern = '~' . $scripturl . '(.*[?;&])blog=([.0-9]+)(.*)~S';
foreach ($urls as $url_id => $url)
// Split out the blog URLs and replace them
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
{
if (strpos($matches[2], '.') !== false)
list ($board_id, $start) = explode('.', $matches[2]);
else
{
$board_id = $matches[2];
$start = '0';
}
$board_id = (int) $board_id;
$start = $start != '0' ? $start . '/' : '';
$urls[$url_id]['replacement'] = $modSettings['pretty_root_url'] . '/blogs/' . (isset($context['pretty']['board_urls'][$board_id]) ? $context['pretty']['board_urls'][$board_id] : $board_id) . '/' . $start . $matches[1] . $matches[3];
}
return $urls;
}
There are really too many problems there... you haven't changed nearly enough. You're the Blog mod's author aren't you? I can make a filter for you and include it in the extras package (though it may take some time...) Do you have a forum where we can discuss this stuff? If not, join my dev forum.
Yes I am the author of the blog mod. I have only started learning regular expressions and url rewriting a week or so ago. My site is http://degreesofzero.com. I appreciate your help very much.
Quote from: Dannii on August 23, 2008, 06:40:08 AM
At the moment the easiest way would just be to add an extra filter with your rules instead. If you tell me what the rules are and which version of this mod you're using I can create the filter for you.
Dannii,
I am not exactly sure what you were asking for in your post to me...
Currently my .htaccess is:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
# The real bad hackers and people we dont want on the entire site go here.
deny from xx
deny from xx
deny from xx
How do I make it so that when I run maintenance, it doesn't replace the entire .htaccess but instead adds the pretty urls code to the .htaccess? If it has to replace the .htaccess please tell me how to add my code then to the file of where all the code is posted for the pretty urls .htaccess. Thanks.
I am using the Custom Action Mod 2.04 (http://custom.simplemachines.org/mods/index.php?mod=331)
Thanks,
Brian
Okay, assuming you're running 0.9 this code will add a new filter with the rules at the top for you. Complete the deny rules of course... and if you want to add further rules you can do so through the sa=filters hidden admin page.
<?php
require_once(dirname(__FILE__) . '/SSI.php');
require_once($sourcedir . '/Subs-PrettyUrls.php');
$prettyFilters = unserialize($modSettings['pretty_filters']);
$prettyFilters['brianjw'] = array(
'description' => 'brianjw',
'enabled' => 1,
'rewrite' => array(
'priority' => 1,
'rule' => array(
'IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*',
'<Limit GET POST>',
'order deny,allow',
'deny from all',
'allow from all',
'</Limit>',
'<Limit PUT DELETE>',
'order deny,allow',
'deny from all',
'</Limit>',
'deny from xx',
'deny from xx',
'deny from xx',
),
),
'title' => 'brianjw',
);
updateSettings(array('pretty_filters' => isset($smcFunc) ? serialize($prettyFilters) : addslashes(serialize($prettyFilters))));
pretty_update_filters();
?>
This code will add extra actions to the list, so run it after running maintenance.
<?php
require_once(dirname(__FILE__) . '/SSI.php');
$action_array = unserialize($modSettings['pretty_action_array']);
$action_array[] = 'new_action1';
$action_array[] = 'new_action2';
updateSettings(array('pretty_action_array' => isset($smcFunc) ? serialize($action_array) : addslashes(serialize($action_array))));
?>
Hope they do the job for you!
Pretty URLs stops topic ratings mod by oldiesmann... after application I can't vote any topics:
http://mods.simplemachines.org/index.php?mod=91
No vote is assigned, it seems almost that I didn't vote never... I think that is a conflict between mods.
If exists a way without uninstalling that topic ratings mod, it's better... I don't want to have db problems.
I've Pretty URLs 0.8.4 installed.
Another point, I can't access in my personal folder in http://www.mysite.com/forum/maintenance, when I apply boards rules, url becomes:
http://www.mysite.com/forum/maintenance/?pretty;board=maintenance.0
I don't want SEO enabled in that link.
Please try upgrading to the latest 0.9 snapshot to see if any of those problems are solved.
Quote from: Dannii on August 24, 2008, 05:39:10 AM
Please try upgrading to the latest 0.9 snapshot to see if any of those problems are solved.
Tried, but I've always that problems.
QuoteAnother point, I can't access in my personal folder in http://www.mysite.com/forum/maintenance, when I apply boards rules, url becomes:
http://www.mysite.com/forum/maintenance/?pretty;board=maintenance.0
I don't want SEO enabled in that link.
For this problem in particular, you could make an exception list of some external URLS (above all in forum folder)... unfortunately I'm not good in coding.
Is there rating topics mod fixed in 0.9? If the problem is checking $_REQUEST['topic'] rather than $topic that should be fixed... if the problem is it uses relative URLs it won't be, and you should ask the mod author to change to absolute URLs.
And you can fix non-smf URLs by adding extra filters, or by accessing the index file inside it. Accessing the index file is simpler, but if you don't want to I can do up a filter for you.
I have latest version of rating topics mod... so this is a relative URL problem?
In each case I'll contact mod author, but can you make me an example of relative URL to be corrected as absolute URL?
About this filter, please create it for me, thank you.
A relative url is something like "index.php?action=rate" rather than "http://domain.com/index.php?action=rate".
Here's the code to make the filter:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
require_once($sourcedir . '/Subs-PrettyUrls.php');
$prettyFilters = unserialize($modSettings['pretty_filters']);
$prettyFilters['max22'] = array(
'description' => 'max22',
'enabled' => 1,
'rewrite' => array(
'priority' => 1,
'rule' => 'RewriteRule ^maintenance/?$ ./maintenance/index.html [L,QSA]',
),
'title' => 'max22',
);
updateSettings(array('pretty_filters' => isset($smcFunc) ? serialize($prettyFilters) : addslashes(serialize($prettyFilters))));
pretty_update_filters();
?>
Change the index.html to index.php or whatever.
Ok, Dannii. I am a little confused.
The first code where you provided needs to go where or named as what?
The second code I need to put somewhere in my forum root and need to run it after running maintenance?
Thanks,
brianjw
They both need to be put in the forum root, and can be named anything. Yes run them after maintenance. You'll need to edit them both though, the first is missing specific people to ban and the second specific actions.
Ok, I see. A couple more questions real quick.
So I just add more of these:
$action_array[] = 'new_action1';
$action_array[] = 'new_action2';
for the actions. It doesn't need to be like $action_array[1] or numbered or anything?
Is it possible to put them in the subaction or something so when ;sa=maintenance;run is typed it will automatically do them both? I will see if I can do something but just let me know if it can be done and what to do.
Thank you very much! This is all greatly appreciated.
Yeah just leave them unnumbered.
In Subs-PrettyUrls.php you'll see a line that says $context['pretty']['maintenance_tasks'][] = 'Updating the array of actions';
You can add the new actions after that line like this:
$context['pretty']['action_array'][] = 'newaction';
Thank you very much! It is working perfectly. :)
I added all the custom actions but instead of running an entire different file. I just changed the $htaccess to this:
// Build the new .htaccess file
$htaccess = '# Gamerz Garage Website. This file was automatically generated on: ' . date('F j, Y, G:i') . '
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
# The real bad hackers and people we dont want on the entire site go here.
deny from xx
deny from xx
deny from xx
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
RewriteEngine on';
Thanks again! :)
Hi,
I have one more issue. An iframe is trying to load this src, ' . $boardurl .'/FCKeditor/
However, pretty urls tries to put the URL as http://www.gamerzgarage.com/tpmod/FCKeditor/editor/fckeditor.html?InstanceName=tp-dluploadtext&Toolbar=Default when it's written out in html. So I am trying to figure out how to make the iframe use this URL: http://www.gamerzgarage.com/FCKeditor/editor/fckeditor.html?InstanceName=tp-dluploadtext&Toolbar=Default
Please let me know if I can fix this without disabling the tpmod action. Since it is trying to load something that doesn't exist (tpmod/FCKeditor) it gives off my sites 404 error message.
Thank you and this is TinyPortal.
-Brian
QuoteI added all the custom actions but instead of running an entire different file. I just changed the $htaccess to this:
Ahh of course, I should have thought of that :P
As for the TP error... it's not the bug is it? http://www.tinyportal.net/index.php?action=bugtracker;sa=bug318
I made that change but it didn't make any difference...
Are you absolute sure it uses $boardurl .'/FCKeditor/' and not just /FCKeditor/ ?
In any case... make a bug on the TP site, it's not my responsibility to fix all of their relative URLs.
Guys i have a serious problem. I installed pretty urls but having trouble with ext-none and tp-ext-none
When i install tp-ext-none without problems then all i see in my portal is:
Unknown column 't.pretty_url' in 'field list'
File: /home/stud/blondeamon/public_html/forum/Sources/TPortal.php
Line: 1761
and when i try to install ext-none it leads to a blank page and doesnt install.
The versions on the google page are deprecated..what does that mean ? Can you give a bit more info on exactly what i need to do with those 2packages and where can i get a fresh version of those ?
Uninstall the versions you have, and install the single 0.8.4 package.
Sorry if this has been asked before, but is there a way to remove the board name from topic URLs? I've noticed a small dip in SERPS since moving from SEO4SMF purely because of this.
Quote from: Dannii on August 24, 2008, 08:55:04 AM
A relative url is something like "index.php?action=rate" rather than "http://domain.com/index.php?action=rate".
Here's the code to make the filter:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
require_once($sourcedir . '/Subs-PrettyUrls.php');
$prettyFilters = unserialize($modSettings['pretty_filters']);
$prettyFilters['max22'] = array(
'description' => 'max22',
'enabled' => 1,
'rewrite' => array(
'priority' => 1,
'rule' => 'RewriteRule ^maintenance/?$ ./maintenance/index.html [L,QSA]',
),
'title' => 'max22',
);
updateSettings(array('pretty_filters' => isset($smcFunc) ? serialize($prettyFilters) : addslashes(serialize($prettyFilters))));
pretty_update_filters();
?>
Change the index.html to index.php or whatever.
so you create a php file and run this on your forum's root directory?
Quote from: mark7144 on August 25, 2008, 04:43:48 AMSorry if this has been asked before, but is there a way to remove the board name from topic URLs? I've noticed a small dip in SERPS since moving from SEO4SMF purely because of this.
How would that work?
Quote from: jepot5 on August 25, 2008, 05:00:30 AMso you create a php file and run this on your forum's root directory?
Exactly.
Quote from: Dannii on August 25, 2008, 12:16:50 AM
Uninstall the versions you have, and install the single 0.8.4 package.
Ok thats the one i have installed right now and nothing else.But when i go to pretty urls panel and i click Enable URL rewriting and then Topics when i go to the forum and click to any topic the result is error page with this message:
Redirect Loop
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
Whats wrong ?
Do you have anything in the error log?
"File: /home/stud/blondeamon/public_html/forum/Themes/default/Admin.template.php (pretty_settings sub template - eval?)
Line: 63'
This error appeared many times
That's not relevant. Are you sure the uninstallation of the really old versions and installation of 0.8.4 went well? What's your .htaccess?
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: August 25, 2008, 18:44
RewriteEngine on
And that's all? Can you try completely uninstalling the mod and deleting all the database settings and tables starting with pretty_? Then try reinstalling the mod again.
Yes, I am absolutely sure Dannii.
See:
// FCKeditor
if($context['TPortal']['use_wysiwyg']=='2' || $context['TPortal']['use_wysiwyg']=='1')
$context['html_headers'] .= '
<script language="JavaScript" type="text/javascript">
function FullEditor(BodyName)
{
var FCKContent = new FCKeditor(BodyName) ;
FCKContent.BasePath = "' . $boardurl . '/FCKeditor/" ;
FCKContent.ToolbarSet = "Default"
FCKContent.Height = "400";
FCKContent.Width = "100%";
FCKContent.ReplaceTextarea() ;
}
function SmallerEditor(BodyName)
{
var FCKComment = new FCKeditor(BodyName) ;
FCKComment.BasePath = "' . $boardurl . '/FCKeditor/" ;
FCKComment.ToolbarSet = "Default"
FCKComment.Height = "400";
FCKComment.Width = "100%";
FCKComment.ReplaceTextarea() ;
}
</script>';
I searched like crazy through this thread but could not find anything. has anyone gotten this to work with tp articles? if so how?
Brian, can you email me a copy of the html of the problem page with: pretty URLs on, and pretty URLs off.
Tim, yes with the extras package.
I've sent you an email. It was send via the smf email user system or whatever because I don't know your email and it doesn't like to tell me so I sent it by clicking on the little mail icon and it took me to a form in which I filled out everything you asked.
Let me know if you get it. My email starts with brianjw. ;)
In the file you sent me, lines 87 and 96 need to be changed (and are repeated as lines 745 and 754.)
Well in the html source the line numbers are different. Can you send me like 5 lines of the code and tell me the part i need to change in each 5 lines so I can have a chunk of what the code looks like?
Thanks. :)
They're both like this:
FCKComment.BasePath = "FCKeditor/" ;
They're probably coming from a different file from the ones you've fixed already. Do a text search over the whole of the TP package.
I installed Pretty URLs.... and now everything but the home page is giving me 404 errors!
Help..... please? It won't even let me into the admin control panel. :(
Found it. If you want to post the bug fix on tiny portal or something:
Open TPmodules.php in ./Sources/
// FCKeditor
if($context['TPortal']['use_wysiwyg']=='2' || $context['TPortal']['use_wysiwyg']=='1')
$context['html_headers'] .= '
<script language="JavaScript" type="text/javascript">
function FullEditor(BodyName)
{
var FCKContent = new FCKeditor(BodyName) ;
FCKContent.BasePath = "FCKeditor/" ;
FCKContent.ToolbarSet = "Default"
FCKContent.Height = "400";
FCKContent.Width = "100%";
FCKContent.ReplaceTextarea() ;
}
function SmallerEditor(BodyName)
{
var FCKComment = new FCKeditor(BodyName) ;
FCKComment.BasePath = "FCKeditor/" ;
FCKComment.ToolbarSet = "Default"
FCKComment.Height = "200";
FCKComment.Width = "100%";
FCKComment.ReplaceTextarea() ;
}
</script>';
// FCKeditor
if($context['TPortal']['use_wysiwyg']=='2' || $context['TPortal']['use_wysiwyg']=='1')
$context['html_headers'] .= '
<script language="JavaScript" type="text/javascript">
function FullEditor(BodyName)
{
var FCKContent = new FCKeditor(BodyName) ;
FCKContent.BasePath = "' . $boardurl . '/FCKeditor/" ;
FCKContent.ToolbarSet = "Default"
FCKContent.Height = "400";
FCKContent.Width = "100%";
FCKContent.ReplaceTextarea() ;
}
function SmallerEditor(BodyName)
{
var FCKComment = new FCKeditor(BodyName) ;
FCKComment.BasePath = "' . $boardurl . '/FCKeditor/" ;
FCKComment.ToolbarSet = "Default"
FCKComment.Height = "200";
FCKComment.Width = "100%";
FCKComment.ReplaceTextarea() ;
}
</script>';
This problem has now been solved as the editor is functioning. Thank you very much! :)
brianjw
Quote from: mark7144 on August 25, 2008, 04:43:48 AM
Sorry if this has been asked before, but is there a way to remove the board name from topic URLs? I've noticed a small dip in SERPS since moving from SEO4SMF purely because of this.
I have found the Pretty URLs in combination with the vBulletin Style Meta tags mod works better than either alone. They're a great combo for SEO.
Someone made a version for 1.1.5 http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714
The 2.0 version is here: http://custom.simplemachines.org/mods/index.php?mod=1138
____________
Raw Paleo Diet Group (http://health.groups.yahoo.com/group/rawpaleodiet)
Quote from: Dannii on August 25, 2008, 08:03:34 AM
How would that work?
In the other mod, you could select a tick box and all the topic URLs would not include the board name in the URL. This shortened the URL and therefore gave the topic keywords more strength.
Include board in URL: http://dev.eldacar.com/smf/pretty-urls-discussion/maintenance/
Remove board from URL: http://dev.eldacar.com/smf/maintenance/
Can that be done for this mod then?
Quote from: GrayFox on August 25, 2008, 09:22:04 PMI installed Pretty URLs.... and now everything but the home page is giving me 404 errors!
Help..... please? It won't even let me into the admin control panel. :(
See your other topic where I replied.
Quote from: brianjw on August 25, 2008, 09:59:36 PMFound it. If you want to post the bug fix on tiny portal or something:
Open TPmodules.php in ./Sources/
// FCKeditor
if($context['TPortal']['use_wysiwyg']=='2' || $context['TPortal']['use_wysiwyg']=='1')
$context['html_headers'] .= '
<script language="JavaScript" type="text/javascript">
function FullEditor(BodyName)
{
var FCKContent = new FCKeditor(BodyName) ;
FCKContent.BasePath = "FCKeditor/" ;
FCKContent.ToolbarSet = "Default"
FCKContent.Height = "400";
FCKContent.Width = "100%";
FCKContent.ReplaceTextarea() ;
}
function SmallerEditor(BodyName)
{
var FCKComment = new FCKeditor(BodyName) ;
FCKComment.BasePath = "FCKeditor/" ;
FCKComment.ToolbarSet = "Default"
FCKComment.Height = "200";
FCKComment.Width = "100%";
FCKComment.ReplaceTextarea() ;
}
</script>';
// FCKeditor
if($context['TPortal']['use_wysiwyg']=='2' || $context['TPortal']['use_wysiwyg']=='1')
$context['html_headers'] .= '
<script language="JavaScript" type="text/javascript">
function FullEditor(BodyName)
{
var FCKContent = new FCKeditor(BodyName) ;
FCKContent.BasePath = "' . $boardurl . '/FCKeditor/" ;
FCKContent.ToolbarSet = "Default"
FCKContent.Height = "400";
FCKContent.Width = "100%";
FCKContent.ReplaceTextarea() ;
}
function SmallerEditor(BodyName)
{
var FCKComment = new FCKeditor(BodyName) ;
FCKComment.BasePath = "' . $boardurl . '/FCKeditor/" ;
FCKComment.ToolbarSet = "Default"
FCKComment.Height = "200";
FCKComment.Width = "100%";
FCKComment.ReplaceTextarea() ;
}
</script>';
This problem has now been solved as the editor is functioning. Thank you very much! :)
brianjw
Okay cool, I'll report it.
Quote from: mark7144 on August 26, 2008, 04:28:21 AMIn the other mod, you could select a tick box and all the topic URLs would not include the board name in the URL. This shortened the URL and therefore gave the topic keywords more strength.
Include board in URL: http://dev.eldacar.com/smf/pretty-urls-discussion/maintenance/
Remove board from URL: http://dev.eldacar.com/smf/maintenance/
Can that be done for this mod then?
No, because then there'd be no way to tell the difference between topics and boards. If you disabled the boards filter the topics filter could be edited to remove the boards from their URLs, but otherwise no.
Quote from: Dannii on August 26, 2008, 06:24:28 AM
If you disabled the boards filter the topics filter could be edited to remove the boards from their URLs
Can you elaborate? Surely that seems the answer then if it does what I want... maybe have it as a feature in a future version.
Boards would have to remain as index.php?board=24.0, but topics could then be as you suggested.
Hmmm, I'll leave it then... thanks for the info :)
Quote from: Dannii on August 24, 2008, 08:55:04 AM
A relative url is something like "index.php?action=rate" rather than "http://domain.com/index.php?action=rate".
I don't think that "topic ratings" mod has a relative url problem... and Oldiesmann has no time to see my problem.
Can you examinate a bit "topic ratings" code to see if you can create a new filter?
Thank you... if you can't I'll try this alternative solution:
http://www.simplemachines.org/community/index.php?topic=60761.0
I've noticed that my RSS Feed is still using the old "search engine friendly" urls instead of the Pretty URLs. Is there any way to fix this? They do get redirected but only to the index page.
Thanks
__________________
Kubuntu Forums (http://kubuntuway.net/)
I just installed the Pretty URL MOD and now my site is DOWN :(
this is BAD. :(
can someone help me out with this problem? When I go to the domain it says:
Parse error: syntax error, unexpected '*' in /home/synaptic/public_html/Sources/QueryString.php on line 616
Im really freaked out by this, and Im hoping to fix this by the end of the day, or atleast uninstall it. Does anyone have the uninstall link?
Alright!!
Thanks to a previous post on this thread, I have my site up and running again! :)
The only problem is I dont see the new URL's in place for any of the old threads... is there a setting or something im missing? any help would be awesome. Thanks!
Mo
Make sure everything is enabled in Admin >> Pretty URLs. You can't miss it on the sidebar! ;)
Maybe I can't see this option because I installed a different theme previously? I dont see "pretty urls" on the side bar... your talking about the one on the left right?
Yes I am. Do you see a little space maybe that shouldn't be there or....?
Quote from: Max22 on August 26, 2008, 10:47:13 AMI don't think that "topic ratings" mod has a relative url problem... and Oldiesmann has no time to see my problem.
Can you examinate a bit "topic ratings" code to see if you can create a new filter?
Thank you... if you can't I'll try this alternative solution:
http://www.simplemachines.org/community/index.php?topic=60761.0
I have no time now but I might be able to have a look next week. If Oldiesmann can't support it he should take the mod down.
Quote from: Rawpaleoforum on August 26, 2008, 12:59:52 PMI've noticed that my RSS Feed is still using the old "search engine friendly" urls instead of the Pretty URLs. Is there any way to fix this? They do get redirected but only to the index page.
Thanks
They should be fixed. What version of the mod do you have, and what other mods?
Quote from: Mo_Cheng on August 26, 2008, 06:10:14 PMI just installed the Pretty URL MOD and now my site is DOWN :(
this is BAD. :(
can someone help me out with this problem? When I go to the domain it says:
Parse error: syntax error, unexpected '*' in /home/synaptic/public_html/Sources/QueryString.php on line 616
Im really freaked out by this, and Im hoping to fix this by the end of the day, or atleast uninstall it. Does anyone have the uninstall link?
Well, can you post up lines 610-620?
Quote from: Mo_Cheng on August 26, 2008, 07:16:31 PMMaybe I can't see this option because I installed a different theme previously? I dont see "pretty urls" on the side bar... your talking about the one on the left right?
Are you using English? If you are check your themes modifications.english.php if it has one, and add the language $txts in.
I have installed this mod, and it doesnt work. Work only for Actions and Profiles, and for Boards and Topics it doesnt. It rewrites url
for boards to http://74.53.xxx.xx/~myhostingaccount/forum/boardname/ and similar thing is for topics... It show me "page not found". Can someone help me?
hi can u explain me how to edit the filters to show ".html" intead of ending with "/"
Quote from: deZio on August 27, 2008, 07:59:57 AMI have installed this mod, and it doesnt work. Work only for Actions and Profiles, and for Boards and Topics it doesnt. It rewrites url
for boards to http://74.53.xxx.xx/~myhostingaccount/forum/boardname/ and similar thing is for topics... It show me "page not found". Can someone help me?
Check the pretty_root_url setting is correct.
Quote from: gcs89 on August 27, 2008, 08:13:28 AMhi can u explain me how to edit the filters to show ".html" intead of ending with "/"
You'll have to edit the end of the topic and board filter callback functions, and also the .htaccess rewrite rules (though ?action=admin;area=pretty;sa=filters). I don't have time to do it for you, though if you can't figure it out I could in a week or two.
But why do you want it? There's no advantage to having an extension.
okay fine i've left idea of dat
Quote from: Dannii on August 27, 2008, 12:29:15 PM
Quote from: deZio on August 27, 2008, 07:59:57 AMI have installed this mod, and it doesnt work. Work only for Actions and Profiles, and for Boards and Topics it doesnt. It rewrites url
for boards to http://74.53.xxx.xx/~myhostingaccount/forum/boardname/ and similar thing is for topics... It show me "page not found". Can someone help me?
Check the pretty_root_url setting is correct.
Where I can find these settings?
In the smf_settings table.
Quote from: Dannii on August 28, 2008, 04:34:52 AM
In the smf_settings table.
I find it, and rewrite it. Now works, thanks a lot!
Hello,
After lot off tests I have found the cause of "White page bug" in my forum. ( and some others, html entities in messages, serch2= error 500 and two longs messages inside bbcode "code" gived error 500)
The responsable was not Pretty-url but Auto Embed Video/Audio Clips version 3.0.
Hmm, ok. I'll try and look into that to see if something can be done.
Quote from: Dannii on August 27, 2008, 05:16:23 AM
Quote from: Rawpaleoforum on August 26, 2008, 12:59:52 PMI've noticed that my RSS Feed is still using the old "search engine friendly" urls instead of the Pretty URLs. Is there any way to fix this? They do get redirected but only to the index page.
Thanks
They should be fixed. What version of the mod do you have, and what other mods?
It is fixed. I unistalled Pretty URLs, unchecked the "use search engine friendly URLs" reinstalled and it's fine now.
____________
Raw Paleo Diet Group (http://health.groups.yahoo.com/group/rawpaleodiet)
Quote from: Dannii on August 28, 2008, 10:07:28 PM
Hmm, ok. I'll try and look into that to see if something can be done.
Hello Dannii, don't lost your time, it's not a compatibility problem with Pretty Url but a bug in Embed Video/Audio
http://www.simplemachines.org/community/index.php?topic=200401.msg1668031#msg1668031
http://www.simplemachines.org/community/index.php?topic=200401.msg1669221#msg1669221
Last night in my test forum I have tried fresh install forum and only Embed Video/Audio, the bug was présent.
Rawpaleoforum, excellent.
shaitanfr, ok sure.
Hello, i installed the MOD, but the configuration link is not showing up. I´m using the pn-pn template. Do i have to edit something?
Thanks a lot.
Probably not.. it should work in all themes. Are you using English? Does it work if you go to index.php?action=admin;area=pretty ?
Yes Dannii, it works.
I just don´t see the link.
It seems that the menu on the left created a blank line where the link was supposed to be. Have any idea?
Thank you.
Hello,
I have an issue with sitemap.xml file which is not parsable because an ' (apostrophe) character from the topic's subject is kept as ^R (or some weird char) in pretty_url column of the ${dbprefix}_pretty_topic_urls table.
However, URL in browser is generated correctly somehow (with the ' in the name, and the ^R character is not seen).
I tracked it down to this line of code from Subs-PrettyUrls.php (version 0.8):
chr(18) => array ("'", '"', '<EF><BA><80>', '<D8><B9>'),
(please ignore the <> stuff, my putty / less doesn't play nice with UTF-8).
Anyway, I've also tried the latest Subs-PrettyUrls.php line from SVN (version 0.9 - rev 78)
"\x12" => array ("'", '"'),
The sitemap.xml generation plugin, I wrote it myself. Because Google does not want to follow redirects if the URLs in the sitemap return a 301, I am using the ${dbprefix}_pretty_topic_urls table, pretty_url column to generate this final URL.
So far so good. The issue is that the value in the column looks like:
o-mare-cleapsa-vine-ca-tractoru-(jam-session-rudy-and-sabinutza)
The strange character, vi sees it as ^R . Mozilla shows it as a square with 00/12 written inside.
Accessing the sitemap.xml gives me a parsing error (both from google and directly from FF) as the char is not allowed.
Now, as that strange char is there, somewhere else it must be reconverted back to ' - as said, in browser everything behaves properly - hence, I'm afraid to modify the code to store that ' in the pretty_url column - I do not know what will happen afterward :)
Danii, can you give me a hint ?
Thanks,
Quote from: grevan on August 31, 2008, 01:06:05 PMYes Dannii, it works.
I just don´t see the link.
It seems that the menu on the left created a blank line where the link was supposed to be. Have any idea?
Thank you.
Check that all the language entries were added to Modifications.english.php
Quote from: viulian on August 31, 2008, 04:22:46 PMHello,
I have an issue with sitemap.xml file which is not parsable because an ' (apostrophe) character from the topic's subject is kept as ^R (or some weird char) in pretty_url column of the ${dbprefix}_pretty_topic_urls table.
However, URL in browser is generated correctly somehow (with the ' in the name, and the ^R character is not seen).
I tracked it down to this line of code from Subs-PrettyUrls.php (version 0. 8) :
chr(18) => array ("'", '"', '<EF><BA><80>', '<D8><B9>'),
(please ignore the <> stuff, my putty / less doesn't play nice with UTF-8).
Anyway, I've also tried the latest Subs-PrettyUrls.php line from SVN (version 0.9 - rev 78)
"" => array ("'", '"'),
The sitemap.xml generation plugin, I wrote it myself. Because Google does not want to follow redirects if the URLs in the sitemap return a 301, I am using the ${dbprefix}_pretty_topic_urls table, pretty_url column to generate this final URL.
So far so good. The issue is that the value in the column looks like:
o-mare-cleapsa-vine-ca-tractoru-(jam-session-rudy-and-sabinutza)
The strange character, vi sees it as ^R . Mozilla shows it as a square with 00/12 written inside.
Accessing the sitemap.xml gives me a parsing error (both from google and directly from FF) as the char is not allowed.
Now, as that strange char is there, somewhere else it must be reconverted back to ' - as said, in browser everything behaves properly - hence, I'm afraid to modify the code to store that ' in the pretty_url column - I do not know what will happen afterward :)
Danii, can you give me a hint ?
Thanks,
I would recommend changing your sitemap code to produce just the normal SMF URLs, then let the mod rewrite them, by running the ob_rewrite() function (you may need to add extra search patterns too...)
But isn't there already a working sitemap mod?
Hmm, interesting. Thanks!
I never bother to check the other google sitemap plugins. Mine worked on for the past 2 years or so, and it already has automatic priority and frequency detection [I mean I do use other software beside SMF, such as website baker or gallery2 - and I saw that their sitemap plugins have prefixed frequency and priority values - google complains about that].
So far I'm going to manually fix the sitemap :) and see how the ob_rewrite thingy works even if I have no idea right now on how to trigger the ob_rewrite and why the extra search patters are needed.
http://prettyurls.googlecode.com/svn/trunk/Base/SMF1-1/Sources.xml
Look at the changes made to News.php.
Oh.. this is assuming you're using SSI.php?
Hey,
I've tested brand new install of 1.1.5 with perfect NOINDEX meta tags showing on the print pages but they don't show after the mod is installed?
I know you said your mod doesn't alter anything to do with the meta tag but I can't see how they don't show after installing the mod?
Are you sure it's a problem with this mod?
I wouldn't call it a problem as this mod provides such sep quality to a forum but I think it's changing something the NoIndex meta tag needs to be called.. like part of the print/ next page title?
I'm not sure. What rules make the NoIndex tag show, part of the url/ content?
Whatever it is I think that is being changed along the lines.
I could have a look at it... it's possible SMF's code is buggy.
Edit: SMF 1.1 doesn't have the meta tag for print pages ever, and in SMF 2.0 enabling the mod doesn't remove it. So I don't know how you're getting those results.
QuoteCheck that all the language entries were added to Modifications.english.php
What do you mean Dannii?
Actually i´m using brazilian language.
I´ve noticed another thing, the brazilian accents and characters are not recognized and the urls are created with these letters missing. How do i fix that?
Thank a lot.
Then add the $txts from Modifications.english.php to Modifications.brazilian.php (or Portuguese or whatever it is...)
Are you using UTF-8? Other encodings will work unreliably, so UTF-8 is recommended.
Hi Dannii,
i renamed Modifications.english.php to Modifications.brazilian.php, is that it? I had done it already, but still not showing the link.
You shouldn't do that, you still need a Modifications.english.php. Is there anything in your error log?
OK Dannii, so i make a copy of Modifications.english.php and rename it Modifications.brazilian.php ?
And by the way i see the error logs:
Quote8: Undefined index: pretty_admin_menu
Arquivo: /home/..................../Sources/Subs.php
Linha: 2752
Thanks
Yes that should work.
hello,
I am full of this errors in the SMF error log journal :
Undefined index: pretty
File: .../MessageIndex.php
Line: 52
I found nothing usefull whith google, any idea ?
Thanx
well in fact i have to roll back from version 0.8.4 to 0.8.1 because when i clicked on sections i had an error from FF there was a loop redirection ???
It looks like something hasn't been installed properly. What's at lines 48-55?
there is that :
// Check board permission to see if user is allowed to enter this board.
isAllowedTo('enter_board');
// 301 redirects
if ((isset($context['pretty']['oldschoolquery']) || $_REQUEST['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_f\
ilters'])
{
$url = 'board=' . $board . '.' . (isset($_REQUEST['start']) ? $_REQUEST['start'] : '0') . (isset($_REQUEST['sort']) ? ';sort=' . $_REQUEST['\
sort'] : '');
redirectexit($url, false, true);
}
That looks correct... so the problem must be with index.php, was it modified correctly?
Quote from: Dannii on September 02, 2008, 11:08:56 AM
That looks correct... so the problem must be with index.php, was it modified correctly?
it has been modified today, when i installed again the mod i think
what part do you want to see ?
Look for where the $context array is created.
Hi
Sorry if this has been asked before. I searched for quite a while in this thread but didn't find anything.
I have
SMF 1.1.4 installed
as well as the following packages
1. TinyPortal 0.983 [ Uninstall ] [ List Files ] [ Delete ]
2. Pretty URLs - Base 0.8.4 [ Uninstall ] [ List Files ] [ Delete ]
3. Social Bookmarks 1.1 [ Uninstall ] [ List Files ] [ Delete ]
4. GoogleTagged 1.1 [ Uninstall ] [ List Files ] [ Delete ]
5. Ignore Boards 2.0.1 [ Uninstall ] [ List Files ] [ Delete ]
6. Custom Profile Field Mod 3.17 [ Uninstall ] [ List Files ] [ Delete ]
7. RSS Feed Poster 1.1 [ Uninstall ] [ List Files ] [ Delete ]
8. Wikipedia BBCode 1.3 [ Uninstall ] [ List Files ] [ Delete ]
9. RSS Feed Icon 1.1 [ Uninstall ] [ List Files ] [ Delete ]
10. YouTube BBCode 2.1 [ Uninstall ] [ List Files ] [ Delete ]
11. Pretty URLs Extras 0.9 [ Uninstall ] [ List Files ] [ Delete ]
12. Recent posts user preference 2.51 [ Uninstall ] [ List Files ] [ Delete ]
13. Ad Managment 2.3
Pretty URLs seems to work, mostly, but on a number of the threads, there is just a blank page. Like this one for example.
http://www.microstockgroup.com/general-stock-discussion/are-things-going-well-in-microstock/
however, this thread works fine
http://www.microstockgroup.com/dreamstime-com/it-is-annoying!
any suggestions on what is wrong? Is there something more i have to do because of having tinyportal installed?
Anything in your error logs?
shaitanfr reporter problems with the Auto Embed Video/Audio Clips mod, so maybe there's also a problem with the YouTube mod?
yeah, i got this one
.../index.php
2: mb_convert_encoding() [<a href='function.mb-convert-encoding'>function.mb-convert-encoding</a>]: Unable to detect character encoding
File: /home/microsto/public_html/Sources/Subs-PrettyUrls.php
Line: 154
Do you still have the problem if you upgrade to the 0.9 snapshot?
i haven't tried.
I guess i have to fully uninstall 0.8.4?
can i just click the 'uninstall' link or is there any other things i should do as well?
-thanks for the help btw
Ok, i installed 0.9 now but I still have the same problem :(
i think maybe it has something to do with threads that have lots of posts in them??!? perhaps threads that have more than one page of posts.
edit:
Later on now, and a little more trouble shooting / searching. I found that if i reduce the number of posts per page to 10 then everything works fine. I read that this is a problem that other people had with other packages and has something to do with caching... Any suggestions on how to optimize this for better caching?
It really shouldn't matter how many posts a page you have... so I don't see how that would help. If you are getting blank pages continue to check both the SMF and Apache error logs, because something should be logged.
will this mod allow me to make my own custom url's? as in will my members be able to give out a url similar to a myspace account like www.mysite.com/profilename ...? And if so if UTF-8 is not installed do you still recommend it or will it not really matter? my default language file is 'english', assuming by this that UTF-8 is not installed.
Pretty Urls will transform any urls on your forum to look like folders. So if you have SMF arcade installed it would be www.mysite.com/arcade/ and same thing with other actions. ;)
If you only want it for profile [and I know you use Ultimate Profile Mod], check out the post i made in the ultimate profile mod topic. ;)
Profiles will normally be at domain.com/profile/name/ but if you only want profiles to have pretty URLs that could be changed fairly easily to domain.com/name/.
What forum language you have is irrelevant, what matters is what encoding the accented characters are in. If noone has any accented characters in their name or in topic titles it won't matter either.
Quote from: Dannii on September 05, 2008, 10:05:18 PM
Profiles will normally be at domain.com/profile/name/ but if you only want profiles to have pretty URLs that could be changed fairly easily to domain.com/name/.
What forum language you have is irrelevant, what matters is what encoding the accented characters are in. If noone has any accented characters in their name or in topic titles it won't matter either.
I converted to UTF-8 with no apparent problem, but when i installed the mod i got all this at the top of my page
// Pretty URLs mod // Interface texts $txt['pretty_admin_menu'] = 'Pretty URLs'; $txt['pretty'] = array( 'url' => 'Pretty URL', 'url_desc' => 'A URL fragment used for boards and topics.
Note: this will be processed as only a limited set of characters are allowed - other characters will be converted. Leave blank to use the board name.
', ); // Settings descriptions $txt['pretty_board_lookup'] = 'A serialized array of URL => ID_BOARD pairs, used for processing $_GET[\'board\']. There can be more than one URL for each board.'; $txt['pretty_board_urls'] = 'A serialized array of ID_BOARD => URL pairs, used for generating pretty replacement URLs.'; $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.'; $txt['pretty_filters'] = 'A serialized array of filter data.'; $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the pretty_filters setting instead.'; $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as $boardurl.';
Any clues? I wasn't sure how or what to search this topic for because im not sure what this is or might be called other than an error. Then once this is straight how do i easily change mny urls to mysite.com/memberprofilename ? is there an edit in the mod somewhere? thank you in advance for your help.
I'm running Pretty URLs version 0.8
1. Should I upgrade to 0.8.4 or 0.9 on your Google site?
2. Should I uninstall v 0.8 before upgrading?
I've had some screwy errors on my forum after it went down. Still troubleshooting that and posted a topic in support here for it. Some of the errors reference PrettyURLs so I'm wondering if the upgrade would help or if a file is acting strange.
Thanks!
Quote from: speshul on September 06, 2008, 10:18:21 AMI converted to UTF-8 with no apparent problem, but when i installed the mod i got all this at the top of my page // Pretty URLs mod // Interface texts $txt['pretty_admin_menu'] = 'Pretty URLs'; $txt['pretty'] = array( 'url' => 'Pretty URL', 'url_desc' => 'A URL fragment used for boards and topics.
Note: this will be processed as only a limited set of characters are allowed - other characters will be converted. Leave blank to use the board name.
', ); // Settings descriptions $txt['pretty_board_lookup'] = 'A serialized array of URL => ID_BOARD pairs, used for processing $_GET[\'board\']. There can be more than one URL for each board.'; $txt['pretty_board_urls'] = 'A serialized array of ID_BOARD => URL pairs, used for generating pretty replacement URLs.'; $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.'; $txt['pretty_filters'] = 'A serialized array of filter data.'; $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the pretty_filters setting instead.'; $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as $boardurl.';
Any clues? I wasn't sure how or what to search this topic for because im not sure what this is or might be called other than an error. Then once this is straight how do i easily change mny urls to mysite.com/memberprofilename ? is there an edit in the mod somewhere? thank you in advance for your help.
You need to fix modifications.english.php so that there is only one ?> and it's the very last thing in the file.
To change it to mysite.com/memberprofilename edit the profiles callback function so that the constructed URL just adds the profile name directly to $boardurl and not $boardurl.'/profile/. You'll then need to edit the rewrite rules by going to action=admin;area=pretty;sa=filters and removing profile/ from the beginning of the rule.
Quote from: cassie on September 06, 2008, 01:35:54 PMI'm running Pretty URLs version 0.8
1. Should I upgrade to 0.8.4 or 0.9 on your Google site?
2. Should I uninstall v 0.8 before upgrading?
I've had some screwy errors on my forum after it went down. Still troubleshooting that and posted a topic in support here for it. Some of the errors reference PrettyURLs so I'm wondering if the upgrade would help or if a file is acting strange.
Thanks!
You should definitely upgrade to at least 0.8.4, and probably 0.9 too... it has a lot of nice new features and bugfixes. Uninstall 0.8 before you do that.
Quote from: Dannii on September 06, 2008, 10:31:33 PMYou need to fix modifications.english.php so that there is only one ?> and it's the very last thing in the file.
where is this file? i see no such file under this name in the dl package.
It's a SMF file, look in Themes/default/languages
Quote from: Dannii on September 06, 2008, 10:31:33 PMTo change it to mysite.com/memberprofilename edit the profiles callback function so that the constructed URL just adds the profile name directly to $boardurl and not $boardurl.'/profile/.
can you please tell me the file that this profiles callback function would be located in?
Quote from: Dannii on September 06, 2008, 10:31:33 PMYou'll then need to edit the rewrite rules by going to action=admin;area=pretty;sa=filters and removing profile/ from the beginning of the rule.
So the code here listed as
"rewrite": {
"priority": 40,
"rule": "RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]"
Should be
"rewrite": {
"priority": 40,
"rule": "RewriteRule ^([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]"
???
also in the pretty url's admin it shows everything listed as
undefined & Version info:
Current version: 0.9
Latest version: 0.8.4 Download ... I took the advice you gave to the last post and dl;d your 0.9 version but it showd that info so just wanted to make sure its normal and that i wasn't required to dl an older version first..
Quotecan you please tell me the file that this profiles callback function would be located in?
Sources/PrettyUrls-Filters.php
"rewrite": {
"priority": 40,
"rule": "RewriteRule ^([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]"
Exactly.
Quotealso in the pretty url's admin it shows everything listed as undefined & Version info:
Current version: 0.9
Latest version: 0.8.4 Download ... I took the advice you gave to the last post and dl;d your 0.9 version but it showd that info so just wanted to make sure its normal and that i wasn't required to dl an older version first..
That's a little strange, but isn't a problem.
Thanks Dannii
When I go to uninstall my current 0.8 version, I get test failed messages for subs.php, ManageBoards.template.php, and Modifications.english.php.
Not sure I should continue. My forum went down the other day for no apparent reason and the support at my host had to comment out a small line in subs.php to get the forum back up.
What line did they change? Have you installed any other mods since installing 0.8?
They had to comment out line 2714 -----> ob_start('ob_sessrewrite');
Yes, I've installed other mods since 0.8.
OK I've made the changes to all 3 areas but when i type in www.mysite.com/profilename its just an error page, something im missing? i did not change any of the pretyURL admin settings, should i?
just a side not: when i clicked core Enable URL rewriting & Rewrite Profile URLs i got blank pages. I must be lacking something. im restored as before but apparently lacking something on my end or not?
Quote from: cassie on September 07, 2008, 08:22:42 AM
They had to comment out line 2714 -----> ob_start('ob_sessrewrite');
Yes, I've installed other mods since 0.8.
Well that was a bit of a silly thing to do...
I suggest you uninstall it, and then for the files it had problems with, you'll have to manually uninstall the changes from those.
Quote from: speshul on September 07, 2008, 01:26:23 PM
OK I've made the changes to all 3 areas but when i type in www.mysite.com/profilename its just an error page, something im missing? i did not change any of the pretyURL admin settings, should i?
just a side not: when i clicked core Enable URL rewriting & Rewrite Profile URLs i got blank pages. I must be lacking something. im restored as before but apparently lacking something on my end or not?
Did you ever have the mod working before? You server does have mod_rewrite and .htaccess enabled doesn't it?
Quote from: Dannii on September 07, 2008, 08:11:20 PM
Did you ever have the mod working before? You server does have mod_rewrite and .htaccess enabled doesn't it?
I have had it installed but once i clicked those two functions together it cleared out the site so ill have to get back to you on that one, i have no idea how to tell through the cpanel X yet as this is a brand new host, I changed simply for the use of apache(?) since apparently alot of mods require it or dont work well with windows.
p.s. thank you very much for helping me Danii. You have the patience of a saint!
If you had it working on another host it may not work on your current one...
Quote from: Dannii on September 07, 2008, 08:11:20 PM
Quote from: cassie on September 07, 2008, 08:22:42 AM
They had to comment out line 2714 -----> ob_start('ob_sessrewrite');
Yes, I've installed other mods since 0.8.
Well that was a bit of a silly thing to do...
I suggest you uninstall it, and then for the files it had problems with, you'll have to manually uninstall the changes from those.
I don't know what made them choose that line to comment out. Have no idea. But host support rarely knows anything about SMF stuff. I troubleshoot and fix things myself. But I still don't know why my forum went down and apparently no one here does either. Weird.
I will do as you suggest and hopefully that should work fine. Thanks for your help, as usual.
Quote from: Dannii on September 07, 2008, 08:11:20 PM
Did you ever have the mod working before? You server does have mod_rewrite and .htaccess enabled doesn't it?
According to my host i have both mod_rewrite and .htaccess enabled on my server so i am doing something wrong because i ennabled al of the check boxes and got teh blank screen. must be missing a step.
If you get blank pages then something should be added to either the SMF or the Apache error logs.
This MOD isn't compatible with SMF beta 4!!
Quote from: lorenzone92 on September 08, 2008, 05:05:42 PM
This MOD isn't compatible with SMF beta 4!!
but it's compatible with smf 1.1.6
Quote from: lorenzone92 on September 08, 2008, 05:05:42 PM
This MOD isn't compatible with SMF beta 4!!
Ok.. well I'll get to that when I have spare time.
Danii please make it compatible for beta 4 for because i am losing my lot of traffic from search engines.
Quote from: stanaca on September 10, 2008, 12:03:51 AM
Danii please make it compatible for beta 4 for because i am losing my lot of traffic from search engines.
You can emulate SMF beta 3 in the packages options, so you can install it..
Yeah it seems to problem that they didn't change it to say "Public"... does it work if you emulate? I haven't checked, so I don't know if extra changes are required.
Quote from: Dannii on September 10, 2008, 04:27:44 AM
Yeah it seems to problem that they didn't change it to say "Public"... does it work if you emulate? I haven't checked, so I don't know if extra changes are required.
Yeah, I tried to emulate and it worked!! :)
The new version for 2.0 Beta 4 Public would be Pretty Url version 0.9, right?
QuoteYeah, I tried to emulate and it worked!! :)
Not here.
Quote from: ambientalien on September 10, 2008, 02:48:10 PM
QuoteYeah, I tried to emulate and it worked!! :)
Not here.
Are you sure you've written "SMF 2.0 Beta 3.1"?
How do i convert Pretty URLs to accept UTF-8 language sites?
If this is not impossible, is there a way to "teach" Pretty URLs to behave in a certain way if it finds a letter it doesn´t "understand"?
For example, what´s happening: "não" becomes "no" (PrettyURLS skips the letter "a" with accent). It would be better if "não" becomes "nao".
Any help?
Thanks.
I'm upgrading all of my mods and I keep getting errors on all of them (so sorry for all of the bumps).
Here's what I got when I tried to uninstall Pretty URL's (I'm on 0.8.1)
1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/ManageErrors.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/News.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 ./Themes/default/languages/Modifications.english.php Test successful
14. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
15. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
16. Delete File ./Sources/PrettyUrls.php
17. Delete File ./Sources/PrettyUrls-Filters.php
18. Delete File ./Sources/Subs-PrettyUrls.php
19. Delete File ./Themes/default/PrettyUrls.template.php
20. Delete Tree ./Themes/default/pretty
21. Delete File ./Themes/default/languages/PrettyUrls.english.php
22. Delete File ./Themes/default/languages/PrettyUrls.french.php
23. Execute Code uninstall.php
Hi there, I got tired after looking through around 20 pages here, and using the search function didn't help too much, but I had a question:
Is the 301 redirect in this mod now, or has Dannii still looking for a good solution? If it is- Which version of the mod is recommended and if it's 0.9, what are the additional packages (these "snapshot" files).
Thanks for any info in advance!
http://prettyurls.googlecode.com/files/prettyurls-20080817.tar.gz
This [latest - 16/AUG] version do not run with a new installation of SMF 2.0 Beta 4 Public
Quote from: grevan on September 10, 2008, 04:32:55 PM
For example, what´s happening: "não" becomes "no" (PrettyURLS skips the letter "a" with accent). It would be better if "não" becomes "nao".
Pretty URL convert utf-8 entities... "ã" to "a"... "inspiração" to "inspiracao", without problem. Sometimes, using beta version; your language utf-8 file may to be renamed as utf-8, being iso 8859-1. Checkout.
Grande abraço.
QuoteThe new version for 2.0 Beta 4 Public would be Pretty Url version 0.9, right?
Either 0.8.4 or 0.9 should work with emulation I hope.
Quote from: grevan on September 10, 2008, 04:32:55 PM
How do i convert Pretty URLs to accept UTF-8 language sites?
If this is not impossible, is there a way to "teach" Pretty URLs to behave in a certain way if it finds a letter it doesn´t "understand"?
For example, what´s happening: "não" becomes "no" (PrettyURLS skips the letter "a" with accent). It would be better if "não" becomes "nao".
Any help?
Thanks.
It already supports UTF8, so I don't know why you have that problem...
Quote from: Jiveturkey on September 10, 2008, 05:30:32 PM
I'm upgrading all of my mods and I keep getting errors on all of them (so sorry for all of the bumps).
Here's what I got when I tried to uninstall Pretty URL's (I'm on 0.8.1)
1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/ManageErrors.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/News.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 ./Themes/default/languages/Modifications.english.php Test successful
14. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
15. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
16. Delete File ./Sources/PrettyUrls.php
17. Delete File ./Sources/PrettyUrls-Filters.php
18. Delete File ./Sources/Subs-PrettyUrls.php
19. Delete File ./Themes/default/PrettyUrls.template.php
20. Delete Tree ./Themes/default/pretty
21. Delete File ./Themes/default/languages/PrettyUrls.english.php
22. Delete File ./Themes/default/languages/PrettyUrls.french.php
23. Execute Code uninstall.php
Uninstall it like that, and then manually check and fix QueryString.php. Had you installed other mods that modified QueryString.php?
Quote from: Lavarinth on September 10, 2008, 06:14:13 PM
Hi there, I got tired after looking through around 20 pages here, and using the search function didn't help too much, but I had a question:
Is the 301 redirect in this mod now, or has Dannii still looking for a good solution? If it is- Which version of the mod is recommended and if it's 0.9, what are the additional packages (these "snapshot" files).
Thanks for any info in advance!
It's had 301 redirects for a long long time. Because I haven't formally released 0.9, but a lot of people want to use it, I've been periodically releasing snapshot packages.
Quote from: ambientalien on September 10, 2008, 07:49:02 PM
http://prettyurls.googlecode.com/files/prettyurls-20080817.tar.gz
This [latest - 16/AUG] version do not run with a new installation of SMF 2.0 Beta 4 Public
Does it say it's not a supported version, or are there file conflicts?
QuoteEither 0.8.4 or 0.9 should work with emulation I hope.
Unfortunately, do not work version 0.8.4 or 0.9 with SMF 2.0 Beta 4 Public. The link "[Apply Mod]" is disable there.
QuoteDoes it say it's not a supported version, or are there file conflicts?
It's not a supported version, of course. Without conflicts till now, because the "[Apply Mod]" is disable.
Can you create a new pack to work properly with 2.0 Beta 4 Public, Dannii... please? :)
QuoteUnfortunately, do not work version 0.8.4 or 0.9 with SMF 2.0 Beta 4 Public. The link "[Apply Mod]" is disable there.
Yes, that's why you have to emulate 2.0 Beta 4 or 2.0 Beta 3.
Hello, i have a problem, i hope someone can tell me how i can fix this issue.
If someone posts a link with non english characters (i.e. a wikipedia link with turkish charakters like ğ, ş, ı), then is the topic site damaged. I see only a white site. If i deactivate Pretty URL then is everything allright.
SMF: 1.1.6
Pretty URL: 0.9 (on 0.8.4 was the same issue)
Thanks ambientalien. Do you speak portuguese?
Can you tell me waht file i need to rename to UTF-8? I´m a little confused right now?
Obrigado.
QuoteYes, that's why you have to emulate 2.0 Beta 4 or 2.0 Beta 3.
Until now, I have tried to install *normally* and not work properly.
Emulating 2.0 Beta 3, run. Do you have a estimate (days?) when you will create a new package?
QuoteDo you speak portuguese?
Yes. My native language.
QuoteCan you tell me waht file i need to rename to UTF-8? I´m a little confused right now?
If you have the file "Themes.portuguese_brazilian.php" like ISO 8859-1 and rename for "Themes.portuguese_brazilian-utf8.php", you may have a utf-8 named file, with iso 8859-1 internal entities. Do you understand? While the beta is developed, somethings happen.
Try... Adm > Maintenance > Common Tasks > Convert HTML-entities to UTF-8 characters
Até ;)
Obrigado ambientalien, mas por enquanto não deu certo.
Renomeei "Themes.brazilian.php" para "Themes.brazilian-utf8.php" e depois converti html para utf-8, mas minhas URLs não mudaram.
* Não existia nenhum arquivo UTF-8 antes como vc comentou.
Quote from: smldmr on September 11, 2008, 08:53:37 AM
Hello, i have a problem, i hope someone can tell me how i can fix this issue.
If someone posts a link with non english characters (i.e. a wikipedia link with turkish charakters like ğ, ş, ı), then is the topic site damaged. I see only a white site. If i deactivate Pretty URL then is everything allright.
SMF: 1.1.6
Pretty URL: 0.9 (on 0.8.4 was the same issue)
Please check your SMF and Apache error logs and report back on any errors.
Quote from: grevan on September 11, 2008, 09:24:07 AM
Thanks ambientalien. Do you speak portuguese?
Can you tell me waht file i need to rename to UTF-8? I´m a little confused right now?
Obrigado.
The files are completely irrelevant. What matters are the table (and column) database encodings. You need to check that
they are set to UTF-8.
Quote from: ambientalien on September 11, 2008, 09:34:45 AM
QuoteYes, that's why you have to emulate 2.0 Beta 4 or 2.0 Beta 3.
Until now, I have tried to install *normally* and not work properly.
Emulating 2.0 Beta 3, run. Do you have a estimate (days?) when you will create a new package?
No. Maybe on the weekend.
Dannii,
I uninstalled Pretty URLs 0.8, which solved my problem with upgrading from SMF 1.1.5 to 1.1.6.
I installed Pretty URLs 0.8.4, but at the top of each page of my forum, in the background above where the actual content of the forum starts, I have this bunch of code:
// Pretty URLs mod // Interface texts $txt['pretty_admin_menu'] = 'Pretty URLs'; $txt['pretty'] = array( 'url' => 'Pretty URL', 'url_desc' => 'A URL fragment used for boards and topics.
Note: this will be processed as only a limited set of characters are allowed - other characters will be converted. Leave blank to use the board name.
', ); // Settings descriptions $txt['pretty_board_lookup'] = 'A serialized array of URL => ID_BOARD pairs, used for processing $_GET[\'board\']. There can be more than one URL for each board.'; $txt['pretty_board_urls'] = 'A serialized array of ID_BOARD => URL pairs, used for generating pretty replacement URLs.'; $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.'; $txt['pretty_filters'] = 'A serialized array of filter data.'; $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the pretty_filters setting instead.'; $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as $boardurl.';
Does some code somewhere need to be commented out or something like that?
Everything else about Pretty URLs seems to be working okay.
Thanks!
QuoteThe files are completely irrelevant. What matters are the table (and column) database encodings. You need to check that they are set to UTF-8.
How do i check that Dannii?
I already converted HTML entities to UTF-8 characters.
Quote from: Dannii on September 11, 2008, 12:31:26 PM
Please check your SMF and Apache error logs and report back on any errors.
This is the SMF message:
Database error: Illegal mix of collations for operation ' IN '
File: /www/htdocs/w0089d7e/at_site/smf/Sources/PrettyUrls-Filters.php
Line: 47
the line 47:
WHERE url_id IN (" . implode(', ', $urls_query) . ')', __FILE__, __LINE__);
Where cann i see the Apache-logs?
So I read your past, Dannii, and went ahead with the install, and in an attempt to "maintain" the site and forum I've been running a Site Index Generator on it, and was not sure whether the following issue was related to the mod or the forum theme:
Every thread page returns a 404 on the following two URLs:
www.site.com/forum/board/thread/smf_images_url
www.site.com/forum/board/thread/smf_scripturl
www.site.com/forum/board/thread/##/smf_images_url
www.site.com/forum/board/thread/##/smf_scripturl
www.site.com/forum/board/thread/msg###/smf_images_url
www.site.com/forum/board/thread/msg###/smf_scripturl
etc.
I checked the source of any thread page, and the following is set:
var smf_images_url = "http://www.campaigncreations.org/forum/Themes/CampaignCreations/images";
var smf_scripturl = "http://www.campaigncreations.org/forum/index.php";
Which, based on my site and theme, are proper to my knowledge.
I don't recall experiencing this issue before, when creating a site index through a generator. Any ideas? Thanks in advance!
Found the error...
In the file ./Themes/default/languages/Modifications.english.php
The code got applied after the ending tag. All fine now!
QuoteHow do i check that Dannii?
I already converted HTML entities to UTF-8 characters.
You'll have to check in phpMyAdmin. Also check the value of the global_character_set setting (in smf_settings)
Quote
This is the SMF message:
Database error: Illegal mix of collations for operation ' IN '
File: /www/htdocs/w0089d7e/at_site/smf/Sources/PrettyUrls-Filters.php
Line: 47
the line 47:
WHERE url_id IN (" . implode(', ', $urls_query) . ')', __FILE__, __LINE__);
Where cann i see the Apache-logs?
Hmm, that's very very strange! Check what encoding the pretty_urls_cache table is. Ask your host where to find the apache error log.
Quote from: Lavarinth on September 11, 2008, 04:48:54 PM
So I read your past, Dannii, and went ahead with the install, and in an attempt to "maintain" the site and forum I've been running a Site Index Generator on it, and was not sure whether the following issue was related to the mod or the forum theme:
Every thread page returns a 404 on the following two URLs:
www.site.com/forum/board/thread/smf_images_url
www.site.com/forum/board/thread/smf_scripturl
www.site.com/forum/board/thread/##/smf_images_url
www.site.com/forum/board/thread/##/smf_scripturl
www.site.com/forum/board/thread/msg###/smf_images_url
www.site.com/forum/board/thread/msg###/smf_scripturl
etc.
I checked the source of any thread page, and the following is set:
var smf_images_url = "http://www.campaigncreations.org/forum/Themes/CampaignCreations/images";
var smf_scripturl = "http://www.campaigncreations.org/forum/index.php";
Which, based on my site and theme, are proper to my knowledge.
I don't recall experiencing this issue before, when creating a site index through a generator. Any ideas? Thanks in advance!
What's a "site index generator"??
Hi Dannii,
i checked phpMyAdmin and i see under Collation tab -> utf8_general_ci.
i can´t find smf_settings, i see Settings.php, but can´t find global_character_set in there. I´m using SMF 1.1.6.
Thanks for any help.
Did you check the individual tables, or just the database collation? Individual tables can have different collations.
Here´s a screenshot of an individual table:
Two questions.
1) I changed the URL for a topic in the DB which worked fine and then did a 301 but it adds some pretty url stuff at the end of the URL which breaks the redirect.
Redirect 301 /talk/andy-murray-message-board/kim-sears-photos-info/ http://www.murraysworld.com/talk/andy-murray-message-board/kim-sears/
Result: "http://www.murraysworld.com/talk/andy-murray-message-board/kim-sears/?pretty;board=andy-murray-message-board;topic=kim-sears-photos-info.0"
2) How do I clear the smf_pretty_urls_cache table in phpMyadmin?
grevan, you must have a smf_settings table, otherwise your forum wouldn't run!
mark, would something like this work?
Redirect 301 /talk/andy-murray-message-board/kim-sears-photos-info/ /talk/andy-murray-message-board/kim-sears/
You just click empty at the top.
Hello there,
I installed the package and works great. However my custom gallery link won't work.
I only have this link
http://www.mysitehere.com/gallery/?pretty;board=gallery.0
It should be
http://www.mysitehere.com/gallery/
One more question, can I use this mod in my tinyportal page too?.
The gallery is external to SMF? What happens if you change the link to having index.html or index.php?
And yes it works with TP.
Alright I have figure it out. I just change the link to gallery/index.php .
How about in tinyportal. How do i change the link of an article to pretty url.
Thanks in advance
You can install the extras package which includes a filter for TP. Make sure you're using 0.9 first.
Yeah, I am using TP v0.9.8. Where is that extra package?. I am digging in this topic but still can't find anything about it.
No, make sure you're using the 0.9 snapshot of this mod, and version 1.0.5 of TP. http://code.google.com/p/prettyurls/downloads/list
So it won't work in my tp version. Maybe I just wait for the next tp release beta 2.
Thanks a lot for your reply.
Dannii emulation also did not worked for me. I wrote "SMF 2.0 Beta 3.1" in box and emulated. I tried both 0.9, and 0.8.4 version "but Apply Mod" is disabled.
Try adding Public to the end. Like 2.0 Beta 3 Public or 2.0 Beta 4 Public
Thank you Dannii, I added "SMF 2.0 Beta 3" and emulated then it showed the "Apply Mod" option now i installed the 0.9 version
No problems with specific files?
Quote from: Dannii on September 12, 2008, 10:05:12 PM
mark, would something like this work?
The way I did my redirect was correct but your mod seems to mess it up... I tried your way but it gave a Internal Server Error.
I have a recurring error in the error log and is due to a problem with the mod Pretty url in the file Display.php line 77.
This is the error:
Quote/index.php?pretty;board=76;topic=and191como-organizamos-nuestras-colecciones.msg6141&amp;amp;topicseen
8: Undefined index: board
/Sources/Display.php
Línea: 77
Line 77 contains this:
Quote
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
The mods that I have installed are:
YouTube BBCode
The version of SMF is:
1.1.6
After reading this whole thread, I believe the biggest problem in PrettyUrls is 500 Internal Server Error.
My forum is getting this error even more frequently now. Members are also getting the same error. Sometimes I need to refresh a page to load correctly.
Can you please have a look on this please?
Quote from: axlarry on September 13, 2008, 12:59:34 PM
After reading this whole thread, I believe the biggest problem in PrettyUrls is 500 Internal Server Error.
My forum is getting this error even more frequently now. Members are also getting the same error. Sometimes I need to refresh a page to load correctly.
Can you please have a look on this please?
Does this happen replying to a thread or just general browsing?
Quote from: Dannii on September 12, 2008, 04:44:13 AM
Quote from: Lavarinth on September 11, 2008, 04:48:54 PM
So I read your past, Dannii, and went ahead with the install, and in an attempt to "maintain" the site and forum I've been running a Site Index Generator on it, and was not sure whether the following issue was related to the mod or the forum theme:
Every thread page returns a 404 on the following two URLs:
www.site.com/forum/board/thread/smf_images_url
www.site.com/forum/board/thread/smf_scripturl
www.site.com/forum/board/thread/##/smf_images_url
www.site.com/forum/board/thread/##/smf_scripturl
www.site.com/forum/board/thread/msg###/smf_images_url
www.site.com/forum/board/thread/msg###/smf_scripturl
etc.
I checked the source of any thread page, and the following is set:
var smf_images_url = "http://www.campaigncreations.org/forum/Themes/CampaignCreations/images";
var smf_scripturl = "http://www.campaigncreations.org/forum/index.php";
Which, based on my site and theme, are proper to my knowledge.
I don't recall experiencing this issue before, when creating a site index through a generator. Any ideas? Thanks in advance!
What's a "site index generator"??
Haha, alright- A site index generator creates a sitemap.xml used by Google, Yahoo, etc. (You upload it on your FTP to be read.) It uses webcrawlers to go to each page and follow links within those pages as well so long as they remain on your domain, sometimes links even we don't see (it searches source code). So, for some reason, it's spotting links to the URLs I listed, but it's returning those links as 404 (those pages don't exist), typically caused by a missing page (ex: page123.html no longer there) or the folder has no pages and no index page (index.php/html/asp). However, the variables smf_images_url and smf_scripturl redirect to the pages specified, one being a folder (with no index, just images, likely fixable) another being the forum index. Chances are instead of using these variables, I believe instead it's creating a blank URL instead of actually redirecting, but I could (and most likely am) wrong.
I moved forum to a new server that is going live soon...
but the pretty url filters are all wrong now, and i cant even log in...
Is there a way to turn off pretty urls without logging in as admin, such as through mysql.. ?
Quote from: mark7144 on September 13, 2008, 08:51:50 AMThe way I did my redirect was correct but your mod seems to mess it up... I tried your way but it gave a Internal Server Error.
Maybe try using a RewriteRule with R=301?
Quote from: axlarry on September 13, 2008, 12:59:34 PMAfter reading this whole thread, I believe the biggest problem in PrettyUrls is 500 Internal Server Error.
My forum is getting this error even more frequently now. Members are also getting the same error. Sometimes I need to refresh a page to load correctly.
Can you please have a look on this please?
Well I've never experienced this myself, and noone's been able to give any helpful info, except possibly that the video embedding mod is the problem. Do you have it installed?
Quote from: Lavarinth on September 13, 2008, 05:30:07 PM
Quote from: Dannii on September 12, 2008, 04:44:13 AM
Quote from: Lavarinth on September 11, 2008, 04:48:54 PM
So I read your past, Dannii, and went ahead with the install, and in an attempt to "maintain" the site and forum I've been running a Site Index Generator on it, and was not sure whether the following issue was related to the mod or the forum theme:
Every thread page returns a 404 on the following two URLs:
www.site.com/forum/board/thread/smf_images_url
www.site.com/forum/board/thread/smf_scripturl
www.site.com/forum/board/thread/##/smf_images_url
www.site.com/forum/board/thread/##/smf_scripturl
www.site.com/forum/board/thread/msg###/smf_images_url
www.site.com/forum/board/thread/msg###/smf_scripturl
etc.
I checked the source of any thread page, and the following is set:
var smf_images_url = "http://www.campaigncreations.org/forum/Themes/CampaignCreations/images";
var smf_scripturl = "http://www.campaigncreations.org/forum/index.php";
Which, based on my site and theme, are proper to my knowledge.
I don't recall experiencing this issue before, when creating a site index through a generator. Any ideas? Thanks in advance!
What's a "site index generator"??
Haha, alright- A site index generator creates a sitemap.xml used by Google, Yahoo, etc. (You upload it on your FTP to be read.) It uses webcrawlers to go to each page and follow links within those pages as well so long as they remain on your domain, sometimes links even we don't see (it searches source code). So, for some reason, it's spotting links to the URLs I listed, but it's returning those links as 404 (those pages don't exist), typically caused by a missing page (ex: page123.html no longer there) or the folder has no pages and no index page (index.php/html/asp). However, the variables smf_images_url and smf_scripturl redirect to the pages specified, one being a folder (with no index, just images, likely fixable) another being the forum index. Chances are instead of using these variables, I believe instead it's creating a blank URL instead of actually redirecting, but I could (and most likely am) wrong.
It looks like the generator has been written badly... have you tried the sitemap mod?
Quote from: runebergen on September 13, 2008, 05:50:47 PM
I moved forum to a new server that is going live soon...
but the pretty url filters are all wrong now, and i cant even log in...
Is there a way to turn off pretty urls without logging in as admin, such as through mysql.. ?
You can, by setting pretty_enabled_filters to 0. Also, check that pretty_root_url is correct.
Quote from: axlarry on September 13, 2008, 12:59:34 PM
After reading this whole thread, I believe the biggest problem in PrettyUrls is 500 Internal Server Error.
My forum is getting this error even more frequently now. Members are also getting the same error. Sometimes I need to refresh a page to load correctly.
Can you please have a look on this please?
The problem may come from your server configuration.
You should ask your Host how many simultaneous login/query query did he support.
For example, 2 simultaneous query in sql correspond to ~ 50 user.
Another to consider is the optimization scripts used and the number of queries necessary to generate a page.
I think the problem is there because if it was Pretty url, refreshing content would not solve the problem.
Try another host/server, local Wamp, I'm almost sure it will solve the problem
My Google Translation is Bad. :)
Thanks for this beautiful mod.
Before this mod was installed, I was able to put ;new#new after thread URLs which then would take members/guests to the latest posts, this functionality no longer works. Is there a work around?
mark, Something like this still works: http://dev.eldacar.com/smf/pretty-urls-discussion/arabic/new/#new
Quote from: Dannii on September 14, 2008, 09:40:41 AM
mark, Something like this still works: http://dev.eldacar.com/smf/pretty-urls-discussion/arabic/new/#new
Awesome, thanks.
QuoteI have a recurring error in the error log and is due to a problem with the mod Pretty url in the file Display.php line 77.
This is the error:
Quote
/index.php?pretty;board=76;topic=and191como-organizamos-nuestras-colecciones.msg6141&amp;amp;topicseen
8: Undefined index: board
/Sources/Display.php
Línea: 77
Line 77 contains this:
Quote
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
The mods that I have installed are:
YouTube BBCode
The version of SMF is:
1.1.6
I looking in the database and on the table "smf_pretty_topic_urls" bears no names, saves "t834" is topic ty ID.
Before the well-kept but I did not change that now bears no names given and that's why this repetitive error in the "error log".
That error does't have anything to do with topics... the problem is with the boards..
Can you try running maintenance?
¿Run maintenance tasks? the result is east of here below: :
Quote
* Updating the array of actions
* Fix old boards which have broken quotes
* Update board URLs
* Update the filters
But still not save the name in the database.
Hi
I have three or more topics are not showing Turkish characters in topic link. (%1 doesn't work)
But rest of it works great. Showing Turkish characters just fine. (%99 works great)
I really don't understand why? :D
Any help would be great.
Thanks.
Is it normal to not get errors on pages that don't exist if PrettyUrls is installed? It seems that any nonexisting url will return the main page, but not give an error. If that is the case, how do I get proper error handling back?
Quote from: aimarejada on September 15, 2008, 03:24:29 AM¿Run maintenance tasks? the result is east of here below: :
Quote
* Updating the array of actions
* Fix old boards which have broken quotes
* Update board URLs
* Update the filters
But still not save the name in the database.
Are you sure that index.php was modified correctly then?
Quote from: Hoochie Coochie Man on September 15, 2008, 06:07:33 AM
Hi
I have three or more topics are not showing Turkish characters in topic link. (%1 doesn't work)
But rest of it works great. Showing Turkish characters just fine. (%99 works great)
I really don't understand why? :D
Any help would be great.
Thanks.
Which characters don't work? Are they always the same ones?
Quote from: bluegray on September 15, 2008, 07:24:30 AMIs it normal to not get errors on pages that don't exist if PrettyUrls is installed? It seems that any nonexisting url will return the main page, but not give an error. If that is the case, how do I get proper error handling back?
This wouldn't really be possible... it would be very difficult at least. It tests firstly against a known list of actions, and if it's not an action assumes it's a board. It would take a huge amount of changes to make it return a 404 error.
Quote from: Dannii on September 15, 2008, 09:21:59 AM
Quote from: Hoochie Coochie Man on September 15, 2008, 06:07:33 AM
Hi
I have three or more topics are not showing Turkish characters in topic link. (%1 doesn't work)
But rest of it works great. Showing Turkish characters just fine. (%99 works great)
I really don't understand why? :D
Any help would be great.
Thanks.
Which characters don't work? Are they always the same ones?
Thanks for the reply
No, They aren't the same. It's really weird :-X
only 3 or 5 topics have the wrong characters whole forum :-X
For example;
character (ü) is change into (u)
character (ı) is change into (i)
These are normal.
But 3 or 5 topics are like this:
character (ü) is change into (and252)
character (ı) is change into (and305)
I also find this ( ' ) is change into (and8217)
Ahh, those topics are using entities. Does converting the entities to characters in maintenance work? If not report it on the SMF bugtracker.
Quote from: Dannii on September 15, 2008, 10:22:36 AM
Ahh, those topics are using entities. Does converting the entities to characters in maintenance work? If not report it on the SMF bugtracker.
Sorry for my bad understand. But, What is that entities? :(
Entities encode the characters like &252;
But if your database encoding supports those characters, there's no reason to use entities.
I understand.
So.. What should I do to fix it?
i have also a problem with special chars:
for example: http://www.go-vista.de/forum/go-vista-anregungen-und-wnsche/
should be http://www.go-vista.de/forum/go-vista-anregungen-und-wunsche/
means the ü should become a u but it's not shown in link.
I use Pretty URLs 8.4 - if I Upload 0.9 I get an error in Package-Manager, that the Package is not valid or corrupt....
you should use utf-8 database for this
Quote from: Hoochie Coochie Man on September 15, 2008, 03:48:48 PM
I understand.
So.. What should I do to fix it?
Well doesn't the convert entities option in SMF maintenance work?
Quote from: fca07 on September 15, 2008, 05:23:22 PM
i have also a problem with special chars:
for example: http://www.go-vista.de/forum/go-vista-anregungen-und-wnsche/
should be http://www.go-vista.de/forum/go-vista-anregungen-und-wunsche/
means the ü should become a u but it's not shown in link.
I use Pretty URLs 8.4 - if I Upload 0.9 I get an error in Package-Manager, that the Package is not valid or corrupt....
What encoding are you using? As Eslao says, UTF8 is recommended.
And I don't see how 0.9 would be corrupted if 0.8.4 isn't... That's very strange.
We resolved by installing the latest version that you can download it from here:
http://code.google.com/p/prettyurls/downloads/list
How is this working with the latest Beta or is it not compatible as yet?
Quote from: picos on September 16, 2008, 03:16:27 PM
How is this working with the latest Beta or is it not compatible as yet?
Yeah it's compatible, you have to emulate MF 2.0 Beta 3 in the package options! :)
I'm using beta 4 and I tried looking at the manual install instructions but it's saying it's not compatible. Could you tell me what you mean by emulate? I don't want my forum to go down if I do this wrong... Thanks.
There's a box at the bottom of the package manager you can emulate another version.
When I have more time I'll package it up properly.
Enabling this on 1.1.6 seems to work, however it forces my banner to use the "alt" text specified in the index.template.php (or to not show at all if I take the alt out). Any clue why it would do that, or a way to resolve it?
It doesn't touch the banner at all. Something else must be happening.
Hi Guys,
Just installed this mod (0.8.4), I am using 1.1.6 and my error log is filling up with this error messages...
8: Undefined index: pretty_enable_filters
File: /home/buctai8/public_html/Sources/QueryString.php
Line: 517
8: Undefined index: pretty_enable_filters
File: /home/buctai8/public_html/Sources/Display.php
Line: 262
8: Undefined index: pretty_enable_filters
File: /home/buctai8/public_html/Sources/MessageIndex.php
Line: 42
I have just uninstalled but what do I need to do to stop these error messages from having, I would really like to use this mod...
If you've uninstalled it then it didn't go well... cause the code is still present in those files. Check those files and remove the code manually.
no i got these error messages while it was installed not now that I have uninstalled it... i was hoping to know how to stop them from happening while installed so i could have it running on my site again.
Well once you've saved the settings in the admin panel it should stop.
i had a look when i had it installed but couldnt find them, whereabouts are they located?
When you go to action=admin;area=pretty.
cool, thank you :)
Quote from: Dannii on September 17, 2008, 07:54:50 PM
It doesn't touch the banner at all. Something else must be happening.
All I can figure is it has something to do with the banner's URL. I know for sure that it's the Pretty URL's effecting it, as I eliminated each option in Pretty URL's one by one, and, for example, when I took it off of "Topics" the banner would then appear again in the forums, but not on profiles, and when I took it off of profiles it would appear again on the profiles. I forgot to mention (my fault, sorry for this) that my banner is a custom one at the top of the forum rather than within the normal banner area, though.
Well... what's the banner's code? Are you using relative urls?
I installed this yesterday (0.9) and it seems to be mostly working well but today I'm getting this error message:
(forum url)index.php?pretty;action=manageboards
8: Undefined index: pretty_modify_board_url
File: /home/boxercra/public_html/forum/Themes/Summer08/ManageBoards.template.php (main sub template - eval?)
Line: 63
I get 44 simultaneous errors - this is when I go to "Manage Boards" in the Admin Panel. I've saved all the php files directly from the package and uploaded to the appropriate folders, but still get the error message.
You'd get that error if the Modifications.english.php file wasn't modified correctly. Make sure that all the $txts from Languages.xml were added to it correctly.
That did it - thanks so much! :)
i had have had this mod installed on my forum running smf 1.1.6 i have just moved to a vps and this mod does not work now. i uninstalled and installed again but i get a 404 error.
any idea where to start looking for possible problems?
thanks
Does your new server support mod_rewrite and .htaccess files?
how can i find that out?
Ask the host.
Dannii,
Is there a code I can add to my current code of this mod to make it convert tinyportal article pages. So ?page=1 would become like /page-1/ or something... Also tiny portal articles allow you to have something like this as well: ?page=hi so it could be /page,hi/ or /page,1/
How?
Thanks. :)
..
Quote from: brianjw on September 19, 2008, 08:55:02 PM
Dannii,
Is there a code I can add to my current code of this mod to make it convert tinyportal article pages. So ?page=1 would become like /page-1/ or something... Also tiny portal articles allow you to have something like this as well: ?page=hi so it could be /page,hi/ or /page,1/
How?
Thanks. :)
Just install the Extras package.
Quote from: Technical Team on September 20, 2008, 02:17:50 AM
Hey this MOD is great,
I have installed this mod on my forum, and everything is working well, except the registrations for the new users.
Once the users hit the submit button on the registration form they are redirected to the default forum error screen.
Kindly help me to get rid out of it.
And what's the error say?
Hi!
How modify the "topic" name url?? I can modify the "board names" url in the admin. But "topic name" url?
Please help.
i installed this .... got no error but is there anysetting which need to be enabled to enable this mod??
Quote from: tescojim on September 20, 2008, 06:07:48 AM
Hi!
How modify the "topic" name url?? I can modify the "board names" url in the admin. But "topic name" url?
Please help.
You can edit it manually in the pretty_topic_urls table, and then empty the cache table too.
Quote from: keshav on September 20, 2008, 07:41:44 AM
i installed this .... got no error but is there anysetting which need to be enabled to enable this mod??
Yeah you enable it in the new admin page, which you can access at ?action=admin;area=pretty if it's not showing in the sidebar...
Quote from: Dannii on September 20, 2008, 09:09:53 AM
Quote from: tescojim on September 20, 2008, 06:07:48 AM
Hi!
How modify the "topic" name url?? I can modify the "board names" url in the admin. But "topic name" url?
Please help.
You can edit it manually in the pretty_topic_urls table, and then empty the cache table too.
Hi Dannii!!
Many thanks!!! Work it! Maybe is it not possible to set this in a later version in the Pretty URLs Admin settings ("urls cache delete" and "topic name url" change)? Maybe next version Pretty URLs? But, many thanks again!!!
Yeah I will add it after 1.0.
Quote from: Dannii on September 21, 2008, 10:54:26 AM
Yeah I will add it after 1.0.
When you do, please can you have it so it automatically does a 301 of the old address.
Looks pretty cool!
QuoteWhen you do, please can you have it so it automatically does a 301 of the old address.
I don't know about this, it could add a lot of overhead.
Quote from: Dannii on September 21, 2008, 09:44:29 PM
QuoteWhen you do, please can you have it so it automatically does a 301 of the old address.
I don't know about this, it could add a lot of overhead.
I say this without any idea of how difficult it is but maybe have it so it adds a 301 but then in the admin panel there is a function that removes all the 301s... after all it only needs to be there short term for Google to pick it up.
Hi Dannii,
I was wondering if there is some way to make folders on my site to stop thinking they are boards and bringing it to the homepage of my site.
Yes, I know I can use:
RewriteRule ^proxy/?$ ./proxy/index.php [L,QSA]
but I want a way where it will only create the urls if the boards are made. SO if there is no board or action in SMF called proxy then it will automatically take my to the proxy folder with the index.php in it without using the above code.
Possible? ???
Thanks :)
Hi Dannii!
A fast question. I using TP with prettyurls-extras. And my link look this:
http://www.mydomain.info/page/something/
(article category type block)
How modify the "page" subpage name for all (!!) urls? Where is the "page" name? Where I find this name to modify?
Many Thanks!
Quote from: brianjw on September 22, 2008, 10:09:58 PM
Hi Dannii,
I was wondering if there is some way to make folders on my site to stop thinking they are boards and bringing it to the homepage of my site.
Yes, I know I can use:
RewriteRule ^proxy/?$ ./proxy/index.php [L,QSA]
but I want a way where it will only create the urls if the boards are made. SO if there is no board or action in SMF called proxy then it will automatically take my to the proxy folder with the index.php in it without using the above code.
Possible? ???
Thanks :)
Hmm, yeah it would be possible, though I'm not too sure how. You can use conditions to check if directories exist, but I've never used them myself.
Quote from: tescojim on September 23, 2008, 06:51:15 AM
Hi Dannii!
A fast question. I using TP with prettyurls-extras. And my link look this:
http://www.mydomain.info/page/something/(article category type block)
How modify the "page" subpage name for all (!!) urls? Where is the "page" name? Where I find this name to modify?
Many Thanks!
What is page referring to? It could be almost anything.
Hello Dannii,
I was wondering if it would be possible only to have letters, numbers and "-" in my URLs.
Characters like ( ) * are not put into the URL even if the Topic Subject has it........
How can I achieve the above, if possible?
Thank You
You can remove those lines from the big array in Subs-Prettyurls.php. You can change existing topics by manually editing them in the pretty_topic_urls table, or you could just empty that table.
I had a 'Reply' button that showed for guests and when they clicked on it it would basically ask them to login but now it returns a 404, please can you explain why?
http://www.murraysworld.com/talk/sports-forum/formula-1/msg371489/index.php?action=login
if ($context['user']['is_guest'] && !$context['can_reply'])
$buttonArray[] = '<a href="index.php?action=login">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';
You need to use absolute URLs, by adding $scripturl.
Thanks but now I get a parse error whenever I go into a topic:
if ($context['user']['is_guest'] && !$context['can_reply'])
$buttonArray[] = '<a href="', $scripturl, '?action=login">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';
You have to use . when you're joining strings like that.
Thanks a lot, that worked :)
Quote from: Dannii on September 24, 2008, 03:12:07 AM
You can remove those lines from the big array in Subs-Prettyurls.php. You can change existing topics by manually editing them in the pretty_topic_urls table, or you could just empty that table.
Thanks for that. I won't change any old URLs so I just edited Subs-Prettyurls.php
I have a question. I can't find this value.
How to remove * ' * this character from that file? I couldn't find a different line for it?
I DON'T want a URL like this one
http://ecric.net/forums/staff/one-more's-test/msg8069/?topicseen#new
I WANT a URL like this
http://ecric.net/forums/staff/one-more-test/msg8069/?topicseen#new
Thanks.
It's the line starting with \x12 or chr(18).
is it safe to use this with 2.0 beta4 yet?
I've had no time to test, but I believe it is, if you emulate beta 3.
Quote from: Dannii on September 25, 2008, 05:06:37 AM
It's the line starting with \x12 or chr(18).
Thank You :D :D
when update next time dont forget portuguese and brazilian
<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
// Pretty URLs mod
// Interface texts
$txt['pretty_admin_menu'] = 'Pretty URLs';
$txt['pretty'] = array(
'url' => 'Pretty URL',
'url_desc' => 'Um fragmento URL usado para Quadro e tópicos.<br /><div class="smalltext">Note: este será processado como apenas um conjunto limitado de caracteres são permitidos - outros caracteres serão convertidos. Deixe em branco para usar o nome bordo.</div>',
);
// Settings descriptions
$txt['pretty_board_lookup'] = 'A serialized array of <tt>URL => ID_BOARD</tt> pairs, used for processing <tt>$_GET[\'board\']</tt>. Pode haver mais de uma URL para cada quadro.';
$txt['pretty_board_urls'] = 'A serialized array of <tt>ID_BOARD => URL</tt> pares, utilizado para a geração de substituição Pretty URLs.';
$txt['pretty_enable_filters'] = 'Define se a prettify absolutamente nada. 0 para não, para a 1 sim.';
$txt['pretty_filters'] = 'Uma panóplia de filtrar dados serializada.';
$txt['pretty_filter_callbacks'] = 'Uma chamada de função array serializada nomes, ordenadas por prioridade. Não edite manualmente este, editar o <tt>pretty_filters</tt> setting instead.';
$txt['pretty_root_url'] = 'O URL base usado pelo conselho de administração e filtros tema, que por padrão é o mesmo que <tt>$boardurl</tt>.';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
// Pretty URLs mod
// Interface texts
$txt['pretty_admin_menu'] = 'Pretty URLs';
$txt['pretty'] = array(
'url' => 'Pretty URL',
'url_desc' => 'Um fragmento URL usado para Quadro e tópicos.<br /><div class="smalltext">Note: este será processado como apenas um conjunto limitado de caracteres são permitidos - outros caracteres serão convertidos. Deixe em branco para usar o nome bordo.</div>',
);
// Settings descriptions
$txt['pretty_board_lookup'] = 'A serialized array of <tt>URL => ID_BOARD</tt> pairs, used for processing <tt>$_GET[\'board\']</tt>. Pode haver mais de uma URL para cada quadro.';
$txt['pretty_board_urls'] = 'A serialized array of <tt>ID_BOARD => URL</tt> pares, utilizado para a geração de substituição Pretty URLs.';
$txt['pretty_enable_filters'] = 'Define se a prettify absolutamente nada. 0 para não, para a 1 sim.';
$txt['pretty_filters'] = 'Uma panóplia de filtrar dados serializada.';
$txt['pretty_filter_callbacks'] = 'Uma chamada de função array serializada nomes, ordenadas por prioridade. Não edite manualmente este, editar o <tt>pretty_filters</tt> setting instead.';
$txt['pretty_root_url'] = 'O URL base usado pelo conselho de administração e filtros tema, que por padrão é o mesmo que <tt>$boardurl</tt>.';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
// Pretty URLs mod
// Interface texts
$txt['pretty_admin_menu'] = 'Pretty URLs';
$txt['pretty'] = array(
'url' => 'Pretty URL',
'url_desc' => 'Um fragmento URL usado para Quadro e tópicos.<br /><div class="smalltext">Note: este será processado como apenas um conjunto limitado de caracteres são permitidos - outros caracteres serão convertidos. Deixe em branco para usar o nome bordo.</div>',
);
// Settings descriptions
$txt['pretty_board_lookup'] = 'A serialized array of <tt>URL => ID_BOARD</tt> pairs, used for processing <tt>$_GET[\'board\']</tt>. Pode haver mais de uma URL para cada quadro.';
$txt['pretty_board_urls'] = 'A serialized array of <tt>ID_BOARD => URL</tt> pares, utilizado para a geração de substituição Pretty URLs.';
$txt['pretty_enable_filters'] = 'Define se a prettify absolutamente nada. 0 para não, para a 1 sim.';
$txt['pretty_filters'] = 'Uma panóplia de filtrar dados serializada.';
$txt['pretty_filter_callbacks'] = 'Uma chamada de função array serializada nomes, ordenadas por prioridade. Não edite manualmente este, editar o <tt>pretty_filters</tt> setting instead.';
$txt['pretty_root_url'] = 'O URL base usado pelo conselho de administração e filtros tema, que por padrão é o mesmo que <tt>$boardurl</tt>.';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
// Pretty URLs mod
// Interface texts
$txt['pretty_admin_menu'] = 'Pretty URLs';
$txt['pretty'] = array(
'url' => 'Pretty URL',
'url_desc' => 'Um fragmento URL usado para Quadro e tópicos.<br /><div class="smalltext">Note: este será processado como apenas um conjunto limitado de caracteres são permitidos - outros caracteres serão convertidos. Deixe em branco para usar o nome bordo.</div>',
);
// Settings descriptions
$txt['pretty_board_lookup'] = 'A serialized array of <tt>URL => ID_BOARD</tt> pairs, used for processing <tt>$_GET[\'board\']</tt>. Pode haver mais de uma URL para cada quadro.';
$txt['pretty_board_urls'] = 'A serialized array of <tt>ID_BOARD => URL</tt> pares, utilizado para a geração de substituição Pretty URLs.';
$txt['pretty_enable_filters'] = 'Define se a prettify absolutamente nada. 0 para não, para a 1 sim.';
$txt['pretty_filters'] = 'Uma panóplia de filtrar dados serializada.';
$txt['pretty_filter_callbacks'] = 'Uma chamada de função array serializada nomes, ordenadas por prioridade. Não edite manualmente este, editar o <tt>pretty_filters</tt> setting instead.';
$txt['pretty_root_url'] = 'O URL base usado pelo conselho de administração e filtros tema, que por padrão é o mesmo que <tt>$boardurl</tt>.';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
// Pretty URLs mod
// Interface texts
$txt['pretty_admin_menu'] = 'Bonito URLs';
$txt['pretty'] = array(
'url' => 'Bonitos URL',
'url_desc' => 'Um fragmento URL usado para Quadro e tópicos.<br /><div class="smalltext">Note: este será processado como apenas um conjunto limitado de caracteres são permitidos - outros caracteres serão convertidos. Deixe em branco para usar o nome bordo.</div>',
);
// Settings descriptions
$txt['pretty_board_lookup'] = 'A serialized array of <tt>URL => ID_BOARD</tt> pairs, used for processing <tt>$_GET[\'board\']</tt>. Pode haver mais de uma URL para cada quadro.';
$txt['pretty_board_urls'] = 'A serialized array of <tt>ID_BOARD => URL</tt> pares, utilizado para a geração de substituição Bonito URLs.';
$txt['pretty_enable_filters'] = 'Define se a prettify absolutamente nada. 0 para não, para a 1 sim.';
$txt['pretty_filters'] = 'Uma panóplia de filtrar dados serializada.';
$txt['pretty_filter_callbacks'] = 'Uma chamada de função array serializada nomes, ordenadas por prioridade. Não edite manualmente este, editar o <tt>pretty_filters</tt> setting instead.';
$txt['pretty_root_url'] = 'O URL base usado pelo conselho de administração e filtros tema, que por padrão é o mesmo que <tt>$boardurl</tt>.';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
// Pretty URLs mod
// Interface texts
$txt['pretty_admin_menu'] = 'Bonito URLs';
$txt['pretty'] = array(
'url' => 'Bonitos URL',
'url_desc' => 'Um fragmento URL usado para Quadro e tópicos.<br /><div class="smalltext">Note: este será processado como apenas um conjunto limitado de caracteres são permitidos - outros caracteres serão convertidos. Deixe em branco para usar o nome bordo.</div>',
);
// Settings descriptions
$txt['pretty_board_lookup'] = 'A serialized array of <tt>URL => ID_BOARD</tt> pairs, used for processing <tt>$_GET[\'board\']</tt>. Pode haver mais de uma URL para cada quadro.';
$txt['pretty_board_urls'] = 'A serialized array of <tt>ID_BOARD => URL</tt> pares, utilizado para a geração de substituição Bonito URLs.';
$txt['pretty_enable_filters'] = 'Define se a prettify absolutamente nada. 0 para não, para a 1 sim.';
$txt['pretty_filters'] = 'Uma panóplia de filtrar dados serializada.';
$txt['pretty_filter_callbacks'] = 'Uma chamada de função array serializada nomes, ordenadas por prioridade. Não edite manualmente este, editar o <tt>pretty_filters</tt> setting instead.';
$txt['pretty_root_url'] = 'O URL base usado pelo conselho de administração e filtros tema, que por padrão é o mesmo que <tt>$boardurl</tt>.';
]]></add>
</operation>
</file>
Okay thanks. That's for 0.8.4? I'll probably wait till 1.0 is finished to add extra languages sorry.
Is there new stuff coming for 1.0?
No, it will just be the completed form of 0.9.
Sorry but I did not find an answer to this so I am asking here.
I have Pretty URLs 0.7.
If I will update my Pretty URLs (to 0.8.4 or even to 1.0) what do I need to do? First uninstall the older version and then install newer version?
If I uninstall older version, will it leave my old pretty URLs alone?
Or what happens to the old URLs after update?
I am thinking this because my URLs are used in many pages at internet so I would like to keep old pretty URLs working after update.
Yes that's correct, just uninstall 0.7 then install 0.8.4. All your old URLs will still work.
Quote from: joomlamz on September 28, 2008, 04:06:46 AM
when update next time dont forget portuguese and brazilian
Please, Joomlaz, don't translate languages you
don't know. I'm brazilian, and I didn't understand a thing of what you've (tried to) translate to portuguese (Brazil).
QuoteUm fragmento URL usado para Quadro e tópicos.
That means, in it's own terms, that "A URL piece used for Painting and topics".
"Note: este será processado como apenas um conjunto limitado de caracteres são permitidos - outros caracteres serão convertidos. Deixe em branco para usar o nome bordo."
This one I can't even imagine what means. The last phrase means "Leave it blank to use the name that is onboard (like on board of a ship)".
"Uma panóplia de filtrar dados serializada."
I search all my dictionaries to find out what "panóplia" means. I'm still curious.
"Uma chamada de função array serializada nomes, ordenadas por prioridade. Não edite manualmente este, editar o <tt>pretty_filters</tt> setting instead."
This phrase, at least, you leave some words in english. Others, you scrambled english with portuguese. Others just don't exist.
Please, keep translating all SMF mods here. It's
VERY FUNNY.
Hi, i got the 404 error for every page in my forum after enabling pretty urls 0.84.
My host DOES support mod_rewrite and .htaccess, just checked it.
The forum is quite modded, but not deeply.
It is the 1.1.6 version, and it has been running for almost 1 year up to now.
I noticed that the table smf_pretty_topics_urls is filled with just few rows for topics, I have about 550 topics.
Could this be the issue?
thanks!
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Follow those instructions to disable the mod...
Now you're completely sure it does? Is it possible you might need to add a RewriteBase rule before the RewriteRule lines. Ask your host.
Quote from: Dannii on September 30, 2008, 09:39:28 AM
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Follow those instructions to disable the mod...
Now you're completely sure it does? Is it possible you might need to add a RewriteBase rule before the RewriteRule lines. Ask your host.
thanks for the link, i already used it to fix the problem! :)
could you please be clearer about the RewriteBase rule??
EDIT.
mmmm, i'm getting documentation about this... maybe you are rigth, but i'm completely dumb about how to do it!
EDIT 2:
ok, i've fixed it!
thanks for the tip!!
i need to add an instruction like this:
RewriteBase /
Ok, good to hear it's working now!
First - Thanks for the great mod. I know there is a lot of debate on using dynamic vs static (looking) urls. If nothing else I prefer the way Pretty URLs looks and because of the setup of my site it makes it much easier on the user. The only thing I'm looking for is a way to generate a sitemap with these urls. Do you know of a mod that will work with this plugin? If there isn't one have you thought about adding a sitemap option in a later version?
Thanks again on this great working mod.
The sitemap mod should be compatible already.
Quote from: londonhogfan on September 30, 2008, 12:13:53 PM
I know there is a lot of debate on using dynamic vs static (looking) urls.
There is? I've never heard of an argument for dynamic URLs when there is the ability to disguise them as static.
Quote from: Dannii on September 30, 2008, 12:21:11 PM
The sitemap mod should be compatible already.
well easy enough. I guess I assumed too much when they didn't say it was compatible with pretty urls.
Quote from: mark7144 on September 30, 2008, 12:32:07 PM
Quote from: londonhogfan on September 30, 2008, 12:13:53 PM
I know there is a lot of debate on using dynamic vs static (looking) urls.
There is? I've never heard of an argument for dynamic URLs when there is the ability to disguise them as static.
I have seen the opposite result myself, but google is pushing using dynamic urls (http://www.simplemachines.org/community/index.php?topic=263753.20). My pages are indexed much quicker and higher with static urls. Maybe I'm doing something wrong.
Hi, Thanks for this cool mod :)
I installed Pretty URLs but now some links in the admin ("Packages" and "Smileys and Message Icons") send me to the main page of the forum instead the "Package Manager" and "Smileys and Message Icons", but the urls have the same format as the others ..com/packages/ and ...com/smileys/
For enter the Package Manager I have to set off "Rewrite Action URLs" in the Pretty URLs Administration, but that set off the Pretty URLs for all actions urls, I really dont know if is better have it with Pretty URLs.
I went to the "Forum Error Log" page but not appear any error, and one thing odd is that after I click in in admin in "Forum Error Log" if I click the link "Packages" I can access the Package Manager, and the url appear without prettyurls: index.php?action=packages,
but then if I click in any tab of the package manager it redirect me to the main page of the forum again
I searched in the forum and in Google for see if someone had this problem but I cant find that this happen to others, so I have not idea how fix this.
Im building my site and forum in local with easyphp, I use the SMF v 1.1.6 and Pretty URLs - Base 0.8.4
And other question, if possible that the urls of tags links that generate the "Tagging System For Topics" mod appear with the name of the tag instead this:
...com/tags/?tagid=4
something like:
...com/tags/name/
I did a translation of the menus to spanish if this can help to someone:
file:
Themes/default/languages/PrettyUrls.spanish_es-utf8.php
<?php
// Version: 0.9; PrettyUrls
// Admin chrome
$txt['pretty_chrome_title'] = 'Administración de Pretty URLs';
$txt['pretty_chrome_menu_settings'] = 'Configuración';
$txt['pretty_chrome_menu_maintenance'] = 'Mantenimiento';
// Settings page
$txt['pretty_chrome_caption_settings'] = 'Panel de Configuración';
$txt['pretty_chrome_page_title_settings'] = 'Configuración de Pretty URLs';
$txt['pretty_core_settings'] = 'Centro de configuración';
$txt['pretty_enable'] = 'Activar reescritura de direcciones';
$txt['pretty_filters'] = 'Filtros de reescritura de direcciones';
$txt['pretty_save'] = 'Guardar cambios';
// Maintenance page
$txt['pretty_chrome_caption_maintenance'] = 'Ejecución de tareas de mantenimiento';
$txt['pretty_chrome_page_title_maintenance'] = 'Mantenimiento Pretty URLs';
$txt['pretty_run_maintenance'] = 'Ejecutar tareas de mantenimiento';
// Edit filters page
$txt['pretty_chrome_caption_filters'] = 'Una herramienta para editar la lista de filtros. La lista array esta formateada aqui en el formato <a href="http://www.json.org/">JSON</a>. Tenga cuidado, la sintaxis de JSON es bastante rigurosa.';
$txt['pretty_chrome_page_title_filters'] = 'Herramienta de Filtros de Pretty URLs';
$txt['pretty_chrome_title_filters'] = 'Herramienta de Filtros';
$txt['pretty_no_json'] = 'La extensión PHP JSON se requiere para esta herramienta. Considere actualizar a PHP 5.2.';
?>
and for others words that appear in the code but not in language files:
Boards
Foros
Topics
Temas
Actions
Acciones
but this could be "Actions"
Profiles
Perfiles
-
Updating the array of actions
Actualizar la lista de acciones
or
Actualizar la lista de actions
Fix old boards which have broken quotes
Correguir foros antiguos que tengan comillas rotas
Update board URLs
Actualizar direcciones de foros
Update the filters
Actualizar los filtros
Thanks in advance
Hi Dannii,
I want to change this blank page. If I go to http://www.gamerzgarage.com/folder it will show a blank page using my forums theme, because I didn't type index.php for an existing URL or it simply doesn't exist. What I want to do with this blank page is add a redirect to the ./folder/index.php (or whatever the url was typed as) so that if it does exist it will take them there. But if it doesn't exist, then it will simply show my main site 404 page which can be viewed at http://www.gamerzgarage.com/folder/index.php
How could I do this? I would want to use a redirect as:
header("Location: ', $requested_url, '/index.php");
And the requested url would be whatever the user entered.
Let me know if you can help me do this, Dannii! Thanks. :)
QuoteI installed Pretty URLs but now some links in the admin ("Packages" and "Smileys and Message Icons") send me to the main page of the forum instead the "Package Manager" and "Smileys and Message Icons", but the urls have the same format as the others ..com/packages/ and ...com/smileys/
For enter the Package Manager I have to set off "Rewrite Action URLs" in the Pretty URLs Administration, but that set off the Pretty URLs for all actions urls, I really dont know if is better have it with Pretty URLs.
Does running maintenance help?
QuoteAnd other question, if possible that the urls of tags links that generate the "Tagging System For Topics" mod appear with the name of the tag instead this:
...com/tags/?tagid=4
something like:
...com/tags/name/
It would be possibly to make another filter for that yes. I don't have the time to do so currently though.
QuoteI did a translation of the menus to spanish if this can help to someone:
Ok cool.
brianjw, Add a rule before the others of something like this:
RewriteRule ^folder/?$ ./folder/index.php [L,QSA]
Dannii, I know that. And you told me that before.
I just want to create a check so I don't have to add codes like that to .htaccess
If /folders/ is entered on my website and it isn't a board I want it to automatically redirect to /folders/index.php and then let my site handle it from there. ;)
Well you can't do that sorry, at least not very easily. You could try editing MessageIndex.php you might be able to do something there if the board doesn't exist.
Well, I noticed that if the board doesn't exist and you type in say http://www.gamerzgarage.com/doesnotexist then it goes to a blank page.
How can I edit the blank page to a different page? What makes the blank page happen?
It shouldn't go to a blank page, it should go to the front page... It's just the normal SMF behaviour, if you try to access a board 0 go to the front page.
Actually there's something you could try... it will check in MessageIndex.php if the board is number 0, and when it does, change it to do the redirection.
Yes I tried run a maintenance but happen the same, I think I go to wait until upload the forum to the hosting for see is this continue redirect to the main page.
And for the tags of the Tagging System I will see more about how to do it with the filters
I will post it here when I finish for see if it correct
thanks
Quote from: Dannii on October 01, 2008, 11:26:44 PM
It shouldn't go to a blank page, it should go to the front page... It's just the normal SMF behaviour, if you try to access a board 0 go to the front page.
Actually there's something you could try... it will check in MessageIndex.php if the board is number 0, and when it does, change it to do the redirection.
I will have a look, thanks. :)
Dannii,
I had a look at the MessageIndex.php and found this:
// 301 redirects
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
{
$filterData = unserialize($modSettings['pretty_filters']);
if ($filterData['boards']['enabled'])
{
$url = 'board=' . $board . '.' . (isset($_REQUEST['start']) ? $_REQUEST['start'] : '0') . (isset($_REQUEST['sort']) ? ';sort=' . $_REQUEST['sort'] : '');
header('HTTP/1.1 301 Moved Permanently');
redirectexit($url, false);
}
}
I thought the code related to what I was doing was redirectexit($url, false); so I tried changing it to redirectexit('http://ads.gamerzgarage.com', false); just to try but it didn't work.
Any ideas?
No don't change that code! That will break the mod. It might be somewhere else in the file. I can't really help much more than that.
what about other theme? how could i make this mod work
It works with all themes without any changes.
i've installed this mod and now all pages are blank... what can i do to solve this problem?
http://www.pinhanifansite.com/2009/
Looks likes it works to me...
I try a new installation in smf version 2.0 beta 4 Public, but I had an error
I found that I can install it if emulate a version before
How I can emulate version 2.0 beta 3.1 Public when install the package?
I tried add this to the url:
index.php?action=packages;sa=install;package=prettyurls-0-8-4.tar.gz;version_emulate=2.0 Beta 3.1 Public
but not work, i tried 2.0 beta 3.1 and 2.0-beta-3.1 too but it dont install
Just use the box at the bottom of the package manager.
oh
thanks
I didnt saw that new link "Advanced"
hi
i need the sql codes of install.php :s
Why can't you just run install.php?
its doesnt work on my server
Why doesn't it work on your server?
Sorry, but I can't really give you any SQL queries to just run, it needs to do a lot of PHP stuff too.
Quote from: Dannii on October 03, 2008, 02:28:21 AM
No don't change that code! That will break the mod. It might be somewhere else in the file. I can't really help much more than that.
Do you know why when I go to http://www.gamerzgarage.com/notexistingurl it displays blank but when I go to http://www.gamerzgarage.com/index.php?action=notexistingurl it goes to board index.
How can I fix this? Your mod is causing this some how..
http://www.gamerzgarage.com/notexistingurl doesn't go to a blank page... it still has your site's border.
Probably it's something to do with the portal.
Quote from: Dannii on October 06, 2008, 03:51:41 AM
http://www.gamerzgarage.com/notexistingurl doesn't go to a blank page... it still has your site's border.
Probably it's something to do with the portal.
But it only does this with this mod... I will do some testing on a test site...
Okay, I've finally patched the mod to install on Beta 4 without emulating Beta 3... (damn versioning inconsistencies!) and there's also a small bugfix too. If you installed it through emulating Beta 3 don't worry about upgrading (unless you need the bugfix).
Quote from: Dannii on October 06, 2008, 03:51:41 AM
http://www.gamerzgarage.com/notexistingurl doesn't go to a blank page... it still has your site's border.
Probably it's something to do with the portal.
Ok, just tested on fresh install and it is something with the portal. Is there a way I can fix it? I'd like to keep Tiny Portal and/or this mod.
I don't know what the problem is...
/me sighs. I'll go ask Tiny Portal tomorrow to see if they know anything..
I have installed your mod and since all my URL's have broken. I can't get back into the admin panel either! Please help!!!!
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Follow the instructions here to disable the mod. Then check your forum and Apache error logs.
After applying this mod i can't see attachements any more.
SMF 2.0
Anay idea?
Hello,
i installed pretty urls 0.8.5 but i have an problem with german chars like ä,ö,ü
for example the topic should be named ".../schöne" he only wrights ".../schne"
when i make an topic ".../äöüsss" he makes ".../sss"
I search and found "Subs_prettyUrls.php" in /Sources/
here i changed and added:
'ae' => array ('ä', 'Ä', 'æ', 'Æ', 'ﻯ'),
'ue' => array ('ü', 'Ü'),
'oe' => array ('ö', 'Ö'),
now i made a new testthread --> same like bevor
i made the "Run some maintenance tasks" in the admin panel --> same like bevor
what must i do that smf take effect of my changes?
and is it the right sub-prettyurls.php or should i change it in the /packages/ dir?
mfg
doo
Quote from: zijO on October 09, 2008, 10:39:53 PMAfter applying this mod i can't see attachements any more.
SMF 2.0
Anay idea?
No... anything in the SMF or Apache error logs?
Quotewhat must i do that smf take effect of my changes?
and is it the right sub-prettyurls.php or should i change it in the /packages/ dir?
No you changed the right file. Existing topics won't be changed, if you want them to be regenerated delete the rows from the smf_pretty_topic_urls table, and empty the smf_pretty_urls_cache table.
i made a new topic ".../öäütest" but the same problem like before, only ".../test"
what make i wrong?
Are you using UTF-8? If not, can you convert?
Quote from: Dannii on October 10, 2008, 08:19:53 AM
Are you using UTF-8? If not, can you convert?
i see, its "ISO-8859-1" ... where can i change it to UTF-8, is there an option in SMF Control Panel (dont found one)?
There should be an option in the SMF maintenance page.
You can also consider upgrading to the 0.9 snapshot.
ok i changed in index.german.php
// Character set and right to left?
$txt['lang_character_set'] = 'UTF-8';
$txt['lang_rtl'] = false;
but now made an new topic "ööäääääägh" and it is "ooaaaaaagh" but my changes to ö = oe doestn take effekt ...
i dated up from 0.8.5 to 0.9 but the same ....
The language files are irrelevant... you need to change the database tables. Ask for help in the support forums.
Quote from: Dannii on October 10, 2008, 09:07:02 AM
The language files are irrelevant... you need to change the database tables. Ask for help in the support forums.
now i converted the database in utf-8, but nothing changed ;( 0.9 snapshot is installed, tables in database are cleaned, nothing happend ...
regarding to this post: http://www.simplemachines.org/community/index.php?topic=252787.msg1746709#msg1746709 (http://www.simplemachines.org/community/index.php?topic=252787.msg1746709#msg1746709)
since I have installed pretty URLS many of my smf-board-urls are index by google with phpsessionid's; before i used pretty urls there was not one url in google index with a PHPSESSID, so I think it's a bug of pretty urls...
P.S: is there a changelog for pretty-urls - because i have not found what changed from version 0.8.4 to 0.8.5...
Tried to install on 1.1.6
Got the following errors
Quote7. 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
Quote from: doo82 on October 10, 2008, 09:55:07 AM
now i converted the database in utf-8, but nothing changed ;( 0.9 snapshot is installed, tables in database are cleaned, nothing happend ...
Did you delete all this mod's tables first?
Hi Dannii!
PrettyURLs 0.9 work with TP 1.0.6 beta2?
Many thanks!
Ok... I updated to TP 1.0.6 beta2, but i catch this link: hxxp://www.mysite.info/page/6/ for every menu links! :(
It just uses whatever TP normally has. If you set up TP to use textual page URLs it will too.
Thanks Dannii!
...and i how to this setup in TP? (use textural page URLs) :P
Thanks!
Ask the TP people. They do it on their forum...
(The URLs I'm talking about are like index.php?page=title)
I installed this MOD to get rid of phpsessionid from board URLs
Now the Urls are fine but the indexpage url shows phpsessionId
Whenever the site is opened in new browser instance, the home page (landing Page of site) shows phpsessionID after index.php?
please help :(
Hello Dannii any help is appreciated.
I installed pretty url and my board is dead now.
Only shows a white page with this error
8: Undefined index: pretty_enable_filters
/home/myiphone/public_html/forum/Sources/Subs.php
2831
I have no idea how to uninstall it, I tried renaming the 2 files in the sources folder and still its the same.
I am running smf 114 and tp the test was successful when it installed.
Help
I tried to install this on 1.1.5 and now the links to everything but the index page are broken. Anyone know how to fix this?
If you both searched this topic you'd find so many answers to your problems and how to temporarily fix your problems...
Quote from: Dannii on October 09, 2008, 12:40:28 PM
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Follow the instructions here to disable the mod. Then check your forum and Apache error logs.
Thank you for the link. I managed to uninstall it as it said but can find no evidence of any errors, and my server should support everything it mentioned.
Quote from: Technical Team on October 12, 2008, 11:50:03 AMI installed this MOD to get rid of phpsessionid from board URLs
Now the Urls are fine but the indexpage url shows phpsessionId
Whenever the site is opened in new browser instance, the home page (landing Page of site) shows phpsessionID after index.php?
please help :(
That's just default SMF behaviour, I won't change that! It will remove the phpsessid after 3 pageviews, and won't even show it on the first page view to spiders.
Quote from: bklynjava on October 12, 2008, 04:27:28 PMHello Dannii any help is appreciated.
I installed pretty url and my board is dead now.
Only shows a white page with this error
8: Undefined index: pretty_enable_filters
/home/myiphone/public_html/forum/Sources/Subs.php
2831
I have no idea how to uninstall it, I tried renaming the 2 files in the sources folder and still its the same.
I am running smf 114 and tp the test was successful when it installed.
Help
Follow these instructions to disable it:
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Also, upgrade to SMF 1.1.6!
Quote from: MelogKnaj on October 12, 2008, 07:50:43 PMThank you for the link. I managed to uninstall it as it said but can find no evidence of any errors, and my server should support everything it mentioned.
It's possible you need a RewriteBase rule... Try adding this at the top of .htaccess:
RewriteBase /
Thanks for the response. I tried editing that into the .htaccess and it didn't seem to fix the problem. Guess I will just have to deal with my ugly urls for now and see if it's a problem with my host.
Hi if this has come up before im sorry for repeating the subject. I am well out of my depth here I think. Basically im having problems with subdomains on my host whom I have to say are very very good. They have got back to me with this reply
Hello,
Okay I've finally figured out what's going wrong here. Something in your .htaccess file is looking for a index.php file instead of a index.html file. If you take the htaccess file away it works fine. You'll want to look into what in the htaccess file is doing that.
Regards,
Jason
I have hardly any mods install and only Pretty URL's write a .htaccess. I can't read the .htaccess as it's quite full and beyond my knowledge. Could somebody please explain what i need to change :D
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: September 27, 2008, 18:49
RewriteEngine on
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|vote|viewquery|who|\.xml)/?$ ./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]
<IfModule mod_security.c>
# Turn off mod_security filtering. SMF is a big boy, it doesn't need its hands held.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
Many thanks in advance
Quote from: Dannii on September 17, 2008, 09:02:15 PM
Well once you've saved the settings in the admin panel it should stop.
Hi, can you, please, elaborate on what exactly needs to be done? I installed
prettyurls-0-8-5.tar.gz on
1.1.6., clean first-time install, pretty urls work fine, but I am too getting the error messages:
http://localhost:8083/forum/index.php?action=admin;area=pretty;save
8: Undefined index: pretty_enable_filters
File: C:\User\Web\WWW_ROOT_DEV\forum\Sources\PrettyUrls.php
Line: 61
http://localhost:8083/forum/index.php?action=admin;area=pretty
8: Undefined index: pretty_enable_filters
File: C:\User\Web\WWW_ROOT_DEV\forum\Sources\QueryString.php
Line: 517
http://localhost:8083/forum/index.php?action=admin;area=pretty
8: Undefined index: pretty_enable_filters
File: C:\User\Web\WWW_ROOT_DEV\forum\Sources\PrettyUrls.php
Line: 97
I have no idea what these errors mean or how to approach fixing them. Tx.
Edit: Sorry, I posted this while being in the middle of this thread. Well, anyway, I am still getting these errors even after reviewing the link posted above. My pretty links work ok, but these errors show up in the error log. I do have mod_rewrite which works ok.
Ignore my last post I figured it out, I hadn't made my .htaccess writable ::) oops
i install in my pc i see that msg
Forbidden You don't have permission to access /SMFMZ/smf115/ on this server.
Apache/2.0.54 (Win32) PHP/4.4.4 Server at localhost Port 85[/hr]
Quote from: joomlamz on October 13, 2008, 09:12:33 PM
i install in my pc i see that msg
Forbidden You don't have permission to access /SMFMZ/smf115/ on this server.
Apache/2.0.54 (Win32) PHP/4.4.4 Server at localhost Port 85[/hr]
I had a similar problem when I tried in local
if you have the installation in a alias, and you access your forum something like this:
http://127.0.0.1/alias_of_installation/
edit .htaccess file
find
RewriteEngine on
and add this after:
RewriteBase /alias_of_installation
and if you only see the main page of the forum and have an error when you clink in any link try to see in Apache configuration is the override of that alias have "AllowOverride None", change it to "AllowOverride All"
I hope this help you :)
I had a hacking attempt today on pretty url and it brought down my forum
Hacking attempt...
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (2341, "selective-precipitation")
File: /home/mychem/public_html/forums/Sources/PrettyUrls-Filters.php
Line: 139
hello!
I have installed pretty urls since a few weeks.
my smf-board has round about 7000 topics and 95000 threads.
The pretty urls cache table has now over 350 MegaBytes of Data in it (at over 2 million entries) - so i don't think that that's normal behaviour...
it would be great if other uses could post data of their boards and pretty url cache
I've found a bug... when I post a reply to a topic using the Opera browser on my mobile phone it comes up with a 404 although it does post the content. A few people on my forum use their mobile phones so this is an issue, before installing the mod it all worked fine.
Not Found
The requested URL /talk/chit-chat/us-presidential-race-2008/new/#new was not found on this server.
Could it be to do with the fact it's missing the domain at the start of the URL?
Hello,
I install 0.8.5 and when QueryString.php it's as:
$_REQUEST['topic'] = str_replace(array(''', '\\'), array(chr(18), ''), $_REQUEST['topic']);
I have a error message but when I changed as this:
$_REQUEST['topic'] = str_replace(array(''', '\\'), array(chr(18), ''), $_REQUEST['topic']);
I don't have the message error but topic not work correct. the topic not open.
Why and what can I do for repair this. thanks.
Quote from: REHK on October 13, 2008, 01:58:18 PM
Hi if this has come up before im sorry for repeating the subject. I am well out of my depth here I think. Basically im having problems with subdomains on my host whom I have to say are very very good. They have got back to me with this reply
Hello,
Okay I've finally figured out what's going wrong here. Something in your .htaccess file is looking for a index.php file instead of a index.html file. If you take the htaccess file away it works fine. You'll want to look into what in the htaccess file is doing that.
Regards,
Jason
I have hardly any mods install and only Pretty URL's write a .htaccess. I can't read the .htaccess as it's quite full and beyond my knowledge. Could somebody please explain what i need to change :D
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: September 27, 2008, 18:49
RewriteEngine on
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|vote|viewquery|who|\.xml)/?$ ./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]
<IfModule mod_security.c>
# Turn off mod_security filtering. SMF is a big boy, it doesn't need its hands held.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
Many thanks in advance
I don't know what your problem is sorry... can you explain it?
Quote from: xjessie007 on October 13, 2008, 04:48:29 PM
Hi, can you, please, elaborate on what exactly needs to be done? I installed prettyurls-0-8-5.tar.gz on 1.1.6., clean first-time install, pretty urls work fine, but I am too getting the error messages:
I have no idea what these errors mean or how to approach fixing them. Tx.
Edit: Sorry, I posted this while being in the middle of this thread. Well, anyway, I am still getting these errors even after reviewing the link posted above. My pretty links work ok, but these errors show up in the error log. I do have mod_rewrite which works ok.
Are they continuing to show up, or are there just a few from when you first installed the mod?
Quote from: joomlamz on October 13, 2008, 09:12:33 PM
i install in my pc i see that msg
Forbidden You don't have permission to access /SMFMZ/smf115/ on this server.
Apache/2.0.54 (Win32) PHP/4.4.4 Server at localhost Port 85[/hr]
Have you set permissions correctly?
Quote from: bjraines on October 14, 2008, 09:25:37 PM
I had a hacking attempt today on pretty url and it brought down my forum
Hacking attempt...
INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (2341, "selective-precipitation")
File: /home/mychem/public_html/forums/Sources/PrettyUrls-Filters.php
Line: 139
It's not a hacking attempt, just a bug. Upgrade to 0.8.5.
Quote from: fca07 on October 16, 2008, 02:32:10 PM
hello!
I have installed pretty urls since a few weeks.
my smf-board has round about 7000 topics and 95000 threads.
The pretty urls cache table has now over 350 MegaBytes of Data in it (at over 2 million entries) - so i don't think that that's normal behaviour...
it would be great if other uses could post data of their boards and pretty url cache
2 million is possibly a little high... you can always empty it at any time, just beware it will fill up again.
Quote from: mark7144 on October 17, 2008, 04:36:41 AM
I've found a bug... when I post a reply to a topic using the Opera browser on my mobile phone it comes up with a 404 although it does post the content. A few people on my forum use their mobile phones so this is an issue, before installing the mod it all worked fine.
Not Found
The requested URL /talk/chit-chat/us-presidential-race-2008/new/#new was not found on this server.
Could it be to do with the fact it's missing the domain at the start of the URL?
No, I don't think that would make a difference. I don't know what the problem is... does Opera desktop work fine?
Quote from: ア尺乇刀丂乇丂 on October 17, 2008, 12:26:50 PM
Hello,
I install 0.8.5 and when QueryString.php it's as:
$_REQUEST['topic'] = str_replace(array(''', '\\'), array(chr(18), ''), $_REQUEST['topic']);
I have a error message but when I changed as this:
$_REQUEST['topic'] = str_replace(array(''', '\\'), array(chr(18), ''), $_REQUEST['topic']);
I don't have the message error but topic not work correct. the topic not open.
Why and what can I do for repair this. thanks.
What exact error are you getting?
I Have this error :
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /homez.13/site/www/forum/Sources/QueryString.php on line 217
Ahh yes. Well did you uninstall the mod, put back the original source files from the install zip and try installing the mod again, like I suggested before?
Danni: The bug doesn't happen with Opera desktop but I use my mobile quite a lot on my forum and only got this after the mod was installed.
Can you give a link to one of the pages that breaks?
128 pages and counting - Last time i followed was around page 115 :)
I would like to upgrade to version 0.8.5 - I don't know what version I have currently - I guess 8.0 by the text in PrettyUrls.php headers.
What steps do I have to follow for the upgrade ? Shall I also clear the cache tables ?
Uninstall the existing package, download and install the new package. You don't need to touch the database.
It works :)
However, I had some minor issues which I'll describe here:
a) by default, because the package works for apache rewrite rules only, it is assumed that turning on the actions urls, it will still work. But for me, which I'm on nginx (and I haven't configured the rewrite rules for actions too), this ment I was not able to access any admin page. So I had to come up with a way to remove the module without accessing the admin, but by directly feeding the URL into the forum (the subaction=uninstall2 which is the equivalent of pressing "Yes, I confirm" package deletion button). I then disabled the "enabled => 1" for actions, and tried to reinstall.
b) It seems that uninstall did not clean up (I am using the 0.8.5 version) all the files, so I had to clean up manually before install.
However, Danii, don't know if you remember, but I asked a while ago about the chr(18) issue inside the pretty_url column because I do want to use my own sitemap.xml generation module;
Basically I was using the 'pretty_url' column value to generate the google sitemap <loc> tag for each topic;
However, for the topics which had an ' in their name, the computed pretty_url value contains chr(18) which is not UTF-8 and if used 'as is' produces a strange character which is this one: (and thus .xml does not validate).
However, by carefully tracking what the code does, I noticed that there are some str_replace methods involving the chr(18) and "'" , so now, after reading the pretty_url value from the db, I also do a replacement for chr(18) value back to "'".
Don't know why you did not want to escape the character directly or use some standard escaping mechanisms :)
Maybe chr(18) value was not intended to reach the database, but in my case it did - so I had to revert it back to "'" before using the value in the pretty_url column.
Quotea) by default, because the package works for apache rewrite rules only, it is assumed that turning on the actions urls, it will still work. But for me, which I'm on nginx (and I haven't configured the rewrite rules for actions too), this ment I was not able to access any admin page. So I had to come up with a way to remove the module without accessing the admin, but by directly feeding the URL into the forum (the subaction=uninstall2 which is the equivalent of pressing "Yes, I confirm" package deletion button). I then disabled the "enabled => 1" for actions, and tried to reinstall.
Hmm that is unfortunate. Perhaps I should have suggested disabling the mod before uninstall it. You can always use the file on the trouble shooting page too ;)
QuoteDon't know why you did not want to escape the character directly or use some standard escaping mechanisms :)
Oh I tried! It was a nightmare! Perhaps next year after I've finished 1.0 and have some time to work on the mod during holidays I'll try again. But with the number of times things were getting escape and unescaped I found it easier to do it myself at times I know will work.
:) Great Job anyway!
If it's working, it's OK.
And love PHP anyway, I wonder what it would have been to code this in what... LISP :D and then track down the chr(18) replacement! (I'm afraid of LISP / Haskell / etc).
Quote from: Dannii on October 19, 2008, 03:49:36 AM
Can you give a link to one of the pages that breaks?
It seems to happen to all threads, here is one: http://www.murraysworld.com/talk/chit-chat/us-presidential-race-2008/
It's only when you reply isn't it? Can you suply a temp account for me to test it?
Sure,
User: test
Password: test
If you could delete your test posts after it would be great :)
I can't find anything wrong, and can't test with Opera Mobile. Are there any errors in the SMF or Apache error logs?
Does the problem happen in the default theme?
Quote from: Dannii on October 20, 2008, 03:16:03 AM
I can't find anything wrong, and can't test with Opera Mobile. Are there any errors in the SMF or Apache error logs?
Does the problem happen in the default theme?
The problem does happen with the default theme and here is the error:
http://www.murraysworld.com/talk/index.php?pretty;board=chit-chat.0&action=post2;start=690
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: /var/www/vhosts/murraysworld.com/httpdocs/talk/Sources/Post.php
Line: 1296
Can you post lines 1290-1300?
Quote from: Dannii on October 20, 2008, 07:12:36 AM
Can you post lines 1290-1300?
Here is lines 1290 - 1304...
// Now make sure this email address is not banned from posting.
isBannedEmail($_POST['email'], 'cannot_post', sprintf($txt['you_are_post_banned'], $txt[28]));
}
}
// Check the subject and message.
if (!isset($_POST['subject']) || $func['htmltrim']($_POST['subject']) === '')
$post_errors[] = 'no_subject';
if (!in_array(20, $board))
{
if (!isset($_POST['message']) || $func['htmltrim']($_POST['message']) === '')
$post_errors[] = 'no_message';
}
elseif (!empty($modSettings['max_messageLength']) && $func['strlen']($_POST['message']) > $modSettings['max_messageLength'])
$post_errors[] = 'long_message';
else
{
I have this mod set up on my forum, and it works with the main forum menu, but in the boards and topics it keeps showing an old sub domain that's no longer in use. Must be left over from when I tried this mod out on the sub domain. I can't figure out where to change this so it shows the actual path to the forum instead of the old sub domain.
mark7144, are you using 0.9?
Daymon, check that the value of pretty_root_url in the smf_settings table is correct.
Quote from: Dannii on October 20, 2008, 11:14:27 AM
Daymon, check that the value of pretty_root_url in the smf_settings table is correct.
How do I do this?
Hi Eldacar,
Could you advise on thiserrors please ?
http://www.whitbyseaanglers.co.uk/forum/index.php?pretty;action=admin&area=pretty
Unable to load the 'PrettyUrls.english-utf8' language file
QuoteHow do I do this?
Use phpMyAdmin, or follow these instructions: http://code.google.com/p/prettyurls/wiki/TroubleShooting
QuoteUnable to load the 'PrettyUrls.english-utf8' language file
Try copying the PrettyUrls.english.php file to PrettyUrls.english-utf8.php
I have a problem with the accents in boards categories in spanish
in the rest of the forum work really good
but in categories like "Discusión General"
instead:
..com/discusion-general/
appear:
discusiandoacuten-general/
this happen in some boards categories
I try change the accents of that cagetories to display without accent
and I empty the tables:
smf_pretty_topic_urls
smf_pretty_urls_cache
but when I again active Pretty URLs happen the same, appear:
discusiandoacuten-general/
I have to empty other database table?
Hello!
I am using SMF 2.0 beta 4 with Pretty URLs 0.8.5.
After installing without problem or error, I have now this message when I try to acces Admin/Themes section:
An Error Has Occurred!
Unable to load the 'Themes' template.
Any ideea where to look for a solution to this error?
QuoteI have a problem with the accents in boards categories in spanish
in the rest of the forum work really good
The problem is your database is using entities. There's no easy way around this. If you can convert to UTF-8, and convert the entities too, that's the best way.
Quote from: a3des on October 21, 2008, 05:19:28 PM
Hello!
I am using SMF 2.0 beta 4 with Pretty URLs 0.8.5.
After installing without problem or error, I have now this message when I try to acces Admin/Themes section:
An Error Has Occurred!
Unable to load the 'Themes' template.
Any ideea where to look for a solution to this error?
Are you sure it's caused by this mod?
Quote from: mark7144 on October 21, 2008, 08:36:08 PMYes I am...
Do other forums with pretty URLs also have this problem?
Quote from: Dannii on October 22, 2008, 04:08:32 AM
QuoteI have a problem with the accents in boards categories in spanish
in the rest of the forum work really good
The problem is your database is using entities. There's no easy way around this. If you can convert to UTF-8, and convert the entities too, that's the best way.
for convert the entities is in ?:
Admin > Maintanence > Convert HTML-entities to UTF-8 characters
I use the spanish_es-utf8 language, but before that I use another language pack, spanish_es, I deleted it. Database is utf8 too
I use the option "Convert HTML-entities to UTF-8 characters" and then I run the maintanence task in Pretty URLs but happen the same
I have to do other thing?
Empty your pretty_topic_urls table and then try all that again.
thanks for the repplies
happen the same
I have installed the Related topics Mods and SMF Sitemap, is possible that this mods store urls and because dont have any changes?
I did a search in database and I find this:
in smf_settings table
variable: pretty_board_lookup -> a:45:{s:25:"discusiandoacuten-general";s:1:"1";.......
variable: pretty_board_urls -> a:45:{i:1;s:25:"discusiandoacuten-general";i:20;s:19:".....
I had the title of that category with acent, but I changed it when I saw that appear the url discusiandoacuten instead discusion Now the board title havent acent but continue appearing discusiandoacuten so I think could be stored the old title in other part, is possible that is that of settings?
I change that text in pretty_board_urls and I have an error in the page, but I run the maintenance task in Pretty URLs and now work good, and the url now is correct :)
I go to change all url of title boards that appear incorrect in that 2 option of smf_settings
thanks for all the support
I really like this mod
QuoteI had the title of that category with acent, but I changed it when I saw that appear the url discusiandoacuten instead discusion Now the board title havent acent but continue appearing discusiandoacuten so I think could be stored the old title in other part, is possible that is that of settings?
Oh yes if the problems was with a board that wouldn't help. If you want to change board URLs you should upgrade to 0.9 which ads an admin interface to do so.
where is the 0.9 version for download?
http://code.google.com/p/prettyurls/downloads/list bottom one
I have to unistall and deleted the 0.8.5 version before for install the 0.9?
and I need to install extras and reverter 0.9?
i use 2.0 Beta 4
OMG! What a shame!
I deleted themes template file accidentaly.
Restored it and everything works like a charm!
Anyway great MOD! I will look more often for updates.
Thank you!
QuoteI have to unistall and deleted the 0.8.5 version before for install the 0.9?
and I need to install extras and reverter 0.9?
Yes uninstall 0.8.5. And no you don't need to install the extras or reverter package.
I try the 0.9 in an local installation
but I cant see any new option in admin > configuration > Pretty Urls
is in other part of the admin?
This mod only works on somethings.
If i try to view calendar, member lists etc from my home drop down tab it displays page cannot be found.
Seems as thou most pages apart from forum itself wont display when mod is enabled, when i disable it all ok again.
any suggestions to why this is?
Mathew
Quote from: Frozt on October 22, 2008, 07:45:14 AM
I try the 0.9 in an local installation
but I cant see any new option in admin > configuration > Pretty Urls
is in other part of the admin?
When you go to view the list of boards there's an extra column.
Quote from: genieuk on October 22, 2008, 08:39:09 AM
This mod only works on somethings.
If i try to view calendar, member lists etc from my home drop down tab it displays page cannot be found.
Seems as thou most pages apart from forum itself wont display when mod is enabled, when i disable it all ok again.
any suggestions to why this is?
Mathew
Anything in the SMF or Apache error logs?
Hi,
I disabled the error log on SMF but how do i check apache error log?
Thank you
Mathew
PS: I still have mod installed but disabled it at the moment.
Ask your host how to access the Apache error log.
You should keep your SMF error log enabled!
So do the boards and topics work?
Yes the board and topics work but things like calendar, member list, recent posts, help pages, search member list etc does not.
This is what i get:
QuoteNot Found
The requested URL /forum/index.php was not found on this server.
Apache/2 Server at www.foreverlastingfriends.com Port 80
I found in my control panel Log File to view log errors etc but nothing showing there.
Thank you for your quick reply.
Mathew
UPDATE:
Just checked forum error log as i enabled and i got this:
Apply Filter: Only show the error messages of this URL http://www.foreverlastingfriends.com/index.php?pretty;action=admin
Apply Filter: Only show the errors with the same message
8: Use of undefined constant treasury_menu - assumed 'treasury_menu'
File: /home/sites/foreverlastingfriends.com/public_html/Themes/default/Admin.template.php (eval?)
Line: 683
http://www.foreverlastingfriends.com/index.php?pretty;action=admin
Apply Filter: Only show the errors with the same message
8: Use of undefined constant invite_title - assumed 'invite_title'
File: /home/sites/foreverlastingfriends.com/public_html/Themes/default/Admin.template.php (eval?)
Line: 694
QuoteJust checked forum error log as i enabled and i got this:
Yeah they're irrelevant to this problem.
Is everything fine if you disable the actions filter?
mmm strangely enough i have no problems when i enable the mod but disable the actions filter,
how come?
Mathew
Well I don't know. If you enable it again do you still get the problems?
Hi,
Yes when i enable the action filter again it does not display the the pages i gave above.
Thank you,
Mathew
at the moment i got the mod enabled apart from the action filter.
If not already read above post.
I have noticed another problem.
When i am viewing a topic and go to view memberlist for example i get an error
For example i am viewing:
http://www.foreverlastingfriends.com/General/post-your-pictures-here/
then when i choose to view member list for example there url changes to
http://www.foreverlastingfriends.com/General/post-your-pictures-here/
index.php?action=mlist
as you can see it the url is incorrect as it should be the below when i click member list
http://www.foreverlastingfriends.com/index.php?action=mlist
How would the mod react when topic subjects are written in Cyrillic or other than Latin letters?
In Joomla (before I left it) most SEF URLs mods had some sort of 404 capability,
is there a chance this sort of thing could be added here?
I have a problem, when i removed / uninstalled pretty urls 0.8.4 from my SMF the forum when blank / white page. Not possible to open no acess to anything.
How can i fix this !?
The error that says on the page is:
500 internal error
Quote from: genieuk on October 22, 2008, 02:41:44 PM
If not already read above post.
I have noticed another problem.
When i am viewing a topic and go to view memberlist for example i get an error
For example i am viewing:
http://www.foreverlastingfriends.com/General/post-your-pictures-here/
then when i choose to view member list for example there url changes to
http://www.foreverlastingfriends.com/General/post-your-pictures-here/
index.php?action=mlist
as you can see it the url is incorrect as it should be the below when i click member list
http://www.foreverlastingfriends.com/index.php?action=mlist
Hmm that's strange. Is your theme using relative rather than absolute URLs?
Quote from: ivo2296 on October 22, 2008, 03:20:42 PM
How would the mod react when topic subjects are written in Cyrillic or other than Latin letters?
It used to convert them, doesn't anymore in 0.9. You could add back the rows to the array in Subs-PrettyUrls.php. In the distant future it will percent encode them.
Quote from: bjraines on October 22, 2008, 03:25:42 PM
In Joomla (before I left it) most SEF URLs mods had some sort of 404 capability,
is there a chance this sort of thing could be added here?
What do you mean?
Quote from: locau on October 22, 2008, 07:36:20 PM
I have a problem, when i removed / uninstalled pretty urls 0.8.4 from my SMF the forum when blank / white page. Not possible to open no acess to anything.
How can i fix this !?
The error that says on the page is:
500 internal error
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Try the first thing on there. And check your Apache error log.
I got this when I tried installing it, any idea what might went wrong ?
Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
16. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
17. Extract File ./Sources/PrettyUrls.php
18. Extract File ./Sources/PrettyUrls-Filters.php
19. Extract File ./Sources/Subs-PrettyUrls.php
20. Extract File ./Themes/default/PrettyUrls.template.php
21. Extract Tree ./Themes/default/pretty
22. Extract File ./Themes/default/languages/PrettyUrls.english.php
23. Extract File ./Themes/default/languages/PrettyUrls.french.php
24. Execute Code SMF1-1/install.php
Quote from: locau on October 22, 2008, 07:36:20 PM
I have a problem, when i removed / uninstalled pretty urls 0.8.4 from my SMF the forum when blank / white page. Not possible to open no acess to anything.
How can i fix this !?
The error that says on the page is:
500 internal error
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Try the first thing on there. And check your Apache error log.
[/quote]
Did that same problem simple fix but same problem.
Apache log doesn't say anything.
What can i do ?
Update: enabling the show erros on php i get
www/Sources/QueryString.php on line 507
Quote from: locau on October 23, 2008, 04:22:37 AM
Quote from: locau on October 22, 2008, 07:36:20 PM
I have a problem, when i removed / uninstalled pretty urls 0.8.4 from my SMF the forum when blank / white page. Not possible to open no acess to anything.
How can i fix this !?
The error that says on the page is:
500 internal error
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Try the first thing on there. And check your Apache error log.
Did that same problem simple fix but same problem.
Apache log doesn't say anything.
What can i do ?
Update: enabling the show erros on php i get
www/Sources/QueryString.php on line 507
[/quote]
solution for this issue was in fact on www/Sources/QueryString.php on line 507 .. when i un-installed the pretty urls it left /forgot to delete a simple " */ " from the file :(
it's now working again properly
Quote from: Dannii on October 22, 2008, 09:12:28 PM
Quote from: genieuk on October 22, 2008, 02:41:44 PM
If not already read above post.
I have noticed another problem.
When i am viewing a topic and go to view memberlist for example i get an error
For example i am viewing:
http://www.foreverlastingfriends.com/General/post-your-pictures-here/
then when i choose to view member list for example there url changes to
http://www.foreverlastingfriends.com/General/post-your-pictures-here/
index.php?action=mlist
as you can see it the url is incorrect as it should be the below when i click member list
http://www.foreverlastingfriends.com/index.php?action=mlist
Hmm that's strange. Is your theme using relative rather than absolute URLs?
Quote from: ivo2296 on October 22, 2008, 03:20:42 PM
How would the mod react when topic subjects are written in Cyrillic or other than Latin letters?
It used to convert them, doesn't anymore in 0.9. You could add back the rows to the array in Subs-PrettyUrls.php. In the distant future it will percent encode them.
Quote from: bjraines on October 22, 2008, 03:25:42 PM
In Joomla (before I left it) most SEF URLs mods had some sort of 404 capability,
is there a chance this sort of thing could be added here?
What do you mean?
Quote from: locau on October 22, 2008, 07:36:20 PM
I have a problem, when i removed / uninstalled pretty urls 0.8.4 from my SMF the forum when blank / white page. Not possible to open no acess to anything.
How can i fix this !?
The error that says on the page is:
500 internal error
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Try the first thing on there. And check your Apache error log.
Hi,
I dont' get what you mean exactly but my theme use normal SMF URLs, if that makes sence and what your asking.
Thanks
Mathew
Quote from: dannyd on October 23, 2008, 12:03:05 AM
I got this when I tried installing it, any idea what might went wrong ?
Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
16. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
17. Extract File ./Sources/PrettyUrls.php
18. Extract File ./Sources/PrettyUrls-Filters.php
19. Extract File ./Sources/Subs-PrettyUrls.php
20. Extract File ./Themes/default/PrettyUrls.template.php
21. Extract Tree ./Themes/default/pretty
22. Extract File ./Themes/default/languages/PrettyUrls.english.php
23. Extract File ./Themes/default/languages/PrettyUrls.french.php
24. Execute Code SMF1-1/install.php
There's nothing wrong there.
Quoteit's now working again properly
Good to hear!
QuoteI dont' get what you mean exactly but my theme use normal SMF URLs, if that makes sence and what your asking.
Your templates are producing URLs like this: index.php?action=help;page=profile
They need to be full URLs like: http://www.foreverlastingfriends.com/index.php?action=help;page=profile
Quote from: Dannii on October 22, 2008, 09:12:28 PM
Quote from: ivo2296 on October 22, 2008, 03:20:42 PM
How would the mod react when topic subjects are written in Cyrillic or other than Latin letters?
It used to convert them, doesn't anymore in 0.9. You could add back the rows to the array in Subs-PrettyUrls.php. In the distant future it will percent encode them.
Which rows i have to add back?Hi i have made it for bulgarian but i don't know how and where to add it:
'ь'=>'io', 'я'=>'ia', 'а'=>'a', 'о'=>'o', 'ж'=>'j', 'г'=>'g', 'т'=>'t', 'н'=>'n', 'в'=>'v', 'м'=>'m', 'ч'=>'ch', 'у'=>'u', 'е'=>'e', 'и'=>'i', 'ш'=>'sh', 'щ'=>'sht', 'к'=>'k', 'с'=>'s', 'д'=>'d', 'з'=>'z', 'ц'=>'c', 'б'=>'b', 'л'=>'l', 'р'=>'r', 'п'=>'p', 'х'=>'h', 'ф'=>'f', 'ъ'=>'u', 'й'=>'i', 'ю'=>'iu', 'Ь'=>'IO', 'Я'=>'IA', 'А'=>'A', 'О'=>'O', 'Ж'=>'J', 'Г'=>'G', 'Т'=>'T', 'Н'=>'N', 'В'=>'V', 'М'=>'M', 'Ч'=>'CH', 'У'=>'U', 'Е'=>'E', 'И'=>'I', 'Ш'=>'SH', 'Щ'=>'SHT', 'К'=>'K', 'С'=>'S', 'Д'=>'D', 'З'=>'Z', 'Ц'=>'C', 'Б'=>'B', 'Л'=>'L', 'Р'=>'R', 'П'=>'P', 'Х'=>'H', 'Ф'=>'F', 'Ъ'=>'U', 'Й'=>'I', 'Ю'=>'IU',
It is cp1251 encoding.
On my forum i'm using var smf_charset = "windows-1251".
I just made a test on my test forum(smf 1.1.6) with Cyrillic and mod doesn't converts the characters into Latin ones:
hxxp://www.xxxxx.com/b163/!!!-t14823/
It seems that all non Latin characters are ignored.
So can i use this mod then? as it seems to make them like that
Quote from: Dannii on October 23, 2008, 11:32:41 AM
Quote from: dannyd on October 23, 2008, 12:03:05 AM
I got this when I tried installing it, any idea what might went wrong ?
Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
16. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
17. Extract File ./Sources/PrettyUrls.php
18. Extract File ./Sources/PrettyUrls-Filters.php
19. Extract File ./Sources/Subs-PrettyUrls.php
20. Extract File ./Themes/default/PrettyUrls.template.php
21. Extract Tree ./Themes/default/pretty
22. Extract File ./Themes/default/languages/PrettyUrls.english.php
23. Extract File ./Themes/default/languages/PrettyUrls.french.php
24. Execute Code SMF1-1/install.php
There's nothing wrong there.
I went ahead iwth the install .. its installed according to my admin panel yet my urls are still the same. See the forum at www.asroma-fans-forum.com .. sample url:
http://asroma-fans-forum.com/index.php?topic=3.msg5#new
I uninstalled the package ... deleted it and then reinstalled 0.8.5 and it says i have 0.8.4 in installed packages... incorrect version .. whats could be wrong ?
dannyd,
I create mods myself. Dannii just forgot to change the version number in the package files. What shows up as 084 is really 085.
The reason your URLs are staying the same could be:
- You did not change anything in the admin for Pretty URLs which is located at: index.php?action=admin;area=pretty
- Your host doesn't allow you to use somethings this mod needs to work.
Hi Dannii
Can you tell me the difference of between 0.8.5 and 0.9 ?
Thanks.
Quote from: brianjw on October 23, 2008, 04:50:42 PM
dannyd,
I create mods myself. Dannii just forgot to change the version number in the package files. What shows up as 084 is really 085.
The reason your URLs are staying the same could be:
- You did not change anything in the admin for Pretty URLs which is located at: index.php?action=admin;area=pretty
- Your host doesn't allow you to use somethings this mod needs to work.
Thanks I didn't know you had to enable it. I enabled it but now I have 404 errors when I try accessing any page ? Did I miss a step ?
Quote from: ivo2296 on October 23, 2008, 12:17:16 PMHi i have made it for bulgarian but i don't know how and where to add it:
It is cp1251 encoding.
On my forum i'm using var smf_charset = "windows-1251".
Add them into the big array in Subs-PrettyUrls.php. You should only use lowercase letters though. I don't think it will work with capitals.
If you're having problems with encodings you should try 0.9, though it may not work. It uses some complicated PHP functions which aren't always installed.
Quote from: genieuk on October 23, 2008, 04:00:51 PMSo can i use this mod then? as it seems to make them like that
Sure, just fix your menu.
Quote from: dannyd on October 23, 2008, 04:38:05 PM
I went ahead iwth the install .. its installed according to my admin panel yet my urls are still the same. See the forum at www.asroma-fans-forum.com .. sample url:
http://asroma-fans-forum.com/index.php?topic=3.msg5#new
I uninstalled the package ... deleted it and then reinstalled 0.8.5 and it says i have 0.8.4 in installed packages... incorrect version .. whats could be wrong ?
Quote from: dannyd on October 23, 2008, 09:44:16 PMThanks I didn't know you had to enable it. I enabled it but now I have 404 errors when I try accessing any page ? Did I miss a step ?
Sure your server supports mod_rewrite and .htaccess?
Quote from: brianjw on October 23, 2008, 04:50:42 PM
dannyd,
I create mods myself. Dannii just forgot to change the version number in the package files. What shows up as 084 is really 085.
The reason your URLs are staying the same could be:
- You did not change anything in the admin for Pretty URLs which is located at: index.php?action=admin;area=pretty
- Your host doesn't allow you to use somethings this mod needs to work.
Argh, that's embarrasing! I'm making new packages now.
Quote from: *erhan on October 23, 2008, 06:04:39 PM
Hi Dannii
Can you tell me the difference of between 0.8.5 and 0.9 ?
Thanks.
There are quite a lot... check the changelog for everything: http://prettyurls.googlecode.com/svn/trunk/CHANGES
I was enable to turn the pretty filter off in the database. My hosting company has been pretty accomodating so far with what I needed. What do I need for this mod to work from my server ?
nevermind you answered it in the last post. Thanks!
i did a test and my mod rewrite works. Is this mod supposed to modify the .htaccess file ?
Yes, it does, so check that PHP can write to it. Set it to 777 if you can.
that was the problem. .htaccess was not set to 777 and I had no idea the mod added code to it.
Thanks dude. Works!!!!!!!! Great Mod!
www.asroma-fans-forum.com .. working proof!
For those who are like me and do dumb things, like install this mod without testing and then not being able to uninstall afterwards... I found a way where you don't have to replace every modified file.
All you need to do is play with the URL's.
For example... t ninstall a mod that you shouldn't have installed to begin with simply.. enter
http://YOURWEBADDRESS.com/index.php?action=packages;sa=uninstall2;package=prettyurls-0-8-5.tar.gz
I took a shot when I screwed up and it worked.
You could also follow these instructions: http://code.google.com/p/prettyurls/wiki/TroubleShooting
Hello,
I've installed Pretty URLs 0.8.5b on SMF 2.0 Beta 4 without any error. However, it seems not working at all. I've already turned on the Enable URL rewriting but no luck. The URLs still be index.php/board,15.0.html.
.htaccess is already chmod 777
The files musn't have been modified correctly. You might have to manually install it. Check if QueryString.php has any of the new code.
Quote from: Dannii on October 23, 2008, 11:01:46 PM
You could also follow these instructions: http://code.google.com/p/prettyurls/wiki/TroubleShooting
Sure make things simple. ;)
Would that php file used to diagnose need a particular name?
No it can't diagnose anything, it just disables the mod.
Quote from: Dannii on October 24, 2008, 12:31:04 AM
No it can't diagnose anything, it just disables the mod.
Does it need a filename or when i upload it can it be named anything.php?
Quote from: Dannii on October 23, 2008, 09:56:55 PM
Quote from: *erhan on October 23, 2008, 06:04:39 PM
Hi Dannii
Can you tell me the difference of between 0.8.5 and 0.9 ?
Thanks.
There are quite a lot... check the changelog for everything: http://prettyurls.googlecode.com/svn/trunk/CHANGES
Thank you very much dude.
Quote from: ChrisFBBS on October 24, 2008, 01:06:06 AM
Does it need a filename or when i upload it can it be named anything.php?
anything.php
Could someone give me a link for version 0.9 please?
Quote from: Dannii on October 23, 2008, 09:56:55 PM
Quote from: ivo2296 on October 23, 2008, 12:17:16 PMHi i have made it for bulgarian but i don't know how and where to add it:
It is cp1251 encoding.
On my forum i'm using var smf_charset = "windows-1251".
Add them into the big array in Subs-PrettyUrls.php. You should only use lowercase letters though. I don't think it will work with capitals.
If you're having problems with encodings you should try 0.9, though it may not work. It uses some complicated PHP functions which aren't always installed.
Pretty URLs 0.9? - i can't find this version.
Thanks
Check between the past two pages ivo2296, and I guarantee you will find it. Either that or search the google site for pretty urls project downloads. ;)
Quote from: brianjw on October 24, 2008, 04:10:16 PM
Check between the past two pages ivo2296, and I guarantee you will find it. Either that or search the google site for pretty urls project downloads. ;)
Thanks a lot! :)
is possible changed the pretty url that show the stats of the forum?
in my hosting this url:
www. mydomain .com/stats/
show the stats of the hosting page and I cant see the stats of the forum
And the option for change the url of board in the 0.9 version is very useful thanks :)
Can you just go directly to the index.php or index.html page?
the problem is that
www.mydomain.com/stats/ is using by my hosting for show the stats of the hosting, so when I click in [More Stats] in the Info Center not show the stast of the forum
yes, if I use:
/index.php?action=stats
I can access my forum stats
Add this rule before the others in .htaccess:
RewriteRule ^stats/?$ ./stats/index.php [L,QSA]
Replace index.php with index.html or whatever..
I put that line after the:
# Rules for: actions
in .htaccess but happen the same
is possible change it to display other word?
instead /stast/ to show /more_stast/ or other
all url that start with stats/ show the stasts o hosting
Oh wait, I misread your problem.
Try this:
RewriteRule ^forum-stats/?$ ./index.php?action=stats [L,QSA]
You can change forum-stats to whatever you want.
with that code I can see the forum stats if I go to:
www. mydomain .com/forum-stats/
but the problem is that in the Info Center the [More Stats] link continue using the same link /stats/
I edit the link in the smf_pretty_urls_cache table, for show
.../forum-stats/
instead
.../stats/
and work :)
thanks for all the help
trying to toss out some ssi_boardNews
can't seem to get pretty urls to work, they work fine in ssi_examples
works fine in a frame(test)
but include shows non pretty urls
Version: 2.0 Beta 3 Public
Pretty URLs - Base 0.8.4
Try including this line in your code:
ob_start('ob_sessrewrite');
And are you just using the normal ssi_boardNews output, or are you customising it?
<?php
ob_start('ob_sessrewrite');
ssi_boardNews($board = 1.0, $limit = 2, $start = null, $length = 250, $output_method = 'echo');
?>
perfect, thank you
QuoteI dont' get what you mean exactly but my theme use normal SMF URLs, if that makes sence and what your asking.
Your templates are producing URLs like this: index.php?action=help;page=profile
They need to be full URLs like: http://www.foreverlastingfriends.com/index.php?action=help;page=profile
So does this mean i cannot use the mod with my custom theme? really want to use this mod. To my knowledge and looking at my URLS they are full URLS like you have shown.
Mathew
Most of the URLs are full ones, except the ones in the menu.
<div class="sub">
<ul>
<li><a href="index.php?action=help;page=registering">Register</a></li>
<li><a href="index.php?action=help;page=loginout">Logging In</a></li>
<li><a href="index.php?action=help;page=profile">Your Profile</a></li>
<li><a href="index.php?action=help;page=post">How to Post</a></li>
<li><a href="index.php?action=help;page=pm">Personal Message</a></li>
<li><a href="index.php?action=help;page=searching">The Search Function</a></li>
</ul>
<div class="btm-bg"></div>
</div>
ok thanks, anything i can do to make them full urls ???
sorry if i sound thick but prefer to ask as i dont want to jump ahead and cause myself problems, prefer to get the appropriate help from people who knows what they talking about.
Thanks
Mathew
Just change the PHP code to use $scripturl. Or even add the full domain in without using the variable. It's really very simple...
I sound thick i know, but what file do i edit to change that and what do i actually need to do put? i mean what code.
Thanks
Mathew
Probably index.template.php
If you want to display the $scripturl string in HTML, use it like this:
', $scripturl, '
', $scripturl, '
- Brian
help got an loop error redirection. cant open threads.
Difficult to search in 133 pages...
I have installed the mod for version 1.1.6.
My problem? i use a non default theme and i cant see the botton to access to the settings in my admin panel.
Finaly i have changed my forum language to english insted of spanish and i could do it.
I think it would be nice to say it in some place....
And well, my question.
In spanish we use this to accentuate characteres: ( á é í ó ú ).
where must i put some code to:
- first, delete the accents (á é í ó ú = a e i o u)
-and then to pass the title string to the code.
Thank you.
Thank you.
PD: great job dani ;)
Quote from: dangerboy on October 29, 2008, 03:26:19 PMhelp got an loop error redirection. cant open threads.
Can you give me more details then please? Links? Checked your error logs?
Quote from: MacX on October 29, 2008, 05:33:30 PMDifficult to search in 133 pages...
I have installed the mod for version 1.1.6.
My problem? i use a non default theme and i cant see the botton to access to the settings in my admin panel.
Finaly i have changed my forum language to english insted of spanish and i could do it.
I think it would be nice to say it in some place....
And well, my question.
In spanish we use this to accentuate characteres: ( á é í ó ú ).
where must i put some code to:
- first, delete the accents (á é í ó ú = a e i o u)
-and then to pass the title string to the code.
Thank you.
Thank you.
PD: great job dani ;)
Can you just convert to UTF-8?
Quote from: Dannii link=topic=146969.msg1774537#msg1774537
Can you just convert to UTF-8?
Downloading my spanish language in UTF 8 and installing it?
I have done it, but if i apply the utf8 language accents doesnt appear...
I only need to know where to apply my funcion to the code. In what file.
Thank you.
The language pack is irrelevant. The database tables need to be in UTF-8. You can find that option in the maintenance section.
Quote from: Dannii on October 30, 2008, 12:13:12 PM
The language pack is irrelevant. The database tables need to be in UTF-8. You can find that option in the maintenance section.
I have them in UTF8_unicode_ci.
Must i put it in UTF8_spanish_ci or UTF8_spanish_ci2 ?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg100.imageshack.us%2Fimg100%2F6500%2Flookwb7.jpg&hash=57c27d00fd8a6cc948fb0f9bc9e766ac4c0ffcd4)
Anyway, i have all my forum data there, will it cause any problem that conversion?
Or i must do a backup and import it after changing the codification.
Well, i have changed tables tu UTF8_spanish_ci but the forum is as it was before.
No changes.
Must i do a backup and import again to apply the utf8 to tables, or it has been applied to the actual data in tables.
Anyway, i think with a function in the code wont be any problems...
All of the tables need to be too, check if they are. If they aren't, convert from the SMF Admin Maintenance section, nor phpmyadmin.
Also, try upgrading to 0.9 if you haven't.
Quote from: Dannii on October 30, 2008, 12:54:23 PM
All of the tables need to be too, check if they are. If they aren't, convert from the SMF Admin Maintenance section, nor phpmyadmin.
Also, try upgrading to 0.9 if you haven't.
I am using 0.8.5 in 1.1.6 forum.
Anyway, i have done it from the admin panel too and nothing, all still in the same way.
And... another thing:
Do exist a way for not to saw the board title while watching a topic and make it a number for example?
I think the board is not a relevant information and replacing it with a number makes searches paying more attention to the topic title.
O, and other question:
How you look for the topic? With the topic id? Because it isnt in the URL...
Can you upgrade to the 0.9 version of this mod, from the google code site?
And no you can't easily change the URL structures like that, nor that it would matter.
Why do you want an ID? You can look in the pretty_topic_urls table though.
(I've searched in this topic, but couldn't found)
Even running maintenance tasks, my smf_pretty_urls_cache table still gets 20, 30 MBs of content. It is more than my smf_messages, for example, that has 17 mb.
When I go to phpMyAdmin, I manually empty the smf_pretty_url table, and nothing changes on my SMF.
It is supposed to be this or something is wrong with my Pretty URL?
I'm surprised that it's quite that much bigger, but I don't think anything is wrong. It takes a lot of space! How do the row numbers compare? I have about five times as many cached URLs as messages. Is yours similar?
Hello! I'm having a very big problem with my site: today i've installed Pretty URLs mod into my site and i've checked all the options in the mod control panel. Now, my site is broken: the URLs aren't working, i can't even login. What shoul I do?
Quote from: Dannii on October 30, 2008, 11:07:24 PM
Can you upgrade to the 0.9 version of this mod, from the google code site?
Ok, i done it. Nothing changes.
Characteres with accents are not show in URL with mod rewrite...
If the board is "moderación" insted of:
forum/moderacion/message/
it shows:
forum/moderacin/message/
Quote from: Dannii on October 30, 2008, 11:07:24 PM
And no you can't easily change the URL structures like that, nor that it would matter.
ok
Quote from: Dannii on October 30, 2008, 11:07:24 PM
Why do you want an ID? You can look in the pretty_topic_urls table though.
What pretty_topic_urls table??
O, and... i think i would solve this problem faster if i use a simple function to conver characters with accents to characters without them in the code you modified for the mod... ( i think...)
I solved. But now i have "ugly urls". What should i do to have pretty urls? If i check Enable URL rewriting again the urls won't work.
Quote from: MacX on October 31, 2008, 01:21:26 PM
Quote from: Dannii on October 30, 2008, 11:07:24 PM
Can you upgrade to the 0.9 version of this mod, from the google code site?
Ok, i done it. Nothing changes.
Characteres with accents are not show in URL with mod rewrite...
If the board is "moderación" insted of:
forum/moderacion/message/
it shows:
forum/moderacin/message/
Quote from: Dannii on October 30, 2008, 11:07:24 PM
And no you can't easily change the URL structures like that, nor that it would matter.
ok
Quote from: Dannii on October 30, 2008, 11:07:24 PM
Why do you want an ID? You can look in the pretty_topic_urls table though.
What pretty_topic_urls table??
O, and... i think i would solve this problem faster if i use a simple function to conver characters with accents to characters without them in the code you modified for the mod... ( i think...)
that happen to me too
you have to solve it manually in phpmyadmin or install the 0.9 version for do in admin part of smf
http://www.simplemachines.org/community/index.php?topic=146969.msg1763005#msg1763005 (http://www.simplemachines.org/community/index.php?topic=146969.msg1763005#msg1763005)
first do a backup of the database
then in phpmyadmin find this table:
smf_settings(or do a search in phpmyadmin of moderacin, will display the results in all tables and you can find the next variables more easy)
find this variable:
pretty_board_urlsyou will see something like this:
a:45:{i:1;s:25:"discusiandoacuten-general";i:20;s:19:".....in this example the problem is when use the title board
Discusión Generalinstead that appear
discusiandoacuten-general in the url
in your case you have to find
moderacinand change it by:
moderacionbut take a lot of care with this change in the database, after that will appear an header error in the forum
after that you have to
run a maintanance task in the pretty urls configuration for solve the error in the forum header:
go to admin > configuration > Pretty URLs
and click in "Run maintanace task"
that solve the forum header error
if you have the 0.9 version you can change it in :
admin > Forum > Boards > Modify boards
then click in the modify of the board and you will see a new field for change the title of the url
Quote from: jukesoft on October 31, 2008, 01:46:18 PM
I solved. But now i have "ugly urls". What should i do to have pretty urls? If i check Enable URL rewriting again the urls won't work.
you have the forum in a directory?
in that case you have to edit the .htaccess file and search:
RewriteEngine on
after that add this:
RewriteBase /
and add the forum directory name after RewriteBase/
example if you have your forum in www.domain.com/forum/:
RewriteBase /forum
Lot of thanks Frozt, but i dont want to do it only in boards but also in topic titles writen by users with some accents in some characters...
Thats why i ask where to use a function to delete accents.
you could try this, first click the link of:
Admin > Maintenance > Convert HTML-entities to UTF-8 characters
and then in phpmyadmin
select this tables:
smf_pretty_topic_urls
smf_pretty_urls_cache
and empty it
that delete all urls
after that go to admin > Configuration > Pretty URLs
click in Maintance button
and then in Run maintenance tasks link
Quote from: jukesoft on October 31, 2008, 01:46:18 PMI solved. But now i have "ugly urls". What should i do to have pretty urls? If i check Enable URL rewriting again the urls won't work.
Does your server support mod_rewrite and .htaccess?
And thanks for the help with answering questions Frotz!
After installing this error shows up (on every page), im using smf 1.1.6.
Parse error: syntax error, unexpected '*' in /home/forumad/public_html/forum/Sources/QueryString.php on line 616
Can you post lines 610-620?
I've got a question Dannii. Unlike seo4smf, does this mod rewrite the URL for themes where you can click the table to get to places?
Quote from: Frozt on October 31, 2008, 02:51:45 PM
you could try this, first click the link of:
Admin > Maintenance > Convert HTML-entities to UTF-8 characters
and then in phpmyadmin
select this tables:
smf_pretty_topic_urls
smf_pretty_urls_cache
and empty it
that delete all urls
after that go to admin > Configuration > Pretty URLs
click in Maintance button
and then in Run maintenance tasks link
I did it.
Lot of thanks frozt ;)
Afer doing it titles of boards with accents are right. The characters with accents are replaced for characteres without accents.
Boards titles still equal, but anyway, i am gonna use the pretty_url table to change its name for a number.
Thank you man ;)
Quote from: Dannii on November 01, 2008, 08:30:54 AM
Can you post lines 610-620?
$queriesDiff = $db_count + $context['pretty']['db_count'] - (int) $matches[2];
// Remove the link if you like, I won't enforce it like others do
$newLoadTime = '<span class="smalltext">' . $txt['smf301'] . $newTime . $txt['smf302'] . $db_count . $txt['smf302b'] . ' (<a href="http://code.google.com/p/prettyurls/">Pretty URLs</a> adds ' . $timeDiff . 's, ' . $queriesDiff . 'q)</span>';
$buffer = str_replace($matches[0], $newLoadTime, $buffer);
}
*/
// Rewrite the buffer with Pretty URLs!
if ($modSettings['pretty_enable_filters'])
{
Another mod that also change htaccess is sitemap mod ive installed. Maybe they both clashed n cant be used together?
Quote from: dWhite on November 01, 2008, 10:49:55 AMI've got a question Dannii. Unlike seo4smf, does this mod rewrite the URL for themes where you can click the table to get to places?
I don't know what you mean.
anakmacan, it looks like the mod has been installed twice. You'll need to manually go through all the files and check the changes are correct.
Dannii: Thanks, and Gladly it was test forum, i tried to install another (this one i installed pretty url first, then, smf sitemap) and no similar problem happened :) And youre right, my forum got error from other mods as well (becoz they're installed twice).
The pretty urls work; sometimes
I would have to say about 90% of the time is shows pretty
On my front page I have ssi : board news, boards and welcome (pm)/login
Quote from: Assistance on October 25, 2008, 10:15:12 AM
<?php
ob_start('ob_sessrewrite');
ssi_boardNews($board = 1.0, $limit = 2, $start = null, $length = 250, $output_method = 'echo');
?>
perfect, thank you
That's not working properly?
I did have ob_start('ob_sessrewrite'); used twice
(just removed one instance in one module) still reproduces non pretty
if I empty the cache it will always reproduce on first click after
What URLs aren't being prettified?
ssi_boardNews
ssi_topBoards
Which specific URLs? Link?
I'm kinda confused about specific urls, when its ALL of them
the urls when in the forum work fine 100%
its only using ssi with Joomla
Ahh, well I don't think it's really compatible with Joomla sorry.
nope thats fine, was just playing around with options for the front page
Help lost my site.
after i installed and click the enable this and saved site went blank
Not Found
The requested URL /admin/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Now i am running simpleportal and the main site works with it just nothing else
http://www.freeimageforum.com
as you can see for yourself
Help lost my site.
after i installed and click the enable this and saved site went blank
Not Found
The requested URL /admin/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Now i am running simpleportal and the main site works with it just nothing else
http://www.freeimageforum.com
as you can see for yourself
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Follow these instructions.
Does your server support mod_rewrite and .htaccess?
yes
was going to take it out but can't even do that
oh yea forgot to say that i have tags mod installed and that works just done of the other links work
Did you create the file and run it?
what should i name it
sorry about that
ok i ran that repair_settings and checked it all and click saved went to the default of the themes and now i get this message
Not Found
The requested URL /login2/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I can't even login now
ok made that file named it new.php LOL and this is what i got
Notice: Undefined index: sp-forum in /home2/ac919h/public_html/Sources/Subs.php on line 3874
Dannii, might I make a suggestion? You should incorporate automatic generation of descriptions/keywords with this, to accompany the rewritten URLs. :)
I have many big problems a handle. The forum is broken, can no longer URL call someone an idea? Server is the same, just change path.
Quote from: SISPro on November 02, 2008, 11:28:09 AM
ok made that file named it new.php LOL and this is what i got
Notice: Undefined index: sp-forum in /home2/ac919h/public_html/Sources/Subs.php on line 3874
Can you post lines 3870-3880 then?
Quote from: dWhite on November 02, 2008, 12:20:33 PMDannii, might I make a suggestion? You should incorporate automatic generation of descriptions/keywords with this, to accompany the rewritten URLs. :)
Nope, that's useless bloat. This mod does one thing and it does it well. There are other mods that do meta data already.
Quote from: nisami on November 03, 2008, 01:48:15 AMI have many big problems a handle. The forum is broken, can no longer URL call someone an idea? Server is the same, just change path.
What exactly is the problem? Got a link?
i can post the lines last night i just completely drop the account and started a new one.
see this is my server that i sell hosting on. wanted a forum for it so will try this again but this time i'll put just that mod in first
Quote from: Frozt on October 31, 2008, 02:15:10 PM
Quote from: jukesoft on October 31, 2008, 01:46:18 PM
I solved. But now i have "ugly urls". What should i do to have pretty urls? If i check Enable URL rewriting again the urls won't work.
you have the forum in a directory?
in that case you have to edit the .htaccess file and search:
RewriteEngine on
after that add this:
RewriteBase /
and add the forum directory name after RewriteBase/
example if you have your forum in www.domain.com/forum/:
RewriteBase /forum
It work!!! Thank you very much!!!
Hi all,
It was the same problem on my host, for solving maintenance task I have changed in Subs-PrettyUrls.php:
Ligne 222
Before:
RewriteEngine on';
Now:
RewriteEngine on
RewriteBase "/"';
@Danni
I will Translate Pretty Url in french soon.
By
EDIT: Sorry please delete this post, wrong topic :)
Hi Guys. Ive made a bit of a boob.
Ive deleted the htaccess by mistake. Now I cant get to the admin section to remove pretty urls and then put it back in to recreate the htaccess.
Ok I found the answer here :
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Thats an excellent wiki Dannii. Once again brilliant supprt for the mod users. Well done.
I'm using latest beta version.
"Pretty URL" link doesn't show up in Admin Section because I'm using a different language. Can you tell me how I can fix that?
Quote from: eleven0 on November 08, 2008, 12:44:40 AM
I'm using latest beta version.
"Pretty URL" link doesn't show up in Admin Section because I'm using a different language. Can you tell me how I can fix that?
You can put engilsh language to see it.
Apply the changes and configuration that you want, and later, put your forum again in your language.
Mod rewrite will run.
You wont see that option in admin panel in your language, but you can always work with it if you put forum in english for the period of time you want to change something there.
I have other problem now i want to comment and try to solve.
My users are telling me now that when they recibe the mail confirmation of an answer to their post, somethimes they cant enter by that OLD url. (without no mod rewrite.)
They tell me that they only can enter in the URL if they have other window with their sesion initialiced in the explorer they are using.
How can i solve this?
Can you put mod rewrite in the urls send by email in the confirmation mails?
Or you can solve it by other way?
Thank you dani.
My personnal notes for showing my language:
Avant dans Thèmes/default/languages/ Pretty Urls.french.php:
<?php
// Version: 0.9; PrettyUrls
require_once(dirname(__FILE__) . '/PrettyUrls.english.php');
// Admin chrome
$txt['pretty_chrome_title'] = 'Administration de Pretty URLs';
$txt['pretty_chrome_menu_settings'] = 'Paramètres';
$txt['pretty_chrome_menu_maintenance'] = 'Maintenance';
// Settings page
$txt['pretty_chrome_caption_settings'] = 'Titre des paramètres';
$txt['pretty_chrome_page_title_settings'] = 'Paramètres de Pretty URLs';
$txt['pretty_core_settings'] = 'Paramètres principaux';
$txt['pretty_enable'] = 'Autoriser la réécriture des URLs';
$txt['pretty_filters'] = 'Filtres de réécriture des URLs';
$txt['pretty_save'] = 'Sauvegarder les changements';
?>
Après (reste à traduire et à convertir en utf8)
<?php
// Version: 0.9; PrettyUrls
// Admin chrome
$txt['pretty_chrome_title'] = 'Administration de Pretty URLs';
$txt['pretty_chrome_menu_news'] = 'Nouvelles';
$txt['pretty_chrome_menu_settings'] = 'Paramètres';
$txt['pretty_chrome_menu_maintenance'] = 'Maintenance';
// News page
$txt['pretty_chrome_caption_news'] = 'The latest news and information live from the project website';
$txt['pretty_chrome_page_title_news'] = 'Pretty URLs News & Info';
$txt['pretty_chrome_title_news'] = 'News & Info';
$txt['pretty_current_version'] = 'Current version';
$txt['pretty_download'] = 'Download';
$txt['pretty_latest_version'] = 'Latest version';
$txt['pretty_upgrade'] = 'Upgrade now!';
$txt['pretty_version'] = 'Version info';
// Settings page
$txt['pretty_chrome_caption_settings'] = 'Titre des paramètres';
$txt['pretty_chrome_page_title_settings'] = 'Paramètres de Pretty URLs';
$txt['pretty_core_settings'] = 'Paramètres principaux';
$txt['pretty_enable'] = 'Autoriser la réécriture des URLs';
$txt['pretty_filters'] = 'Filtres de réécriture des URLs';
$txt['pretty_save'] = 'Sauvegarder les changements';
// Maintenance page
$txt['pretty_chrome_caption_maintenance'] = 'Run some maintenance tasks';
$txt['pretty_chrome_page_title_maintenance'] = 'Pretty URLs Maintenance';
$txt['pretty_run_maintenance'] = 'Run maintenance tasks';
// Edit filters page
$txt['pretty_chrome_caption_filters'] = 'A tool to edit the filters array. The array is formatted here in the <a href="http://www.json.org/">JSON</a> format. Be careful, the JSON parser is rather strict.';
$txt['pretty_chrome_page_title_filters'] = 'Pretty URLs Filters Tool';
$txt['pretty_chrome_title_filters'] = 'Filters Tool';
$txt['pretty_no_json'] = 'The PHP JSON extension is required for this tool. Consider upgrading to PHP 5.2.';
?>
Eventuellement ajouter la ligne:
require_once(dirname(__FILE__) . '/PrettyUrls.french.php');
Dans PrettyUrls.english.php
Avant dans /Sources/PrettyUrls.php
<?php
// Version: 0.9; PrettyUrls
if (!defined('SMF'))
die('Hacking attempt...');
// Shell for all the Pretty URL interfaces
function PrettyInterface()
{
global $context, $scripturl, $settings, $txt;
// Keep the critters out
isAllowedTo('admin_forum');
// Default templating stuff
loadTemplate('PrettyUrls');
if (loadLanguage('PrettyUrls') == false)
loadLanguage('PrettyUrls', 'english');
// Shiny chrome interface
adminIndex('config');
$context['template_layers']['pretty_chrome'] = 'pretty_chrome';
$context['html_headers'] .= '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/pretty/chrome.css" media="screen,projection" />';
$context['pretty']['chrome'] = array(
'menu' => array(
'news' => array(
'href' => $scripturl . '?action=admin;area=pretty',
'title' => $txt['pretty_chrome_menu_news'],
),
'settings' => array(
'href' => $scripturl . '?action=admin;area=pretty;sa=settings',
'title' => $txt['pretty_chrome_menu_settings'],
),
'maintenance' => array(
'href' => $scripturl . '?action=admin;area=pretty;sa=maintenance',
'title' => $txt['pretty_chrome_menu_maintenance'],
),
),
);
// What can we do today?
$subActions = array(
'filters' => 'pretty_edit_filters',
'maintenance' => 'pretty_maintenance',
'news' => 'pretty_news',
'settings' => 'pretty_manage_settings',
);
if (isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]))
call_user_func($subActions[$_REQUEST['sa']]);
else
pretty_news();
}
// News and mod information
function pretty_news()
{
global $context, $scripturl, $settings, $txt;
// This page needs some extra javascript :)
$context['html_headers'] .= '
<script type="text/javascript">var chrome = {
downloadTxt: "' . $txt['pretty_download'] . '",
pmUrl: "' . $scripturl . '?action=pgdownload;auto;sesc=' . $context['session_id'] . ';package=",
upgradeTxt: "' . $txt['pretty_upgrade'] . '"
};</script>
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/pretty/chrome.js"></script>
<script type="text/javascript" src="http://prettyurls.googlecode.com/svn/trunk/news.js"></script>';
$context['page_title'] = $txt['pretty_chrome_page_title_news'];
$context['sub_template'] = 'pretty_news';
$context['pretty']['chrome']['title'] = $txt['pretty_chrome_title_news'];
$context['pretty']['chrome']['caption'] = $txt['pretty_chrome_caption_news'];
}
// An interface to manage the settings and filters
function pretty_manage_settings()
{
global $context, $modSettings, $sourcedir, $txt;
// Core settings
$context['pretty']['settings']['core'] = array(
array(
'id' => 'pretty_enable_filters',
'label' => $txt['pretty_enable'],
'type' => 'text',
'value' => $modSettings['pretty_enable_filters'],
),
);
// Load the filters data
$context['pretty']['filters'] = unserialize($modSettings['pretty_filters']);
// Are we saving settings now?
if (isset($_REQUEST['save']))
{
// Get each filter from the form and save them
foreach ($context['pretty']['filters'] as $id => $filter)
$context['pretty']['filters'][$id]['enabled'] = isset($_POST['pretty_filter_' . $id]) ? 1 : 0;
$pretty_settings = array(
'pretty_enable_filters' => $_POST['pretty_enable'],
'pretty_filters' => addslashes(serialize($context['pretty']['filters'])),
);
updateSettings($pretty_settings);
// Update the filters too
require_once($sourcedir . '/Subs-PrettyUrls.php');
pretty_update_filters();
// All finished now!
$_SESSION['pretty']['notice'] = 'Settings saved';
redirectexit('action=admin;area=pretty;sa=settings');
}
// Action-specific chrome
$context['page_title'] = $txt['pretty_chrome_page_title_settings'];
$context['sub_template'] = 'pretty_settings';
$context['pretty']['chrome']['title'] = $txt['pretty_chrome_menu_settings'];
$context['pretty']['chrome']['caption'] = $txt['pretty_chrome_caption_settings'];
// Load the settings up
$context['pretty']['settings']['enable'] = $modSettings['pretty_enable_filters'];
// Any notices?
if (isset($_SESSION['pretty']['notice']))
{
$context['pretty']['chrome']['notice'] = $_SESSION['pretty']['notice'];
unset($_SESSION['pretty']['notice']);
}
}
// Interface for URL maintenance
function pretty_maintenance()
{
global $context, $sourcedir, $txt;
// Run the maintenance tasks
if (isset($_REQUEST['run']))
{
require_once($sourcedir . '/Subs-PrettyUrls.php');
pretty_run_maintenance();
}
// Action-specific chrome
$context['page_title'] = $txt['pretty_chrome_page_title_maintenance'];
$context['sub_template'] = 'pretty_maintenance';
$context['pretty']['chrome']['title'] = $txt['pretty_chrome_menu_maintenance'];
$context['pretty']['chrome']['caption'] = $txt['pretty_chrome_caption_maintenance'];
}
// Interface to edit the filters array
function pretty_edit_filters()
{
global $context, $modSettings, $sourcedir, $txt;
// Check the JSON extension is installed
if (!function_exists('json_encode'))
{
unset($context['template_layers']['pretty_chrome']);
fatal_lang_error('pretty_no_json', false);
}
// Save the filters array
if (isset($_REQUEST['save']))
{
// Try to process the edited JSON array
$json_filters = (isset($_POST['pretty_json_filters'])) ? $_POST['pretty_json_filters'] : '';
$json_filters = stripslashes($json_filters);
$filters_array = json_decode($json_filters, true);
// Was that successful or not?
if ($filters_array == NULL)
{
$_SESSION['pretty']['notice'] = 'There was an error with the JSON array you submitted';
$_SESSION['pretty']['json_filters'] = $json_filters;
}
else
{
require_once($sourcedir . '/Subs-PrettyUrls.php');
updateSettings(array('pretty_filters' => addslashes(serialize($filters_array))));
pretty_update_filters();
$_SESSION['pretty']['notice'] = 'Filters saved and updated';
}
redirectexit('action=admin;area=pretty;sa=filters');
}
// Action-specific chrome
$context['page_title'] = $txt['pretty_chrome_page_title_filters'];
$context['sub_template'] = 'pretty_filters';
$context['pretty']['chrome']['title'] = $txt['pretty_chrome_title_filters'];
$context['pretty']['chrome']['caption'] = $txt['pretty_chrome_caption_filters'];
if (isset($_SESSION['pretty']['json_filters']))
{
// We're working on something already
$context['pretty']['json_filters'] = $_SESSION['pretty']['json_filters'];
unset($_SESSION['pretty']['json_filters']);
}
else
{
// Convert the filters array to JSON and format it nicely
require_once($sourcedir . '/Subs-PrettyUrls.php');
$context['pretty']['json_filters'] = json_encode(unserialize($modSettings['pretty_filters']));
$context['pretty']['json_filters'] = pretty_json($context['pretty']['json_filters']);
$context['pretty']['json_filters'] = str_replace('\/', '/', $context['pretty']['json_filters']);
}
// Any new notices?
if (isset($_SESSION['pretty']['notice']))
{
$context['pretty']['chrome']['notice'] = $_SESSION['pretty']['notice'];
unset($_SESSION['pretty']['notice']);
}
}
?>
Après:
<?php
// Version: 0.9; PrettyUrls
if (!defined('SMF'))
die('Hacking attempt...');
// Shell for all the Pretty URL interfaces
function PrettyInterface()
{
global $context, $scripturl, $settings, $txt;
// Keep the critters out
isAllowedTo('admin_forum');
// Default templating stuff
loadTemplate('PrettyUrls');
if (loadLanguage('PrettyUrls') == false)
loadLanguage('PrettyUrls', 'french');
// Shiny chrome interface
adminIndex('config');
$context['template_layers']['pretty_chrome'] = 'pretty_chrome';
$context['html_headers'] .= '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/pretty/chrome.css" media="screen,projection" />';
$context['pretty']['chrome'] = array(
'menu' => array(
'news' => array(
'href' => $scripturl . '?action=admin;area=pretty',
'title' => $txt['pretty_chrome_menu_news'],
),
'settings' => array(
'href' => $scripturl . '?action=admin;area=pretty;sa=settings',
'title' => $txt['pretty_chrome_menu_settings'],
),
'maintenance' => array(
'href' => $scripturl . '?action=admin;area=pretty;sa=maintenance',
'title' => $txt['pretty_chrome_menu_maintenance'],
),
),
);
// What can we do today?
$subActions = array(
'filters' => 'pretty_edit_filters',
'maintenance' => 'pretty_maintenance',
'news' => 'pretty_news',
'settings' => 'pretty_manage_settings',
);
if (isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]))
call_user_func($subActions[$_REQUEST['sa']]);
else
pretty_news();
}
// News and mod information
function pretty_news()
{
global $context, $scripturl, $settings, $txt;
// This page needs some extra javascript :)
$context['html_headers'] .= '
<script type="text/javascript">var chrome = {
downloadTxt: "' . $txt['pretty_download'] . '",
pmUrl: "' . $scripturl . '?action=pgdownload;auto;sesc=' . $context['session_id'] . ';package=",
upgradeTxt: "' . $txt['pretty_upgrade'] . '"
};</script>
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/pretty/chrome.js"></script>
<script type="text/javascript" src="http://prettyurls.googlecode.com/svn/trunk/news.js"></script>';
$context['page_title'] = $txt['pretty_chrome_page_title_news'];
$context['sub_template'] = 'pretty_news';
$context['pretty']['chrome']['title'] = $txt['pretty_chrome_title_news'];
$context['pretty']['chrome']['caption'] = $txt['pretty_chrome_caption_news'];
}
// An interface to manage the settings and filters
function pretty_manage_settings()
{
global $context, $modSettings, $sourcedir, $txt;
// Core settings
$context['pretty']['settings']['core'] = array(
array(
'id' => 'pretty_enable_filters',
'label' => $txt['pretty_enable'],
'type' => 'text',
'value' => $modSettings['pretty_enable_filters'],
),
);
// Load the filters data
$context['pretty']['filters'] = unserialize($modSettings['pretty_filters']);
// Are we saving settings now?
if (isset($_REQUEST['save']))
{
// Get each filter from the form and save them
foreach ($context['pretty']['filters'] as $id => $filter)
$context['pretty']['filters'][$id]['enabled'] = isset($_POST['pretty_filter_' . $id]) ? 1 : 0;
$pretty_settings = array(
'pretty_enable_filters' => $_POST['pretty_enable'],
'pretty_filters' => addslashes(serialize($context['pretty']['filters'])),
);
updateSettings($pretty_settings);
// Update the filters too
require_once($sourcedir . '/Subs-PrettyUrls.php');
pretty_update_filters();
// All finished now!
$_SESSION['pretty']['notice'] = 'Settings saved';
redirectexit('action=admin;area=pretty;sa=settings');
}
// Action-specific chrome
$context['page_title'] = $txt['pretty_chrome_page_title_settings'];
$context['sub_template'] = 'pretty_settings';
$context['pretty']['chrome']['title'] = $txt['pretty_chrome_menu_settings'];
$context['pretty']['chrome']['caption'] = $txt['pretty_chrome_caption_settings'];
// Load the settings up
$context['pretty']['settings']['enable'] = $modSettings['pretty_enable_filters'];
// Any notices?
if (isset($_SESSION['pretty']['notice']))
{
$context['pretty']['chrome']['notice'] = $_SESSION['pretty']['notice'];
unset($_SESSION['pretty']['notice']);
}
}
// Interface for URL maintenance
function pretty_maintenance()
{
global $context, $sourcedir, $txt;
// Run the maintenance tasks
if (isset($_REQUEST['run']))
{
require_once($sourcedir . '/Subs-PrettyUrls.php');
pretty_run_maintenance();
}
// Action-specific chrome
$context['page_title'] = $txt['pretty_chrome_page_title_maintenance'];
$context['sub_template'] = 'pretty_maintenance';
$context['pretty']['chrome']['title'] = $txt['pretty_chrome_menu_maintenance'];
$context['pretty']['chrome']['caption'] = $txt['pretty_chrome_caption_maintenance'];
}
// Interface to edit the filters array
function pretty_edit_filters()
{
global $context, $modSettings, $sourcedir, $txt;
// Check the JSON extension is installed
if (!function_exists('json_encode'))
{
unset($context['template_layers']['pretty_chrome']);
fatal_lang_error('pretty_no_json', false);
}
// Save the filters array
if (isset($_REQUEST['save']))
{
// Try to process the edited JSON array
$json_filters = (isset($_POST['pretty_json_filters'])) ? $_POST['pretty_json_filters'] : '';
$json_filters = stripslashes($json_filters);
$filters_array = json_decode($json_filters, true);
// Was that successful or not?
if ($filters_array == NULL)
{
$_SESSION['pretty']['notice'] = 'There was an error with the JSON array you submitted';
$_SESSION['pretty']['json_filters'] = $json_filters;
}
else
{
require_once($sourcedir . '/Subs-PrettyUrls.php');
updateSettings(array('pretty_filters' => addslashes(serialize($filters_array))));
pretty_update_filters();
$_SESSION['pretty']['notice'] = 'Filters saved and updated';
}
redirectexit('action=admin;area=pretty;sa=filters');
}
// Action-specific chrome
$context['page_title'] = $txt['pretty_chrome_page_title_filters'];
$context['sub_template'] = 'pretty_filters';
$context['pretty']['chrome']['title'] = $txt['pretty_chrome_title_filters'];
$context['pretty']['chrome']['caption'] = $txt['pretty_chrome_caption_filters'];
if (isset($_SESSION['pretty']['json_filters']))
{
// We're working on something already
$context['pretty']['json_filters'] = $_SESSION['pretty']['json_filters'];
unset($_SESSION['pretty']['json_filters']);
}
else
{
// Convert the filters array to JSON and format it nicely
require_once($sourcedir . '/Subs-PrettyUrls.php');
$context['pretty']['json_filters'] = json_encode(unserialize($modSettings['pretty_filters']));
$context['pretty']['json_filters'] = pretty_json($context['pretty']['json_filters']);
$context['pretty']['json_filters'] = str_replace('\/', '/', $context['pretty']['json_filters']);
}
// Any new notices?
if (isset($_SESSION['pretty']['notice']))
{
$context['pretty']['chrome']['notice'] = $_SESSION['pretty']['notice'];
unset($_SESSION['pretty']['notice']);
}
}
?>
Dans languages Xml
Ligne 72 changer:
<file name="$languagedir/Modifications.english.php" error="skip">
Par <file name="$languagedir/Modifications.french-utf8.php" error="skip">
Traduire et convertir en Utf-8:
<file name="$languagedir/Modifications.french-utf8.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
// Pretty URLs mod
$txt['pretty_admin_menu'] = 'Pretty URLs';
// Board URLs interface
$txt['pretty_add_url'] = 'Add';
$txt['pretty_add_url_description'] = 'Add a URL. Note that what you enter here will be processed as only certain characters are allowed.';
$txt['pretty_board_url_title'] = 'Pretty URLs for: ';
$txt['pretty_deleted_board'] = 'Deleted board #';
$txt['pretty_duplicate_link'] = 'delete it first.';
$txt['pretty_duplicate_warning'] = 'That URL is already in use by another board. It will be available if you ';
$txt['pretty_make_primary'] = 'Make primary';
$txt['pretty_modify_board_url'] = 'Pretty URL';
$txt['pretty_no_primary_warning'] = 'Warning, no primary URL!';
$txt['pretty_numerical'] = 'Sorry, but as that URL is either a number or the same as a forum action the board ID had to be added as a suffix.';
$txt['pretty_primary_url'] = 'Primary';
// Settings descriptions
$txt['pretty_action_array'] = 'An array of forum actions, extracted from index.php.';
$txt['pretty_board_lookup'] = 'A serialized array of <tt>URL => ID_BOARD</tt> pairs, used for processing <tt>$_GET[\'board\']</tt>. There can be more than one URL for each board.';
$txt['pretty_board_urls'] = 'A serialized array of <tt>ID_BOARD => URL</tt> pairs, used for generating pretty replacement URLs.';
$txt['pretty_enable_filters'] = 'Autorise l\'embellissement d\'URL. 0 pour non, 1 pour oui.';
$txt['pretty_filters'] = 'A serialized array of filter data.';
$txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the <tt>pretty_filters</tt> setting instead.';
$txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as <tt>$boardurl</tt>.';
]]></add>
</operation>
</file>
Quote from: eleven0 on November 08, 2008, 12:44:40 AM
I'm using latest beta version.
"Pretty URL" link doesn't show up in Admin Section because I'm using a different language. Can you tell me how I can fix that?
Copy all the language entries from Modifications.english.php to the corresponding file for your language.
Quote from: MacX on November 08, 2008, 07:29:27 AM
I have other problem now i want to comment and try to solve.
My users are telling me now that when they recibe the mail confirmation of an answer to their post, somethimes they cant enter by that OLD url. (without no mod rewrite.)
They tell me that they only can enter in the URL if they have other window with their sesion initialiced in the explorer they are using.
How can i solve this?
Can you put mod rewrite in the urls send by email in the confirmation mails?
Or you can solve it by other way?
Thank you dani.
The oldstyle index.php links don't work?
Quote from: Dannii on November 08, 2008, 08:11:05 AM
The oldstyle index.php links don't work?
Yeah, they work, but not the ones send by email if you havent got other forum url open or something like that.
Links in the old style that go to links like this:
http://www.mywebpage.com/foro/moderacion/prueba-correos/new/?PHPSESSID=490b3cb9522789acf67c01b6f812ccc6;topicseen
Insted of links like this:
http://www.mywebpage.com/foro/moderacion/prueba-correos/new/?topicseen;PHPSESSID=490b3cb9522789acf67c01b6f812ccc6
That shouldn't matter at all.
Quote from: Dannii on November 08, 2008, 08:52:51 AM
That shouldn't matter at all.
So... why can't i enter in the forum with the 1st url?
It appears a 405 (if i dont remember bad) error. The one of the internal server error.
With the 2nd link i told you it doesnt appear. With the 2nd link i can enter in my forum.
What's the real urls?
Have you asked your host for info about the 405?
Quote from: Dannii on November 08, 2008, 10:42:13 AM
What's the real urls?
What do you mean.
What is the url they seen in the mail?
I think they are the old ones. Nothing changes there.
Quote from: Dannii on November 08, 2008, 10:42:13 AM
Have you asked your host for info about the 405?
Sorry, it was the 500 error.
Server internal error. I configured the error page, but all is ok, only gives that error when something is bad.
Can you give me some real URLs rather than mywebpage.com??
Okay, well ask your host about the 500!
And you checked the Apache error log?
Quote from: Dannii on November 08, 2008, 10:52:07 PM
Can you give me some real URLs rather than mywebpage.com??
Ok.
Url given in the e-mail (the old ones):
http://www.my web page.com/foro/index.php?topic=3050.new;topicseen#new
Url where user is redirect when he clicks in that url:
http://www.mywebpage.com/foro/polvora/como-se-hace-polvora-negra/new/?PHPSESSID=0e2467fc80204045a4f0fffcc4239035;topicseen
Ok, this last URL sends a 500 message error in my server and you cant enter in the forum.
If i pus it like this, no error is send:
http://www.todopetardos.com/foro/polvora/como-se-hace-polvora-negra/new/?topicseen;PHPSESSID=0e2467fc80204045a4f0fffcc4239035
Quote from: Dannii on November 08, 2008, 10:52:07 PM
Okay, well ask your host about the 500!
What do you want me to ask them?
I have never have any problem with 500 error.
Quote from: Dannii on November 08, 2008, 10:52:07 PM
And you checked the Apache error log?
Did you mean this?
[09/Nov/2008:10:42:41 -0500] "GET /foro/electronica-en-pirotecnia/la-maldita-nana-de-acerito/msg9881/?PHPSESSID=2ef23e5de94ee16c8292e2e1301cf311;topicseen HTTP/1.0" 500 1277 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
PD: i put again not real url
This is now fixed. It appears you have to put the pretty urls mod in place beofre you put the tag mod in. All working well now. Ill leave my question here incase anyone else runs into the same issue.
Hi Eldacar,
I ran into a few problems oin smf 2b4. My tagging mod has stopped working. When I hit on the tag button in the main menu it directs to my homepage. And when I hit on a tag link that goes to homepage too.
At the tag support forum it has been suggested this may be linked to the pretty urls mod.
How likely is this ? and can you suggest a fix ?
Best fishes as always - Glenn
after I installed it, it converted all my urls to SEO friendly which works great. I added new pages since which aren't seo friendly. Where do I make changes to make sure the new urls get changed to SEO friendly ?
Thanks,
Dan.
MacX, well 500 errors generally indicate that something other than PHP is causing a problem. Your hosts might be able to tell you what it is.
QuoteDid you mean this?
[09/Nov/2008:10:42:41 -0500] "GET /foro/electronica-en-pirotecnia/la-maldita-nana-de-acerito/msg9881/?PHPSESSID=2ef23e5de94ee16c8292e2e1301cf311;topicseen HTTP/1.0" 500 1277 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
No, I think that's the access log.
Quote from: dannyd on November 09, 2008, 11:41:24 PMafter I installed it, it converted all my urls to SEO friendly which works great. I added new pages since which aren't seo friendly. Where do I make changes to make sure the new urls get changed to SEO friendly ?
Thanks,
Dan.
What kind of new pages? New actions? Try running maintenance.
Quote from: Dannii on November 10, 2008, 07:43:15 AM
MacX, well 500 errors generally indicate that something other than PHP is causing a problem. Your hosts might be able to tell you what it is.
Ok, i asked my hosting support.
They tell me that i am jumping the mod_segurity rule:
#PHP defenses
SecRule ARGS:PHPSESSID "!^[0-9a-z]*$"
They told me that is a segurity system that filters attacks and malicious request.
They said that it is assumed that a PHP session should contain ONLY those characters in brackets. By putting ;topics at the end is interpreting that the semicolon form part of the php session, and that is not correct.
So?
was tthere every a fix for this
smf_scripturl 404 errors
i use the sitemap mod not the index generator
thanks
Quote from: Dannii on September 13, 2008, 11:16:04 PM
Quote from: mark7144 on September 13, 2008, 08:51:50 AMThe way I did my redirect was correct but your mod seems to mess it up... I tried your way but it gave a Internal Server Error.
Maybe try using a RewriteRule with R=301?
Quote from: axlarry on September 13, 2008, 12:59:34 PMAfter reading this whole thread, I believe the biggest problem in PrettyUrls is 500 Internal Server Error.
My forum is getting this error even more frequently now. Members are also getting the same error. Sometimes I need to refresh a page to load correctly.
Can you please have a look on this please?
Well I've never experienced this myself, and noone's been able to give any helpful info, except possibly that the video embedding mod is the problem. Do you have it installed?
Quote from: Lavarinth on September 13, 2008, 05:30:07 PM
Quote from: Dannii on September 12, 2008, 04:44:13 AM
Quote from: Lavarinth on September 11, 2008, 04:48:54 PM
So I read your past, Dannii, and went ahead with the install, and in an attempt to "maintain" the site and forum I've been running a Site Index Generator on it, and was not sure whether the following issue was related to the mod or the forum theme:
Every thread page returns a 404 on the following two URLs:
www.site.com/forum/board/thread/smf_images_url
www.site.com/forum/board/thread/smf_scripturl
www.site.com/forum/board/thread/##/smf_images_url
www.site.com/forum/board/thread/##/smf_scripturl
www.site.com/forum/board/thread/msg###/smf_images_url
www.site.com/forum/board/thread/msg###/smf_scripturl
etc.
I checked the source of any thread page, and the following is set:
var smf_images_url = "http://www.campaigncreations.org/forum/Themes/CampaignCreations/images";
var smf_scripturl = "http://www.campaigncreations.org/forum/index.php";
Which, based on my site and theme, are proper to my knowledge.
I don't recall experiencing this issue before, when creating a site index through a generator. Any ideas? Thanks in advance!
What's a "site index generator"??
Haha, alright- A site index generator creates a sitemap.xml used by Google, Yahoo, etc. (You upload it on your FTP to be read.) It uses webcrawlers to go to each page and follow links within those pages as well so long as they remain on your domain, sometimes links even we don't see (it searches source code). So, for some reason, it's spotting links to the URLs I listed, but it's returning those links as 404 (those pages don't exist), typically caused by a missing page (ex: page123.html no longer there) or the folder has no pages and no index page (index.php/html/asp). However, the variables smf_images_url and smf_scripturl redirect to the pages specified, one being a folder (with no index, just images, likely fixable) another being the forum index. Chances are instead of using these variables, I believe instead it's creating a blank URL instead of actually redirecting, but I could (and most likely am) wrong.
It looks like the generator has been written badly... have you tried the sitemap mod?
Quote from: runebergen on September 13, 2008, 05:50:47 PM
I moved forum to a new server that is going live soon...
but the pretty url filters are all wrong now, and i cant even log in...
Is there a way to turn off pretty urls without logging in as admin, such as through mysql.. ?
You can, by setting pretty_enabled_filters to 0. Also, check that pretty_root_url is correct.
Quote from: MacX on November 10, 2008, 11:17:07 AM
Ok, i asked my hosting support.
They tell me that i am jumping the mod_segurity rule:
#PHP defenses
SecRule ARGS:PHPSESSID "!^[0-9a-z]*$"
They told me that is a segurity system that filters attacks and malicious request.
They said that it is assumed that a PHP session should contain ONLY those characters in brackets. By putting ;topics at the end is interpreting that the semicolon form part of the php session, and that is not correct.
So?
Is there a way you can change that rule to add the ;, or will they change it for you?
I'm sorry, but I'm going overseas in less than a week and don't have time to look into changing the email code.
Quote from: bjraines on November 10, 2008, 03:12:08 PMwas tthere every a fix for this
smf_scripturl 404 errors
i use the sitemap mod not the index generator
thanks
I'm sorry but I don't have the time to help with someone else's mod. You'll have to ask the mod's author to fix it.
Well did you manually edit .htaccess? Someone must have to remove the RewriteEngine On line.
I'm pleased to announce the formal release of Pretty URLs 0.9. Get it on the mod's page, or the Google Code site. I strongly recommend that everyone upgrade ASAP.
And with that, I'll be unable to support this mod until mid-January. Many of the SMF Team have volunteered to help provide support though, so big thanks go to them!
This mod does not support Serbian language. Here is modified Subs-PrettyUrls.php (from v0.9) that provides full support for Serbian Latin and Cyrillic alphabet. The only change is in $characterHash.
I hope this will be included in official release.
How to make htaccess redirection from SEO4SMF to pretty URLs?
Solved :D
Adding this line on htaccess...
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html$ /index.php?topic=$2.$3 [R=301,L]
Use the extras pacakge.
Quote from: Dannii on November 13, 2008, 12:15:12 AM
Use the extras pacakge.
I have edited htaccess manually.. :D
Now, how to upgrade to 0.9? do i have to uninstall previous version or just overwrite?
Uninstall first.
I have instaled Pretty URL when my forum was still in localhost, then, when i moved it to the host, the link where still localhost/forum.
How do i fix it and turn the urls to be show as www.mysite.org/forum ?
Thx!
See ya!
If I uninstall do I have to re submit my sitemap to google again or will it catch up automatically?
Quote from: August_Shade on November 14, 2008, 09:19:57 AM
I have instaled Pretty URL when my forum was still in localhost, then, when i moved it to the host, the link where still localhost/forum.
How do i fix it and turn the urls to be show as www.mysite.org/forum ?
Thx!
See ya!
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: Zepia1 on November 14, 2008, 11:07:38 PM
If I uninstall do I have to re submit my sitemap to google again or will it catch up automatically?
You should use the reverter package if you have on intentions on installing the mod again.
Quote
You should use the reverter package if you have on intentions on installing the mod again.
what's the point of using the reverter? I want to revert it back to a normal settings, no pretty urls, does this mean that after installing the mod using the reverter I have to re-submit my forum sitemap to google webmaster?
The reverter package will redirect the pretty URLs to the normal SMF URLs.
I don't know anythig about sitemaps and don't care about them. They're almost entirely useless. I'm sure resubmitting it won't hurt.
OK, other thing to add in the mod.
When i modify a post to change its title. The title in the URL doesnt change when it should update the daba base with that names...
Oh, and also, when you are watching a post and you are not logged in. When you join the forum you doesnt return to the post you was watching, it redirects you to the forum index.
Quote from: Dannii on November 15, 2008, 02:33:01 AM
The reverter package will redirect the pretty URLs to the normal SMF URLs.
I don't know anythig about sitemaps and don't care about them. They're almost entirely useless. I'm sure resubmitting it won't hurt.
Well I don't want to uninstall it but there's problems with some members, they log in, but once they click on a board the site kicks them out, but they go back to the forums and they are logged back in, its weird, nothing happens to admins though, only regular members, plus for some reason I can't log out it won't let me, lol
Any help?
Oh and what MacX said, if you change the name or move a topic to another location, it won't change it on the url.
Quote from: Pedja on November 12, 2008, 01:20:20 PM
This mod does not support Serbian language. Here is modified Subs-PrettyUrls.php (from v0.9) that provides full support for Serbian Latin and Cyrillic alphabet. The only change is in $characterHash.
I hope this will be included in official release.
Hmm doesn't work to me. My forum is mostly in Cyrillic but i'm not using UTF-8.
ex: 'Л' and 'л' is ignored somehow or i may need to edit whole Subs-PrettyUrls.php before install?!?
Ok, i am gonna try to solve my problem by myself.
Now i have a question.
I want to change the "BoardsAndTopics.xml" file to fix the mail problem.
How can i upload only that file to my forum? Or must i unistall the mod and install it again with the .tar.gz file with my new BoardsAndTopics file in?
I am gonna work on the display.php code, in this line:
$url = 'topic=' . $topic . '.' . (isset($_REQUEST['start']) ? $_REQUEST['start'] : '0') . (isset($_REQUEST['prev_next']) ? ';prev_next=' . $_REQUEST['prev_next'] : '') . (isset($_REQUEST['topicseen']) ? ';topicseen' : '') . (isset($_REQUEST['all']) ? ';all' : '') . (isset($_REQUEST['viewResults']) ? ';viewResults' : '');
;topicseen must be before phpsesion, only that.
URLs won't change, they're supposed to be permanent.
Zepia1, sounds like a cookies problem, and would probably happen without this mod.
MacX, that won't help. You need to edit the email files.
Quote from: Dannii on November 15, 2008, 10:45:14 PM
Zepia1, sounds like a cookies problem, and would probably happen without this mod.
Well I know it's not the cookies because whenever I turn pretty URL off everything works as normal.
Quote from: Dannii on November 15, 2008, 10:45:14 PM
MacX, that won't help. You need to edit the email files.
So where are that files?
The problem is not in the email send by the forum. The problem is in the bad redirection the mod does of that URLs.
So i think it must be in some files the mod changes, and it is only in that file where i can find something similar to what i see in the URL the mod redirects me when i click in a link in my e-mail.
Is in the mod, for sure. Where? I thought it was there, where i see the ";topicseen" word.
If its not there, tell me where i can solve it. I need to solve it fast. All my users have problems with it...
Ask someone else sorry, I'm going over seas in 12 hours!
The error is very simple to solve.
Insted of a ; to separete PHPSESION, it would work if you use a &:
Insted of something like this:
http://www.mywebpage.com/foro/polvora/como-se-hace-polvora-negra/new/?PHPSESSID=0e2467fc80204045a4f0fffcc4239035;topicseen
This:
http://www.mywebpage.com/foro/polvora/como-se-hace-polvora-negra/new/?PHPSESSID=0e2467fc80204045a4f0fffcc4239035&topicseen
Its only that.
Ok, can you tell me at least how to upload only one file?
Must i compress it into the .tar.gz file and upload all in the package directory?
Must i unnistal and install it again?
What must i do to update only one file???
I hope you can answer this small question :)
Thanks! Everything worked well.
To upload one file? Can't you just use FTP?
Quote from: Dannii on November 16, 2008, 06:37:34 AM
To upload one file? Can't you just use FTP?
Ok, i have changed a file in the mod. In one of the 2 .tar.gz files.
So its not to only to upload a file, but to upload a file in a .tar.gz file. And, as i dont know how forum works with that compress files, i wonder if i need to install again the mod or just uploading it, forum will detect the change in one file into the .tar.gz file.
I dont know if you understand me.
The mod files are in the server all toguether in the .tar.gz file so...
Both of the forums I have Pretty URLs installed on are throwing errors like crazy and the appear to be caused by Pretty URLs. Need help determining what the problem is.
I get a string of errors like this:
8: Undefined index: smftags_menu
File: /home/sitename/public_html/bb/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 645
8: Undefined index: smftags_menu
File: /home/sitename/public_html/bb/Themes/default/Packages.template.php (main_above sub template - eval?)
Line: 645
8: Undefined index: smftags_menu
File: /home/sitename/public_html/bb/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 645
There's nothing weird on line 645 of these files. Sometimes the file it states doesn't even contain a line 645. And I think it's weird that it's always line 645.
I'm getting errors on the other forum that are similar:
8: Undefined variable: reply_button
File: /home/sitename/public_html/bb/Themes/classic_red/Display.template.php (main sub template - eval?)
Line: 551
8: Undefined variable: modify_button
File: /home/sitename/public_html/bb/Themes/classic_red/Display.template.php (main sub template - eval?)
Line: 556
Can you help me troubleshoot these errors? Can you tell if the Pretty URLs mod is causing them?
Thanks for your help!
Ok
I have just solved my problem with mail notifications. (i think)
I only wanted to use a & insted of a ; in the URL redirected by this mod.
I go to subs.php file and i replaced this line: ( line 2687 in my file)
$char = strpos($setLocation, '?') === false ? '?' : ';';
for this other one:
$char = strpos($setLocation, '?') === false ? '?' : '&';
Now, it works fine.
Well, some URLS are with ? and & toguether. It works, but i dont know how to solve that little problem.
Something like this:
http://www.mywebpagecom/foro/f12/pueba-correos/new/?&topicseen#new
before "topicseen". You can see the ? and the & toguether (?&)
Someone can help me in this?
I hope this can help other people with same problems.
my problem is profile page url.
etc :
members name : ruh aleminin gece bekçisi
url
xxx/profile/ruh%20aleminin%20gece%20bek%C3%A7isi/
but i want to
xxx/profile/ruh-aleminin-gece-bekcisi/
im using : utf-8 / smf 2.0b4 / pretty url :0,9
Hi,
Can someone help me with this?
http://www.simplemachines.org/community/index.php?topic=274716.0
That's a conflict between Pretty URLs and Bookmarks :)
Thanks
I just installed this mod, the only one besides two smilies packages on a new install of 1.1.7 and now every single page of my forum, including the admin panel, is throwing 404 file not found errors. I used my back button to uninstall it, but I'm not sure it worked because the errors are still coming. The bright side? The URLs are pretty...just useless on a page that's not found. :(
I downloaded this package, then installed through the packages manager...what did I do wrong? Why didn't it work?
Hi Danii!
How (if is possible) i can modify pretty urls to work with smf in e107bridge?
The real forum's path is: http://darkwolf.altervista.org/smf107/forum/index.php
In bridged mode: http://darkwolf.altervista.org/smf107/plugins/smf/smf.php
-
Thanks in advance, DarkWolf :)
Quote from: Dannii on November 13, 2008, 12:15:12 AM
Use the extras pacakge.
what do you mean extras package?
many error after upgrade to 0.9
Apply Filter: Only show the error messages of this URL http://www.warnetforum.com/index.php?pretty;board=ngobrolin-apa-aja-disini-tempatnya;topic=my-diary-and-true-story-on-my-reaserch.0&PHPSESSID=e73fc0642613d398bc04c4f172da7365
Apply Filter: Only show the errors with the same message
8: Undefined index: b348
File: /............. Themes/default/Display.template.php (main_below sub template - eval?)
Line: 373
I have a problem with single quotes.
Any URL containing a single quote will not load and will just reopen the current forum being viewed.
I tried changing the strange chr() to a blank ('') but the URLs remain the same even if i edit them in the sql table.
Is it possible to make beter user urls? Like http://website.com/forum/username ?
Thanks
Quote from: JmZ on November 18, 2008, 12:15:22 PM
I have a problem with single quotes.
Any URL containing a single quote will not load and will just reopen the current forum being viewed.
I tried changing the strange chr() to a blank ('') but the URLs remain the same even if i edit them in the sql table.
Source/QueryString.php
$_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
replace with this
$_REQUEST['board'] = str_replace(array('\'', '\\'), array("\x12", ''), $_REQUEST['board']);
Quote from: McCaine on November 18, 2008, 04:55:58 PM
Is it possible to make beter user urls? Like http://website.com/forum/username ?
Thanks
i don't think so..
Try to edit some files..
install.php
'rule' => 'RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]',
replace with
'rule' => 'RewriteRule ^([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]',
Sources/PrettyUrls-Filters.php
$urls[$url_id]['replacement'] = $boardurl . '/profile/' . $url['match1'] . 'user=' . $memberNames[$url['profile_id']] . $url['match3'];
else
$urls[$url_id]['replacement'] = $boardurl . '/profile/' . $memberNames[$url['profile_id']] . '/' . $url['match1'] . $url['match3'];
Replace with
$urls[$url_id]['replacement'] = $boardurl . '/' . $url['match1'] . 'user=' . $memberNames[$url['profile_id']] . $url['match3'];
else
$urls[$url_id]['replacement'] = $boardurl . '/' . $memberNames[$url['profile_id']] . '/' . $url['match1'] . $url['match3'];
You need to edit this before you install the mods,
otherwise you will need to edit htaccess too
RewriteRule ^([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
replace with
RewriteRule ^([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
try it yourself, i have no time to do :D
I'm sorry, that was not work,
need a distinguishing in the url to tell that is profile page...
so the url would be something like domain.com/username.htm
:D
Does the latest Pretty URL run with
SMF 2.0 Beta 4 and PortaMx v0.951 ?
Many thanks.
OMG!!
I was TIRED of smf_pretty_urls_cache table with those 300 mb (or more) and so, in the top of my "newbieness", I dropped the table. The result? I KILLED MY FORUM!!
http://www.tigrelog.com.br
I tried to recreate the smf_pretty_urls_cache manually re-uploading the file install.php of Pretty URL mod to server, it recorded some things on the DB, but now I got error 500 on my server.
Anyone can help me???
More incredible, it's that something is wrong in the DB now. I'm trying to use repair_settings.php, but I can't.
OMG!!!
Ok, I will stop spamming here, but now I managed to get my forum back online.
The install.php rewrited my .htaccess, that was the problem.
Quote from: dkillers on November 18, 2008, 04:58:16 AM
Quote from: Dannii on November 13, 2008, 12:15:12 AM
Use the extras pacakge.
what do you mean extras package?
http://code.google.com/p/prettyurls/downloads/list extras packages in there.
Quote from: hartiberlin on November 20, 2008, 11:54:10 AM
Does the latest Pretty URL run with
SMF 2.0 Beta 4 and PortaMx v0.951 ?
Many thanks.
in smf 2b4 working great. but i dont know pragmamx.
Quote from: hartiberlin on November 20, 2008, 11:54:10 AM
Does the latest Pretty URL run with
SMF 2.0 Beta 4 and PortaMx v0.951 ?
Many thanks.
I have test in local with easyphp.
All seems to work fine
-
Edit!
Now is online :)
http://darkwolf.altervista.org/smf2/index.php
-
I have installed custom action to integrate a guestbook.
How i can insert ?action=guestbook to standard filter?
(i can insert manually but after any maintenance my htaccess will be overwrite)
Hi Danii,
Since upgrade to 2b4 I am now noticing a lot of google listing coming through with session ids on the end.
Is this meant to be ? It appears to have changed since 1.1.6 smf
I have installed last version, but urls are the same, it does not work for me.
I cannot find any settings in administration to change urls also.
mod_rewrite works perfect because i have created a blog and i have changed permalinks.
Can anyone help me??? I am using 2.0 beta 4.
forum: http://salsamadrid.org
blog: http://blog.salsamadrid.org
It is in spanish
Thanks in advance
Alrighty - installed the mod through Admin and added the code to the Modifications(english and english-utf8). I'm seeing absolutely no change in the urls of posts, topics, anything at all that i can tell. I'm using 1.1.7
Please help - I would love to have this mod working. Is it helpful with SEO or google/search engine indexing and all that?
Oh and I'm getting this error in my log:
Undefined index: pretty_enable_filters
File: /home/thegl12/public_html/community/Sources/QueryString.php
Line: 517
Hmmm... well I must officially be an idiot because it all works now that I went into the Admin/pretty url panel and ENABLED it! lol - I guess I just missed that part somewhere in the 139 pages of this mod discussion! Thanks for the mod - muy bueno!
Well, i think that my problem is that i have the admin into spanish... i will change it to english to check.
Solved. The only thing i need is to remove index.php when i click in the home button. Is it possible? Where is the index.php do i have to remove, in the theme?
Don't think you need to remove index.php... if that's the only "non-pretty" url you have, it's great!
I also had problem with Pretty URL in SMF 1.1.7
I loved it.. because it's also good in seo a bit.. but.. now
it screw up my forum!..
so just uninstalled it..
and wait for upcaming SMF2.0 launch and new Pretty URL V1.0 perhaps.
Just tired doing this and that etc.. nothing working. :(
or.... Wish SMF 2.0 have this option build in. As good as Woordpress permalink.
i have problem with post containing doublequote ( " ) title,
the pretty urls convert it to single quote ( ' ) in the url...
then...............
the post is not accessible :(
Pretty URLs does not suppot Blog Community mods.
http://custom.simplemachines.org/mods/index.php?mod=1209
When Rewrite Board URLs is activated...
I can not post new post in blog....
Ummm, I installed it, and went to the link pressed (put in the stuff I wanted) And now my forum is ruined!
When you go to the site, it is fine but when you click on a board or anything it says Error 404?
Help!
Web link: www.dragonitegames.com/forum
Did I do somthing wrong with this Mod?
You talking to me?
I can't run it everything I click on that comes up.. :'(
Hmmm - I am having possible issues with this mod as well. When a user is NOT logged in (Guest), I get a url like this: http://www.website.com/community/rants-raves/article-submissions/?PHPSESSID=9bf29b427eaa872f01cc30ac6cd939dc... is that normal? When someone is logged in, it seems to be fine though. I am concerned that the search engine "crawlers" will not be able to pick up these posts because they're all guests obviously when they are on the forum.
Is there anyone that can help answer these questions?
Yes
nice work
when have time plaese Update portuguese
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
// Pretty URLs mod
$txt['pretty_admin_menu'] = 'Bonito URLs';
// Board URLs interface
$txt['pretty_add_url'] = 'Adicionar';
$txt['pretty_add_url_description'] = 'Adicionar um URL. Note que o que você entrar aqui só será processada como certos caracteres são permitidos.';
$txt['pretty_board_url_title'] = 'Bonito URLs para: ';
$txt['pretty_deleted_board'] = 'Apagar Quadro #';
$txt['pretty_duplicate_link'] = 'Apagar Primeiro.';
$txt['pretty_duplicate_warning'] = 'URL que já está em uso por outro quadro. Ele estará disponível se você ';
$txt['pretty_make_primary'] = 'Faça primário';
$txt['pretty_modify_board_url'] = 'Bonito URL';
$txt['pretty_no_primary_warning'] = 'Atenção, não URL principal!';
$txt['pretty_numerical'] = 'Desculpa, mas como é que a URL seja um número ou o mesmo que uma acção do quadro de Identificação do fórum teve que ser adicionado como um sufixo.';
$txt['pretty_primary_url'] = 'primário';
// Settings descriptions
$txt['pretty_action_array'] = 'Qualquer ações do fórum, extraídas do index.php.';
$txt['pretty_board_lookup'] = 'A serializada array de <tt>URL => ID_BOARD</tt> pares, usados para a transformação <tt>$_GET[\'board\']</tt>. Pode haver mais de uma URL para cada Quadro.';
$txt['pretty_board_urls'] = 'A serializada array de <tt>ID_BOARD => URL</tt> pares, usados para gerar bonita substituição URLs.';
$txt['pretty_enable_filters'] = 'Define se embelezar para alguma coisa. 0 para nenhum, 1 para sim.';
$txt['pretty_filters'] = 'A serializada array de filtro de dados.';
$txt['pretty_filter_callbacks'] = 'A serialized array chamada de função nomes, ordenados por prioridade. Não edite manualmente isso, edite o <tt>pretty_filters</tt> fixação em vez.';
$txt['pretty_root_url'] = 'O URL base e usado pelo conselho de administração e dos filtros apara tópico, que por padrão é o mesmo <tt>$boardurl</tt>.';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
// Pretty URLs mod
$txt['pretty_admin_menu'] = 'Bonito URLs';
// Board URLs interface
$txt['pretty_add_url'] = 'Adicionar';
$txt['pretty_add_url_description'] = 'Adicionar um URL. Note que o que você entrar aqui só será processada como certos caracteres são permitidos.';
$txt['pretty_board_url_title'] = 'Bonito URLs para: ';
$txt['pretty_deleted_board'] = 'Apagar Quadro #';
$txt['pretty_duplicate_link'] = 'Apagar Primeiro.';
$txt['pretty_duplicate_warning'] = 'URL que já está em uso por outro quadro. Ele estará disponível se você ';
$txt['pretty_make_primary'] = 'Faça primário';
$txt['pretty_modify_board_url'] = 'Bonito URL';
$txt['pretty_no_primary_warning'] = 'Atenção, não URL principal!';
$txt['pretty_numerical'] = 'Desculpa, mas como é que a URL seja um número ou o mesmo que uma acção do quadro de Identificação do fórum teve que ser adicionado como um sufixo.';
$txt['pretty_primary_url'] = 'primário';
// Settings descriptions
$txt['pretty_action_array'] = 'Qualquer ações do fórum, extraídas do index.php.';
$txt['pretty_board_lookup'] = 'A serializada array de <tt>URL => ID_BOARD</tt> pares, usados para a transformação <tt>$_GET[\'board\']</tt>. Pode haver mais de uma URL para cada Quadro.';
$txt['pretty_board_urls'] = 'A serializada array de <tt>ID_BOARD => URL</tt> pares, usados para gerar bonita substituição URLs.';
$txt['pretty_enable_filters'] = 'Define se embelezar para alguma coisa. 0 para nenhum, 1 para sim.';
$txt['pretty_filters'] = 'A serializada array de filtro de dados.';
$txt['pretty_filter_callbacks'] = 'A serialized array chamada de função nomes, ordenados por prioridade. Não edite manualmente isso, edite o <tt>pretty_filters</tt> fixação em vez.';
$txt['pretty_root_url'] = 'O URL base e usado pelo conselho de administração e dos filtros apara tópico, que por padrão é o mesmo <tt>$boardurl</tt>.';
]]></add>
</operation>
</file>
I have manually installed this mod but now i get BLANK PAGE? What can i do? :(
(i don't know what to do with this code in manully instructions for 1.1.7
Code
SMF1-1/install.php
This file should be able to execute standalone. ??? What do i have to do with this??)
Put the file in your main forum directory and run it.
Quote from: SlammedDime on December 02, 2008, 10:33:01 AM
Put the file in your main forum directory and run it.
I've done that but it didn't work. Anyway, now that you helped me solving the ftp bug (thank you again) i've tried to automaticaly install this mod but i get this error.
QuoteInstalling this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/ManageErrors.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/News.php Test successful
7. Execute Modification ./Sources/QueryString.php Test successful
8. Execute Modification ./Sources/Security.php Test failed
9. Execute Modification ./Sources/Subs.php Test failed
10. Execute Modification ./Sources/Display.php Test successful
11. Execute Modification ./Sources/ManageBoards.php Test successful
12. Execute Modification ./Sources/MessageIndex.php Test successful
13. Execute Modification ./Sources/QueryString.php Test successful
14. Execute Modification ./Sources/Subs-Boards.php Test successful
15. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
16. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
17. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
18. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
19. Extract File ./Sources/PrettyUrls.php
20. Extract File ./Sources/PrettyUrls-Filters.php
21. Extract File ./Sources/Subs-PrettyUrls.php
22. Extract File ./Themes/default/PrettyUrls.template.php
23. Extract Tree ./Themes/default/pretty
24. Extract File ./Themes/default/languages/PrettyUrls.english.php
25. Extract File ./Themes/default/languages/PrettyUrls.french.php
26. Execute Code SMF1-1/install.php
I have a problem when users have # in their username and someone want to see his profile. It display message that user doesnt exist... Is there a solution for this or I have to turn off pretty for profilies?
Hey, I installed this on my forum and now nothing shows up.
www.l4dfans.com/forum
No errors, just nothing! I manually installed this (is there another way? It's not very clear! Anyone experienced this before?
Quote from: smittt on December 02, 2008, 10:56:47 AM
Quote from: SlammedDime on December 02, 2008, 10:33:01 AM
Put the file in your main forum directory and run it.
I've done that but it didn't work. Anyway, now that you helped me solving the ftp bug (thank you again) i've tried to automaticaly install this mod but i get this error.
QuoteInstalling this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/ManageErrors.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/News.php Test successful
7. Execute Modification ./Sources/QueryString.php Test successful
8. Execute Modification ./Sources/Security.php Test failed
9. Execute Modification ./Sources/Subs.php Test failed
10. Execute Modification ./Sources/Display.php Test successful
11. Execute Modification ./Sources/ManageBoards.php Test successful
12. Execute Modification ./Sources/MessageIndex.php Test successful
13. Execute Modification ./Sources/QueryString.php Test successful
14. Execute Modification ./Sources/Subs-Boards.php Test successful
15. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
16. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
17. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
18. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
19. Extract File ./Sources/PrettyUrls.php
20. Extract File ./Sources/PrettyUrls-Filters.php
21. Extract File ./Sources/Subs-PrettyUrls.php
22. Extract File ./Themes/default/PrettyUrls.template.php
23. Extract Tree ./Themes/default/pretty
24. Extract File ./Themes/default/languages/PrettyUrls.english.php
25. Extract File ./Themes/default/languages/PrettyUrls.french.php
26. Execute Code SMF1-1/install.php
If i try to install old version of mod (0_8_1) i get one error
QuoteInstalling this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/ManageErrors.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/News.php Test successful
7. Execute Modification ./Sources/QueryString.php Test successful
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 successful
12. Execute Modification ./Sources/Subs-Boards.php Test successful
13. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
14. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
15. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
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. Extract File ./Themes/default/languages/PrettyUrls.french.php
23. Execute Code SMF1-1/install.php
What can i do? (sms version is 1.1.7 i've just upgradet it from 1.1.4)
Oh from reading a few more posts here it seems like I have the same problem as smittt.
Although, when I got to l4dfans.com/forum/install.php it doesn't do anything
Hm... forum/index.php?action=profile;u=131 isnt redirecting to /forum/profile/username .
Is there any chance that this is 301 redirected?
Quote from: smittt on December 02, 2008, 02:11:58 PM
Quote from: smittt on December 02, 2008, 10:56:47 AM
Quote from: SlammedDime on December 02, 2008, 10:33:01 AM
Put the file in your main forum directory and run it.
I've done that but it didn't work. Anyway, now that you helped me solving the ftp bug (thank you again) i've tried to automaticaly install this mod but i get this error.
QuoteInstalling this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/ManageErrors.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/News.php Test successful
7. Execute Modification ./Sources/QueryString.php Test successful
8. Execute Modification ./Sources/Security.php Test failed
9. Execute Modification ./Sources/Subs.php Test failed
10. Execute Modification ./Sources/Display.php Test successful
11. Execute Modification ./Sources/ManageBoards.php Test successful
12. Execute Modification ./Sources/MessageIndex.php Test successful
13. Execute Modification ./Sources/QueryString.php Test successful
14. Execute Modification ./Sources/Subs-Boards.php Test successful
15. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
16. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
17. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
18. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
19. Extract File ./Sources/PrettyUrls.php
20. Extract File ./Sources/PrettyUrls-Filters.php
21. Extract File ./Sources/Subs-PrettyUrls.php
22. Extract File ./Themes/default/PrettyUrls.template.php
23. Extract Tree ./Themes/default/pretty
24. Extract File ./Themes/default/languages/PrettyUrls.english.php
25. Extract File ./Themes/default/languages/PrettyUrls.french.php
26. Execute Code SMF1-1/install.php
If i try to install old version of mod (0_8_1) i get one error
QuoteInstalling this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/ManageErrors.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/News.php Test successful
7. Execute Modification ./Sources/QueryString.php Test successful
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 successful
12. Execute Modification ./Sources/Subs-Boards.php Test successful
13. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
14. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
15. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
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. Extract File ./Themes/default/languages/PrettyUrls.french.php
23. Execute Code SMF1-1/install.php
What can i do? (sms version is 1.1.7 i've just upgradet it from 1.1.4)
if you got any error during package installation..
it's mean that your files have been modified by another mods...
so the installer can not fine any matches line to modify
you have to manually edit that files, check manual installation of the package...
I stil waiting an update to fix some problems...
Also to change the URL caché when i modifiy a title in a user post...
I still can't use the mod - it doesn't work with the converting Cyrillic to Latin strings.
Dannii if you can't understand Cyrillic i can help you with some tests - i have a mirror test forum.
Hello,
I've done a research to find how to fix my error but I've not found.
When I try to access index.php?action=admin;area=pretty
I've a Fatal Error :
Fatal error: (null)() [function.require]: Failed opening required '/home/mywebsite/forum/Sources/PrettyUrls.english.php' (include_path='.:/usr/local/lib/php') in /home/mywebsite/forum/Sources/Load.php(1726) : eval()'d code on line 4
I don't understand because I've just install it and I can't touch parameters.
Thanks for your Help !
P.S. : Sorry for my bad english (I'm French people)
First of all, great mod! Thanks a lot! Works brilliant :)
But i have one question.... is het possible that i change this url:
http://www.mydomain.com/games/arcade/?sa=play;game=409
to
http://www.mydomain.com/games/arcade/game-name-here
If so, how can i do that using Pretty Urls, or can i adjust it easily in the .htaccess?
I hope someone can answer my question, it will help me a lot!
Thanks in advance.
I am getting a blank page for some forum sections. Error log has the following errors:
Database Error: Duplicate entry 'topic-title' for key 2
File: /var/www/html/#####/forumas/Sources/PrettyUrls-Filters.php
Line: 274
Please help :)
Edit: upon further inspection, this seems to have been caused by a single quote in the topic title - like this one '. Yep, a single quote kills the forum >:(
Hi,
I've installed Pretty URLs 0.9 on my production site (SMF 1.1.7), and it works well.
Now, i need a local installation of SMF, but when i import datas, all the forum url leads to the online site. :(
I used 'repair-settings.php' and other stuffs to change paths, but it doesn't work. It's like if the (pretty) urls are hard-coded.
So, how can i disable the Pretty URLs mod or change all paths on my local installation ?
Note : I cannot go to my admin panel and deactivate the mod because the login form leads to the production site.
I've just discovered that the 'smf_pretty_urls_cache' is really large on my database in comparison to the other tables...
1) Is this normal?
2) Can I delete the table without consequences?
3) Can can I keep it under control?
1 - yes
2 - no, deleting the table will probably cause your site to crash
3 - you can truncate it if you like, but it will cause more queries on your forum as the cache builds back up. The purpose of the cache is to reduce database queries, and as long as the table is indexed properly and the queries to call on the cache table are built right, it doesn't matter how large it is, it should still be efficient.
I've deleted it before. The forum didn't crash, however deleting the cache is pointless since it will just have to be repopulated again. Besides, the load on your server will be higher until all the forum URLs are cached once more.
It's true that it gets huge though ::) I usually leave it out when making DB backups or moving the forum.
SMF 2 beta 4
This mod does rewrites to the htaccess file, apparently, and caused another installation in a subdomain to show 404 errors and not load. The fix, for me, was to uninstall the mod, which didn't do anything until I deleted everything associated with prettyurls from the htacces. NOW, when I load my main site, it takes me to the forum instead of the home page created by PortaMX. Whats the fix for this?
**EDIT: Nevermind. Re-Edit htaccess with DirectoryIndex index.php
Thank you.
Quote from: SlammedDime on December 14, 2008, 04:15:39 PM
1 - yes
2 - no, deleting the table will probably cause your site to crash
3 - you can truncate it if you like, but it will cause more queries on your forum as the cache builds back up. The purpose of the cache is to reduce database queries, and as long as the table is indexed properly and the queries to call on the cache table are built right, it doesn't matter how large it is, it should still be efficient.
Thanks :)
I installed pretty URL's and I had to manually make changes to manageboards.php because it failed on installation...it is the only that failed.
I enabled it and it appeared to work, but now I can't go anywhere but the initial page, which is index.php. It keeps giving me error 404 page not found. Does this have to do with the htaccess? If so, where do I find it, and how do I fix it? Thanks in advance for your help.
Found my .htaccess it is in my /BDG folder which is where the entire forum resides. Should it be somewhere else? Also, I am posting the code for it.
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: December 16, 2008, 19:26
RewriteEngine on
# Rules for: tp-articles
RewriteRule ^page/([^/]+)/?$ ./index.php?pretty;page=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|buddies|calendar)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(cleanperms|collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dlattach|dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|form)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(help|gallery|helpadmin|im|invite|jsoption|jsmodify|treasury)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(links|treasury|lock|lockVoting|login|login2|logout|maintain)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|googlemap|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(treasuryadmin|treasuryadmin|post2|postsettings|printpage|profile|profile2|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|regcenter|register|register2|reminder|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removeoldtopics2|removepoll|repairboards|reporttm|reports|requestmembers|search|search2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(sendtopic|serversettings|serversettings2|smileys|smstats|spellcheck|splittopics|stats)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(sticky|theme|trackip|admod|about:mozilla|about:unknown|unread|unreadreplies)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewErrorLog|viewmembers|viewprofile|verificationcode|vote|viewquery|who|\.kml)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(\.xml|tpadmin|forum|tpmod)/?$ ./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]
The .htaccess for this mod should be in the root of your forum. SO if your forum is in /BDG (which is what you're saying), then yes the .htaccess should be there.
this is where it is at, any ideas why I would be getting the error 404 page not found? When I turn on Pretty URL, it changes my urls the way it is suppose to but will not show the page.
Anyone have any ideas????
Hi Danii,
Could you spare a few moments to help me out please.
How do I redirect
/forum/north-east-coast-fishing/0/
to
/forum/north-east-coast-fishing/
I have tried adding standard 301 redirect code to the htaccess but it does not work.
Sorry to bring this up again but I'm shocked at the size of my cache table and I want to be certain it is normal. Can someone explain why it is not much smaller than my messages table? That doesn't make any sense to me.
smf_messages 195.83 MB
smf_pretty_urls_cache 101.23 MB
If the above really is normal, then I strongly recommend that the author considers a way to prevent the cache getting so big. Maybe have it so it only caches URLs from the last X days.
I just installed the mod, installation went smoothly. I have no idea how to make a robots.txt. Can anyone help me out (someone who is using pretty urls on their forum and have a seo robots.txt)? Thanks.
Well that was interesting. I guess I should have read instructions before jumping headlong into this. I installed it, turned it on, and then nothing worked. I couldn't get to my forum, my urls were "pretty" but they would redirect to a "not found" page. I couldn't even go in as admin to uninstall the mod cause it would try to re-direct to the pretty url.
Maybe the pretty url mod shouldn't change the Admin links? In case of issues it would be good to have the links for the admin pages stay the same without the pretty formatting. After all, only admins see these links.
I had to manually go in and overwrite a bunch of PHP files from before I installed the pretty mod to get my forum back up and working. What a pain.
Whats happened to Danni ? I notice he hasnt posted in a good while. Hope he is ok ??
Quote from: sgilleland on December 16, 2008, 11:13:00 PM
this is where it is at, any ideas why I would be getting the error 404 page not found? When I turn on Pretty URL, it changes my urls the way it is suppose to but will not show the page.
Anyone have any ideas????
Does your host allow mod_rewrite? Ask them if you don't know. Until then, you may want to try read this guide as well which could solve this problem: http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: superman1232 on December 18, 2008, 06:03:17 AM
I just installed the mod, installation went smoothly. I have no idea how to make a robots.txt. Can anyone help me out (someone who is using pretty urls on their forum and have a seo robots.txt)? Thanks.
robots.txt doesn't really have anything to do with the mod. To learn about robots.txt go here (http://www.robotstxt.org/).
Quote from: Zeebra on December 18, 2008, 11:12:11 AM
Well that was interesting. I guess I should have read instructions before jumping headlong into this. I installed it, turned it on, and then nothing worked. I couldn't get to my forum, my urls were "pretty" but they would redirect to a "not found" page. I couldn't even go in as admin to uninstall the mod cause it would try to re-direct to the pretty url.
Maybe the pretty url mod shouldn't change the Admin links? In case of issues it would be good to have the links for the admin pages stay the same without the pretty formatting. After all, only admins see these links.
I had to manually go in and overwrite a bunch of PHP files from before I installed the pretty mod to get my forum back up and working. What a pain.
You could've also read this guide before doing it the hard way: http://code.google.com/p/prettyurls/wiki/TroubleShooting ;)
Quote from: glennk on December 18, 2008, 07:39:19 PM
Whats happened to Danni ? I notice he hasnt posted in a good while. Hope he is ok ??
Not sure, he hasn't been on since November something.
my host 1and1.com supports mod rewrite....so they say, but I have the same problem with error 404....I posted my .htaccess contents a few posts back. The .htaccess file is in my /bdg folder where my index.php is and the entire forum, but still not working. I am sure it is something simple, but can't figure it out. I did get the forum back online with the old urls, but would really like to utilize pretty urls.
Any suggestions would be greatly appreciated
Newby here so please excuse my ignorance. I just installed SMF and am looking forward to using your mod--in fact, it's the main reason I selected SMF. I installed your mod and assumed it was installed correctly, but I don't see anyplace to turn it on or anything. This is what I got when I ran the install...
Installing Pretty URLs - Base 0.9
Database changes
Database modifications
Creating the pretty_topic_urls table
Creating the pretty_urls_cache table
Adding the default filters
Adding some settings
Running maintenance tasks
Updating the array of actions
Fixing any old boards and topics with broken quotes
Updating board URLs
Update the filters
-----------
That was it and I assumed that was all that was needed as no error message. Is it installed correctly? What do I do next as I don't see anything under the Package Manager.
Disabling pretty urls for certain folders? I have other parts of my site that I would not like to be re-written because of pretty urls, it's directing my folders to part of my site instead of the index.php of that folder. I have to access index.php directly in order for me to access part of my site.
For example:
http://xenaverse.net <-SMF
http://xenaverse.net/scrolls <-site that I don't want redirected, I want the script to read the folder's index.php
How would I go about disabling pretty urls for certain folders? I'm guessing through .htaccess. Here is my file:
Options +ExecCGI
AddHandler fastcgi-script fcg fcgi fpl
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php.fcgi
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: December 12, 2008, 21:03
RewriteEngine on
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|contact|deletemsg|detailedversion|display)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dlattach|dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(globalhf|helpadmin|im|jsoption|jsmodify|links|lock|lockVoting)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(login|login2|logout|maintain|manageattachments|manageboards|managecalendar|managesearch)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(markasread|membergroups|mergetopics|mgallery|mlist|modifycat|modifykarma|modlog)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(movetopic|movetopic2|news|notify|notifyboard|optimizetables|packageget|packages)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(permissions|pgdownload|pm|post|post2|postsettings|printpage|profile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(profile2|quotefast|quickmod|quickmod2|recent|regcenter|register|register2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(related|reminder|removetopic2|removeoldtopics2|removepoll|repairboards|reporttm|reports)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(requestmembers|search|search2|sendtopic|serversettings|serversettings2|smileys|smstats)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(spellcheck|splittopics|stats|sticky|welcome|theme|trackip|about:mozilla)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile|verificationcode|vote)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewquery|useremail|who|\.xml|tpadmin|forum|tpmod)/?$ ./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]
this is something weird, but it doesnt get things in perfect directory...
My site is http://goldysun.com/forum/tech-news/
While it goes to http://goldysun.com/tech-news/ after installation is done.
Is anyone able to answer this question please
How do I redirect
/forum/north-east-coast-fishing/0/
to
/forum/north-east-coast-fishing/
I have tried adding standard 301 redirect code to the htaccess but it does not work and creates another url entirely.
Also is it possible to trun off pretty urls or will that cause me a lot of problems ?
Hi,
just installed an adapted version of SMF Sitemap to be compliant with SMF 2.0 beta 4
But with Pretty URL 0.9 it seems that this rewriting : RewriteRule ^sitemap.xml$ /index.php?action=sitemap;xml
doesn't want to work, what can I do with the htaccess of pretty URL
Thank you everyone
i have a question about this mod. what if in the future i decide tp upgrade the SMF to a newer version or reinstall the SMF completely, Does all my current links get broken? i link a lot from my blog to my forum so i don't want the links to be broken if i decide to do anything with the forum :)
thx
Why i can't install pretty urls, always return dead link and my forum become inaccessible.....
I see people noticed that cache table becames really huge.
I found out that pretty urls caches every url, even those that are not part of the forum - external URL's.
Also, it cachess full url including forum base domain. That is 100% not neccessary, and also can create trouble if forum is accessible using more than one domain (which is not uncommon).
So, i would suggest to cache just URL's that need caching, and to cutout base url of a forum from cache.
Quote from: Pedja on December 28, 2008, 05:53:32 PM
I see people noticed that cache table becames really huge.
I found out that pretty urls caches every url, even those that are not part of the forum - external URL's.
Also, it cachess full url including forum base domain. That is 100% not neccessary, and also can create trouble if forum is accessible using more than one domain (which is not uncommon).
So, i would suggest to cache just URL's that need caching, and to cutout base url of a forum from cache.
+1 Some kind of optimisation must be done.
I've got a problem with Pretty URLs, I changed my hosting, reload the db backup, everything is fine, except when I try to install again the Pretty URLs mod, it gives me the urls of the previous hosting, how can I fix it?
Hi Guys, if you're wondering what happened to Dannii, I believe I know. ;)
If you look in his profile, you'll see he last logged in on November 16th. In his signature is a link to his blog where I found he wrote that he would be in Japan for 54 days which was written on November 17th, the day after he was last on SMF.
So I believe, he will return on SMF around January 10th.
http://curiousdannii.blogspot.com/2008/11/and-were-off.html
Thats good news. I was concerned something had happened to him as he is always around to help and give advice. I felt it strange he just dissapeared.
I uploaded the "Pretty URLS" mod and now I am just getting an error when I go to the site.
Can someone give me a step by step way to fix this?
I am a newbie at working with codes.
I looked at my FTP to see if I could find the mod
to uninstall it but could not find it.
Can someone give me a step by step way to fix this?
http://www.guitaradvertisingforum.com
Thanks, Jordy
I'm back! Thanks to those who helped out in my absence.
If you want help please post again, I won't go through the old posts.
Quote from: sgilleland on December 16, 2008, 08:27:11 PM
Found my .htaccess it is in my /BDG folder which is where the entire forum resides. Should it be somewhere else? Also, I am posting the code for it.
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: December 16, 2008, 19:26
RewriteEngine on
# Rules for: tp-articles
RewriteRule ^page/([^/]+)/?$ ./index.php?pretty;page=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|buddies|calendar)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(cleanperms|collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dlattach|dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|form)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(help|gallery|helpadmin|im|invite|jsoption|jsmodify|treasury)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(links|treasury|lock|lockVoting|login|login2|logout|maintain)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|googlemap|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(treasuryadmin|treasuryadmin|post2|postsettings|printpage|profile|profile2|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|regcenter|register|register2|reminder|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removeoldtopics2|removepoll|repairboards|reporttm|reports|requestmembers|search|search2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(sendtopic|serversettings|serversettings2|smileys|smstats|spellcheck|splittopics|stats)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(sticky|theme|trackip|admod|about:mozilla|about:unknown|unread|unreadreplies)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewErrorLog|viewmembers|viewprofile|verificationcode|vote|viewquery|who|\.kml)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(\.xml|tpadmin|forum|tpmod)/?$ ./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]
my host 1and1.com supports mod rewrite....so they say, but I have the same problem with error 404....I posted my .htaccess contents a post back. The .htaccess file is in my /bdg folder where my index.php is and the entire forum, but still not working. I am sure it is something simple, but can't figure it out. I did get the forum back online with the old urls, but would really like to utilize pretty urls.
Any suggestions would be greatly appreciated
Did you try adding a RewriteBase / line?
If that doesn't work, can you give me some full URLs?
Not sure what you mean by Rewrite....
Here is a url http://www.dreamconnectionz.com/index.php?topic=37.0
Thanks a bunch!!
Try adding this to the top of .htaccess:
RewriteBase /
wow, will it really be that simple?
Thanks!
oww. Danni is back =)
Quote from: Özgür | ЯocKayseri on November 16, 2008, 12:13:02 PM
my problem is profile page url.
etc :
members name : ruh aleminin gece bekçisi
url
xxx/profile/ruh%20aleminin%20gece%20bek%C3%A7isi/
but i want to
xxx/profile/ruh-aleminin-gece-bekcisi/
im using : utf-8 / smf 2.0b4 / pretty url :0,9
I entered the rewrite in my htaccess now I get this error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
[email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Here is what my .htaccess looks like now# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: December 16, 2008, 19:26
RewriteBase /
RewriteEngine on
# Rules for: tp-articles
RewriteRule ^page/([^/]+)/?$ ./index.php?pretty;page=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|buddies|calendar)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(cleanperms|collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dlattach|dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|form)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(help|gallery|helpadmin|im|invite|jsoption|jsmodify|treasury)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(links|treasury|lock|lockVoting|login|login2|logout|maintain)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|googlemap|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(treasuryadmin|treasuryadmin|post2|postsettings|printpage|profile|profile2|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|regcenter|register|register2|reminder|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removeoldtopics2|removepoll|repairboards|reporttm|reports|requestmembers|search|search2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(sendtopic|serversettings|serversettings2|smileys|smstats|spellcheck|splittopics|stats)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(sticky|theme|trackip|admod|about:mozilla|about:unknown|unread|unreadreplies)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewErrorLog|viewmembers|viewprofile|verificationcode|vote|viewquery|who|\.kml)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(\.xml|tpadmin|forum|tpmod)/?$ ./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]
sgilleland: Well no, appears its not that simple! Can you show me what the links look like when it's enabled?
Özgür | ЯocKayseri: Sorry, but as the mod just uses the existing SMF code that's not possible (at least not without a lot of work.)
Welcome back Dannii :)
I'm having a slight problem here in that I have a couple of custom rewriterules in my /forums/ directory's old .htaccess, which are getting overwritten by PrettyURLs auto-generated .htaccess
I tried putting those rewriterules up in the parent directory but they don't seem to filter down I guess, because PrettyURLs re-invokes the RewriteEngine?
Is it a worthwhile idea to maybe add a facility in the admin panel, maybe a small textarea or something, to add a couple of additional / custom rewriterules if desired..
In my case it was
RewriteCond %{HTTP_USER_AGENT} slurp [NC]
RewriteRule ^.* - [F]
I wanted to 'splice in' (trying to prevent yahoo spider hammering the board) - I found where to edit pretty_update_filters() in Subs-PrettyURLs.php to 'handball' it in, so that it gets re-included whenever the filters are updated.. but thought an option interface might be good. Or would it be a bad idea.
Yeah that's an idea I had before actually...
For now you can add them to Subs-PrettyUrls.php. Search for "# Pretty URLs mod"
any good robots.txt for users that use the Pretty URL mod?
i want to filter out all the junk like profiles, registration site etc
hi Dannii!
very great mod!
i have one suggestions for the next release.
it would be great to have a function that i can call to "manually" create a pretty url.
My Problem is, that I have want a 301 redirect to a prett url in some circumstances - but pretty_urls only rewrites links that get printed to the html - so it would be great to have a function to manually create a pretty url.
hope you know what I am talking about...
markus :)
Quote from: Dannii on January 09, 2009, 08:39:00 PM
If you want help please post again, I won't go through the old posts.
Danni, sorry to bring this up again but I'm shocked at the size of my cache table and I want to be certain it is normal. Can you explain why it is not much smaller than my messages table? That doesn't make any sense to me.
smf_messages 195.83 MB
smf_pretty_urls_cache 101.23 MB
If the above really is normal, then I strongly recommend you consider a way to prevent the cache getting so big. Maybe have it so it only caches URLs from the last X number of days.
Quote from: fca07 on January 10, 2009, 08:05:49 AM
hi Dannii!
very great mod!
i have one suggestions for the next release.
it would be great to have a function that i can call to "manually" create a pretty url.
My Problem is, that I have want a 301 redirect to a prett url in some circumstances - but pretty_urls only rewrites links that get printed to the html - so it would be great to have a function to manually create a pretty url.
hope you know what I am talking about...
markus :)
301 redirects already get prettified. How are you doing the redirect?
Quote from: mark7144 on January 10, 2009, 09:31:25 AM
Danni, sorry to bring this up again but I'm shocked at the size of my cache table and I want to be certain it is normal. Can you explain why it is not much smaller than my messages table? That doesn't make any sense to me.
smf_messages 195.83 MB
smf_pretty_urls_cache 101.23 MB
If the above really is normal, then I strongly recommend you consider a way to prevent the cache getting so big. Maybe have it so it only caches URLs from the last X number of days.
That seems perfectly normal, remember that each topic will have many many URLs. It does get big, but it's efficient. Are you actually running out of space? If not, don't worry! If you are, could you set up a cron job on your server perhaps?
Hi,
I'm new to this, I've installed it and I'm using it and it is working fine.
I don't know it has been mentioned before, But for this mod quality sake, I wanna ask for some changes in it.
in VB, when you open up a topic, the topic ID is written at the first of the url, for example :
example.com/23453-topic-name/
now if I edit the topic name, and need to change its name, the number is still there. I've tried to change the topic name in the url in a vb forum, unless I don't touch that number, it redirects me to the correct name.
for example this topic in vb forum :
http://www.computerforum.com/140935-google-redirects-cant-open-malwarebytes-etc.html
do not change the .html at the end. if you leave the name, and only change the number topic changes.
I'm not sure, but I guess in your mod, if i change the topic name, topic url still will remain the previous one.
If my topic is "good dog" , but I change the subject to "bad dog", my url is still "example.com/good-dog/" while topic is something else.
As google cache these pages, I guess it is so important an old cached page in google redirects to its new version.
Quote from: Dannii on January 10, 2009, 10:11:07 PM
301 redirects already get prettified. How are you doing the redirect?
i do for example rewrite old profile-urls to the pretified:
if($context['current_action'] == 'profile'){
//only redirect "wrong" urls
$url = '/forum/profile/'.urlencode($context['member']['username']).'/';
if($context['current_subaction'] != NULL && $context['current_subaction'] != 'summary')
$url .= '?sa='.$context['current_subaction'];
if(isset($_GET['start'])) $url .= ';start='.intval($_GET['start']);
if($_SERVER['REQUEST_URI'] != $url && !strstr($_SERVER['REQUEST_URI'], 'changeusername')){
header('HTTP/1.1 301 Moved Permanently');
header ('Location: '.$url);
}
}
but i have to say i am using pretty urls 0.8.4 - i don't think that in the new version old profile-urls are rewritten to the pretified (or am I wrong?)..
How can I update 0.8.4 to 0.9 - have I to uninstall 0.8.4 and reinstall 0.9?
Quote from: asmith on January 11, 2009, 12:28:32 AM
Hi,
I'm new to this, I've installed it and I'm using it and it is working fine.
I don't know it has been mentioned before, But for this mod quality sake, I wanna ask for some changes in it.
in VB, when you open up a topic, the topic ID is written at the first of the url, for example :
example.com/23453-topic-name/
now if I edit the topic name, and need to change its name, the number is still there. I've tried to change the topic name in the url in a vb forum, unless I don't touch that number, it redirects me to the correct name.
for example this topic in vb forum :
http://www.computerforum.com/140935-google-redirects-cant-open-malwarebytes-etc.html
do not change the .html at the end. if you leave the name, and only change the number topic changes.
I'm not sure, but I guess in your mod, if i change the topic name, topic url still will remain the previous one.
If my topic is "good dog" , but I change the subject to "bad dog", my url is still "example.com/good-dog/" while topic is something else.
As google cache these pages, I guess it is so important an old cached page in google redirects to its new version.
That's how vbSEO does it... and I think my mod does it better! It does increase load on the MySQL server slightly, but I think not having the numbers at all is worth it. As to the topic titles changing... well Cool URLs don't change (http://www.w3.org/Provider/Style/URI). That said, in the (possibly distant) future I do plan on adding a feature for changing the URL. You can already change board URLs.
Quote from: fca07 on January 11, 2009, 04:16:05 AM
i do for example rewrite old profile-urls to the pretified:
You should use the redirectExit() function.
Quotebut i have to say i am using pretty urls 0.8.4 - i don't think that in the new version old profile-urls are rewritten to the pretified (or am I wrong?)..
How can I update 0.8.4 to 0.9 - have I to uninstall 0.8.4 and reinstall 0.9?
Yes that's correct.
Yes you are right. Nice one :)
ok, I've found 2 conflicts with nneonneo's shoutbox mod on my web site.
When I'm on the some topics on the forum which has more than one page, for example like this one :
http://www.example.com/forums/discussion/topic-name/15/
meaning page 2 of that topic (I have set it like every 15 msg one page).
my shoutbox gives this error :
Invalid request variable.
I've searched the entire forum files for this error, and there are only 2 lines in the whole forum,they are in the querystring.php:
// These keys shouldn't be set...ever.
if (isset($_REQUEST['GLOBALS']) || isset($_COOKIE['GLOBALS']))
die('Invalid request variable.');
// Same goes for numeric keys.
foreach (array_merge(array_keys($_POST), array_keys($_GET), array_keys($_FILES)) as $key)
if (is_numeric($key))
die('Invalid request variable.');
any idea?
Second conflict with this shoutbox is, I can't delete any shout, as it gives the error "session verification failed"
I've tried turning pretty urls off for both conflicts, and both worked fine again. So I'm sure this conflict is because this mod.
p.s the deleting shout is not bothering me, but the first conflict will mess up the entire shoutbox.
EDIt :
Oh another thing to mention :D
Sorry about bothering you, its just I've been in SEO a lot before and I'm so happy you have set it up for SMF.
In the past I had tried rawurlencode() for converting arabic characters into a url and I see google cares about them enough. meaning my page url in the google result (which was converted with that function) , had became to original characters (google converts them back).
As I checked this mod, it converts arabic characters into some kinds of numbers?
Is it because I have done something wrong in the settings ? Or it really convert them to numbers?
If so, is there an easy edit so I could rawurlencode them instead of number format?
Newbie needs help...I installed the Pretty URLs and now I get an error message when go to my sites address.
http://www.guitaradvertisingforum.com
Please give me step by step details explaining where I will find
the things that you suggest for me to do.
Thanks, Jordy
Quote from: Dannii on January 09, 2009, 11:02:48 PM
sgilleland: Well no, appears its not that simple! Can you show me what the links look like when it's enabled?
Danni,
When it is enabled it appears the it works as far as changing the URL's... but I get the error 404.
i have a question!
if i upgrade my forum or the forum gets hacked / crached will all my URL get lost?
Im using those mod right now and im linking alot from my blog to the forum. Im just afraid that if the forum crash all my links will be broken from the blog and so on.
Thx
Quote from: asmith on January 11, 2009, 08:26:31 AM
Yes you are right. Nice one :)
ok, I've found 2 conflicts with nneonneo's shoutbox mod on my web site.
When I'm on the some topics on the forum which has more than one page, for example like this one :
http://www.example.com/forums/discussion/topic-name/15/
meaning page 2 of that topic (I have set it like every 15 msg one page).
my shoutbox gives this error :
Invalid request variable.
I've searched the entire forum files for this error, and there are only 2 lines in the whole forum,they are in the querystring.php:
// These keys shouldn't be set...ever.
if (isset($_REQUEST['GLOBALS']) || isset($_COOKIE['GLOBALS']))
die('Invalid request variable.');
// Same goes for numeric keys.
foreach (array_merge(array_keys($_POST), array_keys($_GET), array_keys($_FILES)) as $key)
if (is_numeric($key))
die('Invalid request variable.');
any idea?
Second conflict with this shoutbox is, I can't delete any shout, as it gives the error "session verification failed"
I've tried turning pretty urls off for both conflicts, and both worked fine again. So I'm sure this conflict is because this mod.
p.s the deleting shout is not bothering me, but the first conflict will mess up the entire shoutbox.
EDIt :
Oh another thing to mention :D
Sorry about bothering you, its just I've been in SEO a lot before and I'm so happy you have set it up for SMF.
In the past I had tried rawurlencode() for converting arabic characters into a url and I see google cares about them enough. meaning my page url in the google result (which was converted with that function) , had became to original characters (google converts them back).
As I checked this mod, it converts arabic characters into some kinds of numbers?
Is it because I have done something wrong in the settings ? Or it really convert them to numbers?
If so, is there an easy edit so I could rawurlencode them instead of number format?
Can you check that all of the shoutbox's URLs are full URLs which include $scripturl?
Quote from: Jordy3738 on January 11, 2009, 02:02:15 PM
Newbie needs help...I installed the Pretty URLs and now I get an error message when go to my sites address.
http://www.guitaradvertisingforum.com
Please give me step by step details explaining where I will find
the things that you suggest for me to do.
Thanks, Jordy
It looks like the mod has been installed twice. Do you have other mods on your forum?
Quote from: sgilleland on January 11, 2009, 04:29:52 PMWhen it is enabled it appears the it works as far as changing the URL's... but I get the error 404.
Please show me the actual URLs!
Quote from: Phat^Trance on January 11, 2009, 05:15:27 PM
i have a question!
if i upgrade my forum or the forum gets hacked / crached will all my URL get lost?
Im using those mod right now and im linking alot from my blog to the forum. Im just afraid that if the forum crash all my links will be broken from the blog and so on.
Thx
If you do a package manager update then the mod will stay installed and everything should be fine. If you Do a large upgrade you'll need to reinstall the mod.
And if your forum crashes, well your links will be broken anyways!
Here is the url with it turned off http://www.dreamconnectionz.com/index.php?action=forum
Here is the same one with Pretty URL's turned on. http://www.dreamconnectionz.com/forum/
Is that what you needed?
Do you have a .htaccess file in your / folder?
yes, the forum resides in /bdg and this is the .htaccess that is in it.
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: December 16, 2008, 19:26
RewriteEngine on
# Rules for: tp-articles
RewriteRule ^page/([^/]+)/?$ ./index.php?pretty;page=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|buddies|calendar)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(cleanperms|collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dlattach|dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|form)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(help|gallery|helpadmin|im|invite|jsoption|jsmodify|treasury)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(links|treasury|lock|lockVoting|login|login2|logout|maintain)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|googlemap|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(treasuryadmin|treasuryadmin|post2|postsettings|printpage|profile|profile2|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|regcenter|register|register2|reminder|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removeoldtopics2|removepoll|repairboards|reporttm|reports|requestmembers|search|search2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(sendtopic|serversettings|serversettings2|smileys|smstats|spellcheck|splittopics|stats)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(sticky|theme|trackip|admod|about:mozilla|about:unknown|unread|unreadreplies)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewErrorLog|viewmembers|viewprofile|verificationcode|vote|viewquery|who|\.kml)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(\.xml|tpadmin|forum|tpmod)/?$ ./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]
When I enter the RewriteBase / in it....it gives me the following error.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
[email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
asmith - yes I came across that problem with the shoutbox too.
I got round it by setting up a 'marker' variable in the shoutbox file yshout.php:
<?php
// nneonneo's AJAX shoutbox
// Version 1.21
// just something to id the shoutbox to querystring.php
$hobgoblin99 = "anything";
// Figure out where the yshout folder is
global $yshoutdir;
$yshoutdir=(defined('SMF')||isset($yshout_from_index))?'yshout/':'';
// Check configuration files
if(!file_exists($yshoutdir.'settings.php'))
and then.. catching it in QueryString.php:
(don't forget to add the marker variable as a global at the start of the function here)
// These keys shouldn't be set...ever.
if (isset($_REQUEST['GLOBALS']) || isset($_COOKIE['GLOBALS']))
die('Invalid request variable.');
// Same goes for numeric keys.
foreach (array_merge(array_keys($_POST), array_keys($_GET), array_keys($_FILES)) as $key)
if (is_numeric($key))
{
if(isset($hobgoblin99))
{
// let it pass, it's the shoutbox
}
else
{
die('Invalid request variable.');
}
}
I know that's a really horrible hacky way of doing it but it appears to work until something better maybe
quote danii:
Quote
Can you check that all of the shoutbox's URLs are full URLs which include $scripturl?
I'll check that on mine too and report back..
[edited repeatedly]okay as far as I can see, most URLs to do with the shoutbox on my install takes account of $scripturl and end up fully qualified except.. the ajax stuff actually does seem to request a relative url?, see below
Regards:
Quote
Second conflict with this shoutbox is, I can't delete any shout, as it gives the error "session verification failed"
Yes I'm seeing that too.. but if I click through to the shoutboxes' 'history' page, then I can delete shouts just fine from there. History page URL:
http://www.mysite.com/forums/index.php?yshout&file=home&history
The problem only seems to occur when trying to delete shouts using the DEL link within the embedded shoutbox on the forum index page.
The DEL link in the shoutbox is formatted like:
javascript:ajaxGet('delete=unix_timestamp | some_ip_address&?sesc=32_hex_digits')
I thought I was seeing a different sesc= on the forum index / embedded shoutbox, and the shoutbox history page.. but nope, it's the same
okay near the top of yshout.php, this is the code which is failing the delete:
if(isset($_GET['delete']))
{
if(isMod())
{
$error=checkSession('request','',false); <-----------------
if($error!=='')
{
loadLanguage('Errors');
die($txt[$error]); <------------------ 'session verification failed' if coming directly from shoutbox
}
$success=deleteShout($_GET['delete'],$chatPath);
if(isset($_GET['history']) && !$success)
$success=deleteShout($_GET['delete'],$historyPath);
if($success)
//echo $txt['yshout_del_success'];
echo "<html><head><script>history.back();</script></head><body></body></html>";
}
exit;
}
It appears that somehow, something is preventing $_GET['sesc'] from getting passed through to yshout.php when PrettyURLs is in use. I echoed it out at the tail end of the error message between to 'x' characters, and there was no gap.. it seems to show itself as the null string..
ajaxGet() boils down to calling the ajax class with:
yshout_php+'&file='+shoutFile+'&'+'delete=unix_timestamp | some_ip_address&?sesc=32_hex_digits',
{
update: $('shouts'),
onComplete: shoutDone
}
just wondering if the whole format of that weird URL is foxing PrettyURLs somewhere (it has a pipe between two urlencoded spaces halfway through and then, seems to start the query string all over again for the sesc)
example;
yshout_php&file=home&delete=1231736770%20|%2034.140.94.43&?sesc=8645f9341d33744eb2103bd0647f43b7
yshout_php is broadly $scripturl . '?yshout' . (any pre-existing $_GET vars, urlencoded)
(I don't know what the ajax class does with the URL after this point, whether the above is what gets requested, or whether the ajax wizardry mangles it some more.. the relevant code from moo.ajax.js uses transport = XMLHttpRequest() or ActiveXObject('Microsoft.XMLHTTP') & seems to be:
request: function(url){
this.transport.open(this.method, url, true);
this.transport.onreadystatechange = this.onStateChange.bind(this);
if (this.method == 'post') {
this.transport.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
if (this.transport.overrideMimeType) this.transport.setRequestHeader('Connection', 'close');
}
this.transport.send(this.postBody);
},
'url' being, the url as above
I dunno, could a filter be added to PrettyURLs to just exempt anything containing 'yshout.php' ?
I tried
RewriteRule ^(.*)yshout(.*)$ $1yshout$2 [L]
But it didn't allow the DEL link to start working so maybe I'm barking up the wrong tree.
In fact the .htaccess file doesn't seem to have anything to do with the problem, I unchecked all the boxes except 'Enable URL rewriting', saw that that resulted in an empty .htaccess file, yet the problem was still occurring. Only when I unchecked 'Enable URL rewriting' did the DEL link start working again.
sgilleland, do you have a .htaccess file in you / folder, not your /bdg?
Just like a dozen of people asked already: How do you install this?!
I installed it using the package manager, everything went succesful and... that's it.
Not 1 URL on my forum changed, and I can't find any change/settings/options in the admin too.
Some kind of manual/tutorial would be nice?
Go to
http://www.your-smf-forum-url.com/index.php?action=admin;area=pretty
Quote from: brianjw on January 11, 2009, 10:55:41 PM
Go to
http://www.your-smf-forum-url.com/index.php?action=admin;area=pretty
Yep, great, that did it.
Why isn't there any link to this page, how was I supposed to know this?!
There should be a link in your admin. Probably some issue with your languages in SMF. Similar issues like this happen in many mods on SMF.
Hello!
I have some questions regarding the mod's impact to a forum; mine is quite new, but i already have some back links from some good sites, also my content is indexed by google and i don't want to mess things up (more than they already are...). :-[
1. If i will use this mod, what will happen with old style links like "index.php/topic,7.0.html", or "index.php?topic=7"; they will still be accessible?
2. Will i still get credit (in terms of SEO) from search engines for the links i already have from other sites in the old format (mentioned in the above question)?
3. Anyone tried to upgrade from 1.x to 2.x version of SMF with the mod enabled? It worked, any issues encountered?
4. There are some known compatibility issues with one of these mods?
- Avatar Under Membergroups Rank 1.3.KD
- vBulletin Style Meta Tags
- SMF 1.0.15 / 1.1.7 Update 1.0
- Global Headers Footers 1.4.1
- SMF Sitemap 1.2.2
- SMF Media Gallery 1.5.2
- Ad Managment 2.3
- NoFollow All Links 1.0
- Aeva ~ Auto-Embed Video & Audio 5.1.25
5. Anyone tried to use Pretty URLs with Gallery 2 embedded to SMF (using Oldiesmann mod)? I am planning to change SMG to Gallery2 and i am wondering which will be the impact of this change...
Many thanks and sorry for the bulk questions...
can answer a couple;
1 & 2 yes & yes for both formats mentioned. they do a http 301 redirect to the new format.
vBulletin Style Meta Tags - works fine on my 1.1.7 board
SMF Sitemap 1.2.2 - works fine on my 1.1.7 board
-----------------------
on a seperate issue, we just found that if you enable PrettyURLs for actions, then many games in E-Arcade 2.4.2 won't save scores, they just hang.
These rules seem to fix most of the games: [edit] see later post, need prettyurls extras package too.
[edit again] removed incorrect rewriterules
Quote from: Dannii on January 10, 2009, 10:11:07 PM
That seems perfectly normal, remember that each topic will have many many URLs. It does get big, but it's efficient. Are you actually running out of space? If not, don't worry! If you are, could you set up a cron job on your server perhaps?
I have plenty of space but it's not ideal for regular database backups.
Is it not possible to feature some sort of automatic pruning of the cached URLs? There is no point caching 100s of MBs of URLs in topics that have not been posted in for months. At the very least, it would be nice to add a maintenance feature that does this.
Quote from: Phat^Trance on January 11, 2009, 05:15:27 PM
i have a question!
if i upgrade my forum or the forum gets hacked / crached will all my URL get lost?
Im using those mod right now and im linking alot from my blog to the forum. Im just afraid that if the forum crash all my links will be broken from the blog and so on.
Thx
If you do a package manager update then the mod will stay installed and everything should be fine. If you Do a large upgrade you'll need to reinstall the mod.
And if your forum crashes, well your links will be broken anyways!
[/quote]
And if your forum crashes, well your links will be broken anyways! --> Well not of i restor the forum via the database etc, will those linkes still be there? or will all the links be broken
If you Do a large upgrade you'll need to reinstall the mod. --> when reinstalling the mod, will the topics still get the same URL as before or will it be new links?
Quote from: Dannii on January 11, 2009, 10:43:37 PM
sgilleland, do you have a .htaccess file in you / folder, not your /bdg?
No, it wasn't....I just put it there and it is still giving me error 404
Quote from: brianjw on January 11, 2009, 11:20:14 PM
There should be a link in your admin. Probably some issue with your languages in SMF. Similar issues like this happen in many mods on SMF.
I'm using the default English admin.
Quote3. Anyone tried to upgrade from 1.x to 2.x version of SMF with the mod enabled? It worked, any issues encountered?
You'll need to reinstall the mod.
Quote
on a seperate issue, we just found that if you enable PrettyURLs for actions, then many games in E-Arcade 2.4.2 won't save scores, they just hang.
Is that the normal SMF arcade mod or another? Did you try enabling the arcade filter in the extras package?
Quote
Is it not possible to feature some sort of automatic pruning of the cached URLs? There is no point caching 100s of MBs of URLs in topics that have not been posted in for months. At the very least, it would be nice to add a maintenance feature that does this.
It is a possibility, especially with SMF2's tasks, but it's not a priority at all.
Quote
And if your forum crashes, well your links will be broken anyways! --> Well not of i restor the forum via the database etc, will those linkes still be there? or will all the links be broken
I don't know, depends how you restore it. Hopefully all will be fine.
QuoteIf you Do a large upgrade you'll need to reinstall the mod. --> when reinstalling the mod, will the topics still get the same URL as before or will it be new links?
Yes they should get the same.
Quote from: sgilleland on January 12, 2009, 07:49:51 AM
No, it wasn't....I just put it there and it is still giving me error 404
Sorry I don't know what else to try. Have you searched here for 1and1? Others have posted about it before I think...
Quote from: Woet on January 12, 2009, 08:37:21 AM
I'm using the default English admin.
No errors when you installed? In any case, you can easily manually add the entries to the modifications.english.php file.
Just curious, is it possible to get phone suppot from sone one to walk me through the process of how to get my forum operating again?
I installed the Pretty URLs modification and my forum just shows an error message now.
http://guitaradvertisingforum.com
Thanks, Jordy
Quote from: F.L.A.M.E.R on December 19, 2008, 05:41:41 PM
this is something weird, but it doesnt get things in perfect directory...
My site is http://goldysun.com/forum/tech-news/
While it goes to http://goldysun.com/tech-news/ after installation is done.
Just quoted as i need help over this and you where away. Anything that can help ?
@argimiro try ; (in shoutbox)
click hide admin link after show admin link and delete any shout. im using this =) and work fine for me.
Özgür | ЯocKayseri - that doesn't seem to work here.. wonder what the difference is.
(yshout.php still seems to be missing $_GET['sesc'] even after hide / show here)
Quote
Quote
on a seperate issue, we just found that if you enable PrettyURLs for actions, then many games in E-Arcade 2.4.2 won't save scores, they just hang.
Is that the normal SMF arcade mod or another? Did you try enabling the arcade filter in the extras package?
It's Eric's E-Arcade from here: http://www.ericsworld.eu
It's based on the normal SMF Arcade.
Since I posted those rewrites in my last post, I discovered it *still* wasn't working - every game seemed to need to experience one failed score submission before 'recovering' and working fine from then on. Sometimes a string of failures occurs before it finally starts working. Problem seems kinda intermittent, the more I look at it
On your advice I installed and enabled the arcade patch in the extras package. Yes I'd forgotten about that. I removed my filters. Still no joy - games load okay but scores won't submit until one (some?) failure(s) has/have been seen.. as if it's got something to do with caching somewhere.
If I place
echo $_SERVER['REQUEST_URI'] . "<br>";
at the top of /forums/index.php, it gives me the following URL after a failed game submission:
/forums/arcade/index.php?autocom=arcade&do=savescore
I can see
# Rules for: arcade
RewriteRule ^arcade/index\.php$ index.php?action=arcade [L,QSA]
has been added at the bottom of /forums/.htaccess after enabling the prettyurls extras arcade patch
Unfortunately the error message isn't very illuminating:
Quote
Score was not saved because there were error
- this seems to be $txt['aracde_submit_error'] in the standard SMF Arcade.english.php lang file
Here is the section from my index.php that seems to deal with incoming arcade requests (I guess this is the mod code placed in there by E-Arcade - I don't know if this is hugely different from the standard SMF arcade..)
// Check for arcade actions
// IBPArcade v2.x.x Games support
elseif (isset($_REQUEST['act']) && strtolower($_REQUEST['act']) == 'arcade')
{
$_REQUEST['action'] = 'arcade';
$_REQUEST['ibpa'] = 2;
if (isset($_REQUEST['do']) && $_REQUEST['do'] == 'newscore')
$_REQUEST['sa'] = 'ibpsubmit';
require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
// IBPArcade v3.x.x Games support
elseif (isset($_REQUEST['autocom']) && $_REQUEST['autocom'] == 'arcade')
{
$_REQUEST['action'] = 'arcade';
$_REQUEST['ibpa'] = 3;
if (isset($_REQUEST['do']) && $_REQUEST['do'] == 'savescore')
$_REQUEST['sa'] = 'ibpsubmit';
elseif (isset($_REQUEST['do']) && $_REQUEST['do'] = 'verifyscore')
$_REQUEST['sa'] = 'ibpverify';
require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
elseif (isset($_REQUEST['play']))
{
$_REQUEST['game'] = $_REQUEST['play'];
unset($_REQUEST['play']);
$_REQUEST['sa'] = 'play';
require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
elseif (isset($_REQUEST['highscore']))
{
$_REQUEST['game'] = $_REQUEST['highscore'];
unset($_REQUEST['highscore']);
$_REQUEST['sa'] = 'highscore';
require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
elseif (isset($_REQUEST['game']) && !isset($_REQUEST['action']))
{
require_once($sourcedir . '/Arcade.php');
return 'Arcade';
} elseif (empty($_REQUEST['action']))
This version of the arcade also seems to have a file /forums/arcade.php specifically for accepting 'v3' style games;
<?php
//arcade.php
//mod for SMFArcade to allow V3 Arcade games to submit a score
//file should be in smf forum root folder
if (!isset($_POST['sessdo']))
die('Hacking attempt...');
//get some board settings
require_once(dirname(__FILE__) . '/Settings.php');
//not enough for database use so set up db connection
$link = mysql_connect($db_server, $db_user, $db_passwd);
mysql_select_db($db_name, $link);
if ($_POST['sessdo'] == 'sessionstart')
{
$time = time();
$gamerand = rand(1,10);
$sql = "INSERT INTO {$db_prefix}arcade_v3temp(`game`, `score`,`starttime`)
VALUES ('{$_POST['gamename']}', '0','{$time}')";
$result = mysql_query($sql,$link);
$lastid = mysql_insert_id();
echo "&connStatus=1&initbar=$gamerand&gametime=" . $time . "&lastid=$lastid&result=OK";
exit;
}
if ($_POST['sessdo'] == 'permrequest')
{
$note = $_POST['note'];
$id = $_POST['id'];
$gametime = $_POST['gametime'];
$score = $_POST['score'];
$fakekey = $_POST['fakekey'];
$ceilscore = ceil($score);
$noteid = $note/($fakekey * $ceilscore);
if ($noteid != $id)
{
echo "&validate=0";
exit;
}
// Gets accurate timestamp
$microone = time();
// Don't ask.
if ($score==-1)
{
$score = 0;
}
$sql="UPDATE {$db_prefix}arcade_v3temp SET score={$score} WHERE id='{$id}' AND starttime='{$gametime}'";
$result = mysql_query($sql,$link);
echo "&validate=1µone=$microone&result=OK";
exit;
}
if ($_POST['sessdo'] == 'burn')
{
header( 'Location: '.$boardurl.'/index.php?action=arcade;sa=v3game;ts='.$_POST['id'] ) ;
}
mysql_close($link);
?>
Quote from: Jordy3738 on January 12, 2009, 02:31:52 PM
Just curious, is it possible to get phone suppot from sone one to walk me through the process of how to get my forum operating again?
I installed the Pretty URLs modification and my forum just shows an error message now.
http://guitaradvertisingforum.com
Thanks, Jordy
Well I already replied to you here: http://www.simplemachines.org/community/index.php?topic=146969.msg1874872#msg1874872
Quote from: F.L.A.M.E.R on December 19, 2008, 05:41:41 PM
this is something weird, but it doesnt get things in perfect directory...
My site is http://goldysun.com/forum/tech-news/
While it goes to http://goldysun.com/tech-news/ after installation is done.
Check what pretty_root_url is set to (in the smf_settings table.)
argimiro, yeah I don't have any ideas. Have you asked the mod's author?
I just installed pretty URLs on SMF 1.1.7. Issue is that whenever i go to a certain board or a topic in that board, i am shown as logged out, and if i click home or profile link from there, i see that i am still logged in. This way i am unable to reply any topics and more importantly maintain form like sticky, lock, unlock, remove etc..
Even if i login there when i am inside that topic or forum, go to home, and visit that forum again, i am shown as if i am logged out.
Quote
argimiro, yeah I don't have any ideas. Have you asked the mod's author?
Thanks for looking. He's still around & supporting it so that can only be a good thing, although he hasn't any specific ideas other than the actual score submission url from each individual game, maybe being different.. I'll keep plugging away and post back if I figure it out.
Quote from: Dannii on January 13, 2009, 04:45:18 AM
Quote from: F.L.A.M.E.R on December 19, 2008, 05:41:41 PM
this is something weird, but it doesnt get things in perfect directory...
My site is http://goldysun.com/forum/tech-news/
While it goes to http://goldysun.com/tech-news/ after installation is done.
Check what pretty_root_url is set to (in the smf_settings table.)
It is http://goldysun.com
I tried this query, but it didnt really get me right.
UPDATE smf_settings SET pretty_root_url = 'http://goldysun.com/forum' WHERE variable = 'pretty_root_url'
Hi Danni. Again me :D how can i add "pretty url cache clean" in my Scheduled Tasks?
Quote from: cosp on January 13, 2009, 10:57:06 AM
I just installed pretty URLs on SMF 1.1.7. Issue is that whenever i go to a certain board or a topic in that board, i am shown as logged out, and if i click home or profile link from there, i see that i am still logged in. This way i am unable to reply any topics and more importantly maintain form like sticky, lock, unlock, remove etc..
Even if i login there when i am inside that topic or forum, go to home, and visit that forum again, i am shown as if i am logged out.
What are your forum's cookies settings set to?
Quote from: •~F.L.A.M.E.R~• on January 13, 2009, 12:37:42 PM
Quote from: Dannii on January 13, 2009, 04:45:18 AM
Quote from: F.L.A.M.E.R on December 19, 2008, 05:41:41 PM
this is something weird, but it doesnt get things in perfect directory...
My site is http://goldysun.com/forum/tech-news/
While it goes to http://goldysun.com/tech-news/ after installation is done.
Check what pretty_root_url is set to (in the smf_settings table.)
It is http://goldysun.com
I tried this query, but it didnt really get me right.
UPDATE smf_settings SET pretty_root_url = 'http://goldysun.com/forum' WHERE variable = 'pretty_root_url'
Can you change it with phpMyAdmin?
Quote from: Özgür | ЯocKayseri on January 13, 2009, 07:00:17 PM
Hi Danni. Again me :D how can i add "pretty url cache clean" in my Scheduled Tasks?
I have no idea sorry. Perhaps ask in the coding discussion board.
Quote from: cosp on January 13, 2009, 10:57:06 AM
I just installed pretty URLs on SMF 1.1.7. Issue is that whenever i go to a certain board or a topic in that board, i am shown as logged out, and if i click home or profile link from there, i see that i am still logged in. This way i am unable to reply any topics and more importantly maintain form like sticky, lock, unlock, remove etc..
Even if i login there when i am inside that topic or forum, go to home, and visit that forum again, i am shown as if i am logged out.
Quote from: Dannii on January 14, 2009, 07:34:12 AM
What are your forum's cookies settings set to?
SMFCookie11
Yes, but what about the subdomain settings etc.
Are any other forum users having problems?
sorry, couldnt really get you...
Its www.cosp.org.pk/forums
And from firefx cookie browser i see:
Name: SMFCookie11
Domain: .www.cosp.org.pk
Path: /forums/
Quote from: Dannii on January 14, 2009, 07:34:12 AM
Quote from: •~F.L.A.M.E.R~• on January 13, 2009, 12:37:42 PM
Quote from: Dannii on January 13, 2009, 04:45:18 AM
Quote from: F.L.A.M.E.R on December 19, 2008, 05:41:41 PM
this is something weird, but it doesnt get things in perfect directory...
My site is http://goldysun.com/forum/tech-news/
While it goes to http://goldysun.com/tech-news/ after installation is done.
Check what pretty_root_url is set to (in the smf_settings table.)
It is http://goldysun.com
I tried this query, but it didnt really get me right.
UPDATE smf_settings SET pretty_root_url = 'http://goldysun.com/forum' WHERE variable = 'pretty_root_url'
Can you change it with phpMyAdmin?
Well, if you mean by running that query in the SQL function? then it gives me out an error.
I think i have made some mistake in the query. Please let me know what can be done.
I forgot about the wiki: http://code.google.com/p/prettyurls/wiki/TroubleShooting
You both should try the second one, might help.
I'm having some performance issues with PRetty url...
"Page created in 1.847 seconds with 18 queries. (Pretty URLs adds 1.779s, 2q)"
and on many pages even more... our forum haqs about 300k posts. Its on VPS.
smf_pretty_urls_cache 1,085,225 records in it and 147MB ...
Hello!
I installed this mod and nothing happened! I checked my error logs and I'm seeing:
Quote
8: Undefined index: pretty_admin_menu
File: [PATH OMITTED]/forums/Sources/Subs.php
Line: 2895
So I've had a look at line 2895 and can see ?action=admin;area=pretty which I tagged onto the end of my forum index url manually in the browser and there was the admin panel :) So I have it installed and working but I'm getting that error and have no pretty_admin_menu
Any advice?
Quote from: pcigre on January 15, 2009, 04:44:00 AM
I'm having some performance issues with PRetty url...
"Page created in 1.847 seconds with 18 queries. (Pretty URLs adds 1.779s, 2q)"
and on many pages even more... our forum haqs about 300k posts. Its on VPS.
smf_pretty_urls_cache 1,085,225 records in it and 147MB ...
Oh dear!
Can you turn on the query debugging, and copy that info here please?
Quote from: Moif on January 15, 2009, 05:52:04 AM
Hello!
I installed this mod and nothing happened! I checked my error logs and I'm seeing:
Quote
8: Undefined index: pretty_admin_menu
File: [PATH OMITTED]/forums/Sources/Subs.php
Line: 2895
So I've had a look at line 2895 and can see ?action=admin;area=pretty which I tagged onto the end of my forum index url manually in the browser and there was the admin panel :) So I have it installed and working but I'm getting that error and have no pretty_admin_menu
Any advice?
Looks like the language files didn't get modified correctly. Make sure all the entries got added to modifications.english.php.
i did the step actually, but it doesnt open up, it just shows me the blank page.. (the famous one you know! :P)
Please support me for this topic
http://www.simplemachines.org/community/index.php?topic=286162.0
Quick question about http return codes;
I'm seeing:
200: http://www. mysite.co.uk/forums
200: http://www. mysite.co.uk/forums/
200: http://www. mysite.co.uk/forums/nonexistent_subfolder_1
200: http://www. mysite.co.uk/forums/nonexistent_subfolder_1/
200: http://www. mysite.co.uk/forums/nonexistent_subfolder_1/nonexistent_subfolder_2
200: http://www. mysite.co.uk/forums/nonexistent_subfolder_1/nonexistent_subfolder_2/
404: http://www. mysite.co.uk/forums/nonexistent_subfolder_1/nonexistent_subfolder_2/nonexistent_subfolder_3
Shouldn't it be returning a 404 error for everything except the first 2?
3,4,5 & 6 are returning a 200 OK status code, and serving the forum index page even though the URL is 'spurious' & doesn't represent any real content. Have I got something messed up somewhere do you guys think? or is this the correct behaviour - it just seems a bit worrying in terms of, maybe it would cause a duplicate content problem on the search engines if they were requesting old dead url's, and kept on getting told, 'yes the page is still there and here it is.. same content as root'.. ?
assam_siddibapa
I might be wrong on this so take care
but, I am guessing you're using a language other than english and you need to add:
$txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.';
or the equivalent for your language, into your language file that corresponds to:
/forums/Themes/default/languages/Modifications.english.php
Quote from: argimiro on January 16, 2009, 01:53:11 AM
assam_siddibapa
I might be wrong on this so take care
but, I am guessing you're using a language other than english and you need to add:
$txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.';
or the equivalent for your language, into your language file that corresponds to:
/forums/Themes/default/languages/Modifications.english.php
I am using english language only
hello :)
i juss installed Pretty URLs everything was fine bt it is changing the adress of categories
http://mobi-movies.org/index.php/board,2.0.html
every board index category address changes
to
simmer.xxxxxxxhting.com nd this was my previous host please tell me how to fix this i tried repairsettings bt everything was fine dre please reply :)
simmer :)
bump :( :'(
If it was me having that problem, I'd probably start by having a look in the database via cPanel / phpMyAdmin, and seeing if you can see the string simmer.xxxxxxxhting.com in there. And actually look inside both Settings_bak.php & Settings.php, see if your old host is still listed in there?
I'm guessing
Hi Danii,
Welcome back.
I recently updated to 2b4 and reinstalled your mod. I have one slight problem. Its nothing major but your help would be appreciated. Under the old version your mod created the url below for the main board in my forum
http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/0/
Under the new version in 2b4 your mod creates a slightly different url
http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/
Now its only a small problem but I had built up a small amount of page rank on the first url and had a few internal and external links pointing there. I would like to 301 the old url to the new one but it just doesnt seem to work. Can you give me the code needed to 301 the old url to the new one please and advise on where it needs to go.
Many thanks as always - Glenn
Quote from: F.L.A.M.E.R on January 15, 2009, 12:57:51 PM
i did the step actually, but it doesnt open up, it just shows me the blank page.. (the famous one you know! :P)
It's supposed to be blank... did it help?
Quote from: assam_siddibapa on January 16, 2009, 01:10:53 AM
Please support me for this topic
http://www.simplemachines.org/community/index.php?topic=286162.0
Does the error come up repeatedly, or just once when you first installed the mod? Some forums don't seem to install it properly, but once you enable the mod the errors stop.
Quote from: argimiro on January 16, 2009, 01:35:00 AM
Quick question about http return codes;
I'm seeing:
200: http://www. mysite.co.uk/forums
200: http://www. mysite.co.uk/forums/
200: http://www. mysite.co.uk/forums/nonexistent_subfolder_1
200: http://www. mysite.co.uk/forums/nonexistent_subfolder_1/
200: http://www. mysite.co.uk/forums/nonexistent_subfolder_1/nonexistent_subfolder_2
200: http://www. mysite.co.uk/forums/nonexistent_subfolder_1/nonexistent_subfolder_2/
404: http://www. mysite.co.uk/forums/nonexistent_subfolder_1/nonexistent_subfolder_2/nonexistent_subfolder_3
Shouldn't it be returning a 404 error for everything except the first 2?
3,4,5 & 6 are returning a 200 OK status code, and serving the forum index page even though the URL is 'spurious' & doesn't represent any real content. Have I got something messed up somewhere do you guys think? or is this the correct behaviour - it just seems a bit worrying in terms of, maybe it would cause a duplicate content problem on the search engines if they were requesting old dead url's, and kept on getting told, 'yes the page is still there and here it is.. same content as root'.. ?
That's how the mod works... none of them actually exist remember. It just assumes that the URLs are either for boards or topics. If you want, get it to change it to a 404 if it can't find the topic in Display.php
Quote from: simmer on January 16, 2009, 11:45:11 AM
hello :)
i juss installed Pretty URLs everything was fine bt it is changing the adress of categories
http://mobi-movies.org/index.php/board,2.0.html
every board index category address changes
to
simmer.xxxxxxxhting.com nd this was my previous host please tell me how to fix this i tried repairsettings bt everything was fine dre please reply :)
simmer :)
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Follow the second section there.
Quote from: glennk on January 17, 2009, 03:23:37 PM
Hi Danii,
Welcome back.
I recently updated to 2b4 and reinstalled your mod. I have one slight problem. Its nothing major but your help would be appreciated. Under the old version your mod created the url below for the main board in my forum
http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/0/
Under the new version in 2b4 your mod creates a slightly different url
http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/
Now its only a small problem but I had built up a small amount of page rank on the first url and had a few internal and external links pointing there. I would like to 301 the old url to the new one but it just doesnt seem to work. Can you give me the code needed to 301 the old url to the new one please and advise on where it needs to go.
Many thanks as always - Glenn
Redirecting them is probably too complicated. What I'd suggest, if you absolutely need to keep the old ones, is to replace the relevant functions of PrettyUrls-Filters.php with code from the older versions.
Not really, just sent you a PM about the things you might need to know or be useful to understand. Sorry about that as you havnt invited me to send a PM, although i thought it could be important. :)
thanxxxxxxxxxxxx bro :D
Hi there, lovely mod! I would like to enable it, but of course: I get an error when I click a pretty URL ;)
I don't have a .htacces in my forum folder (or anywhere it seems?), and I don't see an example.htaccess either, where do I get it? My server should be more than able to use it.
Hi Dannii,
It really needs to be a 301 as both pages have links in now. It is important for seo that 2 urls for the same page are not created.
Quote from: coendeurloo on January 18, 2009, 07:29:13 AM
Hi there, lovely mod! I would like to enable it, but of course: I get an error when I click a pretty URL ;)
I don't have a .htacces in my forum folder (or anywhere it seems?), and I don't see an example.htaccess either, where do I get it? My server should be more than able to use it.
It should be created automatically. Are you sure it's not there, it is a hidden file and so might not be displayed in FTP or SSH.
Quote from: glennk on January 18, 2009, 07:37:06 AM
Hi Dannii,
It really needs to be a 301 as both pages have links in now. It is important for seo that 2 urls for the same page are not created.
You could try these changes... might work, might not. If it doesn't I don't really have the time to help any more sorry!
RewriteRule ^ROOTURL([-_!~*\'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^ROOTURL([-_!~*\'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^ROOTURL([-_!~*\'()$a-zA-Z0-9]+)/0/?$ ./index.php?board=$1.0 [L,QSA]
RewriteRule ^ROOTURL([-_!~*\'()$a-zA-Z0-9]+)/([-_!~*\'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^ROOTURL([-_!~*\'()$a-zA-Z0-9]+)/([-_!~*\'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^ROOTURL([-_!~*\'()$a-zA-Z0-9]+)/([-_!~*\'()$a-zA-Z0-9]+)/0/?$ ./index.php?board=$1;topic=$2.0 [L,QSA]
This will redirect /0/ URLs to /. Keep the code in PrettyUrls-Filters.php the same as normal.
Quote from: Dannii on January 18, 2009, 08:39:35 AM
Quote from: coendeurloo on January 18, 2009, 07:29:13 AM
Hi there, lovely mod! I would like to enable it, but of course: I get an error when I click a pretty URL ;)
I don't have a .htacces in my forum folder (or anywhere it seems?), and I don't see an example.htaccess either, where do I get it? My server should be more than able to use it.
It should be created automatically. Are you sure it's not there, it is a hidden file and so might not be displayed in FTP or SSH.
I've got Filezilla as FTP Client, it should be able to see the .htaccess file. Is it generated in the default forum root folder?
I have uninstalled/reinstalled it...no errors, but no .htacces either...
Quote from: assam_siddibapa on January 16, 2009, 01:10:53 AM
Please support me for this topic
http://www.simplemachines.org/community/index.php?topic=286162.0
Does the error come up repeatedly, or just once when you first installed the mod? Some forums don't seem to install it properly, but once you enable the mod the errors stop.
last time i cleard some 15000 pages
Quote from: coendeurloo on January 18, 2009, 09:03:22 AMI've got Filezilla as FTP Client, it should be able to see the .htaccess file. Is it generated in the default forum root folder?
I have uninstalled/reinstalled it...no errors, but no .htacces either...
Have a look at the filezilla settings, you might need to turn on viewing hidden files? And yes it should be in the default root folder. My guess is that there's one there already, but PHP can't write to it.
Quote from: assam_siddibapa on January 18, 2009, 10:05:51 AM
last time i cleard some 15000 pages
And it continues to come up after enabling the mod?
I need a redirecting code for this. There's one feature that aren't working that I have integrated. How to get it to redirect to /index.php?action=chat because it redirected me to /chat and it's not working properly. Only shown the template but not the chat.
Quote from: Dannii on January 18, 2009, 07:18:16 PM
Quote from: coendeurloo on January 18, 2009, 09:03:22 AMI've got Filezilla as FTP Client, it should be able to see the .htaccess file. Is it generated in the default forum root folder?
I have uninstalled/reinstalled it...no errors, but no .htacces either...
Have a look at the filezilla settings, you might need to turn on viewing hidden files? And yes it should be in the default root folder. My guess is that there's one there already, but PHP can't write to it.
Quote from: assam_siddibapa on January 18, 2009, 10:05:51 AM
last time i cleard some 15000 pages
And it continues to come up after enabling the mod?
Thanks Dannii, I can see it now. For some reason I can see it in another Filezilla (at work) just fine :) the content is:
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: January 18, 2009, 15:05
RewriteEngine on
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|vote|viewquery|who|\.xml)/?$ ./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]
What is wrong here? The URLs get rewritten just fine but the links go to 404 pages. Do I need the "extension-none" package you are talking about in the first page? If so, where can I get it? I don't see it anywhere.
Quote from: Dannii on April 18, 2008, 06:29:13 AM
Quote from: darkelhaym on April 17, 2008, 02:00:48 PMI did. I also deactivated mod_security, but it didn't work. I have an update on the error though: it seems the bad request is given only for the exclamation point (in boards or topic titles). The rest of the special characters is working fine. Since the problem is only for the exclamation point maybe there's a manual fix I can do. I had to edit some files manually for installation (100% sure I did touch index.php, Display.php, Subs.php and ModSettings.php) so I might have missed something but I don't know where to start from. Thanks again for any help.
If you delete the line with the exclamation mark from Subs-PrettyUrls.php and delete the tables then when you reinstall the mod that should fix the problem. (Delete the line from the file in the archive I mean.)
Is there any chance you could let me know what the line of text I need to delete is please. Apart from this one niggle, this is an awesome mod. Cheers!!
Quote from: coendeurloo on January 19, 2009, 09:24:41 AM
Quote from: Dannii on January 18, 2009, 07:18:16 PM
Quote from: coendeurloo on January 18, 2009, 09:03:22 AMI've got Filezilla as FTP Client, it should be able to see the .htaccess file. Is it generated in the default forum root folder?
I have uninstalled/reinstalled it...no errors, but no .htacces either...
Have a look at the filezilla settings, you might need to turn on viewing hidden files? And yes it should be in the default root folder. My guess is that there's one there already, but PHP can't write to it.
Quote from: assam_siddibapa on January 18, 2009, 10:05:51 AM
last time i cleard some 15000 pages
And it continues to come up after enabling the mod?
Thanks Dannii, I can see it now. For some reason I can see it in another Filezilla (at work) just fine :) the content is:
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: January 18, 2009, 15:05
RewriteEngine on
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|vote|viewquery|who|\.xml)/?$ ./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]
What is wrong here? The URLs get rewritten just fine but the links go to 404 pages. Do I need the "extension-none" package you are talking about in the first page? If so, where can I get it? I don't see it anywhere.
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: January 18, 2009, 15:05
RewriteEngine on
RewriteBase /
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|vote|viewquery|who|\.xml)/?$ ./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]
The RewriteBase / should fix that.
Hi,
I changed a member username. now when clicking on his name, forums says username doesn't exists. I fixed this problem but manually changing the url in the pretty urls table cache. Just thought to let you know.
Quote from: MrMoney on January 20, 2009, 01:20:58 AM
The RewriteBase / should fix that.
Unfortunatly that does not work, the 404 page remains.
Quote from: coendeurloo on January 20, 2009, 03:12:53 AM
Quote from: MrMoney on January 20, 2009, 01:20:58 AM
The RewriteBase / should fix that.
Unfortunatly that does not work, the 404 page remains.
Where is the .htaaccess located, forum root right?
Quote from: MrMoney on January 20, 2009, 04:40:32 AM
Quote from: coendeurloo on January 20, 2009, 03:12:53 AM
Quote from: MrMoney on January 20, 2009, 01:20:58 AM
The RewriteBase / should fix that.
Unfortunatly that does not work, the 404 page remains.
Where is the .htaaccess located, forum root right?
That's right. I have a Joomla installation at http://beta.caudata.nl. The forum is located in http://beta.caudata.nl/forum, and the .htaccess is in the forum's root dir.
Quote from: JoshieDaMan on January 19, 2009, 05:11:12 AM
I need a redirecting code for this. There's one feature that aren't working that I have integrated. How to get it to redirect to /index.php?action=chat because it redirected me to /chat and it's not working properly. Only shown the template but not the chat.
It is probably using relative URLs. Make sure everything uses full URLs with http://yourdomain.com (http://yourdomain.com) etc. If that doesn't work I'll look into it more.
coendeurloo, you sure your server supports both mod_rewrite and .htaccess?
Ahh wait, you have Joomla? It probably has a .htaccess file of it's own which is conflicting with the forum's. Can you check that?
CueBurn: '!' => array ('!'),
asmith, ahh yes. Hadn't thought of that. Hopefully will get around to fixing it some day...
Quote from: Dannii on January 20, 2009, 04:56:20 AM
coendeurloo, you sure your server supports both mod_rewrite and .htaccess?
Ahh wait, you have Joomla? It probably has a .htaccess file of it's own which is conflicting with the forum's. Can you check that?
Yes - I have a .htaccess in the Joomla root to. Should I put the content of the prettyurls .htaccess in the joomla's .htaccess and put it in the Joomla root?
If you post joomla's .htaccess I'll see what can be done...
Quote from: Dannii on January 20, 2009, 05:28:53 AM
If you post joomla's .htaccess I'll see what can be done...
Sure, here it is:
##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
RewriteBase /
########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
Try adding the mod's .htaccess file before all of that. You will need to add forum/ at the beginning of each like this:
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
Quote from: Dannii on January 15, 2009, 08:36:50 AM
Quote from: pcigre on January 15, 2009, 04:44:00 AM
I'm having some performance issues with PRetty url...
"Page created in 1.847 seconds with 18 queries. (Pretty URLs adds 1.779s, 2q)"
and on many pages even more... our forum haqs about 300k posts. Its on VPS.
smf_pretty_urls_cache 1,085,225 records in it and 147MB ...
Oh dear!
Can you turn on the query debugging, and copy that info here please?
Quote from: Moif on January 15, 2009, 05:52:04 AM
Hello!
I installed this mod and nothing happened! I checked my error logs and I'm seeing:
Quote
8: Undefined index: pretty_admin_menu
File: [PATH OMITTED]/forums/Sources/Subs.php
Line: 2895
So I've had a look at line 2895 and can see ?action=admin;area=pretty which I tagged onto the end of my forum index url manually in the browser and there was the admin panel :) So I have it installed and working but I'm getting that error and have no pretty_admin_menu
Any advice?
Looks like the language files didn't get modified correctly. Make sure all the entries got added to modifications.english.php.
Ok, thanks. Great mod btw.
How i can set pretty urls info in the footer?
Quote from: Dannii on January 20, 2009, 06:07:02 AM
Try adding the mod's .htaccess file before all of that. You will need to add forum/ at the beginning of each like this:
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
Thanks Dannii, it doesn't seem to work yet though. It recreated the .htaccess in the forums root too when I enabled pretty urls again, but I've deleted it, yet it doesn't work. this is my current .htaccess file situated in the joomla root:
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: January 20, 2009, 9:10
RewriteEngine on
RewriteBase /
# Rules for: actions
RewriteRule ^forum/(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^forum/(verificationcode|vote|viewquery|who|\.xml)/?$ ./index.php?pretty;action=$1 [L,QSA]
# Rules for: boards
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]
# Rules for: topics
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]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
RewriteBase /
########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
Dark-Wolf, what info?
coendeurloo, arghh silly me sorry. Before index.php add another forum/
Quote from: Dannii on January 20, 2009, 06:00:47 PM
Dark-Wolf, what info?
n°queries etc :)
Edit:
Like this:
Page created in 0.22 seconds with 13 queries. (Pretty URLs adds 0.024s, 1q)
Quote from: Dannii on January 20, 2009, 04:56:20 AM
CueBurn: '!' => array ('!'),
Thank you! I've removed the line and managed to create a "tar.gz" file to then reinstall. It's still not recognising links with a "!" at the end though (of which there are a lot on my forum!)... I think there were some tables or something that needed to be removed too? If it's not too much trouble would you mind letting me know what the next step is please? I'm not a whizz at coding but I try! Cheers :D
Quote from: Dannii on January 20, 2009, 06:00:47 PM
Dark-Wolf, what info?
coendeurloo, arghh silly me sorry. Before index.php add another forum/
You are my hero and you rule! Thanks a million, it works like a charm!
Hey, I have enjoyed using this mod - definitely cleans things up a lot for the members. Until recently I had been running it - I am now having a pretty big issue.
So I have been trying to do some canonical changes in my urls from non-www to www only so I disabled and uninstalled the mod. I later turned it back on after changing everything back in my .htaccess file and it works fine for the most part... HOWEVER, now when a member is logged in at the Index level, everythings great - when they go to a board or topic, it immediately shows that a member is no longer logged in. If I hit the home/forum button it goes back to the index and shows as being logged in again!
I have disabled it for now and everything is ok with the members staying logged in, so I'm assuming it is something with what I did with pretty url earlier. Any ideas?
You know, I just noticed that it states that it uses the user name not the display name... is this perhaps the problem, since the account that I am using has a different username than the display name?
Quote from: Dannii on January 20, 2009, 04:56:20 AM
Quote from: JoshieDaMan on January 19, 2009, 05:11:12 AM
I need a redirecting code for this. There's one feature that aren't working that I have integrated. How to get it to redirect to /index.php?action=chat because it redirected me to /chat and it's not working properly. Only shown the template but not the chat.
It is probably using relative URLs. Make sure everything uses full URLs with http://yourdomain.com (http://yourdomain.com) etc. If that doesn't work I'll look into it more.
The url is with www and as well without www. But most used is www.
EDIT: Won't let me even go to /blog where the wordpress is, and others.
From my precedent post.
Footer Info like this:
Page created in 0.22 seconds with 13 queries. (Pretty URLs adds 0.024s, 1q)
-
New question:
I've update Subs-PrettyUrls.php with this: // Build the new .htaccess file
$htaccess = '# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: ' . date('F j, Y, G:i') . '
# MOD by DarkWolf
# Favicon
AddType image/x-icon .ico
RewriteEngine on
RewriteBase /forum
# Rules for: guestbook
RewriteRule ^guestbook/$ /forum/index.php?action=guestbook [L,QSA]
# Rules for: rules
RewriteRule ^regolamento/$ /forum/index.php?action=rules [L,QSA]
# Rules for: sitemap
RewriteRule ^sitemap-php/$ /forum/index.php?action=sitemap [L,QSA]
RewriteRule ^smf_sitemap.xml$ /forum/index.php?action=sitemap;xml [L,QSA]
# Rules for: rss
RewriteRule ^rss/$ /forum/.xml/?type=rss [L,QSA]';
for some personal rules to the top of htaccess.
How i can edit to put other rules to the bottom?
For Add an Apache Error Handler to SMF (http://www.simplemachines.org/community/index.php?topic=259160.msg1813128#msg1813128) ???
Dannii: For a future version, are you planning on making it easier for admins to change the URL of a topic?
I often rename topics and would love to be able to change the URL along with that but at the moment it involves going into the database.
I'm trying to install Pretty URLs 0.9 on SMF 1.1.7 and I get this error in the package manager. I've tried all the standard fixes like manually creating the temp directory and setting the permissions to 777. Any ideas on how to get it installed?...
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification SMF1-1/Sources.xml Modification parse error
2. Execute Modification - Modification parse error
3. Execute Modification SMF1-1/BoardsAndTopics.xml Modification parse error
4. Execute Modification - Modification parse error
5. Execute Modification SMF1-1/Themes.xml Modification parse error
6. Execute Modification - Modification parse error
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
9. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
10. Extract File ./Sources/PrettyUrls.php
11. Extract File ./Sources/PrettyUrls-Filters.php
12. Extract File ./Sources/Subs-PrettyUrls.php
13. Extract File ./Themes/default/PrettyUrls.template.php
14. Extract Tree ./Themes/default/pretty
15. Extract File ./Themes/default/languages/PrettyUrls.english.php
16. Extract File ./Themes/default/languages/PrettyUrls.french.php
17. Execute Code SMF1-1/install.php
UPDATE: Examining the issue further, it appears that $sourcedir in the installation files is not resolving to the correct directory. Here's a sample message from the error log...
2: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/PrettyUrls.english.php) is not within the allowed path(s): (/var/www/vhosts/tankadin.com/httpdocs:/tmp)
File: /var/www/vhosts/tankadin.com/httpdocs/forum/Sources/Subs-Package.php
Line: 327
Just curious, is it possible to get phone suppot from sone one to walk me through the process of how to get my forum operating again?
I installed the Pretty URLs modification and my forum just shows an error message now.
http://guitaradvertisingforum.com
Thanks, Jordy
Quote from: Jordy3738 on January 23, 2009, 03:59:13 PM
Just curious, is it possible to get phone suppot from sone one to walk me through the process of how to get my forum operating again?
I installed the Pretty URLs modification and my forum just shows an error message now.
http://guitaradvertisingforum.com
Thanks, Jordy
Post Sources/QueryString.php
I'll try to figure it out.
Quote from: mark7144 on January 22, 2009, 08:54:39 AM
Dannii: For a future version, are you planning on making it easier for admins to change the URL of a topic?
I often rename topics and would love to be able to change the URL along with that but at the moment it involves going into the database.
Maybe you can make this mod:
http://www.simplemachines.org/community/index.php?topic=146969.msg1574878#msg1574878 ;)
I have make it fot my forum and it work fine :)
-
@Danni: i've fixed my precedent footer questions with this:
-
// Update the load times
//$pattern = '~<span class="smalltext">' . $txt['smf301'] . '([.0-9]+)' . $txt['smf302'] . '([0-9]+)' . $txt['smf302b'] . '</span>~';
$pattern = '~' . $txt['smf301'] . '([.0-9]+)' . $txt['smf302'] . '([0-9]+)' . $txt['smf302b'] . '~';
-
Theme problem, now is ok ;)
I am having problem with my rss feeds. My site url is http://www.cricket-highlights.com/index.php Can anyone tell me why links in feeds are not working correctly.
hello there,
after the upgrade i have an error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in www/forum/Sources/QueryString.php on line 217
i've uninstalled the old version and installed after the new version (0.9), the install process gaive me an error on "querystring.php" so i think all changes on that file weren't made so i did them manualy according to the parse code.
The new code changes a bit here so i don't know if it will make any difference :
old -> $_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
new -> $_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
How can i fix this pls ?
hello there, i'm trying to install this mod to localhost. i'm using SMF 1.1.7 with my own theme. this what happen when i'm trying to access my forum on localhost after it:
QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
:(
anyone can help me??
Quote from: apadong.net on January 24, 2009, 05:07:01 AM
hello there, i'm trying to install this mod to localhost. i'm using SMF 1.1.7 with my own theme. this what happen when i'm trying to access my forum on localhost after it:
QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
:(
anyone can help me??
it seems something related to the .htaccess
btw how can i change a given url name by pretty urls to something else ?
from www.domain.com/xtest to www.domain.com/test ?
The ideia is to create next a link to the user profile like www.domain.com/test/<username>
Quote from: locau on January 24, 2009, 06:09:42 AM
it seems something related to the .htaccess
here's inside my .htaccess:
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: January 24, 2009, 16:52
RewriteEngine on
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|admod|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewprofile|verificationcode|vote|viewquery|who|\.xml|tpadmin|forum)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(tpmod)/?$ ./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]
so, where's the problem?
Hi,
Dannii I installed this mod on another site. Which had nneonneo's shoutbox ruuning fine. Now when I open up a page, shoutbox loads fine, but 3, 4 seconds after the page is loaded, it gives me :
Quote
Fatal error: ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot use output buffering in output buffering display handlers in /home/site/public_html/forum/Sources/Subs.php on line 2656
I searched this topic and I found one guy asking about this, and you refer him to do some changes in the change.xml file, which I can't find it.
Any idea?
Hi danni
i tried asking at dev.eldacar link but seem it not working!So posting here!
Petty url is doing fine overall till now
But there is a PROBLEM
A specific Topic link in my board is not working . It just redirects to my hosts page with ads.
i remember i changed the Topic heading while trying to change its url. May be that caused it to go off.
I tried that help by you regarding truncate query for flushing url table .
& the ran maintanence. Now that topic url is changed to topic name but thread not appearing.
Seems like tht topic link has broken something in database.
Kindly guide how can i fix a thread link as its a good thread with some helping info for members.
Even if you think, its no due to pretty url's, help will be really helpful!
Regards
@danny:
I've this error in phpstats:
QUERY:
SELECT titlePage FROM php_stats_pages WHERE data='http://darkwolf.altervista.org/forum/modemrouter/guida-all'uso-di-ciclamab/' LIMIT 1
MySql ERROR:
1064: 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 'uso-di-ciclamab/' LIMIT 1' at line 1
how i can remove ' from url?
-
Edit: ok i've applied this fix: //"\x12" => array ("'", '"'),
http://www.simplemachines.org/community/index.php?topic=146969.msg1582472#msg1582472
And now phpstats rework fine :)
Can you confirm this fix for rel 0.9?
I have installed pretty url 0.9. I am using SMF 1.1.7. Everything is ok but When i changed category name or topic name, url isnt changing. Its old url. What can i do ?
Quote from: ysf1903 on January 25, 2009, 06:31:02 PM
I have installed pretty url 0.9. I am using SMF 1.1.7. Everything is ok but When i changed category name or topic name, url isnt changing. Its old url. What can i do ?
Not sure but doing maintaince in the pretty url could solve the problem. ;)
Quote from: bigboss2 on January 24, 2009, 12:10:16 AM
I am having problem with my rss feeds. My site url is http://www.cricket-highlights.com/index.php Can anyone tell me why links in feeds are not working correctly.
Can anyone help me. I have lot of feedburner subscriber and all getting wrong urls....
after installing the pretty url my site gets a 404 not found error.
the site opens first to the homepage but if you try clicking on any topic it brings the error.
what can i do please
either your host doesn't support url rewrite or mess up the install :p
Quote from: locau on January 26, 2009, 04:05:57 AM
either your host doesn't support url rewrite or mess up the install :p
please what do i do!!!
my site is not working and i mistakenly deleted the pretty url mod from my admin before the whole problem started.
How do i just get my site working please.
Quote from: bigboss2 on January 25, 2009, 09:38:22 PM
Quote from: ysf1903 on January 25, 2009, 06:31:02 PM
I have installed pretty url 0.9. I am using SMF 1.1.7. Everything is ok but When i changed category name or topic name, url isnt changing. Its old url. What can i do ?
Not sure but doing maintaince in the pretty url could solve the problem. ;)
Yes I did it but , Problem still continue
Quote from: CueBurn on January 20, 2009, 06:32:40 PM
Thank you! I've removed the line and managed to create a "tar.gz" file to then reinstall. It's still not recognising links with a "!" at the end though (of which there are a lot on my forum!)... I think there were some tables or something that needed to be removed too? If it's not too much trouble would you mind letting me know what the next step is please? I'm not a whizz at coding but I try! Cheers :D
Ahh, if you want to get rid of them for old topics too... well with phpMyAdmin empty both of the smf_pretty_urls_cache and smf_pretty_topic_urls tables.
Quote from: lobo777 on January 20, 2009, 08:00:11 PM
Hey, I have enjoyed using this mod - definitely cleans things up a lot for the members. Until recently I had been running it - I am now having a pretty big issue.
So I have been trying to do some canonical changes in my urls from non-www to www only so I disabled and uninstalled the mod. I later turned it back on after changing everything back in my .htaccess file and it works fine for the most part... HOWEVER, now when a member is logged in at the Index level, everythings great - when they go to a board or topic, it immediately shows that a member is no longer logged in. If I hit the home/forum button it goes back to the index and shows as being logged in again!
I have disabled it for now and everything is ok with the members staying logged in, so I'm assuming it is something with what I did with pretty url earlier. Any ideas?
Check your cookie settings, so that they'll work with all subdomains.
Quote from: lobo777 on January 20, 2009, 08:12:36 PM
You know, I just noticed that it states that it uses the user name not the display name... is this perhaps the problem, since the account that I am using has a different username than the display name?
That shouldn't matter.
Quote from: JoshieDaMan on January 20, 2009, 11:32:27 PM
The url is with www and as well without www. But most used is www.
EDIT: Won't let me even go to /blog where the wordpress is, and others.
Make this change to PrettyUrls-Filters.php:
if (in_array($matches[2], $context['pretty']['action_array']))
if (in_array($matches[2], $context['pretty']['action_array']) && $matches[2] != 'chat' && $matches[2] != 'blog')
Quote from: Dark-Wolf on January 21, 2009, 09:23:20 AM
From my precedent post.
Footer Info like this:
Page created in 0.22 seconds with 13 queries. (Pretty URLs adds 0.024s, 1q)
-
New question:
I've update Subs-PrettyUrls.php with this: // Build the new .htaccess file
$htaccess = '# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: ' . date('F j, Y, G:i') . '
# MOD by DarkWolf
# Favicon
AddType image/x-icon .ico
RewriteEngine on
RewriteBase /forum
# Rules for: guestbook
RewriteRule ^guestbook/$ /forum/index.php?action=guestbook [L,QSA]
# Rules for: rules
RewriteRule ^regolamento/$ /forum/index.php?action=rules [L,QSA]
# Rules for: sitemap
RewriteRule ^sitemap-php/$ /forum/index.php?action=sitemap [L,QSA]
RewriteRule ^smf_sitemap.xml$ /forum/index.php?action=sitemap;xml [L,QSA]
# Rules for: rss
RewriteRule ^rss/$ /forum/.xml/?type=rss [L,QSA]';
for some personal rules to the top of htaccess.
How i can edit to put other rules to the bottom?
For Add an Apache Error Handler to SMF (http://www.simplemachines.org/community/index.php?topic=259160.msg1813128#msg1813128) ???
Just add something to $htaccess before // Output the file
Quote from: mark7144 on January 22, 2009, 08:54:39 AM
Dannii: For a future version, are you planning on making it easier for admins to change the URL of a topic?
I often rename topics and would love to be able to change the URL along with that but at the moment it involves going into the database.
Yes I do, though honestly I don't know how long it will take. I'm very busy with uni and personal life issues.
Quote from: krick on January 22, 2009, 01:11:57 PM
I'm trying to install Pretty URLs 0.9 on SMF 1.1.7 and I get this error in the package manager. I've tried all the standard fixes like manually creating the temp directory and setting the permissions to 777. Any ideas on how to get it installed?...
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification SMF1-1/Sources.xml Modification parse error
2. Execute Modification - Modification parse error
3. Execute Modification SMF1-1/BoardsAndTopics.xml Modification parse error
4. Execute Modification - Modification parse error
5. Execute Modification SMF1-1/Themes.xml Modification parse error
6. Execute Modification - Modification parse error
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
9. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
10. Extract File ./Sources/PrettyUrls.php
11. Extract File ./Sources/PrettyUrls-Filters.php
12. Extract File ./Sources/Subs-PrettyUrls.php
13. Extract File ./Themes/default/PrettyUrls.template.php
14. Extract Tree ./Themes/default/pretty
15. Extract File ./Themes/default/languages/PrettyUrls.english.php
16. Extract File ./Themes/default/languages/PrettyUrls.french.php
17. Execute Code SMF1-1/install.php
UPDATE: Examining the issue further, it appears that $sourcedir in the installation files is not resolving to the correct directory. Here's a sample message from the error log...
2: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/PrettyUrls.english.php) is not within the allowed path(s): (/var/www/vhosts/tankadin.com/httpdocs:/tmp)
File: /var/www/vhosts/tankadin.com/httpdocs/forum/Sources/Subs-Package.php
Line: 327
Try extracting all of the files from the package into the temp folder yourself. If that doesn't work, please ask for help in the support forums, I don't have time to deal with package manager issues as well as mod issues sorry!
Quote from: Jordy3738 on January 23, 2009, 03:59:13 PM
Just curious, is it possible to get phone suppot from sone one to walk me through the process of how to get my forum operating again?
I installed the Pretty URLs modification and my forum just shows an error message now.
http://guitaradvertisingforum.com (http://guitaradvertisingforum.com)
Thanks, Jordy
No, though it looks like a simple problem. I would guess that the mod was installed twice.
Quote from: locau on January 24, 2009, 04:35:58 AM
hello there,
after the upgrade i have an error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in www/forum/Sources/QueryString.php on line 217
i've uninstalled the old version and installed after the new version (0.9), the install process gaive me an error on "querystring.php" so i think all changes on that file weren't made so i did them manualy according to the parse code.
The new code changes a bit here so i don't know if it will make any difference :
old -> $_REQUEST['board'] = str_replace(array(''', '\'), array("", ''), $_REQUEST['board']);
new -> $_REQUEST['board'] = str_replace(array(''', '\'), array("", ''), $_REQUEST['board']);
How can i fix this pls ?
Are you able to try reinstalling the mod again, but first using a fresh QueryString.php from the smf install package?
Quote from: apadong.net on January 24, 2009, 05:07:01 AM
hello there, i'm trying to install this mod to localhost. i'm using SMF 1.1.7 with my own theme. this what happen when i'm trying to access my forum on localhost after it:
QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
:(
anyone can help me??
Have you set it up to allow mod_rewrite and .htaccess? Did you check the server log like it suggested?
Quote from: locau on January 24, 2009, 06:12:56 AM
btw how can i change a given url name by pretty urls to something else ?
from www.domain.com/xtest (http://www.domain.com/xtest) to www.domain.com/test (http://www.domain.com/test) ?
The ideia is to create next a link to the user profile like www.domain.com/test/ (http://www.domain.com/test/)<username>
I don't understand what you're suggesting sorry.
Quote from: asmith on January 24, 2009, 09:33:25 AM
Hi,
Dannii I installed this mod on another site. Which had nneonneo's shoutbox ruuning fine. Now when I open up a page, shoutbox loads fine, but 3, 4 seconds after the page is loaded, it gives me :
Quote
Fatal error: ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot use output buffering in output buffering display handlers in /home/site/public_html/forum/Sources/Subs.php on line 2656
I searched this topic and I found one guy asking about this, and you refer him to do some changes in the change.xml file, which I can't find it.
Any idea?
Please post lines 2650-2660.
Quote from: freworld on January 24, 2009, 12:28:16 PM
Hi danni
i tried asking at dev.eldacar link but seem it not working!So posting here!
Petty url is doing fine overall till now
But there is a PROBLEM
A specific Topic link in my board is not working . It just redirects to my hosts page with ads.
i remember i changed the Topic heading while trying to change its url. May be that caused it to go off.
I tried that help by you regarding truncate query for flushing url table .
& the ran maintanence. Now that topic url is changed to topic name but thread not appearing.
Seems like tht topic link has broken something in database.
Kindly guide how can i fix a thread link as its a good thread with some helping info for members.
Even if you think, its no due to pretty url's, help will be really helpful!
Regards
Can you give me the actual links that are broken? I can't help you otherwise.
Quote from: Dark-Wolf on January 24, 2009, 04:44:36 PM
@danny:
I've this error in phpstats:
QUERY:
SELECT titlePage FROM php_stats_pages WHERE data='http://darkwolf.altervista.org/forum/modemrouter/guida-all'uso-di-ciclamab/' LIMIT 1
MySql ERROR:
1064: 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 'uso-di-ciclamab/' LIMIT 1' at line 1
how i can remove ' from url?
-
Edit: ok i've applied this fix: //"" => array ("'", '"'),
http://www.simplemachines.org/community/index.php?topic=146969.msg1582472#msg1582472 (http://www.simplemachines.org/community/index.php?topic=146969.msg1582472#msg1582472)
And now phpstats rework fine :)
Can you confirm this fix for rel 0.9?
It's a problem with phpstats, not this mod. 's are fine in URLs.
Quote from: ysf1903 on January 25, 2009, 06:31:02 PM
I have installed pretty url 0.9. I am using SMF 1.1.7. Everything is ok but When i changed category name or topic name, url isnt changing. Its old url. What can i do ?
That's by design because Cool URLs don't change (http://www.w3.org/Provider/Style/URI)
Quote from: bigboss2 on January 26, 2009, 02:32:22 AM
Quote from: bigboss2 on January 24, 2009, 12:10:16 AM
I am having problem with my rss feeds. My site url is http://www.cricket-highlights.com/index.php (http://www.cricket-highlights.com/index.php) Can anyone tell me why links in feeds are not working correctly.
Can anyone help me. I have lot of feedburner subscriber and all getting wrong urls....
Your forum's feeds look fine to me. If your feedburner subscribers are having problems... well did you update the URL in feedburner?
Quote from: thegiftedhands on January 26, 2009, 03:33:39 AM
after installing the pretty url my site gets a 404 not found error.
the site opens first to the homepage but if you try clicking on any topic it brings the error.
what can i do please
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Follow the first section to disable the mod. Then double check that your server supports everything required.
Quote from: sbmcos on January 26, 2009, 05:46:38 AM
guys, help me
i installed the p-url mod on 1.1.7
the mod is working fine, all urls are also fine
but the attachments have some issue,
when i try to open an attached image, it asks me to download it ( all formats)
earlier it use to show a thumbnail too, but its gone now
please resolve this
example topic http://forum.soumik-ace.com/news-discussions/smallest-exoplanet-has-1-4-earth-masses/ (http://forum.soumik-ace.com/news-discussions/smallest-exoplanet-has-1-4-earth-masses/)
Are you using 0.9?
"create a new .php file with this code:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_enable_filters' => '0'));
?>
Upload the file to the same location as your forum's SSI.php and open it with your web browser. Then don't forget to delete it!"
How do i creat a new .php?
It is in Cpanel?
Please am not good with codes
Quote
Quote from: locau on January 24, 2009, 04:35:58 AM
hello there,
after the upgrade i have an error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in www/forum/Sources/QueryString.php on line 217
i've uninstalled the old version and installed after the new version (0.9), the install process gaive me an error on "querystring.php" so i think all changes on that file weren't made so i did them manualy according to the parse code.
The new code changes a bit here so i don't know if it will make any difference :
old -> $_REQUEST['board'] = str_replace(array(''', '\'), array("", ''), $_REQUEST['board']);
new -> $_REQUEST['board'] = str_replace(array(''', '\'), array("", ''), $_REQUEST['board']);
How can i fix this pls ?
Are you able to try reinstalling the mod again, but first using a fresh QueryString.php from the smf install package?
I can try but will this damage my current smf site / database ?
QuoteQuote from: locau on January 24, 2009, 06:12:56 AM
btw how can i change a given url name by pretty urls to something else ?
from www.domain.com/xtest to www.domain.com/test ?
The ideia is to create next a link to the user profile like www.domain.com/test/<username>
I don't understand what you're suggesting sorry.
The main ideia is since this is a SEF mod is there any way i can edit or change a given url name
from www.domain.com/xtest to www.domain.com/test ?
if you notice i remove the "x" from "xtest", some sort of edit option on the listed urls
Quote from: thegiftedhands on January 26, 2009, 06:50:09 AM
"create a new .php file with this code:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_enable_filters' => '0'));
?>
Upload the file to the same location as your forum's SSI.php and open it with your web browser. Then don't forget to delete it!"
How do i creat a new .php?
It is in Cpanel?
Please am not good with codes
Yes you should be able to upload a file with Cpanel. Ask your host for help if you need to.
Quote from: locau on January 26, 2009, 07:12:15 AM
I can try but will this damage my current smf site / database ?
Well isn't it broken at the moment? In any case... no it won't break it.
QuoteThe main ideia is since this is a SEF mod is there any way i can edit or change a given url name
from www.domain.com/xtest to www.domain.com/test ?
if you notice i remove the "x" from "xtest", some sort of edit option on the listed urls
What is xtest? A board? An action?
Quote from: Dannii on January 26, 2009, 07:42:47 AM
Quote from: thegiftedhands on January 26, 2009, 06:50:09 AM
"create a new .php file with this code:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_enable_filters' => '0'));
?>
Upload the file to the same location as your forum's SSI.php and open it with your web browser. Then don't forget to delete it!"
How do i creat a new .php?
It is in Cpanel?
Please am not good with codes
Yes you should be able to upload a file with Cpanel. Ask your host for help if you need to.
Quote from: locau on January 26, 2009, 07:12:15 AM
I can try but will this damage my current smf site / database ?
Well isn't it broken at the moment? In any case... no it won't break it.
QuoteThe main ideia is since this is a SEF mod is there any way i can edit or change a given url name
from www.domain.com/xtest to www.domain.com/test ?
if you notice i remove the "x" from "xtest", some sort of edit option on the listed urls
What is xtest? A board? An action?
i created a .php file (NEW.php) in the same location as SSI.php. I clicked to edit it and pasted the code. But its still not working.
What do i need to do?
The point is i have two SSI.php
One in the Public_html and the other in Pubic_html/forum.
Kindly give me direction, i'll find my way through
Upload the file to the same location as your forum's SSI.php and open it with your web browser.
which file am i to open with my web browser?
Is the code supposed to change the settings on my site?
www.orita-meta.com
Please check it out.
I really need to get this site back paid for some ads in local newspapers and magazines in my Country Nigeria and the ads will be displayed by Tuesday morning.
Besides losing money, the irritation guest will get upon visiting the site is driving me nuts.
Help me please
QuoteAre you using 0.9?
yes, plzz help
Hi danni. click on any url of feed. You will notice that it goes to homepage rather any specific topic. http://www.cricket-highlights.com/.xml/?type=rss
ok. It looks problem was with .htaccess. I added some rewrite which affected urls of rss. Thanks dannii..
ok my attachment issue is now resolved.
thank u
QuoteThe main ideia is since this is a SEF mod is there any way i can edit or change a given url name
from www.domain.com/xtest to www.domain.com/test ?
if you notice i remove the "x" from "xtest", some sort of edit option on the listed urls
What is xtest? A board? An action?
[/quote]
Xtest is an action (i used this name as a example because the name that appears is another one)
here, from 2640 to 2667 (the function starts exactly at 2640)
function obExit($header = null, $do_footer = null, $from_index = false)
{
global $context, $settings, $modSettings, $txt;
static $header_done = false, $footer_done = false;
// Clear out the stat cache.
trackStats();
$do_header = $header === null ? !$header_done : $header;
if ($do_footer === null)
$do_footer = $do_header;
// Has the template/header been done yet?
if ($do_header)
{
// Start up the session URL fixer.
ob_start('ob_sessrewrite');
// Just in case we have anything bad already in there...
if ((isset($_REQUEST['debug']) || isset($_REQUEST['xml']) || (WIRELESS && WIRELESS_PROTOCOL == 'wap')) && in_array($txt['lang_locale'], array('UTF-8', 'ISO-8859-1')))
ob_start('validate_unicode__recursive');
if (!empty($settings['output_buffers']) && is_string($settings['output_buffers']))
$buffers = explode(',', $settings['output_buffers']);
elseif (!empty($settings['output_buffers']))
$buffers = $settings['output_buffers'];
else
$buffers = array();
thegiftedhands, you shouldn't have two SSI.php files. But upload the new one to where the index.php that you use to access the forum is. Then open that new file in your browser.
sbmcos, Good to hear it works now :)
Quote from: locau on January 26, 2009, 11:34:11 AM
Xtest is an action (i used this name as a example because the name that appears is another one)
Well you could try editing PrettyUrls-Filters.php to do something specific for that action, but I wouldn't recommend it, it sounds dangerous.
asmith, I'm guessing the shoutbox mod is calling obExit() when it shouldn't. Can you ask the shoutbox mod's author for help?
why when I disable pretty urls it works fine?
Quote from: Dannii on January 26, 2009, 06:13:06 AM
Have you set it up to allow mod_rewrite and .htaccess? Did you check the server log like it suggested?
I'm tested in localhost with WAMP.
The log said:
Quotehttp://localhost/forum1/index.php?action=forum
8: Undefined index: pretty_enable_filters
File: D:\WAMP\www\forum1\Sources\QueryString.php
Line: 518
and, when i'm checking to the file QueryString.php:
// Rewrite the buffer with Pretty URLs!
if ($modSettings['pretty_enable_filters'])
{
require_once($sourcedir . '/PrettyUrls-Filters.php');
$buffer = pretty_rewrite_buffer($buffer);
}
so please, help me what should i do :(
Quote from: Carloswaldo on January 02, 2009, 01:50:59 PM
I've got a problem with Pretty URLs, I changed my hosting, reload the db backup, everything is fine, except when I try to install again the Pretty URLs mod, it gives me the urls of the previous hosting, how can I fix it?
i have what i think is a simple problem, but as i am unfamiliar with mod_rewrite rules, i don't know how to fix it....
my domain cbrjunkie.com does not point to the root of my hosting....rather...i have the domain pointing directly to the /forum directory....what that means....
rather than the traditional format of http://cbrjunkie.com/forum/index.php
my site accesses the the forum via http://cbrjunkie.com - that is without the /forum
when i turn on pretty urls, what happens is i get a 404 error saying it can't find /forum/index.php so what i am assuming is happening is that pretty urls is masking the urls using the assumption that the initial locations are based out of /forums
since mine TECHNICALLY are but the domain doesn't seem them this way, i need to remove the masking of the /forums part...
is that understandable...lol...
anyways...any thoughts as to how to change this?
hi buddy . i need your urgent help . i have installed your pretty url mode on my forum www.bollychilli.com and i have enabled option for rewriting urls. now my forum has stopped working i am not able to go anywhere not in admin panel also. please help me out what to do now it shows 404 page not found in every option of my board. please reply me on my email
[email protected]
Quote from: yourdailysaver on January 27, 2009, 04:53:04 PM
hi buddy . i need your urgent help . i have installed your pretty url mode on my forum www.bollychilli.com and i have enabled option for rewriting urls. now my forum has stopped working i am not able to go anywhere not in admin panel also. please help me out what to do now it shows 404 page not found in every option of my board. please reply me on my email [email protected]
well it seemd to be working now, but when u enable the mod, only enable rewrite for borads,topics,profiles, leave actions out of it , ok!
I'm using 0.8.4. My site had about 700 Guests online. Site went down and host sent me this message:
QuoteHi,
I found a couple hundred of these:
| 334 | ecricnet_smf1 | localhost | ecricnet_smf1 | Query | 10 | Locked | SELECT url_id, replacement
FROM smf_pretty_urls_cache
WHERE url_id IN ('http://ecric.net/The |
Your site is the one causing this again...
I had to suspend it to get the load back down to normal. You'll have to remove that MOD.
Is it safe to use 0.9?
I have a bizarre problem and wondering if anyone has run into this.
The mod installs fine and every page works like it should EXCEPT the private message page. When i click on the link to that page I just get a blank white page with no information and no error messages. If I unselect the pretty urls admin setting 'enable URL rewritting' I can reach my private messages. If i turn on URL rewritting, and even unselect the 'action' button, the PM area is still white
any suggestions?
Hi,
I have installed Pretty URLs 0.9 to my forum, which is set up on IIS7 with the URL rewrite module.
I can type a freindly url, like http://www.cooksongold.com/forum/general-discussion and it goes to the correct page, but all the links on the forum pages point to the original urls containing index.php?action=......
Is there something in the mod checking what type of server the forum is hosted on, and if there is is there a way to bypass it?
Thanks
Dave
I need another piece of code. In arcade, after you save score. It will take you error page "you cannot save score" but then I disabled pretty url action, it would save score. How can I get it to save score while using action prettyurl to save score?
Not Found
The requested URL /arcade/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Saving score redirect "index.php?action=arcade"
I seem to have a problem with PrettyURLs, it occurs when an email is sent due to an updated topic - I click the link in the email and almost immediately get a 503 error from my server - if I hit refresh, it then works fine?
The link in the email is a NON prettyURL format, after I click the link smf seems to redirect to the PrettyURL version, thats when the 503 hits.
Any ideas?
@Dannii:
I've test to edit like this: $htaccess = str_replace('#ACTIONS', $actions_rewrite, $htaccess);
}
$htaccess = '
# beginning of directives for Apache Error Handling modification
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /forum/index.php?action=error;code=404
ErrorDocument 400 /forum/index.php?action=error;code=400
ErrorDocument 401 /forum/index.php?action=error;code=401
ErrorDocument 402 /forum/index.php?action=error;code=402
ErrorDocument 403 /forum/index.php?action=error;code=403
ErrorDocument 404 /forum/index.php?action=error;code=404
ErrorDocument 405 /forum/index.php?action=error;code=405
ErrorDocument 406 /forum/index.php?action=error;code=406
ErrorDocument 407 /forum/index.php?action=error;code=407
ErrorDocument 408 /forum/index.php?action=error;code=408
ErrorDocument 409 /forum/index.php?action=error;code=409
ErrorDocument 410 /forum/index.php?action=error;code=410
ErrorDocument 411 /forum/index.php?action=error;code=411
ErrorDocument 412 /forum/index.php?action=error;code=412
ErrorDocument 413 /forum/index.php?action=error;code=413
ErrorDocument 414 /forum/index.php?action=error;code=414
ErrorDocument 415 /forum/index.php?action=error;code=415
ErrorDocument 416 /forum/index.php?action=error;code=416
ErrorDocument 417 /forum/index.php?action=error;code=417
ErrorDocument 500 /forum/index.php?action=error;code=500
ErrorDocument 501 /forum/index.php?action=error;code=501
ErrorDocument 502 /forum/index.php?action=error;code=502
ErrorDocument 503 /forum/index.php?action=error;code=503
ErrorDocument 504 /forum/index.php?action=error;code=504
ErrorDocument 505 /forum/index.php?action=error;code=505
# end of directives for Apache Error Handling modification';
// Output the file
$handle = fopen($boarddir . '/.htaccess', 'w');
but this is my htaccess after a maintenance:
# beginning of directives for Apache Error Handling modification
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /forum/index.php?action=error;code=404
ErrorDocument 400 /forum/index.php?action=error;code=400
ErrorDocument 401 /forum/index.php?action=error;code=401
ErrorDocument 402 /forum/index.php?action=error;code=402
ErrorDocument 403 /forum/index.php?action=error;code=403
ErrorDocument 404 /forum/index.php?action=error;code=404
ErrorDocument 405 /forum/index.php?action=error;code=405
ErrorDocument 406 /forum/index.php?action=error;code=406
ErrorDocument 407 /forum/index.php?action=error;code=407
ErrorDocument 408 /forum/index.php?action=error;code=408
ErrorDocument 409 /forum/index.php?action=error;code=409
ErrorDocument 410 /forum/index.php?action=error;code=410
ErrorDocument 411 /forum/index.php?action=error;code=411
ErrorDocument 412 /forum/index.php?action=error;code=412
ErrorDocument 413 /forum/index.php?action=error;code=413
ErrorDocument 414 /forum/index.php?action=error;code=414
ErrorDocument 415 /forum/index.php?action=error;code=415
ErrorDocument 416 /forum/index.php?action=error;code=416
ErrorDocument 417 /forum/index.php?action=error;code=417
ErrorDocument 500 /forum/index.php?action=error;code=500
ErrorDocument 501 /forum/index.php?action=error;code=501
ErrorDocument 502 /forum/index.php?action=error;code=502
ErrorDocument 503 /forum/index.php?action=error;code=503
ErrorDocument 504 /forum/index.php?action=error;code=504
ErrorDocument 505 /forum/index.php?action=error;code=505
# end of directives for Apache Error Handling modification
(only this code) :-[
Quote from: asmith on January 27, 2009, 12:18:00 AM
why when I disable pretty urls it works fine?
Because then it's only calling obExit() once I guess...
Quote from: apadong.net on January 27, 2009, 02:36:19 AM
I'm tested in localhost with WAMP.
The log said:
Quotehttp://localhost/forum1/index.php?action=forum
8: Undefined index: pretty_enable_filters
File: D:\WAMP\www\forum1\Sources\QueryString.php
Line: 518
and, when i'm checking to the file QueryString.php:
// Rewrite the buffer with Pretty URLs!
if ($modSettings['pretty_enable_filters'])
{
require_once($sourcedir . '/PrettyUrls-Filters.php');
$buffer = pretty_rewrite_buffer($buffer);
}
so please, help me what should i do :(
Did you check the server log? That sure looks like the SMF log which will have different info.
And, that error will disappear when you enable the mod, it's not the problem.
Quote from: Carloswaldo on January 27, 2009, 01:00:56 PM
I've got a problem with Pretty URLs, I changed my hosting, reload the db backup, everything is fine, except when I try to install again the Pretty URLs mod, it gives me the urls of the previous hosting, how can I fix it?
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Follow the second section then run maintenance.
Quote from: ffingers on January 27, 2009, 01:43:31 PM
i have what i think is a simple problem, but as i am unfamiliar with mod_rewrite rules, i don't know how to fix it....
my domain cbrjunkie.com does not point to the root of my hosting....rather...i have the domain pointing directly to the /forum directory....what that means....
rather than the traditional format of http://cbrjunkie.com/forum/index.php
my site accesses the the forum via http://cbrjunkie.com - that is without the /forum
when i turn on pretty urls, what happens is i get a 404 error saying it can't find /forum/index.php so what i am assuming is happening is that pretty urls is masking the urls using the assumption that the initial locations are based out of /forums
since mine TECHNICALLY are but the domain doesn't seem them this way, i need to remove the masking of the /forums part...
is that understandable...lol...
anyways...any thoughts as to how to change this?
Did you ever move the forum? Try doing the second section of the trouble shooting page too.
Quote from: yourdailysaver on January 27, 2009, 04:53:04 PM
hi buddy . i need your urgent help . i have installed your pretty url mode on my forum www.bollychilli.com and i have enabled option for rewriting urls. now my forum has stopped working i am not able to go anywhere not in admin panel also. please help me out what to do now it shows 404 page not found in every option of my board. please reply me on my email [email protected]
Please follow the first section of the trouble shooting page.
Quote from: PanesarV on January 28, 2009, 01:31:45 AM
I'm using 0.8.4. My site had about 700 Guests online. Site went down and host sent me this message:
QuoteHi,
I found a couple hundred of these:
| 334 | ecricnet_smf1 | localhost | ecricnet_smf1 | Query | 10 | Locked | SELECT url_id, replacement
FROM smf_pretty_urls_cache
WHERE url_id IN ('http://ecric.net/The |
Your site is the one causing this again...
I had to suspend it to get the load back down to normal. You'll have to remove that MOD.
Is it safe to use 0.9?
Do you have any errors?
And yes it's safe, but it probably won't have any fewer queries. If you have a lot of people online then you're going to make a lot of queries.
Quote from: tdot on January 28, 2009, 03:03:56 AM
I have a bizarre problem and wondering if anyone has run into this.
The mod installs fine and every page works like it should EXCEPT the private message page. When i click on the link to that page I just get a blank white page with no information and no error messages. If I unselect the pretty urls admin setting 'enable URL rewritting' I can reach my private messages. If i turn on URL rewritting, and even unselect the 'action' button, the PM area is still white
any suggestions?
Anything in the smf or apache error logs?
Quote from: dgrose on January 28, 2009, 05:25:34 AM
Hi,
I have installed Pretty URLs 0.9 to my forum, which is set up on IIS7 with the URL rewrite module.
I can type a freindly url, like http://www.cooksongold.com/forum/general-discussion and it goes to the correct page, but all the links on the forum pages point to the original urls containing index.php?action=......
Is there something in the mod checking what type of server the forum is hosted on, and if there is is there a way to bypass it?
Thanks
Dave
No it doesn't check what server... have you enabled URL rewriting? Tried running maintenance?
Quote from: JoshieDaMan on January 28, 2009, 06:14:11 AM
I need another piece of code. In arcade, after you save score. It will take you error page "you cannot save score" but then I disabled pretty url action, it would save score. How can I get it to save score while using action prettyurl to save score?
Not Found
The requested URL /arcade/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Saving score redirect "index.php?action=arcade"
Have you tried enabling the arcade filter which can be installed with the extras package?
Quote from: @sh on January 28, 2009, 03:04:20 PM
I seem to have a problem with PrettyURLs, it occurs when an email is sent due to an updated topic - I click the link in the email and almost immediately get a 503 error from my server - if I hit refresh, it then works fine?
The link in the email is a NON prettyURL format, after I click the link smf seems to redirect to the PrettyURL version, thats when the 503 hits.
Any ideas?
Can you provide any more details? What is the non pretty URL? What does it get redirected to?
Dark-Wolf try this:
$htaccess = str_replace('#ACTIONS', $actions_rewrite, $htaccess);
}
$htaccess += '
# beginning of directives for Apache Error Handling modification
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /forum/index.php?action=error;code=404
ErrorDocument 400 /forum/index.php?action=error;code=400
ErrorDocument 401 /forum/index.php?action=error;code=401
ErrorDocument 402 /forum/index.php?action=error;code=402
ErrorDocument 403 /forum/index.php?action=error;code=403
ErrorDocument 404 /forum/index.php?action=error;code=404
ErrorDocument 405 /forum/index.php?action=error;code=405
ErrorDocument 406 /forum/index.php?action=error;code=406
ErrorDocument 407 /forum/index.php?action=error;code=407
ErrorDocument 408 /forum/index.php?action=error;code=408
ErrorDocument 409 /forum/index.php?action=error;code=409
ErrorDocument 410 /forum/index.php?action=error;code=410
ErrorDocument 411 /forum/index.php?action=error;code=411
ErrorDocument 412 /forum/index.php?action=error;code=412
ErrorDocument 413 /forum/index.php?action=error;code=413
ErrorDocument 414 /forum/index.php?action=error;code=414
ErrorDocument 415 /forum/index.php?action=error;code=415
ErrorDocument 416 /forum/index.php?action=error;code=416
ErrorDocument 417 /forum/index.php?action=error;code=417
ErrorDocument 500 /forum/index.php?action=error;code=500
ErrorDocument 501 /forum/index.php?action=error;code=501
ErrorDocument 502 /forum/index.php?action=error;code=502
ErrorDocument 503 /forum/index.php?action=error;code=503
ErrorDocument 504 /forum/index.php?action=error;code=504
ErrorDocument 505 /forum/index.php?action=error;code=505
# end of directives for Apache Error Handling modification';
// Output the file
$handle = fopen($boarddir . '/.htaccess', 'w');
Is strange but now after maintenance my htaccess contain only one 0 :(
Thanks for your time ;)
Thanks Dannii, will give you more information next time it occurs.
Quote from: Dannii on January 29, 2009, 08:37:42 AM
Quote from: tdot on January 28, 2009, 03:03:56 AM
I have a bizarre problem and wondering if anyone has run into this.
The mod installs fine and every page works like it should EXCEPT the private message page. When i click on the link to that page I just get a blank white page with no information and no error messages. If I unselect the pretty urls admin setting 'enable URL rewritting' I can reach my private messages. If i turn on URL rewritting, and even unselect the 'action' button, the PM area is still white
any suggestions?
Anything in the smf or apache error logs?
[/quote]
thanks for all the replies!
no, nothing either place :(
Ahhhh, it just happened, the URL in my 'Topic Updated' email was...
http://www.*************.co.uk/index.php?topic=11.new;topicseen#new
Upon clicking on it, it converted it to:
http://www.*************.co.uk/nadejah-williams/video-nadejah-williams's-intro-video-on-c4/new/?PHPSESSID=5tg2qruqpmaiudikiso59mpvd4;topicseen
At which point the browser said...
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
I managed to eventually get to the update topic itself by REMOVING this bit at the end of the changed URL
PHPSESSID=5tg2qruqpmaiudikiso59mpvd4;topicseen
What do you think?
Dannii...I may have asked before but do I need to uninstall the current version before uploading and installing the new 0.9 version. I have 0.8.4 now.
@Dannii
no see i did not have pretty urls installed before i switched over the forum....
the thing is....the directory structure is the same...only the domain directs straight to the /forum folder.....
that troubleshooting doesn't seem like it will help
<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_root_url' => $boardurl));
?>
as my boardurl i believe would still be forum/index.php....rather...i need pretty urls to see it as just index.php without the forum....
where in pretty urls does it create the link or from what variables
I don't know the code to enable the filter, I mean I am confused here. How to filter it?
Quote from: Dark-Wolf on January 29, 2009, 08:50:17 AM
Is strange but now after maintenance my htaccess contain only one 0 :(
Thanks for your time ;)
What do you mean? It's just a single '0'?
Quote from: tdot on January 29, 2009, 09:36:42 AM
no, nothing either place :(
http://www.simplemachines.org/community/index.php?topic=146969.msg1896493#msg1896493 follow my instructions in this post to JoshieDaMan, except changing the actions you want of course.
Quote from: @sh on January 29, 2009, 10:34:20 AM
Ahhhh, it just happened, the URL in my 'Topic Updated' email was...
http://www.*************.co.uk/index.php?topic=11.new;topicseen#new
Upon clicking on it, it converted it to:
http://www.*************.co.uk/nadejah-williams/video-nadejah-williams's-intro-video-on-c4/new/?PHPSESSID=5tg2qruqpmaiudikiso59mpvd4;topicseen
At which point the browser said...
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
I managed to eventually get to the update topic itself by REMOVING this bit at the end of the changed URL
PHPSESSID=5tg2qruqpmaiudikiso59mpvd4;topicseen
What do you think?
Well this is a bug I've wanted to fix for a while, but I don't have a lot of time to do so. Is every email broken?
Quote from: cassie on January 29, 2009, 10:39:59 AM
Dannii...I may have asked before but do I need to uninstall the current version before uploading and installing the new 0.9 version. I have 0.8.4 now.
Yes. If you'd tried installing 0.9 you would have seen lots of errors ;)
Quote from: ffingers on January 29, 2009, 10:45:19 AM
@Dannii
no see i did not have pretty urls installed before i switched over the forum....
the thing is....the directory structure is the same...only the domain directs straight to the /forum folder.....
that troubleshooting doesn't seem like it will help
<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_root_url' => $boardurl));
?>
as my boardurl i believe would still be forum/index.php....rather...i need pretty urls to see it as just index.php without the forum....
where in pretty urls does it create the link or from what variables
Did you try it? It sets it to $boardurl, the same URL you access your forum from.
Quote from: JoshieDaMan on January 29, 2009, 04:51:56 PM
I don't know the code to enable the filter, I mean I am confused here. How to filter it?
http://code.google.com/p/prettyurls/downloads/list Download the extras package, install it in your forum and then enable the new filter in the pretty urls settings page.
Quote from: Dannii on January 30, 2009, 08:56:20 PM
Quote from: Dark-Wolf on January 29, 2009, 08:50:17 AM
Is strange but now after maintenance my htaccess contain only one 0 :(
Thanks for your time ;)
What do you mean? It's just a single '0'?
Yes! Empty htaccess with just a single 0 :-[
Oops. Replace += with .=
Quote from: Dannii on January 30, 2009, 10:08:01 PM
Oops. Replace += with .=
Thank'u very very much!
Now is perfect (with this simply to best indent) ;)
-
Final edit this:
$htaccess = str_replace('#ACTIONS', $actions_rewrite, $htaccess);
}
// Output the file
$handle = fopen($boarddir . '/.htaccess', 'w');
to this:
$htaccess = str_replace('#ACTIONS', $actions_rewrite, $htaccess);
}
$htaccess .= '
# beginning of directives for Apache Error Handling modification
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /forum/index.php?action=error;code=404
ErrorDocument 400 /forum/index.php?action=error;code=400
ErrorDocument 401 /forum/index.php?action=error;code=401
ErrorDocument 402 /forum/index.php?action=error;code=402
ErrorDocument 403 /forum/index.php?action=error;code=403
ErrorDocument 404 /forum/index.php?action=error;code=404
ErrorDocument 405 /forum/index.php?action=error;code=405
ErrorDocument 406 /forum/index.php?action=error;code=406
ErrorDocument 407 /forum/index.php?action=error;code=407
ErrorDocument 408 /forum/index.php?action=error;code=408
ErrorDocument 409 /forum/index.php?action=error;code=409
ErrorDocument 410 /forum/index.php?action=error;code=410
ErrorDocument 411 /forum/index.php?action=error;code=411
ErrorDocument 412 /forum/index.php?action=error;code=412
ErrorDocument 413 /forum/index.php?action=error;code=413
ErrorDocument 414 /forum/index.php?action=error;code=414
ErrorDocument 415 /forum/index.php?action=error;code=415
ErrorDocument 416 /forum/index.php?action=error;code=416
ErrorDocument 417 /forum/index.php?action=error;code=417
ErrorDocument 500 /forum/index.php?action=error;code=500
ErrorDocument 501 /forum/index.php?action=error;code=501
ErrorDocument 502 /forum/index.php?action=error;code=502
ErrorDocument 503 /forum/index.php?action=error;code=503
ErrorDocument 504 /forum/index.php?action=error;code=504
ErrorDocument 505 /forum/index.php?action=error;code=505
# end of directives for Apache Error Handling modification
';
// Output the file
$handle = fopen($boarddir . '/.htaccess', 'w');
:)
Quote
Quote
Quote from: freworld on January 24, 2009, 12:28:16 PM
Hi danni
i tried asking at dev.eldacar link but seem it not working!So posting here!
Petty url is doing fine overall till now
But there is a PROBLEM
A specific Topic link in my board is not working . It just redirects to my hosts page with ads.
i remember i changed the Topic heading while trying to change its url. May be that caused it to go off.
I tried that help by you regarding truncate query for flushing url table .
& the ran maintanence. Now that topic url is changed to topic name but thread not appearing.
Seems like tht topic link has broken something in database.
Kindly guide how can i fix a thread link as its a good thread with some helping info for members.
Even if you think, its no due to pretty url's, help will be really helpful!
Can you give me the actual links that are broken? I can't help you otherwise.
Hi danni
in response to my query & ur reply,
i have send you a pm !
please check
Regards
Hi Danni,
Im currently getting a few errors in webmaster tools. They are flagged up as
"urls not followed"
This is one of the ones it says not followed.
http://www.whitbyseaanglers.co.uk/forum/site-reviews-and-links/sandsend-car-park/0/
The reason given is "Redirect Error".
I can't see anything wrong with it... perhaps it was a glitch? Let me know if it's still got problems next time the spider comes.
QuoteWell this is a bug I've wanted to fix for a while, but I don't have a lot of time to do so. Is every email broken?
Not all Dannii, but most - would it not be a quick fix to stop it adding the sessionID parameter onto the end as that seems to be the problem here?
No, that's something SMF does itself all the time... whenever you visit a page it adds the sessionID parameter until it can confirm that you have cookies. I don't want to touch that code.
Ohhhh, bugger.
This is a real pain as email notifications just aren't working, if a member sees an error, they're generally not wise enough to remove the sessionid and so just assume the site is down :( what can we do?
I don't know sorry, I've never had this problem myself. Have you asked your host for more information and help about the error?
I really don't think that its a host related error, never seen a 503 before so something there is causing it - is it not the Mod Rewrite trying to rewrite the Session ID parameter of the querystring perhaps?
Well when only 2 or 3 people out of the thousands that have used this mod have this problem I think there's good reasons to suspect the host... there's possibly some weird security module installed which won't let redirects add sessions or something.
Next time it happens I'll have a play and let you know.
Quote from: Dannii on January 31, 2009, 06:36:06 AM
I can't see anything wrong with it... perhaps it was a glitch? Let me know if it's still got problems next time the spider comes.
Its a strange one Danni. If I click on the link in webmaster tools I end up at the page without the /0/ on the end. However if I click on the link I posted here it goes to the page with the /0/ on the end.
Not sure why this is happening.
I will keep a close eye on webmaster tools and tell you what happens.
Checking further in webmaster tools I am also seeing a lot of http errors. The listed urls are all different but are like this :
http://www.whitbyseaanglers.co.uk/forum/index.php/topic,229.msg%msg_id%.html
How do I enable the prettyURLs ? Is there a page with the option somewhere? I can't find it? I think I've installed it correctly, uploaded, installed and appears successfully in the 'installed packages' page...
Quote from: glennk on January 31, 2009, 10:35:37 AM
Checking further in webmaster tools I am also seeing a lot of http errors. The listed urls are all different but are like this :
http://www.whitbyseaanglers.co.uk/forum/index.php/topic,229.msg%msg_id%.html
Those are from the javascript... apparently someone decided it was a good idea to start indexing it. Silly people! Don't worry about it.
Quote from: louislouis on January 31, 2009, 02:42:06 PM
How do I enable the prettyURLs ? Is there a page with the option somewhere? I can't find it? I think I've installed it correctly, uploaded, installed and appears successfully in the 'installed packages' page...
A new page should be added to the admin menu. If it's not there go to index.php?action=admin;area=pretty
any good robots.txt for users that use the Pretty URL mod?
A new page should be added to the admin menu. If it's not there go to index.php?action=admin;area=pretty
[/quote]
Thanks for the reply. My forum doesn't have the new page in the admin menu and nothing happens when I try accesssing with the ;area=pretty , it takes me to the same page as index.php?action=admin
This is quite strange as the package installation ran through very smoothly. It showed 'Test Success' on all the files before I hit 'Install' button. Also the mod shows up as normal in the 'Installed pacakges' page and 'Browes Packages' page.
Quote from: khokon on February 01, 2009, 02:09:55 AM
any good robots.txt for users that use the Pretty URL mod?
Search, I think someone had one...
Quote from: louislouis on February 01, 2009, 04:13:33 AM
Thanks for the reply. My forum doesn't have the new page in the admin menu and nothing happens when I try accesssing with the ;area=pretty , it takes me to the same page as index.php?action=admin
This is quite strange as the package installation ran through very smoothly. It showed 'Test Success' on all the files before I hit 'Install' button. Also the mod shows up as normal in the 'Installed pacakges' page and 'Browes Packages' page.
Anything in your error log? It's possible none of the files actually got modified even though the tests were successful. You could manually edit them if that's the case.
hi Dannii could you please install this mod for me i have tried to add the mod two times but i all ways get error :(
May I suggest a addon to pretty url like the filter one?
Is there a way you can make setting page in pretty url section where you can go to like /blogs and if it redirect to somewhere, then grab the ending url and then copy and paste in pretty url setting. Then type in the field like "for redirect" to /blog? Because I still have wordpress in /blogs but it will redirect me to blogs/?pretty;board=blogs.0 while there's supposed not to be a board that name "blogs".
Anything in your error log? It's possible none of the files actually got modified even though the tests were successful. You could manually edit them if that's the case.
[/quote]
Ok I've just manually installed it by editting the php files and I can now access the ;area=pretty page.
The problem now is when I turn it on, all the pages are redirected to my custom 404 page. Do I need to put a .htaccess in the /forums/ ? And what would the contents of this file contain?
Quote from: MRDJ on February 01, 2009, 04:34:09 AM
hi Dannii could you please install this mod for me i have tried to add the mod two times but i all ways get error :(
I'm sorry, but I don't have the time to help people with installing it. At the very least you
need to tell us what error you get. If you ask in the SMF support forums they should be able to help more.
Quote from: JoshieDaMan on February 01, 2009, 04:39:13 AM
May I suggest a addon to pretty url like the filter one?
Is there a way you can make setting page in pretty url section where you can go to like /blogs and if it redirect to somewhere, then grab the ending url and then copy and paste in pretty url setting. Then type in the field like "for redirect" to /blog? Because I still have wordpress in /blogs but it will redirect me to blogs/?pretty;board=blogs.0 while there's supposed not to be a board that name "blogs".
Yeah this is a bit of a common problem. I just answered it not that long ago though, check back a few pages! If you can't find it I'll give you more help.
Quote from: louislouis on February 01, 2009, 04:53:04 AM
Ok I've just manually installed it by editting the php files and I can now access the ;area=pretty page.
The problem now is when I turn it on, all the pages are redirected to my custom 404 page. Do I need to put a .htaccess in the /forums/ ? And what would the contents of this file contain?
Once you enable the mod it will create a .htaccess file automatically. If you already have one it needs to be editable by php. Are you sure your server supports .htaccess and mod_rewrite?
i create a robots,txt file for my forum forum.alljobsbd.com
User-agent: *
Disallow: /*sort=*
Disallow: /*msg*
Disallow: /index.php?action=activate
Disallow: /index.php?action=admin
Disallow: /index.php?action=calendar
Disallow: /index.php?action=emailuser
Disallow: /index.php?action=findmember
Disallow: /index.php?action=help
Disallow: /index.php?action=helpadmin
Disallow: /index.php?action=login
Disallow: /index.php?action=logout
Disallow: /index.php?action=mlist
Disallow: /index.php?action=modifykarma
Disallow: /index.php?action=pm
Disallow: /index.php?action=post
Disallow: /index.php?action=printpage
Disallow: /index.php?action=profile
Disallow: /index.php?action=recent
Disallow: /index.php?action=register
Disallow: /index.php?action=reminder
Disallow: /index.php?action=search
Disallow: /index.php?action=theme
Disallow: /index.php?action=unread
Disallow: /index.php?action=unreadreplies
Disallow: /index.php?action=verificationcode
Disallow: /index.php?action=who
Disallow: /index.php?action=stats
Disallow: /index.php?theme
Disallow: /attachments/
Disallow: /avatars/
Disallow: /Packages/
Disallow: /Smileys/
Disallow: /Sources/
Disallow: /Themes/
Disallow: /index.php?*;wap
Disallow: /index.php?*;wap2
Disallow: /index.php?*;imode
is it work with Pretty URLs?
Quote from: khokon on February 01, 2009, 09:11:28 AM
i create a robots,txt file for my forum forum.alljobsbd.com
.....
is it work with Pretty URLs?
look this: http://darkwolf.altervista.org/robots.txt ;)
PS: my forum is in a subdir /forum
Quote from: Dannii on February 01, 2009, 09:07:09 AM
Once you enable the mod it will create a .htaccess file automatically. If you already have one it needs to be editable by php. Are you sure your server supports .htaccess and mod_rewrite?
Where is the .htaccess file created? I can't find it?
I've managed to get the mod working perfectly on 1 of my forums, but still having trouble on my main forum which I get redirected to my custom 404 page. I think .htaccess and mod_rewrite is supported because its working on the first forum and they're on the same server. I will check with my server technician when he comes online.
Ok I've got it sorted now. I think there was a hidden and protected .htaccess in my /forums/ dir . I 777 it and all works fine!! Thanks for your guidance Dannii, much appreciated! Keep up the good work.
If I receive blank pages for all pages of the forum, and the cache table is empty, what is most likely the issue? I'm upgrading from 0.8, double checked all the sources mods.
I solved it by removing some things that were left over from 0.8. Now I'm back to my original problem and the reason why I've tried updating. Everytime I try to load a topic that contains one post by a member with a UTF-8 displayname, the page is blank. Is this my own problem or is anybody else experiencing this?
Quote from: Dannii on October 20, 2008, 08:46:41 PM
QuoteUnable to load the 'PrettyUrls.english-utf8' language file
Try copying the PrettyUrls.english.php file to PrettyUrls.english-utf8.php
I don't have a file called 'PrettyUrls.english-utf8.php'
Can I make one, or download one and stick it in?
I can probably assume that in my case, because it's not there, it's why I am getting that error message.
Quote from: khokon on February 01, 2009, 09:11:28 AM
i create a robots,txt file for my forum forum.alljobsbd.com
User-agent: *
Disallow: /*sort=*
Disallow: /*msg*
Disallow: /index.php?action=activate
Disallow: /index.php?action=admin
Disallow: /index.php?action=calendar
Disallow: /index.php?action=emailuser
Disallow: /index.php?action=findmember
Disallow: /index.php?action=help
Disallow: /index.php?action=helpadmin
Disallow: /index.php?action=login
Disallow: /index.php?action=logout
Disallow: /index.php?action=mlist
Disallow: /index.php?action=modifykarma
Disallow: /index.php?action=pm
Disallow: /index.php?action=post
Disallow: /index.php?action=printpage
Disallow: /index.php?action=profile
Disallow: /index.php?action=recent
Disallow: /index.php?action=register
Disallow: /index.php?action=reminder
Disallow: /index.php?action=search
Disallow: /index.php?action=theme
Disallow: /index.php?action=unread
Disallow: /index.php?action=unreadreplies
Disallow: /index.php?action=verificationcode
Disallow: /index.php?action=who
Disallow: /index.php?action=stats
Disallow: /index.php?theme
Disallow: /attachments/
Disallow: /avatars/
Disallow: /Packages/
Disallow: /Smileys/
Disallow: /Sources/
Disallow: /Themes/
Disallow: /index.php?*;wap
Disallow: /index.php?*;wap2
Disallow: /index.php?*;imode
is it work with Pretty URLs?
Depends whether you have the actions filter enabled or not...
QuoteAnd yes it's safe, but it probably won't have any fewer queries. If you have a lot of people online then you're going to make a lot of queries.
I'm on the Reseller Plan 1 - http://www.montecarlohosting.net/content/view/22/57/
My site had around 700 users online. After that, the site came down bringing the whole shared server down. Was that error because of the number of queries?
Link to the error: http://www.simplemachines.org/community/index.php?topic=146969.msg1899932#msg1899932
It's not a full error... but from what I can see it looks like the table was locked. I'm guessing because too many people were trying to view pages at once. If your website is that busy and your server can't handle it you will probably have to disable the mod (or change servers.) If you remove the mod you should install the reverter package.
Quote from: Dannii on January 30, 2009, 08:56:20 PM
Quote from: tdot on January 29, 2009, 09:36:42 AM
no, nothing either place :(
http://www.simplemachines.org/community/index.php?topic=146969.msg1896493#msg1896493 follow my instructions in this post to JoshieDaMan, except changing the actions you want of course.
hmm that didn't seem to help :(
I have tried making it change the actions address, and not changing the actions address but with the same results. All pages work like they should EXCEPT the private message page.
I don't understand what you just said. Can you show me the code changes you made?
Quote from: Dannii on February 02, 2009, 05:26:53 AM
I don't understand what you just said. Can you show me the code changes you made?
I did this in PrettyUrls-Filters.php:
I found this
if (in_array($matches[2], $context['pretty']['action_array']))
Replaced with this
if (in_array($matches[2], $context['pretty']['action_array']) && $matches[2] != 'pm')
Any chance to introduce custom replacements? For instance
б|b, в|v, г|g, д|d, ж|zh, з|z, и|i, й|j
Thank you
tdot, have you then run maintenance?
Imago, no, though you can easily add them yourself to Subs-PrettyUrls.php :)
Thank you! Very nice. :)
Quote from: Dannii on February 02, 2009, 06:12:37 AM
tdot, have you then run maintenance?
Yes, I ran maintenance always afterwards.
Can you give me a link to your forum?
http://www.microstockgroup.com
the prettyurls isn't running right now (it is installed, but turned off) because of the PM problem. I can turn it on though if it helps..
ok, a little more info for you.. perhaps it has something to do with servers caches and such.
A new user account with one message works fine
my main account with 319 message returns the blank page
Quote from: ffingers on January 29, 2009, 10:45:19 AM
@Dannii
no see i did not have pretty urls installed before i switched over the forum....
the thing is....the directory structure is the same...only the domain directs straight to the /forum folder.....
that troubleshooting doesn't seem like it will help
<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_root_url' => $boardurl));
?>
as my boardurl i believe would still be forum/index.php....rather...i need pretty urls to see it as just index.php without the forum....
where in pretty urls does it create the link or from what variables
Did you try it? It sets it to $boardurl, the same URL you access your forum from.
yes i did try it....
it's not that the pretty urls does create the create link....it formats http://cbrjunkie.com/index.php?board=40.0 to http://cbrjunkie.com/announcements/ like it should....the issue is that instead of linking to http://cbrjunkie.com/index.php?board=40.0, it links to http://cbrjunkie.com/
forum/index.php?board=40.0
does that make more sense??
Quote from: Dannii on October 20, 2008, 08:46:41 PM
QuoteUnable to load the 'PrettyUrls.english-utf8' language file
Try copying the PrettyUrls.english.php file to PrettyUrls.english-utf8.php
I copied 'PrettyUrls.english.php' to another file, then renamed it 'PrettyUrls.english-utf8.php'
Is that what you suggested I do?
I did not find a 'PrettyUrls.english-utf8.php' so I assumed you meant for me to do as I did above. So far I see no new error messages due to pretty urls, at least not yet, I will let you know.
tdot, can you clear all the caches?
ffingers, check Settings.php... what is $boardurl actually set to?
it reads...(in the settings.php file)
$boardurl = 'http://cbrjunkie.com';
My forum doesn't use caching. I emptied caches out on my browser and there was no improvement :(
Hi!
I have a topic with this name: Google è Impazzito!
because with pretty urls is /google-232-impazzito!/ ???
Instead another url like Richieste Novità Sul Sito
with pretty urls is /richieste-novita-sul-sito/
-
Edit: i've removed the fix /*db_query("
TRUNCATE TABLE {$db_prefix}pretty_topic_urls", __FILE__, __LINE__);*/
After of this i've fix url in database and finally i've run maintenance.
Now is ok (and i've disabled TRUNCATE topic_urls) ;)
Hey, some threads cannot be opened with this mod due to special chars, for example :
http://www.______.com/forums/problemssuggestions/tyler's-curl-video/
I think titles with ' and " won't open. Any ideas how I can fix this?
Quote from: louislouis on February 03, 2009, 10:27:05 AM
Hey, some threads cannot be opened with this mod due to special chars, for example :
http://www.______.com/forums/problemssuggestions/tyler's-curl-video/
I think titles with ' and " won't open. Any ideas how I can fix this?
I have fix in my forum with this:
Oper Subs-PrettyUrls.php
and change this:
"\x12" => array ("'", '"'),
to this:
/*"\x12" => array ("'", '"'),*/
remember to run maintenance!
-
Now your url will be: tylers-curl-video/
eg: http://darkwolf.altervista.org/forum/modemrouter/guida-alluso-di-ciclamab/
Quote from: Dark-Wolf on February 03, 2009, 10:33:05 AM
I have fix in my forum with this:
Oper Subs-PrettyUrls.php
and change this:
"\x12" => array ("'", '"'),
to this:
/*"\x12" => array ("'", '"'),*/
remember to run maintenance!
-
Now your url will be: tylers-curl-video/
eg: http://darkwolf.altervista.org/forum/modemrouter/guida-alluso-di-ciclamab/
Is there any more changes? I followed those steps, ran the maintenance and it's still showing URLS with ' ?
This mod is valid for future topic, to fix past url is necessary to edit directly in database.
Or you can edit this:
// Clear the URLs cache
db_query("
TRUNCATE TABLE {$db_prefix}pretty_urls_cache", __FILE__, __LINE__);
to this:
// Clear the URLs cache
db_query("
TRUNCATE TABLE {$db_prefix}pretty_urls_cache", __FILE__, __LINE__);
db_query("
TRUNCATE TABLE {$db_prefix}pretty_topic_urls", __FILE__, __LINE__);
and after a maintenance all url will be rebuild.
-
PS: when you have fix is best to remove this ;)
That worked! Thanks Dark-Wolf!
Hello!
I've installed the Pretty URLs mod.
However does not work properly in Serbian language ... Some topics not open, or open only a certain page.
When i switch forum for to English all works great.
To note that the enkoding in the database for valid utf8.
What could that be?
Another issue, the links at top right hand corner where it says:
Show unread posts since last visit.
Show new replies to your posts.
Those links are still in old style and can sometimes show up like this:
http://www._________.com/forums/general-discussion/im-so-smart/index.php?action=unreadreplies
Do you know the name of the php file where I can edit this?
Quote from: louislouis on February 03, 2009, 03:27:30 PM
Another issue, the links at top right hand corner where it says: ....
Have you enabled the action filter?
Quote from: Dark-Wolf on February 03, 2009, 03:44:38 PM
Have you enabled the action filter?
Yup it's ticked. Should it be off?
Quote from: Toadmund on February 02, 2009, 05:28:19 PM
Quote from: Dannii on October 20, 2008, 08:46:41 PM
QuoteUnable to load the 'PrettyUrls.english-utf8' language file
Try copying the PrettyUrls.english.php file to PrettyUrls.english-utf8.php
I copied 'PrettyUrls.english.php' to another file, then renamed it 'PrettyUrls.english-utf8.php'
Is that what you suggested I do?
I did not find a 'PrettyUrls.english-utf8.php' so I assumed you meant for me to do as I did above. So far I see no new error messages due to pretty urls, at least not yet, I will let you know.
This seemed to have worked for my problem. No new error messages.
Thanks Dannii.
just so if anyone was wondering, i figured out my issue....
rather than
# 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]
you just remove the period before the forward slash on index.php like this
# 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]
this changes the rewrite from domain.com/forum/ to rewrite to domain.com/
i would have figured this out sooner, but i didn't realize that every time re-enabled pretty urls, it rewrote the .htaccess file thereby undoing any test changes i was making...i figured it out by enabling, then making the edits while pretty urls was enabled....
Quote from: tdot on February 03, 2009, 01:56:47 AM
My forum doesn't use caching. I emptied caches out on my browser and there was no improvement :(
What if you completely uninstall the mod and remove all the tables and then reinstall?
Quote from: Dark-Wolf on February 03, 2009, 07:13:07 AM
Hi!
I have a topic with this name: Google è Impazzito!
because with pretty urls is /google-232-impazzito!/ ???
Instead another url like Richieste Novità Sul Sito
with pretty urls is /richieste-novita-sul-sito/
-
Edit: i've removed the fix /*db_query("
TRUNCATE TABLE {$db_prefix}pretty_topic_urls", __FILE__, __LINE__);*/
After of this i've fix url in database and finally i've run maintenance.
Now is ok (and i've disabled TRUNCATE topic_urls) ;)
Did you fix it yet? I'm guessing you're not using UTF8? If you use other encodings it can't always convert the characters properly.
Quote from: pikeman on February 03, 2009, 02:17:17 PM
Hello!
I've installed the Pretty URLs mod.
However does not work properly in Serbian language ... Some topics not open, or open only a certain page.
When i switch forum for to English all works great.
To note that the enkoding in the database for valid utf8.
What could that be?
It shouldn't matter at all what language you use for the forum. Is there anything in your smf or apache error logs?
Quote from: louislouis on February 03, 2009, 03:27:30 PM
Another issue, the links at top right hand corner where it says:
Show unread posts since last visit.
Show new replies to your posts.
Those links are still in old style and can sometimes show up like this:
http://www._________.com/forums/general-discussion/im-so-smart/index.php?action=unreadreplies
Do you know the name of the php file where I can edit this?
Your theme must be using relative urls rather than full urls.
Quote from: ffingers on February 03, 2009, 04:18:53 PM
just so if anyone was wondering, i figured out my issue....
rather than
# 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]
you just remove the period before the forward slash on index.php like this
# 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]
this changes the rewrite from domain.com/forum/ to rewrite to domain.com/
i would have figured this out sooner, but i didn't realize that every time re-enabled pretty urls, it rewrote the .htaccess file thereby undoing any test changes i was making...i figured it out by enabling, then making the edits while pretty urls was enabled....
Ahh, I think a RewriteBase rule would fix this too. Strange...
My forum is in utf-8 and all topic with à è ì ò ù are ok.
When i've maked this topic the url will be ok: /google-e-impazzito!/
after a maintenance (with truncate topic_url) was damaged.
Now i've removed mod truncate_url and i've fix manually from database.
I hope it will be ok now :)
-
PS: database table is in utf-8 except: pretty_urls_cache
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg6.imageshack.us%2Fimg6%2F5397%2Fprettudbrl7.gif&hash=526050ed256c6f799b83f4deabbc2589a838bdd4) :-\
ok cool.
That table doesnt matter cause it will only have a-z0-9 and some punctuation... no fancy letters.
Quote from: Dannii on February 04, 2009, 09:45:28 AM
ok cool.
That table doesnt matter cause it will only have a-z0-9 and some punctuation... no fancy letters.
Ok thanks!
Ok I have a childboard titled: The 'man' forum
The url to this board is:
http://www._______.com/forums/the-'man'-forum/
The ' is causing the url to fail. I've tried renaming this board to TheManForum or The_Man_Forum , but whatever I rename it to, the URL always stays unchanged as: the-'man'-forum
I've also tried truncating these 2 DB tables but it still generates the URL with the old forum title?
# forum_pretty_topic_urls
# forum_pretty_urls_cache
louislouis
I had that problem too, here is one way I dealt with the problem:
http://www.simplemachines.org/community/index.php?topic=289474.0 (http://www.simplemachines.org/community/index.php?topic=289474.0)
Okay to many pages to go through to see if anyone is a goofy as me.. I Installed and everything was good... but when I click on Pretty Urls in the admin area i get:
community/Sources/QueryString.php on line 537
is this something in the Language files.. and if so can you give me the proper way to get to it..
thanks
You can change board URLs when you go to edit a board.
@Dannii: today i've test here:
http://www.validome.org/google/validate
my sitemap:
http://darkwolf.altervista.org/sitemap.xml
and i receive more error only in smf sitemap:
http://darkwolf.altervista.org/forum/smf_sitemap.xml
QuoteLine Column: 8
27 Error: Illegal char within URL (http://darkwolf.altervista.org/forum/presentatevi-qui!!/).
Error Position:
<loc>http://darkwolf.altervista.org/forum/presentatevi-qui!!/</loc>
in your opinion is best to remove from filters all special chars?
What kind of special characters? All of those characters are fine.
Quote from: Dannii on February 05, 2009, 08:22:17 AM
What kind of special characters? All of those characters are fine.
this:
!! and this:
( )
Yeah well they're fine. All the URL standards say so. And if you don't want them you can always remove them from Subs-PrettyUrls.php.
Quote from: Dannii on February 05, 2009, 08:49:59 AM
Yeah well they're fine. All the URL standards say so. And if you don't want them you can always remove them from Subs-PrettyUrls.php.
Ok thanks but i prefer to maintain simple for indicization of some old topic :)
This link within a topic updated email...
Quotehttp://www.**********.co.uk/shipwrecked-island-chat/do-you-know-a-shipwrecked-2009-contestant/new/?PHPSESSID=j75en78e0pos13jfb9ovqoln05;topicseen
...causes a 503 error - I know I've reported this already matey but is there any way that I can tweak thsi mod to disable PrettyURLs from converting a URL upon first entry to the site? but PrettyURLs kicks in after that point?
Quote from: Dannii on February 05, 2009, 07:52:41 AM
You can change board URLs when you go to edit a board.
I've tried to edit the board and renaming it to something completely different, but for some reason, the old url remains? I even tried running maintenance after... So strange... Where in the DB could this old url be lingering?
Quote from: louislouis on February 05, 2009, 02:16:42 PM
Quote from: Dannii on February 05, 2009, 07:52:41 AM
You can change board URLs when you go to edit a board.
I've tried to edit the board and renaming it to something completely different, but for some reason, the old url remains? I even tried running maintenance after... So strange... Where in the DB could this old url be lingering?
Go into Admin, then BOARDS, then click PRETTY URL next to the board in question - delete the one listed and add a new one, then run maintenance.
Think that sorts it!
Quote from: @sh on February 05, 2009, 02:42:40 PM
Quote from: louislouis on February 05, 2009, 02:16:42 PM
Quote from: Dannii on February 05, 2009, 07:52:41 AM
You can change board URLs when you go to edit a board.
I've tried to edit the board and renaming it to something completely different, but for some reason, the old url remains? I even tried running maintenance after... So strange... Where in the DB could this old url be lingering?
Go into Admin, then BOARDS, then click PRETTY URL next to the board in question - delete the one listed and add a new one, then run maintenance.
Think that sorts it!
Hey, I don't see a PRETTY URL section in BOARDS area. My mod is a bit f*cked already because I can only access the pretty settings by manual url http://www._________.com/forums/admin/?area=pretty
Whats the manual URL to access the BOARDS>Pretty URL section?
Perhaps don't do this until someone confirms dude, but might be worth emptying the PrettyURLs cache table in your database? Don't do this until someone else confirms but I've done it and its solved issues with PrettyURLs before for me.
Quote from: @sh on February 05, 2009, 01:52:07 PM
This link within a topic updated email...
Quotehttp://www.**********.co.uk/shipwrecked-island-chat/do-you-know-a-shipwrecked-2009-contestant/new/?PHPSESSID=j75en78e0pos13jfb9ovqoln05;topicseen
...causes a 503 error - I know I've reported this already matey but is there any way that I can tweak thsi mod to disable PrettyURLs from converting a URL upon first entry to the site? but PrettyURLs kicks in after that point?
I'll try and have a look at it soon, but I'm very busy sorry.
Quote from: louislouis on February 05, 2009, 03:25:22 PM
Hey, I don't see a PRETTY URL section in BOARDS area. My mod is a bit f*cked already because I can only access the pretty settings by manual url http://www._________.com/forums/admin/?area=pretty
Whats the manual URL to access the BOARDS>Pretty URL section?
You mustn't have edited the managerboards template file...
Apply Mod button disappeared after upgraded to 2.0rc1 >:(, does it mean prettyurl current version does not support for SMF 2.0rc1?
I don't know. You can try emulating a beta in the package manager...
Quote from: Dannii on February 06, 2009, 12:57:26 AM
I don't know. You can try emulating a beta in the package manager...
Thx, now it works with 2.0 beta 4 emulating but some modifications are needed. I have to input a prefix "smf_" in "prettyurls-0-9\SMF2-0\install.php" for both mysql tables which are "smf_pretty_topic_urls" and "smf_pretty_urls_cache".
Strangely, it worked for me without any modification...Only Emulation was needed.
Quote from: Dannii on February 05, 2009, 08:11:57 PM
I'll try and have a look at it soon, but I'm very busy sorry.
Thanks Dannii, appreciate it.
same problem dark-master.
even after emulation, error coming.
Table 'dbprefix_fm.pretty_topic_urls' doesn't exist
File: /home/cpanelaccount/public_html/Packages/temp/SMF2-0/install.php
Line: 36
Reply is appreciateion.
Hi Dannii,
Further to recent conversations. I am now using the reverter.
Is there any way at all that this could impact on google adsense page impressions ??
I really dont think this can be the case but am examining all possible reasons.
Many thanks - Glenn
They say that changing a lot of URLs, even with redirects, may not be good. But I don't really know nor care.
@Dannii:
Today i've see all log and google statistic (webmaster tools).
I've see more 404 cause by url with special chars like ( ! ).
Eg: this topic: Call of Duty(R) 4 - Modern Warfare(TM)
will be indicized by google like this: .../forum/call-of-Duty r 4-modern-warfare tm (with space instead of special chars)
and this: Presentatevi qui!! will be indicized like this:
.../forum/presentatevi-qui (without !! and without final slash /)
For this reason now i've edit this: /*
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),
*/
and i've flush topic url.
I think that google not agree special chars in url:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg6.imageshack.us%2Fimg6%2F831%2Fgurlbb7.gif&hash=277fc04221f5cd4a0ef9ed4b26fc52332a5f8347)
Kind regards, DarkWolf :)
What is more likely the problem is that people are linking to your topics incorrectly... or relying on SMF to autolink URLs perhaps? SMF stops before some punctuation unfortunately.
I understand, but after the previous mod should not have more problems for the future :)
Hey Dannii, your mod isn't parsing News RSS feeds properly in 2.0....
From a previous poster, see his site: http://www.cricket-highlights.com/index.php
Pretty urls is enabled: http://www.cricket-highlights.com/news-announcement/
But if you look at the rss feeds: http://www.cricket-highlights.com/.xml/?type=rss
The urls for topics are not prettied: http://www.cricket-highlights.com/index.php/topic,136.msg423.html#msg423
Check the fix_possible_url function in News.php to see why. I figured this out when recoding my Sitemap mod and realized that I shouldn't have to make a special case for Pretty Urls and figured out why I was having to.
Quote from: SlammedDime on February 07, 2009, 10:20:33 AM
Hey Dannii, your mod isn't parsing News RSS feeds properly....
In my forum ( smf 1.1.8 ) works fine.
http://darkwolf.altervista.org/forum/news-rss.xml
http://darkwolf.altervista.org/forum/post-rss.xml
Quote from: Dark-Wolf on February 07, 2009, 10:24:08 AM
Quote from: SlammedDime on February 07, 2009, 10:20:33 AM
Hey Dannii, your mod isn't parsing News RSS feeds properly....
In my forum ( smf 1.1.8 ) works fine.
http://darkwolf.altervista.org/forum/news-rss.xml
http://darkwolf.altervista.org/forum/post-rss.xml
Sorry, should have clarified, this is in 2.0
Help! I have installed the PrettyURL using 1.1.8. After the applying the mod and changed to to prettyUrl format.
http://dev.eldacar.com/prettyurls/index.php?topic=1.0 into http://dev.eldacar.com/prettyurls/general-discussion/welcome-to-smf/0/
All my links are gone now.
I can't even access to my admin page.
http://forums.go4reward.com/admin
It somehow does not recognize my links from old format to new. All I got is 404 pages. What can I do? Please help. Unfortunately I did not backup my DB and my original codes before the mod. I am doom! Any help is appreciated.
Find extras at http://code.google.com/p/prettyurls/downloads/list
RSS was working before RC1, I'll have a look at it...
ken123, it looks fine to me?
If you want to disable the mod follow the first set of instructions here: http://code.google.com/p/prettyurls/wiki/TroubleShooting
@ darkwolf
can u kindly illustrate with some pic how you go about editing any pretty url in prettyurl table in database via phpmyadmin.
i understand danni is really busy ! , he tried helping a bit but me not finding a url which i need to edit?
world be really helpful for all i think.
Regards
I have install this Package but it is not working
Now even i cant access to my site
it is not opening at all
PLEASE HELP
freworld, I can probably help more... but I can't remember what I told you to do?
Naveeddil, follow the first section to disable the mod: http://code.google.com/p/prettyurls/wiki/TroubleShooting
Then double check your server supports .htaccess and mod_rewrite
@sh, can you make these changes to Subs-Post.php and let me know if they work. I'll release 0.9.1 if they do.
global $webmaster_email, $context, $modSettings, $txt, $scripturl;
global $webmaster_email, $context, $modSettings, $txt, $scripturl, $sourcedir;
$message = str_replace(array("\r", "\n"), array('', $line_break), stripslashes($message));
// Prettify any URLs
if ($modSettings['pretty_enable_filters'])
{
require_once($sourcedir . '/PrettyUrls-Filters.php');
$message = pretty_rewrite_buffer($message);
}
SlammedDime, RSS is working for me. That site no longer has SMF? Can you show me another example where it's not working?
I'll do a clean install when I get home from work today on my live site to test it out.
Im getting an error with 2.0 RC1.
See attached screenie:
Can you at least tell me what the first blacked out thing says..?? It's impossible to help when you conceal essential information!
Its part of the database name, its not relavent to smf or pretty urls.
No, I think it's probably completely relevant. If you're worried about giving out information, can you please send the whole error message to me via PM then?
Email sent, thnaks for your patience.
Thanks, I'll look into it.
Quote from: Dannii on February 08, 2009, 10:16:31 PM
@sh, can you make these changes to Subs-Post.php and let me know if they work. I'll release 0.9.1 if they do.
global $webmaster_email, $context, $modSettings, $txt, $scripturl;
global $webmaster_email, $context, $modSettings, $txt, $scripturl, $sourcedir;
$message = str_replace(array("\r", "\n"), array('', $line_break), stripslashes($message));
// Prettify any URLs
if ($modSettings['pretty_enable_filters'])
{
require_once($sourcedir . '/PrettyUrls-Filters.php');
$message = pretty_rewrite_buffer($message);
}
Thanks Dannii, good work and trying this now - will let you know.
Spotted another bug that's possibly part of the same issue - anyone else running PrettyURLs, try typing in the URL to your site WITHOUT the 'www.', that causes a 503 error for me?
I'll try again after making the above changes.
Good work Dannii.
You'll have to check from new emails btw...
On all the servers I've tested it works fine both with and without www. Maybe there's something weird with your apache config? I have no ideas sorry.
Quote from: Dannii on February 09, 2009, 07:38:28 AM
You'll have to check from new emails btw...
On all the servers I've tested it works fine both with and without www. Maybe there's something weird with your apache config? I have no ideas sorry.
Thanks again Dannii, I've implemented the changes and all working so far but its a tricky error to recreate so I'll keep an eye on it and let you know.
I haven't had a chance to do an install, but after thinking, I think I may know the issue... if SMF's SEF style urls are enabled before installing your mod, the value in modSettings, retails it's '1', unless your mod disables it (not sure). Because of this, the fix_possible_url function still sees that, and reformats the url to SMF's style. It would appear that Pretty Urls's isn't setup to re-convert already converted SMF's style SEF urls, thus the issue. (again, untested at this point)
Sorry mate, just had the error again, this appeared after making the changes you proposed earlier to subs-post.php - here's the URL that was in the email:
http://www.**************.co.uk/index.php?topic=211.new;topicseen#new
After clicking it, the browser opened and converted it to:
http://www.**************.co.uk/shipwrecked-tom-jaconelli/oooooh/new/?PHPSESSID=pm3pdkm7qtdaoju68a3srmvci5;topicseen
Thats when I got the 503 error.
I want to install this but dont get how. Please help me. I dont want to screw it up!!
Quote from: Bigdealer on February 09, 2009, 04:52:27 PM
I want to install this but dont get how. Please help me. I dont want to screw it up!!
Download the package (the ZIP) file, then login to your Admin, click on PACKAGES, click on DOWNLOAD PACKAGES and browse to the ZIP file you downloaded.
Click UPLOAD and follow the instructions.
This is VERY basic stuff, if you're not sure how to do this, how on earth did you install SMF?
Quote from: Bigdealer on February 09, 2009, 04:52:27 PM
I want to install this but dont get how. Please help me. I dont want to screw it up!!
Do NOT set it to work with actions, if something goes wrong you dont want to get locked out of the admin panel.
Actually, is it possible to remove the option altogether?
Quote from: aishaweb on February 09, 2009, 05:15:50 PM
Quote from: Bigdealer on February 09, 2009, 04:52:27 PM
I want to install this but dont get how. Please help me. I dont want to screw it up!!
Do NOT set it to work with actions, if something goes wrong you dont want to get locked out of the admin panel.
Actually, is it possible to remove the option altogether?
Mine is enabled for Actions? Is this really a problem then?
Quote from: @sh on February 09, 2009, 04:58:35 PM
Quote from: Bigdealer on February 09, 2009, 04:52:27 PM
I want to install this but dont get how. Please help me. I dont want to screw it up!!
Download the package (the ZIP) file, then login to your Admin, click on PACKAGES, click on DOWNLOAD PACKAGES and browse to the ZIP file you downloaded.
Click UPLOAD and follow the instructions.
This is VERY basic stuff, if you're not sure how to do this, how on earth did you install SMF?
Is that it?? Why are people then going on about editing some stuff on the template etc >
Quote from: Bigdealer on February 09, 2009, 05:50:26 PM
Quote from: @sh on February 09, 2009, 04:58:35 PM
Quote from: Bigdealer on February 09, 2009, 04:52:27 PM
I want to install this but dont get how. Please help me. I dont want to screw it up!!
Download the package (the ZIP) file, then login to your Admin, click on PACKAGES, click on DOWNLOAD PACKAGES and browse to the ZIP file you downloaded.
Click UPLOAD and follow the instructions.
This is VERY basic stuff, if you're not sure how to do this, how on earth did you install SMF?
Is that it?? Why are people then going on about editing some stuff on the template etc >
Thats to make either custom changes, or to attempt to resolve some bugs that we've found, not necessarily just with the mod.
Quote from: @sh on February 09, 2009, 05:30:02 PM
Quote from: aishaweb on February 09, 2009, 05:15:50 PM
Quote from: Bigdealer on February 09, 2009, 04:52:27 PM
I want to install this but dont get how. Please help me. I dont want to screw it up!!
Do NOT set it to work with actions, if something goes wrong you dont want to get locked out of the admin panel.
Actually, is it possible to remove the option altogether?
Mine is enabled for Actions? Is this really a problem then?
No, not if it works properly, but if it causes a 404 error then you wont be able to get int the admin panel to turn it off.
mmmm installed it went all fine but wen i went to to control panel and made the changes now my page its messed up :-[ 404 error i cant get to the adm to desable
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.
Not Found
The requested URL /admin/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
any sugestions?
Quote from: sombra on February 10, 2009, 02:23:01 AM
mmmm installed it went all fine but wen i went to to control panel and made the changes now my page its messed up :-[ 404 error i cant get to the adm to desable
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.
Not Found
The requested URL /admin/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
any sugestions?
Did you not read my post?
Look up a few posts. (http://www.simplemachines.org/community/index.php?topic=146969.msg1923378#msg1923378)
I dont think
?action=**** should be included in the rewrite at all.
There is no SEO benefit and it causes proplems if there is an issue like this guy has.
well my firiend i think its to late for that hehe my problem is that i know noting abot php an my english is bad and im stuc here
my htaccses its this hope its helps
RewriteEngine on
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName todoilegal.net
AuthUserFile /home/todoile1/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/todoile1/public_html/_vti_pvt/service.grp
RewriteCond %{HTTP_REFERER} !^http://todoilegal.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://todoilegal.net$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.todoilegal.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.todoilegal.net$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.todoilegal.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.todoilegal.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://todoilegal.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://todoilegal.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
-----------------------------------------------------------------------------------------------
went here
http://code.google.com/p/prettyurls/wiki/TroubleShooting
i uploaded the new.php and loaded but its telling me this
Fatal error: Cannot redeclare ssi_thankyouposttopresived() (previously declared in /home/todoile1/public_html/SSI.php:1843) in /home/todoile1/public_html/SSI.php on line 2027
wen i acsses the page/new.php
after installing the "pretty url" mod
then when I activate it, my forum doesn't load anymore.
www.techtrip.tk
I need badly need help :'(
hello i fixed my problem i did a restored back up and then realiced reading that maybe my problem was the file called htaccses not having chmod 777 then i installed the mod cmod that file 777 an enable the pretty url but whit out action like sombody said in a earlier post and its working great hope to have no other problems in the future
thanks for this wonderfull mod
what actions do? if i enable them wil they bring me problems?
Quote from: sombra on February 11, 2009, 10:31:30 PM
what actions do? if i enable them wil they bring me problems?
Not if it works properly, but why would you want SEO friendly actions urls? What is the purpose?
Quote from: aishaweb on February 10, 2009, 04:19:41 AM
Did you not read my post?
Look up a few posts. (http://www.simplemachines.org/community/index.php?topic=146969.msg1923378#msg1923378)
I dont think ?action=**** should be included in the rewrite at all.
There is no SEO benefit and it causes proplems if there is an issue like this guy has.
apparently you have not read the entire topic, there is an easy way to turn it off if you have an error. danii posted a file somewhere in the topic that will deactivate the mod. all you have to do is upload and navigate directly to it and it will turn off the mod and you can fix the problem. Had it happen to me on my live site. was able to fix the problem and have been running with actions on for at least 6 months with no issues
i dont really know the purpose i just think that having the topic name in the url will help a bit with google
and i dont know what you mean by SEO friendly actions urls can you explain me
thanks
Hi Danni!
I posted this in November when you were away and just now found the post asking us to post again because you wouldn't be going through those old posts, so I'm posting this again
Both of the forums I have Pretty URLs installed on are throwing errors like crazy and the appear to be caused by Pretty URLs. Need help determining what the problem is.
I get a string of errors like this:
8: Undefined index: smftags_menu
File: /home/sitename/public_html/bb/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 645
8: Undefined index: smftags_menu
File: /home/sitename/public_html/bb/Themes/default/Packages.template.php (main_above sub template - eval?)
Line: 645
8: Undefined index: smftags_menu
File: /home/sitename/public_html/bb/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 645
There's nothing weird on line 645 of these files. Sometimes the file it states doesn't even contain a line 645. And I think it's weird that it's always line 645.
I'm getting errors on the other forum that are similar:
8: Undefined variable: reply_button
File: /home/sitename/public_html/bb/Themes/classic_red/Display.template.php (main sub template - eval?)
Line: 551
8: Undefined variable: modify_button
File: /home/sitename/public_html/bb/Themes/classic_red/Display.template.php (main sub template - eval?)
Line: 556
Can you help me troubleshoot these errors? Can you tell if the Pretty URLs mod is causing them?
Another thing...if I uninstall Pretty URLs, will all my links be broken or will it go back to normal? Will people finding that Pretty URL in a search or otherwise be redirected if they follow it or will they receive a 404 error?
Thanks for your help!
HUGE BUG
I have been tested this mod on my live site and I thought it was pretty great, and the arcade addon was fantastic.
However I am using the custom blackbox theme, SMF 2.0 beta 4, prettyurl 0.9 and it seems that the CONDITIONAL [no_context_robot] noindex tag in the index.template file that prevents the page from being indexed is on every page. I know it is only suppose to do it for replies but it is doing it for every post on my site even the original post itself.
my site: http://nintendopolis.net/
test account to login and view boards (I have the look but no read mod installed)
u: yoshifan
p: cjcjcj
I already bought this issue up with the SMF staff and they said it was mostly likely the "pretty url" mod causing this problem and to talk to the creator about it.
Only now i have see an error with rss!
i don't know if is related to pretty urls or other (maybe upgrade to 1.1.8..)
PS: i have this problem only for boardnews (it contain all post/article in html):
Quote<item>
<title><![CDATA[Google ci farà risparmiare sulla bolletta]]></title>
<link>http://darkwolf.altervista.org/forum/news-board/google-ci-fara-risparmiare-sulla-bolletta/</link>
<description><![CDATA[<p><img style#msg2237</guid>"float: left; padding: 5px 10px 5px 0px;" alt="Google" title="Google" src="http://img6.imageshack.us/img6/3287/powergn5.jpg" /></p>]>]<![CDATA[<p><strong>GRAZIE A PRESE "INTELLIGENTI" CHE INVIANO I DATI WIRELESS</strong></p><p><st...]]></description>
<author>[email protected]</author>
<comments>http://darkwolf.altervista.org/forum/news-board/google-ci-fara-risparmiare-sulla-bolletta/?action=post</comments>
<category><![CDATA[News Board]]></category>
<pubDate>Wed, 11 Feb 2009 15:28:42 GMT</pubDate>
<guid>http://darkwolf.altervista.org/forum/news-board/google-ci-fara-risparmiare-sulla-bolletta/msg2232/#msg2232</guid>
</item>
error is marked as red.
Results is here: http://darkwolf.altervista.org/forum/news-rss.xml
or here: http://darkwolf.altervista.org/forum/news-atom.xml
I've open a new topic (i'm not secure that is related to pretty urls)
http://www.simplemachines.org/community/index.php?topic=292677.0
-
Edit!
Now i've fixed is caused from more html code in post, now i've converted to bbc and all works fine ;)
If we deactivate this mod, will this screw everything up? If pretty urls for posts are indexed by search engines (which they are) and someone finds a thread, will they get a 404 error if I deactivate the mod, or will it just convert the pretty urls back to regular, in effect rewriting them?
I'd like to know and I'm sure others would too.
After smf-1.1.8 update (the admin/packages code was modified) I have error 403 if I go on admin/packages...
Any help?
Guys I need help, I am using smf 2.0 rc1
I uncompressed the file prettyurls-0-9.tar.gz to my hard drive, it went fine, I uploaded to my web hosting inside /Packages with the directory name: prettyurls-0-9, it went fine, I changed all attributes to including subs to 755 it went fine too, but when I go to administration under packages in the forum it shows "Pretty URLs 0.9 " fine, but it does not show the [Apply Mod] to install it.
What am I doing wrong? I have installed other packages and under the forum it shows "[ Apply Mod ]" to install the mods and that's it. This mod is not showing the installation button [Apply Mod]
So I really don't know what is happening, any help ? thank you
Quote from: rayosx on February 14, 2009, 06:26:09 AM
Guys I need help, I am using smf 2.0 rc1
I uncompressed the file prettyurls-0-9.tar.gz to my hard drive, it went fine, I uploaded to my web hosting inside /Packages with the directory name: prettyurls-0-9, it went fine, I changed all attributes to including subs to 755 it went fine too, but when I go to administration under packages in the forum it shows "Pretty URLs 0.9 " fine, but it does not show the [Apply Mod] to install it.
What am I doing wrong? I have installed other packages and under the forum it shows "[ Apply Mod ]" to install the mods and that's it. This mod is not showing the installation button [Apply Mod]
So I really don't know what is happening, any help ? thank you
That is not needed, you do the installation in the package manger in the forum's admin panel.
Quote from: SlammedDime on February 09, 2009, 10:25:44 AM
I haven't had a chance to do an install, but after thinking, I think I may know the issue... if SMF's SEF style urls are enabled before installing your mod, the value in modSettings, retails it's '1', unless your mod disables it (not sure). Because of this, the fix_possible_url function still sees that, and reformats the url to SMF's style. It would appear that Pretty Urls's isn't setup to re-convert already converted SMF's style SEF urls, thus the issue. (again, untested at this point)
Ahh yes. Hmmm. Is that a new function in RC1?
Quote from: @sh on February 09, 2009, 12:57:54 PM
Sorry mate, just had the error again, this appeared after making the changes you proposed earlier to subs-post.php - here's the URL that was in the email:
http://www.**************.co.uk/index.php?topic=211.new;topicseen#new
After clicking it, the browser opened and converted it to:
http://www.**************.co.uk/shipwrecked-tom-jaconelli/oooooh/new/?PHPSESSID=pm3pdkm7qtdaoju68a3srmvci5;topicseen
Thats when I got the 503 error.
What kind of email was it? It's possible I only fixed it for some emails. Or none at all... I will investigate further...
Quote from: aishaweb on February 09, 2009, 05:15:50 PM
Quote from: Bigdealer on February 09, 2009, 04:52:27 PM
I want to install this but dont get how. Please help me. I dont want to screw it up!!
Do NOT set it to work with actions, if something goes wrong you dont want to get locked out of the admin panel.
Actually, is it possible to remove the option altogether?
Please don't give bad advice. There's nothing wrong with the actions filter.
Quote from: keng_113 on February 10, 2009, 09:46:45 AM
after installing the "pretty url" mod
then when I activate it, my forum doesn't load anymore.
www.techtrip.tk
I need badly need help :'(
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Please follow the first section to disable the mod. The double and tripple check your server supports .htaccess and mod_rewrite
Quote from: aishaweb on February 12, 2009, 03:14:40 AM
Quote from: sombra on February 11, 2009, 10:31:30 PM
what actions do? if i enable them wil they bring me problems?
Not if it works properly, but why would you want SEO friendly actions urls? What is the purpose?
They look pretty. That's what this mod is for. They're also easier to type and use.
Quote from: cassie on February 12, 2009, 10:16:15 AM
Hi Danni!
I posted this in November when you were away and just now found the post asking us to post again because you wouldn't be going through those old posts, so I'm posting this again
Both of the forums I have Pretty URLs installed on are throwing errors like crazy and the appear to be caused by Pretty URLs. Need help determining what the problem is.
I get a string of errors like this:
8: Undefined index: smftags_menu
File: /home/sitename/public_html/bb/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 645
8: Undefined index: smftags_menu
File: /home/sitename/public_html/bb/Themes/default/Packages.template.php (main_above sub template - eval?)
Line: 645
8: Undefined index: smftags_menu
File: /home/sitename/public_html/bb/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 645
There's nothing weird on line 645 of these files. Sometimes the file it states doesn't even contain a line 645. And I think it's weird that it's always line 645.
I'm getting errors on the other forum that are similar:
8: Undefined variable: reply_button
File: /home/sitename/public_html/bb/Themes/classic_red/Display.template.php (main sub template - eval?)
Line: 551
8: Undefined variable: modify_button
File: /home/sitename/public_html/bb/Themes/classic_red/Display.template.php (main sub template - eval?)
Line: 556
Can you help me troubleshoot these errors? Can you tell if the Pretty URLs mod is causing them?
Doesn't look like it has anything to do with this mod.
QuoteAnother thing...if I uninstall Pretty URLs, will all my links be broken or will it go back to normal? Will people finding that Pretty URL in a search or otherwise be redirected if they follow it or will they receive a 404 error?
Thanks for your help!
If you leave the .htaccess they won't be broken. If you also install the reverter package then they can be redirected to the normal URLs.
Quote from: chris345 on February 12, 2009, 04:12:41 PM
HUGE BUG
I have been tested this mod on my live site and I thought it was pretty great, and the arcade addon was fantastic.
However I am using the custom blackbox theme, SMF 2.0 beta 4, prettyurl 0.9 and it seems that the CONDITIONAL [no_context_robot] noindex tag in the index.template file that prevents the page from being indexed is on every page. I know it is only suppose to do it for replies but it is doing it for every post on my site even the original post itself.
my site: http://nintendopolis.net/
test account to login and view boards (I have the look but no read mod installed)
u: yoshifan
p: cjcjcj
I already bought this issue up with the SMF staff and they said it was mostly likely the "pretty url" mod causing this problem and to talk to the creator about it.
Are you sure it is a problem with this mod? I have written it to be smart and not cause this problem. If you disable the mod does it still occur? What else do you have installed?
Quote from: AlphaHot1 on February 13, 2009, 10:25:18 AM
After smf-1.1.8 update (the admin/packages code was modified) I have error 403 if I go on admin/packages...
Any help?
Follow the first section on the trouble shooting page...
Quote from: rayosx on February 14, 2009, 06:26:09 AM
Guys I need help, I am using smf 2.0 rc1
I uncompressed the file prettyurls-0-9.tar.gz to my hard drive, it went fine, I uploaded to my web hosting inside /Packages with the directory name: prettyurls-0-9, it went fine, I changed all attributes to including subs to 755 it went fine too, but when I go to administration under packages in the forum it shows "Pretty URLs 0.9 " fine, but it does not show the [Apply Mod] to install it.
What am I doing wrong? I have installed other packages and under the forum it shows "[ Apply Mod ]" to install the mods and that's it. This mod is not showing the installation button [Apply Mod]
So I really don't know what is happening, any help ? thank you
What's happening is that the mod doesn't support RC1 yet. You can try emulating beta 4, though not everyone has had success with that.
Quote from: Dannii on February 14, 2009, 09:02:49 AM
Quote from: aishaweb on February 09, 2009, 05:15:50 PM
Quote from: Bigdealer on February 09, 2009, 04:52:27 PM
I want to install this but dont get how. Please help me. I dont want to screw it up!!
Do NOT set it to work with actions, if something goes wrong you dont want to get locked out of the admin panel.
Actually, is it possible to remove the option altogether?
Please don't give bad advice. There's nothing wrong with the actions filter.
Do you agree that it causes more harm than good?
At least one person had an issue and couldnt get to the admin section to turn the mod off because action urls were being rewritten.
Support for RC1 please ^^
aishaweb,
I am not able to install mods through the administration panel, so the only way that I can do this is manual and then go to the administration panel and click the button that says [Apply Mod] Now in this scenario it does not appear the [Apply Mod] Danii told me that RC1 is not supported and I need to emulate the b4, that's fine, I will wait for now until it is solved, I don't want further problems in m forum.
Is there any help or guide to set up my administration panel to install mods from the administration panel instead to do it manually?
I receive this error.
Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp"
sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and
uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called
shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF.
You guys rocks and thanks for the help and support
PS: thanks Dannii for your answer/help and aishaweb as well.
Quote from: aishaweb on February 14, 2009, 09:07:16 AM
Do you agree that it causes more harm than good?
At least one person had an issue and couldnt get to the admin section to turn the mod off because action urls were being rewritten.
No I disagree. If someone is having problems they should be referred to the trouble shooting page.
rayosx, Did you try downloading the mod from the SMF package server? Perhaps try downloading it from the customisation site and uploading it yourself. Emulating is very easy, there's a link/box at the bottom of the package list.
Dannii,
If you want that I post screenshots, please let me know and I will take screenshots.
I can not install from the admin panel (forum), I can upload from my hard drive to my web hosting by ftp manual, and then enter again to my forum admin and try to run mods from there. I am wondering whether there is a guide or something to know why I am not able to install mods from my admin panel (forum). the error that I have is above this reply.
Quote from: Dannii on February 14, 2009, 09:02:49 AM
Quote from: SlammedDime on February 09, 2009, 10:25:44 AM
I haven't had a chance to do an install, but after thinking, I think I may know the issue... if SMF's SEF style urls are enabled before installing your mod, the value in modSettings, retails it's '1', unless your mod disables it (not sure). Because of this, the fix_possible_url function still sees that, and reformats the url to SMF's style. It would appear that Pretty Urls's isn't setup to re-convert already converted SMF's style SEF urls, thus the issue. (again, untested at this point)
Ahh yes. Hmmm. Is that a new function in RC1?
According to the SVN log, it's been there since revision 2773, quite a while ago. It does exist in the 1.1 line as well.
This mod caused my site to crash when it was installed.
I know almost nothing about programing and now just want to uninstall it but my whole site has crashed.
PLEASE HELP!!!!
The error I get when trying to access the site reads:
Parse error: parse error, unexpected '*' in /home/content/m/a/s/masterjasper/html/Sources/QueryString.php on line 578
PLEASE PLEASE PLEASE, I have a ton of angry users emailing me every five minutes. Let me know what you need to help and I will be quick to reply.
You can also email me here:
[email protected]Thanks!
Alright all, I figured it out thanks to an email from someone who read the thread! Thank you.
Problem number two:
The header on my page is now not showing up, it appears the link is broken on every page but the index page.
Any ideas?
Quote from: rayosx on February 14, 2009, 10:11:39 PM
Dannii,
If you want that I post screenshots, please let me know and I will take screenshots.
I can not install from the admin panel (forum), I can upload from my hard drive to my web hosting by ftp manual, and then enter again to my forum admin and try to run mods from there. I am wondering whether there is a guide or something to know why I am not able to install mods from my admin panel (forum). the error that I have is above this reply.
Well it sounds like a general package manager bug... so you'd be best to ask in the support forums. I can't help with that sorry!
Quote from: jmassimo on February 14, 2009, 11:03:55 PM
This mod caused my site to crash when it was installed.
I know almost nothing about programing and now just want to uninstall it but my whole site has crashed.
PLEASE HELP!!!!
The error I get when trying to access the site reads:
Parse error: parse error, unexpected '*' in /home/content/m/a/s/masterjasper/html/Sources/QueryString.php on line 578
PLEASE PLEASE PLEASE, I have a ton of angry users emailing me every five minutes. Let me know what you need to help and I will be quick to reply.
You can also email me here:
[email protected]
Thanks!
The mod has been installed twice. Replace QueryString.php with a new version from the install package.
What is the link on your header?
Danni,
I have not tried the emulator, but thanks for your answers and help, I will wait a little bit until this gets improved for the next version of smf then I will install it, since I am not so good with PHP and these kind of stuff, I prefer to stay away of troubles :)
Ok is there a way i can a mod or using this one and change the ULR to like lets say a board is called fun fun fun cant the ULR be
www.------------.co.uk/forum/funfunfun/.....
Ok if thats not a good example something like this
http://www.----------------------------------/introduce-yourself/20754-hello-everyone-greetings-poland.html
Cant you see the board and post in the URL am i making any sense?
rayosx, you don't need to know any PHP hopefully. At the bottom of the package manager is a link saying Advanced. Click on it to emulate another version.
Bigdealer, I'm not sure how that's really different to what the mod does now... can you explain more?
I turned off the mod and the problem is gone. It appears to only occur with the mod installed. Please is there anything you can do to help me? I checked the parsing of the filters.php, htacess and managesettings.php and I can't seem to identify the problem.
Quote from: Dannii on February 15, 2009, 08:09:13 AM
rayosx, you don't need to know any PHP hopefully. At the bottom of the package manager is a link saying Advanced. Click on it to emulate another version.
Bigdealer, I'm not sure how that's really different to what the mod does now... can you explain more?
Ok have i installed the mod correctly??
www.eastenderstvsoap.co.uk/forum
Yes or no? lol for me it does not come like that!
EDIT: I FORGOT TO ENABLE THE MOD NOW ITS WORKING :)
I search this topic to find an answer to my "problem" but nothing came out.
Here is the thing. Everything world swell with this addon and i think you for making it. One thing i don't understand though. If i use old topic urls (ie: http://www.wowjuju.com/index.php?topic=555) everything works fine... But if the topic ID is >874 is not redirected to the new url. Any idea why?
I hope I explained myself good enough.
Thanks in advance.
chris345, is it the same in the default theme?
Loky, that redirects for me...
Quote from: Dannii on February 15, 2009, 08:51:07 PM
chris345, is it the same in the default theme?
Loky, that redirects for me...
This one does:
http://www.wowjuju.com/index.php?topic=555
But try this one:
http://www.wowjuju.com/index.php?topic=2389
Says it's off limits to guests...
I found a problem with tiny portal, if action is rewritten i cant edit my articles.
Can you please provide more information then???
Quote from: Dannii on February 16, 2009, 02:48:08 AM
Can you please provide more information then???
Would you like a test account?
I can PM you the info
No I would like you to describe the problem more fully, and give me the version information of SMF, TP, this mod etc.
OK, smf 1.1.8, tp 0.98, prettyurls 0.9
If i click edit it takes me to a url not found page.
This bug has already been fixed. (http://www.tinyportal.net/index.php?topic=24158.0) Please upgrade to TP 1. If you can't upgrade make those changes yourself.
Quote from: Dannii on February 16, 2009, 03:19:51 AM
This bug has already been fixed. (http://www.tinyportal.net/index.php?topic=24158.0) Please upgrade to TP 1. If you can't upgrade make those changes yourself.
TP1 is still in beta.
I'll make the edits manually, thanks.
0.98 is a beta too!
Quote from: Dannii on February 16, 2009, 04:37:08 AM
0.98 is a beta too!
well, yechnically yes, but it is a lot more stable than 1.x.x.
The 1.x.x releases are constantly being worked on and are a major overhaul of the original code so are inherently more buggy.
Quote from: Dannii on February 16, 2009, 12:52:20 AM
Says it's off limits to guests...
It's the same message i get as an admin also.
This is the url for it:
http://www.wowjuju.com/blue-news/talent-dual-spec-qanda/
But that's topic #868 not #2389.
http://www.wowjuju.com/index.php?topic=868
Quote from: Dannii on February 15, 2009, 08:51:07 PM
chris345, is it the same in the default theme?
Loky, that redirects for me...
Yes....plz help me :'(
Quote from: Dannii on February 16, 2009, 07:05:52 AM
But that's topic #868 not #2389.
http://www.wowjuju.com/index.php?topic=868
:D... looks like that was my bad. I was "playing" with $message['id'] and I needed $context['current_topic']. Looks like i was wasting your time. Sorry about that and thanks for your replies.
Quote from: asmith on January 11, 2009, 08:26:31 AM
Yes you are right. Nice one :)
ok, I've found 2 conflicts with nneonneo's shoutbox mod on my web site.
When I'm on the some topics on the forum which has more than one page, for example like this one :
http://www.example.com/forums/discussion/topic-name/15/
meaning page 2 of that topic (I have set it like every 15 msg one page).
my shoutbox gives this error :
Invalid request variable.
I've searched the entire forum files for this error, and there are only 2 lines in the whole forum,they are in the querystring.php:
// These keys shouldn't be set...ever.
if (isset($_REQUEST['GLOBALS']) || isset($_COOKIE['GLOBALS']))
die('Invalid request variable.');
// Same goes for numeric keys.
foreach (array_merge(array_keys($_POST), array_keys($_GET), array_keys($_FILES)) as $key)
if (is_numeric($key))
die('Invalid request variable.');
I'm having this exact issue and tried the idea by argimiro but I ended up with another error instead Invalid request variable.
When I disable purdy urls it works fine when going to a second, third or forth etc page. Any help would be great as I don't want Pretty Urls disabled.
any idea?
I guess this will really be help ful for google ....
BTW how to use it for google
Does this work with RC1 ?
I tried it iddnt.
picos, what is your problem sorry?
assam_siddibapa, you don't need to do anything for google.
pooya, no it doesn't yet, though you can try emulating beta 4...
Hello, is it normal, if i use prettyURLs, that my server CPU utilization rises. Particularly if many users ar in Forum?
It adds some code and some database queries, but CPU usage shouldn't rise massively.
Quote from: Dannii on February 18, 2009, 08:10:37 PM
It adds some code and some database queries, but CPU usage shouldn't rise massively.
I use prettyurls 0.9. Myy SMF is 1.1.8. Since Friday i had some problem on my server, because the cpu usage was very high. Tonight i deactivated the Prettyurls extension and now the cpu-Usage is on mormal levels.
on the black vertical line, i deactivated it.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs10b.directupload.net%2Fimages%2F090219%2F4u6ez2mu.jpg&hash=a1f27fe5a737c1379efc6c10ca2bd9399e559b4b)
Quote from: Dannii on February 18, 2009, 07:29:45 PM
picos, what is your problem sorry?
assam_siddibapa, you don't need to do anything for google.
pooya, no it doesn't yet, though you can try emulating beta 4...
How do i emulate this.
From the main 'Packages' page, click 'Advanced' in the lower right hand corner.
I've installed on 1.1.7 default theme with everything needed server side. I now have text/code above my forum header when I switch to English but not with English.utf8.
How can I make this work with English?
I've installed this on many forums with no trouble with all the same setup so not sure why it's now playing up??
Low
Check that theres only one ?> in Modifications.english.php and that it's the very last thing in the file.
does the extras package support filter for tinyportal beta 3?
Unless it's changed I think so?
Quote
ok, I've found 2 conflicts with nneonneo's shoutbox mod on my web site.
When I'm on the some topics on the forum which has more than one page, for example like this one :
http://www.example.com/forums/discussion/topic-name/15/
meaning page 2 of that topic (I have set it like every 15 msg one page).
my shoutbox gives this error :
Invalid request variable.
// These keys shouldn't be set...ever.
if (isset($_REQUEST['GLOBALS']) || isset($_COOKIE['GLOBALS']))
die('Invalid request variable.');
// Same goes for numeric keys.
foreach (array_merge(array_keys($_POST), array_keys($_GET), array_keys($_FILES)) as $key)
if (is_numeric($key))
die('Invalid request variable.');
I'm having this exact issue and tried the idea by argimiro but I ended up with another error instead Invalid request variable.
When I disable prettyurls it works fine when going to a second, third or forth etc page. Any help would be great as I don't want Pretty Urls disabled.
any idea?
Quote from: Dannii on February 22, 2009, 02:28:04 AM
Check that theres only one ?> in Modifications.english.php and that it's the very last thing in the file.
yes there's only one.
It works fine with english.utf8 but alas I need English.
Hi,
I need help from someone. I had installed Pretty url and after that i had got errors in my forum error logs filled . I unstalled pretty url and after that none of my links work, my forum starts but none of the menus are applicable.. Can Anyone help me in this case..
Regards
Vishal Panchal
Finally, does this mod work with smf 2.0 rc1?
Quote from: pooya on February 18, 2009, 07:10:16 AM
Does this work with RC1 ?
I tried it iddnt.
Quote from: Dannii on February 18, 2009, 07:29:45 PM
pooya, no it doesn't yet, though you can try emulating beta 4...
Anyone else experience text/code above the header on 1.1.7?
Text/code dissapears with English.utf8 but I need English.
Still looking for help.
Quote from: Dannii on February 22, 2009, 02:28:04 AM
Check that theres only one ?> in Modifications.english.php and that it's the very last thing in the file.
Quote from: Low on February 22, 2009, 10:31:30 AM
Quote from: Dannii on February 22, 2009, 02:28:04 AM
Check that theres only one ?> in Modifications.english.php and that it's the very last thing in the file.
yes there's only one.
It works fine with english.utf8 but alas I need English.
lol
Quote from: picos on February 22, 2009, 09:51:23 AM
I'm having this exact issue and tried the idea by argimiro but I ended up with another error instead Invalid request variable.
When I disable prettyurls it works fine when going to a second, third or forth etc page. Any help would be great as I don't want Pretty Urls disabled.
any idea?
You should really ask the shoutbox author to fix their mod.
Quote from: Low on February 22, 2009, 10:31:30 AM
yes there's only one.
It works fine with english.utf8 but alas I need English.
What exactly is the code that's showing?
Quote from: tejaswi2008 on February 22, 2009, 03:26:00 PM
Hi,
I need help from someone. I had installed Pretty url and after that i had got errors in my forum error logs filled . I unstalled pretty url and after that none of my links work, my forum starts but none of the menus are applicable.. Can Anyone help me in this case..
Regards
Vishal Panchal
Run the first section on the trouble shooting page.
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: Dannii on February 22, 2009, 09:37:34 PM
What exactly is the code that's showing?
I uninstalled Pretty-URL's so it OK.
I have it on 4 other forums so I can't complain. Keep up the good work my friend.
It should be a really simple bug to fix if you do want this mod...
hey guys,
i have a forum : www.cokc.biz/forum in which i have installed pretty url but somewhat i dont see the effect. can somebody help?
Nothing happens until you enable it...
Quote from: Dannii on February 23, 2009, 12:32:09 AM
Nothing happens until you enable it...
how do i do that?
In the new admin page it adds. If for some reason it's not present in the admin menu you can get to it by index.php?action=admin;area=pretty
i enabled it because it was not in the control panel, but now the whole board does not work. but the pretty urls are working :"(
Hi,
Thanks for your help... This fixes it.
Can Anyone tell me what exactly are Pretty URls and what does it do?
Regards
Vishal Panchal
pretty urls is seo tool that fixes the url adress so search engines can better list it.
will anyone help me why my forum does not work after i enabled the pretty url? www.cokc.biz/forum anyone?????
eedavidee, IIS isn't supported sorry. Follow the first section on this page to disable the mod so you can uninstall it. And next time check you meet the server requirements!
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: Dannii on February 23, 2009, 10:05:19 AM
eedavidee, IIS isn't supported sorry. Follow the first section on this page to disable the mod so you can uninstall it. And next time check you meet the server requirements!
http://code.google.com/p/prettyurls/wiki/TroubleShooting
isnt this some kind of setting that i can set up with the server?
If mod_rewrite is not enabled on your hosting .. The pretty url does not work.
You must contact a hosting provider to get it activated.
thanks, i will check with them tomorrow. thanks all for your help. now my board works fine
eedavidee, you could possibly try installing some mod_rewrite IIS plugin, but I can't help you with that at all.
Quote from: eedavidee on February 23, 2009, 10:43:27 AM
thanks, i will check with them tomorrow. thanks all for your help. now my board works fine
Quote from: Dannii on February 23, 2009, 10:52:15 AM
eedavidee, you could possibly try installing some mod_rewrite IIS plugin, but I can't help you with that at all.
I can not help ..
Since this is the provider of Hosting!
Looks good, but says I cant install with RC1. When do you expect that an RC1 version will be out? I wanna try it :)
Quote from: netbuddy34 on February 23, 2009, 09:47:39 PM
Looks good, but says I cant install with RC1. When do you expect that an RC1 version will be out? I wanna try it :)
If out.. Plus.. @Danni are you think add new feature for new version?
Hmm hopefully soon. I want to fix a bug or two first if I can. Maybe I should just release it now... I'll think about it.
Note you can try emulating beta 4!
And no it won't have any new features. What kind of new features would you like?
Surprise! 0.9.1 is released with RC1 support.
Quote from: Dannii on February 24, 2009, 03:18:21 AM
Surprise! 0.9.1 is released with RC1 support.
is this the only change in this version?
where can I find a changelog?
Could be action URLs changed to we want urls.
So i want to say this.
for example profile action url is scripturl/profile/
maybe me and someone want to change for this. for example.."Profile" the meaning of this word in our language(turkish) "üye profili". So i want to profile action url change to "uye-profili" or something action.. Maybe help, search, memberlist, login, logout..
So i want to "can be changed for action urls"
am i wrong or SMF 2.0 RC1 GoT a Small Install Bugs Too ?
Quote from: fca07 on February 24, 2009, 03:40:12 AM
is this the only change in this version?
where can I find a changelog?
http://prettyurls.googlecode.com/svn/branches/0.9/CHANGES
Quote from: Özgür´ on February 24, 2009, 03:47:10 AM
Could be action URLs changed to we want urls.
So i want to say this.
for example profile action url is scripturl/profile/
maybe me and someone want to change for this. for example.."Profile" the meaning of this word in our language(turkish) "üye profili". So i want to profile action url change to "uye-profili" or something action.. Maybe help, search, memberlist, login, logout..
So i want to "can be changed for action urls"
Hmm sorry, but that's probably really outside the scope of this mod. If SMF is to be internationalised like that it should probably be done properly, not just by changing the URLs on obExit...
Quote from: Gnoll on February 24, 2009, 05:10:53 AM
am i wrong or SMF 2.0 RC1 GoT a Small Install Bugs Too ?
???
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg179.imageshack.us%2Fimg179%2F2075%2F96154695.jpg&hash=c5026590ce76c06c7d6c7e0f7ec21a0b6c4a8daa) (http://imageshack.us)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg179.imageshack.us%2Fimg179%2F96154695.jpg%2F1%2Fw800.png&hash=db472f818f04bd0279f312f17e224e2934ed111d) (http://g.imageshack.us/img179/96154695.jpg/1/)
What mods do you have installed?
Quote from: Dannii on February 24, 2009, 06:41:46 AM
What mods do you have installed?
1. MessagePreviewOnHover
2. Sitemap
3. Advance SEF Urls
4. Age on post
5. eFloating Bar for Guest & Members 0.1
6. Avatar Under Membergroups Rank
7. Images On Board
8. Yet Another Global Announcements Mod
9. New Topic Button
10. Advanced image uploader
11. Member Color Link
12. Pretty URLs ( Only Error ^^ )
13. CheckBeforePosting
14. SimplePortal
15. MCLegendII RC1
Using Smf 2.0 Rc1
But i think i solved it ... Problem is this ;
Normally Subs.php Edit This ( You know :P - I eg 1 Part )
<operation>
<search position="replace"><![CDATA[
global $scripturl, $context, $modSettings, $db_show_debug, $db_cache;
]]></search>
<add><![CDATA[
global $scripturl, $context, $modSettings, $db_show_debug, $db_cache, $sourcedir;
]]></add>
</operation>
When i tranform it to ;
<operation>
<search position="replace">
global $scripturl, $context, $modSettings, $db_show_debug, $db_cache;
</search>
<add><![CDATA[
global $scripturl, $context, $modSettings, $db_show_debug, $db_cache, $sourcedir;
]]></add>
</operation>
Test ok ! :)
I have same error as gnoll on installation. I removed advanced sef url as im not using it and now its working fine.
Not to tell you how to code... but I think
! Base: Don't let fix_possible_url() change any URLs. (News.php)
is a bad way to go about fixing the issue... If you're going to alter functions, you should retain the expected functionality... if a url is passed in, and SEF style urls (or pretty urls) is enabled, then the function should return the proper string, not just what was passed in.
install php doesnt work on my server, have anyone got the sql queries ?
how can i deactive prettyurls to a folder in my server? I ve got a multidomain server with 2 webs, and i need to deactive prettyurls to the second names domain, can i? Thank you very much.
i found the solution. I wrote:
Rewrite off
In the .htaccess file in my secondary domain folder.
Quote from: Eslao on February 25, 2009, 07:03:59 AM
install php doesnt work on my server, have anyone got the sql queries ?
How does it not work?
i dont know, but i used it at localhost than moved to my host, its ok now thanks
I just installed SMF 1.1.8.
I don't have anything else installed but I got this error
Execute Modification ./Sources/News.php Test failed
Every other test is fine.
i am having the same problem as NetOnly
Execute Modification ./Sources/News.php Test failed
I just installed on my 2.0 RC1 without any errors and I don't see any difference in my URLs.
My forums are still showing as:
h**p://mysite.com/smf/index.php?topic=8.0
To those who are having problems with News.php, just install it anyway. I will have a fix for it soon, but it's not a big problem at all and the mod will still work fine.
jayman2, did you enable it yet?
It works now, but something in the code ends up redirecting any other directories on my site. For example, my site is forum.com and I had a wordpress at forum.com/wordpress, and it stopped working, it redirected to forum.com.
I uninstalled the mod but the redirection didn't stop until I deleted the .htaccess file.
So what in this file makes all of the other directories redirect to the homepage?
RewriteEngine on
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|thankyou)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(thankyoupostlock|thankyoupostlist|thankyoupostdelete|thankyoupostdm|thankyoupostcloseall|thankyoupostunlockall|thankyoupostrecountall|thankyoupostrepairtable)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(theme|trackip|admod|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewmembers|viewprofile|verificationcode|vote|viewquery|useremail|who|\.xml)/?$ ./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]
The boards filter attempts to accept everything it can.
If you want to stop that, add something like this right after RewriteEngine on:
RewriteRule ^directory/?$ ./directory/index.php [L,QSA]
First,. thakns for providing the pretty URL package for SMF. I have experience with "pretty URLS" in other areas and yes it makes a huge difference in SEO.
That said, I am getting this error when I upload pretty URL on 1.1.8:
Then it says "test failed" for 6. Execute Modification ./Sources/News.php
Is it safe to continue with installation? Thanks for any comments.
Yes as I said at the top of the page, just install it anyway. I will have a fix for it soon, but it's not a big problem at all and the mod will still work fine.
Hi,
I've installed it and first it didn't work. Then I've tried it with
RewriteBase /forum
(because my board is in the subfolder "forum")
and it works. I've had this problem very, very often that I need to use the RewriteBase with my host. Maybe this could be a solution for many who have problems with the script.
Unfortunately the maintenance task overwrites the .htaccess and uses the one without the RewriteBase setting again ...
Kai
Quoteand it works. I've had this problem very, very often that I need to use the RewriteBase with my host. Maybe this could be a solution for many who have problems with the script.
I've wondered if it's possible to somehow automatically detect whether a rewritebase rule will help...
QuoteUnfortunately the maintenance task overwrites the .htaccess and uses the one without the RewriteBase setting again ...
If you add the line to Subs-PrettyUrls.php it will remain.
Quote from: Dannii on February 28, 2009, 06:43:26 AM
If you add the line to Subs-PrettyUrls.php it will remain.
can you show me whre ... I'm not a php-pro ... ;)
Another question: I already have a sitemap which is generated for my root with the name sitemap.xml. And now I have another one for the forum-folder where I use rewrite to tell Google that this is root ... do you see the problem? I have two sitemap.xml-files ... maybe you could do an option to rename the file?
Kai
Heloo,
I installed this mod, and gives me the following error:
Notice: unserialize() [function.unserialize]: Error at offset 65525 of 65534 bytes in /home/public_html/foro/index.php on line 100
As you might solve.
Thanks
Hi guy's,
Below you will find the install notes of pretty urls.
To install:
Download and install the base package from the mod site. I have figured out how to do this. It is installed now.
Enable the filters in the new Pretty URLs page
How do I do this?? I have spend hours trying to enable the filters. I can't seem to find the new Pretty URLs page.
I would realy appreciate some help on this one.
Regards,
Jombo.
Quote from: Dannii on February 27, 2009, 08:36:57 PM
To those who are having problems with News.php, just install it anyway. I will have a fix for it soon, but it's not a big problem at all and the mod will still work fine.
jayman2, did you enable it yet?
I just broke my board! I didn't know I had to enable the mode, so I looked in Admin and found it and enabled it. Now the only pages that show are the home page and the blog. Everything else is "Page Not Found". I even tried to go back to that admin settings page and unenable the mod, but when I click on save, the Page error again. I'm using the "Urban" theme, maybe this has something to do with it.
Quote from: jayman2 on February 28, 2009, 10:34:07 AM
Quote from: Dannii on February 27, 2009, 08:36:57 PM
To those who are having problems with News.php, just install it anyway. I will have a fix for it soon, but it's not a big problem at all and the mod will still work fine.
jayman2, did you enable it yet?
I just broke my board! I didn't know I had to enable the mode, so I looked in Admin and found it and enabled it. Now the only pages that show are the home page and the blog. Everything else is "Page Not Found". I even tried to go back to that admin settings page and unenable the mod, but when I click on save, the Page error again. I'm using the "Urban" theme, maybe this has something to do with it.
I got my board back! I just went to the manual install info on the mod's page. This mod was the last one I installed, so I just checked the dates on the modified files. Then I just added a ~~ behind the changed files and the protected ones with the ~ sign behind it, I just remove the ~ sign. And all's well once again. ;D
Quote from: aexd on February 28, 2009, 09:29:38 AM
Hi guy's,
Below you will find the install notes of pretty urls.
To install:
Download and install the base package from the mod site. I have figured out how to do this. It is installed now.
Enable the filters in the new Pretty URLs page
How do I do this?? I have spend hours trying to enable the filters. I can't seem to find the new Pretty URLs page.
I would realy appreciate some help on this one.
Regards,
Jombo.
I can't imagine nobody knows how to install pretty urls.
I have installed the package.. but now?? wat do I do to get it to work?
Thanks,
Jombo.
Quote from: aexd on February 28, 2009, 12:11:35 PM
Quote from: aexd on February 28, 2009, 09:29:38 AM
Hi guy's,
Below you will find the install notes of pretty urls.
To install:
Download and install the base package from the mod site. I have figured out how to do this. It is installed now.
Enable the filters in the new Pretty URLs page
How do I do this?? I have spend hours trying to enable the filters. I can't seem to find the new Pretty URLs page.
I would realy appreciate some help on this one.
Regards,
Jombo.
I can't imagine nobody knows how to install pretty urls.
I have installed the package.. but now?? wat do I do to get it to work?
Thanks,
Jombo.
OK guy's I figured it out.
I had to set the forum language to English.. Then the link for pretty URLs appears in the administration pannel -> configuration. I was able to enable pretty URLs and then switch back to my original language.. It seems to work fine now.
Greetings,
Jombo.
I have been looking for this mod for months.
It's AMAZING!
Seriously, I have never even thought this was possible. This is an excellent mod, an excellent person who designed it, and I am very proud to say that.
Thank you so much for this contribution to the Internet! ;)
Hi,
I've installed Ajax Chat with installation and it worked perfect ... until today. I've installed a few modifications and the chat isn't working anymore. I can start it but I'm not logged in ...
I've 1.1.8 and this modifications installed after the chat:
Googlebot & Spiders Mod 2.0.4
Pretty URLs 0.9.1
SMF Sitemap 1.2.2
Another URL Popup 1.0
Table From CSV 1.30
Wikipedia BBCode 1.3
Karma Description Mod 2.3.1
I think it could be the pretty URLs - but have no idea how ... The chat is in
www.mypage/forum/chat
and I guess this must be reflected in the .htaccess - but have no idea how.
For sure pretty urls is the reason that I can't call the chat-log. The url is
www.mypage/forum/chat/?view=logs
which is redirected to forumhome. What must I do with .htaccess to stop redirecting the chat?
Any help is appreciated.
Kai
Quote from: kailew on February 28, 2009, 08:10:28 AM
can you show me whre ... I'm not a php-pro ... ;)
Just search for rewriteengine on and add it after that...
QuoteAnother question: I already have a sitemap which is generated for my root with the name sitemap.xml. And now I have another one for the forum-folder where I use rewrite to tell Google that this is root ... do you see the problem? I have two sitemap.xml-files ... maybe you could do an option to rename the file?
I don't understand what you're asking sorry.
Quote from: jantonio112 on February 28, 2009, 08:37:29 AM
Heloo,
I installed this mod, and gives me the following error:
Notice: unserialize() [function.unserialize]: Error at offset 65525 of 65534 bytes in /home/public_html/foro/index.php on line 100
As you might solve.
Thanks
Can you copy lines 95-105 here please. Also, how many boards do you have??
Quote from: aexd on February 28, 2009, 09:29:38 AM
Below you will find the install notes of pretty urls.
To install:
Download and install the base package from the mod site. I have figured out how to do this. It is installed now.
Enable the filters in the new Pretty URLs page
How do I do this?? I have spend hours trying to enable the filters. I can't seem to find the new Pretty URLs page.
I would realy appreciate some help on this one.
Glad you figured it out... please be patient, if I don't answer in a day or two post again, but not after a few hours.
jayman2, good to hear it's working now... you could also have read the trouble shooting page!
Quote from: kpac on February 28, 2009, 04:21:27 PM
I have been looking for this mod for months.
It's AMAZING!
Seriously, I have never even thought this was possible. This is an excellent mod, an excellent person who designed it, and I am very proud to say that.
Thank you so much for this contribution to the Internet! ;)
Thanks!
Quote from: kailew on February 28, 2009, 07:49:43 PM
Hi,
I've installed Ajax Chat with installation and it worked perfect ... until today. I've installed a few modifications and the chat isn't working anymore. I can start it but I'm not logged in ...
I've 1.1.8 and this modifications installed after the chat:
Googlebot & Spiders Mod 2.0.4
Pretty URLs 0.9.1
SMF Sitemap 1.2.2
Another URL Popup 1.0
Table From CSV 1.30
Wikipedia BBCode 1.3
Karma Description Mod 2.3.1
I think it could be the pretty URLs - but have no idea how ... The chat is in
www.mypage/forum/chat
and I guess this must be reflected in the .htaccess - but have no idea how.
For sure pretty urls is the reason that I can't call the chat-log. The url is
www.mypage/forum/chat/?view=logs
which is redirected to forumhome. What must I do with .htaccess to stop redirecting the chat?
Any help is appreciated.
Kai
Ask the mod author to fix their mod and stop using relative URLs.
Hi Danii,
I guess the author of Ajax Chat will tell me to ask you how to intergrate the chat in the pretty url system. It's always the same: If you use two modifications and there's a problem you will get send from one author to the other.
I only like to exclude the path forum/chat from rewriting ... can't you give me a hint how I could do that?
Kai
edit: And the .htaccess-file is the problem. When I switch it off then the chat works. I guess I only need one line ... please ...
QuoteCan you copy lines 95-105 here please
}
// Unserialize the array of pretty board URLs
$context = array('pretty' => array(
'action_array' => unserialize($modSettings['pretty_action_array']),
'board_urls' => unserialize($modSettings['pretty_board_urls']),
'db_count' => 0,
));
// Clean the request variables, add slashes, etc.
cleanRequest();
QuoteAlso, how many boards do you have??
I have 20,116 boards
Thanks
kailew: Add something like this:
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
And yes they will, but the best way to integrate the chat into this system is for it to use non relative urls. Easy!
jantonio112, well sorry, but I guess that's just too many boards for this mod. I can't see how you'd need more than maybe 6 personally.
Quotewell sorry, but I guess that's just too many boards for this mod
I understand that I must forget about this mod. There is no solution.
Hey Danni
I am adding support for Pretty Urls on my YAGAM Mod and actually I have an url like this:
www.page.com/announcements/5/ (http://www.page.com/announcements/5/)
but I want the announcement title , something like this:
www.page.com/announcement/announcement_title/ (http://www.page.com/announcement/announcement_title/)
This is my filter:
function pretty_yagam_filter($urls)
{
global $boardurl, $scripturl;
// Let's Add Announcements
$pattern = '~' . $scripturl . '(.*)aid=([^;]+)~S';
$replacement = $boardurl . '/announcements/$2/';
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
}
Can you help me with this??
Thanks
You'll need to have some database queries too. Have a look at pretty_profiles_filter(), it's probably the most similar. If you can't get it working I should be able to help more.
Could I include it in the extras package too when it's working?
Hello,
First of all: this is a great mod. It really fits with SMF.
Secondly, in Forum Error log i'm getting this:
8: Undefined index: query_string
File: [path_to_forum]/Sources/Display.php
Line: 77
Where Line 77 is this one: if (!isset($_REQUEST['xml']) && (isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
What's the problem?
Oh, and when i try to acces the Manage Boards in Admin section, it appears this:
Fatal error: Cannot redeclare template_pretty_board_url() (previously declared in /home/.mando/shadow_tj/se-scene.net/Sources/Load.php(1760) : eval()'d code:592) in [path_to_url]/Sources/Load.php(1760) : eval()'d code on line 675
PS: if you converted your phpBB3 forum with Advanced URL Rewriting mod to SMF + Pretty URLs, just add this to the .htaccess to redirect the old links to smf:
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /index.php?pretty;board=$1.$3 [QSA,L,NC]
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /index.php?pretty;board=$1;topic=$2.$4 [QSA,L,NC]
RewriteRule ^[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /index.php?pretty;topic=$1.0 [QSA,L,NC]
hi, i'm using WPMU and running on wildcard dns to have virtual subdomain. I've also setup a subdomain in cpanel to have smf running at http://forum.domain.com
I've the following .htaccess in my root dir.
#Real subdomain can be accessed and bypass WPMU, redirect to http://forum.domain.com
RewriteCond %{HTTP_HOST} forum.domain.com
RewriteCond %{REQUEST_URI} !forum/
RewriteRule ^(.*)$ forum/$1 [L]
#Redirect uploaded files for WPMU
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}]
RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}]
However, when i use this mod in the /forum folder; I got redirected to the main root (WPMU main site) if i enable topics and forum pretty_url. So far, when I enable pretty_url for profile, it works fine. Any idea how can i fix this either modification on the .htaccess in my root or in the forum folder?
Thanks in advance.
Quote from: Dannii on March 03, 2009, 08:04:50 AM
You'll need to have some database queries too. Have a look at pretty_profiles_filter(), it's probably the most similar. If you can't get it working I should be able to help more.
Could I include it in the extras package too when it's working?
Well I will check that filter to see if I can do something for the next release , If I can't I will leave only with the /id/. Thanks for your help
Hi guys, Please help me with this!
I uninstalled the pretty url due to high load to the database and on the forum error log is going crazy with these two error logs:
http://dailymobile.se/forum/index.php?action=admin
Apply Filter: Only show the errors with the same message
8: Undefined index: pretty_admin_menu
File: /home/phat/public_html/forum/Sources/Subs.php
Line: 2895
and
Apply Filter: Only show the error messages of this URL http://dailymobile.se/forum/index.php?action=admin
Apply Filter: Only show the errors with the same message
8: Undefined index: pretty_admin_menu
File: /home/phat/public_html/forum/Sources/Subs.php
Line: 2900
how can i fix this? im getting like 15 pages of error within one hour. note that i have corrected the most of the direct links and changed the url on those links to the default links. I can attach the sub.php here if you want
I installed the latest version and now I can not access the administration panel, profile, search engine etc, I returned to the start of the forum when I click on the link.
is there a fix for the news.php ?
What is proper way to upgrade fom 0.9.0 to 0.9.1
I installed this from the packages manager today. The effect is non-existent. The only thing I've noticed is some new tables in the SMF database and the error log is changing. My htaccess should be working properly. The links on the forum are still in their old format for some reason.
I just upgraded from SMF 2.0 Beta 4 to SMF 2.0 RC1. What am I doing wrong?
I tried changing my default language to English.. but it was already set! I still can't find the link to enable the mod. It's not in the configuration menu!
Quote from: Shadow_One on March 03, 2009, 09:00:01 AM
Hello,
First of all: this is a great mod. It really fits with SMF.
Secondly, in Forum Error log i'm getting this:
8: Undefined index: query_string
File: [path_to_forum]/Sources/Display.php
Line: 77
Where Line 77 is this one: if (!isset($_REQUEST['xml']) && (isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
What's the problem?
Oh, and when i try to acces the Manage Boards in Admin section, it appears this:
Fatal error: Cannot redeclare template_pretty_board_url() (previously declared in /home/.mando/shadow_tj/se-scene.net/Sources/Load.php(1760) : eval()'d code:592) in [path_to_url]/Sources/Load.php(1760) : eval()'d code on line 675
PS: if you converted your phpBB3 forum with Advanced URL Rewriting mod to SMF + Pretty URLs, just add this to the .htaccess to redirect the old links to smf:
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /index.php?pretty;board=$1.$3 [QSA,L,NC]
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /index.php?pretty;board=$1;topic=$2.$4 [QSA,L,NC]
RewriteRule ^[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /index.php?pretty;topic=$1.0 [QSA,L,NC]
Hmm looks like there was a problem with the installation, at least some of it was installed twice. Can you go through all of the changes and check that they were made, and that the files were only modified once?
Quote from: af3 on March 03, 2009, 11:04:59 AM
hi, i'm using WPMU and running on wildcard dns to have virtual subdomain. I've also setup a subdomain in cpanel to have smf running at http://forum.domain.com
I've the following .htaccess in my root dir.
#Real subdomain can be accessed and bypass WPMU, redirect to http://forum.domain.com
RewriteCond %{HTTP_HOST} forum.domain.com
RewriteCond %{REQUEST_URI} !forum/
RewriteRule ^(.*)$ forum/$1 [L]
#Redirect uploaded files for WPMU
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}]
RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}]
However, when i use this mod in the /forum folder; I got redirected to the main root (WPMU main site) if i enable topics and forum pretty_url. So far, when I enable pretty_url for profile, it works fine. Any idea how can i fix this either modification on the .htaccess in my root or in the forum folder?
Thanks in advance.
You can't use this mod and this at the same time:
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
Quote from: Phat^Trance on March 04, 2009, 07:13:59 AM
Hi guys, Please help me with this!
I uninstalled the pretty url due to high load to the database and on the forum error log is going crazy with these two error logs:
http://dailymobile.se/forum/index.php?action=admin
Apply Filter: Only show the errors with the same message
8: Undefined index: pretty_admin_menu
File: /home/phat/public_html/forum/Sources/Subs.php
Line: 2895
and
Apply Filter: Only show the error messages of this URL http://dailymobile.se/forum/index.php?action=admin
Apply Filter: Only show the errors with the same message
8: Undefined index: pretty_admin_menu
File: /home/phat/public_html/forum/Sources/Subs.php
Line: 2900
how can i fix this? im getting like 15 pages of error within one hour. note that i have corrected the most of the direct links and changed the url on those links to the default links. I can attach the sub.php here if you want
You're missing the language texts. If you're using another language copy them from English.
Quote from: aimarejada on March 04, 2009, 05:06:31 PM
I installed the latest version and now I can not access the administration panel, profile, search engine etc, I returned to the start of the forum when I click on the link.
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Then run the first section here.
Quote from: protonxl on March 05, 2009, 10:26:40 AM
is there a fix for the news.php ?
Not yet sorry. It's not a big problem, you can ignore it.
Quote from: ken123 on March 05, 2009, 09:00:06 PM
What is proper way to upgrade fom 0.9.0 to 0.9.1
Uninstall 0.9, install 0.9.1
Quote from: d03boy on March 06, 2009, 01:54:55 AM
I installed this from the packages manager today. The effect is non-existent. The only thing I've noticed is some new tables in the SMF database and the error log is changing. My htaccess should be working properly. The links on the forum are still in their old format for some reason.
I just upgraded from SMF 2.0 Beta 4 to SMF 2.0 RC1. What am I doing wrong?
I tried changing my default language to English.. but it was already set! I still can't find the link to enable the mod. It's not in the configuration menu!
Did you enable the mod yet? It has it's own new page.
Hi im trying til install Pretty Urls 0.9.1. In the package manager I get the error "Error in Package Installation" when I try to apply the mod.
This is the flawed output:
6. Execute Modification ./Sources/News.php Test failed
13. Execute Modification ./Sources/QueryString.php Test failed
Any hints?
EDIT: I am running SMF 1.1.8 by the way.
Danni, How choose priority for new filters?
Quote from: gnowak on March 06, 2009, 07:22:34 PM
Hi im trying til install Pretty Urls 0.9.1. In the package manager I get the error "Error in Package Installation" when I try to apply the mod.
This is the flawed output:
6. Execute Modification ./Sources/News.php Test failed
13. Execute Modification ./Sources/QueryString.php Test failed
Any hints?
EDIT: I am running SMF 1.1.8 by the way.
The error for News.php doesn't matter, the error for QueryString.php is serious though. What other mods do you have?
Quote from: Özgür´ on March 06, 2009, 08:03:44 PM
Danni, How choose priority for new filters?
http://code.google.com/p/prettyurls/wiki/Filters
Check that page. Pick a number under 20 or over 80, depending on whether you want it to happen before or after the default filters.
Hey Dannii.
Thanks for the reply.
My mods:
Mod Name Version
1. Affiliates 1.1 [ Uninstall ] [ List Files ] [ Delete ]
2. YouTube BBCode 2.4 [ Uninstall ] [ List Files ] [ Delete ]
3. SMF 1.0.16 / 1.1.8 Update 1.0 [ Uninstall ] [ List Files ] [ Delete ]
4. Blog Community (for 1.1.x) 2.0.2 [ Uninstall ] [ List Files ] [ Delete ]
5. Favicon 1.2 [ Uninstall ] [ List Files ] [ Delete ]
6. Highslide Image Viewer 1.0 RC8 [ Uninstall ] [ List Files ] [ Delete ]
7. Notify of posts and replys by default 1.0 [ Uninstall ] [ List Files ] [ Delete ]
8. SMF 1.0.15 / 1.1.7 Update 1.0 [ List Files ] [ Delete ]
9. Select Admin for Notifications 1.2 [ Uninstall ] [ List Files ] [ Delete ]
10. Spoiler Tag 0.6 [ Uninstall ] [ List Files ] [ Delete ]
11. AJAX Recent Topics 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
12. Language File Compare 1.0.1 [ List Files ] [ Delete ]
13. nneonneo's AJAX ShoutBox 1.21
Thank you.
None of those mods look problematic. I'm not sure why QueryString.php is having errors. You could consider applying all of the the changes yourself manually, but do make a backup first.
I will tingle around and report back, when and if I find af solution.
Thanks.
Quote from: Dannii on March 07, 2009, 06:58:11 AM
Quote from: gnowak on March 06, 2009, 07:22:34 PM
Hi im trying til install Pretty Urls 0.9.1. In the package manager I get the error "Error in Package Installation" when I try to apply the mod.
This is the flawed output:
6. Execute Modification ./Sources/News.php Test failed
13. Execute Modification ./Sources/QueryString.php Test failed
Any hints?
EDIT: I am running SMF 1.1.8 by the way.
The error for News.php doesn't matter, the error for QueryString.php is serious though. What other mods do you have?
On a clean install of SMF 1.1.8 I still get the error for News.php.
After the install i get this error in SMF:
Parse error: syntax error, unexpected '*' in /var/www/SMFclean/Sources/QueryString.php on line 537QueryString.php passed the install test though?
I installed this mod without problems, I did all of the said changes to my files as instructed in the read me, I set the permissions for the gallery in admin, I set the galleries settings and I see nothing on my site. Whats up? Thanks in advance for any replies. :)
I installed this mod and all is ok but is showing "short urls" http://example.com/investing instead of "long ones" http://www.example.com/investing . How can I do for showing "long urls" in order to work as the rest of my site?? Thank you
Hi, I install prety urls in my forum version 2.0 rC1, no problems there, I only have one little problem, I have my forum in a subdirectory called foro, the Rewrite Actions works fine, it shows foro/help, foro/mgallery, etc, but the board and topics show: h**p://mysite.com/some_topic or h**p://mysite.com/some_board and it gives me an Not Found 404 error, but when I include the /foro in the url like this: h**p://mysite.com/foro/some_topic it shows well, how or where can I changes this so it show de foro/ in topics and boards ???
I try to add the foro/ part to this part, like this but nothing happen :(
# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./foro/index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./foro/index.php?pretty;board=$1.$2 [L,QSA]
this is an example of my problem, url one doesnt show the foro/, and doesnt work :(
h**p://oharascans.com/noticias/
url two, adde the foro/ to the url and now is working:
h**p://oharascans.com/foro/noticias/
thanks in advance :)
Bye the way, great mod !!!
[/s]
nevermind.....
solved..... :P
What are pretty urls?
Quote from: Mr.Perez on March 09, 2009, 01:00:33 PM
What are pretty urls?
Please tell us this isn't a serious question!
Lol, it is a serious question.
HELP!
I just installed the mode on my SMF 2.0 RC1. The installation was successful.
So I went and turned it on in the admin. And now I can not access my forum!
I get:
404 Error - Not Found
Please help! How do I turn it off using ftp?
From the 1st post in this thread:
http://code.google.com/p/prettyurls/wiki/TroubleShooting (http://code.google.com/p/prettyurls/wiki/TroubleShooting)
Quote from: aishaweb on March 10, 2009, 11:59:48 AM
From the 1st post in this thread:
http://code.google.com/p/prettyurls/wiki/TroubleShooting (http://code.google.com/p/prettyurls/wiki/TroubleShooting)
Thanx! Everything back to normal!
How can I find out what went wrong?
Hi,
I have SMF 1.1.8
Pretty URLs 0.9 and Sitemap 1.2.2 installed.
The problem is when I try use xml link I go to the http://www.yyyyy.yyy/sitemap/?xml
I think is a .htaccess problem.
I try to modify the .htaccess without success.
Try to use
RewriteRule ^sitemap.xml$ /index.php?action=sitemap;xml - dosen't work
RewriteRule ^(sitemap.xml)/?$ ./index.php?pretty;action=$1 [L,QSA] - dosen't work
Can you help me please
I try find the answer in tis forum but without success.
Thank you for your great help
:( Downloaded it and got this warning:
Quote
Error in Package Installation
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.
Install Actions
Installations actions for "Pretty URLs":
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/ManageErrors.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/News.php Test failed
Please read at least a few pages back in the thread before posting problems.
Hello there,
Currently have the latest version of Tiny Portal and sitemap running. Upon trying to install Pretty Urls there is a test failure for ./Sources/News.php. This is the only file not working correctly. Any suggestions for quick fixes or perhaps I could simply ignore this error as it only affects said file? Thanks for the help.
Quote from: aishaweb on March 12, 2009, 12:55:08 PM
Please read at least a few pages back in the thread before posting problems.
Hi all,
Does last version of pretty urls work properly with the last version of sitemap for SMF 2.0 b4?
In my box, it doesn't work. URLs returned by XML sitemap are not SEO. SlammedDime (author of sitemap) suggests me (http://www.simplemachines.org/community/index.php?topic=170813.820):
"I'm not sure how Pretty Urls works in SMF 2.0, versus 1.1.x, and since version 2.0.0 of this mod uses SMF functions to change the url into a SEF version without pretty urls, you'd have to ask him how he handles the fix_possible_url function in News.php."
Have you any hints?
Thanks a lot!
emiliano
I installed Pretty URLs , Installed succesfully... but links are showing like
http://site.com/something/sometopic
like this , but i want to add .html in ending
http://site.com/something/sometopic.html
like this ... how to do it ?
Kicku, which SMF version are you using?
Anyway, having .html suffix is not important for SEO. It is just a cosmetic issue! :)
e.
hi, first excuse me for my bad english, i'm french lol.
So, it was 2 months i installed pretty, for the URLrewriting i have no soucy, but the table smf_pretty_urls_cache grow up every time, i'm oblige to clean the table, because i'm limite at 40 Mo and every 3 days i clean up the table.
If you have a answer i will be happy. Thanks.
ok thank you lenny , then i wont change it .. :)
Hi,
Can you help me with this error please?
When I disable Pretty Urls XML works ok but when is enable gives me a error. I think is associate with style.css
"The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. "
Can you look on http://www.topcasinowagering.com/sitemap/ and click on XML please?
Any tips?
Thank you for your help.
Hi All,
I debugged it (pretty urls with Sitemap 2.0) and I found out the issue (but not the solution :)
In a few words prettyurls cut off all links that are not coming from html tags:
This is a snippet from Prettyurls-Filters.php
// Find all URLs in the buffer
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';
As you can see it considers ONLY urls taken from <a>,<link><form> html tags (and only if they are rounded by ' or ").
In this way <loc> ones are cut out for two regexp groups:
1) they are inside a NOT considered tag (<loc></loc>)
2) they don't have ' ore " quotes.
I'm not able to modify they rexexp to include these one as well. Could you help me? :)
thanks,
emiliano
Hi everyone,
I was waiting to fix another bug before releasing 0.9.2, but because of the News.php problem I've updated the 0.9.1 package. If you've had problems please download it again.
Quote from: gnowak on March 08, 2009, 12:01:41 PM
On a clean install of SMF 1.1.8 I still get the error for News.php.
After the install i get this error in SMF:
Parse error: syntax error, unexpected '*' in /var/www/SMFclean/Sources/QueryString.php on line 537
QueryString.php passed the install test though?
The mod has been installed twice. You'll need to go through all the changes and check they were only applied once.
Quote from: grfkdesign on March 08, 2009, 02:01:51 PM
I installed this mod without problems, I did all of the said changes to my files as instructed in the read me, I set the permissions for the gallery in admin, I set the galleries settings and I see nothing on my site. Whats up? Thanks in advance for any replies. :)
Checked your error logs? Are you sure this isn't an error with your gallery?
Quote from: GurusBlog on March 08, 2009, 11:16:31 PM
I installed this mod and all is ok but is showing "short urls" http://example.com/investing instead of "long ones" http://www.example.com/investing . How can I do for showing "long urls" in order to work as the rest of my site?? Thank you
Use repair_settings.php, also change pretty_root_url in smf_settings.
Quote from: Mr.Perez on March 09, 2009, 01:00:33 PM
What are pretty urls?
Prettier than your average SMF URL? Have a look at any of the sites people link to...
Quote from: vitalik82 on March 10, 2009, 12:20:47 PM
Thanx! Everything back to normal!
How can I find out what went wrong?
Check your SMF and Apache error logs.
Quote from: lennybruce71 on March 13, 2009, 05:28:51 AM
Hi all,
Does last version of pretty urls work properly with the last version of sitemap for SMF 2.0 b4?
In my box, it doesn't work. URLs returned by XML sitemap are not SEO. SlammedDime (author of sitemap) suggests me (http://www.simplemachines.org/community/index.php?topic=170813.820):
"I'm not sure how Pretty Urls works in SMF 2.0, versus 1.1.x, and since version 2.0.0 of this mod uses SMF functions to change the url into a SEF version without pretty urls, you'd have to ask him how he handles the fix_possible_url function in News.php."
Have you any hints?
Thanks a lot!
emiliano
Hmm, probably the same way as before, by putting the page through pretty_rewrite_buffer, possibly with some extra patterns.
Quote from: bazo on March 13, 2009, 08:33:48 AM
hi, first excuse me for my bad english, i'm french lol.
So, it was 2 months i installed pretty, for the URLrewriting i have no soucy, but the table smf_pretty_urls_cache grow up every time, i'm oblige to clean the table, because i'm limite at 40 Mo and every 3 days i clean up the table.
If you have a answer i will be happy. Thanks.
The table is required, otherwise the extra queries would add too much load. If you are limited to only 40MB you need a new host!
Quote from: RAN on March 13, 2009, 01:07:25 PM
Hi,
Can you help me with this error please?
When I disable Pretty Urls XML works ok but when is enable gives me a error. I think is associate with style.css
"The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. "
Can you look on http://www.sharing-forums.com/sitemap/ and click on XML please?
Any tips?
Thank you for your help.
Can you check your error logs? The page is blank... some error should be listed.
lennybruce71, check what I wrote on the issue tracker.
Ok, I did it.
This fix allow prettyurls mod (0.9.1) to work properly with Sitemap (2.0)
(http://custom.simplemachines.org/mods/index.php?mod=755). Now all
urls inside xml sitemap are seo.
You should change PrettyUrls-Filters.php in this way:
search line (#19):
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';
and replace with:
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=|<loc>)(\"[^\"#]+|\'[^\'#]+|[^<]+)~';
Again, search line(#38):
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';
and replace with:
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=|<loc>)(\"[^\"#]+|\'[^\'#]+|[^<]+)~';
Working demo: http://www.acufeniforum.net/sitemap.html
(With SMF 2.0 beta4, SiteMap 2.0, prettyurls 0.9.1)
lennybruce is the man
Quote from: Dannii on March 15, 2009, 09:41:47 AM
Quote from: GurusBlog on March 08, 2009, 11:16:31 PM
I installed this mod and all is ok but is showing "short urls" http://example.com/investing instead of "long ones" http://www.example.com/investing . How can I do for showing "long urls" in order to work as the rest of my site?? Thank you
Use repair_settings.php, also change pretty_root_url in smf_settings.
Sorry but when you say "in smf_settings" is that a .php file?? where can I find smf_settings??
Quote from: GurusBlog on March 15, 2009, 08:54:57 PM
Quote from: Dannii on March 15, 2009, 09:41:47 AM
Quote from: GurusBlog on March 08, 2009, 11:16:31 PM
I installed this mod and all is ok but is showing "short urls" http://example.com/investing instead of "long ones" http://www.example.com/investing . How can I do for showing "long urls" in order to work as the rest of my site?? Thank you
Use repair_settings.php, also change pretty_root_url in smf_settings.
Sorry but when you say "in smf_settings" is that a .php file?? where can I find smf_settings??
Ok, I found it...Is a table of the database...Thank you
Hi Dannii
I have installed Pretty URLs 0.9.1 and sitemap 1.1.2
When I try to access to xml show me this on the webpage.
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
My error log have this error:
Error log: [Mon Mar 16 16:30:31 2009] [error] [client 00.000.00.000] PHP Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 2666271 bytes) in /home/sharinga/public_html/sharing-forums.com/Sources/PrettyUrls-Filters.php on line 16, referer: http://www.topcasinowagering.com/review/europe-mr-green-casino/
Line 16 is: $buffer = preg_replace_callback('~<script.+?</script>~s', 'pretty_scripts_remove', $buffer);
Can you help me please?
Thank you in advance for your help
You don't have enough memory?
Hi,
Any way to fix that?
Already try ini_set("memory_limit","30M") ini_set("memory_limit","128M")
Doesn't work
Thank you
Maybe make your sitemap smaller, or move to a better host?
Hey,
I have 20000 Max number of topics to display in sitemap.
I have reduced to 2000 and works ok.
Thank you very much for your great help
Hi again
I don't know if is the right place to putt his question but...
In google my website apears like this
Welcome, Guest. Please login or register. 1 Hour, 1 Day, 1 Week, 1 Month, Forever. Login with username, password and session length
The board is not protected http://www.topcasinowagering.com/review/usa-silver-oak-casino/
I know is related to robots.txt
Any chance to fix this? Can you indicate me a good robots.txt to use with Pretty Url's
Thank you for your great help
Are you doing a site: listing? If so, you're not searching, just listing ever file in google. With no search terms it can't show a useful excerpt.
Ok,
Thank you
I've added a couple of modifications, namely in .htaccess:
*removed index.php at the end of the url
*removed www at the beginning of the url
*added a trailing slash to every url it doesn't end with a filename extension
To make pretty urls regenerate the correct .htaccess everytime it is enabled, do the following in Subs-PrettyUrls.php:
find
# .htaccess file generated automatically on: ' . date('F j, Y, G:i') . '
RewriteEngine on
replace
# .htaccess file generated automatically on: ' . date('F j, Y, G:i') . '
RewriteEngine on
# disable index.php
rewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php/?\ HTTP/
rewriteRule ^(.*)index\.php/?$ /forum/$1 [R=301,L]
# no-www
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/forum/$1 [R=301,L]
# add trailing slash
RewriteCond %{HTTP_HOST} ^(.+)$ [NC]
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,6}|/)$
RewriteRule (.*)$ http://%1/forum/$1/ [R=301,L]
I've also added hour, minute and second to the backupped .htaccess made by pretty urls (because if you turn it off and on more than a time I day, the old backup will be overwrited):
find
@copy($boarddir . '/.htaccess', $boarddir . '/.htaccess.backup-' . date('Y-m-d'));
replace
@copy($boarddir . '/.htaccess', $boarddir . '/.htaccess.backup-' . date('Y-m-d-H-i-s'));
Why those rewrite lines are good? They are domain independant, so you can release your dev site in production without changing anything.
It's assumed that your forum it's installed in a /forum subdirectory, if it's not the case, just remove any forum/ occurences, or change it accordingly.
The last line add the trailing slash only to urls that don't end with a dot and an extension from 1 to 6 characters long; modify as needed.
Thanks for the great mod :)
hi guys before i moved to a new my domain(letsa say abc.com) i had install pretty url one time but it didnt work then i moved to a new domain(lets say xyz.com) because of some problems with the earlier one. i just imported the Db to a new host installed fresh copy of smf editng settings.php and my site was up again after many month i again tried to install pretty url's when i enabled the mod from the admin section something strange happened. i was able to access my site at xyz.com but when i click on a board or admin or pm or anything i am redirected to abc.com/xxxx/xxxx (my old domain name)
i think some part of my old domain is still in my database,what query do i run in php my admin or what should i do so anything related to abc.com in deleted from my database and only the xyz.com is in my DB.
Please help
i want this mod real bad but whenever i install this happens.:((
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Follow the second section.
okay thnx for this it worked ..yay
was havinh problem with arcade but figured tht i need to disable "Rewrite Action URLs (ie, index.php?action=something)" is this right?
i'll chk my forum around to see if it has some error or not
thank you once again :)
There's a fix for the arcade in the extras package,
Hi Dannii,
What do you think about this?:
When you want to perform a case-insensitive replace,
you use the following code to do it:
<?php
preg_replace("/word/i","<b>word</b>",$string);
?>
However, there is a problem if you use cyrillic characters
and your host server is Linux - no matter that you use
the "i" parameter after the filter. This is really bad for
Russians and Bulgarians, but there is a solution:
<?php
// Firstly, we need to define some functions which will convert
// our cyrillic string to uppercase or lowercase - strtolower()
// and strtoupper() do not work if your string contains cyrillic
// characters and your server is Linux.
function cstrtolower($str) {
return strtr($str, "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЬЮЯ", "абвгдежзийклмнопрстуфхцчшщъьюя");
}
function cstrtoupper($str) {
return strtr($str, "абвгдежзийклмнопрстуфхцчшщъьюя", "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЬЮЯ");
}
// Now we have to define a function which will break apart
// the word for which we are searching in the string in
// groups - lowercase and uppercase in a group, for example
// if we are searching for "word", our filter must looks like
// this: "/[Ww][Oo][Rr][Dd]/"
function createFilter ($string) {
$string = cstrtolower($string);
for ($i=0;$i<strlen($string);$i++) {
$letter_small = substr($string,$i,1);
$letter_big = cstrtoupper($letter_small);
$newstr .= '['.$letter_small.$letter_big.']';
}
return $newstr;
}
// This is cyrillic text. And we are ready to perform the match:
$string = "Това е ТексТ на кирилица";
$word = "текст";
$newstring = preg_replace("/".createFilter($word)."/",
"<b>\\0</b>",$string));
echo $newstring;
?>
It is a row example about converting the Cyrillic characters to the Latin ones.
I haven't installed your mod yet cause my forum is based on windows-1251.
hey danni from the time i have installed pretty urls the shout box(i am using neenones Advanced AJAX Shoutbox 1.22 ) is geeting closed after like 10-15 sec of the full page being load
take a look at this screeny you'll get what i mean.
http://img22.imageshack.us/img22/3582/dfsadasda.jpg
but i refresh or type the command /return normal sb comes back but it returns to position shown in the above pic :'( helppp
Quote from: ivo2296 on March 22, 2009, 05:20:48 PM
Hi Dannii,
What do you think about this?:
When you want to perform a case-insensitive replace,
you use the following code to do it:
<?php
preg_replace("/word/i","<b>word</b>",$string);
?>
However, there is a problem if you use cyrillic characters
and your host server is Linux - no matter that you use
the "i" parameter after the filter. This is really bad for
Russians and Bulgarians, but there is a solution:
<?php
// Firstly, we need to define some functions which will convert
// our cyrillic string to uppercase or lowercase - strtolower()
// and strtoupper() do not work if your string contains cyrillic
// characters and your server is Linux.
function cstrtolower($str) {
return strtr($str, "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЬЮЯ", "абвгдежзийклмнопрстуфхцчшщъьюя");
}
function cstrtoupper($str) {
return strtr($str, "абвгдежзийклмнопрстуфхцчшщъьюя", "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЬЮЯ");
}
// Now we have to define a function which will break apart
// the word for which we are searching in the string in
// groups - lowercase and uppercase in a group, for example
// if we are searching for "word", our filter must looks like
// this: "/[Ww][Oo][Rr][Dd]/"
function createFilter ($string) {
$string = cstrtolower($string);
for ($i=0;$i<strlen($string);$i++) {
$letter_small = substr($string,$i,1);
$letter_big = cstrtoupper($letter_small);
$newstr .= '['.$letter_small.$letter_big.']';
}
return $newstr;
}
// This is cyrillic text. And we are ready to perform the match:
$string = "Това е ТексТ на кирилица";
$word = "текст";
$newstring = preg_replace("/".createFilter($word)."/",
"<b>\\0</b>",$string));
echo $newstring;
?>
It is a row example about converting the Cyrillic characters to the Latin ones.
I haven't installed your mod yet cause my forum is based on windows-1251.
I used to have Cyrillic conversion, look back through old versions of Subs-PrettyUrls.php
Quote from: MRDJ on March 22, 2009, 11:57:53 PM
hey danni from the time i have installed pretty urls the shout box(i am using neenones Advanced AJAX Shoutbox 1.22 ) is geeting closed after like 10-15 sec of the full page being load
take a look at this screeny you'll get what i mean.
http://img22.imageshack.us/img22/3582/dfsadasda.jpg
but i refresh or type the command /return normal sb comes back but it returns to position shown in the above pic :'( helppp
I think the shoutbox mod needs to use full non-relative URLs... ask the author about it.
Also, checked your error logs???
Quote from: Dannii on March 23, 2009, 08:49:09 AM
Quote from: ivo2296 on March 22, 2009, 05:20:48 PM
Hi Dannii,
What do you think about this?:
When you want to perform a case-insensitive replace,
you use the following code to do it:
<?php
preg_replace("/word/i","<b>word</b>",$string);
?>
However, there is a problem if you use cyrillic characters
and your host server is Linux - no matter that you use
the "i" parameter after the filter. This is really bad for
Russians and Bulgarians, but there is a solution:
<?php
// Firstly, we need to define some functions which will convert
// our cyrillic string to uppercase or lowercase - strtolower()
// and strtoupper() do not work if your string contains cyrillic
// characters and your server is Linux.
function cstrtolower($str) {
return strtr($str, "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЬЮЯ", "абвгдежзийклмнопрстуфхцчшщъьюя");
}
function cstrtoupper($str) {
return strtr($str, "абвгдежзийклмнопрстуфхцчшщъьюя", "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЬЮЯ");
}
// Now we have to define a function which will break apart
// the word for which we are searching in the string in
// groups - lowercase and uppercase in a group, for example
// if we are searching for "word", our filter must looks like
// this: "/[Ww][Oo][Rr][Dd]/"
function createFilter ($string) {
$string = cstrtolower($string);
for ($i=0;$i<strlen($string);$i++) {
$letter_small = substr($string,$i,1);
$letter_big = cstrtoupper($letter_small);
$newstr .= '['.$letter_small.$letter_big.']';
}
return $newstr;
}
// This is cyrillic text. And we are ready to perform the match:
$string = "Това е ТексТ на кирилица";
$word = "текст";
$newstring = preg_replace("/".createFilter($word)."/",
"<b>\\0</b>",$string));
echo $newstring;
?>
It is a row example about converting the Cyrillic characters to the Latin ones.
I haven't installed your mod yet cause my forum is based on windows-1251.
I used to have Cyrillic conversion, look back through old versions of Subs-PrettyUrls.php
I know that and i have tested it - it had wrong conversion.
i have a tinny question since pretty url rewrites all url can this afect how google look the pag maybe can it cause google to not index redireccion links like the pretty url? or it dosent give this problem?
and thanks the mod is working fine in my forum
Quote from: ivo2296 on March 23, 2009, 02:27:14 PM
I know that and i have tested it - it had wrong conversion.
Ok, well if your code works better, go for it!
Quote from: sombra on March 23, 2009, 06:20:05 PM
i have a tinny question since pretty url rewrites all url can this afect how google look the pag maybe can it cause google to not index redireccion links like the pretty url? or it dosent give this problem?
and thanks the mod is working fine in my forum
I'm not sure what you're asking, but it shouldn't cause any problems.
sorry for my bad english let me se...
google dosent like redirecctions what this mod does is redirect or im wrong?
Who says Google doesn't like redirections? They're perfectly fine.
yes i chked the error log theres no error there. i have also asked the mod author for help.lets see
https://translations.launchpad.net/prettyurls/trunk/+translations
I've put up (some of) the translation strings, so if you want to help translate your language, it's now a lot easier! Just register on Launchpad, pick which languages you know, and get to it!
Anyone can translate for any language, though I'd especially appreciate it if the popular languages get translated. There seem to be a lot of Turkish users, so that would be a priority. :)
0.9.2 is now out! Now with pretty EMAIL urls!
Hi, Dannii,
What is the proper way to upgrade from 0.9.0 to the current 0.9.2? I am using SMF 1.1.8.
Do I uninstall the old one and install the new one?
Thanks.
Hello all,
Need a bit of help here.
SMF 1.1.8
Sitemap 1.2.2
Prettyurls 0.9.2
I did a clean manual test forum installation - http://www.thebestsandwichintheworld.com/testforum/ (http://www.thebestsandwichintheworld.com/testforum/) to check these mods.
Sitemap installation - No issues.
Prettyurl installation - I get my custom 404 on all links. Essentially I'm locked out.
I particularly like these mods - How can I get them to "play nice ?"
Checked repair_settings - No issues.
Any ideas ?
Regards.
Quote from: ken123 on March 25, 2009, 04:33:02 PM
Hi, Dannii,
What is the proper way to upgrade from 0.9.0 to the current 0.9.2? I am using SMF 1.1.8.
Do I uninstall the old one and install the new one?
Thanks.
Yes.
Quote from: pastramirye on March 25, 2009, 05:03:59 PM
Hello all,
Need a bit of help here.
SMF 1.1.8
Sitemap 1.2.2
Prettyurls 0.9.2
I did a clean manual test forum installation - http://www.thebestsandwichintheworld.com/testforum/ (http://www.thebestsandwichintheworld.com/testforum/) to check these mods.
Sitemap installation - No issues.
Prettyurl installation - I get my custom 404 on all links. Essentially I'm locked out.
I particularly like these mods - How can I get them to "play nice ?"
Checked repair_settings - No issues.
Any ideas ?
Regards.
Are you sure your server supports this mod_rewrite and .htaccess? And follow the first section on the trouble shooting page to disable it!
Quote from: Dannii on March 25, 2009, 10:07:35 PM
Are you sure your server supports this mod_rewrite and .htaccess? And follow the first section on the trouble shooting page to disable it!
Hello Dannii,
Thanks for the response.
Disabled and have access.
See attached.
In addition I created a subdirectory "rewrite_test" and placed the following .htaccess inside
Options +FollowSymLinks
RewriteEngine On
Then I browsed to it - http://www.thebestsandwichintheworld.com/testforum/rewrite_test/ (http://www.thebestsandwichintheworld.com/testforum/rewrite_test/) - No warnings.
The general gist of the log errors -
1. Multiple errors - Undefined index: pretty_enable_filters
2. fclose(): supplied argument is not a valid stream resource
fwrite(): supplied argument is not a valid stream resource
fopen(/home/thebest/public_html/testforum/.htaccess) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
With regards to the latter errors I'm guessing CHMOD on some of the files here ?
Regards.
Check if there's already a .htaccess file and chmod it to 777.
Dannii,
QuoteCheck if there's already a .htaccess file and chmod it to 777.
Copy that !
Current .htaccess looks like this -
RewriteEngine on
RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml
As per sitemap requirement.
It was CHMOD'd to 644 !
Before I start tinkering with pretty settings should I be running the maintenance option and limiting the number of pretty checkbox options ?
Regards.
Dannii,
Beezer ! That's done the trick.
No problem from accessing it on the front end with the sitemap links.
Scratch that !
RewriteEngine on
RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml
Should be - RewriteEngine on
RewriteRule ^sitemap.xml$ /testforum/index.php?action=sitemap;xml
Thanks for your time on this.
Regards.
Edit Subs-PrettyUrls and add it to the string at // Build the new .htaccess file
Then run maintenance.
Quote from: Dannii on March 26, 2009, 06:46:23 AM
Edit Subs-PrettyUrls and add it to the string at // Build the new .htaccess file
Then run maintenance.
Dannii,
I get your drift there. That's good to know for future reference.
I just added it manually. Case closed. *grinning inanely*
I cannot believe all of these issues simply arose from a straight chmod.
I assumed that .htaccess would at least default to 744.
Cheers.
:)
Though even adding extra rules manually is too much to ask, so hopefully soon I'll make it smarter so it won't overwrite custom .htaccess rules!
Quote from: Dannii on March 26, 2009, 07:15:47 AM
....so hopefully soon I'll make it smarter....
Dannii,
Hmm! I already think it's really quite smart.
Now if you could just code it to make me a several cups of coffee.... *wry smile*
Seriously It's a great mod and I look forward to seeing your future dev. work.
Just off to apply this manually to Down*'s excellent Cream Red theme - http://custom.simplemachines.org/themes/index.php?lemma=795 (http://custom.simplemachines.org/themes/index.php?lemma=795)
Later.
Cheers.
Hi friends
I had a forum with .co.cc extension
Now I have transferred it to .com
I have changes settings in Settings.php file
But Pretty URLs are not working, they are still pointing at old extension (.co.cc)
Especially in case of Topics and BOards.
What I have to do to change it ?
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Follow the second section.
thanks for that
I tried hard but there is no sign of success :(
I have attached my SSI.php file
ankur - I merged your topic with the Pretty URL's topic. Please try to keep support requests for mods in their appropriate topics. Thanks. :)
Quote from: Dannii on January 31, 2007, 09:58:27 PM
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.
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.
Hello Dannii,
where can i find the extension-none package? where is the Package List? I tried very hard i didn't find. I love this mod, and want to use it very much. Thank you for your time.
ankur0101, can you check with repair_settings.php that everything is correct?
neverhurry, these is no extension-none package anymore, those are very outdated instructions. Check the first post!
Quote from: lorenzone92 on June 04, 2008, 09:41:05 AM
Quote from: Dannii on June 04, 2008, 09:37:08 AM
Are you still trying to move it to the sub domain?
I've already moved my forum to the subdomain, you can see it here: http://forum.rockciclopedia.com
When I (and all the users) try login, they receive this error:
You were unable to login. Please check your cookie settings.
Seems you can't login but if you click on "back" lin you're logged in already...
Strange!
And, as I wrote, qhen the error is displayed the URL is this:
/profile/?pretty;action=login2&sa=check
It seems the check of the url is wrong but the user is logged in anyway...
Hello! I have this error on my forum too. When I disable action rewrite, it works, but with action rewrite enabled, it shows this error and user gets logged in. I have installed latest version and error still exist, so I have disable action rewrite... :(
http://code.google.com/p/prettyurls/issues/detail?id=32#c4
Can you check the subdomain settings like chinkyjew suggests?
How do you enable the Filters page?
Here's my forum: http://taylorswiftforum.com
I installed the package correctly but I think I have to enable it first.
Pat
You go to the new page, or index.php?action=admin;area=pretty if for some reason it doesn't show in your admin menu.
hello,
I'm running SMF 2.0rc1.
I've installed the pretty urls module.
I noticed that it does not rewritest the URL using www in front of domain name. and this could cause an error when submitting a sitemap to G.
In G, site is registered as WWW
Sitemap produces www urls
Pretti urls produces url rewrite without www
this is against SEO...
any suggestion?
ferlo,
I had a similar issue - see previous posts.
Try this - http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php
Check paths.
Regards.
Pretty URLs will use whatever $boardurl is set to. Please check that it is correct. :)
Does this take up many server resources?
Quote from: AlphaHot1 on March 19, 2009, 01:43:32 PM
I've added a couple of modifications, namely in .htaccess:
*removed index.php at the end of the url
*removed www at the beginning of the url
*added a trailing slash to every url it doesn't end with a filename extension
...
To remove PHPSESSID try:
# remove PHPSESSID
RewriteCond %{QUERY_STRING} ^PHPSESSID=.*$
RewriteRule ^(.*)$ %{REQUEST_URI}? [L,R=301]
RewriteCond %{QUERY_STRING} ^(.*)&PHPSESSID=.*$
RewriteRule ^(.*)$ %{REQUEST_URI}?%1 [L,R=301]
and if you use feedburner, you may want to rewrite your feeds too:
# rewrite feeds
RewriteCond %{HTTP_USER_AGENT} !FeedBurner
RewriteCond %{QUERY_STRING} ^type=rss;action=\.xml$
RewriteRule ^.*$ http://feeds2.feedburner.com/your-address? [R,L]
0.9.2 have a javascript bug.
All javascript function seem like this
site.com/forum2/stats/onclick="yearElements[2009].toggle();
This bug in PrettyUrls-Filters.php.
Quote from: ஜ۩۞۩ஜ on March 28, 2009, 01:01:56 PM
Does this take up many server resources?
Many is relative... it takes up some, but is also quite efficient for what it does.
Quote from: Özgür´ on March 28, 2009, 10:22:04 PM
0.9.2 have a javascript bug.
All javascript function seem like this
site.com/forum2/stats/onclick="yearElements[2009].toggle();
This bug in PrettyUrls-Filters.php.
Looks like you have the same problem as http://code.google.com/p/prettyurls/issues/detail?id=60
Which would mean it's
your bug not mine ;) Check your html is valid.
Quote from: Dannii on March 28, 2009, 10:36:14 PM
Quote from: ஜ۩۞۩ஜ on March 28, 2009, 01:01:56 PM
Does this take up many server resources?
Many is relative... it takes up some, but is also quite efficient for what it does.
Quote from: Özgür´ on March 28, 2009, 10:22:04 PM
0.9.2 have a javascript bug.
All javascript function seem like this
site.com/forum2/stats/onclick="yearElements[2009].toggle();
This bug in PrettyUrls-Filters.php.
Looks like you have the same problem as http://code.google.com/p/prettyurls/issues/detail?id=60
Which would mean it's your bug not mine ;) Check your html is valid.
My site is valid. http://validator.w3.org/check?uri=http%3A%2F%2Fwww.nabruk.com%2Fforum2%2F&charset=(detect+automatically)&doctype=Inline&group=0
So why the problem is resolved i change PrettyUrls-Filters.php (0.9.2 to 0.9.1)?
I use to 0.9.1 PrettyUrls-Filters.php and work fine no javascript fault , no other problem.
Quote from: pastramirye on March 28, 2009, 07:47:30 AM
Try this - http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php
paths are ok.
reapair_settings.php unuseful.
the whole site is www.sitename.com but boards and topics are just sitename.com
Quote from: ferlo on March 29, 2009, 07:26:03 AM
Quote from: pastramirye on March 28, 2009, 07:47:30 AM
Try this - http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php
paths are ok.
reapair_settings.php unuseful.
the whole site is www.sitename.com but boards and topics are just sitename.com
Any other mods installed ?
Quote from: Özgür´ on March 29, 2009, 06:39:29 AM
My site is valid. http://validator.w3.org/check?uri=http%3A%2F%2Fwww.nabruk.com%2Fforum2%2F&charset=(detect+automatically)&doctype=Inline&group=0
So why the problem is resolved i change PrettyUrls-Filters.php (0.9.2 to 0.9.1)?
I use to 0.9.1 PrettyUrls-Filters.php and work fine no javascript fault , no other problem.
Your site has at least 16 errors...
And I changed some of the code a little (related to the email rewriting). I guess it's more picky now.
Quote from: ferlo on March 29, 2009, 07:26:03 AM
Quote from: pastramirye on March 28, 2009, 07:47:30 AM
Try this - http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php
paths are ok.
reapair_settings.php unuseful.
the whole site is www.sitename.com but boards and topics are just sitename.com
Then did you follow the second section of the trouble shooting page?
I solve all problem.. but issue still again..
My index.template and boardIndex have no xhtml error
http://www.nabruk.com/forum2/stats/
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.nabruk.com%2Fforum2%2Fstats%2F&charset=(detect+automatically)&doctype=Inline&ss=1&outline=1&group=1&No200=1&verbose=1&st=1&user-agent=W3C_Validator%2F1.654 (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.nabruk.com%2Fforum2%2Fstats%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group=1&No200=1&verbose=1&st=1&user-agent=W3C_Validator%2F1.654)
But my code is
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc1" />';
Maybe PrettyUrls remove " character.
Argh, yes it has. That's bad. I'll fix it, hopefully tomorrow.
Thanks =) I change my prettyurls-filters.php now. (0.9.2 to 0.9.1)
In the 0.9.2 PrettyUrls-Filters.php if you change $addQuotes = preg_match('~[\"\']$~', $matches[1]);
to $addQuotes = preg_match('~^<.+[\"\']~', $matches[1]);
does it help? (Run maintenance after doing so.)
I try but not work.
Quote from: pastramirye on March 29, 2009, 07:47:14 AM
Any other mods installed ?
No other mods. Before to try to reinstall I also dropped the tables.
No way to succeed.
My error
QuoteType of error: Undefined
http://www.zagreb-forum.com/index.php?pretty;action=login2&sa=check
8: Undefined index: member
File: .........../Sources/LogInOut.php
Line: 123
find LogInOut.php
if ($_GET['member'] != $ID_MEMBER)
and replace
if ($_GET['member'] != $user_info['id'])
now does not work error :D
Could someone please help me? My site is completely inaccessable such adding pretty urls. I have no clue what to do. And I am a rookie when it comes to this stuff.
Quote from: Dannii on March 29, 2009, 09:17:59 AM
Quote from: ferlo on March 29, 2009, 07:26:03 AM
Quote from: pastramirye on March 28, 2009, 07:47:30 AM
Try this - http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php
paths are ok.
reapair_settings.php unuseful.
the whole site is www.sitename.com but boards and topics are just sitename.com
Then did you follow the second section of the trouble shooting page?
yes of course.
all the url are mentioned as www
forum is installd in subdir of a wp installation.
note, the .htaccess in wp root use www in front of domain name too.
smf has been setup with www too in domain name.
situation as follow.
all url ARE setup as www.domainname
after activating pretty url for ALL the sections I get:
menu rewriting with www
section rewriting with www
board rewriting without www
topic rewriting without www
BTW, url for the whole site should be http://www.domain.com/page.html not just http://www.domain.com/page/ it's more seo afaik. :)
thanks for now.
Quote from: lovearat on March 29, 2009, 08:03:44 PM
Could someone please help me? My site is completely inaccessable such adding pretty urls. I have no clue what to do. And I am a rookie when it comes to this stuff.
Follow the first section of the trouble shooting page.
Quote from: ferlo on March 30, 2009, 01:59:16 AM
yes of course.
all the url are mentioned as www
forum is installd in subdir of a wp installation.
note, the .htaccess in wp root use www in front of domain name too.
smf has been setup with www too in domain name.
situation as follow.
all url ARE setup as www.domainname
after activating pretty url for ALL the sections I get:
menu rewriting with www
section rewriting with www
board rewriting without www
topic rewriting without www
BTW, url for the whole site should be http://www.domain.com/page.html not just http://www.domain.com/page/ it's more seo afaik. :)
thanks for now.
Then your $boardurl must be http://domain.com not http://www.domain.com
And .html are no more SEOed. Cool URIs don't have extensions!
Yikes. Just installed this and got some bad juju :'(
The forum 'seems' the be working okay, insofar as I can navigate around the boards, and it loads up okay.
However, at the top of the page, I get all this mumbojumbo.....
"// Pretty URLs mod $txt['pretty_admin_menu'] = 'Pretty URLs'; // Board URLs interface $txt['pretty_add_url'] = 'Add'; $txt['pretty_add_url_description'] = 'Add a URL. Note that what you enter here will be processed as only certain characters are allowed.'; $txt['pretty_board_url_title'] = 'Pretty URLs for: '; $txt['pretty_deleted_board'] = 'Deleted board #'; $txt['pretty_duplicate_link'] = 'delete it first.'; $txt['pretty_duplicate_warning'] = 'That URL is already in use by another board. It will be available if you '; $txt['pretty_make_primary'] = 'Make primary'; $txt['pretty_modify_board_url'] = 'Pretty URL'; $txt['pretty_no_primary_warning'] = 'Warning, no primary URL!'; $txt['pretty_numerical'] = 'Sorry, but as that URL is either a number or the same as a forum action the board ID had to be added as a suffix.'; $txt['pretty_primary_url'] = 'Primary'; // Settings descriptions $txt['pretty_action_array'] = 'An array of forum actions, extracted from index.php.'; $txt['pretty_board_lookup'] = 'A serialized array of URL => ID_BOARD pairs, used for processing $_GET[\'board\']. There can be more than one URL for each board.'; $txt['pretty_board_urls'] = 'A serialized array of ID_BOARD => URL pairs, used for generating pretty replacement URLs.'; $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.'; $txt['pretty_filters'] = 'A serialized array of filter data.'; $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the pretty_filters setting instead.'; $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as $boardurl.'; "
Here's what I did.
1. backed up the Forum.
2. Converted to UTF8 ( (using link at top of packages page)
3. converted HTML entries to UTF8 (using link at top of packages page)
4. Browsed, uploaded & installed the mod.
n.b. I'm not sure if this is relevant, but after clicking apply the mod, and the list of steps comes up, most (apart from the last few) said 'test succesful'. The last few however, just listed what it should be doing on left, but with no 'test succesful' or other text on the right-hand side like the other steps?
Any ideas please folks? Is it just not properly installed or something, or is it deeper stuff?
Oh, one other possible clue - on the left hand side menu, under 'Configuration' there is an empty space (i.e. a line with no text/link on it) between 'Themes and Layout' and 'Ad Management'
Quote from: Dannii on March 30, 2009, 02:57:56 AM
Then your $boardurl must be http://domain.com not http://www.domain.com
ok done. now everything is without the www and seems working.
this means that prettyurl does not work with www in front of domain name?
Thanks alot!
Quote from: Dannii on March 30, 2009, 02:57:56 AM
Quote from: lovearat on March 29, 2009, 08:03:44 PM
Could someone please help me? My site is completely inaccessable such adding pretty urls. I have no clue what to do. And I am a rookie when it comes to this stuff.
Follow the first section of the trouble shooting page.
Quote from: ferlo on March 30, 2009, 01:59:16 AM
yes of course.
all the url are mentioned as www
forum is installd in subdir of a wp installation.
note, the .htaccess in wp root use www in front of domain name too.
smf has been setup with www too in domain name.
situation as follow.
all url ARE setup as www.domainname (http://www.domainname/)
after activating pretty url for ALL the sections I get:
menu rewriting with www
section rewriting with www
board rewriting without www
topic rewriting without www
BTW, url for the whole site should be http://www.domain.com/page.html (http://www.domain.com/page.html) not just http://www.domain.com/page/ (http://www.domain.com/page/) it's more seo afaik. :)
thanks for now.
Then your $boardurl must be http://domain.com (http://domain.com/) not http://www.domain.com (http://www.domain.com/)
And .html are no more SEOed. Cool URIs don't have extensions!
Problem solved and my site is back online.
Quote
Any ideas please folks? Is it just not properly installed or something, or is it deeper stuff?
Your language file wasn't modified correctly.
Quote from: ferlo on March 30, 2009, 06:59:20 AM
ok done. now everything is without the www and seems working.
this means that prettyurl does not work with www in front of domain name?
Thanks alot!
It should work completely fine. If you have problems then your DNS must be messed up.
Hi Danni, thanks for the reply.
What's the best way to resolve this please? Uninstall, delete then reinstall? Or to manually edit the code/pages? Or to restore backup and then try reinstall?
Could it be linked to me doing the change to utf8 thing before?
Sorry, I'm a newbie to all this, and learning slowly - very slowly :-X
Edit modifications.english.php and check that there's only one ?> and that it's the very last thing in the file.
Quote from: Dannii on March 30, 2009, 08:43:38 AM
Edit modifications.english.php and check that there's only one ?> and that it's the very last thing in the file.
Cheers Danni, you're a star! For some reason, the mod text was placed after the ?> as you suggested. Simple cut and paste, and it's all sorted :D
Thanks again for such a great mod, and your advice & support!
I found that Pretty URL's was keeping my new Ajax Chat mod from working properly. When I disable Pretty URL all is fine in the world.
If there a way to make an exception for the Chat mod? I think that I had to do something similar for my Arcade.
Quote from: Jiveturkey on March 31, 2009, 02:55:24 PM
I found that Pretty URL's was keeping my new Ajax Chat mod from working properly. When I disable Pretty URL all is fine in the world.
If there a way to make an exception for the Chat mod? I think that I had to do something similar for my Arcade.
The mod is probably using relative URLs. Ask the author to fix it so it uses full absolute URLs. For the arcade you can use the extras package.
Actually this bit of code fixed it.
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
Hello,
It appears that I'm getting id_topic appended to some of the sitemap urls's.
http://www.thebestsandwichintheworld.com/sitemap.xml (http://www.thebestsandwichintheworld.com/sitemap.xml)
Any ideas ?
Regards.
Hi!
I've used a code like this:# Remove WWW from url
RewriteCond %{HTTP_HOST} ^www,miosito.altervista.org [NC]
RewriteRule ^(.*)$ hxxp://miosito.altervista.org/$1 [R=301,L]
to redirect all www requests to the same without www but this work fine for demo and other link except for forum (i think for querystring).
Is there any way to fix?
Thanks in advance, DarkWolf :)
Quote from: pastramirye on April 01, 2009, 06:55:21 PM
Hello,
It appears that I'm getting id_topic appended to some of the sitemap urls's.
http://www.thebestsandwichintheworld.com/sitemap.xml (http://www.thebestsandwichintheworld.com/sitemap.xml)
Any ideas ?
Regards.
Looks like you have multiple topics with the same title so it's adding the ID to keep them unique.
Quote from: Dark-Wolf on April 01, 2009, 09:53:18 PM
Hi!
I've used a code like this:# Remove WWW from url
RewriteCond %{HTTP_HOST} ^www,miosito.altervista.org [NC]
RewriteRule ^(.*)$ hxxp://miosito.altervista.org/$1 [R=301,L]
to redirect all www requests to the same without www but this work fine for demo and other link except for forum (i think for querystring).
Is there any way to fix?
Thanks in advance, DarkWolf :)
No idea.
Quote from: Dannii on April 02, 2009, 01:13:32 AMLooks like you have multiple topics with the same title so it's adding the ID to keep them unique.
Okay - I'm with you.
Multiple topics (2) with same first word in the title.
Needs to be looked at on my part. ;)
When I change the topic name(s) the particular url's which are appended with ID do not update in the sitemap ?
I ran maintenance - no change.
Regards.
Topic URLs don't change because they're permanent. If they changed then lots of links would break.
Quote from: Dannii on April 02, 2009, 05:51:21 AM
Topic URLs don't change because they're permanent. If they changed then lots of links would break.
Ahhhh.
I see now. *slap head*
No need to continue this.
Thanks.
i have been using pretty urls for a while on my forums, i am very pleased with it. thanks for your efforts in bringing this to the community. however, i have problem,
i have moved one of my databases to another server and another domain and when i install prety urls to run on this new server and domain the url points to the old domain. i think there is something that is in the database like a cache or something that has all the old urls saved. is this so? if so how would i delet this cache and have my urls rewritten for the new domain?
if it is not what i think it is, what might be the problem? thanks in advance.
Follow the second section on the trouble shooting page.
hello,
After I installed the pretty urls mod, then i clicked the "shrink or expand the header" -that is a "-" button, then it came the page:
"404 Not Found
The resource requested could not be found on this server!"
this is where i clicked as shown in the attached pic.
the other place is the the "-" botton at the right side of the "info center" when i click it it gets the same 404 not found page.
i need this mod very much, so please help to solve this problem, thank you.
Quote from: Dannii on April 03, 2009, 06:34:41 AM
Follow the second section on the trouble shooting page.
thanks, i will try that.
Quote from: ellion on April 04, 2009, 01:33:16 AM
Quote from: Dannii on April 03, 2009, 06:34:41 AM
Follow the second section on the trouble shooting page.
thanks, i will try that.
sorry,
which trouble shooting page, i cant find one.
http://code.google.com/p/prettyurls/wiki/TroubleShooting
This one of course
Quote from: neverhurry on April 03, 2009, 11:57:05 AM
hello,
After I installed the pretty urls mod, then i clicked the "shrink or expand the header" -that is a "-" button, then it came the page:
"404 Not Found
The resource requested could not be found on this server!"
this is where i clicked as shown in the attached pic.
the other place is the the "-" botton at the right side of the "info center" when i click it it gets the same 404 not found page.
i need this mod very much, so please help to solve this problem, thank you.
Exactly am facing the same problem and came here for the support,
so its the bug in New version that it converts the JAVASCRIPT too :(
Its the new link of Upshrink header ( + )
http://gstek.info/forum/onclick=%22mainHeader.toggle();
where it should be like javascript:mainHeader.toggle();
So plese help us to correct it as no one is able to use any javascript related thing???
_______________________________________________-
One more qs in sql database this table "forum_pretty_urls_cache"
Is increasing day by day even going to ne ner abour 70mb whereas all of mydatabse
size [ expect this table ] is just 50 mb???
Is it safe to drop this table or just to flush its contents??
Would it be better is authour of the mod do something
so that cache remains lower...
Dannii, Does it support Persian topic names?
like this: خلیج همیشه فارس
i have come here 4 times today to see if anybody give me some light to solve my problem. I need this mod very much.
Quote from: Dannii on April 04, 2009, 09:54:43 AM
http://code.google.com/p/prettyurls/wiki/TroubleShooting
This one of course
oh yes that one of course.
i cannot believe that fix actually worked that was some kind of voodoo or something.
anyway all is good now. thank you :D
I realise I've broken the javascript links... I will try to fix them soon. But it's not a big issue, just don't click them?
gourav, you can empty it, but it will quickly fill up again. Do you have a database size limit?
darklord2, no, though eventually I do want to add something like that.
Btw, anyone interested in helping develop this mod?
@danni yes i have limit of sql database, but that is not a matter here? I am concerned about gignatic size of cache? Cache of double size than the whole size of database? May i know whats d use of this table? What will happen if i delete this table? Isnt it possible to have this mod without having load on database?
And about javascipt? Please give us some quick solution so that we can ourself do it as there are too many java links in my forum and i have near about 1k active users ..
I am sorry 4 so many qs. :)
The cache stores every URL. Each post probably has like 5 URLs... so that's why it's so huge. But without the cache it would need many more queries for each page view. The cache reduces the database load.
Well, you could go back to 0.9... that would fix the problems.
OMG! I just installed pretty url's for the second time (first time I got nothing but errors messages) and it stuffed up my whole entire site. Ok to explain about 4 months ago I changed my domain, after installing this mod, when clicking on anything on site (posts/boards etc) it was actually reverting back to my old domain. Any ideas why it would be doing this? I would love to have this installed on my site but not with it sending people to dead links. Im running 1.1.8
Follow the second section on the trouble shooting page!
Quote from: ferlo on March 30, 2009, 06:59:20 AM
ok done. now everything is without the www and seems working.
this means that prettyurl does not work with www in front of domain name?
Thanks alot!
It should work completely fine. If you have problems then your DNS must be messed up.
[/quote]
uhmm... maybe there is a problem with a WP installation, in domain root, and its .htaccess?
Yes that could be a problem too.
Ok, i have just upgrade from 1.1.7 to 1.1.8 and mods stoped to work.
Pretty urls is one of them.
I have downloaded the lastest version of Pretty Urls mod, but when i try to apply it after uploading the compress file via FTP, it show this:
Execute Modification SMF1-1/Sources.xml Modification parse error
2. Execute Modification - Modification parse error
3. Execute Modification SMF1-1/BoardsAndTopics.xml Modification parse error
4. Execute Modification - Modification parse error
5. Execute Modification SMF1-1/Themes.xml Modification parse error
6. Execute Modification - Modification parse error
7. Execute Modification .Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification .Themes/default/languages/Modifications.english-utf8.php Skipping file
9. Execute Modification .Themes/default/languages/Modifications.french.php Skipping file
10. Extract File .Sources/PrettyUrls.php
11. Extract File .Sources/PrettyUrls-Filters.php
12. Extract File .Sources/Subs-PrettyUrls.php
13. Extract File .Themes/default/PrettyUrls.template.php
14. Extract Tree .Themes/default/pretty
15. Extract File .Themes/default/languages/PrettyUrls.english.php
16. Extract File .Themes/default/languages/PrettyUrls.french.php
17. Execute Code SMF1-1/install.php
So i can't install it.
Why this errors? (Modification parse error)
I have done what you said to other user with the same problem.
I have created my own "temp" folder in "Packages" and i uploaded all the uncompressed file in it.
Then the error didnt appear, but when i click in install, it appeared other error, that it couldnt find the Subs-PrettyUrls.php in a "require" line, so i uploaded it by myself in the sources directory.
Then, i tried again and it worked, but i cant see the menu on the admin control panel although i am in english language.
I cant apply it without that panel...
If you don't have the menu item then there's two things to check, that all of the changes in Sources.xml were made correctly, and that the language entries were added to modifications.english.php.
Hi Dannii,
Love the mod and support bro!
Quick question.. if I move a thread or complete-board to another category what will happen with the URL? I don't want to lose my current PageRank for some of my threads but need to move them.
Thanks,
Low
Quote from: gourav on April 05, 2009, 12:16:54 AM
@danni yes i have limit of sql database, but that is not a matter here? I am concerned about gignatic size of cache? Cache of double size than the whole size of database? May i know whats d use of this table? What will happen if i delete this table? Isnt it possible to have this mod without having load on database?
And about javascipt? Please give us some quick solution so that we can ourself do it as there are too many java links in my forum and i have near about 1k active users ..
I am sorry 4 so many qs. :)
what are you using smf version?
Quote from: Dannii on April 04, 2009, 10:34:58 PM
I realise I've broken the javascript links... I will try to fix them soon. But it's not a big issue, just don't click them?
gourav, you can empty it, but it will quickly fill up again. Do you have a database size limit?
darklord2, no, though eventually I do want to add something like that.
Btw, anyone interested in helping develop this mod?
Are you search beta tester or developer?
Quote from: Low on April 07, 2009, 09:46:04 PM
Hi Dannii,
Love the mod and support bro!
Quick question.. if I move a thread or complete-board to another category what will happen with the URL? I don't want to lose my current PageRank for some of my threads but need to move them.
Thanks,
Low
If you move a topic the topic part of the URL will remain the same and the board part will change. Old URLs will be redirected. If you move a board nothing happens.
Quote from: Özgür´ on April 07, 2009, 10:16:43 PM
Are you search beta tester or developer?
I'm not quite sure what you're asking? But I'm the creator of this mod, and also a beta tester of SMF (occasionally). There's a lot I want to do with this mod, but I don't have a lot of time. The issue tracker shows a lot of my plans.
After installing Pretty URL on SMF 2.0 Rc1 now I get only my home page. And when I click on other links it give sme page not displayed error message. I cannot even get to admin page to remove the pretty mod. Please help
After installing Pretty URL on SMF 2.0 Rc1 now I get only my home page. And when I click on other links it give sme page not displayed error message. I cannot even get to admin page to remove the pretty mod. Please help
Threads merged. Do NOT multiple post support topics. This should be asked in the Pretty URL's support topic as it is related to that mod. I'll move your posts to that thread.
Please follow the first section of the trouble shooting page.
Which would be here: http://code.google.com/p/prettyurls/wiki/TroubleShooting
It might pay to note that in your OP and on the download page as it isn't immediately obvious.
Hmm yeah probably should have more links to it. But then it seems I post it 2-3 times a page anyway ;)
I reinstalled my SMF forum yesterday and switched from Seo4SMF to Pretty URLs in the process. A couple of items and hours later I managed to get my forums back up and running and working. So far so good and it seems so much more powerful than Seo4SMF. I also love the extras package that allows me to transfer the old Seo4SMF links to the new Pretty URLs style. You might want to document this better. ;-)
A couple of small items:
1. Since there is no .htaccess file included. It was a bit strange at first esp since I had my own .htacccess setup and Pretty URLs couldn't overwrite the file.
2. Pretty URLs doesn't warn that it wipes out any existing .htaccess file that's already in place. Anyway to set it up so that Pretty URLs only rewrites a small portion of .htaccess instead of wiping it out with its own copy? If .htaccess is not writeable is it possible to show some info box with instructions on what to do and/or code to copy/paste?
3. Pretty URLs break collapsible boxes that are JavaScript driven. ie have a href that is set to "#" and onclick event handler. I had to edit PrettyUrls-Filters.php and add the following line inside pretty_buffer_callback:
if ($matches[2] == '"#"')
return $matches[1] . $matches[2];
P.S. Thanks Dannii for developing and supporting great packages.
Gena01
Quote from: Dannii on April 07, 2009, 10:12:44 AM
If you don't have the menu item then there's two things to check, that all of the changes in Sources.xml were made correctly, and that the language entries were added to modifications.english.php.
I dont know how to verify that Sources.xml is correctly, but modifications.english is empty.
Must i copy from PrettyUrls.english.php and paste all in modificacions.english.php?
I have done it, but nothing changes...
The URLs in the forum are not "pretty", but you can enter from a pretty URL. So i suppose that the mod is applyed but the pretty url option is disable.
I only want to active it, but without a control panel...
Thanks.
I have a problem in the forum, when I installed preety.When i try to upload a picture and click on "More atachments," appears to me empty pages, and URL says "javascript: addAttachment ();".
So, when i upload pictures on the forum do not work when I activated preety, and when I turn off all is fine. Please help me
I am having the same error as a few other people who posted here, but I'm on SMF 2.0 RC1.
If someone could help me out I greatly appreciate it:
http://img9.imageshack.us/img9/7991/installc.jpg
Quote from: Gena01 on April 09, 2009, 01:50:45 PM
I reinstalled my SMF forum yesterday and switched from Seo4SMF to Pretty URLs in the process. A couple of items and hours later I managed to get my forums back up and running and working. So far so good and it seems so much more powerful than Seo4SMF. I also love the extras package that allows me to transfer the old Seo4SMF links to the new Pretty URLs style. You might want to document this better. ;-)
A couple of small items:
1. Since there is no .htaccess file included. It was a bit strange at first esp since I had my own .htacccess setup and Pretty URLs couldn't overwrite the file.
2. Pretty URLs doesn't warn that it wipes out any existing .htaccess file that's already in place. Anyway to set it up so that Pretty URLs only rewrites a small portion of .htaccess instead of wiping it out with its own copy? If .htaccess is not writeable is it possible to show some info box with instructions on what to do and/or code to copy/paste?
3. Pretty URLs break collapsible boxes that are JavaScript driven. ie have a href that is set to "#" and onclick event handler. I had to edit PrettyUrls-Filters.php and add the following line inside pretty_buffer_callback:
if ($matches[2] == '"#"')
return $matches[1] . $matches[2];
P.S. Thanks Dannii for developing and supporting great packages.
Gena01
It creates a backup of the .htaccess file... though I want to make it even friendlier than that in the future.
Quote from: MacX on April 09, 2009, 02:38:50 PM
Quote from: Dannii on April 07, 2009, 10:12:44 AM
If you don't have the menu item then there's two things to check, that all of the changes in Sources.xml were made correctly, and that the language entries were added to modifications.english.php.
I dont know how to verify that Sources.xml is correctly, but modifications.english is empty.
Must i copy from PrettyUrls.english.php and paste all in modificacions.english.php?
I have done it, but nothing changes...
The URLs in the forum are not "pretty", but you can enter from a pretty URL. So i suppose that the mod is applyed but the pretty url option is disable.
I only want to active it, but without a control panel...
Thanks.
Go to the mod page and follow all the manual instructions.
Quote from: darkNiGHTS on April 09, 2009, 08:30:09 PM
I am having the same error as a few other people who posted here, but I'm on SMF 2.0 RC1.
If someone could help me out I greatly appreciate it:
http://img9.imageshack.us/img9/7991/installc.jpg
Ask for help in the support boards please, because this is a problem with the package manager, not this mod! You'll need to make a temp folder and extract all the files into it...
And yes everyone, javascript is broken. Install 0.9 if that's a big problem!
Hello, is there a fix for the quotes problem on href tags? On my forum index page, all href tags after ytitleY tag are without " signs. If i deactivate pretty urls, then are these signs there. My index file is a valid php file but not with pretyurls mod.
I tried it with smf 1.1.8 and smf 2.0 RC1, the same issue on both forums.
Go back to 0.9. I have 2 big exams so don't have time to fix it right now.
Quote from: Dannii on April 11, 2009, 09:23:31 AM
Go back to 0.9. I have 2 big exams so don't have time to fix it right now.
0.9 is not compatible with 2.0, right?
Of course it is. This mod has been compatible for... years I think.
Quote from: Dannii on April 11, 2009, 09:36:24 AM
Of course it is. This mod has been compatible for... years I think.
but i cant install it. SMF says, nothing was installed.
on 1.1.8, there is no problems yet. All quotes are there and my site is valid.
You may need to emulate the version you have, or else you can always do a manual install.
Quote from: Dannii on April 11, 2009, 09:39:37 AM
You may need to emulate the version you have, or else you can always do a manual install.
ok, i will try it. Thanks for your help.
With the pretty URL mod disabled, what could be written in the .htaccess files to make the remaining pretty URL stored in the google cache old posts redirect to ugly URL again?
I ask this to avoid page duplication and search engine penalties.
Use the Reverter package.
Quote from: Dannii on April 09, 2009, 09:30:25 PM
Quote from: MacX on April 09, 2009, 02:38:50 PM
Quote from: Dannii on April 07, 2009, 10:12:44 AM
If you don't have the menu item then there's two things to check, that all of the changes in Sources.xml were made correctly, and that the language entries were added to modifications.english.php.
I dont know how to verify that Sources.xml is correctly, but modifications.english is empty.
Must i copy from PrettyUrls.english.php and paste all in modificacions.english.php?
I have done it, but nothing changes...
The URLs in the forum are not "pretty", but you can enter from a pretty URL. So i suppose that the mod is applyed but the pretty url option is disable.
I only want to active it, but without a control panel...
Thanks.
Go to the mod page and follow all the manual instructions.
The point is that i dont want to install it manually.
If i do it, in a future update i would have to do the same work...
I have modified the Modifications.english.php with the code you show in the manual instalation, but nothing happends, i cant see the text in my admin panel to control de mod. (in english language)
So... if the problem is not in Modifications.english.php, where can it be?
The mod is "installed" because you can access the forum with a pretty URL (from old post, or web page or so on), but the forum doesnt create the pretty URLs, only reads it.
Thanks.
Well you can try going to index.php?action=admin;area=pretty
It's possible the part of Admin.php (or whichever file it is that has the menu, I forget) wasn't modified correct either.
Quote from: Dannii on April 12, 2009, 01:03:24 PM
Well you can try going to index.php?action=admin;area=pretty
It's possible the part of Admin.php (or whichever file it is that has the menu, I forget) wasn't modified correct either.
I can NOT enter using:
www.miweb.com/foro/index.php?action=admin;area=pretty
So?
Thanks
Then Admin.php must also not have been modified in the part that adds that page...
Oh ******!
I have just realised that the forum doesnt read the pretty urls either...
I have tryed to uninstall it, but it shows this errors:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg266.imageshack.us%2Fimg266%2F7076%2Fimagen2e.png&hash=77a2362ded20a91421f0711737546a2fc4d30daf) (http://img266.imageshack.us/img266/7076/imagen2e.png)
If i cant uninstall it...
Looks like none of the changes were ever actually made to those files... so nothing actually happened when you installed it.
Quote from: Dannii on April 13, 2009, 10:17:17 AM
Looks like none of the changes were ever actually made to those files... so nothing actually happened when you installed it.
Ok i have uninstalled it any way.
I have applyed it again, but... same problem, nothing happends.
When i installed it, i had to create a "temp" folder in "packages" one in the server with attributes in 775.
Then, as you told me to do, i upload there all the mod unziped. (pretty, SMF1-1, SMF2-0, Languages.xml, Package-info.xml.... etc)
So where is the problem?
The forum doesnt show me any error when i install it.
Thank you again.
Do all your files have the right permissions? Anything in the error log?
Anyways, can you ask for help on the smf support boards? This is a problem with the package manager, not this mod, and I don't have the time to help you a lot.
Quote from: Dannii on April 13, 2009, 11:11:44 AM
Do all your files have the right permissions? Anything in the error log?
Anyways, can you ask for help on the smf support boards? This is a problem with the package manager, not this mod, and I don't have the time to help you a lot.
From the log error:
Quote
miweb/index.php?action=packages;sa=install2;package=prettyurls-0-9-2.tar.gz
512: package_flush_cache(): some files are still not writable
File: /home/todopeta/public_html/foro/Sources/Subs-Package.php
Line: 1905
Quote
miweb/index.php?action=packages;sa=install2;package=prettyurls-0-9-2.tar.gz
2: fopen(/home/todopeta/public_html/foro/Sources/PrettyUrls.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/todopeta/public_html/foro/Sources/Subs-Package.php
Line: 1901
Quote
miweb/index.php?action=packages;sa=install2;package=prettyurls-0-9-2.tar.gz
2: copy(/home/todopeta/public_html/foro/Sources/Subs-PrettyUrls.php) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
File: /home/todopeta/public_html/foro/Sources/Subs-Package.php
Line: 1025
There are more errors, but all similars.
If its not a mod error, i will ask in other posts.
Thanks.
Sorry if this has been brought up before, but a search didn't find it, and 170 pages is too much to read through, so I was wondering, I don't know for sure right now if the problem is in fact Pretty URLs, but the "new" button next to a topic title is no longer directing my users to the first unread post. Anybody else have a similar issue, or is there a fix already out for it?
What's it taking them to? I don't see how that could be changed by this mod.
I have been trying hard to fix the URL's of my forum..
I need it to be http://www.xyz.com/blaah/blaah (http://www.xyz.com/blaah/blaah) and it always shows http://xyz.com/blaah/blaaah (http://xyz.com/blaah/blaaah)
(For all the topics and Boards)
The Site URL is perfect..
I turnicated smf_pretty_topic_urls and smf_pretty_urls_cache
Dropped them and did a new install. Still no change..
Also cleared Forum Cache..
I suppose it puts a .htaccess somewhere. Could i do the changes using that?
Help me out please...
Edit:-
SMF version :- 2.0RC1
Quote from: Dannii on April 14, 2009, 10:25:20 PM
What's it taking them to? I don't see how that could be changed by this mod.
It's just showing them the top of the topic, instead of jumping down to the post. Like I said, it very well could be something else, this was just the most recent modification I've installed, so I thought I'd ask and see if there was any possible way that it could be this. But if you don't think it could be, then I'll look around elsewhere to see if I can determine the problem!
Thanks.
Quote from: F.L.A.M.E.R on April 14, 2009, 10:26:27 PM
I have been trying hard to fix the URL's of my forum..
I need it to be http://www.xyz.com/blaah/blaah (http://www.xyz.com/blaah/blaah) and it always shows http://xyz.com/blaah/blaaah (http://xyz.com/blaah/blaaah)
(For all the topics and Boards)
The Site URL is perfect..
I turnicated smf_pretty_topic_urls and smf_pretty_urls_cache
Dropped them and did a new install. Still no change..
Also cleared Forum Cache..
I suppose it puts a .htaccess somewhere. Could i do the changes using that?
Help me out please...
Edit:-
SMF version :- 2.0RC1
Can you show me a real URL?
Quote from: Dannii on April 15, 2009, 12:41:31 AM
Quote from: F.L.A.M.E.R on April 14, 2009, 10:26:27 PM
I have been trying hard to fix the URL's of my forum..
I need it to be http://www.xyz.com/blaah/blaah (http://www.xyz.com/blaah/blaah) and it always shows http://xyz.com/blaah/blaaah (http://xyz.com/blaah/blaaah)
(For all the topics and Boards)
The Site URL is perfect..
I turnicated smf_pretty_topic_urls and smf_pretty_urls_cache
Dropped them and did a new install. Still no change..
Also cleared Forum Cache..
I suppose it puts a .htaccess somewhere. Could i do the changes using that?
Help me out please...
Edit:-
SMF version :- 2.0RC1
Can you show me a real URL?
Have a look here:- http://www.garden.ca/forum/
Oh wait. I see your problem, I thought the topics were not being generated correctly cause your first is blaah and your second is blaaah
Check that $boardurl is correct, then follow the second section on the trouble shooting page. This mod just uses $boardurl, whatever it is gets used.
$boardurl in settings.php right? I did change that with www but changed it back to without until i get a solution cause users get logged off when they jump from www to non www.
Sorry about the extra "a"
That's cause of the cookies...
Decide what you want. Set $boardurl to it, (make sure $scripturl matches too!) then run that second file on the trouble shooting page. If people get logged out then they can log in and get a new cookie!
Damn, how could i forget about this..:P i had done it before.. i shouldnt really loose these kinda things...
Thanks for your help..:)
Edit:-
Any idea on the javascript probem? Things go prettty weird..
Yeah I know about the Javasciprt problem but don't have time to fix it, at least not till after my two exams next week. I recommend just using 0.9.
Quote from: Dannii on April 15, 2009, 08:15:45 AM
Yeah I know about the Javasciprt problem but don't have time to fix it, at least not till after my two exams next week. I recommend just using 0.9.
Okay.. .Best of luck with your exams..:) Not a big problem here.. Concentrate!!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fedweb.tusd.k12.az.us%2FUHS%2FPerspective%2Fimages%2Fstress.gif&hash=8528065d1dff1cf63fb3f575fd421ca1924cfbeb)
Haha thanks!!
Good luck for your exams!! :)
Alright, let's say my forum is http://example.com. The forum is in the root as it is both a forum and portal. Now, let's say I have another app running in http://www.example.com/o_app. How do I make Pretty URLs not pick that up and think it should still direct to the forums? How do I make Pretty URLs not change http://www.example.com/o_app to http://www.atlfades.net/o_app/?pretty;board=o_app.0?
Add something to your .htaccess file to let it pass through. Or, just use the index file inside that folder.
Quote from: Dannii on April 16, 2009, 10:51:01 PM
Add something to your .htaccess file to let it pass through. Or, just use the index file inside that folder.
Alrighty, I'll make the changes to whichever Subs file from the Pretty URLs modification that controls the .htaccess, that way it's a bit more permanent. Thanks!
This mod breaks every page in my forum. I fixed it using the FAQ.
I think it may be because my forum is located on a subdomain. Is this the case, and is there any way to fix it?
Subdomains shouldn't matter... any more information?
There's not much else to say. All the tests are successful, but when install the mod and everything breaks.
http://sc.drifting-dreams.com/index.php?topic=249.msg3437#new This is a current link on my forum
http://sc.drifting-dreams.com//ooc-and-random/i-suck/msg3437/#new This is what it becomes, and the page can not be found.
Check pretty_root_url in smf_settings. It shouldn't have a final slash.
I changed it, now the link displays as http://sc.drifting-dreams.com/ooc-and-random/i-suck/msg3437/#new but is still broken.
@Dannii
Is javascript issue solved ?
Claine, IIS isn't a supported webserver.
Özgür´, no sorry.
Quote from: Dannii on April 22, 2009, 10:26:03 PM
IIS isn't a supported webserver.
What, really? Not even with this (http://www.iis.net/extensions/URLRewrite)?
Come on, it's very simple with IIS7 (http://learn.iis.net/page.aspx/557/translating-htaccess-content-to-iis-webconfig/) on Windows Server 2008. IIS6 won't work without some obscure ISAPI module, though, that's right. :)
Add it, and you'll have even more fans!
(just kidding) ;)
Sure if you install a rewrite mod go ahead and use this mod. But I won't be supporting that. Most people who've tried this mod on IIS have been using shared hosting.
I just felt like coming along after quite some time, but IIS7 does have an official rewrite module just like Apache it just needs to be downloaded and installed afterwards (it's free from Microsoft). Most shared hosters like GoDaddy support it.
You just have a web.config file instead of an .htaccess file. It's nothing big. And just for the record, I don't need it, I could just do it myself. ;)
Hmm so it's official, common, and shared hosts support it? Well then, I'll look into it!
And btw, people have made this mod work with lighttpd and nginx too, with a bit of difficulty. A long term plan is to make that easier.
My database smf_pretty_urls_cache has over 10 539 557 lines and a size of 3.5Gb...
Is this normal???
If your forum is big, yes. You can empty it without any problems.
I just installed Pretty URLs. Everything went fine during the install. However once I activate it I am getting 404 errors on every page. I know my server allows mod_rewrites and per directory htaccess files. I can make a change in the htaccess that is incorrect and I will get an Internal Server error so I know it is reading the htaccess
I looked in the error log and there was nothing. I know how to fix the forum and get it back to normal but what do I need to do in order to fix this mod?
SMF 2.0 RC1
prettyurls 0.9.2
Thanks
Hmm, do you have any other .htaccess files that could be conflicting?
You might need to add a RewriteBase rule.
Hmm I have another .htaccess file but I don't think it is conflicting. All it does it takes the www off of the URL. What would I need to do with the rewritebase?
Well that could be enough to cause problems.
I don't know. You could try
RewriteBase /
Might help, might not.
Dannii my server is Litespeed. How can I install this modification to Litespeed ?
Quote from: Dannii on April 25, 2009, 05:38:19 AM
Well that could be enough to cause problems.
I don't know. You could try
RewriteBase /
Might help, might not.
Thank you, RewriteBase /forum/ worked
Quote from: Disturtion on April 25, 2009, 06:02:19 AM
Dannii my server is Litespeed. How can I install this modification to Litespeed ?
No idea. I've never heard of Litespeed.
Finally got rid of PHPSESSIONID urls!!! so search engines can hopefully properly index my site.. using SMF 1.1.8, Pretty Urls v.0.9.2, and on my server at bluehost.com they use PHP v5.2.9, and as far as I can tell, it's a PHP-CGI (http://www.bluehostforum.com/archive/index.php/t-9193.html) setup.
After various searches here on what to do, I first tried adding to /index.php at the top of the file:
<?php
ini_set('url_rewriter.tags','');
ini_set('session.use_trans_sid', false);
ini_set('session.use_only_cookies', 1);
No effect.
I didn't add ini_set('url_rewriter.tags',''); but after studying my backups before and after installing Pretty Urls, it appears Pretty Urls added that (it originally had double quotes, and I edited to single quote since most of the other references I found on the SMF forums using ini_set seem to use single quotes for the parameters, not sure if it matters...). I searched all the files included in the v0.9.2 package with Notepad++ for "rewriter" and found nothing. Anyone know what it does and if Pretty Urls did indeed somehow add that?
I left all the code in just in case..
I found this thread a good reference:
http://www.simplemachines.org/community/index.php?topic=127806.msg816508#msg816508
Which had this interesting line of code:
$buffer = preg_replace("~PHPSESSID=([0-9A-Za-z]*)~i", '', $buffer);
My mod:
In /Sources/QueryString.php find the function ob_sessrewrite($buffer).
Find:
// Return the changed buffer.
return $buffer;
Add before:
// get rid of PHPSESSIDs....
$buffer = preg_replace("~\?PHPSESSID=([0-9A-Za-z]*)~i", '', $buffer);
$buffer = preg_replace("~;PHPSESSID=([0-9A-Za-z]*)~i", '', $buffer);
And that works!
In the reference link I posted, the mod was for a non-pretty urls install. I found the str_replace mods weren't needed and I modified the preg_replace function with the two shown above. Using the referenced preg_replace function left a "?" at the end of the urls when viewing the site for the first time as a guest (cookies cleared before visiting). There were also links like ;PHPSESSID=... so the second preg_replace fixes those.
Now I looked over the Pretty Urls code and in /Sources/PrettyUrls-Filters.php (//Rip out everything that shouldn't be cached) and it appears do be doing something with PHPSESSIDs, but with my limited experience (1 week of PHP, reg expressions, HTML, Javascript), I can't tell what it's doing or trying to do.
In any case my site (http://www.somebandsilike.com) no longer has PHPSESSIDs when checked with:
http://www.webconfs.com/search-engine-spider-simulator.php
I just added it google via the sitemap tools (http://www.google.com/webmasters/tools/) and also submited the sitemap.xml (http://www.somebandsilike.com/sitemap.xml) link today, so this really hasn't been tested on a real search engine yet. YMMV.
Any comments or bad things that might happen by eliminating the PHPSESSIDs?
Quote from: Gena01 on April 09, 2009, 01:50:45 PM
...
A couple of small items:
1. Since there is no .htaccess file included. It was a bit strange at first esp since I had my own .htacccess setup and Pretty URLs couldn't overwrite the file.
2. Pretty URLs doesn't warn that it wipes out any existing .htaccess file that's already in place. Anyway to set it up so that Pretty URLs only rewrites a small portion of .htaccess instead of wiping it out with its own copy? If .htaccess is not writeable is it possible to show some info box with instructions on what to do and/or code to copy/paste?
3. Pretty URLs break collapsible boxes that are JavaScript driven. ie have a href that is set to "#" and onclick event handler. I had to edit PrettyUrls-Filters.php and add the following line inside pretty_buffer_callback:
if ($matches[2] == '"#"')
return $matches[1] . $matches[2];
P.S. Thanks Dannii for developing and supporting great packages.
Gena01
I do a backup via my host's control panel of my database and public sections before any mods, and had to dig out the .htaccess from the backup, because like you, Pretty URLs replaced what I had before. And the backup htaccess file Pretty URLs generates is not a backup. It appears to be the same as the new .htaccess.
Anyway some after some editing I merged my old htaccess with the Pretty URLs one.
Also, if you run the Pretty URLs maintenance tasks, it will again replace the .htaccess with only the Pretty URL code, and create another incorrect backup file.
This is with the v0.9.2 package.
Thanks for the mod to fix the collapsible headers! I added it at the top of the pretty_buffer_callback function. Is this the right place to add it (seems to work ok there)?
// A callback function to replace the buffer's URLs with their cached URLs
function pretty_buffer_callback($matches)
{
global $context, $scripturl;
if ($matches[2] == '"#"')
return $matches[1] . $matches[2];
// Is this URL in an attribute, and so will need new quotes?
$addQuotes = preg_match('~[\"\']$~', $matches[1]);
// Remove those annoying quotes
$matches[2] = preg_replace('~^[\"\']|[\"\']$~', '', $matches[2]);
// Store the parts of the URL that won't be cached so they can be inserted later
preg_match('~PHPSESSID=[^;#&]+~', $matches[2], $PHPSESSID);
preg_match('~sesc=[^;#]+~', $matches[2], $sesc);
preg_match('~#.*~', $matches[2], $fragment);
// Rip out everything that won't have been cached
$cacheableurl = preg_replace(array('~PHPSESSID=[^;#]+|sesc=[^;#]+|#.*$~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $matches[2]);
$url_id = str_replace(array($scripturl . '?board=', $scripturl . '?topic=', $scripturl . '?action=', $scripturl), array('`B', '`T', '`A', '`S'), $cacheableurl);
// Stitch everything back together, clean it up and return
$replacement = isset($context['pretty']['cached_urls'][$url_id]) ? $context['pretty']['cached_urls'][$url_id] : $cacheableurl;
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
$replacement = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|&$|;$|#$|=$~'), array(';', '?', '#', ''), $replacement);
return $matches[1] . ($addQuotes ? '"' : '') . $replacement . ($addQuotes ? '"' : '');
}
Hello,
the mod is working good, but i have one problem.
I have installed the nneonneo's Shoutbox (http://custom.simplemachines.org/mods/index.php?mod=585)
When i want to post at the shoutbox, it returns a white page with
/Forum/onsubmit="doSend();return not found.
Can you say me, how i can create a filter which filter the shoutbox? So that i have standard URL at shoutbox.
I have already tryed to disable only TOPIC url rewriting or Category url rewriting, but at both i receive this error.
I need to disable the full mod to get the shoutbox working again.
So please tell me, how i can make, that the shoutbox works with old url.
thanks!
Quote from: Disturtion on April 25, 2009, 06:02:19 AM
Dannii my server is Litespeed. How can I install this modification to Litespeed ?
With litespeed you will have no problems, because it support .htaccess etc.
You need to change nothing - just install the Mod via CP and it will work.
Is it possible to have in future pretty urls for SMF Media Gallery?
Quote from: sixthofmay on April 25, 2009, 12:54:19 PM
Any comments or bad things that might happen by eliminating the PHPSESSIDs?
If a user doesn't have cookies or there's something wrong with them they won't be able to log in.
If your forum is showing PHPSESSIDs to a search engine then that's a bug with SMF. Report it.
Quote from: master2oo8 on April 25, 2009, 04:36:56 PM
Hello,
the mod is working good, but i have one problem.
I have installed the nneonneo's Shoutbox (http://custom.simplemachines.org/mods/index.php?mod=585)
When i want to post at the shoutbox, it returns a white page with
/Forum/onsubmit="doSend();return not found.
Can you say me, how i can create a filter which filter the shoutbox? So that i have standard URL at shoutbox.
I have already tryed to disable only TOPIC url rewriting or Category url rewriting, but at both i receive this error.
I need to disable the full mod to get the shoutbox working again.
So please tell me, how i can make, that the shoutbox works with old url.
thanks!
Are you using Pretty URLs 0.9? There's a bug with 0.9.2.
Quote from: inny on April 25, 2009, 08:22:01 PM
Is it possible to have in future pretty urls for SMF Media Gallery?
Yes. Want to write a filter for it?
QuoteYes. Want to write a filter for it?
I can write. But how can i make a titled to url.
I write http://www.rockayseri.net/galeri/ this. But if you help me, i can make a titled (item title in url) url..
You'll need to do database queries. However... unless you know they're unique that would also require a lot of changes to the gallery source code. Even if they are unique you'll probably need to change a bit of the gallery source code, to make it check the title instead of the ID.
But profile filters different work.
Pretty profile filter make this.
RewriteRule http://www.simplemachines.org/community/sixfeetunder2 to http://www.simplemachines.org/community/index.php?action=profile;user=sixfeetunder2.
But I don't know make /category/catname to mgallery;sa=album;id=catid.
Can you explain a bit more?
Quote
Are you using Pretty URLs 0.9? There's a bug with 0.9.2.
I am using 0.9.2.
I will install now 0.9, thanks
edit:
Nice, it works with 0.9.
Thanks again!
Dannii,
While dealing with this post (http://www.simplemachines.org/community/index.php?topic=306543.0)
I've discovered an issue with your mod related to indexing/noindexing (tested on default RC1).
With your mod installed ALL topics and ALL boards have <meta> noindex set (where we would actually like them to be indexed).
I'm guessing this probably related to this code in Display.php (and properly similarly in other source files)
// Let's do some work on what to search index.
if (count($_GET) > 2)
foreach ($_GET as $k => $v)
{
if (!in_array($k, array('topic', 'board', 'start', session_name())))
$context['robot_no_index'] = true;
}
if (!empty($_REQUEST['start']) && (!is_numeric($_REQUEST['start']) || $_REQUEST['start'] % $context['messages_per_page'] != 0))
$context['robot_no_index'] = true;
Quote from: Dannii on April 26, 2009, 08:53:27 AM
Quote from: inny on April 25, 2009, 08:22:01 PM
Is it possible to have in future pretty urls for SMF Media Gallery?
Yes. Want to write a filter for it?
Im not sure if you mean that you want me to write a filter, but if this is the case, i dont know how to do it :-X
If you have time to give us the filter for SMF media gallery im pretty sure many people will be glad.
Best Regards,
Inny
Quote from: Özgür´ on April 26, 2009, 09:07:07 AM
But profile filters different work.
Pretty profile filter make this.
RewriteRule http://www.simplemachines.org/community/sixfeetunder2 to http://www.simplemachines.org/community/index.php?action=profile;user=sixfeetunder2.
But I don't know make /category/catname to mgallery;sa=album;id=catid.
Can you explain a bit more?
Ask the gallery author if you can already access albums by their title, maybe by something like action=mgallery;sa=album;albumid=title
You probably can't though. If so then you would need to modify the gallery a lot in order to be able to do that. If the gallery doesn't ensure that titles are unique this will be
really hard.
Quote from: regularexpression on April 26, 2009, 10:05:47 AM
Dannii,
While dealing with this post (http://www.simplemachines.org/community/index.php?topic=306543.0)
I've discovered an issue with your mod related to indexing/noindexing (tested on default RC1).
With your mod installed ALL topics and ALL boards have <meta> noindex set (where we would actually like them to be indexed).
I'm guessing this probably related to this code in Display.php (and properly similarly in other source files)
// Let's do some work on what to search index.
if (count($_GET) > 2)
foreach ($_GET as $k => $v)
{
if (!in_array($k, array('topic', 'board', 'start', session_name())))
$context['robot_no_index'] = true;
}
if (!empty($_REQUEST['start']) && (!is_numeric($_REQUEST['start']) || $_REQUEST['start'] % $context['messages_per_page'] != 0))
$context['robot_no_index'] = true;
I had thought I had already accounted for this. Has the algorithm changed since the code was first introduced? It's also possible I never actually had it working...
Quote from: inny on April 26, 2009, 11:28:45 AM
Quote from: Dannii on April 26, 2009, 08:53:27 AM
Quote from: inny on April 25, 2009, 08:22:01 PM
Is it possible to have in future pretty urls for SMF Media Gallery?
Yes. Want to write a filter for it?
Im not sure if you mean that you want me to write a filter, but if this is the case, i dont know how to do it :-X
If you have time to give us the filter for SMF media gallery im pretty sure many people will be glad.
Best Regards,
Inny
Ask Özgür´, he seems to have a limited filter working.
really nice mod , but it didn't work good with Arabic
why ??
Cause Arabic isn't support in URLs sorry.
At least not without percent encoding. I would like to add that in the future, but it's a long way away.
Just to remind you all:
0.9.2 breaks some javascript URLs. I recommend using 0.9 until this can be fixed.
On SMF 2 this mod sets every topic and board page to not be indexed! If that matters, either remove the meta tag completely or don't use this mod. If you decide to uninstall this mod, the Reverter package is essential! Get it at the downloads page (http://code.google.com/p/prettyurls/downloads/list)!
Quote from: Dannii on April 27, 2009, 04:00:37 AM
Cause Arabic isn't support in URLs sorry.
At least not without percent encoding. I would like to add that in the future, but it's a long way away.
ok, as you wish.
Next problem:
When in a topic stands a username which include ü,ä,ö i receive a white page.
And when i search after member which include ü,ä,ö,., i receive too a white page.
This is since i use this mod.
How can i fix?
Quote
On SMF 2 this mod sets every topic and board page to not be indexed! If that matters, either remove the meta tag completely or don't use this mod
Where i can remove meta tag?
Quote from: Dannii on April 27, 2009, 04:05:22 AMOn SMF 2 this mod sets every topic and board page to not be indexed! If that matters, either remove the meta tag completely or don't use this mod.
Can you go into this more? Is this a bug or is it intended to do this and why?
I do see the noindex tag in my code. Is it easy to remove?
Hi Danny, Dannii ;D
French utf-8 Translation
// Admin chrome
$txt['pretty_chrome_title'] = 'Administration de Pretty URLs';
$txt['pretty_chrome_menu_news'] = 'Nouvelles';
$txt['pretty_chrome_menu_settings'] = 'Paramètres';
$txt['pretty_chrome_menu_maintenance'] = 'Maintenance';
// News page
$txt['pretty_chrome_caption_news'] = 'Dernières nouvelles et information en direct du site du Projet';
$txt['pretty_chrome_page_title_news'] = 'Pretty URLs Nouvelles & Infos';
$txt['pretty_chrome_title_news'] = 'Nouvelles & Info';
$txt['pretty_current_version'] = 'Version courante';
$txt['pretty_download'] = 'Télécharger';
$txt['pretty_latest_version'] = 'Dernière version';
$txt['pretty_upgrade'] = 'Mettre à jour maintenant!';
$txt['pretty_version'] = 'Info Version';
// Settings page
$txt['pretty_chrome_caption_settings'] = 'Titre des paramètres';
$txt['pretty_chrome_page_title_settings'] = 'Paramètres de Pretty URLs';
$txt['pretty_core_settings'] = 'Paramètres principaux';
$txt['pretty_enable'] = 'Autoriser la réécriture des URLs';
$txt['pretty_filters'] = 'Filtres de réécriture des URLs';
$txt['pretty_save'] = 'Sauvegarder les changements';
// Maintenance page
$txt['pretty_chrome_caption_maintenance'] = 'Effectuer diverses tâches de maintenance';
$txt['pretty_chrome_page_title_maintenance'] = 'Maintenance de Pretty URLs ';
$txt['pretty_run_maintenance'] = 'Effectuer les tâches de maintenance';
// Edit filters page
$txt['pretty_chrome_caption_filters'] = 'Un outil pour éditer les tables de filtres. La table est formatée ici avec le format <a href="http://www.json.org/">JSON.</a> Prenez garde, le Parser JSON est extrêmement strict.';
$txt['pretty_chrome_page_title_filters'] = 'Outils pour les filtres Pretty URLs ';
$txt['pretty_chrome_title_filters'] = 'Outils Filtres';
$txt['pretty_no_json'] = 'Les Extensions PHP JSON sont requises pour cet outil. Envisagez la mise à jour PHP 5.2.';
?>
Second part coming soon
Quote from: master2oo8 on April 27, 2009, 02:02:12 PM
Next problem:
When in a topic stands a username which include ü,ä,ö i receive a white page.
And when i search after member which include ü,ä,ö,., i receive too a white page.
This is since i use this mod.
How can i fix?
If you get a white page check all your error logs.
Quote
Where i can remove meta tag?
From your theme's index template.
Quote from: keiths on April 27, 2009, 03:19:46 PM
Quote from: Dannii on April 27, 2009, 04:05:22 AMOn SMF 2 this mod sets every topic and board page to not be indexed! If that matters, either remove the meta tag completely or don't use this mod.
Can you go into this more? Is this a bug or is it intended to do this and why?
I do see the noindex tag in my code. Is it easy to remove?
I thought I had accounted for it, but it seems I haven't. No it's no intended, and I will fix it in the future. You can remove it from your theme's index template. Search, there has been lots about it before...
Quote from: shaitanfr on April 27, 2009, 05:14:01 PM
Hi Danny, Dannii ;D
French utf-8 Translation
Hi, please do translations here thanks: https://translations.launchpad.net/prettyurls/trunk/+pots/prettyurls
hi im getting this error and im pretty sure its from this mod
8: Undefined index: pretty_enable_filters
File: /home/vol5/byethost24.com/b24_3307563/modernopolis.byethost24.com/htdocs/forum/Sources/QueryString.php
Line: 518
If you save the settings again does it still occur?
Quote from: Dannii on April 27, 2009, 08:48:57 PM
If you save the settings again does it still occur?
What do you mean?
Do to the pretty URLs settings page, turn off rewriting, save etc. Does the error keep occuring?
Quote
If you get a white page check all your error logs.
Apply Filter: Only show the error messages of this URL xxxx/board/index.php?action=mlist;sa=search
Apply Filter: Only show the errors with the same message
Database Error: Illegal mix of collations for operation ' IN '
SELECT url_id, replacement
FROM smf_asdfgpretty_urls_cache
WHERE url_id IN ('http://xxx/board/Themes/1/style.css?rc1', 'http://xxx/board/Themes/default/css/print.css?rc1', 'http://xxx/board/Themes/default/css/ff.css', '`Ahelp', '`Asearch', '`S', '`S?type=rss;action=.xml', 'http://xxx/board/Themes/Prof/css/index.css', 'index.php', '`Aadmin', '`Amoderate', '`Aprofile', '`Apm', '`Amlist', '`Alogout;c316ddec=ccec66261a3c7473f388891a9102b602', 'http://root.lu', 'http://server.lu', '`Amlist;sa=search', '`Amlist;sa=all', '`Apm;sa=send;u=5185', '`Aprofile;u=5185', '`Aemailuser;sa=email;uid=5185', 'http://unerschütterlich.de', 'http://www.icq.com/whitepages/about_me.php?uin=5050321', '`Amlist;sa=search;search=Mr.+Unersch%C3%BCtterlich', 'http://www.simplemachines.org/', 'http://www.simplemachines.org/about/copyright.php', 'http://validator.w3.org/check/referer', '`S?wap2', 'http://smf2.uuuq.com/', 'http://host-tracker.com/', 'http://strato.de')
Apply Filter: Only show the errors from this file
File: /home/web/xxx/board/Sources/PrettyUrls-Filters.php
Line: 48
This stands in Error log!
Using phpMyAdmin can you check what encoding the smf_asdfgpretty_urls_cache table has? Maybe try converting it to UTF-8?
thanks.
http://code.google.com/p/prettyurls/issues/detail?id=59
Dannii i write some code and work me.. Are you interested?
I'm vazgec
Subs-Prettyurls.php
Find
// Output the file
$handle = fopen($boarddir . '/.htaccess', 'w');
fwrite($handle, $htaccess);
fclose($handle);
Replace
// open htaccess
$fh = fopen($boarddir . '/.htaccess', 'r');
// read data
$theData = fread($fh, filesize($boarddir . '/.htaccess'));
// close htaccess
fclose($fh);
// copy file line from "# Pretty URLs mod" up.
$part = explode('# Pretty URLs mod', $theData);
// open file
$handle = fopen($boarddir . '/.htaccess', 'w');
// Write pretty and other code
fwrite($handle, $part[0].$htaccess);
// close file
fclose($handle);
Smf Articles
Callback
function pretty_articles_filter($urls)
{
global $boardurl, $scripturl;
// kategoriler
$pattern = '~' . $scripturl . '(.*)action=articles;cat=([0-9]+)(.*)~S';
$replacement = $boardurl . '/articles/cat/$2/';
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
// makaleler
$pattern = '~' . $scripturl . '(.*)sa=view;article=([0-9]+)(.*)~S';
$replacement = $boardurl . '/articles/article/$2/';
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
}
Filter
,
"articles": {
"description": "articles",
"enabled": 0,
"filter": {
"priority": 4,
"callback": "pretty_articles_filter"
},
"rewrite": {
"priority": 4,
"rule": [
"RewriteRule ^articles/article/([^/]+)/?$ index.php?action=articles;sa=view;article=$1 [L,QSA]",
"RewriteRule ^articles/cat/([^/]+)/?$ index.php?action=articles;cat=$1 [L,QSA]"
]
},
"title": "Articles modu pretty desteği"
}
article url : site.com/forum/articles/article/5/
cat url: site.com/forum/articles/cat/5/
Smf Downloads
Callback
function pretty_downloads_filter($urls)
{
global $boardurl, $scripturl;
$pattern = '~' . $scripturl . '(.*)action=downloads;cat=([0-9]+)(.*)~S';
$replacement = $boardurl . '/downloads/cat/$2/';
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
$pattern = '~' . $scripturl . '(.*)sa=view;down=([0-9]+)(.*)~S';
$replacement = $boardurl . '/downloads/item/$2/';
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
}
Filter
,
"downloads": {
"description": "downloads",
"enabled": 0,
"filter": {
"priority": 5,
"callback": "pretty_downloads_filter"
},
"rewrite": {
"priority": 5,
"rule": [
"RewriteRule ^downloads/item/([^/]+)/?$ index.php?action=downloads;sa=view;down=$1 [L,QSA]",
"RewriteRule ^downloads/cat/([^/]+)/?$ index.php?action=downloads;cat=$1 [L,QSA]"
]
},
"title": "downloads modu pretty url"
}
item url : site.com/forum/downloads/item/5/
cat url: site.com/forum/downloads/cat/5/
Simple Tags
Callback
function pretty_tags_filter($urls)
{
global $boardurl, $scripturl;
// Tags
$pattern = '~' . $scripturl . '(.*)action=tags;name=([^;]+)~S';
$replacement = $boardurl . '/tags/$2';
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
// Tagcloud
$pattern = '~' . $scripturl . '(.*)action=tags;cloud(.*)~S';
$replacement = $boardurl . '/tagscloud/';
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
}
Filter
Filter =>
,
"tags": {
"description": "Rewrite Tags URLs",
"enabled": 0,
"filter": {
"priority": 5,
"callback": "pretty_tags_filter"
},
"rewrite": {
"priority": 5,
"rule": [
"RewriteRule ^tags/([^/]+)/?$ index.php?action=tags;name=$1 [L,QSA]",
"RewriteRule ^tagscloud/?$ index.php?action=tags;cloud [L,QSA]"
]
},
"title": "Tags Mod Pretty Support"
}
tag url : site.com/forum/tags/tagsname/
cloud url: site.com/forum/tagscloud/
Quote from: Özgür´ on April 29, 2009, 11:57:14 AM
http://code.google.com/p/prettyurls/issues/detail?id=59
Dannii i write some code and work me.. Are you interested?
I'm vazgec
Subs-Prettyurls.php
Find
// Output the file
$handle = fopen($boarddir . '/.htaccess', 'w');
fwrite($handle, $htaccess);
fclose($handle);
Replace
// open htaccess
$fh = fopen($boarddir . '/.htaccess', 'r');
// read data
$theData = fread($fh, filesize($boarddir . '/.htaccess'));
// close htaccess
fclose($fh);
// copy file line from "# Pretty URLs mod" up.
$part = explode('# Pretty URLs mod', $theData);
// open file
$handle = fopen($boarddir . '/.htaccess', 'w');
// Write pretty and other code
fwrite($handle, $part[0].$htaccess);
// close file
fclose($handle);
Hey thanks, but I'll probably write it myself. There needs to be more error checking, in case there is no .htaccess file, or there's no Pretty URLs section yet. And, it needs to be able to leave code after this mod's section alone as well.
Thanks for those extra filters, I'll have a look at them.
Quote from: Dannii on April 28, 2009, 07:30:18 PM
Using phpMyAdmin can you check what encoding the smf_asdfgpretty_urls_cache table has? Maybe try converting it to UTF-8?
thx, it works now
When I include the SSI.php file in one of my external PHP scripts, it removes all quotes around href's. So if I have something in my code like this:
<link rel="stylesheet" type="text/css" href="/css/stylesheet.css" />
When I include SSI.php, it changes it to this
<link rel="stylesheet" type="text/css" href=/css/stylesheet.css />
or if I have this:
<a href="#">
It changes it to this:
<a href=>
I have tested it an found that this is being caused by prettyURLs. Do you know what I need to do to fix this?
It's a bug in 0.9.2. Use 0.9.
I had a problem getting 0.9 to work with smf 2.0 rc1
Emulate a 2.0 beta version then.
I'm not sure what you mean.
Hi,
On vers 1.1.8 default core, can we fix the 404 file not found error when we shrink the header?
Thanks,
TD
Quote from: keiths on May 01, 2009, 07:34:57 AM
I'm not sure what you mean.
Use the box at the bottom of the package manager.
Quote from: TDNY on May 01, 2009, 07:57:02 PM
Hi,
On vers 1.1.8 default core, can we fix the 404 file not found error when we shrink the header?
Thanks,
TD
Use 0.9 for now.
Dannii: I hope you can help me to use this mod with wordpress .htaccess like
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
The forum is a subdir of the wordpress installation but also a subdomain i.e. accessed at http://forum.domain.com
I tried this but still doesnt work..
rewritecond %{REQUEST_URI} !^/forum/
Any idea how? thanks.
Thanks for the advice and the mod Dannii. I got a test failed via pkg mgr on the manage board template . It changed all of the code except for this part.
<td width="10%" align="right"><a href="', $scripturl, '?action=manageboards;sa=board;boardid=', $board['id'], '">', $txt['mboards_modify'], '</a></td>
<td width="10%" style="padding-right: 1ex;" align="right">', allowedTo('admin_forum') ? '<a href="' . $scripturl . '?action=manageboards;sa=pretty;boardid=' . $board['id'] . '">' . $txt['pretty_modify_board_url'] . '</a>' : '', '</td>
I went thru and made the change manually and it seems to be working great with no errors. Thanks again,
TD
hi what do i have to add to the hdtaccess so my js menu will work and my logo links to my homepage
QuotePretty URLs 0.9.2 has several significant bugs, and it is recommended to go back to 0.9, which you can get at the downloads page. Sorry if you have experienced these bugs, I hope to fix them soon.
Also, all versions of Pretty URLs break the noindex check, meaning all topics and boards will not be indexed. If this matters to you, please remove the meta tag from your index template, or disable this mod. If you decide to uninstall this mod, the Reverter package is essential! Get it at the downloads page.
I was the one that brought this to the forum notice please check this http://www.simplemachines.org/community/index.php?topic=306543.0
Now you said
QuoteIf this matters to you, please remove the meta tag from your index template, or disable this mod
I don't intend to remove the mod but please let us know in details the workaround that you mention by removing the meta tag from index template file.
I mean details of what code we need to change in index template and what that will do in terms of indexing.
My current index template has this code <meta name="robots" content="INDEX, FOLLOW">' which I modified. Earlier it was <meta name="robots" content="NOINDEX">'
Also when are you going to get some free time to fix this? Please help.
Without wanting to sift through 174 pages worth of posts (and the search turned up nothing), I need to ask a question.
I'm using a custom bridge. For my bridge, my forum is accessed through the URL "mysite/message-board". However, the Pretty URL mod is still rewriting the URLs to use the source path, which is "mysite/messageboard". Is there any way to change this so that the Pretty URLs mod rewrites to "mysite/message-board"?
I have my forum URL set to "mysite/message-board" in the Admin panel, but Pretty URLs doesn't seem to read that. My css styles don't work on the "mysite/messageboard" links, so it's very important that I can get it configured to "mysite/message-board", where the forum will be properly wrapped through the bridge.
Quote from: af3 on May 02, 2009, 12:45:30 AM
Dannii: I hope you can help me to use this mod with wordpress .htaccess like
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
The forum is a subdir of the wordpress installation but also a subdomain i.e. accessed at http://forum.domain.com
I tried this but still doesnt work..
rewritecond %{REQUEST_URI} !^/forum/
Any idea how? thanks.
Add something to the beginning of your wordpress .htaccess that will just pass everything in /forum/ (or whatever your sub directory is) straight through. I'm not sure exactly how you'd do that sorry.
Quote from: bluesinjid on May 02, 2009, 06:06:39 PM
hi what do i have to add to the hdtaccess so my js menu will work and my logo links to my homepage
Just install 0.9 instead.
Quote from: helpdivya on May 03, 2009, 03:35:39 AM
QuotePretty URLs 0.9.2 has several significant bugs, and it is recommended to go back to 0.9, which you can get at the downloads page. Sorry if you have experienced these bugs, I hope to fix them soon.
Also, all versions of Pretty URLs break the noindex check, meaning all topics and boards will not be indexed. If this matters to you, please remove the meta tag from your index template, or disable this mod. If you decide to uninstall this mod, the Reverter package is essential! Get it at the downloads page.
I was the one that brought this to the forum notice please check this http://www.simplemachines.org/community/index.php?topic=306543.0
Now you said QuoteIf this matters to you, please remove the meta tag from your index template, or disable this mod
I don't intend to remove the mod but please let us know in details the workaround that you mention by removing the meta tag from index template file.
I mean details of what code we need to change in index template and what that will do in terms of indexing.
My current index template has this code <meta name="robots" content="INDEX, FOLLOW">' which I modified. Earlier it was <meta name="robots" content="NOINDEX">'
Also when are you going to get some free time to fix this? Please help.
Check that topic again, I've fixed it in SVN now! :)
Quote from: shanksta13 on May 03, 2009, 04:15:39 AM
Without wanting to sift through 174 pages worth of posts (and the search turned up nothing), I need to ask a question.
I'm using a custom bridge. For my bridge, my forum is accessed through the URL "mysite/message-board". However, the Pretty URL mod is still rewriting the URLs to use the source path, which is "mysite/messageboard". Is there any way to change this so that the Pretty URLs mod rewrites to "mysite/message-board"?
I have my forum URL set to "mysite/message-board" in the Admin panel, but Pretty URLs doesn't seem to read that. My css styles don't work on the "mysite/messageboard" links, so it's very important that I can get it configured to "mysite/message-board", where the forum will be properly wrapped through the bridge.
Follow the second section of the trouble shooting page.
@Dannii This mod is pron to huge Validation errors?
Just yesterday i did validation of my forum and i was shocked
to see its was more than 600 errors :o , I immedately removed the pretty URL
and now errors were only 13 but as there are lots of pretty urls posted in
my forum i have to reinstall it again ? so please tell me what is the solution of
removing validation errors due to pretty url?
just check the errors of my forum:
http://validator.w3.org/check?uri=http%3A%2F%2Fgstek.info%2Fforum%2Findex.php
gourav, yes 0.9.2 removes the quotes. This isn't in itself a problem, only in silly XHTML! However it is causing problems with Javascript. So until I have it fixed, please go back to 0.9.
Quote from: Dannii on May 03, 2009, 08:08:29 PM
gourav, yes 0.9.2 removes the quotes. This isn't in itself a problem, only in silly XHTML! However it is causing problems with Javascript. So until I have it fixed, please go back to 0.9.
That's not a good answer?
Anyway why did you removed the quotes from URL's?
In such way pretty url becomes the cause to decrease
the Page rank of a site it means this mod is highly unsafe :(
BTW THE MOD VERSION 0.9 [ one you uploaded now in mod page ]
In incompatible with bet2 RC1 however previously which i used
was fine...
Do you have any edits with the help of which i can add quotes
to all urls??
Because it's a bug, I didn't do it on purpose! I will fix it, but I'm busy with uni.
And no the removal of quotes won't effect your page rank at all.
Just emulate beta4...
I have just installed it but nothing happened! The URLs have not been changed, I am using SMF 1.1.8
What is there to do?
Did you enable it in the new admin page?
Where exactly in the admin page?
In Main -> Packages -> Browse Packages ? Yes I have....
No, in the new page the mod adds. If for some reason it isn't in your side menu go to index.php?action=admin;area=pretty
I'm sorry let's just call me a noob in SMF... but where exactly do I have to look for the "new page the mod adds" ???
Did you read my last post? Look in the admin menu, or go to that address.
Alright I went to that link and activated the mod but now I have ruined my forum...
I'm getting only Error 404's http://forum.ronatvan.com
I have restored my links back to default, your mod doesn't work! I get 404 errors on all changed URLs
Follow the first section on the trouble shooting page.
Then check your error logs.
Also double check with your host that they support .htaccess and mod_rewrite.
:)
Yes they support .htaccess and the .htaccess content has been changed by your mod.
Anything noteworthy in the error logs?
Maybe you could try adding a rewritebase rule. It sometimes helps.
@Dannii can you please give me appropriate version for beta 2.0 RC1
as the version which is on the mod is showing incompatible while installing :(
Then emulate beta 4... actually you could also try 0.9.1, get it from the google code site. http://code.google.com/p/prettyurls/downloads/detail?name=prettyurls-0-9-1b.tar.gz
QuoteSome what fixed it using your "Trouble shooting page" &
<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_enable_filters' => '0'));
?>
How do I remove pretty url on my admin control panel after uninstalling your mod?
This mod F'd my site!
smf 1.1.8
I did do a Db back up just prior. how do I un-do this mod?
Undo what? The code changes? Database changes?
And please, use a nicer tone of voice. This mod is big and powerful and a little dangerous. You chose to install a beta release of risky software. You might need to get your hands dirty a little to get it working, or to clean it up.
That said, when I add a tests page, hopefully that will stop a lot of these clueless admins install this mod on IIS etc.
i hi use this version when you said use the 0.9
9. Pretty URLs 0.9 [ Uninstall ] [ List Files ] [ Delete ]
my JS DROPDOWN Still doesnt work! :-\
Quote from: bluesinjid on May 05, 2009, 09:50:08 PM
i hi use this version when you said use the 0.9
9. Pretty URLs 0.9 [ Uninstall ] [ List Files ] [ Delete ]
my JS DROPDOWN Still doesnt work! :-\
Try maintenance from pretty urls admin.
0.9.3 is now released!
This fixes the javascript errors, as well as the noindex bug.
Quote from: Dannii on May 06, 2009, 07:45:54 AM
0.9.3 is now released!
This fixes the javascript errors, as well as the noindex bug.
What was the no index bug? Did it affect v1.1.8? Or was that only on v2.X?
The javascript bug was just affecting collapsing the header and footer right?
Also I'm finding my "More Stats" link on my index page is giving a 404 error (Pretty URLs v0.9.2).
If I go to www.mydomain.com/stats/ I get a 404.
If I go to www.mydomain.com/stats the page displays ok.
Anyone else seeing this?
What is smstats that I see in the rewrite code? I get a blank page if enter that into the url. Thinking it might be messing with the stats link, I tried removing it from the rewrite, but no effect.
All javascript was effected... all links really, it wasn't adding quotes. The noindex bug was only for 2.0.
The stats page works fine for me. Can you show me a real link to your site? It's pretty much impossible to help without seeing for myself.
Quote from: Dannii on May 06, 2009, 07:09:21 PM
All javascript was effected... all links really, it wasn't adding quotes. The noindex bug was only for 2.0.
The stats page works fine for me. Can you show me a real link to your site? It's pretty much impossible to help without seeing for myself.
ok thanks! It may be one of my other rewrite rules messing things up. Was just wondering if others were seeing my issue. Not a big deal.. If I can't figure it out, I'll just remove the trailing slash in the link as a workaround.
Here's the url:
http://www.somebandsilike.com/stats/
Mm yes you must have some other conflicting rules.
Quote from: Dannii on May 06, 2009, 07:21:24 PM
Mm yes you must have some other conflicting rules.
Ok I did an experiment. I removed all but the Pretty URLs rewrites, cleared my browser cache, and still had the issue. Heh. I've done a lot of other mods (none to Pretty URLs code though), so it could be anything... No problem, I'll just remove the trailing slash from the link.
I'm going to look through the SMF code to find and see if I have any other broken javascript urls (the two I know about, the collapsible header/footer, and SMF Quick Theme changer I've already fixed), and see if I need to implement the v0.9.3 changes.
Why wouldn't you install 0.9.3?
Quote from: Dannii on May 06, 2009, 08:30:36 PM
Why wouldn't you install 0.9.3?
I have my reasons... :)
But reality hit that most of the code in SMF is over my head, and Dannii has done all the hard work already...
I used notepad++'s compare function on the install files between v0.9.2 and v0.9.3 and here are the main deltas for 1.1.X:
edit: removed my summary based on what Dannii said in the post below, at least until I understand this better... I don't want anyone messing their board up with a messed up summary ya know :)
Dannii- does this summary look correct to you?
What do the changes in QueryString.php do? Fix something on 301 redirects of non-pretty urls?
Now here's a weird one-
I only had to make the one line change in PrettyUrls-Filters.php.
The changes in QueryString.php were already done!?!
I triple checked that I was comparing the right BoardsAndTopics.xml files from the v0.9.2 and v0.9.3 install packages and the differences are there, yet my QueryString.php already had the changes done. I looked though my mod history notes and can't find any reference to adding those manually. Bizarre..
Anyway.. I removed the mod for fixing the collapse feature that someone had posted earlier, since your update fixes it (yeah apparently I did mod the pretty urls code.. forgot about where that that mod was done until studying the deltas). And everything appears to be working well. :)
You have your changes backwards which is why they probably appear to be changed already. You also don't have all of them. It would be easier to look at these deltas: http://code.google.com/p/prettyurls/source/detail?r=95 http://code.google.com/p/prettyurls/source/detail?r=96
I really recommend just uninstalling and reinstalling the new package through the package manager though.
Quote from: Dannii on May 06, 2009, 10:56:16 PM
You have your changes backwards which is why they probably appear to be changed already. You also don't have all of them. It would be easier to look at these deltas: http://code.google.com/p/prettyurls/source/detail?r=95 http://code.google.com/p/prettyurls/source/detail?r=96
I really recommend just uninstalling and reinstalling the new package through the package manager though.
Ok I'll try that this weekend late at night and with the site backed up in case something goes wrong. I removed my summary as you can see above until I understand this better.
I activated one of the versions today, as it came with my smf. Now all of my links are broken, I can't even access the admin section to de-activate it?
So, might site is rendered un-useable, this isn't so pretty!
What's the fix? or the removal procedure?
Follow the first section of the trouble shooting page.
Ok... We will see...
I created a php file as suggested with the code, named it fix.php uploaded and ran it got a white page with '0')); ?>, and nothing changed?
MY server has mod_rewrite enabled... so why the error?
Ahh... try uploading it again? It looks fine. Or just set pretty_enable_filters to 0 with phpMyAdmin.
I uploaded again...and this is what I get..
Yeah that's really strange. Well use phpMyAdmin instead.
How do I make the user name show as title in their profile page, as of now it displays my forum title?
Fixed - It was a tinyportal problem! Thanks.
There are probably lots of ways... but none of them have anything to do with URLs. This isn't a comprehensive SEO mod, it just does URLs. Please ask for help in the SMF support boards. :)
How do I upgrade from 0.9 to 0.9.3? Do I uninstall the older version first, then install with the new one? Thanks.
Yes do exactly that :)
Hey thanks daanii this new version is all fine and sorted out all of my complaints :)
kudos to you.
Anyone having problems with their .htaccess file being overwritten by this mod? Which is not a problem, however it does cause redirection problems for my other domains.
Update: So it's a known issue ;D
Hey again dannii ;)
I am having a problem with my package manager as i told you some weeks ago...
I have ask in this forum about this, but we haven't found any idea of what the cause of the error can be...
So we think the problem can be in this mod, prettyUrls.
We have been talking about this in this topic if you want more info:
http://www.simplemachines.org/community/index.php?topic=305562.0
Tell me if you have hear about this problems or if you think it can be from the mod or simple if you havent got any idea of what can be causing it.
But please, i will thanks an answer :)
No it's a package manager problem. Nothing specific to this mod. Sorry but I don't have the time to solve everyone's package manager problems.
hi,
thanks for this great mod.
anyone notice this mod which converts topic url to
http://example.com/forum/classic-oldies/spandau-ballet-songs/msg21315/
is missing out the message "target" parameter? the bolded part from original topic url below
http://example.com/forum/index.php?topic=5507.msg21315#msg21315
I tried messing around with .htaccess by appending (red in color) below but still doesn't work :(
The topic after converted to pretty url will always loaded into first post regardless the "target" (#msg)
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3#$3 [NE,L,QSA]
Any help would be greatly appreciated! LOVE THIS MOD :D
duplicate title tags on pagination are a problem for me
it is easy to block with robots.txt if you do not have pretty URLs but everyone wants pretty URLs right
so now the pagniation is www.yoursite.com/100/ and www.yoursite.com/200/
is there a way to add something before the number or have a robots no index meta tag entered on this?
spaceman, works for me. Also, the target isn't sent to the server, so that won't help with anything.
bjraines, as I said before:
Quote from: Dannii on May 10, 2009, 07:09:47 AM
There are probably lots of ways... but none of them have anything to do with URLs. This isn't a comprehensive SEO mod, it just does URLs. Please ask for help in the SMF support boards. :)
:D excellent mod, thanks ;)
Hi,
I want to install pretty-url on a high traffic forum but before do it I wanted to test on a local installation.
I am using ubuntu 9.04. I installed apache-php-mysql, userdir and rewrite mods for apache and made a base smf install at my $HOME/public_html. It works fine.
Then I installed pretty-url but it does not work :(
I am completily unexperienced this rewrite things so I need help to solve my problem.
pretty-url created a .htaccess in my smf dir and inserted rewrite rules into it. I have 2 tables in the database created by pretty-url, smf_pretty_topic_urls and smf_pretty_urls_cache. When I actiwate it and choose a board, firefox get into an infinite redirect loop. On the other hand, the topic and board urls remains the same. If I put PT option at the and of the rewrite rules the apache error.log says it could not find the index.php under /var/www so something is wrong, I call it from localhost/~username/smf/.
Please help me where to start, how I could make it alive.
Thanks in advance.
additional info:
I made again a clean install for the whole smf, then installed pretty-url 0.9.3 and checked forum error log.
There was a message:
2: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Unknown modifier 'a'
File: /home/ati/public_html/smf/Sources/Subs-PrettyUrls.php
Line: 236
additional info2:
after enable rewriting only for boards first, the forum errorlog with full of a lot of the following messges:
2: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Unknown modifier 'a'
File: /home/ati/public_html/smf/Sources/PrettyUrls-Filters.php
Line: 297
could it be a php version problem?? my php version is PHP 5.2.6-3ubuntu4.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 23 2009 14:35:05)
This mod uses ~ as it's pattern delimiter. So either move it from ~username/ to somewhere else, or change the ~ characters in the patterns to something else.
Hmm, this is probably common enough that I should fix it in 1.0...
Thanks, I will try it in directly in /var/www just to check how it would be and could work.
I will refer here.
Quote from: Dannii on May 11, 2009, 07:15:36 PM
spaceman, works for me. Also, the target isn't sent to the server, so that won't help with anything.
bjraines, as I said before:Quote from: Dannii on May 10, 2009, 07:09:47 AM
There are probably lots of ways... but none of them have anything to do with URLs. This isn't a comprehensive SEO mod, it just does URLs. Please ask for help in the SMF support boards. :)
Hi Danii,
Thanks for your reply/support.
This is the scenario I'm facing....
#Before pretty url mod#
The topic url on browser's address bar would be
http://freshmidis.uni.cc/forum/index.php?topic=219.msg21231#msg21231
so any user could simply copy & paste it in any topic to refer to that particular *message* (msg21231)
#After pretty url mod#
However after this mod, the topic url on browser's address bar becomes:
http://freshmidis.uni.cc/forum/chit-chat/where's-everyone-from/msg21231/
whenever user copy & paste it for reference, other users always get to the first message (in this case, msg544)
Yeah I understand that the hash (#) sign could hardly parsed from .htaccess.
However please also look at the "pretty url" on invision board:
http://forum.lowyat.net/topic/1022930/latest
after clicking the above link, it would
*automagically* brings you to:
http://forum.lowyat.net/topic/1022930/+0#entry25863215
notice the #entry25863215 postfix which gets you to the corresponding message.
Can we achieve this with pretty url? Please help .htaccess editing.
Thank you so much :D
Can you show me a link in a post where it looses the target?
Quote from: Dannii on May 13, 2009, 06:59:33 AM
Can you show me a link in a post where it looses the target?
Hi Danii,
Thanks for your quick reply.
This is the link that gets me to the *last page* but not the corresponding message.
p/s: sorry, mistake in previous msg mention that it directs to first message, should be last page.
http://freshmidis.uni.cc/forum/chit-chat/where's-everyone-from/msg21231/
screenshot: (notice the url in address bar)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fxs139.xs.to%2Fxs139%2F09203%2Fnotarget594.jpg&hash=826ec7d268d88b0602b3e5643dafedd5d6b0bd52)
desired result: http://freshmidis.uni.cc/forum/chit-chat/where's-everyone-from/msg21231/#msg21231
screenshot: (notice the url in address bar)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fxs139.xs.to%2Fxs139%2F09203%2Ftargetted130.jpg&hash=c91b24f27f83509320cc4ae03da6f4dc57e52386)
Thanks again :D
Why aren't your URLs being rewritten? Try running maintenance please.
Quote from: regularexpression on April 26, 2009, 10:05:47 AM
Dannii,
While dealing with this post (http://www.simplemachines.org/community/index.php?topic=306543.0)
I've discovered an issue with your mod related to indexing/noindexing (tested on default RC1).
With your mod installed ALL topics and ALL boards have <meta> noindex set (where we would actually like them to be indexed).
I'm guessing this probably related to this code in Display.php (and properly similarly in other source files)
// Let's do some work on what to search index.
if (count($_GET) > 2)
foreach ($_GET as $k => $v)
{
if (!in_array($k, array('topic', 'board', 'start', session_name())))
$context['robot_no_index'] = true;
}
if (!empty($_REQUEST['start']) && (!is_numeric($_REQUEST['start']) || $_REQUEST['start'] % $context['messages_per_page'] != 0))
$context['robot_no_index'] = true;
I am looking at this problem also. I can find no way to noindex the paginated pages.
The noindex code is fixed in 0.9.3.
Quote from: Dannii on May 13, 2009, 08:18:00 AM
Why aren't your URLs being rewritten? Try running maintenance please.
Ok....done the maintenance again (did it once upon installation of pretty url mod)
still the same result :(
Any working demo forum with pretty url so I can confirm whether is it the default behavior of pretty url mod?
Thanks alot Danii :)
Have you disabled the topic and board filters?
Quote from: Dannii on May 13, 2009, 09:08:20 PM
Have you disabled the topic and board filters?
I've enabled the filters as mentioned on your first post:
"Enable the filters in the new Pretty URLs page"
Am I supposed to disable? Do you have a working demo, or can you verify is it a normal behavior of my pretty url mod (untargetted msg) on http://freshmidis.uni.cc/forum ?
Thanks alot I greatly appreciate your support :)
Dear Smf Group,
Before Writing I Hope U Solve My Prob ,,,,
I am Using 2 domain For My forum www.under-w0rld.com Is Main Domain & www.raavanan.com Is Parked Domain ,,,,, I try To Use preety url For my forum But Itss Working Fine .... But I Cnt able To Enter Topic If I Enter Asking My Id - pass Again Again Will Anyone Solve this problem
xxx.com/adjasjkdkjas
No 404 why ?
Quote from: spaceman on May 15, 2009, 12:13:58 PM
Quote from: Dannii on May 13, 2009, 09:08:20 PM
Have you disabled the topic and board filters?
I've enabled the filters as mentioned on your first post:
"Enable the filters in the new Pretty URLs page"
Am I supposed to disable? Do you have a working demo, or can you verify is it a normal behavior of my pretty url mod (untargetted msg) on http://freshmidis.uni.cc/forum ?
Thanks alot I greatly appreciate your support :)
Could you make me an temporary admin account and PM me the details please?
Quote from: __RaaVaNaN__ on May 16, 2009, 05:09:33 AM
Dear Smf Group,
Before Writing I Hope U Solve My Prob ,,,,
I am Using 2 domain For My forum www.under-w0rld.com Is Main Domain & www.raavanan.com Is Parked Domain ,,,,, I try To Use preety url For my forum But Itss Working Fine .... But I Cnt able To Enter Topic If I Enter Asking My Id - pass Again Again Will Anyone Solve this problem
You can really only use one domain with this.
Quote from: Frestorm on May 16, 2009, 10:33:22 AM
xxx.com/adjasjkdkjas
No 404 why ?
Because the default is to assume a board. If you want, you could change SMF to set the status to 404 on boards that don't exist.
do not go the route of the avatars: S
Quote from: Dannii on May 17, 2009, 07:18:53 PM
Quote from: Arkangel on May 17, 2009, 01:34:38 PM
do not go the route of the avatars: S
What??
active Pretty URLs.. do not get the images of the avatars or emoticons: S
I don't know what you mean.
I have some problems with 0.9.3 on a 1.1.8 installations. Some users (not all) get this error on some threads (not all):
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 ')' at line 3
File: /path/Sources/PrettyUrls-Filters.php
Line: 251
I have run maintence.
Does anyone have a clue why this happens? The users at the forum starts to get quite upset...
Quote from: Dannii on April 27, 2009, 04:00:37 AM
Cause Arabic isn't support in URLs sorry.
At least not without percent encoding. I would like to add that in the future, but it's a long way away.
can i help you in it ??
Quote from: ozzy_ on May 18, 2009, 08:38:31 AM
I have some problems with 0.9.3 on a 1.1.8 installations. Some users (not all) get this error on some threads (not all):
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 ')' at line 3
File: /path/Sources/PrettyUrls-Filters.php
Line: 251
I have run maintence.
Does anyone have a clue why this happens? The users at the forum starts to get quite upset...
Can you show me lines 145-155 of PrettyUrls-Filters.php please?
Quote from: islam2hamy on May 18, 2009, 08:44:42 AM
Quote from: Dannii on April 27, 2009, 04:00:37 AM
Cause Arabic isn't support in URLs sorry.
At least not without percent encoding. I would like to add that in the future, but it's a long way away.
can i help you in it ??
You can try rewriting pretty_generate_url(). If you keep that just for yourself that is fine, though I would be happy to have suggestions too.
Quote from: Dannii on May 18, 2009, 08:50:38 AMCan you show me lines 145-155 of PrettyUrls-Filters.php please?
function pretty_urls_actions_filter($urls)
{
global $boardurl, $context, $scripturl;
$pattern = '~' . $scripturl . '(.*)action=([^;]+)~S';
$replacement = $boardurl . '/$2/$1';
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
if (in_array($matches[2], $context['pretty']['action_array']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
}
Quote from: Dannii on May 18, 2009, 08:50:38 AM
Quote from: islam2hamy on May 18, 2009, 08:44:42 AM
Quote from: Dannii on April 27, 2009, 04:00:37 AM
Cause Arabic isn't support in URLs sorry.
At least not without percent encoding. I would like to add that in the future, but it's a long way away.
can i help you in it ??
You can try rewriting pretty_generate_url(). If you keep that just for yourself that is fine, though I would be happy to have suggestions too.
ok i will try
ozzy_, sorry, I meant 245-255!
Quote from: Dannii on May 18, 2009, 09:11:03 AM
ozzy_, sorry, I meant 245-255!
$new_urls[$row['ID_TOPIC']] = $pretty_text;
}
// Find any duplicates of existing URLs
$query = db_query("
SELECT pretty_url
FROM {$db_prefix}pretty_topic_urls
WHERE pretty_url IN (" . implode(', ', $query_check) . ')', __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($query))
$existing_urls[] = $row['pretty_url'];
mysql_free_result($query);
Quote from: ozzy_ on May 18, 2009, 09:14:34 AM
Quote from: Dannii on May 18, 2009, 09:11:03 AM
ozzy_, sorry, I meant 245-255!
$new_urls[$row['ID_TOPIC']] = $pretty_text;
}
// Find any duplicates of existing URLs
$query = db_query("
SELECT pretty_url
FROM {$db_prefix}pretty_topic_urls
WHERE pretty_url IN (" . implode(', ', $query_check) . ')', __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($query))
$existing_urls[] = $row['pretty_url'];
mysql_free_result($query);
The admin panel should show the actual full queries that were causing the problems. Could you copy one or two of them here please?
Quote from: islam2hamy on May 18, 2009, 09:17:45 AM
Quote from: Dannii on April 27, 2009, 04:00:37 AM
pretty_generate_url().
were can i found it??
Subs-PrettyUrls.php of course
I noticed recently that some of my forum links were showing up 404 in Google Webmaster Tools. After digging around and quite a bit I found that the broken/missing pages were generated by Seo4SMF before and that PrettyURLs Extras package is missing a few rewrite rules.
There's an option in Seo4SMF that's called: "Beautifying url for forum actions". Once activated it changes some of the default URLs to be action based. The new URLs look like ($action).html?topic=1.0......
I had to add these rewrite rules (at least for some common actions) to make things work again:
RewriteRule ^printpage\.html;topic=([0-9]*)\.([0-9]*) index.php?topic=$1.$2;action=printpage [L,QSA]
RewriteRule ^post\.html;topic=([0-9]*)\.([0-9]*)(;?.*)$ index.php?topic=$1.$2 [L]
RewriteRule ^help\.html;page=(.*)$ help/?page=$1 [L,QSA]
Now looking at it I guess I could have expanded it a bit more. But it should also help others find some broken pages and have some of them working again.
Gena01
Quote from: Dannii on May 18, 2009, 10:32:05 AM
The admin panel should show the actual full queries that were causing the problems. Could you copy one or two of them here please?
I have sent you a PM but I'll post it here aswell if someone else have a solution for this. The query that causes the problem is this:
SELECT pretty_url
FROM smf_pretty_topic_urls
WHERE pretty_url IN ()
For some reason (that I cant understand) sometimes $query_check is empty!?
problem active pretty url error:(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.tinypic.com%2Fmlt40h.gif&hash=5c07400939821c0cc0b03845f038f7f795721dc7)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F1y8ili.gif&hash=542d1d840152fd7be61e1ac814c542356f6b04d7)
URL avatars and emoticons changes ... depending on which item this
Quote from: Dannii on May 17, 2009, 09:02:54 AM
Quote from: spaceman on May 15, 2009, 12:13:58 PM
Quote from: Dannii on May 13, 2009, 09:08:20 PM
Have you disabled the topic and board filters?
I've enabled the filters as mentioned on your first post:
"Enable the filters in the new Pretty URLs page"
Am I supposed to disable? Do you have a working demo, or can you verify is it a normal behavior of my pretty url mod (untargetted msg) on http://freshmidis.uni.cc/forum ?
Thanks alot I greatly appreciate your support :)
Could you make me an temporary admin account and PM me the details please?
Hi Danii,
Thanks for the followup.
I manage to solve the issue with some modification to PrettyUrls-Filters.php.
Quote// Generate URLs for each new topic
...
...
$urls[$url_id]['replacement'] = $modSettings['pretty_root_url'] . '/' . $topicData[$url['topic_id']]['pretty_board'] . '/' . $topicData[$url['topic_id']]['pretty_url'] . '/' . $start . $url['match1'] . $url['match3'] . '#' . str_replace('/', '', $start);
what I actually wanna achieve is to append #msg22222 to the end of topic url so that when a user wants to refer their friend to the particular message (inside a topic), they can simply copy the pretty url on their browser which includes a target (# sign).
However I also changed the BoardIndex.php for the last topic.message link on each board, because it doesn't work for me for this portion (notice below in
bold)
Quote$this_last_post['href'] = $scripturl . '?topic=' . $row_board['ID_TOPIC'] . '.msg' . ($user_info['is_guest'] ? $modSettings['maxMsgID'] : $row_board['new_from']) . (empty($row_board['isRead']) ? ';boardseen' : '') . '#new';
So I had to change the above to ALWAYS show last message link (#new) instead of $row_board['new_from'] for forum members.
Thanks & regards.
Hi Danii,
Besides, I notice there're two tables in my mysql db namely smf_pretty_url_topics & smf_pretty_url_topics_cache (or something like that couldn't remember the exact naming :P)
what I understand is the script will insert a record inside one of these tables when a user clicks on a non-recorded topic url, correct me if I'm mistaken.
So my question is, can I clear ALL data inside these two tables to simulate a FRESH install of this mod?
Thanks alot in advance :D
Quote from: Dannii on April 27, 2009, 04:00:37 AM
pretty_generate_url().
Well, I have placed the Arabic characters
What do I do next ?
Hello guys,
I've installed today a prettyurls mod to my forum - smf 1.1.8
After some problems it looks to work fine.
But after a while I realized that admin->packages page is not working, every other site is working properly.
I got the following error:
403 Forbidden
You don't have permission to access this document.
But when I use an older version of URL "index.php?action=packages" - it works fine.
How to repair this problem?
thanks in advance.
--
http://master-data.pl
Quote from: Arkangel on May 19, 2009, 12:27:08 AM
problem active pretty url error:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.tinypic.com%2Fmlt40h.gif&hash=5c07400939821c0cc0b03845f038f7f795721dc7)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F1y8ili.gif&hash=542d1d840152fd7be61e1ac814c542356f6b04d7)
URL avatars and emoticons changes ... depending on which item this
I'm guessing they're using relative URLs, and you need to change them to absolute URLs.
Quote from: spaceman on May 19, 2009, 03:07:26 AM
what I actually wanna achieve is to append #msg22222 to the end of topic url so that when a user wants to refer their friend to the particular message (inside a topic), they can simply copy the pretty url on their browser which includes a target (# sign).
This is what happens with the mod normally. I still don't understand what your problem is.
Quote from: spaceman on May 19, 2009, 03:11:23 AM
Hi Danii,
Besides, I notice there're two tables in my mysql db namely smf_pretty_url_topics & smf_pretty_url_topics_cache (or something like that couldn't remember the exact naming :P)
what I understand is the script will insert a record inside one of these tables when a user clicks on a non-recorded topic url, correct me if I'm mistaken.
So my question is, can I clear ALL data inside these two tables to simulate a FRESH install of this mod?
Thanks alot in advance :D
Yes, just empty them in phpMyAdmin.
Quote from: islam2hamy on May 19, 2009, 04:04:23 AM
Quote from: Dannii on April 27, 2009, 04:00:37 AM
pretty_generate_url().
Well, I have placed the Arabic characters
What do I do next ?
I was suggesting you rewrite the whole function to do percent encoding, not use that big array.
Quote from: tucz on May 19, 2009, 08:24:42 AM
Hello guys,
I've installed today a prettyurls mod to my forum - smf 1.1.8
After some problems it looks to work fine.
But after a while I realized that admin->packages page is not working, every other site is working properly.
I got the following error:
403 Forbidden
You don't have permission to access this document.
But when I use an older version of URL "index.php?action=packages" - it works fine.
How to repair this problem?
thanks in advance.
--
http://master-data.pl
Can you check your Apache error log? That page should work like any other.
Quote from: islam2hamy on May 19, 2009, 04:04:23 AM
Quote from: Dannii on April 27, 2009, 04:00:37 AM
pretty_generate_url().
Well, I have placed the Arabic characters
What do I do next ?
I was suggesting you rewrite the whole function to do percent encoding, not use that big array.
but how ??
That's a challenge for you to figure out! It's tricky, that's why I haven't done it myself yet.
aha ,
ok Taught me how to do that :D
Quote from: Dannii on May 19, 2009, 09:20:33 AM
Can you check your Apache error log? That page should work like any other.
I'll try to get it from my server provider. But it could be problematic...
Quote from: Dannii on May 19, 2009, 09:20:33 AM
Quote from: Arkangel on May 19, 2009, 12:27:08 AM
problem active pretty url error:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.tinypic.com%2Fmlt40h.gif&hash=5c07400939821c0cc0b03845f038f7f795721dc7)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F1y8ili.gif&hash=542d1d840152fd7be61e1ac814c542356f6b04d7)
URL avatars and emoticons changes ... depending on which item this
I'm guessing they're using relative URLs, and you need to change them to absolute URLs.
This enabled all .. still leaving the same error: S
Can you give me a link to a page with a problem like that? (Not the post page, a topic)
I added the pretty urls to my forum recently. But it caused a lot of problems. It will not let me remove it. So my question is; if I uncheck these boxes, will it stop the errors in my error log?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi440.photobucket.com%2Falbums%2Fqq121%2Flovearat_photos%2Fpretty3.jpg&hash=22c0d70ae23327b89b6b9e4c04556e151b8ed612)
is the last version prettyurls-0-9-3 compatible with Tinyportals?
Quote from: lovearat on May 20, 2009, 12:11:02 AM
I added the pretty urls to my forum recently. But it caused a lot of problems. It will not let me remove it. So my question is; if I uncheck these boxes, will it stop the errors in my error log?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi440.photobucket.com%2Falbums%2Fqq121%2Flovearat_photos%2Fpretty3.jpg&hash=22c0d70ae23327b89b6b9e4c04556e151b8ed612)
Maybe. You could try it and see. You could also tell me what errors they are so I could help you more?
Quote from: axlarry on May 20, 2009, 06:54:35 AM
is the last version prettyurls-0-9-3 compatible with Tinyportals?
Probably? Did you try it?
This mod is an error with bulgarian characters.
Яница, VALI ft. ASU - Две в едно
Quote from: Dannii on May 20, 2009, 08:51:39 AM
Quote from: lovearat on May 20, 2009, 12:11:02 AM
I added the pretty urls to my forum recently. But it caused a lot of problems. It will not let me remove it. So my question is; if I uncheck these boxes, will it stop the errors in my error log?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi440.photobucket.com%2Falbums%2Fqq121%2Flovearat_photos%2Fpretty3.jpg&hash=22c0d70ae23327b89b6b9e4c04556e151b8ed612)
Maybe. You could try it and see. You could also tell me what errors they are so I could help you more?
This is one of the errors I'm getting:
: Table 'lovearat_smf1.smf_pretty_topic_urls' doesn't exist
/home/lovearat/public_html/Sources/QueryString.php
267
Quote from: Mythcomeback | Burak on May 20, 2009, 12:15:17 PM
This mod is an error with bulgarian characters.
Яница, VALI ft. ASU - Две в едно
What exactly is the bug?
Quote from: lovearat on May 20, 2009, 12:57:02 PM
Quote from: Dannii on May 20, 2009, 08:51:39 AM
Quote from: lovearat on May 20, 2009, 12:11:02 AM
I added the pretty urls to my forum recently. But it caused a lot of problems. It will not let me remove it. So my question is; if I uncheck these boxes, will it stop the errors in my error log?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi440.photobucket.com%2Falbums%2Fqq121%2Flovearat_photos%2Fpretty3.jpg&hash=22c0d70ae23327b89b6b9e4c04556e151b8ed612)
Maybe. You could try it and see. You could also tell me what errors they are so I could help you more?
This is one of the errors I'm getting:
: Table 'lovearat_smf1.smf_pretty_topic_urls' doesn't exist
/home/lovearat/public_html/Sources/QueryString.php
267
Download this file and upload it to the same place as your forum's SSI.php, then run it in your browser: http://prettyurls.googlecode.com/svn/branches/0.9/Base/SMF1-1/install.php
Hopefully that will fix the problems.
Just a quick question...
If the forum is in a subdomain (abcde.com/forum) do you place the .hcaccess file in the root of the site (abcde.com) or the forums subdomain root?
Also I downloaded this mod, but I cannot see the sample .hcaccess file anywhere?
Thanks in advance.
Is there a way so that it provides actual non-latin characters in URL (like mediawiki) instead of using transliterations?
Quote from: ibforum on May 21, 2009, 04:50:01 PM
Just a quick question...
If the forum is in a subdomain (abcde.com/forum) do you place the .hcaccess file in the root of the site (abcde.com) or the forums subdomain root?
Also I downloaded this mod, but I cannot see the sample .hcaccess file anywhere?
Thanks in advance.
The mod will automatically add the .htaccess file to the forum's root.
Quote from: spiros on May 21, 2009, 05:05:14 PM
Is there a way so that it provides actual non-latin characters in URL (like mediawiki) instead of using transliterations?
As I've said before, it's in the plans, but it will take a while. Watch this issue if you like: http://code.google.com/p/prettyurls/issues/detail?id=31
Thanks for your help, but I now get this when I go to install the mod:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/pitra/public_html/forum/Sources/QueryString.php on line 214
Any ideas?
Thanks
The mod mustn't have installed correctly. Can you post lines 210-220 here please?
Danni i guess mod site broke this code line
$_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
mod site convert ' to '
and i guess ibforum manual install on mod site.
Quote from: Dannii on May 22, 2009, 09:29:36 AM
The mod mustn't have installed correctly. Can you post lines 210-220 here please?
Thanks:
$board = (int) $_REQUEST['board'];
if (!isset($_REQUEST['pretty']))
$context['pretty']['oldschoolquery'] = true;
} else {
$_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
$pretty_board_lookup = unserialize($modSettings['pretty_board_lookup']);
$board = (int) isset($pretty_board_lookup[$_REQUEST['board']]) ? $pretty_board_lookup[$_REQUEST['board']] : 0;
// Fix $_REQUEST for silly mods that don't check $board
$context['pretty']['query_string']['board'] = $_REQUEST['board'];
$_REQUEST['board'] = $board;
Yes as Özgür´said, make this change:
$_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
$_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
Done that - than you.
I now get this error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/pitra/public_html/forum/Sources/QueryString.php on line 253
Do you think I maybe should go over everything again?
Should I be uploading the XML docs somewhere?
Thanks
Yes maybe you should check everything again. Did you manually install it?
Yes I have done it all manually. I thought that was to only way to do it?
Do I have to do anything with the XML files that are in the mod?
I will start again, and see if I can do it!
I am not expert on these things, but I don't mind trying!
Thanks for your help.
I will let you know if I get it done! :)
Hi Dannii,
I have installed PrettyUrl to my test site and seen a problem as follows ( I am using Turkish-utf8)
For boards that have turkish characters as ü,ş,ö,ç , conversion is done according to its UTF-8 notations not actual characters
For example, Dünyası is represented in UTF-8 as Dünyası and board link is converted as danyasa where it would be dunyasi
but that is not the case in topics . Only board conversions are effected..
Quote from: MazdaClubTR on May 22, 2009, 03:51:24 PM
Hi Dannii,
I have installed PrettyUrl to my test site and seen a problem as follows ( I am using Turkish-utf8)
For boards that have turkish characters as ü,ş,ö,ç , conversion is done according to its UTF-8 notations not actual characters
For example, Dünyası is represented in UTF-8 as Dünyası and board link is converted as danyasa where it would be dunyasi
but that is not the case in topics . Only board conversions are effected..
What your smf and pretty version?
And can you try maintenance for pretty admin panel?
SMF 2.0 RC1-1 , PrettyUrl 0.9.3 I tried maintenance but it didnt make any difference
Hmm. Try these..
1 - Can you open Subs-PrettyUrls.php on notepad2 or notepad++ and save file encoding to utf8. Upload again and try maintenance. Any difference ?
2 - And have you $db_charset (or like this) in Settings.php ?
3 - Go to phpmyadmin and enter Your {db_prefix}_pretty_cache or _pretty_topic_urls. What is the charset?
I just want to say thanks for your help.
Foolishly I tried to do a manual install, and failed.
Maybe I should have taken the time to learn about the packages manager!!
This mod now works a treat. Thanks.
Quote from: MazdaClubTR on May 22, 2009, 03:51:24 PM
Hi Dannii,
I have installed PrettyUrl to my test site and seen a problem as follows ( I am using Turkish-utf8)
For boards that have turkish characters as ü,ş,ö,ç , conversion is done according to its UTF-8 notations not actual characters
For example, Dünyası is represented in UTF-8 as Dünyası and board link is converted as danyasa where it would be dunyasi
but that is not the case in topics . Only board conversions are effected..
What language files you have is completely irrelevant. What matters is what collation the database tables are. Can you confirm they are UTF-8 too?
Quote from: ibforum on May 22, 2009, 04:59:29 PM
I just want to say thanks for your help.
Foolishly I tried to do a manual install, and failed.
Maybe I should have taken the time to learn about the packages manager!!
This mod now works a treat. Thanks.
Good to hear it's working now! :)
is PrettyURL working on 1.1.9 yet?
Yes of course. It should work on all the future 1.1 updates too!
Hi Dannii
I have a problem, I think it's about pretty url.
I have pretty url 0.8.4
My forum's page titles suddenly changed, for example
İstanbul change into �stanbul
I didn't do anything with codes before..
I hope you help me about this, thanks..
Hoochie Coochie Man
Ahh, looks like you have something wrong with your encodings. Unless the URLs themselves have changed I don't think it has anything to do with this mod. Have you checked with the mod disabled?
Quote from: Dannii on May 23, 2009, 06:36:40 AM
Have you checked with the mod disabled?
Upss. Sorry.
It's not about Pretty Urls. :)
Thanks anyway
Take care yourself..
Dannii:
1) I'm running 0.9 and want to upgrade to 0.9.3 but I get two errors in my package uninstallation. I'm running a custom theme.
14. Execute Modification ./Themes/default/ManageBoards.template.php Test failed (*Note: This file is not within my custom theme*)
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed (*Note: This is within my custom theme*)
Is it safe to ignore these errors?
2) Is there a change log between these versions because I have not experienced any significant bugs with your mod.
Hmm, that's strange, they should install fine. Custom themes don't matter...
Yes you can probably ignore those errors.
http://code.google.com/p/prettyurls/source/browse/branches/0.9/CHANGES Mostly nonessential fixes... though I'd still recommend upgrading.
Quote from: Dannii on May 23, 2009, 08:46:23 AM
Hmm, that's strange, they should install fine. Custom themes don't matter...
Yes you can probably ignore those errors.
http://code.google.com/p/prettyurls/source/browse/branches/0.9/CHANGES Mostly nonessential fixes... though I'd still recommend upgrading.
Looked at the code of ManageBoards.template.php and found that when I installed 0.9, it made no changes to that file and yet I've not had any problems with your mod. Clearly the changes your mod is supposed to make to that file are very unimportant?
Anyway, upgrade went fine, thanks for the help.
Yeah, it only modifies the file to add the interface for changing board URLs.
Quote from: Dannii on May 22, 2009, 11:22:24 PM
What language files you have is completely irrelevant. What matters is what collation the database tables are. Can you confirm they are UTF-8 too?
On phpmyadmin, settings for the database is as follows ;
# MySQL charset: UTF-8 Unicode (utf8)
# MySQL connection collation: utf_unicode_ci
As I said the problem is only for board links. not message links.
you can see the test site ;
www.mazda3clubtr.com
hello
i have the 9.0 version installed in my forum, but I can't unistall it because the package doesn't exist in the package folder. So, i neet it to upload again and then uninstalled. Can you attached the 9.0 version please?
thanks
Quote from: MazdaClubTR on May 24, 2009, 07:10:59 AM
Quote from: Dannii on May 22, 2009, 11:22:24 PM
What language files you have is completely irrelevant. What matters is what collation the database tables are. Can you confirm they are UTF-8 too?
On phpmyadmin, settings for the database is as follows ;
# MySQL charset: UTF-8 Unicode (utf8)
# MySQL connection collation: utf_unicode_ci
As I said the problem is only for board links. not message links.
you can see the test site ;
www.mazda3clubtr.com
You'll need to check all the individual tables too.
However... seeing as only boards are effected, you could just change their board URLs. If you go the manage boards page you'll see that option for each board.
Quote from: manfred on May 24, 2009, 07:05:04 PM
hello
i have the 9.0 version installed in my forum, but I can't unistall it because the package doesn't exist in the package folder. So, i neet it to upload again and then uninstalled. Can you attached the 9.0 version please?
thanks
Just get it from the downloads page: http://code.google.com/p/prettyurls/downloads/list?can=1
Hi, I recently installed this mod and it functions perfectly, however it re-writes the URLs in notification emails but they no longer are delivered as clickable links, users have to copy and paste the link into their browser. Is this normal behaviour?
Could you please forward an email like that to me?
Quote from: Dannii on May 24, 2009, 10:42:24 PM
However... seeing as only boards are effected, you could just change their board URLs. If you go the manage boards page you'll see that option for each board.
I realised that there are similar problems in topics too. But hard to say what the reason is cause in some cases same characters are correctly converted and in some not
You can see a sample in below board
http://www.mazda3clubtr.com/teknik-genel-bilgiler/
first unsticky subject
almost all of the Turkish characters are badly converted while the topic below doesnt have any problem.
What should be checked in individual tables ? I have backed up my production site and restored it on to the test site where all the database charsets are the same.
Certainly, though I can't get your email address on here, I can copy and paste the links into the "email user" page (just done it) but that's not the orignial source of the mail of course?
Hi Danni,
Is the pretty urls reverter compatible with smf 2 rc 1 ?
hi, can someone tell me where the pretty urls page is in the admin section? i cannot find it anywhere...
Quote from: coyoteboy on May 27, 2009, 09:38:16 AM
Hi, I recently installed this mod and it functions perfectly, however it re-writes the URLs in notification emails but they no longer are delivered as clickable links, users have to copy and paste the link into their browser. Is this normal behaviour?
I solved this problem some time ago... you can search for it in this topic searching for my name maybe :)
I see it has not been solved yet...
Its a problem with the PHPSESION ID ... The url is not good make and some hostings has in its regular expresions rules that doesnt allow that URL. So they just show an error.
Quote from: MazdaClubTR on May 27, 2009, 10:12:26 AM
Quote from: Dannii on May 24, 2009, 10:42:24 PM
However... seeing as only boards are effected, you could just change their board URLs. If you go the manage boards page you'll see that option for each board.
I realised that there are similar problems in topics too. But hard to say what the reason is cause in some cases same characters are correctly converted and in some not
You can see a sample in below board
http://www.mazda3clubtr.com/teknik-genel-bilgiler/
first unsticky subject
almost all of the Turkish characters are badly converted while the topic below doesnt have any problem.
What should be checked in individual tables ? I have backed up my production site and restored it on to the test site where all the database charsets are the same.
That link isn't working.
Well the database has an encoding/colation, but so does each individual table. The important ones would be boards and messages.
Quote from: glennk on May 27, 2009, 01:45:47 PM
Hi Danni,
Is the pretty urls reverter compatible with smf 2 rc 1 ?
RC1 yes, RC1-1 yes but you'll need to emulate RC1. You could check on the mod page?
Quote from: MelfromBoD on May 27, 2009, 04:28:37 PM
hi, can someone tell me where the pretty urls page is in the admin section? i cannot find it anywhere...
index.php?action=admin;area=pretty if it doesn't appear in your menu (probably because of language problems.)
Quote from: MacX on May 27, 2009, 06:19:44 PM
Quote from: coyoteboy on May 27, 2009, 09:38:16 AM
Hi, I recently installed this mod and it functions perfectly, however it re-writes the URLs in notification emails but they no longer are delivered as clickable links, users have to copy and paste the link into their browser. Is this normal behaviour?
I solved this problem some time ago... you can search for it in this topic searching for my name maybe :)
I see it has not been solved yet...
Its a problem with the PHPSESION ID ... The url is not good make and some hostings has in its regular expresions rules that doesnt allow that URL. So they just show an error.
No it's something else. The URLs are there and work fine, some silly email clients just won't turn them into links, the remain plain text.
I just installed and it doesnt work. How do I make it work???
How doesn't it work? Did you enable it yet?
"index.php?action=admin;area=pretty" this link doesnt work it only sent me back to the admin page. Any suggestions?
Then your source files mustn't have been modified correctly. You'll probably have to do a manual install, the instructions are on the mod page.
I enabled it but the links do not work
the old links do though.
vid to show
http://screencast.com/t/ffdZfSxa0
Ahh a video is basically useless for giving me information. Can you show me the real pages?
Well the forum url is
http://grizzlyriders.com/index.php?action=forum
and the menu and all that was changed to this link. but this link doesnt work...so i assume something didnt work right.
http://grizzlyriders.com/forum/
Ahh perhaps try adding this to the top of your .htaccess:
RewriteBase /
sweeeeeeeeeeeeeeeeeeeeeeeet! that did it! you rock man! thanks for the help!
I did the manual install now im getting this error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/undisputed/domains/blogodirectory.com/public_html/forum/Sources/QueryString.php on line 213
file:
<?php
/**********************************************************************************
* QueryString.php *
***********************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel (
[email protected]) *
* =============================================================================== *
* Software Version: SMF 1.1.9 *
* Software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006-2009 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
* Support, News, Updates at: http://www.simplemachines.org *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version can always be found at http://www.simplemachines.org. *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
/* This file does a lot of important stuff. Mainly, this means it handles
the query string, request variables, and session management. It contains
the following functions:
void cleanRequest()
- cleans the request variables (ENV, GET, POST, COOKIE, SERVER) and
makes sure the query string was parsed correctly.
- handles the URLs passed by the queryless URLs option.
- makes sure, regardless of php.ini, everything has slashes.
- sets up $board, $topic, and $scripturl and $_REQUEST['start'].
- determines, or rather tries to determine, the client's IP.
array addslashes__recursive(array var)
- returns the var, as an array or string, with slashes.
- importantly adds slashes to keys and values!
- calls itself recursively if necessary.
array htmlspecialchars__recursive(array var)
- adds entities (", <, >) to the array or string var.
- importantly, does not effect keys, only values.
- calls itself recursively if necessary.
array urldecode__recursive(array var)
- takes off url encoding (%20, etc.) from the array or string var.
- importantly, does it to keys too!
- calls itself recursively if there are any sub arrays.
array stripslashes__recursive(array var)
- removes slashes, recursively, from the array or string var.
- effects both keys and values of arrays.
- calls itself recursively to handle arrays of arrays.
array htmltrim__recursive(array var)
- trims a string or an the var array using html characters as well.
- does not effect keys, only values.
- may call itself recursively if needed.
array validate_unicode__recursive(array var)
- makes sure a string only contains character which are allowed in
XML/XHTML (not 0-8, 11, 12, and 14-31.)
- tries to handle UTF-8 properly, and shouldn't negatively affect
character sets like ISO-8859-1.
- does not effect keys, only changes values.
- may call itself recursively if necessary.
string ob_sessrewrite(string buffer)
- rewrites the URLs outputted to have the session ID, if the user
is not accepting cookies and is using a standard web browser.
- handles rewriting URLs for the queryless URLs option.
- can be turned off entirely by setting $scripturl to an empty
string, ''. (it wouldn't work well like that anyway.)
- because of bugs in certain builds of PHP, does not function in
versions lower than 4.3.0 - please upgrade if this hurts you.
*/
// Clean the request variables - add html entities to GET and slashes if magic_quotes_gpc is Off.
function cleanRequest()
{
global $board, $topic, $boardurl, $scripturl, $modSettings, $context, $db_prefix;
// Makes it easier to refer to things this way.
$scripturl = $boardurl . '/index.php';
// Save some memory.. (since we don't use these anyway.)
unset($GLOBALS['HTTP_POST_VARS'], $GLOBALS['HTTP_POST_VARS']);
unset($GLOBALS['HTTP_POST_FILES'], $GLOBALS['HTTP_POST_FILES']);
// These keys shouldn't be set...ever.
if (isset($_REQUEST['GLOBALS']) || isset($_COOKIE['GLOBALS']))
die('Invalid request variable.');
// Same goes for numeric keys.
foreach (array_merge(array_keys($_POST), array_keys($_GET), array_keys($_FILES)) as $key)
if (is_numeric($key))
die('Invalid request variable.');
// Numeric keys in cookies are less of a problem. Just unset those.
foreach ($_COOKIE as $key => $value)
if (is_numeric($key))
unset($_COOKIE[$key]);
// Get the correct query string. It may be in an environment variable...
if (!isset($_SERVER['QUERY_STRING']))
$_SERVER['QUERY_STRING'] = getenv('QUERY_STRING');
// Are we going to need to parse the ; out?
if ((strpos(@ini_get('arg_separator.input'), ';') === false || @version_compare(PHP_VERSION, '4.2.0') == -1) && !empty($_SERVER['QUERY_STRING']))
{
// Get rid of the old one! You don't know where it's been!
$_GET = array();
// Was this redirected? If so, get the REDIRECT_QUERY_STRING.
$_SERVER['QUERY_STRING'] = urldecode(substr($_SERVER['QUERY_STRING'], 0, 5) == 'url=/' ? $_SERVER['REDIRECT_QUERY_STRING'] : $_SERVER['QUERY_STRING']);
// Replace ';' with '&' and '&something&' with '&something=&'. (this is done for compatibility...)
// !!! smflib
parse_str(preg_replace('/&(\w+)(?=&|$)/', '&$1=', strtr($_SERVER['QUERY_STRING'], array(';?' => '&', ';' => '&', '%00' => '', "\0" => ''))), $_GET);
}
elseif (strpos(@ini_get('arg_separator.input'), ';') !== false)
{
$_GET = urldecode__recursive($_GET);
if (@get_magic_quotes_gpc() != 0 && empty($modSettings['integrate_magic_quotes']))
$_GET = stripslashes__recursive($_GET);
// Search engines will send action=profile%3Bu=1, which confuses PHP.
// !!! smflib
foreach ($_GET as $k => $v)
{
if (is_string($v) && strpos($k, ';') !== false)
{
$temp = explode(';', $v);
$_GET[$k] = $temp[0];
for ($i = 1, $n = count($temp); $i < $n; $i++)
{
@list ($key, $val) = @explode('=', $temp[$i], 2);
if (!isset($_GET[$key]))
$_GET[$key] = $val;
}
}
// This helps a lot with integration!
if (strpos($k, '?') === 0)
{
$_GET[substr($k, 1)] = $v;
unset($_GET[$k]);
}
}
}
// There's no query string, but there is a URL... try to get the data from there.
if (!empty($_SERVER['REQUEST_URI']))
{
// Remove the .html, assuming there is one.
if (substr($_SERVER['REQUEST_URI'], strrpos($_SERVER['REQUEST_URI'], '.'), 4) == '.htm')
$request = substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '.'));
else
$request = $_SERVER['REQUEST_URI'];
// Replace 'index.php/a,b,c/d/e,f' with 'a=b,c&d=&e=f' and parse it into $_GET.
parse_str(substr(preg_replace('/&(\w+)(?=&|$)/', '&$1=', strtr(preg_replace('~/([^,/]+),~', '/$1=', substr($request, strpos($request, basename($scripturl)) + strlen(basename($scripturl)))), '/', '&')), 1), $temp);
$_GET += $temp;
}
// Add entities to GET. This is kinda like the slashes on everything else.
$_GET = addslashes__recursive(htmlspecialchars__recursive($_GET));
// Clean up after annoying ini settings. (magic_quotes_gpc might be off...)
if (@get_magic_quotes_gpc() == 0 && empty($modSettings['integrate_magic_quotes']))
{
// E(G)PCS: ENV, (GET was already done), POST, COOKIE.
$_ENV = addslashes__recursive($_ENV);
$_POST = addslashes__recursive($_POST);
$_COOKIE = addslashes__recursive($_COOKIE);
// FILES work like this: k -> name -> array. So be careful.
foreach ($_FILES as $k => $dummy)
$_FILES[$k]['name'] = addslashes__recursive($_FILES[$k]['name']);
}
// Take care of the server variables.
$_SERVER = addslashes__recursive($_SERVER);
// Let's not depend on the ini settings... why even have COOKIE in there, anyway?
$_REQUEST = $_POST + $_GET;
// Make sure $board and $topic are numbers.
if (isset($_REQUEST['board']))
{
// Make sure that its a string and not something else like an array
$_REQUEST['board'] = (string) $_REQUEST['board'];
// If there's a slash in it, we've got a start value! (old, compatible links.)
if (strpos($_REQUEST['board'], '/') !== false)
list ($_REQUEST['board'], $_REQUEST['start']) = explode('/', $_REQUEST['board']);
// Same idea, but dots. This is the currently used format - ?board=1.0...
elseif (strpos($_REQUEST['board'], '.') !== false)
list ($_REQUEST['board'], $_REQUEST['start']) = explode('.', $_REQUEST['board']);
// Now make absolutely sure it's a number.
// Check for pretty board URLs too, and possibly redirect if oldschool queries were used.
if (is_numeric($_REQUEST['board']))
{
$board = (int) $_REQUEST['board'];
if (!isset($_REQUEST['pretty']))
$context['pretty']['oldschoolquery'] = true;
} else {
$_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
$pretty_board_lookup = unserialize($modSettings['pretty_board_lookup']);
$board = (int) isset($pretty_board_lookup[$_REQUEST['board']]) ? $pretty_board_lookup[$_REQUEST['board']] : 0;
// Fix $_REQUEST for silly mods that don't check $board
$context['pretty']['query_string']['board'] = $_REQUEST['board'];
$_REQUEST['board'] = $board;
}
// This is for "Who's Online" because it might come via POST - and it should be an int here.
$_GET['board'] = $board;
}
// Well, $board is going to be a number no matter what.
else
$board = 0;
// If there's a threadid, it's probably an old YaBB SE link. Flow with it.
if (isset($_REQUEST['threadid']) && !isset($_REQUEST['topic']))
$_REQUEST['topic'] = $_REQUEST['threadid'];
// We've got topic!
if (isset($_REQUEST['topic']))
{
// Make sure that its a string and not something else like an array
$_REQUEST['topic'] = (string)$_REQUEST['topic'];
// Slash means old, beta style, formatting. That's okay though, the link should still work.
if (strpos($_REQUEST['topic'], '/') !== false)
list ($_REQUEST['topic'], $_REQUEST['start']) = explode('/', $_REQUEST['topic']);
// Dots are useful and fun ;). This is ?topic=1.15.
elseif (strpos($_REQUEST['topic'], '.') !== false)
list ($_REQUEST['topic'], $_REQUEST['start']) = explode('.', $_REQUEST['topic']);
// Check for pretty topic URLs, and possibly redirect if oldschool queries were used.
if (is_numeric($_REQUEST['topic']))
{
$topic = (int) $_REQUEST['topic'];
if (!isset($_REQUEST['pretty']))
$context['pretty']['oldschoolquery'] = true;
} else {
$_REQUEST['topic'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['topic']);
// Are we feeling lucky?
$query = db_query("
SELECT ID_TOPIC
FROM {$db_prefix}pretty_topic_urls
WHERE pretty_url = '$_REQUEST[topic]'
LIMIT 1", __FILE__, __LINE__);
// No? No topic?!
if (mysql_num_rows($query) == 0)
{
$topic = 0;
} else {
while ($row = mysql_fetch_assoc($query))
$topic = (int) $row['ID_TOPIC'];
}
mysql_free_result($query);
// Fix $_REQUEST for silly mods that don't check $topic
$context['pretty']['query_string']['topic'] = $_REQUEST['topic'];
$_REQUEST['topic'] = $topic;
// That query should be counted separately
$context['pretty']['db_count']++;
}
// Now make sure the online log gets the right number.
$_GET['topic'] = $topic;
}
else
$topic = 0;
// There should be a $_REQUEST['start'], some at least. If you need to default to other than 0, use $_GET['start'].
if (empty($_REQUEST['start']) || $_REQUEST['start'] < 0)
$_REQUEST['start'] = 0;
// The action needs to be a string and not an array or anything else
if (isset($_REQUEST['action']))
$_REQUEST['action'] = (string) $_REQUEST['action'];
if (isset($_GET['action']))
$_GET['action'] = (string) $_GET['action'];
// Store the REMOTE_ADDR for later - even though we HOPE to never use it...
$_SERVER['BAN_CHECK_IP'] = isset($_SERVER['REMOTE_ADDR']) && preg_match('~^((([1]?\d)?\d|2[0-4]\d|25[0-5])\.){3}(([1]?\d)?\d|2[0-4]\d|25[0-5])$~', $_SERVER['REMOTE_ADDR']) === 1 ? $_SERVER['REMOTE_ADDR'] : 'unknown';
// Find the user's IP address. (but don't let it give you 'unknown'!)
if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']) && !empty($_SERVER['HTTP_CLIENT_IP']) && (preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['HTTP_CLIENT_IP']) == 0 || preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['REMOTE_ADDR']) != 0))
{
// We have both forwarded for AND client IP... check the first forwarded for as the block - only switch if it's better that way.
if (strtok($_SERVER['HTTP_X_FORWARDED_FOR'], '.') != strtok($_SERVER['HTTP_CLIENT_IP'], '.') && '.' . strtok($_SERVER['HTTP_X_FORWARDED_FOR'], '.') == strrchr($_SERVER['HTTP_CLIENT_IP'], '.') && (preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['HTTP_X_FORWARDED_FOR']) == 0 || preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['REMOTE_ADDR']) != 0))
$_SERVER['REMOTE_ADDR'] = implode('.', array_reverse(explode('.', $_SERVER['HTTP_CLIENT_IP'])));
else
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CLIENT_IP'];
}
if (!empty($_SERVER['HTTP_CLIENT_IP']) && (preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['HTTP_CLIENT_IP']) == 0 || preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['REMOTE_ADDR']) != 0))
{
// Since they are in different blocks, it's probably reversed.
if (strtok($_SERVER['REMOTE_ADDR'], '.') != strtok($_SERVER['HTTP_CLIENT_IP'], '.'))
$_SERVER['REMOTE_ADDR'] = implode('.', array_reverse(explode('.', $_SERVER['HTTP_CLIENT_IP'])));
else
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CLIENT_IP'];
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
// If there are commas, get the last one.. probably.
if (strpos($_SERVER['HTTP_X_FORWARDED_FOR'], ',') !== false)
{
$ips = array_reverse(explode(', ', $_SERVER['HTTP_X_FORWARDED_FOR']));
// Go through each IP...
foreach ($ips as $i => $ip)
{
// Make sure it's in a valid range...
if (preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $ip) != 0 && preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['REMOTE_ADDR']) == 0)
continue;
// Otherwise, we've got an IP!
$_SERVER['REMOTE_ADDR'] = trim($ip);
break;
}
}
// Otherwise just use the only one.
elseif (preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['HTTP_X_FORWARDED_FOR']) == 0 || preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['REMOTE_ADDR']) != 0)
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
elseif (!isset($_SERVER['REMOTE_ADDR']))
{
$_SERVER['REMOTE_ADDR'] = '';
// A new magic variable to indicate we think this is command line.
$_SERVER['is_cli'] = true;
}
// Make sure we know the URL of the current request.
if (empty($_SERVER['REQUEST_URI']))
$_SERVER['REQUEST_URL'] = $scripturl . (!empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : '');
elseif (preg_match('~^([^/]+//[^/]+)~', $scripturl, $match) == 1)
$_SERVER['REQUEST_URL'] = $match[1] . $_SERVER['REQUEST_URI'];
else
$_SERVER['REQUEST_URL'] = $_SERVER['REQUEST_URI'];
// And make sure HTTP_USER_AGENT is set.
$_SERVER['HTTP_USER_AGENT'] = isset($_SERVER['HTTP_USER_AGENT']) ? htmlspecialchars(stripslashes($_SERVER['HTTP_USER_AGENT']), ENT_QUOTES) : '';
// Some final checking.
if (preg_match('~^((([1]?\d)?\d|2[0-4]\d|25[0-5])\.){3}(([1]?\d)?\d|2[0-4]\d|25[0-5])$~', $_SERVER['REMOTE_ADDR']) === 0)
$_SERVER['REMOTE_ADDR'] = '';
}
// Adds slashes to the array/variable. Uses two underscores to guard against overloading.
function addslashes__recursive($var, $level = 0)
{
if (!is_array($var))
return addslashes($var);
// Reindex the array with slashes.
$new_var = array();
// Add slashes to every element, even the indexes!
foreach ($var as $k => $v)
$new_var[addslashes($k)] = $level > 25 ? null : addslashes__recursive($v, $level + 1);
return $new_var;
}
// Adds html entities to the array/variable. Uses two underscores to guard against overloading.
function htmlspecialchars__recursive($var, $level = 0)
{
global $func;
if (!is_array($var))
return isset($func) ? $func['htmlspecialchars']($var, ENT_QUOTES) : htmlspecialchars($var, ENT_QUOTES);
// Add the htmlspecialchars to every element.
foreach ($var as $k => $v)
$var[$k] = $level > 25 ? null : htmlspecialchars__recursive($v, $level + 1);
return $var;
}
// Removes url stuff from the array/variable. Uses two underscores to guard against overloading.
function urldecode__recursive($var, $level = 0)
{
if (!is_array($var))
return urldecode($var);
// Reindex the array...
$new_var = array();
// Add the htmlspecialchars to every element.
foreach ($var as $k => $v)
$new_var[urldecode($k)] = $level > 25 ? null : urldecode__recursive($v, $level + 1);
return $new_var;
}
// Strips the slashes off any array or variable. Two underscores for the normal reason.
function stripslashes__recursive($var, $level = 0)
{
if (!is_array($var))
return stripslashes($var);
// Reindex the array without slashes, this time.
$new_var = array();
// Strip the slashes from every element.
foreach ($var as $k => $v)
$new_var[stripslashes($k)] = $level > 25 ? null : stripslashes__recursive($v, $level + 1);
return $new_var;
}
// Trim a string including the HTML space, character 160.
function htmltrim__recursive($var, $level = 0)
{
global $func;
// Remove spaces (32), tabs (9), returns (13, 10, and 11), nulls (0), and hard spaces. (160)
if (!is_array($var))
return isset($func) ? $func['htmltrim']($var) : trim($var, " \t\n\r\x0B\0\xA0");
$new_var = array();
// Go through all the elements and remove the whitespace.
foreach ($var as $k => $v)
$new_var[$k] = $level > 25 ? null : htmltrim__recursive($v, $level + 1);
return $new_var;
}
// !!!
function validate_unicode__recursive($var)
{
if (is_array($var))
return array_map('validate_unicode__recursive', $var);
$cleanup = array_merge(range(0, 8), range(11, 12), range(14, 31));
// Assuming unicode for now - won't really hurt if we're wrong.
for ($i = 0; $i < strlen($var); $i++)
{
$c = ord($var{$i});
if (in_array($c, $cleanup))
{
$var = substr($var, 0, $i) . substr($var, $i + 1);
$i--;
continue;
}
if ($c < 192)
continue;
elseif ($c < 224)
$i++;
elseif ($c < 240)
$i += 2;
elseif ($c < 248)
$i += 3;
elseif ($c < 252)
$i += 4;
elseif ($c < 254)
$i += 5;
}
return $var;
}
// Rewrite URLs to include the session ID.
function ob_sessrewrite($buffer)
{
global $scripturl, $modSettings, $user_info, $context, $db_count, $sourcedir, $time_start, $txt;
// If $scripturl is set to nothing, or the SID is not defined (SSI?) just quit.
if ($scripturl == '' || !defined('SID'))
return $buffer;
// Do nothing if the session is cookied, or they are a crawler - guests are caught by redirectexit(). This doesn't work below PHP 4.3.0, because it makes the output buffer bigger.
// !!! smflib
if (empty($_COOKIE) && SID != '' && empty($context['browser']['possibly_robot']) && @version_compare(PHP_VERSION, '4.3.0') != -1)
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(?!\?' . preg_quote(SID, '/') . ')(\?)?/', '"' . $scripturl . '?' . SID . '&', $buffer);
// Debugging templates, are we?
elseif (isset($_GET['debug']))
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(\?)?/', '"' . $scripturl . '?debug;', $buffer);
/*** Pretty URLs says no!
// This should work even in 4.2.x, just not CGI without cgi.fix_pathinfo.
if (!empty($modSettings['queryless_urls']) && (!$context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1) && $context['server']['is_apache'])
{
// Let's do something special for session ids!
if (defined('SID') && SID != '')
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?(?:' . SID . ';)((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html?' . SID . '\$2\"'", $buffer);
else
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);
}
***/
// Rewrite the buffer with Pretty URLs!
if ($modSettings['pretty_enable_filters'])
{
require_once($sourcedir . '/PrettyUrls-Filters.php');
$buffer = pretty_rewrite_buffer($buffer);
}
// Update the load times
$pattern = '~<span class="smalltext">' . $txt['smf301'] . '([.0-9]+)' . $txt['smf302'] . '([0-9]+)' . $txt['smf302b'] . '</span>~';
if (preg_match($pattern, $buffer, $matches))
{
$newTime = round(array_sum(explode(' ', microtime())) - array_sum(explode(' ', $time_start)), 3);
$timeDiff = $newTime - (float) $matches[1];
$queriesDiff = $db_count + $context['pretty']['db_count'] - (int) $matches[2];
// Remove the link if you like, I won't enforce it like others do
$newLoadTime = '<span class="smalltext">' . $txt['smf301'] . $newTime . $txt['smf302'] . $db_count . $txt['smf302b'] . ' (<a href="http://code.google.com/p/prettyurls/">Pretty URLs</a> adds ' . $timeDiff . 's, ' . $queriesDiff . 'q)</span>';
$buffer = str_replace($matches[0], $newLoadTime, $buffer);
}
// Return the changed buffer.
return $buffer;
}
?>
This line is wrong.
$_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
$_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
thanks you're brillant. It's working perfect now. ;)
http://www.blogodirectory.com/forum/
Danni the link should work now. I was making some .htaccess tests related to another problem.
http://www.mazda3clubtr.com/teknik-genel-bilgiler/
error
Lenguaje spanish_es
8: Undefined index: pretty_admin_menu
Archivo: /nfs////////smf/Sources/Subs.php
Línea: 2961
That's cause there's no spanish translation. Want to translate the mod? :)
https://translations.launchpad.net/prettyurls/trunk/+pots/prettyurls
Quote from: MazdaClubTR on May 28, 2009, 04:16:00 AM
Danni the link should work now. I was making some .htaccess tests related to another problem.
http://www.mazda3clubtr.com/teknik-genel-bilgiler/
Can you check again the board and messages tables, to see what encodings they have? Check all the fields in those tables...
Question....I did what you told me to last night and it worked. This morning the links didn't work again....so I did the edit and now it works....does this like update every night or something?
If you run the pretty URLs maintenance, or change any of the settings, you will sorry. You could also however add it to Subs-PrettyUrls, to the function where it builds the .htaccess file.
ohhh ok. my other admin ran it and i didn't know and thats why it did it. LOL
QuoteNo it's something else. The URLs are there and work fine, some silly email clients just won't turn them into links, the remain plain text.
It's definitely weird, cant see it being client related as it doesnt work on a number of clients and OSs? If the previous emails came through as URLs, there is surely no reason why a client would react differently to a different URL? I first thought it must be somewhere in the process of creating the email, but then realised that the message source doesnt show any difference in structure, both types of URL are simply formatted http://domain.com/bla.
I've disabled it for the time being as I had a raft of complaints :( Some people just don't see when you're trying to improve things!
I've also noticed that it turns my board and topic URLs from http://www.url.com to http://url.com/ ?
hello i got to say this is a great mod really nice
but i got a little question im looking for a problem i got in google webmaster were its telling me
index.php?action=sitemap;xml Sitemap 28/05/2009 Warnings 5231 Details
Stats of Sitemap
Total of URL: 5231
URL que se han indexado: 403
like you can see its only indezed 400 pages and im looking for the reason why and i got to the conclution the problem maybe can be betwen
pretty url mod and sitemap mod
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg13.imageshack.us%2Fimg13%2F6827%2Fsitemap.jpg&hash=bf3f00fe81919ce8ae3fb59e1237d8af5fdf2191)
i notice that the url on the sitemap are normal url like index.php?action is there any way i can make pretty url change this?
any sugestions?
thanks,
upgraded :)
HI, i've got a question. in the database, table smf_pretty_urls_cache, I've worried about it since its about 27MB right now. is there a way to reduce this size and what would happen if I was to empty the table smf_pretty_urls_cache.
I appreciate all the help
Translated in French (launchpad)
Hi,
I have a problem:
Notice: Undefined index: pretty_action_array in /webhosting/sosnito.sk/www/index.php on line 87
Notice: Undefined index: pretty_board_urls in /webhosting/sosnito.sk/www/index.php on line 88
Quote
'action_array' => unserialize($modSettings['pretty_action_array']),
'board_urls' => unserialize($modSettings['pretty_board_urls']),
Quote from: coyoteboy on May 29, 2009, 05:13:28 AM
I've also noticed that it turns my board and topic URLs from http://www.url.com to http://url.com/ ?
It just uses whatever your $boardurl is set to.
Quote from: sombra on May 30, 2009, 11:18:03 AM
hello i got to say this is a great mod really nice
but i got a little question im looking for a problem i got in google webmaster were its telling me
index.php?action=sitemap;xml Sitemap 28/05/2009 Warnings 5231 Details
Stats of Sitemap
Total of URL: 5231
URL que se han indexado: 403
like you can see its only indezed 400 pages and im looking for the reason why and i got to the conclution the problem maybe can be betwen
pretty url mod and sitemap mod
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg13.imageshack.us%2Fimg13%2F6827%2Fsitemap.jpg&hash=bf3f00fe81919ce8ae3fb59e1237d8af5fdf2191)
i notice that the url on the sitemap are normal url like index.php?action is there any way i can make pretty url change this?
any sugestions?
Yeah I do have to send a message to the sitemap author someday soon... will try to do it sooner rather than later.
Quote from: hash899 on May 31, 2009, 04:43:18 AM
HI, i've got a question. in the database, table smf_pretty_urls_cache, I've worried about it since its about 27MB right now. is there a way to reduce this size and what would happen if I was to empty the table smf_pretty_urls_cache.
I appreciate all the help
There's no problem with emptying it, though it will soon just fill up again.
Quote from: SosniTo.sk on June 01, 2009, 05:39:31 AM
Hi,
I have a problem:
Notice: Undefined index: pretty_action_array in /webhosting/sosnito.sk/www/index.php on line 87
Notice: Undefined index: pretty_board_urls in /webhosting/sosnito.sk/www/index.php on line 88
Quote
'action_array' => unserialize($modSettings['pretty_action_array']),
'board_urls' => unserialize($modSettings['pretty_board_urls']),
Get the install.php (for the right SMF version) from the install package and upload to where your SSI.php, then run it in your browser.
thanks for the reply and is there a way to make this mod work with SMF Media Galler? the link to SMG is here http://custom.simplemachines.org/mods/index.php?mod=1365
It should work fine already.
Quote from: Dannii on June 02, 2009, 12:10:34 PM
It should work fine already.
no it doesnt seem like it. here is my forum http://ieatsoul.com/mgallery/
Looks fine to me. What do you think is wrong with it?
Quote from: Dannii on June 02, 2009, 12:16:30 PM
Looks fine to me. What do you think is wrong with it?
i want it so instead of the album name being http://ieatsoul.com/mgallery/?sa=album;id=56 it will be the actual album name at the end of the link and same goes for the video links. u think thats possible?
Possible, yes. Easy, no. I don't have the time to do make the filters required for it. You could, or if you don't have the skills, ask the mod's author. They'll need to change the mod so the items can be accessed by title as well as by number.
Quote from: Dannii on June 02, 2009, 12:37:26 PM
Possible, yes. Easy, no. I don't have the time to do make the filters required for it. You could, or if you don't have the skills, ask the mod's author. They'll need to change the mod so the items can be accessed by title as well as by number.
thanks for the reply. I'll ask the mod author and see what he says. thanks for all the help :)
Hello
i have a small problem with mod... after install on SMF 2.0 RC1-1 (emulation 2.0 rc1) - no errors. my forum works with pretty url-s but don't use any css - style. Only on first page (www."myforum".eu/index.php) is good... prettyurl works perfect but forum looks like....... :)
i don't know wher i have an error
hi I moved my forum to another domain and database. But now when trying to install new packages it thinks everything is still in the old directory. I can't figure out where to change this:
Quote16. Execute Modification /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/ManageBoards.template.php Test failed
17. Execute Modification /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/languages/Modifications.english.php Test successful
18. Execute Modification /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/languages/Modifications.english-utf8.php Test successful
19. Execute Modification /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/languages/Modifications.french.php Test successful
20. Extract File ./Sources/PrettyUrls.php
21. Extract File ./Sources/PrettyUrls-Filters.php
22. Extract File ./Sources/Subs-PrettyUrls.php
23. Extract File /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/PrettyUrls.template.php
24. Extract Tree /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/pretty
25. Extract File /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/languages/PrettyUrls.english.php
26. Extract File /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/languages/PrettyUrls.french.php
thats the old directory! but its trying to install and extract from there?
/home/undisputed/domains/ubloggit.com/public_html/ is the correct path
its installed but not working, when I click a link it doesnt do anything it takes me back home but it works on the links in the nav bar just not the posts or board links .
here is my .htaccess:
Quote# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: May 27, 2009, 13:53
RewriteEngine on
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|vote|viewquery|who|\.xml)/?$ ./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]
I can't seem to get this to work right. I'm not 100% sure my host has .htaccess per-directory config files, but if it doesn't is there a way to get it to work?
Quote from: CruGeR on June 02, 2009, 06:02:27 PM
Hello
i have a small problem with mod... after install on SMF 2.0 RC1-1 (emulation 2.0 rc1) - no errors. my forum works with pretty url-s but don't use any css - style. Only on first page (www."myforum".eu/index.php) is good... prettyurl works perfect but forum looks like....... :)
i don't know wher i have an error
Can you show me a real link please?
Quote from: MelfromBoD on June 02, 2009, 11:38:12 PM
hi I moved my forum to another domain and database. But now when trying to install new packages it thinks everything is still in the old directory. I can't figure out where to change this:
Quote16. Execute Modification /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/ManageBoards.template.php Test failed
17. Execute Modification /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/languages/Modifications.english.php Test successful
18. Execute Modification /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/languages/Modifications.english-utf8.php Test successful
19. Execute Modification /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/languages/Modifications.french.php Test successful
20. Extract File ./Sources/PrettyUrls.php
21. Extract File ./Sources/PrettyUrls-Filters.php
22. Extract File ./Sources/Subs-PrettyUrls.php
23. Extract File /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/PrettyUrls.template.php
24. Extract Tree /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/pretty
25. Extract File /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/languages/PrettyUrls.english.php
26. Extract File /home/undisputed/domains/blogodirectory.com/public_html/forum/Themes/default/languages/PrettyUrls.french.php
thats the old directory! but its trying to install and extract from there?
/home/undisputed/domains/ubloggit.com/public_html/ is the correct path
You need to fix all your theme directories. That has nothing to do with this mod! :)
Quote from: MelfromBoD on June 03, 2009, 12:41:19 AM
its installed but not working, when I click a link it doesnt do anything it takes me back home but it works on the links in the nav bar just not the posts or board links .
here is my .htaccess:
Quote# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: May 27, 2009, 13:53
RewriteEngine on
# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|vote|viewquery|who|\.xml)/?$ ./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]
Can you show me some links to what does and doesn't work please?
Quote from: TheDisturbedOne on June 03, 2009, 01:34:41 AM
I can't seem to get this to work right. I'm not 100% sure my host has .htaccess per-directory config files, but if it doesn't is there a way to get it to work?
Unless you have access to httpd.conf, no.
Danni, I've narrowed it down. It's something to do with QueryString.php the edited version causes all posts and board links to not work with pretty urls enabled, but when I disable pretty it still the same effect. But when I re-upload the default QueryString.php all the links work just not pretty. Here's my querystring.php:
Quote<?php
/**********************************************************************************
* QueryString.php *
***********************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel ([email protected]) *
* =============================================================================== *
* Software Version: SMF 1.1.9 *
* Software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006-2009 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
* Support, News, Updates at: http://www.simplemachines.org *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version can always be found at http://www.simplemachines.org. *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
/* This file does a lot of important stuff. Mainly, this means it handles
the query string, request variables, and session management. It contains
the following functions:
void cleanRequest()
- cleans the request variables (ENV, GET, POST, COOKIE, SERVER) and
makes sure the query string was parsed correctly.
- handles the URLs passed by the queryless URLs option.
- makes sure, regardless of php.ini, everything has slashes.
- sets up $board, $topic, and $scripturl and $_REQUEST['start'].
- determines, or rather tries to determine, the client's IP.
array addslashes__recursive(array var)
- returns the var, as an array or string, with slashes.
- importantly adds slashes to keys and values!
- calls itself recursively if necessary.
array htmlspecialchars__recursive(array var)
- adds entities (", <, >) to the array or string var.
- importantly, does not effect keys, only values.
- calls itself recursively if necessary.
array urldecode__recursive(array var)
- takes off url encoding (%20, etc.) from the array or string var.
- importantly, does it to keys too!
- calls itself recursively if there are any sub arrays.
array stripslashes__recursive(array var)
- removes slashes, recursively, from the array or string var.
- effects both keys and values of arrays.
- calls itself recursively to handle arrays of arrays.
array htmltrim__recursive(array var)
- trims a string or an the var array using html characters as well.
- does not effect keys, only values.
- may call itself recursively if needed.
array validate_unicode__recursive(array var)
- makes sure a string only contains character which are allowed in
XML/XHTML (not 0-8, 11, 12, and 14-31.)
- tries to handle UTF-8 properly, and shouldn't negatively affect
character sets like ISO-8859-1.
- does not effect keys, only changes values.
- may call itself recursively if necessary.
string ob_sessrewrite(string buffer)
- rewrites the URLs outputted to have the session ID, if the user
is not accepting cookies and is using a standard web browser.
- handles rewriting URLs for the queryless URLs option.
- can be turned off entirely by setting $scripturl to an empty
string, ''. (it wouldn't work well like that anyway.)
- because of bugs in certain builds of PHP, does not function in
versions lower than 4.3.0 - please upgrade if this hurts you.
*/
// Clean the request variables - add html entities to GET and slashes if magic_quotes_gpc is Off.
function cleanRequest()
{
global $board, $topic, $boardurl, $scripturl, $modSettings, $context, $db_prefix;
// Makes it easier to refer to things this way.
$scripturl = $boardurl . '/index.php';
// Save some memory.. (since we don't use these anyway.)
unset($GLOBALS['HTTP_POST_VARS'], $GLOBALS['HTTP_POST_VARS']);
unset($GLOBALS['HTTP_POST_FILES'], $GLOBALS['HTTP_POST_FILES']);
// These keys shouldn't be set...ever.
if (isset($_REQUEST['GLOBALS']) || isset($_COOKIE['GLOBALS']))
die('Invalid request variable.');
// Same goes for numeric keys.
foreach (array_merge(array_keys($_POST), array_keys($_GET), array_keys($_FILES)) as $key)
if (is_numeric($key))
die('Invalid request variable.');
// Numeric keys in cookies are less of a problem. Just unset those.
foreach ($_COOKIE as $key => $value)
if (is_numeric($key))
unset($_COOKIE[$key]);
// Get the correct query string. It may be in an environment variable...
if (!isset($_SERVER['QUERY_STRING']))
$_SERVER['QUERY_STRING'] = getenv('QUERY_STRING');
// Are we going to need to parse the ; out?
if ((strpos(@ini_get('arg_separator.input'), ';') === false || @version_compare(PHP_VERSION, '4.2.0') == -1) && !empty($_SERVER['QUERY_STRING']))
{
// Get rid of the old one! You don't know where it's been!
$_GET = array();
// Was this redirected? If so, get the REDIRECT_QUERY_STRING.
$_SERVER['QUERY_STRING'] = urldecode(substr($_SERVER['QUERY_STRING'], 0, 5) == 'url=/' ? $_SERVER['REDIRECT_QUERY_STRING'] : $_SERVER['QUERY_STRING']);
// Replace ';' with '&' and '&something&' with '&something=&'. (this is done for compatibility...)
// !!! smflib
parse_str(preg_replace('/&(\w+)(?=&|$)/', '&$1=', strtr($_SERVER['QUERY_STRING'], array(';?' => '&', ';' => '&', '%00' => '', "\0" => ''))), $_GET);
}
elseif (strpos(@ini_get('arg_separator.input'), ';') !== false)
{
$_GET = urldecode__recursive($_GET);
if (@get_magic_quotes_gpc() != 0 && empty($modSettings['integrate_magic_quotes']))
$_GET = stripslashes__recursive($_GET);
// Search engines will send action=profile%3Bu=1, which confuses PHP.
// !!! smflib
foreach ($_GET as $k => $v)
{
if (is_string($v) && strpos($k, ';') !== false)
{
$temp = explode(';', $v);
$_GET[$k] = $temp[0];
for ($i = 1, $n = count($temp); $i < $n; $i++)
{
@list ($key, $val) = @explode('=', $temp[$i], 2);
if (!isset($_GET[$key]))
$_GET[$key] = $val;
}
}
// This helps a lot with integration!
if (strpos($k, '?') === 0)
{
$_GET[substr($k, 1)] = $v;
unset($_GET[$k]);
}
}
}
// There's no query string, but there is a URL... try to get the data from there.
if (!empty($_SERVER['REQUEST_URI']))
{
// Remove the .html, assuming there is one.
if (substr($_SERVER['REQUEST_URI'], strrpos($_SERVER['REQUEST_URI'], '.'), 4) == '.htm')
$request = substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '.'));
else
$request = $_SERVER['REQUEST_URI'];
// Replace 'index.php/a,b,c/d/e,f' with 'a=b,c&d=&e=f' and parse it into $_GET.
parse_str(substr(preg_replace('/&(\w+)(?=&|$)/', '&$1=', strtr(preg_replace('~/([^,/]+),~', '/$1=', substr($request, strpos($request, basename($scripturl)) + strlen(basename($scripturl)))), '/', '&')), 1), $temp);
$_GET += $temp;
}
// Add entities to GET. This is kinda like the slashes on everything else.
$_GET = addslashes__recursive(htmlspecialchars__recursive($_GET));
// Clean up after annoying ini settings. (magic_quotes_gpc might be off...)
if (@get_magic_quotes_gpc() == 0 && empty($modSettings['integrate_magic_quotes']))
{
// E(G)PCS: ENV, (GET was already done), POST, COOKIE.
$_ENV = addslashes__recursive($_ENV);
$_POST = addslashes__recursive($_POST);
$_COOKIE = addslashes__recursive($_COOKIE);
// FILES work like this: k -> name -> array. So be careful.
foreach ($_FILES as $k => $dummy)
$_FILES[$k]['name'] = addslashes__recursive($_FILES[$k]['name']);
}
// Take care of the server variables.
$_SERVER = addslashes__recursive($_SERVER);
// Let's not depend on the ini settings... why even have COOKIE in there, anyway?
$_REQUEST = $_POST + $_GET;
// Make sure $board and $topic are numbers.
if (isset($_REQUEST['board']))
{
// Make sure that its a string and not something else like an array
$_REQUEST['board'] = (string) $_REQUEST['board'];
// If there's a slash in it, we've got a start value! (old, compatible links.)
if (strpos($_REQUEST['board'], '/') !== false)
list ($_REQUEST['board'], $_REQUEST['start']) = explode('/', $_REQUEST['board']);
// Same idea, but dots. This is the currently used format - ?board=1.0...
elseif (strpos($_REQUEST['board'], '.') !== false)
list ($_REQUEST['board'], $_REQUEST['start']) = explode('.', $_REQUEST['board']);
// Now make absolutely sure it's a number.
// Check for pretty board URLs too, and possibly redirect if oldschool queries were used.
if (is_numeric($_REQUEST['board']))
{
$board = (int) $_REQUEST['board'];
if (!isset($_REQUEST['pretty']))
$context['pretty']['oldschoolquery'] = true;
} else {
$_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']); $pretty_board_lookup = unserialize($modSettings['pretty_board_lookup']);
$board = (int) isset($pretty_board_lookup[$_REQUEST['board']]) ? $pretty_board_lookup[$_REQUEST['board']] : 0;
// Fix $_REQUEST for silly mods that don't check $board
$context['pretty']['query_string']['board'] = $_REQUEST['board'];
$_REQUEST['board'] = $board;
}
// This is for "Who's Online" because it might come via POST - and it should be an int here.
$_GET['board'] = $board;
}
// Well, $board is going to be a number no matter what.
else
$board = 0;
// If there's a threadid, it's probably an old YaBB SE link. Flow with it.
if (isset($_REQUEST['threadid']) && !isset($_REQUEST['topic']))
$_REQUEST['topic'] = $_REQUEST['threadid'];
// We've got topic!
if (isset($_REQUEST['topic']))
{
// Make sure that its a string and not something else like an array
$_REQUEST['topic'] = (string)$_REQUEST['topic'];
// Slash means old, beta style, formatting. That's okay though, the link should still work.
if (strpos($_REQUEST['topic'], '/') !== false)
list ($_REQUEST['topic'], $_REQUEST['start']) = explode('/', $_REQUEST['topic']);
// Dots are useful and fun ;). This is ?topic=1.15.
elseif (strpos($_REQUEST['topic'], '.') !== false)
list ($_REQUEST['topic'], $_REQUEST['start']) = explode('.', $_REQUEST['topic']);
// Check for pretty topic URLs, and possibly redirect if oldschool queries were used.
if (is_numeric($_REQUEST['topic']))
{
$topic = (int) $_REQUEST['topic'];
if (!isset($_REQUEST['pretty']))
$context['pretty']['oldschoolquery'] = true;
} else {
$_REQUEST['topic'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['topic']);
// Are we feeling lucky?
$query = db_query("
SELECT ID_TOPIC
FROM {$db_prefix}pretty_topic_urls
WHERE pretty_url = '$_REQUEST[topic]'
LIMIT 1", __FILE__, __LINE__);
// No? No topic?!
if (mysql_num_rows($query) == 0)
{
$topic = 0;
} else {
while ($row = mysql_fetch_assoc($query))
$topic = (int) $row['ID_TOPIC'];
}
mysql_free_result($query);
// Fix $_REQUEST for silly mods that don't check $topic
$context['pretty']['query_string']['topic'] = $_REQUEST['topic'];
$_REQUEST['topic'] = $topic;
// That query should be counted separately
$context['pretty']['db_count']++;
}
// Now make sure the online log gets the right number.
$_GET['topic'] = $topic;
}
else
$topic = 0;
// There should be a $_REQUEST['start'], some at least. If you need to default to other than 0, use $_GET['start'].
if (empty($_REQUEST['start']) || $_REQUEST['start'] < 0)
$_REQUEST['start'] = 0;
// The action needs to be a string and not an array or anything else
if (isset($_REQUEST['action']))
$_REQUEST['action'] = (string) $_REQUEST['action'];
if (isset($_GET['action']))
$_GET['action'] = (string) $_GET['action'];
// Store the REMOTE_ADDR for later - even though we HOPE to never use it...
$_SERVER['BAN_CHECK_IP'] = isset($_SERVER['REMOTE_ADDR']) && preg_match('~^((([1]?\d)?\d|2[0-4]\d|25[0-5])\.){3}(([1]?\d)?\d|2[0-4]\d|25[0-5])$~', $_SERVER['REMOTE_ADDR']) === 1 ? $_SERVER['REMOTE_ADDR'] : 'unknown';
// Find the user's IP address. (but don't let it give you 'unknown'!)
if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']) && !empty($_SERVER['HTTP_CLIENT_IP']) && (preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['HTTP_CLIENT_IP']) == 0 || preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['REMOTE_ADDR']) != 0))
{
// We have both forwarded for AND client IP... check the first forwarded for as the block - only switch if it's better that way.
if (strtok($_SERVER['HTTP_X_FORWARDED_FOR'], '.') != strtok($_SERVER['HTTP_CLIENT_IP'], '.') && '.' . strtok($_SERVER['HTTP_X_FORWARDED_FOR'], '.') == strrchr($_SERVER['HTTP_CLIENT_IP'], '.') && (preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['HTTP_X_FORWARDED_FOR']) == 0 || preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['REMOTE_ADDR']) != 0))
$_SERVER['REMOTE_ADDR'] = implode('.', array_reverse(explode('.', $_SERVER['HTTP_CLIENT_IP'])));
else
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CLIENT_IP'];
}
if (!empty($_SERVER['HTTP_CLIENT_IP']) && (preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['HTTP_CLIENT_IP']) == 0 || preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['REMOTE_ADDR']) != 0))
{
// Since they are in different blocks, it's probably reversed.
if (strtok($_SERVER['REMOTE_ADDR'], '.') != strtok($_SERVER['HTTP_CLIENT_IP'], '.'))
$_SERVER['REMOTE_ADDR'] = implode('.', array_reverse(explode('.', $_SERVER['HTTP_CLIENT_IP'])));
else
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CLIENT_IP'];
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
// If there are commas, get the last one.. probably.
if (strpos($_SERVER['HTTP_X_FORWARDED_FOR'], ',') !== false)
{
$ips = array_reverse(explode(', ', $_SERVER['HTTP_X_FORWARDED_FOR']));
// Go through each IP...
foreach ($ips as $i => $ip)
{
// Make sure it's in a valid range...
if (preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $ip) != 0 && preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['REMOTE_ADDR']) == 0)
continue;
// Otherwise, we've got an IP!
$_SERVER['REMOTE_ADDR'] = trim($ip);
break;
}
}
// Otherwise just use the only one.
elseif (preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['HTTP_X_FORWARDED_FOR']) == 0 || preg_match('~^((0|10|172\.(1[6-9]|2[0-9]|3[01])|192\.168|255|127)\.|unknown)~', $_SERVER['REMOTE_ADDR']) != 0)
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
elseif (!isset($_SERVER['REMOTE_ADDR']))
{
$_SERVER['REMOTE_ADDR'] = '';
// A new magic variable to indicate we think this is command line.
$_SERVER['is_cli'] = true;
}
// Make sure we know the URL of the current request.
if (empty($_SERVER['REQUEST_URI']))
$_SERVER['REQUEST_URL'] = $scripturl . (!empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : '');
elseif (preg_match('~^([^/]+//[^/]+)~', $scripturl, $match) == 1)
$_SERVER['REQUEST_URL'] = $match[1] . $_SERVER['REQUEST_URI'];
else
$_SERVER['REQUEST_URL'] = $_SERVER['REQUEST_URI'];
// And make sure HTTP_USER_AGENT is set.
$_SERVER['HTTP_USER_AGENT'] = isset($_SERVER['HTTP_USER_AGENT']) ? htmlspecialchars(stripslashes($_SERVER['HTTP_USER_AGENT']), ENT_QUOTES) : '';
// Some final checking.
if (preg_match('~^((([1]?\d)?\d|2[0-4]\d|25[0-5])\.){3}(([1]?\d)?\d|2[0-4]\d|25[0-5])$~', $_SERVER['REMOTE_ADDR']) === 0)
$_SERVER['REMOTE_ADDR'] = '';
}
// Adds slashes to the array/variable. Uses two underscores to guard against overloading.
function addslashes__recursive($var, $level = 0)
{
if (!is_array($var))
return addslashes($var);
// Reindex the array with slashes.
$new_var = array();
// Add slashes to every element, even the indexes!
foreach ($var as $k => $v)
$new_var[addslashes($k)] = $level > 25 ? null : addslashes__recursive($v, $level + 1);
return $new_var;
}
// Adds html entities to the array/variable. Uses two underscores to guard against overloading.
function htmlspecialchars__recursive($var, $level = 0)
{
global $func;
if (!is_array($var))
return isset($func) ? $func['htmlspecialchars']($var, ENT_QUOTES) : htmlspecialchars($var, ENT_QUOTES);
// Add the htmlspecialchars to every element.
foreach ($var as $k => $v)
$var[$k] = $level > 25 ? null : htmlspecialchars__recursive($v, $level + 1);
return $var;
}
// Removes url stuff from the array/variable. Uses two underscores to guard against overloading.
function urldecode__recursive($var, $level = 0)
{
if (!is_array($var))
return urldecode($var);
// Reindex the array...
$new_var = array();
// Add the htmlspecialchars to every element.
foreach ($var as $k => $v)
$new_var[urldecode($k)] = $level > 25 ? null : urldecode__recursive($v, $level + 1);
return $new_var;
}
// Strips the slashes off any array or variable. Two underscores for the normal reason.
function stripslashes__recursive($var, $level = 0)
{
if (!is_array($var))
return stripslashes($var);
// Reindex the array without slashes, this time.
$new_var = array();
// Strip the slashes from every element.
foreach ($var as $k => $v)
$new_var[stripslashes($k)] = $level > 25 ? null : stripslashes__recursive($v, $level + 1);
return $new_var;
}
// Trim a string including the HTML space, character 160.
function htmltrim__recursive($var, $level = 0)
{
global $func;
// Remove spaces (32), tabs (9), returns (13, 10, and 11), nulls (0), and hard spaces. (160)
if (!is_array($var))
return isset($func) ? $func['htmltrim']($var) : trim($var, " \t\n\r\x0B\0\xA0");
$new_var = array();
// Go through all the elements and remove the whitespace.
foreach ($var as $k => $v)
$new_var[$k] = $level > 25 ? null : htmltrim__recursive($v, $level + 1);
return $new_var;
}
// !!!
function validate_unicode__recursive($var)
{
if (is_array($var))
return array_map('validate_unicode__recursive', $var);
$cleanup = array_merge(range(0, 8), range(11, 12), range(14, 31));
// Assuming unicode for now - won't really hurt if we're wrong.
for ($i = 0; $i < strlen($var); $i++)
{
$c = ord($var{$i});
if (in_array($c, $cleanup))
{
$var = substr($var, 0, $i) . substr($var, $i + 1);
$i--;
continue;
}
if ($c < 192)
continue;
elseif ($c < 224)
$i++;
elseif ($c < 240)
$i += 2;
elseif ($c < 248)
$i += 3;
elseif ($c < 252)
$i += 4;
elseif ($c < 254)
$i += 5;
}
return $var;
}
// Rewrite URLs to include the session ID.
function ob_sessrewrite($buffer)
{
global $scripturl, $modSettings, $user_info, $context, $db_count, $sourcedir, $time_start, $txt;
// If $scripturl is set to nothing, or the SID is not defined (SSI?) just quit.
if ($scripturl == '' || !defined('SID'))
return $buffer;
// Do nothing if the session is cookied, or they are a crawler - guests are caught by redirectexit(). This doesn't work below PHP 4.3.0, because it makes the output buffer bigger.
// !!! smflib
if (empty($_COOKIE) && SID != '' && empty($context['browser']['possibly_robot']) && @version_compare(PHP_VERSION, '4.3.0') != -1)
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(?!\?' . preg_quote(SID, '/') . ')(\?)?/', '"' . $scripturl . '?' . SID . '&', $buffer);
// Debugging templates, are we?
elseif (isset($_GET['debug']))
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(\?)?/', '"' . $scripturl . '?debug;', $buffer);
/*** Pretty URLs says no!
// This should work even in 4.2.x, just not CGI without cgi.fix_pathinfo.
if (!empty($modSettings['queryless_urls']) && (!$context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1) && $context['server']['is_apache'])
{
// Let's do something special for session ids!
if (defined('SID') && SID != '')
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?(?:' . SID . ';)((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html?' . SID . '\$2\"'", $buffer);
else
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);
}
***/
// Rewrite the buffer with Pretty URLs!
if ($modSettings['pretty_enable_filters'])
{
require_once($sourcedir . '/PrettyUrls-Filters.php');
$buffer = pretty_rewrite_buffer($buffer);
}
// Update the load times
$pattern = '~<span class="smalltext">' . $txt['smf301'] . '([.0-9]+)' . $txt['smf302'] . '([0-9]+)' . $txt['smf302b'] . '</span>~';
if (preg_match($pattern, $buffer, $matches))
{
$newTime = round(array_sum(explode(' ', microtime())) - array_sum(explode(' ', $time_start)), 3);
$timeDiff = $newTime - (float) $matches[1];
$queriesDiff = $db_count + $context['pretty']['db_count'] - (int) $matches[2];
// Remove the link if you like, I won't enforce it like others do
$newLoadTime = '<span class="smalltext">' . $txt['smf301'] . $newTime . $txt['smf302'] . $db_count . $txt['smf302b'] . ' (<a href="http://code.google.com/p/prettyurls/">Pretty URLs</a> adds ' . $timeDiff . 's, ' . $queriesDiff . 'q)</span>';
$buffer = str_replace($matches[0], $newLoadTime, $buffer);
}
// Return the changed buffer.
return $buffer;
}
?>
I have a problem with posting. When i enable the Pretty URL, i cant reply to any message. When i click any topic or board, i will get redirected out and logged out. I did not touch the cache. After i disable Pretty URL, then its okay.
Version 2.0 RC1-1
Pretty URL version 0.93
Ok they do have those two features enabled. Do I have to maunally edit htaccess, because just installing the MOD gives me all 404s. And yes I tried the suggestion on the google tracker
hello again
i still have 9.0 version. When i try to unistall this packeage print the error at ./Sources/QueryString.php
Can you give me the instructions to unistall it manually? The package parser can read the xml file of this mod.
thank
MelfromBoD, can you just give me some links?
Quote from: koopa on June 03, 2009, 03:15:41 PM
I have a problem with posting. When i enable the Pretty URL, i cant reply to any message. When i click any topic or board, i will get redirected out and logged out. I did not touch the cache. After i disable Pretty URL, then its okay.
Version 2.0 RC1-1
Pretty URL version 0.93
Anything in your error logs?
Quote from: TheDisturbedOne on June 03, 2009, 03:44:40 PM
Ok they do have those two features enabled. Do I have to maunally edit htaccess, because just installing the MOD gives me all 404s. And yes I tried the suggestion on the google tracker
If you're sure they do have those features, you could try adding RewriteBase / to the top of your .htaccess file.
Quote from: manfred on June 03, 2009, 05:37:50 PM
hello again
i still have 9.0 version. When i try to unistall this packeage print the error at ./Sources/QueryString.php
Can you give me the instructions to unistall it manually? The package parser can read the xml file of this mod.
thank
Well then just do the reverse of what the package parser says.
I can only afford to enable pretty for a few mins b/c the forum is active and enabled causes all except the top nav bar links to work. I'm not sure what you're suggesting Dannii.
BUG: Threads with "!" in the title are not linkable. When you post a link to such a thread, only up to the "!" converts to a link and therefore it takes them to a 404. The only way you can do it is if you manually place the URL tags around the link but no one does that really.
I recommend you don't allow "!" characters to show in the friendly URLs.
I am getting the strange Error in logs and way too many, almost on every click on forums.
http://www.cosp.org.pk/forums/index.php?pretty;action=modlog
8: Undefined index: pretty_admin_menu
File: /var/www/sites/misc/cosp/forums/Sources/Subs.php
Line: 2796
the url in the first line changes, sometimes http://www.cosp.org.pk/forums/index.php?pretty;action=viewErrorLog&desc and etc...
Quote from: MelfromBoD on June 03, 2009, 10:28:28 PM
I can only afford to enable pretty for a few mins b/c the forum is active and enabled causes all except the top nav bar links to work. I'm not sure what you're suggesting Dannii.
Well enable it, copy the links, and then disable the mod again. The links will still work (or not work) even if rewriting isn't enabled.
Quote from: mark7144 on June 04, 2009, 06:56:11 AM
BUG: Threads with "!" in the title are not linkable. When you post a link to such a thread, only up to the "!" converts to a link and therefore it takes them to a 404. The only way you can do it is if you manually place the URL tags around the link but no one does that really.
I recommend you don't allow "!" characters to show in the friendly URLs.
Hmm, this is something I've considered fixing for a while, but I don't really think it's worth it. If you do, you can easily remove the ! line yourself.
Quote from: cosp on June 04, 2009, 07:24:39 AM
I am getting the strange Error in logs and way too many, almost on every click on forums.
http://www.cosp.org.pk/forums/index.php?pretty;action=modlog
8: Undefined index: pretty_admin_menu
File: /var/www/sites/misc/cosp/forums/Sources/Subs.php
Line: 2796
the url in the first line changes, sometimes http://www.cosp.org.pk/forums/index.php?pretty;action=viewErrorLog&desc and etc...
You're missing the language entries in the Modifications language file.
Quote from: Dannii on June 03, 2009, 10:00:15 PM
Quote from: TheDisturbedOne on June 03, 2009, 03:44:40 PM
Ok they do have those two features enabled. Do I have to maunally edit htaccess, because just installing the MOD gives me all 404s. And yes I tried the suggestion on the google tracker
If you're sure they do have those features, you could try adding RewriteBase / to the top of your .htaccess file.
HOLY #$%^& it worked! One more small thing. I ran Pretty URLs about a year ago on a different server, different URL. Some of the links are sending me to that old URL. How do I change it? The forum's URL is correct, but there is probably a line in the database (which I can't find) that controls it. And yes I have run Pretty URL server maintenance.
And one more thing. How do I make my htaccess so that I can have the MOD and redirects going simultaneously?
Quote from: TheDisturbedOne on June 04, 2009, 03:55:03 PM
Quote from: Dannii on June 03, 2009, 10:00:15 PM
Ok they do have those two features enabled. Do I have to maunally edit htaccess, because just installing the MOD gives me all 404s. And yes I tried the suggestion on the google tracker
If you're sure they do have those features, you could try adding RewriteBase / to the top of your .htaccess file.
One thing related to that, this mod totally purges the existing .htaccess file, so even if you add RewriteBase / it will disappear the next time you run the Pretty URL maintenance. Is it supposed to be that way? I would prefer if it would only update those parts relevant to Pretty URL. Now I have to log in to my host and update the .htaccess manually after I have run maintenance and add RewriteBase / manually.
Quote from: sombra on May 30, 2009, 11:18:03 AM
hello i got to say this is a great mod really nice
but i got a little question im looking for a problem i got in google webmaster were its telling me
index.php?action=sitemap;xml Sitemap 28/05/2009 Warnings 5231 Details
Stats of Sitemap
Total of URL: 5231
URL que se han indexado: 403
like you can see its only indezed 400 pages and im looking for the reason why and i got to the conclution the problem maybe can be betwen
pretty url mod and sitemap mod
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg13.imageshack.us%2Fimg13%2F6827%2Fsitemap.jpg&hash=bf3f00fe81919ce8ae3fb59e1237d8af5fdf2191)
i notice that the url on the sitemap are normal url like index.php?action is there any way i can make pretty url change this?
any sugestions?
Hi, I have tried changing the following in
PrettyUrls-Filters.php, but has not the expected result. Maybe someone can do better than me. The regular expressions have turned me crazy ~.~
// Find all URLs in the buffer
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<loc|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+|>[^<#]+)~';
// Put the URLs back into the buffer
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<loc|<link[^>]+href=|<form[^>]+?action=)(\"[^\"]+\"|\'[^\']+\'|>[^<]+<)~';
This one gave better result, but equally it is bad
// Find all URLs in the buffer
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<loc>|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+|[^\"][^\"#]+)~';
// Put the URLs back into the buffer
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<loc>|<link[^>]+href=|<form[^>]+?action=)(\"[^\"]+\"|\'[^\']+\'|[^\"][^\"]+[^\"])~';
This also gave better result, but equally it is bad
// Find all URLs in the buffer
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<loc>|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+|[^\"][^\"#]+[^$\/\?])~';
// Put the URLs back into the buffer
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<loc>|<link[^>]+href=|<form[^>]+?action=)(\"[^\"]+\"|\'[^\']+\'|[^\"][^\"]+[^\"][^$\/\?])~';
Any suggestion?
Quote from: djkmmo on June 04, 2009, 06:32:00 PM
Quote from: TheDisturbedOne on June 04, 2009, 03:55:03 PM
Quote from: Dannii on June 03, 2009, 10:00:15 PM
Ok they do have those two features enabled. Do I have to maunally edit htaccess, because just installing the MOD gives me all 404s. And yes I tried the suggestion on the google tracker
If you're sure they do have those features, you could try adding RewriteBase / to the top of your .htaccess file.
One thing related to that, this mod totally purges the existing .htaccess file, so even if you add RewriteBase / it will disappear the next time you run the Pretty URL maintenance. Is it supposed to be that way? I would prefer if it would only update those parts relevant to Pretty URL. Now I have to log in to my host and update the .htaccess manually after I have run maintenance and add RewriteBase / manually.
Agreed :D
But I still love the MOD, great for SEO.
Quote from: TheDisturbedOne on June 04, 2009, 07:38:26 PM
Quote from: djkmmo on June 04, 2009, 06:32:00 PM
Quote from: TheDisturbedOne on June 04, 2009, 03:55:03 PM
Quote from: Dannii on June 03, 2009, 10:00:15 PM
Ok they do have those two features enabled. Do I have to maunally edit htaccess, because just installing the MOD gives me all 404s. And yes I tried the suggestion on the google tracker
If you're sure they do have those features, you could try adding RewriteBase / to the top of your .htaccess file.
One thing related to that, this mod totally purges the existing .htaccess file, so even if you add RewriteBase / it will disappear the next time you run the Pretty URL maintenance. Is it supposed to be that way? I would prefer if it would only update those parts relevant to Pretty URL. Now I have to log in to my host and update the .htaccess manually after I have run maintenance and add RewriteBase / manually.
Agreed :D
But I still love the MOD, great for SEO.
Just not to sound like a a total a nag, here is the Swedish translation of the mod ;). Now I've done something positive to :).
Modifications-swedish-utf8.php
//_ * Pretty URLs mod, Swedish translation djkmmo
$txt['pretty_admin_menu'] = 'Pretty URLs';
//_ * Board URLs interface
$txt['pretty_add_url'] = 'Lägg till';
$txt['pretty_add_url_description'] = 'Lägg till en URL. Notera att det du ger in här kommer att processas, då endast vissa tecken är tillåtna.';
$txt['pretty_board_url_title'] = 'Pretty URLs för: ';
$txt['pretty_deleted_board'] = 'Borttagen tavla #';
$txt['pretty_duplicate_link'] = 'radera den först.';
$txt['pretty_duplicate_warning'] = 'Den URL:en används redan till en annan tavla. Den blir tillgänglig om du ';
$txt['pretty_make_primary'] = 'Gör primär';
$txt['pretty_modify_board_url'] = 'Pretty URL';
$txt['pretty_no_primary_warning'] = 'Varning, ingen primär URL!';
$txt['pretty_numerical'] = 'Den URL:en är antingen ett nummer eller en forumshandling som måste läggas till som suffix.';
$txt['pretty_primary_url'] = 'Primär';
//_ * Settings descriptions
$txt['pretty_action_array'] = 'En tabell bestående av forumhandlingar, extraherade från index.php.';
$txt['pretty_board_lookup'] = 'En seriell tabell av <tt>URL => ID_BOARD</tt> par som används för att behandla <tt>$_GET[\'board\']</tt>. Det är möjligt att använda mer än en URL för varje tavla.';
$txt['pretty_board_urls'] = 'En seriell tabell av <tt>ID_BOARD => URL</tt> par, som används för att generera enklare URL-ersättningar.';
$txt['pretty_enable_filters'] = 'Bestämmer om några URL:er skall snyggas till. 0 för nej, 1 för ja.';
$txt['pretty_filters'] = 'En seriell tabell av filterdata.';
$txt['pretty_filter_callbacks'] = 'En seriell tabell av funktionsnamn, sorterade i prioritetsordning. Ändra inte dessa manuellt, ändra istället i <tt>pretty_filters</tt> inställningarna.';
$txt['pretty_root_url'] = 'Bas-URL:en som används för tavel- och ämnesfiltrering; som standard är det <tt>$boardurl</tt>.';
Hi, I embeded SMF into some existing site. Basically I am doing this:
site_header();
ob_start();
include (SMF_DIR . "/index.php");
$buffer = ob_get_contents();
ob_end_clean();
$forumContent = ob_urlFix($buffer); //here I manipulate the page to make sure all pages have header and footer
echo $forumContent;
site_footer();
Everything was working perfectly.
After install prettyurls, something is broken. Only the first page is still having the header and the footer and all the other pages are not.
I bet someone must have met this problem and have a pretty elegant solution. Could you please let me know where should I look at and what should i do?
Thanks!
I'm running SM v1.1.9 on Apache. How do you enable the filters in the the pretty url mod? The upload was successful through the package manager but I'm still outputting SM's default friendly URL's. Thanks.
Update: Everything is working fine! I realized their was a link under config for switching the mod on not too long after the original post. Works great. Thanks to Dannii for a great mod.
I'm curious as to why SM doesn't make real friendly URL's standard issue like in YaBB 2x+ for Apache? Mods are great, but I think most of the major BB players make this a standard back end feature including VB. Just curious, not mad. :)
after i upgraded to 1.1.9, the menu entry of "Pretty URLs" is gone in the admin section...
Quote from: djkmmo on June 04, 2009, 06:32:00 PM
One thing related to that, this mod totally purges the existing .htaccess file, so even if you add RewriteBase / it will disappear the next time you run the Pretty URL maintenance. Is it supposed to be that way? I would prefer if it would only update those parts relevant to Pretty URL. Now I have to log in to my host and update the .htaccess manually after I have run maintenance and add RewriteBase / manually.
I'm planning to change this in the future.
Quote from: djkmmo on June 04, 2009, 08:06:11 PM
Just not to sound like a a total a nag, here is the Swedish translation of the mod ;). Now I've done something positive to :).
Please translate this mod via Launchpad.
Quote from: ForumIntegration on June 04, 2009, 10:55:27 PM
Hi, I embeded SMF into some existing site. Basically I am doing this:
site_header();
ob_start();
include (SMF_DIR . "/index.php");
$buffer = ob_get_contents();
ob_end_clean();
$forumContent = ob_urlFix($buffer); //here I manipulate the page to make sure all pages have header and footer
echo $forumContent;
site_footer();
Everything was working perfectly.
After install prettyurls, something is broken. Only the first page is still having the header and the footer and all the other pages are not.
I bet someone must have met this problem and have a pretty elegant solution. Could you please let me know where should I look at and what should i do?
Thanks!
Why aren't you using SSI.php? Anyways, you need to call obsess_rewrite().
Quote from: cosp on June 05, 2009, 03:10:05 AM
after i upgraded to 1.1.9, the menu entry of "Pretty URLs" is gone in the admin section...
If you did a full upgrade then you'll need to reinstall the mod. If you used the patch... well that's strange.
urgent help pls...
i installed pretty urls in my previous SMF forum..,now i started SMF in a new premium host and uploaded the backup file of previous SMF forum...,but when i installed pretty urls in new smf and when i click the boards..it is redirecting to previous smf forum ...so,pls help me....
Quote from: Danpotter on June 05, 2009, 10:28:34 AM
urgent help pls...
i installed pretty urls in my previous SMF forum..,now i started SMF in a new premium host and uploaded the backup file of previous SMF forum...,but when i installed pretty urls in new smf and when i click the boards..it is redirecting to previous smf forum ...so,pls help me....
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: Dannii on June 05, 2009, 10:10:49 AM
Quote from: ForumIntegration on June 04, 2009, 10:55:27 PM
Hi, I embeded SMF into some existing site. Basically I am doing this:
site_header();
ob_start();
include (SMF_DIR . "/index.php");
$buffer = ob_get_contents();
ob_end_clean();
$forumContent = ob_urlFix($buffer); //here I manipulate the page to make sure all pages have header and footer
echo $forumContent;
site_footer();
Everything was working perfectly.
After install prettyurls, something is broken. Only the first page is still having the header and the footer and all the other pages are not.
I bet someone must have met this problem and have a pretty elegant solution. Could you please let me know where should I look at and what should i do?
Thanks!
Why aren't you using SSI.php? Anyways, you need to call obsess_rewrite().
Actually I implemented a bridge to integrate SMF into existing site(s).
Could you provide more details on how to use ob_sessrewrite() for fixing the problem? Just ob_start(ob_sessrewrite) ?
I have one SMF installed for more than one site. User can access SMF via multiple urls:
www.sitea.com/fourms/forum.php
www.siteb.com/forums/forum.php
They have different headers and footers.
Do you have suggestions on how to support this?
Quote from: Dannii on June 03, 2009, 10:00:15 PM
Quote from: manfred on June 03, 2009, 05:37:50 PM
hello again
i still have 9.0 version. When i try to unistall this packeage print the error at ./Sources/QueryString.php
Can you give me the instructions to unistall it manually? The package parser can read the xml file of this mod.
thank
Well then just do the reverse of what the package parser says.
hello
the parser don't work fine for me for this mod cause there are errors in the xml file, for this reason i ask to you what are the manually modifications that i need to do.
Quote from: ForumIntegration on June 05, 2009, 10:44:14 AM
Actually I implemented a bridge to integrate SMF into existing site(s).
Could you provide more details on how to use ob_sessrewrite() for fixing the problem? Just ob_start(ob_sessrewrite) ?
I have one SMF installed for more than one site. User can access SMF via multiple urls:
www.sitea.com/fourms/forum.php
www.siteb.com/forums/forum.php
They have different headers and footers.
Do you have suggestions on how to support this?
Yes, try ob_start('ob_sessrewrite');
This mod however won't be able to do what you want there. You'd have to pick one domain to use. Unless each site has it's own settings table?
Quote from: manfred on June 05, 2009, 12:21:30 PM
hello
the parser don't work fine for me for this mod cause there are errors in the xml file, for this reason i ask to you what are the manually modifications that i need to do.
What errors?
Also, you could just open up the xml file and do what it says. It pretty much explains itself...
Quote from: Dannii on June 06, 2009, 05:10:38 AM
Quote from: ForumIntegration on June 05, 2009, 10:44:14 AM
Actually I implemented a bridge to integrate SMF into existing site(s).
Could you provide more details on how to use ob_sessrewrite() for fixing the problem? Just ob_start(ob_sessrewrite) ?
I have one SMF installed for more than one site. User can access SMF via multiple urls:
www.sitea.com/fourms/forum.php
www.siteb.com/forums/forum.php
They have different headers and footers.
Do you have suggestions on how to support this?
Yes, try ob_start('ob_sessrewrite');
This mod however won't be able to do what you want there. You'd have to pick one domain to use. Unless each site has it's own settings table?
I tried ob_sessrewrite, and it does not work. Only the first page has the header and footer. :(
Could you please provide a bit more details on where the prettified urls are processed? I love this MOD very much and I would like to see what I could do on top of the MOD.
Thanks a lot!
What do you mean by "first page"??? Can you show me some real links to your site?
Quote from: Dannii on June 06, 2009, 08:26:39 AM
What do you mean by "first page"??? Can you show me some real links to your site?
Sorry, I do not have real links for my site.
The "first page" means the landing page of the the forum. Say:
http://rocyut1l.b2b.regn.net/iGamingCMS1.5/smf.php
In this page, the header and footer are ok. But after I click the board links in this page, the prettified url leads the browser to the forum directory, therefore the header and footer gone. :(
i.e. when I click the "General Discussion" board link in the landing page, I will be lead to "http://rocyut1l.b2b.regn.net/forum/general-discussion/"
I hope I can do some modification so that when I click the "General Discussion" link, I will be lead to "http://rocyut1l.b2b.regn.net/iGamingCMS1.5/smf.php/general-discussion/", and the page still have the header and footer.
Hope I made it clear.
None of those links are opening for me...
Quote from: Dannii on June 06, 2009, 11:37:18 AM
None of those links are opening for me...
No, they are all on my local machine. Not public.
Quote from: TheDisturbedOne on June 04, 2009, 03:55:03 PM
Quote from: Dannii on June 03, 2009, 10:00:15 PM
Quote from: TheDisturbedOne on June 03, 2009, 03:44:40 PM
Ok they do have those two features enabled. Do I have to maunally edit htaccess, because just installing the MOD gives me all 404s. And yes I tried the suggestion on the google tracker
If you're sure they do have those features, you could try adding RewriteBase / to the top of your .htaccess file.
HOLY #$%^& it worked! One more small thing. I ran Pretty URLs about a year ago on a different server, different URL. Some of the links are sending me to that old URL. How do I change it? The forum's URL is correct, but there is probably a line in the database (which I can't find) that controls it. And yes I have run Pretty URL server maintenance.
And one more thing. How do I make my htaccess so that I can have the MOD and redirects going simultaneously?
I found error 500 after installing ... Additionally, a 404 Not Found error was encountered
what to do
which .htaccess has to edit and code
Quote from: Dannii on January 31, 2007, 10:56:43 AM
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:
- [url][url]http://domain.com/board/topic/[/url][/url]
- [url][url]http://domain.com/profile/user/[/url][/url]
- [url][url]http://domain.com/unreadreplies/[/url][/url]
Pretty URLs will work with SMF 1.1 and 2.0. It requires an Apache webserver with support for mod_rewrite and .htaccess files.
SMF Mod Site page (http://custom.simplemachines.org/mods/index.php?mod=636)
Home page: http://code.google.com/p/prettyurls/ (http://code.google.com/p/prettyurls/)
Source code: http://code.google.com/p/prettyurls/source/browse/trunk (http://code.google.com/p/prettyurls/source/browse/trunk)
Downloads: http://code.google.com/p/prettyurls/downloads/list (http://code.google.com/p/prettyurls/downloads/list)
To install:
- First check your server supports .htaccess per-directory config files and mod_rewrite
- UTF-8 is recommended, though not required. Certain functions will work unreliably with other encodings
- Download and install the base package from the mod site.
- Enable the filters in the new Pretty URLs page
Please note that this mod is still in beta testing (by you!), so there could be problems.
If you get into trouble, check the trouble shooting page first! (http://code.google.com/p/prettyurls/wiki/TroubleShooting)
If you want help, please post real links to your website that I can access. Thank you!
Quote from: ForumIntegration on June 06, 2009, 11:42:13 AM
Quote from: Dannii on June 06, 2009, 11:37:18 AM
None of those links are opening for me...
No, they are all on my local machine. Not public.
Well, it's going to be super hard to help then!
Can you post smf.php here please.
Quote from: TheDisturbedOne on June 06, 2009, 02:40:13 PM
HOLY #$%^& it worked! One more small thing. I ran Pretty URLs about a year ago on a different server, different URL. Some of the links are sending me to that old URL. How do I change it? The forum's URL is correct, but there is probably a line in the database (which I can't find) that controls it. And yes I have run Pretty URL server maintenance.
And one more thing. How do I make my htaccess so that I can have the MOD and redirects going simultaneously?
If you're still having problems with old URLs, follow the trouble shooting page.
I don't know what you mean in your second question.
Quote from: fx991 on June 06, 2009, 03:13:36 PM
I found error 500 after installing ... Additionally, a 404 Not Found error was encountered
what to do
which .htaccess has to edit and code
Sounds like you are having problems with mod_security. Ask your host for help.
Quote from: Dannii on June 06, 2009, 10:13:38 PM
Quote from: ForumIntegration on June 06, 2009, 11:42:13 AM
Quote from: Dannii on June 06, 2009, 11:37:18 AM
None of those links are opening for me...
No, they are all on my local machine. Not public.
Well, it's going to be super hard to help then!
Can you post smf.php here please.
Following is related code:
$sp_url = getHTTP() . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
ob_start();
header(); // the page header should appear for every forum page
include (SMF_DIR . "/index.php");
$buffer = ob_get_contents();
ob_end_clean();
$forumContent = ob_urlFix($buffer);
echo $forumContent;
/**
* change url links in the forum page
*/
function ob_rbiFix($buffer)
{
$buffer = ob_sessrewrite($buffer);
global $scripturl, $sp_url;
$buffer = str_replace($scripturl, $sp_url, $buffer);
return $buffer;
}
Actually the code section is pretty much like the "iGamingCMS 1.3.2 Bridge 1.1" on http://download.simplemachines.org/?bridges . I also tested with this bridge, and got the same problem.
Whoops, I should have looked at that first. I had a redirect for my domain which redirects to my forum. Now whatever I chmod my htaccess to, it won't let me add the redirect, and when I add it manually, it doesn't work. When I get rid of pretty URLs it works though.
Thanks :)
Quote from: fx991 on June 06, 2009, 03:13:36 PM
I found error 500 after installing ... Additionally, a 404 Not Found error was encountered
what to do
which .htaccess has to edit and code
add RewriteBase /
to .htaccess after the RewriteEngine on
Quote from: ForumIntegration on June 06, 2009, 10:28:14 PMFollowing is related code:
Actually the code section is pretty much like the "iGamingCMS 1.3.2 Bridge 1.1" on http://download.simplemachines.org/?bridges . I also tested with this bridge, and got the same problem.
What are you actually trying to do with this code? Also, what exactly is the problem?
Quote from: TheDisturbedOne on June 06, 2009, 10:31:18 PM
Whoops, I should have looked at that first. I had a redirect for my domain which redirects to my forum. Now whatever I chmod my htaccess to, it won't let me add the redirect, and when I add it manually, it doesn't work. When I get rid of pretty URLs it works though.
Thanks :)
What do you mean by "it does't work"?
Quote from: Dannii on June 06, 2009, 10:46:07 PM
Quote from: ForumIntegration on June 06, 2009, 10:28:14 PMFollowing is related code:
Actually the code section is pretty much like the "iGamingCMS 1.3.2 Bridge 1.1" on http://download.simplemachines.org/?bridges . I also tested with this bridge, and got the same problem.
What are you actually trying to do with this code? Also, what exactly is the problem?
I am trying to give every forum page the header. Without the prettyurls MOD, clicking every links in the forum page, the header will be on every page. With this MOD, only the landing page has the header. Clicking board/topic will lead the browser off to SMF's index.php, therefore, no header appears.
Why aren't you using the SMF layers system?
Quote from: Dannii on June 06, 2009, 11:19:54 PM
Why aren't you using the SMF layers system?
What do you mean? Could you please provide more details?
Currently, everything is working fine with the bridge solution except the SEO urls. Therefore, I would like to try to make this MOD work.
Tried the SMF built-in SEF option, but their urls are not as pretty as prettyurls'.
http://www.simplemachines.org/community/index.php?topic=145838.0
There are a lot of other topics too.
If all you want is to add an extra header and footer you should do that. Only do an integration/bridge if you want to mix SMF with some other software.
Quote from: Dannii on June 06, 2009, 11:30:35 PM
http://www.simplemachines.org/community/index.php?topic=145838.0
There are a lot of other topics too.
If all you want is to add an extra header and footer you should do that. Only do an integration/bridge if you want to mix SMF with some other software.
The extra header and footer is not the only thing I want to do. Actually, I implemented a bridge to integrate SMF with a set of existing sites/software. SMF is like a subsystem embedded in a bigger picture.
Could you point me to the places where the urls are processed? or something I could do in the .htaccess?
Before the MOD,
board link: http://rocyut1l.b2b.regn.net/forum/index.php?board=1.0
topic link: http://http://rocyut1l.b2b.regn.net/forum/index.php?topic=1.0
I can change them to
http://rocyut1l.b2b.regn.net/business/smf.php?board=1.0
http://http://rocyut1l.b2b.regn.net/business/smf.php?topic=1.0
And everything works fine. The smf.php will output the correct header and perform all hook functions.
With the MOD,
board link: http://rocyut1l.b2b.regn.net/forum/general-discussion/
topic link: http://rocyut1l.b2b.regn.net/forum/general-discussion/welcome-to-smf!/
I do not know what should I do to make sure everything works as expected.
Ahh, well that's quite easy really. Go to index.php?action=admin;area=pretty;sa=filters and change all the index.php's to smf.php.
Quote from: fx991 on June 06, 2009, 03:13:36 PM
I found error 500 after installing ... Additionally, a 404 Not Found error was encountered
what to do
which .htaccess has to edit and code
Dannii I think i resolve it by making some modification on .htaccess
but a request: please make some modification for SMF 2.0 RC1-1
to install the mod without version emulation
It wasn't redirecting before, but I have it figured out. Two last things. My first board (SMF named it general discussion) has been changed to New and Updates. How would I change the name of the url for /general-discussion/ to /news-and-updates/?
And the favicon isn't showing :( yet it is in the same directory as the forum and is called favicon.ico.
Quote from: S-Ace on June 07, 2009, 07:35:36 AM
Quote from: TheDisturbedOne on June 07, 2009, 07:21:06 AM
It wasn't redirecting before, but I have it figured out. Two last things. My first board (SMF named it general discussion) has been changed to New and Updates. How would I change the name of the url for /general-discussion/ to /news-and-updates/?
And the favicon isn't showing :( yet it is in the same directory as the forum and is called favicon.ico.
dont u c a pretty url link beside brd modify ??
I have no idea what you are saying.
Ah yes that worked, thanks.
Quote from: TheDisturbedOne on June 07, 2009, 07:21:06 AM
It wasn't redirecting before, but I have it figured out. Two last things. My first board (SMF named it general discussion) has been changed to New and Updates. How would I change the name of the url for /general-discussion/ to /news-and-updates/?
And the favicon isn't showing :( yet it is in the same directory as the forum and is called favicon.ico.
Well it looks in the folder, so if you're in /board/topic/ it will look for /board/topic/favicon.ico, which won't exist. So explicitly add it to your html too! :)
Quote from: S-Ace on June 07, 2009, 07:35:36 AM
dont u c a pretty url link beside brd modify ??
Maybe write proper English? It will probably be even quicker to type!
Quote from: Dannii on June 07, 2009, 12:01:34 AM
Quote from: ForumIntegration on June 06, 2009, 11:49:17 PM
The extra header and footer is not the only thing I want to do. Actually, I implemented a bridge to integrate SMF with a set of existing sites/software. SMF is like a subsystem embedded in a bigger picture.
Could you point me to the places where the urls are processed? or something I could do in the .htaccess?
Before the MOD,
board link: http://rocyut1l.b2b.regn.net/forum/index.php?board=1.0
topic link: http://http://rocyut1l.b2b.regn.net/forum/index.php?topic=1.0
I can change them to
http://rocyut1l.b2b.regn.net/business/smf.php?board=1.0
http://http://rocyut1l.b2b.regn.net/business/smf.php?topic=1.0
And everything works fine. The smf.php will output the correct header and perform all hook functions.
With the MOD,
board link: http://rocyut1l.b2b.regn.net/forum/general-discussion/
topic link: http://rocyut1l.b2b.regn.net/forum/general-discussion/welcome-to-smf!/
I do not know what should I do to make sure everything works as expected.
Ahh, well that's quite easy really. Go to index.php?action=admin;area=pretty;sa=filters and change all the index.php's to smf.php.
The index.php and the smf.php are not in the same directory. I changed all "index.php" to "business/smf.php" and I got error 404. :(
I have 0.9 version. What is upgrade procedure to 0.9.3?
Uninstall, install? or?
Quote from: pcigre on June 08, 2009, 05:56:27 AM
I have 0.9 version. What is upgrade procedure to 0.9.3?
Uninstall, install? or?
- Uninstall old
- Install new one
Thank you. Looks like it worked fine.
Dannii,
Could you point me to the place where the links like
forum/general-discussion/
been processed so the SMF understands what's the real SMF link for this prettified link? in .htaccess?
Quote from: ForumIntegration on June 08, 2009, 05:23:32 AM
The index.php and the smf.php are not in the same directory. I changed all "index.php" to "business/smf.php" and I got error 404. :(
Try ./../business/smf.php
Quote from: ForumIntegration on June 08, 2009, 01:03:50 PM
Dannii,
Could you point me to the place where the links like
forum/general-discussion/
been processed so the SMF understands what's the real SMF link for this prettified link? in .htaccess?
Ahh, well .htaccess rewrites them, and then QueryString.php processes them.
Dannii, it finally works for me. Many thanks for your wonderful MOD and your help!
Excellent, no worries.
How will this affect existing URLs/topics? Does it rename them? Will it break current links from Google?
It 301 redirects them to the new URLs.
Thanks Dannii.
I see there was an issue when the Post title includes an exclamation point ! Are there any other known issues/symbols? What is the effect-- it reverts to an old-style URL or the page is inaccessible?
Nothing it works fine. You'll just have to manually link to it in posts, as the auto linker will stop at the character before the !.
@Saleem: to remove in advance this problem i've edit Subs-PrettyUrls.php like this:
Quote/*'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),*/
now my urls is perfect ;)
(u can find more info in old post of this topic) :)
-
@Danii: i've already release 0.9 of Pretty Urls but continue to work fine.
In your opinion is necessary to upgrade or not (i've more mod in my forum and isn't simple to remove pretty urls)? :|
If isn't a big problem i prefer to attend smf 2.0 to reinstall from zero.
Dark-Wolf, I don't understand what you're asking.
Sorry to bother you, but I recently transfered hosts and I had your mod installed on that forum aswell, but I removed it before I downloaded a database.
Now when I uploaded your mod on my new host, and selected the option to make boards and topics have pretty url's, it redirects back to my old forum on my old host.
How would I go about changing this?
thanks.
Follow the trouble shooting page. :)
Danni i try to send newsletter from my user. But if i send to email from admin panel get the
"Maximum execution time out : 30 second bla bla in PrettyUrls-Filters.php"
is this a bug ?
Possibly. What kind of email were you sending? Anything in the error logs?
where do I find the troubleshooter page?
Check the first post in this topic? Or you could Google search for it... or any number of ways?
Quote from: Dannii on June 10, 2009, 10:44:32 PM
Possibly. What kind of email were you sending? Anything in the error logs?
Admin Panel > News > Send Email and I write some information of my site in email, and add one topic url, {boardurl}, {memberlink}.
I was removed error log :/ And my forum have 2000 member , so i can't try again. :( Sorry.
Without the error log I can't really help sorry.
creze much because my database after install?
What?
Quote from: Dark-Wolf on June 10, 2009, 09:07:11 PM
@Saleem: to remove in advance this problem i've edit Subs-PrettyUrls.php like this:
Quote/*'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),*/
now my urls is perfect ;)
(u can find more info in old post of this topic) :)
I just had a huge screw up on my forum when I split off about 50 posts from a topic and named the newly split topic with a ! in it.
I ended up with a every subject line of every post in the new thread having about 200 forward slashes in it (////////////////////////////////////////////////////////////////////////////////////.......and lots more). It took me ages to edit each one. I had to because the board index and thread view scrolled to the right about a page and a half!
I applied that edit to Subs-PrettyUrls.php and in NotePad++ it turned the entries green like they've been commented out. Is that what's happened? Does it mean those symbols are being ignored by PrettyURLs and my issue will not happen again?
Normally I wouldn't mind searching back through a topic, but this one is 150 pages! I just want to know the pros and cons of the edit (in brief), thanks. :)
Are any of those posts still like that? Can you show me a link?
Hi Dannii
No, I edited all the post titles already, and even if I hadn't my forum is private so I couldn't supply a link.
This is what they became after the split -
Help! People Think I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
The title I typed in was "Help! People Think I'm [and then a few more words I can't put here, but two words had apostrophes ' in them].
What you see in bold is exactly what the result was, down to the last backslash.
BTW using 1.1.9 and 0.9.3.
Well it's definitely got absolutely nothing to do with !s! If you get it again let me know, without fixing it first.
Fair enough. I thought I'd post only because I read this post - http://www.simplemachines.org/community/index.php?topic=146969.msg2103347#msg2103347
and then your reply and Dark-Wolf's reply with the array edit. Figured it was worth checking out.
Actions to subdomain.
If you have a server or your server support wilcard dns, you can onvert your actions to virtual subdomain.
You must edit PrettyUrls-Filters.php.
Actioan callback should be
// Filter miscellaneous action urls
function pretty_urls_actions_filter($urls)
{
global $boardurl, $context, $scripturl;
$pattern = '~' . $scripturl . '(.*)action=([^;]+)~S';
$replacement = 'http://$2.site.com/$1';
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
if (in_array($matches[2], $context['pretty']['action_array']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
}
Add this to your main httaccess
# Rewrite sub domains.
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^www\.site\.net$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.site\.net$ [NC]
RewriteRule ^(.*)$ /forum/index.php?action=%2 [QSA,L]
Run pretty maintenance and actions should be profile.site.com, pm.site.com etc =)
When i instal Pretty url I can use Quote and modify inline :'(
how to fix it
Quote from: milicik on June 11, 2009, 10:56:51 AM
When i instal Pretty url I can use Quote and modify inline :'(
how to fix it
What :S
If you can use, what is the problem O_o
Quote from: [Daydreamer] on June 11, 2009, 11:13:04 AM
Quote from: milicik on June 11, 2009, 10:56:51 AM
When i instal Pretty url I can use Quote and modify inline :'(
how to fix it
What :S
If you can use, what is the problem O_o
I cant use it
You can block messages from the following titles:
!
"
[]
¡¡
could be .. thanks
I'm guessing they're using relative URLs, and you need to change them to absolute URLs.
as change that?
Quote from: Arkangel on June 11, 2009, 03:37:53 PM
You can block messages from the following titles:
!
"
[]
¡¡
could be .. thanks
wtf? :-X
relative URLs, and you need to change them to absolute URLs.
as change that?
Quote from: Arkangel on June 11, 2009, 04:12:24 PM
relative URLs, and you need to change them to absolute URLs.
as change that?
how to do that
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.tinypic.com%2Fmlt40h.gif&hash=5c07400939821c0cc0b03845f038f7f795721dc7)
where is the file, that i have to edit the absolute URLs
Please help me I installed Pretty URLs 0.9.3 and it said it installed successfuly. I went to Admin panel and enabled URL rewrite and now EVERY SINGLE TOPIC AND BOARD gives me a 404. I thought you said it all transfers over????
Everything is like : The requested URL /discuss/off-topic/who-saw-the-sardar-all-up-in-kobe's-face-(game-3)/msg58514/ was not found on this server.
PS - I already ran your PHP code posted in the troubleshooting section!
So that you dont think its the parentheses thats messing it up, all URLs are failing
/discuss/admin/?area=pretty;sa=settings;save
for an example.
I was able to revert for now.. very hesitant to move forward. Please advise.
in public create new fille like fix.php
in this php enter
<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_enable_filters' => '0'));
?>
and save fille.
Run like this www.yourdomain.com/fix.php
and you will disable pretty url.
There is probably a problem with your server (it may not support mod_rewrite or per-directory .htaccess configuration files).
I can't quote posts and i can't inline modify posts. After unistalig Pretty URL all is OK, but i want to have pretty url
Help , Tnx Milan
Confirmed with my host that mod_rewrite and per-directory .htaccess are supported.
Quote from: [Daydreamer] on June 11, 2009, 10:36:55 AM
Actions to subdomain.
If you have a server or your server support wilcard dns, you can onvert your actions to virtual subdomain.
You must edit PrettyUrls-Filters.php.
Actioan callback should be
// Filter miscellaneous action urls
function pretty_urls_actions_filter($urls)
{
global $boardurl, $context, $scripturl;
$pattern = '~' . $scripturl . '(.*)action=([^;]+)~S';
$replacement = 'http://$2.site.com/$1';
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
if (in_array($matches[2], $context['pretty']['action_array']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
}
Add this to your main httaccess
# Rewrite sub domains.
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^www\.site\.net$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.site\.net$ [NC]
RewriteRule ^(.*)$ /forum/index.php?action=%2 [QSA,L]
Run pretty maintenance and actions should be profile.site.com, pm.site.com etc =)
Ooohhh cool! Could I include this in an 'experimental' package?
Quote from: milicik on June 11, 2009, 10:56:51 AM
When i instal Pretty url I can use Quote and modify inline :'(
how to fix it
Check your Javascript error console please.
Quote from: Saleem on June 11, 2009, 05:50:59 PM
Please help me I installed Pretty URLs 0.9.3 and it said it installed successfuly. I went to Admin panel and enabled URL rewrite and now EVERY SINGLE TOPIC AND BOARD gives me a 404. I thought you said it all transfers over????
Everything is like : The requested URL /discuss/off-topic/who-saw-the-sardar-all-up-in-kobe's-face-(game-3)/msg58514/ was not found on this server.
PS - I already ran your PHP code posted in the troubleshooting section!
Quote from: Saleem on June 11, 2009, 07:40:12 PM
Confirmed with my host that mod_rewrite and per-directory .htaccess are supported.
Try adding a RewriteBase / line to the top of your .htaccess file.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.tinypic.com%2Fmlt40h.gif&hash=5c07400939821c0cc0b03845f038f7f795721dc7)
where is the file, that i have to edit the absolute URLs
help :D
Check your smilies URL.
[quote ]
Check your Javascript error console please.
[/quote]
How to do that. But when i uninstal all works. Tnx
Depends on which browser you have. I recommend you try with Firefox, and then go to Tools -> error console.
http://i44.tinypic.com/1qmsm0.jpg
hmmm... what now
None of those are javascript errors.
Can you please make me a temporary admin account on your forum so I can test it for myself?
Dannii, a quick question,
The default pretty urls use '-' for board/topic/action/profile. Where should I modify to change it to '_'?
default: forum/general-discussion/
change to: forum/general_discussion/
Thanks!
The GeneratePrettyUrl() function in Subs-PrettyUrls.php.
QuoteOoohhh cool! Could I include this in an 'experimental' package?
If you want it. I try this and worked on my server but i don't try everthing you should be review =)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2F153l4ps.jpg&hash=0e0a9c4455fb9b1d585ba41a6b03deb3f2fe7b5a)
fix the problem of emoticons ... thank you very much for everything .... but the table topics smf url grows pretty much: (
Quote from: Arkangel on June 12, 2009, 12:28:32 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2F153l4ps.jpg&hash=0e0a9c4455fb9b1d585ba41a6b03deb3f2fe7b5a)
fix the problem of emoticons ... thank you very much for everything .... but the table topics smf url grows pretty much: (
that is normal to me used 2 MB
Have installed and all seems to be well except for one thing. I have one topic that I can view as a guest but as soon as I log in (with an admin account) I get a blank page. I'm assuming that others can see it as their posts are showing in the recent posts.
Hi Danii,
I have a forum with pretty URLs like this:
example.com/bordados/topic-title
...where "bordados" is a board and "topic-title" is (of course) a topic title.
If I create a board named "descargas" inside "bordados" the pretty URL looks like this:
example.com/descargas/topic-title
I would like the URLs looks like:
example.com/bordados/descargas/topic-title
It's possible to modify Pretty URLs to do this? I'm using SMF 1.1.9.
Thank you in advance ;-)
Quote from: casp3r on June 12, 2009, 03:49:35 PM
Have installed and all seems to be well except for one thing. I have one topic that I can view as a guest but as soon as I log in (with an admin account) I get a blank page. I'm assuming that others can see it as their posts are showing in the recent posts.
Anything in your error log? Do you have mod_security?
Quote from: LoboSolitario on June 12, 2009, 08:23:21 PM
Hi Danii,
I have a forum with pretty URLs like this:
example.com/bordados/topic-title
...where "bordados" is a board and "topic-title" is (of course) a topic title.
If I create a board named "descargas" inside "bordados" the pretty URL looks like this:
example.com/descargas/topic-title
I would like the URLs looks like:
example.com/bordados/descargas/topic-title
It's possible to modify Pretty URLs to do this? I'm using SMF 1.1.9.
Thank you in advance ;-)
No that's not possible sorry. At least not without changing almost everything. You could however change the URL of descargas to be bordados-descargas, so the full URL would be example.com/bordados-descargas/topic-title, would that be better? You can change board URLs on the manage boards admin page.
Hi Dannii, thank you for your very quick reply, I'll do what you said, it's very useful for me, thank you again.
Webmaster of LoboSolitario.com
My spell check stopped working and I figured out it was PrettyURLs causing it. I don't use the built-in spell check, I use phpSpell. See here:
http://www.simplemachines.org/community/index.php?topic=317304.0
Any idea how I might be able to have this mod enabled and still have spell check working?
In what way isn't it working now?
Spell check works now, but only if I disable URL rewriting.
I'd like to have my spell check AND Pretty URLs!
If you think you might know how to help that'd be great. :)
Yes but in what way is it not working? What happens? What doesn't happen???
I linked to my support thread in my earlier post - http://www.simplemachines.org/community/index.php?topic=317304.0
Basically, nothing would happen. Click the button and...nothing at all.
I have a Issue with AjaxChat Integration.
if i check the option "Rewrite Board URLs" the chat stop working.
The error probably occur because the chat is located on the "http://myforum.com/chat" folder, and the pretty thinks it is the url of an board named "Chat".
I want too much to use the pretty url and the AjaxChat Integration togther.
I have the SMF 2.0RC1-1 and the the pretty url 0.9.3
I think my problem with spell check is for the same reason.
The URL is "http://blinkersforum.org/forum/spelling/phpSpell.html" and it probably thinks "spelling" is the name of a board.
Just like AJAXChat, it needs to run in it's own folder, not root. Surely this must be a fairly common scenario? Is there a workaround for this Dannii?
Quote from: Atoa on June 13, 2009, 10:52:08 PM
I have a Issue with AjaxChat Integration.
if i check the option "Rewrite Board URLs" the chat stop working.
The error probably occur because the chat is located on the "http://myforum.com/chat" folder, and the pretty thinks it is the url of an board named "Chat".
I want too much to use the pretty url and the AjaxChat Integration togther.
I have the SMF 2.0RC1-1 and the the pretty url 0.9.3
Use the latest snapshot and you can add an exception to the top of the .htaccess file.
Quote from: Blinker on June 14, 2009, 12:10:43 AM
I think my problem with spell check is for the same reason.
The URL is "http://blinkersforum.org/forum/spelling/phpSpell.html" and it probably thinks "spelling" is the name of a board.
Just like AJAXChat, it needs to run in it's own folder, not root. Surely this must be a fairly common scenario? Is there a workaround for this Dannii?
It has a file extension so it won't be touched. However, if it is using a relative URL it may not work... instead of http://blinkersforum.org/forum/spelling/phpSpell.html you would get http://blinkersforum.org/forum/board/topic/spelling/phpSpell.html
Can you check if it uses absolute or relative URLs?
I'm pretty sure it's an absolute URL.
Danii, I'm sure this has been answered, but I can't find it. I wish to have Pretty Board Urls, but I have a directory called "site" which has a e107 site on it. If I go to mysite.com/site I get sent to the forum. How would I get an exception just for the directory "site"?
Thanks!
http://www.blinkersforum.org/forum/spelling/phpSpell.html doesn't work for me... is that the right address?
Quote from: TheDisturbedOne on June 14, 2009, 09:35:54 AM
Danii, I'm sure this has been answered, but I can't find it. I wish to have Pretty Board Urls, but I have a directory called "site" which has a e107 site on it. If I go to mysite.com/site I get sent to the forum. How would I get an exception just for the directory "site"?
Thanks!
Use the latest snapshot, then add a rule to the top of your .htaccess to let it pass through. Something like
RewriteRule ^site/? ./site/index.php [L,QSA]
QuoteUse the latest snapshot and you can add an exception to the top of the .htaccess file.
Noobish question: how can i do this? XD
The last version of .htaccess, I believe.
Go to the google code site and look in the downloads list?
Quote from: Dannii on June 14, 2009, 11:36:20 AM
http://www.blinkersforum.org/forum/spelling/phpSpell.html doesn't work for me... is that the right address?
Quote from: TheDisturbedOne on June 14, 2009, 09:35:54 AM
Danii, I'm sure this has been answered, but I can't find it. I wish to have Pretty Board Urls, but I have a directory called "site" which has a e107 site on it. If I go to mysite.com/site I get sent to the forum. How would I get an exception just for the directory "site"?
Thanks!
Use the latest snapshot, then add a rule to the top of your .htaccess to let it pass through. Something like
RewriteRule ^site/? ./site/index.php [L,QSA]
That's not the actual address Dannii, just for used example here. The only difference from the real one is in the domain, blinkersforum, all else is exactly as normal. Put it this way, when I open the link up in a browser when I'm not logged in the spell check is there and it just sits there saying "Checking Document", obviously because it wasn't called from within the forum and the message composition.
Would it be possible for me to also add a rule to exclude the 'spelling' directory as per your advice to TheDisturbedOne?
Can you just give me the real link? And does the URL ever change depending on which topic you're in?
Hi Dannii
Sorry, not trying to be a pain in the ass but I can't give you the real link as I run a private board.
No, the URL never changes no matter where the spell checker is called from. Hopefully this will help -
http://master-technology.com/demos/spell/
That's the page for the author of the software and it works exactly the same as on my forum. Follow the link, click on 'Spell Check' and it will open a popup/new tab with the spell checker at this URL - http://master-technology.com/demos/spell/phpSpell.html
That's what I'm talking about.
P.S. I really appreciate your willingness to help me out with this issue, it means a lot. :)
Then PM me the link!
Everyone: If you won't give me URLs you're just wasting my time. Please read the first post.
Check your PM Dannii. Sorry if I wasted your time. I figured this could be solved easily or be told it couldn't be solved. Either way, you do a fine job of supporting your mod and for that you are to be commended.
So am I right that you said when you click on the spell check button nothing happens? Do you have <form action="spellcheck.php" in your page source?
Correct, when Pretty URL's are enabled clicking on spell check does nothing.
Currently they're disabled and spell check works. I clicked on it and looked at the page source and there is nothing like <form action="spellcheck.php" in it.
Here it is anyway, not sure if it helps -
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>phpSpell</title>
<script language="javascript" src="spelling.js"></script>
<script language="javascript">
function Can_Start_Spellchecker()
{
if (op6 || op7) setTimeout('Start_Spellchecker();', 500);
else Start_Spellchecker();
}
</script>
<link rel=stylesheet href='spelling-op.css' type='text/css'>
</head>
<body bgcolor="#ffffff" class="bodyclass" topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 onload="Can_Start_Spellchecker();">
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="2" background="titlebgd.gif">
<img src="titlebgd.gif" width="3" height="51" border="0" alt="" align="absmiddle"><span class="Title">phpSpell<br></span>
</td>
</tr>
<tr>
<td colspan="2">
<table width="550" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#000000">
<TR>
<td class="toprowcolor" colspan="2">
<table width="550" border="0" cellspacing="0" cellpadding="4" align="center">
<TR>
<script language="javascript">
DocOutput = "about:blank";
if (op7) DocOutput = "blank.html";
document.write('<td class="toprowcolor"><iframe src="'+DocOutput+'" scrolling="no" name="ispellheader" id="ispellheader" width="100%" height=16 marginwidth="0" marginheight="0" frameborder="0"></iframe></td>');
document.write('</tr></table><tr>');
document.write('<td width=400><iframe src="'+DocOutput+'" name="ispellcheck" id="ispellcheck" width="400" height="300" marginwidth="0" marginheight="0" frameborder="0" bgcolor=#ffffff></iframe></td>');
document.write('<td width=150><iframe src="'+DocOutput+'" name="ioptions" id="ioptions" width="150" height="300" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" bgcolor="white"></iframe></td>');
</script>
</tr>
</table>
</td>
</tr>
<tr class="toprowcolor"><td><a href="http://www.master-technology.com/demos/spell" target="_blank"><span class="crowtext"> (c)Copyright 2002-2008, Team phpSpell.</span></a></td>
</table>
</form>
</body>
</html>
No you need to look in the forum post/edit page.
Sorry, my bad. I checked a reply page source and the only reference to spell check is the same code from the post.template.php file that I put there for the spell check:
<tr>
<td align="center" colspan="2">
<script language="Javascript" src="spelling/spellmessage.js"></script>
<span class="smalltext"><br />shortcuts: hit alt+s to submit/post or alt+p to preview</span><br />
<input type="submit" name="post" value="Post" onclick="return submitThisOnce(this);" accesskey="s" tabindex="3" />
<input type="submit" name="preview" value="Preview" onclick="return (!document.postmodify.attachmentPreview.value || confirm('MSN')) && submitThisOnce(this);" accesskey="p" tabindex="4" />
<input type="button" class="button" name="spellcheck" value="SpellCheck" onclick="openspell();"/>
<script language="Javascript" src="spelling/spellmessage.js"></script>
As I said before, you're using relative URLs. Make that one absolute.
Sorry. Based on my understanding I thought blinkersforum.org/forum/spelling/phpSpell.html was an absolute URL.
How do I do make <script language="Javascript" src="spelling/spellmessage.js"></script> a relative URL? Does that require a whole big answer? If so, I'll try and figure it out with Google.
Put the full URL starting with http://
OK done. In my post.template.php file I changed <script language="Javascript" src="spelling/spellmessage.js"></script> to <script language="Javascript" src="http://blinkersforum.org/forum/spelling/spellmessage.js"></script> and tested the spell check. It still worked, yay!
Then I turned URL rewriting back on and went to spell check a test message and got a 404 error.
Not Found
The requested URL /forum/discussion-testing/the-great-big-'testing'-topic/80/spelling/phpSpell.html was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
It appears that this operation has made the spell check try to work straight from the topic rather than it's own folder. Hmmm, actually that doesn't read right. I can't find the right words to explain what I mean cos I know a lot but this stuff is quite new to me so bear with me.
You must have other relative URLs too. Check all of the changes that you made to install the spell checker in the first place.
QuoteUse the latest snapshot and you can add an exception to the top of the .htaccess file.
How can i do this? [2]
Quote from: Atoa on June 15, 2009, 03:21:21 PM
QuoteUse the latest snapshot and you can add an exception to the top of the .htaccess file.
How can i do this? [2]
Go to http://code.google.com/p/prettyurls/downloads/list and download latest snapshot.
Uninstall old and install this snapshot.
Danni you're great, new snapshot is really good. (:
Members are getting the following error message when they login - You were unable to login. Please check your cookie settings.
It does actually log them in but the message is scaring them off.
Any ideas please?
RC 2.0 1-1
All was working OK until I added the Pretty URL mod.
Thanks
PS I have read the replies and link cMay 27th but no good and I understand Dannii is doing exams for next two weeks so cant help??
[Daydreamer] thanks for the help with support ;) Also, there are more texts to translate at launchpad.net. No rush though as I'll probably still need to add a few more. I want to have a full Turkish translation for the 1.0 release though, so thanks for your help with that! :D
Hi philcross, this is a known issue: http://code.google.com/p/prettyurls/issues/detail?id=32
I haven't been able to track it down yet as it never occurs on my test forums. But I will keep trying!
I've just added a contributors file: http://prettyurls.googlecode.com/svn/trunk/CONTRIBUTORS
If you want me to change how your name is listed, please let me know. And if you think you should be listed and you're not, tell me too!
And for those who like living on the edge, there's a new snapshot! This one adds support for rewriting relative URLs.
And i how do install the snapshot? It's not like a normal mod, when i try to instal it says that the snapshot is outadated.
It is a normal package, did you uninstall the old version first?
after unnistaling the 0.9.3b i get this message on the top of the board:
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/atoajvs/public_html/forum/Sources/Load.php(1949) : eval()'d code on line 879
and the forum index font size were screwed
And again i can't acesse the chat =/
Check the forum and apache error logs. The error is not in Load.php, but another file.
this is the error:
8: Use of undefined constant The - assumed 'The'
File: /home/atoajvs/public_html/forum/Themes/default/index.template.php (eval?)
Line: 880
But thats makes no sense. The index template don't have 880 lines '-'
EDIT.: I give up using this. It's too complicated for my small brain.
Even if i work to install it, i still don't know how to add exceptions, and i didn't see any direct option to do this.
Can you please copy your index.template.php here please?
Could someone who had to add a RewriteBase line to their .htaccess file please volunteer letting me test something with their forum? I want to try to add some code which will automatically determine whether a RewriteBase line is needed, but that's not something I can test on my servers as I don't!
i have smf 2.0 rc1-1 and pretty url 0.9.1
i was told ther was a little but in the boardindex wen using pretty url with the adsense bot well..
what do i need to do to update? i need to uninstall or just patch?
Uninstall the old version then download and install the new.
mm im not so good at php do you think it will give me problems?
do i need to edit the httacses file?
No, to upgrade just uninstall the old and install the new, all in your package manager.
I've just now discovered that asterisks in the subject line (with Pretty URLs installed) makes the thread inaccessible.
2 Examples are on this page: http://www.chnetwork.org/forum/scripture/20/
The threads that have asterisks in the subject line cannot be accessed.
Any suggestions on how to fix this?
Thanks!
Remove the row with asterixs from Subs-PrettyUrls.php, and delete those topics from smf_pretty_topic_urls, then run maintenance.
it dosent give me the uninstall option :( only delete
do i presede to delete?
edit: found the uninstall
¡Este paquete no puede ser desinstalado, ya que no tiene desinstalador!
Por favor, contacta al autor del mod para mayor información.
this mod dosent have uninstaller contac the mod maker
Here go
<?php
// Version: 2.0 RC1; index
/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.
The init sub template should load any data and set any hardcoded options.
The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.
The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.
The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.
The menu sub template should display all the relevant buttons the user
wants and or needs.
For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/
// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt;
/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';
/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';
/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '2.0 RC1';
/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;
/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;
/* Show sticky and lock status separate from topic icons? */
$settings['separate_sticky_lock'] = true;
/* Does this theme use the strict doctype? */
$settings['strict_doctype'] = false;
/* Does this theme use post previews on the message index? */
$settings['message_index_preview'] = false;
/* Set the following variable to true if this theme requires the optional theme strings file to be loaded. */
$settings['require_theme_strings'] = false;
}
// The main sub template above the content.
function template_html_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title_html_safe'], '" />
<meta name="keywords" content="', $context['meta_keywords'], '" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?rc1"></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/theme.js?rc1"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_default_theme_url = "', $settings['default_theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";', $context['show_pm_popup'] ? '
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");' : '', '
var ajax_notification_text = "', $txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
// ]]></script>
<title>', $context['page_title_html_safe'], '</title>';
// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />';
// The ?rc1 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style', $context['theme_variant'], '.css?rc1" />';
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc1" media="print" />';
// IE7 needs some fixes for styles.
if ($context['browser']['is_ie7'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/ie7.css" />';
// ..and IE6!
elseif ($context['browser']['is_ie6'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/ie6.css" />';
// Firefox - all versions - too!
elseif ($context['browser']['is_firefox'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/ff.css" />';
// RTL languages require an additional stylesheet.
if ($context['right_to_left'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/rtl.css" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name_html_safe'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="', $scripturl, '?board=', $context['current_board'], '.0" />';
// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
{
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}
echo '<!-- nCode Image Resizer -->
<script type="text/javascript" src="', $settings['default_theme_url'], '/ncode_imageresizer.js"></script>
<style type="text/css">
<!--
table.ncode_imageresizer_warning, table.ncode_imageresizer_warning td
{
background-color: #fefee1; /* the bgcolor behind the text and image */
}
table.ncode_imageresizer_warning {
color: #000000; /* the font color */
border: 1px solid #CCCDCD; /* the border around the whole thing */
cursor: pointer;
}
table.ncode_imageresizer_warning td {
font-size: 10px;
vertical-align: middle;
text-decoration: none;
}
table.ncode_imageresizer_warning td.td1 {
padding: 5px;
}
-->
</style>';
// What is the mode?
if (isset($modSettings['ncode_imageresizer_mode']))
{
if ($modSettings['ncode_imageresizer_mode'] == 1)
$mode = 'enlarge';
elseif ($modSettings['ncode_imageresizer_mode'] == 2)
$mode = 'samewindow';
elseif ($modSettings['ncode_imageresizer_mode'] == 3)
$mode = 'newwindow';
else
$mode = 'none';
}
else
$mode = 'none';
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
NcodeImageResizer.BBURL = "', $settings['images_url'], '";
NcodeImageResizer.MODE = "', $mode, '";
NcodeImageResizer.MAXWIDTH = "', empty($modSettings['ncode_imageresizer_max_width']) ? 0 : (int) $modSettings['ncode_imageresizer_max_width'], '";
NcodeImageResizer.MAXHEIGHT = "', empty($modSettings['ncode_imageresizer_max_height']) ? 0 : (int) $modSettings['ncode_imageresizer_max_height'], '";
vbphrase = new Array();
vbphrase[\'ncode_imageresizer_warning_small\'] = \'', $txt['ncode_imageresizer_warning_small'], '\';
vbphrase[\'ncode_imageresizer_warning_filesize\'] = \'', $txt['ncode_imageresizer_warning_filesize'], '\';
vbphrase[\'ncode_imageresizer_warning_no_filesize\'] = \'', $txt['ncode_imageresizer_warning_no_filesize'], '\';
vbphrase[\'ncode_imageresizer_warning_fullsize\'] = \'', $txt['ncode_imageresizer_warning_fullsize'], '\';
// ]]></script>';
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// Create the main header object.
var mainHeader = new smfToggle("upshrink", ', empty($options['collapse_header']) ? 'false' : 'true', ');
mainHeader.useCookie(', $context['user']['is_guest'] ? 1 : 0, ');
mainHeader.setOptions("collapse_header", "', $context['session_id'], '");
mainHeader.addToggleImage("upshrink", "/upshrink.gif", "/upshrink2.gif");
mainHeader.addTogglePanel("user_section");
mainHeader.addTogglePanel("news_section");
// ]]></script>';
echo '
</head>
<body>';
}
function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings, $user_info;
echo '
<div id="wrapper">
<!-- Header -->
<div id="header">
<div id="news">
<h2>', $txt['news'], '</h2>
<p>', $context['random_news_line'], '</p>
</div>
</div>
<div id="forumheaderback">
<!-- Menu -->
', template_menu(), '
</div>
<div id="void"></div>
<!-- Main Content -->
<div id="content">';
if (!$user_info['is_guest'])
{
echo '
<div id="forumheaderback">
<div id="main-1"><div id="main-2"><div id="main-3"><div id="main-4"><div id="main-5">
<div id="forumheader">
', !empty($context['user']['avatar']['image']) ? '<div id="myAvatar">' . $context['user']['avatar']['image'] . '</div>' : '';
echo '
', $txt['hello_member'], ' <strong>', $context['user']['name'], '</strong>';
// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ', ', $txt['msg_alert_you_have'], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt['msg_alert_messages'] : $txt['message_lowercase'], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
echo '.<br />';
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<strong>', $txt['maintain_mode_on'], '</strong><br />';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
', $txt['totalTimeLogged1'];
// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];
// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo '
', $context['current_time'], '.
</div>
</div>
</div></div></div></div></div>
<div id="main-6"><div id="main-7"><div id="main-8">
</div></div></div>
<div id="void"></div>';
}
elseif ($user_info['is_guest'])
{
echo '
<div id="main-1"><div id="main-2"><div id="main-3"><div id="main-4"><div id="main-5">
<div id="forumheaderback">
<div id="forumheader">
<p><strong>', sprintf($txt['welcome_guest'], $txt['guest_title']), '</strong></p>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '">
<input type="text" name="user" size="10" />
<input type="password" name="passwrd" size="10" />
<input type="submit" value="Entrar" />
<input type="hidden" name="hash_passwrd" value="" />
<br /><label for="cookieneverexp">Ficar sempre online
<input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</form>
</div>
</div>
</div></div></div></div></div>
<div id="main-6"><div id="main-7"><div id="main-8">
</div></div></div>
<div id="void"></div>';
}
// The main content should go here.
if (empty($context['outside_forum']))
{
echo '
<div id="main-1"><div id="main-2"><div id="main-3"><div id="main-4"><div id="main-5">
<div id="mainarea">';
// Show the navigation tree.
theme_linktree2();
}
}
function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
</div></div></div></div></div>
<div id="main-6"><div id="main-7"><div id="main-8">
</div></div></div>
</div>';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '<div id="void"></div>
<div id="main-1"><div id="main-2"><div id="main-3"><div id="main-4"><div id="main-5">
<div id="footer">
<div id="footerarea">
<span class="normal text">', theme_copyright(), '<br />','©2009 Santuário RPG Maker. <a href="http://creativecommons.org/licenses/by-nc-nd/2.5/br/"><b>Alguns direitos reservados.</b></a>','<br />','<a href="#header">Voltar para o topo ↑</a>','</span>';
// Show the load time?
if ($context['show_load_time'])
echo '<br /><span class="smalltext">'. $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</span>';
echo '
</div></div></div></div></div>
<div id="main-6"><div id="main-7"><div id="main-8">
</div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="void-bellow"></div>';
}
function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
</body></html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree2()
{
global $context, $settings, $options;
echo '<div id="linktree">';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '">' . $tree['name'] . '</a>' : $tree['name'];
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' > ';
}
echo '
</div>';
}
function theme_linktree()
{
return;
}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<div id="main-1"><div id="main-2"><div id="main-3"><div id="main-4"><div id="main-5">
<div class="nav_menu">
<ul>';
foreach ($context['menu_buttons'] as $act => $button)
echo '<li><a ', $button['active_button'] ? ' class="active"' : '' , ' href="', $button['href'], '"><span>', $button['title'], '</span></a></li>';
echo '
</ul>
</div>
</div></div></div></div></div>
<div id="main-6"><div id="main-7"><div id="main-8">
</div></div></div>
';
}
// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $custom_td = '')
{
global $settings, $context, $txt, $scripturl;
// Create the buttons...
$buttons = array();
foreach ($button_strip as $key => $value)
if (!isset($value['test']) || !empty($context[$value['test']]))
$buttons[] = '<a href="' . $value['url'] . '"' . (isset($value['active']) ? ' class="active"' : '') . (isset($value['custom']) ? ' ' . $value['custom'] : '') . '><span>' . $txt[$value['text']] . '</span></a>';
if (empty($buttons))
return '';
// Make the last one, as easy as possible.
$buttons[count($buttons) - 1] = str_replace('<span>', '<span class="last">', $buttons[count($buttons) - 1]);
echo '
<div class="buttonlist', $direction != 'top' ? '_bottom' : '', '">
<ul class="clearfix">
<li>', implode('</li><li>', $buttons), '</li>
</ul>
</div>';
}
?>
sombra, emulate SMF 2.0 RC1
atoa, I can't see any problems with that. Are you still getting errors?
the problem isn't in the index
It's that the pretty url overlap the chat functions.
if you want to check by your self, try using the chat + shout box from this mod: http://www.simplemachines.org/community/index.php?topic=257973.0 with the pretty url with the "Rewrite Board URLs" + "Rewrite Topic URLs" + "Rewrite Action URLs" checked.
The chat no longer connects (you still can see it, and the shout box)
ok thanks that worked but now i get an error in de uninstall
Ejecutar Modificación ./Sources/Admin.php Prueba fallida
what manualy change i need to make?
heres what the admin.php has
'theme' => array(
'label' => $txt['theme_admin'],
'file' => 'Themes.php',
'function' => 'ThemesMain',
'custom_url' => $scripturl . '?action=admin;area=theme;sa=admin',
'icon' => 'themes.gif',
'subsections' => array(
'admin' => array($txt['themeadmin_admin_title']),
'list' => array($txt['themeadmin_list_title']),
'reset' => array($txt['themeadmin_reset_title']),
'edit' => array($txt['themeadmin_edit_title']),
),
),
'ads' => array(
'label' => $txt['ad_management'],
'file' => 'Ads.php',
'function' => 'Ads',
'custom_url' => $scripturl . '?action=admin;area=ads;sa=main',
'icon' => 'themes.gif',
'subsections' => array(
'main' => array($txt['ad_management_main']),
'add' => array($txt['ad_management_add']),
'reports' => array($txt['ad_management_reports']),
'settings' => array($txt['ad_management_settings']),
'credits' => array($txt['ad_management_credits']),
),
),
'pretty' => array(
'label' => $txt['pretty_admin_menu'],
'file' => 'PrettyUrls.php',
'function' => 'PrettyInterface',
'custom_url' => $scripturl . '?action=admin;area=pretty',
),
),
),
'layout' => array(
'title' => $txt['layout_controls'],
'permission' => array('manage_boards', 'admin_forum', 'manage_smileys', 'manage_attachments', 'moderate_forum'),
isint the same as the unisntaller tells me
this is the one the uninstaller tell me
'theme' => array( 'label' => $txt['theme_admin'], 'file' => 'Themes.php', 'function' => 'ThemesMain', 'custom_url' => $scripturl . '?action=admin;area=theme;sa=admin', 'icon' => 'themes.gif', 'subsections' => array( 'admin' => array($txt['themeadmin_admin_title']), 'list' => array($txt['themeadmin_list_title']), 'reset' => array($txt['themeadmin_reset_title']), 'edit' => array($txt['themeadmin_edit_title']), ), ), 'pretty' => array( 'label' => $txt['pretty_admin_menu'], 'file' => 'PrettyUrls.php', 'function' => 'PrettyInterface', 'custom_url' => $scripturl . '?action=admin;area=pretty', ),
so im a little confuced ::)
Quote from: Dannii on June 17, 2009, 07:53:46 AM
Remove the row with asterixs from Subs-PrettyUrls.php, and delete those topics from smf_pretty_topic_urls, then run maintenance.
Dannii, what folders should I expect to find those files in?
...I'm sorry if I sound stupid...but I am :(
@Dany
Yes. When i Activate the pretty url the chat is disconected.
Hello Dannii!
I need your help here please...
I just want to add this:
http://www.sitename.com/boardname/topicname/post/15/
15 = topic name
Normally is like this:
http://www.sitename.com/boardname/topicname/
And for repeated posts:
http://www.sitename.com/boardname/topicname-1/
I want that all urls says: "/post/15/"
To avoid the "-" for repeated posts...
Help me please.
This is pretty confusing for me...
Someone on Google Code told me that this can be made modifying the Filters and the Callbacks, but i don't know how...
Help me here please...
Thanks!
Quote from: Atoa on June 17, 2009, 12:31:57 PM
the problem isn't in the index
It's that the pretty url overlap the chat functions.
if you want to check by your self, try using the chat + shout box from this mod: http://www.simplemachines.org/community/index.php?topic=257973.0 with the pretty url with the "Rewrite Board URLs" + "Rewrite Topic URLs" + "Rewrite Action URLs" checked.
The chat no longer connects (you still can see it, and the shout box)
I'm guessing it has relative URLs then. Does it work with the latest snapshot?
sombra, okay proceed with the uninstallation, and then manually remove the pretty section from that array. What's happened is that another mod has been installed and so the pretty section is no longer the next one after the theme section.
Quote from: RickJ on June 17, 2009, 02:48:41 PM
Quote from: Dannii on June 17, 2009, 07:53:46 AM
Remove the row with asterixs from Subs-PrettyUrls.php, and delete those topics from smf_pretty_topic_urls, then run maintenance.
Dannii, what folders should I expect to find those files in?
...I'm sorry if I sound stupid...but I am :(
Subs-PrettyUrls.php is in Sources, smf_pretty_topic_urls is a database table, so use phpmyadmin to access it, and maintenance is the third icon in the pretty urls admin page.
Rhandy, as I said on google code, you'll have to learn a bit of PHP. It is not difficult. Look at the example pages and the Filters wiki page.
What URLs do they occur for?
You could try this change in Querystring.php:
// Check for pretty board URLs too, and possibly redirect if oldschool queries were used.
$context['pretty']['query_string']['board'] = $_REQUEST['board'];
Hello,
I have the following problem:
- I have insrtalled SMF 1.1.9
- Then I loaded pretty urls 0.9.3
Now the urls are pretty (like "www.mydomain.com/Help/"), but each time I want to see one of those pages, here is what I have:
"
Not Found
The requested URL /equalgenders/index.php 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/1.3.33 Server at www.equalgenders.com Port 80
"
Any idea?
Sure your server supports mod_rewrite and .htaccess?
I have the latest snapshot.
But as i said, i don't know how to add exceptions.
How *exactly* can i add exceptions? (yes i'm noob)
Also, is possible to add the topic ID to the link?
Something like:
http://myforum/board/topic-name-123
that's because the pretty url olny take in consideration the topic name, but what would happen if 2 topics has the same name?
EDTI.:
Here is some images to help you undertand what happens:
This is the chat:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi258.photobucket.com%2Falbums%2Fhh257%2Fatoa%2Fimg7-13.png&hash=bdc13c1eefc279f3b53caf3fa7bd56547aa61e55)
if i check the optins "Topic" and "Actions" nothing happens
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi258.photobucket.com%2Falbums%2Fhh257%2Fatoa%2Fimg8-14.png&hash=0a31fa21fac59ef6ced81c283b1338d0828a27ad)
but ii i check the option "Board"...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi258.photobucket.com%2Falbums%2Fhh257%2Fatoa%2Fimg9-12.png&hash=015cb138eaea0a9d38434e3847790109b246de2b)
The chat is disconnected:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi258.photobucket.com%2Falbums%2Fhh257%2Fatoa%2Fimg10-14.png&hash=b09056561c068e3758969d4259ab82c2507f6ad7)
The same happens to the shout box on the board index.
Try:
RewriteRule ^chat(.*) ./chat$1 [L,QSA]
And if two topics have the same name it will add the ID automatically. Don't worry.
QuoteRewriteRule ^chat(.*) ./chat$1 [L,QSA]
Where i do it? '-' (Super noob here \o)
Add it to the top of your .htaccess file.
This also disconect the chat (but that time give me a message error)
I think there's no easy way to do this. Only something specially done for this situation.
Thanks anyway, this is an great mod, too bad it don't work for me =[
Dannii, you should release a version where you can check if your host requires RewriteBase.
Hi!
I've just installed Pretty URLs on my new forum. I want to make it SEO-friendly, but there is one problem about duplicate content in posts. When you add any reply to topic, you'll get new link to that topic. I mean every heading of post has its own link! Not just #asdasd part, but completely new link.
Small example:
http://exmaple.com/klient-3/tutorial-ventrilo/
http://exmaple.com/klient-3/tutorial-ventrilo/msg9/#msg9 - link to first message
http://exmaple.com/klient-3/tutorial-ventrilo/msg10/#msg10 - link to second message
I think that links should be like that:
http://exmaple.com/klient-3/tutorial-ventrilo/
http://exmaple.com/klient-3/tutorial-ventrilo/#msg9 - link to first message
http://exmaple.com/klient-3/tutorial-ventrilo/#msg10 - link to second message
And my question is: Is there any way to get rid of that behaviour? I know that SMF generates similar links without this addon. Can you explain me what for?
Sorry for my english, I hope everything in my post is possible to understand :).
Besides of that, i think Pretty URLs are great! Thanks for that, especially for SMF 2.0RC1 support.
GOD DAMN IT! CAPTCHA :/
I just have one question :D.
Can I, somehow, disable the cache?? its taking up a lot of my database...
Quote from: Atoa on June 18, 2009, 01:03:27 PM
This also disconect the chat (but that time give me a message error)
I think there's no easy way to do this. Only something specially done for this situation.
Thanks anyway, this is an great mod, too bad it don't work for me =[
Can you show me an actual link to your site and chat?
Quote from: _Anthony_ on June 18, 2009, 02:09:46 PM
Dannii, you should release a version where you can check if your host requires RewriteBase.
Working on it now!
Quote from: Albitos on June 18, 2009, 04:36:12 PM
Hi!
I've just installed Pretty URLs on my new forum. I want to make it SEO-friendly, but there is one problem about duplicate content in posts. When you add any reply to topic, you'll get new link to that topic. I mean every heading of post has its own link! Not just #asdasd part, but completely new link.
Small example:
http://exmaple.com/klient-3/tutorial-ventrilo/
http://exmaple.com/klient-3/tutorial-ventrilo/msg9/#msg9 - link to first message
http://exmaple.com/klient-3/tutorial-ventrilo/msg10/#msg10 - link to second message
I think that links should be like that:
http://exmaple.com/klient-3/tutorial-ventrilo/
http://exmaple.com/klient-3/tutorial-ventrilo/#msg9 - link to first message
http://exmaple.com/klient-3/tutorial-ventrilo/#msg10 - link to second message
And my question is: Is there any way to get rid of that behaviour? I know that SMF generates similar links without this addon. Can you explain me what for?
Sorry for my english, I hope everything in my post is possible to understand :).
Besides of that, i think Pretty URLs are great! Thanks for that, especially for SMF 2.0RC1 support.
GOD DAMN IT! CAPTCHA :/
SMF 2 already has a noindex meta for those pages, and soon will be adding canonical support.
Quote from: venex on June 18, 2009, 06:00:51 PM
I just have one question :D.
Can I, somehow, disable the cache?? its taking up a lot of my database...
You can't disable it, but you can empty it at any time.
But is it a problem, do you have a tiny database? Maybe you need a better host, if the cache is going to be too big for it!
Hi,
Dannii my pretty url is working fine for a while now. ]
I have these pages, non-forum but SSI.php included.
The pretty url is caching my non-forum urls too and put them in the cache table.
for example I have such url on my own :
example.com/article/name/
and it has recorded in the cache table for both url_id and replacement :
'example.com/article/name/'
Which is total unnecessary and it is just taking up space.
How can I modify it so that it leave my non-forum pages alone? (It is running by the SSI.php)
Quote from: asmith on June 19, 2009, 12:19:12 AM
Hi,
Dannii my pretty url is working fine for a while now. ]
I have these pages, non-forum but SSI.php included.
The pretty url is caching my non-forum urls too and put them in the cache table.
for example I have such url on my own :
example.com/article/name/
and it has recorded in the cache table for both url_id and replacement :
'example.com/article/name/'
Which is total unnecessary and it is just taking up space.
How can I modify it so that it leave my non-forum pages alone? (It is running by the SSI.php)
It's not unnecessary, actually it's very important that they are in the cache table. Any URLs which are not in the cache table must be processed by each filter. If these URLs were not in the cache table then four extra functions would be called extra page view. The little bit of extra database size should be worth the performance saving it gives.
Quote from: Dannii on June 18, 2009, 09:55:40 PM
Quote from: _Anthony_ on June 18, 2009, 02:09:46 PM
Dannii, you should release a version where you can check if your host requires RewriteBase.
Working on it now!
Cool because editing htaccess every time I update the links is getting really tiring.
My cache table size is now 25mb and its increasing a lot. I'm sure you have seen heavy databases and how they affect on site performance.
Isn't it possible I put a little 'IF' statement somewhere that if the url is not starting with example.com/forums then run it the way it is and forget about the database?
I have a site full of links and it is expanding my db like crazy.
Pretty URLs 1.0RC has been released!
Please try it out, let me know if you have any problems.
Changelog (http://prettyurls.googlecode.com/svn/branches/1.0/CHANGES)
Hopefully 1.0RC will be text frozen. If you want your language to be installed with 1.0, please translate it now! :D https://translations.launchpad.net/prettyurls/trunk/+pots/prettyurls
Quote from: asmith on June 19, 2009, 02:10:04 AM
My cache table size is now 25mb and its increasing a lot. I'm sure you have seen heavy databases and how they affect on site performance.
Isn't it possible I put a little 'IF' statement somewhere that if the url is not starting with example.com/forums then run it the way it is and forget about the database?
I have a site full of links and it is expanding my db like crazy.
Do you have evidence this is actually affecting performance?
You could probably edit PrettyUrls-Filters.php to do as you suggest, but I don't have the time to tell you exactly how at the moment.
Cool thanks for the new release good job :)
I'm not saying the pretty urls db itself is affecting performance. Some hosts can't handle big db sizes. (like mine)
My total db is 37 mb. And it has become slow. Imagine if I could free up 20 mb.
I'm not pointing at pretty urls, I'm using it and I'm enjoying it. But I'm on a simple share host that can't handle dbs getting so much big. I'll change the host in the future. But Its nice to delete unnecessary data from db.
I'll give PrettyUrls-Filters.php a try. Thanks for mentioning the file.
In 1.1 I will add a setting where you can specify the maximum cache table size, and once it goes over that size, will be emptied.
btw I'm using pretty urls 0.9
Should I update it to 1.0?
I only just released 1.0RC (release candidate) but yes I recommend updating now. After I've finished a few small things I will release 1.0, and then will start on 1.1.
foreach ($matches[2] as $match)
{
// Rip out everything that shouldn't be cached
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|sesc=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
$url_id = str_replace(array($scripturl . '?board=', $scripturl . '?topic=', $scripturl . '?action=', $scripturl), array('`B', '`T', '`A', '`S'), $match);
$urls_query[] = '\'' . addslashes($url_id) . '\'';
$uncached_urls[$url_id] = array(
'url' => $match,
'url_id' => $url_id
);
}
Adding after that,
Will this be okay? :
foreach ($uncached_urls as $itsKey => $theUrl)
if (!preg_match("/^http:\/\/www.example.com\/forums/", $theUrl['url']))
unset($uncached_urls[$itsKey]);
Don't wanna take your time, I just think it will be quick modify for me.
Should I go more up in the code to do such thing? I'm looking for faster way.
Hello :)
Upgrade has no error , awsome :) now i need help about Glossary Mod ,
when i tried to add a new key word redricting me to http://erepublikfan.co.cc/ ...
http://erepublikfan.co.cc/
ID : devs Pass : devs if want to check it ...
forum
www.santuariorpgmaker.com/forum
chat
www.santuariorpgmaker.com/forum/chat
to access chat you need to be looged on the forum.
I use this mod: http://www.simplemachines.org/community/index.php?board=59.0
this mod makes the ajax chat (https://blueimp.net/ajax/) integraded with the forum.
I'm on 0.9.3 and it works pretty much perfect, are there any performance improvements with RC1?
I'm only really interested in 1.1 due to the cache feature so can't be bothered upgrading for fixes I don't need.
asmith, I suggest this:
$urls_query[] = $url_id;
if (strpos($match, $boardurl) === false)
continue;
Quote from: Antes on June 19, 2009, 04:37:47 AM
Hello :)
Upgrade has no error , awsome :) now i need help about Glossary Mod ,
when i tried to add a new key word redricting me to http://erepublikfan.co.cc/ ...
http://erepublikfan.co.cc/
ID : devs Pass : devs if want to check it ...
I'm sorry, I don't understand...
Atoa, which version of this mod are you using now? The chat uses relative URLs, so 1.0RC should fix them.
Quote from: mark7144 on June 19, 2009, 11:39:00 AM
I'm on 0.9.3 and it works pretty much perfect, are there any performance improvements with RC1?
I'm only really interested in 1.1 due to the cache feature so can't be bothered upgrading for fixes I don't need.
That's not really a good attitude to have...
1.0RC doesn't really have performance improvements, but it does now rewrite relative URLs, which can help with a lot of mods (like the chat above probably).
You could try this attachment here: http://code.google.com/p/prettyurls/issues/detail?id=16#c8
nothing yet.
I just tested the 1.0RC and didn't work.
Can you make me a temporary account please and email/pm me the password?
Thanks danni. I haven't test it yet.
I added the $boardurl to the globals and added that before that line.
Thanks for the suggestion and help.
i think this SS helps to you then me xD
Quote from: Dannii on June 19, 2009, 11:58:01 AM
That's not really a good attitude to have...
What's wrong with my attitude? My current version works fine, I don't need anything fixed and therefore it's not worth my time to upgrade now when I'd rather wait for 1.1.
Only thing I need fixed is the '!' bug but you are not going to do that.
Antes, I can't see that page with the devs account.
Quote from: mark7144 on June 19, 2009, 06:22:34 PM
What's wrong with my attitude? My current version works fine, I don't need anything fixed and therefore it's not worth my time to upgrade now when I'd rather wait for 1.1.
Only thing I need fixed is the '!' bug but you are not going to do that.
Because 0.9 is beta software and it will take so little time to upgrade anyway. If you're not running the latest software I won't be able to help if you get into trouble in the future... and you can always remove !'s yourself, it's not hard.
Quote from: Dannii on June 19, 2009, 09:34:03 PM
Antes, I can't see that page with the devs account.
Quote from: mark7144 on June 19, 2009, 06:22:34 PM
What's wrong with my attitude? My current version works fine, I don't need anything fixed and therefore it's not worth my time to upgrade now when I'd rather wait for 1.1.
Only thing I need fixed is the '!' bug but you are not going to do that.
Because 0.9 is beta software and it will take so little time to upgrade anyway. If you're not running the latest software I won't be able to help if you get into trouble in the future... and you can always remove !'s yourself, it's not hard.
Well how can we redirect this topics urls to new one? Because i have a lot of topic like this. If this is possible i will remove (, ), ' and !
Yeah, that's not easy. You could add redirection rules to the .htaccess for each topic individually, but there's no easy way as the mod would only store the new URL.
I'm not sure what the problem with ( ) ! is. They've always worked fine for me.
Yeah )( always worked but i think brackets marks not pretty. (this is my opinion=))
! not worked look at = > http://www.rockayseri.net/rk/haberler/varg-vikernes-yakinda-serbest-!!!/
but should be linked http://www.rockayseri.net/rk/haberler/varg-vikernes-yakinda-serbest-!!!/
That's this issue: http://code.google.com/p/prettyurls/issues/detail?id=7
Think I should fix it in 1.0? I could just make it autolink everything until the next space comes. That would autolink characters that currently aren't, like brackets, but if that's a problem you could use BBCode. What do you think?
Also, how are people finding the test page? Good idea? It will be a little slower for admins who have used the mod before, but I think its worth it because it will stop many people from installing the mod and breaking their forum if it won't work.
I think yes. But this is not necessary in 1.0. Because this is not a big issue. I think this fix in the 1.1 or future 1.1.x. I actually use the bbcode but if i give a link from outside the forum problem still ongoing. Like if you want to use these link in twitter or other social network. "!" just removed in future development but what happens to the old link?
Well in 1.1 I'll hopefully add an interface to change topic URLs. I don't know whether I'll make it keep the old ones or not...
Yes... I have a pretty small database. Its just 100 MB and my forum stats:
84139 Replies in 14413 Topics by 8484 Users. And around 350 users logged in everyday... so its a pretty large amount of data for my 100MB database. I use 1and1.com and I do want to change it... but I'm afraid because I can erase info while passing from one data base to the other.
Thanks anyway and keep it up :D.
nice mod hope the final version is soon here cant wait :D
Quote from: [Daydreamer] on June 19, 2009, 10:24:09 PM
I think yes. But this is not necessary in 1.0. Because this is not a big issue. I think this fix in the 1.1 or future 1.1.x. I actually use the bbcode but if i give a link from outside the forum problem still ongoing. Like if you want to use these link in twitter or other social network. "!" just removed in future development but what happens to the old link?
Okay, brilliant new idea! How about allowing ! and other punctuation characters, but ensuring that the last character of a board or topic must be something else?
Also, do you think it would be helpful to translate the wiki documents too? Maybe not the Filters or Database changes pages, but the Overview and Trouble Shooting pages would be good to have translated? Would you be willing to do that? If so, would you prefer to translate it at launchpad (it doesn't seem too good for big texts) or on the google code wiki itself?
I hope I'm not way out of the subject or so much wrong.
Why don't you use rawurlencode() on the urls?
*The url will work everywhere.
*Google can read it to its actual characters and show it url 'decoded' on its result page.
*The mod will work for EVERY language. (Atm it removes some non-english characters)
*You wont' have to be worried about what characters are being use. Cause whatever is used will work.
I'm planning to, after 1.0. It will be a big change though. And in some situations it could be less pretty.
hello,
I have a problem with pretty url, is installed and functions well but I have the forum in the board of root directory and in you paginate external to the forum redirects me to the forum ej:
www.misyte.com/ (root forum)
www.mysite.com/chat (root chat)
Upon entering to the chat redirects me to the forum with the opcion "redireccion board" of pretty url, someone knows the solution?
, thanks,
Try this: http://www.simplemachines.org/community/index.php?topic=146969.msg2116296#msg2116296
ok thanks :)
now I have another problem, when I put a direction email error leaves me because the route is www.mysite.com/
[email protected]thanks...
Is that with the [email] or just posting an email and the autolinker makes a mistake?
Edit, I can reproduce this.. but it's weird.
http://www.zonagente.com/index.php
but now itself not because gives me error 500 and I have not changed anything, that can be?
500 errors usually mean that mod_security is causing problems. Ask your host about that.
ok, I asked to the of the hosting and you comment, thanks
Quote from: Dannii on June 20, 2009, 04:27:24 AM
500 errors usually mean that mod_security is causing problems. Ask your host about that.
Or it could be that he messed up a line in the .htaccess file....
The same for me: Error 500
htaccess:
RewriteEngine on
RewriteBase /
RewriteRule ^chat(.*) ./chat$1 [L,QSA]
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: June 20, 2009, 10:14
RewriteEngine on
RewriteBase /
# 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]
# PRETTYURLS MOD ENDS
Without the mod on htaccess, only the template ist displayen an js-error: (see Picture)
Can somebody helo?
Quote from: Analogiker on June 20, 2009, 04:57:17 AM
The same for me: Error 500
htaccess:
RewriteEngine on
RewriteBase /
RewriteRule ^chat(.*) ./chat$1 [L,QSA]
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: June 20, 2009, 10:14
RewriteEngine on
RewriteBase /
# 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]
# PRETTYURLS MOD ENDS
Replace yours withthe following and tell me if it fixes it.
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: June 20, 2009, 10:14
RewriteEngine on
RewriteBase /
RewriteRule ^chat(.*) ./chat$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]
# PRETTYURLS MOD ENDS
Quote from: _Anthony_ on June 20, 2009, 05:00:33 AM
Replace yours withthe following and tell me if it fixes it.
...
The same Error 500
Have you checked your Apache error logs?
I have no acces to the error logs. I'll send an email to my provider,to get them
Also, have you both just installed the mod, or have you had it before for a while, and you've only just started getting 500 errors?
I upgraded from prettyurls 093 today.
Bevore that the ajax chat worked perfect..
Maybe try this instead:
RewriteRule ^chat/? ./chat/index.php [L,QSA]
Quote from: Dannii on June 20, 2009, 02:12:33 AM
I'm planning to, after 1.0. It will be a big change though. And in some situations it could be less pretty.
Glad to hear it^^
When a character is being rawurlencode()ed , It may look less pretty, But to Google it still counts as a pretty url.
Btw you're a great mod writer dannii. I've never seen anyone support his mod topic this much. Good job.
Quote from: Dannii on June 20, 2009, 05:23:33 AM
Maybe try this instead:
RewriteRule ^chat/? ./chat/index.php [L,QSA]
Error 500 too. The same like RewriteRule ^chat(.*) ./chat$1 [L,QSA]
If i do not modify the htaccess File, I get an error in the javaerror-console. 'ajaxChatConfig is not defined'
Can you give me a link to your chat page?
http://www.cachebrett.de/chat/index.php
You have to log on to use the chat. You have a PM for your user.
Thanks.
Can you try to just delete that line now? I want to see what happens without it.
How about cutting the RewriteBase line as well. Try that too.
Okay,.
I think the 'script' includes in loggedIn.htlm of AjaxChat are not processed.
Okay,.
Quote from: Analogiker on June 20, 2009, 05:58:36 AM
Okay,.
I think the 'script' includes in loggedIn.htlm of AjaxChat are not processed.
Quote
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
...
If I change them to
Quote
<script src="chat/js/chat.js" type="text/javascript" charset="UTF-8"></script>
...
there will be new Errors
Try removing this line from QueryString.php:
$buffer = str_replace('<head>', '<head><base href="' . $boardurl . '/" />', $buffer);
Okay,
there are new errors on javaconsole.
If i modify the htaccess file the errro 500 comes back
Put the .htaccess file back to how it was when it was working.
I see the JS errors. I have to go now though, I'll try and help you more next week.
Would you be willing to let me have temporary FTP access on your server, so I can try various things to see what will work?
Its modified witout RewriteRule ^chat(.*)....
None of the solutions suggeted works for me.
Btw.: i had all the chat files writtable (chmod: 0777) and still not working.
Btw2.: wich is the difference between having "Enable URL rewriting" checkd and unchecked (i tested with it checked and unchecked).
Just curious about if will be useful having acrtivaded once i get the pretty ulr working with the chat.
Quote from: Dannii on June 19, 2009, 09:34:03 PM
Antes, I can't see that page with the devs account.
Quote from: mark7144 on June 19, 2009, 06:22:34 PM
What's wrong with my attitude? My current version works fine, I don't need anything fixed and therefore it's not worth my time to upgrade now when I'd rather wait for 1.1.
Only thing I need fixed is the '!' bug but you are not going to do that.
Because 0.9 is beta software and it will take so little time to upgrade anyway. If you're not running the latest software I won't be able to help if you get into trouble in the future... and you can always remove !'s yourself, it's not hard.
i'm sorry my stupidness ... i made changes in hurry then failed on save ... can you look it again when you are free :)
I just installed this MOD on my forum and it immediately caused my chat to not function. I uninstalled the MOD but now no one can chat. The chat was the main thing my members used!!!
Edit:.. I deleted the .htaccess and chat works now.
dont think I will install this MOD anymore.
Hi primetime, this software is only a release candidate, so when you install it, be aware of the risks. A RC means that it is basically complete, and I just want people to test it a little more before I release 1.0 gold. We have indeed found a couple of small bugs. But it's better to find them now than in 1.0 itself!
That said, I know what this current problem is, and I will fix it for 1.0. Basically it is adding the wrong URL to the <base> tag.
When I release 1.0 itself, hopefully there will be none of these issues. Please try it again then. If there are issues, then I will quickly release 1.0.1.
Quote from: Dannii on June 20, 2009, 10:50:31 AM
Hi primetime, this software is only a release candidate, so when you install it, be aware of the risks. A RC means that it is basically complete, and I just want people to test it a little more before I release 1.0 gold. We have indeed found a couple of small bugs. But it's better to find them now than in 1.0 itself!
That said, I know what this current problem is, and I will fix it for 1.0. Basically it is adding the wrong URL to the <base> tag.
When I release 1.0 itself, hopefully there will be none of these issues. Please try it again then. If there are issues, then I will quickly release 1.0.1.
That sounds like a plan Danni. I will keep an eye out for the next release.
Prime
Hello!
I have problem with chat too.
When I was on 0.9 I used: RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
in .htaccess and it works fine but now it doesnt work. I have tried all tree solutions:
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
RewriteRule ^chat(.*) ./chat$1 [L,QSA]
RewriteRule ^chat/? ./chat/index.php [L,QSA]
and neither of them worked. It starts to print page but have problem with including css and js files i think. I have attached SS.
And I think I have found a bug. Links "Go Top" and "Go Down" doesnt work. It create link "http://site.com/forum/#lastPost" instead "http://site.com/forum/board/topic/?topicseen#lastPost".
P.S. Quoting works fine.
@deZio
The same problem here i posted it on the Ajax Chat
OMG. I notice now that problem exist in smilies too. I will have to disable it for now.
Okay there are too many problems with 1.0RC, so I recommend going back to 0.9.3. It's back on the download pages.
If you want to be notified when I fix the bugs, watch this page: http://code.google.com/p/prettyurls/issues/detail?id=75
Sorry everyone!
Edit: I have fixed them now, so install 1.0RC again!
topic answer error:
http://i43.tinypic.com/34pased.gif
do not display images in response topic
Quote from: Arkangel on June 20, 2009, 11:11:05 PM
topic answer error:
http://i43.tinypic.com/34pased.gif
do not display images in response topic
And if you try to reply, "add quote" in reply page not worked.
<a onclick="return insertQuoteFast(42375);" href="#top">Add Quote</a>
Buton linked site.com/#top, and if you try to add quote you redirect to boardurl.
The problem is in the this code..
$buffer = str_replace('<head>', '<head><base href="' . $boardurl . '/" />', $buffer);
In QueryStrings.php. I think base not truly selected from js..
Thank to sun king's hepl I got my chat + pretty url working.
the code he added was RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
My problem was with 1.0RC.
In the begin, the mistake was mine, but when changed to 1.0RC, I did right once but don't noticed it working (and since i'm a noob i didn't know it was right) xD
Thanks for all your support. This mod is so great and i'm happy to have it woriking with the chat.
Great to see that this now into the RC stage! I had a poke at this quite a while back and in the end decided not to use it due to some of the bugs. But it is looking much more polished now. Great work Dannii and whoever else contributed to this project!
EDIT: Darn, looks like the RC isn't the best version anymore :(
I have some questions though.
(1) How much extra load does this put on the server? That's probably hard to quantify, but does it make a measurable difference?
(2) Does it work by output buffering the entire page content, then just replacing all of the URL's with pretty ones?
(3) I'm assuming the rewrite rules wouldn't cause any troubles for me if I wanted to create a new page such as http://domain.com/ where the the forum index is http://domain.com/index.php. Am I correct? Or could that screw up somehow?
Question #3 is because I'm looking to write a simple portal for a new forum I'm intending to launch. I was intending to rewrite a PHP file as the domain root so that I can have a home page whilst keeping the forum still in the main root of the site.
very great mod!
I want to extend the filters to have pretty urls for this mod: http://custom.simplemachines.org/mods/index.php?mod=486 (View Single Category).
Thou you can call a single category e.g with index.php?c=1
this what I have so far:
The filter added in pretty-urls config area:
"cat": {
"description": "Rewrite Category URLs.",
"enabled": 1,
"filter": {
"priority": 70,
"callback": "pretty_categories_filter"
},
"rewrite": {
"priority": 80,
"rule": "RewriteRule ^cat/([^/]+)/?$ ./index.php?pretty;c=$1 [L,QSA]"
},
"title": "Categories"
}
the filter-function:
// Filter categories
function pretty_categories_filter($urls)
{
global $scripturl, $boardurl, $modSettings, $db_prefix;
$pattern = '~' . $scripturl . '(.*[?;&])c=([0-9]+)(.*)~S';
$query_data = array();
foreach ($urls as $url_id => $url)
{
// Get the profile data ready to query the database with
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
{
$urls[$url_id]['cat_id'] = (int) $matches[2];
$urls[$url_id]['match1'] = $matches[1];
$urls[$url_id]['match3'] = $matches[3];
$query_data[] = $urls[$url_id]['cat_id'];
}
}
// Query the database with these profile IDs
if (count($query_data) != 0)
{
$catNames = array();
$query = db_query("
SELECT ID_CAT, name
FROM {$db_prefix}categories
WHERE ID_CAT IN (" . implode(', ', $query_data) . ")", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($query))
$catNames[$row['ID_CAT']] = pretty_generate_url($row['name']);
mysql_free_result($query);
// Build the replacement URLs
foreach ($urls as $url_id => $url)
if (isset($url['cat_id']))
if (strpos($catNames[$url['cat_id']], '%2F') !== false)
$urls[$url_id]['replacement'] = $boardurl . '/cat/' .$url['match1'] . 'c=' . $catNames[$url['cat_id']] . $url['match3'];
else
$urls[$url_id]['replacement'] = $boardurl . '/cat/' . $catNames[$url['cat_id']] . '/' . $url['match1'] . $url['match3'];
}
return $urls;
}
if I activate the filter and run pretty url maintenance, the urls get rewritten.
But if I call the categories I always stay at forum-root page.
So can someone please tell me, werhe I have to do the reverse to get the category-id from the category-name?
Hello, I have a problem... Upon clicking additional options error gives me 404 because opens me with this route www.mysite.com/javascript:swapOptions (), I have noted it that passes me the same thing with the emails for example upon clicking an email leaves me www.mysite.com/
[email protected], knows the solution? Thanks.
I installed this mod and it wrecked my account. Had to uninstall it with my tail between my legs. What do I do? I have seen this:
QuoteTo 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.
but I don't know what where to find this example.htaccess or where to download the extension-non stuff.
Who can help out here?
Those instructions are very old. Go follow the first section of the trouble shooting page instead.
Quote from: Dannii on June 20, 2009, 11:04:35 PM
Okay there are too many problems with 1.0RC, so I recommend going back to 0.9.3.
For those of us who have the
right attitude, no effort required ;)
Some idea of my problem?
The right attitude is not to be running beta software when gold software is available instead.
sneijder23, go read what I posted above.
ok sorry...
install the version 0.9.3 and no longer I have that problem, the problem that have now is with them paginate external to smf that redirection to the forum for example
www.zonagente.com/videos/
So that be shown I have to put
www.zonagente.com/videos/index.php
I have the same problem with it he paginates of blogs and the chat
, thanks by your aid Dannii
Okay, so here are the changes needed to fix 1.0RC:
PrettyUrls-Filters.php:
if (strpos($match, '://') === false)
if (!preg_match('~^[a-zA-Z]+:|^#|@~', $match) && SMF != 'SSI')
if (strpos($cacheableurl, '://') === false)
if (!preg_match('~^[a-zA-Z]+:|@~', $cacheableurl) && !($cacheableurl == '' && isset($fragment[0])) && SMF != 'SSI')
QueryString.php, find and delete:
$buffer = str_replace('<head>', '<head><base href="' . $boardurl . '/" />', $buffer);
I've patched the 1.0RC package on the download pages.
Sorry everyone for the troubles this has caused!
I do not find that line in the file PrettyUrl-Filters.php, it but seemed is this
Quote
if (strpos($matches[2], '.') !== false)
They're only the changes for 1.0RC, not 0.9.3.
It can say changes for the 0.9.3 please?
0.9.3 didn't have the bugs I just fixed.
Thanks for the fix Danni!
It can tell me as to solve this problem that various users of the forums in Spanish we have and we cannot solve?
Quote
ok sorry...
install the version 0.9.3 and no longer I have that problem, the problem that have now is with them paginate external to smf that redirection to the forum for example
www.zonagente.com/videos/
So that be shown I have to put
www.zonagente.com/videos/index.php
I have the same problem with it he paginates of blogs and the chat
, thanks by your aid Dannii
Hi,
I have a problem:
Fatal error: Call to undefined function pretty_generate_url() in /webhosting/sosnito.sk/www/Sources/ManageBoards.php on line 818
Quote// Adding a URL?
if (isset($_REQUEST['add']) && $_REQUEST['add'] != '')
{
require_once($sourcedir . '/Subs-PrettyUrls.php');
$pretty_text = pretty_generate_url($_REQUEST['add']);
// Numerical or URLs the same as actions aren't allowed!
if (is_numeric($pretty_text) || in_array($pretty_text, $context['pretty']['action_array']))
{
Notice: Undefined index: pretty_action_array in /webhosting/sosnito.sk/www/index.php on line 87
Quote
// Unserialize the array of pretty board URLs
$context = array('pretty' => array(
'action_array' => unserialize($modSettings['pretty_action_array']),
'board_urls' => unserialize($modSettings['pretty_board_urls']),
'db_count' => 0,
));
// Clean the request variables, add slashes, etc.
cleanRequest();
I use SMF 1.1.9
Please help...
Quote from: sneijder23 on June 22, 2009, 03:11:11 AM
It can tell me as to solve this problem that various users of the forums in Spanish we have and we cannot solve?
Quote
ok sorry...
install the version 0.9.3 and no longer I have that problem, the problem that have now is with them paginate external to smf that redirection to the forum for example
www.zonagente.com/videos/
So that be shown I have to put
www.zonagente.com/videos/index.php
I have the same problem with it he paginates of blogs and the chat
, thanks by your aid Dannii
In 1.0RC, put this at the top of your .htaccess:
RewriteEngine on
RewriteRule ^videos/?$ ./videos/index.php [L,QSA]
Quote from: SosniTo.sk on June 22, 2009, 10:43:32 AM
Hi,
I have a problem:
Fatal error: Call to undefined function pretty_generate_url() in /webhosting/sosnito.sk/www/Sources/ManageBoards.php on line 818
Quote// Adding a URL?
if (isset($_REQUEST['add']) && $_REQUEST['add'] != '')
{
require_once($sourcedir . '/Subs-PrettyUrls.php');
$pretty_text = pretty_generate_url($_REQUEST['add']);
// Numerical or URLs the same as actions aren't allowed!
if (is_numeric($pretty_text) || in_array($pretty_text, $context['pretty']['action_array']))
{
Notice: Undefined index: pretty_action_array in /webhosting/sosnito.sk/www/index.php on line 87
Quote
// Unserialize the array of pretty board URLs
$context = array('pretty' => array(
'action_array' => unserialize($modSettings['pretty_action_array']),
'board_urls' => unserialize($modSettings['pretty_board_urls']),
'db_count' => 0,
));
// Clean the request variables, add slashes, etc.
cleanRequest();
I use SMF 1.1.9
Please help...
It musn't have been installed properly... Please go through the manual install instructions and check that all the changes were made, and that the uploaded files are complete.
Hello!
How to make it compatible with Pretty URLs Simple Image Upload (http://custom.simplemachines.org/mods/index.php?mod=1669) is because when I send an image I receive an error. :-[
QuoteNot Found
The requested URL /poubelle/addform.html was not found on this server.
Apache/1.3.33 Server at www.scooter-chinois-4t.com Port 80
Please write me the names of tables, which contain my database (the command for phpmyadmin) Thank you.
Quote from: Bruno36 on June 22, 2009, 11:23:25 AM
Hello!
How to make it compatible with Pretty URLs Simple Image Upload (http://custom.simplemachines.org/mods/index.php?mod=1669) is because when I send an image I receive an error. :-[
QuoteNot Found
The requested URL /poubelle/addform.html was not found on this server.
Apache/1.3.33 Server at www.scooter-chinois-4t.com Port 80
Which version of this mod are you using? Can you show me a page with this error?
Quote from: SosniTo.sk on June 22, 2009, 11:31:11 AM
Please write me the names of tables, which contain my database (the command for phpmyadmin) Thank you.
http://code.google.com/p/prettyurls/wiki/DatabaseChanges
Bonjour!
Simple Image Upload 1.1.0
http://custom.simplemachines.org/mods/index.php?mod=1669
Login: invite
Passe: 123456
http://www.scooter-chinois-4t.com/poubelle/?action=post
You should click on "Ajouter une image a mon message" and then download an image
The error occurs while downloading the image
Change this line in Themes/default/GenericControls.template.php:
<a href="javascript:void(0);" onclick="window.open(\'http://www.postimage.org/index.php?mode=smf&lang=english&forumurl=\' + escape(document.location.href), \'_imagehost\', \'resizable=yes,width=500,height=400\');return false;">Ajouter une image a mon message</a>
<a href="javascript:void(0);" onclick="window.open(\'http://www.postimage.org/index.php?mode=smf&lang=english&forumurl=' . $scripturl . '\', \'_imagehost\', \'resizable=yes,width=500,height=400\');return false;">Ajouter une image a mon message</a>
I've already repaired the database but still does not work.
When I click on the "Pretty URLs" shows:
Fatal error: Call to undefined function PrettyInterface() in /webhosting/sosnito.sk/www/Sources/Admin.php on line 134
Quote{
require_once($sourcedir . '/PrettyUrls.php');
return PrettyInterface();
}
PrettyUrls.php musn't have been installed properly. Upload the file from the package manually.
aaaaa cool :D :D :D
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/?PHPSESSID=4ef41548d27177426efa66570400b116
PHPSSID disable
is it possible?
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/
Quote from: Arkangel on June 22, 2009, 02:08:11 PM
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/?PHPSESSID=4ef41548d27177426efa66570400b116
PHPSSID disable
is it possible?
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/
Thats a core feature in SMF...
Quote from: _Anthony_ on June 22, 2009, 02:10:06 PM
Quote from: Arkangel on June 22, 2009, 02:08:11 PM
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/?PHPSESSID=4ef41548d27177426efa66570400b116
PHPSSID disable
is it possible?
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/
Thats a core feature in SMF...
This not smf feature. This is all php feature..
Quote from: Arkangel on June 22, 2009, 02:08:11 PM
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/?PHPSESSID=4ef41548d27177426efa66570400b116
PHPSSID disable
is it possible?
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/
You can dou it. Add in your main (root) httaccess
php_value session.use_trans_sid 0
php_value session.use_only_cookies 1
Quote from: [Daydreamer] on June 22, 2009, 02:12:14 PM
Quote from: _Anthony_ on June 22, 2009, 02:10:06 PM
Quote from: Arkangel on June 22, 2009, 02:08:11 PM
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/?PHPSESSID=4ef41548d27177426efa66570400b116
PHPSSID disable
is it possible?
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/
Thats a core feature in SMF...
This not smf feature. This is all php feature..
My bad, I've only seen it using SMF...
Quote from: [Daydreamer] on June 22, 2009, 02:12:14 PM
Quote from: _Anthony_ on June 22, 2009, 02:10:06 PM
Quote from: Arkangel on June 22, 2009, 02:08:11 PM
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/?PHPSESSID=4ef41548d27177426efa66570400b116
PHPSSID disable
is it possible?
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/
Thats a core feature in SMF...
This not smf feature. This is all php feature..
Quote from: Arkangel on June 22, 2009, 02:08:11 PM
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/?PHPSESSID=4ef41548d27177426efa66570400b116
PHPSSID disable
is it possible?
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/
You can dou it. Add in your main (root) httaccess
php_value session.use_trans_sid 0
php_value session.use_only_cookies 1
does not work :(
@Arkangel if this doesn't work, please ask your host for this. Or if you hhave access, edit your php.ini.
Quote from: _Anthony_ on June 22, 2009, 02:13:53 PM
Quote from: [Daydreamer] on June 22, 2009, 02:12:14 PM
Quote from: _Anthony_ on June 22, 2009, 02:10:06 PM
Quote from: Arkangel on June 22, 2009, 02:08:11 PM
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/?PHPSESSID=4ef41548d27177426efa66570400b116 (http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/?PHPSESSID=4ef41548d27177426efa66570400b116)
PHPSSID disable
is it possible?
http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/ (http://arkangeles.org/web/foro/mensajeria-telefonia-y-chats/bio-messenger-8-6/)
Thats a core feature in SMF...
This not smf feature. This is all php feature..
My bad, I've only seen it using SMF...
PHPSESSID = > php session id and this is added from php side. This session save user data and somethings from security. I know smf use different session system and you can remove your site. :)
Many thanks dannii I am solved the problem, you are the best!!! :D
Another consultation that have is like I can change the name of the accion of English to Spanish for example mysyte. com/help by mysite. com/ayuda
, thanks ;)
Only Glossary problem Left , <3 You Dannii
ok i cant find a .htaccess file in my forum!
New bug reprted
http://code.google.com/p/prettyurls/issues/detail?id=81&colspec=ID%20Modified%20Milestone%20Priority%20Status%20Summary
Quote from: bluesinjid on June 22, 2009, 05:01:22 PM
ok i cant find a .htaccess file in my forum!
You'll have to get your FTP program to show all hidden files.
Hello dannii, can be possible to do this?
Quote
Another consultation that have is like I can change the name of the accion of English to Spanish for example mysyte. com/help by mysite. com/ayuda
[/quoote]
,thanks...
Not really, no. It would require a lot of changes to the code.
Quote from: sneijder23 on June 22, 2009, 11:07:32 PM
Hello dannii, can be possible to do this?
Quote
Another consultation that have is like I can change the name of the accion of English to Spanish for example mysyte. com/help by mysite. com/ayuda
[/quoote]
,thanks...
just make the board name in spanish
Quote from: _Anthony_ on June 23, 2009, 12:05:06 AM
Quote from: sneijder23 on June 22, 2009, 11:07:32 PM
Hello dannii, can be possible to do this?
Quote
Another consultation that have is like I can change the name of the accion of English to Spanish for example mysyte. com/help by mysite. com/ayuda
[/quoote]
,thanks...
just make the board name in spanish
I think they are talking about the help page.
Oh boy.
This MOD rewrote my entire .htaccess... That's a big problem when you trust it enough to don't make any backups.
I have this errors on my error log.
.../index.php?action=mgallery;sa=item;id=934;
Database Error: Illegal mix of collations for operation ' IN '
File: /Sources/PrettyUrls-Filters.php
Line: 55
This error repeated in different sections..
index.php?pretty;board=konu-disi;topic=bu-siteye-erisim-kendi-karariyla-engellenmistir!.0
Database Error: Illegal mix of collations for operation ' IN '
File: /Sources/PrettyUrls-Filters.php
Line: 55
index.php?pretty;action=downloads&sa=view;down=12
Database Error: Illegal mix of collations for operation ' IN '
File: /Sources/PrettyUrls-Filters.php
Line: 55
52: SELECT url_id, replacement
53: FROM {db_prefix}pretty_urls_cache
54: WHERE url_id IN ({array_string:urls})',
==>55: array('urls' => $urls_query));
56: while ($row = $smcFunc['db_fetch_assoc']($query))
I use 1.0 RC.
Quote from: Dannii on June 22, 2009, 01:02:34 PM
Change this line in Themes/default/GenericControls.template.php:
<a href="javascript:void(0);" onclick="window.open(\'http://www.postimage.org/index.php?mode=smf&lang=english&forumurl=\' + escape(document.location.href), \'_imagehost\', \'resizable=yes,width=500,height=400\');return false;">Ajouter une image a mon message</a>
<a href="javascript:void(0);" onclick="window.open(\'http://www.postimage.org/index.php?mode=smf&lang=english&forumurl=' . $scripturl . '\', \'_imagehost\', \'resizable=yes,width=500,height=400\');return false;">Ajouter une image a mon message</a>
Thank you very much Dannii, the Simple Image Upload mod now works. :D
You are a super team encoder
So dannii are a majority of the glitches with 1.0 rc fixed now?
Quote from: Sakae on June 23, 2009, 12:51:34 AM
Oh boy.
This MOD rewrote my entire .htaccess... That's a big problem when you trust it enough to don't make any backups.
It does make backups... check .htaccess.backup.
Quote from: [Daydreamer] on June 23, 2009, 02:39:20 AM
I have this errors on my error log.
.../index.php?action=mgallery;sa=item;id=934;
Database Error: Illegal mix of collations for operation ' IN '
File: /Sources/PrettyUrls-Filters.php
Line: 55
This error repeated in different sections..
index.php?pretty;board=konu-disi;topic=bu-siteye-erisim-kendi-karariyla-engellenmistir!.0
Database Error: Illegal mix of collations for operation ' IN '
File: /Sources/PrettyUrls-Filters.php
Line: 55
index.php?pretty;action=downloads&sa=view;down=12
Database Error: Illegal mix of collations for operation ' IN '
File: /Sources/PrettyUrls-Filters.php
Line: 55
52: SELECT url_id, replacement
53: FROM {db_prefix}pretty_urls_cache
54: WHERE url_id IN ({array_string:urls})',
==>55: array('urls' => $urls_query));
56: while ($row = $smcFunc['db_fetch_assoc']($query))
I use 1.0 RC.
What encoding is your pretty_url_cache?
Quote from: _Anthony_ on June 23, 2009, 04:20:51 AM
So dannii are a majority of the glitches with 1.0 rc fixed now?
They appear to be yes.
Quote from: Dannii on June 23, 2009, 12:16:51 PM
What encoding is your pretty_url_cache?
latin1_swedish_ci
Problem is this ?
Because my site encoding utf8
Yeah try converting it to utf8. Might work..
Hello!
I install the mod Glossary
http://custom.simplemachines.org/mods/index.php?mod=1525
In the menu bar of the forum, when I click on "Glossary" then click "add a new word,"
The small window that opens and closes immediately
Normally I should have a small window in javascript to add a word.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg37.imageshack.us%2Fimg37%2F9392%2F57465796.th.jpg&hash=b8342801226b76dc026b70fda0eeb5149f9d7238) (http://www.postimage.org/image.php?v=Pq1wE0j9)
Normally I should have a small window in javascript to add a word.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg39.imageshack.us%2Fimg39%2F7761%2F93747860.jpg&hash=33d53908beaed2aa924023f599aa2b2277c94428) (http://www.postimage.org/)
login: invite
passe: 123456
http://www.scooter-chinois-4t.com/index.php?action=glossary
not sure if this has been answered in this really long thread already, but I am wondering if this mod really does any help for SEO, or is it not worth the trouble if SEO benefits are one's only goal?
I am debating on installing it but if it isn't going to make any difference in SEO then I will probably not go to the trouble..... any comments about this please? or any other recommendations?
the only issue i have with this mod is that it rewrote everything onmy .htaccess file.
now all the sites on my domain points to the root forum directory.
how do i fix that?
Quote from: bostonb on June 23, 2009, 11:01:32 PMI am debating on installing it but if it isn't going to make any difference in SEO then I will probably not go to the trouble..... any comments about this please? or any other recommendations?
I consider it one of the most important improvements to SEO you can make beyond what is possible at theme level.
The other thing which would be very beneficial SEO wise would be ping/track backs, but I haven't found a way to do that with SMF yet. The only softwares I've found which are capable of doing that are vBulletin (with a paid Mod) or bbPress which can do it straight out of the box.
Quote from: Akpaka on June 24, 2009, 04:38:09 AM
the only issue i have with this mod is that it rewrote everything onmy .htaccess file.
now all the sites on my domain points to the root forum directory.
how do i fix that?
Install 1.0 RC
Quote from: Bruno36 on June 23, 2009, 01:42:50 PM
Hello!
I install the mod Glossary
http://custom.simplemachines.org/mods/index.php?mod=1525
I suspect the mod is using relative URLs, or checking against $scripturl. Ask the mod author for help.
Quote from: bostonb on June 23, 2009, 11:01:32 PM
not sure if this has been answered in this really long thread already, but I am wondering if this mod really does any help for SEO, or is it not worth the trouble if SEO benefits are one's only goal?
I am debating on installing it but if it isn't going to make any difference in SEO then I will probably not go to the trouble..... any comments about this please? or any other recommendations?
If people post links to your forums without giving them a proper text, ie, http://forum.com/board/topic/ it will probably help. The best thing for SEO is to use a good theme and good content. And have backlinks. There's no easy trick.
Quote from: Akpaka on June 24, 2009, 04:38:09 AM
the only issue i have with this mod is that it rewrote everything onmy .htaccess file.
now all the sites on my domain points to the root forum directory.
how do i fix that?
It will have made a backup. 1.0RC will also not overwrite anything outside its section.
Unfortunately the creator of the mod does not respond to my question, and I want to keep the mod pretty url that I find super cool
QuoteIt will have made a backup. 1.0RC will also not overwrite anything outside its section
the pretty url rewrote every thing.
eve the .htacces backup has the same codes with the main .htacess file.
i dont know what to do about that
so after uninstalling the mod, i cant go the other sites on my domain too..
someone need to tell me what to do here.
my whole .htaccess was rewritten. and no backup made by this mod.
Quote from: Akpaka on June 24, 2009, 06:11:12 PM
QuoteIt will have made a backup. 1.0RC will also not overwrite anything outside its section
the pretty url rewrote every thing.
eve the .htacces backup has the same codes with the main .htacess file.
i dont know what to do about that
Then you must have run it twice. And if you don't have your own backup... well I guess you'll have to write it out again by hand?
Quote from: Akpaka on June 24, 2009, 07:57:12 PM
my whole .htaccess was rewritten. and no backup made by this mod.
Upload one of your own backups then. If you haven't done that then you are pretty much screwed. I always recommend backing everything up before install unknown software, who knows what the heck it is going to do to your site.
topic answer error:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2F34pased.gif&hash=bb724f1a0f552e7bcd54cafb6c6b632e48d1ea26)
do not display images in response topic .. even when I quote
I installed this and everything said it installed fine, however when it redirects me after install it tells me "install_template could not be loaded" And I see no admin options for it. How can this be fixed? I'm running SMF 1.1.9
Quote from: Dannii on June 24, 2009, 10:41:11 PM
Quote from: Akpaka on June 24, 2009, 06:11:12 PM
QuoteIt will have made a backup. 1.0RC will also not overwrite anything outside its section
the pretty url rewrote every thing.
eve the .htacces backup has the same codes with the main .htacess file.
i dont know what to do about that
Then you must have run it twice. And if you don't have your own backup... well I guess you'll have to write it out again by hand?
Ok Danni, i guess the option left now is to write the file out by hand again.
Do i have to include the codes added by the pretty url mod?
2 - the original codes inside the .htaccess file was about 3 lines of short codes. though i dont remember it but it was something like "allow/deny and some strings like / or \"
i will b happy if someone write that out for me or do you know if my host can recall that?
Quote from: Bruno36 on June 24, 2009, 10:28:18 AM
Unfortunately the creator of the mod does not respond to my question, and I want to keep the mod pretty url that I find super cool
Hi,
I received a PM asking for more information about recommended SEO features in themes which I mentioned above. Since it was related to this topic I'll post it here.
Theme SEO is just like any other onsite SEO methods, correct use of headings, semantic tags etc. A good example of how to code semantic themes can be seen any of Eren/Forsakenlad's themes which are the best coded SMF themes available (that I'm aware of). Most SMF themes have appalling on site SEO and would take very little to improve. They almost always feature a massive over abundance of tags, abuse of tables, headings etc.
Other important things to consider are title tags and possibly using noindex on pages which you don't need indexed by search engines (registration, profile, search pages etc.). If you don't want to noindex some pages then you could use the nofollow attribute to stop the main parts of your site form passing page rank to them.
Beyond that the sky is the limit on SEO. There are many resources out there on the subject and it isn't possible to explain all of it in a single forum post. A good source of information/discussion on the topic is on the SitePoint forums ... http://sitepoint.com/
1.) I have the a WordPress blog installed in the subfolder 'blog.'
2.) I have the SMF version 1.1.9 installed in the subfolder 'forum.'
3.) Wordpress is working fine as far as redirect to non-www, traling slash and stripping index.php are concerned with htaccess code.
4.) I have pretryurl working for forum.
The url for blog is http://example.com/article-name/
The url for forum is http://example.com/forum/board-name/article-name/
Now my problems:
1.) What htaccess code needs to be added for the forum to be redirected to non-www url (either in the root htaccess code or in the subfolder)?
2.) What htaccess code needs to be added for the forum to add a trailing slash in the browser if it's missing (in the root htaccess code or in the subfolder htaccess code)?
3.) What htaccess code needs to be added for the forum to strip the index.php from url?
thanks for the nice reply, Ryan
how do the default themes do for SEO? if they fail at it, is there a guide anywhere to some quick modifications that would fix the default or classic themes?
Quote from: Arkangel on June 25, 2009, 03:17:21 AM
topic answer error:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2F34pased.gif&hash=bb724f1a0f552e7bcd54cafb6c6b632e48d1ea26)
do not display images in response topic .. even when I quote
Please give me a URL for this page.
Quote from: ScopeXL on June 25, 2009, 03:21:45 AM
Ok Danni, i guess the option left now is to write the file out by hand again.
Do i have to include the codes added by the pretty url mod?
2 - the original codes inside the .htaccess file was about 3 lines of short codes. though i dont remember it but it was something like "allow/deny and some strings like / or \"
i will b happy if someone write that out for me or do you know if my host can recall that?
It's possibly your host might have a backup, they often do weekly offsite backups. Won't hurt to ask. Put it before this mod's section and it won't be overwritten anymore.
Sorry for this. I think I will change the mod so that it backs up the pre install .htaccess differently from when it backs up its own changes.
Bruno36, well that's unfortunate. You could either try figuring out how the mod works yourself, or ask someone else too. I don't really have enough time to fix other broken mods.
ryanhellyer, good post. I also endorse Eren's themes.
Quote from: Rajasekharan on June 25, 2009, 08:56:05 AM
1.) I have the a WordPress blog installed in the subfolder 'blog.'
2.) I have the SMF version 1.1.9 installed in the subfolder 'forum.'
3.) Wordpress is working fine as far as redirect to non-www, traling slash and stripping index.php are concerned with htaccess code.
4.) I have pretryurl working for forum.
The url for blog is http://example.com/article-name/
The url for forum is http://example.com/forum/board-name/article-name/
Now my problems:
1.) What htaccess code needs to be added for the forum to be redirected to non-www url (either in the root htaccess code or in the subfolder)?
2.) What htaccess code needs to be added for the forum to add a trailing slash in the browser if it's missing (in the root htaccess code or in the subfolder htaccess code)?
3.) What htaccess code needs to be added for the forum to strip the index.php from url?
I don't know, and I kind of feel like saying just figure it out yourself!
But for 1, it's probably the same as for wordpress. As for 2 and 3, they don't matter. Who cares? You shouldn't.
bostonb, they fail completely. The new theme in RC2 will most likely also suck a lot. You can't fix it, you need to start from scratch (which is why the new default will also suck.) I suggest using and modifying one of Eren's themes.
Quote from: ScopeXL on June 25, 2009, 03:21:45 AM
I installed this and everything said it installed fine, however when it redirects me after install it tells me "install_template could not be loaded" And I see no admin options for it. How can this be fixed? I'm running SMF 1.1.9
Hey Dannii I see you quoted me, or attempted too it looked like in your previous message. Still looking for options to solve this. I have 0.9.3 working on it and attempted to revert back and now it won't install properly, and since 0.9.3 has no maual instructions from SMF anymore, I'm sort of stuck not using this mod which I greatly need. Any help would be fantastic.
Thank you Dannii for the prompt reply.
The htaccess code by WordPress for www or non-www redirect works only for the urls generated by WordPress where as the forum can be accessed by with www and without www.
Moreover, the search engines care problems 2 and 3. My forum can be accessed with example.com/forum/ and example.com/forum/index.php. Same is the case with and without trailing slash. All leading to duplicate contents.
Any workout or options possible in the future releases of PrettyURLs?
Quote from: ScopeXL on June 25, 2009, 09:52:11 PM
Quote from: ScopeXL on June 25, 2009, 03:21:45 AM
I installed this and everything said it installed fine, however when it redirects me after install it tells me "install_template could not be loaded" And I see no admin options for it. How can this be fixed? I'm running SMF 1.1.9
Hey Dannii I see you quoted me, or attempted too it looked like in your previous message. Still looking for options to solve this. I have 0.9.3 working on it and attempted to revert back and now it won't install properly, and since 0.9.3 has no maual instructions from SMF anymore, I'm sort of stuck not using this mod which I greatly need. Any help would be fantastic.
You can get 0.9.3 at the google code site. If you open the archive you can then see the xml files themselves, and follow their instructions. Or... upload the 0.9.3 package to the package parser.
Quote from: Rajasekharan on June 25, 2009, 11:56:30 PM
Thank you Dannii for the prompt reply.
The htaccess code by WordPress for www or non-www redirect works only for the urls generated by WordPress where as the forum can be accessed by with www and without www.
Moreover, the search engines care problems 2 and 3. My forum can be accessed with example.com/forum/ and example.com/forum/index.php. Same is the case with and without trailing slash. All leading to duplicate contents.
Any workout or options possible in the future releases of PrettyURLs?
Maybe your best option would be to backport/make your own canonical support from SMF RC2. Or just wait for it to be released, hopefully won't be too long.
Hello,
I use pretty url on my forum, it works well (I just had to add the RewriteBase "/" line).
But now I would like one more address to be rename:
mydomain.com/index.php?action=forum
should be:
mydomain.com/forum/
So I have added the word forum in the following line of .htaccess:
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|forum|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
But it doesn't seem to be enough.
Any idea?
Quote from: bostonb on June 25, 2009, 06:32:54 PM
thanks for the nice reply, Ryan
No problem.
Quote from: bostonb on June 25, 2009, 06:32:54 PMhow do the default themes do for SEO?
They couldn't be much worse if they tried. I'm not going to comment on Curve though as it isn't finished yet.
Quote from: bostonb on June 25, 2009, 06:32:54 PM
if they fail at it, is there a guide anywhere to some quick modifications that would fix the default or classic themes?
Quick modifications? No, that is not possible. I suggest recoding a theme from scratch, that's what I did (see my signature for the link). Coding a full SMF theme is one hell of a task though and not something to be taken lightly. There's a lot of code in there which needs written and need to know a lot about HTML/CSS to do it. It's much easier to take one of Eren's themes and rejig it a bit to look how you want. Unfortunately Eren is not developing SMF themes anymore :(
In a nutshell, SMF is not that good for SEO unless you want to spend a lot of time coding a theme from scratch (or rejigging one of Eren's), installing MOD's like Danni's and generally spending a lot of time developing your forum. bbPress has far superior SEO features straight out of the box than any other forum software available ... unfortunately it has almost no extra features so you need to spend a ridiculous amount of time adding extra stuff that SMF has built in. I'm working on a new project for bbPress which may fix a lot of these problems, but in the mean time I'm happy plodding along using SMF with a scratch built theme. It seems to be the best solution for me at this time.
Ok I solved these problems. Here are the solutions:
Problem 1. Added the following code to htaccess file in the subfolder 'forum.'
# Rewrite rule for redirecting www to non.www
RewriteEngine On
RewriteCond %{HTTP_HOST}//s%{HTTPS} ^www\.(.*)//((s)on|s.*)$ [NC]
RewriteRule ^ http%3://%1%{REQUEST_URI} [L,R=301]
Problem 2. Added the following code to htaccess file in the subfolder 'forum.'
# Rewrite rule for adding a trailing slash
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1/ [L,R=301]
Problem 3. Opened the index.template.php of the theme and made alterations in the link there for the home button.
<a' , $current_action=='home' ? ' class="current"' : '' , ' href="http://example.com/forum/"><span>Home</span></a> |';
However, still index.php exists in link tree! Don't know how to fix that. Hope I could google it out.
Dannii just another question to you:
PrettyURL is not returning a 404 error page for absurd URLs. Do you suggest any fix for this?
Im about to cut myself...
i just installed this mod and then I activate it from the control panel next thing I see is nothing... all mi board its plain white, i was usung 1.1.9
if i check the source code on index it only shows this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
<BODY></BODY></HTML>
Theres no action i can do, its all white... i dont know whats happening or if theres any way to fix it, please can someone help!!!! :'( :'( :'( :'(
when editing the title does not change the url to resolve this?
@trashgeek: I had this happen to me as well, go through the package parser and remove all pretty url code and put back to SMF code, it will fix your issue.
@Dannii: I managed to get 1.0RC installed, but no admin option comes up in my admin area. The screenshot below shows you where I think Pretty URLs is supposed to be. Also, when I try to manage my boards the screen goes white. Maybe this has something to do with the thing I get saying "install_template could not be loaded" when the package first installs? Let me know.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bnetweb.org%2Fimages%2Fscreenshots%2Fpretty-admin.jpg&hash=4a084633a7534d3eac517b908b62cd9f0b66203c)
Quote from: Rajasekharan on June 26, 2009, 11:35:07 AM
Dannii just another question to you:
PrettyURL is not returning a 404 error page for absurd URLs. Do you suggest any fix for this?
It assumes that anything like that is a board that doesn't exist. So change the code to have 404s when you access a board that doesn't exist.
Quote from: trashgeek on June 26, 2009, 12:28:45 PM
Im about to cut myself...
i just installed this mod and then I activate it from the control panel next thing I see is nothing... all mi board its plain white, i was usung 1.1.9
if i check the source code on index it only shows this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
<BODY></BODY></HTML>
Theres no action i can do, its all white... i dont know whats happening or if theres any way to fix it, please can someone help!!!! :'( :'( :'( :'(
Follow the first section of the trouble shooting page! Did the test page work?
Quote from: Arkangel on June 26, 2009, 02:05:33 PM
when editing the title does not change the url to resolve this?
Edit the rows in pretty_topic_urls and empty the cache.
Quote from: ScopeXL on June 26, 2009, 03:48:21 PM
@trashgeek: I had this happen to me as well, go through the package parser and remove all pretty url code and put back to SMF code, it will fix your issue.
@Dannii: I managed to get 1.0RC installed, but no admin option comes up in my admin area. The screenshot below shows you where I think Pretty URLs is supposed to be. Also, when I try to manage my boards the screen goes white. Maybe this has something to do with the thing I get saying "install_template could not be loaded" when the package first installs? Let me know.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bnetweb.org%2Fimages%2Fscreenshots%2Fpretty-admin.jpg&hash=4a084633a7534d3eac517b908b62cd9f0b66203c)
The files haven't been installed and copied correctly then.
I installed the MOD, It is working perfectly :D
But during Installation of this mod it shows error in ./Sources/News.php I tried to edit it manually, but I was unable..., because I am not a programmer Please do the needful and edit my attached News.php file, then I'll upload/replace the original file.
waiting early and positive response from all experts.
Thanks & Regards!
QuoteSo change the code to have 404s when you access a board that doesn't exist.
Dannii, kindly let me know how to change the code to have a 404.
I installed it and it gives error for querystrig but I installed it. Now I am getting this error in my admin panel
"Apply Filter: Only show the errors with the same message
8: Undefined index: query_string
File: /home/electric/public_html/urdufans.com/Sources/Display.php
Line: 81"
while prettyurl is working very well for profiles (I want it only for profiles).
What can I do to solve this error? When I tried to uninstall it, it gives the same error of querystrig. :'( :'( :'( :'( :'(
Quote from: qayyom on June 27, 2009, 02:14:16 AM
I installed the MOD, It is working perfectly :D
But during Installation of this mod it shows error in ./Sources/News.php I tried to edit it manually, but I was unable..., because I am not a programmer Please do the needful and edit my attached News.php file, then I'll upload/replace the original file.
waiting early and positive response from all experts.
Thanks & Regards!
It's really quite easy. Go to the manual install instructions on the mod page. Just search and replace. If you can't do it I'll look at it next week.
Quote from: Rajasekharan on June 27, 2009, 05:38:56 AM
QuoteSo change the code to have 404s when you access a board that doesn't exist.
Dannii, kindly let me know how to change the code to have a 404.
I don't really know, you'll have to find it. Check in Load.php and MessageIndex.php.
Quote from: HDsoza on June 27, 2009, 06:41:18 AM
I installed it and it gives error for querystrig but I installed it. Now I am getting this error in my admin panel
"Apply Filter: Only show the errors with the same message
8: Undefined index: query_string
File: /home/electric/public_html/urdufans.com/Sources/Display.php
Line: 81"
while prettyurl is working very well for profiles (I want it only for profiles).
What can I do to solve this error? When I tried to uninstall it, it gives the same error of querystrig. :'( :'( :'( :'( :'(
1.0RC doesn't have these errors, so upgrade if you haven't yet.
Ok, I have manually installe Pretty URLs 1.0RC and it installed great. One thing it did not do is put a link in my admin area to for the administrative options. What is the code in the install package to get that specific area? I know for a fact all files have the correct Pretty URLs modifications, and it looks like it just adds a <br /> to my Configuration menu in the admin area where the admin links should be. Any insights?
so, is there someone who can help me to get pretty urls for category view mod:
http://www.simplemachines.org/community/index.php?topic=146969.msg2120760#msg2120760
???
Quote from: ScopeXL on June 27, 2009, 11:28:11 AM
Ok, I have manually installe Pretty URLs 1.0RC and it installed great. One thing it did not do is put a link in my admin area to for the administrative options. What is the code in the install package to get that specific area? I know for a fact all files have the correct Pretty URLs modifications, and it looks like it just adds a <br /> to my Configuration menu in the admin area where the admin links should be. Any insights?
The latest 1.0RC package should ensure the admin menu option will always be there. Which version of SMF do you have? Check Sources.xml for the changes.
fca07, does the view single category let you use category names, or only category numbers? You'll probably have to change that code a lot if it only lets you use numbers.
Quote from: Dannii on June 27, 2009, 11:00:31 PM
The latest 1.0RC package should ensure the admin menu option will always be there. Which version of SMF do you have? Check Sources.xml for the changes.
I use SMF 1.1.9 and all the edits seem to be there. I'm assuming its the Admin.php edits, but all edits are there.
can you put back 0.93, it seems to be the a steady version and compatible with AjaxChat
ScopeXL, in 1.1.9 I think the edits are in Subs.php.
You can always get 0.9.3 from the google code site...
mod:
http://mods.simplemachines.org/index.php?mod=579
it is possible to change
http://arkangeles.org/web/foro/tags/?tagid=1267
change
http://arkangeles.org/web/foro/tags/sinbd
is it possible?
Yes, but not too easily. You'll need to change the tag mod's actual database queries, so that it can check for strings as well as numbes. And you'll have to make sure it won't be hackable either.
Quote from: Dannii on June 28, 2009, 01:33:11 AM
Yes, but not too easily. You'll need to change the tag mod's actual database queries, so that it can check for strings as well as numbes. And you'll have to make sure it won't be hackable either.
could you tell? please
i got the original codes on my .htaccess file from my host
"<Limit GET POST>
order deny,allow
allow from all"
now after adding it on the .htaccess file . i still couldnt access other sites on my root directory
Quote from: Arkangel on June 28, 2009, 01:39:25 AM
could you tell? please
No, I haven't ever used the tags mod.
However, I may look at it more if there is enough interest. I'll now use the issue tracker for new filter requests. Please star this one if you're interested: http://code.google.com/p/prettyurls/issues/detail?id=84
Quote from: Akpaka on June 28, 2009, 07:31:42 AM
i got the original codes on my .htaccess file from my host
"<Limit GET POST>
order deny,allow
allow from all"
now after adding it on the .htaccess file . i still couldnt access other sites on my root directory
That looks pretty useless. Anyways, please post links to the broken pages.
Quote from: Dannii on June 28, 2009, 07:48:20 AM
Quote from: Akpaka on June 28, 2009, 07:31:42 AM
i got the original codes on my .htaccess file from my host
"<Limit GET POST>
order deny,allow
allow from all"
now after adding it on the .htaccess file . i still couldnt access other sites on my root directory
That looks pretty useless. Anyways, please post links to the broken pages.
one of my sites on wordpress is www.afrowall.com/sammilla
clicking on the link takes me back to www.afrowall.com and it started after adding the pretty url mod.
I can attach any file u need here if that would help
What are the URLs like before pretty URLs is enabled?
Quote from: Dannii on June 28, 2009, 08:34:29 AM
What are the URLs like before pretty URLs is enabled?
Good...
The urls was
www.afrowall.com/sammilla
www.afrowall.com/seo
www.afrowall.com/blogs
Three of tehm are on wordpress not part of teh forum.
now when you click on those links , they point you to the smf forum
They dont go to the worpress sites at all
Can you disable the mod temporarily so I can see it, and delete .htaccess.
Thats the problem , i have disabled the mod before and it still points to the same place..
unless i remove the added codes on .htaccess file. thats when u will be able to see the sites..
i am goin to remove the codes on .htaccess files now, but of course the pretty urls dont work if i remove the codes on .htaccess file.
maybe u got what i mean..check the links in a minute...
Ok, i have removed the pretty codes on my .htaccess file and the links can be seen now. www.afrowall.com/sammilla
but as soon as i ad the pretty codes on the .htaccess file, it will be redirecting me to the forum
Ahok. Well, it looks like you won't be able to have your blogs working unless you disable the boards filter. Possibly the topics filter too.
so what do you suggest, that i should uncheck the boards and topics filters ?
or are they any kid of custom edits that would allow the blogs to be seen.
EDITED
OK thanks Dannii
I have narrowed it down to disabling only boards.{i can see the blogs with TOPICS enabled. I guess i can live with that if nothing can be done cos i love the mod}
Thanks for your fast responses to the problem.
How many blogs do you have?
Quote from: Dannii on June 28, 2009, 09:12:31 AM
How many blogs do you have?
Three of them..but i am planning to delete one.
so we can safely assume i have only 2 blogs
www.afrowall.com/sammilla
www.afrowall.com/seo
If you add this to the top of your .htaccess it might work:
RewriteEngine on
RewriteRule ^sammilla/?$ ./sammilla/index.php [L,QSA]
RewriteRule ^seo/?$ ./seo/index.php [L,QSA]
ok cool..that puts u on my list of genius
well done
I have this errors (and there are a lot of them) on my error log:
8: Undefined variable: scripturl
Fişier: /home/fabulous/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Linie: 420
8: Undefined variable: scripturl
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/Display.template.php (main sub template - eval?)
Linie: 420
8: Undefined variable: scripturl
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/BoardIndex.template.php (main sub template - eval?)
Linie: 420
8: Undefined variable: scripturl
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/BoardIndex.template.php (main sub template - eval?)
Linie: 413
8: Undefined index: url
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/BoardIndex.template.php (main sub template - eval?)
Linie: 215
8: Undefined variable: scripturl
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/Display.template.php (main sub template - eval?)
Linie: 413
Are they Pretty url related? If so, can you help me fix it?
I only have Pretty url installed, and I use "vogue theme"
Thank you very much.
Quote from: Dannii on June 28, 2009, 07:48:20 AM
Quote from: Arkangel on June 28, 2009, 01:39:25 AM
could you tell? please
No, I haven't ever used the tags mod.
However, I may look at it more if there is enough interest. I'll now use the issue tracker for new filter requests. Please star this one if you're interested: http://code.google.com/p/prettyurls/issues/detail?id=84
thanks...
Arkangel please read my post in googlecode. =)
Quote from: [Daydreamer] on June 28, 2009, 06:01:37 PM
Arkangeles, yeah this is possible but if i make this url seems like this
foro/tags/?tagid=1252
should be
/foro/tags/especial/1252/
Are you agree this ?
is perfect ...
Quote from: selket on June 28, 2009, 05:55:07 PM
I have this errors (and there are a lot of them) on my error log:
8: Undefined variable: scripturl
Fişier: /home/fabulous/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Linie: 420
8: Undefined variable: scripturl
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/Display.template.php (main sub template - eval?)
Linie: 420
8: Undefined variable: scripturl
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/BoardIndex.template.php (main sub template - eval?)
Linie: 420
8: Undefined variable: scripturl
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/BoardIndex.template.php (main sub template - eval?)
Linie: 413
8: Undefined index: url
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/BoardIndex.template.php (main sub template - eval?)
Linie: 215
8: Undefined variable: scripturl
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/Display.template.php (main sub template - eval?)
Linie: 413
Are they Pretty url related? If so, can you help me fix it?
I only have Pretty url installed, and I use "vogue theme"
Thank you very much.
Try to disable "eval? errors" and see in what file your error really is...
How to Enable / Disable eval() (http://www.simplemachines.org/community/index.php?topic=290186.0)
Please do something for my Pending Issue
Quote from: qayyom on June 27, 2009, 02:14:16 AM
I installed the MOD, It is working perfectly :D
But during Installation of this mod it shows error in ./Sources/News.php I tried to edit it manually, but I was unable..., because I am not a programmer Please do the needful and edit my attached News.php file, then I'll upload/replace the original file.
waiting early and positive response from all experts.
Thanks & Regards!
Anybody has got any idea to solve my problem below?
I use pretty url on my forum, it works well (I just had to add the RewriteBase "/" line).
But now I would like one more address to be rename:
mydomain.com/index.php?action=forum
should be:
mydomain.com/forum/
So I have added the word forum in the following line of .htaccess:
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|forum|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
But it doesn't seem to be enough, the address is not redirected.
selket, almost certainly is unrelated to this mod. It doesn't matter what theme you use.
qayyom, I already replied to you. You don't need to be a programmer to search and replace some text. If you can't manage, please ask in the Help Wanted board. And besides, those changes are pretty unimportant anyway! I think they're just for rewriting the feeds.
mic_comte, try running maintenance. If that's not enough, add 'forum' to the big array in index.php, and then run maintenance.
Problem fixed, running maintenance works fine,
thank you.
cant find 0.93 it shows the 1.0RC1 one. Can you give me direct link to 0.93??
how to do for SMF Media Gallery 1.5.6 ??
Quote from: bluesinjid on June 29, 2009, 04:11:29 PM
cant find 0.93 it shows the 1.0RC1 one. Can you give me direct link to 0.93??
http://prettyurls.googlecode.com/files/prettyurls-0-9-3b.tar.gz
Quote from: ZeUsSaN on June 29, 2009, 07:02:55 PM
how to do for SMF Media Gallery 1.5.6 ??
What?
What is the current recommended version? 0.93 or 1.0RC??
Quote from: Saleem on June 30, 2009, 09:39:32 PM
What is the current recommended version? 0.93 or 1.0RC??
obviously :
Pretty URLs 1.0RC
Quote from: Saleem on June 11, 2009, 07:40:12 PM
Confirmed with my host that mod_rewrite and per-directory .htaccess are supported.
My 0.93 installation went South hence my hesitance to even try 1.0rc... it's very enticing though. Dannii any idea how make my forum work, the last question was if my host supports these; they do.
1.0RC will help with a lot of things, like automatically detecting whether a RewriteBase rule is required. It's worth trying.
please help to adjust filters for SMF Media Gallery (SMG) - 1.5.6 (http://www.simplemachines.org/community/index.php?topic=260821.3360)
Hi there,
I just tried to install 1.0RC onto my newly built SMF 2.0 RC1-1 forum, but I get some errors as below. I have 0.9.3 running fine on my other SMF 1.9 forum
Error in Package Installation
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.
Installing this package will perform the following actions: Type Action Description
1. Execute Modification SMF2-0/Sources.xml Modification parse error
2. Execute Modification SMF2-0/Sources.xml Modification parse error
3. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
4. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
5. Execute Modification SMF2-0/Themes.xml Modification parse error
6. Execute Modification SMF2-0/Themes.xml Modification parse error
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
1. Add Before ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
9. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
Quote from: gregh on July 01, 2009, 06:27:33 AM
Hi there,
I just tried to install 1.0RC onto my newly built SMF 2.0 RC1-1 forum, but I get some errors as below. I have 0.9.3 running fine on my other SMF 1.9 forum
Error in Package Installation
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.
Installing this package will perform the following actions: Type Action Description
1. Execute Modification SMF2-0/Sources.xml Modification parse error
2. Execute Modification SMF2-0/Sources.xml Modification parse error
3. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
4. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
5. Execute Modification SMF2-0/Themes.xml Modification parse error
6. Execute Modification SMF2-0/Themes.xml Modification parse error
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
1. Add Before ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
9. Execute Modification ./Themes/default/languages/Modifications.french.php Skipping file
Same here, please help.
Try making a temp folder in the packages directory, and extract the package files into it.
I used a combination of pretty urls mod in my smf 1.1.9 + joomla 1.5.11 wiki site and it works awesome. Thumbs up for the mod creator.
hi all
Is there an installation what to do next after I install?
Under SETTINGS there is :
Core settings
Enable URL rewriting
Should i tick this?
Hi all. How about russian symbols in topics? Where can I modify or change translate? Very sorry for my english...
Quote from: Dannii on July 01, 2009, 09:49:32 AM
Try making a temp folder in the packages directory, and extract the package files into it.
Hi there, I have done this which got me past the initial test. However when I click Install Now it takes me to the following webpage, but nothing is displayed and nothing is installed!
http://forum.smartphonesoft.com/index.php?action=admin;area=packages;sa=install2;package=prettyurls-1-0RCb.tar.gz;pid=0
Any ideas?
Cheers,
Greg
It took that it was the powerful web.The installation was takes to the following webpage.
_________________
Refrigerator filter (http://www.filter-outlet.com)
Quote from: deluxmall on July 02, 2009, 05:02:43 AM
hi all
Is there an installation what to do next after I install?
Under SETTINGS there is :
Core settings
Enable URL rewriting
Should i tick this?
Yes.
Quote from: impulse2000 on July 02, 2009, 06:29:03 AM
Hi all. How about russian symbols in topics? Where can I modify or change translate? Very sorry for my english...
https://translations.launchpad.net/prettyurls/trunk/+pots/prettyurls
Quote from: gregh on July 02, 2009, 06:50:25 AM
Quote from: Dannii on July 01, 2009, 09:49:32 AM
Try making a temp folder in the packages directory, and extract the package files into it.
Hi there, I have done this which got me past the initial test. However when I click Install Now it takes me to the following webpage, but nothing is displayed and nothing is installed!
http://forum.smartphonesoft.com/index.php?action=admin;area=packages;sa=install2;package=prettyurls-1-0RCb.tar.gz;pid=0
Any ideas?
Cheers,
Greg
Check your error logs. You may have to just do a manual install.
Hi there.
I've just installed this MOD and it works fine. But there's a problem: My AJAX Chat's link is "www.mylink.com/forum/chat" and now it is being redirected to "www.mylink.com/forum/chat/?pretty;board=chat.0" and there's no way to access.
Is it possible to add this exception? Maybe by the htaccess...
I need your help.
Thanks.
Quote from: blow on July 03, 2009, 12:03:48 PM
Hi there.
I've just installed this MOD and it works fine. But there's a problem: My AJAX Chat's link is "www.mylink.com/forum/chat" and now it is being redirected to "www.mylink.com/forum/chat/?pretty;board=chat.0" and there's no way to access.
Is it possible to add this exception? Maybe by the htaccess...
I need your help.
Thanks.
Add your httaccess..
RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
Hey danniI am often facing SMF CONNECTION ISSUE from last some days
and after contacting my host they replied this
QuoteHi there,
It appears that the following queries on YOUR forum
| 380 | gstekinf | localhost | gstekinf_forum | Query | 0 | Opening tables | SELECT url_id, replacement
FROM b12_1906657_forum_pretty_urls_cache
WHERE url_id IN (\'http://g |
are causing massive mysql server laod / the slowdown you are experiencing, we would recommend removing these queries / optimizing them
So clearly Pretty url is the cause of the problem , Can you suggest me
some way to lower down the usage of Pretty url???
My forum url is http://gstek.info
and i am on byethost.
Thank you so much, Daydreamer! Worked perfectly.
Now I'd like to know... What should I do in order to forbid symbols on links? Symbols like "!" and "( )".
I want to disallow them because if you have a link like "www.myforum.com/forum/board/post!heyhey" and paste into a SMF post, there will be an error: it wlll be clickable only till the "t" off "post"...
Thanks in advance.
Quote from: gourav on July 03, 2009, 12:51:57 PM
Hey danni
I am often facing SMF CONNECTION ISSUE from last some days
and after contacting my host they replied this
QuoteHi there,
It appears that the following queries on YOUR forum
| 380 | gstekinf | localhost | gstekinf_forum | Query | 0 | Opening tables | SELECT url_id, replacement
FROM b12_1906657_forum_pretty_urls_cache
WHERE url_id IN (\'http://g |
are causing massive mysql server laod / the slowdown you are experiencing, we would recommend removing these queries / optimizing them
So clearly Pretty url is the cause of the problem , Can you suggest me
some way to lower down the usage of Pretty url???
My forum url is http://gstek.info
and i am on byethost.
Sounds like your server won't be able to handle this mod sorry. Either change servers or uninstall the mod. If you uninstall it, you should install the reverter package instead, it will turn all your pretty URLs back into normal ones.
Quote from: blow on July 03, 2009, 09:20:08 PM
Thank you so much, Daydreamer! Worked perfectly.
Now I'd like to know... What should I do in order to forbid symbols on links? Symbols like "!" and "( )".
I want to disallow them because if you have a link like "www.myforum.com/forum/board/post!heyhey" and paste into a SMF post, there will be an error: it wlll be clickable only till the "t" off "post"...
Thanks in advance.
You can remove them from the array in Subs-PrettyUrls.php, but that will only change new topics. The links will always work if you use the proper url BBCode.
I'm having problems with submitting scores on arcade when i use the pretty url's mod,it just takes me to a blank page because it changes the url of it.
it is clearly a problem with this url
http://wewantsport.com/index.php?action=arcade;sa=highscore;game=4
this url changes to
http://wewantsport.com/arcade/index.php?action=arcade
and a blank screen
I left this for you, over at SMF Arcade, if it helps at all, kingkingston.
http://www.simplemachines.org/community/index.php?topic=146969.msg1564990#msg1564990 (http://www.simplemachines.org/community/index.php?topic=146969.msg1564990#msg1564990)
And another link as well, there, that might help.
Quote from: gbsothere on July 06, 2009, 05:54:24 PM
I left this for you, over at SMF Arcade, if it helps at all, kingkingston.
http://www.simplemachines.org/community/index.php?topic=146969.msg1564990#msg1564990 (http://www.simplemachines.org/community/index.php?topic=146969.msg1564990#msg1564990)
And another link as well, there, that might help.
thanks i will have a look
Quote from: kingkingston on July 06, 2009, 05:32:25 PM
I'm having problems with submitting scores on arcade when i use the pretty url's mod,it just takes me to a blank page because it changes the url of it.
it is clearly a problem with this url
http://wewantsport.com/index.php?action=arcade;sa=highscore;game=4
this url changes to
http://wewantsport.com/arcade/index.php?action=arcade
and a blank screen
Install the extras package and enable the arcade filter.
What/Where is the extras package?
On the google code downloads page.
Firstly, I have installed Pretty Url ; and now urls are user-friendly :D
For example;
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg268.imageshack.us%2Fimg268%2F300%2Fcapture0307200919405107.png&hash=33a47b60e2ede814e4683e308ee8c6ed29e83d6d)
When I click sitemap, I get a list with pretty urls.
But clicking sitemap as xml doesn't get pretty ones,
please look at screenshots below
Can you see the matter/difference between these pictures? If it's anormal...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg190.imageshack.us%2Fimg190%2F300%2Fcapture0307200919405107.png&hash=dea70b3b5f937cf28d92ddaceb771bde3bf8776c)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg40.imageshack.us%2Fimg40%2F300%2Fcapture0307200919405107.png&hash=bb0b863a3f622fcf23771f4eadf4788e648f7f21)
legendkob, Enabling the rewriting is very easy, just add this code to the end of XMLDisplay():
// Prettify any URLs
if (!empty($modSettings['pretty_enable_filters']))
{
$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';
}
Quote from: [̲̅J̲̅[̲̅U̲̅][̲̅R̲̅][̲̅E̲̅][̲̅K̲̅] ٩(×̯×)۶
Try to disable "eval? errors" and see in what file your error really is...
How to Enable / Disable eval() (http://www.simplemachines.org/community/index.php?topic=290186.0)
Thank you, Jurek. I just did that and I have the following errors now:
http://www."myforum".ro/forum/index.php
Undefined index: url
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/BoardIndex.template.php
Linie: 215
http://www."myforum".ro/forum/index.php?pretty;action=recent
Undefined variable: scripturl
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/index.template.php
Linie: 423
Can you tell what is it?
Thank you!
S.
Dannii, I don't mean to be annoying, but all the javascript (which there is tons of) on the new topic page returns 404 errors. I would help if I could, but I'm not that advanced in programming.
(Issue 88 on google)
selket, what version of the mod are you using?
TheDisturbedOne, and you're using the patched version? Make me an admin account for your forum and PM me the details please.
i just installed the new version and I am missing my admin link, there is a blank space where the Pretty Urls link is suppose to be
SMF Media Gallery PrettyUrls support (http://smf-media.com/community/index.php?topic=983.0)
Quote from: bjraines on July 10, 2009, 12:32:59 AM
i just installed the new version and I am missing my admin link, there is a blank space where the Pretty Urls link is suppose to be
Add this to all your language's modifications.language.php:
$txt['pretty_urls'] = 'Pretty URLs';
Quote from: Dannii on July 09, 2009, 10:36:26 PM
selket, what version of the mod are you using?
TheDisturbedOne, and you're using the patched version? Make me an admin account for your forum and PM me the details please.
Oh the new version fixes the javascript?
I'll upgrade to RCb and post back.
Ah yes, RCb fixed all those problems.
Thanks Dannii!
Quote from: Dannii on July 09, 2009, 10:36:26 PM
selket, what version of the mod are you using?
1.0RC
:( snif.
The original 1.0RC, or the patched package? Does the file end with a b?
I don't realy understand what are you asking, but I have dowloaded from mods the file named prettyurls-1-0RC.tar.gz It doesn't end with a b. and it was installed in 20.06.2009.
I use romanian as language in my forum... maybe it counts.
Well uninstall that and download the new package from the mods page.
I've pimped Pretty URL's on a guest blog post I submitted to WordPress Tavern.
Why bbPress is good for SEO (http://www.wptavern.com/why-bbpress-is-good-for-seo)
Haha nice ;)
Quote from: Dannii on July 10, 2009, 10:46:22 PM
Haha nice ;)
http://code.google.com/p/prettyurls/issues/detail?id=84 This application would be great
Yes, but it's hardly a priority for me. If enough people star it I'll include it, otherwise you could just add it yourself. Once 1.0 is finished I'll work on these extra filters.
I'll be away for about a week now.
Quote from: Dannii on July 10, 2009, 09:46:56 PM
Well uninstall that and download the new package from the mods page.
Well, just did that. The errors still apear. :(
Undefined index: url
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/BoardIndex.template.php
Linie: 215
Undefined variable: scripturl
Fişier: /home/fabulous/public_html/forum/Themes/Tema2/index.template.php
Linie: 423
Tema2 is "vogue" .. the theme i use and is set as default theme and users are not allowed to set their own theme.
If you're using a custom theme are you even sure the errors are caused by this mod?
Hi,
I want update a pretty url 0.9.3 to 1.0RC. The forum is heavily customized and have a definitely not simple custom theme. How I should perform the update?
Remove previous pretty url version and install the new one? Or does 1.0rc installer handles the solution (I think it's not)?
Or should I need to do the installation completily manually?
What about the db tables? Is 1.0rc compatible with 0.9.3 db tables?
Thanks in advance.
Quote from: Dannii on July 04, 2009, 11:12:36 PM
Quote from: gourav on July 03, 2009, 12:51:57 PM
Hey danni
I am often facing SMF CONNECTION ISSUE from last some days
and after contacting my host they replied this
QuoteHi there,
It appears that the following queries on YOUR forum
| 380 | gstekinf | localhost | gstekinf_forum | Query | 0 | Opening tables | SELECT url_id, replacement
FROM b12_1906657_forum_pretty_urls_cache
WHERE url_id IN (\'http://g |
are causing massive mysql server laod / the slowdown you are experiencing, we would recommend removing these queries / optimizing them
So clearly Pretty url is the cause of the problem , Can you suggest me
some way to lower down the usage of Pretty url???
My forum url is http://gstek.info
and i am on byethost.
Sounds like your server won't be able to handle this mod sorry. Either change servers or uninstall the mod. If you uninstall it, you should install the reverter package instead, it will turn all your pretty URLs back into normal ones.
Hey Daani I Uninstalled it Now downloaded prettyurls-reverter-0-9-1.tar.gz
From code.google.com as itsthe latest version As far as i know??
But when i tried it on my forum htp://gstek.info Beta 2 Rc1-1 it
shows Incompatible? My Pretty Url version was 1.0 RC .
Also will now My SERP get decreased :(
Please help
Hi
Until today I had been using this mod successfully, and was very pleased with it. However after having to reinstall SMF due to some admin errors (unable to move topics to or post in certain boards) I can no longer use it. I also wonder if the errors I experienced previously may have been related to pretty urls..
Anyway, since reinstalling, the following occurs. I am logged in, but if I navigate to one of the forum topics, my session is not recognised. It says 'hello guest' at the top. I can't post/ moderate or anything. If I click on home, I am miraculously logged in again.
The only change I made to my .htaccess file was to add a couple of lines to make sure my url always contained the www part. I did this while pretty urls was installed and working the first time, and I didn't notice any related errors, although it's possible that the errors I stated above may have been related. I have not rewritten my .htaccess file since reinstalling, so it only contains what pretty urls has written today.
Any help would be much appreciated, as I would love to get my user-friendly urls back.
Thanks
[edit]
on advice from a friend, I just performed the maintenance function for this mod, and all is working again. Apologies for posting.
Hello Danii!
I have a problem with the Pretty URL Mod.
When the MOD is OFF, i can log in fine using Firefox and IE BUT, when I
turn on the MOD, I can log in without problems in Firefox. But in IE, when
I put the name and the password, I get the following error:
An Error Has Occurred!
You were unable to login. Please check your cookie settings.
But after it says that error, when I go to the Home, it's really logged in!
All my users are having this issue.
If you want to see it by yourself, go to: www.linksharez.net
Create an account and log in from FireFox and log out and then log in again
and you'll see that everything is fine. But try to log in from any version
of IE (Internet Explorer) and you'll see the error message.
What can I do?
I use SMF 2.0 RC1-1...
Thanks!
Hi Rhandy
Thanks for making that post - it has been a problem for a while now and I would like to know if its been sorted yet too.
Does anyone know a command that I can run through phpmyadmin to disable pretty url mod?
I can't do it through the UI because it's giving me a load_template.php error
I think I've found a bug - after deletion of topic, entry from pretty_topic_urls table is not removed even after running maintenence.
SMF 1.1.9
PrettyUrls 1.0RC
Quote from: philcross on July 13, 2009, 01:37:00 AM
Hi Rhandy
Thanks for making that post - it has been a problem for a while now and I would like to know if its been sorted yet too.
Hello!
I have this issue with only one of my forums.
But in the other, the Log In works good in IE. I don't know why it works in only one of them. Both have the same theme and the same version of SMF and Pretty URL MOD...
Hi,
I need a help of a lighttpd rewriting master :)
I've installed pretty url on a lighttpd driven smf.
here are the rules I've created:
url.rewrite = (
"^/(.*)\.(.+)$" => "$0",
"^/forums/([-_!~*'()$a-zA-Z0-9]+)(\?(.*))?/?$" => "/forums/index.php?pretty;board=$1.0$2",
"^/forums/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)(\?(.*))?/?$" => "/forums/index.php?pretty;board=$1.$2$3",
"^/forums/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)(\?(.*))?/?$" => "/forums/index.php?pretty;board=$1;topic=$2.0$3",
"^/forums/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)(\?(.*))?/?$" => "/forums/index.php?pretty;board=$1;topic=$2.$3$4",
"^/forums/?$" => "/forums/index.php",
"^/links/(.*)/?$" => "/links/index.php/$1",
"^/mint/(.*)/?$" => "/mint/index.php/$1",
"^/(.*)/?$" => "/index.php/$1"
)
the very last backreferences are for appending the original querystring (if my logic works well)
However, there are some links what do not work. Most of the board and topic urls work, but e.g. if there is an apostroph in it, it fails. Also the "New Topic" "Reply" "Mark as read" links do not work.
Is there anybody out there who managed to work pretty with lighttpd?
Thanks in advance
sipiatti
I'm new on simple machine forum. Please help me to configure pretty url. where's mod_rewrite option in smf setting? .htaccess where's? Thanks in advance
no one is helping us?
QuoteI don't know why it works in only one of them. Both have the same theme and the same version of SMF and Pretty URL MOD
Hi Rhandy
Is there any way that you could compare the two file sets for PrettURL and see if there are any differences?
There are a list of file camparison options at http://www.google.co.uk/search?hl=en&q=compare+two+files&btnG=Search&meta=
Quote from: gourav on July 12, 2009, 07:05:21 AM
Quote from: Dannii on July 04, 2009, 11:12:36 PM
Quote from: gourav on July 03, 2009, 12:51:57 PM
Hey danni
I am often facing SMF CONNECTION ISSUE from last some days
and after contacting my host they replied this
QuoteHi there,
It appears that the following queries on YOUR forum
| 380 | gstekinf | localhost | gstekinf_forum | Query | 0 | Opening tables | SELECT url_id, replacement
FROM b12_1906657_forum_pretty_urls_cache
WHERE url_id IN (\'http://g |
are causing massive mysql server laod / the slowdown you are experiencing, we would recommend removing these queries / optimizing them
So clearly Pretty url is the cause of the problem , Can you suggest me
some way to lower down the usage of Pretty url???
My forum url is http://gstek.info
and i am on byethost.
Sounds like your server won't be able to handle this mod sorry. Either change servers or uninstall the mod. If you uninstall it, you should install the reverter package instead, it will turn all your pretty URLs back into normal ones.
Hey Daani I Uninstalled it Now downloaded prettyurls-reverter-0-9-1.tar.gz
From code.google.com as itsthe latest version As far as i know??
But when i tried it on my forum htp://gstek.info Beta 2 Rc1-1 it
shows Incompatible? My Pretty Url version was 1.0 RC .
Also will now My SERP get decreased :(
Please help
Danni or someone else please help me :(
I am waiting from so many days and all other pretty url's
which were indexed by Google are now showing 404 error
as Reverter package is now working :(
I'm sorry for asking this, I'm sure that this question has been posted before. Please understand that it is quite a tedious task to look for info in a thread 200+ pages long so I would like to ask my question anyways in hopes someone could answer me or at least point me into the right direction.
When I recently installed Pretty URL, it seems like some of my forum images are pointed to the wrong directory and they are displaying X marks all over the board. I checked the source of the images and it shows: http://acronia.com/forums/Themes/blackted/images/english-utf8/markread.gif
The bolded part seems wrong, is this caused by Pretty URL? If so is there a quick fix?
Did noone read when I said I'd be away for a week?
Quote from: sipiatti on July 12, 2009, 05:27:41 AM
Hi,
I want update a pretty url 0.9.3 to 1.0RC. The forum is heavily customized and have a definitely not simple custom theme. How I should perform the update?
Remove previous pretty url version and install the new one? Or does 1.0rc installer handles the solution (I think it's not)?
Or should I need to do the installation completily manually?
What about the db tables? Is 1.0rc compatible with 0.9.3 db tables?
Thanks in advance.
Just uninstall the old and install the new. It's easy.
Quote from: gourav on July 12, 2009, 07:05:21 AM
Hey Daani I Uninstalled it Now downloaded prettyurls-reverter-0-9-1.tar.gz
From code.google.com as itsthe latest version As far as i know??
But when i tried it on my forum htp://gstek.info Beta 2 Rc1-1 it
shows Incompatible? My Pretty Url version was 1.0 RC .
Also will now My SERP get decreased :(
Please help
Did you uninstall the base package first? If you have and still have incompatibility problems, you might need to do a manual install.
Rhandy, I know of this bug but haven't been able to figure out why it's happening. I might have time this week to investigate it more. Of course, maybe IE is just broken.
petecheng, follow the trouble shooting page!!! You wasted all this time without even trying to find a solution? Why?
jarik, hmm yes that is the case, though it's not really very serious. Want to add it to the bug tracker?
Quote from: 100asa on July 15, 2009, 10:04:45 AM
I'm new on simple machine forum. Please help me to configure pretty url. where's mod_rewrite option in smf setting? .htaccess where's? Thanks in advance
These are Apache settings, not SMF settings. Please ask your host for help.
Trafalgar, this mod won't change your images. Your problem must be caused by something else.
Hi Dannii,
I wonder if you can help, I'm trying to install SMF gallery but its producing an error during install
Fatal error: Call to undefined function db_query() in /home/xxxxxxxxx/public_html/forum/Sources/Subs-PrettyUrls.php on line 265
I have recently upgraded from 1.1.9 to 2.0RC1.2, I've had the above error both before and after uninstalling pretty URL's. Any advice on how to fix this? I'm asking here as it seems more likely to be pretty URL's causing the problem but I'm no expert so please feel free to set me straight if it isn't ;)
Thanks
Try reinstalling the mod again (with 1.0RC if you had an old version).
Quote from: Dannii on July 17, 2009, 07:07:59 AM
Try reinstalling the mod again (with 1.0RC if you had an old version).
OK will try that tonight and report back. thanks
Hey Danii!
What about my problem?
I have a problem with the Pretty URL Mod.
When the MOD is OFF, i can log in fine using Firefox and IE BUT, when I
turn on the MOD, I can log in without problems in Firefox. But in IE, when
I put the name and the password, I get the following error:
An Error Has Occurred!
You were unable to login. Please check your cookie settings.
But after it says that error, when I go to the Home, it's really logged in!
All my users are having this issue.
If you want to see it by yourself, go to: www.linksharez.net
Create an account and log in from FireFox and log out and then log in again
and you'll see that everything is fine. But try to log in from any version
of IE (Internet Explorer) and you'll see the error message.
What can I do?
I use SMF 2.0 RC1-1...
Another problem that I have noticed is a problem with the Pretty URL
including the "'" symbol...
What I mean?
Well, In the previous version of this mod (0.9.3) when someone created a
post with a name including the ' symbol, the MOD worked good... For
example, a topic with the URL worked good in version 0.9.3:
http://www.mysite.com/general-discussion/how-it's-that/
But now, in version 1.0RC, when someone creates a topic with the "'"
symbol, and try to go to that topic it keeps forwording to it indefinely.
So, it receives the error:
"Firefox has detected that the server is redirecting the request for this
address in a way that will never complete."
And it never shows the topic...
You should review that too...
How? In a SMF with the Pretty URL 1.0RC installed on it, create a topic
with this name: "How's it going", you should rceive this topic url:
http://www.mysite.com/board/how's-it-going/
Try to go to that topic and you'll see that error...
Quote from: Dannii on July 17, 2009, 07:07:59 AM
Try reinstalling the mod again (with 1.0RC if you had an old version).
wont install into my 2.0rc1-2 forum?
Rhandy, did you read my post? Also, try running maintenance.
sepulchre, then emulate 2.0 RC1!
i installed this mod.
really good but i have some problem
my forum domain is http://www.mobile4m.com
after the installation my board names are changed and my problem starts
after the installation board urls changed to http://mobile4m.com
i will explain
my default url to "introduction " in my forum is http://www.mobile4m.com/index.php?board=26.0
after preyy url it changed to http://mobile4m.com/introduction/
but i want to that with included " www" i mean that http://www.mobile4m.com/introduction/
bcos there is a problem with cookies without www
help meeeee
Bug report, I found this since year ago but was not care to tell. I'm really sorry and I don't know if it's known bug.
When Topic name contains a quote ", whole page that there's topicname with quote(s) available will be displayed as ablank page like "about:blank".
Any solution? Or just stripe a quote out from url.
Thanks and sorry for my english.
i just solved it in server settings.............but not satisfied with http://mobile4m.com
Quote from: Dannii on July 17, 2009, 09:20:32 PMsepulchre, then emulate 2.0 RC1!
sorry I've never heard of doing that, can you explain?!
NaYa, follow the trouble shooting page!
Dark-Master, please post URLs.
sepulchre, look at the box in the bottom of the package manager. There's a little link to open it.
I cannot get url because when it's avaiable, my page which has topicname with quote available gone blank. I have to disable prettyurl(it works now) and remove quote from topicname and enable prettyurl again to get my page back to works with prettyurl.
I cannot just tell my user not to put quote on topic name, or there will be a spammer and I'm sure just telling them is not the solution. :)
Thanks for creating this GREAT package.
Quote from: Dannii on July 17, 2009, 09:20:32 PM
Rhandy, did you read my post? Also, try running maintenance.
sepulchre, then emulate 2.0 RC1!
Doesn't work.
What post? ???
http://www.simplemachines.org/community/index.php?topic=146969.msg2163389#msg2163389 this one where I said I already knew of the bug but that it has been very hard to figure out what is causing it.
Quote from: Dannii on July 18, 2009, 08:43:27 PM
http://www.simplemachines.org/community/index.php?topic=146969.msg2163389#msg2163389 this one where I said I already knew of the bug but that it has been very hard to figure out what is causing it.
Oh! OK!
Also, check the Issue #96 at Google Code too...
I made a Test forum for you to see the error...
Here it is: http://forum.linksharez.net
Look at the Board Named: It's a Example
Regards.
Rhandy.
Hi Dannii
Apologies if this has been asked and answered before, I'm sure you'll forgive me considering the size of this thread...
I have v1.0RC installed but not "turned on" due to several issues. I was browsing through an older topic today and I came across an internal link which had the Pretty URL format. When I clicked on it it gave me a 404 error.
Please correct me if I'm wrong but I thought when URL rewriting is disabled the mod converts all the URLs it "prettified" back to normal?
If that's not the case how can I get my links to work again without having to edit every single one of them?
where is the trouble shooting page ?????????
Quote from: Dannii on July 17, 2009, 05:39:47 AM
Quote from: gourav on July 12, 2009, 07:05:21 AM
Hey Daani I Uninstalled it Now downloaded prettyurls-reverter-0-9-1.tar.gz
From code.google.com as itsthe latest version As far as i know??
But when i tried it on my forum htp://gstek.info Beta 2 Rc1-1 it
shows Incompatible? My Pretty Url version was 1.0 RC .
Also will now My SERP get decreased :(
Please help
Did you uninstall the base package first? If you have and still have incompatibility problems, you might need to do a manual install.
Somehow i installed the reverter package but its not redirecting the pretty urls
too OLD uls'? What to do? Do i have to make any chnages in Htacces?
Quote from: Blinker on July 19, 2009, 12:41:27 AM
Hi Dannii
Apologies if this has been asked and answered before, I'm sure you'll forgive me considering the size of this thread...
I have v1.0RC installed but not "turned on" due to several issues. I was browsing through an older topic today and I came across an internal link which had the Pretty URL format. When I clicked on it it gave me a 404 error.
Please correct me if I'm wrong but I thought when URL rewriting is disabled the mod converts all the URLs it "prettified" back to normal?
If that's not the case how can I get my links to work again without having to edit every single one of them?
If someone posted a Pretty URL it won't ever be changed back. You could install the reverter package which would then redirect it to the normal URL, but the post itself wouldn't be changed.
Quote from: NaYa on July 19, 2009, 02:36:54 AM
where is the trouble shooting page ?????????
It's very easy to find. It's linked on almost every page. Have a little look for it yourself please.
Quote from: gourav on July 19, 2009, 06:42:35 AM
Somehow i installed the reverter package but its not redirecting the pretty urls
too OLD uls'? What to do? Do i have to make any chnages in Htacces?
The .htaccess and database tables must remain as they were when the base package was installed. If it's not redirected, what happens instead?
Quote from: Dannii on July 19, 2009, 08:34:48 AMIf someone posted a Pretty URL it won't ever be changed back. You could install the reverter package which would then redirect it to the normal URL, but the post itself wouldn't be changed.
Ok, no worries, thanks for the reply. I'm not concerned about the look of the link (hey it's prettier!), as long as it works. :)
Edit: I've uninstalled PU and installed the reverter package (it installed fine). The thing is I can't find anywhere to "run" it. If the install itself ran it then it didn't work cos the posted PU internal links still give a 404. How do I run the reverter?
Did the mod itself work to begin with?
Yes, it worked if I turned it on, but I had issues with my spell checker (you may recall). I never managed to get it working all together properly so I turned off URL rewriting altogether.
I only noticed today that due to it being turned off an internal link wouldn't work so I posted back here about it.
FYI before I uninstalled I turned it on to test the links and they worked fine. I then uninstalled PU (no errors) and installed the reverter (again, no errors).
Ahhh that's right, you had the forum you couldn't share with me. Well I'm sorry, but unless you do, I can't help.
Dannii with all due respect, I'm not asking you to help me fix PU or make it work anymore. I've uninstalled it. No harm, no foul - it's a good mod and it did work on my forum but it caused something more important to not work so it had to go.
All I want to know is how the reverter is supposed to work. Does it have a setting somewhere to run it or is it supposed to just work as soon as it's installed. I'd like my links to work again, that's all. :)
Hi Dannii, thank you for such a nice mod! I see you updated the package and I want to install the new version, unfortunately I've a strange problem. Pretty urls 0.9.3 isn't listed in my package list, even if it's installed and working... I really don't know what to do, recently I just updated to SMF 1.1.10, could be this the problem? How to update the mod now?
Thank you in advance. ;)
claudio, in the worst case scenario you can manually uninstall by editing the files yourself. Do you still have the 0.9.3 package available? If so you can run it through the package parser here (http://resourcez.biz/PackageParser/index.php).
Check the packages directory on your ftp.
QuoteThe .htaccess and database tables must remain as they were when the base package was installed. If it's not redirected, what happens instead?
Its showing the 404 error page.
Quote from: Blinker on July 19, 2009, 09:08:13 PM
claudio, in the worst case scenario you can manually uninstall by editing the files yourself. Do you still have the 0.9.3 package available? If so you can run it through the package parser here (http://resourcez.biz/PackageParser/index.php).
Check the packages directory on your ftp.
Thank you Blinker, I did like you suggested but I got an error from the parser... ERROR: The package-info.xml file is invalid! :-X
Quote from: Blinker on July 19, 2009, 08:17:25 PM
Dannii with all due respect, I'm not asking you to help me fix PU or make it work anymore. I've uninstalled it. No harm, no foul - it's a good mod and it did work on my forum but it caused something more important to not work so it had to go.
All I want to know is how the reverter is supposed to work. Does it have a setting somewhere to run it or is it supposed to just work as soon as it's installed. I'd like my links to work again, that's all. :)
It just runs automatically, not settings to change, as long as all the settings from the base package still exist.
Quote from: claudio_o on July 19, 2009, 08:24:08 PM
Hi Dannii, thank you for such a nice mod! I see you updated the package and I want to install the new version, unfortunately I've a strange problem. Pretty urls 0.9.3 isn't listed in my package list, even if it's installed and working... I really don't know what to do, recently I just updated to SMF 1.1.10, could be this the problem? How to update the mod now?
Thank you in advance. ;)
Download the 0.9.3 package and upload it, and then manually set the URL to uninstall it. Or, upload all a set of fresh 1.1.10 files and just install 1.0RC as normal.
gourav, please post the broken URLs.
Quote from: Dannii on July 20, 2009, 11:31:15 AM
Download the 0.9.3 package and upload it, and then manually set the URL to uninstall it. Or, upload all a set of fresh 1.1.10 files and just install 1.0RC as normal.
Can't I just manually remove it? I modified all the files needed, now I don't know if I also need to delete the database entries of Pretty urls...
Thank you Dannii.
1. Execute Modification ./index.php Test failed
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/ManageErrors.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test failed
6. Execute Modification ./Sources/News.php Test failed
7. Execute Modification ./Sources/QueryString.php Test failed
8. Execute Modification ./Sources/Security.php Test failed
9. Execute Modification ./Sources/Subs.php Test failed
10. Execute Modification ./Sources/Subs-Post.php Test failed
11. Execute Modification ./Sources/Display.php Test successful
12. Execute Modification ./Sources/ManageBoards.php Test successful
13. Execute Modification ./Sources/MessageIndex.php Test successful
14. Execute Modification ./Sources/QueryString.php Test failed
15. Execute Modification ./Sources/Subs-Boards.php Test failed
16. Execute Modification /home/vol1/***/****/****.com/htdocs/Themes/default/ManageBoards.template.php Test failed
17. Execute Modification /home/vol1/***/****/****.com/htdocs/Themes/default/languages/Modifications.english.php Test successful
18. Execute Modification /home/vol1/***/****/****.com/htdocs/Themes/default/languages/Modifications.english-utf8.php Test successful
19. Execute Modification /home/vol1/***/****/****.com/htdocs/Themes/default/languages/Modifications.french.php Skipping file
20. Extract File ./Sources/PrettyUrls.php
21. Extract File ./Sources/PrettyUrls-Filters.php
22. Extract File ./Sources/PrettyUrls-Tests.php
23. Extract File ./Sources/Subs-PrettyUrls.php
24. Extract File /home/vol1/eshost.com.ar/***/****.com/htdocs/Themes/default/PrettyUrls.template.php
25. Extract Tree /home/vol1/eshost.com.ar/***/****.com/htdocs/Themes/default/pretty
26. Extract File /home/vol1/eshost.com.ar/***/****.com/htdocs/Themes/default/languages/PrettyUrls.english.php
27. Extract File /home/vol1/eshost.com.ar/***/****.com/htdocs/Themes/default/languages/PrettyUrls.french.php
28. Execute Code SMF1-1/install.php
What can i do, I really need this mod... also I have version 1.1.10 installed...
thx
QuoteCompatible With: 1.1.8, 1.1.9, 2.0 Beta 4, 2.0 RC1, 2.0 RC1-1
Read this:
Manual Installation of Mods. (http://docs.simplemachines.org/index.php?topic=402)
-Remixed
claudio_o, yes you can, it's just hard to do correctly.
trashgeek, you'll have to do a manual install by the looks of it.
Does this mod work with SMF 2.0 RC1.2?
It might work if you emulate RC1, but I haven't tried yet.
Hi Dannii,
First of all - thank you for Pretty URL's!! I would be using an entirely different forum if it wasn't for this mod.
Question - I'm running SMF 1.1.10, with the latest builds of pretty URL and have SEF turned on. I'm noticing that apostrophes remain in URL strings. Is there a way to strip these out? I searched the mod site and the forums but couldn't find anything. As far as I know it's not optimal to have apostrophes in a URL for SEO purposes.
I seem to have found a temporary solution. Not wanting to hack your module, but the SEO is a concern for me. In the Subs-PrettyUrls.php file I simply moved the special chars I wanted stripped or converted into a hyphen as follows:
'' => array ('!','~','*',"'",'"','(','{','[',')','}',']','$'),
'-' => array ('-', ' ', '.', ',','_'),
Please let me know if there's a better way to do this, but it seems to work for now.
Another thing I notice is that if a user edits their post and changes the title, the URL reverts back to the old format. Is there a way to process the URL again in this event?
Apostrophes should be fine in URLs, but yes you can remove them there. You'll have to remove rows from the smf_pretty_topic_urls table and run maintenance too though.
You don't want the URLs to ever change. If you care about SEO, permanent URLs are of course the best!
prettyurls mod is very very pretty and lovely thing with me now.... Thank you for this....
Does this mod work with SMF 2.0 RC1.2?
Help Please
Please read above.
Hi Danii,
Thanks much for the mod - have been very happy with it so far and have just bumped into one issue. The pretty stats center url doesn't seem to be working right.
At the bottom of the board index http://www.waterxing.com/forum/ (http://www.waterxing.com/forum/) you get the [more stats] link which directs to http://www.waterxing.com/stats/ (http://www.waterxing.com/stats/) which is fine except that I get prompted for authorization
'A username and password are being requested by http://www.waterxing.com. The site says: "waterxing.com Statistics"'
However, entering http://www.waterxing.com/index.php?action=stats (http://www.waterxing.com/index.php?action=stats) directly seems to work fine. This seems strange to be because all the other actions work great.
Any thoughts? Thanks!
You probably have some other stats page with your domain, so it's causing a conflict. How strongly do you want action URLs?
Dannii or anyone who happens to be passing who knows;
I'm about to try PrettyURLs on a fresh install of SMF 2 RC1.2, could someone possibly point me to the very latest version of the mod. (ISTR there was a code.google.com repository which held the latest file?) Thanks
I'll be looking to edit a package-info.xml file in order to 'bodge' the version number so I can give it a shot, does that sound reasonable
The latest is on the mod site, where there are also a heap of links to the google site. And you should be able to just emulate RC1 with the package manager tool.
Great stuff, thanks :)
QuoteThank you for using Pretty URLs! The installation was a success!
Enabled & tested to a basic level - seems to work fine on 2.0 RC1.2 here with Bloc's Amber theme and the latest version of E-Arcade loaded.
link (http://new.southportfriends.co.uk/forums/index.php)
Works fine all but the profiles, so I disable the "profiles" checkbox in the Pretty URLs settings and everything else works just fine.
A tip, If you want to Install PU in a SMF 2RC1.2 you need to put the forum in SMF 2RC1 in "advance" inside the packages tap
Take a look (is a spanish forum)
www.lanuevacuadra.com (http://www.lanuevacuadra.com)
hi... i m using smf 1.1.9 .
it shaows preety urls installed successfully but when i change settings it says-
An Error Has Occurred!
Cannot overwrite existing .htaccess file. Please change its write permissions.
so, how to resolve it.
and can i have preety url + sitemap simultaneously.
thanks
Hello,
Whay is the smf_pretty_urls_cache table from database and what is its use? Ist's getting bigger and bigger everyday and I have limited space available for the forum.
Thank you.
ultide, well set the .htaccess file to be writeable with FTP or SSH.
selket, it's used to cache all the URLs, so that only one extra query is needed per page rather than lots of extra queries. You can empty it at any time without any problems.
After I've installed the mod, there were some login issues.
QuoteAn Error Has Occurred!
You were unable to login. Please check your cookie settings.
Is this a bug with the mod, or is there something I need to do to correct this?
how i use this in smf 2.0 rc1 - 2
pls
my forum is www.mobile4m.com
thank you.
Quote from: NaYa on July 26, 2009, 02:20:34 PM
how i use this in smf 2.0 rc1 - 2
pls
my forum is www.mobile4m.com
thank you.
jus use this tip it worked for me....
Quote from: distante on July 24, 2009, 08:34:39 PM
Works fine all but the profiles, so I disable the "profiles" checkbox in the Pretty URLs settings and everything else works just fine.
A tip, If you want to Install PU in a SMF 2RC1.2 you need to put the forum in SMF 2RC1 in "advance" inside the packages tap
QuoteAfter I've installed the mod, there were some login issues.
Quote
An Error Has Occurred!
You were unable to login. Please check your cookie settings.
Is this a bug with the mod, or is there something I need to do to correct this?
Hi
Welcome to the never-answered-bug debate.
sadly, the mod author is unable / unwilling to sort this out and many of us are stuck with it.
It's a hard bug to find and fix, but you're welcome to help! Maybe I'll have time to look into it more this week.
What can you do if it doesn't fix one of your links? One of my boards had a ' in it, and now all I get is this message from my browser:
"Too many redirects occurred trying to open "url". This might occur if you open a page that is redirected to open another page which then is redirected to open the original page."
I took the url out of the error, but you get the idea. I cannot access all the topics that were in that board now :-(
You can edit that board URLs in the manage boards admin page.
Quote from: infrablack on July 26, 2009, 04:48:49 PM
Quote from: NaYa on July 26, 2009, 02:20:34 PM
how i use this in smf 2.0 rc1 - 2
pls
my forum is www.mobile4m.com
thank you.
jus use this tip it worked for me....
Quote from: distante on July 24, 2009, 08:34:39 PM
Works fine all but the profiles, so I disable the "profiles" checkbox in the Pretty URLs settings and everything else works just fine.
A tip, If you want to Install PU in a SMF 2RC1.2 you need to put the forum in SMF 2RC1 in "advance" inside the packages tap
WHAT U MEAN I AM A NEWBIE! !!
PLZ EXPLAIN..............................
Hi, I have SMF 1.1.10, I install the mod and it works fine with the boards but when I try to enter in any topic it show me nothing (blank page), what to do????
Thanks and good mod ;)
PD: I use the Classic theme...... EDIT: LOL when I activate the rewritting url, the mod isnt functionally, but when I dissable it the mod works, but the url isnt rewritted
Example: Mod installed but dissabled:
Link: myforum.com/index.php?topic=1.0 - If you click it work.
if you write in the dirbar: myforum.com/topic-number-one/ - It works
2- Mod installed and active:
Link: myforum.com/topic-number-one/ - If you click it doesnt work.
if you write the same thing it doesnt work. is backwards!!!!
Sorry my bad english.... Thanks.
I tried to install the mod 1.0RC on a SMF 1.1.10
The package installer return me a blank page.
I look in the database and the install is ok two news table and data inside.
New files are in place.
But ... the update of SMF files don't work. Index.php, SSI.php ... are not modified.
Is there something to do? manually modify the files myself?
Thanks ;)
Hello,
there is a solution to no longer exist in the correct thread header code 404 to send?
Example:
example.com/board/deltete-topic/ - header code 200 and sends shows example.com/board/ in the browser.
Greeting
plz say how to install on smf 2.0 rc1-2 ???????????????
I am using SMF 1.1.10 and had this mod (latest) installed. I need help to delete some of the created pretty urls to my board. It cannot be deleted though I have created new one and make the new pretty urls as primary.
Note that this mod can be installed and uninstalled normally. No conflict detected in doing so. Please advise how to delete them manually. Thank you.
NaYa, check the bottom of your package manager. There's a little link saying "Advanced". If you click it you can emulate another version, set it to SMF 2.0 RC1.
checkmater, well that's strange. Check your forum and apache error logs.
g4lly, yes unfortunately you will need to install them manually if it didn't work.
steffen2, that's no more of a problem than it is with normal SMF URLs. I guess you could edit the code which checks if a topic exists to set the HTTP status correctly.
ahrasis, the delete link in the edit board urls page should do that. If it won't remove them I don't know what the problem is. However if you have the correct primary URLs there's really no problem to leaving them there.
Quote from: Dannii on July 26, 2009, 09:42:12 PM
It's a hard bug to find and fix, but you're welcome to help! Maybe I'll have time to look into it more this week.
I almost forgot, the error log produced this. Hope this helps in investigating the cause of the bug.
Quotehttp://www.#####.info/index.php?pretty;action=login2&sa=check
8: Undefined index: member
File: /home/gamersc2/public_html/Sources/LogInOut.php
Line: 126
> I guess you could edit the code which checks if a topic exists to set the HTTP status correctly.
Hello Dannii,
and how do I do that?
Greeting
I don't know. It's probably in Load.php though.
Quote from: Dannii on July 28, 2009, 08:51:11 AM
ahrasis, the delete link in the edit board urls page should do that. If it won't remove them I don't know what the problem is. However if you have the correct primary URLs there's really no problem to leaving them there.
Thanks. Yes, they should be deletable using edit board urls page but they are not. I will just ignore them since I cannot do anything about them and they are not affecting my forum.
Quote from: Dannii on July 28, 2009, 08:51:11 AM
NaYa, check the bottom of your package manager. There's a little link saying "Advanced". If you click it you can emulate another version, set it to SMF 2.0 RC1.
checkmater, well that's strange. Check your forum and apache error logs.
g4lly, yes unfortunately you will need to install them manually if it didn't work.
steffen2, that's no more of a problem than it is with normal SMF URLs. I guess you could edit the code which checks if a topic exists to set the HTTP status correctly.
ahrasis, the delete link in the edit board urls page should do that. If it won't remove them I don't know what the problem is. However if you have the correct primary URLs there's really no problem to leaving them there.
Danni Bro ,
What to say to you ?
This is the only and one important mod that i ever seen in smf.
bcos i am utilising ur mod very carefully
i am started my forum just a month ago
and i installed pretty urls on ma forum
and after some days i think that it is a waste and uninstalled
now plz goto www.google.co.in
and search for "mig33v 4.10" i am really get amazed with the power of this mod
One of the most important thing is there is nothing in the topic mig33..
but ur mod doing alll
and also this mod helping for some more googling..............................................
i did something more on webmaster tool in google,and this mod helped me 99%
ALL CREDITS GOES TO DANNY
SALUTING YOU.......................................................
old links works after installing this?
Hi,
I want to use this mod but it has an error, it seems that it does not know the path of the forum.
I'm installing a forum from scratch and it tries to put the URLs in the following way:
www.test.com/FORUM/whatever
when it should be like this:
www.test.com/forumv2/2.0/whatever
If I insert the latest URL it works fine but it is generating URLs for www.test.com/FORUM/whatever automatically.
How can I fix this? I'm using SMF 2.0 RC1.2
Best regards,
Tiago Marques
I has been changed my display.template.php file to the standar and now the MOD is fully functionally, so the problem is: The Mod is not working with one of my mods I will view wich of my mods is making problems....
Nice MOD! hope it will make my web more profitable....
Greetings!!!!
chaky!, old links will be redirected.
tmarques, follow the trouble shooting page!
Quote from: Dannii on July 23, 2009, 11:09:31 PM
You probably have some other stats page with your domain, so it's causing a conflict. How strongly do you want action URLs?
Yep, you're right. I checked with godaddy and the stats directory is reserved. I'd like to keep the pretty action URLS. Any suggestions? Thanks!
I' m using Pretty URLs Mod, a great one. And I have my own code that help me show some topic every where i want on my website.
The problerm is when using Pretty URLs, i can't know what is the topic id (you can know post id but not the topic id) and whenever i want do it, i must turn off the Mod.
Is there any way to help me to this with thout turn off the mod!?
*****
thẻ secone question is:
I found alot off Crawl errors 404 (Not found error) on Google Webmaster Tools, But when i try to click, 100% OK !?!?
Why!?!?
Thanks all of you!!
hi, again i have to praise you for this mod, the success of my forum (well, beginings of my forum) has much to do with this mod, and a bit to do with my members.
so i need some advice. i am contemplating moving my forum to another domain. i have set up the forum on the other domain and pretty urls are working well :D
before i 301 redirect is there anything i should consider, or any problems that might be caused in redirecting my old domain to new domain with pretty urls.
also one problem when i have installed the 1.0 rc1 i do not have a link in my admin control panel, there is just a blank space where the 0.9 had a link. what is that about?
THis Doesn't Work With Arabic Chars
How To Fix It ?
Hello Dear !!!
i have installed the PRetty URL and it's working perfect
but
i have a small problem with it.
i have changed my board names Last Week to something else But Pretty URL is getting the Old Names
For Example:
I have a Board called Amazing People but it's URL is below one
.
http://imsciences.net/chillpoint/images-people-amazing-things/
.
.
I searched PhpMyAdmin and there are 9 entries in the cache with the name of "images-people-amazing-things"
Please How do i clear cache or change it to new one
Thanks and Regards
Quote from: shua on July 30, 2009, 03:11:24 PM
Yep, you're right. I checked with godaddy and the stats directory is reserved. I'd like to keep the pretty action URLS. Any suggestions? Thanks!
Try making this change to Subs-PrettyUrls.php:
$context['pretty']['action_array'] = $actionArray[1];
unset($actionArray[1][array_search('stats', $actionArray[1])]);
Quote from: nvcnvn on August 01, 2009, 03:01:20 AM
I' m using Pretty URLs Mod, a great one. And I have my own code that help me show some topic every where i want on my website.
The problerm is when using Pretty URLs, i can't know what is the topic id (you can know post id but not the topic id) and whenever i want do it, i must turn off the Mod.
Is there any way to help me to this with thout turn off the mod!?
Can you explain what your code does in more detail?
Quote from: ellion on August 01, 2009, 04:53:01 AM
hi, again i have to praise you for this mod, the success of my forum (well, beginings of my forum) has much to do with this mod, and a bit to do with my members.
so i need some advice. i am contemplating moving my forum to another domain. i have set up the forum on the other domain and pretty urls are working well :D
before i 301 redirect is there anything i should consider, or any problems that might be caused in redirecting my old domain to new domain with pretty urls.
also one problem when i have installed the 1.0 rc1 i do not have a link in my admin control panel, there is just a blank space where the 0.9 had a link. what is that about?
There shouldn't be any problems, as long as you make the redirect correctly.
I'm not sure... are the language files all modified correctly?
Quote from: SAFAD on August 01, 2009, 10:40:15 AM
THis Doesn't Work With Arabic Chars
How To Fix It ?
You can add characters to the big array in Subs-PrettyUrls.php, I used to have them in there. But it didn't work very well. You can get the old version at: http://code.google.com/p/prettyurls/source/browse/branches/0.8/Base/SMF2-0/Subs-PrettyUrls.php (For SMF 1.1 look under SMF1-1) Only copy the array, not the whole file.
It really needs percent encoding, but that will be a big change.
Quote from: Naveeddil on August 01, 2009, 09:40:59 PM
Hello Dear !!!
i have installed the PRetty URL and it's working perfect
but
i have a small problem with it.
i have changed my board names Last Week to something else But Pretty URL is getting the Old Names
For Example:
I have a Board called Amazing People but it's URL is below one
.
http://imsciences.net/chillpoint/images-people-amazing-things/
.
.
I searched PhpMyAdmin and there are 9 entries in the cache with the name of "images-people-amazing-things"
Please How do i clear cache or change it to new one
Thanks and Regards
Go to the edit boards admin page and you can change the board URLs.
Quote from: Naveeddil on August 01, 2009, 09:40:59 PM
Hello Dear !!!
i have installed the PRetty URL and it's working perfect
but
i have a small problem with it.
i have changed my board names Last Week to something else But Pretty URL is getting the Old Names
For Example:
I have a Board called Amazing People but it's URL is below one
.
http://imsciences.net/chillpoint/images-people-amazing-things/
.
.
I searched PhpMyAdmin and there are 9 entries in the cache with the name of "images-people-amazing-things"
Please How do i clear cache or change it to new one
Thanks and Regards
Quote
Go to the edit boards admin page and you can change the board URLs.
Dear, Do you Mean in Admin Page >>> Forum >>> Boards
but there is no Edit Boards option
.
.
i can MODIFY the boards but the problem is Board URL
A new column is added to the end of the table with links for each board called "Pretty URL".
Hi!
About my problerm: for an example, i use this SSI function: ssi_fetchPosts()
And i can't find the ID of topic an want if I don't turn off Pretty URLs.
Hello. I want to install this great mod on a running (quite big, 100.000 posts) forum, but before I'm testing it on a test forum.
From what I can see everything works ok, but one thing. I'm from Romania and here we use diacritics (special characters). The problem comes when using vista+ operating system for the characters ș and ț.
Look here:
http://fcrp.ro/forumdetest/despre-licenta/539u539u-537i-537a537a/
I have tried to enter in the subs-prettyUrls.php ș and ț, but still no success. Can anybody tell me what else to try? Thanks
Dannii please check the spanish translation:
https://translations.launchpad.net/prettyurls/trunk
;)
Quote from: nvcnvn on August 02, 2009, 09:01:05 AM
Hi!
About my problerm: for an example, i use this SSI function: ssi_fetchPosts()
And i can't find the ID of topic an want if I don't turn off Pretty URLs.
You can check the smf_pretty_topic_urls table for the IDs.
Quote from: shumilica on August 02, 2009, 11:42:54 AM
Hello. I want to install this great mod on a running (quite big, 100.000 posts) forum, but before I'm testing it on a test forum.
From what I can see everything works ok, but one thing. I'm from Romania and here we use diacritics (special characters). The problem comes when using vista+ operating system for the characters ș and ț.
Look here:
http://fcrp.ro/forumdetest/despre-licenta/539u539u-537i-537a537a/
I have tried to enter in the subs-prettyUrls.php ș and ț, but still no success. Can anybody tell me what else to try? Thanks
You're not using UTF-8 are you? Can you convert?
NIBOGO, yep when I release 1.0 final I'll include all of them!
No I'm not using utf-8 and i'm afraid to convert because it will surrely have some errors on posts/database with characters and i don't have the knowledge and time to repair it afterwords.
Is there any workaround other than converting the database?
Thanks!
2.0 RC1.2 ?
Are you asking me?
Yes, I use 2.0 RC1.2, as you can check from the link above.
Not really no... you should use UTF-8. What encoding are you using now?
Hi all,
I installed this module but the links are poorly trained
example:
name of the forum: Réglement & Actus
name of the topic: Les Règles Générales
pretty with the url is:
http://www.zone-board.com/smf/reglement-actus/pr/
why pr / ?!!
test yourself here:
http://www.zone-board.com/smf/reglement-actus/
i use smf2rc1.2 anf french utf8 ^^
thx in advance :)
I don't know why it would do that. The topic wasn't ever named something else was it?
Quote from: Dannii on August 04, 2009, 03:41:28 AM
Not really no... you should use UTF-8. What encoding are you using now?
latin1 (latin1_swedish_ci). I think. No solution, isn't it?
Hello Dear!
Still waiting for the solution of below problem
Thanks and waiting for a response
.
.
.
Quote from: Naveeddil on August 01, 2009, 09:40:59 PM
Hello Dear !!!
i have installed the PRetty URL and it's working perfect
but
i have a small problem with it.
i have changed my board names Last Week to something else But Pretty URL is getting the Old Names
For Example:
I have a Board called Amazing People but it's URL is below one
.
http://imsciences.net/chillpoint/images-people-amazing-things/
.
.
I searched PhpMyAdmin and there are 9 entries in the cache with the name of "images-people-amazing-things"
Please How do i clear cache or change it to new one
Thanks and Regards
.
.
.
.
Quote from: Naveeddil on August 02, 2009, 06:34:39 AM
Quote from: Naveeddil on August 01, 2009, 09:40:59 PM
Hello Dear !!!
i have installed the PRetty URL and it's working perfect
but
i have a small problem with it.
i have changed my board names Last Week to something else But Pretty URL is getting the Old Names
For Example:
I have a Board called Amazing People but it's URL is below one
.
http://imsciences.net/chillpoint/images-people-amazing-things/
.
.
I searched PhpMyAdmin and there are 9 entries in the cache with the name of "images-people-amazing-things"
Please How do i clear cache or change it to new one
Thanks and Regards
Quote
Go to the edit boards admin page and you can change the board URLs.
Dear, Do you Mean in Admin Page >>> Forum >>> Boards
but there is no Edit Boards option
.
.
i can MODIFY the boards but the problem is Board URL
As I said,
Quote from: Dannii on August 02, 2009, 07:56:06 AM
A new column is added to the end of the table with links for each board called "Pretty URL".
If that new column doesn't appear you'll have to manually edit your ManageBoards.template.php
Quote from: Dannii on August 04, 2009, 10:19:19 AM
I don't know why it would do that. The topic wasn't ever named something else was it?
hi
subjects were never changed
I have the same problem again on this forum:
http://www.zone-board.com/smf/vos-problemes/
!!!!
If you change to subject, topic url didn't change. Try to Truncate {db_prefix}pretty_topic_urls.
Quote from: Dannii on August 05, 2009, 03:50:14 AM
As I said,Quote from: Dannii on August 02, 2009, 07:56:06 AM
A new column is added to the end of the table with links for each board called "Pretty URL".
If that new column doesn't appear you'll have to manually edit your ManageBoards.template.php
and sorry dear
how should i do it?
i'm new to Web and these languages so please help a lil
Sorry but i can't install it on smf 2.0 rc1.2. What to do now ?
Quote from: Naveeddil on August 05, 2009, 05:52:48 AM
and sorry dear
how should i do it?
i'm new to Web and these languages so please help a lil
Go to the mod's page and follow the manual instructions.
Quote from: haerde on August 05, 2009, 06:21:52 AM
Sorry but i can't install it on smf 2.0 rc1.2. What to do now ?
Emulate RC1.
Quote from: Dannii on August 05, 2009, 07:06:50 AM
Quote from: Naveeddil on August 05, 2009, 05:52:48 AM
and sorry dear
how should i do it?
i'm new to Web and these languages so please help a lil
Go to the mod's page and follow the manual instructions.
Dear if you are talking about below code so it is already in the template file (/Themes/default/ManageBoards.template.php)
but
still there is nothing in the Modify Board
.
.
// Interface to manage a board's Pretty URLs
function template_pretty_board_url()
{
global $context, $scripturl, $txt;
// Core really, really sucks.
echo '
<table align="center" cellspacing="1" cellpadding="4" class="bordercolor" style="border: 0; min-width: 650px; width: 50%;">
<tr class="titlebg"><th>', $context['pretty']['board_title'], '</th></tr>
<tr class="windowbg2"><td>';
// Is something wrong?
if (isset($context['pretty']['warning']))
echo '
<p><strong>', $context['pretty']['warning'], '</strong></p>';
echo '
<ul>';
// List out the URLs
foreach ($context['pretty']['this_board'] as $url)
{
echo '
<li>', $url['url'], ' ';
if ($url['primary'])
echo '<b>', $txt['pretty_primary_url'], '</b>';
else
echo '<a href="', $scripturl, '?action=manageboards;sa=pretty;boardid=', $_REQUEST['boardid'], ';do=primary;url=', $url['url'], '">', $txt['pretty_make_primary'], '</a>';
echo ' <a href="', $scripturl, '?action=manageboards;sa=pretty;boardid=', $_REQUEST['boardid'], ';do=delete;url=', $url['url'], '">', $txt['smf138'], '</a></li>';
}
echo '
</ul>
<form action="', $scripturl, '?action=manageboards;sa=pretty;boardid=', $_REQUEST['boardid'], '" method="post" accept-charset="', $context['character_set'], '">
<p><label for="pretty_add_url">', $txt['pretty_add_url_description'], '</label>
<input type="text" style="width: 150px;" value="" name="add" id="pretty_add_url" /></p>
<p><input type="submit" value="', $txt['pretty_add_url'], '" name="submit" /></p>
</form>
</td></tr>
</table>';
}
No, all the little ones, like to:<td style="padding-left: 1ex;" colspan="4">
Also, are you using the default theme?
Quote from: Naveeddil on August 05, 2009, 05:52:48 AM
Quote from: Dannii on August 05, 2009, 03:50:14 AM
As I said,Quote from: Dannii on August 02, 2009, 07:56:06 AM
A new column is added to the end of the table with links for each board called "Pretty URL".
If that new column doesn't appear you'll have to manually edit your ManageBoards.template.php
and sorry dear
how should i do it?
i'm new to Web and these languages so please help a lil
Have you try to run the maintenance task?
is in this link ( I guess) www.yourforum.com/admin/?area=pretty;sa=maintenance
Yes
Quote from: Dannii on August 05, 2009, 10:22:42 AM
No, all the little ones, like to:<td style="padding-left: 1ex;" colspan="4">
Also, are you using the default theme?
Thanks all dear
It is solved
.
.
The problem was that the below Code wasn't updated in the template
now it is okay
<td width="10%" align="right"><a href="', $scripturl, '?action=manageboards;sa=board;boardid=', $board['id'], '">', $txt['mboards_modify'], '</a></td> <td width="10%" style="padding-right: 1ex;" align="right">', allowedTo('admin_forum') ? '<a href="' . $scripturl . '?action=manageboards;sa=pretty;boardid=' . $board['id'] . '">' . $txt['pretty_urls'] . '</a>' : '', '</td>
Quote from: Dannii on July 28, 2009, 10:15:55 PM
chaky!, old links will be redirected.
tmarques, follow the trouble shooting page!
Thanks Danii, I didn't notice the fix was there before.
Best regards
hi i hope someone can help me with this. my forum is in the root directory and im trying to install wordpress in a sub directory called myfairytail. after installing wordpress in that directory i tried to access it at http://ieatsoul.com/myfairytail and it redirected me back to the forum at ieatsoul.com. so i looked around this topic and found out i should add something like this to the .htaccess file:
RewriteRule ^myfairytail/?$ myfairytail/index.php [L,QSA]
which i did and it let me access http://ieatsoul.com/myfairytail but what it didnt let me do is it didnt let me access
http://ieatsoul.com/myfairytail/wp-admin
can anyone help me out with this. i really need this fixed. is there a way i could exclude or add an exception that will allow the sub directories to work.
Then add
RewriteRule ^myfairytail/wp-admin/?$ myfairytail/wp-admin/index.php [L,QSA]
Or whatever it is...
Quote from: Dannii on August 07, 2009, 11:04:47 AM
Then add
RewriteRule ^myfairytail/wp-admin/?$ myfairytail/wp-admin/index.php [L,QSA]
Or whatever it is...
would i have to do that for every directory under myfairytail? and one more thing how can i make it so that when i reset pretty url that rewriterule will stay there? i really appreciate the help ^_^
I have problem with 1.0RC version. In one topic when i want to go to 13 page, it shows a blank page. Links to all other pages working fine, but this specific page shows blank page. When I turn pretty off, page can be seen...
Quote from: hash899 on August 07, 2009, 11:41:44 AM
Quote from: Dannii on August 07, 2009, 11:04:47 AM
Then add
RewriteRule ^myfairytail/wp-admin/?$ myfairytail/wp-admin/index.php [L,QSA]
Or whatever it is...
would i have to do that for every directory under myfairytail? and one more thing how can i make it so that when i reset pretty url that rewriterule will stay there? i really appreciate the help ^_^
Quite probably. Or you could make a smarter rule that would redirect all of the subdirectories.
1.0RC won't rewrite rules outside the mod's section.
Quote from: deZio on August 09, 2009, 08:54:41 AM
I have problem with 1.0RC version. In one topic when i want to go to 13 page, it shows a blank page. Links to all other pages working fine, but this specific page shows blank page. When I turn pretty off, page can be seen...
Sounds like a mod security issue. Check your forum and apache error logs.
Quote from: Dannii on August 09, 2009, 09:30:02 AM
Quote from: hash899 on August 07, 2009, 11:41:44 AM
Quote from: Dannii on August 07, 2009, 11:04:47 AM
Then add
RewriteRule ^myfairytail/wp-admin/?$ myfairytail/wp-admin/index.php [L,QSA]
Or whatever it is...
would i have to do that for every directory under myfairytail? and one more thing how can i make it so that when i reset pretty url that rewriterule will stay there? i really appreciate the help ^_^
Quite probably. Or you could make a smarter rule that would redirect all of the subdirectories.
1.0RC won't rewrite rules outside the mod's section.
Quote from: deZio on August 09, 2009, 08:54:41 AM
I have problem with 1.0RC version. In one topic when i want to go to 13 page, it shows a blank page. Links to all other pages working fine, but this specific page shows blank page. When I turn pretty off, page can be seen...
Sounds like a mod security issue. Check your forum and apache error logs.
Forum logs are empty and server logs only show errors when i have turn off pretty mod.
[Sun Aug 09 09:40:17 2009] [error] [client 66.249.67.116] File does not exist: /***/***/public_html/forum/nebeskoplavi-u-akciji
[Sun Aug 09 09:39:18 2009] [error] [client 92.60.229.228] File does not exist: /***/***/public_html/home, referer: http://nebeskoplavi.com/forum/index.php
[Sun Aug 09 09:39:04 2009] [error] [client 77.46.231.122] File does not exist: /***/***/public_html/home, referer: http://nebeskoplavi.com/forum/chat/css/shoutbox.css
[Sun Aug 09 09:39:00 2009] [error] [client 67.202.41.3] File does not exist: /***/***/public_html/forum/kup-italije-200910
[Sun Aug 09 09:38:43 2009] [error] [client 77.46.231.122] File does not exist: /***/***/public_html/home, referer: http://nebeskoplavi.com/forum/chat/css/shoutbox.css
[Sun Aug 09 09:38:36 2009] [error] [client 77.46.231.122] File does not exist: /***/***/public_html/home, referer: http://nebeskoplavi.com/forum/chat/css/shoutbox.css
[Sun Aug 09 09:38:28 2009] [error] [client 77.46.231.122] File does not exist: /***/***/public_html/home, referer: http://nebeskoplavi.com/forum/chat/css/shoutbox.css
[Sun Aug 09 09:38:16 2009] [error] [client 77.46.185.175] File does not exist: /***/***/public_html/home, referer: http://nebeskoplavi.com/forum/chat/css/shoutbox.css
[Sun Aug 09 09:38:01 2009] [error] [client 77.46.185.175] File does not exist: /***/***/public_html/home, referer: http://nebeskoplavi.com/forum/chat/css/shoutbox.css
[Sun Aug 09 09:37:53 2009] [error] [client 77.46.185.175] File does not exist: /***/***/public_html/home, referer: http://nebeskoplavi.com/forum/chat/css/shoutbox.css
[Sun Aug 09 09:36:37 2009] [error] [client 77.46.185.175] File does not exist: /***/***/public_html/home, referer: http://nebeskoplavi.com/forum/chat/css/shoutbox.css
[Sun Aug 09 09:35:27 2009] [error] [client 60.240.249.219] File does not exist: /***/***/public_html/forum/takmicenja-77
[Sun Aug 09 09:33:15 2009] [error] [client 217.23.206.75] File does not exist: /***/***/public_html/forum/kafana, referer: http://www.google.ba/imgres?imgurl=http://img360.imageshack.us/img360/4124/irriducibilijx5.jpg&imgrefurl=http://nebeskoplavi.com/forum/kafana/filmovi/20/&h=301&w=300&sz=18&tbnid=196s0TX2GNVXLM:&tbnh=116&tbnw=116&prev=/images%3Fq%3Dirriducibili&hl=sr&usg=__6dnx1ITWN2VlTyNWqSBGaKDU5CI=&ei=Vtx-SozfM5GPsAa--PHjAg&sa=X&oi=image_result&resnum=4&ct=image
[Sun Aug 09 09:32:19 2009] [error] [client 77.222.16.201] File does not exist: /***/***/public_html/forum/avatars/bivsi igraci/mihajlovic2.jpg, referer: http://nebeskoplavi.com/forum/index.php?topic=304.msg29527
[Sun Aug 09 09:32:10 2009] [error] [client 95.140.123.18] File does not exist: /***/***/public_html/home, referer: http://nebeskoplavi.com/forum/index.php
[Sun Aug 09 09:30:44 2009] [error] [client 77.222.16.201] File does not exist: /***/***/public_html/home, referer: http://nebeskoplavi.com/forum/chat/css/shoutbox.css
[Sun Aug 09 09:29:45 2009] [error] [client 66.249.67.116] File does not exist: /***/***/public_html/forum/ostali-sportovi
[Sun Aug 09 09:28:40 2009] [error] [client 217.23.206.75] File does not exist: /***/***/public_html/forum/lazio-generalno-b32, referer: http://images.google.ba/imgres?imgurl=http://www.ultrassurleon.com/links/irriducibili.gif&imgrefurl=http://nebeskoplavi.com/forum/lazio-generalno-b32/najlepsi-golovi/msg39387/&usg=__FwwCyNulx_J5jXE2ORhGp0_8NUU=&h=300&w=283&sz=27&hl=sr&start=14&um=1&tbnid=CkDZtfzaT6RhiM:&tbnh=116&tbnw=109&prev=/images%3Fq%3Dirriducibili%26hl%3Dsr%26sa%3DX%26um%3D1
[Sun Aug 09 09:28:39 2009] [error] [client 217.23.206.75] File does not exist: /***/***/public_html/forum/lazio-generalno-b32, referer: http://images.google.ba/imgres?imgurl=http://www.ultrassurleon.com/links/irriducibili.gif&imgrefurl=http://nebeskoplavi.com/forum/lazio-generalno-b32/najlepsi-golovi/msg39387/&usg=__FwwCyNulx_J5jXE2ORhGp0_8NUU=&h=300&w=283&sz=27&hl=sr&start=14&um=1&tbnid=CkDZtfzaT6RhiM:&tbnh=116&tbnw=109&prev=/images%3Fq%3Dirriducibili%26hl%3Dsr%26sa%3DX%26um%3D1
[Sun Aug 09 09:26:33 2009] [error] [client 66.249.67.116] File does not exist: /***/***/public_html/forum/istorija-kluba
[Sun Aug 09 09:25:49 2009] [error] [client 217.23.206.75] File does not exist: /***/***/public_html/forum/kafana, referer: http://images.google.ba/imgres?imgurl=http://img360.imageshack.us/img360/4124/irriducibilijx5.jpg&imgrefurl=http://nebeskoplavi.com/forum/kafana/filmovi/20/&usg=__H_09ZcsU9RXj2-83EBTW1IivsOo=&h=301&w=300&sz=18&hl=sr&start=1&um=1&tbnid=196s0TX2GNVXLM:&tbnh=116&tbnw=116&prev=/images%3Fq%3Dirriducibili%26hl%3Dsr%26sa%3DX%26um%3D1
What is on that page, anything unique compared to the others?
Hi,
I've just upgrade SMF 1.1.10 to SMF 2 RC1.2.
first mod I want to install is pretty url, but I get this error
QuoteInstallations actions for "Pretty URLs":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
If you'd read the previous posts you'd see you can emulate RC1 :)
Quote from: Dannii on August 09, 2009, 10:53:27 AM
What is on that page, anything unique compared to the others?
I dont have a /home folder. I dont know why that exist in error log.
Other link errors are pretty urls of boards. That errors occur because i disable Pretty URL and someone try to go to board using pretty url link.
Strange is that all pages in topic are ok, but only that specific page(num 13) cannot be loaded. I checked url, its ok. Other topics(which i have visited) works fine too.
When i disable rewrite for boards, topic and action and leave only "enable url rewriting" checked, same problem occur and when i disable it completely(uncheck "enable url rewriting") page can load.
What is posted on page 13?
Has this mod been updated yet to work with SMF 1.1.10?
I do not want to install this manually.
It doesn't need to be updated for 1.1.10.
2.0 rc1.2 version??? not install
upgrade please !!
You can emulate RC1. I'll probably wait till RC3 to update it.
I have copied my whole forum and database from a live site that had pretty url enabled. I need to turn it off, how can I disable pretty url's without logging into the forum, can it be done via the DB or the forum files?
Quote from: Dannii on August 09, 2009, 10:01:33 PM
What is posted on page 13?
2 youtube videos and ~20 pictures (all in one post). I have split that post in separated topic, activate mod, open page 13(which is now without that post) and it works. Then, I have open that post(which is now in separated topic) and it works, then i have tried to merge those two topic and when i merged it, i have tried to open page 13 again, and it works... Im confused...
Quote from: ziycon on August 10, 2009, 03:32:52 PM
I have copied my whole forum and database from a live site that had pretty url enabled. I need to turn it off, how can I disable pretty url's without logging into the forum, can it be done via the DB or the forum files?
Read the trouble shooting page :)
Quote from: deZio on August 10, 2009, 04:41:48 PM
Quote from: Dannii on August 09, 2009, 10:01:33 PM
What is posted on page 13?
2 youtube videos and ~20 pictures (all in one post). I have split that post in separated topic, activate mod, open page 13(which is now without that post) and it works. Then, I have open that post(which is now in separated topic) and it works, then i have tried to merge those two topic and when i merged it, i have tried to open page 13 again, and it works... Im confused...
I can't explain it either, but at least it's working now!
Does the 1.0 RC version uses cache in the data base?
Thank you :D
http://arkangeles.org/web/foro/peliculas/hannah-montana-la-pelicula-2009-(dvdrip)-(audio-latino)/
http://arkangeles.org/web/foro/login/
Loge me .. redirects to foro/index.php .. I would like to redirect the topic
Quote from: El Player on August 10, 2009, 11:07:26 PM
Does the 1.0 RC version uses cache in the data base?
Thank you :D
Yes it does.
Quote from: Arkangel on August 11, 2009, 12:20:41 AM
http://arkangeles.org/web/foro/peliculas/hannah-montana-la-pelicula-2009-(dvdrip)-(audio-latino)/
http://arkangeles.org/web/foro/login/
Loge me .. redirects to foro/index.php .. I would like to redirect the topic
This mod doesn't change any of the default SMF redirects... you be better asking for another mod for that.
Quote from: Dannii on August 11, 2009, 08:03:14 AM
Quote from: Arkangel on August 11, 2009, 12:20:41 AM
http://arkangeles.org/web/foro/peliculas/hannah-montana-la-pelicula-2009-(dvdrip)-(audio-latino)/
http://arkangeles.org/web/foro/login/
Loge me .. redirects to foro/index.php .. I would like to redirect the topic
This mod doesn't change any of the default SMF redirects... you be better asking for another mod for that.
worked well before installing pretty url
I think there's a bug for RC1,
This is a bug for Package Manager, the 'New Feature' category is redirected to a 'blank screen'. Other categories are working just fine. I have to deactivate the URL rewriting to be able to acces the 'New Feature' category.
What URL is it? Did you check your SMF and Apache error logs?
hello i found this in google
User-agent: Googlebot
Disallow: /foro?topic
Disallow: /foro/*?
Disallow: /foro/*vt
Disallow: /foro/*msg
Disallow: /foro/*/*/*msg
Disallow: /foro/*/*/msg
Disallow: /foro/msg*
Disallow: /foro/*msg*
Disallow: /foro/*msg*
Disallow: /foro/*/*/*msg*
Disallow: /foro/*/*/msg*
Disallow: /foro/*value=
Disallow: /foro/*javascript
Disallow: /foro/help/
Disallow: /foro/search/
Disallow: /foro/register/
Disallow: /foro/login/
Disallow: /foro/activate/
Disallow: /foro/profile/
Disallow: /foro/stats/
Disallow: /foro/recent/
Disallow: /foro/reminder/
Disallow: /foro/statistics.php
Disallow: /foro/groupcp.php
Disallow: /rss.php
User-Agent: Slurp
Crawl-delay: 300
Disallow: /foro?topic
Disallow: /foro/*?
Disallow: /foro/*vt
Disallow: /foro/*msg
Disallow: /foro/*/*/*msg
Disallow: /foro/*value=
Disallow: /foro/*javascript
Disallow: /foro/help/
Disallow: /foro/search/
Disallow: /foro/register/
Disallow: /foro/login/
Disallow: /foro/activate/
Disallow: /foro/profile/
Disallow: /foro/stats/
Disallow: /foro/recent/
Disallow: /foro/reminder/
Disallow: /foro/statistics.php
Disallow: /foro/groupcp.php
Disallow: /rss.php
User-agent: msnbot
Crawl-delay: 120
Disallow: /foro?topic
Disallow: /foro/*?
Disallow: /foro/*vt
Disallow: /foro/*msg
Disallow: /foro/*/*/*msg
Disallow: /foro/*value=
Disallow: /foro/*javascript
Disallow: /foro/help/
Disallow: /foro/search/
Disallow: /foro/register/
Disallow: /foro/login/
Disallow: /foro/activate/
Disallow: /foro/profile/
Disallow: /foro/stats/
Disallow: /foro/recent/
Disallow: /foro/reminder/
Disallow: /foro/statistics.php
Disallow: /foro/groupcp.php
Disallow: /rss.php
User-agent: *
Disallow: /foro/help/
Disallow: /foro/search/
Disallow: /foro/register/
Disallow: /foro/login/
Disallow: /foro/activate/
Disallow: /foro/profile/
Disallow: /foro/stats/
Disallow: /foro/recent/
Disallow: /foro/reminder/
Disallow: /foro/statistics.php
Disallow: /foro/groupcp.php
Disallow: /rss.php
its a good robots.txt for smf + prettyurls?
thanks in advance
Depends what you want to block...
Hi,
how to completely uninstall the module (files, SQL tables ....) ?
I will reinstall from the beginning, because I had same problems ....
Hi! Im having a "problem" in my forum.
its a Portuguese forum and we have letters like ã ó á ú í õ etc..etc.. the forum boards that have that kind of letter on the name the pretty urls just transforms the link in domain.com/forum/b12 .
the 12 is the board ID i supose.
what sould i do so it convert for example joão into joao and not using the b followed with the board id?
thanks in advance.
Quote from: 007007 on August 19, 2009, 05:56:57 AMHi,
how to completely uninstall the module (files, SQL tables ....) ?
I will reinstall from the beginning, because I had same problems ....
Uninstall the mod, and then also remove everything from the database which the mod adds. See here for those: http://code.google.com/p/prettyurls/wiki/DatabaseChanges
Quote from: BlueEagle on August 19, 2009, 06:33:29 PM
Hi! Im having a "problem" in my forum.
its a Portuguese forum and we have letters like ã ó á ú í õ etc..etc.. the forum boards that have that kind of letter on the name the pretty urls just transforms the link in domain.com/forum/b12 .
the 12 is the board ID i supose.
what sould i do so it convert for example joão into joao and not using the b followed with the board id?
thanks in advance.
Are you using UTF-8?
Hi, thanks for the mod.
I have a question: is there a way to change the RewriteBase? I mean, I want to set a "upper" directory but I don't know how to do that.
I've installed my smf on "site.com/smf/", so the URLs are "site.com/smf/admin" etc, but I would like to do that they are "site.com/admin".. Basically, I want to remove the "smf" prefix.
I tried removing the rewritebase, to set "../" like in HTML code, but nothing worked.
Can you help me, please?
EDIT: I want to do sth like "board-name/sth-else", but this "sth-else" doesn't have to appear in every url, so thought:can I set the pretty name of board this way "sth/sth-else". I tried but it doesn't work..How can I do that? I really need it.
Besides, I would like to add sth before "admin", "profile" etc, but if I add for example "test/" in the htaccess, before "profile", the working link is "site.com/test/profile" as I want, but on the forum the link is still "site.com/profile"... How can I fix this?
Too many questions! I suggest you move your forum to your domain root, and then try again. Things will be more simple that way.
Quote from: Dannii on August 21, 2009, 08:53:43 PM
Too many questions! I suggest you move your forum to your domain root, and then try again. Things will be more simple that way.
All right, but for the other questions?
How can I add "test" before profile, admin etc? If add it in th htaccess, the forum still have the old url. Where the URLs get generated?
And how can I remove the rule that you set, that doesn't allow another slash "/"?
Thank you.
What you're asking is really really complicated! Why do you want to make these changes? You will probably just have to experiement yourself, I don't have a lot of time, and the spare time I have should be spent finishing the 1.0 release.
Quote from: Dannii on August 22, 2009, 06:47:58 AM
What you're asking is really really complicated! Why do you want to make these changes? You will probably just have to experiement yourself, I don't have a lot of time, and the spare time I have should be spent finishing the 1.0 release.
I want to do this because I use mod_rewrite on my website, and I need "mini-website".
I mean, for example I've a mobile phones websites, and there are the "nokia" mini-website, that has the template similar to other pages, but for example with an image of the nokia's logo.
So, my website url is: site.com/nokia/--- where "---" could be "models", "board", "images", "videos" etc. So if I want to check out the new videos, I should go to "site.com/nokia/videos".
So I want that the board url is "site.com/nokia/board/general/topic-1/" for example...
I thought: maybe I can create a simple PHP page, with my template, and include the board via SSI, but unfortunatly the topic url etc will have the same url (example: site.com/smf/index.php?topic=5.0")..
So with your mod I won't integrate the board via SSI, but just change the URL and recreate the forum template, so the effect will be the same..
Anways, can you tell me where you set the "new url"? I mean, there should be a file like "boardindex.php" where you set the new url, right?
Is there any plans to make the reverter compatable with 2rc1 or could you give advice on a manual install please.
Quote from: Black_Paolo on August 23, 2009, 11:12:09 AM
Anways, can you tell me where you set the "new url"? I mean, there should be a file like "boardindex.php" where you set the new url, right?
Your best bet would probably be to create a new board filter then (from PrettyUrls-Filters.php)... copy the existing one, but make it only rewrite the few nokia boards and leave the rest. Then add it to the filters array (with index.php?action=admin;area=pretty;sa=filters) with a very low priority, 5 or something.
Quote from: Dannii on August 24, 2009, 09:38:31 AM
Quote from: Black_Paolo on August 23, 2009, 11:12:09 AM
Anways, can you tell me where you set the "new url"? I mean, there should be a file like "boardindex.php" where you set the new url, right?
Your best bet would probably be to create a new board filter then (from PrettyUrls-Filters.php)... copy the existing one buy make it only rewrite the few nokia boards and leave the rest. Then add it to the filters array (with index.php?action=admin;area=pretty;sa=filters) with a very low priority, 5 or something.
Sorry, I can't understand... Can you explain me what you're saying, please?
I have to copy this (and then edit it):
// Filter board urls
function pretty_urls_board_filter($urls)
{
global $scripturl, $modSettings, $context;
$pattern = '`' . $scripturl . '(.*[?;&])board=([.0-9]+)(.*)`S';
foreach ($urls as $url_id => $url)
// Split out the board URLs and replace them
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
{
if (strpos($matches[2], '.') !== false)
list ($board_id, $start) = explode('.', $matches[2]);
else
{
$board_id = $matches[2];
$start = '0';
}
$board_id = (int) $board_id;
$start = $start != '0' ? $start . '/' : '';
$urls[$url_id]['replacement'] = $modSettings['pretty_root_url'] . '/' . (isset($context['pretty']['board_urls'][$board_id]) ? $context['pretty']['board_urls'][$board_id] : $board_id) . '/' . $start . $matches[1] . $matches[3];
}
return $urls;
}
Right? But what should I edit?
When it makes the replacement there in the last long line, make that conditional on $board_id being one of the nokia board ID numbers. Sorry, I don't have the time to help any more.
All right, I think I get it.
But just one more question:
$urls[$url_id]['replacement'] = $modSettings['pretty_root_url'] . '/' . (isset($context['pretty']['board_urls'][$board_id]) ? $context['pretty']['board_urls'][$board_id] : $board_id) . '/' . $start . $matches[1] . $matches[3];
This is the original code.
If I edit and I add, for example "/whatever/", this way:
$urls[$url_id]['replacement'] = $modSettings['pretty_root_url'] . '/whatever/' . (isset($context['pretty']['board_urls'][$board_id]) ? $context['pretty']['board_urls'][$board_id] : $board_id) . '/' . $start . $matches[1] . $matches[3];
and I upload it on my server, if I check my board the board urls should be: "site.com/whatever/board-name/", right?
But it doesn't work...The urls are still the same.
Then I have to edit the htaccess, I know, but at least the URL should be with the suffix "whatever" (and not workink if I don't change the same things in the htaccess).
Why doesn't it work?
You'll have to change the filter code, go to index.php?action=admin;area=pretty;sa=filters and copy the board filter and change it accordingly. Check the wiki on the google site for info about the filter array.
Any plans to make the reverter compatable to 2rc1 ?
Sorry... how is it incompatible? Did you try emulating?
Thank you Dannii, I think I found out how it works ;)
Just a question: is there a way to set that the child boards should have the prefix of the mother board?
Quote from: Dannii on August 26, 2009, 07:47:07 AM
Sorry... how is it incompatible? Did you try emulating?
Sorry I meant will you be making a version that installs on 2rc1 without need to emulate as I struggle with technical things ?
Quote from: Black_Paolo on August 26, 2009, 02:04:41 PM
Thank you Dannii, I think I found out how it works ;)
Just a question: is there a way to set that the child boards should have the prefix of the mother board?
No sorry.
Quote from: glennk on August 26, 2009, 04:12:00 PM
Sorry I meant will you be making a version that installs on 2rc1 without need to emulate as I struggle with technical things ?
Probably not sorry, I'm very busy. Clicking the little box at the bottom of the package manager is hardly technical!
Hi!
thanks for this very nice mod. It works with tinyportal for dowloads, articles, links...?
It will work but the URLs won't be especially pretty. The extras package has a filter for TP articles though.
as could filter ?
http://web.com/forum/profile/arkangel/?sa=showPosts
http://web.com/forum/profile/arkangel/?sa=summary
http://web.com/forum/profile/arkangel/?sa=showPermissions
etc
by
http://web.com/forum/profile/arkangel/showPosts
http://web.com/forum/profile/arkangel/summary
http://web.com/forum/profile/arkangel/showPermissions
is it possible?
Yes! I have always wanted to also do subactions. Do you want to edit the actions filter to do that?
Quote from: Dannii on August 28, 2009, 09:03:03 PM
Yes! I have always wanted to also do subactions. Do you want to edit the actions filter to do that?
if you please
Hello. GREAT MOD! congratulations.
I have a question. How can i change domain.com/forum to domain.com/foro?
Thanks. Best regards.
Move the forum like you normally would, following these instructions:
How do I move my SMF board to a different host? (http://docs.simplemachines.org/index.php?topic=489)
Then also follow the trouble shooting page.
Quote from: Dannii on August 02, 2009, 05:57:25 AM
Quote from: shua on July 30, 2009, 03:11:24 PM
Yep, you're right. I checked with godaddy and the stats directory is reserved. I'd like to keep the pretty action URLS. Any suggestions? Thanks!
Try making this change to Subs-PrettyUrls.php:
$context['pretty']['action_array'] = $actionArray[1];
unset($actionArray[1][array_search('stats', $actionArray[1])]);
Sweet, this totally worked. At first it didn't occur to me to run the maintenance, but then I figured out that this needs to be done to flush the old entries.
I do, however, have a new question. I just installed the Tinypic mod http://custom.simplemachines.org/mods/index.php?mod=1862 (http://custom.simplemachines.org/mods/index.php?mod=1862) which allows a user to upload an image (or video) file to http://www.tinypic.com (http://www.tinypic.com) right from the posting form and then returns the BBCode and updates the posting dynamically.
It does this by calling an html file "callback.html" located in $boarddir, which contains the following:
<script type="text/javascript">
window.onload = function() {
parent.parent.replaceText(getParameter(document.location.href, "code"), parent.parent.document.forms.postmodify.message);
}
function getParameter(queryString, parameterName) {
var parameterName = parameterName + "=";
if(queryString.length > 0) {
begin = queryString.indexOf(parameterName);
if(begin != -1) {
begin += parameterName.length;
end = queryString.indexOf("&", begin);
if(end == -1) {
end = queryString.length;
}
return unescape(queryString.substring(begin, end));
}
return "";
}
}
</script>
The problem appears to be this line:
parent.parent.replaceText(getParameter(document.location.href, "code"), parent.parent.document.forms.postmodify.message);
As this results in a pretty version of the url that does not seem to properly identify the new post for updating. Is there a way to set a flag so Pretty URL can be turned on or off for certain sections of code?
Hope that makes sense, thanks!
I think it's more likely to be this line in Post.template.php:
tinypic_callback_url = document.location.href.substr(0,document.location.href.lastIndexOf("/"))+"/callback.html";
Try replacing it with a hardcoded URL.
Quote from: Arkangel on August 29, 2009, 12:37:08 AM
Quote from: Dannii on August 28, 2009, 09:03:03 PM
Yes! I have always wanted to also do subactions. Do you want to edit the actions filter to do that?
as could filter ?
http://web.com/forum/profile/arkangel/?sa=showPosts
http://web.com/forum/profile/arkangel/?sa=summary
http://web.com/forum/profile/arkangel/?sa=showPermissions
etc
by
http://web.com/forum/profile/arkangel/showPosts
http://web.com/forum/profile/arkangel/summary
http://web.com/forum/profile/arkangel/showPermissions
could please tell me where to change?
I don't have the time sorry.
Hi i have a problem with this mod. I have some problem with the Package manager so i tryed to install the mod manually. I have a problem when i try to run the install.php file. I upload it in the same directory where it placed ssi.php (the main directory of the forum) but if i try to run the file by browser, my Mozilla Firefox 3.5.2 say me that the page doesn't redirect correctly.. Please help me!
Alright, I haven't seen this issue posted for v1.0rc so I'll post it.
My error log is filled with
Quote
8: Undefined index: board
File: /home/www-data/forums_kitsuneparadise_com/Sources/Display.php
Line: 100
and
Quote
8: Undefined index: 34
File: /home/www-data/forums_kitsuneparadise_com/Sources/Display.php
Line: 100
Line 100 has this:
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
My version of SMF is v1.1.10. Any idea what's going on? This is quite mind boggling.
Hi, have an interesting problem...
When I visit any board/topic on the forum with pretty urls installed/active, it doesn't show me as logged in.
When I return to the home page, it shows me as logged in, and with access to the admin/pm/profile sections etc...
As I say, this only occurs when Pretty URLS is active..
Any ideas?
Quote from: Samuikon on September 04, 2009, 02:08:49 PM
Alright, I haven't seen this issue posted for v1.0rc so I'll post it.
My error log is filled with
Quote
8: Undefined index: board
File: /home/www-data/forums_kitsuneparadise_com/Sources/Display.php
Line: 100
and
Quote
8: Undefined index: 34
File: /home/www-data/forums_kitsuneparadise_com/Sources/Display.php
Line: 100
Line 100 has this:
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
My version of SMF is v1.1.10. Any idea what's going on? This is quite mind boggling.
Maybe you didn't have a clean upgrade to 1.0RC? This code should be in QueryString.php:
// Now make absolutely sure it's a number.
// Check for pretty board URLs too, and possibly redirect if oldschool queries were used.
$context['pretty']['query_string']['board'] = $_REQUEST['board'];
Quote from: Scott S on September 04, 2009, 05:42:41 PM
Hi, have an interesting problem...
When I visit any board/topic on the forum with pretty urls installed/active, it doesn't show me as logged in.
When I return to the home page, it shows me as logged in, and with access to the admin/pm/profile sections etc...
As I say, this only occurs when Pretty URLS is active..
Any ideas?
Can you check your cookies and subdomains settings?
Quote from: Dannii on September 04, 2009, 10:55:58 PM
Maybe you didn't have a clean upgrade to 1.0RC? This code should be in QueryString.php:
// Now make absolutely sure it's a number.
// Check for pretty board URLs too, and possibly redirect if oldschool queries were used.
$context['pretty']['query_string']['board'] = $_REQUEST['board'];
The code is in there. o.O
Also, I'd like to note it only happens when the query string is this:
?pretty;topic=X (where X is a topic ID)
Edit Again:Actually, now that I look at it, the problem is my fault. It lies in my .htaccess configuration. I have Rewrite rules set in place to redirect IPB-style queries to SMF-style (I've recently converted, never been happier), so that old links would still direct visitors to the correct topic, instead of the board index. I'm not sure how I can fix this.
rewritecond %{REQUEST_URI} /index.php$
rewritecond %{query_string} ^showtopic=([0-9]+)
RewriteRule ^.*$ /index.php?pretty;topic=%1 [R=301,L]
rewritecond %{REQUEST_URI} /index.php$
rewritecond %{query_string} ^showforum=([0-9]+)
RewriteRule ^.*$ /index.php?pretty;board=%1 [R=301,L]
rewritecond %{REQUEST_URI} /index.php$
rewritecond %{query_string} ^showuser=([0-9]+)
RewriteRule ^.*$ /profile/?u=%1 [R=301,L]
I'm thinking, what I'd have to do is some kind of coding to work around it?
Just cut out the pretty; from those URLs... that might work.
Ah, it did. Thank you. :)
Nice Mod, using it for some time now, whatever problems we had (mainly with unsupported characters) were easily fixed.
Now I have a question (and don´t have the time to wade through all the 213 pages to see whether this has been adressed/answered before):
- Our forum owner chaged a thread title, how do I get the URL to fit (it has remained the pretty URL from the old thread title)?
- Same, for a single post (so far I delete it and repost, but I guess there must be an easier way: Maintenance didnt re-write it)?
Thanks in advance,
Rattler
Single posts don't have their own URLs...
I don't recommend changing topic URLs, you'll break all your links to it. However if you must do it, you can change it in the pretty_topic_urls table. Don't forget to then run maintenance.
Quote from: Dannii on September 05, 2009, 05:00:42 AM-snip- However if you must do it, you can change it in the pretty_topic_urls table.
Where do I find that?
Thanks in advance,
Rattler
Hi I use Pretty Urls Version 0.9.
I have the following problem:
Usually when a guest is reading a topic and will login in order to write an answer in that specific topic he is after the login directly in the topic he was just reading.
But when I have activated the pretty url function the guest is not redirected directly to the topic he was just reading. He is redirected to the start forum page and has therefore from there to search for the topic he was just reading.
How can I fix that problem?
Quote from: Rattler on September 05, 2009, 05:18:26 AM
Where do I find that?
Thanks in advance,
Rattler
In the database. Your host should provide you with phpMyAdmin, if not you can install it yourself like any other PHP program. :)
Quote from: dailytalk on September 05, 2009, 05:20:13 AM
Hi I use Pretty Urls Version 0.9.
I have the following problem:
Usually when a guest is reading a topic and will login in order to write an answer in that specific topic he is after the login directly in the topic he was just reading.
But when I have activated the pretty url function the guest is not redirected directly to the topic he was just reading. He is redirected to the start forum page and has therefore from there to search for the topic he was just reading.
How I can fix that problem?
I don't know, does it still occur when you upgrade to 1.0RC?
Actually I didn't dare to upgrade yet.
Do I have to deinstall version 0.9 before I install the current version? What is new? Do you have this problem with the current version as well?
Yes uninstall 0.9 first. If you had tried without you would have found that the installation of 1.0RC would have failed.
And as I just said, I don't know.
Quote from: Dannii on September 04, 2009, 10:55:58 PM
Can you check your cookies and subdomains settings?
The forum sits at the top level, not a subdomain, so obviously nothing has been changed setting wise in relation to this.
Cookie settings: Local storage disabled. Subdomain independant - disabled.
It's not a "me specific" problem either. It happens to the other forum admin(s), as well as the regular members.
Any ideas/solutions?
I deinstalled the old version and installed the new version. There was a problem with the Query.string.php in sources. No nothing is working anymore. I may have to delete everything and to reastablish the backup-version.
Or can somebody post the complete code of the query.string.php? (I tried to put in code manually...but didn't get it to work)
Also with the old query.string.php it doesn't work anymore.
Quote from: Scott S on September 05, 2009, 05:47:46 AM
The forum sits at the top level, not a subdomain, so obviously nothing has been changed setting wise in relation to this.
Cookie settings: Local storage disabled. Subdomain independant - disabled.
It's not a "me specific" problem either. It happens to the other forum admin(s), as well as the regular members.
Any ideas/solutions?
Nothing in the error log? And without pretty URLs you would be taken back to the topic?
Quote from: dailytalk on September 05, 2009, 06:17:07 AM
I deinstalled the old version and installed the new version. There was a problem with the Query.string.php in sources. No nothing is working anymore. I may have to delete everything and to reastablish the backup-version.
Or can somebody post the complete code of the query.string.php? (I tried to put in code manually...but didn't get it to work)
Also with the old query.string.php it doesn't work anymore.
That's unfortunate! You can get the full correct QueryString.php from the SMF install package. Next time there's a problem, copy the error message exactly here.
Quote from: Dannii on September 05, 2009, 06:35:10 AM
Nothing in the error log? And without pretty URLs you would be taken back to the topic?
Nope, nothing in the error log. And everything works as it should without Pretty URLS installed.
As I said after I the system told me that there is a problem with the QueryString.php I checked the code with the manual install quide on the SMF Mod side but I couldn't find the problem.
So I deleted everything and copied the backup version into the forum directory. So finally I still use Version 0.9 with the problem mentioned before.
I think the problem has something to do with the rewrite rules....because it disappears when I disable the pretty url function.
Nobody else with this problem?
Usually when you read a topic before login and then you login to write an answer on that topic you will be redirected from the login page directly to that topic you had been before.
My problem is that I am not redirected to the topic I was before the login. I am redirected from the login-page to the main forums page...to the front page.
This problem only occurs when I have the pretty urls function enabled.
Hmm, I just installed Pretty URL's on my localhost. It's worked fine on my paid online host before (Linux), but I'm using Windows myself for localhost. Now I'm getting an Internal Server error. Even if it is Operating Systems, how would I revert this?
Scott S, Does following the second part of the trouble shooting page help at all?
dailytalk, hmm... well at least it's not a very significant bug.
iKorp, did you enable .htaccess etc on your localhost?
Erm, how do I activate .htaccess for my localhost? I'm using WAMP and I'm sure that was a default function, but obviously not...
Quote from: Dannii on September 05, 2009, 05:22:22 AM
Quote from: Rattler on September 05, 2009, 05:18:26 AM
Where do I find that?
Thanks in advance,
Rattler
In the database. Your host should provide you with phpMyAdmin, if not you can install it yourself like any other PHP program. :)
Suspected so, fine enough for me, I can handle (very) basic DB tasks.
Thanks for your quick an proficient reply, if anything should go wrong will be on your back again...
Cheers, mate (think about a topic URL modifying tool - with the necessary disclaimer - but if the topic is just half hour old you wont break many links, and in some forums changing topic URLs just comes with the TechAdmin job...), thanks for your effort! Seriously.
Rattler
Quote from: iKorp on September 05, 2009, 12:25:46 PM
Erm, how do I activate .htaccess for my localhost? I'm using WAMP and I'm sure that was a default function, but obviously not...
I'm not too sure. They should have documents, or people you can ask about it. You may have to edit your httpd.conf?
Rattler, yes I do plan to add that tool eventually, but it's not a great priority. And I hardly have any time to work on the mod as is.
QuoteAn Error Has Occurred!
You were unable to login. Please check your cookie settings.
I like a lot of others have been getting this problem. Im using RC1.2 emulating RC1. I dont have a solution but I do have a workaround that has satisfied some of my forums users.
In Themes/default/languages/Errors.english.php
Find:
$txt['login_cookie_error'] = 'You were unable to login. Please check your cookie settings.';
Replace with:
$txt['login_cookie_error'] = 'You were unable to login. Please check your cookie settings.<br/><br/><b>Note:</b> if you are using Internet Explorer 7 then you probably <b>ARE</b> logged in and can ignore this message<br/><br/><a href=http://www.yourforum.com/index.php><font color=blue>Click here to go to the homepage</font></a>';
Note you will need to empty your forums cache for this to take effect
I guess going forward this error is not too bad. Its replicatable and occurs in IE only.
Quote from: Dannii on September 05, 2009, 10:40:30 AM
dailytalk, hmm... well at least it's not a very significant bug.
Dannii, I've just made a new test install of the current SMF version and also just installed your newest mod. Could install it without problems...but the login problem remains also in your newest version.
This means when you login you alwas got to the frontpage and not to the topic you may have read before.
So before login you may have read this topic.
http://www.testside.com/testforum/general-discussion/
Than you have decided to login so that you can write an anwer on the latest post.
Unfortunately you will not redirected to the link above but to the link beneath instead:
http://www.testside.com/testforum/index.php
Some members of my forum complaint about that. The problem is if you have a forum with many boards and many topics its sometimes not so easy to find the topic you've just read. So if you would be redirected automatically to the latest topic you've just read before login it would be great.
Just try out what I mean: First disable pretty url and try it and than enable pretty url and try it . You will see the difference (not only the url)
Quote from: Dannii on September 05, 2009, 10:40:30 AM
Scott S, Does following the second part of the trouble shooting page help at all?
Ah yes. That's sorted it - Silly me. Thank you very much :)
(hopefully now the forum members will stop complaining!)
I want to uninstall Pretty URLs 1.0RC. It has an uninstall link but when I click it I get:
This package cannot be uninstalled, because there is no uninstaller!
Please contact the mod author for more information.
So how do you uninstall this mod?
There should be an installer! That's very strange. Maybe you can try reuploading the package file to the /Packages/ folder?
I looked in the Packages folder and the file was still in there but just to be sure I re-downloaded it and replaced the one in the Packages folder with the new one. Same result. :(
If it helps to know what other mods are installed here is the list:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi745.photobucket.com%2Falbums%2Fxx92%2Fb4pjoe%2FScreenshot2009-09-06at91154PM.png&hash=50072ef6db7125e8754da787d8998033ab08121b)
Which SMF version are you using? If 2.0 RC1-2, can you try emulating RC1 before uninstalling?
Quote from: Dannii on September 06, 2009, 10:29:35 PM
Which SMF version are you using? If 2.0 RC1-2, can you try emulating RC1 before uninstalling?
Yes, 2.0 RC1-2 is the version. Changing it to emulating RC1 allowed me to uninstall it. Thanks.
Hi dannii,
I converted my db to utf-8
All works fine, but I have a user with a username like this: €uro
Now the site says such user does not exists.
€ character changes to %80 and still nothing. In the pretty cache table I have this user in the replacmeent column as %80uro
How can I fix it?
Does running maintenance help at all?
HEllo All
Dears, I have change my SMF forum within the the same hosting but first it were http://imsciences.net/ChillPoint while now it is http://mychillpoint.com
(i add another PArked/ Addon Domain)
Now everything is working fine but in phpMyAdmin some Tables have the Old Forum URL as http://www.imsciences/chillpoint and one of them is
1956 match(es) inside table smf_pretty_urls_cache
can you please help me out that how to clear this Cache????
Just follow the Trouble Shooting page!
By maintenance you mean? Optimizing my tables? Then yes.
I don't see any other option in the maintenance links which could affect these thing. (Maybe Convert HTML-entities to UTF-8 characters?)
And still I'm having the same problem.
Dannii, regarding the problem I describted....could you please fix it? I don't think that it's a bug. In my opinion it's a mod rewrite problem. Maybe there is only a simple peace of code missing....
It would make your mod much better (I would say it would make it perfect...excellent) if that problem is fixed.
Quote from: Dannii on September 07, 2009, 11:26:48 AM
Just follow the Trouble Shooting page!
Which Page or link
please i'm new to PHP
Asmith, check the Pretty URLs maintenance page.
Quote from: Dannii on September 08, 2009, 07:51:46 AM
No check the Pretty URLs maintenance page.
Dear,
I already ran the maintenance which gave me the message
Run some maintenance tasks
•Updating the array of actions
•Fixing any old boards and topics with broken quotes
•Updating board URLs
•Update the filters
but still there are old locations in phpMyAdmin
Sorry, that was in response to asmith.
Naveeddil, did you even try looking for it?! Check the first post of this topic for a link.
Quote from: Dannii on September 08, 2009, 10:32:32 AM
Naveeddil, did you even try looking for it?! Check the first post of this topic for a link.
Dear, I already ran the repair_settings and the code Solution provided at http://code.google.com/p/prettyurls/wiki/TroubleShooting (http://code.google.com/p/prettyurls/wiki/TroubleShooting)
But plus i have run the Maintenance also but still there are following message in phpMyAdmin
177 match(es) inside table smf_pretty_urls_cache Browse Delete
Can i run any kind of Query to REPLACE the OLD URL with new one all over the Database?
is there any sort of query for it?
hi there,
I've been using PrettyURLS for sometime now, however have noticed that some URLs have completely the wrong description for the URL.
The 'wrong' final field seems to be associated with some SPAM posts that I have removed.
I have run Maintenance from the Admin section, but the problem still exists.
For example
http://www.pocketpcsoft.net/forum/pocketpcsoft-news/how-to-rip-and-edit-dvd-movies-to-other-video-formats/
The above URL links to a review with a completely different title, and the above 'how-to-rip' was a SPAM post I deleted yesterday.
Regards,
Greg
Naveeddil, just empty that table. But also double check that the pretty_root_url setting, in the smf_settings table, is correct.
gregh, that seems rather strange... new topics shouldn't be given the same ID as deleted topics. Perhaps your database doesn't have the auto-increment working? In any case, if you delete those URLs from the smf_pretty_topic_urls table, and then run maintenance, new pretty URLs will be generated for them.
Thanks Dannii
It were all from "smf_settings" table where the URL of pretty_url were to old address
As i edit it to new one and run the Maintenance everything got Solved :)
Thanks dannii it worked :)
Just one thing. I had this files to download that the user had uploaded them before
for example:
€uro.ext
when I try to download it by the site, It can't find the file. But when I enter this url:
site.com/€uro.ext
Browser finds the file on the site.
I removed that character from the database (Where the file name is stored) and made the file name:
uro.ext
Then the download worked.
What's the problem with these characters and how can I make them work for download?
asmith, well the euro character can't actually be used in URLs... I don't really understand your problem though. This mod won't change any URLs to download files, unless they are accessed by SMF URLs.
The mentence solved my problem. That was only a problem I just wanted to ask.
When users upload files, I used their username as the file name. Since this user had euro character in his name, so the file that was saved had euro characters in it.
The download function on the site is not accepting the euro character, But I can access the file by typing site.com/€uro.ext in the address bar.
thought maybe you had such experience in this thing.
Quote from: Dannii on September 08, 2009, 11:50:10 AM
gregh, that seems rather strange... new topics shouldn't be given the same ID as deleted topics. Perhaps your database doesn't have the auto-increment working? In any case, if you delete those URLs from the smf_pretty_topic_urls table, and then run maintenance, new pretty URLs will be generated for them.
Hi Dannii,
Thanks for the prompt reply, the manual deletion and running maintenance has worked.
I think auto increment is working, everything in the dbase was sequential, however the last two topics had no ID and no entry in the smf_pretty_topic_urls table.
Is there a way to have Pretty URLS delete a link when that link is deleted from the forum?
Regards,
Greg
I managed to make it work under lighttpd by just adding those lines to lighty's config:
url.rewrite = (
"^/forum/([-_!~*'()$a-zA-Z0-9]+)(/(\?(.*)))?/?$" => "/forum/index.php?pretty;board=$1.0&$4",
"^/forum/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)(/(\?(.*)))?/?$" => "/forum/index.php?pretty;board=$1.$2&$5",
"^/forum/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)(/(\?(.*)))?/?$" => "/forum/index.php?pretty;board=$1;topic=$2.0&$5",
"^/forum/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)(/(\?(.*)))?/?$" => "/forum/index.php?pretty;board=$1;topic=$2.$3&$6",
"^/forum/?$" => "/forum/index.php",
)
But I also disabled actions and profiles in pretty urls admin panel.
You can see it workin' here: www.akwarium.net.pl/forum/ (http://www.akwarium.net.pl/forum/)
Quote from: sipiatti on July 14, 2009, 02:36:58 AM
Hi,
I need a help of a lighttpd rewriting master :)
I've installed pretty url on a lighttpd driven smf.
here are the rules I've created:
url.rewrite = (
"^/(.*)\.(.+)$" => "$0",
"^/forums/([-_!~*'()$a-zA-Z0-9]+)(\?(.*))?/?$" => "/forums/index.php?pretty;board=$1.0$2",
"^/forums/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)(\?(.*))?/?$" => "/forums/index.php?pretty;board=$1.$2$3",
"^/forums/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)(\?(.*))?/?$" => "/forums/index.php?pretty;board=$1;topic=$2.0$3",
"^/forums/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)(\?(.*))?/?$" => "/forums/index.php?pretty;board=$1;topic=$2.$3$4",
"^/forums/?$" => "/forums/index.php",
"^/links/(.*)/?$" => "/links/index.php/$1",
"^/mint/(.*)/?$" => "/mint/index.php/$1",
"^/(.*)/?$" => "/index.php/$1"
)
the very last backreferences are for appending the original querystring (if my logic works well)
However, there are some links what do not work. Most of the board and topic urls work, but e.g. if there is an apostroph in it, it fails. Also the "New Topic" "Reply" "Mark as read" links do not work.
Is there anybody out there who managed to work pretty with lighttpd?
Thanks in advance
sipiatti
I have this log in my errorlog.
/forum/index.php?
2: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: invalid UTF-8 string at offset 1851
File: /home/xxx/public_html/forum/Sources/Subs.php
Line: 2596
Why this is happening? And what is the "Compilation failed: invalid UTF-8 string at offset 1851" :|
Weird... can you post lines 2590-2600 here please?
Was it just a once-off error, or does it keep happening?
2579 ~ 2597
// This smiley regex makes sure it doesn't parse smileys within code tags (so [url=mailto:[email protected]] doesn't parse the :D smiley)
$smileyPregReplacements = array();
$searchParts = array();
for ($i = 0, $n = count($smileysfrom); $i < $n; $i++)
{
$smileyCode = '<img src="' . $modSettings['smileys_url'] . '/' . $user_info['smiley_set'] . '/' . $smileysto[$i] . '" alt="' . strtr(htmlspecialchars($smileysfrom[$i]), array(':' => ':', '(' => '(', ')' => ')', '$' => '$', '[' => '[')). '" title="' . strtr(htmlspecialchars($smileysdescs[$i]), array(':' => ':', '(' => '(', ')' => ')', '$' => '$', '[' => '[')) . '" border="0" class="smiley" />';
$smileyPregReplacements[$smileysfrom[$i]] = $smileyCode;
$smileyPregReplacements[htmlspecialchars($smileysfrom[$i], ENT_QUOTES)] = $smileyCode;
$searchParts[] = preg_quote($smileysfrom[$i], '~');
$searchParts[] = preg_quote(htmlspecialchars($smileysfrom[$i], ENT_QUOTES), '~');
}
$smileyPregSearch = '~(?<=[>:\?\.\s' . $non_breaking_space . '[\]()*\\\;]|^)(' . implode('|', $searchParts) . ')(?=[^[:alpha:]0-9]|$)~e' . ($context['utf8'] ? 'u' : '');
}
// Replace away!
$message = preg_replace($smileyPregSearch, 'isset($smileyPregReplacements[\'$1\']) ? $smileyPregReplacements[\'$1\'] : \'\'', $message);
}
2596 is
$message = preg_replace($smileyPregSearch, 'isset($smileyPregReplacements[\'$1\']) ? $smileyPregReplacements[\'$1\'] : \'\'', $message);
I don't know whats happening after or before this error. Because i didn't see it anytime but before.
Hmm... I don't think your error has anything to do with this mod. That code will be finished long before Pretty URLs starts working.
Hi Danni, first of all, wonderfull plugin! It makes my board so much better.
I just have one small problem. Pretty URLS can't seem to work with a topic named: "Foto's en Filmpjes". I presume it has something to do with the ' in it. However, renaming the board title to "Fotos en Filmpjes", clearing the pretty urls cache in phpmyadmin etc. and then re-enabling it doesn't seem to work, it still wants to name it "Foto's en Filmpjes". When I click the link, firefox keeps on loading and then gives an error.
Is there a solution to this problem? Because of this small thing I can't enable it...which is a waste ;)
coendeurloo, you can find a simple solution I find out to this problem on the bottom of this issue site.
I hope it will work for you too.
http://code.google.com/p/prettyurls/issues/detail?id=102
it can't install in SMF 2.0 RC1.2.
How to make it work in this ?
Quote from: viethungs on September 11, 2009, 08:29:45 PM
it can't install in SMF 2.0 RC1.2.
How to make it work in this ?
Quote from: distante on July 24, 2009, 08:34:39 PM
A tip, If you want to Install PU in a SMF 2RC1.2 you need to put the forum in SMF 2RC1 in "advance" inside the packages tap
Take a look (is a spanish forum)
www.lanuevacuadra.com (http://www.lanuevacuadra.com)
:P
Quote from: distante on September 11, 2009, 09:01:18 PM
Quote from: viethungs on September 11, 2009, 08:29:45 PM
it can't install in SMF 2.0 RC1.2.
How to make it work in this ?
Quote from: distante on July 24, 2009, 08:34:39 PM
A tip, If you want to Install PU in a SMF 2RC1.2 you need to put the forum in SMF 2RC1 in "advance" inside the packages tap
Take a look (is a spanish forum)
www.lanuevacuadra.com (http://www.lanuevacuadra.com)
:P
Wow, I'm forgot to search, but when put SMF 2RC1 in to advance, the PU still can't installed.
And I try with put SMF 1.1, I can [ Apply Mod ] but have many error to install.
What can i do now ?
Pls!
What does it say for SMF 2 RC1? Did you have the space? Basically just remove the ".2"
Quote from: Dannii on September 12, 2009, 03:40:08 AM
What does it say for SMF 2 RC1? Did you have the space? Basically just remove the ".2"
I using SMF 2RC 1.2
I've try remove .2, It can Apply Mod and have no error, but still can't install.
it say
QuoteYou cannot download or install new packages because the Packages directory or one of the files in it are not writable!
I had chmod Sources, Themes folder to 777 and I have many space.
Some thing wrong ?
thank for help :P
That's not a problem with this mod and I don't have the time to help you with general SMF problems sorry. Please ask for help on the SMF support boards.
Quote from: malcolm_x on September 11, 2009, 04:21:42 AM
coendeurloo, you can find a simple solution I find out to this problem on the bottom of this issue site.
I hope it will work for you too.
http://code.google.com/p/prettyurls/issues/detail?id=102
Unfortunatly that does not work. I've disabled pretty urls, updated the Subs-PrettyUrls.php, emptied the pretty urls cache tables, ran maintenance tasks and enabled it again, still doesn't work...
Your modifications only seems to work for " though, not the ' in "Foto's" for instance?
After you've done that, also delete the row from smf_pretty_topic_url for that problematic topic.
I might just remove quotes. They have caused SO many troubles over the years!
Anyone strongly want them to remain?
Can support for Russian be added? (wikipedia.org/wiki/Russian_alphabet, wikipedia.org/wiki/Romanization_of_Russian). I tried to insert letters in Subs-PrettyUrls.php, but it didn't worked.
Quote from: Dannii on September 14, 2009, 09:22:40 AM
After you've done that, also delete the row from smf_pretty_topic_url for that problematic topic.
I might just remove quotes. They have caused SO many troubles over the years!
Anyone strongly want them to remain?
I have emptied both tables every time, it just doesn't work and I don't know why!
Quote from: Nekit1000 on September 14, 2009, 12:24:37 PM
Can support for Russian be added? (wikipedia.org/wiki/Russian_alphabet, wikipedia.org/wiki/Romanization_of_Russian). I tried to insert letters in Subs-PrettyUrls.php, but it didn't worked.
I used to... this one might help:
http://prettyurls.googlecode.com/svn/tags/0.8.5/Base/SMF1-1/Subs-PrettyUrls.php
coendeurloo, maybe just remove the entire row with quotes.
Quote from: Dannii on September 14, 2009, 09:21:15 PM
coendeurloo, maybe just remove the entire row with quotes.
I have the plugin disabled, deleted the row with quotes, emptied both tables again (posts and topics), ran maintenance task, re-enabled the plugin, and the problem still excists. I have a feeling I'm missing something here?
So you're emptying both the smf_pretty_topic_urls and smf_pretty_url_cache tables?
Quote from: Dannii on September 15, 2009, 08:11:39 AM
So you're emptying both the smf_pretty_topic_urls and smf_pretty_url_cache tables?
That is correct.
Is the problem with a topic or a board? If it's a board, just change it's URL in the manage boards page.
Quote from: Dannii on September 14, 2009, 09:21:15 PM
I used to... this one might help:
http://prettyurls.googlecode.com/svn/tags/0.8.5/Base/SMF1-1/Subs-PrettyUrls.php
I tried to replace characterHash array with one from this file, but nothing is changed. What else need to be edited?
It will only be used for new topics. If you want to change the old topics too, empty the smf_pretty_topic_urls and smf_pretty_url_cache tables.
Yes, it works. But URLs still look ugly. Won't I have any problems if I'll just use cyrrilic letters in URL?
404... But why? In profiles it didn't give any problems.
Only latin characters are allowed in URLs. The Profile links use percent encoding. I eventually plan to add percent encoding for topics and boards, but I haven't yet.
Quote from: Dannii on September 10, 2009, 09:59:11 PM
Hmm... I don't think your error has anything to do with this mod. That code will be finished long before Pretty URLs starts working.
Sorry Dannii. I paste to wrong error log. Really sorry. =)
And i'm interested to 1.1 version of prettyurls. Are you already worked on it ?
I haven't really done much for a long time. Honestly I'm kinda of losing interest... though I would like to keep working on this mod, I have other more interesting projects. When the next RC is released I will update the mod for it, and hopefully that will encourage me to add more features as well!
Quote from: Dannii on September 15, 2009, 11:11:04 AM
Is the problem with a topic or a board? If it's a board, just change it's URL in the manage boards page.
It is just the boards name. I have changed it to "Fotos en Filmpjes", even though it's not proper Dutch. However, it still wants to make it "foto's-en-filmpjes", even though I deleted ALL references to the previous name "Foto's en Filmpjes" from the database! How is this possible? Where does it get this info?
At the end of each column in the manage boards page is a Pretty URLs link which lets you edit the board URLs. Just use it.
Hi!
using 1.1.10 pretty URL is working well. My Ajax Chat don´t. How can I prevent pretty from rewriting the chat adressing (or so)?
Thanks, Peter
Fix your ajax chat so it won't use relative URLs I guess?
thanks, I´ve asked in the Ajax thread here
http://www.simplemachines.org/community/index.php?topic=257973.msg2263345#msg2263345
Quote from: Dannii on September 17, 2009, 06:12:32 AM
At the end of each column in the manage boards page is a Pretty URLs link which lets you edit the board URLs. Just use it.
Quote from: Dannii on September 17, 2009, 06:12:32 AM
At the end of each column in the manage boards page is a Pretty URLs link which lets you edit the board URLs. Just use it.
Ah I see. That part of the admin isn't visible when you have another language enabled... I've set it back to english and was able to change it, thanks, now I can FINALLY use your plugin ;)
Would anyone know why the package is showing up in my package manager with no 'Apply Now' link just:
13. Pretty URLs 1.0RC [ List Files ] [ Delete ]
Are you using the latest SMF 2 RC? You will have to emulate 2 RC1.
[ off topic ?]
Uhmm Anyone nows if Pretty URLS have problems to work with "Ultimate Profile" ? :-\
Quote from: distante on September 17, 2009, 06:48:48 PM
[ off topic ?]
Uhmm Anyone nows if Pretty URLS have problems to work with "Ultimate Profile" ? :-\
Have problem for what? Uploading pictures?
Just general problems, i was looking in the forum but no news if both mods can work together or don't. I want to put the ultimate profile to my forum, but already have PrettyURL installed.
:-\ I'm just a little scared
:P
Worked fine for my forum. :)
cool!, I will make a backup up and install the mod in the night, fingers crossed!
Thanks! :P
Cadal, yes as I said, you need to emulate 2.0 RC1
Oh. Sorry mate, missunderstood your response - still doesn't display [Apply Mod] in any case (though i can see the emulation is working as it changes removes the [apply mod] of others.)
Thanks anyway though, i'll have a little play around as its gotta be something else on my end.
Quote from: Dannii on September 16, 2009, 04:21:55 AM
I haven't really done much for a long time. Honestly I'm kinda of losing interest... though I would like to keep working on this mod, I have other more interesting projects. When the next RC is released I will update the mod for it, and hopefully that will encourage me to add more features as well!
Hmm. I make new filters for some modification.(Project Tools, Tagging System, SMF articles.) I ask this question because you say this.
QuoteI'll most likely do this myself (especially if lots of people star this request), but
only after all the other 1.0 bugs are fixed.
Can i share this filters on this topic?
And Other project "for smf" ? (:
Hay,i want to update my forum from 1.1.9 to 1.1.10 but i was using Pretty URLs 0.9.3 and when i wanted to upgrade ,i got an error like this
QuoteError in Package Installation
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.
Execute Modification ./Sources/Subs.php Test failed
Please help me
Quote from: Cadal on September 18, 2009, 11:11:07 AM
Oh. Sorry mate, missunderstood your response - still doesn't display [Apply Mod] in any case (though i can see the emulation is working as it changes removes the [apply mod] of others.)
Thanks anyway though, i'll have a little play around as its gotta be something else on my end.
What exactly have you typed in the box?
Quote from: [Daydreamer] on September 18, 2009, 11:45:24 AM
Quote from: Dannii on September 16, 2009, 04:21:55 AM
I haven't really done much for a long time. Honestly I'm kinda of losing interest... though I would like to keep working on this mod, I have other more interesting projects. When the next RC is released I will update the mod for it, and hopefully that will encourage me to add more features as well!
Hmm. I make new filters for some modification.(Project Tools, Tagging System, SMF articles.) I ask this question because you say this.
QuoteI'll most likely do this myself (especially if lots of people star this request), but
only after all the other 1.0 bugs are fixed.
Can i share this filters on this topic?
And Other project "for smf" ? (:
Yes please do share them!
Quote from: massdog.com on September 19, 2009, 04:06:01 AM
Hay,i want to update my forum from 1.1.9 to 1.1.10 but i was using Pretty URLs 0.9.3 and when i wanted to upgrade ,i got an error like this
QuoteError in Package Installation
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.
Execute Modification ./Sources/Subs.php Test failed
Please help me
Did you uninstall 0.9.3 first?
Quote from: Dannii on September 20, 2009, 08:04:27 AM
Quote from: Cadal on September 18, 2009, 11:11:07 AM
Oh. Sorry mate, missunderstood your response - still doesn't display [Apply Mod] in any case (though i can see the emulation is working as it changes removes the [apply mod] of others.)
Thanks anyway though, i'll have a little play around as its gotta be something else on my end.
What exactly have you typed in the box?
Quote from: [Daydreamer] on September 18, 2009, 11:45:24 AM
Quote from: Dannii on September 16, 2009, 04:21:55 AM
I haven't really done much for a long time. Honestly I'm kinda of losing interest... though I would like to keep working on this mod, I have other more interesting projects. When the next RC is released I will update the mod for it, and hopefully that will encourage me to add more features as well!
Hmm. I make new filters for some modification.(Project Tools, Tagging System, SMF articles.) I ask this question because you say this.
QuoteI'll most likely do this myself (especially if lots of people star this request), but
only after all the other 1.0 bugs are fixed.
Can i share this filters on this topic?
And Other project "for smf" ? (:
Yes please do share them!
Quote from: massdog.com on September 19, 2009, 04:06:01 AM
Hay,i want to update my forum from 1.1.9 to 1.1.10 but i was using Pretty URLs 0.9.3 and when i wanted to upgrade ,i got an error like this
QuoteError in Package Installation
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.
Execute Modification ./Sources/Subs.php Test failed
Please help me
Did you uninstall 0.9.3 first?
Yes i use 0.9.3 for my 1.1.9 smf forum.
HOW ?
please help me GOD
So you uninstalled it before trying to install 1.0RC? Maybe you have other mods that are incompatible? You might need to do a manual installation, there are instructions on the mod site page.
Quote from: Dannii on September 20, 2009, 10:10:27 PM
So you uninstalled it before trying to install 1.0RC? Maybe you have other mods that are incompatible? You might need to do a manual installation, there are instructions on the mod site page.
I have 1.1.9 smf forum with prettyurl 0.9.3 and i want to upgrade to 1.1.10 and new prettyurl
So i tried to uninstalled before upgrade to 1.1.10 and new prettyurl.
but i got an error when i did test
QuoteError in Package Installation
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.
Execute Modification ./Sources/Subs.php Test failed
Have you installed another mod which has modified subs.php? You may have to uninstall them in another order. If you installed Pretty urls then Mod X uninstall Mod X before Pretty urls.
I apologize if this has been asked before already.
Is there any way to modify this so posts links show up as :
http://www.forum.com/the_actual_post/
instead of :
http://www.forum.com/the_category/the_actual_post/
?
Not unless you don't want pretty board and action URLs.
Quote from: Dannii on September 21, 2009, 04:10:31 AM
Have you installed another mod which has modified subs.php? You may have to uninstall them in another order. If you installed Pretty urls then Mod X uninstall Mod X before Pretty urls.
Maybe yes.
because i upgrade from 1.1.8 to 1.1.9 use subs.php from http://custom.simplemachines.org/upgrades/index.php?action=upgrade;file=smf_patch_1.0.17_1.1.9_2.0-RC1-1.zip;smf_version=1.1.8
what should i do?
Hi Dannii,
I downloaded the MOD today I am using SMF 2.0 RC 1.2. When I tred to install it get the error : The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Is it not compatible with the version of SMF I am using?
massdog.com, can you reverse the 1.1.9 upgrade patch, uninstall Pretty urls, then upgrade to 1.1.9 again?
Alternatively, how many other mods do you have? You could always upload fresh files from the full upgrade package.
devil_jin, emulate 2.0 RC1.
Thank you for this great mod. However - there is a problem with our forum which is in Cyrillic. It tries to convert the letters in English and ruins the words, but I just wants the urls to contain the words in Cyrillic.
Dannii, could you please be so kind to provide solution for this one.
Thank you!
Quote from: Dannii on September 23, 2009, 05:15:08 AM
devil_jin, emulate 2.0 RC1.
Thanks for the quick reply Dannii however I am a noob at this so it would be great if u can explaing how I am suppose to do it.
Thanks for your time and patience.
Mail issue (http://www.simplemachines.org/community/index.php?topic=146969.msg2103916#msg2103916) still ongoing.
And say
Fatal error: Maximum execution time of 60 seconds exceeded in /forum/Sources/PrettyUrls-Filters.php on line 99
I don't have any error log in my error logs. My email has 4 link.
I think rewrite in mails bad idea. Because email sending already hard..
And i writing a package for my filters. I guess i will share in next week. ( Tagging system, smf media gallery, SMF Articles, Downloads System, SMF projects.) All these filters should inlclude name in url.Ex: board.com/tags/ex-tags/55/
zaks_bg, sorry but I won't be able to do anything for non latin characters for a long time.
Quote from: devil_jin on September 23, 2009, 04:03:44 PM
Quote from: Dannii on September 23, 2009, 05:15:08 AM
devil_jin, emulate 2.0 RC1.
Thanks for the quick reply Dannii however I am a noob at this so it would be great if u can explaing how I am suppose to do it.
Thanks for your time and patience.
Read back a few pages, or read the SMF docs.
[Daydreamer]... ughh... Did you ever have problems with links in emails not working?
Comment out this line in Subs-Post.php to stop rewriting emails:
$message = pretty_rewrite_buffer($message);
Do you know how to use svn?
Hello.
There will be some way to make this mod on Windows IIS?
Hmm went through the page where u have mentioned remove .2 but I am very confused on how to do it guess your too busy to answer such stupid question..
NP will drop the idea to install it as of now...
PS: Will wait for a version from you which I can install on SMF 2.0 RC1.2 directly ..
Quote from: Facundo on September 24, 2009, 12:09:44 AM
Hello.
There will be some way to make this mod on Windows IIS?
IIS7 apparently comes with an official rewrite module, so you should be able to get it working. I don't know what that will involve.
Quote
PS: Will wait for a version from you which I can install on SMF 2.0 RC1.2 directly ..
There won't be one.
Want an answer? Go to your package manager. Click "Advanced". Put SMF 2.0 RC1 in the box. Easy. It would have been easier to search for it.
I cant seem to access my admin area on my wordpress blog.
i can see the fron page after adding RewriteRule ^sammilla/?$ ./sammilla/index.php [L,QSA] to the .htaccess file
but i when i click on admin link there, it bounces back to the main domain
the blog is www.afrowall.com/sammilla
the admin area should be www.afrowall.com/sammila/wp-admin
After installing this mod a few days ago, I discovered that 2 of my boards (which are child boards, although that doesn't seem to matter... see below) are no longer accessible. In IE, it just sits there and eventually times out when you click the link. In Firefox, I get the error message attached.
Both of the affected forums have a single quote (') in their name, which I assume is the common denominator for why the redirect fails. To verify this, I created another board (NOT a child board) with a (') in its name, and it also fails with the same redirect error.
Thanks in advance for your help.
I just answered my own question!
For those of you who may have the same problem, here is how you fix it;
Go to Admin -> Forum -> Boards -> Modify Boards
Click on the Pretty URLs link next to the board giving you the problem.
In my test example, my board was called That's a test. So I added thats-a-test (without the single quote) and then clicked Make primary and voila! No more problem.
Akpaka, then add this to your .htaccess too:
RewriteRule ^sammilla/wp-admin/?$ ./sammilla/wp-admin/index.php [L,QSA]
Or whatever it needs to be.
Quote
You can add characters to the big array in Subs-PrettyUrls.php, I used to have them in there. But it didn't work very well. You can get the old version at: http://code.google.com/p/prettyurls/source/browse/branches/0.8/Base/SMF2-0/Subs-PrettyUrls.php (For SMF 1.1 look under SMF1-1) Only copy the array, not the whole file.
this looks WOW
what to add ?
new chars for array ?
or add em to the current <= if this it won't be simple
Quote from: Dannii on September 23, 2009, 11:58:45 PM
zaks_bg, sorry but I won't be able to do anything for non latin characters for a long time.
This is very unfortunate to hear. There is a guy that did something similar for wordpress. Maybe you could use some of his code - at least this will allow for better transition from Cyrillic to Latin letters -> this is what he does and it works good in converting them perfectly. Currently Pretty URLs is converting the letters in a very strange manner.
<?php
/*
Plugin Name: Cyr-Cho
Version: 0.1
Plugin URI: http://kaloyan.info/blog/wp-cyr-cho
Description: Converts slugs with Cyrillic characters into Latin ones
Author: Kaloyan K. Tsvetkov
Author URI: http://kaloyan.info/
*/
/////////////////////////////////////////////////////////////////////////////
/**
* @internal prevent from direct calls
*/
if (!defined('ABSPATH')) {
return ;
}
/**
* The directory path to the plugin
*/
define('WP_CYRCHO_DIR', dirname( __FILE__ ));
/**
* @internal prevent from second inclusion
*/
if (!isset($wp_cyrcho)) {
/**
* Initiating the plugin...
* @see wp_cyrcho
*/
$wp_cyrcho = new wp_cyrcho;
}
/////////////////////////////////////////////////////////////////////////////
/**
* Cyr-Cho (Cyrillic Slugs)
*
* Original idea by Loshia: http://loshia.com/2007/05/17/cyrillic-slugs
*
* @author Kaloyan K. Tsvetkov <[email protected]>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
Class wp_cyrcho {
/**
* Transliteration map
* @var array
*/
var $transliteration = array(
192 => 'a',
193 => 'b',
194 => 'v',
195 => 'g',
196 => 'd',
197 => 'e',
198 => 'zh',
199 => 'z',
200 => 'i',
201 => 'y',
202 => 'k',
203 => 'l',
204 => 'm',
205 => 'n',
206 => 'o',
207 => 'p',
208 => 'r',
209 => 's',
210 => 't',
211 => 'u',
212 => 'f',
213 => 'h',
214 => 'ts',
215 => 'tch',
216 => 'sh',
217 => 'sht',
218 => 'a',
220 => 'y',
222 => 'yu',
223 => 'ya',
224 => 'a',
225 => 'b',
226 => 'v',
227 => 'g',
228 => 'd',
229 => 'e',
230 => 'zh',
231 => 'z',
232 => 'i',
233 => 'y',
234 => 'k',
235 => 'l',
236 => 'm',
237 => 'n',
238 => 'o',
239 => 'p',
240 => 'r',
241 => 's',
242 => 't',
243 => 'u',
244 => 'f',
245 => 'h',
246 => 'ts',
247 => 'tch',
248 => 'sh',
249 => 'sht',
250 => 'a',
252 => 'y',
254 => 'yu',
255 => 'ya'
);
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
/**
* Constructor
*
* Places the plugin hooks, and initiates the admin if necessary
*/
Function wp_cyrcho() {
// attach the hooks
//
add_filter('sanitize_title', array($this, 'convert'), 0);
// start the admin pages ...
//
if (is_admin()) {
require_once(
WP_CYRCHO_DIR . '/wp-admin/wp-admin.php'
);
new wp_cyrcho_admin(1);
}
}
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
/**
* Converts the Cyrillic chars to their latin equivalent.
*
* @param string $value
* @return string
*/
Function convert($value) {
$string = $this->utf2win1251($value);
$result = '';
for($i = 0; $i < strlen($string); $i++) {
if (ord($string[$i]) > 128) {
$result .= $this->transliteration[ord($string[$i])];
} else {
$result .= $string[$i];
}
}
return $result;
}
/**
* Converts a UTF-encoded string into a Win1251-encoded one
*
* @param string $string
* @return string
*/
Function utf2win1251($string) {
$out = '';
for ($i=0; $i<strlen($string); $i++) {
$c1 = substr ($string, $i, 1);
$byte1 = ord ($c1);
if ($byte1>>5 == 6) { /* 110x xxxx, 110 prefix for 2 bytes unicode */
$i++;
$c2 = substr ($string, $i, 1);
$byte2 = ord ($c2);
$byte1 &= 31; /* remove the 3 bit two bytes prefix */
$byte2 &= 63; /* remove the 2 bit trailing byte prefix */
$byte2 |= (($byte1 & 3) << 6); /* last 2 bits of c1 become first 2 of c2 */
$byte1 >>= 2; /* c1 shifts 2 to the right */
$word = ($byte1<<8) + $byte2;
if ($word==1025) $out .= chr(168); // ?
elseif ($word==1105) $out .= chr(184); // ?
elseif ($word>=0x0410 && $word<=0x044F) $out .= chr($word-848); // ?-? ?-?
else {
$a = dechex($byte1);
$a = str_pad($a, 2, '0', STR_PAD_LEFT);
$b = dechex($byte2);
$b = str_pad($b, 2, '0', STR_PAD_LEFT);
$out .= "&#x".$a.$b.";";
}
} else {
$out .= $c1;
}
}
return $out;
}
//--end-of-class--
}
Quote from: SAFAD on September 24, 2009, 10:54:06 AM
Quote
You can add characters to the big array in Subs-PrettyUrls.php, I used to have them in there. But it didn't work very well. You can get the old version at: http://code.google.com/p/prettyurls/source/browse/branches/0.8/Base/SMF2-0/Subs-PrettyUrls.php (For SMF 1.1 look under SMF1-1) Only copy the array, not the whole file.
this looks WOW
what to add ?
new chars for array ?
or add em to the current <= if this it won't be simple
I suggest replacing the current array with the array from that file. Leave all the other stuff as it is now.
Quote from: Dannii on September 24, 2009, 10:35:03 AM
Akpaka, then add this to your .htaccess too:
RewriteRule ^sammilla/wp-admin/?$ ./sammilla/wp-admin/index.php [L,QSA]
Or whatever it needs to be.
worked good. thanks
Hi Danii,
thanks for this beautiful Mod!
I installed now in my forum macroforum.org
Now the mod is disabled: before activate it, i must create htaccess?
In htaccess file, i must write ......?
Sorry for my english
Thanks
Antonio
Quote from: Dannii on September 23, 2009, 05:15:08 AM
massdog.com, can you reverse the 1.1.9 upgrade patch, uninstall Pretty urls, then upgrade to 1.1.9 again?
Alternatively, how many other mods do you have? You could always upload fresh files from the full upgrade package.
devil_jin, emulate 2.0 RC1.
only 4 packages
1. Fight Spam 0.1 [ Uninstall ] [ List Files ] [ Delete ]
2. Pretty URLs 0.9.3 [ Uninstall ] [ List Files ] [ Delete ]
3. Hide SMF Version 1.0.3c [ Uninstall ] [ List Files ] [ Delete ]
4. SimplePortal
iam afraid if i got error when i tried to downrgade and upgrade again
i have smf 2.0 rc1.2 and pretty url Pretty URLs 0.9.1
i want to update it but what are the benefits and how can i do it i dont know alot about this stuff and a little hand will help
Quote from: Dannii on September 23, 2009, 11:58:45 PM
[Daydreamer]... ughh... Did you ever have problems with links in emails not working?
Comment out this line in Subs-Post.php to stop rewriting emails:
$message = pretty_rewrite_buffer($message);
Do you know how to use svn?
I don't have problem for for links in email. And i change subs-posts.php. I can send email now.
Whatyou mean by svn? You mean using revision packages or creating one? =)
Quote from: anto74 on September 25, 2009, 11:50:58 AM
Hi Danii,
thanks for this beautiful Mod!
I installed now in my forum macroforum.org
Now the mod is disabled: before activate it, i must create htaccess?
In htaccess file, i must write ......?
Sorry for my english
Thanks
Antonio
This mod will create the .htaccess file for you.
Quote from: massdog.com on September 25, 2009, 01:26:46 PM
Quote from: Dannii on September 23, 2009, 05:15:08 AM
massdog.com, can you reverse the 1.1.9 upgrade patch, uninstall Pretty urls, then upgrade to 1.1.9 again?
Alternatively, how many other mods do you have? You could always upload fresh files from the full upgrade package.
devil_jin, emulate 2.0 RC1.
only 4 packages
1. Fight Spam 0.1 [ Uninstall ] [ List Files ] [ Delete ]
2. Pretty URLs 0.9.3 [ Uninstall ] [ List Files ] [ Delete ]
3. Hide SMF Version 1.0.3c [ Uninstall ] [ List Files ] [ Delete ]
4. SimplePortal
iam afraid if i got error when i tried to downrgade and upgrade again
WHAT error?
Quote from: sombra on September 25, 2009, 01:32:03 PM
i have smf 2.0 rc1.2 and pretty url Pretty URLs 0.9.1
i want to update it but what are the benefits and how can i do it i dont know alot about this stuff and a little hand will help
Read the changelog to find all the improvements, and there are many.
To upgrade, emulate SMF 2.0 RC1, uninstall 0.9.1 first, and then install 1.0RC.
Quote from: [Daydreamer] on September 25, 2009, 02:16:05 PM
I don't have problem for for links in email. And i change subs-posts.php. I can send email now.
Whatyou mean by svn? You mean using revision packages or creating one? =)
I make all of my changes and commit them to svn before making the down packages. If you had experience with svn you could add your filters to it.
Quote'a' => array ('أ'),
'aa' => array ('ا'),
'ae' => array ('إ'),
Like This You Mean ?
Yeah that's right. But more than just those 3 lines of course!
tis is gonna take a very very very huge amount of time
but we should give it a try
thanks for the reply i have another question i ben having problem on google only wap to pages are been inexed i have open this topic and it has been told to me that its posible that pretty url can be my problem what do you think about this
http://www.simplemachines.org/community/index.php?topic=338291.0
and thanks for the replys and help
If you're using 1.0RC, I don't see how this mod could be the cause of your problems.
I am having big problem with this mod. I installed it and now every page I click on sends me to some random website. I cannot even go to the admin section of forum to uninstall >:(
what do you think can be causing to only wap2 pages to get indexed by google and no others?
Still cannot figure out how to solve this problem. After installing Pretty Urls every time I click a link login button or any forum url it sends me to http://arcadeh.com/. It still goes to the main page but anything besides that redirects to the site listed above.
Using 2 rc 1.2 with prettyurl installed. Has the "You were unable to login. Please check your cookie settings." issue with IE been resolved or is there a fix. I read through as many pages as I could and searched but found no info other than to add text to the error message.
Please advise, Thx
Forgot to mention that the problem also occurs in all version of opera mobile.
Quote from: jcat12 on September 26, 2009, 04:45:11 PM
I am having big problem with this mod. I installed it and now every page I click on sends me to some random website. I cannot even go to the admin section of forum to uninstall >:(
Follow the trouble shooting page to disable the mod, and maybe follow the second section to correct your URLs.
lighttpd rewrite rules
it took me a while to figure them out ... and since I couldn't find them anywhere ..
url.rewrite-once = (
"^/(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|thankyouadd)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/(thankyoulist|thankyoulock|thankyoupost|thankyouremove|thankyouremovedm|theme|trackip|about:mozilla)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/(about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile|verificationcode|vote)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/(viewquery|who|\.xml)/\??(.*)?$" => "./index.php?pretty;action=$1&$2",
"^/([-_!~*'()$a-zA-Z0-9]+)/\??([=&a-zA-Z0-9;_]*)?$" => "./index.php?pretty;board=$1.0;$2",
"^/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/\??([=&a-zA-Z0-9;_]*)?$" => "./index.php?pretty;board=$1.$2;$3",
"^/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/\??([=&a-zA-Z0-9;_]*)?$" => "./index.php?pretty;board=$1;topic=$2.0;$3",
"^/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/\??([=&a-zA-Z0-9;_]*)?$" => "./index.php?pretty;board=$1;topic=$2.$3;$4" )
maybe they are useful to someone else ;)
Quote from: Dannii on August 26, 2009, 08:15:49 PM
Quote from: Black_Paolo on August 26, 2009, 02:04:41 PM
Thank you Dannii, I think I found out how it works ;)
Just a question: is there a way to set that the child boards should have the prefix of the mother board?
No sorry.
Quote from: glennk on August 26, 2009, 04:12:00 PM
Sorry I meant will you be making a version that installs on 2rc1 without need to emulate as I struggle with technical things ?
Probably not sorry, I'm very busy. Clicking the little box at the bottom of the package manager is hardly technical!
I really dont think there is any need for that. I was politely asking for your help. To set a record straight this mod has made a complete mess of my forums permalinks and my SEO. Your mod should have a warning on it that it can cause problems for people interested in getting thier sites listed in google.
Quote from: plusev on September 26, 2009, 08:34:36 PM
Using 2 rc 1.2 with prettyurl installed. Has the "You were unable to login. Please check your cookie settings." issue with IE been resolved or is there a fix. I read through as many pages as I could and searched but found no info other than to add text to the error message.
Please advise, Thx
Forgot to mention that the problem also occurs in all version of opera mobile.
Bump
Also, I wanted to remove to test if P URLs is causing some other errors but there is no uninstall link just list files and delete. How do I uninstall?
Thx
Emulate 2.0 RC1!
I installed it and it doesn't change the urls. I'm not sure what's going on.
And you enabled it too?
Quote from: Dannii on September 28, 2009, 09:54:29 PM
And you enabled it too?
i sure did..lol my forum just started and I decided to look up this mod and when i ran it, nothing changed.
Run some maintenance tasks
* Updating the array of actions
* Fixing any old boards and topics with broken quotes
* Updating board URLs
* Update the filters
but when i go back and look at the links...nothing has changed.
and yes its enabled.
Okay... read the first post please, you're going to need to give me something to help you.
what more can i say? I post a link http://www.youtube.com/ http://www.youtube.com and it still shows it. I should say YOUTUBE.COM with this mod correct? Now the profile url worked.
No, it changes your forum's URLs. Nothing to do with the URLs you post.
Did you read the first post? I can't help you unless you give me links to your forum.
Quote from: Dannii on September 28, 2009, 09:08:42 PM
Emulate 2.0 RC1!
Hello Dannii,
I did the uninstall then I did a reinstall which cleared up the problem I was have with opera users being I'm still getting the cookie/verification errors plus this error in my log. Both Ie 7 and IE8 are affected - which is 90+% of my users. Any help would be appreciated. Thx
125: // Strike! You're outta there!
==>126: if ($_GET['member'] != $user_info['id'])
127: fatal_lang_error('login_cookie_error', false);
128:
Hello,
well, install pretty urls in my forum, but I have the problem that the RSS is not shown.
I backup my forum, go back to previous state, and I noticed that the error was .htaccess, deleting that file I could already see the rss of the forum.
.htaccess content:
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: September 30, 2009, 2:34
RewriteEngine on
RewriteBase /foros
# PRETTYURLS MOD ENDS
Pls, someone can explain why this happened?
srry but i have bad english...
plusev, sorry, I don't know what is causing the error with IE.
DarkCo0oL, I don't know what your actual problem is. That .htaccess file looks fine to me.
My issue in specific or the IE issue in general? Thx
It's the same error a lot of other people are getting. I haven't figured out what is causing it.
Thats a shame - it's a great mod. The only work around I can think of making "forever" the log in time by default but I'm not sure what the ramifications of that might be. Thx
Does that actually fix the bug??
Is there a reason why I can't uninstall this? Apparently it's failing under Subs.php.
From my understanding, there's possibly another mod that might be interfering with the Subs.php file as well. If that's the case, is there a list of known Mods that might cause this? Or is there a manual uninstall method?
NB - I don't want to get rid of it by any means, I just wanna know that I can uninstall it without any hassles if I ever have to.
Thanks :)
Can someone answer me this please...
will I need this to get the name of the title of the post into the url or will the SEF URL feature in admin panel do this? please help thanks...just a bit confused with this feature...
thanks again..
Quote from: whip_cracker on October 01, 2009, 12:38:46 AMIs there a reason why I can't uninstall this? Apparently it's failing under Subs.php.
From my understanding, there's possibly another mod that might be interfering with the Subs.php file as well. If that's the case, is there a list of known Mods that might cause this? Or is there a manual uninstall method?
NB - I don't want to get rid of it by any means, I just wanna know that I can uninstall it without any hassles if I ever have to.
Thanks :)
You have told me almost no information... please tell me what version of this mod you have, what SMF version, what other mods, exactly what error message is shown, etc.
And yes of course there is a manual install option... just go through and reverse all the changes.
Quote from: NenaGb on October 01, 2009, 01:26:47 AM
Can someone answer me this please...
will I need this to get the name of the title of the post into the url or will the SEF URL feature in admin panel do this? please help thanks...just a bit confused with this feature...
thanks again..
The default SMF SEF URLs don't do that. This mod, or some of the others, will.
Quote from: Dannii on September 30, 2009, 11:44:24 PM
Does that actually fix the bug??
It wouldn't fix it but avoid it slightly. The problem only occurs once a user is logged in for the first time. Once logged in everything works well. Once a users logs out or gets logged out after the session times out if he's not logged in "forever" thats when the errors start. Since most users never log out anyway maybe making "forever" an automatic/default log in time frame most users will never see the error until they remove the cookie or something to that effect.
After installing the pretty url to newly smf 1.1.10 board i got this error .....
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Checked your server error log?
Just installed to my forum w/ no problems. Nice job! The URLs do look much, much nicer. :)
I have isntaled this manually.
But my RSS now isn`t display links in titles. Why?
Here is the link of URL: click (http://forum.psp-fanatik.ro/index.php?type=rss;action=.xml)
up
Don't spam my topic! Be patient, you bumped it less than 12 hours later!
My guess is you didn't make all the modifications you needed to. Go through and double check them all.
It works fine on my forum.
Thanks ;)
Quote from: Dannii on October 03, 2009, 09:54:42 AM
Don't spam my topic! Be patient, you bumped it less than 12 hours later!
My guess is you didn't make all the modifications you needed to. Go through and double check them all.
Norv made the modiffications... I thing he done it good.
I'm sure he did a great job, but he could have made a mistake too!
It´s true...
It works fine ;)
I have 2.0 RC 1.2. Could be these a problem?
No. The problem is almost certainly that some of the modifications were skipped. Have you double checked them all?
Do i have to parse the mod for what version?
2.0 RC1 will work for 2.0 RC1.2 :)
Dannii - we installed Pretty URLs afresh on SMF 2 RC 1.2 about a month, maybe 6 weeks ago after having run the SMF1 version for 6 months. It's running absolutely fine. Big ups to you for a great mod :)
Hello,
I've recently updated pretty urls from version 0.93 to RC 1.0, on my SMF 1.1.10
http://www.gsalcazar.altervista.org/
The first board (L'arte di fare la birra) is never accessible, while the others are..
Any suggestion?
You can edit a board's URL in the manage boards page. Remove the quote.
Quote from: Dannii on September 25, 2009, 11:28:48 PM
Quote from: anto74 on September 25, 2009, 11:50:58 AM
Hi Danii,
thanks for this beautiful Mod!
I installed now in my forum macroforum.org
Now the mod is disabled: before activate it, i must create htaccess?
In htaccess file, i must write ......?
Sorry for my english
Thanks
Antonio
This mod will create the .htaccess file for you.
Quote from: massdog.com on September 25, 2009, 01:26:46 PM
Quote from: Dannii on September 23, 2009, 05:15:08 AM
massdog.com, can you reverse the 1.1.9 upgrade patch, uninstall Pretty urls, then upgrade to 1.1.9 again?
Alternatively, how many other mods do you have? You could always upload fresh files from the full upgrade package.
devil_jin, emulate 2.0 RC1.
only 4 packages
1. Fight Spam 0.1 [ Uninstall ] [ List Files ] [ Delete ]
2. Pretty URLs 0.9.3 [ Uninstall ] [ List Files ] [ Delete ]
3. Hide SMF Version 1.0.3c [ Uninstall ] [ List Files ] [ Delete ]
4. SimplePortal
iam afraid if i got error when i tried to downrgade and upgrade again
WHAT error?
Quote from: sombra on September 25, 2009, 01:32:03 PM
i have smf 2.0 rc1.2 and pretty url Pretty URLs 0.9.1
i want to update it but what are the benefits and how can i do it i dont know alot about this stuff and a little hand will help
Read the changelog to find all the improvements, and there are many.
To upgrade, emulate SMF 2.0 RC1, uninstall 0.9.1 first, and then install 1.0RC.
Quote from: [Daydreamer] on September 25, 2009, 02:16:05 PM
I don't have problem for for links in email. And i change subs-posts.php. I can send email now.
Whatyou mean by svn? You mean using revision packages or creating one? =)
I make all of my changes and commit them to svn before making the down packages. If you had experience with svn you could add your filters to it.
this is my subs.php file
i got an error when i tried to uninstall
Hi Danni,
do you plan to make a solution for using quotes (') in topic titles?
It is hard to make users understand to avoid it :S
If they do, I need to disable prettyurl, edit topic make a maintenace
and enable pretty again, but sometimes it is not enough, I need to
delete the topic and repost it with a proper title.
Regards
sipiatti
That error was occured on my localhost machine.....then i tried it on server instead of localmachine everything done flawless now all the url's are looking pretty good then before but after installing pretty url on smf 1.1.10 AjaxChat Integration (latest version 3.2.1) stopped working ... it cant send any messeges into shoutbox....if i untick the option of boards in pretty url settings......shoutbox works flawless ...
pls suggest me how both can work simultaneously.....
Quote from: massdog.com on October 06, 2009, 12:15:15 AM
this is my subs.php file
i got an error when i tried to uninstall
Please just tell me exactly what error you get.
Quote from: sipiatti on October 06, 2009, 05:06:16 AM
Hi Danni,
do you plan to make a solution for using quotes (') in topic titles?
It is hard to make users understand to avoid it :S
If they do, I need to disable prettyurl, edit topic make a maintenace
and enable pretty again, but sometimes it is not enough, I need to
delete the topic and repost it with a proper title.
Regards
sipiatti
They
should work fine! I've worked long and hard to make them work. Are you using UTF-8? Anyways, I might just remove them all in the next version.
Quote from: magnitude2007 on October 06, 2009, 07:40:48 AM
That error was occured on my localhost machine.....then i tried it on server instead of localmachine everything done flawless now all the url's are looking pretty good then before but after installing pretty url on smf 1.1.10 AjaxChat Integration (latest version 3.2.1) stopped working ... it cant send any messeges into shoutbox....if i untick the option of boards in pretty url settings......shoutbox works flawless ...
pls suggest me how both can work simultaneously.....
Fix it so that it doesn't use relative URLs. If that's too technical, ask the mod author to do so.
what shud i need to fix ?? pretty url mod or ajax shoutbox mod ?
The shoutbox mod. Somewhere it is using relative URLs... they need to be changed to absolute URLs.
thanks dannii......this is nice mod...it has solved the seo issues which i was facing since 2 months.
mod began to fail .. sample blank sheets on various topics
http://arkangeles.org/web/foro/ohchicas/oosaraoo-new-arkangel-lady-sexy-o-noo/
http://arkangeles.org/web/foro/ohchicas/en-la-playa/
http://arkangeles.org/web/foro/ohchicas/chikas-de-la-red/
and many more that happened is that?
Please check your error logs, both SMF's and your server's.
Quote from: Dannii on October 06, 2009, 09:22:04 AM
Quote from: sipiatti on October 06, 2009, 05:06:16 AM
do you plan to make a solution for using quotes (') in topic titles?
They should work fine! I've worked long and hard to make them work. Are you using UTF-8? Anyways, I might just remove them all in the next version.
Sounds good. Anyway I have problems with it with lighttpd. Guess it should have a lighttpd rewriting issue not prettyurl's problem.
Is there anybody out there with lighttpd+prettyurl experiences?
Quote from: Dannii on October 05, 2009, 09:52:55 AM
You can edit a board's URL in the manage boards page. Remove the quote.
works great now, thank you for the hint! ;D
btw, I cant' delete the older key / entry... is it right?
sipiatti, yeah it could be a problem with lighttpd. I have no experience with it unfortunately.
Paolo Bitta, once you change the primary URL there's no reason why you couldn't.
Quote from: Dannii on October 07, 2009, 05:47:04 AM
sipiatti, yeah it could be a problem with lighttpd. I have no experience with it unfortunately.
Paolo Bitta, once you change the primary URL there's no reason why you couldn't.
sorry, I meant that the "Delete" action doesn't work...
Why? What's it do?
Anyways... there's no problem with just leaving it there.
someone have sitemap with pretty urls?
I am using Matt Zuba's Sitemap mod Version 2.0.0 with Pretty URLs with no problems
Quote from: Dannii on October 06, 2009, 09:22:04 AM
Quote from: massdog.com on October 06, 2009, 12:15:15 AM
this is my subs.php file
i got an error when i tried to uninstall
Please just tell me exactly what error you get.
Error uninstall test
Quote from: sipiatti on October 06, 2009, 05:06:16 AM
Hi Danni,
do you plan to make a solution for using quotes (') in topic titles?
It is hard to make users understand to avoid it :S
If they do, I need to disable prettyurl, edit topic make a maintenace
and enable pretty again, but sometimes it is not enough, I need to
delete the topic and repost it with a proper title.
Regards
sipiatti
They should work fine! I've worked long and hard to make them work. Are you using UTF-8? Anyways, I might just remove them all in the next version.
Quote from: magnitude2007 on October 06, 2009, 07:40:48 AM
That error was occured on my localhost machine.....then i tried it on server instead of localmachine everything done flawless now all the url's are looking pretty good then before but after installing pretty url on smf 1.1.10 AjaxChat Integration (latest version 3.2.1) stopped working ... it cant send any messeges into shoutbox....if i untick the option of boards in pretty url settings......shoutbox works flawless ...
pls suggest me how both can work simultaneously.....
Fix it so that it doesn't use relative URLs. If that's too technical, ask the mod author to do so.
if have select Rewrite Action URLs (ie, index.php?action=something) and you have SMF Arcade 2.0.18
then you can't submit scores ( 404 Not Found)
the url is http://www.***.***/forum/arcade/index.php?action=arcade for submiting a score
any solve of this?
massdog.com, can you show me a screenshot then?
dannys, install the extras package too, it has an arcade filter you can enable.
How to make Pretty URLs work with http://custom.simplemachines.org/mods/index.php?mod=755 (http://custom.simplemachines.org/mods/index.php?mod=755) (display Pretty URLs in sitemap)?
Maybe you could try Matt Zuba's Sitemap mod.
Or add this to the end of XMLDisplay():
// Prettify any URLs
if (!empty($modSettings['pretty_enable_filters']))
{
$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';
}
Quote from: Dannii on October 07, 2009, 11:18:29 AM
massdog.com, can you show me a screenshot then?
dannys, install the extras package too, it has an arcade filter you can enable.
here is my ss and my subs.php file
I suggest you go ahead with the uninstallation, and then attach your Subs.php after that and I'll fix it for you.
Quote from: Dannii on October 08, 2009, 09:31:51 AM
I suggest you go ahead with the uninstallation, and then attach your Subs.php after that and I'll fix it for you.
i have already uninstall and upgrade to 1.1.10
but why do i cant see pretty url setting from admin area?
Your modifications.english.php file must be corrupted.
Quote from: Dannii on October 08, 2009, 10:36:52 AM
Your modifications.english.php file must be corrupted.
how to make it correct?
Dannii: This solution does not work. Look at http://niezwyczajni.co.cc/sitemap.xml (http://niezwyczajni.co.cc/sitemap.xml).
And http://custom.simplemachines.org/mods/index.php?mod=755 is already made by Matt Zuba (look at his website).
massdog.com, post it here for me...
pkkm, how can I help if you won't show me the not working sitemap?
And yes so it is too, sorry.
Quote from: Dannii on October 08, 2009, 11:47:10 PM
massdog.com, post it here for me...
pkkm, how can I help if you won't show me the not working sitemap?
And yes so it is too, sorry.
I have 71 backlinks to my forum but would like to move to using this mod for my forum urls. Can I assume the old backlinks using the old url format will no longer work after this mod is applied? thanks.
Quote from: Danniipkkm, how can I help if you won't show me the not working sitemap?
I've got nevest Sitemap and newest Pretty URLs installed. I re-installed them, and didn't modify.
I've got SMF 2.0 RC1-1.
I've posted link to my sitemap above.
Mods:
http://custom.simplemachines.org/mods/index.php?mod=755http://custom.simplemachines.org/mods/index.php?mod=636
jmanpa, they will work.
Hi all..
Mod writer.. Is there a way to change this to display display names and not account names ?? Also once installed. If and when uninstall does it refer back to the old way or do we have to change the .hta file on our sever to make it switch back ??
Thxs in advanced for any and all help. I havent looked much into it yet or had time to ..to see if i could get it or figure it out to change so thought before hand to ask before i enabled it.
Quote from: Dannii on October 04, 2009, 10:35:32 AM
No. The problem is almost certainly that some of the modifications were skipped. Have you double checked them all?
Yes, i double check them. They are ok.
What should i do?
massdog.com, nothing is wrong with that language file. I'm not sure why you're having the problems you are.
Quote from: jmanpa on October 09, 2009, 02:25:16 PM
I have 71 backlinks to my forum but would like to move to using this mod for my forum urls. Can I assume the old backlinks using the old url format will no longer work after this mod is applied? thanks.
They will be 301 redirected.
pkkm, if you make the change I suggested will it work?
Quote from: B.SkiLLs on October 09, 2009, 06:22:13 PM
Hi all..
Mod writer.. Is there a way to change this to display display names and not account names ?? Also once installed. If and when uninstall does it refer back to the old way or do we have to change the .hta file on our sever to make it switch back ??
Thxs in advanced for any and all help. I havent looked much into it yet or had time to ..to see if i could get it or figure it out to change so thought before hand to ask before i enabled it.
It is possible to write filters for anything you want. I'm not going to do it though.
kizko, can you send me your Sources/News.php
Quote from: Dannii on October 11, 2009, 09:56:27 PM
Quote from: B.SkiLLs on October 09, 2009, 06:22:13 PM
Hi all..
Mod writer.. Is there a way to change this to display display names and not account names ?? Also once installed. If and when uninstall does it refer back to the old way or do we have to change the .hta file on our sever to make it switch back ??
Thxs in advanced for any and all help. I havent looked much into it yet or had time to ..to see if i could get it or figure it out to change so thought before hand to ask before i enabled it.
It is possible to write filters for anything you want. I'm not going to do it though.
excuse me.......... ??
Sorry but this still did not answer my questions on your mod. That would be nice to have some help on.
So.. is there a way to have it display display names instead of account names ?? ?
As just like it says in the text file of it that members might not like this plus im not sure if i do as it shows account names which can be unsafe as people can see there log in names then instead of there display names.
also as i asked. Is there a way to change the urls back or does it auto change them permanent if we decide not to use. ?? How would we do that if we do not want to use the mod anymore or does it auto change back once uninstalled ??
Thanks for any and all help.
Quote from: Dannii on June 22, 2009, 01:02:34 PM
Change this line in Themes/default/GenericControls.template.php:
<a href="javascript:void(0);" onclick="window.open(\'http://www.postimage.org/index.php?mode=smf&lang=english&forumurl=\' + escape(document.location.href), \'_imagehost\', \'resizable=yes,width=500,height=400\');return false;">Ajouter une image a mon message</a>
<a href="javascript:void(0);" onclick="window.open(\'http://www.postimage.org/index.php?mode=smf&lang=english&forumurl=' . $scripturl . '\', \'_imagehost\', \'resizable=yes,width=500,height=400\');return false;">Ajouter une image a mon message</a>
Hi!
This works but with not automated inserting the picturelink in the post. Is threre a solution for SImple Image Upload and Pretts URL?
Cheers, Peter
B.SkiLLs, as I said you'd have to write a custom filter to do that.
If you uninstall the mod, install the reverter package which will redirect them to the normal SMF URLs.
bbq-pepper, there are probably other relative URLs which you'll have to fix in a similar way.
please help me :D
massdog.com please PM me FTP details for your website and I'll try to have a look at it when I have time.
Here is it:
kizko, as I said, a change was made incorrectly. You can fix it by doing this:
$val = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$/e', '\'\' . $scripturl . \'/\' . strtr(\'$1\', \'&;=\', \'//,\') . \'.html$2\'', $val);
return $val; ***/
$val = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$/e', '\'\' . $scripturl . \'/\' . strtr(\'$1\', \'&;=\', \'//,\') . \'.html$2\'', $val); ***/
return $val;
Quote from: Dannii on October 13, 2009, 07:31:36 PM
kizko, as I said, a change was made incorrectly. You can fix it by doing this:
$val = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$/e', '\'\' . $scripturl . \'/\' . strtr(\'$1\', \'&;=\', \'//,\') . \'.html$2\'', $val);
return $val; ***/
$val = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$/e', '\'\' . $scripturl . \'/\' . strtr(\'$1\', \'&;=\', \'//,\') . \'.html$2\'', $val); ***/
return $val;
That worked!! ++
Thanks a lot!
Quote from: Dannii on October 12, 2009, 07:17:56 PM
B.SkiLLs, as I said you'd have to write a custom filter to do that.
If you uninstall the mod, install the reverter package which will redirect them to the normal SMF URLs.
bbq-pepper, there are probably other relative URLs which you'll have to fix in a similar way.
oohh ok i think i got you and understand what you mean now. You mean for the display name part on that one.
So would that be easy for you to do or me or who ever ?? or is there a lot to that to change the mod (either you or me or whatever) to make it show the display names instead ??
On the reverter. Do you absolutely need that to do back to the default ones and MUST have it always installed to do that and go back from now on once you install yours ??
Meaning like after you install yours and if you do not want it no more or doesn't work no more or being made anymore.. that you ALWAYS have to have them reverter mod install from then on out forever ????
That is an important must know before i fully enable. I have been waiting to enable until i find these out. I am also getting error in the error section with it being install and not even in use yet.
Thanks
Quote from: dailytalk on September 05, 2009, 05:20:13 AM
Hi I have the following problem(even with the newest version) :
Usually when a guest is reading a topic and will login in order to write an answer in that specific topic he is after the login directly in the topic he was just reading.
But when I have activated the pretty url function the guest is not redirected directly to the topic he was just reading. He is redirected to the start forum page and has therefore from there to search for the topic he was just reading. This is bad for forums with many topics.
How can I fix that problem?
B.SkiLLs, I have neither the time nor desire to make the changes you are suggestion. You would have to do it all yourself sorry. Though if you do I would be happy to include it in updated packages.
The profile filter was a quick hack really... all the code and queries for accessing profiles by usernames is already in smf: http://www.simplemachines.org/community/index.php?action=profile;user=eldacar To change it to use display names would probably require changing queries etc.
The reverter isn't needed, but without it any incoming links to your prettified pages won't be rewritten.
dailytalk, I don't know how to fix it. Not a big problem in my opinion honestly, though I guess it would be nice to fix. Unfortuately I don't have a lot of time.
Quote from: Dannii on October 13, 2009, 03:50:19 AM
massdog.com please PM me FTP details for your website and I'll try to have a look at it when I have time.
iam only moderator and i cant login into ftp.
what kind of files do u need?
i will send request
I don't know... a lot of files could be the cause of the problem. Maybe the forum owner could post here?
Hi!
I don't remember if i've already asked this question, and i've searched but without great results, sorry for this.
Is simple, is there any way to fix directly all custom action links (from custom action mod)?
I'm just curious if anyone has looked into how much work it would be to adapt Pretty URL's to 2.0 RC2 yet? Havent had the time to look into it yet myself due to time constraints, but this is the only show stopper mod i need to convert a few sites to RC2.
Dark-Wolf, not that I know of sorry.
ShadowMaster, I haven't looked at it yet, been very busy with uni too. I expect a few changes will be required with the new theme.
Ok Dannii, thanks :)
Hi Danii
I have just upgraded to smf 2.0 and tried to install pretty urls but i got errors.
"""
The package you are trying to download or install is either corrupt or not compatible with this version of SMF."""
and i downloaded the mod from here
http://custom.simplemachines.org/mods/index.php?mod=636
emulating didn't work by the way.
thank you
hello,
i have a strange problem i have not come across with pretty urls before.
when enabled all members are logged out when they try to access anything that has been rewritten.
so members can navigate profiles and actions. but when navigating boards and topics they are taken to a log in screen.
as a guest there is no problem to navigate the boards and topics. ???
Links please.
I was replying to ellion...
Quote from: Dannii on October 21, 2009, 04:43:42 AM
Links please.
http://webtradeforum.net
i have disabled url rewriting till i figure this out.
oh, i just noticed something else.
following that link i get redirected to a PHPSESID with a 404 error
To everyone: I will be unable to provide support for this mod for the next few weeks, I have far too much work to do before the end of semester. Please remember to check the trouble shooting page. I may drop in and see if I can help anyone who desperately needs it.
Hello,
after migrating from Apache to Cherokee prettyurls work just fine for me with settings from lighthttpd :)
All works fine.. but Profiles.
Heres my rewrite rule:
Regex:
^/forum/profile/([^/]+)/(?:\?(.*))?$
Substitution:
forum/index.php?pretty;action=profile;u=$1;$2
Any Ideas?
Regards
Sven
I found my problem. The mod is not competible with smf SMF 2.0 RC1.2 yet. Hope it will be soon.
thanks
Help please! Uninstall the version 0.93 and then installed the version 1.0RC but at the end gives me this error:
An error occurred!
Could not load template 'pretty_install'.
(SMF 1.1.10)
What should I do? Thanks in advance!
Looks like the files weren't copied properly.
Hello!
Simple Image Upload does not work with the mod pretty url
I have an error message
Not Found
The requested URL /general-discussion/retrtretre/addform.html was not found on this server.
Quote from: Dannii on October 25, 2009, 01:20:52 AM
Looks like the files weren't copied properly.
have u edit my sub english.php?
:'( :'(
nice mod, gonna try it 8)
Hi Guys
Ive just installed this mod at first i had a sources/display.php test failed so manually changed that file & installed the rest through the package manager
But the forum error logs contain
8: Undefined index: pretty
File: /var/www/html/forum/Sources/Display.php
Line: 77
I'm running smf 1.1.10
Any Ideas?
Pretty URL 1.0RC no es compatible with SMF 2.0 RC1.2?
Quote from: Pandos on October 21, 2009, 06:46:20 PM
Hello,
after migrating from Apache to Cherokee prettyurls work just fine for me with settings from lighthttpd :)
All works fine.. but Profiles.
Heres my rewrite rule:
Regex:
^/forum/profile/([^/]+)/(?:\?(.*))?$
Substitution:
forum/index.php?pretty;action=profile;u=$1;$2
Any Ideas?
Regards
Sven
Any Ideas?
Regards
Sven
Hello there
I installed this mod few weeks ago and it works perfectly well (except I had to edit manually .htaccess file). All topics, boards and so on works correctly except the RSS feed - it gives me 403 Forbidden error from Apache.
Forum is http://forum-gizycko.pl
Thank you in advance for any ideas how can I fix it.
best regards
L
PS: sorry for my english.
Quote from: Alyen on October 26, 2009, 11:22:46 AM
Pretty URL 1.0RC no es compatible with SMF 2.0 RC1.2?
http://www.simplemachines.org/community/index.php?topic=146969.msg2290725#msg2290725 ;)
Could someone tell me how to change the mod so it will do :
http://www.forum.com/the_actual_post/
instead of :
http://www.forum.com/the_board/the_actual_post/
I don't mind if I don't have pretty board and action URL's.
Thank you in advanced!
Is it possible to enable this mod to work on certain boards only?
Mayhem30, for your first question you will have to edit the topics filter, but I don't have the time to show you how.
For the second, no.
is it works at RC1.2?
RC1.2 yes if you emulate RC1. RC2 no.
If I move a topic, what is the easiest way to clear the cache?
Hello there.
I'm using RC1.2.
I have installed it manualy but I got an error:
Enko Reverse chronological order of list Hoy a las 10:06:24
Apply Filter: Only show the error messages of this IP address 190.86.247.112 Apply Filter: Only show the error messages of this session 2fcf4cb6c9cfff56a4373deea4823c3b
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL http://www.valkyries-heroes.com/foro/index.php?pretty;board=general-discussion;topic=welcome-to-smf!.0
Apply Filter: Only show the errors with the same message
8: Undefined index: yim
Apply Filter: Only show the errors from this file
Archivo: /home/content/p/a/b/pablofgc/html/elder/chadow/valkyrie/foro/Themes/RuNet/Display.template.php (main sub template - eval?)
Línea: 610
Apply Filter: Only show the error messages of this member Enko Reverse chronological order of list Hoy a las 10:06:24
Apply Filter: Only show the error messages of this IP address 190.86.247.112 Apply Filter: Only show the error messages of this session 2fcf4cb6c9cfff56a4373deea4823c3b
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL http://www.valkyries-heroes.com/foro/index.php?pretty;board=general-discussion;topic=welcome-to-smf!.0
Apply Filter: Only show the errors with the same message
8: Undefined index: aim
Apply Filter: Only show the errors from this file
Archivo: /home/content/p/a/b/pablofgc/html/elder/chadow/valkyrie/foro/Themes/RuNet/Display.template.php (main sub template - eval?)
Línea: 609
Apply Filter: Only show the error messages of this member Enko Reverse chronological order of list Hoy a las 10:06:24
Apply Filter: Only show the error messages of this IP address 190.86.247.112 Apply Filter: Only show the error messages of this session 2fcf4cb6c9cfff56a4373deea4823c3b
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL http://www.valkyries-heroes.com/foro/index.php?pretty;board=general-discussion;topic=welcome-to-smf!.0
Apply Filter: Only show the errors with the same message
8: Undefined index: msn
Apply Filter: Only show the errors from this file
Archivo: /home/content/p/a/b/pablofgc/html/elder/chadow/valkyrie/foro/Themes/RuNet/Display.template.php (main sub template - eval?)
Línea: 608
Apply Filter: Only show the error messages of this member Enko Reverse chronological order of list Hoy a las 10:06:23
Apply Filter: Only show the error messages of this IP address 190.86.247.112 Apply Filter: Only show the error messages of this session 2fcf4cb6c9cfff56a4373deea4823c3b
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL http://www.valkyries-heroes.com/foro/index.php?pretty;board=general-discussion;topic=welcome-to-smf!.0
Apply Filter: Only show the errors with the same message
8: Undefined index: icq
Apply Filter: Only show the errors from this file
Archivo: /home/content/p/a/b/pablofgc/html/elder/chadow/valkyrie/foro/Themes/RuNet/Display.template.php (main sub template - eval?)
Línea: 607
Apply Filter: Only show the error messages of this member Enko Reverse chronological order of list Hoy a las 10:06:23
Apply Filter: Only show the error messages of this IP address 190.86.247.112 Apply Filter: Only show the error messages of this session 2fcf4cb6c9cfff56a4373deea4823c3b
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL http://www.valkyries-heroes.com/foro/index.php?pretty;board=general-discussion;topic=welcome-to-smf!.0
Apply Filter: Only show the errors with the same message
8: Undefined index: karma
Apply Filter: Only show the errors from this file
Archivo: /home/content/p/a/b/pablofgc/html/elder/chadow/valkyrie/foro/Themes/RuNet/Display.template.php (main sub template - eval?)
Línea: 555
How can I fix it?
Thanks in advance
You must have made some modifications incorrectly. Double check them all, especially the ones in Display.php.
Mayhem30, run maintenance.
Thank you! :)
Quote from: Dannii on October 29, 2009, 01:44:01 AM
You must have made some modifications incorrectly. Double check them all, especially the ones in Display.php.
Mayhem30, run maintenance.
Thank you for you so fast reply.
I will check the files of the installation.
Another question, is possible to make a pack for just install from ''Download Packs'' for RC1.2? Actually it is only for RC1.1 and I had to installed it manually T.T
Sorry for my english and thank you again
Hello.
I have installed again this mod in RC1.2.
When I have used the default theme ''SMF Default Theme - Core'' I did not get any error. It's works 100%!
but
When I change the theme by ''RuNeT'' I got a lot of errors only in ''Topic''.
EXAMPLE:
domain.com/forums/general-discussion/welcome-to-smf!/ -> I got a lot of errors.
domain.com/forums/profile/Enko/ -> I dont have any errors.
domain.com/unreadreplies -> I dont have any errors.
The errors are in ''Themes/RuNet/Display.template.php''
Who can fix it?
these are my errors -> http://www.simplemachines.org/community/index.php?topic=146969.msg2332144#msg2332144
I have pretty URL on SMF1.1.0, from the Admin panel I cant' backup the database. It starts downloading and a 0Kb file is what I get.
Can anyone tell something about what might be wrong here.... ??
Arkino, then your theme must be buggy.
j_jindal1, not a problem with this mod. Ask for help elsewhere please.
I'm sorry but I don't have the time. All I can suggest is trying to reinstall it again from scratch.
Hi. I have yesterday installed SMF 1.1.10 and installed PrettyUrls 1.0RC.
Everything went ok, except one thing. Whe I go to Administration -> Pretty URLs end enable Enable URL rewriting in settings, first seems to work, but as soon as I go to the main index page the urls are not rewriten and the Enable URL rewriting option stays unchecked in the Pretty URLs settings panel.
Aditional info.:
Forum version: SMF 1.1.10 (more detailed)
Current SMF version: SMF 1.1.10
PHP version: 5.2.6
MySQL version: 5.0.45-log
Server version: Apache
Please help, thanks in advance.
Quote from: Dannii on October 30, 2009, 11:24:31 PM
Arkino, then your theme must be buggy.
Yup, I changed my theme and I do not have the same error.
thank you
phoenix011, did you get the test page? Perhaps try disabling and enabling it again.
Hi.
Yes the test page works perfect. What I did not noticed was the extra button down there to save the settings "again". And it works now! Great! I feel myself so stupid now. :(
Thanks this wonderful component.
Haha, we've all made mistakes like that! Great to hear it's working for you now.
Just one question ;) It is possible to localize url like this one?:
http://forum.en-oldalam.hu/pm/ to http://forum.en-oldalam.hu/privat-uzenetek/
As the mod is now, no sorry.
Theoretically it is possible for sure, it would just take a lot of work and a lot of new code.
How can I edit safely the url e.g. when I have a topic called "general info" and I rename it to "informations" the seo url remains "general-info".
I have found something in the smf_settings and replaced it, it worked somehow, but it throw a unserialize error. Is this way safe to edit old url's?
Thanks.
HI !
Thanks a lot for the mod, it's exactly what I was searching for !
Unfortunately, it doesn't work for me T_T
I have the version 1.1.10 of SMF and I get this :
Notice: Undefined index: pretty_action_array in /mnt/144/.../index.php on line 85
Notice: unserialize() [function.unserialize]: Argument is not a string in /mnt/144/.../index.php on line 85
Notice: Undefined index: pretty_board_urls in /mnt/144/.../index.php on line 86
Notice: unserialize() [function.unserialize]: Argument is not a string in /mnt/144/.../index.php on line 86
Could you help me please ? :x
phoenix011, I'm not exactly sure what you're doing but it's unlikely to be safe. If you need to change topic URLs, and I discourage this, change the entry in the pretty_topic_urls table, and then run maintenance.
Kisa, when do you get those errors? Are you sure all the modifications were made correctly?
Sorry, must bump my request again. This is the only thing that stops me from changing my server from Apache to Cherokee:
Hello,
after migrating from Apache to Cherokee prettyurls work just fine for me with settings from lighthttpd
All works fine.. but Profiles.
Heres my rewrite rule:
Regex:
^/forum/profile/([^/]+)/(?:\?(.*))?$
Substitution:
forum/index.php?pretty;action=profile;u=$1;$2
Any Ideas?
Regards
Sven
Quote from: Kisa on November 01, 2009, 04:08:29 PM
HI !
Thanks a lot for the mod, it's exactly what I was searching for !
Unfortunately, it doesn't work for me T_T
I have the version 1.1.10 of SMF and I get this :
Notice: Undefined index: pretty_action_array in /mnt/144/.../index.php on line 85
Notice: unserialize() [function.unserialize]: Argument is not a string in /mnt/144/.../index.php on line 85
Notice: Undefined index: pretty_board_urls in /mnt/144/.../index.php on line 86
Notice: unserialize() [function.unserialize]: Argument is not a string in /mnt/144/.../index.php on line 86
Could you help me please ? :x
Just in time :) I got the same error message when I was changing pretty_board_lookup and pretty_board_urls rows in smf_settings table.
Quote from: Dannii on November 01, 2009, 09:46:10 PM
phoenix011, I'm not exactly sure what you're doing but it's unlikely to be safe. If you need to change topic URLs, and I discourage this, change the entry in the pretty_topic_urls table, and then run maintenance.
Kisa, when do you get those errors? Are you sure all the modifications were made correctly?
Yes, I did, but as soon as I run the maintenance, the url was changed from informaciok back to altalanos which was originaly :(
Quote from: Dannii on November 01, 2009, 09:46:10 PM
phoenix011, I'm not exactly sure what you're doing but it's unlikely to be safe. ...
Aaa, thanks. I have found it today. It is the Pretty URLs in the admin->forum section. Thats what I was searching for.
Pandos, I'm sorry I don't have any experience with it, you'll need to ask for help from someone else who has used that httpd.
milicik, does the mod itself work? Do you ever get 404 errors?
phoenix011, glad you found it!
Yes the mod is working , but i get on every user click.
[Tue Nov 03 19:29:46 2009] [error] [client 188.2.235.xxx] File does not exist: /home/piksla/public_html/kolekcije-filmova, referer: http://xxx.com/kolekcije-filmova/western-kolekcija/
[Tue Nov 03 19:29:45 2009] [error] [client 80.99.33.209] File does not exist: /home/xxx/public_html/plus-18, referer: http://xxx.com/plus-18/soft-erotic/30/
[Tue Nov 03 19:29:32 2009] [error] [client 188.2.235.xxx] File does not exist: /home/xxx/public_html/kolekcije-filmova, referer: http://xxx.com/kolekcije-filmova/amateur-porn-star-killer-1-2-dvdrip-xvid/
[Tue Nov 03 19:29:32 2009] [error] [client 188.2.235.xxx] File does not exist: /home/xxx/public_html/kolekcije-filmova, referer: http://xxx.com/kolekcije-filmova/amateur-porn-star-killer-1-2-dvdrip-xvid/
Give me full real links please, or I can't help you.
My forum pages where topic with ' " + or some special chars in topic title went blank. I have to disable "Rewrite Topic URLs" and edit topicname and re-enable "Rewrite Topic URLs" then my forum page becomes available again.
And for a username like MaD+`__ SmiTH.- .
When I click
http://www.xgn.in.th/community/profile/MaD+`__ SmiTH.-/
The link in address bar will be changed to
http://www.xgn.in.th/community/profile/MaD%2B%60__%20%24miTH.-/
And then we cannot access that page.
I wonder of we can stripe off some characters from the rewrited url. If there's a way, pleae tell me how to.
Thank you for a great mod, I've been using this mod for a long time and will be using it more more more more and more on all of my SMF sites.
Quote from: Dannii on November 04, 2009, 09:36:34 AM
Give me full real links please, or I can't help you.
piksla.com
Dark-Master, that's weird, they shouldn't be changed like that. If you remove those lines from the big array in Subs-PrettyUrls.php and empty the pretty_topic_urls table you should be fine.
milicik, that's a domain, not a full URL.
Quote from: Dannii on November 06, 2009, 08:06:22 PM
Dark-Master, that's weird, they shouldn't be changed like that. If you remove those lines from the big array in Subs-PrettyUrls.php and empty the pretty_topic_urls table you should be fine.
milicik, that's a domain, not a full URL.
Thank you.
I will try and will tell you how it will be going.
Hey danni
after installation
every thing is fine
exept
i prefer www.safadsoft.com
but links apear
safadsoft.com
and when i enter a board
i cant go to page 2 3 4 etc
I'd like to make a suggestion. Why not simplify the Pretty URL's and store everything in one table?
Call the table "SMF_Pretty_URLs" - inside that table, name one row "ID" and the other "Pretty_URL".
The row "ID" stores the topic, message or board ID ---- the row "Pretty_URL" stores the "Pretty URL" for it.
A lot of forums have millions of posts and there is bound to be some duplicate subjects.
You can solve that by doing this :
www.mysite.com/forum/<ID>/testing_software_out/
www.mysite.com/forum/3281/testing_software_out/
That way we can have subject titles that are identical - and still not lose out on the SEO advantages.
Last but not least, if we do any modifications, we don't have to flush the cache (via maintenance) and then load up phpmyadmin for fix the URL in the other table.
Quote from: SAFAD on November 07, 2009, 04:34:12 AM
Hey danni
after installation
every thing is fine
exept
i prefer www.safadsoft.com
but links apear
safadsoft.com
and when i enter a board
i cant go to page 2 3 4 etc
Fix $boardurl in Settings.php and run maintenance.
Quote from: Mayhem30 on November 08, 2009, 01:24:26 AM
I'd like to make a suggestion. Why not simplify the Pretty URL's and store everything in one table?
Call the table "SMF_Pretty_URLs" - inside that table, name one row "ID" and the other "Pretty_URL".
The row "ID" stores the topic, message or board ID ---- the row "Pretty_URL" stores the "Pretty URL" for it.
A lot of forums have millions of posts and there is bound to be some duplicate subjects.
You can solve that by doing this :
www.mysite.com/forum/<ID>/testing_software_out/
www.mysite.com/forum/3281/testing_software_out/
That way we can have subject titles that are identical - and still not lose out on the SEO advantages.
Last but not least, if we do any modifications, we don't have to flush the cache (via maintenance) and then load up phpmyadmin for fix the URL in the other table.
I don't see how that has any advantages over what is being done now. And it's less flexible. And how would you determine what the number refers to? Is it a topic or board or profile or group or what?
TY Danniii
Hello!
A version for SMF 2.0 RC2 is provided for?
Yup will it work on RC2??
Quote from: Dannii on November 04, 2009, 09:36:34 AM
Give me full real links please, or I can't help you.
For example
[Mon Nov 09 15:21:04 2009] [error] [client 91.150.102.13] File does not exist: /home/piksla/public_html/filmovi-2001-2006, referer: http://piksla.com/filmovi-2001-2006/my-sisters-keeper-(2009)-cam-x264/
No it probably won't work on RC2 yet. I'm in the middle of exams now. You're all welcome to update it though!
milicik, do you ever actually get broken pages?
Quotemilicik, do you ever actually get broken pages?
No, but when i changed the host, on every page was 404,
and then I reenable pretty URL, and everything working.
But I still have errors in cpanel.
Hmm well I can't see anything that's actually broken. If you find pages that generate 404s, let me know again.
Quote from: Dannii on November 10, 2009, 10:51:43 PM
No it probably won't work on RC2 yet. I'm in the middle of exams now. You're all welcome to update it though!
I did test on a test forum and, no, it gave me a lot of errors ;) mostly on template files due to changes in the default theme.
Quote from: Dannii on November 11, 2009, 08:29:52 AM
Hmm well I can't see anything that's actually broken. If you find pages that generate 404s, let me know again.
But error log is fulling on every click.
See pls the atacment.
Well, http://piksla.com/programi and all the rest work. Find me a page that is actually broken and I might be able to help. Maybe your server is badly configured.
I just wanted to confirm something .. once the mod is installed and running ...
It is safe to clear all the contents from both tables? It appears I will need to do that when deleting posts or changing subject lines.
The 'maintence' feature only works to an extent - but if a posts subject is changed, the 'pretty url' remains to the old subject line.
URLs aren't supposed to change. But if you feel you must change them, it is safe to empty both tables. You can also just change the single row in pretty_topic_urls though, no need to empty it all.
Ok thank you .. I have a new problem now.
I completely uninstalled the mod and deleted the tables - then reinstalled the mod.
In my forum error log, I many many entries showing the same error :
Database Error: 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 ')' at line 3
File: /httpdocs/forum/Sources/PrettyUrls-Filters.php
Line: 267
SMF 1.1.0 - MySQL v5.1.39
Do the errors keep happening, or have they stopped? Do you have any broken pages?
I don't have any broken pages. The errors are all from google and yahoo bots - pages full of them.
All of them are the exact same error.
66.249.71.53
http://www.pogocheats.net/forum/index.php
Database Error: 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 ')' at line 3
File: /pogocheats.net/httpdocs/forum/Sources/PrettyUrls-Filters.php
Line: 267
Weird... well, if you can get the full query that would help. Otherwise I can't really do anything.
Danni, are we potting this to rc2 ? i managed to revert my version to 2.0 rc1 and installed the pretty because all my urls are written on it. then it started causing massive timeouts. i disabled it at the moment but ofcourse it wont help until i put it back. any custom edit for me to get it working again ?
Afro, try this mod for RC2 (by Yağız)
Slobodan Radosavljevic, you musn't have set the recycling board yet. Do that and it won't have an error.
Quote from: Dannii on November 13, 2009, 08:23:59 PM
Afro, try this mod for RC2 (by Yağız)
work great! thanks Dannii and Yağız ;)
Hi
I just tried installing 2.0RC on my forum htttp://www.windows7news.com/forum and it installed 'ok' but when I tried to go to the config page the site died and now I'm getting 404s. I tried deleting the package but that didn't restore the site - can you tell me please how do I get my forum back up?
Thanks
EB
I use pretty url and my urls appear in a similar format:
http://www.naijaclan.com/naijaclan/you-can-improve-your-memory!/msg982/?topicseen#msg982
How can this be changed to something more like: http://www.naijaclan.com/naijaclan/you-can-improve-your-memory.html
Any pointers please?
hi Dannii,
I have been upgraded the latest of SMF 2.0 RC2 and PrettyURLs 1-0RCb, then I clean cache but my Board always add duplicate board URL with core links of SMF.
Can you take a look at http://www.huongtinhyeu.net
Thanks
Everton, read the trouble shooting page.
remi_naija, write your own filters. You'll need to change the rewrite patterns, and also the callback functions. Check the wiki for more info.
saosangmo, I can't see anything wrong, everything works for me. Can you show me more precisely what is wrong?
If you click on top menu bar, every link will start with
http://www.huongtinhyeu.net/http://www.huongtinhyeu.net/mlist/
(but homepage)
It works like a charm! Thanks Danii and Yağız!
Quote from: Dannii on November 14, 2009, 06:32:20 AM
Everton, read the trouble shooting page.
Didn't find anything on there to help but fixed by running the upgrade.php script again. Thx for trying to help though!
Hi! Was Pretty Urls updated yesterday? What was changed and how should I apply the update? I should uninstall the previous version and install the new one?
As I see, the version is still 1.0RC. I have 1.0RC, but was installed half a year ago.
Thank you.
The new file is one by Yagiz, I haven't tested it myself, and just adds support for SMF 2.0 RC2.
I tried it on 4 sites, and it worked without any error.
Yeah I have no doubt it works fine! :)
I'll check it out myself and add it to the SVN (as well as do more bug fixes), but all in time. I'm busy working on my final two essays before I graduate. A little SMF mod is really not a priority for me! But it's great to have other people helping too now!
Quote from: Dannii on November 14, 2009, 06:32:20 AM
remi_naija, write your own filters. You'll need to change the rewrite patterns, and also the callback functions. Check the wiki for more info.
I have checked the wiki, sadly, can't figure it out. How exactly am I supposed to write my filters? Which files do I need to change?
hi Dannii,
I try to install the new SMF 2.0 RC2 and install your mod, but It still gets errors when I turn on 'Rewrite Action URLs'.
-saosangmo
Quote from: Dannii on November 13, 2009, 08:23:59 PM
Afro, try this mod for RC2 (by Yağız)
Slobodan Radosavljevic, you musn't have set the recycling board yet. Do that and it won't have an error.
returned this errors on installation
1. Execute Modification SMF2-0RC2/Sources.xml Modification parse error
2. Execute Modification SMF2-0RC2/Sources.xml Modification parse error
3. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
4. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
5. Execute Modification SMF2-0RC2/Themes.xml Modification parse error
6. Execute Modification SMF2-0RC2/Themes.xml Modification parse error
7. Execute Modification Languages.xml Modification parse error
8. Execute Modification Languages.xml Modification parse error
The mods is greate but I have an trouble with this mod!
I try to add some link in the themes like:
<a href="http://www.google.com?url=', $scripturl, '?topic=', $context['current_topic'], '">
after that, the mod remove all the part "http://www.google.com?url=" and lave the topic url! But I want the link with all the think I'm trying to write!
I have installed it on SMF 1.1.10 and after the AJAX Chat (this: http://custom.simplemachines.org/mods/index.php?mod=1319) dont work, i think is because the .htaccess if i delete the first 2 rewrites works chat, there is another patters that could be set on .htaccess to work pretty url and ajax chat at the same time?
It Still The Same
thank you bro for the mods,
i just installed on my board smf 2 rc2 it works fine (rewrite urls board,topics) .
unless testing rewrite url, it generate an error page in rewrite the action (help,member..) not important....
but flawless work. :D
Hello,
I have a problem after moving my site to a new URL. Originally I had SMF and this mod installed on a /Forum directory. After years of being oblivious to the damage the capital 'F' was doing I finally came to and moved the installation to /forum instead.
I have everything working, and the url's rewrite fine. But they are still rewriting to /Forum rather than /forum. So I get a 404, but if I manually put a lower case f in the link works fine.
I have already tried uninstalling the mod, deleting the tables, and reinstalling. However the problem persists.
Any thoughts on this one?
Thank you
Edit: Never mind I found it.
In the 'smf_settings' table I had to change the row called 'pretty_root_url' I just had to change the upper case 'F' to a lower case 'f'.
Quote from: Afro on November 14, 2009, 04:06:59 PM
returned this errors on installation
1. Execute Modification SMF2-0RC2/Sources.xml Modification parse error
2. Execute Modification SMF2-0RC2/Sources.xml Modification parse error
3. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
4. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
5. Execute Modification SMF2-0RC2/Themes.xml Modification parse error
6. Execute Modification SMF2-0RC2/Themes.xml Modification parse error
IDEM
Hi all,
Iam trying to put a custom word before the generated pretty urls in all topics of one of my subforum:
Example of what i want:
www . mydomain . com / forum / mycustomword- generated-pretty-url/
Can someone guide me..
Thanks in advance, regards.
(sorry for my english i hope u understand what i try to do)
The pretty url isn't working properly with the RC2.
I've made some of the changes manually and it worked until i tryed to create a new topic.
Then it's returned me an error.
Quote from: Atoa on November 18, 2009, 10:03:02 AM
The pretty url isn't working properly with the RC2.
I uninstalled old one when I was upgrading from RC1.2 to RC2; then installed new Pretty URL's to RC2.
It works properly, maybe better than the old one.
Quote from: Tonyaag on November 18, 2009, 08:37:20 AM
Hi all,
Iam trying to put a custom word before the generated pretty urls in all topics of one of my subforum:
Example of what i want:
www . mydomain . com / forum / mycustomword- generated-pretty-url/
Can someone guide me..
Thanks in advance, regards.
(sorry for my english i hope u understand what i try to do)
Well guys after hours of investigation(iam a noob) i done by my self here the code i modify for someone needs:
FILE: ../Sources/PrettyUrls-Filter.php
Find Line 259:
$pretty_text = substr(pretty_generate_url($row['subject']), 0, 70);
And replace with:
if ($row['id_board'] == '8' OR $row['id_board'] == '10' OR $row['id_board'] == '19' OR $row['id_board'] == '11') {
$pretty_text = 'MYCUSTOMWORD'.substr(pretty_generate_url($row['subject']), 0, 70);
}
else {$pretty_text = substr(pretty_generate_url($row['subject']), 0, 70);}
By the way Thanks all. ;-)
i wonder why i am getting all the .xml errors here.
Quote from: Afro on November 18, 2009, 07:00:45 PM
i wonder why i am getting all the .xml errors here.
I am waiting too, please! :-[
Everythink is ok , rewrite made but still using basic
http://www.birdenbire.co.cc/index.php?board=6.0
but , is ok too
http://www.birdenbire.co.cc/oyun/
Quote from: Tanshaydar on November 18, 2009, 11:00:49 AM
Quote from: Atoa on November 18, 2009, 10:03:02 AM
The pretty url isn't working properly with the RC2.
I uninstalled old one when I was upgrading from RC1.2 to RC2; then installed new Pretty URL's to RC2.
It works properly, maybe better than the old one.
Lol i didn't knew that there was an RC2 only version ;D
Will pretty urls mod redirect the urls that google already indexed to the new pretty urls?
thank you
Is there a way to limit overall length of pretty URL?
Afro, package manager error. Go ask for help in the SMF support boards.
nvcnvn, there's no reason why that shouldn't work. Have you tried escaping the full forum URL?
Miguel86, ask the chat mod author to use absolute URLs rather than relative URLs.
Tonyaag, perhaps you could edit the generatePrettyUrl() function from Subs-PrettyUrls.php, wait I see that's what you've done in a later post.
Antes, I don't understand your problem.
juliegreen, it will redirect topic and board URLs, but not actions or profiles.
kdenisk, topics have a maximum length of 80, boards don't, but then you can manually edit the board URLs if you need to.
@Dannii
the problem is forum not accepting PrettyURLs , still using /index.php?board=X.X ... but if you type manuel URLs ( like /oyun/ ) accepting too ...
make a little surf on my site : http://www.birdenbire.co.cc/index.php , you can see the problem too -PrettyURLs Active-
Everything looks fine to me...
Quote from: Dannii on November 20, 2009, 09:54:14 AM
Everything looks fine to me...
i'm really confused cause check sitemap XML : http://www.birdenbire.co.cc/index.php?action=sitemap;xml
Quote from: Dannii on November 20, 2009, 09:21:09 AM
kdenisk, topics have a maximum length of 80, boards don't, but then you can manually edit the board URLs if you need to.
But can I somehow change this value?
Antes, did you actually enable to mod in the Pretty URLs settings page?
kdenisk, change the 80 in this line from PrettyUrls-Filters.php to whatever you want:
$pretty_text = substr(pretty_generate_url($row['subject']), 0, 80);
How to modify prettyurl to not to prevent us from accessing our sub-directory
like this
http://www.xgn.in.th/community/articles/
That directiry is created by SMF Articles mod. I tried create another empty directories, still not able to access when prettyurl is enabled.
Thank you :)
@Dannii problem is about my browser ... solved with FireFox
Hi Danni,
I've just noticed this happening again. It appears the incorrect Pretty URL are always for SPAM posts which I have removed, it appears the when I remove a complete post, the dbase entry isn't being removed.
Manually deleting the Spam posts from the database has fixed it.
cheers,
Greg
Quote from: gregh on September 08, 2009, 11:08:49 AM
hi there,
I've been using PrettyURLS for sometime now, however have noticed that some URLs have completely the wrong description for the URL.
The 'wrong' final field seems to be associated with some SPAM posts that I have removed.
I have run Maintenance from the Admin section, but the problem still exists.
For example
http://www.pocketpcsoft.net/forum/pocketpcsoft-news/how-to-rip-and-edit-dvd-movies-to-other-video-formats/
The above URL links to a review with a completely different title, and the above 'how-to-rip' was a SPAM post I deleted yesterday.
Regards,
Greg
Quote from: Afro on November 14, 2009, 04:06:59 PM
Quote from: Dannii on November 13, 2009, 08:23:59 PM
Afro, try this mod for RC2 (by Yağız)
Slobodan Radosavljevic, you musn't have set the recycling board yet. Do that and it won't have an error.
returned this errors on installation
1. Execute Modification SMF2-0RC2/Sources.xml Modification parse error
2. Execute Modification SMF2-0RC2/Sources.xml Modification parse error
3. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
4. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
5. Execute Modification SMF2-0RC2/Themes.xml Modification parse error
6. Execute Modification SMF2-0RC2/Themes.xml Modification parse error
7. Execute Modification Languages.xml Modification parse error
8. Execute Modification Languages.xml Modification parse error
Do it Manual. Good Luck!
Using the lastest version and works just as it should do - many thanks for that :) But I'm trying to have the best of both worlds - is it possible to get a topics id without turning off Pretty Urls?
Many thanks in advance.
Quote from: Dark-Master on November 22, 2009, 07:40:35 AM
How to modify prettyurl to not to prevent us from accessing our sub-directory
like this
http://www.xgn.in.th/community/articles/
That directiry is created by SMF Articles mod. I tried create another empty directories, still not able to access when prettyurl is enabled.
Thank you :)
Now I upgraded PrettyURL to latest version for 2.0 RC2, Articles system is nor working fine but custom directories aren't.
http://www.xgn.in.th/community/xxxz/
My users have been getting "The page isn't redirecting properly" error in Firefox when trying to enter a few subforums while other subforums worked fine. When I uninstalled Pretty URLs it worked fine again. The SMF version is 1.1.10. Does anyone know what the cause/fix could be?
Quote from: milicik on November 11, 2009, 10:37:45 AM
Quote from: Dannii on November 11, 2009, 08:29:52 AM
Hmm well I can't see anything that's actually broken. If you find pages that generate 404s, let me know again.
But error log is fulling on every click.
See pls the atacment.
Can i get Pretty Urls 0.9.3 .
This happend when I instal Pretty URLs 1.0RC
Quote from: Dannii on January 31, 2007, 10:56:43 AM
Pretty URLs (http://custom.simplemachines.org/mods/index.php?mod=636) 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:
- http://domain.com/board/topic/
- http://domain.com/profile/user/
- http://domain.com/unreadreplies/
Pretty URLs will work with SMF 1.1 and 2.0. It requires an Apache webserver with support for mod_rewrite and .htaccess files.
Project home page (http://code.google.com/p/prettyurls/)
Overview and installation info (http://code.google.com/p/prettyurls/wiki/Overview)
Download! (http://custom.simplemachines.org/mods/index.php?mod=636)
Need help? Check the trouble shooting page first! (http://code.google.com/p/prettyurls/wiki/TroubleShooting)
Pretty URLs is released under a new BSD licence (http://prettyurls.googlecode.com/svn/trunk/LICENCE)
Copyright (c) 2006-2009 The Pretty URLs Contributors (http://prettyurls.googlecode.com/svn/trunk/CONTRIBUTORS)
If you want help here, please post live URLs which I can access. Thanks!
I SERIOUSLY NEED YOUR HELP ON THIS ON AN URGENT BASIS. PLEASE HELP
http://www.simplemachines.org/community/index.php?topic=350810.new;topicseen#new
Quote from: Slobodan Radosavljevic on November 22, 2009, 10:19:19 AM
I Don't have recycle board.
This Enable recycling of deleted topics is not checked...
Try enabling and disabling it then.
Quote from: casp3r on November 27, 2009, 07:30:37 AM
Using the lastest version and works just as it should do - many thanks for that :) But I'm trying to have the best of both worlds - is it possible to get a topics id without turning off Pretty Urls?
Many thanks in advance.
Yes, if you write your own filter. I don't see why you'd want to though.
Quote from: Dark-Master on November 27, 2009, 08:42:46 PM
Now I upgraded PrettyURL to latest version for 2.0 RC2, Articles system is nor working fine but custom directories aren't.
http://www.xgn.in.th/community/xxxz/
Check the trouble shooting page, I just added a new section.
Quote from: wonky on November 28, 2009, 07:11:15 AM
My users have been getting "The page isn't redirecting properly" error in Firefox when trying to enter a few subforums while other subforums worked fine. When I uninstalled Pretty URLs it worked fine again. The SMF version is 1.1.10. Does anyone know what the cause/fix could be?
Links please.
Hi,
I'm new to SMF, but am very impressed with what I'm seeing so far.
I have successfully installed SMF 2.0 RC2 on a new site, and am now attempting to get Pretty URL's to work. I have tried to install the package, and at first glance it seems to go ok, but then I just cant configure it anywhere, and upon a little investigation, I'm not sure its installed properly.
I'm using IIS and Isapi Rewrite. Firstly, it is possibly to use Pretty URLs with this setup isnt it? I can use .htaccess files successfuly with other sites using Isapi Rewrite.
When I install the package, the list of files says "Skipping file" when it reaches the following:
" ./Themes/default/languages/Modifications.english-utf8.php"
and the remaining 8 files dont say anything in the description field, whereas the first 17 say "Test Successful".
Surely all the files should say "Test Successful", right?
I can still click "Install Now" at the bottom however, and upon doing this, im presented with a message saying Pretty URLs has successfuly been installed, and I can configure it in the admin section.
However I cant find any options anywhere?
Also, no .htaccess seems to have been created in the site root? Do I have to create this myself (incidentaly ive tried this also, to no success).
If I now select "Uninstall Package" for Pretty URLs, im presented with a red box saying "Error in Package Installation", and all the files below now say "Test failed".
Im installing the package from the "Download New Packages" page, and then browsing the link to the Third-party mod site.
I've got write permissions set for the correct folders, but im struggling to see how i can properly install this mod correctly.
Can anyone give me a few pointers?
Thanks, Chris.
It sounds like your package manager isn't actually modifiying and of your forum's files, which is a generic package manager problem, and not one specific to this mod. Ask for help in the SMF help boards.
Hi , first of all thank you for your mod, that is really awesome =))))))
However I am not sure now about my robots.txt file
Should i change the links to a new pretty ones in it or leave it as is?
Would like to quickly check my download location is correct for the most up to date version? I am using:
hxxp: // prettyurls.googlecode.com/ files /prettyurls-1-0RCb-SMF2RC2.zip
Can you confirm I'm correct thinking I'm downloading the most up-to date there at the present time? Thanks Dannii
[edit] - thanks for confirming
Hi Danni,
I already did post this in the SMF support area, and they told me to post it here. Where do I go from now?
Chris.
Hi, I need help...
Pretty URLs were working fine on my forum (2.0 RC1.2) but suddenly it started to give me some trouble. My forum got offline and I discovered that the cause was the smf_pretty_url_cache table, crashed. Then I repaired it and my forum came back. Seconds later, that table was crashed again (and it keeps happening).
How to solve that?
Thanks in advance.
installed and activated pretty urls, now it won't let me browse my forum!
Quote from: ShowMeYourStyle on November 30, 2009, 09:48:51 AM
Hi , first of all thank you for your mod, that is really awesome =))))))
However I am not sure now about my robots.txt file
Should i change the links to a new pretty ones in it or leave it as is?
You should add the new URLs you had blocked before... otherwise they won't be blocked.
argimiro, yes that's correct.
Quote from: Dannii on November 29, 2009, 08:17:56 PM
Quote from: wonky on November 28, 2009, 07:11:15 AM
My users have been getting "The page isn't redirecting properly" error in Firefox when trying to enter a few subforums while other subforums worked fine. When I uninstalled Pretty URLs it worked fine again. The SMF version is 1.1.10. Does anyone know what the cause/fix could be?
Links please.
I would be glad to provide links, but I really can't re-activate Pretty URLs and make my forum unreadable to the visitors in wait for you to investigate the problem, so I guess I will just have to skip this mod. Thanks anyway.
OK, my access to SMF admin is unavailable after the change to Pretty URLs. I'm using 1.1.10. Also, there are problems with the index page (and others). Here is the problem -
http://www.simplemachines.org/community/index.php?topic=350558
Suggestions to write htaccess rules to avoid collisions? First and foremost, I am locked out of SMF admin and I need to get in. I suppose I could disable Pretty URLs once I get in, but I would prefer to use your mod.
What to do? Particularly, a great help would be
1. where to use/inject htaccess file and
2. what specific language would be used to write the needed htaccess rules...unless there is a better solution.
Thanks, STeve
Go to your .htaccess file and delete admin| from one of the lines. You should probably disable the actions filter too.
Quote from: Dannii on December 02, 2009, 03:42:08 PM
Go to your .htaccess file and delete admin| from one of the lines. You should probably disable the actions filter too.
Disable the actions filter? How? Do you mean to *not* select the Actions option in Settings?
BTW, there seems to be a lot of problems with 1.1.11. Is Pretty URLs compatible? Coming soon?
And thanks for the mod. Much appreciated.
Steve
Yes, untick it.
It should be compatible with 1.1.11 already.
For everyone's information, I'll be away for a week, so don't expect any support. Check the trouble shooting page, it is important!
Hello Dannii!
How can i change /stats for /estadisticas? i need all the url's in spanish.
Thank you very much.
This mod works great! Thanks to the Author.
Meanwhile, the mod doesn't rewrite 'action' command like
http://www.infostridesforum.com/?action=search
suppose to be
http://www.infostridesforum.com/search
Please help!
Quote from: Dannii on December 02, 2009, 04:34:00 PM
It should be compatible with 1.1.11 already.
For everyone's information, I'll be away for a week, so don't expect any support. Check the trouble shooting page, it is important!
I have just upgraded to 1.1.11 but it gave trouble with pretty URL's.
The URL changed to the board number, eg:
www.mysite.com/3/topic-name
instead of
www.mysite.com/3rd-category-name/topic-name
I have reverted back to 1.1.10 and everything goes back OK. I have upgraded and reverted back twice, just to be sure.
I also noticed that the Pretty URL's option in the left menu section [Configuration] disappears under 1.1.11, but comes back under 1.1.10
Other than that it is a great mod, and works perfectly with 1.1.10
I get this result, when clicking on uninstall:
Quote1. Execute Modification ./index.php Test failed
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/ManageErrors.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/News.php Test successful
7. Execute Modification ./Sources/QueryString.php Test successful
8. Execute Modification ./Sources/Security.php Test successful
9. Execute Modification ./Sources/Subs.php Test failed
10. Execute Modification ./Sources/Subs-Post.php Test successful
11. Execute Modification ./Sources/Display.php Test failed
12. Execute Modification ./Sources/ManageBoards.php Test successful
13. Execute Modification ./Sources/MessageIndex.php Test successful
14. Execute Modification ./Sources/QueryString.php Test successful
15. Execute Modification ./Sources/Subs-Boards.php Test failed
16. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
17. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
I am wondering if un-installing Pretty URL's and then re-installing would work.
great mod!
yet for some reason, topics that are not in english characters don't become "pretty", while usernames with non-english characters are just fine. my db charset is utf-8
examples -
topic: http://glz.fm/newmila/b1/t1157/
user: http://glz.fm/newmila/profile/שרון שפירא/ (http://glz.fm/newmila/profile/%D7%A9%D7%A8%D7%95%D7%9F%20%D7%A9%D7%A4%D7%99%D7%A8%D7%90/)
normal? can i fix it?
Note: This mod works on SMF 1.1.11 all right!
first of all g8 mod :)
i just had a problem that before installing it ....
if i was in a topic as a guest n then login the site will send me back to topic , but
after installing pretty url site is sending me to main page ....
can u suggest any solution for it
Can anyone please tell me WHERE to enable this mod? I don't see any new screen on the admin backend. Perhaps I'm just missing something obvious, but I really, really need help.
Thanks in advance.
Quote from: lushadriatic on December 08, 2009, 07:48:42 AM
Can anyone please tell me WHERE to enable this mod? I don't see any new screen on the admin backend. Perhaps I'm just missing something obvious, but I really, really need help.
Thanks in advance.
index.php?action=admin;area=pretty;
Quote from: sid2varun on December 08, 2009, 06:41:47 AM
first of all g8 mod :)
i just had a problem that before installing it ....
if i was in a topic as a guest n then login the site will send me back to topic , but
after installing pretty url site is sending me to main page ....
can u suggest any solution for it
bump
1. Execute Modification SMF2-0/Sources.xml Modification parse error
2. Execute Modification SMF2-0/Sources.xml Modification parse error
3. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
4. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
5. Execute Modification SMF2-0/Themes.xml Modification parse error
6. Execute Modification SMF2-0/Themes.xml Modification parse error
Why ?
Quote from: ABCDiamond on December 05, 2009, 09:42:12 AM
Quote from: Dannii on December 02, 2009, 04:34:00 PM
It should be compatible with 1.1.11 already.
For everyone's information, I'll be away for a week, so don't expect any support. Check the trouble shooting page, it is important!
I have just upgraded to 1.1.11 but it gave trouble with pretty URL's.
The URL changed to the board number, eg:
www.mysite.com/3/topic-name
instead of
www.mysite.com/3rd-category-name/topic-name
I have reverted back to 1.1.10 and everything goes back OK. I have upgraded and reverted back twice, just to be sure.
I also noticed that the Pretty URL's option in the left menu section [Configuration] disappears under 1.1.11, but comes back under 1.1.10
For me, in 1.1.11, Pretty URLs in the admin is not there anymore. How to solve?
**Edit - I solved by re-uploading the mod.
Ive instell the mod manually, i`ve run a PHP to resolve 404 error.
But i have some errors in log.
http://forum.psp-fanatik.ro/index.php?pretty;action=admin&area=pretty;sa=settings
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/PrettyUrls-Filters.php
Line: 184
http://forum.psp-fanatik.ro/index.php?pretty;action=admin&area=pretty;sa=settings
Apply Filter: Only show the errors with the same message
2: call_user_func(pretty_yagam_filter) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/PrettyUrls-Filters.php
Line: 70
http://forum.psp-fanatik.ro/index.php?action=admin;area=pretty;sa=settings;save
Apply Filter: Only show the errors with the same message
2: call_user_func(pretty_yagam_filter) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/Subs.php
Line: 2608
http://forum.psp-fanatik.ro/index.php?pretty;action=admin&area=pretty;sa=settings
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/PrettyUrls-Filters.php
Line: 321
http://forum.psp-fanatik.ro/index.php?pretty;action=admin&area=pretty;sa=settings
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/PrettyUrls-Filters.php
Line: 347
http://forum.psp-fanatik.ro/index.php?action=admin;area=pretty
Apply Filter: Only show the errors with the same message
2: call_user_func(pretty_yagam_filter) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/PrettyUrls-Filters.php
Line: 70
Quote from: Smitten on December 03, 2009, 03:12:54 AM
Hello Dannii!
How can i change /stats for /estadisticas? i need all the url's in spanish.
Thank you very much.
If you manually change the link, and then add a line to .htaccess you can.
Quote from: infostrides on December 04, 2009, 07:16:27 PM
This mod works great! Thanks to the Author.
Meanwhile, the mod doesn't rewrite 'action' command like
http://www.infostridesforum.com/?action=search
suppose to be
http://www.infostridesforum.com/search
Please help!
I'm guessing your theme uses relative URLs.
ABCDiamond, yes try that. Or else try replacing all the files with clean 1.1.11 files and installing the mod.
Quote from: IdanC on December 05, 2009, 08:07:04 PM
great mod!
yet for some reason, topics that are not in english characters don't become "pretty", while usernames with non-english characters are just fine. my db charset is utf-8
examples -
topic: http://glz.fm/newmila/b1/t1157/
user: http://glz.fm/newmila/profile/שרון שפירא/ (http://glz.fm/newmila/profile/%D7%A9%D7%A8%D7%95%D7%9F%20%D7%A9%D7%A4%D7%99%D7%A8%D7%90/)
normal? can i fix it?
Yes that's normally. It won't be easy to fix, but you can always try by modifiying your generatePrettyURL() function
lushadriatic, the mod adds a new admin page. Try in English if you're using another language. or go to index.php?action=admin;area=pretty
kizko, that's a problem with your package manager. Ask for help in the SMF boards.
kizko, if you manually installed it, double check them all. And make sure you added the yagam filter to PrettyUrls-Filters.php
Quote from: infostrides on December 04, 2009, 07:16:27 PM
This mod works great! Thanks to the Author.
Meanwhile, the mod doesn't rewrite 'action' command like
http://www.infostridesforum.com/?action=search
suppose to be
http://www.infostridesforum.com/search
Please help!
I'm guessing your theme uses relative URLs.
What is the resolution? What should I do? Please help!
Go and change your theme's index.template.php file so it doesn't use relative URLs.
kizko, if you manually installed it, double check them all. And make sure you added the yagam filter to PrettyUrls-Filters.php
Yagam filter ? What is that ?
It's the Yet Another Global Announcements Mod (YAGAM). Perhaps try reinstalling it.
Quote from: Dannii on December 12, 2009, 07:59:24 AM
It's the Yet Another Global Announcements Mod (YAGAM). Perhaps try reinstalling it.
Oh, and this supposed to resolve the problem ?
It's worth a try.
Quote from: Dannii on December 12, 2009, 05:41:40 PM
It's worth a try.
I can`t install YAGAM.
http://www.simplemachines.org/community/index.php?topic=353193.msg2400360#msg2400360
I'm sorry, but I don't have the time to help you with other mods. You can always just disable the filter...
Quote from: sid2varun on December 08, 2009, 06:41:47 AM
first of all g8 mod :)
i just had a problem that before installing it ....
if i was in a topic as a guest n then login the site will send me back to topic , but
after installing pretty url site is sending me to main page ....
can u suggest any solution for it
danii bro plz have a look at my problem also
Quote from: Dannii on December 12, 2009, 09:05:33 PM
I'm sorry, but I don't have the time to help you with other mods. You can always just disable the filter...
1.If i do that, what would happen ?
2. How can i do that?
3. I Don`t have YAGAM installed.
4. I saw a thing... if i put the mouse over a link, the link is like the old type /index.php?board=23.0 (same if i copy it), but when i click on it, it chage in /(psp)-publicitate/
Quote from: Dannii on December 12, 2009, 05:49:31 AM
Go and change your theme's index.template.php file so it doesn't use relative URLs.
Thank you for the information. Please how do I change it?
hey is there anyway to change the / to ; for example
http://canadiantacos.com/new-members-introduce-yourself/new-guy-from-oakville/
I want to be like this
http://canadiantacos.com/new-members-introduce-yourself;new-guy-from-oakville;
The way it is setup with the slashes makes my chat mod inoperable on those pages.
I am currently using pretty urls and smf2 rc2
I just got through downloading the Pretty Url mod and when I went to save the settings for things to be rewritten, I could be directed to any of my pages. But, it gets even better. Not knowing what to do, I continued to back arrow until I got to the download page again only to try and reinstall it. Now instead of the "Oops there is nothing here" page, there is an error message that states:Parse error: syntax error, unexpected '*' in D:\Hosting\5141172\html\Sources\QueryString.php on line 529. I just launched my site last night and now I have nothing to show anyone except a totally cool parse error message!!!
BTW, i also found out that i didn't back anything up, so that makes this even better.
Please!!!Anyone!!! Help!!!
BTW... It's for version 1.1.11
Quote from: fitzs83 on December 13, 2009, 04:20:22 PM
I just got through downloading the Pretty Url mod and when I went to save the settings for things to be rewritten, I could be directed to any of my pages. But, it gets even better. Not knowing what to do, I continued to back arrow until I got to the download page again only to try and reinstall it. Now instead of the "Oops there is nothing here" page, there is an error message that states:Parse error: syntax error, unexpected '*' in D:\Hosting\5141172\html\Sources\QueryString.php on line 529. I just launched my site last night and now I have nothing to show anyone except a totally cool parse error message!!!
BTW, i also found out that i didn't back anything up, so that makes this even better.
Please!!!Anyone!!! Help!!!
i would say take a look at that file on that specific line
i would say take a look at that file on that specific line
[/quote]
Thanks for the quick answer and sorry for such a noob question, but now I can access the homepage but every other page gets directed to "
Page Not Found
The page you tried to access does not exist on this server. This page may not exist due to the following reasons:
1. You are the owner of this web site and you have not uploaded (or incorrectly uploaded) your web site. For information on uploading your web site using FTP client software or web design software, click here for FTP Upload Information.
2. The URL that you have entered in your browser is incorrect. Please re-enter the URL and try again.
3. The Link that you clicked on incorrectly points to this page. Please contact the owner of this web site to inform them of this situation. "
I think it would probably have to do with the fact that I already had the mod re-write the urls and I saved the settings. Is there a way to re-write the urls back to normal. If so, will someone let me know what steps to take to make this happen??
Thanks so much!!
is it a linux server or a windows server, i am assuming that you missed a step of the installation that is required to rewrite the urls.
It is a Windows server.
Most mods are pretty straight forward when it comes to installing them. I must have missed something but I have no idea what it was.
How would I go about making the urls back the way they were before the installation of this mod?
I am in desperate need of getting this site back up and I am stressing more than any man/woman ever should be stressing right now!!
Thanks for the help guys!
sid2varun, sorry. No I can't suggest anything. It's not a major problem though.
kizko, if you manually installed the mod, and you have bugs, then you need to double check that all the changes you made are correct.
infostrides, I've told you as much as I can!
nadrojcote, follow the trouble shooting page to fix your chat mod.
fitzs83, you installed it twice. Replace all your files with fresh files from the SMF install package.
Thank you!!
When I do this will I lose all my content?
Or is there a way to open up the script and add/delete lines to make it back to the regular SMF 1.1.11 urls?
The only problem I have now is the one I had in the very beginning of this whole thing, which was that all my pages were not showing up.
For example: This is where it takes me...
http://thegamepulse.com/arcade/
and this is where my stuff is...
http://thegamepulse.com/index.php?action=arcade
How can I tell it to go back to the old way which was:
http://thegamepulse.com/index.php?action=arcade
You won't lose your content, just your mods.
Yes, you could go through the mod (see the mod page for manual instructions) and remove them all yourself, but there are a lot and I recommend just replacing the files.
Thank you very much. You just made my night!!
Hey, thanks for the pointer, I have one problem. I need to access the whole directory I beleive and not just one file such as index.html
QuoteThis example is for the sub-directory /chat/, which should open /chat/index.html; add it to the top of your .htaccess file (outside the Pretty URLs section!)
RewriteRule ^chat/?$ /chat/index.html [L,QSA]
this shows what i would do to make it work for the html but i want pretty url to ignore this whole directory
Change your links to the actual files and they'll be fine.
Or disable the actions filter.
I have actions disabled and I am using cometchat which is coded to work with smf but was not made to work with it. But I should be able to write a rule for each file and sub directories?
You don't need a rule for files, as anything with a file extension will be ignored by this mod. And so if all your links go to actual files you won't have a problem. But if your links go to folders you will, and you'll need rules to make them go to the correct index file. Do it for /chat/ and for any sub directories.
Quote from: Dannii on December 13, 2009, 06:41:51 PM
sid2varun, sorry. No I can't suggest anything. It's not a major problem though.
kizko, if you manually installed the mod, and you have bugs, then you need to double check that all the changes you made are correct.
infostrides, I've told you as much as I can!
nadrojcote, follow the trouble shooting page to fix your chat mod.
fitzs83, you installed it twice. Replace all your files with fresh files from the SMF install package.
Haw can I see if it is corect if there was some code replecement?
I think that this don`t need to be 2 times:
$topic = (int) $_REQUEST['topic']; // Check for pretty topic URLs, and possibly redirect if oldschool queries were used.
$context['pretty']['query_string']['topic'] = $_REQUEST['topic'];
if (is_numeric($_REQUEST['topic']))
{
$topic = (int) $_REQUEST['topic']; if (!isset($_REQUEST['pretty']))
$context['pretty']['oldschoolquery'] = true;
} else {
$_REQUEST['topic'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['topic']);
// Are we feeling lucky?
$query = $smcFunc['db_query']('', "
SELECT id_topic
FROM {db_prefix}pretty_topic_urls
WHERE pretty_url = {string:topic}",
array('topic' => $_REQUEST['topic']));
// No? No topic?!
if ($smcFunc['db_num_rows']($query) == 0)
$topic = 0;
else
{
$row = $smcFunc['db_fetch_row']($query);
$topic = (int) $row[0];
}
$smcFunc['db_free_result']($query);
// Fix $_REQUEST for silly mods that don't check $topic
$_REQUEST['topic'] = $topic;
// That query should be counted separately
$context['pretty']['db_count']++;
}
// Now make sure the online log gets the right number.
$_GET['topic'] = $topic;
}
And finally, i didn`t had installed YAGAM, and i`ve activate the filter, after that modification and disableing the filter, it is ok :)
Dannii,
I'm getting an error when trying to access the Boards area of the Admin:
Fatal error: Cannot redeclare template_pretty_board_url() (previously declared in /home/sitename/public_html/bb/Sources/Load.php(1743) : eval()'d code:581) in /home/sitename/public_html/bb/Sources/Load.php(1743) : eval()'d code on line 672
I haven't had to do any admin of the boards for awhile so not sure how long this has been happening. Any idea what would be causing this -- or how to fix?
@Cassie: That error means that function (template_pretty_board_url()) exists twice in Load.php, open the file in a script editor and search for it. If you see two, simply remove the whole function so only one remains. (I believe this is the cause of your issue, correct me if I'm wrong).
Now onto my problem :P
Hey Dannii,
I am using your mod and it was working great until I changed the scripturl from 'bnetweb.org' to 'www.bnetweb.org' and Pretty URLs still links to 'bnetweb.org/index.php' etc which causes session validation issues. Is there a way I can make pretty url's resubmit URL's in www. format? I tried running maintenance tasks and it didn't work. And SMF sees my site as www. so they are sort of clashing if it makes sense. Any help would be appreciated. Thanks!
- Ed
Hi
Pretty Urls 1.0RC
works fine for most of my SMF RC2 forum.
I have a problem with the Arcade mod.
SMF Arcade 2.5 RC1
The Games are all playable, but unable to post the highscores back to the forum, as the links are not found.
Any ideas on what I need to change?
Quote from: Garry1953 on December 16, 2009, 03:32:14 PM
Hi
Pretty Urls 1.0RC
works fine for most of my SMF RC2 forum.
I have a problem with the Arcade mod.
SMF Arcade 2.5 RC1
The Games are all playable, but unable to post the highscores back to the forum, as the links are not found.
Any ideas on what I need to change?
To fix your issue open Sources\Pretty-Filters.php
Find:
if (in_array($matches[2], $context['pretty']['action_array']))
Replace with:
if (in_array($matches[2], $context['pretty']['action_array']) && $matches[2] != 'arcade')
Then run Maintenance tasks on Pretty URLs. It should exclude Arcade from being "made pretty" to fix the scoring problem.
Thanks ScopeXL
Your solution works perfect. ;D
ScopeXL...thanks for that suggestion. That's what that error appears to be saying, but there is no template_pretty_board_url() in the Load.php file anywhere. Not once and certainly not twice. Hmmmm....weird.
For godssakes! Installing this mod killed my whole forum!! I checked your "check this first for problems page" and as instructed made a SSI.php file and tried to run that but NOTHING in the whole forum directory will run at all now, just says 500 server error. My shared host of course says it's my problem, I broke it. I went to the install specs but it's freaking HUGE and I don't know much PHP so I'd be lucky not to screw something up even worse trying to manually hack it out. Do you have any more reasonable way to get this monster out again? God what a nightmare. I've never had an add-on do anything this extreme before.
EDITING LATER: OK apparently the problem was that "mod rewrite was not ON on the server." I highly recommend you put a note about this in your "check this first" instructions!
Best,
Palyne
Quote from: palyne on December 17, 2009, 04:21:35 PM
For godssakes! Installing this mod killed my whole forum!! I checked your "check this first for problems page" and as instructed made a SSI.php file and tried to run that but NOTHING in the whole forum directory will run at all now, just says 500 server error. My shared host of course says it's my problem, I broke it. I went to the install specs but it's freaking HUGE and I don't know much PHP so I'd be lucky not to screw something up even worse trying to manually hack it out. Do you have any more reasonable way to get this monster out again? God what a nightmare. I've never had an add-on do anything this extreme before.
EDITING LATER: OK apparently the problem was that "mod rewrite was not ON on the server." I highly recommend you put a note about this in your "check this first" instructions!
Best,
Palyne
This is not the mod authors fault. When you first install the mod, it's "Off " by default.
Then when you enable it in the admin panel, it shows you a few example URL's and clearly asks you if they work or not.
I'm assuming you did not read this (and check the example URL's) and blindly said yes and enabled the mod.
No, I did in fact see that, and I checked the URLs it gave me -- every one of them -- and they worked just fine.
Whatever the problem is in the communication chain, it isn't that.
P
cassie, yes you must have one of the functions installed twice. Check ManageBoards.template.php
ScopeXL, read the trouble shooting page.
palyne, that's really unfortunate, but I'm glad you have fixed it now. When you were trying the test page, were the URLs it gave you prettified? Could the .htaccess file have been deleted, maybe by someone else even?
A few questions since I might try this mod on RC2, mainly for Greek (I notice in the character replacement file that there are no Greek characters included).
1. Has there been percent encoding implementation?
2. How does it affect canonical URLs? I.e. canonical URLs remain the default?
I have noticed people saying:
Quote from: The Grinch on December 15, 2009, 01:24:50 PM
You can use mods such as Pretty URLs or SimpleSEF to make it friendlier however there is no search engine benefit to doing so.
Do you believe that?
Ah, didn't check the Google page, thanks!
Danni...I don't find duplicate function calls in manageboards either. Hmmmm....
Quotepalyne, that's really unfortunate, but I'm glad you have fixed it now. When you were trying the test page, were the URLs it gave you prettified? Could the .htaccess file have been deleted, maybe by someone else even?
Yeah, in the end my shared server techs helped -- and they were not extensively detailed about whatever they might have done. It had all seemed just fine (they were prettified, and they worked). It said the install worked as well. Then the next thing I clicked, 500 server error, and nothing else anywhere in that folder until the techs told me, "We enabled mod rewrite and it should resolve both your problems." (That one, and that about 20 minutes later, one of my wordpress blogs had gone down with the same error after I changed the archive file naming convention. I'd sent email asking for help with both issues at once.)
Well its fixed now and I apologize for being a freak since the problem was on my end. Maybe there is something slightly different in how shared servers are set up at least in some cases.
Best,
Palyne
Palyne, I'm glad it worked out for you.
I apologize for assuming you blindly enabled the mod. If the test URL's worked properly, the rest "should have" went smoothly.
It's really weird you had that issue.
Really like this, had some difficulties installing at first but got it in the end... (Y)
Hello people,
I have i question.
My table pretty_urls_casche have cca 450MB!
Can I this empty or what can I do with this?
Thanks ;)
So here I am again, trying to solve this error.
Fatal error: Cannot redeclare template_pretty_board_url() (previously declared in /home/sitename/public_html/bb/Sources/Load.php(1743) : eval()'d code:581) in /home/sitename/public_html/bb/Sources/Load.php(1743) : eval()'d code on line 672
The error is obviously referring to the Load.php file. I see from looking at the file that it was changed on 2 December. I believe this is when I applied the update to 1.1.11
There isn't a template_pretty_board_url in this file nor in the old Load.php. There aren't any instructions to modify this file for this mod to work either - I checked the documentation here just in case.
It looks like it's obviously the Pretty URLs mod that's causing the problem. SMF can't find what it wants.
When I look at the lines referenced in the error in both versions of Load.php, they are different, but I'm assuming that's because they are obviously for different versions on SMF. And in any case I'm not sure it matters since there isn't a function for pretty board in that file.
So what's my next step?
If I can't manage my boards, I can't perform a task I need to to be able to manage my forum.
If I uninstall Pretty URLs, then what? What do I need to be aware of? Does this screw up every link, since they have been prettied up for years, then would go back to "ugly"?
I have Pretty URLs version 0.9 installed. Do I need to remove this and install 1.0RC?
Thanks for your help. Want to get this resolved.
Well I upgraded to 1.0RC but it added a block of text to the head of my theme/board:
// Pretty URLs mod $txt['pretty_urls'] = 'Pretty URLs'; // Board URLs interface $txt['pretty_add_url'] =
'Add'; $txt['pretty_add_url_description'] = 'Add a URL. Note that what you enter here will be processed
as only certain characters are allowed.'; $txt['pretty_board_url_title'] = 'Pretty URLs for: ';
$txt['pretty_deleted_board'] = 'Deleted board #'; $txt['pretty_duplicate_link'] = 'delete it first.';
$txt['pretty_duplicate_warning'] = 'That URL is already in use by another board. It will be available if you ';
$txt['pretty_make_primary'] = 'Make primary'; $txt['pretty_no_primary_warning'] = 'Warning, no primary URL!';
$txt['pretty_numerical'] = 'Sorry, but as that URL is either a number or the same as a forum action the board
ID had to be added as a suffix.'; $txt['pretty_primary_url'] = 'Primary'; //
Settings descriptions $txt['pretty_action_array'] = 'An array of forum actions,
extracted from index.php.'; $txt['pretty_board_lookup'] = 'A serialized array of URL =>
ID_BOARD pairs, used for processing $_GET[\'board\']. There can be more than one URL for
each board.'; $txt['pretty_board_urls'] = 'A serialized array of ID_BOARD => URL pairs,
used for generating pretty replacement URLs.'; $txt['pretty_enable_filters'] =
'Sets whether to prettify anything at all. 0 for no, 1 for yes.'; $txt['pretty_filters'] =
'A serialized array of filter data.'; $txt['pretty_filter_callbacks'] =
'A serialized array of callback function names, sorted by priority.
Don\'t manually edit this, edit the pretty_filters setting instead.';
$txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as $boardurl.';
I've had this happen before with mods when they insert text after the closing bracket but I cannot for the life of me find this errant text. Any idea what file to check? It isn't in the theme's index.template.php file, I've checked several others.
And...I still get the error I was receiving before. *sigh*
So, I uninstalled Pretty URLs and applied the reverter. Now I can manage my boards.
I liked this mod but for some reason, it's giving me problems. Thanks for your help Danni
Have a problem.
I can install mod, but after I click on link in install.php it takes me to
main administration page, although urls is myforumdomain.com/index.php?action=admin;area=pretty;
I can not access mod settings.
Good morning,
I just renamed my domain, most things work fine, but Pretty URLs is still having the old domain name. I've run maintenance and also turned off/on Pretty Urls, but it still has the old domain name in there.
Is there a way to reset the domain name within Pretty URLs please?
Thanks,
Greg
I moved the forums files from domain.com to domain.com/forum, then run repairs-settings. With pretty url not activate all is ok. If I activate pretty url, I got file not found errors.
I observed that the url is still domain.com/ not domain.com/forum/
What do I do pls?
hello, i was using prettyurls sometime ago with my urls in the form of domain.com, then I changed using .htaccess to www.domain.com after which i uninstalled prettyurls and installed the reverter. Now my old links in the form of domain.com/board do not redirect to the appropriate board. it only redirects when it is www.domain.com/board. Could someone please help me fix this
MaXiForum.cz, yes you can empty it, but it will fill up again soon.
cassie, as I told you, it's in ManageBoards.template.php
And for the text that's added to the top, check and fix your Modifications.english.php file. There should only be one ?> and it must be the very last thing in the file.
marko79, I don't understand exactly what your problem is.
gregh, olufemo & Kingus, read the trouble shooting page! :)
Dannii, that function simply was not in Manageboards.php. There is no such file as ManageBoards.template.php that I find. I've checked the manageboards.php file several times. The error was citing the Load.php file and the function it referenced did not exist anywhere in that file once, let alone twice.
Thanks for the Modifications.english.php file info. That's the one I was trying to remember. However, I did NOT do the edits to this file manually, installing the mod did it incorrectly apparently.
I've since uninstalled Pretty URLs and installed the reverter. I guess I'll have to leave things this way for now because it's the only way I can access my board management.
All template files are in your Themes/default/ folder, not your Sources folder! Look there instead. The error says Load.php because Load.php loads the templates, but that's not where the error was.
The mod doesn't do anything wrong, but sometimes the package manager will. I don't know why. At least it's easy to fix language files.
Quote from: Dannii on December 24, 2009, 06:56:15 AM
MaXiForum.cz, yes you can empty it, but it will fill up again soon.
Thanks Dannii and cache will still rise or it stays the same?
Thanks!
Hy
I Installed Pretty URLs
Works Great
I Also Submit My Forum To Google And Google Indexed Nearly 80% Pages As Pretty Urls (Static URLs)!
-
For Some Reasons I Have To Uninstall Pretty URLs And Not Need Them More!
But After Uninstalling Pretty URLs When I Search My Forum And Pages In Google.Com I Find All Pretty URLs (Static URLs) But My Forum Now Having Dynamic URLs
When I Click @ Any URL Its Not Directs To That Page As All Goes To Main Index Of Forum!
.
What I Have To Do?
1-Google Change Thats Preety Links To My New Forum Links
2-All URLs From Google Goes To Corresponding Pages Of My Forum
3-Is Google Automatically Changes That URL Of Pages During Reindex?
-
PLEASE
ITS A SERIOUS PROBLEM
EVERYBODY WANTS TO KNOW ABOUT IT?
Please Describe In Detail!
ok i am having an issue with this mod and a script i am trying to install with it and was wondering it someone could help me with the problem
my site link is http://host-2-post.co.cc
but the place i am having the problem at is here
http://client.host-2-post.co.cc
the pretty url .htaccess is messing up the script i am trying to install
so like when i try to install the script it is trying to use the smf forums on it when it isnt made for it
and i was coming here to post to see if there was anyway of going around the pretty url mod without un-installing it for me to get the script to work right
and if you want to check out what the pretty urls is doing feel free to try and install that script it will do what it does to me all the time
Hallo :)
Every time i see in my error log more errors like this (is an example):
Error 404 - Not Found (mydomain.**/board/topic_title/index.php)
File: user
?action=error;code=404
from ip like google and others spider/crawler.
Is there any way to fix with htaccess?
-
PS: now i've put this:
User-agent: Googlebot
Disallow: /*/index.php
Disallow: /*/*/index.php
in robots.txt
MaXiForum.cz, it will fill up gradually, but you can empty it at any time again.
PharmaITHorizon, download the reverter package from the Google Code site and install it.
pkdemon, you may need to add a line to the top of your .htaccess file. See the trouble shooting page, 3 section. You'll have to add something like that but for client instead of chat.
Quote from: Dannii on December 26, 2009, 09:27:35 PM
MaXiForum.cz, it will fill up gradually, but you can empty it at any time again.
PharmaITHorizon, download the reverter package from the Google Code site and install it.
pkdemon, you may need to add a line to the top of your .htaccess file. See the trouble shooting page, 3 section. You'll have to add something like that but for client instead of chat.
i am interested in downloading the reverter thing. where do i see that ? and how do i add it ?
Works Fine!!!
Is there a to change the link to a different name like:
profile could be somthing else like perfil in spanish, you know what i mean?
Afro, get it from the google code site! http://code.google.com/p/prettyurls/downloads/list You'll need to uninstall Pretty URLs first.
Oskarlover, no you can't do that unfortunately. Or you probably could with a great deal of work, but I can't tell you how.
Quote from: olufemo on December 23, 2009, 08:19:21 AMI moved the forums files from domain.com to domain.com/forum, then run repairs-settings. With pretty url not activate all is ok. If I activate pretty url, I got file not found errors.
I observed that the url is still domain.com/ not domain.com/forum/
What do I do pls?
Quote from: Dannii on December 24, 2009, 06:56:15 AM
gregh, olufemo & Kingus, read the trouble shooting page! :)
Thanks alot, I got that problem solved with info on that page but I have other issue may be you can still help.
On google.com indexed pages still show
domain.com/Pretty_Url_Pages which on click gives 404 errors. Pls is there a way to re-direct such that everything now go to
domain.com/forum/pretty_Url_Pages
Quote from: Dannii on December 28, 2009, 10:07:30 AM
Afro, get it from the google code site! http://code.google.com/p/prettyurls/downloads/list You'll need to uninstall Pretty URLs first.
ok, i have downlaoded the package. do i need to install it through smf package manager or another way ?
i am on 2.0 rc 2
olufemo, I'm sure there is, but I'm not sure how to do it. Maybe you could ask in the Help Wanted (Not for support) board.
Afro, yes install it through the package manager. You may need to emulate RC1. I'm not sure.
1. Execute Modification SMF2-0RC2/Sources.xml Modification parse error
2. Execute Modification SMF2-0RC2/Sources.xml Modification parse error
3. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
4. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
5. Execute Modification SMF2-0RC2/Themes.xml Modification parse error
6. Execute Modification SMF2-0RC2/Themes.xml Modification parse error
Why is that ? on RC2
Your package manager is having issues. You'll probably need to make a temp directory. Ask for help in the support boards as it's not a specific problem with this mod. :)
Quote from: Kcmartz on December 01, 2009, 12:00:04 AM
installed and activated pretty urls, now it won't let me browse my forum!
Still no way to use this mod?
SERVER INFO:Godaddy Hosting
Linux Deluxe Hosting
Read the trouble shooting page to disable the mod!
Quote from: Dannii on December 28, 2009, 11:11:48 PM
Read the trouble shooting page to disable the mod!
Apply Filter: Only show the error messages of this URL
http://forum.psp-fanatik.ro/index.php?action=admin;area=logs;sa=banlog;cd6b26e=4d22be38a4ca772b3619dc99a6df9323
Apply Filter: Only show the errors with the same message
8: Undefined offset: 0
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/PrettyUrls-Filters.php
Line: 377
After manual install.
Quote from: Dannii on December 26, 2009, 09:27:35 PM
MaXiForum.cz, it will fill up gradually, but you can empty it at any time again.
Thanks Dannii ;)
I've installed this mod and it worked perfect but now the ajaxchat isn't working i can't chat. How do i fix it?
Do i have to do something in .htaccess file?
kizko, if you did a manual install, double check you made all the changes correctly.
raven85, ask the author to change their mod so it uses absolute URLs. And read and follow the instructions on the trouble shooting page.
guys pretty urls mod working fine for me.
but here is my little problem
please help wht to do
see the attached screenshot.
All my links are working fine. but whenever i tried clicking on my pagenumbers, it opens the first page again. I cant acces my other pages. please help
Good, I have a problem with the pretty url and portamx.
When I create single pages, then I can not see because I get redirected directly to the index.
I think it's a problem. Htaccess
PortaMx uses the url format yourdomain/inxdex.php?pagename for page requests.
eg http://hackstore.net/index.php?listadopeliculas
Smf version: 2.0 rc2
Portamx v: 0.971-1
Pretty Urls v: 1.0rc
ekfaysal, can you provide real links please.
4kstore, what happens when they are enabled?
@ Dannii
My forums link is in my signature. please visit it and tryto help me.
You're missing the www. at the beginning. Check that $boardurl has it, and then follow the instructions on the trouble shooting page.
This mod is great...
What about turkish characters?
Should work fine for Turkish characters.
But it doesn't seem in my forum why? I have installed this mod recently.
Please provide links showing the problem.
Quote from: 4kstore on December 31, 2009, 05:55:16 PM
Good, I have a problem with the pretty url and portamx.
When I create single pages, then I can not see because I get redirected directly to the index.
I think it's a problem. Htaccess
PortaMx uses the url format yourdomain/inxdex.php?pagename for page requests.
eg http://hackstore.net/index.php?listadopeliculas
Smf version: 2.0 rc2
Portamx v: 0.971-1
Pretty Urls v: 1.0rc
Quote from: Dannii on December 31, 2009, 09:56:20 PM
4kstore, what happens when they are enabled?
Hello, I should show a page that I believe in an html editor with the blocks on the sides of the portal, but just for some type of error shows me the home page.
In the previous version of this happened I prettyurl ...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg259.imageshack.us%2Fimg259%2F1237%2Fcap4b.jpg&hash=e4b697b43a024bf2fd7159233993445a8001d6a3)
4kstore, I still don't understand the problem. Are you able to enable the mod for me?
Dannii ,
Notice: Undefined index: pretty_action_array in /xxx/public_html/forum/SSI.php on line 90
Maintenance start oki :) Solved.
Quote from: Dannii on January 01, 2010, 11:12:00 PM
4kstore, I still don't understand the problem. Are you able to enable the mod for me?
the prettyurl and portamx are activated, but the singles pages not working
4kstore can you please give me a link to a page that isn't working.
Quote from: 4kstore on January 02, 2010, 04:14:58 AM
Quote from: Dannii on January 01, 2010, 11:12:00 PM
4kstore, I still don't understand the problem. Are you able to enable the mod for me?
the prettyurl and portamx are activated, but the singles pages not working
That is not normal behavior. I have both PortaMx and PrettyURL's both installed and my single pages work just fine. Looking at your site, it appears that the single pages are working. You just have to scroll way down to see them. It looks like a PortaMx misconfiguration IMO.
Quote from: joec88 on January 02, 2010, 10:31:07 AM
Quote from: 4kstore on January 02, 2010, 04:14:58 AM
Quote from: Dannii on January 01, 2010, 11:12:00 PM
4kstore, I still don't understand the problem. Are you able to enable the mod for me?
the prettyurl and portamx are activated, but the singles pages not working
That is not normal behavior. I have both PortaMx and PrettyURL's both installed and my single pages work just fine. Looking at your site, it appears that the single pages are working. You just have to scroll way down to see them. It looks like a PortaMx misconfiguration IMO.
Thanks, problem solved!
How to rewrite old urls (when I change board name)?
I also tried PU maintenance and clear cache but it wont work. I still get: "/forum/general-disscusion/" instead of "/forum/my-real-board-name" for first board.
Thanks in advance.
When you go to the modify boards page there are links for setting their URLs.
There aren't PU options, but I reinstall PU and then it's working (probably missing in modification.english.php or something). Thanks for help.
Sir! I have a problem!
Actually I moved my SMF, ie, downloaded the database from a host and uploaded to the another host!
I had already installed the PretyurlS in the previous data!
Everything is now working fine!
Now I again installed the prettyurlS in the new smf!
but now when i activate it, it point the boards to the previous domain
i.e my previous doamin was eg, www.mysite.co.cc
but now I moved to www.mysite.com
but when I activate the mod and click on any board! eg, mysite.com/board1
it points me to mysite.co.cc/board1
how to solve this!
hope I explained my problem!
I am using smf 1.1.10.
plz help!
Hi ukhalik2, please read the trouble shooting page, it shows you how to fix that problem. :)
Quote from: Dannii on January 03, 2010, 07:11:28 AM
Hi ukhalik2, please read the trouble shooting page, it shows you how to fix that problem. :)
but I have already used repair_settings.php to repair all the links
and they work fine when the pretyURLs is deactivated!
Yes but there is one more setting to fix. Using the code in the second section of the trouble shooting page will fix it.
Quote from: Dannii on January 03, 2010, 09:28:47 AM
Yes but there is one more setting to fix. Using the code in the second section of the trouble shooting page will fix it.
where is SSI.php file????
1 question, what will happen if I have 2 topics with the same name, in the same board?
Example: /board2/topic. /board2/topic1
will there be a conflict? Or dies the mod add something to the URL to show that the two topics are different.
ukhalik2, same place as your forum's index.php
mohd7590, it will add the topic ID to one of them.
Quote from: Dannii on January 04, 2010, 12:13:25 AM
ukhalik2, same place as your forum's index.php
thanks, this one solved!
prettyURLs is working great now!
but! another problem! :(
I am using PrettyURLs and the sitemap (http://custom.simplemachines.org/mods/index.php?mod=755) mod...
but in XML sitemap dont shows links like this
mysite.com/categorybut it shows like this
mysite.com/board1I am using SMF1.1.10
Pretty Url needs to be updated to support board name changes, as it doesn't change it to the correct one after renamed.
I'm not sure if this has been asked before.. But using Pretty URL, how do you know the topic ID of a specific topic? Thanks.
ukhalik2, try reinstalling the sitemap mod.
SilverKnight, URLs aren't supposed to change! But you can modify the board URLs in the modify boards page.
sherwinaval, it's not easy. Why do you need to know? You should be able to check the page source and find the topic ID in some javascript code.
I am using Pretty URL on my SMF 2.0RC2
The problem is how do i know post id or poll id as the url doesnt show it?
can anyone help me?
thanks
Read my last post ;)
@Dannii
Thanks for the reply. I need to know for topic merging and poll displays. I'm using simpleportal. Well, I hope soon it would be easier :)
This feature must be in core! :) I will try it later some time.
Nevermind. I found my issue in the troubleshooting page. You should add the "new-domain" thing into the maintenance button
I hope someone could help me out easily find out the topic id or maybe prettyurl guys could do some trick about it..
Another thing, I have installed Pretty URLs without a hitch. It's very simple and easy. However, there was one Board that the name included a single quote ('). And after install Pretty URLs, all boards was fine except for those that have a single-quote.
So I've read the previous pages, and found out that I can rename the board url. Great and it worked! However, I am not able to delete the old name from the Pretty URL. I have tried searching the database but was unfortunate find it. I just want to manually delete the name to not make any confusions.
Thanks :)
You can delete it the same place where you add new ones.
I did and I tried but nothing happens, it still remains there :(
Hello,
The mod installed ok but i'm having the following issue:
My board is not in english. URLs are NOT working since they contain non-latin characters.
Is there a character-replacement feature on the mod's code somewhere?
Thank you
S.
@Danii
I still could not find my answer. how to know the board id or poll id with Pretty URL.
I checked the "Source" but dont know where it is?
Quote from: saintsinner on January 06, 2010, 09:24:12 PM
@Danii
I still could not find my answer. how to know the board id or poll id with Pretty URL.
I checked the "Source" but dont know where it is?
for me, i needed to open the database and find the topic id. :( hope Danii could at least help us with this :)
sherwinaval, well it's no problem if it remains.
sektor, you can add extra characters to the big array in Sub-PrettyUrls.php
saintsinner, try searching for iTopicId
Pretty URLs just stopped working. I have used this module for well over, wow I don't know a year or more....today i logged in and all my URLs were reverted back to standard SMF urls, I tried reinstalling the package and it installed fine but it does not convert my URLs , it leaves them the same
I even validated the test where it rewrote my board names, i checked the links, they worked but then the board links where never converted
the links still redirect properly but the hyperlink is not rewritten
if you hover over a board name at www.mychemistrytutor.com/forums
you will see the natural SMF url however when you click the link you get a redirect
I don't get redirect either... did you disable the mod again?
well i am troubleshooting it, try now
go to www.mychemistrytutor.com/forums
the hover over the board name (you should see the natural SMF url)
now click the link, and the url will be the Pretty URL
i will leave it alone so you can see , thanks for looking!
Thanks. Running maintenance does nothing?
Anything in the error log?
running maintenance does nothing
and i am getting some undefined index errors but that is it
Chemistry Tutor Today at 03:37:06 AM
Apply Filter: Only show the error messages of this IP address 98.192.13.213 Apply Filter: Only show the error messages of this session 2163e9adc6a5e9ab3a46b4841e4b1538
Apply Filter: Only show the error messages of this URL http://www.mychemistrytutor.com/forums/index.php?action=featuresettings
Apply Filter: Only show the errors with the same message
8: Undefined index: pretty_admin_menu
File: /home/mychem/public_html/forums/Sources/Subs.php
Line: 2879
Apply Filter: Only show the error messages of this member Chemistry Tutor Today at 03:36:51 AM
Apply Filter: Only show the error messages of this IP address 98.192.13.213 Apply Filter: Only show the error messages of this session 2163e9adc6a5e9ab3a46b4841e4b1538
Apply Filter: Only show the error messages of this URL http://www.mychemistrytutor.com/forums/index.php?action=admin
Apply Filter: Only show the errors with the same message
8: Undefined index: pretty_admin_menu
File: /home/mychem/public_html/forums/Sources/Subs.php
Line: 2879
Those errors won't be causing this problem. Can you ask you host if they changed anything?
here is the repsonse from my host:
I do not see that anything was modified other than the entries for mod_expires when comparing the original .htaccess to the modified one, but I do not see any rules in either that would rewrite the URLs in the manner that you are wanting. You may want to review the settings in the admin panel for the forums regarding rewritten/pretty URLs.
Can you make a temporary admin account and PM me the details?
sent, thanks for looking
mohd7590
The quote in your signature, it is from my site! the "SITE RULES" tab! Could you please remove that? Thanks!
And my problem still hasn't ben solved...
Quote from: Dannii on January 07, 2010, 03:30:09 AM
saintsinner, try searching for iTopicId
thanks. that solved my problem.
Any chance of getting this mod working on the links output by SSI.php in v2.0 RC2?
I would like to know if this mod will really improve the SEO of my forum ?
Quote from: xxxnewbiexxx on January 10, 2010, 01:18:14 PM
I would like to know if this mod will really improve the SEO of my forum ?
It will make your links much more friendlier and nicer for search engine crawlers which should help your site and it helps for keyword searches in some search engines.
Quote from: ziycon on January 10, 2010, 01:23:12 PM
Quote from: xxxnewbiexxx on January 10, 2010, 01:18:14 PM
I would like to know if this mod will really improve the SEO of my forum ?
It will make your links much more friendlier and nicer for search engine crawlers which should help your site and it helps for keyword searches in some search engines.
Thanks for your quick reply !
Just one more thing, how my pages will be indexed by search engines ? is it gonna be indexed the way it shows in the browser ?
Quote from: xxxnewbiexxx on January 10, 2010, 01:46:06 PM
Quote from: ziycon on January 10, 2010, 01:23:12 PM
Quote from: xxxnewbiexxx on January 10, 2010, 01:18:14 PM
I would like to know if this mod will really improve the SEO of my forum ?
It will make your links much more friendlier and nicer for search engine crawlers which should help your site and it helps for keyword searches in some search engines.
Thanks for your quick reply !
Just one more thing, how my pages will be indexed by search engines ? is it gonna be indexed the way it shows in the browser ?
It all depends on your site content and if the crawler likes your site/pages/links etc. I would recommend you do a quick search for SEO tips, there is loads of information out there that should answer all you want to know.
Quote from: Kcmartz on January 09, 2010, 06:53:27 PM
mohd7590
The quote in your signature, it is from my site! the "SITE RULES" tab! Could you please remove that? Thanks!
And my problem still hasn't ben solved...
It is? My bad... I was just looking at random websites and I was checking the site out when I noticed the huge "Site Rules"(In Capitals). I couldn't help it and I clicked it... I was really taken aback. It was kinda funny, but I realized I did the same thing in my site when I was 15. I did that for a month before I realized that it wouldn't work out.
Anyway, before I go off topic. I use this modification in one of my forums: xadro.net (http://xadro.net)
Check it out if you want a demo of sorts.
Ok. I am 16, so I am not quite over it i guess...
But feel free to join! it is a general discussion forum with other linked SMF forums, geek-talk.kcmartz.com, sfd.kcmartz.com, and more later!!
Taking a look at your link...
EDIT:
mohd, how long did it take to get over 2.000 members and how did you do it? Please email me! (next to me, envelope button) and I will join your site!
I've just tried the mod... It looks pretty but it does some not so pretty things to the Cyrillic characters. :D
I hope that in the near future there will be an update of this otherwise nice mod to support Cyrillic letters - it is otherwise not useful at all for my forum. ::) :'(
I am getting a lot of errors like this in my error log:
http://www.archiefans.com/index.php?pretty;board=feedbacksupport;topic=after-the-upgrade-to-do-list-new-features.0
8: Undefined index: can_approve_posts
File: /.../Themes/default/Display.template.php
Line: 780
This happens for both users and guests, everytime someone views a topic.
Dang, I had 0.8.4 and removed it and installed 1.0RC. Works fine for the forums, but I use SimplePortal and now it mucks the root url of / which should just go back to the domain.
So the URL with the old version of / would just go to www.rmcb5.com with 1.0RC it puts in /forums//
EDIT: Forgot to add, using SMF 1.1.11 and SimplePortal 2.3.1
One more thing, if I do Run Maintenance Tasks, it fixes that URL problem immediately. However, as soon as I start clicking around again it returns.
I emailed you. Contact me if you have any questions, I'm 15 by tge way.. My birthday this month :D
Quote from: Kcmartz on January 11, 2010, 01:29:12 AM
Ok. I am 16, so I am not quite over it i guess...
But feel free to join! it is a general discussion forum with other linked SMF forums, geek-talk.kcmartz.com, sfd.kcmartz.com, and more later!!
Taking a look at your link...
EDIT:
mohd, how long did it take to get over 2.000 members and how did you do it? Please email me! (next to me, envelope button) and I will join your site!
I went back to 0.8.4 because it works. In 1.0RC I noticed in .htaccess it sets a base path of something like /forums/ and that seems to be my issue both with using simpleportal and Gallery2 integration. Not to mention it always overwrites any other entries in .htaccess.
Still one of the best mods out there, keep working at it!
PLEASE HELP ME
Quote from: massdog.com on January 12, 2010, 12:24:05 PM
PLEASE HELP ME
Install the "Load Standart Language" Mod.
bjraines, sorry I haven't had the time to look yet, but I will.
Kcmartz & mohd7590, please take your discussions somewhere else, this isn't the place for it sorry.
ziycon, it should work fine with SSI.php. Are you having problems?
xxxnewbiexxx, it might, it might not. If you have incoming links with the link itself as the link text I think it will help. But mostly use it cause it's pretty and people-friendly!
Boby_, you can add extra characters to your Subs-PrettyUrls.php if you want.
Oldiesmann, I don't think that's related to this mod.
gietl, I don't see the problem you're describing. Oh that's cause you went back. I suggest you go to 1.0RC again. It will stop overwriting your changes to .htaccess if you put them outside the PRETTY URLS section.
Its outputting the forums default link for SSI.php, you can view it at http://www.bumpzinthenite.com, on the right and the bottom.
Quote from: Dannii on January 12, 2010, 09:12:09 PM
gietl, I don't see the problem you're describing. Oh that's cause you went back. I suggest you go to 1.0RC again. It will stop overwriting your changes to .htaccess if you put them outside the PRETTY URLS section.
The least of the problems was the .htaccess being overwritten, and the rewrites that were in there were in their own block outside of the pretty urls block. The larger issue for me is it FORCING the /forums/ on every URL. Most folks install forums under /forum or /forums. However, havign a start page or a portal means you have content at just /. If pretty urls is always forcing /forums/ into each url you can't easily get back to /. I hope that makes some sort of sense.
I still greatly appreciate the mod and would love to use a more current version. I can deal with the htaccess parts, that's not huge, but the bad URLs for / are.
Quote from: Dannii on January 12, 2010, 09:12:09 PM
Boby_, you can add extra characters to your Subs-PrettyUrls.php if you want.
Thanks! I'll give it a try.
Quote from: Boby_ on January 13, 2010, 01:10:57 PM
Quote from: Dannii on January 12, 2010, 09:12:09 PM
Boby_, you can add extra characters to your Subs-PrettyUrls.php if you want.
Thanks! I'll give it a try.
I added the Cyrillic letters to Subs-PrettyUrls.php. Now the topics are converted nicely but the boards conversion is still not OK. Is there a different source for the conversion of the boards names?
bjraines, are you still having problems?
ziycon, well that's weird. Try adding this after where you include SSI.php: ob_start('ob_sessrewrite');
gietl, can't you just move the forum to the root folder?
Boby_, you can edit the board URLs in the modify boards admin page.
Quotefirst of all g8 mod :)
i just had a problem that before installing it ....
if i was in a topic as a guest n then login the site will send me back to topic , but
after installing pretty url site is sending me to main page ....
can u suggest any solution for it
danii bro plz have a look at my problem also
i almost forgot my this request......today some members of my forum starts buzzing me for this problem
i dont wanna uninstall the mod .... but the there is problem for members also ..... plz do look into this ...
n i hope i might get a solution
I don't have a solution for it sorry, it's nothing I've ever experienced myself.
u can see that on mt forum urself >> www.freakygurus.com
Quote from: Dannii on January 16, 2010, 05:19:01 AM
ziycon, well that's weird. Try adding this after where you include SSI.php: ob_start('ob_sessrewrite');
Nice one, that worked. Thanks.
Quote from: Dannii on January 16, 2010, 07:01:50 AM
I don't have a solution for it sorry, it's nothing I've ever experienced myself.
i think i must ask for support outside
there's any way to rewrite simple portal articles an pages ?
Hi,
Curve theme.
Getting loads of Undefined Errors -
8: Undefined index: pretty_enable_filters
File: .........../scubadivingforum.co.uk/Sources/Display.php
Line: 85
Any cure please?
Thanks
Billy
Yes you muppet - Enable URL rewriting!!
Quote from: Dannii on January 16, 2010, 05:19:01 AM
Boby_, you can edit the board URLs in the modify boards admin page.
Thank!
Great mod and great support! :)
Just so you all know, at the moment Dannii will be unable to support this modification through simplemachines.org,
on account of him being banned from here.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsmfservices.org%2Fimages%2Funban.png&hash=cf6d4996b672e4f1998af31c63783f65907f1dbf)
[img]http://smfservices.org/images/unban.png[/img]
So the question is, why did they get banned?
Quote from: Dannii on January 16, 2010, 05:19:01 AM
gietl, can't you just move the forum to the root folder?
I could, but my site has been around for years with the paths that currently exist and are indexed that way. So If I move it, then I need 301's for all the old URLs. What changed in the mod that allowed it to work this way before, but not now? Of course I've read you can't post here, but when they let you back and you have time. :)
Thanks for the responses so far.
Quote from: gietl on January 18, 2010, 11:44:09 AM
So the question is, why did they get banned?
I don't feel I am in the position to explain that, but I told you that he was banned - because he asked that to be let known in here, that he will not be able to support the mod at the moment.
How to force "enable". I am trying to ENABLE this mod but its still disabled.
How do I make pretty urls ignore a whole directory? It's been asked but I havent seen an answer ><.
I tried the subdirectory troubleshoot but it doesn't work and my chat bar isn't working anymore
Quote from: LexArma on January 18, 2010, 12:11:57 PM
I don't feel I am in the position to explain that, but I told you that he was banned - because he asked that to be let known in here, that he will not be able to support the mod at the moment.
Fair enough, take a deep breath. It's all going to be okay.
Quote from: Daydreamer on January 12, 2010, 01:27:37 PM
Quote from: massdog.com on January 12, 2010, 12:24:05 PM
PLEASE HELP ME
[http://www.simplemachines.org/community/index.php?topic=146969.msg2451068#msg2451068
Install the "Load Standart Language" Mod.
it doesnt work
i got this error >:( >:( >:( and install load standard language mod(it doesnt work)
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=146969.0;attach=131226)
Hey. Great plugin! I see it no longer got a caretaker tho i hope someone can help me out here.. I have moved my forums from /forums to root and I've ran repair_setting.php but Pretty urls still link my forums and posts with /forum in the url. It is redirecting all those forum links to the correct root directory like root/my-board. I have tried to uninstall and delete the addon but this still occurs. ???
wow this was really easy to fix. the solution is at the most obvious place:o
http://code.google.com/p/prettyurls/wiki/TroubleShooting
alhem - you may need to clear the pretty_url_cache table in your database (truncate/empty the table)
Thanks for the quick reply but it keeps writing the same urls again. Its only wrong on "Boards" and "Topics" urls tho. "Actions" and "Profiles" urls have noticed that i moved the forum, strangely...
I found out that json was conflicting with my chat that had json o.o.. any way to fix?
i've uninstalled this mod .... i wanna know how to redirect pretty url's indexed by google to the normal links site uses now :o
im using SMF 2.0 RC2
http://code.google.com/p/prettyurls/downloads/list
also the reverter is not compatible to RC2
please help T___T
Quote from: Imp@tient on January 21, 2010, 02:23:00 AM
i've uninstalled this mod .... i wanna know how to redirect pretty url's indexed by google to the normal links site uses now :o
im using SMF 2.0 RC2
http://code.google.com/p/prettyurls/downloads/list
also the reverter is not compatible to RC2
Its not exactly what u ask but if you got the Addon installed and just disable url rewriting both urls will work. :D
Quote from: alhem on January 21, 2010, 10:08:29 AM
Quote from: Imp@tient on January 21, 2010, 02:23:00 AM
i've uninstalled this mod .... i wanna know how to redirect pretty url's indexed by google to the normal links site uses now :o
im using SMF 2.0 RC2
http://code.google.com/p/prettyurls/downloads/list
also the reverter is not compatible to RC2
Its not exactly what u ask but if you got the Addon installed and just disable url rewriting both urls will work. :D
ummm actually i want to uninstall this mod ...... but the links google have index wont work then .... so i just want them to redirect to normal links
Quote from: massdog.com on January 20, 2010, 12:29:24 AM
i got this error >:( >:( >:( and install load standard language mod(it doesnt work)
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=146969.0;attach=131226)
It's a shame that single quotes result in an endless loop. That makes this mod unusable in our language. I think it has to do with mod_rewrite, but you might want to fully disregard quotes and single quotes, just like you do with commas.
EDIT: Actually, I feel URLs shouldn't have quotes at all. Don't you?
Quote from: LexArma on January 18, 2010, 12:11:57 PM
Quote from: gietl on January 18, 2010, 11:44:09 AM
So the question is, why did they get banned?
I don't feel I am in the position to explain that, but I told you that he was banned - because he asked that to be let known in here, that he will not be able to support the mod at the moment.
Damnit, not now!
help please
They've unbanned me, but I have no intention to do any more development or support for this mod, until such a time where all the problems in the SMF management team have been fixed. Sorry everyone.
You may like to read a story I wrote though! http://www.smf-friends.org/index.php?topic=54.0
Welcome back Danni :)
My problem was fixed by the way by adding the single quote ( ' ) to the subs and substitute it with a dash. We now have a working forum again :)
Im using 1.1.11.
My forum http://bincangprofesi.com/forum/index.php get this error after i edit pretty url setting from Rewrite Topic URLs to uncheck Rewrite Topic URLs. Usually it works okay...
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
[email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at bincangprofesi.com Port 80
my error log says like this :
[Mon Jan 25 02:43:01 2010] [error] [client 114.56.81.147] File does not exist: /home/pustak02/public_html/500.shtml, referer: http://bincangprofesi.com/forum/admin/?area=pretty
[Mon Jan 25 02:43:01 2010] [alert] [client 114.56.81.147] /home/pustak02/public_html/forum/.htaccess: Invalid command 'Array', perhaps misspelled or defined by a module not included in the server configuration, referer: http://bincangprofesi.com/forum/admin/?area=pretty
[Mon Jan 25 02:42:32 2010] [error] [client 66.249.71.4] File does not exist: /home/pustak02/public_html/500.shtml
[Mon Jan 25 02:42:32 2010] [alert] [client 66.249.71.4] /home/pustak02/public_html/forum/.htaccess: Invalid command 'Array', perhaps misspelled or defined by a module not included in the server configuration
I dont understand what that technically means.
My hosting (maxoz.com) says that i should make a change through control panel, but i dont know which file that i should edit and how. Pls help me Danni ... :<
Working great, but I'm having the same problem as wonky was a few pages back only on a few boards, that is the 'The page isn't redirecting properly' in Firefox -- one such example is here: http://beyondstonewalls.com/rpg/jiffy-and-jigger%27s-apothecary/until-death-doth-enter/
Any suggestions are appreciated, thanks!
This is one of the greatest mods on the SMF site helped me get away from seo4smf.
I would like to report a bug
smf version 2.0 RC1.2
pretty urls 1.0RC
With "Rewrite Action URLs (ie, index.php?action=something)" checked in the options, I.E 8.0 encounters an error upon trying to login to smf. "You were unable to login. Please check your cookie settings."
Firefox has no issue.
Problem in I.E is resolved if "Rewrite Action URLs" is not checked.
Problem is persistent regardless of I.E security settings level.
Quote from: Imp@tient on January 21, 2010, 12:47:08 PM
Quote from: alhem on January 21, 2010, 10:08:29 AM
Quote from: Imp@tient on January 21, 2010, 02:23:00 AM
i've uninstalled this mod .... i wanna know how to redirect pretty url's indexed by google to the normal links site uses now :o
im using SMF 2.0 RC2
http://code.google.com/p/prettyurls/downloads/list
also the reverter is not compatible to RC2
Its not exactly what u ask but if you got the Addon installed and just disable url rewriting both urls will work. :D
ummm actually i want to uninstall this mod ...... but the links google have index wont work then .... so i just want them to redirect to normal links
bump***
Quote from: Dannii on January 24, 2010, 07:58:02 AM
They've unbanned me, but I have no intention to do any more development or support for this mod, until such a time where all the problems in the SMF management team have been fixed. Sorry everyone.
You may like to read a story I wrote though! http://www.smf-friends.org/index.php?topic=54.0 (http://www.smf-friends.org/index.php?topic=54.0)
Quote from: Imp@tient on January 25, 2010, 08:05:08 AM
Quote from: Imp@tient on January 21, 2010, 12:47:08 PM
Quote from: alhem on January 21, 2010, 10:08:29 AM
Quote from: Imp@tient on January 21, 2010, 02:23:00 AM
i've uninstalled this mod .... i wanna know how to redirect pretty url's indexed by google to the normal links site uses now :o
im using SMF 2.0 RC2
http://code.google.com/p/prettyurls/downloads/list
also the reverter is not compatible to RC2
Its not exactly what u ask but if you got the Addon installed and just disable url rewriting both urls will work. :D
ummm actually i want to uninstall this mod ...... but the links google have index wont work then .... so i just want them to redirect to normal links
bump***
Why do you want to uninstall it? Perhaps there's another way around your problem. How many pages has google indexed on your forum?
Do you have a sitemap? If so, I would uninstall the mod, and submit a new sitemap. If your site is spidered often google should re-index fairly quickly particularly if your content is still good. Your only loss would be link juice from other pages on the net.
The only other way, is if you find some pages have significant page rank or links pointing to them, I would set up my own redirects specifically to these "important" pages. I would let google simply re-index those without any juice.
Maybe others have different ideas.
It's a shame this mod is no longer being updated. It's one of the best mods for SMF and I would PAY for it if development continued. This is one mod that can make or break a forums SEO success. Please consider continuing work. If not directly with SMF, than outside. I will pay.
Hi, according to this topic http://www.simplemachines.org/community/index.php?topic=58439.0, may I rename index.php?? and still use mod pretty url??
if yes, and what am I doing? may I replace index.php on .htaccess? thanks
News and newsletters cant be found..
"Not Found
The requested URL /news.swf/ was not found on this server."
but other link in admin panel is OK...
Pretty URLs SMF 2.0 RC2
Ayt, I am trying to install a different mod that requires the TOPIC ID, how can I possibly retreive the TOPIC ID without uninstalling the PRETTY URL? thanks!!
The topic ID is still there, the pretty URL is simply a filter / a mask
Quote from: bjraines on January 27, 2010, 11:56:34 AM
The topic ID is still there, the pretty URL is simply a filter / a mask
Yes, but where will I see it? :)
what do you need to see it for?
if you click one of the anchor links in the message thread that starts with Re: you should see it
Quote from: bjraines on January 27, 2010, 01:57:47 PM
what do you need to see it for?
if you click one of the anchor links in the message thread that starts with Re: you should see it
I need it for the other mod, "Force Topic Read On Login Mod" it needs the TOPIC ID. What if there is No Re:? I mean just a Announcement that cannot be replied in? Thanks anyway!!
After installing pretty urls I am unable to view my boards. I have tryed to install the .php file listed under the troubleshooting and still nothing..
Where should I begin to fix this?
Did you browse to the uploaded php file?
yes, what should i be looking for?
im not 100% sure, but i belive once youve created that file in your forum folder on the server, then opened it in your browser it should disable pretty urls.
How do you add more action rules?
I added the action to the .htaccess but it did not convert the URL
Quote from: Achilles. on January 27, 2010, 02:08:22 PM
Quote from: bjraines on January 27, 2010, 01:57:47 PM
what do you need to see it for?
if you click one of the anchor links in the message thread that starts with Re: you should see it
well you could reply and get the id and then delete the reply OR you could cut off Pretty URL for a few seconds and observe it or you could check your database
how would i go about undoing what pretty urls has done?
how can i uninstall it if i cant get into the admin?
You need to create the php file using the code in the troubleshooting link in the 1st post, then browse to it.
I installed, successfully, but it still shows like this:
http://kcmartz.com/admin/?area=corefeatures;bb4eb3af28=296f1aeb7b01252154b61a586cf21b4e
Problem's solved!! Something wrong in htaccess so i copy another htaccess from my other forum that use prettyurl and it works alright :D
-edit : now i still can use prettyurl, yay!-
Hello, and thanks for this excellent mod.
However, it's not working fine. Everything is great when I read the forum (smf2 RC2), but when anyone wants to reply (or create a new subject), the redirection script after submiting is failing. I don't know where I should look, but it seems that only the redirection script after submiting gets a fail.
The error is
(in french)
QuoteRedirection de page incorrecte
Firefox a détecté que le serveur redirige la demande pour cette adresse d'une manière qui n'aboutira pas.
* La cause de ce problème peut être la désactivation ou le refus des cookies.
it says
QuoteRedirection incorrect
Firefox detected that the server is redirecting the request though a method which will not work.
The cause could be the cookies acceptation
(of course, no trouble with cookies at all, it's the same on all browsers)
while the answer url was "http://www.topjournaliste.com/forum/index.php?topic=4.new#new"
Can anyone help me please ?
Quote from: hollowmetalguy on January 27, 2010, 04:14:46 PM
how would i go about undoing what pretty urls has done?
how can i uninstall it if i cant get into the admin?
>:(Please help! After installing it and enabling it i couldnt login any more int the admin area>:(
Quote from: aishaweb on January 27, 2010, 04:16:28 PM
You need to create the php file using the code in the troubleshooting link in the 1st post, then browse to it.
I was hoping that there was a simple PHP script which could help with the replacing of Pretty URLs with their respective original URLs in posts and possible PMs and signatures.
I have given it a quick go at writing a script but I failed. The reason I wish for such a script is because I regularly clean out the pretty URLs cache so that URLs can be regenerated for when topics are renamed or moved between boards, doing so causes links to the previous URLs on the forum to become inaccessible.
This would also come in handy as I am considering using SimpleSEF instead of Pretty URLs as it uses the topic id/board id etc. as part of the links so when the name of the topic/board etc. changes all previous links still remain valid.
Thanks for any time and help, I already checked the troubleshooting page and their doesn't seem to be any information about this.
Quote from: raing3 on January 30, 2010, 05:21:15 AM
I was hoping that there was a simple PHP script which could help with the replacing of Pretty URLs with their respective original URLs in posts and possible PMs and signatures.
I have given it a quick go at writing a script but I failed. The reason I wish for such a script is because I regularly clean out the pretty URLs cache so that URLs can be regenerated for when topics are renamed or moved between boards, doing so causes links to the previous URLs on the forum to become inaccessible.
This would also come in handy as I am considering using SimpleSEF instead of Pretty URLs as it uses the topic id/board id etc. as part of the links so when the name of the topic/board etc. changes all previous links still remain valid.
Thanks for any time and help, I already checked the troubleshooting page and their doesn't seem to be any information about this.
So what are you saying when rename a topic or move a topic to a different board. The old link to the topic no longer works but the new link is fine. Are you looking a script that will still keep the old links active but redirect them to the new location?
No, I think basically he's looking for some functionality similar to what I did in my own install of PrettyURLs (http://nao.noisen.com for instance) -- having topic IDs in the URL so that the topic can always be found, regardless of the topic name in the URL (it's only there for... a pretty and informative URL.) Additionally, it saves some time to make a search on the topic ID rather than the cached name. Two pros and only one con (slightly longer URL).
In any case, it's easy to implement.
hmm. The only issue I could see with using the id would be you would have two links to the exact same content you would still want to do a 301 redirect for the old links otherwise you might take an SEO hit
There's no such SEO hit. Don't forget that SMF2 adds support for canonical links. I don't know if it's supported by PrettyURLs but mine supports it, and turns it into the current URL.
Eh, told ya I wanted to inherit the mod :P
vbgamer are you taking over this mod or this is temporary?
Yes mod will remain here on the modsite and will be upadted. Focus is going to be fixing any bugs that correctly exist and then integrating with other mods.
Quote from: Nao on January 30, 2010, 11:16:17 AM
No, I think basically he's looking for some functionality similar to what I did in my own install of PrettyURLs (http://nao.noisen.com for instance) -- having topic IDs in the URL so that the topic can always be found, regardless of the topic name in the URL (it's only there for... a pretty and informative URL.) Additionally, it saves some time to make a search on the topic ID rather than the cached name. Two pros and only one con (slightly longer URL).
In any case, it's easy to implement.
That's exactly what I did with SimpleSEF... definitely helps vs having to do a search for name.
This question seems to be simple, but I can't find the answer.
I've deleted a message on my forum. This message was drawing traffic from external links on the Internet. The link to the deleted post looked like this:
http://www.myforum.com/smf/thisboard/my-old-topic-which-i-deleted/
I rewrote the message and posted it again with exactly the same message title. Now the link looks like this:
http://www.myforum.com/smf/thisboard/my-old-topic-which-i-deleted-743/
If I click on the old link this message appears:
Warning!
The topic or board you are looking for appears to be either missing or off limits to you.
Please login below or register an account with MyFforum.com.
I want to redirect the old link to the new message. I've tried to ad this line to the .htaccess file in the main smf folder (as I use to do with an other old html-site):
Redirect 301 smf/thisboard/my-old-topic-which-i-deleted/ http://www.myforum.com/smf/thisboard/my-old-topic-which-i-deletded-743/
But this did not work. What can I do to redirect the traffic to the new message?
Do you have a recycle bin for your forum? That could explain since the url was already in the cache to append to the id to the topic
Make sure your .htaccess rule is near the top above the pretty urls rules
Quote from: vbgamer45 on January 30, 2010, 06:30:08 PM
Do you have a recycle bin for your forum? That could explain since the url was already in the cache to append to the id to the topic
No recycle bin. As far as I know, SMF 1.1x does not have this feature. SMF 2.x
Quote
Make sure your .htaccess rule is near the top above the pretty urls rules
hmmm, now I get something like this:
http://www.myforum.com/smf/thisboard/my-old-topic-which-i-deleted-743/?pretty;board=thisboard;topic=my-old-topic-which-i-deleted.0
Can you post a copy of your .htaccess file?
Quote from: vbgamer45 on January 30, 2010, 06:59:31 PM
Can you post a copy of your .htaccess file?
Here is the original .htaccess file:
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: January 30, 2010, 23:28
RewriteEngine on
# Rules for: tp-articles
RewriteRule ^page/([^/]+)/?$ ./index.php?pretty;page=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(activate|admin|announce|arcade|managegames|arcadecategory|arcadesettings|ban)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(boardrecount|buddy|calendar|cleanperms|collapse|convertentities|convertutf8|coppa)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(contact|deletemsg|detailedversion|display|dlattach|dumpdb|editpoll|editpoll2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(featuresettings|featuresettings2|findmember|help|gallery|helpadmin|im|jsoption)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jsmodify|lock|lockVoting|login|login2|logout|maintain|manageattachments)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics|mlist|modifycat)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(modifykarma|modlog|movetopic|movetopic2|news|notesave|notify|notifyboard)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(optimizetables|packageget|packages|permissions|pgdownload|pm|post|post2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2|recent)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(regcenter|register|register2|reminder|removemodified|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings2|sitemap|smileys|smstats|spellcheck|splittopics|stats|sticky)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(theme|trackip|xlinks|admod|about:mozilla|about:unknown|unread|unreadreplies)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewErrorLog|viewmembers|viewprofile|verificationcode|vote|viewquery|who|\.xml)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(tpadmin|forum|tpmod)/?$ ./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]
Hello,
Excellent job. Congratulations!
Could you please tell me why the names of the topics are correctly transcribed from Russian to Latin, while the names of the Boards are not - most of the letters are omitted. Instead of hronika I get oka
Thank you
Quote from: massdog.com on January 21, 2010, 09:50:34 PM
Quote from: massdog.com on January 20, 2010, 12:29:24 AM
i got this error >:( >:( >:( and install load standard language mod(it doesnt work)
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=146969.0;attach=131226)
Quote from: raing3I was hoping that there was a simple PHP script which could help with the replacing of Pretty URLs with their respective original URLs in posts and possible PMs and signatures.
I have given it a quick go at writing a script but I failed. The reason I wish for such a script is because I regularly clean out the pretty URLs cache so that URLs can be regenerated for when topics are renamed or moved between boards, doing so causes links to the previous URLs on the forum to become inaccessible.
This would also come in handy as I am considering using SimpleSEF instead of Pretty URLs as it uses the topic id/board id etc. as part of the links so when the name of the topic/board etc. changes all previous links still remain valid.
Thanks for any time and help, I already checked the troubleshooting page and their doesn't seem to be any information about this.
To further explain myself from my previous post...
I would like a script which would just go through the posts, signature and PMs and replace this example URL
http://www.simplemachines.org/community/modifications-and-packages/pretty-urls-1.0rc/ with
http://www.simplemachines.org/community/index.php?topic=146969. Obviously repeat with all the rows in the PrettyURL cache table.
This clearly wouldn't fix any problems with people linking to the topic from external URLs but the main issue I am concerned about is internal links on the forum.
I wish to do this because I plan on giving SimpleSEF a go for a while and simply uninstalling PrettyURLs with render quite a number of URLs invalid.
Thanks.
Install the reverter package.
I messed up my htaccess (smf 1.1.11) last time so i copied my other forum htaccess (smf 2.0 RC2) and pasted it into the other htaccess (1.1.11), and strangely the problem's solved. Here's my rc2 htaccess file if someone want to try to copy paste it, just incase it helps!!
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: January 29, 2010, 8:50
RewriteEngine on
RewriteBase /
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$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]
# PRETTYURLS MOD ENDS
i got this error >:( >:( >:( and install load standard language mod(it doesnt work)Quote from: massdog.com on January 31, 2010, 02:28:28 PM
Quote from: massdog.com on January 21, 2010, 09:50:34 PM
Quote from: massdog.com on January 20, 2010, 12:29:24 AM
//
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=146969.0;attach=131226)
Go add the language entry to modifications.english.php yourself. :)
Maddog my guess for some of those errors you have your language is set to English-utf8 go to Admin -> Server Settings and under language make sure it is set to just English.
hello friends,
Suppose i want to uninstall this MOD.
1- i get the uninstaller package
2- I run this package first or after uninstall the pretty url ?
Uninstall the mod. Then grab the reverter package otherwise you could loose your search rankings.
Quote from: vbgamer45 on February 01, 2010, 08:57:59 PM
Uninstall the mod. Then grab the reverter package otherwise you could loose your search rankings.
to grab the reverter package, i do it the same away to unistall the mod, right ? i.e, upload the uninstaller package and than i do an install to this uninstaller package. correct ?
and than i simple delete this package from the server ?
The mod comes with a built in uninstaller just uninstall it from the package manager.
Then after you uninstall grab the reverter package from the mod site.
sorry, but... ( i am portuguese :)
what does grab means ? how do i do it ?
Grab means download the file from the modsite there should be that package on there.
i already have that file on my server.
so, i do this;
1- unistall the pretty mod
2- install de "reverter package"
right ?
* i just dont want to make anythig wrong with my 2000 links indexed on google
That's correct. Any reason you are uninstalling?
Sometimes i get the error " PRETTY DUPLICATE ENTRY ..... somethig like this"
do you know what does means ?
Yeah if you can post an example of that error if you still have a copy in your forum's error log I would like to see it so I can fix it.
Quote from: vbgamer45 on February 01, 2010, 09:47:47 PM
Yeah if you can post an example of that error if you still have a copy in your forum's error log I would like to see it so I can fix it.
Ok. i will abort the uninstallation. i deleted all the errors. Not so much like that. I will wait for one more error and will show it to you.
Sincerely, i love this MOD ;)
Thanks! I hope I can get it fixed if you find one.
ok, i am back :)
here is the error:
http://www.new-digital.net/index.php?topic=2513.0
Erro na base de dados: Duplicate entry '2513' for key 'PRIMARY'
Ficheiro: /home2/newdigi3/public_html/Sources/PrettyUrls-Filters.php
Linha: 290
it happens lot of times.
wait for your help ;)
Thanks will check it out
Added some new filters to provide pretty urls support for some mods and uploaded it to the modsite.
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 Classifeds, and SMF Store
so..
i just have to uninstall this version, and install the new one ?
Everytime i add a new board, or change an existant one i get these kind of errors;
http://www.new-digital.net/index.php?pretty;action=manageboards&sa=newboard;cat=12
8: Undefined index: twitter_tpl_enable
Ficheiro: /home2/newdigi3/public_html/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Linha: 438
http://www.new-digital.net/index.php?pretty;action=manageboards&sa=newboard;cat=12
8: Undefined index: twitter_enable
Ficheiro: /home2/newdigi3/public_html/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Linha: 434
http://www.new-digital.net/index.php?pretty;action=manageboards&sa=newboard;cat=12
8: Undefined index: twitter_tpl_text
Ficheiro: /home2/newdigi3/public_html/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Linha: 442
Is there a soluction ? thanks
Those errors above are not part of Pretty Urls but appear to be from a twitter mod to your forum.
About the first error, should i just uninstall the version i have, and install the new version posted here in this forum ?
Haven't posted a new pretty urls version yet still working on that error.
Can you please change the extension? Like instead of (-) can you make the mod place a (_) for space?
The (_) is better for SEO, and if you added this then this mod will be waaayyyy better then simpleSEF.
Thanks,
Can you send me a link to an article where it says _ is better than - for search engine rankings
You can change it yourself by editing Subs-PrettyUrls.php.
Still get a wierd issue:
http://www.exampleforum.com/admin/?action=news;
I get that!!!
Quote from: vbgamer45 on February 02, 2010, 05:44:18 PM
Added some new filters to provide pretty urls support for some mods and uploaded it to the modsite.
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 Classifeds, and SMF Store
Do you plan to add support for more mods yourself?
Or allow mod authors to add custom filters?
Yes. I plan to add more filters from mod authors. Quickly did the mods that I know.
there is an error on the smf parser when you add link to a post or topic with "!!" in the urls without URL tags... it will cut the link, can we make some workaround??
IE:
original: http://google.com/exclamation!!!!!
created link: http://google.com/exclamation
Hi again,
I have just installed this mod and the URL's are saying "oops this link appears to be broken"
Is there an easy fix?
Here is a link to the test page
http://www.window-tools.com/windows/index.php?action=admin;area=pretty;sa=test
Thanks
Do you have mod_rewrite enabled if you are using apache? Or if you are using IIS you need isapi_rewrite
Quote from: luismanson on February 03, 2010, 01:27:39 PM
there is an error on the smf parser when you add link to a post or topic with "!!" in the urls without URL tags... it will cut the link, can we make some workaround??
IE:
original: http://google.com/exclamation (http://google.com/exclamation)!!!!!
created link: http://google.com/exclamation (http://google.com/exclamation)
You'll have to use [url] tags. This is a problem with SMF, not this mod.
peterf, does your server support everything this mod needs?
Thanks vbgamer,
I am using cpanel, where would I enabled mod_rewrite? The pretty url files are in my sources folder.
Peter
Quote from: luismanson on February 03, 2010, 01:27:39 PM
peterf, does your server support everything this mod needs?
I would think so it seems to support everything else I have needed, but to tell the truth I don't know,
Peter
I also installed SimpleSEF would this be causing the problems?
I have tried to change the settings in options to "all files are writable" but it dosn't seem to let me, and I was going to try and install again once all the files were writable, may this have worked?
Peter
That would cause issues you can only have one url rewriting mod so you either pick Pretty Urls or SimpleSEF
Thanks again vbgamer, I un installed both and reinstalled pretty and it now works fine.
Thanks,
Peter
Glad you got it working!
Let me try to find the article.
Quote from: vbgamer45 on February 03, 2010, 09:33:23 AM
Yes. I plan to add more filters from mod authors. Quickly did the mods that I know.
Thanks.
In case you want to add support for Aeva Media sooner rather than later... Here's my code.
The following should take charge of /media/, /media/album/123/, /media/item/123/ and all download variants (/media/media/123/, as silly as it sounds -- can't really change the sub-action's name. :P) It's untested so use with caution. :)
// Pretty URLs for Aeva Media
$prettyFilters['aeva'] = array(
'description' => 'Aeva Media filter',
'enabled' => 0,
'filter' => array(
'priority' => 38,
'callback' => 'pretty_aeva_filter'
),
'rewrite' => array(
'priority' => 38,
'rule' => array(
'RewriteRule ^media/(thumba?|preview)/([0-9]+)/?(.*)$ index.php?action=media;sa=media;in=$2;$1;$3 [L,QSA]',
'RewriteRule ^media/(?:(album|item|media)/([0-9]+)/?)?(.*)$ index.php?action=media;sa=$1;in=$2;$3 [L,QSA]',
),
),
'title' => 'Aeva Media Pretty Filter <a href="http://aeva.noisen.com/" target="_blank">Website</a>'
);
As for the filter, it's harder because it's based off the stuff I wrote 2 years ago. Hopefully it's still valid in the latest PrettyURLs... (I've changed some of the code on-the-fly to avoid using a subdomain, since I don't believe subdomains are supported by PrettyURLs anyway.)
// Filter Aeva Media URLs
function pretty_aeva_filter($urls)
{
global $boardurl;
$pattern = array(
'~.*[?;&]action=media;sa=media;in=([0-9]+);(thumba?|preview)(.*)~S',
'~.*[?;&]action=media;sa=(album|item|media);in=([0-9]+)(.*)~S',
'~.*[?;&]action=media(.*)~S',
);
$replacement = array(
$boardurl . '/media/$2/$1/?$3',
$boardurl . '/media/$1/$2/?$3',
$boardurl . '/media/?$2',
);
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']) && strpos($url['url'], 'action=media') !== false)
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
}
Thanks Nao have added the code for Avea Media filters and committed it.
Lol... Tu quoque, vb!! ;D
Sorry, it just makes me laugh how everybody tends to misspell Aeva... The easier ones say 'AEVA' (all caps), then there's the super-classic 'AVEA' (I believe it's a Turkish word, that would explain), recently saw 'AEVEA' and 'EVEA', now apart from your 'Avea' in this post, I see you logged the commit as 'Aveva'...
Maybe I should have just used Cyna Media, like I was planning... I would have had a chance of it having been spelt correctly, lol.
Anyway, joke aside, thanks for the commit! I forgot I had commit powers, too. Maybe I'll use them in the future if I ever install a clean PrettyURLs 1.x on a test site. Right now I feel so awfully disconnected from it.
lol yeah I had to look at a couple of files messed up the commit. First i had it as AVEA then changed it to Avea
But it's still not Avea, you know ;)
It's Evae, actually!
Hi.
Thanks for the patch, I was looking for something like that for ages.
But I found some issues:
1) The categories's name url (in SMF Gallery & SMF Articles) only appears when you're viewing the picture or the article, but it doesn't appears when you're looking the category itself (the url still shows "?cat=XX" instead "/name-of-the-category/".
2) The "accents" and other non-english characters in titles (of articles, pictures, and categories also) just disappear when the pretty url is made. That didn't happen with topics, boards and everything made in the original "Pretty URLs" mod, that takes an "à" as an "a", an "ö" as an "o" and so on...
I think it would be great to solve those issues (I can't do it myself), specially number 2.
Another request to you, vbgamer, is to make a pretty urls patch for "board categories". I'm using this mod: http://custom.simplemachines.org/mods/index.php?mod=486 , and it's annoying that "?cat=XX" in the url.
And, of course, if you can do the best patch of all, a "profiles patch" that shows something like "nickname/ID" instead "username", you'll be loved for all eternity (?).
Well... thanks again :)
Quote from: peterf on February 03, 2010, 06:26:24 PM
Hi again,
I have just installed this mod and the URL's are saying "oops this link appears to be broken"
Is there an easy fix?
Here is a link to the test page
http://www.window-tools.com/windows/index.php?action=admin;area=pretty;sa=test
Thanks
I get this and mod_rewrite is enabled by default on my server!
Hi,
Is there any possibility to apply this mod only to those topics, which were created after the mod was installed? The point is that I would like to keep old topic/board links intact and to apply seo optimization only to the newly created links.
Thanks
Quote from: virtualband.ru on February 05, 2010, 05:51:59 PM
Hi,
Is there any possibility to apply this mod only to those topics, which were created after the mod was installed? The point is that I would like to keep old topic/board links intact and to apply seo optimization only to the newly created links.
Thanks
Not at this time the mod should do a 301 redirect for all old topics so seo value should be safe
hello,
When i try to see the statistics board;
http://www.new-digital.net/stats/
i get an error HTTP 404 Not found
Do i need to add some new Rule to make this work ? Because if unselect Action rules, it works good !
thanks
That's a known issue if your webhosting company has their own stats folder directory
I updated the new patch and still have the error i posted before;
Quotehttp://www.new-digital.net/index.php?pretty;board=seguranca-pessoal-e-da-habitacao.0&action=post2;start=0
Database Error: Duplicate entry '3249' for key 'PRIMARY'
Ficheiro: /home2/newdigi3/public_html/Sources/PrettyUrls-Filters.php
Linha: 290
hope you take a look.. thanks
Refreshing the links doesn't work... theres one or two boards which have been renamed, and they still display their old names, and i have one board with a comma so the url wont work...
How do i remove the cache or where the pretty links are stored, so it can regenerate them?
You can edit board URLs in the modify boards page.
I am having an issue with the spell check feature of SMF 1.1.11 and Pretty URLs. If pretty urls is on the spell checker does not work. When I turn pretty urls off it seems to work fine.
I tried to turn off Pretty URL's for actions and that makes no difference. Any help would be appreciated. I believe this setup was working in 1.1.10.
Quote from: Dannii on February 08, 2010, 08:02:30 PM
You can edit board URLs in the modify boards page.
I did, but the pretty URL is still the same... Where is the board pretty url data stored? i checked the mysql and i cannot seem to find it.
I tried to install this awesome mods, but it can't.
I got an error
6. Execute Modification ./Sources/News.php Test failed
This is the only failed test
Will be great if you can advice what I should do.
Thanks in advance
I would still install but make the changes manually to that one file
Quote from: vbgamer45 on February 09, 2010, 08:27:23 PM
I would still install but make the changes manually to that one file
Will you let me know what changes that I need to do manually on news.php?
I try to find some information on that at the first page, but can not get it.
thanks again
You can check the modstie for manual install instructions for that file use the parse option
Quote from: vbgamer45 on February 09, 2010, 08:33:22 PM
You can check the modstie for manual install instructions for that file use the parse option
thanks vbgamer45
in 1.1.11 parse I only can found manual edit for ./Sources/PrettyUrls-Filters.php
Hey VBGamer, where are the url pretty links stored for the board urls?
They're stored in the settings table.
So you added the new URLs you want and made them the default?
Is it possible to have the actions option unchecked in any newer releases?
Possibly with a warning to test the mod out with it unchecked first, that way if ppl get 404 errors on topics and posts at least they can still get to action=admin;area=pretty;sa=settings to disable url rewriting.
The mod makes them test it first. If they don't... then they can read the trouble shooting page to find out how to disable it.
Agreed, but it would be much simpler for newbies to just go into the admin panel and uninstall the mod.
If they're stupid enough to enable it without testing it the first time, then they'll be stupid enough to manually switch on actions without testing them the second time too. I don't see how it would help.
Any insight regarding the spell check issue in 1.1.11 and Pretty URLs?
Did a test on my forum that is 1.1.x with actions rewritten and spellcheck works.
It is working great for me.
I do have a question about the Pretty URL extras mod, how can we add support for other actions , like Googletagged
You have to add a filter check out the extras.zip package for some examples like I did for SMF Gallery and some other mods
Hi.
I have installed this but some links are broke now, like more stats option in main page.
My forum: www.afghanistanforums.com
Just the stats page? The stats page is a current issue do to some hosts restrict /stats for reporting to your website
How to update this mod ? (My version is from December 2009)
i need to uninstall the package ?
I need maybe an update, because i have an "500 internal Server Error" in only one (!) topic of my forum, and a german SMF supporter tells me, it is for this "prettyURL-Mod" and i need to unistall this.
1 - How to uninstall ?
2 - How to update ?
(Oh, i have SMF 2 RC2 with simple Portal 2.3.1)
I would uninstall the package then reinstall for the best reulsts.
What is the topic url would like to see it.
thank you for the fast answer.
The topic url is :
http://www.forexfabrik.de/forex-journal/markttechnik/
Topic url looks ok to me. clicked the link it loaded for me.
thats sound interessting, maybe this issue of failure is only when i logged in ??? curios...
so it is maybe not a mistake from prettyURL ?!?!?!
i still wonder.
do you know a wa to delete this posting anyway, because when i am logged in, i have the "500 internal server error".... :-\
how to update this MOD (cause, i like it ;))
If you enable inline moderation checkboxes under Profile -> Layout Options
Then for moderation choose checkboxes You can then move the thread/delete whatever is needed
Quote from: divecall on February 12, 2010, 03:11:54 PM
how to update this MOD (cause, i like it ;))
Just uninstall old version and install new version that is all
THANK YOU, i will try... ::)
Hope it goes well!
with shaking knees and wet hands: me too ! (but i will do at weekend, after some backups...)
Good plan!
Hi! Is it possible to do? Pretty urls change topic url when somebody edits subject of the topic?
Now when I edit topic subject, url didn't change. Help please.
URLs should be permanent... you shouldn't change them. But if you want to, you can manually edit the URL in the pretty_topic_urls table (and then run maintenance.)
For example, somebody made a mistake typing subject of topic. And generated url will be with mistake.
Every time I should delete it from database? :'(
I have installed pretty urls, it works great but more stats link is broken in main page. How to fix this?
www.afghanistanforums.com
I have installed pretty urls, it works great but more stats link is broken in main page. How to fix this?
www.afghanistanforums.com
No fix yet for that.
The stats page is not restricted due to my website.
Could you guide me how to fix this manually.
www.afghanistanforums.com
Read here for bug report and a link to a solution!
http://code.google.com/p/prettyurls/issues/detail?id=104&colspec=ID%20Modified%20Milestone%20Priority%20Status%20Stars%20Summary
I have fix the link manually by going to my database, smf pretty url cache table and replace the original link in the row.
it works fine now.
www.afghanistanforums.com
Glad you got it working
HI,
The pretty url work fine with administrator user, but when i am browsing my forum through guest user, the forum urls are original not pretty url.
I'm Facing Problem wid this MOD,
BxKs Wap Mod Stop Working Properly wid this mod...
Wen we try to post using wap mod automaticlly Session Time Out & Logout....
Excuse My English....
Quote from: maihannijat on February 15, 2010, 01:46:14 AM
HI,
The pretty url work fine with administrator user, but when i am browsing my forum through guest user, the forum urls are original not pretty url.
Link?
Hi.
The pretty url's original filter change thinks like this: á, ü, ñ, ç, ê... to a, u, n, c, e to make the urls, but the urls made by the "extra" package just ignore thinks like that. Why?
How can I solve the problem?
Thanks.
Hi, I just installed this mod on my 1.x boards, works fine, except for SSI title.
My boards are at x.domain.com and my main site using SSI is at www.domain.com
The $context['page_title'] = "Title of mainsite"; doesn't show up anymore after installing this mod. Any ideas?
Quote from: DivaksH on February 15, 2010, 05:48:03 AM
I'm Facing Problem wid this MOD,
BxKs Wap Mod Stop Working Properly wid this mod...
Wen we try to post using wap mod automaticlly Session Time Out & Logout....
Excuse My English....
Hello vbgammer45!
First of all, thanks for this great mod!
Second I hope you can help me with a little problem. I'm moving my forum to another domain. all the installation was ok, but when I enable Pretty URL, my forum shows links to my previous domain. How can I fix this?
Thank you!
Quote from: aishaweb on February 16, 2010, 05:04:33 AM
Quote from: maihannijat on February 15, 2010, 01:46:14 AM
HI,
The pretty url work fine with administrator user, but when i am browsing my forum through guest user, the forum urls are original not pretty url.
Link?
Here is the link: www.afghanistanforums.com
Angelotus, I can't see how that could be caused my this mod.
distante, read the trouble shooting page!
As usual, I find that most of my mods I use are maintained by vbgamer45 :)
Anyways, I am trying to force the URL - meaning if you type in http://www.site.com and http://site.com, you get the same size. But Google caches it as two sites....so I want to add two very simple lines to the .htaccess file...
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.site.com$
RewriteRule ^(.*)$ http://www.site.com/$1 [R=301]
But every time I do, it cause the forum to break...
Any ideas?
Quote from: Dannii on February 17, 2010, 09:47:38 PM
Angelotus, I can't see how that could be caused my this mod.
distante, read the trouble shooting page!
I don't know either, but it did happen after installing the mod.
MordyT, does adding the L flag help? [L,R=301]
Quote from: Dannii on February 18, 2010, 04:28:52 AM
MordyT, does adding the L flag help? [L,R=301]
I will try and post back...
hello,
i have moved the forum from one webspace hoster to another one. After this process, it is not possible to use pretty urls. When i enable it, than shows me the seo-friendly link an 404 error. But before it works great.
.htaccess is writeable and configurabel, mod write is 100% supported.
I have used after chanching the webhoster the repair php, the forum itself works, but not the pretty urls. I had still erased all entries of pretty urls in the database (include the tables in smf_options or smf_settings ((i forgot how it is named))).
Do any one have an answer?
Hi,
I'm confused, I use this module or simplesef of SlammedDime? what is the best ?
I only have a small forum
Thank you
Quote from: Am' on February 19, 2010, 10:30:15 AM
Hi,
I'm confused, I use this module or simplesef of SlammedDime? what is the best ?
I only have a small forum
Thank you
Either one works but you can only have one installed.
The advantage of Pretty Urls is that is very easy to expand and has support for the popular mods.
I noticed that :
- pretty stores the links in the tables sql and simplesef not.
- Simplesef add links in .html and not pretty.
Google does not prefer the links in .html ?
For google it really does not matter so much what the ending is as long as url does contain a ton of endless variables than it is fine.
Basically what you are doing with these mods is to create a more human readable link. Doing this also adds more keywords to your pages since you have the urls in a pretty format which then in turn helps your search engine ranking since there are more keywords on the page.
is there any way to change one of the actions? im on dreamhost and /stats is already in use by the control panel and i can not change it :(
Check a couple posts back for a fix someone asked the same question
oh, i didn't saw it.
thanks!
Glad it helps
Azrael1, did you follow the trouble shooting page?
Quote from: Dannii on February 21, 2010, 08:31:01 AM
Azrael1, did you follow the trouble shooting page?
yes, i did. but it can't fix the problem.
Can you post your .htaccess file?
I still have several errors like this;
QuoteGUEST Today at 01:18
guest IP 96d17f121b316cc2228eb3da9fb30740
http://www.new-digital.net/index.php?topic=5221.0
Erro na base de dados: Duplicate entry '5221' for key 'PRIMARY'
Ficheiro: /home2/newdigi3/public_html/Sources/PrettyUrls-Filters.php
Linha: 290
Is there a solution for this ?
thanks
So, i installed pretty URLs. Everything is ok but one problem. When i write post or use some option of moderation in the topic, i'm redirecting to white page. If i press refresh, i get this error: You already submitted this post! You might have accidentally double clicked or tried to refresh.
And post appears, but that white window sux... Why is it?
Everything is ok when i disable URL rewriting on Topics and Boards.
First check your forum's error log and let me know if there are errors listed that might be related.
Error:
?pretty;board=pamokos;topic=(pamoka)-gui-registracija-ir-prisijungimas-0-3.30&action=deletemsg;msg=6669;c55ae7e4e6a7=559d805428b0403c1b515baa61c42c93
2: Header may not contain more than a single header, new line detected.
Quote from: vbgamer45 on February 21, 2010, 04:30:40 PM
Can you post your .htaccess file?
For an information, i get the following Error-Information:
QuoteThe requested URL /forum/profile/Calamaru/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Ok, and here is the .htacces of the folder /forum/
Quote
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: February 22, 2010, 23:18
RewriteEngine on
RewriteBase /forum
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(activate|admin|ads|announce|attachapprove|buddy|buddypage|buddypage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(calendar|chat|chat|clock|collapse|coppa|credits|deletemsg)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(display|dlattach|dlpmattach|editpoll|editpoll2|emailuser|findmember|groups)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(help|globalhf|helpadmin|im|jseditor|jsmodify|jsoption|lock)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(lockvoting|login|login2|logout|markasread|mergetopics|media|mgallery)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notepad|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|reminder|removepoll|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reporttm|requestmembers|restoretopic|search|search2|websearch|sendtopic|sitemap)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|stats|sticky|theme|teampage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./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]
# PRETTYURLS MOD ENDS
and if it would be usefull, this ist the .htaccess of the main root.
Quote<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
# BEGIN Host Rewriting
RewriteCond %{HTTP_HOST} !^www\.wiemaikai\.de$ [NC]
RewriteRule ^(.*)$ http://www.wiemaikai.de/$1 [R=301,L]
# END Host Rewriting
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
</IfModule>
Does anything work with pretty urls or is it just an issue with profiles?
Quote from: vbgamer45 on February 22, 2010, 05:24:51 PM
Does anything work with pretty urls or is it just an issue with profiles?
no, nothing works with prety urls. There will be allways an 404 with the specific rewrite text. Profile was only an example.
i still asked my provider if mode rewrite and per direcotry is on - he said it is all turned on.
Try adding this to your root after
#END Wordpress
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/ [nofollow]
# .htaccess file generated automatically on: February 22, 2010, 23:18
RewriteEngine on
RewriteBase /forum
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(activate|admin|ads|announce|attachapprove|buddy|buddypage|buddypage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(calendar|chat|chat|clock|collapse|coppa|credits|deletemsg)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(display|dlattach|dlpmattach|editpoll|editpoll2|emailuser|findmember|groups)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(help|globalhf|helpadmin|im|jseditor|jsmodify|jsoption|lock)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(lockvoting|login|login2|logout|markasread|mergetopics|media|mgallery)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notepad|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|reminder|removepoll|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reporttm|requestmembers|restoretopic|search|search2|websearch|sendtopic|sitemap)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|stats|sticky|theme|teampage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./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]
# PRETTYURLS MOD ENDS
Quote from: vbgamer45 on February 22, 2010, 05:53:20 PM
Try adding this to your root after
#END Wordpress
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/ [nofollow]
# .htaccess file generated automatically on: February 22, 2010, 23:18
RewriteEngine on
RewriteBase /forum
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(activate|admin|ads|announce|attachapprove|buddy|buddypage|buddypage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(calendar|chat|chat|clock|collapse|coppa|credits|deletemsg)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(display|dlattach|dlpmattach|editpoll|editpoll2|emailuser|findmember|groups)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(help|globalhf|helpadmin|im|jseditor|jsmodify|jsoption|lock)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(lockvoting|login|login2|logout|markasread|mergetopics|media|mgallery)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notepad|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|reminder|removepoll|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reporttm|requestmembers|restoretopic|search|search2|websearch|sendtopic|sitemap)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|stats|sticky|theme|teampage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./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]
# PRETTYURLS MOD ENDS
i tried it, but it still won't work. :-(
I'd suggest putting it before the wordpress section. Wordpress tries to eat anything it can... Pretty URLs is more selective.
You'd want to remove the RewriteBase /forum line and add forum/ to the beginning of all the following lines.
Quote from: L1F3 on February 22, 2010, 10:02:17 AM
Error:
?pretty;board=pamokos;topic=(pamoka)-gui-registracija-ir-prisijungimas-0-3.30&action=deletemsg;msg=6669;c55ae7e4e6a7=559d805428b0403c1b515baa61c42c93
2: Header may not contain more than a single header, new line detected.
So, What about my problem? Any suggestions?
Sometimes when i am posting something an error happens.
When i click to save the new post, i get this error;
Duplicate entry '5540' for key 'PRIMARY'
Ficheiro: /home2/newdigi3/public_html/Sources/PrettyUrls-Filters.php
Linha: 290
Is there a solution ?
Sorry if this has been asked before, but I can't read through 250 pages. I try to enable rewriting, and it brings up the dialog with some test links, but none of them work. Sorry, but I didn't know what other information to provide.
Quote from: Bruno36 on October 25, 2009, 05:51:49 AM
Hello!
Simple Image Upload does not work with the mod pretty url
I have an error message
Not Found
The requested URL /general-discussion/retrtretre/addform.html was not found on this server.
I have posted and just uploaded prettyurls, the problem is that i can visit most html pages but can't visit my ACP.
Would anyone have suggestions how to solve this problem out.
Thank you in advance
Hi. I'm using PrettyUrls and Simpleportal mods.
This is how my addresses look like:
exmple.com/ - portal
example.com/forum/ - forum
example.com/boardname/ - board
This is so not search engine friendly i believe, so i'm wondering how could i make it so that the board address would be "example.com/forum/boardname"
Could it be possible with some simple htaccess edit? Can anyone help?
VBgamer, I have really big issues with this, I hope you can help me out.
After installing the mod (I didn't got any errors while installing) al my links are broken, ALL of my links. Even in the admin section everything is broken now. I can't uninstall, I can't do anything anymore.
I really need help with this, my whole site is broken now!!!!!!!!!
Update:
I manually uninstalled the package. My boards are fine now.
The problem was, that all links where messed up, there where no actions, subactions etc found in the links. Example:
http://www.mypicas.com/1/index.php?action;sa;id;=admin
It got all messed up and nothing worked anymore, even all forms didn't worked...
Any clues how to solve this, so I can install this mod?
Please help
Quote from: Miasma on February 27, 2010, 11:37:29 AM
Please help
You would need to tweak the .htaccess file
Quote from: Angelotus on February 26, 2010, 04:43:00 AM
VBgamer, I have really big issues with this, I hope you can help me out.
After installing the mod (I didn't got any errors while installing) al my links are broken, ALL of my links. Even in the admin section everything is broken now. I can't uninstall, I can't do anything anymore.
I really need help with this, my whole site is broken now!!!!!!!!!
Update:
I manually uninstalled the package. My boards are fine now.
The problem was, that all links where messed up, there where no actions, subactions etc found in the links. Example:
http://www.mypicas.com/1/index.php?action;sa;id;=admin
It got all messed up and nothing worked anymore, even all forms didn't worked...
Any clues how to solve this, so I can install this mod?
Check the trouble shooting page first
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: vbgamer45 on February 01, 2010, 09:49:34 AM
Maddog my guess for some of those errors you have your language is set to English-utf8 go to Admin -> Server Settings and under language make sure it is set to just English.
it doesnt work
still error
Please help me :P
3 months with this error
Quote from: Dannii on February 01, 2010, 04:34:30 AM
Go add the language entry to modifications.english.php yourself. :)
how to do it?i think the error is from subs.php
thanks
This user can fix that
http://www.simplemachines.org/community/index.php?topic=297156.msg1962080#msg1962080
Hello!
Simple Image Upload does not work with the mod pretty url
I have an error message
Not Found
The requested URL /general-discussion/retrtretre/addform.html was not found on this server.
Might be a bug with simple upload if you they are using relative paths instead of full paths.
when url is pretty clear, single image upload works fine
Yeah but they have a bad path to the file that's what i think happened
I move from .us domain to .net domain (with same name, made .net now become my main domain)
the board url always show .us domain..., ( other url like domainname/search/ , /help/ dll already in .net)
I try to clear the smf_pretty url cache & board url but still got .us domain in my board/topic url
pls help me :(
Quote from: Angelotus on February 27, 2010, 06:27:11 PM
Quote from: Angelotus on February 26, 2010, 04:43:00 AM
VBgamer, I have really big issues with this, I hope you can help me out.
After installing the mod (I didn't got any errors while installing) al my links are broken, ALL of my links. Even in the admin section everything is broken now. I can't uninstall, I can't do anything anymore.
I really need help with this, my whole site is broken now!!!!!!!!!
Update:
I manually uninstalled the package. My boards are fine now.
The problem was, that all links where messed up, there where no actions, subactions etc found in the links. Example:
http://www.mypicas.com/1/index.php?action;sa;id;=admin
It got all messed up and nothing worked anymore, even all forms didn't worked...
Any clues how to solve this, so I can install this mod?
I haven't got this fixed myself. In the troubleshootingpage I couldn't find the answer to this mystery too.
Quote from: mamaveve on March 03, 2010, 08:02:29 AM
I move from .us domain to .net domain (with same name, made .net now become my main domain)
the board url always show .us domain..., ( other url like domainname/search/ , /help/ dll already in .net)
I try to clear the smf_pretty url cache & board url but still got .us domain in my board/topic url
pls help me :(
Check the troubleshooting page
Quote from: mamaveve on March 03, 2010, 08:02:29 AM
I move from .us domain to .net domain (with same name, made .net now become my main domain)
the board url always show .us domain..., ( other url like domainname/search/ , /help/ dll already in .net)
I try to clear the smf_pretty url cache & board url but still got .us domain in my board/topic url
pls help me :(
Use the repair_settings.php. Some of your settings are still pointed to .us doamin
Quote from: mamaveve on March 03, 2010, 08:02:29 AM
I move from .us domain to .net domain (with same name, made .net now become my main domain)
the board url always show .us domain..., ( other url like domainname/search/ , /help/ dll already in .net)
I try to clear the smf_pretty url cache & board url but still got .us domain in my board/topic url
pls help me :(
Use the repair_settings.php some of your settings are still pointing to the us domain
I was looking on google reports of my forum and i have hundreds and hundreds of duplicate TAGs like this;
Quoteavatares/
/avatares/?wap2
Quote/jogos-20/?wap2
/jogos-23/18/?wap2
/jogos-23/9/?wap2
/jogos-23/
/jogos-23/?wap2
/jogos-28/9/?wap2
/jogos-28/?wap2
Quote/shareware-72/27/?wap2
/shareware-72/
/shareware/54/?wap2
Quote/twitter/9/?wap2
/twitter/
Quote/educacao-sexual/30/
/educacao-sexual/9/?wap2
/educacao-sexual/?wap2
Is this caused by pretty urls ? If yes, is there a solution ?
i think this is making google not to index my forum properly.
Need help, please
This is another issue i get all days;
Quotehttp://www.new-digital.net/index.php?topic=7074.0
Database error: Duplicate entry '7074' for key 'PRIMARY'
File: /home2/newdigi3/public_html/Sources/PrettyUrls-Filters.php
Line: 290
Quotehttp://www.new-digital.net/index.php?topic=7048.0
Database error: Duplicate entry '7048' for key 'PRIMARY'
File: /home2/newdigi3/public_html/Sources/PrettyUrls-Filters.php
Line: 290
Is there any thing i can do ?
Try this
Open Sources/PrettyUrls-Filters.php
Around line 290
Find
db_query("
INSERT INTO {$db_prefix}pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES " . implode(', ', $add_new), __FILE__, __LINE__);
Change to
db_query("
INSERT IGNORE INTO {$db_prefix}pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES " . implode(', ', $add_new), __FILE__, __LINE__);
thanks.
Donne ! gonna see the results and will make know ;)
And the duplicate tags on google reports. Is there a solution ?
What permissions should .htaccess have? mine are 644 but i get the error:
Cannot overwrite existing .htaccess file. Please change its write permissions.
Quote from: vbgamer45 on February 27, 2010, 05:29:20 PM
Quote from: Miasma on February 27, 2010, 11:37:29 AM
Please help
You would need to tweak the .htaccess file
So it's possible.
Can anyone help me with that? I know quite many people use portal so this would be useful for not just me.
Updated for SMF 2.0 RC3!
Not really just install support for RC3
Thanks for upgrade but i still need help
Quote from: vbgamer45 on March 08, 2010, 07:38:19 PM
Updated for SMF 2.0 RC3!
Thank you! And thank you for all the speedy updates to your mods. :-*
No problem heh I counted about 39 here on this site and plus my paid addons was another 8 or 9
Hi :)
Realy Great Mod!
Butt my webserver isnt Apache :(
..nevermind..
I have another problem please look here: http://www.simplemachines.org/community/index.php?topic=368899.msg2530981#msg2530981
I wrote a mod, which translates "current topic" Unfortunately, the link structure does not allow the cutting of characters like: ; or =
In this mod example link to the Google Translator look like this:
<a href="http://translate.google.com/translate?hl=en&sl=', $txt['lang_dictionary'], '&tl=de&u=', $scripturl, '?topic=', $context['current_topic'], '.0.html" title="Ins Deutsche übersetzen [DE]" target="_blank"><img src="', $settings['default_theme_url'], '/images/gtflags/de.png" alt="[DE]" style="border:none;" /></a>
You see this? -
http://translate.google.com/translate?hl=en&sl=', $txt['lang_dictionary'], '&tl=de&u=', $scripturl, '?topic=', $context['current_topic'], '"
Can you please, to match it to the Pretty URL's, or vice versa? Or maybe there is a possibility of the local exemption Pretty URLs?
My knowledge of mod_rewrite is incomplete, himself, does not help it if someone could help me with this?
Is it possible that both modifications were at the same time?
Please help in this matter.
Yours :)
roco
PS. Sorry for my english..
To further Clarify Roco's post (as I'm the one having the problem :) ) , here are additional details.
I have Pretty URL's mod turned on. .htaccess file is as follows:
# 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]
Now, the Google Translate Flag mod is trying to execute the following line from the Display.template.php
<a href="http://translate.google.com/translate?hl=en&sl=', $txt['lang_dictionary'], '&tl=en&u=', $scripturl, '?topic=', $context['current_topic'], '.0.html" title="Translate into English [EN]" target="_blank"><img src="', $settings['default_theme_url'], '/images/gtflags/us.png" alt="[EN]" style="border:none;" /></a>
Here is what is showing up in the source code of the page when it executes:
<a href="http://fundyschutzhund.ca/forums/welcome/media-gallery-photo's-video's-hd-video's-now-up-!!!!!/" title="Translate into English [EN]" target="_blank"><img src="http://fundyschutzhund.ca/forums/Themes/default/images/gtflags/us.png" alt="[EN]" style="border:none;" /></a>
Here is what Should be showing up in the source of the HTML:
<a href="http://translate.google.com/translate?hl=en&sl=en&tl=de&u=http://fundyschutzhund.ca/forums/bh/bh-general-information/" title="Translate into English [EN]" target="_blank"><img src="http://fundyschutzhund.ca/forums/Themes/default/images/gtflags/us.png" alt="[EN]" style="border:none;" /></a>
This portion of the URL is being cut completely off:
http://translate.google.com/translate?hl=en&sl=en&tl=de&u=
If I turn off Pretty URL's, all works just fine with the Google translate flag mod.
Thoughts ? Suggestions ?
Can the .htaccess re-write lines be tweaked to accomodate? Something else ?
Regards,
K
I am getting error in package installation
1. Execute Modification SMF2-0/Sources.xml Modification parse error
2. Execute Modification SMF2-0/Sources.xml Modification parse error
3. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
4. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
5. Execute Modification SMF2-0/Themes.xml Modification parse error
6. Execute Modification SMF2-0/Themes.xml Modification parse error
I just installed a fresh copy of SMF 2.0 RC3, Aeva and Ad Management before trying to install pretty url mod.
What's gone wrong ?
It looks like the package didn't get uploaded correctly or it failed to extract the files check the error log for more information.
You are right, there is nothing wrong with the mod, on my local server it's installing correctly. Thanks.
My post url is messed upI posted the problem on a different board and got no response before I found this board for Pretty urls ...so I am seeking your help right here http://www.simplemachines.org/community/index.php?topic=369632.0
I post again
QuoteI have a problem with my site url – it is not pulling the correct post-title-name for the url. I got things messed up somehow and had to do a backup recently after I mistakenly deleted all the site posts.
However I did the last back-up but all the post urls are all screwed up as each post has the url address not related to the post showing. I have the Pretty-url mod enabled on my site and with it each post url should give the site url along with the post title but it doesn't. However, it shows the url of another unrelated post in another board in the browser address bar.
After my back-up, I didn't noticed it until a member informed me of the issue. I tried to fix it at the phpMyAdmin but can't. The browser has the right post name but the url address bar has the wrong url title name.
For example:
Post title: How to upload a file
Board name: Tip Bits
Current post url: mysite-name(dot)com/tip-bits/9-month-old-marriage-dissolves-her-dirtiest-secrets-exposed/msg18016/?topicseen#new
Now the ... 9-month-old-marriage-dissolves-her-dirtiest-secrets-exposed... is the name/topic of another post (not the post displayed on the screen), it happens like this all my posts. And again, I do not have up to 18016 posts or messages on my site (I used to before the back-up), it is down to 17846 after the back-up.
I need some help please
Thanks
Can anyone help out with this issue above?
Truncate the smf_pretty_topic_urls (or something like that) table in DataBase. (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0))
Quote from: Daydreamer on March 11, 2010, 11:44:12 PM
Truncate the smf_pretty_topic_urls (or something like that) table in DataBase. (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0))
If I truncate the smf_pretty_topic_urls, I believe I am deleting the rows. Is that right? What next do I need to do to fix refresh the urls. Thanks Daydreamer
Easy (but dirty) fix, dodge the htaccess rewrite by tweaking the case of the url. Google doesnt seem to mind...
old
<a href="http://translate.google.com/translate?hl=en&sl=', $txt['lang_dictionary'], '&tl=es&u=', $scripturl, '?topic=', $context['current_topic'], '.0.html" title="Traducción al espanol [ES]" target="_blank"><img src="', $settings['default_theme_url'], '/images/gtflags/es.png" alt="[ES]" style="border:none;" /></a>
new
<a href="http://translate.google.com/translate?hl=en&sl=', $txt['lang_dictionary'], '&tl=es&u=', ucfirst($scripturl), '?topic=', $context['current_topic'], '.0.html" title="Traducción al espanol [ES]" target="_blank"><img src="', $settings['default_theme_url'], '/images/gtflags/es.png" alt="[ES]" style="border:none;" /></a>
Quote from: kosaic on March 09, 2010, 07:47:21 PM
To further Clarify Roco's post (as I'm the one having the problem :) ) , here are additional details.
I have Pretty URL's mod turned on. .htaccess file is as follows:
# 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]
Now, the Google Translate Flag mod is trying to execute the following line from the Display.template.php
<a href="http://translate.google.com/translate?hl=en&sl=', $txt['lang_dictionary'], '&tl=en&u=', $scripturl, '?topic=', $context['current_topic'], '.0.html" title="Translate into English [EN]" target="_blank"><img src="', $settings['default_theme_url'], '/images/gtflags/us.png" alt="[EN]" style="border:none;" /></a>
Here is what is showing up in the source code of the page when it executes:
<a href="http://fundyschutzhund.ca/forums/welcome/media-gallery-photo's-video's-hd-video's-now-up-!!!!!/" title="Translate into English [EN]" target="_blank"><img src="http://fundyschutzhund.ca/forums/Themes/default/images/gtflags/us.png" alt="[EN]" style="border:none;" /></a>
Here is what Should be showing up in the source of the HTML:
<a href="http://translate.google.com/translate?hl=en&sl=en&tl=de&u=http://fundyschutzhund.ca/forums/bh/bh-general-information/" title="Translate into English [EN]" target="_blank"><img src="http://fundyschutzhund.ca/forums/Themes/default/images/gtflags/us.png" alt="[EN]" style="border:none;" /></a>
This portion of the URL is being cut completely off:
http://translate.google.com/translate?hl=en&sl=en&tl=de&u=
If I turn off Pretty URL's, all works just fine with the Google translate flag mod.
Thoughts ? Suggestions ?
Can the .htaccess re-write lines be tweaked to accomodate? Something else ?
Regards,
K
Changing of url for thread
How can I change:
http://ladybarbar.com/forums/all-host-bars-singapore/club-gio-gio/
To:
http://ladybarbar.com/forums/all-host-bars-singapore/club-giorgio-lavender/
I tried going to SQL and change myphpadmin and the linkage does not work. ie. u click from the main forum to the new link it does not load the page.
Thanks alL!
Hello :)
@
dynaweb Verry Thank You! :)
Your fix "works 100% perfect" (like He said @
kosaic)
That was exactly what was needed - the vitamine!
Quote from: dynaweb on March 12, 2010, 04:07:43 PM
Easy (but dirty) fix, dodge the htaccess rewrite by tweaking the case of the url. Google doesnt seem to mind...
old
<a href="http://translate.google.com/translate?hl=en&sl=', $txt['lang_dictionary'], '&tl=es&u=', $scripturl, '?topic=', $context['current_topic'], '.0.html" title="Traducción al espanol [ES]" target="_blank"><img src="', $settings['default_theme_url'], '/images/gtflags/es.png" alt="[ES]" style="border:none;" /></a>
new
<a href="http://translate.google.com/translate?hl=en&sl=', $txt['lang_dictionary'], '&tl=es&u=', ucfirst($scripturl), '?topic=', $context['current_topic'], '.0.html" title="Traducción al espanol [ES]" target="_blank"><img src="', $settings['default_theme_url'], '/images/gtflags/es.png" alt="[ES]" style="border:none;" /></a>
This is great news that these two modifications can co-exist!
Thx bro and women-warior is yours:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fricoroco.com%2Fbob%2Fimgz%2Ffoty%2Fwoman-warrior.gif&hash=bca27c14c8ce1e3e2d646655e10ba9d0966cc172)
Best Regards :)
roco
If it possible add Russian and Russian-utf8 translations from attachments to next release.
Could anyone tell me how can I make all links on board "/forum/board_name" instead of simple "board_name"?
I use portal and this is very useful for navigation. That's why this option could be very nice.
hi,
I want a small modification I want to end my topic links with .html
at this time I have a url
http:// domain.com/board-name/topic-name/
now i want it like
http:// domain.com/board-name/topic-name.html
I have changed it in .htaccess
from
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
to
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)(.html)?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
Now problem is that its not changing the link on topics in forum. its still showing url like
http:// domain.com/board-name/topic-name/
I have a problem with this mod, when the active sections of the forum are not accessible. He says that does not work, before activating the mod tells me that some areas or topics may fail. Is there any solution for these sections and topics that pretty url indicates that we may fail?
It also occurs to me that if I change the name of a forum area called anthers still rises in the url, but I run pretty url tool to solve problems the url still shows the previous name.
when i install this mod everything seems ok until i experience this error... when i click the more stats
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F10xhrbr.jpg&hash=c1d3ba44b06d4fc9bfca5285e027f2a57604aece) it ask for the username & password of my server
as it is linked to www.myforum.com/stats
and not www.myforum.com/index.php?action=stats as a default of smf
how can i solve this... i am using smf 1.1.11
sorry for my english
That's a known issue currently.
what do i need to do
How can I change the url output? For example, there was an error, instead /this-link/ there is /httpsvbaljgakjakhga/ ?
I want to manually change it to be correct.
i want to go to RC3 but there are no good themes, i want one like goldmoon
if anyone knows of on then please message me
Is it correct when I have all links wrote in html <a href="/"> as "http://example.com//" instead of "http://example.com/" ?
How can I change that if it is possible?
vb I found an issue with this mod:
http://custom.simplemachines.org/mods/index.php?mod=1525
When you have Pretty Urls installed that mod stop working. Maybe you can do something about it even knowing that it's a problem with that mod
I generally don't touch other mods not enough time.
Quote from: vbgamer45 on March 16, 2010, 06:58:01 PM
I generally don't touch other mods not enough time.
Yes, I know and isn't your work your mod works like a charm, no problem I'm going to see if I have time to develop a patch
I have solved my problem http://www.simplemachines.org/community/index.php?topic=146969.msg2539608#msg2539608 by patching PrettyUrls-Filters.php
And now I have a question: is there really need in slash (/) in string number 146 (file PrettyUrls-Filters.php)? I delete it and my site works good as I want.
Quote from: Daydreamer on March 11, 2010, 11:44:12 PM
Truncate the smf_pretty_topic_urls (or something like that) table in DataBase. (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0))
Everything is fine now. Did as you said, truncated the
smf_pretty_topic_urls table in the phpMyAdmin. Ran maintenance again .... and the right urls shows for each post.
thks Daydreamer for your support.
Quote from: Miasma on February 25, 2010, 05:33:40 PM
Hi. I'm using PrettyUrls and Simpleportal mods.
This is how my addresses look like:
exmple.com/ - portal
example.com/forum/ - forum
example.com/boardname/ - board
This is so not search engine friendly i believe, so i'm wondering how could i make it so that the board address would be "example.com/forum/boardname"
Could it be possible with some simple htaccess edit? Can anyone help?
help?
Try posting in the help wanted board.
hi, I installed the pretty url mod a while ago and it's been great.
all of the sudden, my website is just blank today, nothing shown.
I check out the log file. Here's what it says
[21-Mar-2010 07:54:59] PHP Fatal error: ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot use output buffering in output buffering display handlers in /home/public_html/gigs/Sources/Subs.php on line 2681
so i disabled the Pretty URL mod, it started to work again, can someone help me please? thanks.
Looks like a compression issue accoring to my google search
http://codeigniter.com/forums/viewthread/84317/
Quote from: vbgamer45 on March 21, 2010, 02:06:29 PM
Looks like a compression issue accoring to my google search
http://codeigniter.com/forums/viewthread/84317/
Thanks for researching this for me. However, I cannot find any file named config.php, nor compression_output field inside php.ini. any instructions would be great. thanks again.
I don't know much else other than the google search.
anyone else has any ideas? Thanks.
SMF version: 1.1.11
Pretty-urls version: 1.0RC
Hello,
I have 1 user that can't access is Inbox, showing a blank page, and in error log i have:
http://..../index.php?pretty;action=pm
Illegal mix of collations for operation ' IN '
File: /home/***/public_html/Sources/PrettyUrls-Filters.php
Line: 54
Database tables are UTF-8 already. As far as i know, all of the other users can access their inbox without problems...
Any help is appreciated :)
Check that all the database tables for your forum have the same collation they should be the same type.
Quote from: vbgamer45 on March 23, 2010, 03:13:02 PM
Check that all the database tables for your forum have the same collation they should be the same type.
Thanks for you answer.
Every table is at utf8_general_ci, checked and rechecked :) and that particular user still can't access is inbox. He can send pm's, he can open the outbox, but not inbox. Weird...
I have 1 forum under /forum and one forum under /testforum... i did this mod on testforum but the rewritten URLs are pointing to /forum! I've checkd repair_settings.php and all is in order. What do you suspect is causing this?
Quote from: Leemy on March 24, 2010, 12:49:18 AM
I have 1 forum under /forum and one forum under /testforum... i did this mod on testforum but the rewritten URLs are pointing to /forum! I've checkd repair_settings.php and all is in order. What do you suspect is causing this?
In the test forum database for 'smf_settings' find the row called 'pretty_root_url'. I had to change this manually after moving from one domain to another.
Good luck.
Quote from: MarcusJ on March 24, 2010, 06:22:34 PM
Quote from: Leemy on March 24, 2010, 12:49:18 AM
I have 1 forum under /forum and one forum under /testforum... i did this mod on testforum but the rewritten URLs are pointing to /forum! I've checkd repair_settings.php and all is in order. What do you suspect is causing this?
In the test forum database for 'smf_settings' find the row called 'pretty_root_url'. I had to change this manually after moving from one domain to another.
Good luck.
thanks, it helped me also ;)
I have just installed wordpress into a directory off my main forum, when installed it gave me the following link to access the admin backend {url removed} but... its not working and I think it might have something to do with this mod... any ideas on how to fix it? even the direct link to my blog - {url removed} doesnt work it just comes up with a messed up home page. I have run the maintenance tasks thinking that might correct the link but nothing.
Yeah that would be an issue with the mod if you have anything in the same folder as Pretty urls it would mess up. This happens on my site too don't have a fix or a way to ignore yet.
wow! considering it is in the main directory that is a huge concern and major flaw of this mod!!
may have to consider removing it because i need to have the blog installed!
are there any plans to have fixed?!
Plan to in the future. First need to figure out what causes it. Then need to find a fix
It is compatible with the mod Globals Headers and footers?
When active the mod pretty url,header and footer does not work on the page redirected, and index only pages that do not have the friendly url.
,thanks.
It should work fine with global headers and footers.
Thanks for responding vbgamer45
As might solve my problem?
,thanks.
Hello there.
i have a problem with installing this mod.
Please take a look at this post:
http://www.simplemachines.org/community/index.php?topic=373236.msg2558617#msg2558617
i would be grateful if someone can help me with this.
Regards.
Hi, i'm using smf 2.0 rc3. ( forum.blackberrypt.com )
I installed this but my links end in http://...//?wwwRedirect
My users can't reply or create topics with this mod installed.
Help ?
Thanks again for this Mod!
I have one problem with SMF Gallery filters ( SMF Gallery Pro licensed from smfhacks.com )
In .htaccess file i have this rule after enabled filters:
RewriteRule ^gallery/([^/]+)/([^/]+)/([0-9]*)/?$ ./index.php?action=gallery;sa=view;id=$3 [L,QSA]
RewriteRule ^gallery/([^/]+)/([^/]+)/([0-9]*)/?$ ./index.php?action=gallery;sa=view&id=$3 [L,QSA]
but the picture url is same...why?
Thanks!
Antonio
Quote from: anto74 on March 30, 2010, 04:37:40 AM
Thanks again for this Mod!
I have one problem with SMF Gallery filters ( SMF Gallery Pro licensed from smfhacks.com )
In .htaccess file i have this rule after enabled filters:
RewriteRule ^gallery/([^/]+)/([^/]+)/([0-9]*)/?$ ./index.php?action=gallery;sa=view;id=$3 [L,QSA]
RewriteRule ^gallery/([^/]+)/([^/]+)/([0-9]*)/?$ ./index.php?action=gallery;sa=view&id=$3 [L,QSA]
but the picture url is same...why?
Thanks!
Antonio
I solved, sorry....the prettyurl-filters installation it's broken ...now it's ok...i added the code manually.
Only one question: can i change the word
gallery/ in the rewrite rule or not?
Thanks
Antonio
Yeah you can that is safe to change.
Hello there.
Can you please help me with installation?
I got this error:
Fatal error: require() [function.require]: Failed opening required '/var/www/web25/web/Packages/temp/./SMF1-1/install.php' (include_path='.:/usr/share/php') in /var/www/web25/web/Sources/Packages.php on line 556
Quote from: vbgamer45 on March 31, 2010, 01:46:57 AM
Yeah you can that is safe to change.
Thanks vbgamer45 :-)
I changed ^gallery/ in ^macrofotografia/ but i have 404 error in the photo page.
Now the url is: http://www.macroforum.org/gallery/odonati/sympetrum-fonscolombii/4633
I would this url: http://www.macroforum.org/
macrofotografia/odonati/sympetrum-fonscolombii/4633
I have attached htaccess file.
Any suggestions?
Thanks!
Antonio
When I tried uninstalling Pretty URLs, I ended up with this:
1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/ManageErrors.php Test successful
5. Execute Modification ./Sources/ManageSettings.php Test successful
6. Execute Modification ./Sources/News.php Test successful
7. Execute Modification ./Sources/QueryString.php Test successful
8. Execute Modification ./Sources/Security.php Test successful
9. Execute Modification ./Sources/Subs.php Test successful
10. Execute Modification ./Sources/Subs-Post.php Test successful
11. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
12. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
13. Execute Modification SMF2-0RC2/Themes.xml Modification parse error
14. Execute Modification SMF2-0RC2/Themes.xml Modification parse error
15. Execute Modification Languages.xml Modification parse error
16. Execute Modification Languages.xml Modification parse error
17. Delete File ./Sources/PrettyUrls.php
18. Delete File ./Sources/PrettyUrls-Filters.php
19. Delete File ./Sources/PrettyUrls-Tests.php
20. Delete File ./Sources/Subs-PrettyUrls.php
21. Delete File ./Themes/default/PrettyUrls.template.php
22. Delete Tree ./Themes/default/pretty
23. Delete File ./Themes/default/languages/PrettyUrls.english.php
24. Delete File ./Themes/default/languages/PrettyUrls.french.php
25. Execute Code uninstall.php
Help PLEASE?
You can try manually uninstalling.
Otherwise mods need to be uninstalled in the order in which they were installed last to first
Quote from: anto74 on March 31, 2010, 05:34:00 AM
Quote from: vbgamer45 on March 31, 2010, 01:46:57 AM
Yeah you can that is safe to change.
Thanks vbgamer45 :-)
I changed ^gallery/ in ^macrofotografia/ but i have 404 error in the photo page.
Now the url is: http://www.macroforum.org/gallery/odonati/sympetrum-fonscolombii/4633
I would this url: http://www.macroforum.org/macrofotografia/odonati/sympetrum-fonscolombii/4633
I have attached htaccess file.
Any suggestions?
Thanks!
Antonio
It's not possible?
Thanks!
Antonio
Yeah now that I look at it requires modifying of Pretty Urls too I think Sub-PrettyFilters.php
Hello!
I SimplePortal 2.3.2 installer
I can not find the line of code in sub.php
if (!empty($modSettings['queryless_urls']) && (empty($context['server']['is_cgi']) || @ini_get('cgi.fix_pathinfo') == 1 || @get_cfg_var('cgi.fix_pathinfo') == 1) && (!empty($context['server']['is_apache']) || !empty($context['server']['is_lighttpd'])))
{
if (defined('SID') && SID != '')
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?(?:' . SID . '(?:;|&|&))((?:board|topic)=[^#]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2?' . SID", $setLocation);
else
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2'", $setLocation);
}
Dumb question - When I try to install I get an error - two places in the subs.php file. Can I just ignore the errors and install it and then make the two changes manually to the subs.php file?
Quote from: casp3r on April 03, 2010, 07:49:23 AM
Dumb question - When I try to install I get an error - two places in the subs.php file. Can I just ignore the errors and install it and then make the two changes manually to the subs.php file?
You could that's what I normally suggest to do if you have errors with a mod install
Hello there.
I am using 1.1.11 version, and install pretty urls, but when try to go to mlist, i got this error:
QuoteIllegal mix of collations for operation ' IN '
Datoteka: /var/www/Sources/PrettyUrls-Filters.php
What should i do to fix this?
Collation in phpMyAdmin is "utf8_general_ci" for every table....
Regards.
Quote from: Bruno36 on April 03, 2010, 07:20:02 AM
Hello!
I SimplePortal 2.3.2 installer
I can not find the line of code in sub.php
if (!empty($modSettings['queryless_urls']) && (empty($context['server']['is_cgi']) || @ini_get('cgi.fix_pathinfo') == 1 || @get_cfg_var('cgi.fix_pathinfo') == 1) && (!empty($context['server']['is_apache']) || !empty($context['server']['is_lighttpd'])))
{
if (defined('SID') && SID != '')
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?(?:' . SID . '(?:;|&|&))((?:board|topic)=[^#]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2?' . SID", $setLocation);
else
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2'", $setLocation);
}
Quote from: Dzonny on April 04, 2010, 04:39:20 AM
Hello there.
I am using 1.1.11 version, and install pretty urls, but when try to go to mlist, i got this error:
QuoteIllegal mix of collations for operation ' IN '
Datoteka: /var/www/Sources/PrettyUrls-Filters.php
What should i do to fix this?
Collation in phpMyAdmin is "utf8_general_ci" for every table....
Regards.
Out of ideas I thought that would be the only thing that would cause that issue.
Ive run mainteance tasks and that fix the problem.
Now working just fine. Thanks :)
Ah cool that is odd though I wonder what did it.
Oh, dear, my mistake.
Mod has just turned off when i run mainteance today, and mlist were working.
Now when i turn mod on again, mlist cant opened. :/
Is there some other thing that can couse this exept collation?
Regards.
http://drupal.org/node/140303
From that post it says also check the fields of the table to make sure they have right collietion too
I guess i should be chek table smf_members, and smf_members1 that i have, but collatin is set to utf8_general_ci
Or im looking in wrong table?
It is smf_members table since that filter controls the profiles.
Ok, but i cant load memberlist :/
Still, both tables is set to utf8_general_ci, and i get error after all...
Tables maybe. But check that all the fields in that table are too.
Please see attached images, everything seems to be okay there for me...
EDIT:
Dont know if this matters, but i can not enter in one topic when the mod is enabled, and it is the biggest topic on forum, and has 587 pages and 8796 Replies.
Quote from: evilfx on March 29, 2010, 07:21:11 AM
Hi, i'm using smf 2.0 rc3. ( forum.blackberrypt.com )
I installed this but my links end in http://...//?wwwRedirect
My users can't reply or create topics with this mod installed.
Help ?
help! :\
Hi vbgamer45,
i have another problem :-)
In my forum test, RC3, i have installed PrettyUrl filters ( in live forum it works perfectly, RC2 ), but in PrettyUrl admin there aren't the fields to enable the pretty url functions...
Thanks
Antonio
Anyone able to confirm the correct uninstall procedure to remove pretty URL's please? Can I just uninstall from packages section? Would I need to use the reverter from here? http://code.google.com/p/prettyurls/downloads/list
I'm going to install simpleSEF in its place.
Will this affect search engines etc..?
vbgamer, can you see something wrong on attached images in my previous post?
Any idea how can i solve problem?
Hello! My English is not very good, sorry if I will explain.
What I want is to put the diagonal in the pretty url's example:
myweb.com /forum/smf/help/users
Instead of:
myweb.com /forum/smf-help-users
This is possible?
Not possible.
It is possible that the pretty took the name of the url of the board and the child board example?
myweb.com/forum/board/ChildBoard
instead of:
myweb.com/forum/ChildBoard
Not built in maybe possible but I think perforamance issues if you have alot of child boards...
Yes! I have many child boards and that's my idea to display the form:
myweb.com/forum/board/mychildboard
In an illustration of what I want:
myweb.com/forum/movies/terror
myweb.com/forum/ board/mychildboard
yes possible, could help?
is it possible to achieve utf-8 support for urls?
right now, a subject such as בדיקה 21 ניסוי shows as /21
I have a v2 RC3 board.
The Pretty URL's mod made it so when you clicked on a board page [2] [3] [4] the links did not work.
I uninstalled the mod and the page links worked.
You could see the page links on the bottom of the screen, but the page never advanced from page one of the board.
On the post page, the links worked.
Any thoughts????
I like the mod and have been using on 1.1.xx for a long time.
Thanks
Don't plan on adding utf8 support for the urls.
For havenone is that the default pages for SMF? Or a mod/special setting in SMF
I'm using the default theme.
http://www.swfloridafishingforum.com/
These are the other mods I have installed
Sitemap 2.1.2
Ad Managment 2.3.6.2
Google Analytics Code 1.1
Anti-Spam Links 1.0.1
I made some font color changes to the default theme but that's it.
When I'm on a board that has more than one page and mouse over Pages: 1 2 3 4 5 >> say 2 or 3 the link on the bottom of the screen changes to /50/ or /100/ page 2 or 3 when I click it says transferring but never changes to that page.
I've uninstalled and reinstalled the Mod several times, with the same results.
Thanks
;D
Sorry to interrupt any conflicts, and their successful resolutions, but I must interject:
I'm running a heavily modded 1.1.11 board. And I wanted to say I installed it without a hitch.
Simply beautiful
Much thanks.
I ran it on a 1.1.xx board for over a year without a hitch too.
Great Mod and Miss it.
Just cant get it to work with V2RC3
Thanks
Thanks.
I have error 404 in my Board and Topic, but not my main index forum.
Im using aeva mod and foxy addon.
The error i noticed were just when i want to access m boards and topics..
Help me pls ? I love this mod, i dont want to uninstall it
Check the troubleshootting link the first post of this topic
I did but i failed to understand @_@
My site has error only after i installed Foxy addon a few hours ago. Before then it worked well on aeva. Im gonna ask foxy guys about this.
Don't know anything about foxy I would try removing it and see if it works without it.
Hey it works with foxy & aeva, just add Nao's code into prettyurls-filter.php !! :D
Quote// Filter Aeva Media URLs
function pretty_aeva_filter($urls)
{
global $boardurl;
$pattern = array(
'~.*[?;&]action=media;sa=media;in=([0-9]+);(thumba?|preview)(.*)~S',
'~.*[?;&]action=media;sa=(album|item|media);in=([0-9]+)(.*)~S',
'~.*[?;&]action=media(.*)~S',
);
$replacement = array(
$boardurl . '/media/$2/$1/?$3',
$boardurl . '/media/$1/$2/?$3',
$boardurl . '/media/?$2',
);
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']) && strpos($url['url'], 'action=media') !== false)
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
}
Hi there,
Is it possible to have non Latin urls for non English forums.
I mean, instead of
http://www.somesite.com/forum/eshe_odna_kategoriy/ieshchie_odna_provierka_welcom_putin/
something like this
http://www.somesite.com/forum/%20%D0%BF%D1%80%D0%B8%D0%B2/%D0%B5%D1%82%20%20!%20%D0%BC%D0%B5%D0%B4%D0%B2%D0%B5%D0%B4%20%E2%84%96%20%%20:%20%D0%92%D0%BE%D1%82%20%D1%82%D0%B0%D0%BA/
Quote from: havenone on April 10, 2010, 01:20:25 PM
I'm using the default theme.
http://www.swfloridafishingforum.com/
These are the other mods I have installed
Sitemap 2.1.2
Ad Managment 2.3.6.2
Google Analytics Code 1.1
Anti-Spam Links 1.0.1
I made some font color changes to the default theme but that's it.
When I'm on a board that has more than one page and mouse over Pages: 1 2 3 4 5 >> say 2 or 3 the link on the bottom of the screen changes to /50/ or /100/ page 2 or 3 when I click it says transferring but never changes to that page.
I've uninstalled and reinstalled the Mod several times, with the same results.
Thanks
;D
My problems seems to be with the rewrite but I don't know enough to fix it.
When I disable rewrite in the settings option of the mod the links work.
When I enable the rewrite option, I see another screen that say "Before enabling URL rewriting, please check that these rewritten links work" and it list the boards that don't work.
My problem is I don't know how to make the rewrite work.
Thanks for any help.
Hi, is there any variable or way to get the original URL inside the code?
Quote from: sevamaster on April 14, 2010, 02:18:21 AM
Hi there,
Is it possible to have non Latin urls for non English forums.
I mean, instead of
http://www.somesite.com/forum/eshe_odna_kategoriy/ieshchie_odna_provierka_welcom_putin/
something like this
http://www.somesite.com/forum/%20%D0%BF%D1%80%D0%B8%D0%B2/%D0%B5%D1%82%20%20!%20%D0%BC%D0%B5%D0%B4%D0%B2%D0%B5%D0%B4%20%E2%84%96%20%%20:%20%D0%92%D0%BE%D1%82%20%D1%82%D0%B0%D0%BA/
no
Hello,
I don't know where to post this (here or smfhacks) but here I go..:
In the log I see some errors. All is working fine as far as I can see. I think a search engine is causing this errors.
URL http://digiscrap.nl/index.php?pretty;board=oude-uitdagingen;topic=mid-maand-juli-uitdaging!.15
8: Undefined offset: 2761
File: /shared/usr/xxxxxxxxxxx/DOMAIN/www.digiscrap.nl/HTML/Sources/PrettyUrls-Filters.php
Line: 568
URL http://digiscrap.nl/index.php?pretty;board=oude-uitdagingen;topic=mid-maand-juli-uitdaging!.15
8: Undefined offset: 2761
File: /shared/usr/xxxxxxxxxxx/DOMAIN/www.digiscrap.nl/HTML/Sources/PrettyUrls-Filters.php
Line: 567
URL http://digiscrap.nl/index.php?pretty;board=oude-uitdagingen;topic=april-digiscrap-freebie-uitdaging.20
8: Undefined offset: 1143
File: /shared/usr/xxxxxxxxxxx/DOMAIN/www.digiscrap.nl/HTML/Sources/PrettyUrls-Filters.php
Line: 568
URL http://digiscrap.nl/index.php?pretty;board=oude-uitdagingen;topic=april-digiscrap-freebie-uitdaging.20
8: Undefined offset: 1143
File: /shared/usr/xxxxxxxxxxx/DOMAIN/www.digiscrap.nl/HTML/Sources/PrettyUrls-Filters.php
Line: 567
URL http://digiscrap.nl/index.php?pretty;board=oude-uitdagingen;topic=december-midmaand-uitdaging!.0&PHPSESSID=cc6cfdba957b371f2b39718945c3dd89
8: Undefined offset: 4428
File: /shared/usr/xxxxxxxxxxx/DOMAIN/www.digiscrap.nl/HTML/Sources/PrettyUrls-Filters.php
Line: 568
URL http://digiscrap.nl/index.php?pretty;board=oude-uitdagingen;topic=december-midmaand-uitdaging!.0&PHPSESSID=cc6cfdba957b371f2b39718945c3dd89
8: Undefined offset: 4428
File: /shared/usr/xxxxxxxxxxx/DOMAIN/www.digiscrap.nl/HTML/Sources/PrettyUrls-Filters.php
Line: 567
We're using SMF2.0RC3, PortaMx, A lot of SMFHacks stuff and PrettyURL + extra's
Thanks for your answer!!
Vincent
Quote from: vbgamer45 on April 14, 2010, 10:26:24 AM
Quote from: sevamaster on April 14, 2010, 02:18:21 AM
Hi there,
Is it possible to have non Latin urls for non English forums.
I mean, instead of
http://www.somesite.com/forum/eshe_odna_kategoriy/ieshchie_odna_provierka_welcom_putin/
something like this
http://www.somesite.com/forum/%20%D0%BF%D1%80%D0%B8%D0%B2/%D0%B5%D1%82%20%20!%20%D0%BC%D0%B5%D0%B4%D0%B2%D0%B5%D0%B4%20%E2%84%96%20%%20:%20%D0%92%D0%BE%D1%82%20%D1%82%D0%B0%D0%BA/
no
Why?
F.e. wiki engines (mediawiki) use it easily.
example:
http://www.seobuilding.ru/wiki/%D0%9F%D0%BE%D0%B8%D1%81%D0%BA%D0%BE%D0%B2%D0%B0%D1%8F_%D0%BE%D0%BF%D1%82%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F
Something I can't support at this time.
I disabled URL rewriting for store, gallery and downloads and the errors are gone.....
Thanks,
Vincent
i have pretty url installed now cannot do :
- quickreply only works if you click for 3 times
- cannot qoute messages
- it gets error 404 if you change the topic subject...
please help...
Quote from: luismanson on April 14, 2010, 08:19:11 AM
Hi, is there any variable or way to get the original URL inside the code?
vbgamer45, can you helpme?
i need some way to get the original URL for a post, like the ones without the mod, maybe some function of the mod or a custom one?
Quote from: ChaosEnergy on June 15, 2008, 04:07:45 AM
i found a script call for /chat/javascript/activat...js
reemoved the word CHAT...
cause in apache log it showed now a double chat...only for one call..after removing it works...
I had this same problem, and just copied the /ActivateFlash.js from /chat/javascript/ActivateFlash.js to /chat/chat/javascript/ActivateFlash.js
Really odd problem, and some of the users who preferred to just use the subdirectory (http://host.com/chat) for a full screen (without the forum/portal) are a little bummed. Can't please them all! : )
Hey, I was curious if it'd be possible to change the renaming script in a way that it would use a number for the topics instead of the title? In the way that the first topic would be 1, second would be 2, etc. I have no idea what part of the filter array thing I would need to change in order to have this functionality.
Maybe possible but not something I would add.
hello VBgamer
is possible to make this MOD (Google tag - http://custom.simplemachines.org/mods/index.php?mod=1245) compatible with pretty urls ?
As you know i use pretty urls and i would like to use this mod.
Thanks
Possible but not something I would do.
ok. i understand. ;)
actualy, i am also using your TAGS MODE. Is it possible this MOD automaticaly sugest the topic tags ?
thanks
Possible but not built in.
Quote from: luismanson on April 15, 2010, 10:37:42 AM
Quote from: luismanson on April 14, 2010, 08:19:11 AM
Hi, is there any variable or way to get the original URL inside the code?
vbgamer45, can you helpme?
i need some way to get the original URL for a post, like the ones without the mod, maybe some function of the mod or a custom one?
you can find the topic ID by viewing the source of the page. + I think the original URL is there as well...
Yeah or just do REQUEST['topic'] i think that would do it too
Quote from: vbgamer45 on April 16, 2010, 06:03:13 PM
Yeah or just do REQUEST['topic'] i think that would do it too
i can not get into the sources of the displayed HTML, i need to get the non-pretty URL before the page is displayed
maybe something like the funcion who calls
SELECT id_topic
FROM smf_pretty_topic_urls
WHERE pretty_url = '(importante)-sobre-el-sitio'
whats its name? parameter? (sorry im not a coder)
OMG......
Ops.... I upgraded my forum to to SMF 2.0 RC3.
Then upgraded Pretty URL to RC1.0 the latest one...
Enablled URL Rewriting.... BUT...
Its all gone now... I see Numbers and IDs in URL... :-[
Earlier it was Board or Category name in URL...
Ops... Will i loosed all the SEO value of my forum?
Developer: Please have a look at the Link structure of my Forum
http://www.powerlawofattraction.com/forum
Please Help...........
Thanks
Pretty URLs does not work Topic Rewrite URLs with Simple Image Upload mod.
Error:
Not Found
The requested URL /sport/nogomet/15/addform.html was not found on this server.
That mod needs to be modified to use absolute urls instead of realitve
Quote from: soulgeek on April 17, 2010, 02:01:46 AM
OMG......
Ops.... I upgraded my forum to to SMF 2.0 RC3.
Then upgraded Pretty URL to RC1.0 the latest one...
Enablled URL Rewriting.... BUT...
Its all gone now... I see Numbers and IDs in URL... :-[
Earlier it was Board or Category name in URL...
Ops... Will i loosed all the SEO value of my forum?
Developer: Please have a look at the Link structure of my Forum
http://www.powerlawofattraction.com/forum
Please Help...........
Thanks
Can someone reply to my Question please?
Quote from: vbgamer45 on April 18, 2010, 11:25:55 AM
That mod needs to be modified to use absolute urls instead of realitve
I do not know how to modify to use absolute URLs instead of realitve.
Can you help?
This mode cause many java script errors on RC3, like the html editor (https://www.simplemachines.org/community/Themes/default/images/bbc/toggle.gif) stops working after instaling this.
Error with the java Scripts[/size]
Hi Chaps
I've just intalled pretty urls on a test forum SMF version in 2.0 RC3 & latest PU version
For some reason everytime I click the admin button it redirects me to my hosting account control panel :o
I've installed PU fine on other forums so I'm lost
P.S SMF is a clean install running no mods
Are there install instructions for the Extras zip? I went to install it and got the below
QuoteThis package is already installed, and no upgrade was found!
You should uninstall the old version first to avoid problems, or ask the author to create an upgrade from your old version.
Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.
Then when I hit install anyway I got
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
The green light was on under * Browse Packages * but I just hit delete for now.
PS thank you for this!
Does Pretty Urls supports View Single Category mod?
If no, can i change something (and where) in the source to get it working?
Hello there.
If I uninstall this MOD, and then install it later, will my old links be restored, or are they all going to be bugged?
Because I really need to uninstall it, but I certainly don't want to lose the old links, since I've used them all over the place.
Thanks in advance!
Quote from: soulgeek on April 18, 2010, 11:55:18 AM
Quote from: soulgeek on April 17, 2010, 02:01:46 AM
OMG......
Ops.... I upgraded my forum to to SMF 2.0 RC3.
Then upgraded Pretty URL to RC1.0 the latest one...
Enablled URL Rewriting.... BUT...
Its all gone now... I see Numbers and IDs in URL... :-[
Earlier it was Board or Category name in URL...
Ops... Will i loosed all the SEO value of my forum?
Developer: Please have a look at the Link structure of my Forum
http://www.powerlawofattraction.com/forum
Please Help...........
Thanks
Can someone reply to my Question please?
Is there any one to reply me for God's love....???
I am seeing, our trafific is getting lower from Search Engine, as our whole link Structure is changed now....
Developer, may you please lookinto it...???
Now i'm using this mod but i thing had problem with after login.
it can't redirect my topic reading after login.
e.g:
visit : http://www.driver4vn.net/windows-7-%28seven%29/huong-dan-cach-cai-dat-windows-7-tu-usb-flash-drive-flash-disk-thumb-drive/msg527/#new
now login for do something..
but after login it redirect back to my index forum... http://www.driver4vn.net/index.php
I want it redirect back my topic reading..
who can help me fix it.
(sorry for english my bad ^^)
Quote from: welshbikers on April 20, 2010, 11:39:53 AM
Hi Chaps
I've just intalled pretty urls on a test forum SMF version in 2.0 RC3 & latest PU version
For some reason everytime I click the admin button it redirects me to my hosting account control panel :o
I've installed PU fine on other forums so I'm lost
P.S SMF is a clean install running no mods
Just Bumping ;D
hello
I have redirected my site gsmdna.com to gsmdna.net using .htaccess file.
but when its redirected to gsmdna.net
it shows url like this: gsmdna.net/?pretty%3bboard=gsmdna.0
i think its because of pretty urls, any suggestions how to solve it?
edit: using smf 2.0 rc3
Simple question, I hope. At the moment the URL rewrite shows:
http://yourdomain.com/board/post
Is there any way that I could have it to show either of these?
http://yourdomain.com/forum/board/post
http://yourdomain.com/category/board/post
Note that my main installation will be on the site root, and I would have a portal, directing the forum as an action...
No
Quote from: Mihac on April 18, 2010, 04:01:24 AM
Pretty URLs does not work Topic Rewrite URLs with Simple Image Upload mod.
Error:
Not Found
The requested URL /sport/nogomet/15/addform.html was not found on this server.
i'm getting the same errors after installing pretty url's earlier today. and fix for this?
Fix contact simple image upload
I am running into a minor issue with the shop mod. Pretty URLs rewrites the action to http://www.archiefans.com/shop/ but because that's also the name of the directory where the shop items are stored, it just shows a listing of that directory instead. Do I need to modify the action for that mod or is there an easy way around this?
Hello Oldiesmann,
I'm afraid I can't really help you :-\ but did you install the Pretty urls extras? All is working fine for our website (including the Pretty URLs extras). And..... pressing the "Run maintenance tasks" in the Pretty URLs settings will also gives sometimes "fixing" results.
Vy73!
Vincent.
Oldiesmann,
You may aswell edit the Shop Sources, shouldn't be too hard to do with a mass search/replace program, and your skills ;)
As for my problem, aww :'( I guess I'll have to work around that then...
I am getting an issue where URL rewrite is setting everything to www. instead of forum. ... All the settings for the SMF board are correct
Hello SMFHacks,
I don't know where to put this but I have a lot of errors in the log:
8: Undefined offset: 5217
File: /shared/usr/wzen1234567/DOMAIN/www.digiscrap.nl/HTML/Sources/PrettyUrls-Filters.php
Line: 568
The most of the errors have a different offset numbers and other lines.
I'm afraid it will effect the search-engine results.... :-\
Thanks,
Vincent
Hello vbgamer,
When I move a topic or change the title of the topic, the URL doesn't change. Why? How can I do? Thanks
someone answer to my question please...
Quote from: ukhalik2 on April 24, 2010, 01:25:24 PM
hello
I have redirected my site gsmdna.com to gsmdna.net using .htaccess file.
but when its redirected to gsmdna.net
it shows url like this: gsmdna.net/?pretty%3bboard=gsmdna.0
i think its because of pretty urls, any suggestions how to solve it?
edit: using smf 2.0 rc3
Pls help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :D
Apply Filter: Only show the error messages of this URL
http://hocvui.net/4rum/index.php?pretty;board=ngoi-voc-javascript;topic=javascript-void-0.0
Apply Filter: Only show the errors with the same message
Database Error: Illegal mix of collations for operation ' IN '
Apply Filter: Only show the errors from this file
File: /home/www/4rum/Sources/PrettyUrls-Filters.php
Line: 55
And this code:
$query = $smcFunc['db_query']('', '
SELECT url_id, replacement
FROM {db_prefix}pretty_urls_cache
WHERE url_id IN ({array_string:urls})',
array('urls' => $urls_query));
The line 55 array('urls' => $urls_query));
This error just happned for sme page, brow the page you see noting! http://hocvui.net/4rum/ngoi-voc-javascript/javascript-void-0/ (http://hocvui.net/4rum/ngoi-voc-javascript/javascript-void-0/)
I meet this error after upgarade from 2.0 RC2 to RC3
I have read a meesage about this issue in our topic but I can not find the resolution for this issue, pls help me!
Look in the database in phpMyAdmin.
What collation is listed for each of the tables?
all of them is utf8_general_ci
EVERY single table? The fact you're getting an illegal mix of collations suggests that at least one table can't be.
Also check all the fields inside the table as well...
Oh, Sr, I have checked agian and I see these table:
smf_log_rssfeeds (a mod i am using)
smf_rssfeeds
smf_log_search_messages
smf_log_search_topics
smf_pretty_urls_cache (enven with the fields inside)
Is latin1_swedish_ci
They cause the proplerm!? How can i fix this proplerm!?
Pls hellp me, thanks!
Yes it is just touch the pretty urls tables should be utf8_general_ci
Ok, Fixed it!
Thanks all of you!
I need a reverter package for Pretty URLs 1.0RC on SMF 2.0 RC3
Quote from: akbora on May 01, 2010, 08:01:56 PM
Hello vbgamer,
When I move a topic or change the title of the topic, the URL doesn't change. Why? How can I do? Thanks
This missed amount of messages, please
What SMF version and how are you moving it?
Quote from: TheInfostrides.Com on May 05, 2010, 02:48:35 AM
I need a reverter package for Pretty URLs 1.0RC on SMF 2.0 RC3
This is resolved. Thanks.
Quote from: akbora on May 05, 2010, 10:23:41 AM
Quote from: akbora on May 01, 2010, 08:01:56 PM
Hello vbgamer,
When I move a topic or change the title of the topic, the URL doesn't change. Why? How can I do? Thanks
This missed amount of messages, please
If you move a topic the board part of the URL will change, and be redirected. If you rename a topic, well why would you want the URL to change? That would break all your links! If you absolutely must change it, you can edit the url in the smf_pretty_topic_urls table. Don't forget to run maintenance after that.
Thanks for the clarification Dannii makes sense.
Hello everyone,
Does prettyURLs affect/slow down the loading of your forum site?
Quote from: Dannii on May 05, 2010, 07:56:11 PM
Quote from: akbora on May 05, 2010, 10:23:41 AM
Quote from: akbora on May 01, 2010, 08:01:56 PM
Hello vbgamer,
When I move a topic or change the title of the topic, the URL doesn't change. Why? How can I do? Thanks
This missed amount of messages, please
If you move a topic the board part of the URL will change, and be redirected. If you rename a topic, well why would you want the URL to change? That would break all your links! If you absolutely must change it, you can edit the url in the smf_pretty_topic_urls table. Don't forget to run maintenance after that.
If I flush the table then run maintenance, will it work properly?
Yes, but links may still get broken...
Huh? How and why? :P
If you have any posts with links in, if you have renamed any topics, once maintenance kicks in the data in the DB will have the new, not the old, link. From my understanding of things, that can cause it to break.
Quote from: Arantor on May 06, 2010, 06:15:24 AM
If you have any posts with links in, if you have renamed any topics, once maintenance kicks in the data in the DB will have the new, not the old, link. From my understanding of things, that can cause it to break.
Ah that's not a problem :)
hello Freinds
I'm running SMF latest 1.1.11 with Sitemap Mod with Pretty URLs.
SMF Sitemap 1.2.2
Pretty URLs 1.0RC
the Pretty URLs are working and the HTML sitemap is also correct.
The problem is that the XML sitemap is still using the board=9.0, and topic=1145.0 URLS.
websitenamedotcom/forums/index.php?action=sitemap;xml
xml sitemap is shown like these
websitenamedotcom/forums/index.php?board=1.0
websitenamedotcom/forums/index.php?topic=1.0
websitenamedotcom/forums/index.php?topic=5.0
Why the Xml sitemap is not picking up pretty urls
Go read the Sitemap mod's thread, this was covered in there yesterday.
Quote from: Vincent Volmer on May 01, 2010, 04:05:56 PM
I don't know where to put this but I have a lot of errors in the log:
8: Undefined offset: 5217
File: /shared/usr/wzen1234567/DOMAIN/www.digiscrap.nl/HTML/Sources/PrettyUrls-Filters.php
Line: 568
The most of the errors have a different offset numbers and other lines.
I'm afraid it will effect the search-engine results.... :-\
Thanks,
Vincent
Sorry for bumping this message but I have a lot of errors per day and it looks like its getting more and more... all errors refering to PrettyUrls-Filters.php and all with
8: Undefined offset: with a offset-number which is different in most lines.
Can please someone tell me that this error isn't something to worry about? Or do you need more information?
Using:
SMF2.0RC3 + PortaMx
PrettyURLs + extras
Almost every mod from SMFHacks (please see modlist below):
1. Favicon 1.3
2. Newsletter Pro
3. PortaMx v0.980
4. SMF Gallery Pro Recent Comments Board Index 2.0
5. SMF Gallery Pro Recent Profile Images 2.0.1
6. Sitemap 2.1.2
7. SMF Store SSI 2.0.1
8. Users Online Today 1.5.6
9. SSI Latest Members 1.0.1
10. Stop Spammer 2.3.7
11. SMF Gallery Pro SSI 2.0
12. RSS Feed Icon 1.1
13. Personal Messages to Membergroups 1.4.1
14. Posting_Announcement 2.0
15. Buddy Page 1.2
16. Pretty URLs 1.0
17. SMF Store 1.3.9
18. SMF Gallery Pro - Video AddOn 3.0
19. SimpleDesk - Integrated Helpdesk for Simple Machines Forum 1.0 Felidae
21. Pretty URLs Extras 1.0
23. Downloads System Pro 1.0.17.1
24. SMF Gallery Pro 3.0.2
25. PortaMx v0.980-1 0.980-1
26. Ad Seller Pro 1.0.4a
27. SMF Articles 1.3.2a
Thanks for your answer and support!!
Vincent
Probably related to the Pretty URLs Extras
Quote from: vbgamer45 on May 06, 2010, 01:34:10 PM
Probably related to the Pretty URLs Extras
Yes, could be..... when disabling the extras the errors are gone..... don't know exactly if that is right.
I'd posted this a couple of posts back: http://www.simplemachines.org/community/index.php?topic=146969.msg2584522#msg2584522 (http://www.simplemachines.org/community/index.php?topic=146969.msg2584522#msg2584522)
Thanks, Vincent
Hey guys, hopefully a simple answer for lots of you!
I was browsing through Webmaster Tools and found that one of my sites was pulling a 404 error on this URL here:
http://www.australianwhipcrackers.org/forum/helpadmin//index.php?help=time_format
It's linked from this page here:
http://www.australianwhipcrackers.org/forum/help/?page=profile
It's the "?" icon that directs to a 404 and I, for the life of me, can't find out how to fix the problem! I'm using Pretty URLs mod on the site, but I'm not sure if that's what's causing the faults. The site's running Version 1.1.11 and not had an issue with it.
I'm also having this exact same issue on www.auscam.org too under Help -> Profile... this site also uses Pretty URLs.
If someone's able to help with this... maybe which php file I should edit, I'll maybe just change the URL to something else?
Thanks very much :)
Can someone answer my question: Does prettyURLs slow down page load?
It does slow down the forum, almost any mod will. It's not *that* huge a performance hit though, it tries to avoid being too bad on the server.
is there anyway we can make this pretty urls work with tagging system
i want to achieve this thing
Current url structure is these
yourforumsite.com/index.php?action=tags;tagid=1
yourforumsite.com/index.php?action=tags;tagid=2
yourforumsite.com/index.php?action=tags;tagid=3
i want tag url to be like these
yourforumsite.com/tags/tag1
yourforumsite.com/tags/tag2
yourforumsite.com/tags/tag3
Great mod, thanks very much
vbgamer45 im testing this mod:
http://custom.simplemachines.org/mods/index.php?mod=2137
which allows a forum to have different boards but run only one copy of the software if accessed from different URLs and works like a charm.
in my case i had this test case:
* domain/ONE (full SMF sources)
* domain/TWO (one index.php quoted bellow)
however after testing with pretty url i ran into problems because of smf_pretty_urls_cache not using my the right URL (/smf OR /smfXXX) so forumB/boardB
sentme to forumA/boardB which caused an error like a 404
i made some changes, i wonder of you would do something different or giveme any hint since i dont have any experience nor understand this mod too much...
In file: PrettyUrls-Filters.php
$urls[$url_id]['replacement'] = $modSettings['pretty_root_url'] . '/' . $topicData[$url['topic_id']]['pretty_board'] . '/' . $topicData[$url['topic_id']]['pretty_url'] . '/' . $start . $url['match1'] . $url['match3'];
add / change
$laurl = str_ireplace("/index.php","", $scripturl);
$urls[$url_id]['replacement'] = $laurl . '/' . $topicData[$url['topic_id']]['pretty_board'] . '/' . $topicData[$url['topic_id']]['pretty_url'] . '/' . $start . $url['match1'] . $url['match3'];
basically redefine the url instead of using $modSettings['pretty_root_url']
is all this fine? would work nice in production?
<?php
// PATH to original SMF index.php
$targpath = '/var/www/smf/index.php';
require_once($targpath);
function setSubforumSettings() {
global $boardurl, $cookiename, $boarddir, $forumid, $mbname;
$boardurl = 'http://XXXX.homeip.net/smfXXX'; //URL of the "ghost" forum
$cookiename = 'SmfCookie956';
$boarddir = dirname(__FILE__);
$forumid = 1;
$mbname = 'pocoyo subforo';
}
function getTargetPath() {
global $targpath;
return $targpath;
}
?>
It may work test it and see what happens I do not have a lot of information on that code.
thanks, it seems to work at least of the basic, do you know if there is any bether way to to the same?
Quote from: Bruno36 on April 04, 2010, 06:03:11 AM
Quote from: Bruno36 on April 03, 2010, 07:20:02 AM
Hello!
I SimplePortal 2.3.2 installer
I can not find the line of code in sub.php
if (!empty($modSettings['queryless_urls']) && (empty($context['server']['is_cgi']) || @ini_get('cgi.fix_pathinfo') == 1 || @get_cfg_var('cgi.fix_pathinfo') == 1) && (!empty($context['server']['is_apache']) || !empty($context['server']['is_lighttpd'])))
{
if (defined('SID') && SID != '')
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?(?:' . SID . '(?:;|&|&))((?:board|topic)=[^#]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2?' . SID", $setLocation);
else
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2'", $setLocation);
}
Hi, i have a bug somewhere in sending newsletter...
http://www.simplemachines.org/community/index.php?topic=380636.msg2625778#msg2625778
Quote from: luismanson on May 12, 2010, 09:23:57 PM
this is weird im tracking this issue to:
PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/smf/Sources/PrettyUrls-Filters.php on line 24,
Maximum execution time of 30 seconds exceeded in /var/www/smf/Sources/Subs-Post.php on line 723
im sure there is something wrong here because this was on a copy of the DDBB with almost no mods :S
anyone had the same problem? it got fixed after removing prettyURLs :(
Quote from: luismanson on May 12, 2010, 10:23:12 PM
Hi, i have a bug somewhere in sending newsletter...
anyone had the same problem? it got fixed after removing prettyURLs :(
Yes and no.
I have a problem with sending newsletter too (Newsletter Pro by SMFHacks). Not getting any answer for that yet.
This is the topic:
Quote from: Vincent Volmer on May 01, 2010, 05:45:02 PM
Hello SMF Hacks,
With Pretty URL's enabled, sending newsletters isn't working correct. In first instances the website isn't responding for a couple of seconds. After a couple of seconds there appears a white screen with URL: http://digiscrap.nl/admin/?area=news;sa=mailingsend
Only 51 newsletters are send (of 1781 total).
When PrettyURL's is disabled the newsletter mod is working correct again and all newsletters are send (1781 total).
Please any help on this...
Edit: no errors in the log (for this issue).
Thanks,
Vincent
Maybe vb can look at it?
Thanks, Vincent
i'm having a problems with this mod too.
whenever i search from the main searchbox on my boards theme i get this error.
QuoteNot Found
The requested URL / http://jtagxbox360.info/search2/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
The mod seems to be redirecting to "http://jtagxbox360.info/%20http://jtagxbox360.info/search2/" for some strange reason.
Anyone know what to change ?? :)
Great mod overall though. 5 * :)
@JJMPSP
It's a bug of your theme, not of this mod
if you see the Source Code of your web, you can see this error
Quote<form accept-charset="ISO-8859-1" method="post" action="http://jtagxbox360.info/ http://jtagxbox360.info/search2/" class="floatright">
attach the index.template.php of your theme
Quote from: Vincent Volmer on May 13, 2010, 02:04:42 AM
Yes and no.
I have a problem with sending newsletter too (Newsletter Pro by SMFHacks). Not getting any answer for that yet.
Thanks, Vincent
so, im sure we have tracked this problem to this mod, now we should find some way to skip what the mod does in the newsletter area, maybe we could override it for some actions
For my sites I don't use the actions seo option cause of some of the issues.
Quote from: vbgamer45 on May 14, 2010, 01:12:54 PM
For my sites I don't use the actions seo option cause of some of the issues.
you meant you dont use newsletter?
can you at least give us a hint on our problem ?
what do you use?
No, he doesn't use Pretty URLs the same way.
Quote from: luismanson on May 14, 2010, 03:43:28 PM
you meant you dont use newsletter?
No, he means you have to disable:
Rewrite Action URLs in the PrettyURLs admin. It is causing errors and I don't know if you can safely disable it without losing a lot of Search engine traffic caused by crawler errors. That's the reason I don't want to switch it off now.
I need to admit, the traffic from the search engines is growing and growing after installing of PrettyURLs!...
ok, but action urls wont make any harm i think, they are the post/admin/edit... not not the posts urls
mmm nope, that did not make it :(
Hello Everyone,
I cannot modify prettyURLs under Boards because the PrettyURLs links right after each board did not show up. What shall I do?
Quote from: vicram10 on May 13, 2010, 09:47:46 AM
@JJMPSP
It's a bug of your theme, not of this mod
if you see the Source Code of your web, you can see this error
Quote<form accept-charset="ISO-8859-1" method="post" action="http://jtagxbox360.info/ http://jtagxbox360.info/search2/" class="floatright">
attach the index.template.php of your theme
Hi, My bad for blaming this mod ! :o I dont know a thing about php :(
I have attached the file, i think its the right one.
Thanks to all that contributed to SMF in anyway.
Hi everyone,
the prettyURL link at the admin panel does not show up. Im using Amber theme.
How shall I fix this?
It seems like you have install mod automatic.
Go to mod page from where you have downloaded this mod and select your version and click parse to see manually the guide how to install this mod.
It seems like you have install mod automatic.
Go to mod page from where you have downloaded this mod and select your version and click parse to see manually the guide how to install this mod.
Hello,
I want to put a non www 301 redirect into the .htaccess. What/where is this the right place to put it into the .htaccess?
The original is:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.digiscap\.nl [NC]
RewriteRule ^(.*)$ http://digiscrap.nl/$1 [L,R=301]
But it's not allowed to use 'RewriteEngine on' twice. So is this the right place to add? Please see my .htaccess below. I removed the prettyURLs code to make this post a bit smaller :-)
ErrorDocument 403 /index.php?spage=ErrorDocument-403
ErrorDocument 404 /index.php?spage=ErrorDocument-404
ErrorDocument 500 /index.php?spage=ErrorDocument-500
RewriteCond %{HTTP_HOST} ^www\.digiscap\.nl [NC]
RewriteRule ^(.*)$ http://digiscrap.nl/$1 [L,R=301]
RewriteRule ^(digiscrap-midmaand-uitdaging|digiscrap-uitdaging|digiscrap-maand-wedstrijd)/?$ ./index.php?spage=$1 [L,QSA]
RewriteRule ^(digiscrap-ere-galerie|abc-digiscrap-woordenboek)/?$ ./index.php?spage=$1 [L,QSA]
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: May 19, 2010, 21:26
RewriteEngine on
RewriteBase /
Removed code
# PRETTYURLS MOD ENDS
Thanks for your answer!
Vincent
Quote from: vbgamer45 on May 06, 2010, 01:34:10 PM
Probably related to the Pretty URLs Extras
Is it possible for you or your team to fix this?
Thanks,
Vincent
Quote from: vbgamer45 on May 14, 2010, 01:12:54 PM
For my sites I don't use the actions seo option cause of some of the issues.
Does this mean we don't have to (or we can't) use the rewrite actions? Or can it be fixed?
Thanks, Vincent
I wouldn't recommend using it. Throws things off on certain actins.
Okay....
Can you help us with a 301 rewrite for /store/, /gallery/, /forum/, /downloads/ etc? or does PrettyURLs redirect all existing 'pretty' links crawled by search engines when I disable rewrite of actions?
Thanks, Vincent
Quote from: Vincent Volmer on May 21, 2010, 12:58:00 AM
Okay....
Can you help us with a 301 rewrite for /store/, /gallery/, /forum/, /downloads/ etc? or does PrettyURLs redirect all existing 'pretty' links crawled by search engines when I disable rewrite of actions?
Thanks, Vincent
Are you want to redirect action=gallery to /gallery or /gallery to action=gallery?
PS: These plugins have pretty packages. In googlecode page. Named "Pretty Url Extras"
Quote from: Daydreamer on May 22, 2010, 06:31:20 PM
Are you want to redirect action=gallery to /gallery or /gallery to action=gallery?
PS: These plugins have pretty packages. In googlecode page. Named "Pretty Url Extras"
Since vbgamer announced that we could better not use rewrite of actions (that MUST be removed from the mod ASAP imo, or fixing it) we need an 301 rewrite for all /actions to action=action and all links to boards/topics etc.... if necessary.
It is absolutely necessary to rewrite all URL's crawled by a search engine when we disable rewriting of actions.
In our case for these mods (from -> to):
/forum/ /index.php?action=forum
/help/ /index.php?action=help
/search/ /index.php?action=search
/admin/ /index.php?action=admin
/moderate/ /index.php?action=moderate
/profile/ /index.php?action=profile
/buddypage/ /index.php?action=buddypage
/pm/ /index.php?action=pm
/calendar/ /index.php?action=calendar
/gallery/ /index.php?action=gallery
/store/ /index.php?action=store
/downloads/ /index.php?action=downloads
/articles/ /index.php?action=articles
/mlist/ /index.php?action=mlist
/logout/ /index.php?action=logout
I really preferring repairing the MOD above disabling rewriting for actions and make a 301 rewrite for every existing url. I'm not a PHP programmer and I understand that it will be taking a lot of time to fix this but please, I'm not the only one who is using this mod and also not the only one with these errors. PrettyURLs is a very interesting and a 'must have' on every forum.
And if a donation, on someones address, gives it a push in the right way please say so. It is very imported to us and I don't care if it cost some money ;)
Vincent
RewriteRule ^/(activate|admin|articles|announce|attachapprove|buddy|calendar)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^/(clock|collapse|coppa|credits|deletemsg|display|dlattach|editpoll)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^/(editpoll2|emailuser|findmember|groups|help|helpadmin|im)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^/(jseditor|jsmodify|jsoption|lock|lockvoting|login|login2|logout)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^/(markasread|mergetopics|media|mgallery|mlist|moderate|modifycat|modifykarma)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^/(movetopic|movetopic2|notify|notifyboard|openidreturn|pm|post|post2)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^/(printpage|profile|quotefast|quickmod|quickmod2|recent|register)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^/(register2|related|reminder|removepoll|removetopic2|reporttm|requestmembers|restoretopic)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^/(search|search2|sendtopic|sitemap|smstats|suggest|spellcheck|splittopics)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^/(stats|sticky|tags|theme|trackip|about:mozilla|about:unknown|unread)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^/(unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile|who|\.xml)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^/(xmlhttp)/?$ ./index.php?action=$1 [R=301,L]
This is all smf default actions. Redirected by default smf links. (like /unreadreplies to action=unreadreplies)
If doesn't worked try
RewriteRule ^(activate|admin|articles|announce|attachapprove|buddy|calendar)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^(clock|collapse|coppa|credits|deletemsg|display|dlattach|editpoll)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^(editpoll2|emailuser|findmember|groups|help|helpadmin|im)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^(jseditor|jsmodify|jsoption|lock|lockvoting|login|login2|logout)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^(markasread|mergetopics|media|mgallery|mlist|moderate|modifycat|modifykarma)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^(movetopic|movetopic2|notify|notifyboard|openidreturn|pm|post|post2)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^(printpage|profile|quotefast|quickmod|quickmod2|recent|register)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^(register2|related|reminder|removepoll|removetopic2|reporttm|requestmembers|restoretopic)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^(search|search2|sendtopic|sitemap|smstats|suggest|spellcheck|splittopics)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^(stats|sticky|tags|theme|trackip|about:mozilla|about:unknown|unread)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^(unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile|who|\.xml)/?$ ./index.php?action=$1 [R=301,L]
RewriteRule ^(xmlhttp)/?$ ./index.php?action=$1 [R=301,L]
this one.
I have a problem with this modification, after I install it when it shows me turn the forum topics and categories that can fail. Select the modification and unfortunately fail Indicon categories and themes that could fail. How to solve this?
The ruling generated is this:
Not Found
The requested URL / xxx / was not found on this server.
Check the help links for the mod on the mod page for info
is it possible PrettyURL uses another .htaccess ( not stored in root ) like
/smf/.htaccess ?
well thing is , my Blog & Forum in root dir, but Blog using index.php , forum using forum.php , when i setup a SEF mod ( SSEF or PrettyURL ) firstly looking /index.php and giving error ,
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
redirect 301 /wwwRedirect/WIRELESS_PROTOCOL/ http://www.mmobrowser.com/forum.php
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: May 23, 2010, 1:43
RewriteEngine on
RewriteBase /
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./forum.php?pretty;action=profile;user=$1 [L,QSA]
# Rules for: actions
# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./forum.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./forum.php?pretty;board=$1.$2 [L,QSA]
# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./forum.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.php?pretty;board=$1;topic=$2.$3 [L,QSA]
# PRETTYURLS MOD ENDS
I don't think it is possible.
Thanks Daydreamer, will look at it this week!
Hello. I posted about a week ago thinking that this mod was causing a problem with the searchbox on my forum.
I then got a reply from someone saying that my index file was incorrect or something, so I posted my index file.
Could someone take a look at this thread : http://www.simplemachines.org/community/index.php?topic=382980.0
And see if they can find the problem ?
Thank you very much :)
hi i installed these and all my other 3 domains on the sites stopped working (permalinks from wordpress)
how can i fix this?
*** FIXED ***
I guess pretty url changed the .htaccess
so i created a new .htaccess at the roof of each other domain and added this in it
RewriteEngine On
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
I have Wordpress running on other domains.. it fixed it.
However i use Pretty URL and Share this Topic
if i share the topic on facebook and someone clicks on it
it takes it back to
mydomain.com/index.php?topic=3257.0
and says 404 page not found.
if i refresh the same page.. it rewrites the link and goes to topic.
Quote from: Khurram Abbasi link=topic=383090.msg2641070#msg2641070 date=1274678668
hi all ,
i am using pretty urls Mod , i change one of my board name and pretty url from http://www.travelermania.com/travelers-rest-room (http://www.travelermania.com/travelers-rest-room) to http://www.travelermania.com/off-topic1/ (http://www.travelermania.com/off-topic1/) ,
i want when i open old link it redirect to new link , which doesn't happend now , i run pretty url maintenance after rename board name and pretty url ...
i ask this question in another topic , http://www.simplemachines.org/community/index.php?topic=383090.0 (http://www.simplemachines.org/community/index.php?topic=383090.0)
one another problem is that when i uninstall Mod the old Pretty Url doesn't redirect and show 404 error , and when mod is install when i create new topic when i hit the post button after a long processing its show me " The page isn't redirecting properly ". when i go back and check in broad topic is created, now if it remain install it create problem and i remove it also create problem , i think there is big mess with my forum ,
i am here for solution ,
There is a reverter package on the modsite if you choose the uninstall pretty urls to keep the old links working
Quote from: vbgamer45 on May 25, 2010, 01:10:08 PM
There is a reverter package on the modsite if you choose the uninstall pretty urls to keep the old links working
uninstall this mod now , but which url i share created by pretty url on many social networks and other site are not working now , when i click on them 404 not found error occur , is there any way to fix this problem ,
Did you try the reverter package?
If this is the site it works OK for me:
http://www.travelermania.com/index.php?topic=12633.0
Quote from: vbgamer45 on May 25, 2010, 02:16:01 PM
Did you try the reverter package?
The package is for SMF2.0RC1 and version 0,91 of the PrettyURL's: <install for="2.0 Beta 3, 2.0 Beta 3 Public, 2.0 Beta 3.1 Public, 2.0 Beta 4, 2.0 Beta 4 Public, 2.0 RC1"> <version>0.9.1</version>
Does this work with RC3 and PrettyURLs 1.0 (is it save to use)?
Quote from: anakmacan on April 13, 2010, 12:45:23 PM
Hey it works with foxy & aeva, just add Nao's code into prettyurls-filter.php !! :D
Quote// Filter Aeva Media URLs
function pretty_aeva_filter($urls)
{
global $boardurl;
$pattern = array(
'~.*[?;&]action=media;sa=media;in=([0-9]+);(thumba?|preview)(.*)~S',
'~.*[?;&]action=media;sa=(album|item|media);in=([0-9]+)(.*)~S',
'~.*[?;&]action=media(.*)~S',
);
$replacement = array(
$boardurl . '/media/$2/$1/?$3',
$boardurl . '/media/$1/$2/?$3',
$boardurl . '/media/?$2',
);
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']) && strpos($url['url'], 'action=media') !== false)
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
}
I just tried adding the code to the file, and I don't see any option to work with Aeva Media yet. Isn't there supposed to be the other half of the code inserted as well? I'm still running RC (not RCb, because the upgrade requires custom install).
Quote from: vbgamer45 on May 25, 2010, 02:16:01 PM
Did you try the reverter package?
yes i try reverter ,
Quote from: aishaweb on May 25, 2010, 02:26:17 PM
If this is the site it works OK for me:
http://www.travelermania.com/index.php?topic=12633.0 (http://www.travelermania.com/index.php?topic=12633.0)
now i completely remove the Mod , the link which Mod converter and i make as back link on different site are not working now ,
http://www.travelermania.com/south-asia/different-cultures-of-india/ or http://www.travelermania.com/south-asia/amazing-cultural-and-other-facts-about-pakistan/ its now redirect to main page not opening the topic...
more check this topic i face this problem after Mod uninstall ,,
http://www.simplemachines.org/community/index.php?topic=383466.0
Quote from: Vincent Volmer on May 25, 2010, 02:29:22 PM
Quote from: vbgamer45 on May 25, 2010, 02:16:01 PM
Did you try the reverter package?
The package is for SMF2.0RC1 and version 0,91 of the PrettyURL's: <install for="2.0 Beta 3, 2.0 Beta 3 Public, 2.0 Beta 3.1 Public, 2.0 Beta 4, 2.0 Beta 4 Public, 2.0 RC1"> <version>0.9.1</version>
Does this work with RC3 and PrettyURLs 1.0 (is it save to use)?
i also try this mod with revert , it install easily , when i add another board and try to rename some board , i face problem which i am discussing here ,,
I have a problem with that. When I put my social share codes, it only shows the topic url, and not the social url. And this happens only when there is a "?" in the url, with Friend Feed it's working. Eg:
<p><a href="http://www.facebook.com/share.php?u=', $scripturl, '?topic=', $context['current_topic'], '.0" class="facebook">Facebook</a></p>
<p><a href="http://friendfeed.com/share/bookmarklet/frame#url=', $scripturl, '?topic=', $context['current_topic'], '.0" class="feed">Friend Feed</a></p>
http://www.site.com/yagiz/topic-name/
http://friendfeed.com/share/bookmarklet/frame#url=http://site/index.php?topic=781.0
@vbgamer why we don't use the item titles in urls for aeva. I already make a package for this.
http://smf-media.com/community/index.php?topic=983.0
Quote from: Daydreamer on May 27, 2010, 05:30:48 PM
@vbgamer why we don't use the item titles in urls for aeva. I already make a package for this.
http://smf-media.com/community/index.php?topic=983.0
Because I didn't provide that...
I'm not too fond of adding more SQL queries to load titles when most people don't even care to fill out the title of a picture... So what's the point in having a query sent just to retrieve the URL "/1234/photo12/"?
Quote from: Nao on May 27, 2010, 05:46:26 PM
Quote from: Daydreamer on May 27, 2010, 05:30:48 PM
@vbgamer why we don't use the item titles in urls for aeva. I already make a package for this.
http://smf-media.com/community/index.php?topic=983.0
Because I didn't provide that...
I'm not too fond of adding more SQL queries to load titles when most people don't even care to fill out the title of a picture... So what's the point in having a query sent just to retrieve the URL "/1234/photo12/"?
It's seo feature. It's helped too much to search engine. Maybe "Photo 12" is not important keyword. And i know that. But it is important for videos. Maybe you have "twilight-saga-new-moon-trailer" in your url or something like that? This not "only" one seo technic. Or maybe not tooo important. But it is helped.
And you must look at that http://forums.searchenginewatch.com/showthread.php?t=2526
It's not against you Daydreamer -- but I'll be very blunt about it: I don't give a damn about SEO for Aeva Media.
SEO is what spawned spammers in the first place. So you're not going to get me to read such a long link I'm afraid.
Aeva Media is there to allow people to publish their holiday pictures and share them with their friends. I didn't work on it for such a long time to please people who only swear by SEO and give me links to complicated pages that try to turn what used to be a fun hobby into a science and a job where everyone will soon be a lawyer. :P
(Yeah, don't mind me, I'm in my "screw this capitalistic world!" hour ::))
Undefined index: pretty_enable_filters
I am getting thousands of error ... in line 105
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
106: {
107: $filterData = unserialize($modSettings['pretty_filters']);
108: if ($filterData['topics']['enabled'])
109: {
110: $url = 'topic=' . $topic . '.' . (isset($_REQUEST['start']) ? $_REQUEST['start'] : '0') . (isset($_REQUEST['prev_next']) ? ';prev_next=' . $_REQUEST['prev_next'] : '') . (isset($_REQUEST['topicseen']) ? ';topicseen' : '') . (isset($_REQUEST['all']) ? ';all' : '') . (isset($_REQUEST['viewResults']) ? ';viewResults' : '');
111: header('HTTP/1.1 301 Moved Permanently');
112: redirectexit($url, false);
113: }
114: }
Did you have any errors on install?
Quote from: vbgamer45 on May 28, 2010, 10:35:51 AM
Did you have any errors on install?
Hello sir
this was the error but I manually edit that file SUBS.PHP
FINDif (!empty($modSettings['queryless_urls']) && (empty($context['server']['is_cgi']) || @ini_get('cgi.fix_pathinfo') == 1 || @get_cfg_var('cgi.fix_pathinfo') == 1) && (!empty($context['server']['is_apache']) || !empty($context['server']['is_lighttpd'])))
{
if (defined('SID') && SID != '')
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?(?:' . SID . '(?:;|&|&))((?:board|topic)=[^#]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2?' . SID", $setLocation);
else
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2'", $setLocation);
}
REPLACE WITH
// Redirections should be pretty too
if (!empty($modSettings['pretty_enable_filters']))
{
require_once($sourcedir . '/PrettyUrls-Filters.php');
$url = array(0 => array('url' => $setLocation, 'url_id' => 'setLocation'));
$filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);
foreach ($filter_callbacks as $callback)
{
$pretty_url = call_user_func($callback, $url);
if (isset($pretty_url[0]['replacement']))
break;
}
if (isset($pretty_url[0]['replacement']))
$setLocation = $pretty_url[0]['replacement'];
$setLocation = str_replace("\x12", '\'', $setLocation);
$setLocation = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|;$|#$|=$~'), array(';', '?', '#', ''), $setLocation);
}
Hi Danni,
I am seeing this again, seems to be when I delete topics they are not being deleted from the Pretty URLS database, so the next topic I write get's a previously removed topics Pretty URL....
I can quickly fix it by emptying the pretty urls database and running maintenance!!
Any ideas on how to troubleshoot or fix it please?
Thanks,
Greg
Quote from: gregh on November 25, 2009, 10:17:17 AM
Hi Danni,
I've just noticed this happening again. It appears the incorrect Pretty URL are always for SPAM posts which I have removed, it appears the when I remove a complete post, the dbase entry isn't being removed.
Manually deleting the Spam posts from the database has fixed it.
cheers,
Greg
Quote from: gregh on September 08, 2009, 11:08:49 AM
hi there,
I've been using PrettyURLS for sometime now, however have noticed that some URLs have completely the wrong description for the URL.
The 'wrong' final field seems to be associated with some SPAM posts that I have removed.
I have run Maintenance from the Admin section, but the problem still exists.
For example
http://www.pocketpcsoft.net/forum/pocketpcsoft-news/how-to-rip-and-edit-dvd-movies-to-other-video-formats/
The above URL links to a review with a completely different title, and the above 'how-to-rip' was a SPAM post I deleted yesterday.
Regards,
Greg
Quote from: Yağız... on May 27, 2010, 05:15:27 PM
I have a problem with that. When I put my social share codes, it only shows the topic url, and not the social url. And this happens only when there is a "?" in the url, with Friend Feed it's working. Eg:
<p><a href="http://www.facebook.com/share.php?u=', $scripturl, '?topic=', $context['current_topic'], '.0" class="facebook">Facebook</a></p>
<p><a href="http://friendfeed.com/share/bookmarklet/frame#url=', $scripturl, '?topic=', $context['current_topic'], '.0" class="feed">Friend Feed</a></p>
http://www.site.com/yagiz/topic-name/
http://friendfeed.com/share/bookmarklet/frame#url=http://site/index.php?topic=781.0
BUMP.
How could I exclude a certain link or script from being included in Pretty URLS??
I have SA Facebook Connect installed and it just plain doesn't work with Pretty URLS. I just need that part not included in the Pretty URLS mod.
Please!
[ ] { } ( )
when these above symbols are used as titles of topics, they automatically come as ( ) in the url,
like mysite.com/forum/board/football(fan)rock/
I dont want this ( or ) symbols in my urls, I them to automatically disappear from url when someone write these in post titles.
hope you understand what I am trying to say, any kind of help is appreciated.
Is it possible to update board pretty urls name in SMF 1.1.x? I see no options when editing boards
Quote from: dedo on June 01, 2010, 07:19:57 AM
Is it possible to update board pretty urls name in SMF 1.1.x? I see no options when editing boards
go to
ACP > forum > boards > modify boards and click on the Pretty urLs on the left side of the board you want to change the board name url
Quote from: ukhalik2 on June 01, 2010, 07:24:35 AM
Quote from: dedo on June 01, 2010, 07:19:57 AM
Is it possible to update board pretty urls name in SMF 1.1.x? I see no options when editing boards
go to
ACP > forum > boards > modify boards and click on the Pretty urLs on the left side of the board you want to change the board name url
I can't find it. I'm using SMF 1.1.11 with Pretty URLs 1.0RC and a sligthly modified version of Classic theme (I tried with default theme too). Could you post a screenshot, please? :-[
Quote from: L.G.S on May 31, 2010, 04:28:56 PM
How could I exclude a certain link or script from being included in Pretty URLS??
I have SA Facebook Connect installed and it just plain doesn't work with Pretty URLS. I just need that part not included in the Pretty URLS mod.
Please!
How does it not work?
Quote from: ukhalik2 on June 01, 2010, 07:19:07 AM
[ ] { } ( )
when these above symbols are used as titles of topics, they automatically come as ( ) in the url,
like mysite.com/forum/board/football(fan)rock/
I dont want this ( or ) symbols in my urls, I them to automatically disappear from url when someone write these in post titles.
hope you understand what I am trying to say, any kind of help is appreciated.
You can remove the row with those symbols from Subs-PrettyUrls.php, but only new topics will be affected. To fix old topics delete the rows from your smf_pretty_topic_urls table and run maintenance.
Quote from: dedo on June 01, 2010, 09:51:18 AM
I can't find it. I'm using SMF 1.1.11 with Pretty URLs 1.0RC and a sligthly modified version of Classic theme (I tried with default theme too). Could you post a screenshot, please? :-[
Then try it with the default theme.
Quote from: Yağız... on May 27, 2010, 05:15:27 PM
I have a problem with that. When I put my social share codes, it only shows the topic url, and not the social url. And this happens only when there is a "?" in the url, with Friend Feed it's working. Eg:
<p><a href="http://www.facebook.com/share.php?u=', $scripturl, '?topic=', $context['current_topic'], '.0" class="facebook">Facebook</a></p>
<p><a href="http://friendfeed.com/share/bookmarklet/frame#url=', $scripturl, '?topic=', $context['current_topic'], '.0" class="feed">Friend Feed</a></p>
http://www.site.com/yagiz/topic-name/
http://friendfeed.com/share/bookmarklet/frame#url=http://site/index.php?topic=781.0
Still need help on this :P
Quote
Quote from: ukhalik2 on June 01, 2010, 07:19:07 AM
[ ] { } ( )
when these above symbols are used as titles of topics, they automatically come as ( ) in the url,
like mysite.com/forum/board/football(fan)rock/
I dont want this ( or ) symbols in my urls, I them to automatically disappear from url when someone write these in post titles.
hope you understand what I am trying to say, any kind of help is appreciated.
You can remove the row with those symbols from Subs-PrettyUrls.php, but only new topics will be affected. To fix old topics delete the rows from your smf_pretty_topic_urls table and run maintenance.
no need to fix old ones, just new ones should be fixed..
can you please tell me what rows to remove..
Hi guys! I guess I got a problem with something concerning that mod. When I deactivate it, the forum profile section works fine, and tpadmin too, but when activated, when I try to save forum profile (where you can choose you avatar etc...) it appears "403 Forbidden" Page. I have been looking for the same error on this topic, but I haven't found anything. Please, ¿could you help me?
This is the error on Apache error log. It says "file does not exist"
File does not exist: /home/eldiscod/public_html/tpadmin, referer: http://www.mywebsite.com/tpadmin/
File does not exist: /home/eldiscod/public_html/profile, referer: http://www.mywebsite.com/profile/?area=forumprofile;u=1
Thank you so much in advice.
This is really weird...I have installed PrettyURL with no issues. Yet when i attempt to click on any of the boards it shows me logged out. I can click on home and boom it shows me logged in once again. Immediately upon clicking and of the forums, it is redirected to whatever/?wwwRedirect. Has anyone had this issue before?
http://www.megabytebbq.com (http://www.megabytebbq.com)
SMF 2.0 RC3
Pretty URLs 1.0RC
Should I empty smf_pretty_urls_cache? It's very big now. More than 55 MB. What is the effect if I empty this smf table?
No don't empty it at all should stay cached
Thank you vbgamer!
I can't install the mod on RC3. What is the problem?
Bump.
Quote from: blow on November 30, 2009, 04:31:57 PM
Hi, I need help...
Pretty URLs were working fine on my forum (2.0 RC1.2) but suddenly it started to give me some trouble. My forum got offline and I discovered that the cause was the smf_pretty_url_cache table, crashed. Then I repaired it and my forum came back. Some time later, that table was crashed again (and it keeps happening).
How to solve that?
Thanks in advance.
That table crashes a lot.
Might be an issue with the host if they restart mysql often or have disk issues.
Quote from: Yağız... on June 02, 2010, 03:07:13 AM
Quote from: Yağız... on May 27, 2010, 05:15:27 PM
I have a problem with that. When I put my social share codes, it only shows the topic url, and not the social url. And this happens only when there is a "?" in the url, with Friend Feed it's working. Eg:
<p><a href="http://www.facebook.com/share.php?u=', $scripturl, '?topic=', $context['current_topic'], '.0" class="facebook">Facebook</a></p>
<p><a href="http://friendfeed.com/share/bookmarklet/frame#url=', $scripturl, '?topic=', $context['current_topic'], '.0" class="feed">Friend Feed</a></p>
http://www.site.com/yagiz/topic-name/
http://friendfeed.com/share/bookmarklet/frame#url=http://site/index.php?topic=781.0
Still need help on this :P
Sorry for bumping again, but ...
Quote from: ukhalik2 on June 02, 2010, 03:34:37 AM
Quote
Quote from: ukhalik2 on June 01, 2010, 07:19:07 AM
[ ] { } ( )
when these above symbols are used as titles of topics, they automatically come as ( ) in the url,
like mysite.com/forum/board/football(fan)rock/
I dont want this ( or ) symbols in my urls, I them to automatically disappear from url when someone write these in post titles.
hope you understand what I am trying to say, any kind of help is appreciated.
You can remove the row with those symbols from Subs-PrettyUrls.php, but only new topics will be affected. To fix old topics delete the rows from your smf_pretty_topic_urls table and run maintenance.
no need to fix old ones, just new ones should be fixed..
can you please tell me what rows to remove..
sorry for bumping it again :) but i need help on it seriously.
Hello Friends,
Does Pretty URLs cause a high cpu load average? CPU usage is okay, but lately I am experiencing abnormal high cpu average load in my vps.
It can it does add more queries I use it my large sites fine though
hello vbgamer
just one question, i try to uninstall this mod, and all test are successfully except the subs.php, it said failed
how to overcome this ? is it save just run the uninstaller ?
regards, GISfreak
Quote from: vbgamer45 on June 05, 2010, 09:13:15 PM
It can it does add more queries I use it my large sites fine though
How large is your site vbgamer?
My site has nearly 400,000 posts and 4,000 members. Threads: 28,000 plus.
I host a couple hundred forums with pretty urls enabled. My main board is i think 100k plus posts.
My host advised me to disable pretty URLs as it is causing high cpu overload.
Could that be true? I like pretty URLs so much.
Hard to say I would check your sql processes and try to follow the forum optimize tips.
how to make PrettyUrls compatible with Aeva Media Gallery (http://custom.simplemachines.org/mods/index.php?mod=977).
thanks, please help! :)
It works fine with Aeva we even have an SEO link addon by Nao.
Quote from: gisfreak on June 06, 2010, 01:10:52 AM
hello vbgamer
just one question, i try to uninstall this mod, and all test are successfully except the subs.php, it said failed
how to overcome this ? is it save just run the uninstaller ?
regards, GISfreak
anyone ?
I would uninstall it then manually edit that file.
Hey there.
I was interested in using Mint : http://www.haveamint.com/
I read here: http://www.haveamint.com/forum/troubleshooting/2212/mint_with_simple_machines_forum#post_10654
One user said to add an exception for /mint. Does that seem feasible? If so, how would that be done?
Quote from: vbgamer45 on June 07, 2010, 10:25:58 AM
It works fine with Aeva we even have an SEO link addon by Nao.
but its not working for me :( what to do?
where is that seo addon?
How is it not working?
I enabled it from the prettyUrls settings but
the avea urls are still like this:
?action=media;sa=album;in=6
By default it won't do urls for mods.
For mods you have to download the Extras package and it only works for mods that are supported
http://code.google.com/p/prettyurls/downloads/list
Um... I detest impatience in others, so I detest it in myself. But... how would one:
add an exception
to Pretty URL's?
You would add a rewriterule to the .htacess file I would search on google to learn how I do not know offhand.
10 - 4
...and thanks kindly.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fserve.mysmiley.net%2Fsign%2Fsign0201.gif&hash=69e60cc7c2b11956c0a2d87f1715779142bee011)
i get these errors
1. Execute Modification SMF2-0/Sources.xml Modification parse error
2. Execute Modification SMF2-0/Sources.xml Modification parse error
3. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
4. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
5. Execute Modification SMF2-0/Themes.xml Modification parse error
6. Execute Modification SMF2-0/Themes.xml Modification parse error
this is what i got in error log
http://xxxx/index.php?action=admin;area=packages;sa=install;package=prettyurls-1-0RCb.zip2: fopen(/home/xxxx/xx/Themes/default/languages/Modifications.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission deniedFile: /home/xxx/xx/Sources/Subs-Package.php
Line: 2495
http://xxxxx/index.php?action=admin;area=packages;sa=install;package=prettyurls-1-0RCb.zip2: fclose(): supplied argument is not a valid stream resourceFile: /home/xxxx/xxxx/Sources/Subs-Package.php
what can i do?
there may be some problem, in the footbar of browser it shows default urls, but when clicked it shows prettyURL.
and also i have simple portal installed, now the forum link is showing like this: site.com?action=forum previously it was showing correctly like site.com/forum/
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fh.imagehost.org%2F0005%2Fasfasdfsad.jpg&hash=394e15654a34624f8dbcfa0c0512e40e58303993)
also, I uploaded prettyurls-extras-1.0-RC.zip but it says not compatible with 2.0 RC3!
I have a problem with the rss of my forum, when I click to look at the RSS I get this:
Parse error: syntax error, unexpected T_ELSEIF in / var/www/vhosts/000/httpdocs/Sources/News.php on line 269 [/ code]
line 269 of file news.php is this:
[Code] elseif ($ xml_format == 'rss' | | $ xml_format == 'rss2' | | $ xml_format == 'WebSlice') [/ code]
a bit of code with the line 269:
[Code] / / Pretty URLs Need to be rewritten
ob_start ('ob_sessrewrite');
$ Context ['pretty'] ['search_patterns'] [] =' ~ (<link> | <id> | <comments> | <guid> )([^#<]+)~';
$ Context ['pretty'] ['replace_patterns'] [] =' ~ (<link> | <id> | <comments> | <guid> )([^<]+)~';
header ('Content-Type: text / xml, charset ='. (empty ($ context ['character_set'])? 'ISO-8859-1': $ context ['character_set']));
elseif ($ xml_format == 'rss' | | $ xml_format == 'rss2' | | $ xml_format == 'WebSlice')
header ('Content-Type: application / rss + xml, charset ='. (empty ($ context ['character_set'])? 'ISO-8859-1': $ context ['character_set']));
elseif ($ xml_format == 'atom')
header ('Content-Type: application / atom + xml, charset ='. (empty ($ context ['character_set'])? 'ISO-8859-1': $ context ['character_set']));
elseif ($ xml_format == 'rdf')
header ('Content-Type:'. ($ context ['browser'] ['is_ie']? "text / xml ':' application / rdf + xml ').'; charset =". (empty ($ context [ 'character_set'])? 'ISO-8859-1': $ context ['character_set']));[/ code]
: - \
----------------------------
tengo un problema con el rss de mi foro, cuando clico para mirar el RSS me sale eso:
[code]Parse error: syntax error, unexpected T_ELSEIF in /var/www/vhosts/000/httpdocs/Sources/News.php on line 269
la linea 269 del archivo news.php es esta:
elseif ($xml_format == 'rss' || $xml_format == 'rss2' || $xml_format == 'webslice')
un poco del codigo con la linea 269:
// Pretty URLs need to be rewritten
ob_start('ob_sessrewrite');
$context['pretty']['search_patterns'][] = '~(<link>|<id>|<comments>|<guid>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<link>|<id>|<comments>|<guid>)([^<]+)~';
header('Content-Type: text/xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
elseif ($xml_format == 'rss' || $xml_format == 'rss2' || $xml_format == 'webslice')
header('Content-Type: application/rss+xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
elseif ($xml_format == 'atom')
header('Content-Type: application/atom+xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
elseif ($xml_format == 'rdf')
header('Content-Type: ' . ($context['browser']['is_ie'] ? 'text/xml' : 'application/rdf+xml') . '; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
:-\
Can you post your full News.php file as an attachment
ok
Fixed file attached looked at the mod code it should not delete that line
Quote from: vbgamer45 on June 08, 2010, 04:04:39 PM
By default it won't do urls for mods.
For mods you have to download the Extras package and it only works for mods that are supported
http://code.google.com/p/prettyurls/downloads/list
vbgamer45, I downloaded the latest mod-extras package from Feb 2, and enabled the "SMF Media Gallery" addon, as I do not see one titled Aeva.
Is that the correct package, and if so what could I try to get the extra part working?
It should be the same SMF Media Gallery and Avea are the same.
Quote from: vbgamer45 on June 16, 2010, 08:10:08 PM
It should be the same SMF Media Gallery and Avea are the same.
Ok, then it's not working. Is there somewhere you can point me to figure out troubleshooting to find out why/fix it?
I am getting this error installing pretty urls on rc3
9. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test successful
2. Replace ./Sources/Subs.php Test failed
Everything seems to work fine after the install but when i tryed to do a post it comes up with a This web page has a redirect loop., on new post and reply posts, i have used pretty urls in smf 1.1.11 and worked like a charm.
Do i have to add or fix up anything in the subs.php file or another file?
to get the redirection from board,15.0.html to the new pretty urls re-named link?
I have sorta come up with a resolution for the redirection error well its more like a side step with still being able to use the function on post i just enabled the rewrite on topics and left the other options now the redirections loop only comes up if some one is deleting a a reply, works for now :D
i have smf 1.1.11
the pretty urls works fine, i want to ask whether it is possible to exclude the category name from the url of topics
current structure topic url is
sitename.com/forum/category-name/topic-title
i want
sitename.com/forum/topic-title
because when the category name is included in url it get really long
Quote from: vbgamer45 on June 16, 2010, 10:54:56 AM
Fixed file attached looked at the mod code it should not delete that line
thankssssssssssssssssssssssssssssssssssss ;D ;D ;D ;D
Glad you got it
I got a problem with this awesome mod.
This is what I did: http://www.simplemachines.org/community/index.php?topic=387057.msg2672078#new
Anyways, after upgrade, i reinstalled prettyURLs and when I clicked on a board I noticed that it forwarded me to the old domain, which threw an error because nothing exists there at the moment. I uninstalled PrettyURLs, ticked the box to remove the database. I then reinstalled PrettyURLs and I faced the same problem again >.< my current forum is http://techsources.info
Thanks for the help!
Check the troubleshooting topic on the mod page if switch domains
Hi.
Please let me know: is it possible to create a stand-alone file for running maintenance tasks?
I mean, a file directly acessible so I can run it without the need of login in the admin panel.
How should it be?
I need this just because I want to give some non-admin staff members the ability to run the maintenance when I'm out. Can you help me?
Thanks in advance.
journal d'erreur
bruno36
127.0.0.1
Aujourd'hui à 12:10:33
245893a4c9f4140540bd5506139f19c8
Type d'erreur: Éléments indéfinis
http://localhost/index.php?pretty;board=15.08:
Undefined offset: 15Fichier: C:/wamp/www/Sources/MessageIndex.php
Ligne: 61
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Quote from: BLueSS on June 16, 2010, 08:53:56 PM
Quote from: vbgamer45 on June 16, 2010, 08:10:08 PM
It should be the same SMF Media Gallery and Avea are the same.
Ok, then it's not working. Is there somewhere you can point me to figure out troubleshooting to find out why/fix it?
I wrote it but I couldn't test it (as I'm myself using a very different custom version of PrettyURLs), what exactly doesn't work?
(For best results, post in that topic (http://www.simplemachines.org/community/index.php?topic=200401.0), as I seldom read this one.)
Hi, hopefully someone can help me.
Running SMF 2.0 RC3
I have SMF set up in a subdomain, e.g. web.domain.com
So after setting up Pretty URL, everything works fine and as it should do.
However here in lies my problem. If I click on forum in my navbar it would be web.domain.com/forum/
If I click on a topic or post, it will of course be web.domain.com/topic or web.domain.com/topic/post
However I want it to be web.domain.com/forum/topic and web.domain.com/forum/topic/post
I know I could possibly make a new directory called /forum and place SMF in there, but I'd rather not do that since the way our web root is structured is rather complex.
Is it possible to link everything to web.domain.com/forum/topic/post etc instead of web.domain.com/topic/post ? and how could I do this?
You would have to do some minor modification to core code of Pretty Urls and the .htaccess file as well.
Quote from: vbgamer45 on June 22, 2010, 10:19:35 AM
You would have to do some minor modification to core code of Pretty Urls and the .htaccess file as well.
If anyone could assist me in doing so I'd be very grateful. I'm not sure where to start or look in terms of modifying Pretty Urls. :)
is this the best of its kind or there are better alternatives?
hi,
I can use pretty for a big forum (database = 200mb) without worries? it will not slow down or overload the server?
You can use it fine. I use it on large boards myself 100k plus posts
Quote from: lastrider on June 22, 2010, 11:49:42 AM
Quote from: vbgamer45 on June 22, 2010, 10:19:35 AM
You would have to do some minor modification to core code of Pretty Urls and the .htaccess file as well.
If anyone could assist me in doing so I'd be very grateful. I'm not sure where to start or look in terms of modifying Pretty Urls. :)
@ vbgamer45
If I could take a moment of your time, would you be able to help me in doing the above? I would appreciate any help you could provide. I've been going through the Pretty Url files, particularly the prettyurls-filters.php but I'm no coder by any means so I'm a bit stuck.
Sorry don't have time
Quote from: vbgamer45 on June 23, 2010, 02:43:59 PM
Sorry don't have time
Ok, thanks anyway.
Offer is still open to anyone else who could lend a hand. :P
vbgamer, this mod not compatible with simple portal and aeva media, conflict in updating subs.php. Any quick fix ?
Install Pretty Urls first then other mods.
tried that, but other mods will find conflict if being installed after pretty urls
I don't know try manual install then after see if mod works ok without that fix or use pretty urls code instead there.
ok so i try to install the pretty urls too ... on my smf 2.0 rc3 forum (ultimatelvl.com) , the thing is that i get the subs.php error ... i searched all night these board to see any working solutions, here is what i get :
Type Action Description
* 1. Execute Modification ./index.php Test successful
1. Replace ./index.php Test successful
* 2. Execute Modification ./SSI.php Test successful
1. Replace ./SSI.php Test successful
* 3. Execute Modification ./Sources/Admin.php Test successful
1. Add After ./Sources/Admin.php Test successful
* 4. Execute Modification ./Sources/ManageErrors.php Test successful
1. Replace ./Sources/ManageErrors.php Test successful
* 5. Execute Modification ./Sources/ManageSettings.php Test successful
1. Replace ./Sources/ManageSettings.php Test successful
* 6. Execute Modification ./Sources/News.php Test successful
1. Add Before ./Sources/News.php Test successful
2. Replace ./Sources/News.php Test successful
* 7. Execute Modification ./Sources/QueryString.php Test successful
1. Replace ./Sources/QueryString.php Test successful
2. Add Before ./Sources/QueryString.php Test successful
3. Add Before ./Sources/QueryString.php Test successful
* 8. Execute Modification ./Sources/Security.php Test successful
1. Replace ./Sources/Security.php Test successful
* 9. Execute Modification ./Sources/Subs.php TEST FAILED
1. Replace ./Sources/Subs.php TEST FAILED
2. Replace ./Sources/Subs.php TEST FAILED
* 10. Execute Modification ./Sources/Subs-Post.php Test successful
1. Replace ./Sources/Subs-Post.php Test successful
2. Add After ./Sources/Subs-Post.php Test successful
3. Replace ./Sources/Subs-Post.php Test successful
* 11. Execute Modification ./Sources/Display.php Test successful
1. Replace ./Sources/Display.php Test successful
* 12. Execute Modification ./Sources/ManageBoards.php Test successful
1. Add After ./Sources/ManageBoards.php Test successful
2. Add Before ./Sources/ManageBoards.php Test successful
* 13. Execute Modification ./Sources/MessageIndex.php Test successful
1. Replace ./Sources/MessageIndex.php Test successful
* 14. Execute Modification ./Sources/QueryString.php Test successful
1. Replace ./Sources/QueryString.php Test successful
2. Replace ./Sources/QueryString.php Test failed (Ignore Errors)
3. Replace ./Sources/QueryString.php Test successful
4. Replace ./Sources/QueryString.php Test successful
* 15. Execute Modification ./Sources/Subs-Boards.php Test successful
1. Replace ./Sources/Subs-Boards.php Test successful
2. Replace ./Sources/Subs-Boards.php Test successful
3. Replace ./Sources/Subs-Boards.php Test successful
* 16. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
1. Replace ./Themes/default/ManageBoards.template.php Test successful
2. Add Before ./Themes/default/ManageBoards.template.php Test successful
* 17. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
1. Add Before ./Themes/default/languages/Modifications.english.php Test successful
18. Extract File ./Sources/PrettyUrls.php
19. Extract File ./Sources/PrettyUrls-Filters.php
20. Extract File ./Sources/PrettyUrls-Tests.php
21. Extract File ./Sources/Subs-PrettyUrls.php
22. Extract File ./Themes/default/PrettyUrls.template.php
23. Extract Tree ./Themes/default/pretty
24. Extract File ./Themes/default/languages/PrettyUrls.english.php
25. Adapt Database SMF2-0/install.php
the thing is that i tryed to do the subs.php manually but still dont work... i only have simple portal installed as a mod ... any advices guys ? :( i really need it..
also i attached the subs.php too ...i did the changes but i still get those errors :((
thanks in advance
My forum has 556.7 MB and I used pretty URL before in it.. when it was 50 MB large... and when I installed it, it doubled the size of my database within a week!... and it was all because of the cache... does this still produce a huge amount of cache??? cuz imagine i install this MOD right know... my db will be a GB... too much lol
Yes it does this will take up a lot of space.
Quote from: vbgamer45 on June 24, 2010, 12:57:21 AM
Yes it does this will take up a lot of space.
hey there vbgamer ...can you please give me some instructions too ? i mean, i dont know whats the problem coz i edited the subs like it said, also im not too much into coding thing...
thanks in advance
ultimatelvl
Check the modsite has manual install instructions don't have time to edit files.
well is ok i mean i didnt wanted u to edit my file...i attached it that you can see that i edited acording to the modsite installation manual and still is not working...
anyway thanks for help i guess i will just leave those ugly urls in there coz i cant find any sollution atm :(
ok thank you
when a migration server and domain name, I need to change what values in the database?
Check the troubleshooting topic on the mod page for changing hosts.
ok thank you
in the root of my server side folder /www, I have this htaccess:
ErrorDocument 404 http://www.mysite.com/
it will not hurt my engine optimization?
That's ok.
so can still someone help me out please ? i managed to finish my forum to look great and already got some views on, but i really wanna have those pretty urls installed, what should be the problem ? I kno i post this 2nd time, but is weird, i really did exactly like in the description for 2.0 rc3 :(, or at least i can find another mod like this ? maybe that will work...
thanks
Check out modsite for manual install instructions
dont want to be rude, but what to see there ? only opened issues, and no search related to subs.php problem.... anyway seems that you only give me that answer no matter what...
Modsite for mod tells you what code to manual change gives you instructions
ok, seems you dont want to understand me that for the last 2 days i installed/uninstalled and reinstalled pretty links, i used all the infos, and is not working, gives me a subs.php error, couldnt find how to resolve this problem either here (SimpleMachines.org) and not even to the mod site....
so please dont tell me to go again to the mod site for the infos coz i cant find any sollution there
Btw can i get some reply from other people too ? With some advices or stuff ?
thanks in advance
Just do the mod install manually you should be able to figure what changes to make with the Subs.php file to make it work.
Hi,
i have a problem, i have a board with this name : Admins "Portail DDR"
with pretty the link is : http://www.mysite.com/forum/admins-%27portail-ddr%27/
it does not open
"Firefox has detected that the server is redirecting the request for this address in a way which will not happen."
any idea please ?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg42.imageshack.us%2Fimg42%2F4055%2Fcaptureqy.png&hash=899a071349412a6fd55afe28ad1bd5e40febdb84)
Remove the quotes from the name then it should be ok.
i have smf 1.1.11
the pretty urls works fine, i want to ask whether it is possible to exclude the category name from the url of topics
current structure topic url is
sitename.com/forum/category-name/topic-title
i want
sitename.com/forum/topic-title
because when the category name is included in url it get really long
ok
htaccess file should be chmod what? 644 is good?
and if I want to add code protection htaccess, I must add on what line?
<Files Settings.php>
Order Deny, Allow
Deny from all
</ Files>
thx
Just add it at the end I think or in the second or third line.
hi vbgamer45,
Is it possible to make URLs ended with .html ? (http://www.forum.cim/forum/title-of-thread.html)
I don't know why, but google just doesn't crawl my forum if Pretty URLS being enabled
all of sudden my forum shows a blank page, I think it's caused by the Pretty URL. I can't get into admin console to disable pretty url.
Does anyone know how to disable pretty url using phpmyadmin?
Quote from: petecheng on June 26, 2010, 11:36:42 PM
all of sudden my forum shows a blank page, I think it's caused by the Pretty URL. I can't get into admin console to disable pretty url.
Does anyone know how to disable pretty url using phpmyadmin?
Make a file... name it how ever u want lol...
inside paste this:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_enable_filters' => '0'));
?>
Make sure the file is .php ;D.
Upload it where u have the others files of ur forum... in the same folder where SSI.php is ;D.
A friend told me all this lol... I just translated the help ;D... My friends profile --> http://www.simplemachines.org/community/index.php?action=profile;u=130323
Nice tip that comes in handy
hi
it's not compatible with arabic letters (board, topics..) ? any solution ?
I don't think it is that would be hard to solve.
Why? :D :D
some urls forums like phpbb or ipb are arab, no problem ...
I don't have a good understanding of other character sets and how to handle them in urls
If i understand the operation of the module, you select the title instead of id to display it as a url
so where is the problem? why not display as Arabic, Russian, Chinese ...
I really don't know could be the database type.
couldnt find any other prettyurl post, but if there is one, i apologize and if u tell me where i will post there instead.
Im using pretty urls on a smf 1.1.11 board. I get that old "the site redirects in a way that will never complete" error when posting and editing topics.
However under installation of prettyurls, the links i get there to "check if these links work before you enable rewrite" works! when i go through those and try edit a post they work perfectly WITH the pretty urls in place (only during that installation link check feature). then i press enable rewriting and the bug is back.
anyone knows what this might be?
received this database error in my error log shortly after enabling. no additional db errors in the few days since
Database Error: Duplicate entry '10561' for key 1
INSERT INTO smf_pretty_topic_urls(`id_topic`, `pretty_url`)
VALUES
(10561, '[title]')
line 301 of pretty url filters.php
What I do fix it is change INSERT INTO to INSERT IGNORE INTO
I installed pretty urls in my forum having smf 1.1.11
But whenever i click on an board or any post it logs me out of the forum
what to do ??
Check your cookie settings if the url's are different like www and new one doesn't have a www that could cause that issue.
yup there is same issue...
How to fix this ??
Hello all!
I need some ideas....
I'm using 2 domains for my forum.
Fixed cookie and host via adding $boardurl = 'http://' . $_SERVER['HTTP_HOST'];
instead of common board url to settings.php
But how to fix Pretty URLs?
pretty_root_url
in settings table atm show my main domain (as in sig) - http://www.forum-rudn.info
another url i'm using - http://www.studrudn.ru/forum - how to add it to settings?
p.s. atm i disabled host feature in settings.php.
Quote from: venex on June 27, 2010, 02:19:08 AM
Quote from: petecheng on June 26, 2010, 11:36:42 PM
all of sudden my forum shows a blank page, I think it's caused by the Pretty URL. I can't get into admin console to disable pretty url.
Does anyone know how to disable pretty url using phpmyadmin?
Make a file... name it how ever u want lol...
inside paste this:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_enable_filters' => '0'));
?>
Make sure the file is .php ;D.
Upload it where u have the others files of ur forum... in the same folder where SSI.php is ;D.
A friend told me all this lol... I just translated the help ;D... My friends profile --> http://www.simplemachines.org/community/index.php?action=profile;u=130323
I have a similar problem.
Is it possible to create a file like that to run the maintenance?
I mean the "
/?area=pretty;sa=maintenance;run" link of the PrettyUrls panel.
Thanks in advance.
Not currently possible.
Ok, thanks.
Quote from: vbgamer45 on July 05, 2010, 11:32:32 AM
Not currently possible.
this reply also about my question?
You can only use one domain for your forum check troubleshooting if you need to change urls
Hello
I have a problem, I can not go to page 4 of a topic
http://www.dimadimaraja.com/forum/actualites-et-discussions-sur-le-raja/
login: lolo
pass: lolop
topic : HANAT: l'homme tient sa parole
any idea please ?
Quote from: Tair on July 05, 2010, 01:47:01 PM
Quote from: vbgamer45 on July 05, 2010, 11:32:32 AM
Not currently possible.
this reply also about my question?
1 page = 1 URL. Anything else is uncool!
http://www.w3.org/Provider/Style/URI
Quote from: Dannii on July 06, 2010, 10:12:29 AM
1 page = 1 URL. Anything else is uncool!
http://www.w3.org/Provider/Style/URI
ye, i agree.
Anyway i managed to solve my problem - just put nothing in
pretty_root_url
field on my test server. Will do it on main server soon.
Hello there.
Im getting 406 error on some topics on my forum, coused by pretty urls mod.
Topic:
http://www.samo-opusteno.info/forum/funny-pics/opticke-iluzije/
When i turn off pretty urls it works. Version: 1.1.11.
Anyone knows how to fix this please? :-X
Quote from: Am' on July 06, 2010, 03:42:14 AM
Hello
I have a problem, I can not go to page 4 of a topic
http://www.dimadimaraja.com/forum/actualites-et-discussions-sur-le-raja/
login: lolo
pass: lolop
topic : HANAT: l'homme tient sa parole
any idea please ?
up please :-[
My members have alerted me to a problem with the arcade and shop on my site. Because I have PrettyURLs installed, it changes the URLs to /arcade and /shop instead of index.php?action=arcade and index.php?action=shop.
My problem is that there are also directories with those same names, and clicking on the URLs results in a listing of those directories. I tried the maintenance thing, and verified that the actions are in the appropriate section of .htaccess. Any suggestions?
I'm running 2.0 RC3 and haven't installed any mods for several months. Any suggestions?
Quote from: Oldiesmann on July 10, 2010, 02:59:21 PM
My members have alerted me to a problem with the arcade and shop on my site. Because I have PrettyURLs installed, it changes the URLs to /arcade and /shop instead of index.php?action=arcade and index.php?action=shop.
My problem is that there are also directories with those same names, and clicking on the URLs results in a listing of those directories. I tried the maintenance thing, and verified that the actions are in the appropriate section of .htaccess. Any suggestions?
I'm running 2.0 RC3 and haven't installed any mods for several months. Any suggestions?
well..in this case i usualy edit DB, pretty cache table manualy. Just search for %arcade% and %shop% and change it to what you like.
Probably here some better solution - but i'm doing so. Too sad that here isn't any special built-in interface to show cache and search through it.
Hi there.
I'm still configuring my Pretty URLs MOD.
Now I've on the SMF Error log a huge number of errors like this one:
Undefined index: pretty_urlsFile: /home/pviagem/public_html/forum/Themes/default/ManageBoards.template.php (main sub template - eval?)Line: 70
My ManageBoards.template.php file has the following data on the line 70:
<td width="10%" style="padding-right: 1ex;" align="right">', allowedTo('admin_forum') ? '<a href="' . $scripturl . '?action=manageboards;sa=pretty;boardid=' . $board['id'] . '">' . $txt['pretty_urls'] . '</a>' : '', '</td>
Anyone can help me to correct this?
Many thanks for your help.
If you manually installed recheck that you did all edits.
vbgamer, any idea for my bug please ?
Quote from: pviagem on July 11, 2010, 07:57:31 AM
Hi there.
I'm still configuring my Pretty URLs MOD.
Now I've on the SMF Error log a huge number of errors like this one:
Undefined index: pretty_urlsFile: /home/pviagem/public_html/forum/Themes/default/ManageBoards.template.php (main sub template - eval?)Line: 70
My ManageBoards.template.php file has the following data on the line 70:
<td width="10%" style="padding-right: 1ex;" align="right">', allowedTo('admin_forum') ? '<a href="' . $scripturl . '?action=manageboards;sa=pretty;boardid=' . $board['id'] . '">' . $txt['pretty_urls'] . '</a>' : '', '</td>
Anyone can help me to correct this?
Many thanks for your help.
Note that it says "main sub template - eval?" after it.
Disable template eval, and check the error log again.
To do that:
SMF 1.1.x - either run
REPLACE INTO smf_settings('disableTemplateEval', 1); in phpMyAdmin or install the Disable Template Eval mod (http://custom.simplemachines.org/mods/index.php?mod=2054).
SMF 2.0 RC3 - Admin -> Configuration -> Server Settings, check the box next to "Disable evaluation of templates".
That will give you the specific file and line where the error is occurring, which should help you fix things.
Quote from: Dzonny on July 07, 2010, 03:54:24 AM
Hello there.
Im getting 406 error on some topics on my forum, coused by pretty urls mod.
Topic:
http://www.samo-opusteno.info/forum/funny-pics/opticke-iluzije/
When i turn off pretty urls it works. Version: 1.1.11.
Anyone knows how to fix this please? :-X
bump.
Quote from: netjockey on June 26, 2010, 06:20:53 AM
i have smf 1.1.11
the pretty urls works fine, i want to ask whether it is possible to exclude the category name from the url of topics
current structure topic url is
sitename.com/forum/category-name/topic-title
i want
sitename.com/forum/topic-title
because when the category name is included in url it get really long
I have same question, but I use latest SMF.
Possible but requires php knowledge to recode it.
Quote from: vbgamer45 on July 14, 2010, 09:19:17 PM
Possible but requires php knowledge to recode it.
Can you tell more?
You need to have the php knowledge to code it. This is not something I would support or consider adding.
I have a small problem.
I am running 2.0RC3 and when I installed the mod everything appeared to be great. But after using it for a bit I noticed that if I modify a post and go to save it, or try to remove a post, I get an error saying that the page is not redirecting properly. In the address bar of the browser it is trying to go to the old URL's. What do I need to modify to correct this issue?
Any post or a specific post? What type of url rewriting do you have enabled? Just topics or do you have actions too?
Quote from: vbgamer45 on July 15, 2010, 11:56:55 AM
Any post or a specific post? What type of url rewriting do you have enabled? Just topics or do you have actions too?
Any post.
I have everything enabled.
Hey there everyone, could you possibly assist me with this problem?
http://www.simplemachines.org/community/index.php?topic=391470
I've searched through this thread and as I gather it seems to be some sort of issue with the RewriteRules, or .htaccess, I'm just curious how I could go about solving this issue.
Quote from: XxSparks on July 18, 2010, 09:41:18 PM
Hey there everyone, could you possibly assist me with this problem?
http://www.simplemachines.org/community/index.php?topic=391470
I've searched through this thread and as I gather it seems to be some sort of issue with the RewriteRules, or .htaccess, I'm just curious how I could go about solving this issue.
check .htaccess for that slash, if not - check settings table in the DB, pretty_root_url - there possible could be the url with slash, try to remove slash.
Quote from: Tair on July 19, 2010, 07:56:30 AM
Quote from: XxSparks on July 18, 2010, 09:41:18 PM
Hey there everyone, could you possibly assist me with this problem?
http://www.simplemachines.org/community/index.php?topic=391470
I've searched through this thread and as I gather it seems to be some sort of issue with the RewriteRules, or .htaccess, I'm just curious how I could go about solving this issue.
check .htaccess for that slash, if not - check settings table in the DB, pretty_root_url - there possible could be the url with slash, try to remove slash.
Here's my .htaccess:
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: July 18, 2010, 19:12
RewriteEngine on
RewriteBase /
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(activate|admin|enotify|announce|attachapprove|buddy|buddypage|calendar)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(clock|collapse|comment|coppa|contact|credits|deletemsg|display)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dlattach|dlpmattach|editpoll|editpoll2|emailuser|findmember|groups|help)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(helpadmin|im|jseditor|jsmodify|jsoption|lock|lockvoting|login)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(login2|logout|markasread|mergetopics|mlist|moderate|modifycat|modifykarma)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(movetopic|movetopic2|notify|notifyboard|openidreturn|pm|post|post2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(printpage|profile|quotefast|quickmod|quickmod2|recent|register|register2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reminder|removepoll|removetopic2|reporttm|requestmembers|restoretopic|search|search2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(sendtopic|smstats|suggest|spellcheck|splittopics|stats|sticky|tags)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(theme|teampage|trackip|about:mozilla|about:unknown|unread|unreadreplies|updateplayer)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|viewprofile|vote|viewquery|viewsmfile|who|xboxlive|\.xml)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(xmlhttp)/?$ ./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]
# PRETTYURLS MOD ENDS
And when I change it, I get this:
Quote
404 Not Found
The resource requested could not be found on this server! Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site
Hey guys! I really like this mod and I am hoping that my problem can be fixed easily. I got everything installed successfully after I had to hand write the second subs.php section. I went and did the set up. I tested the links and they worked so I clicked enable urls or whatever and then I get this error:
Quote from: errorFatal error: require_once() [function.require]: Failed opening required '/PrettyUrls-Filters.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/justin/public_html/Sources/Subs.php on line 3035
EDIT: After checking into it, I noticed that the mod itself is working and everything is simplified like it should be but I would appreciate it if someone could fill me in on what that error means. I don't want it to come back to haunt me later.
EDIT: Okay I am getting that error anytime I perform an admin action. For instance when I went and deleted a package that I didn't want, I got the error again. This does not affect the forum itself but it does make me nervous and it is very inconvenient. Please help me fix this. Thanks in advance guys, great mod!
Download the mod to your computer find the PrettyUrls-Filters.php in the zip file then copy it to your sources folder on your website.
Okay just did that and it asked if I want to overwrite. I guess that means that it is already there. I am going to overwrite and see if that changes anything.
EDIT: Also does it matter that when I type in the site url I get the home page buit when I click the home page I get the url with index.php url? Not a big deal at all just wondering.
EDIT: BTW it works fine now as far as the admin actions go! Thank you so much, I never would've thought of something so simple. This mod is awesome. I am wondering if this has anything to do with the fact that I just 3 more guests pop up. Anyway thanks again!
NOPE! IT DID IT AGAIN! Whenever I post now it gives me that same error.
I think it has to do with the redirect mod. I am going to manually uninstall the redirect mod and see if that helps. If you can think of anything please let me know. I will upload whatever files you need me to.
I tried to do a manual uninstall of the other mod and it's just such a pain cuz now I have to try to find and replace text backwards and this is starting to stress me out. There has to be a way to make this all work together properly but I am open to any suggestions. I am about to launch my forum in a couple days and I HAVE to get this fixed.
Quote from: XxSparks on July 19, 2010, 10:35:14 AM
404 Not Found
The resource requested could not be found on this server! Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site
Did you try my advice about DB?
Now my forum is completely down. No matter which path I type in, I get this message every time:
Quote from: error
Fatal error: require_once() [function.require]: Failed opening required '/PrettyUrls-Filters.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/justin/public_html/Sources/Subs.php on line 3035
Please help. :-(
I don't know what else would cause that. If you manually edited the files recheck your edits in Subs.php
whenever i try to edit someone's profile, i get this error:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg709.imageshack.us%2Fimg709%2F9508%2Fsadfasdfsadfdsa.png&hash=fb1a158d5a876ee0e5ec7ec69ce6c89ecdb7e66f)
i can edit user's profiles, when pretty urls mod is disabled.
please help me.
Check permissions
And disable mod_security if enabled
I am getting no 404 errors on my site
www.mychemistrytutor.com/forums
my hosting tech supports indicate that this line in the .htaccess is what is causing the lack of correct 404 responses
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
correct 404 responses are essential for site growth
what about his statement causes the lack of 404 response?
Quote from: vbgamer45 on July 14, 2010, 11:19:08 PM
You need to have the php knowledge to code it. This is not something I would support or consider adding.
Why not?
Okay I manually uninstalled both of the mods I added over the last couple of days then I reinstalled pretty urls. I am no longer being redirected to an error page but whenever I click additional options in post, I get the 404 error. It still works but it has the 404 error in the drop down that contains the additional options. I sure do hope you figure this out because I really like this mod and I won't be able to use until this error is fixed.
Quote from: vbgamer45 on July 20, 2010, 12:21:04 AM
Check permissions
And disable mod_security if enabled
admins have all permissions.
where to check mod_security?
The description says this works with pretty urls but it does not for me in SMF 1 series, is there a change I need to make?
For what? I use Pretty urls ok on SMF 1.1.x
Hi guys I try to explain my problem. I've successfully installed this mod and it works, so now I've got urls like: http://domain.com/board/topic/
The problem is when I rename a board or topic, the url doesn't change. For example, I've got a topic named "good", the url is: http://domain.com/board/good/
But if I rename it in "nice", for example, the url doesn't change, it remains: http://domain.com/board/good/
and don't change in http://domain.com/board/nice/
I hope you understand me sorry for english, home someone can help me ...thanks!
That's how it is supposed to be so you don't loose your search rankings.
Quote from: vbgamer45 on July 21, 2010, 09:12:25 AM
That's how it is supposed to be so you don't loose your search rankings.
but is here any method to disable it?
I can explain - i'm using link exchange service - and when i move topic from one board to another link service thoughts that there are 2 similar topics but in different boards.
Like forum/blabla/1 -> move to forum/lala/1 and appears that this topic one have 2 adresses - blabla/1 and lala/1
No method to disable you can manually edit the cache though the database not recommend though
Hello Folks! I just installed this awesome mod today. Seems to be working like a champ. There is only one issue. It seems when the bread crumb is rendered that it will output in text "��" where it should be a break between items like "/" before?
Here is a link to see what I mean: http://stangnation.com/open-frequency/test-drive-2011-mustang-gt-5-0/
What happened and/or how can I fix? :)
Quote from: vbgamer45 on July 21, 2010, 09:12:25 AM
That's how it is supposed to be so you don't loose your search rankings.
So is it normal? And there's no way to change the url when I edit board/topic title? I prefer rewriting works this way
Quote from: vbgamer45 on July 21, 2010, 10:43:54 AM
No method to disable you can manually edit the cache though the database not recommend though
How can I manually edit the cache? Where can I get it and what I have to modify?
Thanks for help
Each time I install Pretty Urls and try to access a post, I get signed out of admin and into guest so when I view the post, I dont have any admin options (edit, remove, etc).
How do I fix this issue?
Do you use more than one url to access your forum?
No just: http://www.cockatooforums.com/
although earlier today I did have a directory named forum that would also access the forum. I deleted it though.
Quote from: Stigmartyr on July 21, 2010, 10:47:22 AM
Hello Folks! I just installed this awesome mod today. Seems to be working like a champ. There is only one issue. It seems when the bread crumb is rendered that it will output in text "��" where it should be a break between items like "/" before?
Here is a link to see what I mean: http://stangnation.com/open-frequency/test-drive-2011-mustang-gt-5-0/
What happened and/or how can I fix? :)
I fixed my own issue. Turns out the theme's index.template.php had some corrupted characters from editing it in the cpanel web interface. I scrolled to the linktree section of the code and found it.
However I am facing ANOTHER issue with the Facebook Like Mod (http://custom.simplemachines.org/mods/index.php?mod=2543). It used to be able to get it to print the entire post title to facebook when someone liked a topic. Now, it can't parse the thread title :( It just says: 'so and so' likes <website name>
I noticed that the url it's serving is like this too: http://stangnation.com/index.php?topic=10359
layout%3D%22standard%22 (http://stangnation.com/index.php?topic=10359layout%3D%22standard%22)
It seems to append layout%3D%22standard%22 to the end of the topic ID and it's not able to parse whatever pretty url is dishing out?
I'm looking into it on the url mod side but I am kind of stabbing in the dark here. I pondered whether this was part of the .htaccess modifications or not.
You can see my facebook activity block here: http://stangnation.com (lower left hand corner)
All your help and advice is greatly appreciated!
Quote from: ukhalik2 on July 20, 2010, 10:28:08 AM
Quote from: vbgamer45 on July 20, 2010, 12:21:04 AM
Check permissions
And disable mod_security if enabled
admins have all permissions.
where to check mod_security?
bump, my problem is still unsolved.. i cant even edit my profile :(
all users have problem!
Contact your host to disable mod_security for your site.
Quote from: Stigmartyr on July 21, 2010, 09:14:35 PM
Quote from: Stigmartyr on July 21, 2010, 10:47:22 AM
Hello Folks! I just installed this awesome mod today. Seems to be working like a champ. There is only one issue. It seems when the bread crumb is rendered that it will output in text "��" where it should be a break between items like "/" before?
Here is a link to see what I mean: http://stangnation.com/open-frequency/test-drive-2011-mustang-gt-5-0/
What happened and/or how can I fix? :)
I fixed my own issue. Turns out the theme's index.template.php had some corrupted characters from editing it in the cpanel web interface. I scrolled to the linktree section of the code and found it.
However I am facing ANOTHER issue with the Facebook Like Mod (http://custom.simplemachines.org/mods/index.php?mod=2543). It used to be able to get it to print the entire post title to facebook when someone liked a topic. Now, it can't parse the thread title :( It just says: 'so and so' likes <website name>
I noticed that the url it's serving is like this too: http://stangnation.com/index.php?topic=10359layout%3D%22standard%22 (http://stangnation.com/index.php?topic=10359layout%3D%22standard%22)
It seems to append layout%3D%22standard%22 to the end of the topic ID and it's not able to parse whatever pretty url is dishing out?
I'm looking into it on the url mod side but I am kind of stabbing in the dark here. I pondered whether this was part of the .htaccess modifications or not.
You can see my facebook activity block here: http://stangnation.com (lower left hand corner)
All your help and advice is greatly appreciated!
re: issues with Pretty URL and Facebook like mod. I believe if someone who knows how the Pretty URL is calling the topic we can resolve the issue.
Here is the Facebook Like button code:
<!-- Facebook Like Button -->
<span style="float:right; margin-top:4px;">
<fb:like href=', $scripturl, '?topic=', $context['current_topic'], 'layout="standard" width="350" action="like" colorscheme="light" /></fb:like>
</span>
<!-- End of Facebook Like Button -->';
As you can see it was not written with Pretty URL in mind at the time. So when someone likes a topic it will read the topic as: http://www.stangnation.com/index.php?topic=layout%3D%22standard%22 (whereas layout%3D%22standard%22 is the bleed off from the Like button variable
'layout="standard").
I believe all that is needed here is some expert knowledge of how Pretty URL would call the topic instead so that it looked something like:
<!-- Facebook Like Button -->
<span style="float:right; margin-top:4px;">
<fb:like href=', $boardurl, '?topic=', $context['pretty']['board_title']['topic'], 'layout="standard" width="350" action="like" colorscheme="light" /></fb:like>
</span>
<!-- End of Facebook Like Button -->';
But the problem is that the ^above code I pieced together doesn't work. I'm just stabbing in the dark. Can someone help me with the correct calls? Pretty URL PLEASE? :D
Change
href=', $scripturl, '?topic=', $context['current_topic'], 'l
to
href="', $scripturl, '?topic=', $context['current_topic'], '" layout=
Quote from: vbgamer45 on July 22, 2010, 11:11:14 AM
Change
href=', $scripturl, '?topic=', $context['current_topic'], 'l
to
href="', $scripturl, '?topic=', $context['current_topic'], '" layout=
Thanks vbgamer! That worked :D :D
That FB code is bugged missing quotes + plus space
Quote from: vbgamer45 on July 22, 2010, 11:30:13 AM
That FB code is bugged missing quotes + plus space
Are you suggesting further edits then? Pardon my noobishness
No you are good to go
Quote from: vbgamer45 on July 22, 2010, 09:47:29 AM
Contact your host to disable mod_security for your site.
but previously, i could do it with the prettyURLs on..
It started happening suddenly..
So, it must be not host problem.
Hye guys, sorry for asking this coz I know someone maybe have ask the same thing, I tried to search within pages but couldn't find any. Just two questions:
1. Can this mod support RC2.0?
2. Is this mod increase our search result/ranking in search engines?
Thanks in advance..
Quote from: waruna on July 23, 2010, 02:21:59 AM
Hye guys, sorry for asking this coz I know someone maybe have ask the same thing, I tried to search within pages but couldn't find any. Just two questions:
1. Can this mod support RC2.0?
2. Is this mod increase our search result/ranking in search engines?
Thanks in advance..
I'm using it on rc3
Possible yes, but modern search engines are ok with common, not sef, urls
Quote from: Tair on July 23, 2010, 06:33:23 AM
I'm using it on rc3
Possible yes, but modern search engines are ok with common, not sef, urls
Thanks Tair. You mean this mod might not increase the search results?
Does anybody tried this mod on RC2? Because I have no idea how to upgrade the version even I follow the instruction given.
Quote from: waruna on July 23, 2010, 10:28:32 AM
Thanks Tair. You mean this mod might not increase the search results?
On the contrary, I think it might. I think the search engine will also search for urls and not only body. So it does increase a bit. That is why urls are also part of SEO.
Quote from: waruna on July 23, 2010, 10:28:32 AM
Quote from: Tair on July 23, 2010, 06:33:23 AM
I'm using it on rc3
Possible yes, but modern search engines are ok with common, not sef, urls
Thanks Tair. You mean this mod might not increase the search results?
Does anybody tried this mod on RC2? Because I have no idea how to upgrade the version even I follow the instruction given.
Tried it on RC2, worked fine.
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 23, 2010, 11:08:57 AM
Quote from: waruna on July 23, 2010, 10:28:32 AM
Thanks Tair. You mean this mod might not increase the search results?
On the contrary, I think it might. I think the search engine will also search for urls and not only body. So it does increase a bit. That is why urls are also part of SEO.
well - actually it depends on the language you use as i think.
Its fine if your board is english (as url also english). And it will possibly increase search results because url will looks like topic name (and written in the same language).
My board is russian - and as i found the results almost the same as without this mod (because search engine doesn't realize that all these cyrillic words somehow linked to this url in english characters).
Also as i already mentioned - modern search engines are completely fine with difficult urls (like smf uses)
Anyway i prefer to use this mod - because it's simplier to make strict structure of the website with it.
Quote from: waruna on July 23, 2010, 02:21:59 AM
2. Is this mod increase our search result/ranking in search engines?
No. There are unnecessary board name in topic urls. If board name removed in topic urls, SMF would be better search engine optimized.
Hey VBGamer, I've just searched the thread but can't find a response to this issue.
SMF v2.00 RC3, when trying to install PrettyURLS Extras, I get the following error...
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Any ideas?
Try to use emulate version for RC2
Quote from: vbgamer45 on July 25, 2010, 10:01:25 PM
Try to use emulate version for RC2
Sorry I don't understand what you mean?
Quote from: SergeantAsh on July 26, 2010, 04:25:26 AM
Quote from: vbgamer45 on July 25, 2010, 10:01:25 PM
Try to use emulate version for RC2
Sorry I don't understand what you mean?
when you uploaded package to your forum and after back to the list of packages (to install selected package) - at the bottom you'll see option to emulate versions of SMF.
Quote from: Tair on July 26, 2010, 07:32:16 AM
Quote from: SergeantAsh on July 26, 2010, 04:25:26 AM
Quote from: vbgamer45 on July 25, 2010, 10:01:25 PM
Try to use emulate version for RC2
Sorry I don't understand what you mean?
when you uploaded package to your forum and after back to the list of packages (to install selected package) - at the bottom you'll see option to emulate versions of SMF.
Ahhh, lovely thanks very much - I'll give this a try tonight :D
I'm helping a member get her RC3/Default forum squared away and this is a recurring error:
Undefined index: pretty_enable_filters
Referring to line 95 of Display.php
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
I've gleaned through her files and they're all parsed correctly, installed without error.
I wasn't sure if a string needed to be added to the globals?
I ran a search and located this question being asked, but haven't found a thread with an answer. :)
Is there any problem in converting the two Pretty URLs tables to InnoDB?
i wanna ask somthing here
i m using this mod since long
just one thing
if i have many pages on any of the board, it shows me on the first page, whenever i click on 2nd 3rd or any other page, it comes back to first page again.
Please guys
anybody helps me will appreciated.
cheers
Do you have a link to a topic that this occurs on? I haven't heard that reported before.
Quote from: ukhalik2 on July 23, 2010, 01:41:54 AM
Quote from: vbgamer45 on July 22, 2010, 09:47:29 AM
Contact your host to disable mod_security for your site.
but previously, i could do it with the prettyURLs on..
It started happening suddenly..
So, it must be not host problem.
bump, its not server problem :(
Why?
Quote from: blow on July 27, 2010, 07:02:04 PM
Is there any problem in converting the two Pretty URLs tables to InnoDB?
Bump, I think the answer to that question could be helpful to owners of large forums...
InnoDB can be a solution to boost performance. Is it all right if I convert "smf_pretty_urls_cache" and/or "smf_pretty_topic_urls" to InnoDB?
Got bit of a problem, one of my boards had two single quotes in it's name, when I tried to add a custom PrettyURL to the board config it wouldn't let me remove the old one (after making the new one Primary).
I have since renamed the actual board itself to remove the single quotes but I still cannot amend the PrettyURL config - I have run a maintenance run too but that hasn't fixed it.
I have been searching the DB for where the config for additional board pretty URLs is stored but can't find it - where are additional board P-URLs stored?
Hi there.
I'm getting this error
8: Undefined index: pretty_board_url_title
File: /home/pviagem/public_html/forum/Sources/ManageBoards.php
Line: 737
when I use the "Pretty URLs" option from Manage Boards area.
The Line 737 from ManageBoards.php has
$context['pretty']['board_title'] = $txt['pretty_board_url_title'] . (isset($boards[$board_id]) ? $boards[$board_id]['name'] : $txt['pretty_deleted_board'] . $board_id);
Any idea what is happening and how I can fix the problem?
Many thanks.
You're missing the language entries. Manually add them to Modifications.english.php.
Quote from: Dannii on July 30, 2010, 10:22:00 PM
You're missing the language entries. Manually add them to Modifications.english.php.
But following the MOD parser it seems that we only need to add
// Pretty URLs mod
$txt['pretty_urls'] = 'Pretty URLs';in the Modifications.english.php
I've the same line in my local language too.
I have run into a strange problem with this mod and I am hoping someone here would be able to help. I had configured a forum using Simple Machines at the URL http://ewell-epsom.co.uk When this was up and running I installed this mod which correctly formatted all the URLs.
However later I changed the forum URL to http://EpsomEwell.co.uk . I uninstalled the mod and reinstalled it thinking it will reformat my URLs to begin with http://EpsomEwell.co.uk however on reinstallation it simply picked up the old urls.
Is there a way for me to be able to force the mod to effectively go through the process completely and generate fresh Urls? Is there a cache somewhere?
Thanks!
Hello i have example board:
http://omniaforum.pl/gry/
http://omniaforum.pl/programy/
http://omniaforum.pl/antywirusy/
how change Title name ? now is
Gry
Programy
Antywirusy
how change to:
Omnia Gry
Omnia Programy
Omnia Antywirusy
Omnia+board name
Hi!
i have installed this mod on smf 2.0 RC3, its working fine, only thing is i have also installed wordpress in my website so it becomes http://cyber-wars.tk/blog, i can finely browse the blog, but one thing when i try to login as admin in wordpress it directly redirects me to my forum http://cyber-wars.tk. But once i disable pretty url this issue is no longer problem.
Please can anyone tell me how to fix this..
Check the troubleshooting topic you can add an exception in your .htacess file for blog
Mishandles apostrophes in board/category names. They should be stripped; instead, they are not, so the URL is hosed, and you can't remove entries.
This is upon installation on 1.1.11.
see i think this mod makes it look like more basic script
or am i just the odd one?
I don't understand
Subs-PrettyURLs.php, Line 63: add
$text = str_replace("'", "", $text);
$text = str_replace('"', '', $text);
ymmv, but it works for me.
now to track down where that faulty URL is stored...
(edit) found my faulty URL in the settings table, one of the pretty_* fields near the end. Wouldn't recommend an end-user try to manually edit; there are nuances to editing arrays stored in this fashion - but that's where it is, for whoever else was looking for it.
Now, to do something about these hard-coded text strings...
I noticed I am not receiving any 404 errors from my topics,
I contacted my support at they identified this Rewrite Rule as the culprit :
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
As I have people updating titles of post I really need for this to product proper error when the URL changes.
Can this be fixed? Is anyone else experiencing this?
I could be COMPLETELY wrong on this - and I think you're using SMF2, and I'm using SMF1? - but I think the mod stores all variations of URLs as they change, so things are still accessible. On 1.1.11, when I went into the, um, the boards setup, there was an option to change the PrettyURLs - and there I could add or delete or "make primary" the various URLs to the various boards and things. If that's the situation, you could go there and delete the URLs which you want to spawn 404 errors.
As I said, I am not at all certain that this is right, but you might want to go into your boards configuration and see if this is the situation just in case.
Quote from: call_me_nik on August 03, 2010, 06:39:31 AM
I have run into a strange problem with this mod and I am hoping someone here would be able to help. I had configured a forum using Simple Machines at the URL http://ewell-epsom.co.uk When this was up and running I installed this mod which correctly formatted all the URLs.
However later I changed the forum URL to http://EpsomEwell.co.uk . I uninstalled the mod and reinstalled it thinking it will reformat my URLs to begin with http://EpsomEwell.co.uk however on reinstallation it simply picked up the old urls.
Is there a way for me to be able to force the mod to effectively go through the process completely and generate fresh Urls? Is there a cache somewhere?
Thanks!
Can anyone help with this problem I had? Is the coder of pretty urls still interested in his work or what?
Quote from: call_me_nik on August 06, 2010, 11:34:02 AM
Quote from: call_me_nik on August 03, 2010, 06:39:31 AM
I have run into a strange problem with this mod and I am hoping someone here would be able to help. I had configured a forum using Simple Machines at the URL http://ewell-epsom.co.uk When this was up and running I installed this mod which correctly formatted all the URLs.
However later I changed the forum URL to http://EpsomEwell.co.uk . I uninstalled the mod and reinstalled it thinking it will reformat my URLs to begin with http://EpsomEwell.co.uk however on reinstallation it simply picked up the old urls.
Is there a way for me to be able to force the mod to effectively go through the process completely and generate fresh Urls? Is there a cache somewhere?
Thanks!
Can anyone help with this problem I had? Is the coder of pretty urls still interested in his work or what?
Solved this myself. In the table "smf_settings" you have to change the value for the field "pretty_root_url". Then install the mod and you are good to go!
Quote from: bjraines on August 06, 2010, 09:54:53 AM
I noticed I am not receiving any 404 errors from my topics,
I contacted my support at they identified this Rewrite Rule as the culprit :
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
As I have people updating titles of post I really need for this to product proper error when the URL changes.
Can this be fixed? Is anyone else experiencing this?
404 errors will not work since it rewrites all the urls since it checks if it is a topic or board title
Getting a
Undefined index: pretty_board_url_title
File: /home/vol3/byethost18.com/b18_6014782/htdocs/Sources/ManageBoards.php
Line: 737
In error log, but only in one theme I downloaded, (As Theme) In the Core theme/default theme no errors come up when I go to the mange boards, in the Admin CP
I also get an Undefined text multiple times in the Pretty URL's setting page, were it has the current version past version details (Again only in the As Theme am I getting this)
I am thinking they are related, Using 1.1.11..
How can I fix this issue?
Thanks Ryan.
Ok I was reading above, and it said that I should add it to the language entries in Modifications.english.php but my theme does not even have a language folder.. Do I just add the language folder, and copy the modifications.english.php from the default theme to my other theme?
Will that work?
The Theme I am using is As Theme.
and for 1.1.11
Thanks again,
Ryan
If no language folder in theme just copy to the default themes languages file
Ok, so I just checked the default/core theme and if I go to Boards in the Admin panel, and then click on pretty urls, I get the same error as I do in the other theme..
Undefined index: pretty_board_url_title
/htdocs/Sources/ManageBoards.php
Line: 737
So I guess it wasn't just one theme,
I also checked the modifactions.english.php in the default theme, and it has.
// Pretty URLs mod
$txt['pretty_urls'] = 'Pretty URLs';
Which seems right to me,
Any other suggestions?
Thanks,
Ryan
Try clearing your cache if you are on SMF 2.0 under forum maintenance
Hello,
I seem to be having some troubles with the seo4smf conversion. I don't know if I'm doing something wrong and I've been trying to find an answer without bugging you, but here it goes...
I recently upgraded to SMF v2 and instead of using the seo4smf, I'm using this Pretty URL mod. I love it, but my problem is the ability to redirect the old seo4smf links to the new Pretty ones. I have the latest versions and I've got the "extras" files installed, but it doesn't seem to do anything....can you please help! I don't want to lose the various links to my site scattered throughout the web....
thanks,
David
Nevermind, after some much digging and thinking and the like...I figured it out. Not too much documentation on this subject. Might consider putting some instructions about the extras zip file. It doesn't exactly install automatically.
1. Unzip
2. upload the install files in the directory with the SSI
3. manually go to the install.php file in the directory
4. go to the admin control panel for Pretty URLS and active the seo4smf conversion....
After doing that, worked flawlessly. Thanks for a great mod!
David
Quote from: vbgamer45 on August 06, 2010, 02:24:13 PM
Quote from: bjraines on August 06, 2010, 09:54:53 AM
I noticed I am not receiving any 404 errors from my topics,
I contacted my support at they identified this Rewrite Rule as the culprit :
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
As I have people updating titles of post I really need for this to product proper error when the URL changes.
Can this be fixed? Is anyone else experiencing this?
404 errors will not work since it rewrites all the urls since it checks if it is a topic or board title
do you think this should be fixed? the proper errors are essential for proper site indexing.
No plans to fix it. I don't think it can be fixed.
Quote from: vbgamer45 on August 08, 2010, 12:52:26 PM
Try clearing your cache if you are on SMF 2.0 under forum maintenance
Using 1.1.11 and I am still having this issue...
I have other MODs also they are:
Advanced Reputation System
SMF Sitemap
AutoKeywords
Hide Avatars from Guests
Pretty URLs
Google Analytics Code
Pretty URLs Extras
Change Report Text To Image
Googlebot & Spiders Mod
Again the error is
Undefined index: pretty_board_url_title
/htdocs/Sources/ManageBoards.php
Line: 737
I hope this helps,
Thanks again,
Ryan
I have some problems with pretty url
some pages of topics or profile member, they do not open, I have blank pages
and in the error log i have :
http://www.dimadimaraja.com/forum/index.php?pretty;board=les-matchs-du-raja;topic=ust-raja-ya-bismillah.15
Database Error: Illegal mix of collations for operation ' IN '
File: /home/site2455/web/www/forum/Sources/PrettyUrls-Filters.php
Ligne: 55
http://www.dimadimaraja.com/forum/index.php?pretty;action=profile;user=Rashid
Database Error: Illegal mix of collations for operation ' IN '
File : /home/site2455/web/www/forum/Sources/PrettyUrls-Filters.php
Ligne: 55
http://www.dimadimaraja.com/forum/index.php?pretty;board=actualites-et-discussions-sur-le-raja;topic=discussion-sur-le-raja-(infos-intox-commentaire)-22482.675
Database Error: Illegal mix of collations for operation ' IN '
File: /home/site2455/web/www/forum/Sources/PrettyUrls-Filters.php
Ligne: 55
any fix for that please ??
thx
You need to change the database collation type on the tables to the same most likely UTF8 for all of them and any of the columns too
I put the database and all tables to utf8_general_ci or utf8-bin, it's right ?
yup just make sure they are all the same
still having this issue...
Undefined index: pretty_board_url_title
/htdocs/Sources/ManageBoards.php
Line: 737
I am using the core or default theme.
I have checked both the ManageBoards.php, and modifactions.english.php
All have seem to have everything in place.
Any suggestions are welcomed.
Thanks again,
Ryan
Quote from: Ryan2320 on August 09, 2010, 02:35:47 PM
still having this issue...
Undefined index: pretty_board_url_title
/htdocs/Sources/ManageBoards.php
Line: 737
I am using the core or default theme.
I have checked both the ManageBoards.php, and modifactions.english.php
All have seem to have everything in place.
Any suggestions are welcomed.
Thanks again,
Ryan
Could you post the Line 737 of your ManageBoards.php ?
That is defined in PrettyUrls.english.php
Make sure it is in your default themes languages folder
Line 737 is
$context['pretty']['board_title'] = $txt['pretty_board_url_title'] . (isset($boards[$board_id]) ? $boards[$board_id]['name'] : $txt['pretty_deleted_board'] . $board_id);
At vbgamer45: So I also should have prettyurls.english.php in the default theme under the languages folder? I'll check and see if it is there..
Thanks
Ryan
Ok, I do have it in the languages folder, in the default theme
the code is:
<?php
// Version: 1.0; PrettyUrls
// Install chrome
$txt['pretty_chrome_install_title'] = 'Installing Pretty URLs';
$txt['pretty_install_success'] = 'Thank you for using <b>Pretty URLs</b>! The installation was a success!';
$txt['pretty_install_continue'] = 'Please continue to the admin page, where you can enable URL rewriting.';
// Admin chrome
$txt['pretty_chrome_title'] = 'Pretty URLs Administration';
$txt['pretty_chrome_menu_news'] = 'News';
$txt['pretty_chrome_menu_settings'] = 'Settings';
$txt['pretty_chrome_menu_maintenance'] = 'Maintenance';
// News page
$txt['pretty_chrome_caption_news'] = 'The latest news and information live from the project website';
$txt['pretty_chrome_page_title_news'] = 'Pretty URLs News & Info';
$txt['pretty_chrome_title_news'] = 'News & Info';
$txt['pretty_current_version'] = 'Current version';
$txt['pretty_download'] = 'Download';
$txt['pretty_latest_version'] = 'Latest version';
$txt['pretty_upgrade'] = 'Upgrade now!';
$txt['pretty_version'] = 'Version info';
// Settings page
$txt['pretty_cant_write_htaccess'] = 'Cannot overwrite existing .htaccess file. Please change its write permissions.';
$txt['pretty_chrome_caption_settings'] = 'Various settings';
$txt['pretty_chrome_page_title_settings'] = 'Pretty URLs Settings';
$txt['pretty_core_settings'] = 'Core settings';
$txt['pretty_enable'] = 'Enable URL rewriting';
$txt['pretty_filters'] = 'URL rewriting filters';
$txt['pretty_save'] = 'Save changes';
// Tests page
$txt['pretty_chrome_caption_tests'] = 'Before enabling URL rewriting, please check that these rewritten links work.';
// Maintenance page
$txt['pretty_chrome_caption_maintenance'] = 'Run some maintenance tasks';
$txt['pretty_chrome_page_title_maintenance'] = 'Pretty URLs Maintenance';
$txt['pretty_run_maintenance'] = 'Run maintenance tasks';
// Edit filters page
$txt['pretty_chrome_caption_filters'] = 'A tool to edit the filters array. The array is formatted here in the <a href="http://www.json.org/">JSON</a> format. Be careful, the JSON parser is rather strict.';
$txt['pretty_chrome_page_title_filters'] = 'Pretty URLs Filters Tool';
$txt['pretty_chrome_title_filters'] = 'Filters Tool';
$txt['pretty_no_json'] = 'The PHP JSON extension is required for this tool. Consider upgrading to PHP 5.2.';
// Board URLs interface
$txt['pretty_add_url'] = 'Add';
$txt['pretty_add_url_description'] = 'Add a URL. Note that what you enter here will be processed as only certain characters are allowed.';
$txt['pretty_board_url_title'] = 'Pretty URLs for: ';
$txt['pretty_deleted_board'] = 'Deleted board #';
$txt['pretty_duplicate_link'] = 'delete it first.';
$txt['pretty_duplicate_warning'] = 'That URL is already in use by another board. It will be available if you ';
$txt['pretty_make_primary'] = 'Make primary';
$txt['pretty_no_primary_warning'] = 'Warning, no primary URL!';
$txt['pretty_numerical'] = 'Sorry, but as that URL is either a number or the same as a forum action the board ID had to be added as a suffix.';
$txt['pretty_primary_url'] = 'Primary';
?>
That should be it then. That is where that line is called and where it is defined.
So, I should not be getting this error:
Undefined index: pretty_board_url_title
/htdocs/Sources/ManageBoards.php
Line: 737
... Hmm Interesting..
Also, I am guessing that this would have to be in the languages folder of other themes to make it work right?
And if there is no language folder, make one and put this php file in it.. I'm I right?
Thanks
Ryan
Quote from: Ryan2320 on August 09, 2010, 04:13:44 PM
So, I should not be getting this error:
Undefined index: pretty_board_url_title
/htdocs/Sources/ManageBoards.php
Line: 737
... Hmm Interesting..
Also, I am guessing that this would have to be in the languages folder of other themes to make it work right?
And if there is no language folder, make one and put this php file in it.. I'm I right?
Thanks
Ryan
Did you have the $txt definied in the globals of manage.boards?
Like this
// Interface to manage a board's Pretty URLs
function PrettyBoardUrls()
{
global $boards, $context, $modSettings, $scripturl, $smcFunc, $sourcedir, $txt;
This is what I have in the manageboards.php
// Interface to manage a board's Pretty URLs
function PrettyBoardUrls()
{
global $boards, $context, $db_prefix, $modSettings, $scripturl, $sourcedir, $txt;
So yes I do have the $txt defined in the globals by the looks of it..
I do have other mods installed, but I don't see anything wrong with the pretty url code, Also this error only hap pends in the the Admin section under manageboards and visually I don't see any errors..
Any other suggestions?
Thanks again,
Ryan
I would replace the $txt['ERRORNAME_PRETTYURLS'] with just the text instead if for some reason it is failing to load the language file.
Quote from: vbgamer45 on August 09, 2010, 05:16:15 PM
I would replace the $txt['ERRORNAME_PRETTYURLS'] with just the text instead if for some reason it is failing to load the language file.
Is that in manageboards.php, or some other .php file?
I'll look for it and try it out.
Thanks,
Ryan
That would be on /Sources/ManageBoards.php
Line: 737
Quote from: vbgamer45 on August 09, 2010, 10:30:57 PM
That would be on /Sources/ManageBoards.php
Line: 737
This is on line 737 in the ManageBoards.php
$context['pretty']['board_title'] = $txt['pretty_board_url_title'] . (isset($boards[$board_id]) ? $boards[$board_id]['name'] : $txt['pretty_deleted_board'] . $board_id);
I don't see
$txt['ERRORNAME_PRETTYURLS'] am I missing something?
Thanks again,
Ryan
Looking for $txt['pretty_board_url_title'] and replace that will the text form language file.
So replace, $txt['pretty_board_url_title'] with just $txt or $txt['ERRORNAME_PRETTYURLS'] ?
Sorry, I am misunderstanding...
Ok, so I replaced $txt['pretty_board_url_title'] with just $txt and I just checked and I believe my errors are gone!
Thank you so much!
This has been bothering me for awhile and I am glad that you found a solution!
Now by changing that, what did that exactly do, to the Pretty Url Mod?
Thanks again,
Ryan
Do not replace with just $txt put this instead 'Pretty URLs for: '
You are just skipping using the language file for that string
Ok,
So now I have this on Line 737:
$context['pretty']['board_title'] = 'Pretty URLs for: ' . (isset($boards[$board_id]) ? $boards[$board_id]['name'] : $txt['pretty_deleted_board'] . $board_id);
Does that work?
Thanks
Ryan
EDIT: Put the above code in the ManageBoards.php file and I am not getting any errors so far...
Thank you again..
Ok I have another very small issue with pretty URLs
I am trying to get it working on another theme, and so far everything is working except this one issue.
My issue deals with the Pretty URLs Administration panel. in the News section I see the latest and past news from pretty urls
but I am also getting this undefined text after the news.
Again I am using a different theme than the default one, and hope this is an easy fix...
Thanks for your continued support,
Ryan
it is possible to rewrite the urls again? how? truncate pretty tables?
thank you
Quote from: Ryan2320 on August 10, 2010, 12:08:07 AM
Ok I have another very small issue with pretty URLs
I am trying to get it working on another theme, and so far everything is working except this one issue.
My issue deals with the Pretty URLs Administration panel. in the News section I see the latest and past news from pretty urls
but I am also getting this undefined text after the news.
Again I am using a different theme than the default one, and hope this is an easy fix...
Thanks for your continued support,
Ryan
I think I narrowed it down, but I am not entirely sure,
This is the error I get from my browser and I am using a different theme than the default one..
Message: 'undefined' is null or not an object
Line: 63
Char: 4
Code: 0
URI: http://***/Themes/default/pretty/chrome.js
I looked at chrome.js and at line 63.. I don't know what to change..
I also loaded the same page (Admin Panel, then Pretty URLs link in the configuration sidebar) on the default theme and I received no error.
Thanks,
Ryan
Quote from: Ryan2320 on August 10, 2010, 10:00:57 AM
Quote from: Ryan2320 on August 10, 2010, 12:08:07 AM
Ok I have another very small issue with pretty URLs
I am trying to get it working on another theme, and so far everything is working except this one issue.
My issue deals with the Pretty URLs Administration panel. in the News section I see the latest and past news from pretty urls
but I am also getting this undefined text after the news.
Again I am using a different theme than the default one, and hope this is an easy fix...
Thanks for your continued support,
Ryan
I think I narrowed it down, but I am not entirely sure,
This is the error I get from my browser and I am using a different theme than the default one..
Message: 'undefined' is null or not an object
Line: 63
Char: 4
Code: 0
URI: http://***/Themes/default/pretty/chrome.js
I looked at chrome.js and at line 63.. I don't know what to change..
I also loaded the same page (Admin Panel, then Pretty URLs link in the configuration sidebar) on the default theme and I received no error.
Thanks,
Ryan
Still can't figure this one out, I am using a different theme (As Theme), and when I go to the Admin panel and click on the pretty URLs I get this undefined text in the news area.. (a lot of undefined text)
I am using SMF 1.1.11
Suggestions are welcomed,
Thanks
Ryan
Quote from: Am' on August 10, 2010, 04:01:42 AM
it is possible to rewrite the urls again? how? truncate pretty tables?
thank you
You could do that but that would hurt your existing search engine rankings...
is there any way to choose what actions you want to be fixed. For example, i have the arcade action which messes up if i have prettyurls on it, but the admin, profile, and everything else work. Is there a way to specify which ones you want to be switched over with prettyurls
So like actions to ignore not to prettify? I can do that as a setting. I had to do it recently for action = admin
Yah like that, because i run Smf Arcade, and it wont work when "prettified" because it needs the actions to submit the highscores. Whereas everything else works great and functions well.
Quote from: techsavy on August 16, 2010, 02:37:41 PM
Yah like that, because i run Smf Arcade, and it wont work when "prettified" because it needs the actions to submit the highscores. Whereas everything else works great and functions well.
New update!
+ Base: Added new setting to allowing skipping of actions for url rewriting.
vB:
Is it possible to change:
http://site.com/admin/?area=packages;b286e7b14f=c6d2d2be49a701b087729932c0c7db4c
to something like:
http://site.com/admin/packages/b286e7b14f=c6d2d2be49a701b087729932c0c7db4c
or even hide the session at the end?
The session is needed for that stuff since it has to check that url has a valid admin session and not a cross site scripted attack.
well could site.com/admin/?area=packages;4y54334897420934729 (blah)
be changed to:
site.com/admin/packages/343242743824732829432 (blah)
Maybe but I really don't see a point in rewriting internal urls that are not seen to search engines/public
It would be faster to me, i could OPEN a new tab, and type in:
http://www.site.com/admin/news/
OR
http://www.site.com/admin/boards/
etc...
twice as fast for me, and any others who would use this!
Quote from: vbgamer45 on August 16, 2010, 05:48:03 PM
Quote from: techsavy on August 16, 2010, 02:37:41 PM
Yah like that, because i run Smf Arcade, and it wont work when "prettified" because it needs the actions to submit the highscores. Whereas everything else works great and functions well.
New update!
+ Base: Added new setting to allowing skipping of actions for url rewriting.
Thankyou, that is exactly what i was looking for ;D
how update to latest version please ??
I belive just uninstall then install the latest version is the best bet.
Hi!
Thanks for this update! :)
Quote from: vbgamer45 on August 17, 2010, 09:02:10 AM
I belive just uninstall then install the latest version is the best bet.
Without deleting the tables "smf_pretty_urls_cache" and "smf_pretty_topic_urls"?
vB, did you get my PM? If I had .htaccess code my site should be fixed. Please, this is needed ASAP (if you add to first post others with same problem won't ask as likely)
Didn't see pm. What is the issue?
I sent one yesterday originally. I just deleted .htaccess for when cache mod did its thing. And renamed .htaccess.backup to .htaccess.
Also, if I have a wildcard dns record, is it possible instead of:
Site.com/forum/
Site.com/arcade (...)
To:
arcade.site.com
forum.site.com (...) ???
Did you get my response check the pretty urls troubleshooting page for a way to fix it.
Is it normal that when you rename a board the old name remains with the pretty urls?
Even through doing a maintenance run.
Yes it is so you do not loose your existing search engine rankings
Damn.
That's stupid.
For example I renamed my board "Tutorials" to "Resources".
It keeps using /tutorials instead of /resources .
Is it actually fixable?
You can change it under Manage Boards under Pretty Urls next to the board name
Aah I didn't catched that.
Works like a charm, thanks.
Glad that helped!
What is better? Simple SEF or this mod?
I can't say try both and find out.
I'm in trouble here.
I'm using Pretty URLs (on a SMF 2.0 RC3) and all the people that use Internet Explorer can't access any of the message editor pages of my forum (to create a new topic or a new reply or a new PM).
I didn't know it was an error related to PrettyURLs mod untill I uninstalled it and IE has stopped to crash. As you can see in this topic (http://www.simplemachines.org/community/index.php?topic=394870.0).
How to solve that?
How does it crash does the browser shutdown or the page does not work? Sample error log?
What's new in RC2? I use 1.0RC now. Must I change it?
Where is prettyurls-extras-1.0-RC.zip? I can not found it. Thanks
RC2 only added skip certain action feature for url rewrting.
Extras package can be found on the pretty urls site the mod site won't allow me to upload since it has a different package id.
Quote from: vbgamer45 on August 18, 2010, 03:40:51 PM
How does it crash does the browser shutdown or the page does not work? Sample error log?
When you click on the button to go to the reply screen it starts to load and even show the page title ("Post reply") on the browser window, but it suddenly crashes up (
"Internet Explorer has encountered a problem and needs to close"). Same at PM writing or post editing.
(Other browsers work fine.)
There's nothing in the forum log, but the server log shows this:
[Thu Aug 12 16:49:01 2010] [error] [client xxx.xx.xx.xxx] File does not exist: /home/mydomain/public_html/forum/forum, referer: http://www.mywebsite.com/forum/boardname/?action=post
"/forum/forum" is weird, it should be only "/forum".
What does your .htacess file look like?
This is my .htaccess:
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: August 18, 2010, 16:07
RewriteEngine on
RewriteBase /forum
# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(findmember|groups|help|downloads|helpadmin|im|jseditor|jsmodify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jsoption|lock|lockvoting|login|login2|logout|markasread|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(openidreturn|pm|post|post2|printpage|profile|quotefast|quickmod)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod2|recent|register|register2|related|reminder|removepoll|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reporttm|requestmembers|restoretopic|search|search2|sendtopic|sitemap|smstats)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(suggest|spellcheck|splittopics|stats|sticky|theme|trackip|about:mozilla)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(forum|portal|who|\.xml|xmlhttp)/?$ ./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]
# PRETTYURLS MOD ENDS
RewriteEngine on
RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml
Quote from: vbgamer45 on August 18, 2010, 02:26:58 PM
I can't say try both and find out.
This mod is better, but it have more bugs.
Bugs such as?
Quote from: blow on August 18, 2010, 07:31:47 PM
Quote from: vbgamer45 on August 18, 2010, 03:40:51 PM
How does it crash does the browser shutdown or the page does not work? Sample error log?
When you click on the button to go to the reply screen it starts to load and even show the page title ("Post reply") on the browser window, but it suddenly crashes up ("Internet Explorer has encountered a problem and needs to close"). Same at PM writing or post editing.
(Other browsers work fine.)
There's nothing in the forum log, but the server log shows this:
[Thu Aug 12 16:49:01 2010] [error] [client xxx.xx.xx.xxx] File does not exist: /home/mydomain/public_html/forum/forum, referer: http://www.mywebsite.com/forum/boardname/?action=post
"/forum/forum" is weird, it should be only "/forum".
@
vbgamer45:
If it helps, the PrettyURLs mod is also bugged on its admin panel: the "custom template" you made for the Pretty URLs page at "admin/?area=pretty" is not showing up (it's all like a simple plain text with the links).
Additionally, every time I activate Pretty URLs, the "Live from Simple Machines..." block at the "Administration Center" gets unaligned and the "Support Information" block goes down. When I uninstall the mod, all goes back to normality.
Maybe all those problems are interrelated...?
I would check the trouble shooting page and try reseting the url on the first topic.
With new version of pretty urls you can skip actions if you have them setup to prettied like admin
Quote from: vbgamer45 on August 19, 2010, 05:43:51 PM
I would check the trouble shooting page and try reseting the url on the first topic.
With new version of pretty urls you can skip actions if you have them setup to prettied like admin
Sorry, I didn't understand.
To change the topic's name which one must be empty database?
smf_pretty_topic_urls
smf_pretty_urls_cache
Most likely topic urls but you do not need to empty the entire thing
Thanks vbgamer45, what does it mean? The topic I can't open and gives a big error...
Database Error: Illegal mix of collations for operation ' IN '
SELECT url_id, replacement
FROM smf_pretty_urls_cache
The collations do not match for the tables. Check that they are all either utf8 in your case if you are using turkish
Quote from: vbgamer45 on August 19, 2010, 10:28:35 PM
The collations do not match for the tables. Check that they are all either utf8 in your case if you are using turkish
Fixed :) Thanks :)
Glad you got it working
I don't know how to set it up please help
i did read the instructions but they're not clear enough :/
Just intall via the package manager then follow the steps. Then goto pretty urls and turn it on and select what you want to use pretty urls on
the package manager in the Cpanel ?
No inside of SMF...
I'm very sorry but i uploaded the two folders
prettyurls-1-0RCb-SMF2RC2
and
prettyurls-extras-1.0-RC
now please give me the full link to install it : )
I'm not using the SMF forums
do i have to ? for making theses Pretty urls working ?
Yes you have to be using SMF in order to use Pretty Urls
Hi there, I love the feature of pretty urls but I would like the www. subdomain to be included in the urls after they have been rewritten. Can this be done with .htaccess?
Need http:// codfanatic .com/forum/black-ops-multiplayer-discussion/
to become http:// www. codfanatic .com/forum/black-ops-multiplayer-discussion/
It's only because I have my forum's url at http:// www. codfanatic .com/forum and there is a login problem when users are redirected to http:// codfanatic .com/forum
Thanks.
We are having big problems with these, my 2.0 site, it will not work at all.
Quote from: Groovystar on August 23, 2010, 06:13:12 PM
We are having big problems with these, my 2.0 site, it will not work at all.
How so explain?
QuoteHi there, I love the feature of pretty urls but I would like the www. subdomain to be included in the urls after they have been rewritten. Can this be done with .htaccess?
Need http:// codfanatic .com/forum/black-ops-multiplayer-discussion/
to become http:// www. codfanatic .com/forum/black-ops-multiplayer-discussion/
It's only because I have my forum's url at http:// www. codfanatic .com/forum and there is a login problem when users are redirected to http:// codfanatic .com/forum
Thanks.
Is there any way to help? Most appreciated.
You will need to change the pretty urls root
Go to
http://code.google.com/p/prettyurls/wiki/TroubleShooting
And follow
Links point to old domain after moving forum
Your main boardurl should be www.yourforum.com
Thanks for the quick reply, I followed the steps made a new php file in the same folder, opened it up in Firefox but what do I do now?
Just run it from the browser and that will be it. It will update your links based on whatever your boardurl is set to under Server Settings
Everything is working fine now. Thanks for your time and support. ;D
Glad you got it working!
Hi,
I just installed the Pretty URL and it worked fine with English board name/topic.
But I want to use the SEO URL with other language (Non-English) using UTF-8.
Could you please tell me How can I done that.
Thanks
Guys
check out this
http://dreamsmania.com/funny-pictures-and-jokes/
Try to go to page any other page. it wont work . it will com back to the page one.
Please help me sort out this thing
Regards
Hmm worked ok on my test site for pages. Is it just that board or all boards
Check trouble shooting page it is the third question down
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Getting an error when ever I try to announce topics with SMF 1.1.11, and the lastest version of Pretty URL
I am guessing it has to do with the Pretty URL mod,
http://informationtechsysforum.com/index.php?pretty;action=announce&sa=send
Unable to verify referring url. Please go back and try again.
Thanks for you help,
Ryan
Add admin,announce to your skip actions list inside pretty urls.
Thanks it worked,
Ryan
Glad that worked!
Hey vbgamer, what is the trick around apostrophe's? I have been getting some weird signs in pretty_board_lookup and pretty_board_urls. (been trying to compare Dani's change for a the output in one of the very old posts, didn't quite get it right even after that.)
It says in the database export, in notepad++ it says DC2 highlighted and in notepad, it gives me double headed arrows?
I did read in the topic that removing the apostrophe first, then installing the modification and then changing it back is the way it will work out. Isn't there an alternative?
I am thinking about removing the ' from board names when inserted in pretty urls this is a known bug that is on my fix list to do.
Well, any fix that is proposed? anything that can be done via the database entries?
I found this bit: http://www.simplemachines.org/community/index.php?topic=146969.msg1236738#msg1236738
Although never understood what changed in there.
That is a serialized data for php check out serialize and unserialize functions. Manual editing not recommend unless you understand how it works and how the data is encoded.
I am using this mod along with the view single post (http://custom.simplemachines.org/mods/index.php?mod=541) mod, which allows you to view only a single post. That mod is compatible with the Pretty URL mod, but the rewritten URL is not very 'pretty'. Here is an example of a working, rewritten single post: /board/topic/?msg=92289. That URL would normally look like this (without Pretty URLs): /index.php?topic=123.0;msg=92289
I would like to add a rewrite rule to my .htaccess, but I'm not sure how to structure it. Could someone offer assistance please?
It took me half a day to figure this out and I thought I could give other the chance to spare that time on something more useful :)
Here's the idea: I found a dozen of solutions to the problem of making SMF work on Nginx + PrettyURL but _none_ worked (fully) for me so after a lot of struggle I figured out a solution that works for me and hopefully for others as well.
I use version 1.1.11 of SMF
The idea is to add in the host configuration these lines
if (!-e $request_filename)
{
# Rules for: profiles
rewrite ^/forum/profile/([^/]+)/?$ "/forum/index.php?pretty;action=profile;user=$1" last;
# Rules for: actions
rewrite ^/forum/(activate|admin|ads|announce|attachapprove|ban|boardrecount|buddy|calendar|clock)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(collapse|convertentities|coppa|credits|deletemsg|detailedversion|display|dlattach|editpoll|editpoll2)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(emailuser|featuresettings|findmember|groups|help|helpadmin|im|jseditor|jsmodify)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(jsoption|lock|lockvoting|login|login2|logout|manageboards|managecalendar|managesearch|manageattachments|maintain|markasread|mascot)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(membergroups|mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|news|notify)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(notifyboard|optimizetables|openidreturn|packages|permissions|pm|post|postsettings|post2|printpage|profile|quotefast)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(quickmod|quickmod2|recent|regcenter|register|register2|reminder|removepoll|removetopic2)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(repairboards|reporttm|requestmembers|restoretopic|reports|search|search2|sendtopic|serversettings|smileys|smstats|suggest)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(spellcheck|splittopics|stats|sticky|theme|trackip|about:mozilla|about:unknown)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(unread|unreadreplies|verificationcode|viewErrorLog|viewmembers|viewprofile|vote|viewquery|viewsmfile|who)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(\.xml|xmlhttp)/?$ "/forum/index.php?pretty;action=$1" last;
# Rules for: boards
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/?$ "/forum/index.php?pretty;board=$1.0" last;
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ "/forum/index.php?pretty;board=$1.$2" last;
# Rules for: topics
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ "/forum/index.php?pretty;board=$1;topic=$2.0" last;
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ "/forum/index.php?pretty;board=$1;topic=$2.$3" last;
rewrite ^/(.*)$ /index.php?params=$1 last;
}
I have a website and i switched from one domain to another. EVERYTIME i go to use prettyurls it only uses the last domain name and does not update it to the new
you can see here at
www.techied.net/index.php
Hello and thanks for this excellent mod!
I'd like to know if there is a way to eliminate certain symbols (!,*, etc.) from the URLs by default. For instance, instead
http://mysite.com/audio/1986-04-25-london-(flac)/
just
http://mysite.com/audio/1986-04-25-london-flac/
Cheers!
what is the latest version of Pretty UrLs? is it still applicable now? thanks thanks
Quote from: lastminute on September 03, 2010, 06:08:27 AM
what is the latest version of Pretty UrLs? is it still applicable now? thanks thanks
Yes it still works with the latest beta RC3 of SMF 2.
Author, is it possible to disable this mod for curve mobile and smf4iphone so i dont have to uninstall/reinstall and unselect code from smf4iphone/curve mobile...
I am setting up another board (2.0 RC3) and on a clean install, this will load fine. But after I load simple portal this errors out in the package manager. If I load this first then simple portal errors out.
The package manager has an issue in subs.php
Doing a quick compare of the code I have and the code it wants to find (using the parser), I found that my code (part of it) is
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic|page)
And the code it wants to load is
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)
Notice how there is "page" (no quotes) after "topic", (there is two different occurrences), and causes the errors.
What do you recommend vbagmer?
Proceed with the install and change the code to
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic|page)
Quote from: dsanchez on September 03, 2010, 05:26:06 AM
Hello and thanks for this excellent mod!
I'd like to know if there is a way to eliminate certain symbols (!,*, etc.) from the URLs by default. For instance, instead
http://mysite.com/audio/1986-04-25-london-(flac)/
just
http://mysite.com/audio/1986-04-25-london-flac/
Cheers!
anyone?
There isn't any built in way you would have to modify the code to strip those out.
Quote from: vbgamer45 on September 05, 2010, 10:12:31 AM
Proceed with the install and change the code to
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic|page)
Ok, didn't know if it wasn't safe or not.
I modified the install package to include it, do you want me to attach it?
No that is ok. SP adds |page to that query so I can search for that too I guess.
Huge overload of errors seen here:
http://www.simplemachines.org/community/index.php?topic=399571.0
i have shown them here in this thread. I need help badly with this. How do I fix it?
Just posted an update see if that fixes it.
Okay! We also have more problems like when I put the links into a page they won't work, sometimes they go only to the board that the topic is on or sometimes even the WRONG topic entirely.
Where do I go to find this update and how do I install it? I don't see a link to a new patch or anything.
Just download the latest version from the modsite uninstall old install new version
Wait would that reset all the pretty URL board names that I took hours to redo just to make them not return an error and make it so the boards could be acccessed? I also manually optimised them, over 400 boards.
I need to be 100% certain that all those hours of manual work won't be lost.
All the data is safe in the database not removed on uninstall.
Okay there's another problem that I didn't have before but have now, the boards' names are not showing up, all that shows is a number. Like this:
http://warriorcatsrpg.com/54/
The board's name is fan art and fan fiction. Shouldn't that be showing up in the URL?
Edit:
Check recheck the board urls/topic links under pretty urls settings and see if that helps and saves
73: // The central part of the board - topic display.
74: function Display()
75: {
76:
global $scripturl, $txt, $modSettings, $context, $settings;
77:
global $options, $sourcedir, $user_info, $board_info, $topic, $board;
78:
global $attachments, $messages_request, $topicinfo, $language, $smcFunc;
79:
80:
// What are you gonna display if these are empty?!
81:
if (empty($topic))
82:
fatal_lang_error('no_board', false);
83:
84:
//
301 redirects
==>85:
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
86:
{
87:
$filterData = unserialize($modSettings['pretty_filters']);
88:
if ($filterData['topics']['enabled'])
89:
{
90:
$url = 'topic=' . $topic . '.' . (isset($_REQUEST['start']) ? $_REQUEST['start'] : '0') . (isset($_REQUEST['prev_next']) ? ';prev_next=' . $_REQUEST['prev_next'] : '') . (isset($_REQUEST['topicseen']) ? ';topicseen' : '') . (isset($_REQUEST['all']) ? ';all' : '') . (isset($_REQUEST['viewResults']) ? ';viewResults' : '');
91:
header('HTTP/1.1 301 Moved Permanently');
92:
redirectexit($url, false);
93:
}
94:
}
95:
96:
// Load the proper template and/or sub template.
97:
if (WIRELESS)
98:
$context['sub_template'] = WIRELESS_PROTOCOL . '_display';
99:
else
100:
loadTemplate('Display');
101:
102:
// Not only does a prefetch make things slower for the server, but it makes it impossible to know if they read it.
103:
if (isset($_SERVER['HTTP_X_MOZ']) && $_SERVER['HTTP_X_MOZ'] == 'prefetch')
104:
{
105:
ob_end_clean();
Line 85 is giving us the errors. some places can't be accessed - some stuff doesn't work. Please help.
File: /home/warrior/public_html/Sources/Display.php
What error are you getting?
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
[email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
In our error logs, it tells us that file and line 85 is what's causing it. It happens randomly in some places, some threads and some boards. It also happens with our admin > packages.
Sounds like a mod_security or permissions issue on the forum. If you have mod_security I would disable it.
Where would I check for a mod_security?
ask your web host about that :)
First of all congrats for this useful mod which I'm using for 1+ year now.
I'm experiencing problems with pretty urls only in the last days.
The problem:
Without do anything, change nothing... and I mean nothing by a day to another index.php of my forum turned into a blank page after login. I managed to gain access to my admin area via manual url, and disabling pretty urls I "fixed" the problem.
Since I already had the will to make a new fresh and clean istallation of my forum I get that occasion as good reason to do that.
I backup'd the DB, erased all files on server and reistalled SMF RC 3 from scratch, imported the old database and reistalled the plugins I was used, pretty urls (last versione) included.
ALL worked fine, pretty perfect as it needs to be, no errors at all... except only one sub-board give me and my users the same blank page I mentioned before, instead of visualizing contents. My forum is counting around 100 boards and sub-boards, just this one doesn't works, all others do. The one won't work doesn't contains any strange or special symbols, just standard text and numbers as many others which are actually working, also it is an old sub-board we're using in the last year with the same (pretty) url. I dunno how to fix that and I find it very strange since I'm using SMF + pretty urls for more that a year now and neva had such problems, now randomly they're appearing from nowhere in the last days.
Resume: All forum boards works with SMF RC3+ Pretty urls last version except ONE sub-boards... which contains other sub-boards actually working if accessed via direct url O_o
It is a private area, so access to it should be granted only to a group... and yes I checked the permissions already and they're all ok as they was in the last year. I din't changed the url of that category nor moved it.
Looks like an x-files to me.
Please help some of my users are hating me for that ^__^
(I can give you the forum urls via pm, I prefer don't publish them here... it's just a videogames forus, nothing nasty, bu I just prefer keep it not public)
P.S.
Obviously disabling pretty urls all boards works, this one we're talking about included.
What is the sub board url/title that is not working.
Quote from: vbgamer45 on September 05, 2010, 01:59:44 PM
There isn't any built in way you would have to modify the code to strip those out.
thank you. do you know where in the code I have to modify those? It's in the PrettyUrls-Filters.php file? Thank you.
No, Subs-PrettyUrls.php.
Quote from: Dannii on June 10, 2008, 02:45:03 PM
Just add this below the other truncate query in Subs-PrettyUrls.php
db_query("
TRUNCATE TABLE {$db_prefix}pretty_topic_urls", __FILE__, __LINE__);
Added after
// Clear the URLs cache
$smcFunc['db_query']('truncate_table', "
TRUNCATE {db_prefix}pretty_urls_cache");
takes no effect ::)
Using SMF 2.0 RC3
Board name (eg. before rename: TEST CATEGORY and the link is: http://example.com/forums/test-category / and after rename: TESTING CATEGORY url still showing old board name)
Quote from: Dannii on September 08, 2010, 08:42:20 PM
No, Subs-PrettyUrls.php.
Done! Just put away the (, ), * symbols :)
Do you know if it's possible to re-build the urls?
Quote from: BeCometA on September 09, 2010, 05:42:55 AM
Board name (eg. before rename: TEST CATEGORY and the link is: http://example.com/forums/test-category / and after rename: TESTING CATEGORY url still showing old board name)
do you mean boards? because I think categorys don't get /category-name/ form ? ??
Yes, my bad :)
Any solution?
That's really a great "bug", I mean, if you have a board with the name "my google board", it get indexed by google, if you change the name this indexation will be lost!!!
But! you can add another pretty url name in Administration -> themes and design -> boards
In the rigth of the board you will see a "Pretty URLs" link, inside you can add a new url, and make it the primary url.
I recommend you to NOT erase the older url, just add the new one and make it primary.
I know it, but anyway, i have to change this :)
Where's this menu?
Cannot find 'em :o
admin;area=theme;sa=settings
?
Is the board menu, where you create boards, in my case is http://www.forosperuanos.net/admin/?area=manageboards (using pretty urls)
You will see a list of your boards, and four link at the right, the last one says "Pretty Url"
I'll saw only 3 link's and the last one (third) is Settings, weird o_o
Pretty's was installed today.
//
I'll check'd it manually by parsing modification.
Anyway, everythings looks fine, but when i'll go to action=admin;area=manageboards;sa=pretty
there's no board list, just form text which informing me to add an url, but how it works?
It show me blank board id 0, wth.
Sorry for quality of attach ;D
//
Added my source and template file.
//
Thx for exam, my english we're poor too ;D
ehmm the second part i didn't understand xD
But that image in your attachment is the place where you have to enter the new url.
If you have "test" works like wxw.myforum/test/
Then you change the name to "test-of-pretty" for use wxw.myforum.com/test-of-pretty/
You have to ADD test-of-pretty.
Then make it primary but without delete the other url (so users or google that have save this route still be able to use it)
my english sucks :P
Quote from: Nibirusoon on September 08, 2010, 06:29:13 AM
...
Resume: All forum boards works with SMF RC3+ Pretty urls last version except ONE sub-boards... which contains other sub-boards actually working if accessed via direct url O_o
P.S.
Obviously disabling pretty urls all boards works, this one we're talking about included.
...
Ok I fixed it but it sounds still very odd to me.
Inside that undisplayed section there was a thread titled in this way: "title", actually removing the " " from the title worked and now the entire section is diplaying correctly with no more blank page.
Dunno why a post inside a section can affect the entire section... :S
I'm sorry for my noobness but how can I exclude some symbols for being used in topic titles ? I'm in need to block users to post more " " titles.
I'm using hostgator if this can help you someway now or in future, all worked fine until some days ago... I guess they changed some security things recently.
Quote from: dsanchez on September 09, 2010, 06:02:59 AM
Do you know if it's possible to re-build the urls?
Anyone?
I have ran maintenance in pretty url's and have reinstalled the modification completely by dropping the database tables. It still give me the board numbers instead of the names".
Quote from: Groovystar on September 07, 2010, 07:37:47 PMOkay there's another problem that I didn't have before but have now, the boards' names are not showing up, all that shows is a number. Like this: http://warriorcatsrpg.com/54/ The board's name is fan art and fan fiction. Shouldn't that be showing up in the URL?
Filter for GoogleTagged mod:
// Pretty URLs for GoogleTagged
function pretty_googletagged_filter($urls)
{
global $boardurl, $scripturl;
$pattern = '`' . $scripturl . '(.*)action=tagged;id=([.0-9]+);tag=([^;]+)`S';
$replacement = $boardurl . '/tagged/$2/$3/';
foreach ($urls as $url_id => $url)
{
if (!isset($url['replacement']))
{
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
}
}
return $urls;
}
// Pretty URLs for GoogleTagged
$prettyFilters['googletagged'] = array(
"description" => "GoogleTagged",
"enabled" => 0,
"filter" => array(
"priority" => 39,
"callback" => "pretty_googletagged_filter"
),
"rewrite" => array(
"priority" => 39,
"rule" => "RewriteRule ^tagged/([0-9]*)/([^/]+)/?$ ./index.php?action=tagged;id=$1;tag=$2 [L,QSA]"
),
"title" => 'GoogleTagged Pretty URLs Filter'
);
Thanks to Daydreamer (http://www.simplemachines.org/community/index.php?action=profile;u=124605) for his helps on .htaccess :P
Quote from: Yağız... on September 12, 2010, 12:15:31 PM
Filter for GoogleTagged mod:
// Pretty URLs for GoogleTagged
function pretty_googletagged_filter($urls)
{
global $boardurl, $scripturl;
$pattern = '`' . $scripturl . '(.*)action=tagged;id=([.0-9]+);tag=([^;]+)`S';
$replacement = $boardurl . '/tagged/$2/$3/';
foreach ($urls as $url_id => $url)
{
if (!isset($url['replacement']))
{
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
}
}
return $urls;
}
// Pretty URLs for GoogleTagged
$prettyFilters['googletagged'] = array(
"description" => "GoogleTagged",
"enabled" => 0,
"filter" => array(
"priority" => 39,
"callback" => "pretty_googletagged_filter"
),
"rewrite" => array(
"priority" => 39,
"rule" => "RewriteRule ^tagged/([0-9]*)/([^/]+)/?$ ./index.php?action=tagged;id=$1;tag=$2 [L,QSA]"
),
"title" => 'GoogleTagged Pretty URLs Filter'
);
Thanks to Daydreamer (http://www.simplemachines.org/community/index.php?action=profile;u=124605) for his helps on .htaccess :P
In witch file do I have to make that change? thanks!
Install attached file via the Package Manager.
Yağız... is ok if I can include with pretty urls extra package I think it will be helpful
Quote from: vbgamer45 on September 12, 2010, 01:47:59 PM
Yağız... is ok if I can include with pretty urls extra package I think it will be helpful
Yeah, that's why I gave you the codes :P I made the package for only-googletagged users :)
Awesome added them to Pretty Urls extras
Quote from: Vandaahl on August 27, 2010, 08:48:52 AM
I am using this mod along with the view single post (http://custom.simplemachines.org/mods/index.php?mod=541) mod, which allows you to view only a single post. That mod is compatible with the Pretty URL mod, but the rewritten URL is not very 'pretty'. Here is an example of a working, rewritten single post: /board/topic/?msg=92289. That URL would normally look like this (without Pretty URLs): /index.php?topic=123.0;msg=92289
I would like to add a rewrite rule to my .htaccess, but I'm not sure how to structure it. Could someone offer assistance please?
Can anyone help with this?
Quote from: Vandaahl on September 13, 2010, 07:43:36 AM
Quote from: Vandaahl on August 27, 2010, 08:48:52 AM
I am using this mod along with the view single post (http://custom.simplemachines.org/mods/index.php?mod=541) mod, which allows you to view only a single post. That mod is compatible with the Pretty URL mod, but the rewritten URL is not very 'pretty'. Here is an example of a working, rewritten single post: /board/topic/?msg=92289. That URL would normally look like this (without Pretty URLs): /index.php?topic=123.0;msg=92289
I would like to add a rewrite rule to my .htaccess, but I'm not sure how to structure it. Could someone offer assistance please?
Can anyone help with this?
Do you have Pretty Extras? mmm I never make any change and it work fine in my forum ie: http://www.forosperuanos.net/chicas-hot/claudia-abusada-chica-21/?msg=74347
Quote from: distante on September 13, 2010, 02:05:17 PM
Do you have Pretty Extras? mmm I never make any change and it work fine in my forum ie: http://www.forosperuanos.net/chicas-hot/claudia-abusada-chica-21/?msg=74347
Yes that is what it looks like on my board too. But the thing is, I don't like the question mark near the end (?msg=74347). It would be better (in my opinion) if it looked like #msg74347 for example.
Here's an example of my forum: http://www.cinema-extreme.com/forum/horror/daybreakers-%282010%29/15/?msg=105630
Can anyone help me with the below issue, I'm getting the below error for the below line of code, can't figure it out??
Quote8: Undefined index: board
File: ~/forum/Sources/Display.php
Line: 85
Line 85:
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Quote from: Vandaahl on September 13, 2010, 03:19:11 PM
Quote from: distante on September 13, 2010, 02:05:17 PM
Do you have Pretty Extras? mmm I never make any change and it work fine in my forum ie: http://www.forosperuanos.net/chicas-hot/claudia-abusada-chica-21/?msg=74347
Yes that is what it looks like on my board too. But the thing is, I don't like the question mark near the end (?msg=74347). It would be better (in my opinion) if it looked like #msg74347 for example.
Here's an example of my forum: http://www.cinema-extreme.com/forum/horror/daybreakers-%282010%29/15/?msg=105630
Sorry, but that's how SMF works... it needs the ?msg to pinpoint where you're up to in each thread. But as SMF 2 supports the canonical meta tag, it doesn't matter.
After making a post on my forum I get the following:-
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing to accept
cookies.
What does the url look like? Can you post it what it is redirecting to?
So... quick question... I changed my URL and with pretty URL's enabled, it dumps you back to homepage if you click reply, modify, etc.
However, if I disable it, it works fine.
Everything else seems to work...
If you changed your url you will need to update pretty urls follow
http://code.google.com/p/prettyurls/
I have a problem with this mod, i installed it and all is ok. But when i go to a topic it automaticly log out and i can not make a replay or something when i log in again it automaticly logs me out. Please help. Sorry for bad english
I m using smf 1.1.1
Quote from: vbgamer45 on July 21, 2010, 09:12:25 AM
That's how it is supposed to be so you don't loose your search rankings.
I think if a topic's title is changed, the URL should change too. For instance, many times an user write a poorly descriptive topic, and we have to change it for a more specific one.
Excellent mod and thanks...
The only problem I am having with this once installed is that some members are reporting that it flags proxy servers at work. I dont know whats causing this and only happens on specific items like when trying to logout, when collapsing a category, etc...
Any ideas?
What do you mean by flaging proxy servers what does it do?
Enables a fault on proxy under the category games for example. When there should be none.. Not in arcade, simply trying to logout from main forum page...
Smf RC3
http://lifeofthecity.com/loc
Quote from: rapid4 on September 19, 2010, 12:30:54 PM
I have a problem with this mod, i installed it and all is ok. But when i go to a topic it automaticly log out and i can not make a replay or something when i log in again it automaticly logs me out. Please help. Sorry for bad english
I m using smf 1.1.1
Please help
Quote from: rapid4 on September 20, 2010, 11:33:49 AM
Quote from: rapid4 on September 19, 2010, 12:30:54 PM
I have a problem with this mod, i installed it and all is ok. But when i go to a topic it automaticly log out and i can not make a replay or something when i log in again it automaticly logs me out. Please help. Sorry for bad english
I m using smf 1.1.1
Please help
Looks like you have bad pretty urls root could happen if you changed your domain
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Check out Links point to old domain after moving forum
Quote from: ziycon on September 15, 2010, 02:15:11 PM
Can anyone help me with the below issue, I'm getting the below error for the below line of code, can't figure it out??
Quote8: Undefined index: board
File: ~/forum/Sources/Display.php
Line: 85
Line 85:
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Any ideas, really need to fix this as its causing problems with users viewing posts??
Quote from: vbgamer45 on September 20, 2010, 11:41:01 AM
Quote from: rapid4 on September 20, 2010, 11:33:49 AM
Quote from: rapid4 on September 19, 2010, 12:30:54 PM
I have a problem with this mod, i installed it and all is ok. But when i go to a topic it automaticly log out and i can not make a replay or something when i log in again it automaticly logs me out. Please help. Sorry for bad english
I m using smf 1.1.1
Please help
Looks like you have bad pretty urls root could happen if you changed your domain
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Check out Links point to old domain after moving forum
Tnx for repley
I have no old domain thats my domain for begining
I'm using the pretty url's 1.0RC.
i've changed my Forum url from ipool.uni.cc to i p o o l . t k using the repair_settings.php file. All the pages are updated to the new domain BUT THERE IS NO EFFECT ON BOARDs AND TOPICs URLs
pl.help..
I'm also using the
sitemap mod,
ad management mod,
Aeva Media,
PM to New Members,
EDIT: PROBLEM SOLVED :) Ref: http://code.google.com/p/prettyurls/wiki/TroubleShooting
Hello Friends,
I had installed pretty urls mod in my website. Now the problem is that the pretty urls are working perfectly fine. But while modifying the topics. It redirect to the old url and the page is not found. See the example below and please help me out from this.
Pretty Urls
http://www.technologieshelp.co.cc/sports-news/how-to-buy-commonwealth-games-2010-delhi-tickets/ (http://www.technologieshelp.co.cc/sports-news/how-to-buy-commonwealth-games-2010-delhi-tickets/)
Url after modifying the topics.
http://www.technologieshelp.co.cc/index.php/topic,26.msg30.html#msg30 (http://www.technologieshelp.co.cc/index.php/topic,26.msg30.html#msg30)
Hope you have understood what i mean to ask.
Looks ok. If you are redirect to that page every modifying the topic you are fine.
Since the page itself has links to the prettied topic and the redirect you are seeing is internal only
Quote from: ziycon on September 20, 2010, 01:36:09 PM
Quote from: ziycon on September 15, 2010, 02:15:11 PM
Can anyone help me with the below issue, I'm getting the below error for the below line of code, can't figure it out??
Quote8: Undefined index: board
File: ~/forum/Sources/Display.php
Line: 85
Line 85:
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Any ideas, really need to fix this as its causing problems with users viewing posts??
Check that all the changes the mod makes were made correctly, especially to QueryString.php
Quote from: vbgamer45 on September 23, 2010, 11:51:06 AM
Looks ok. If you are redirect to that page every modifying the topic you are fine.
Since the page itself has links to the prettied topic and the redirect you are seeing is internal only
Hi, Thanks for replying but Can you tell me how to redirect the links ?
Hello guys,
I have the gallery 2 software installed in my SMF root folder under the directory "gallery"
The problem is that when I write the path for this gallery (i.e. http://curefans.com/gallery) I get in return http://curefans.com/gallery/?pretty;board=gallery.0 In other words, I can't acces the gallery because the mod transform the URL. How can I solve this? Thank you.
Check the last topic on the troubleshooting page.
Hi!
I've a small problem.
I've try to put this (in source) in my smf:
<!-- ' , $story['href'] , ' = <a href="' , $story['href'] , '">test</a> -->
and it generate this outpout:
<!-- http://www.darkwolf.it/index.php?topic=797.0 = <a href="http://www.darkwolf.it/news-board/risposta-a-coloro-che-spesso-mi-chiedono-perche-non-te-ne-vai-da-altervista/">test</a> -->
How i can obtain "prettyurl" without using href?
Quote from: vbgamer45 on September 25, 2010, 02:01:22 AM
Check the last topic on the troubleshooting page.
thank you! that solved the problem :)
Hi Anyone of you help me in this.
Quote from: chinu_491985 on September 23, 2010, 08:30:57 AM
Hello Friends,
I had installed pretty urls mod in my website. Now the problem is that the pretty urls are working perfectly fine. But while modifying the topics. It redirect to the old url and the page is not found. See the example below and please help me out from this.
Pretty Urls
http://www.technologieshelp.co.cc/sports-news/how-to-buy-commonwealth-games-2010-delhi-tickets/ (http://www.technologieshelp.co.cc/sports-news/how-to-buy-commonwealth-games-2010-delhi-tickets/)
Url after modifying the topics.
http://www.technologieshelp.co.cc/index.php/topic,26.msg30.html#msg30 (http://www.technologieshelp.co.cc/index.php/topic,26.msg30.html#msg30)
Hope you have understood what i mean to ask.
I am not getting. What to do ?
You don't have to do anything. It would only matter if that link is visible like you can see it on the board itself
@vbgamer45: any info to fix my problem? :/
You would need to modify the code or do a lookup to find it. Pretty urls only scans the page for href
Please, can you make me an example (i need it to make a fix with facebook LikeIt in tinyportal homepage) :)
I have a problem with apostrophe / simple quote ( ' ) in the name of Boards : Firefox can open the page.
Boards without ' => ok
Boards with ' => not ok
Example : http://forum-droit-social.fr/l'espace-du-droit-social/ (http://forum-droit-social.fr/l'espace-du-droit-social/)
I use Pretty URLs 1.0RC2 with SMF 2.0 RC3
vivien: more time ago i've put this patch in Subs-PrettyUrls.php to remove some special chars from url:
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),
in:
/* '!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),*/
Tanks a lot. That work well.
I am getting 404 error when clicking a a topic. So I made a php file with the code provided and uploaded it to the same place as SSI.php But while visit the file via a browser I am getting this error
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/mycpanelusername/public_html/new.php on line 2
Parse error: syntax error, unexpected T_STRING in /home/mycpanelusername/public_html/new.php on line 2
PS I have changed my real cpanel username to " mycpanelusername " in the above code
Please help.
Regards
Praveer
Please post the code of that file.
<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_enable_filters' => '0'));
?>
Ok now. I was wrong. I am not getting a 404 error but after activating the plugin I get this :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi52.tinypic.com%2Fapgq4k.png&hash=d6b8d34657c6bb20249df4fb2f6722214feba6cc)
I installed SimpleSEF mod after deactivating this plugin and then I activated SimpleSEF and then I uninstalled it and again enabled Pretty URLs and after this, I started geeting the link broken error.
And also when I activate the plugin I get 2 slashes in the URL and when deactivated it back to normal i.e 1 slash
Please help.
Regards
Praveer
Follow the trouble shooting page. You need to update pretty_root_url.
Theres no such troubleshoot explanation.
EDIT : Got it. Trying now.
URL is appearing like this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi55.tinypic.com%2F10ek8xe.png&hash=21886de38c70158731f45e52e281722fb699ab3c)
Is it correct as it should appear with Pretty URLs?
You also obviously didn't read the requirement on the first page/mod page/google code site to post full URLs. But from what I can tell from your silly image it looks fine.
Hi, its not a silly image and the URL is complete. The blurred out part is my site's name which, at this moment, I dont want to disclose.
And yes I have read the requirements but as mentioned above, have blurred some portions because I dont want to disclose my site's name at the moment.
Thanks for answering my question.
Praveer
If you don't want to disclose your site's URL then please go elsewhere for support.
I don't want arguments regarding this nor am I arguing. I wrote that at the moment I do not want to disclose my site as its not yet fully complete. And I did posted the picture of the URL and its more than sufficient to make it clear to anyone. And it was too not a major problem. It was just a small question which was that whether the URL is the way it should be with Pretty URL.
I hope you understand and please don't take it as an argument.
Regards
Praveer
Information : SMF 2.0 RC3
Hi everyone,
I've already done a search on this topic but didn't find anything : did anyone already try to "fix" profile URL by selecting "real_name" (which is the one displayed on board) instead of "member_name" ?
I've done some changes in PrettyUrls-Filters.php (changing member_name by real_name) and the URL is now correctly updated (in database and in links). However it is not working : it's still the old URL that is recognized (with member_name).
If you have any idea how to change this, i'm listening! ;)
Thanks.
You'd have to update the code in Profile.php that searches the database etc. The profile filter just adds support for what SMF can already do: http://www.simplemachines.org/community/index.php?action=profile;user=Nuks
Sounds like complicated. I may try but can't promise to produce anything.
Anyway i'll keep you posted.
Great mod!
But how to change:
http://****.pl/unreadreplies/
http://****.pl/unread/
http://****.pl/profile/
to:
http://****.pl/nowe-odpowiedzi/
http://****.pl/nowe-wiadomosci/
http://****.pl/uzytkownik/
etc...
You can't those are hardcoded actions inside SMF would require a decent about a work to accomplish.
Quote from: Dannii on September 23, 2010, 12:22:15 PM
Quote from: ziycon on September 20, 2010, 01:36:09 PM
Quote from: ziycon on September 15, 2010, 02:15:11 PM
Can anyone help me with the below issue, I'm getting the below error for the below line of code, can't figure it out??
Quote8: Undefined index: board
File: ~/forum/Sources/Display.php
Line: 85
Line 85:
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Any ideas, really need to fix this as its causing problems with users viewing posts??
Check that all the changes the mod makes were made correctly, especially to QueryString.php
How do I check or what files do I look at to see where and what changes should have been made?
Its version 2.
Quote from: vbgamer45 on October 04, 2010, 06:15:09 PM
You can't those are hardcoded actions inside SMF would require a decent about a work to accomplish.
he just wants to change the link displayed. Can't that be done inside the .htcaccess? a simple rewrite?
.htaccess you can use to get the site to accept those urls by pointing them to the correct smf action. But you still have rewrite the output buffer in SMF to display the new names.
It's back to bite me in the butt again.
Fatal error: require_once() [function.require]: Failed opening required '/PrettyUrls-Filters.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/piratete/public_html/Sources/Subs.php on line 2762
which consists of this snip of code,
if (!empty($modSettings['pretty_enable_filters']))
{
require_once($sourcedir . '/PrettyUrls-Filters.php'); //<---line 2762
$url = array(0 => array('url' => $setLocation, 'url_id' => 'setLocation'));
$filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);
foreach ($filter_callbacks as $callback)
{
$pretty_url = call_user_func($callback, $url);
if (isset($pretty_url[0]['replacement']))
break;
}
if (isset($pretty_url[0]['replacement']))
$setLocation = $pretty_url[0]['replacement'];
$setLocation = str_replace("\x12", '\'', $setLocation);
$setLocation = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|;$|#$|=$~'), array(';', '?', '#', ''), $setLocation);
}
this only happens after I enable prettyURL's for my 2.0RC3 SMF. Any ideas on whats causing it?
Add a global statement before that code
global $sourcedir;
And see if that helps
Quote from: vbgamer45 on October 06, 2010, 06:27:09 PM
Add a global statement before that code
global $sourcedir;
And see if that helps
that worked, kinda odd that it wasn't in there to begin with.
Might have been missed in a mod edit or something.
Next issue, Avatars not uploading properly.
Always getting a 404 error.
You don't have permission to access /profile/ on this server.
this is with pretty URLs active.
<edit>
Verified that I can't change my profile just in general without this triggering.
</edit>
<editx2>
Another thing just tested is the "Aeva Media Pretty Filter" for the Aeva Media 1.4 free version, when clicking upload or mass upload it goes back to the album main page.
</editx2>
Quote from: Dannii on September 07, 2007, 09:21:11 PM
QuoteIs 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.
[Using SMF 1.1.11 / Pretty URLs 1.0RC2]
Is Pretty URLs supposed to turn off this built-in SEF feature when you install it? After installing, Pretty URLs works fine, but I see that both of these link formats still work:
http://site.com/forum/index.php?board=4.0
http://site.com/forum/index.php/board=4.0
will this cause problems with search engines penalizing for duplicate content?
The links should be redirected or marked as moved but yes the old formats will still work to access content.
I have tryed to find in over 200 pages 2 things:
1. how to clear prettyurls cache. Can I just drop all lines from datebase table smf_pretty_urls_cache ?
2. how to change from www.forum.com/old-topic-or-subjct-name to www.forum.com/new-topic-or-subject-name ? I have tryed again to modify in database without succes..
I'm sorry if I have passed by a solution...
Thank you in advance!
Hello Friends,
I had installed pretty urls mod in my website. Now the problem is that the pretty urls are working perfectly fine. But while editing the topics. It redirect to the post and the page is not found. See the example below and please help me out from this.
Pretty Urls
http://www.technologieshelp.co.cc/sports-news/how-to-buy-commonwealth-games-2010-delhi-tickets/
Url after modifying the topics. In this url it show page not found.
http://www.technologieshelp.co.cc/index.php/topic,26.msg30.html#msg30
Hope you have understood what i mean to ask. Please help me in this.
I get not found on both links
Hi VbGamer,
I have just modified the settings of pretty urls.
I above link will not work. I have disables the topics urls in the settings.
What the problem i am getting is whenever i use to edit the post it shows the error.
Suppose the post is
http://www.technologieshelp.co.cc/sports-news/how-to-buy-commonwealth-games-2010-delhi-tickets/
After editing the post the url use to be
http://www.technologieshelp.co.cc/index.php/topic,26.msg30.html#msg30
But the problem is that it don't use to redirect on the topic. It shows the error that LINK IS BROKEN.
Please help me in this.
Quote from: dsanchez on September 25, 2010, 02:57:04 PM
Quote from: vbgamer45 on September 25, 2010, 02:01:22 AM
Check the last topic on the troubleshooting page.
thank you! that solved the problem :)
I have another issue. I managed to make work
http://curefans.com/gallery
but I can't manage to make work the subdomain http://gallery.curefans.com because of the RewriteRule
RewriteRule ^gallery/?$ /gallery/index.php [L,QSA]
is there a way to make work both the subdomain and the sub folder?
nice mod, but add bugs in my log:
Gość
123.125.68.126
Dzisiaj o 10:50
7fffd24b2d4a3b4bb2d84e418459a7e7
Typ błędu: Nieokreślone
http://gamersite.pl/index.php?pretty;board=ogloszenia;topic=koniec-gamersite.msg7177&topicseen8: Undefined variable: read_onlyPlik: /home/slateer/domains/gamersite.pl/public_html/cache/lang_Profile_polish-utf8_black.php (main sub template - eval?)
Linia: 783
[code] Gość
123.125.68.126
Dzisiaj o 10:50
7fffd24b2d4a3b4bb2d84e418459a7e7
Typ błędu: Nieokreślone
http://gamersite.pl/index.php?pretty;board=ogloszenia;topic=koniec-gamersite.msg7177&topicseen8: Undefined offset: 470Plik: /home/slateer/domains/gamersite.pl/public_html/Sources/Load.php
Linia: 1384
Gość
123.125.68.126
Dzisiaj o 10:50
7fffd24b2d4a3b4bb2d84e418459a7e7
Typ błędu: Nieokreślone
http://gamersite.pl/index.php?pretty;board=ogloszenia;topic=koniec-gamersite.msg7177&topicseen8: Undefined index: submitPlik: /home/slateer/domains/gamersite.pl/public_html/Themes/default/GenericControls.template.php (main sub template - eval?)
Linia: 11
Gość
123.125.68.126
Dzisiaj o 10:50
7fffd24b2d4a3b4bb2d84e418459a7e7
Typ błędu: Nieokreślone
http://gamersite.pl/index.php?pretty;board=ogloszenia;topic=koniec-gamersite.msg7177&topicseen8: Undefined index: commentPlik: /home/slateer/domains/gamersite.pl/public_html/Themes/default/GenericControls.template.php (main sub template - eval?)
Linia: 11
Quote from: ziycon on October 05, 2010, 06:54:03 PM
Quote from: Dannii on September 23, 2010, 12:22:15 PM
Quote from: ziycon on September 20, 2010, 01:36:09 PM
Quote from: ziycon on September 15, 2010, 02:15:11 PM
Can anyone help me with the below issue, I'm getting the below error for the below line of code, can't figure it out??
Quote8: Undefined index: board
File: ~/forum/Sources/Display.php
Line: 85
Line 85:
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Any ideas, really need to fix this as its causing problems with users viewing posts??
Check that all the changes the mod makes were made correctly, especially to QueryString.php
How do I check or what files do I look at to see where and what changes should have been made?
Its version 2.
Can anyone help me please, my users are having trouble posting?
Hi All
I have just installed this mod and it just logs me out everytime I go to admin. I cant uninstall it it either as the board just logs me out.
Does anyone know how I can uninstall it or disable it ?
thanks
Check the FAQ/troubleshooting page in the first post of this topic
I wanted to install this Mod, but it comes back with Test failed...
9. Execute Modification ./Sources/Subs.php Test failed
I don't want to mess something up. Any idea why it is failing here?
Most likely another mod installed in the same spot that this mod is trying to alter which caused the conflict. Another option would be to try a manual install or run the package install then make the changes to Subs.php manually.
Quote from: vbgamer45 on October 19, 2010, 05:27:19 PM
Most likely another mod installed in the same spot that this mod is trying to alter which caused the conflict. Another option would be to try a manual install or run the package install then make the changes to Subs.php manually.
Not comfortable with that. Last time I made manual changes, my forum went down for a few hours. I will look into having someone look into this for me. Thanks for the update.
Got this when trying to send a newsletter. Any ideas?
Fatal error: Maximum execution time of 30 seconds exceeded in /home6/curefans/public_html/Sources/PrettyUrls-Filters.php on line 99
Check the action in the url when sending a newsletter and add it to the skip actions list.
these errors are being shown as critical in my error log list:
http://curefans.com/index.php?pretty;board=curenews;topic=happy-birthday-robert-smith-50-years!!.0&prev_next=prevDatabase error, given array of string values is empty. (new_urls)
Function: pretty_urls_topic_filterFile: /home6/curefans/public_html/Sources/PrettyUrls-Filters.php
Line: 287
Quote from: vbgamer45 on October 23, 2010, 06:44:41 PM
Check the action in the url when sending a newsletter and add it to the skip actions list.
thank you for the quick answer!
Quote from: xpubstargamingx on October 20, 2010, 09:18:18 AM
Quote from: vbgamer45 on October 19, 2010, 05:27:19 PM
Most likely another mod installed in the same spot that this mod is trying to alter which caused the conflict. Another option would be to try a manual install or run the package install then make the changes to Subs.php manually.
Not comfortable with that. Last time I made manual changes, my forum went down for a few hours. I will look into having someone look into this for me. Thanks for the update.
PM me if you are still looking for help.
After installing Pretty URLs my 404 handling is out the window. Anything I type after the domain name returns HTTP/200 instead of a 404. Check it like this: http://gsmdna.net/typeanythinghereandyouwontget404
I've seen forums with Pertty URLs and normal 404s so there's got to be something I did wrong. Any idea on what to check?
These are the headers when the above URL is loaded:
Date: Fri, 29 Oct 2010 11:02:03 GMT
Server: Apache
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: private
Pragma: no-cache
Last-Modified: Fri, 29 Oct 2010 11:02:03 GMT
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 3886
Keep-Alive: timeout=5, max=1000
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8
200 OK
Pretty urls overrides the 404 errors at this time it doesn't check if for 404
Quote from: vbgamer45 on October 29, 2010, 10:27:31 AM
Pretty urls overrides the 404 errors at this time it doesn't check if for 404
That's some really bad English right there. Elaborate that a little. What's overriding 404 and what's not checking if for 404?
Pretty urls rewrites all the urls for the site so can't do 404 easily.
Quote from: MordyT on October 23, 2010, 09:28:50 PM
Quote from: xpubstargamingx on October 20, 2010, 09:18:18 AM
Quote from: vbgamer45 on October 19, 2010, 05:27:19 PM
Most likely another mod installed in the same spot that this mod is trying to alter which caused the conflict. Another option would be to try a manual install or run the package install then make the changes to Subs.php manually.
Not comfortable with that. Last time I made manual changes, my forum went down for a few hours. I will look into having someone look into this for me. Thanks for the update.
PM me if you are still looking for help.
I am def. interested in help, but don;t want to register for your site to get help.
Hello
Nice mod ! But I got this big problem. I got the same problem as vivien (http://www.simplemachines.org/community/index.php?topic=146969.msg2798265#msg2798265), url with quotes are not working.
However, the fix proposed (comment lines in sub-prettyurls.php) is not working for me.
I got smf 1.1.11. I downloaded and installed the plugin today.
Do you have a solution ?
Thanks
Edit: I also emptied the pretty url tables in the database, and run maintenance, but the modifications are still not taken into account.
Edit2: I forgot to mention that this concern the board (and not the topics), ex: attrape-songes.com/forum/la-vie-l'univers-et-le-reste/topic-a-flood/
Edit 3: I also noticed another problem, my ajax chat mod is no longer working attrape-songes.com/forum/chat/index.php, but when I emptied the .htacess it worked again, what rule should I add in the .htaccess ?
Hi,
i tired to install pretty URLs in a fresh installed RC4 forum. I can't get it to work (maybe i'm blind oder just stupid), the package is uploaded well, when i click on install it can't modify the following files (modifycation error):
SMF2-0/Sources.xml
SMF2-0/Sources.xml
SMF2-0/BoardsAndTopics.xml
SMF2-0/BoardsAndTopics.xml
SMF2-0/Themes.xml
SMF2-0/Themes.xml
All other files are fine. Would be nice if anyone could help me. I haven't any idea what to do, the same plugin in my other RC3 forum works well without any problems.
Where does the error occur on which file and which step? I tested it the other day on fresh RC4
The error is "Modification parse error", for all of the listed files in my last post. Can't give you more details, because i haven't any ;) Only a screenshot if that would help.
That sounds like a package error in SMF/file permission issue i think I would try in the support forums
I tested everything, i set all files to 777, tried 755 also, nothing works. Could that be an issue with the running php versions? RC4 is running on 5.2.10, my RC3 on 5.3.
Installation from other packages works without any problems so far, testet some other mods.
is there a way to force using a 'www' prefix when turning the mod on? I seem to lose the prefix and need to relogin each time i click on a board.
Check changing domain
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: vbgamer45 on November 03, 2010, 06:52:03 PM
Check changing domain
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Awesome, that did the trick!
<3
I am using this and the url rewrite isnt working (everything goes 404)... Used this on RC3 for a year with no problem on this server...
Interesting
just pulled the HTACCESS file and saw
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: November 4, 2010, 9:21
So it did generate correctly.. why is it not working tho...
EDIT: Found the problem
# beginning of directives for Apache Error Handling modification
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php?action=error;code=404
ErrorDocument 400 /index.php?action=error;code=400
ErrorDocument 401 /index.php?action=error;code=401
ErrorDocument 402 /index.php?action=error;code=402
ErrorDocument 403 /index.php?action=error;code=403
ErrorDocument 404 /index.php?action=error;code=404
ErrorDocument 405 /index.php?action=error;code=405
ErrorDocument 406 /index.php?action=error;code=406
ErrorDocument 407 /index.php?action=error;code=407
ErrorDocument 408 /index.php?action=error;code=408
ErrorDocument 409 /index.php?action=error;code=409
ErrorDocument 410 /index.php?action=error;code=410
ErrorDocument 411 /index.php?action=error;code=411
ErrorDocument 412 /index.php?action=error;code=412
ErrorDocument 413 /index.php?action=error;code=413
ErrorDocument 414 /index.php?action=error;code=414
ErrorDocument 415 /index.php?action=error;code=415
ErrorDocument 416 /index.php?action=error;code=416
ErrorDocument 417 /index.php?action=error;code=417
ErrorDocument 500 /index.php?action=error;code=500
ErrorDocument 501 /index.php?action=error;code=501
ErrorDocument 502 /index.php?action=error;code=502
ErrorDocument 503 /index.php?action=error;code=503
ErrorDocument 504 /index.php?action=error;code=504
ErrorDocument 505 /index.php?action=error;code=505
# end of directives for Apache Error Handling modification
That caused the problem...
The problem is the 2nd RewriteEngine on that occured during prettyurl's modification.. is it possible to have it check the .htcaccess for rewrite on and not write it if it is found?
Turns out you cant have an error rewrite occuring before prettyurl because it will rewrite the URL as a 404 instead of continuing on with the rule... Seems PrettyURL has to be the first entry in the .htaccess ...
Hello,
I fixed my initial problem, by renaming the board pretty urls manually.
I have another question. I used the fixe for the fix for the sample quote.
So instead of http://www.attrape-songes.com/forum/la-vie-l-univers-et-le-reste/localisation-des-membres-d'attrape-songes/
I have http://www.attrape-songes.com/forum/la-vie-l-univers-et-le-reste/localisation-des-membres-dattrape-songes/
But I would like to have something like that http://www.attrape-songes.com/forum/la-vie-l-univers-et-le-reste/localisation-des-membres-d-attrape-songes/
What should I do ?
there is any way to have this mod worked with Tinyportal 1.0RC ?
Because now, when i enable URL rewriting, my homepage (which is Tinyportal) doesn't work (i have white page...)
I use SMF 2.0 RC3, TP 1.0 RC1 and mods:
- Sitemap 2.2.0
- Membergroup Color Legend 3.0
- Member Color Link 3.0.8
- Custom Fields On Memberlist 1.1
- Pretty URLs 1.0RC2a (with Pretty URLs Extras 1.0)
Check your error log if there are any relevant errors. If you have pretty extras installed try disabling them and see if it helps.
When i try to open homepage i get this error in log
Database Error: Illegal mix of collations for operation ' IN 'File: /home/***/public_html/****.net.pl/Sources/PrettyUrls-Filters.php
Line: 55
and in 55 line i have this:
array('urls' => $urls_query));
I checked with and without Extras filters
This error appears even if not marking rewrite rules (when i have selected only "Enable URL rewriting")
Using phpmyadmin make sure all the tables are using the same collation type such as Latin1 or uft8
That was the problem... i change collation to utf_general_ci and all works
thanks for help ;)
Glad you got it working
Nice mode. It works but not completely.
If I enable the Boards URL rewriting filter then any of my boards that have more than one page can't be opened by click on the page number.
Is there a fix for this?
Thanks
is there any upgrade step for this plugin ? or should i uninstall the old version and install this new version ? :)
No upgrade step only way is to install new version
Quote from: vbgamer45 on November 11, 2010, 12:58:34 AM
No upgrade step only way is to install new version
yeah, but every time i try to uninstall it , it always give me error in :
Execute Modification ./Sources/Subs.php Test failed
i know how to do manually install, but i don't know how to do manually uninstall :(
how to manually revert the edit of old plugin ?
Quote from: havenone on November 10, 2010, 05:28:17 PM
Nice mode. It works but not completely.
If I enable the Boards URL rewriting filter then any of my boards that have more than one page can't be opened by click on the page number.
Is there a fix for this?
Thanks
Is there not a solution to my problem??
No one whats to help on this one??????
Hello,
I've made a fresh install on RC4, then with RC3. I tryed to check de box of "Enable" and is unchecked after "save settings". On the same server I have another smf forum witf Pretty Urls working just fine. The .htaccess file is ok.
Here are the errors from log.
http://www.my.site/forum/index.php?topic=1.msg3
8: Undefined index: pretty_enable_filters
File: /var/www/clients/client62/web88/web/forum/Sources/Display.php
Line: 85
// 301 redirects
==>85: if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
upgraded forum from rc3 to rc4
and installed new version now
but problem is there is no page to setup pretty url
after installing pretty url package it gives me this link
http://forumen.pokemoncraft.com/index.php?action=admin;area=pretty
but when i click the link it goes to the standart admin page ( http://forumen.pokemoncraft.com/index.php?action=admin ) there is no pretty url page
please help thank you
this forum is hosted on windows server 2008 r2
and before upgrading forum to rc4 from rc3
pretty urls were working perfectly
Sounds like it did not install. Check file permissions. You should see a prettyurls area in the admin area.
when i want to acces the subboards is not working !
like here : http://www.desprefacultati.ro/alba/
if i want to acces "Universitatea "1 Decembrie 1918" Alba Iulia" it replays an error .
what can i do ?
help !
PS: when i want to post a new topic it does an error too !
What error does it say?
"The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing to accept
cookies."
you can try and click on the link i posted , and you will see that , the mod is not working well with the redirection ... i have to click sub-subboard to work , but the main one , "the one that includes all others sub-subboards" doesn't works .
i asked my hosting and i have the apche and the mod_rewrite ...
Remove the quotes from the name that fixes issue.
yeah , i did notice now that just some of the boards not working not all , thanks a lot .
one thing , the manage board from the Admin -> forum , is not working too . i didn't check the others functions in the panel ....
i did remove quotes form the names , but it didn't resolve the probleme :( ...
and when i want to post a topic does the same error :(
please help !
hello !
i'm waiting for a solution ....
i need uninstall old version 1.0RC. I was install manualy and now i do not know how to uninstall.
someone help?
I have pretty URLs installed and working.
But I have little problems.
In my apache log I have errors like :
[Mon Nov 22 17:16:50 2010] [error] [client 92.156.156.194] File does not exist: /var/www/vhosts/mydomain/httpdocs/myboardtitle, referer: http://www.mydomain.com/myboardtitle/
[Mon Nov 22 17:18:15 2010] [error] [client 92.156.156.194] File does not exist: /var/www/vhosts/mydomain/httpdocs/myboardtitle, referer: http://www.mydomain.com/myboardtitle/myposttitle/
How can I fix theses errors?
Thank you in advance adns sorry for my bad english.
Thanks for this mod vbgamer45. It seems working fine for me. I hope everything would be all right. ;D
I noticed that when I went to Article section and to one of its topic the URL doesn't put the topic title. How can I do change that with specific title. Thanks
does the prettyurls-extras-1.0-RC2.zip work in my smf 1.1.12. I want also to Rewrite my Tiny Portal article URLs..
Yes it does
Problem sorted using prettyurls-extras-1.0-RC2.zip.
Another thing, I noticed when I use google to search, on the address bar it show " + " sign to substitute "space" between words. In the address bar of my forum with pretty url it shows " - " sign in place of space.
Could this affect the way google or other search engine search for topic and the chance of seeing my topic?
Or I should change the behavior of pretty url to change - into + sign between spaces?
Pretty URLs 1.0 RC3 28 November 2010
================================================================================
! Base: Fixed bug with handling single quotes in board names.
Great mod. Would be nice if SMF could have this built in - kind of like Wordpress's option to customize permalinks.
I just installed this on a 2.0RC4 forum and see that it's ignoring categories, i.e., my topic at http://www.mysite.com/category/board/topic is being shown as http://www.mysite.com/board/topic.
Is there a solution to this or is this just the way the mod works? Thanks
That is currently how the board works ignores the category part probably could be added as a setting though.
Thanks for the quick answer vbgamer45
Hi, I installed this mod and my ajax chat is not working anymore. Every time I select the Chat button it direct me to index page but the address say http:/..../forum/cha/.
Can anyone tell me what to do. Thanks in advance.
Check trouble shooting topics on modpage gives answer for this
Quote from: Galaad31 on November 22, 2010, 11:23:28 AM
I have pretty URLs installed and working.
But I have little problems.
In my apache log I have errors like :
[Mon Nov 22 17:16:50 2010] [error] [client 92.156.156.194] File does not exist: /var/www/vhosts/mydomain/httpdocs/myboardtitle, referer: http://www.mydomain.com/myboardtitle/
[Mon Nov 22 17:18:15 2010] [error] [client 92.156.156.194] File does not exist: /var/www/vhosts/mydomain/httpdocs/myboardtitle, referer: http://www.mydomain.com/myboardtitle/myposttitle/
How can I fix theses errors?
Thank you in advance adns sorry for my bad english.
Nobody knows for this?
Just ignore them you can't fix they are from old urls that are crawled by bots
Hello,
thanks for your reply vbgamer but they are not old urls crawled by bots.
If i do the test in real time and watch my apache error log, every url wich is used by a user write an error in the log.
So, is it possible to fix this, and how can I do that?
Thanks in advance for help and sorry for my bad english ;)
hello!
I have installed simple portal, and then pretty url. (on a fresh install of RC4, and also on my current forum, RC4 upgraded from RC3)
If I enable url rewriting, and then try to post a new thread or reply to an existing topic, I get an error page from firefox, saying that it has detected that the page is not being redirected correctly. It also says it might be cookie related.
The new thread or new reply goes through though, but I have to hit previous page in firefox and go to the index page to see it.
It does that whether I enable or disable rewriting action urls (for some reason I thought it might cause problem)
Same behavior on the two boards (the test site and the regular one)
I saw that combining these two mods causes troubles, but I wasn't able to find info about this particular error.
Quote from: Malaky on December 01, 2010, 08:24:05 AM
If I enable url rewriting, and then try to post a new thread or reply to an existing topic, I get an error page from firefox, saying that it has detected that the page is not being redirected correctly. It also says it might be cookie related.
The new thread or new reply goes through though, but I have to hit previous page in firefox and go to the index page to see it.
Same problem here bro!
The topic url is this: http://www.forums.winphonearena.com/help-assistance/test-2/
But once you add a reply, the reply does get submitted and updates the thread but the redirection to the topic after posting a reply doesn't work, it sends the user to the old, unprettied link:
http://www.forums.winphonearena.com/index.php/topic,5.new.html#new
So is this an error in the plugin or the theme or the main code?
Same thing happens in default theme and same thing happens when I turn the "Redirect to topic" off. It sends the user to unprettired board index, which won't open.
I made a temporary account for anyone who wanna try troubleshooting.
Try posting a new reply using following log-in details:
user: test-pretty
pass: test123
Please help!
Quote from: vbgamer45 on October 23, 2010, 06:44:41 PM
Check the action in the url when sending a newsletter and add it to the skip actions list.
I added this action
action=admin;area=news;sa=mailingsend
to the skip action list, but still, same error:
Fatal error: Maximum execution time of 30 seconds exceeded in /home6/curefans/public_html/Sources/PrettyUrls-Filters.php on line 99
Any ideas?
How to update from 1.0rc2 to rc3?
Quote from: dsanchez on December 03, 2010, 01:38:13 PM
Quote from: vbgamer45 on October 23, 2010, 06:44:41 PM
Check the action in the url when sending a newsletter and add it to the skip actions list.
I added this action
action=admin;area=news;sa=mailingsend
to the skip action list, but still, same error:
Fatal error: Maximum execution time of 30 seconds exceeded in /home6/curefans/public_html/Sources/PrettyUrls-Filters.php on line 99
Any ideas?
Just add
admin
As the skip action it works on the sa= level only
Quote from: jjm0109 on December 02, 2010, 04:00:28 PM
Quote from: Malaky on December 01, 2010, 08:24:05 AM
If I enable url rewriting, and then try to post a new thread or reply to an existing topic, I get an error page from firefox, saying that it has detected that the page is not being redirected correctly. It also says it might be cookie related.
The new thread or new reply goes through though, but I have to hit previous page in firefox and go to the index page to see it.
Same problem here bro!
The topic url is this: http://www.forums.winphonearena.com/help-assistance/test-2/
But once you add a reply, the reply does get submitted and updates the thread but the redirection to the topic after posting a reply doesn't work, it sends the user to the old, unprettied link:
http://www.forums.winphonearena.com/index.php/topic,5.new.html#new
So is this an error in the plugin or the theme or the main code?
Same thing happens in default theme and same thing happens when I turn the "Redirect to topic" off. It sends the user to unprettired board index, which won't open.
I made a temporary account for anyone who wanna try troubleshooting.
Try posting a new reply using following log-in details:
user: test-pretty
pass: test123
Please help!
BUMP!!!
Anyone? Please help.
Quote
But once you add a reply, the reply does get submitted and updates the thread but the redirection to the topic after posting a reply doesn't work, it sends the user to the old, unprettied link:
http://www.forums.winphonearena.com/index.php/topic,5.new.html#new [nofollow]
That really isn't an issue since that is not a public url so search engines won't see it.
Quote from: Galaad31 on November 30, 2010, 11:22:52 PM
Quote from: Galaad31 on November 22, 2010, 11:23:28 AM
I have pretty URLs installed and working.
But I have little problems.
In my apache log I have errors like :
[Mon Nov 22 17:16:50 2010] [error] [client 92.156.156.194] File does not exist: /var/www/vhosts/mydomain/httpdocs/myboardtitle, referer: http://www.mydomain.com/myboardtitle/
[Mon Nov 22 17:18:15 2010] [error] [client 92.156.156.194] File does not exist: /var/www/vhosts/mydomain/httpdocs/myboardtitle, referer: http://www.mydomain.com/myboardtitle/myposttitle/
How can I fix theses errors?
Thank you in advance adns sorry for my bad english.
Nobody knows for this?
Quote from: vbgamer45 on November 30, 2010, 11:32:24 PM
Just ignore them you can't fix they are from old urls that are crawled by bots
Quote from: Galaad31 on December 01, 2010, 05:29:07 AM
Hello,
thanks for your reply vbgamer but they are not old urls crawled by bots.
If i do the test in real time and watch my apache error log, every url wich is used by a user write an error in the log.
So, is it possible to fix this, and how can I do that?
Thanks in advance for help and sorry for my bad english ;)
Hello,
is there a way to solve this?
Quote from: vbgamer45 on December 05, 2010, 05:19:13 PM
Quote
But once you add a reply, the reply does get submitted and updates the thread but the redirection to the topic after posting a reply doesn't work, it sends the user to the old, unprettied link:
http://www.forums.winphonearena.com/index.php/topic,5.new.html#new [nofollow]
That really isn't an issue since that is not a public url so search engines won't see it.
Well it's an issue since in our cases,it means the forum is broken, since you can't post something without getting an error page after having posted a new message or thread.
Quote from: vbgamer45 on December 05, 2010, 05:19:13 PM
Quote
But once you add a reply, the reply does get submitted and updates the thread but the redirection to the topic after posting a reply doesn't work, it sends the user to the old, unprettied link:
http://www.forums.winphonearena.com/index.php/topic,5.new.html#new [nofollow]
That really isn't an issue since that is not a public url so search engines won't see it.
My bad, I didn't describe properly.
There IS an issue. The old link which "Submit" button sends the use to, doesn't work and it says "Redirection Failed"
You may try it yourself to see the problem more closely, I have provided the login details.
Thanks!
Hello. Can somewone update lighttpd rewrite code for pretty url.
Here they are http://redmine.lighttpd.net/boards/2/topics/1705?r=2103#message-2103 but last update was about 1 year ago wich make some things not working.
Tnx
Quote from: jjm0109 on December 06, 2010, 02:07:07 PM
Quote from: vbgamer45 on December 05, 2010, 05:19:13 PM
Quote
But once you add a reply, the reply does get submitted and updates the thread but the redirection to the topic after posting a reply doesn't work, it sends the user to the old, unprettied link:
http://www.forums.winphonearena.com/index.php/topic,5.new.html#new [nofollow]
That really isn't an issue since that is not a public url so search engines won't see it.
My bad, I didn't describe properly.
There IS an issue. The old link which "Submit" button sends the use to, doesn't work and it says "Redirection Failed"
You may try it yourself to see the problem more closely, I have provided the login details.
Thanks!
Well, had to disable the plugin. Can't wait longer :-(
Any other similar plugins guys?
And please see if anyone gets a fix for this one. I'll try helping anyway I could.
Quote from: jjm0109 on December 05, 2010, 03:22:21 PM
Quote from: jjm0109 on December 02, 2010, 04:00:28 PM
Quote from: Malaky on December 01, 2010, 08:24:05 AM
If I enable url rewriting, and then try to post a new thread or reply to an existing topic, I get an error page from firefox, saying that it has detected that the page is not being redirected correctly. It also says it might be cookie related.
The new thread or new reply goes through though, but I have to hit previous page in firefox and go to the index page to see it.
Same problem here bro!
The topic url is this: http://www.forums.winphonearena.com/help-assistance/test-2/
But once you add a reply, the reply does get submitted and updates the thread but the redirection to the topic after posting a reply doesn't work, it sends the user to the old, unprettied link:
http://www.forums.winphonearena.com/index.php/topic,5.new.html#new
So is this an error in the plugin or the theme or the main code?
Same thing happens in default theme and same thing happens when I turn the "Redirect to topic" off. It sends the user to unprettired board index, which won't open.
I made a temporary account for anyone who wanna try troubleshooting.
Try posting a new reply using following log-in details:
user: test-pretty
pass: test123
Please help!
BUMP!!!
Anyone? Please help.
Same with w/ SP version 2.3.3 & SMF 2.0 RC4. Replys do post but in IE it just hangs and in firefox it says it can't be redirected.
okay, someone is really going to need to help all of us which this............................
troubleshoot isnt helping
Check the troubleshooting topic
did, after creating .php file, I go on www.mysite.com/filename.php, but the site opens up normally.
Problem not fixed. Please help! It's causing a real lagg
Quote from: Galaad31 on December 06, 2010, 03:11:43 AM
Quote from: Galaad31 on November 30, 2010, 11:22:52 PM
Quote from: Galaad31 on November 22, 2010, 11:23:28 AM
I have pretty URLs installed and working.
But I have little problems.
In my apache log I have errors like :
[Mon Nov 22 17:16:50 2010] [error] [client 92.156.156.194] File does not exist: /var/www/vhosts/mydomain/httpdocs/myboardtitle, referer: http://www.mydomain.com/myboardtitle/
[Mon Nov 22 17:18:15 2010] [error] [client 92.156.156.194] File does not exist: /var/www/vhosts/mydomain/httpdocs/myboardtitle, referer: http://www.mydomain.com/myboardtitle/myposttitle/
How can I fix theses errors?
Thank you in advance adns sorry for my bad english.
Nobody knows for this?
Quote from: vbgamer45 on November 30, 2010, 11:32:24 PM
Just ignore them you can't fix they are from old urls that are crawled by bots
Quote from: Galaad31 on December 01, 2010, 05:29:07 AM
Hello,
thanks for your reply vbgamer but they are not old urls crawled by bots.
If i do the test in real time and watch my apache error log, every url wich is used by a user write an error in the log.
So, is it possible to fix this, and how can I do that?
Thanks in advance for help and sorry for my bad english ;)
Hello,
is there a way to solve this?
BUMP!!!
Anyone? Please help.
Quote from: jjm0109 on December 09, 2010, 03:00:30 PM
Well, had to disable the plugin. Can't wait longer :-(
Any other similar plugins guys?
And please see if anyone gets a fix for this one. I'll try helping anyway I could.
Yeah I had to disable it too. For the next upgrade of SMF, I'll install this mod first, and then simple portal, and see if it works. (I think I read somewhere it does).
Thanks for the pretty urls mod, we've using it for a while without much issues.
However... O:)
We recently installed smf4iphone mod and theme package and are now running into a few little issues. Basicly pretty urls rewrites certain urls that the smf4iphone theme needs to function properly. Is there a way to exclude a entire theme from rewritting urls ?
Thanks in advance
If they have their own action you can use the skip actions feature otherwise not easily.
Quote from: vasco on December 04, 2010, 11:47:19 AM
How to update from 1.0rc2 to rc3?
Thank you for your question :)
Quote from: vbgamer45 on November 28, 2010, 07:53:04 PM
Pretty URLs 1.0 RC3 28 November 2010
================================================================================
! Base: Fixed bug with handling single quotes in board names.
Nice!
Is necessary upgrade database and make change of files or only replace files?
Thank you
Only replace files
Thank you! ;)
vbgamer45 , propose to change the pagination of pages
example
now
Pages: 1 ... 286 287 [288] Go Down
links look ....../topic/ ....../topic/15 ....../topic/30 ....../topic/45 ....../topic/60 ....../topic/75
change to ....../topic/page-1 ....../topic/page-2 ....../topic/page-3 ....../topic/page-4 ....../topic/page-5 ....../topic/page-6
ask why?
order that would plug-in for FF and Chrome (FastestChrome - Browse Faster) knew and worked with the auto-load the next page
example in the attached
I know you can exclude specific actions from being parsed, but I need to exclude one specific sub-forum from pretty urls. Is this possible?
Quote from: Malaky on December 10, 2010, 08:10:55 AM
Quote from: jjm0109 on December 09, 2010, 03:00:30 PM
Well, had to disable the plugin. Can't wait longer :-(
Any other similar plugins guys?
And please see if anyone gets a fix for this one. I'll try helping anyway I could.
Yeah I had to disable it too. For the next upgrade of SMF, I'll install this mod first, and then simple portal, and see if it works. (I think I read somewhere it does).
Just tried doing what you said. Failed :-(
But what I found was, it DOES work without SimplePortal.
So the issue is compatibility with SimplePortal.
Author please take note of this. Hoping for an update to solve this issue :-)
Edit: Just installed PortaMX and it works perfectly fine.
Quote from: Makar on December 12, 2010, 05:53:18 AM
vbgamer45 , propose to change the pagination of pages
example
now
Pages: 1 ... 286 287 [288] Go Down
links look ....../topic/ ....../topic/15 ....../topic/30 ....../topic/45 ....../topic/60 ....../topic/75
change to ....../topic/page-1 ....../topic/page-2 ....../topic/page-3 ....../topic/page-4 ....../topic/page-5 ....../topic/page-6
ask why?
order that would plug-in for FF and Chrome (FastestChrome - Browse Faster) knew and worked with the auto-load the next page
example in the attached
That's very bad. Performance wise for a forum for pages to be preloaded.
Why? Next page is loaded only when read Previous Downloading does not differ from that, if the link was clicked. Before you write not be familiar with the work of the plugin.
New update! Pretty Urls 1.0 RC4
! Base: Fixed some install issues when Simple Portal mod is installed
hi all,
I discovered that if I edit a topic the pretty url isn't updated if I change the topic title on forum
I am using RC3 with smf 1.1.12
thx for your work
Reference categories, divisions
I have to log errors appear constantly recording
[Mon Dec 13 15:59:28 2010] [error] [client 66.249.66.106] File does not exist: /home/za/public_html/lenta-novostei
[Mon Dec 13 15:59:20 2010] [error] [client 112.6.61] File does not exist: /home/za/public_html/lenta-novostei
and
[Mon Dec 13 15:58:35 2010] [error] [client 95.232.20] File does not exist: /home/za/public_html/400.shtml, referer: http: //za/elektrooborudovanie/protivotumannye/new/?topicseen
None of those errors are related to pretty urls those are normal webserver things
One very little bug? :)
Fixed thanks for heads up.
**edited to say - now fixed, had residue from last version lingering for some reason in sources/subs.
deleted and now working tickety boo!! Cheers Billy ****
Hi,
Using RC4, Curve theme.
Just upgraded to 1.0RC4 pretty urls.
Getting this error in error log -
http://www.mysite.co.uk/forum/index.php?pretty;action=admin&area=pretty;sa=settings;save[no follow]
2: require_once(/PrettyUrls-Filters.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
File: /home/xbxb/public_html/forum/Sources/Subs.php
Line: 2810
and......
http://www.mysite.co.uk/forum/index.php?pretty;action=admin&area=pretty;sa=settings;save[no follow]
8: Undefined variable: sourcedir
File: /home/xbxb/public_html/forum/Sources/Subs.php
Line: 2810
this is line 2810
==>2810: require_once($sourcedir . '/PrettyUrls-Filters.php');
its no biggie..... all working fine with urls being prettyfied :)
but would appreciate it if you could let me know where I have messed up.
cheers
Billy
installed it and it worked. suddenly i see it has no uninstall so i delete it, now i try installing it back and it gives me xmas lights lol
help anyone? and one more thing, each time i delete it , it reappears next time i check as if i didnt do anything with it. am i screwed?
I've upgraded to RC4 to solve the compatibility problems with simpleportal 2.3.3 but redirections after reply / quote / delete post don't work.
Any hints on how to solve this?
What happens on redirection?
Quote from: vbgamer45 on December 16, 2010, 10:47:20 AM
What happens on redirection?
I get an error page from firefox, saying that it has detected that the page is not being redirected correctly.
Maybe url is formatted differently than RC2 ?
Quote from: Paolo Bitta on December 16, 2010, 12:08:40 PM
Quote from: vbgamer45 on December 16, 2010, 10:47:20 AM
What happens on redirection?
I get an error page from firefox, saying that it has detected that the page is not being redirected correctly.
Maybe url is formatted differently than RC2 ?
Same problem here. After new, reply, quote, delete post the browser is redirected to an URL like this:
http://www.mywebsite.com/forum/index.php/topic,4455.new.html#new
Is this a bug or a wrong configuration?
Do you get an error or is that just how the url looks?
If that's how that url looks that is ok.
Quote from: vbgamer45 on December 16, 2010, 12:20:50 PM
Do you get an error or is that just how the url looks?
If that's how that url looks that is ok.
The error is the continuous redirect to that URL. The browser and the server enter in a loop until the browser stops askig that URL and shows an error message "...the page is not being redirected correctly..."
Thanks
Quote from: Gianni_T on December 16, 2010, 12:25:15 PM
Quote from: vbgamer45 on December 16, 2010, 12:20:50 PM
Do you get an error or is that just how the url looks?
If that's how that url looks that is ok.
same problem,but dont error related in apache log server. i disable temp the mod
The error is the continuous redirect to that URL. The browser and the server enter in a loop until the browser stops askig that URL and shows an error message "...the page is not being redirected correctly..."
Thanks
Is there any news about my issue?
Quote from: Gianni_T on December 18, 2010, 02:47:37 AM
Is there any news about my issue?
Solved putting "queryless_urls" variable in smf_settings table to 0
Ah thanks for the info will keep that in mind for next update
Quote from: Gianni_T on December 18, 2010, 03:38:10 AM
Quote from: Gianni_T on December 18, 2010, 02:47:37 AM
Is there any news about my issue?
Solved putting "queryless_urls" variable in smf_settings table to 0
Great!!!
Thank you!! 8)
I am planning on starting up a classified forum is it possible to do this on the pretty url's mod:
lets say the board name is "Texas" for the state the url will be:
http://yourdomain.com/texas
and the city is "Amarillo" is going to be the childboard:
http://yourdomain.com/texas/amarillo
can the pretty url can do this?
No it can't. It can only do http://www.yourforum.com/boardname/
Do you know there is a mod that can do that?
Not sure there are a couple other mods but not sure if they go that deep.
well the reason that I am asking is I am going to start a online classified using forums not an auction. I am not sure if this mod will work for me or not. I hope you understand where I am going with this.
Now,,, when I click on enable the pretty url and click on save change it won't save the settings. What could it be wrong?
i am using pretty urls all works fine,But the urls in the sitemap are in the format of SMF.. Is there any way to fix it.
I have installed pettyurl then i uninstalled it but still the pettyurl option is present in the admin panel... Tell me how to remove it??
I have removed pretty url and now all my pages in .html (http://www.mywebsite.com/forum/index.php/topic,4455.new.html#new) which never happen before. I am also getting "white pages" when you click on a few links and redirection errors. Is there anyway that I can fix this?
Note: Fix the first part, but not the blank page.
Hey mate,
Great modification! Totally loving it, I am having an issue with the URLs being re-written in SMF4iPhone Template though, not sure if it's because the template has a different way of showing URLs?
I see that the URLs aren't being re-written at all, which is OK for the Posts and everything else, however when you "tap" on a Board with the iPhone, it says "Cannot Open Page -- Safari cannot open the page because too many redirects occurred." It works okay with Posts though, using the old SMF url.
What can I do to fix this?
SMF4iPhone Theme - [here] (http://custom.simplemachines.org/themes/index.php?lemma=2089)
Try
Solved putting "queryless_urls" variable in smf_settings table to 0
Or disable querless urls settings
Quote from: vbgamer45 on December 27, 2010, 07:19:47 PM
Try
Solved putting "queryless_urls" variable in smf_settings table to 0
Or disable querless urls settings
No go mate. That did fix the "redirect to topic on new post" bit when re-writing "Topics"-- so thanks for that.
But it has not fixed the iPhone Theme, that is to say it "works for some" but not for all the boards. Do you have an iPhone on hand? I can PM you the Link so you can have a look yourself.
If it helps the URL it goes to when you go to the Forum Root is = http://forum.mysite.com/index.php/board,1.0.html
Quote from: vbgamer45 on December 27, 2010, 07:19:47 PM
Try
Solved putting "queryless_urls" variable in smf_settings table to 0
Or disable querless urls settings
Sry but how to do that I am beginer in SQL.
Problem solved :)
Hi Danni!
I want to use this mod, on SMF 2.0 RC4.
I do have a question about the mod_rewrite and .htaccess though? Do these files need a specific setting? Do I need to add some code to those files using the normal FTP method?
Thanks,
Mark.
The mod will automatically modify the .htaccess file and include the pretty urls code
Quote from: vbgamer45 on January 02, 2011, 08:29:28 AM
The mod will automatically modify the .htaccess file and include the pretty urls code
Thanks. I had a problem when I tried a similar thing with Wordpress software, in that my server permissions don't allow the .htaccess file to be written to. Can you advise how I overcome this? Wordpress gave me the code to manually insert into .htaccess.
:)
This is for board urls and topics but not actions
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: July 10, 2010, 10:34
RewriteEngine on
RewriteBase /
# 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]
# PRETTYURLS MOD ENDS
Thanks,
I've done the .htaccess and tried to install the mod. The mod installed, but when I try rewriting the URLs none of the URLs work. Any ideas? I was given an example url list - some re-direct boards that didn't work, and some topics that didn't work.
Thanks!
EDIT: - I have looked at my files on the server and do not seem to have a mod_rewrite file. Does this mean I cannot use the mod?
Mod_rewrite is require
Hi, I am having a problem with the pretty urls mod.
Before i was using version "prettyurls-1-0RCb-SMF2RC2" and had this .htaccess
# REDIRECT DEL FORO VIEJO AL NUEVO
redirect 301 /foro/anuncios-del-foro/ http://www.gptlatino.com/anuncios-y-noticias/
redirect 301 /foro/consultas-ideas-sugerencias-y-bugs-del-foro/ http://www.gptlatino.com/sugerencias-y-dudas-del-foro/
redirect 301 /foro/presentaciones/ http://www.gptlatino.com/presentaciones/
redirect 301 /foro/discusiones-generales/ http://www.gptlatino.com/discusiones-generales/
redirect 301 /foro/tutoriales/ http://www.gptlatino.com/tutoriales/
redirect 301 /foro/compras-ventas-servicios/ http://www.gptlatino.com/compra-venta-intercambios/
redirect 301 /foro/gpt-general/ http://www.gptlatino.com/gpt-get-paid-to/
redirect 301 /foro/sitios-sospechosos/ http://www.gptlatino.com/gpt-scam-cerrados-offline/
redirect 301 /foro/cadenas-de-referidos/ http://www.gptlatino.com/cadenas-de-referidos-gpt/
redirect 301 /foro/reportes-23/ http://www.gptlatino.com/reportes-23/
redirect 301 /foro/cadenas-cerradas/ http://www.gptlatino.com/cadenas-de-referidos-gpt/
redirect 301 /foro/ofertas/ http://www.gptlatino.com/ofertas/
redirect 301 /foro/ofertas-cerradas/ http://www.gptlatino.com/ofertas-cerradas/
redirect 301 /foro/intercambio-de-referidos/ http://www.gptlatino.com/intercambio-de-referidos/
redirect 301 /foro/me-vendo-como-referido/ http://www.gptlatino.com/me-vendo-como-referido/
redirect 301 /foro/hyip-autosurfs-y-forex/ http://www.gptlatino.com/hyip-autosurfs-y-forex/
redirect 301 /foro/elogios-y-aplausos/ http://www.gptlatino.com/comprobantes-de-pago/
redirect 301 /foro/juegos-de-azar-y-apuestas-deportivas/ http://www.gptlatino.com/juegos-de-azar-y-apuestas-deportivas/
redirect 301 /foro/ganando-dinero-con-mi-sitio-web/ http://www.gptlatino.com/ganando-dinero-con-mi-sitio-web/
redirect 301 /foro/ayuda-y-recursos-para-webmasters/ http://www.gptlatino.com/ayuda-y-recursos-para-webmasters/
redirect 301 /foro/mostranos-tu-sitio/ http://www.gptlatino.com/mostranos-tu-sitio/
redirect 301 /foro/grupos-anti-scam/ http://www.gptlatino.com/grupos-anti-scam/
redirect 301 /foro/grupos-de-inversion/ http://www.gptlatino.com/grupos-de-inversion/
redirect 301 /foro/procesadores-de-pago/ http://www.gptlatino.com/procesadores-de-pago/
redirect 301 /foro/intercambios-monetarios/ http://www.gptlatino.com/intercambios-monetarios/
redirect 301 /foro/ http://www.gptlatino.com/
redirect 301 /foro http://www.gptlatino.com/
# FIN DE LOS REDIRECTS
# REDIRECTS NUEVOS
redirect 301 /ganando-dinero-con-mi-sitio-web/ http://www.gptlatino.com/monetizacion-de-webs/
redirect 301 /intercambios-monetarios http://www.gptlatino.com/intercambios-monetarios/
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: January 3, 2011, 13:30
RewriteEngine on
RewriteBase /
# Rules for: actions
RewriteRule ^(activate|admin|announcements|announcement|attachapprove|buddy|calendar|clock)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(refferals|emailuser|findmember|groups|help|helpadmin|im|jseditor)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jsmodify|jsoption|lock|lockvoting|login|login2|logout|markasread)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|openidreturn|pm|post|post2|prefix|printpage|profile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quotefast|quickmod|quickmod2|recent|register|register2|reminder|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic|sitemap)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|stats|sticky|theme|trackip)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trader|about:mozilla|about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote)/?$ ./index.php?pretty;action=$1
[L,QSA]
RewriteRule ^(viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./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]
# PRETTYURLS MOD ENDS
and now i updated to the last version and my redirects don't work any more...
Links that shold be
http://www.gptlatino.com/monetizacion-de-webs/
Are
http://www.gptlatino.com/monetizacion-de-webs/?pretty;board=ganando-dinero-con-mi-sitio-web.0
BTW i am using rc4
Can somebody help me?
Best Regards!
QuoteInstallation¶
To install the mod:
* First check again that your server supports mod_rewrite and .htaccess files.
* A UTF-8 database encoding is recommended, though not required. Certain functions will work unreliably with other encodings.
* Download and install the prettyurls package in your forum's package manager.
* Enable URL rewriting in the new Pretty URLs page.
how can i check my server supports mod_rewrite and .htaccess files or not ???
Not working for me since I upgraded to RC4. I've used the newest build however it just freezes the page if I try posting so I can only use it to display existing pretty urls
Hey Guys,
I'm not much of a computer guy..... here is my question.
Im running version SMF 1.1.11 and Pretty URLs Version 1.0RC4
The problem:
"The page isn't redirecting properly" message on a blank page is displayed after trying to post something or do anything related to editing or posting messages. However, the message do get posted, BUT it just doesn't return back to the forum.....
How do I fix that?
Thank you so much!
Try
Solved putting "queryless_urls" variable in smf_settings table to 0
Or disable querless urls settings
Appendix good, but I stopped using it because it often did complications.
Quote from: vbgamer45 on January 04, 2011, 02:30:02 PM
Try
Solved putting "queryless_urls" variable in smf_settings table to 0
Or disable querless urls settings
Thanks for your quick reply, can you explain it in layman's term for dummies pls? :)
Would have stayed on RC3 is I knew this wasn't working :(
Hi VB, again!
I've checked with my web hosting and mod_rewrite is enabled on the server. Do I need to manually create the mod_rewrite files?
Many thanks,
Mark.
Quote from: apc896 on January 04, 2011, 02:33:04 PM
Quote from: vbgamer45 on January 04, 2011, 02:30:02 PM
Try
Solved putting "queryless_urls" variable in smf_settings table to 0
Or disable querless urls settings
Thanks for your quick reply, can you explain it in layman's term for dummies pls? :)
If you go into PHPmyAdmin (which you should be able to access through your web hosting package) and then select the smf database. You should then be able to browse the smf_settings table...you're looking for a row called "queryless_urls". Then change the variable from 1 to 0.
Quote from: Mark H on January 05, 2011, 10:24:43 AM
Quote from: apc896 on January 04, 2011, 02:33:04 PM
Quote from: vbgamer45 on January 04, 2011, 02:30:02 PM
Try
Solved putting "queryless_urls" variable in smf_settings table to 0
Or disable querless urls settings
Thanks for your quick reply, can you explain it in layman's term for dummies pls? :)
If you go into PHPmyAdmin (which you should be able to access through your web hosting package) and then select the smf database. You should then be able to browse the smf_settings table...you're looking for a row called "queryless_urls". Then change the variable from 1 to 0.
Thanks Mark that worked for me too. Still strange that we didn't need to do that pre RC4
Hi,
In addition to my query about the mod_rewrite files, can I ask what this mod does to the old URLs? Those that have been indexed by SE's using the standard format...will those links still work after installing the mod?
Mark.
Those links still worked and are redirected
Thanks VB,
But my main query regarding mod_rewrite?
I repost:
Hi VB, again!
I've checked with my web hosting and mod_rewrite is enabled on the server. Do I need to manually create the mod_rewrite files?
Many thanks,
Mark.
Quote from: Mark H on January 05, 2011, 11:01:02 AM
Hi,
In addition to my query about the mod_rewrite files, can I ask what this mod does to the old URLs? Those that have been indexed by SE's using the standard format...will those links still work after installing the mod?
Mark.
The old links yes but new inks created by the mod wont work if the mod isn't running. That's from testing I've done
Thanks for that colej2k.
I cannot get pretty urls working yet! I have installed and checked all is okay, but when the test links appear none of them work. I have assumed this is a mod_rewrite issue. Checked with my server and mod_rewrite is enabled. Am I on the right track?
Thanks,
Mark. :)
Have you tried to check the server error logs to see if anythings been left when you were testing ?
There seems to be some errors that apply:
The forum seems to be redirecting to http://rabel.org.uk/index.php in all cases. The directory the forum is on is http://rabel.org.uk/rabel-forum/ .
Mark.
EDIT:
This is what I've got in my .htaccess :
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: January 5, 2011, 18:23
RewriteEngine on
RewriteBase /rabel-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]
# PRETTYURLS MOD ENDS
SOLVED!
It had nothing to do with mod_rewrite. I had another set of rules in .htaccess (for Wordpress) that was causing a conflict. :)
Mark.
Quote from: Mark H on January 05, 2011, 10:24:43 AM
Quote from: apc896 on January 04, 2011, 02:33:04 PM
Quote from: vbgamer45 on January 04, 2011, 02:30:02 PM
Try
Solved putting "queryless_urls" variable in smf_settings table to 0
Or disable querless urls settings
Thanks for your quick reply, can you explain it in layman's term for dummies pls? :)
If you go into PHPmyAdmin (which you should be able to access through your web hosting package) and then select the smf database. You should then be able to browse the smf_settings table...you're looking for a row called "queryless_urls". Then change the variable from 1 to 0.
Thanks, I got the general idea... now I'm here... and I clicked around and dont know how to change it to "0".
I'm on this screen (see attachment).
Please advise.... thank you for helping out a newbie :)
Easy way quick on smf_settings table and browse it on the left hand side.
Quote from: vbgamer45 on January 05, 2011, 03:50:16 PM
Easy way quick on smf_settings table and browse it on the left hand side.
what's "quick" on smf_settings table?got it, that little icon on the left side of the link.... let me see if it works...
I think VB meant "click". If you find smf_settings on the left hand side, click on that and you should be able to click on the queryless_urls..click on the "1" and you should (hopes!) be able to change it to 0.
IT WORKS! Thank you everyone!!!
:D :D :D :D
Glad you got it working
Pretty URLs 1.0 RC5 5 January 2011
================================================================================
! Base: Fixed issue if queryless urls are enabled. Pretty urls will now disable them when enabling pretty urls to fix server errors.
Quote from: vbgamer45 on January 05, 2011, 04:39:36 PM
Pretty URLs 1.0 RC5 5 January 2011
================================================================================
! Base: Fixed issue if queryless urls are enabled. Pretty urls will now disable them when enabling pretty urls to fix server errors.
Brill! Thanks for the mod...it is really useful. :)
Hi Guys,
I installed your reverter, but it doesnt work :
http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/the-bass-king-returns/0/
I would like to get these urls back to thier originals.
Anyone a little hand over here please :)
http://www.simplemachines.org/community/index.php?topic=146969.msg2900851#msg2900851
vbgamer45 can I only replace files from rc4?
Thanks :)
Not really a mandatory update. Only update was to fix issues that some members had if it prettyurls wasn't working correctly.
I get tired of hacking pretty urls to work with lighttpd every time.
Perhaps you could include this diff to fix the darned quotation bug.
--- Subs-PrettyUrls.php 2010-01-31 16:41:00.000000000 +0100
+++ Subs-PrettyUrls.txt 2011-01-06 12:36:52.669173100 +0100
@@ -40,11 +40,11 @@
'y' => array ('y', 'Y', 'ý', 'Ã
'z' => array ('z', 'Z', 'ż', 'Å»', 'ź', 'Ź', 'ž', 'Ž', 'Î'),
'-' => array ('-', ' ', '.', ','),
+ '' => array ("'", '"', "`"),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
- "\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),
@@ -130,16 +130,23 @@
$pretty_board_urls = isset($modSettings['pretty_board_urls']) ? unserialize($modSettings['pretty_board_urls']) : array();
$pretty_board_lookup_old = isset($modSettings['pretty_board_lookup']) ? unserialize($modSettings['pretty_board_lookup']) : array();
- // Fix old boards by replacing ' with \x12
- $pretty_board_urls = str_replace("'", "\x12", $pretty_board_urls);
+ // Fix old boards by replacing ' with ^
+ $pretty_board_urls = str_replace("'", "", $pretty_board_urls);
+ $pretty_board_urls = str_replace("\x12", "", $pretty_board_urls);
$pretty_board_lookup = array();
foreach ($pretty_board_lookup_old as $board => $id)
- $pretty_board_lookup[str_replace("'", "\x12", $board)] = $id;
+ {
+ $pretty_board_lookup[str_replace("'", "", $board)] = $id;
+ $pretty_board_lookup[str_replace("\x12", "", $board)] = $id;
+ }
// Fix old topics too
db_query("
UPDATE {$db_prefix}pretty_topic_urls
- SET pretty_url = REPLACE(pretty_url, '\\'', '" . chr(18) . "')", __FILE__, __LINE__);
+ SET pretty_url = REPLACE(pretty_url, '\\'', '')", __FILE__, __LINE__);
+ db_query("
+ UPDATE {$db_prefix}pretty_topic_urls
+ SET pretty_url = REPLACE(pretty_url, CHAR(18), '')", __FILE__, __LINE__);
$context['pretty']['maintenance_tasks'][] = 'Fixing any old boards and topics with broken quotes';
// Get the board names
Yeah, it's not pretty and could use some cleanup, but basically, quotes aren't safe, so just nuke them.
Quote from: glennk on January 05, 2011, 05:18:56 PM
Hi Guys,
I installed your reverter, but it doesnt work :
http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/the-bass-king-returns/0/
I would like to get these urls back to thier originals.
bump
switched to rc3 and i cant get this to install properly (can't find the edits needed) what version works well with rc3?
That latest version should. Minor changes between rc3 and rc4 I suggest using a package parser to find the edits.
Quote from: vbgamer45 on January 06, 2011, 01:40:45 AM
Not really a mandatory update. Only update was to fix issues that some members had if it prettyurls wasn't working correctly.
I am understand.
The change are in the database or only in the files?
Can I replace only files?
Thank you :)
Hello all,
i have a SMF 2.0RC3 with Pretty URL's 1.0RC.
I had a topic called "Gitaarles, Gieten" which resulted in the nice url muzieklerenspelen.nl/muziekles-in-drenthe/gitaarles-gieten/
I accidentally deleted this topic.
When i now want to re-create this topic (using a different registered user) the new url gets a sequential number added at the end.
It looks like this: muzieklerenspelen.nl/muziekles-in-drenthe/gitaarles-gieten-322/
How can i re-create the original url name without the number at the end?
You can't easily since it is already been cached the old version.
ok. I understand that it is not easy :-[
But i still like to try! 8)
I can download and upload the SQL database with phpMyAdmin.
I have read on the code.google.com/p/prettyurls/wiki/DatabaseChanges page that i need to manually edit SQL table smf_pretty_topic_urls and/or smf_pretty_urls_cache.
Is this correct?
If so, what do i need to change to recreate the original nice url: muzieklerenspelen.nl/muziekles-in-drenthe/gitaarles-gieten/
I have a problem with this mod. The install was OK, but when i create a new message on the forum and click "send" it gives me an error and does not return to the message so that i can see it. This also happens when i try to delete a message. It works, but it throws an error and i have to click on the "backwards" arrow to get to the main category....
My web is http://peruzone.isgreat.org
I have created a demo account so that u can help me
User: Prueba
Pass:Prueba
Hello Authorized;
How do I do this way?
http://www.sinematurkiye.com/anime-cartoon-cizgi-filmler/
http://www.sinematurkiye.com/anime-cartoon-cizgi-filmler/yabanci-yapim/
Sorry I do not know english google translate turned
I have installed a new smf in http://nautiic.com/forums and the only plugin i have is the latest of Pretty URls
I get a
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
When i post /reply /delete
I did all my tests on http://nautiic.com/forums/general-discussion/welcome-to-nautiic-forums/
Cant find the solution and i´ve seen some other users with same problem in the google issues page
Any help¿
Quote from: chifliiiii on January 10, 2011, 08:55:47 AM
I have installed a new smf in http://nautiic.com/forums and the only plugin i have is the latest of Pretty URls
I get a
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
When i post /reply /delete
I did all my tests on http://nautiic.com/forums/general-discussion/welcome-to-nautiic-forums/
Cant find the solution and i´ve seen some other users with same problem in the google issues page
Any help¿
I have the same problen. You explained better :)
Hi all,
I have SMF 2.0 RC4 installed. I installed PrettyURL latest version and all but one link (that I found so far) didnt work correctly.
The forum "more stats" links me to my host CP.
Anyone had this happen? Is there a fix? Or if I have to fix manual, how?
Thanks
Is there any chance you could answer my question on why the reverter isnt working for my forum please.
I need help asap please.
I was running your 1.0RC3 on my SMF2.0RC3, and now upgraded to SMF2.0RC4. I installed your latest software, and for the most part it works. However, If someone goes to the original numeric address
example:
/index.php?board=1.0
Instead of being redirected to
/main-discussion/
They are being told by the browser there is an infinite redirect loop. Do you know where this would be resolved, in which htaccess file or how to resolve this?
This is especially problematic b/c when you post, SMF returns you to the board. Andthat hits the infinite redirect!!!
Try disabling queryless urls
Quote from: vbgamer45 on January 14, 2011, 10:57:40 AM
Try disabling queryless urls
Fixed! That was simple. Thanks. What does that change, exactly? Does that change SEO-friendliness?
No doesn't matter since you are using pretty urls
I've just had this brought to my attention.
When a member does the "Forgotten password" option, they are sent an email - Fine. They click the link in the email and...
QuoteAn Error Has Occurred! You are not allowed to access this section
The link they are told to click is http://website.co.uk/reminder/?sa=setpassword
Any idea's why they don't have permission to view that page? I just tried whilst logged in as an admin - Same message for me.
I'll make this a little easier for vbgamer though I have no idea why I should.
The core reason is that the rewrite is stripping out the information that's needed to make the rest of the link, a forgotten password link includes a validate value and user id as part of the URL but the rewrite removes both.
Since neither item of information is available, the option to issue a reminder isn't available and so there isn't permission to access it.
Jue
For now under Pretty Urls Settings add reminder to the skip actions list to fix that url
Personally I am not a fan of rewriting all actions since they do break certain parts of the software and just stick topics/boards.
Where it says:
Enable URL rewriting
Skip Actions List:
In the box I put ?sa=setpassword
Correct?
No, you add 'reminder' to that box so it doesn't rewrite action=reminder into /reminder/
Didn't work. Same error.
Did you get a new link/email sent? The new link should work as long as it is not rewritten.
Cheers! Worked. :) Is there going to be a fix into this or is it not possible?
There are a bunch of them that I don't want to rewrite such as stats and admin which also can cause issues
Dream Portal .htaccess code? They use ?page=pagename (I think TinyPortal uses that format too, would TinyPortal .htaccess for page work for DP?)
Yes, I searched this topic for "portal" and all i saw was SimplePortal, TinyPortal, and "MKPortal"
is it possible to have pretty urls for tinyportal download items?
using smf 1.1.12
nice mod thx
EDIT: I wrote my own, I will post it tomorrow
EDIT2: here the code change to Download system, it is supposed that if you have Tinyportal download you dont have other download system.
On Install.php
"description" => "Download System filter for downloads",
"enabled" => 0,
"filter" => array(
"priority" => 32,
"callback" => "pretty_downloadssystem_filter"
),
"rewrite" => array(
"priority" => 32,
"rule" => array(
"RewriteRule ^downloads/([^/]+)/([^/]+)/([0-9]*)/?$ ./index.php?action=downloads;sa=view;down=$3 [L,QSA]",
),
),
"title" => 'Download System Pretty Filter <a href="http://www.smfhacks.com/download-system-pro.php" target="_blank">Website</a>'
);
"description" => "Download item TinyPortal 1.0 RC1",
"enabled" => 0,
"filter" => array(
"priority" => 32,
"callback" => "pretty_downloadssystem_filter"
),
"rewrite" => array(
"priority" => 32,
"rule" => array(
"RewriteRule ^downloads/([^/]+)/([^/]+)/([0-9]*)/?$ ./index.php?action=tpmod;dl=item$3 [L,QSA]",
),
),
"title" => 'Tiny Portal Download TP 1.0 RC1'
);
then open Sources-SMF1-1.xml
// Filter Download System
function pretty_downloadssystem_filter($urls)
{
global $scripturl, $boardurl, $db_prefix;
// Do Download System Replacement
$pattern = '`' . $scripturl . '(.*)action=downloads;sa=view;down=([0-9]+)`S';
$query_data = array();
foreach ($urls as $url_id => $url)
{
// Get the data ready to query the database with
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
{
$urls[$url_id]['ID_FILE'] = (int) $matches[2];
$urls[$url_id]['match1'] = $matches[1];
$query_data[] = $urls[$url_id]['ID_FILE'];
}
}
if (count($query_data) != 0)
{
// Get the Download info
$fileIDs = array();
$filesNames = array();
$catNames = array();
$query = db_query("
SELECT
c.title as CatTitle, f.title, f.ID_FILE, c.ID_CAT
FROM {$db_prefix}down_cat as c, {$db_prefix}down_file as f
WHERE c.ID_CAT = f.ID_CAT AND f.ID_FILE IN (" . implode(', ', $query_data) . ")", __FILE__, __LINE__);
while ($filedata = mysql_fetch_assoc($query))
{
$fileIDs[$filedata['ID_FILE']] = $filedata['ID_FILE'];
$filesNames[$filedata['ID_FILE']] = rawurlencode(pretty_seo_url($filedata['title']));
$catNames[$filedata['ID_FILE']] = rawurlencode(pretty_seo_url($filedata['CatTitle']));
}
// Download TinyPortal 1.0 RC1
function pretty_downloadssystem_filter($urls)
{
global $scripturl, $boardurl, $db_prefix;
// Do Download System Replacement
$pattern = '`' . $scripturl . '(.*)action=tpmod;dl=item([0-9]+)`S';
$query_data = array();
foreach ($urls as $url_id => $url)
{
// Get the data ready to query the database with
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
{
$urls[$url_id]['ID_FILE'] = (int) $matches[2];
$urls[$url_id]['match1'] = $matches[1];
$query_data[] = $urls[$url_id]['ID_FILE'];
}
}
if (count($query_data) != 0)
{
// Get the Download info
$fileIDs = array();
$filesNames = array();
$catNames = array();
$query = db_query("
SELECT
category, name, id
FROM {$db_prefix}tp_dlmanager
WHERE id IN (" . implode(', ', $query_data) . ")", __FILE__, __LINE__);
while ($filedata = mysql_fetch_assoc($query))
{
$fileIDs[$filedata['id']] = $filedata['id'];
$filesNames[$filedata['id']] = rawurlencode(pretty_seo_url($filedata['name']));
$category_sub = abs($filedata['category']);
$query2 = db_query("
SELECT
name as CatTitle
FROM {$db_prefix}tp_dlmanager
WHERE type like 'dlcat' AND id like '$category_sub'", __FILE__, __LINE__);
while ($filedata2 = mysql_fetch_assoc($query2))
{
$catNames[$filedata['id']] = rawurlencode(pretty_seo_url($filedata2['CatTitle']));
}
mysql_free_result($query2);
}
I just post here to share, it isn't supposed to be safe :)
How can i change the actions? my forum is in Spanish and i want to rewrite ?action=forum to /foro not /forum, how i can do that?
PS: Sorry for use colors, is just to diferency
Actions can't easily be changed since it based on SMF action code.
Hello. Can somewone update lighttpd rewrite code for pretty url.
Here they are http://redmine.lighttpd.net/boards/2/topics/1705?r=2103#message-2103 but last update was about 1 year ago wich make some things not working.
Tnx
I think someone did it a couple posts back
Getting Problem in Pretty URL.
http://www.simplemachines.org/community/index.php?topic=418070.0
You have to run the install script files copy them to root directory of your forum then run them via the browser
Quote from: vbgamer45 on January 19, 2011, 12:54:00 PM
You have to run the install script files copy them to root directory of your forum then run them via the browser
I have to run SMF2-0/install.php only or more files.
Only that file.
Quote from: vbgamer45 on January 19, 2011, 01:38:45 PM
Only that file.
Thanks.
Great Fan of your Mod . Keep the good Work Up.
Sorry to disturb but when i am quote, Modifying or even posting any answer , i am getting the error.
Please see the attach file.
If you have queryless urls enabled disable them
Quote from: vbgamer45 on January 19, 2011, 02:26:01 PM
If you have queryless urls enabled disable them
Sorry to ask but where to disable them :-[
Quote from: SirReal on January 06, 2011, 06:45:46 AM
I get tired of hacking pretty urls to work with lighttpd every time.
Perhaps you could include this diff to fix the darned quotation bug.
--- Subs-PrettyUrls.php 2010-01-31 16:41:00.000000000 +0100
+++ Subs-PrettyUrls.txt 2011-01-06 12:36:52.669173100 +0100
@@ -40,11 +40,11 @@
'y' => array ('y', 'Y', 'ý', 'Ã
'z' => array ('z', 'Z', 'ż', 'Å»', 'ź', 'Ź', 'ž', 'Ž', 'Î'),
'-' => array ('-', ' ', '.', ','),
+ '' => array ("'", '"', "`"),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
- "\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),
@@ -130,16 +130,23 @@
$pretty_board_urls = isset($modSettings['pretty_board_urls']) ? unserialize($modSettings['pretty_board_urls']) : array();
$pretty_board_lookup_old = isset($modSettings['pretty_board_lookup']) ? unserialize($modSettings['pretty_board_lookup']) : array();
- // Fix old boards by replacing ' with \x12
- $pretty_board_urls = str_replace("'", "\x12", $pretty_board_urls);
+ // Fix old boards by replacing ' with ^
+ $pretty_board_urls = str_replace("'", "", $pretty_board_urls);
+ $pretty_board_urls = str_replace("\x12", "", $pretty_board_urls);
$pretty_board_lookup = array();
foreach ($pretty_board_lookup_old as $board => $id)
- $pretty_board_lookup[str_replace("'", "\x12", $board)] = $id;
+ {
+ $pretty_board_lookup[str_replace("'", "", $board)] = $id;
+ $pretty_board_lookup[str_replace("\x12", "", $board)] = $id;
+ }
// Fix old topics too
db_query("
UPDATE {$db_prefix}pretty_topic_urls
- SET pretty_url = REPLACE(pretty_url, '\\'', '" . chr(18) . "')", __FILE__, __LINE__);
+ SET pretty_url = REPLACE(pretty_url, '\\'', '')", __FILE__, __LINE__);
+ db_query("
+ UPDATE {$db_prefix}pretty_topic_urls
+ SET pretty_url = REPLACE(pretty_url, CHAR(18), '')", __FILE__, __LINE__);
$context['pretty']['maintenance_tasks'][] = 'Fixing any old boards and topics with broken quotes';
// Get the board names
Yeah, it's not pretty and could use some cleanup, but basically, quotes aren't safe, so just nuke them.
Quote from: vbgamer45 on January 18, 2011, 09:32:19 PM
I think someone did it a couple posts back
Where to put this code?
Just installed running SMF 1.1.12 and Avare MU template
Notice: Undefined index: pretty_action_array in /home/thepok8/public_html/index.php on line 83
Notice: Undefined index: pretty_board_urls in /home/thepok8/public_html/index.p
site is www.thepokerdream.net
Do those errors repeat or one time? If repeat try resaving pretty urls settings
Quote from: vbgamer45 on January 19, 2011, 02:26:01 PM
If you have queryless urls enabled disable them
How to do please tell me.
i think its an option under edit features and options look around that area
Quote from: vbgamer45 on January 20, 2011, 09:39:04 AM
i think its an option under edit features and options look around that area
There is no such option please have a look at
http://www.simplemachines.org/community/index.php?topic=418225.0
Keep searching it is somewhere in SMF I forget where.
No, the option gets commented out by Pretty URLs' code.
Quote from: vbgamer45 on January 20, 2011, 11:33:44 AM
Keep searching it is somewhere in SMF I forget where.
I have searched a lot, If you can tell exact location it will be good.
hi i installed pretty urls 1.05RC5 and
sa facebook connect 1.0 RC4
http://custom.simplemachines.org/mods/index.php?mod=2322
but when the pretty url work it is impossible to use Like option on topic of facebook because it gives error
it use the old smf style link and its no cannot opened on facebook
there is a solution?
it's possible to use both sef that old smf style?
i have disabled pretty url for to use sa facebook connect
please i need too pretty url i hate the style smf link
I tried to uninstall the RC3 version that was installed (1.2 I think it was?) and install the 1.5 version, and when uninstalling, I got a test failed on the admin.php file, but the 1.5 version uploaded fine. But I seem to be having problems with getting error pages when trying to do anything on the admin panel with the new one.
Fatal error: require_once() [function.require]: Failed opening required '/mnt/r0533/d10/s07/b01f5bae/www/e-p1.net/Sources/PrettyUrls.php' (include_path='.:/usr/local/nf/php5_2/lib/php') in /mnt/r0533/d10/s07/b01f5bae/www/e-p1.net/Sources/Admin.php on line 633
Quote from: pawan2002 on January 20, 2011, 11:42:13 AM
Quote from: vbgamer45 on January 20, 2011, 11:33:44 AM
Keep searching it is somewhere in SMF I forget where.
I have searched a lot, If you can tell exact location it will be good.
Mod Creator any answer.
I don't know that one pawan2002
You won't find it, as I already said... the mod removes the option, so you will have to remove the entry for queryless URLs from the database.
I've used this mod when was on 1.0RC3 but I had to give up on him because of the web hosting that started to complain to me because the site generates mysql queries extremely difficult to slow down the server where is hosted MySQL database. More specifically, during the query's execution was 12 seconds. I have little quarrel with them, even banned my site on this cause, but eventually I gave way to peace and I uninstalled.
Now I want to know if the current version 1.0RC5 resolve these problems, if there are people who complain about this before and if I can get back to that mode.
Thank you and sorry for my english :)
Not much as changed since RC3 and RC5 so if queries took a long time with the mod avoid it.
Quote from: Arantor on January 23, 2011, 09:37:01 AM
You won't find it, as I already said... the mod removes the option, so you will have to remove the entry for queryless URLs from the database.
Arantor could u help please.
No more than I already have, sorry. In fact I think already helped too much seeing who it is.
Quote from: Arantor on January 23, 2011, 01:27:49 PM
No more than I already have, sorry. In fact I think already helped too much seeing who it is.
Thanks but if you can tell how to disable them then it will surely be great help and i can then use Pretty URL.
I won't, no. I refuse to help vbgamer any further.
Quote from: Arantor on January 23, 2011, 02:35:49 PM
I won't, no. I refuse to help vbgamer any further.
Don't Help VBGamer help me buddy.
By solving your problem it's one less for him to deal with, sorry, no.
Quote from: Arantor on January 23, 2011, 02:49:13 PM
By solving your problem it's one less for him to deal with, sorry, no.
Oh man Help me. You can PM me if you dont want here to discuss that.
Hey,
I want to use Smart Optimizer along with Pretty URLs is this possible ??
Here is link to smart optimizer
http://farhadi.ir/works/smartoptimizer
Below is the code for .htaccess of smartoptimizer
<IfModule mod_expires.c>
<FilesMatch "\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico)$">
ExpiresActive On
ExpiresDefault "access plus 10 years"
</FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*\.(js|css))$ smartoptimizer/?$1
<IfModule mod_expires.c>
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*\.(js|css|html?|xml|txt))$ smartoptimizer/?$1
</IfModule>
<IfModule !mod_expires.c>
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico))$ smartoptimizer/?$1
</IfModule>
</IfModule>
<FilesMatch "\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico)$">
FileETag none
</FilesMatch>
Regards
Have pretty urls code first then add that other code after it.
I think nobody gonna help me.
had pretty url installed , then had to temp moved domains and back again, now my forums get redirected to my old domain each time i click it. when i uninstall pretty urls everything is fine, any way to fix this? (ii used reinstall_settings.php when i changed domains)
Trouble shooting page
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: vbgamer45 on January 25, 2011, 12:02:34 AM
Trouble shooting page
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Help me also buddy.
Hello. 3 days ago my site is just showing blank page. I dont know what to do. I tried all http://code.google.com/p/prettyurls/wiki/TroubleShooting and still is blank page.
What to do?
pretty_enable_filters - 0
queryless_urls- 0
Quote from: pawan2002 on January 19, 2011, 01:56:10 PM
Sorry to disturb but when i am quote, Modifying or even posting any answer , i am getting the error.
Please see the attach file.
unistall Pretty urls, use also Pretty URLs Reverter.
now you'll find the queriless urls option on top of 'Meta keywords associated with forum'. uncheck it. empty the cache.
now uninstall Pretty URLs Reverter and install Pretty urls again.
this should solve your problem. it solved mine.
still, this mod's problem remains. vbgamer45 will have to change code so that it doesn't remove the SMF queriless urls option from the admin panel.
The option was removed to prevent people from enabling which would break the mod.
Quote from: vbgamer45 on January 27, 2011, 01:48:48 PM
The option was removed to prevent people from enabling which would break the mod.
But what if it is already Enable. I have installed that manually all my hard work goes in vein.
What i should do now.
And at the Start you were saying that the Option is there only :-[
I am currently having Seo 4 SMF installed. I plan on de-installing it and using Pretty URLS instead.
Will the built in Seo 4 SMF Filter allow me to keep my previous Google ranked URL? I am afraid that I would loose my linked topics on Google.
Thanks!
It will do a 301 redirect and it is a separate download from the pretty urls site to setup
@vbgamer45
I want to point the "/index.php" of my forum to the "/" of my forum with a piece of 301-re-direct code.
But when I put this piece of 301 code in my .htaccess file and upload it, pretty urls doesn't work anymore and I can't login anymore when that happens!
The pretty-urls links are broken then. How can I combine the 301-redirect in the .htaccess file and pretty-url so that both of them work?
Thanks.
PS: I want to use a redirect 301 on /index.php to the / , because Google doesn't show the correct URL in the SERPS (for SEO)
it works but when you click on a few buttons this is what i get:
Safari can't open the page.
Too many redirects occurred trying to open "http://reefcollege.com/index.php/topic,130.0.html". This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.
You must disable queryless urls in order to fix that issue.
K i fixed it. before you install pretty url's you should go to admin>features and options> UNcheck search engine friendly urls.
the pretty urls mod removed that check box so you cannot turn it off and it interferes with your forum!
Quote from: vbgamer45 on January 29, 2011, 09:19:32 PM
You must disable queryless urls in order to fix that issue.
I have installed Pretty URL Manually so if i remove it, i will require a lot of time. Can you please tell me some other way.
Why has no-one noticed that repair_settings.php should be able to fix this?
Or even done a search on this forum to find the answer?
Quote from: Arantor on January 30, 2011, 07:17:31 AM
Why has no-one noticed that repair_settings.php should be able to fix this?
Or even done a search on this forum to find the answer?
Hmm. Let Me check .
Yes i have Unchecked the querry less URL but Now even Pretty URL showing the same result of Not redirecting .
I checked this in Maintenance mode.
Quote from: reefforum on January 29, 2011, 10:59:22 PM
K i fixed it. before you install pretty url's you should go to admin>features and options> UNcheck search engine friendly urls.
the pretty urls mod removed that check box so you cannot turn it off and it interferes with your forum!
The mod when enabling pretty urls will set queryless urls to off if you have 1.0 RC5 installed.
@vbgamer
Thanks for the advice. My problem is solved.
I turned of the pretty url mod, then added two 301-redirects, and turned on the mod again.
http://www.simplemachines.org/community/index.php?topic=146969.msg2932190#msg2932190
I have successfully installed RC5 but it tells me that I have RC2 installed in admin. Is there an artifact somewhere? Do you think RC5 is in fact installed?
Hello,
I've a trouble with a facebook share button.
The code I use is this:
echo '<div style="float:right; padding: 4px;"><a name="fb_share" type="button_count" href="', $scripturl, '?topic=', $context['current_topic'], '">Condividi</a><script src="ht***//static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div>';
This works as expected and when when I use an URL directed to a specific post (ex: site.com/index.php/topic,22652.98.html#msg98), is translated in something like site.com/board-name/topic-title/msg98/#msg98, and then shared like that.
I would like to share only the main topic url (site.com/board-name/topic-title/) even if I am in the situation above.
Any suggestions?
Thanks
Hello there.
Ive been upgraded my forum from 1.1.12 to 2.0RC4, and i have a sort of "problem" with pretty urls mod.
Ive been using it on 1.1.12 forum too.
Then, i have a link like this:
http://www.samo-opusteno.info/forum/novi-clanovi/cao-svima-))))/
Thats ok, but when i upgraded, and installed pretty urls, the same topics looks the same way, i mean the link is the same, that is ok.
BUT...
When i am on forum index, my boards have links like:
http://www.samo-opusteno.info/forum/3/
All boards are numbered in link.
Also, i can browse the same forum with the link:
http://www.samo-opusteno.info/forum/novi-clanovi/
I dont understand how i have those 2 links. I want just last one to be displayed in forum index, and not numbered link.
Ive try mod mainteance, but it doesnt help.
Any suggestion?
Ive attached .htaccess file, if there can be a problem.
Hello everybody. I have the following issue:
To prevent duplicate content from google, i added a 301 on my home site via htacess solution from www[dot]domain[dot]de to domaind[dot]de
The problem is, that the Mod still prefixes the "www". How to solve that?
I already had a look into the modified htacess by pretty url. But this looks so crazy to me, I don't have the balls to edit something here.
Thanks a lot,
Stef
SOLVED: Haven't read the manual ;)
I still have problem, anyone can help?
@MarkoKg
You have to go into the admin center -> boards and categories and click the Pretty URL link next to all boards with numbered links. Then set the default to whatever you want and delete the numbers (or you can leave them)
Thanks for your answer, but that didnt help.
Ive just edited board with ID 49, and set pretty url to "lektire-knjige" wich was before upgrading, and which is still valid url.
Now when i browse forum index link for that board is with /49/, and when i clicked on that board, the link that i get is what i want to be - with "lektire-knjige". (Also topics is ok, with "lektire-knjige" part). The only thing that is problem is that the page index shows one type of links, and when i click it it goes to different type.
You can see it on:
www.samo-opusteno.info/forum
Regards.
Hey, vbG!
I've search the topic on query urls, but I'm getting different errors. I ONLY use Pretty Urls for profiles.
The only errors I'm getting in the Error Log, is when I save my Pretty Url settings in the AdminCP
http://www.brawldomain.com/index.php?action=admin;area=pretty;sa=settings;save
8: Undefined index: queryless_urls
File: /home/brawldom/public_html/Sources/PrettyUrls.php
Line: 128
http://www.brawldomain.com/index.php?action=admin;area=pretty;sa=settings;save
8: Undefined index: queryless_urls
File: /home/brawldom/public_html/Sources/PrettyUrls.php
Line: 124
hi,
i'm using the 1.0RC5 version of pretty url's. i've recently updated my forum to 2.0rc4 and installed the mod. but i can't enable the pretty url's because of the 644 permission of the .htaccess file.
my hosting provider doesn't allow me to change the permission of htaccess. :(
i was using the pretty url's in my previous version of smf. is there anyother way to turn on the pretty url's?
pl help.
EDIT:
I moved my site to a new host and this host won't allow to make htaccess writable :(
I have just installed this mod and it works fine so far. Howeber I ecountered two problems:
1. After having done a posting, SMF want to direct me to an URL like for example:
http://www.detektorforum.de/smf/index.php/topic,21345.msg172842.html#msg172842
However this can't be processed. This URL Format is also being used in my Link Backs
2. I installed the Seo4SMF Filter ... old Google ranked URLs are now being forward but again can't be processed. For example:
http://www.detektorforum.de/smf/index.php/topic,9739.0.html
Can anybody please kindly let me know what to alter in order to fix this problem? Thank you.
After moving the forum to new server I have a problem with preety url.
Links are fine, but in respect of the topic appears like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg812.imageshack.us%2Fimg812%2F356%2Fpreetyurlproblem.png&hash=c77ce009851e1aec067ac2e1473cc5cd9768a60f)
The script has been freshly built and added to the base of the forum. Installed the latest version 1.0RC5 fashion.
What could be the problem?
Error installing on Sources/Subs.php
I've tried editing, but I can't find // Maybe integrations want to change where we are heading?
Please?
Hi to all,
I have problem with my forum (smf 1.1.12) and mod (only pretty url's)
Problem is: Notice: Undefined index: db_count in XXXX/YYYYY/Sources/QueryString.php on line 276
Can anyone help me ? (i attached file)
Hi to all,
I have solved my problem. I reinstall preatty url's and than disable pretty url's for topic's
Hello, I'm trying to install today's 2.0 RC4 security patch, but it conflicts with prettyurl in /Sources/QueryString.php:
The patch want to replace this:
// Now make absolutely sure it's a number.
$board = (int) $_REQUEST['board'];
With this:
// Now make absolutely sure it's a number.
$board = (int) $_REQUEST['board'];
$_REQUEST['start'] = isset($_REQUEST['start']) ? (int) $_REQUEST['start'] : 0;
But it finds this:
// Now make absolutely sure it's a number.
// Check for pretty board URLs too, and possibly redirect if oldschool queries were used.
$_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
$context['pretty']['query_string']['board'] = $_REQUEST['board'];
if (is_numeric($_REQUEST['board']))
{
$board = (int) $_REQUEST['board'];
if (!isset($_REQUEST['pretty']))
$context['pretty']['oldschoolquery'] = true;
} else {
$pretty_board_lookup = unserialize($modSettings['pretty_board_lookup']);
$board = (int) isset($pretty_board_lookup[$_REQUEST['board']]) ? $pretty_board_lookup[$_REQUEST['board']] : 0;
// Fix $_REQUEST for silly mods that don't check $board
$_REQUEST['board'] = $board;
}
Which is the right way to apply the patch here?
Thank you in advance.
Seems to be two bugs in the current version (1.0RC5). I'm testing on a completely fresh installation of SMF 1.1.13.
Firstly, the Pretty URLs Administration page always reports the current version as 1.0RC2 even though it's RC5 that's been installed.
Secondly, the Forum Error Log fills with errors once re-writing is enabled. Examples are:-
http://localhost/index.php?action=admin;area=pretty;sa=test
8: Undefined index: members_title
File: D:\Inetpub\wwwrootSources\PrettyUrls-Tests.php
Line: 20
http://localhost/index.php?action=admin;area=pretty;sa=test
8: Undefined index: search
File: D:\Inetpub\wwwrootSources\PrettyUrls-Tests.php
Line: 19
http://localhost/index.php?action=admin;area=pretty;sa=test
8: Undefined index: help
File: D:\Inetpub\wwwrootSources\PrettyUrls-Tests.php
Line: 18
http://localhost/index.php?action=admin;area=pretty;sa=settings;save
8: Undefined index: queryless_urls
File: D:\Inetpub\wwwrootSources\PrettyUrls.php
Line: 131
http://localhost/index.php?action=admin;area=pretty;sa=settings;save
8: Undefined index: queryless_urls
File: D:\Inetpub\wwwrootSources\PrettyUrls.php
Line: 125
As I said, this is a completely fresh installation of SMF 1.1.13 with no other mods installed and using only the default theme.
Installing on 2.0 RC5, but its saying that mod is either corrupt or not compatible with this version of smf.
Can anyone please give me a hand? The error and file that needs to be edited is on the previous page.
Quote from: ukhalik2 on February 12, 2011, 01:42:35 PM
Installing on 2.0 RC5, but its saying that mod is either corrupt or not compatible with this version of smf.
Fixed
Quote from: vbgamer45 on February 13, 2011, 12:34:36 PM
Quote from: ukhalik2 on February 12, 2011, 01:42:35 PM
Installing on 2.0 RC5, but its saying that mod is either corrupt or not compatible with this version of smf.
Fixed
Thanks! Working Pretty awesome now ;D
Where to find Global Headers Footers?
I have installed Global Headers Footers mod but i cant find it in my menus, where i can find it? please help me friends
Is there a better place to ask for help with this mod? (One long thread seems odd.) If so, let me know. Otherwise...
I have SMF 2.0 RC5 with Pretty URLs 1.0 RC5. Pretty URLs works, but my old links from Google (e.g. the corresponding ugly URLs) cause a redirect loop. As a result, I've effectively cut off all traffic from Google rather than enhancing it. I disabled the mod for the time being. Any idea what the problem is?
I had redirect loop errors before, but only on boards with apostrophies, and I fixed those. This problem seems to effect all Google links.
Quote from: Frestorm on May 16, 2009, 10:33:22 AM
xxx.com/adjasjkdkjas
No 404 why ?
QuoteBecause the default is to assume a board. If you want, you could change SMF to set the status to 404 on boards that don't exist.
how i can do that?
QuoteWhen I use quick reply, I't redirect to the old domain like: index.php/topíc.0...... and it make a redirect loop!
I have fixed this by..... uninstall the Mod, disable Search engine Freingly url, reinstall the mod!
Is this a bug!?
Quote from: MATTEK on February 13, 2011, 11:44:11 AM
Can anyone please give me a hand? The error and file that needs to be edited is on the previous page.
Beuler?
after installation when i make new post using Ajax Quick Reply it does not show new post immediately (as ajax works) but when i refresh the page i can see the new post. i think it is something related to above post..
Waiting for the fix..
If you are rewriting actions I suggest to disable it and see if that helps.
no i am rewriting boards and topics only.. nothing else.. and i think that is appropriate..
i'm experiencing one more problem..
i have many folders in my smf directory.. like public_html/iqrahhshootz .. this directory is for another addon domain.. www.iqrahhshootz.tk
this site was working fine before.. but now it is not working...
same case is with public_html/intro .. it redirects to www.amigozone.com (my main website where Pretty Urls is installed)
help me please :(
Edit : i am not able to visit my Browse Packages page... it takes me nowhere.. :(
Quote from: MATTEK on February 09, 2011, 11:03:12 PM
Error installing on Sources/Subs.php
I've tried editing, but I can't find // Maybe integrations want to change where we are heading?
Please?
I have the same problem, can you please help me?
Use SMF 2.0 rc3
Quote from: !RFAN on February 15, 2011, 08:11:01 PM
after installation when i make new post using Ajax Quick Reply it does not show new post immediately (as ajax works) but when i refresh the page i can see the new post. i think it is something related to above post..
Waiting for the fix..
Before you install Pretty URL Mod, have you enable Search Engine Feindly Url (deafault function of SMF)!?
If true, try uninstall the mod, this able it, and reinstall!
Quote from: alexit84 on February 12, 2011, 05:06:50 AM
Hello, I'm trying to install today's 2.0 RC4 security patch, but it conflicts with prettyurl in /Sources/QueryString.php:
The patch want to replace this:
// Now make absolutely sure it's a number.
$board = (int) $_REQUEST['board'];
With this:
// Now make absolutely sure it's a number.
$board = (int) $_REQUEST['board'];
$_REQUEST['start'] = isset($_REQUEST['start']) ? (int) $_REQUEST['start'] : 0;
But it finds this:
// Now make absolutely sure it's a number.
// Check for pretty board URLs too, and possibly redirect if oldschool queries were used.
$_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
$context['pretty']['query_string']['board'] = $_REQUEST['board'];
if (is_numeric($_REQUEST['board']))
{
$board = (int) $_REQUEST['board'];
if (!isset($_REQUEST['pretty']))
$context['pretty']['oldschoolquery'] = true;
} else {
$pretty_board_lookup = unserialize($modSettings['pretty_board_lookup']);
$board = (int) isset($pretty_board_lookup[$_REQUEST['board']]) ? $pretty_board_lookup[$_REQUEST['board']] : 0;
// Fix $_REQUEST for silly mods that don't check $board
$_REQUEST['board'] = $board;
}
Which is the right way to apply the patch here?
Thank you in advance.
Same problem here, any ideas? thanks.
Find
// Now make absolutely sure it's a number.
Add after
$_REQUEST['start'] = isset($_REQUEST['start']) ? (int) $_REQUEST['start'] : 0;
i installed this mod. but when posting new topic or editing topic getting redirection error.
Quote from: Jeet Chowdhury on February 16, 2011, 03:03:23 PM
i installed this mod. but when posting new topic or editing topic getting redirection error.
same thing here
Quote from: bombasa on February 16, 2011, 05:28:39 PM
Quote from: Jeet Chowdhury on February 16, 2011, 03:03:23 PM
i installed this mod. but when posting new topic or editing topic getting redirection error.
same thing here
I had the same problems too.
Searching this topic I found the answer.
You have to go into the PHP Admin for your database SMF_Settings, Find queryless_url and set it from 1 to 0.
If you do a search you will find a better explanation.
Thank you, solved !
can anybody tell me how can i completely remove all the effects of this mod from my forum..
Problems even after un-installing this mod..
my other websites in the sub folders of forum folder are not working..
i cannot use Ajax Instant Quick Reply
OR
Please anybody tell me how this mod can be installed without getting any problem??
Problems after installation
I cannot Open "Browse Packages" page
I cannot remove/modify posts/polls
+ the problems after un-insalling this mod
Btw.. have anybody installed this mod and it is working properly as it should without any problem??
I'm curious..
Maybe i'll use this mod in future when i'll have enough time to spend on it...
Edit.. i'm rewriting topics and Boards only..
I have applied queryless_url settings as well.. but no luck :(
after restoring my old .htaccess file now my other websites are working properly..
If you cannot reply
Maybe beacuse you have enable Search engine freindly url before.
Try to:
1. Unstall the Mod
2. Turn off Search engine friendly url
3. reinstall it.
^^ i have tried this many times..
and i think this mod disables Search engine friendly url by default...
Quote from: Angel Muñoz on February 16, 2011, 05:45:01 AM
Quote from: MATTEK on February 09, 2011, 11:03:12 PM
Error installing on Sources/Subs.php
I've tried editing, but I can't find // Maybe integrations want to change where we are heading?
Please?
I have the same problem, can you please help me?
Use SMF 2.0 rc3
Seems as if I'm being ignored. Good luck getting any help.
QuoteSeems as if I'm being ignored. Good luck getting any help.
Seems like maybe you should update SMF on the basis that it says 'updated for 2.0 RC5'
Quoteand i think this mod disables Search engine friendly url by default...
It disables the option, certainly, and I think lately it also disables the setting too.
It does that's the part that I find strange as soon as they attempt to enable rewiting urls it should turn it off if it was enabled.
i really want this mod to work perfectly.. any suggestion or environment in which it will work without any problem?
A note to all:
When upgrading SMF 2.0 to RC5, Pretty URLs gets disabled - you will need to reinstall.
Mark.
Quote from: Arantor on February 17, 2011, 11:57:11 AM
QuoteSeems as if I'm being ignored. Good luck getting any help.
Seems like maybe you should update SMF on the basis that it says 'updated for 2.0 RC5'
Quoteand i think this mod disables Search engine friendly url by default...
It disables the option, certainly, and I think lately it also disables the setting too.
Seems like you should mind your own business. I don't wanna have to go through reinstalling all my mods and and reconfiguring my template and menus etc. It was difficult work. Some of us have lives and it's hard to dedicate our entire day to learning this stuff.
It's one edit. Please.
Point is the code's changed. You really should upgrade to RC5 due to the multiple security fixes, one of which alters that edit...
Quote from: Arantor on February 19, 2011, 04:03:09 PM
Point is the code's changed. You really should upgrade to RC5 due to the multiple security fixes, one of which alters that edit...
Funny how the parse dropdown has RC3 as an option then, isn't it?
It's one edit. If you could even tell me where to put it I'd be thankful. I couldn't find the line it asked me to replace is all.
QuoteFunny how the parse dropdown has RC3 as an option then, isn't it?
The parse dropdown has every possible version of SMF ever released in it, that's hardly a strong argument. All it means is 'try to find instructions in the mod package for this version of SMF'
So you have a modified file, with code in it that doesn't match this code, and you're expecting me to tell you where it is... but I can't see it. You need to upload it here.
Quote from: Arantor on February 19, 2011, 07:03:05 PM
QuoteFunny how the parse dropdown has RC3 as an option then, isn't it?
The parse dropdown has every possible version of SMF ever released in it, that's hardly a strong argument. All it means is 'try to find instructions in the mod package for this version of SMF'
So you have a modified file, with code in it that doesn't match this code, and you're expecting me to tell you where it is... but I can't see it. You need to upload it here.
Which I have. 4 Pages ago.
Quote from: MATTEK on February 19, 2011, 07:36:30 PM
Which I have. 4 Pages ago.
Two pages, don't be so dramatic. Anyway, the code the mod is looking for only exists in 2.0 RC4 and above, and you REALLY should upgrade for security reasons, but if you're determined not to upgrade to get the security patches, add the mod code above:
if (isset($modSettings['integrate_redirect']) && is_callable($modSettings['integrate_redirect']))
instead of the comment it's trying to find.
Arantor.. can u please help me in getting this mod work properly? i desperately need this mod :(
Quote from: !RFAN on February 19, 2011, 08:12:29 PM
Arantor.. can u please help me in getting this mod work properly? i desperately need this mod :(
No, I can't.
Quote from: Arantor on February 19, 2011, 07:50:25 PM
Quote from: MATTEK on February 19, 2011, 07:36:30 PM
Which I have. 4 Pages ago.
Two pages, don't be so dramatic. Anyway, the code the mod is looking for only exists in 2.0 RC4 and above, and you REALLY should upgrade for security reasons, but if you're determined not to upgrade to get the security patches, add the mod code above:
if (isset($modSettings['integrate_redirect']) && is_callable($modSettings['integrate_redirect']))
instead of the comment it's trying to find.
Thank you very much.
Quote from: Arantor on February 19, 2011, 07:50:25 PM
Quote from: MATTEK on February 19, 2011, 07:36:30 PM
Which I have. 4 Pages ago.
Two pages, don't be so dramatic. Anyway, the code the mod is looking for only exists in 2.0 RC4 and above, and you REALLY should upgrade for security reasons, but if you're determined not to upgrade to get the security patches, add the mod code above:
if (isset($modSettings['integrate_redirect']) && is_callable($modSettings['integrate_redirect']))
instead of the comment it's trying to find.
And I've emulated RC4 and successfully installed the RC4 patch. Haven't have a bot registration or logging issue since. I was previously getting pummeled by them.
if after installed this mod Pretty URLs 1.0RC5 with SMF 2.0 RC5, when posting new topic or editing topic getting redirection error.
1/ Go to PhpMyAdmin for edit the database
2/ Open the SMF database
3/ Open the table smf_Settings
4/ Search queryless_urls
5/ Set it from 1 to 0
Enjoy !
okay i'll remove ajax quick quick reply for this mod only...
just having one problem now... my other sites (which are in sub-folders to the main smf folder) are being redirected to my smf forum they are just not working
main site: http://www.amigozone.com
sub-site: http://www.iqrahhshootz.tk
what i have to add in .htaccess file or any other suggestion.. please help me :(
Define 'not working'. Bear in mind that cross-domain stuff almost never works properly anyway.
you can check it by urself..
main smf forum is : http://www.amigozone.com
site in sub-folder http://www.iqrahhshootz.tk or http://www.amigozone.com/iqrahhshootz
another http://www.iqrahhshootz.tk/wp or http://www.amigozone.com/iqrahhshootz/wp
^^ this works on http://blog.iqrahhshootz.tk but if i click o any post then it will not show the page..
thanks for reply :)
And no doubt the whole nature of having domains for separate areas is at least partly to blame, the Internet is just not designed for doing that.
Quote from: nvcnvn on February 15, 2011, 07:47:57 PM
QuoteWhen I use quick reply, I't redirect to the old domain like: index.php/topíc.0...... and it make a redirect loop!
I have fixed this by..... uninstall the Mod, disable Search engine Freingly url, reinstall the mod!
Worked for me too, thanks! I was getting a redirect loop with the old urls e.g. in old e-mail "someone has replied to your topic" links - and linkback urls at bottom of posts. Presumably also google searches too.
Uninstall, go to Features and Options in the Admin, then disable Search Engine Friendly, reinstall and that fixed the redirect loop for me. This was with smf 1.1.3 btw and the prettyurls-1-0RC5.zip
Quote from: Arantor on February 20, 2011, 10:07:10 AM
And no doubt the whole nature of having domains for separate areas is at least partly to blame, the Internet is just not designed for doing that.
So i have to move my other sites to somewhere else ???
i mean on any other host or i have to move my forum in a separate folder??
Is it true that when I install pretty url mod, base is growing much more than usual. A few of my friends complained about that.
I use pretty url and I am satisfied for now.
Hi,
I installed this mod and it's working great in my forum.
I just found out that there's an error when I checked my error log.
http://www.ourbabybits.net/index.php?amp;topic=301.0
Undefined index: pretty_enable_filters
/home/ourbabyb/public_html/Sources/Display.php
Line: 85
Line: 85
==>85:if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
SMF: SMF 2 RC5
Theme: Fuzzy
Cheers to all
That should always be set but you can change $modSettings['pretty_enable_filters'] to @$modSettings['pretty_enable_filters'] to ignore the error.
thanks @vbgamer45! that solved my issue!
Cheers!
Or how about doing it properly:
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && !empty($modSettings['pretty_enable_filters']))
Using @ to suppress errors when you *know* there's going to be an error is not only slower than dealing with it properly, it's also bad form.
Thanks Arantor for replying.
I copied and replaced that line.
Although I really don't have idea what the codes does now I learned that putting '@' just supress the error.
The @ is just literally to suppress the error, which makes PHP jump through hoops to force it to be suppressed.
What the code is going is saying:
if (the URL that was given was a standard index.php?topic=123 type URL)
and (the board given in the URL doesn't look the same as the board name we should have)
and (pretty URLs is enabled)
then go and do some stuff
The last part was failing, because if pretty URLs wasn't fully enabled, that entry in $modSettings wouldn't exist. But instead of just masking the fact it doesn't exist and masking the error, it should really *check*.
That was really informative @Arantor!
Thank you for sharing your time to explain what that code was about.
What about that issuse? I am using the newest version of pretty urls, ofcourse. http://code.google.com/p/prettyurls/issues/detail?id=117
I mean after posting it won't return to the page, just shows and error that firefox detected something wrong with redirects.
I'm having problems with Rel Canonical, and I'm not shure if its related with this mod. What do you think?
I posted here my problem: http://www.simplemachines.org/community/index.php?topic=419610.0
Quote from: JereManU on February 23, 2011, 05:43:21 AM
What about that issuse? I am using the newest version of pretty urls, ofcourse. http://code.google.com/p/prettyurls/issues/detail?id=117
I mean after posting it won't return to the page, just shows and error that firefox detected something wrong with redirects.
Check out this post
http://www.simplemachines.org/community/index.php?topic=146969.msg2961322#msg2961322
Just updated from 2.0RC4 to RC5.
Installed the latest Pretty package from the downloads area.
Now getting the following error codes:
8: Undefined index: pretty
Apply Filter: Only show the errors from this file
File: /home/uscleane/public_html/smf/Sources/Display.php
Line: 85
and
8: Undefined index: pretty
Apply Filter: Only show the errors from this file
File: /home/uscleane/public_html/smf/Sources/MessageIndex.php
Line: 61
From the Pretty Admin panel I tested to see how it works (as it suggests) Topics are the only thing that seemed to work?
Been using this mod on RC4 and it was working great.
HELP!!!
i installed this mod and now my links are all broken. the forum index to topic page works, but when i try to read any of the posts they all come up broken. i have uninstalled this mod and it still is not working. please advise on how to get my forum back.
www.themagicinpixels.com/forum
2.0rc5 with latest version of this mod
i fixed it for now by copying a backed up version of .htaccess and replacing the one that is causing the errors. is that the proper solution or should i find another way so it isn't just a band-aid?
Quick Question - If you own a big board, will implementing this mod cause any immediate harm for search engine results?
I'm sure this has been answered but I'm not searching through 300 pages.. lol
Of course it will, it will for any size forum since overnight all the links change.
Well, that depends on how eager the search engines are to follow 301 redirects.
Doesn't change the fact that there is a delay between search engines having content and them updating their indexes to match what's out there. I have yet to see a site fail to drop ranking when starting out with this mod.
(Mind you I have yet to see a site improve its ranking when using it either, it almost always improves its rank not because of using nice URLs but because they're paying attention to adding other stuff that improves ranking, like content)
You are right Arantor. i can see a decline in my Google Webmaster Tools. But my forum is new and i hpe i will get my position back very soon. ( by adding other material that improves SEO)
how long does it take to parse the links through? i installed this mod and it hosed all of my links to my posts so i removed it quickly.
Arantor, well yeah, there are reasons I didn't portray it as a SEO tool but as a people tool.
Quote from: Dannii on February 25, 2011, 07:04:43 PM
Arantor, well yeah, there are reasons I didn't portray it as a SEO tool but as a people tool.
*nods* Sadly people keep using it as an SEO tool because they think it'll help them boost their rankings. It is a people tool, and it's a good one for people.
There is some seo benefit since it basically stuff's the page with keywords and the page url is highlighted when do a google search with that phrase so kind of makes the page stand out a little more in the search results.
But if you are already indexed would not suggest it if it is a large site.
QuoteThere is some seo benefit since it basically stuff's the page with keywords
Google hasn't considered the URL's terms itself for a while, and generally disregards links in the context of a page for ranking purposes - doubly so with the changes being rolled out at the moment.
Quotethe page url is highlighted when do a google search
That's not a search engine ranking benefit (i.e. not SEO), purely a click-through benefit. The exact effect varies, sort of depends whether you have nice users who write meaningful subjects or users who write bad subjects - I still fail to understand why people insist on trying to 'optimise' content that they have little real control over.
Hi Guys
Ive upgraded to RC5 & Reinstalled Pretty URLs
But it on longer redirects me to
http://mysite/forum/index.php?action=forum
but to
http://www.mysite.co.uk/forum/forum
any suggestions please
Thanks in advance
disable action rewriting
hello, I was looking through this and saw problems posted like mine where the site redirects to the old urls (index.php?board=51.0) when performing certain functions and thus shows a blank page.
People were saying to, uninstall PrettyURL > disable SEO > reinstall. I thought SEO was already disabled for me when I installed the first time and when I checked it was already disabled/unchecked.
So I went ahead and reinstalled PrettyURL and I'm still having the same issue. Any ideas on what needs to be done?
Can someone explain why this mod doesn't turn foreign characters into Latin alphabet ones? For example, I make a topic with title 'ą č ę ė į š ų ū ž' but instead the URL becomes '261-269-281-279-303-371-363-3'. I added the correct foreign characters that I want it to change to Subs-PrettyUrls.php. I am using 0.9 version on another install and it works fine. I'm having this problem with 1.0RC5.
Edit: nevermind!! For some reason my database encoding was latin_swedish_ci or whatever. I converted to UTF8 using SMF's built-in converter tool. All's good now :)
Thank you for a great Mod. I have a question, I have seen a few indications in this tread but no real answer or solution to this. I would apprecieate an explanation and maybe some instructions on this
- The database table pretty_url_cache is getting real huge more than 200 MB
- the table SMF_messages is only 50MB, how the hell can the cache database get so incredible big
- What exactly is this cache table doing, can I just empty the table and let it start all over? Will the mod still work good enough?
- How can I prevent this table get so enourmous?
Thanks a lot for helping me on this
The cache is storing all the url's for each topic and actions which will cause the cache to get big. If you empty the cache you will loose the urls and will regenerate them but they maybe different that original which would be bad for rankings.
Hello vbgamer,
Is prettyurls-extras-1.0-RC2.zip also updated for SMF2.0RC5?
Thanks,
Vincent
Attached google code having issues with uploads
Thank you for updating!
I got an error, when ever i post a new thread or a new reply it return with below broken / not working url
http://myforum.com/index.php/board,1.0.html
instead of
http://myforum.com/board-name/
How to fix this, using SMF 2.0 RC5
Disable sef urls in SMF those old style urls won't work.
Quote from: vbgamer45 on March 11, 2011, 04:43:38 PM
Disable sef urls in SMF those old style urls won't work.
Which one is working
This one
http://myforum.com/index.php/board,1.0.html
Or This one.
http://myforum.com/board-name/
Updating to smf2.0RC5 went fine, without errors!!
Great job!
Wich version is better? Pretty URLs 1.0 RC5 or Pretty URLs 1.0 RC2 Extras?
Extras is a package for Prettyurls that adds some extra filters for mods.
Wich mods?
Mostly my mods and some others such as tinyportal.
So, wich one is better?
You need the Pretty Urls normal base to use pretty urls extras.
Hi Everyone,
How my robots.txt should look like after I installed Pretty URLs?
My forum is on a sub-domain: forum.domain.com
I would like to have a robots.txt that is Google-friendly. Please help. Thank you.
How can i change rewrite rules to make url's from
example.com/board/topic/
to
example.com/board/topic.html
Quote from: adi1166 on March 13, 2011, 02:14:37 PM
How can i change rewrite rules to make url's from
example.com/board/topic/
to
example.com/board/topic.html
For what purpose, exactly? In theory you could but the chances of it breaking something else are rather high...
Simple SEF can do that.
pretty urls broke my edit profile. Anyone else experiencing this? If I turn off pretty urls, edit profile will work. If I use the skip "profile" action for pretty urls. My edit profile still don't work. ;\
Do you have something in your error log?
Nothing in my error log. It just displays a blank page. Nothing else.
www.phpengines.info
user: heya
pass: heya
if neone wants to see for themselves.
I am reiterating my concern...
Please help me. I want an seo-friendly robots.txt for my smf site. But I think the format should be different since I'm already using the PRETTY URLs mod. By using that mod, the URLs have changed, so the robots.txt format should change too?
My forum domain is: sub.domain.com
Thank you.
I don't know i never touched robots.txt my file myself big concerns over blocking legitimate content.
I was trying to install the pretty url mod prettyurls-1-0RC5.zip.And i was successful in installing the mod.Now the problem that i faced is that when i try to post the new topic or reply the pretty url changes from
this http://myforum.com/fun/joke/ TO this http://myforum.com/index.php/topic,2333.new.html#new.And my site goes down and shows following error The page isn't redirecting properly, although no matter topic is posted successfully.and after posting topic the post url is also shows correctly
Kindly help me
regards
Quote
1/ Go to PhpMyAdmin for edit the database
2/ Open the SMF database
3/ Open the table smf_Settings
4/ Search queryless_urls
5/ Set it from 1 to 0
Quote from: humbleworld on March 15, 2011, 07:05:19 AM
I am reiterating my concern...
Please help me. I want an seo-friendly robots.txt for my smf site. But I think the format should be different since I'm already using the PRETTY URLs mod. By using that mod, the URLs have changed, so the robots.txt format should change too?
My forum domain is: sub.domain.com
Thank you.
For pretty URLs you don't have to change the robots.txt
The best way is to look in the Google howto's on the google webmasterstools. There you can find all information needed for the robot.txt
The minimal robots.txt is:
User-agent: *
Disallow:
At Disallow you can place the dir's or files that not must be indexed by google:
Disallow: /Themes
Quote from: FounderSim on March 14, 2011, 02:43:14 PM
pretty urls broke my edit profile. Anyone else experiencing this? If I turn off pretty urls, edit profile will work. If I use the skip "profile" action for pretty urls. My edit profile still don't work. ;\
anybody?
Did you checked your error log?
Quote from: Masterd on March 17, 2011, 07:14:32 AM
Did you checked your error log?
again yes. there is none =0
See if disabling action url rewrites helps
Hello,
I've installed Pretty URLs 1.0RC4 on my SMF forum 1.1.13. It's working well.
Now I would lile to hide silently (rewrite) the real subfolders of the forum, to not show the real URL in the bar.
Like that:
https://www.domaine.info/forum/SMF1113/topicABCD/ ==> https://www.domaine.info/topicABCD/
How can I do please? Thanks.
Why not just move the forum from /forum/SMF1113/ to / and be done with it?
Quote from: Arantor on March 20, 2011, 12:32:56 PM
Why not just move the forum from /forum/SMF1113/ to / and be done with it?
I want to show to the user another tree than the reality.
Quote from: syrinx75 on March 20, 2011, 12:53:53 PM
Quote from: Arantor on March 20, 2011, 12:32:56 PM
Why not just move the forum from /forum/SMF1113/ to / and be done with it?
I want to show to the user another tree than the reality.
@vbgamer45:
Is a way to include in Pretty URLs a rewrite to hide the
subfolders? Like that:
https://www.domaine.info/forum/SMF1113/topicABCD/ ==> https://www.domaine.info/topicABCD/
No way to do built in.
Quote from: vbgamer45 on March 20, 2011, 10:00:08 PM
No way to do built in.
Sorry, I'm not a specialist. Could you explain why it's not possible? Due to httpS?
I mean to rewrite to hide the folders.
Quote from: syrinx75 on March 20, 2011, 03:28:08 PM
Quote from: syrinx75 on March 20, 2011, 12:53:53 PM
Quote from: Arantor on March 20, 2011, 12:32:56 PM
Why not just move the forum from /forum/SMF1113/ to / and be done with it?
I want to show to the user another tree than the reality.
@vbgamer45:
Is a way to include in Pretty URLs a rewrite to hide the folders? Like that:
https://www.domaine.info/forum/SMF1113/topicABCD/ ==> https://www.domaine.info/topicABCD/
There is no support in Pretty URLs to hide folders like that, because it's *just not designed for that purpose*. In fact trying to mask folders like that could give you no end of problems, while moving it won't.
what will happen if someone posts a new topic with the same title as the old one ? what will be the url then ?
I believe it adds the message id after it.
you are not sure ?
I too need a robots.txt since I'm using pretty url's. Don't know why there aren't any good ones, we all use the same SMF with the same directories and folders.
Do any of you look at your url's indexed on google search results? I have a ton of duplicate material, I have been spending hours working on the robots.txt file testing url combos that will block Google from indexing. The two I'm really having a heck of a time with are these which were original posts that were moved and then deleted, can't find a way to stop google from indexing "moved" topics:
I need to block these as well, note they all have the "/moved- something/" suffix
http://treasuredigging.com/off-topic/moved-happy-birthday-buttonboy/
http://treasuredigging.com/off-topic/moved-happy-birthday-eastharlemghost/
http://treasuredigging.com/off-topic/moved-happy-birthday-olepossum/
Here is a new one, Google is now indexing the original posts as well as the individual replies, they look like this:
1.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3593/
2.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3561/
3.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3567/
What is the Disallow: * code for the 2 exmples above?
For all you cats having problems with a redirection error after posting new topics replies etc
step 1
uninstall pretty urls
uninstall simple portal
step 2
go to admin > features and options
uncheck search engine friendly urls
step 3
install pretty urls
install simple portal
the redirect error should be gone now...
Can we get a complete, working robots.txt that will handle the way the URL's get re-written via pretty URL's?
I need to block these, note they all have the "/moved- something/" suffix
http://treasuredigging.com/off-topic/moved-happy-birthday-buttonboy/
http://treasuredigging.com/off-topic/moved-happy-birthday-eastharlemghost/
http://treasuredigging.com/off-topic/moved-happy-birthday-olepossum/
Here is another one, Google is indexing the original posts as well as the individual replies, they look like this and all have the /msg"post#"/ suffix.
1.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3593/
2.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3561/
3.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3567/
What is the Disallow: * code for the 2 examples above?
I'm using the Default Core vers. 1.1.13 and this is the third time I'm asking for support.
Can we get a complete, working robots.txt that will handle the way the URL's get re-written via pretty URL's?
I need to block these, note they all have the "/moved- something/" suffix
http://treasuredigging.com/off-topic/moved-happy-birthday-buttonboy/
http://treasuredigging.com/off-topic/moved-happy-birthday-eastharlemghost/
http://treasuredigging.com/off-topic/moved-happy-birthday-olepossum/
Here is another one, Google is indexing the original posts as well as the individual replies, they look like this and all have the /msg"post#"/ suffix.
1.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3593/
2.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3561/
3.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3567/
What is the Disallow: * code for the 2 examples above?
I don't know much about robots.txt so don't want to take a chance and block traffic that is important.
Quote from: TDNY on March 26, 2011, 08:49:39 AM
I'm using the Default Core vers. 1.1.13 and this is the third time I'm asking for support.
Can we get a complete, working robots.txt that will handle the way the URL's get re-written via pretty URL's?
I need to block these, note they all have the "/moved- something/" suffix
http://treasuredigging.com/off-topic/moved-happy-birthday-buttonboy/
http://treasuredigging.com/off-topic/moved-happy-birthday-eastharlemghost/
http://treasuredigging.com/off-topic/moved-happy-birthday-olepossum/
Here is another one, Google is indexing the original posts as well as the individual replies, they look like this and all have the /msg"post#"/ suffix.
1.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3593/
2.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3561/
3.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3567/
What is the Disallow: * code for the 2 examples above?
This mod has nothing to do with robots.txt so don't be surprised if you don't get help here.
Anyways, they should all be taken care of by the canonical URL, so you shouldn't need to deal with these.
If you absolutely insist, I'll give you a hint: Go to the top of the page and type robots.txt into the search box. Make sure that "this topic" is selected, and then press your enter key. From my memory not all search engines support wildcards but try it if you want (but then there's no requirement that they support robots.txt at all!)
Hello,
Please Help me in this case.
Currently if there is a topic which have brackets for example : Topic Title (abc)
then url comes with brackets in it..
www.domain.com/board/topic-title-(abc)
I don't want these brackets in url's as they are not good for search engines i want the urls like this..
www.domain.com/board/topic-title-abc
is it possible to have those brackets removed from the urls automatically ?
I have just started using this Mod today and I have noticed anything with a apostrophe in the Board title makes my forum time-out and not load the specific Board. I had to rename 3 of my Boards and didn't have a problem. I have turned this Mod off for now until I can figure out what I can do because when this renames somethings it will not load on my forums anymore.
I am using 1.1.13
Don't use 's some servers have issues with it.
I have a problem with this mod, given: Pretty URLS 1.0RC5 and SMF2 RC5.
I am getting the same error noted earlier by another person. The pretty URLs work for all topics and messages when viewed statically by the user - IE, not making thread changes.
But posting, editing or removing a message results in the Firefox error: "Problem Loading Page" and "The Page isn't redirecting properly". The URL being returned by SMF for the updated browser page upon submitting the edit is an old style URL that looks something like
...forum/index.php/board,6.0.html
But, any message removals or message posts do get done correctly. One has to go back to the forum and display the thread or topic list again.
So the specific thing that seems to happen is that while the pretty URLs are normally being generated when I browse pages or forums, a non-pretty plain URL (which doesn't get parsed correctly by .htaccess or something) is emitted when any thread changes are made by the user that cause the browser to be refreshed.
The PrettyURL mod appeared to install with no errors - with one weird issue that seemed to go away.
At the start of the "Install" mod, where the error pre-checking is done, there was one problem noted at step 16, for file ./Themes/default/ManageBoards.template.php: the "find/replace" was alleged to fail if the install was performed. I went ahead and installed the mod.
HOWEVER - inspection of that file after the mod was installed shows that the "replace" text shown in the manual file edits list actually succeeded (there is new code that matches the code shown in the manual file edits list.)
I've tried things like disabling all the pretty URL stuff in the Pretty URL controls, and then re-enabling them. Thinking that toggling the settings might nudge something to work. No effect.
Please advise.
Quote from: donw9876 on March 27, 2011, 12:06:40 AM
I have a problem with this mod, given: Pretty URLS 1.0RC5 and SMF2 RC5.
I am getting the same error noted earlier by another person. The pretty URLs work for all topics and messages when viewed statically by the user - IE, not making thread changes.
But posting, editing or removing a message results in the Firefox error: "Problem Loading Page" and "The Page isn't redirecting properly". The URL being returned by SMF for the updated browser page upon submitting the edit is an old style URL that looks something like
...forum/index.php/board,6.0.html
But, any message removals or message posts do get done correctly. One has to go back to the forum and display the thread or topic list again.
So the specific thing that seems to happen is that while the pretty URLs are normally being generated when I browse pages or forums, a non-pretty plain URL (which doesn't get parsed correctly by .htaccess or something) is emitted when any thread changes are made by the user that cause the browser to be refreshed.
The PrettyURL mod appeared to install with no errors - with one weird issue that seemed to go away.
At the start of the "Install" mod, where the error pre-checking is done, there was one problem noted at step 16, for file ./Themes/default/ManageBoards.template.php: the "find/replace" was alleged to fail if the install was performed. I went ahead and installed the mod.
HOWEVER - inspection of that file after the mod was installed shows that the "replace" text shown in the manual file edits list actually succeeded (there is new code that matches the code shown in the manual file edits list.)
I've tried things like disabling all the pretty URL stuff in the Pretty URL controls, and then re-enabling them. Thinking that toggling the settings might nudge something to work. No effect.
Please advise.
Same issue I am having.
I set this Mod up and ever since installing the Mod after posting a new thread topic Mozilla and IE both timeout, but the topic was successfully posted.
Check on the previous page for a fix.
Quote from: vbgamer45 on March 27, 2011, 12:28:42 AM
Check on the previous page for a fix.
You talking about this?
Quote from: tabletsdroid on March 24, 2011, 05:34:36 PM
For all you cats having problems with a redirection error after posting new topics replies etc
step 1
uninstall pretty urls
uninstall simple portal
step 2
go to admin > features and options
uncheck search engine friendly urls
step 3
install pretty urls
install simple portal
the redirect error should be gone now...
I was going to try these steps, but...
go to admin > features and options
uncheck search engine friendly urls
I am unable to locate the option for Search Engine Friendly URLS.
Should I uninstall SimplePortal and Pretty URLs and re-install? Will this help with the timeout redirect?
Yes it would
I just fixed the problem, using the same procedure noted by "xpub..." -
To answer
your question, xpub... - that option in Admin/Features and Options is hidden (apparently) when PrettyURLs is installed. Removing PrettyURLs will reveal it. (No kidding). Then you can uncheck it. This is why you have to uninstall PrettyURL first.
I did the procedure quoted below and it works. The redirect issue is gone. Crossing fingers.
Quote from: tabletsdroid on March 24, 2011, 05:34:36 PM
For all you cats having problems with a redirection error after posting new topics replies etc
step 1
uninstall pretty urls
uninstall simple portal
step 2
go to admin > features and options
uncheck search engine friendly urls
step 3
install pretty urls
install simple portal
the redirect error should be gone now...
Thanks to tabletsdroid and vbgamer for their help. Much appreciated.
Quote from: vbgamer45 on March 27, 2011, 01:01:56 AM
Yes it would
These steps did indeed fix my issue.
Next question...
Will there be a fix that will take parentheses out of the URL if they are in the thread title?
No
Please answer my question :(
Not possible without modifying prettyurls
Quote from: xpubstargamingx on March 27, 2011, 01:36:44 AM
Quote from: vbgamer45 on March 27, 2011, 01:01:56 AM
Yes it would
These steps did indeed fix my issue.
Next question...
Will there be a fix that will take parentheses out of the URL if they are in the thread title?
You can always just remove those rows from the big array in Subs-PrettyUrls.php, but it will only change new topics. Empty your pretty_topic_urls table for the rest.
Quote from: vbgamer45 on March 27, 2011, 06:56:52 PM
Not possible without modifying prettyurls
Then please tell me how to do it.. this mod still have something which are not good as SEO.. there should be no brackets () there should be no * there should be no ! and other symbols in the url's..
Urls always should be numeric from 0 to 9 and alphabetic from a to z....
Please tell me how to do it so if there title is
abc (2010)
url should be: /abc-2010
abc*zxc*
url should be: /abc-zxc (NOT /abc-*zxc*)
Please tell me the way to make it remove all symbols automatically and set a simple url
QuoteThen please tell me how to do it.. this mod still have something which are not good as SEO.. there should be no brackets () there should be no * there should be no ! and other symbols in the url's..
Urls always should be numeric from 0 to 9 and alphabetic from a to z....
Why do you say that? Those symbols are all perfectly fine! The specification for URLs says so. Check it yourself.
Running SMF 2 RC5 and Pretty URLs 2.0 RC5. Having the same problem as:
Quote from: MarkoKg on February 02, 2011, 10:54:41 AM
Hello there.
Ive been upgraded my forum from 1.1.12 to 2.0RC4, and i have a sort of "problem" with pretty urls mod.
Ive been using it on 1.1.12 forum too.
Then, i have a link like this:
http://www.samo-opusteno.info/forum/novi-clanovi/cao-svima-))))/
Thats ok, but when i upgraded, and installed pretty urls, the same topics looks the same way, i mean the link is the same, that is ok.
BUT...
When i am on forum index, my boards have links like:
http://www.samo-opusteno.info/forum/3/
All boards are numbered in link.
Also, i can browse the same forum with the link:
http://www.samo-opusteno.info/forum/novi-clanovi/
I dont understand how i have those 2 links. I want just last one to be displayed in forum index, and not numbered link.
Ive try mod mainteance, but it doesnt help.
Any suggestion?
Ive attached .htaccess file, if there can be a problem.
This does not solve my problem:
Quote from: 4LP3RUZ1 on February 04, 2011, 10:38:25 AM
@MarkoKg
You have to go into the admin center -> boards and categories and click the Pretty URL link next to all boards with numbered links. Then set the default to whatever you want and delete the numbers (or you can leave them)
Visiting MarkoKg Forum, shows it didnt work for him either...
PLEASE HELP =/
Can anyone teach me how to install this mod in RC2? Thanks in advance.
I strongly suggest upgrading to RC5 but if not there should be an emulate version number option in the package manager.
Hello,
Currently when we browse different pages of any board or any topic the title in browser is still the same as original..
is it possible to add page 2, page 3 in the titles which appears on browsers title (no changes in url) ?
for example
currently if there is a board Jokes and it have 30 pages. and we are on any page the title is same all the time. but I want if i am on page 5 the title of the page should be this
Jokes - Page 5
not only Jokes on all pages... is it possible ?? Please help
That's not really anything to do with this mod, please ask in the relevant support board.
Quote from: Rhandy on July 12, 2009, 10:33:00 PM
Hello Danii!
I have a problem with the Pretty URL Mod.
When the MOD is OFF, i can log in fine using Firefox and IE BUT, when I
turn on the MOD, I can log in without problems in Firefox. But in IE, when
I put the name and the password, I get the following error:
An Error Has Occurred!
You were unable to login. Please check your cookie settings.
But after it says that error, when I go to the Home, it's really logged in!
All my users are having this issue.
If you want to see it by yourself, go to: www.linksharez.net
Create an account and log in from FireFox and log out and then log in again
and you'll see that everything is fine. But try to log in from any version
of IE (Internet Explorer) and you'll see the error message.
What can I do?
I use SMF 2.0 RC1-1...
Thanks!
"You were unable to login. Please check your cookie settings."
The above error still happens on a SMF 2.0 RC5 on the Chrome browser mostly. It's hard to convince users to switch to a different browser. Can this be fixed somehow? Has anyone found a fix/hack?
Are your urls different?
Quote from: vbgamer45 on March 28, 2011, 05:30:57 PM
I strongly suggest upgrading to RC5 but if not there should be an emulate version number option in the package manager.
I would like to upgrade but I don't know how. Somehow I've tweak so many things mostly in index.template.php such as the menus, background image and etc. I don't know if I upgrade to RC5, everything will be back to normal or the interface still the same as I tweaked.
Has this mod been fixed so the newsletter function works now?
Do not use action rewriting and it will work ok.
Hello please need one small help on Pretty URLs 1.0RC5 SMF 2.0 RC5
All is working fine but when answer for some post / reply, post, and send post / its White page. When turn of Peatty all is working. Action buttom is ithi one index.php?action=post;topic=284.0;num_replies=2
I try to Skip Actions: post;topic but is not help me. Please help me what can be wrong. Thank you. Regards
ive installed it but doesnt seem to work =S
i have no idea if the required stuff is available =S and dunno hwo to check
Do you see Pretty Urls in your Admin area
Is it question for me? If yes, yes I can see in Admin. All is working good just post answer like me now is when submit is white page. Thank you
Hmm check your forum's error log for any related errors.
Hello, it was some old error logs, I deleted and try again. Again white page after turn on Preatty links / after submit answer / and nothing happen. After go to Error Log and is empty. When I uncheck boards on preatty configuration, is work submit. What can be? Any idea please??
Is it a specific board or all boards.
You can see there what I take out from rewrite http://www.kodo.cz/sample/2011-03-31_222327.png When is check, submit post is not working in all boards. Is white page after submit.
Hello again, now I see that also is not working delete. When try to delete my post, again is white page.
Regards, and thank you for help. Uf I am without idea...
Open your index.php main file in your forum
Find
<?php
Add after
ini_set("display_errors",1);
Then redo some of the actions that got a white page and see if anything appears
Hello, nothing is in error. In server is default ini display_errors 1, but I put also in php, and no error. Again is white page when answer and not I leave this page 15 minuts, nothing happen. Just white ... Very strange. In database I clean table with cache and urls. Not help. Please, any more idea.. Thank you
....I post before when delete is also white page. After delete is going forum/index.php/topic,1262.0.html and this link can not open. But when I turn of pretty link and delete the same post is is going this link: forum/index.php/topic,1308.15.html and delete was successful. Give me total different link when is turn on. Regards
Quote from: vbgamer45 on March 31, 2011, 12:54:44 PM
Do you see Pretty Urls in your Admin area
yes i c
i enable re-writing.. and then it says
Before enabling URL rewriting, please check that these rewritten links work.
but does not work
says page cannot be found =S
I installed now Pretty URLs 1.0RC5 on smf 1.1.13. It work fine, except when I write a new topic or reply to someone, or I move a topic; after I press the submit button Firefox show me an error page with explanation: "This page is not redirect in correct mode"... and more about the server dont redirect correctly the page. I tryed to empty cookies based on the suggestion of firefox with no luck. I precise that the new topic and reply are saved or moved on the forum anyway.
Thanks for your help.
@SilvioTO: the same issue here.
Read a couple posts pages back for queryless urls issue.
Ah! I found it after i posted :D
here is the link: http://www.simplemachines.org/community/index.php?topic=146969.msg3000288#msg3000288
Released 1.0 RC5.1
Changed that queryless urls are now disabled on install. For some reason had too many people having issues with queryless urls even the mod disabled them when you enabled pretty urls in the admin.
Very strange. I don't see how they could be affected by it considering that the mod gets rid of all the code which implements the built in queryless urls...
Yeah was not sure what was up with that but in the last 3 to 4 weeks seen a lot of people having issues with that issue and they had to disable queryless urls to have a fix. 3 of the people on this page had that issue....
Hey,
I installled pretty url, and it shows in Admin panel but it does not work
my forum : www.forums.tvkahani.com
I can see that htt file in my file manager
no page open and gives the cannot find server error =S
Stunning mod, thanks!
Tried the other SEF one first and all the pages gave errors.
This one was just a case of upload - do settings - test - wham bam thank you mam!
Using 2.0 RC5, blackbox theme.
PLEASE HELP!!
When I click the reply button on any post or create a new topic... it asks me log in (even though im already log in)
If i log in, it takes me to homepage, if i go to reply button or new topic again, it asks me to log in...
and it goes in that cycle.
If i disable pretty URLs, everything goes back to normal.
!!!
I have been using the sitemap mod in google webmasters without errors.
Installed pretty urls and now i get this error in my google webmaster
QuoteURLs not followed
When we tested a sample of URLs from your Sitemap, we found that some URLs redirect to other locations. We recommend that your Sitemap contain URLs that point to the final destination (the redirect target) instead of redirecting to another URL.
Please i really want to use pretty URLS, but i need my auto sitemap generator active and working.
Did pretty url rewrite the site map link too.
Solutions plz
What examples are they finding?
Quote from: XerraX on March 28, 2011, 03:02:30 PM
Running SMF 2 RC5 and Pretty URLs 2.0 RC5. Having the same problem as:
Quote from: MarkoKg on February 02, 2011, 10:54:41 AM
Hello there.
Ive been upgraded my forum from 1.1.12 to 2.0RC4, and i have a sort of "problem" with pretty urls mod.
Ive been using it on 1.1.12 forum too.
Then, i have a link like this:
http://www.samo-opusteno.info/forum/novi-clanovi/cao-svima-))))/
Thats ok, but when i upgraded, and installed pretty urls, the same topics looks the same way, i mean the link is the same, that is ok.
BUT...
When i am on forum index, my boards have links like:
http://www.samo-opusteno.info/forum/3/
All boards are numbered in link.
Also, i can browse the same forum with the link:
http://www.samo-opusteno.info/forum/novi-clanovi/
I dont understand how i have those 2 links. I want just last one to be displayed in forum index, and not numbered link.
Ive try mod mainteance, but it doesnt help.
Any suggestion?
Ive attached .htaccess file, if there can be a problem.
This does not solve my problem:
Quote from: 4LP3RUZ1 on February 04, 2011, 10:38:25 AM
@MarkoKg
You have to go into the admin center -> boards and categories and click the Pretty URL link next to all boards with numbered links. Then set the default to whatever you want and delete the numbers (or you can leave them)
Visiting MarkoKg Forum, shows it didnt work for him either...
PLEASE HELP =/
same here :'(
hello.
I'm trying to uninstall pretty urls from my forum, but the process encounters a error when i´m trying to uninstall.
here is what i´m getting:
Quote
1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test failed
1. Replace ./Sources/Admin.php Test failed
4. Execute Modification ./Sources/ManageErrors.php Test successful
5. Execute Modification ./Sources/ManageSettings.php Test successful
6. Execute Modification ./Sources/News.php Test successful
7. Execute Modification ./Sources/QueryString.php Test successful
8. Execute Modification ./Sources/Security.php Test successful
9. Execute Modification ./Sources/Subs.php Test successful
10. Execute Modification ./Sources/Subs-Post.php Test successful
11. Execute Modification ./Sources/Display.php Test successful
12. Execute Modification ./Sources/ManageBoards.php Test successful
13. Execute Modification ./Sources/MessageIndex.php Test successful
14. Execute Modification ./Sources/QueryString.php Test successful
15. Execute Modification ./Sources/Subs-Boards.php Test successful
16. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
17. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
18. Delete File ./Sources/PrettyUrls.php
19. Delete File ./Sources/PrettyUrls-Filters.php
20. Delete File ./Sources/PrettyUrls-Tests.php
21. Delete File ./Sources/Subs-PrettyUrls.php
22. Delete File Themes/default/PrettyUrls.template.php
23. Delete Tree Themes/default/pretty
24. Delete File Themes/default/languages/PrettyUrls.english.php
25. Execute Code uninstall.php
i need one help..
lett me explain.
domain is champions-side.com and forum is on the main place..i want to add a site /home..but when i type that..automatic redict to a forum..any help
Goto and visit Sub-directories can't be opened
http://code.google.com/p/prettyurls/wiki/TroubleShooting
I have installed Pretty URL here @ www.forums.tvkahani.com
but it does not work
after installing every page says cannot be found
Im not sure if i have the required files (how to check)
Check trouble shooting guide
http://code.google.com/p/prettyurls/wiki/TroubleShooting
can u further explain this?
Every link causes 404 Not Found errors
If after installing the mod every link is broken, there is probably a problem with your server (it may not support mod_rewrite or per-directory .htaccess configuration files). To fix the links so that the problem can be diagnosed and fixed, or so you can uninstall the mod, create a new .php file with this code:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_enable_filters' => '0'));
?>
Upload the file to the same location as your forum's SSI.php and open it with your web browser. Then don't forget to delete it!
Make a text file put the code in then run via web browser to turn off pretty urls
SO,
i should delete pretty url from admin panel..
then make a text file with this code and save it as abcd.php and upload it to server and then open it,right?
No just this part
then make a text file with this code and save it as abcd.php and upload it to server and then open it,right?
i saved it as .php, but it still is a txt file =S
and wat to do after removing it? install again?
link apears to be this
http://www.tvkahani.com/forums/abcd.php.txt
I think you must first set your Windows, Open explorer: Tools->Folder Options -> View - uncheck box: Hide extensions for known files types.
After rename again your .php file to have the .php extension, not .txt and upload it again.
BTW: Your smf copyright is in some way corrupted by others copyrights : http://www.forums.tvkahani.com/. (Is a bad policy by SMF that accept every mod to add copyright everywhere, I agree to add copyright on mod page but not on forum page, but this is their policy). I see few time ago an smf forum with 17 copyrights added by mods ofcourse, don't think this is to much ?
ive tried doing it but still saves the file as same =S
im so lost =(
as for the copyrite part.. yes it can get irritating, and makes the forum look a bit weak/unprof, but i guess there is nothing that we can do about it
This is your abcd.php with your write ed code:
Attached!
Upload him via ftp, I suggest you to use total commander software for ftp transfer.
Hi!
Is possible to use pretty urls with .html only for topics?
:D
Quote from: w3bm4st3r on April 11, 2011, 06:55:49 PM
Hi!
Is possible to use pretty urls with .html only for topics?
:D
For what benefit, exactly? Search engines do not care what extension the URL has.
Quote from: Arantor on April 11, 2011, 07:17:34 PMFor what benefit, exactly? Search engines do not care what extension the URL has.
Because seems more pretty for me :)
it doesn't work with non-English words such as Arabic, Persian, Hebrew (e.g درود بر شما) . is there any solution for this feature?
No solution only standard latin characters are supported at this time.
Hi everyone,
I started my own thread about this but was recommended to come here.
I have a small problem with my combination of ADK Portal and Pretty URLs.
My home page is the portal and then the main forum page is at /index.php?action=forum but then once you go into an actual board, Pretty URLs kicks in and I get /off-topic/ and /off-topic/hello-world/ for topics. I'd like help on getting the main forum page to just be /forum...
Thanks
Hello,
Loving this mod, now I tweaked it a little bit because some links were really ******ed up. All sign such as ()*!?-_ ect... I have replaced them in subs-prettyurl.php to *, so they no longer show, now somehow I have removed spaces being replaced by -, but I cant find where I did that, now all the topics are replaced by 1 long word :s
Any idea's?
ty
With the pretty Url installed, I have this issue of new messages. instead of displaying the newly posted message the page will keep running/loading until time-out but if the forum is refresh, you will actually see that the message is posted and display ok.
When I uninstall the pretty Url, this issue is solved.
I wish to keep the pretty Url mod installed, so help on how to deal with this error above will appreciated
Quote from: hadvisor on September 01, 2010, 04:10:22 AM
It took me half a day to figure this out and I thought I could give other the chance to spare that time on something more useful :)
Here's the idea: I found a dozen of solutions to the problem of making SMF work on Nginx + PrettyURL but _none_ worked (fully) for me so after a lot of struggle I figured out a solution that works for me and hopefully for others as well.
I use version 1.1.11 of SMF
The idea is to add in the host configuration these lines
if (!-e $request_filename)
{
# Rules for: profiles
rewrite ^/forum/profile/([^/]+)/?$ "/forum/index.php?pretty;action=profile;user=$1" last;
# Rules for: actions
rewrite ^/forum/(activate|admin|ads|announce|attachapprove|ban|boardrecount|buddy|calendar|clock)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(collapse|convertentities|coppa|credits|deletemsg|detailedversion|display|dlattach|editpoll|editpoll2)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(emailuser|featuresettings|findmember|groups|help|helpadmin|im|jseditor|jsmodify)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(jsoption|lock|lockvoting|login|login2|logout|manageboards|managecalendar|managesearch|manageattachments|maintain|markasread|mascot)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(membergroups|mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|news|notify)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(notifyboard|optimizetables|openidreturn|packages|permissions|pm|post|postsettings|post2|printpage|profile|quotefast)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(quickmod|quickmod2|recent|regcenter|register|register2|reminder|removepoll|removetopic2)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(repairboards|reporttm|requestmembers|restoretopic|reports|search|search2|sendtopic|serversettings|smileys|smstats|suggest)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(spellcheck|splittopics|stats|sticky|theme|trackip|about:mozilla|about:unknown)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(unread|unreadreplies|verificationcode|viewErrorLog|viewmembers|viewprofile|vote|viewquery|viewsmfile|who)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(\.xml|xmlhttp)/?$ "/forum/index.php?pretty;action=$1" last;
# Rules for: boards
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/?$ "/forum/index.php?pretty;board=$1.0" last;
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ "/forum/index.php?pretty;board=$1.$2" last;
# Rules for: topics
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ "/forum/index.php?pretty;board=$1;topic=$2.0" last;
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ "/forum/index.php?pretty;board=$1;topic=$2.$3" last;
rewrite ^/(.*)$ /index.php?params=$1 last;
}
I have installed nginx and looking to get pretty url working for this mod
I used this in my nginx.conf and the topics seem to redirect correctly.
But things like forum, media all the other links are not redirecting
Although it does show the URL in the browser correctly as it should be but its not on this page.
It just redirects to the home screen but the URL in the browser will be @
www.uniquez-home.com/v2/forum/
But I will be on the home page?
Can anyone help me fix this please.
I been searching and trying to get this right for a good day.
I am stuck :(
Thanks to the poster for this as it helps with some of the rewrites.. I just need help with the rest :(
The maintenance tasks are no longer working and nothing has changed on my forum since I installed this mod. Any suggestions? Uninstall/reinstall?
vbgamer45 I find a bug with Pretty urls and 'SMF default captcha'. I've ask here for support because when I request another captcha image it reload the entire page and not only image: http://www.simplemachines.org/community/index.php?topic=432282.0 and SlammedDime guess can be Pretty urls and suggest me to disable Pretty urls and to try again and he was right, Pretty urls cause this error.
So in fact the bug is: with Pretty urls and SMF default captcha if you request a new captcha image it reload entire page, and for example at register page if you request another image will reload page and sends you to the agreement again. And on forum posts and send PM is required for fist 5 posts/pm captcha and if you request another captcha image you must write again your text because it reload entire page.
I've check this issue on other SMF forum who use Pretty urls with 2.0 RC5 and the same problem.
I have SMF 2.0 RC5 (fresh install, not upgrade).
Can you help me please with what I must to edit/add and in which file please ?
10x in advance
EDIT: I've try the options:
1.Skip Actions List: register,post
2.Actions Rewrite Action URLs (ie, index.php?action=something) = unchecked, so disable.
After I check and isn't rewrite register,post but the same problem at SMF default captcha if I request another image at register page or post/pm it reload the entire page and on post or PM you must write again your post/pm because it reload entire page.
Man, installing this mod looks very risky considering all the problems people are reporting. Since Google doesn't consider "friendly urls" in it's ranking system, there doesn't appear to me much use for the mod other than to make the urls look pretty. In my case though, I would like to know if pretty urls could help me with a minor problem I'm having.
It may be due to the SMFBlog mod that was installed, but at the moment, I have multiple urls (each one with a different url query) pointing to the same webpage. This harms my page rank since each url is indexed, diluting my pagerank. I would like to know whether pretty urls will solve this problem.
The following urls on my forum point to the same page:
http://www.genshiken.uct.ac.za/
http://www.genshiken.uct.ac.za/index.php
http://www.genshiken.uct.ac.za/index.php?option=com_smfnews&Itemid=33
Someone suggested I use connonical meta tags, but this problem isn't only occuring with the above webpage, but with most of my other webpages as well. There appears to be a problem with the internal linking system, but I can't figure out what the cause is.
Would pretty urls fix this?
Could anyone please to help me to solve this bug with SMF captcha and Pretty Urls, request another captcha image reload entire page:
http://www.simplemachines.org/community/index.php?topic=146969.msg3031770#msg3031770
10x
Quote from: mariusfv on May 02, 2011, 03:38:49 AM
Could anyone please to help me to solve this bug with SMF captcha and Pretty Urls, request another captcha image reload entire page:
http://www.simplemachines.org/community/index.php?topic=146969.msg3031770#msg3031770
10x
Perhaps you can try using reCAPTCHA (http://custom.simplemachines.org/mods/index.php?mod=1044) rather than the default Visual Verification system. Since it's a different system, it might work, even though the default one does not.
reCAPTCHA isn't compatible with RC5, I installed with emulation but have a lot of technical bug after, for example if you try to post and is required recaptcha it tell you: you can't access this section, and all permissions are set ok .... and other technical bug....etc....this is why I don't use recaptch.
I see. Well, that's the main problem with updating a forum. Mods become incompatible. That's why I think it's better to wait a few months for mods to be updated before one updates his forum software, unless it's an urgent security update.
Well, either way, you're having issues with the default Captcha as well as reCAPTCHA, so even if you can't fix the problems caused by the default captcha, you might fix the ones for reCAPTCHA. So that's something you can try.
At the moment though, it's strange that there isn't anyone else experiencing your problem, so it may just be that the mod installation wasn't done properly. Perhaps you may want to try uninstalling the Pretty URL's mod, then reinstalling it.
I've uninstall Pretty urls, installed again, the install is success, but is a bug this mod with default smf captcha, it reload entire page on request another captcha image, and I find this bug on other 2 forums who use Pretty urls with smf default captcha, but the administrators of that forums have not observed this bug.
And yes, it seems here is too too quiet.
Solution is to uninstall this mod and leave it .
Yes, that seems the be the best solution at the moment. Pretty URLs doesn't serve any purpose other than to make the urls look nicer.
Hello!
QuoteFirst check again that your server supports mod_rewrite and .htaccess files.
How to do it???
Quote from: helike13 on May 03, 2011, 11:42:28 AM
Hello!
QuoteFirst check again that your server supports mod_rewrite and .htaccess files.
How to do it???
Either ask your website-host or check the cPanel account if you have server level access.
My girlfriend is the webhoster she doesn't know what are these things.
So how should we check it? (She uses Apache)
I just dropped by to say thanks for Pretty URL. I've been using it from < 2008 and never upgraded since version 0.8.5 or something; Now I've finally decided to move up to 2.0 RC5 + latest Pretty URLs and everything worked so damn well. I was afraid that the links won't be compatible with the old version and the indexed URLs might not work, but they all do.
Great job!
Quote from: helike13 on May 03, 2011, 12:46:17 PM
My girlfriend is the webhoster she doesn't know what are these things.
So how should we check it? (She uses Apache)
She's a webhost but she doesn't know what .htaccess nor mod_rewrite is? You guys should do your homework.
Mod_rewrite is a feature of the Apache webserver software that allows the rewriting/renaming of URL's (i.e. web addresses). It is activated and controlled by entering the relevant lines as text in a .htaccess file. This file should be located in the forum's root directory, but if there isn't one, then one can be created.
QuoteMod_rewrite is a feature of the Apache webserver software that allows the rewriting/renaming of URL's
She says it is called rewrite_module
Mod_rewrite is the name of the module file which contains the module's code, while rewrite_module is a word used to identify the module for use in LoadModule.
Basically they are words that refer to two very closely connected, almost identical things.
After install i got an error with my sitemap. I excluded the sitemap action but it doesnt want to work.
the XML file gives the error. here is a link to the problem, click on xml.
http://www.info-hype.com/index.php?action=sitemap
The maintenance tasks are no longer working and nothing has changed on my forum since I installed this mod.
Any suggestions? Uninstall/reinstall?
Trying to uninstall prettyurl from my SMF 1.1.13 but test fails at subs.php,
so I decided to it manualy for subs.php but failed as a novice php user, since pretyyurl replaces code,
in stead of adding before or adding after. Also there are some more mods in it.
My subs.php attached below.
I also attched the afterPrettyurlRemovalSubs.php , with this php, everything works except
admin> Forum error log > Remove all ... goes to a blank screen .. I had to restore the one with the
prettyurl mod to overcome.
Can any soul guy help me to extract prettyurl stuff according to the parsing
details for smf 1.1.13. It's quite urgent ....
All the best
when I disable pretty URL mod indexed links on google lead to blank pages?
That will happen
Quote from: reefforum on May 16, 2011, 02:58:28 PM
when I disable pretty URL mod indexed links on google lead to blank pages?
That will happen if you disable the mod you would need to use the url rewritter addon.
Quote from: vbgamer45 on May 16, 2011, 03:10:40 PM
That will happenQuote from: reefforum on May 16, 2011, 02:58:28 PM
when I disable pretty URL mod indexed links on google lead to blank pages?
That will happen if you disable the mod you would need to use the url rewritter addon.
thank you. where can I find that?
http://code.google.com/p/prettyurls/downloads/list
Get reverter
Quote from: vbgamer45 on May 16, 2011, 03:58:27 PM
http://code.google.com/p/prettyurls/downloads/list
Get reverter
installed converter, disabled pretty urls, still the same problem
Any thread with an exclamation point ! has issues.
Is there anything that can be done about this--other than asking people not to use !.
Or can I somehow prevent that character from being used in the topic start settings...?
I ended up enabling pretty URL's even though it has disabled site maps.
To clarify
Any thread with an exclamation point !
in the thread title has issues.
Is there anything that can be done about this--other than asking people not to use !.
Or can I somehow prevent that character from being used in the topic start settings...?
One of my moderators also reported this
QuoteStill getting this problem, couldn't access this notice directly from my email notification.... here's what it looks like:
http://mlcforum.midlifecrisismarriageadvocate.com/moderator's-board/problem-with-connecting-to-individual-threads/new/?topicseen#new
seems to be that comma after moderator that breaks up the thingy majiggy.
Thoughts?
Solutions?
Hello!
How to add custom URLs for the topics?
I mean: If I start a topic called "űrállomás", the topic URL will be localhost/forum/rallomas. How to change it to localhost/forum/urallomas?
In case of forums, it is possible, is it possible at topics? If not, can I specify a new URL rewrite behaviour that replaces ő character with o and ű character with u?
Hi
When I try to upgrade to 1.1.13 /Sources/QueryString.php - test failed
Here is the original code in QueryString.php
// Now make absolutely sure it's a number.
// Check for pretty board URLs too, and possibly redirect if oldschool queries were used.
$_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
$context['pretty']['query_string']['board'] = $_REQUEST['board'];
if (is_numeric($_REQUEST['board']))
{
$board = (int) $_REQUEST['board'];
if (!isset($_REQUEST['pretty']))
$context['pretty']['oldschoolquery'] = true;
} else {
$pretty_board_lookup = unserialize($modSettings['pretty_board_lookup']);
$board = (int) isset($pretty_board_lookup[$_REQUEST['board']]) ? $pretty_board_lookup[$_REQUEST['board']] : 0;
where should I place code below ???
$_REQUEST['start'] = isset($_REQUEST['start']) ? (int) $_REQUEST['start'] : 0;
thank you in advance
Please plan to activate an area for links
Be given to the Arabic and Persian losses is also compatible
utf-8
Like the following address on any link can automatically and manually changed
www.------.com\زیرنویس\----------- persian
www.------.com\subtitle\----------- en
Some details?
Thanks.
Thanks for at least trying to answer this question, I am having the same issue, google webmaster tools complain that I have a lot of duplicated content since all these 3 messages contains the same content. I have used the "canonical" urls and it doesn't seen to remove them.
Since pretty url is a SEO mod, I think it should also consider the duplicated content as well as it's also very important for SEO.
Thanks for your advice. Hope we can figure out a solution soon.
1.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3593/
2.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3561/
3.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3567/
Quote from: Dannii on March 26, 2011, 10:18:18 AM
Quote from: TDNY on March 26, 2011, 08:49:39 AM
I'm using the Default Core vers. 1.1.13 and this is the third time I'm asking for support.
Can we get a complete, working robots.txt that will handle the way the URL's get re-written via pretty URL's?
I need to block these, note they all have the "/moved- something/" suffix
http://treasuredigging.com/off-topic/moved-happy-birthday-buttonboy/
http://treasuredigging.com/off-topic/moved-happy-birthday-eastharlemghost/
http://treasuredigging.com/off-topic/moved-happy-birthday-olepossum/
Here is another one, Google is indexing the original posts as well as the individual replies, they look like this and all have the /msg"post#"/ suffix.
1.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3593/
2.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3561/
3.http://treasuredigging.com/todays-digging/1-little-2-little-3-you-know-the-rest/msg3567/
What is the Disallow: * code for the 2 examples above?
This mod has nothing to do with robots.txt so don't be surprised if you don't get help here.
Anyways, they should all be taken care of by the canonical URL, so you shouldn't need to deal with these.
If you absolutely insist, I'll give you a hint: Go to the top of the page and type robots.txt into the search box. Make sure that "this topic" is selected, and then press your enter key. From my memory not all search engines support wildcards but try it if you want (but then there's no requirement that they support robots.txt at all!)
Just to answer my own previous question, here's the solution I got
/*msg* probably resolved this, and here's my robots.txt with pretty url.
QuoteUser-agent: *
Disallow: /Sources/*
Disallow: /Smileys/*
Disallow: /Packages/*
Disallow: /header/*
Disallow: /avatars/*
Disallow: /attachments/*
Disallow: /Themes/*
Disallow: /*sort
Disallow: /*sort,
Disallow: /*action=
Disallow: /*.new.html
Disallow: /*.msg
Disallow: /*.prev_next
Disallow: /help/
Disallow: /search/
Disallow: /admin/
Disallow: /pm/
Disallow: /login/
Disallow: /logout/
Disallow: /profile/
Disallow: /*msg*
Disallow: /1*
Disallow: /2*
Disallow: /3*
Disallow: /4*
Disallow: /5*
Disallow: /6*
Disallow: /7*
Disallow: /8*
Disallow: /9*
Disallow: /Themes/
Disallow: /stats/
Disallow: /gallery/
Disallow: /*;all
Disallow: /*;wap
Disallow: /*;wap2
Disallow: /*;imode
PenelopeQ, if you're having trouble with certain characters then remove them from the big array in Subs-PrettyURLs.php
helike13, you too will need to add that accented u to that array.
cr34t1v3, try uninstall this mod, then upgrading your forum, then installing the mod again.
pop_0098, sorry, there are no plans to support non-latin scripts.
coolfx350, only SMF 2.0 has canonical support. You can do it in the robots.txt, but I'd really recommend upgrading to 2.0 instead.
Quote from: Dannii on June 06, 2011, 12:21:54 PM
PenelopeQ, if you're having trouble with certain characters then remove them from the big array in Subs-PrettyURLs.php
Okay. But can you explain what that means? Sorry!
Can prettyurl reverter be upgraded to rc5 please? It has some undefined errors when using the one meant for rc2.
Grab them at http://code.google.com/p/prettyurls/downloads/list
Quote from: vbgamer45 on June 07, 2011, 02:21:47 PM
Grab them at http://code.google.com/p/prettyurls/downloads/list
VBGamer that one throws up a lot of Undefined errors
Currently with prettyurl i am getting
8: Undefined index: prettyFile: /mnt/stor3-wc2-dfw1/504406/590247/forum.sdx-developers.com/web/content/Sources/Display.php
Line: 85
8: Undefined index: db_countFile: /mnt/stor3-wc2-dfw1/504406/590247/forum.sdx-developers.com/web/content/Sources/QueryString.php
Line: 553
with the revert i get other undefined index errors.
VBGamer the problem is.. prettyurl uses a lot of computing cycles (Extra db queries) which isn't a good thing on a cloud hosting site.... I wish I could simply revert all links and then remove hte db queries, but i have feeling that would be impossible.
I need help, when I go to http://www.example.com/index.php?action=admin;area=manageboards I don't get a option to customize my URLs?
I am using SMF 2.0_RC5
Hello!
How to Pretty URLify this:
localhost/index.php?action=unread;all
to
localhost/unread/all
or something prettier???
The actions filter will turn that into localhost/unread/?all at least. If you want prettier than that you'll have to write your own filter.
+Added install support for SMF 2.0 final
The maintenance tasks are no longer working and nothing has changed on my forum since I installed this mod.
After I edited a thread title shouldn't it update the URL?
Any suggestions?
No 404 why ?
Maintenance is working for me with the RC5 release on 2.0 Final.
Minor update
1.0 RC5.2
!Do no cache javascript or mailto links saves some room in the database/performance improvement.
Quote from: politirant on June 18, 2011, 08:49:32 AM
Maintenance is working for me with the RC5 release on 2.0 Final.
I am on 1.1.13 and the maintenance tasks are not working for me. I have uninstalled and reinstalled with no luck.
localhost/forum/topic-name-xx
where xx are 2 numbers.
Why is that? What are those two numbers? How to remove them from URL?
It does that because you must have two topics with the same name. The number is needed to tell them apart.
Sure not.
But I think the database is corrupt.
There are 24 topics in the forum and the number is 49. How can be 49 same named topics when there is only 24 with different names?
Is there a database repair agent for the SMF?
I have a little problem with new version PrettyUrls.
In my error log i found:
http://xxx.net.pl/index.php?action=recent;start=%1$d
8: Undefined index: action_array
File: /home/xxx/public_html/xxx.net.pl/Sources/PrettyUrls-Filters.php
Line: 187
In this line is:
if (in_array($matches[2], $context['pretty']['action_array']))
Earlier i had this error:
http://xxx.net.pl/index.php?topic=112.0
8: Undefined index: pretty
File: /home/xxx/public_html/xxx.net.pl/Sources/Display.php
Line: 74
and line 74 is:
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Another error:
http://xxx.net.pl/index.php?action=calendar;year=2011;month=7
2: in_array() expects parameter 2 to be array, null given
File: /home/xxx/public_html/xxx.net.pl/Sources/PrettyUrls-Filters.php
Line: 187
And last (i guess...) bug is after i "Run maintenance tasks" mod is enabled, but urls are like this
/index.php?action=profile
I'm using SMF 2.0 with this mods:
Ad Managment 3.0.1
Pretty URLs 1.0RC5.2
Stop Forum Spam 0.9
So I have the Pretty URL's mod and am happy with it with one exception. I need to tweak some Google Ads stuff and need to know the numbers of the specific forums. How can I do that when it only shows the Pretty URL's?
Thanks!
Hi...
This mod is great, but I have decided for various reasons that it's not for me.
Only problem is, I can't seem to uninstall it. I uninstalled it through the package manager and, yes, I ticked the option to remove all the data, but the pretty URLs are still in effect.
Most worryingly, important forwardslashes on my site which aren't connected to the forum (www.mysite.com/importantpage) are now messed up and not working because if tries to redirect them to some adress with pretty? in it.
Please HELP!!
alphacaveman, the board IDs should be accessible from the admin panel.
jackregan, When you uninstall it, you should then install the reverter package from here: http://code.google.com/p/prettyurls/downloads/list
The reverter package will fix your URLs so that the pretty ones are redirected back to the normal ones.
I tried that and it hasn't worked. All forward slashes are still trying to redirect.
The reverter package said that it wasn't compatible with 2.0, so I had to simulate back to RC 5. Could this be part of the problem?
how can repair domain.com/trash or reset all pretty url
i have trash board with: domain.com/trash - i deleted "trash" board
now create new "trash" but, cant do pretty url to: domain.com/trash
same problem with "pytania": domain.com/pytania
no any error message, just page reload only & pretty url not creating, like trying to other existing names
i tried to remove, cash clean, & dont know what now
i found this in cash this: data_.....-SMF-modSettings.php
{s:4:"main";i:1;s:5:"trash";i:2;s:4:"kosz";i:3;s:12:"konfiguracja";i:5;s
but removing cash files not resolv problem
i think rewrite old option is needed
I am using the extra package, I just updated to smf 2 so I updated my fix to make it work with tp 1.0 rc2 download system pretty url
on prettyurls-extras-1.0-RC2 package open install.php
// Pretty URLs for Download System
$prettyFilters['downloadsystem'] = array(
"description" => "Download System filter for downloads",
"enabled" => 0,
"filter" => array(
"priority" => 32,
"callback" => "pretty_downloadssystem_filter"
),
"rewrite" => array(
"priority" => 32,
"rule" => array(
"RewriteRule ^downloads/([^/]+)/([^/]+)/([0-9]*)/?$ ./index.php?action=downloads;sa=view;down=$3 [L,QSA]",
),
),
"title" => 'Download System Pretty Filter <a href="http://www.smfhacks.com/download-system-pro.php" target="_blank">Website</a>'
);
// Pretty URLs for TP Download System
$prettyFilters['downloadsystem'] = array(
"description" => "Download item TinyPortal 1.0 RC2",
"enabled" => 0,
"filter" => array(
"priority" => 32,
"callback" => "pretty_downloadssystem_filter"
),
"rewrite" => array(
"priority" => 32,
"rule" => array(
"RewriteRule ^downloads/([^/]+)/([^/]+)/([0-9]*)/?$ ./index.php?action=tpmod;dl=item$3 [L,QSA]",
),
),
"title" => 'TinyPortal Download TP 1.0 RC2'
);
Open Sources-SMF2-0.xml:
// Filter Download System
function pretty_downloadssystem_filter($urls)
{
global $scripturl, $boardurl, $smcFunc;
// Do Download System Replacement
$pattern = '`' . $scripturl . '(.*)action=downloads;sa=view;down=([0-9]+)`S';
$query_data = array();
foreach ($urls as $url_id => $url)
{
// Get the data ready to query the database with
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
{
$urls[$url_id]['ID_FILE'] = (int) $matches[2];
$urls[$url_id]['match1'] = $matches[1];
$query_data[] = $urls[$url_id]['ID_FILE'];
}
}
if (count($query_data) != 0)
{
// Get the Download info
$fileIDs = array();
$filesNames = array();
$catNames = array();
$query = $smcFunc['db_query']('', "
SELECT
c.title as CatTitle, f.title, f.ID_FILE, c.ID_CAT
FROM {db_prefix}down_cat as c, {db_prefix}down_file as f
WHERE c.ID_CAT = f.ID_CAT AND f.ID_FILE IN (" . implode(', ', $query_data) . ")");
while ($filedata = $smcFunc['db_fetch_assoc']($query))
{
$fileIDs[$filedata['ID_FILE']] = $filedata['ID_FILE'];
$filesNames[$filedata['ID_FILE']] = rawurlencode(pretty_seo_url($filedata['title']));
$catNames[$filedata['ID_FILE']] = rawurlencode(pretty_seo_url($filedata['CatTitle']));
}
$smcFunc['db_free_result']($query);
foreach ($urls as $url_id => $url)
if (isset($url['ID_FILE']))
$urls[$url_id]['replacement'] = $boardurl . '/downloads/' . $catNames[$url['ID_FILE']] . '/' . $filesNames[$url['ID_FILE']]
. '/' . $fileIDs[$url['ID_FILE']];
}
return $urls;
}
// Download TinyPortal 1.0 RC2
function pretty_downloadssystem_filter($urls)
{
global $scripturl, $boardurl, $smcFunc;
// Do Download System Replacement
$pattern = '`' . $scripturl . '(.*)action=tpmod;dl=item([0-9]+)`S';
$query_data = array();
foreach ($urls as $url_id => $url)
{
// Get the data ready to query the database with
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
{
$urls[$url_id]['ID_FILE'] = (int) $matches[2];
$urls[$url_id]['match1'] = $matches[1];
$query_data[] = $urls[$url_id]['ID_FILE'];
}
}
if (count($query_data) != 0)
{
// Get the Download info
$fileIDs = array();
$filesNames = array();
$catNames = array();
$query = $smcFunc['db_query']('', "
SELECT
category, name, id
FROM {db_prefix}tp_dlmanager
WHERE id IN (" . implode(', ', $query_data) . ")");
while ($filedata = $smcFunc['db_fetch_assoc']($query))
{
$fileIDs[$filedata['id']] = $filedata['id'];
$filesNames[$filedata['id']] = rawurlencode(pretty_seo_url($filedata['name']));
$category_sub = abs($filedata['category']);
$query2 = $smcFunc['db_query']('', "
SELECT
name as CatTitle
FROM {db_prefix}tp_dlmanager
WHERE type like 'dlcat' AND id like '$category_sub'");
while ($filedata2 = $smcFunc['db_fetch_assoc']($query2))
{
$catNames[$filedata['id']] = rawurlencode(pretty_seo_url($filedata2['CatTitle']));
}
$smcFunc['db_free_result']($query2);
}
$smcFunc['db_free_result']($query);
foreach ($urls as $url_id => $url)
if (isset($url['ID_FILE']))
$urls[$url_id]['replacement'] = $boardurl . '/downloads/' . $catNames[$url['ID_FILE']] . '/' . $filesNames[$url['ID_FILE']]
. '/' . $fileIDs[$url['ID_FILE']];
}
return $urls;
}
@mod author: may I ask you to add something like this code on extra package for tp download plz?
I used to have Downloads system urls working properly, writing beautiful pretty urls (smf 2.0 RC5), but now they don't rewrite properly in SMF 2.0 gold. To add to the problem, the rewrites were happening like this: /downloads/?sa=view;id=7500 and it wouldn't even go to the downloads system section, it just redirected to the homepage. so I had to put downloads in the exclude list, and I'm back to index.php?action=downloads;sa=view;id=7500, which is fine, but I really want the old urls back (so I can have SEO).
I can try to find a workaround, if you tell me where to look to figure this out.
Hello, first of all: thank you for your work.
I need to know one thing of those rules:
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
I read a lot of information and syntax about mod_rewrite from apache, but I don't know why are there the board=$1.0 and the topic=$2.0
I mean the .0 in both cases.
Thank you for your help and sorry for my english.
Installing this mod is not harmful with some exceptions. And it has some benefits too. But uninstalling this mod after some time may ruin your ranking. Thats what i experienced..
btw.. i'm happy with this mod at the moment :)
When my site is only on a subdomain i use the early version of this mod. Now i want to use this again but when im about to enable it the url points to my old subdomain as the base url & nod to my new domain/url. How can i solve this problem.
Quote from: azhriel on July 12, 2011, 05:25:27 AM
When my site is only on a subdomain i use the early version of this mod. Now i want to use this again but when im about to enable it the url points to my old subdomain as the base url & nod to my new domain/url. How can i solve this problem.
Check out http://code.google.com/p/prettyurls/wiki/TroubleShooting
My question has, I think, been answered multiple times ont his thread, but I'm getting lost searching so many pages. It also seems that the question and answer just before mine are similar.
I move dmy host from Bluehost to Montecarlo. Christian at MC has done all of the move for me. We have just now run into a major/minor glitch with the verification and that has now been fixed. But my site may not be full transferred for a few hours to a few days. So all the fixes that have me go to a directory within my site...I can't get there. I can access my cpanel, ftp or phpMyAdmin.
Christian thinks pretty urls needs to be uninstalled/diabaled for the transfer because the links may be incorrect. He said I could check my .htaccess and avoid uninstalling. But that file is not where it should be, so Illori had me come over here. He said that somewhere here it explains how to disable it in phpMyAdmin. I saw a few things that confused me about that. So could I have the dummy version explained to me?
I could do the repair settings like the answer above...but the instructions for using repair_settings include accessing that page at the site...and I don't have access yet.
Also, I have had trouble following on this thread--I can't always tell which question an answer is for, so please quote part of my question when answering. Like I said...dummy version! ???
Thank you
'Gamer, firstly, thanks for creating some of SMF's best mods out there. I've just about got all of your stuff and I'm convinced you've got the only stable mods out there. Anyway, I was wondering if you were going to get the update for the extras mod? I use your gallery, links and ezportal as well. Since I've upgraded to 2.0, the extras don't want to install due to "incompatible version." Any chance on an update?
thanks,
David
Are you downloading the extras from
http://code.google.com/p/prettyurls/downloads/list
?
can i put ".html" at the end of the link?? and will it make old links not working?
Quote from: vbgamer45 on July 22, 2011, 08:03:56 PM
Are you downloading the extras from
http://code.google.com/p/prettyurls/downloads/list
?
yes sir, I did.
This is the message I get:
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
They have now been updated for 2.0
Thanks Gamer! Like I said, you stuff is great!
Glad to help
Hm, I don't understand. It's still doing it :.(
package-info.xml is still showing: <install for="2.0 RC2,2.0 RC3,2.0 RC4,2.0 RC5">
Would the install work if I added 2.0?
For some reason this mod has made my database very large. There are over 12 million entries in the table for this mod and counting. Is this normal?
I made some changes in the last update of Pretty Urls to cache less.
Basically how it works the mod scans the page for any link and then caches it. For my personal sites I disable action caching and added some code to prevent actions from being added to the cache.
i went ahead and added 2.0 to the install list. Worked great after that. thanks
Quote from: !RFAN on July 22, 2011, 08:35:58 PM
can i put ".html" at the end of the link?? and will it make old links not working?
You can modify it by going though the code but there really isn't much point to that. The extension does not factor in search engines
Guys I'm desperate. I installed SMF 2.0 and tried for 2 days now to install Pretty URL's.
I won't work.
I always get following errors :
Installations actions for "Pretty URLs"
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification SMF2-0/Sources.xml Modification parse error
2. Execute Modification SMF2-0/Sources.xml Modification parse error
3. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
4. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
5. Execute Modification SMF2-0/Themes.xml Modification parse error
6. Execute Modification SMF2-0/Themes.xml Modification parse error
* 7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
8. Extract File ./Sources/PrettyUrls.php
9. Extract File ./Sources/PrettyUrls-Filters.php
10. Extract File ./Sources/PrettyUrls-Tests.php
11. Extract File ./Sources/Subs-PrettyUrls.php
12. Extract File ./Themes/default/PrettyUrls.template.php
13. Extract Tree ./Themes/default/pretty
14. Extract File ./Themes/default/languages/PrettyUrls.english.php
15. Adapt Database SMF2-0/install.php
I CHMOD'ed all files to 777.
Tried to install with package manager, made a temp file manualy(777), uploaded and extracted the zip manually... nothing seems to work.
What could be the problem ?
PS : I have no problems at all running SMF 1.X and Pretty Urls.
what i need to do to make it support in hebrew?
what file need to be translate
Hi.
Since the first 1.0 version Portamx (www.portamx.com) uses this page for the forums:
index.php?action=community
Any chances to get support for this new action?
Thanks in advance for a reply.
i have deleted a board months ago but i want to use it again however pretty always adding id of the board at the end of the url like domain.com/board-url-234/ but i d like to use it as domain.com/board-url/.
i think i ve tried everything
- reinstall pretty
- deleted cache
- tried to change the url through phpmyadmin
what else can i do to fix this?
thank you for this great mod
I have my forum on something like "www.xyz.com/forum", now I moved it to "www.xyz.com" and then re-installed the pretty url.
To my surprised the pretty url is still return the links with the subfolder i.e "www.xyz.com/forum/msgpost1" instead of "www.xyx.com/msgpost1"
I have made several un-installing & re-installing, it is remain same
Pls what do I do.
Check out second trouble shooting topic
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: olufemo on August 03, 2011, 12:13:43 PM
I have my forum on something like "www.xyz.com/forum", now I moved it to "www.xyz.com" and then re-installed the pretty url.
To my surprised the pretty url is still return the links with the subfolder i.e "www.xyz.com/forum/msgpost1" instead of "www.xyx.com/msgpost1"
I have made several un-installing & re-installing, it is remain same
Pls what do I do.
Searching alittle further, I igot solution from http://code.google.com/p/prettyurls/wiki/TroubleShooting
Hi, could you please help me
Is there a way of installing this mod, changing the urls to pretty urls with WWW. In front?
So when I go to any board, it works fine and this doesnt come at the back >> ?wwwRedirect
Please reply, thank you
I change my forum, to correct spelling, but it only works if I disable the pretty, eDo not I added the filter "Skip List Actions" the line "forum, sitemap, post", where does the action "forum and sitemap" but to "post" does not work.
In a new topic is thus appearing "/?action=post" and I need to appear so "/index.php?action=post;board=ID.0"
How can I fix this without taking the pretty url
Disable pretty actions should help
Hello,
I like to use it on hebrew system what i need to do make it work ?
when i try to use hebrew i am getting blank field on the address http://www.xxx.com/"blank area"/
how to use Pretty Url along with tiny Url?
http://custom.simplemachines.org/mods/index.php?mod=2842
i want to use both the mods.. please help me
Quote from: vbgamer45 on August 09, 2011, 12:45:14 PM
Disable pretty actions should help
Yes solve, but I need them enabled, but keep new post as standard.
My Forum index load as a empty page :( please help me to solve this problem
db log_errors
Duplicate entry '' for key 2
/public_html/forum/Sources/PrettyUrls-Filters.php
line : 317
I feel like a n00b (might be one actually). Normally I am quiet comfortable with SMF and packages, but with this one I am a bit lost.
My questions
1) I cannot find prettyurls in my package installer (SMF2.0) - download package - Simple Machines Third-party Mod Site - Browse section, in which category is it supposed to sit?
2) When I download the file manually and upload it through package installer, there is no install option in the modification packages section (other packages above it do show it)
3) the package doesnt seem to have an install.php only an uninstall.php
4) everywhere it states I need to be able to access my .htaccess, which I can, but it doesnt state anywhere what I need to change
Can someone please help with these very basic question (apologies)
I installed the mod an it works great...no issues except that the main forum banner only shows up on the main page. When you click to a forums or thread it only shows the solid color of the stretch part of my main banner.
Any ideas
I unistalled for now...but here is the site "thefabforums dot com"
I have also installed it on another forum that currently has the mod in action, and its doing the same thing if you want to look here.
The site is linmup dot com.
Thanks
hi there
i'm a web developer and i build a tourism forum two years ago with smf.at that time i did not care about seo,but as my experience grow , i optimized my sites (usually build with joomla) for search engines.
there is a good feature in joomla for each category and articles named Alias,which is so appropriate for RTL language (like persian or arabic) users,the y can have their own category name or article title in their own language and set an Alias in english to be used in SEF urls.
it would really be appreciated if smf uses the same setting or you add this feature to your modification so RTL language smf users can use smf more efficiently
with best regards
Hi,
yesterday I installed this mod to my new forum. Today I looked to log, and I scared. How to fix it?
hello, i am using the Custom Forms Mod, wich forms are under URLs like http://www.siteurl.com/form/?n=1
how can i make that kind of URL works on Pretty URLs Mod?
i moved my forum to a folder, and i ran
<?php
require_once(dirname(__FILE__) . '/SSI.php');
require_once($sourcedir . '/Subs-PrettyUrls.php');
updateSettings(array('pretty_root_url' => $boardurl));
pretty_update_filters();
?>
but the links are still pointing to my root folder.. is there a way to update to new urls? i can't uninstall because theres a load of errors
vBgamer please help. my forum links isnt updating its new location..
That should do it if not change $boardurl to point to your new forum url
where is $boardurl?
updateSettings(array('pretty_root_url' => $boardurl));
what do i change it to?
updateSettings(array('pretty_root_url' => 'http://www.mysite.com'));
like that?
yup
when i try it it gives this error..
Warning: Cannot modify header information - headers already sent by (output started at /home/morbi/public_html/smfforum/Sources/Subs-youtube.php:271) in home/morbi/public_html/smfforum/Sources/Subs.php on line 2836
is there a manual way to check/change url? the domain is wrong.. i moved forum to a folder but its still pointing to the root
Modify the entry in smf_settings db table
do u know what the name of the entry in smf_settings is?
should start with pretty
Sorry for bumping this question:
Quote from: Fisch.666 on July 29, 2011, 04:10:15 AM
Hi.
Since the first 1.0 version Portamx (www.portamx.com) uses this page for the forums:
index.php?action=community
Any chances to get support for this new action?
Thanks in advance for a reply.
Is this possible?
Quote from: Esnyper on August 19, 2011, 05:25:22 AM
Hi,
yesterday I installed this mod to my new forum. Today I looked to log, and I scared. How to fix it?
UP!
I just need to install this mod on my forum? With out doing nothing?
can anyone give me rewrite rules for nginx? for smf 2
The nginx rules are simple, just use the rules from the .htaccess file and modify it:
.htacces from apache
RewriteRule ^(activate|admin|announce|arcade|attachapprove|buddy|calendar|chat)/?$ ./index.php?pretty;action=$1 [L,QSA]
rules for nginx
rewrite ^(activate|admin|announce|arcade|attachapprove|buddy|calendar|chat)/?$ "./index.php?pretty;action=$1" last;
All other rules should be modified similar to the one above.
I don't know how to convert and I don't even have a .htaccess file in my directory. I'm still a newbie to nginx
When you install pretty urls it will create a .htaccess file in your root directory. Then you have to copy the rewrite rules from the .htaccess file into your nginx vhost config and replace
RewriteRule
with
rewrite
and
[L,QSA]
with
last;
as a posted above.
hello, how i can put this mod, the links that are generated in html or php endings?
ex: (mywebsite.com/boardname/name-of-post.html or .php)???
thanks gramer
Hi vbgamer45,
I got a problem but I don't know how to solve.
I had installed
PrettyURL onto my forum and it worked well. However, I've just changed my forum's domain name to a different domain name. After re-configuring, everything works well except for pretty URL.
- At first, I could still access the boards in new domain name with URL rewritten. Very nice.
- However, the problem occurred when I submitted a new post or reply, even though the content was still recorded to the database but the users were redirected to the old domain name. I guess this is a problem with PrettyURL so tried to uninstall it and I was correct, the problem was solved.
- But I don't want to remove PrettyURL so I installed it again, this time I ran a maintenance in PrettyURL CP.
- Unfortunately, now all the boards completely change to the old domain name...
You can see it here: http://pvnsa.com
Thanks for helping me.
Tris.
Check out
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Whelp, I must be doing something wrong. I've read through the guide on the rewrite module for nginx (http://wiki.nginx.org/HttpRewriteModule) and searched through and read the posts on converting the .htaccess file for pretty URLs to an nginx config file, but I've had no luck. Nginx finds no errors with the syntax of the conf file on reload or restart, but when I get to the "test" page for the URL rewriting, it doesn't work as expected.
I simply followed Fisch.666's instructions (http://www.simplemachines.org/community/index.php?topic=146969.msg3146483#msg3146483) and tried with the rules inside and outside a location. Neither situation worked. :(
I'd appreciate any help I could get! Thanks. :)
EDIT: All good now. :)
nginx wanted a slash after the carrot as well as it didn't like the period. Here's an example of one of the rules:
rewrite ^/profile/([^/]+)/?$ "/index.php?pretty;action=profile;user=$1" last;
Quote from: vossperformance on August 11, 2011, 10:35:56 PM
I installed the mod an it works great...no issues except that the main forum banner only shows up on the main page. When you click to a forums or thread it only shows the solid color of the stretch part of my main banner.
Any ideas
I unistalled for now...but here is the site "thefabforums dot com"
I also have it active on this site "linmup dot com"
Can anyone help ??????????
Quote from: vossperformance on September 06, 2011, 05:14:41 PM
Quote from: vossperformance on August 11, 2011, 10:35:56 PM
I installed the mod an it works great...no issues except that the main forum banner only shows up on the main page. When you click to a forums or thread it only shows the solid color of the stretch part of my main banner.
Any ideas
I unistalled for now...but here is the site "thefabforums dot com"
I also have it active on this site "linmup dot com"
Can anyone help ??????????
It would appear your issue is the way in which you specified the URL of the header image. In your code I have the following:
<table width="100%" style="background:url(Themes/E-N-Theme/images/TFFBanner5.png) no-repeat;" height="155">
Your inline CSS statement specifies a relative location for your header image--not absolute. With Pretty URLs turned ON, the URLs of the your pages change from something like http://thefabforums.com/main/index.php?action=help to http://thefabforums.com/main/help/. Since your image location is relative, the browser now tries to load an image file from http://thefabforums.com/main/help/Themes/E-N-Theme/images/TFFBanner5.png, which it obviously can't find.
To fix this you need to make your image location absolute. Change your inline CSS statement from this:
style="background:url(Themes/E-N-Theme/images/TFFBanner5.png) no-repeat;"
to this, which explicitly states the location of the image:
style="background:url('http://thefabforums.com/main/Themes/E-N-Theme/images/TFFBanner5.png') no-repeat;"
Weird error happening on my forum, all day I have 404 pages due to prettyurl, and only getting back to normal if I run the "Run some maintenance tasks" of the prettyurl. Someone has experienced this problem?
The URL is in error with idex.php at the end of the pretty url, example:
http://www.tectonny.com/forum/lcd-plasma-ledtv/42pf7321/index.php
If we remove the index.php of the final works without problem
The error log shows no error
Never seen index.php at the end of a prettied url before so not sure
So no solution?
No solution
I cant find changelog for this version of pretty urls. I am asking for a 1.1.15 forum with pretty urls 1.0RC2. Are there any diferences in pretty urls 1.0rc5 to affect 1.1.15 forum?
I have changed the Forum directory.Now the pretty URL is working.
It is the old forum
that's
i have changed the URL from forum to Forum
but pretty url is working only with forum.
i've migrated my local server installation into my webserver...
things went bad and all of my installed packages were all now under the the "Not Installed" category. i want to re install the mod via the package manager, but when i tried to, it says package already installed, which is true. I can't un-install the mod since it's not showing under the "Installed Packages" page.
i hope someone will hop-in and help me with this one. thanks
---------------------------
i got it fixed!
Installed it and the page looks fine except this message on top
// Pretty URLs mod $txt['pretty_urls'] = 'Pretty URLs';
Further the Image verification mod is also not working properly because of this. Pls help asap.
I disabled it but still the same problem. It has effected my whole forum setting.
Just edit your Modifications.english.php and make sure that the edit looks like:
// Pretty URLs mod
$txt['pretty_urls'] = 'Pretty URLs';
and not like your's:
// Pretty URLs mod $txt['pretty_urls'] = 'Pretty URLs';
It actually looks likes this and still the problem.
// Pretty URLs mod
$txt['pretty_urls'] = 'Pretty URLs';
Got the problem.
It was because the code was inserted after the PHP was closed.
When I move a topic from
board-source to
board-destination, smf leave a message moved topic in board source:
QuoteThis topic has moved to: board-destination
Anh new url is: http://www.simplemachines.org/community/index.php?topic=391664.0
How to set
index.php?topic=391664.0 to a pretty url like:
board-destination/tieng-viet ?
I move my mouse on above link, it show pretty url in my browser's status bar but like:
board-source/tieng-viet. I click on, it open and rediredt to
board-destination/tieng-viet. This is confusing matter.
Second, in Recent posts on my boardindex, new topic has created from moved topic, but I move my mouse on this new topic url, it show in my browser's status bar like:
board-source/tieng-viet, when I click on it, it open this topic with url redirect
board-destination/tieng-viet, this make me confuse and may be also with bot or crawler search engine.
Quote from: vbgamer45 on September 15, 2011, 12:50:22 PM
No solution
Never thought I'd read that the great master. Now it's more often the problem.
Quote from: Tomy Tran © 2012 on September 23, 2011, 07:34:05 PM
When I move a topic from board-source to board-destination, smf leave a message moved topic in board source:
QuoteThis topic has moved to: board-destination
Anh new url is: http://www.simplemachines.org/community/index.php?topic=391664.0
How to set index.php?topic=391664.0 to a pretty url like: board-destination/tieng-viet ?
I move my mouse on above link, it show pretty url in my browser's status bar but like: board-source/tieng-viet. I click on, it open and rediredt to board-destination/tieng-viet. This is confusing matter.
Second, in Recent posts on my boardindex, new topic has created from moved topic, but I move my mouse on this new topic url, it show in my browser's status bar like: board-source/tieng-viet, when I click on it, it open this topic with url redirect board-destination/tieng-viet, this make me confuse and may be also with bot or crawler search engine.
try this...
go to forum maintenance and run 'FIND AND REPAIR ERRORS' menu... and also "RECOUNT ALL FORUM STATISTIC" menu.
also... go to pretty url menu and run maintenance task.
Actually, it still show number in moved topic, work fine with board-destination/tieng-viet for new topic has created from moved topic.
So, every time I move any topic, I must go there and do those action? How about 1000 times?
Hi ;
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
Exp : .http://www.simplemachines.org/profile/Alpay
http://www.simplemachines.org/Alpay
how can i do ?
To http://www.simplemachines.org/profile/Alpay
To http://www.simplemachines.org/Alpay
Would be hard since you have topics/categories as well which would confuse the two systems.
Ad
Empty pretty_topic_urls table for the rest.
to maintance mode.
Hi^^'
I have a little problem with the redirect...
I move my forum to the root folder and to automatically redirect the custom pages and the topics I use the redirect 301 and all work fine.
Redirect 301 /smf/ http://oldschoolrpg.it/
(If I type the old url...
oldschoolrpg.it/smf/off-topic/l]ol-lol!!/msg33355/#msg33355
...is automatically redirected to the new:
oldschoolrpg.it/off-topic/lol-lol!!/msg33355/#msg33355)
But it not working for the boards:
When I type:
oldschoolrpg.it/smf/off-topic/
The redirect send to:
oldschoolrpg.it/off-topic/?pretty;board=smf;topic=off-topic.0
and not:
oldschoolrpg.it/off-topic/
...any suggestions??
Thx^^
PS: Sorry for my english : P
how to exclude a sub directory from pretty url rewrite?
i want to access a directory like this..
http://mysite.tld/folder
i am being redireted to my home page.
except action: /folder
thanks... but i don't get what you mean to say.
Under pretty urls settings.
so i'll just put this:
"except action: /my_sub-folder" and also tired this, "/my_sub-folder"
well, i've tried that one... and then ran a maintenance again...
Quote from: cosmicxxx on October 03, 2011, 10:39:02 PM
so i'll just put this:
"except action: /my_sub-folder" and also tired this, "/my_sub-folder"
well, i've tried that one... and then ran a maintenance again...
Nope, go to PrettyURLs CORE SETTINGS option [ at this url: http:// yourforumurl /admin/?area=pretty;sa=settings ]
Under a tick box of
Enable URL rewriting, you see a input box of
Skip Actions List, just type "
/my_sub-folder" into that box, that's All!
I made a question here: http://www.simplemachines.org/community/index.php?topic=454440.0
Can anybody help me? The answers can be placed in this topic, instead of the link's one.
Really need some help, don' know what to do, and I can't uninstall PURLS. :(
If you can't uninstall try disable rewriting actions if not possible.
You can manually uninstall using the instructions on the mod site if the package manager is not working.
Quote from: vbgamer45 on October 04, 2011, 01:17:06 PM
If you can't uninstall try disable rewriting actions if not possible.
You can manually uninstall using the instructions on the mod site if the package manager is not working.
By uninstalling, I mean that I have links depending on pretty urls. yes, I'm able to uninstall, but unfortunately, I can't.
May you take a look at it? http://forum.mghospedagem.com
If you need an admnistrative account, let me know.
Thx
We have a reverter package to go back to old urls
http://code.google.com/p/prettyurls/downloads/list
Quote from: vbgamer45 on October 04, 2011, 01:27:54 PM
We have a reverter package to go back to old urls
http://code.google.com/p/prettyurls/downloads/list
No, sir, you still didn't get me. I can't modify the URLs, I've got external links that depend on them.
Hi
is there anyway of not using URLs cache table(this grows bigger and bigger everyday and i cant afford it on shared host) and only the URLs table (like permalinks in wordpress)?
is there any drawback of not using or cleaning up of URLs cache table
Not at the moment. Right now every single link on the page is added to the cache table.
hello,
i installed pretty urls, and i have a small issue. i am running nginx/php-fpm, and my config is below:
#begin nginx pretty urls forum rewrite
if (-f $request_filename) {
break;
}
# actions
rewrite ^/(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(verificationcode|vote|viewquery|who|\.xml)/?$ "/index.php?pretty;action=$1" last;
#boards and topics
rewrite ^/(.*)/(.*)/([0-9]+)/$ "/index.php?pretty;board=$1;topic=$2.$3" last;
rewrite ^/(.*)/(.*)/$ "/index.php?pretty;board=$1;topic=$2.0" last;
rewrite ^/(.*)$ "/index.php?pretty;board=$1.0" last;
rewrite ^/(.*)/([0-9]+)/$ "/index.php?pretty;board=$1.$2" last;
#end nginx smf prettyurls proper rewrite
the issues i am facing are:
1 - http://www.gtopforum.com/vanzari-cumparari/ (http://www.gtopforum.com/vanzari-cumparari/) - if i click the "new" icon it should take me to the newest reply in the specific topic, yet it reloads the same page.
2 - in the same category as the above link, if you click at the bottom to go to page 2 -> http://www.gtopforum.com/vanzari-cumparari/20/ - it takes me to some topic, instead of the second page of the category.
3 - if i post a new topic, it will take me to: http://www.gtopforum.com/noutati/test-new-topic/new/#new, but i think this is related to the first issue, because it's reloading the category page.
i would appreciate some help on this.
thanks in advance guys.
Quote from: Cblog on October 05, 2011, 01:16:55 AM
Hi
is there anyway of not using URLs cache table(this grows bigger and bigger everyday and i cant afford it on shared host) and only the URLs table (like permalinks in wordpress)?
is there any drawback of not using or cleaning up of URLs cache table
Vote for above
Quote from: vbgamer45 on October 05, 2011, 01:48:46 AM
Not at the moment. Right now every single link on the page is added to the cache table.
Why don't you add a column in table
messages next to
id_msg or
id_topic or
subject. If
id_msg =
id_topic, fill in prettyURL from subject; if not, leave a blank. When output data, get prettyURL then the message id?
I did not break your mod but what happen if dont use cache? when output data, why don't you get prettyURL direct from
subject and no cache?
Can you enable option for user can choose the way of cache by files on host or by database? I know it's a smaller for database than space of host file in almost hosting package?
Just my idea, some words may be not exactly ok?
Just wanted to say that the problem never existed, it was an user issue.
The new messages images appears only if another user post a message or a topic, not you.
My moderators were complaining that when they posted new messages, nothing changed.
I already opened a topic explaining everything to them and for the whole forum.
Thx for the support
i have some forms on my forum wich is called like:
/index.php?action=form;n=1
/index.php?action=form;n=2
with Pretty URLs active, it looks like
/form/?n=1
/form/?n=2
is it possible to make it looks like
/contact
/request
??
thanks.
okay guys, i am back with the same issue.
the thing i did different now, is moving to apache, since i really could not sort out the nginx issues, however. if i enable:
Topics
Rewrite Topic URLs
posting a new message doesn't work. it says that there's too many redirects. i posted my htaccess below, maybe you can come up with some insights. i tried disabling the rewrite for actions but it still doesn't work. the only solution was to disable the rewrites for topics.
the url that i get to when it gets the too many redirects error is:
http://www.gtopforum.com/index.php/topic,4567.new.html#new
any help is greatly appreciated.
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.gtopforum\.com [NC]
RewriteRule (.*) http://www.gtopforum.com/$1 [R=301,L]
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: October 6, 2011, 20:59
RewriteEngine on
RewriteBase /
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(findmember|groups|help|helpadmin|im|jseditor|jsmodify|jsoption)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(lock|lockvoting|login|login2|logout|markasread|mergetopics|mlist)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard|openidreturn)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(pm|post|post2|printpage|profile|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|register|register2|reminder|removepoll|removetopic2|reporttm|requestmembers)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(restoretopic|search|search2|sendtopic|smstats|suggest|spellcheck|splittopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(stats|sticky|theme|trackip|about:mozilla|about:unknown|unread|unreadreplies)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|viewprofile|vote|viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./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]
# PRETTYURLS MOD ENDS
Quote from: katmai on October 05, 2011, 03:41:13 AM
hello,
i installed pretty urls, and i have a small issue. i am running nginx/php-fpm, and my config is below:
#begin nginx pretty urls forum rewrite
if (-f $request_filename) {
break;
}
# actions
rewrite ^/(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(verificationcode|vote|viewquery|who|\.xml)/?$ "/index.php?pretty;action=$1" last;
#boards and topics
rewrite ^/(.*)/(.*)/([0-9]+)/$ "/index.php?pretty;board=$1;topic=$2.$3" last;
rewrite ^/(.*)/(.*)/$ "/index.php?pretty;board=$1;topic=$2.0" last;
rewrite ^/(.*)$ "/index.php?pretty;board=$1.0" last;
rewrite ^/(.*)/([0-9]+)/$ "/index.php?pretty;board=$1.$2" last;
#end nginx smf prettyurls proper rewrite
the issues i am facing are:
1 - http://www.gtopforum.com/vanzari-cumparari/ (http://www.gtopforum.com/vanzari-cumparari/) - if i click the "new" icon it should take me to the newest reply in the specific topic, yet it reloads the same page.
2 - in the same category as the above link, if you click at the bottom to go to page 2 -> http://www.gtopforum.com/vanzari-cumparari/20/ - it takes me to some topic, instead of the second page of the category.
3 - if i post a new topic, it will take me to: http://www.gtopforum.com/noutati/test-new-topic/new/#new, but i think this is related to the first issue, because it's reloading the category page.
i would appreciate some help on this.
thanks in advance guys.
Hi,
I am facing an issue as my forum is in a subdirectory.
I will like to add "/forum" to the generated pretty links so that my urls all have the form, "abc.com/forum/some-pretty-link"
Thanks
**EDIT**
This is not needed after all.
Thanks
After installing latest update, i found this error :
Wrong value type sent to the database. Integer expected. (current_board)
when i try to edit topic (and most of other actions)...
http://..../?action=post;msg=566228
Strange does it say a line number?
Do you have any other mods installed?
it seems like the script failed to pass the board id...
i get this when i try to edit :
http://xxxx/xxx/xxx/25/?action=post;last_msg=566747
error : Wrong value type sent to the database. Integer expected. (current_board)
but when i try to enter this in address page :
http://xxx/xxx/xxx/?action=post;last_msg=566747;board=25
its normal again...
my .htaccess :
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: October 7, 2011, 21:00
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]
# PRETTYURLS MOD ENDS
i get this error when i update from 1.0RC, i have tons of mod, so i cant risk of trial and error uninstalling each, it was working normally.
my smf are 2.0 RC4
Hello guys, I have a problem with google adsense in some url like this: easy-water-color-text-effect!/Msg2239/#new
Urls that do not have
/msg2239/#new
/msg913/?topicseen#msg913
it works great! Is there a way to remove this extension (/msg913/?Topicseen#msg913) from the url. Thanks!
Topicseen is only for members guests do not see that.
i install Pretty URLs
but only Profiles function working
Topics & Boards not redirect plz help
Setup For httpBL, Photopost & TinyPortal on smf 1.1.x with Nginx proxying PHP to Apache:
location @proxy {
#proxy_pass as usual
#This can be a factcgi location instead
}
location /share {
# Photopost lives here. We send straight to proxy location.
try_files $uri $uri/ @proxy;
}
location @pretty_urls {
# Named location for pretty urls
# Items added for TP and httpBL module
rewrite ^/(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|forum|help|helpadmin)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(httpBL|im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(post2|postsettings|pp_gallery|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(tpadmin|trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(verificationcode|vote|viewquery|who|\.xml)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/([^/].+)/([^/].+)/([0-9]+|msg[0-9]+|new)(.*)$ "/index.php?pretty&board=$1&topic=$2.$3" break;
rewrite ^/([^/].+)/([0-9]+)/$ "/index.php?pretty&board=$1.$2" break;
rewrite ^/([^/].+)/(.+)/$ "/index.php?pretty&board=$1&topic=$2.0" break;
rewrite ^/(.+)$ "/index.php?pretty&board=$1.0" break;
# Send to proxy if we get here.
# try files needs more than one param so we use $uri to make up number
try_files $uri @proxy;
}
location / {
# Normal location to serve static files
try_files $uri $uri/ @pretty_urls;
}
Works a treat!
***Edited to Fix Order Error***
The last four regex lines were in wrong order which produces an error for some urls.
***Edited to Fix Topic & "last" Error***
The regex for topics was invalid.
This config needs "break" instead of "last"
still having sub-direct access issue here...
still, i can't access http://mysite/mysubfolder...
i've already included /mysubfolder in exception settings.
Quote from: cosmicxxx on October 11, 2011, 11:56:14 PM
still having sub-direct access issue here...
still, i can't access http://mysite/mysubfolder...
i've already included /mysubfolder in exception settings.
After fill in sub-folder, did you click on save it? any error? after that, did you run maintenance for PrettyURLs, the third option next to CORE SETTINGS ?
Quote from: cosmicxxx on October 11, 2011, 11:56:14 PM
still having sub-direct access issue here...
still, i can't access http://mysite/mysubfolder...
i've already included /mysubfolder in exception settings.
Check out there is an entry for subfolders
http://code.google.com/p/prettyurls/wiki/TroubleShooting
thanks... it's working but...
what if i only want to redirect only to a sub-directory and i wish not to specify a file?
i've tried, RewriteRule ^chat/?$ /chat/ [L,QSA]
but it fails...
Update....
got it working with
RewriteRule ^chat/?$ chat/ [L,QSA]
Hi,
When installing the package, I get this error:
1. Execute Modification SMF2-0/Sources.xml Modification parse error
2. Execute Modification SMF2-0/Sources.xml Modification parse error
3. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
4. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
5. Execute Modification SMF2-0/Themes.xml Modification parse error
6. Execute Modification SMF2-0/Themes.xml Modification parse error
Can anyone help me out, please? :)
I'm using SMF 2.0.1.
hi, I noticed today for the first time, that with pretty urls enabled, users don't get redirected to the mobile version of my forum. any ideas?
Quote from: Tommiiee on October 14, 2011, 03:40:11 AM
Hi,
When installing the package, I get this error:
1. Execute Modification SMF2-0/Sources.xml Modification parse error
2. Execute Modification SMF2-0/Sources.xml Modification parse error
3. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
4. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
5. Execute Modification SMF2-0/Themes.xml Modification parse error
6. Execute Modification SMF2-0/Themes.xml Modification parse error
Can anyone help me out, please? :)
I'm using SMF 2.0.1.
Issue with permissions or something. You may need to do a manual install at that point.
Quote from: vbgamer45 on October 14, 2011, 11:32:51 AM
Quote from: Tommiiee on October 14, 2011, 03:40:11 AM
Hi,
When installing the package, I get this error:
1. Execute Modification SMF2-0/Sources.xml Modification parse error
2. Execute Modification SMF2-0/Sources.xml Modification parse error
3. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
4. Execute Modification SMF2-0/BoardsAndTopics.xml Modification parse error
5. Execute Modification SMF2-0/Themes.xml Modification parse error
6. Execute Modification SMF2-0/Themes.xml Modification parse error
Can anyone help me out, please? :)
I'm using SMF 2.0.1.
Issue with permissions or something. You may need to do a manual install at that point.
Alright, thank you.
If I enable url rewriting I get this error when trying to, for example, delete a post. It used to work but I moved the whole forum to a subfolder called forum.
Not Found
The requested URL /hardware/i-want-every-component-to-build-this/ 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 Server at mysite.com Port 80
Quote from: John12344321 on October 14, 2011, 06:22:19 PM
If I enable url rewriting I get this error when trying to, for example, delete a post. It used to work but I moved the whole forum to a subfolder called forum.
The requested URL /hardware/i-want-every-component-to-build-this/ 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 Server at mysite.com Port 80
You need to update your pretty urls root read over at http://code.google.com/p/prettyurls/wiki/TroubleShooting
I made a new php file. put the:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
require_once($sourcedir . '/Subs-PrettyUrls.php');
updateSettings(array('pretty_root_url' => $boardurl));
pretty_update_filters();
?>
code in it. uploaded it. ran it. Now enabling pretty urls does nothing. It used to work, just not in certain circumstances but now it does nothing.
2. The only reason I was using this mod was because i thought it would help search engine ranking. Do you know if it has any effect, positive or negative, on search engine ranking?
Any idea what the problem is?
installed mod now getting a really weird url any way to fix ?
http://www.northernseaanglers.com/forum/?wwwRedirect;pretty
Quote from: TheCodfather on October 15, 2011, 07:32:14 PM
installed mod now getting a really weird url any way to fix ?
http://www.northernseaanglers.com/forum/?wwwRedirect;pretty
That occurs for logged in members only on first login not at any other times. normally it is just index.php?wwwRedirec
nope just logged out and back in and still the same the forum url was
http://www.northernseaanglers.com/forum
now its messed up with url in previous post
I don't see when visiting the site.
well thats weird because its there all the time for me
also in google webmaster tools im getting html errors with duplicate titles index.php and / is that anything to do with pritty urls and if so is there anything i can do to .htacess to fix this issue or is this a major issue for google indexing my site.
note:
first problem now fixed second problem is not
Enabling the mod in the control panel doesn't do anything. The urls stay the same. I've tried reinstalling with no effect. What is the next troubleshooting step?
have u enabled the mod in admin> configuration> pretty urls> settings> enable url rewriting
Yea, I know. That's the only place to enable it so that's where I enable it. It doesn't have any effect.
Your host may get error with permission without error notification? (if yes you can not install other mod as well) log in by FTP client to see if your forum has error_log file for details? has the file of .htaccess created? or some other file has not change the code need?
pretty urls used to work. then I moved the forum to a subfolder. Then it didn't work. Then I fixed it partially but deleting a thread didn't work. Then I uninstalled it and reinstalled it and now enabling it in the control panel does nothing.
Still not getting users redirected to mobile version of smf with pretty urls enabled....
Is there a free support for Cyrillics/russian characters cos at the present all I see are figures... :D
/forum/1054107310971077108510801077-10871086-10801085109010
This mod works perfectly for me, except a minor issue. I can access http://forum.amlabc.com/sitemap/ without issues. The redirection used is :
RewriteRule ^(sitemap|smstats|suggest|spellcheck)/?$ ./index.php?pretty;action=$1 [L,QSA]
One the other hand if I try to access http://forum.amlabc.com/stats/ I get an error (most probably 302). There is a generic rule as above, but I added a new entry to .htaccess as :
RewriteRule ^(stats)/?$ ./index.php?pretty;action=$1 [L,QSA]
If I access the URL directly http://forum.amlabc.com/index.php?pretty;action=stats it does work.
Please help!
-Abhi
I'm wondering, Is there some how to "go back" after using Purls in a big forum without losing the links?
Quote from: distante on October 19, 2011, 12:36:01 AM
I'm wondering, Is there some how to "go back" after using Purls in a big forum without losing the links?
Yes there is a reverter package on the prettyurls site
pretty urls used to work. then I moved the forum to a subfolder. Then it didn't work. Then I fixed it partially but deleting a thread didn't work. Then I uninstalled it and reinstalled it and now enabling it in the control panel does nothing.
Quote from: vbgamer45 on October 19, 2011, 10:18:47 AM
Quote from: distante on October 19, 2011, 12:36:01 AM
I'm wondering, Is there some how to "go back" after using Purls in a big forum without losing the links?
Yes there is a reverter package on the prettyurls site
Oh, I didn't realize, how exactly does it work? I mean, all the
pretty backlinks don't get lost in the change? because I have a lot of google indexed pages and Facebook links with the PrettyUrl and I don't want to loss them
Hi,
I've had to install this manually, because my Package Manager wouldn't install it without problems, but it's not working..
In the Admin Panel it says 'Settings saved' when I enable URL rewriting, but my URLs are still the same as before. Can anyone help me out? :)
i have a board named "dicas de como encontrar pessoas desaparecidas"
pretty urls gives me the following url for that board:
/dicas-de-como-encontrar-pessoas-desaparecidas/
how can i make that pretty url shows only: /dicas/
?
Go to manage boards you have option to modify the board's pretty name
sweet... thanks vbgamer45
Glad that helped.
Quote from: distante on October 19, 2011, 12:36:01 AM
Oh, I didn't realize, how exactly does it work? I mean, all the pretty backlinks don't get lost in the change? because I have a lot of google indexed pages and Facebook links with the PrettyUrl and I don't want to loss them
Just in case my post get lost!
If you use the reverter the links still work just redirected back to orginal place.
Great thanks for the answer :)
pretty urls used to work. then I moved the forum to a subfolder. Then it didn't work. Then I fixed it partially but deleting a thread didn't work. Then I uninstalled it and reinstalled it and now enabling it in the control panel does nothing. What's wrong?
anyone have any ideas yet on why pretty urls does not redirect to the mobile version of smf? is it built-in to do that? will it do it in the future?
Quote from: ibjörn on October 21, 2011, 04:26:56 AM
anyone have any ideas yet on why pretty urls does not redirect to the mobile version of smf? is it built-in to do that? will it do it in the future?
With a mobile version, your tiny screen is still not suitable with what smf provides and still want to show a pretty but may very long string on that? It looks like you are trying to put a rope into a bottle for nothing right?
ok maybe i'm asking the question wrong then. for a mobile screen, it really doesn't matter what the url looks like, so then is there a way that to have pretty urls disable itself if a mobile browser is detected so that the mobile version can be loaded?
the mobile version of smf is really quite perfect for mobile phones.
Nice mod, I didn't do any modifications on the mod itself but needed a way to show a 404 for actions and boards that don't exist. Since the non existent items are now pretty and show the board index I needed a way to prevent this for search engine ranking. A whole bunch of pages with same content hurt the rankings.
I am sure this hack will only work with pretty, it is pretty rough in its setup but it should remove the non existent board and actions from the search engines in my case.
In the main index.php
Find
elseif (empty($_REQUEST['action']))
{
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
Add After
if (isset($_REQUEST['pretty'])) {
si404();
}
Find
// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
Replace
// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']))
{
Find
// Otherwise, it was set - so let's go to that action.
require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}
Replace
// Otherwise, it was set - so let's go to that action.
if(array_key_exists($_REQUEST['action'],$actionArray)) {
require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
} else {
si404();
}
}
function si404() {
header('HTTP/1.0 404 Not Found');
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>404: Page Not Found</title>
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" />
</head>
<body>
<h1>404: Page Not Found</h1>
</body>
</html>';
die();
}
I hope it helps anyone. It is pretty rough like I said. ;)
I was using Pretty Urls mod in my SMF... after i shifted my host... whenever i try to open my site
funforum.in it gets redirected to
http://www.funforum.in/index.php?PHPSESSID=866ef0d5b6930a0f73c8cec2eb1eb785;wwwRedirect and i get a INTERNAL SERVER ERROR... again if i open the site again... the site opens properly... but the URL is
http://www.funforum.in/index.php?wwwRedirect i feel it has to do something with this mod...
the content in my .htaccess is
Quote# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: September 27, 2011, 11:14
RewriteEngine on
RewriteBase /
# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(findmember|groups|help|helpadmin|im|jseditor|jsmodify|jsoption)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(lock|lockvoting|login|login2|logout|markasread|mergetopics|mlist)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard|openidreturn)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(pm|post|post2|printpage|profile|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|register|register2|reminder|removepoll|removetopic2|reporttm|requestmembers)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(restoretopic|search|search2|sendtopic|shoutbox|smstats|suggest|spellcheck)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(splittopics|stats|sticky|theme|trackip|about:mozilla|about:unknown|unread)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile|who|\.xml)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(xmlhttp)/?$ ./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]
# PRETTYURLS MOD ENDS
how can i resolve this problem.... i want the users to get into the site in 1 try...
@funforrum
This have nothing to do with Pretty URls.
This happens because your forum url is configured to use www.
The wwwredirect is a SMF 2.0 feature.
You can prevent this by making the redirection at the server (your host control panel) or configuring .htaccess to make that redirection.
BTW this is an important SEO method, and avoid duplicate content on google, and avoid pagerank split.
To create the redirection on .htaccess add the following lines:
# AUTO REDIRECT - AVOID WWWREDIRECT
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Explanation:
The first line sets a condition: only if the condition is true, the second line will be processed. The condition could be 'translated' to: "if the host name doesn't start with www.". The regular expression !^www\. means this:
! = not
^ = start
\. = . (the backslash is the escape character, because dots have a special meaning in regular expressions, and therefore must be escaped)
So !^www\. means "doesn't start with www.".
The second line is the actual rewrite rule: again it uses regular expressions to match certain urls, and then rewrites them to something else. The first part is the regular expression:
^(.*)$
This means: anything! You already know the ^ sign. The (.*) bit means zero or more characters (the dot means any character, the asterisk means zero or more). The final $ means 'end'.
Then comes the bit that says how to rewrite the url:
http://www.%{HTTP_HOST}/$1 [R=301,L]
%{HTTP_HOST} will be replaced by the host name (i.e. simplemachines.org).
$1 references whatever was matched in the regular expression between the brackets, which in this case is everything.
The [R=301,L] means "inform the user agent that this is a permanent redirect (HTTP 301 code), and don't process any more rewrite rules (if there were any after this one).
If you're not familiar with regular expressions, this might still look a bit abstract.
Very good tutorial frytec
@frytec: Thank you for your post, it's really useful info on SEO method/
thanks ;D
@frytec: sorry for further action, I want some sites will redirect all www. to non-www (for local region, my country only
and shorten a long domain name), so is this right code?
# AUTO REDIRECT - AVOID WWWREDIRECT
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]
Thank you.
to redirect all www. to non www., add the following code:
(remember to change your-domain)
# AUTO REDIRECT - AVOID WWWREDIRECT
# WWW TO NON WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^your-domain\.com$ [NC]
RewriteRule ^(.*)$ http://your-domain.com/$1 [R=301,L]
to redirect all non www. to www., add the following code:
(no need to change anything)
# AUTO REDIRECT - AVOID WWWREDIRECT
# NON WWW TO WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
to remove trailing slash / from address line, add:
# REMOVE TRAILING SLASH
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
Did you test it work? I had failed with:
# AUTO REDIRECT - AVOID WWWREDIRECT
# WWW TO NON WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^vnweb\.org$ [NC]
RewriteRule ^(.*)$ http://vnweb.org/$1 [R=301,L]
This site right now, I must catch $_SERVER[ 'HTTP_HOST' ] at index file and push echo '<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="refresh" content="0; url=http://vnweb.org" /></head></html>'; incase catched is www.vnweb.org. But this is only pretty for homepage, not all urls followed.
you´re right, Tomy.
To redirect www.example.com/dir/anypage.html to example.com/dir/anypage.html (same page)
try this format bellow (any URL at www.example.com will be redirected to the same page at example.com)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com [nocase]
RewriteRule ^(.*) http://example.com/$1 [last,redirect=301]
So sending personal messages and posting don't work with my forum using Pretty URLs.
It DOES work on a different forum I run, though. Same hosting, same setup.
I tried disabling actions, but it still doesn't let anyone send PMs or post.
Wha?!
Quote from: frytec on October 26, 2011, 12:33:36 PM
you´re right, Tomy.
To redirect www.example.com/dir/anypage.html to example.com/dir/anypage.html (same page)
try this format bellow (any URL at www.example.com will be redirected to the same page at example.com)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com [nocase]
RewriteRule ^(.*) http://example.com/$1 [last,redirect=301]
I did not do above action, :D I don't know what happened, I just remove echo '<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="refresh" content="0; url=http://vnweb.org" /></head></html>'; and it works redirect. Now wait to see is it still splited on Google webmaster and pr. Thanks anyway!
BTW, last question, why do you need to set it non-www redirect to www. , is it pretty only? or seo matter?
Quote from: Tomy Tran © 2012 on October 26, 2011, 04:36:05 PM
BTW, last question, why do you need to set it non-www redirect to www. , is it pretty only? or seo matter?
SEO matter.
to google www and nonwww urls are diferent pages.
so your pagerank will become splited,
and google may "think" your site have duplicated content and may decrease your rank on searchs.
@frytec: thank you. My opinion is Seekers usually typed what they need to looking for, e.g: Comunidade Aika Forum or Comunidade Forum or somewhat and not www.aikaforum.com.br nor aikaforum.com.br so www. or none is not matter that I believe, it's from my self experience.
But you right splited contents by google and decrease rank site. People need to select only one: www. or none.
Thanks again.
Hello,
Can anyone please help me?
Basically, everything is working fine with my installation on SMF 1.1.15 but got an issue with topics.
What is happening is that a topic links on my site link like: site.com/index.php?topic=147.msg597#msg597 gets transformed into: site.com/parent_album/sub_album/msg595/#msg595.
Somehow, the "topic" bit is missed. I think the topic info must have been used by the mod to get the parent and sub album names but for some reason, it doesn't create an expected link like site.com/parent_album/sub_album/147/595
If I knew where the urls are constructed, I could have a look at fixing.
Any help appreciated.
Thanks
***EDIT***
Solved.
It was down to an error in my Nginx rewrite.
Corrected Nginx Rewrites:
rewrite ^/(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|forum|help|helpadmin)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(httpBL|im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(post2|postsettings|pp_gallery|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(tpadmin|trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/(verificationcode|vote|viewquery|who|\.xml)/?$ "/index.php?pretty&action=$1" break;
rewrite ^/([^/].+)/([^/].+)/([0-9]+|msg[0-9]+|new)(.*)$ "/index.php?pretty&board=$1&topic=$2.$3" break;
rewrite ^/([^/].+)/([0-9]+)/$ "/index.php?pretty&board=$1.$2" break;
rewrite ^/([^/].+)/(.+)/$ "/index.php?pretty&board=$1&topic=$2.0" break;
rewrite ^/(.+)$ "/index.php?pretty&board=$1.0" break;
"break" may need to be "last" depending on config. Most are likely to require "last"
Plz help me
hxxp:forum.mobilerdx.com/profile/rahul%20baba/ [nonactive]
Profile Redirection Working Fine But
Boards-http://forum.mobilerdx.com/1/
Topics -http://forum.mobilerdx.com/46/nokia-2700c-hardware-tips-by-rebel/msg904/#new
Not Redirect Why
No longer able to use Pretty Urls since the upgrade to 2.0.1
Every other reply or threat created would result in this error
QuoteWarning: require(/hermes/bosweb/web206/b2066/ipg.###/###/forum/cache/data_24aafa72fbb80c014a134937f2692958-SMF-modSettings.php) [function.require]: failed to open stream: No such file or directory in /hermes/bosweb/web206/b2066/ipg.###/###.info/forum/Sources/Load.php on line 2766
Fatal error: require() [function.require]: Failed opening required '/hermes/bosweb/web206/b2066/ipg.###/####.info/forum/cache/data_24aafa72fbb80c014a134937f2692958-SMF-modSettings.php' (include_path='.:/usr/local/lib/php-5.2.17/lib/php') in /hermes/bosweb/web206/b2066/ipg.###/###.info/forum/Sources/Load.php on line 2766
Sice uninstalling this my site has been without this error
Just checked my other site, that has the same problem
Clear your SMF 2.0 cache
Quote from: vbgamer45 on October 30, 2011, 02:04:54 PM
Clear your SMF 2.0 cache
Thats the first thing I did, it doesn't work
Quote from: Tommiiee on October 20, 2011, 07:50:41 AM
Hi,
I've had to install this manually, because my Package Manager wouldn't install it without problems, but it's not working..
In the Admin Panel it says 'Settings saved' when I enable URL rewriting, but my URLs are still the same as before. Can anyone help me out? :)
QuoteWarning: require(/hermes/bosweb/web206/b2066/ipg.###/###/forum/cache/data_24aafa72fbb80c014a134937f2692958-SMF-modSettings.php) [function.require]: failed to open stream: No such file or directory in /hermes/bosweb/web206/b2066/ipg.###/###.info/forum/Sources/Load.php on line 2766
Fatal error: require() [function.require]: Failed opening required '/hermes/bosweb/web206/b2066/ipg.###/####.info/forum/cache/data_24aafa72fbb80c014a134937f2692958-SMF-modSettings.php' (include_path='.:/usr/local/lib/php-5.2.17/lib/php') in /hermes/bosweb/web206/b2066/ipg.###/###.info/forum/Sources/Load.php on line 2766
Ok my host, ipage is claiming this is the fault of SMF and the plugin. I have two sites affected.
Getting them to replicate the fault was murder so I ended up having to make a video for them, yep their that bad.
http://www.youtube.com/watch?v=iNmEm9iA9Zk .
They charged me $50.40 for this!
That's a caching issue with SMF.
Quote from: vbgamer45 on November 01, 2011, 03:36:30 PM
That's a caching issue with SMF.
I've told their so called "specialists" this but they insist its a SMF fault.
Permissions etc have all been checked and correct. Files are going into cache but they wont do anymore, they insist its down to SMF
I set all the files and folders that are supposed to be 777 and the error persisted. Their "specialists" then reset them and the error persisted.
Oh and I should add it only happened when this mod is installed ???
I dont know much but have idea like this, just sugess for re-check:
It shows error on Line 2714 and 2751 in Video, did you check any strange codes at these lines in load.php file? I think it get over time when you submit posts with a very small time waiting, may be? due to executive time allowed by your host?
Other, it has created file in Caches, is there a file suck name overthere? any other mod effected? try to uninstall all other and install this mod to see if it fail? we are all have it works fine!
ipage? yep I know them and precisely what I expected them to say. I use them too. :D
Just set your caching level in SMF to no caching and you should be good.
Quote from: Tomy Tran © 2012 on November 01, 2011, 10:29:33 PM
Other, it has created file in Caches, is there a file suck name overthere? any other mod effected? try to uninstall all other and install this mod to see if it fail? we are all have it works fine!
It wouldn't effect both sites, sites which worked fine until I moved them to ipage
Quote from: smartblogz on November 02, 2011, 05:25:06 AM
ipage? yep I know them and precisely what I expected them to say. I use them too. :D
Just set your caching level in SMF to no caching and you should be good.
That would cause more stress on the server which in turn would lead them to start moaning because they wont fix this :(
Quote from: movierchives on November 02, 2011, 06:55:36 AM
That would cause more stress on the server which in turn would lead them to start moaning because they wont fix this :(
well I disabled mine and voila, problem solved. ;D Give it a try at least to see if it works for you.
Quote from: smartblogz on November 02, 2011, 03:00:09 PM
Quote from: movierchives on November 02, 2011, 06:55:36 AM
That would cause more stress on the server which in turn would lead them to start moaning because they wont fix this :(
well I disabled mine and voila, problem solved. ;D Give it a try at least to see if it works for you.
I know it solves the problem but it causes others with the hosting
Hello!
I moved the forum to another domain. The links point back to the old domain. I tried:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
require_once($sourcedir . '/Subs-PrettyUrls.php');
updateSettings(array('pretty_root_url' => $boardurl));
pretty_update_filters();
?>
but it did not work.
How to solve it manually?
Quote from: Tommiiee on November 01, 2011, 09:05:24 AM
Quote from: Tommiiee on October 20, 2011, 07:50:41 AM
Hi,
I've had to install this manually, because my Package Manager wouldn't install it without problems, but it's not working..
In the Admin Panel it says 'Settings saved' when I enable URL rewriting, but my URLs are still the same as before. Can anyone help me out? :)
Quote from: Tommiiee on November 08, 2011, 05:52:53 AM
Quote from: Tommiiee on November 01, 2011, 09:05:24 AM
Quote from: Tommiiee on October 20, 2011, 07:50:41 AM
Hi,
I've had to install this manually, because my Package Manager wouldn't install it without problems, but it's not working..
In the Admin Panel it says 'Settings saved' when I enable URL rewriting, but my URLs are still the same as before. Can anyone help me out? :)
Server type may not support it. Apache and IIS are supported if they have rewrite enabled.
Hey, Nice mod, just one question.
Well without digging into the code, how can I change...
http://www.mysite.com/index.php
to
http://www.mysite.com/
I know it should be possible with this mod and probably pretty easy to do with this mod. I am just asking you though because you know the code better than me and I don't feel like digging through it for a long time to figure this out.
Thanks in advance,
Russell
Quote from: nend on November 09, 2011, 12:15:28 AM
Hey, Nice mod, just one question.
Well without digging into the code, how can I change...
http://www.mysite.com/index.php
to
http://www.mysite.com/
I know it should be possible with this mod and probably pretty easy to do with this mod. I am just asking you though because you know the code better than me and I don't feel like digging through it for a long time to figure this out.
Thanks in advance,
Russell
Nevermind, I just finished doing this. For anyone who wants to remove index.php
In Sources/PrettyUrls-Filters.php
Find
// Stitch everything back together, clean it up and return
$replacement = isset($context['pretty']['cached_urls'][$url_id]) ? $context['pretty']['cached_urls'][$url_id] :
$cacheableurl;
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';'
. (isset($sesc[0]) ? $sesc[0] : '') . (isset($session_var[0]) ? $session_var[0] : '') . (isset($fragment[0]) ? $fragment[0] :
'');
$replacement = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|&$|;$|#$|=$~'), array(';', '?', '#',
''), $replacement);
Add After
$replacement = str_replace('index.php', '', $replacement);
I installed it & things were going great. I deleted some pretty links, and would now like to use those same ones again.
It wont let me.
Why? Do I have to use new ones everytime? I understand if there was more than one instance, but I checked.
Quote from: vbgamer45 on November 08, 2011, 12:53:10 PM
Quote from: Tommiiee on November 08, 2011, 05:52:53 AM
Quote from: Tommiiee on November 01, 2011, 09:05:24 AM
Quote from: Tommiiee on October 20, 2011, 07:50:41 AM
Hi,
I've had to install this manually, because my Package Manager wouldn't install it without problems, but it's not working..
In the Admin Panel it says 'Settings saved' when I enable URL rewriting, but my URLs are still the same as before. Can anyone help me out? :)
Server type may not support it. Apache and IIS are supported if they have rewrite enabled.
Server is running apache, rewrite is enabled.
By me this trick doesn't work: http://www.geldverdienenopinternetforum.nl/index.php
The URL is not redirecting to http://www.geldverdienenopinternetforum.nl/
Edit: since the moment I added this line in the pretty urls file, I have some big problems with logging in at my forum.
Are you sure this trick works? Maybe it needs some further testing!
After a whole day full of problems with my forum, I can't get all the links working at the moment.
All the links to the boards and the links in the top navigation aren't working anymore. I am/was using the pretty urls mod.
A support specialist said I must place a post in the support mod topic: http://www.simplemachines.org/community/index.php?topic=458743.msg3204856#msg3204856
Please help me as soon as possible. Thank you!
How can i re generate urls?
Problem is,
First i have a categorie named General. Then i rename this, but the url is stil general in die adresbar :)
De-activate pretty URLs, then re-activate it.
Quote from: PatrickForum on November 11, 2011, 02:01:59 PM
De-activate pretty URLs, then re-activate it.
Does not work. Try this 5 times.
Maybe you have to uninstall pretty urls completely
I'm sorry to say (really sorry) but this mod is giving me a lot of problems.
For example, when pretty urls is installed, the catchpa form does not work.
It says that we filled in a wrong letter combination/code - but we are sure that it was the correct one.
We refreshed the page and everything to see if that would work. No it doesn't.
Sometimes we even can't post a new topic or message on the forum, I think because a re-direct error or something.
We uninstalled pretty urls now.
Actually I am thinking I will remove this mod when my forum become larger, the cache of it is an issue, I preffer to have one works like Permenantlinks in Wordpress
or just create pretty url for each board, cat and topic next to its title
or some ways make it takes smaller space of my SQL or host. Sorry author for that news.
This is the error I get when installing Pretty URLs in SMF 2.0.1 see snap shot
That is usually caused by a permission issue.
Thanks and some idea on how and where to fix it. I have no real knowledge of it.
Look in the package manager options tab there should be an option there to reset permissions.
Got it. Had to change it from local host to the FTP Host Address. Works fine now, Thanks for your support
Glad you have it working!
Thanks, the support here is great.
THIS THREAD IS RIDICULOUS WHY 300 pages!!!
I need help im still getting 404 no link on all pages!!
Ive been trying to fix this for 4 hours now
i added the code at the end of the .htaccess still no help!!!!!!!!!!!!!!!!!
Check out the troubleshooting page
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: vbgamer45 on November 17, 2011, 08:05:42 PM
Check out the troubleshooting page
http://code.google.com/p/prettyurls/wiki/TroubleShooting
I checked that dumb page 100 times already the info dosent work
Then the mod probably does not work with your hosting environment would suggest to uninstall it.
I have troubleshooted past one day and what i have found the problem as follows
all the url are mentioned as www
forum is installd in subdir of a wp installation.
note, the .htaccess in wp root use www in front of domain name too.
smf has been setup with www too in domain name.
after activating pretty url for ALL the sections I get:
menu rewriting with www
section rewriting with www
board rewriting without www
topic rewriting without www
I must add www front of forum borad and topic pages its not working because of pretty url mod. How to add www front of website url.
Example :
Old one : http://sitename.com/forum/source/posted-topic-url-page
New one (What i want) http://www.sitename.com/forum/source/posted-topic-url-page
Please help me what to do with pretty urls mod and which page i need to edit in pretty urp php pages.
Thanks Advance.
Check the troubleshooting guide first post in this topic
I just wonder why there is no description how get this function in nginx?
I'm testing currently this setup with nginx and smf 2.0
location / {
try_files $uri $uri/ @rewrite; }
location @rewrite {
# Rules for: actions
rewrite ^/(activate|admin|ads|announce|attachapprove|ban|boardrecount|buddy|calendar|clock)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(collapse|convertentities|coppa|credits|deletemsg|detailedversion|display|dlattach|editpoll|editpoll2)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(emailuser|featuresettings|findmember|groups|help|helpadmin|im|jseditor|jsmodify)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(jsoption|lock|lockvoting|login|login2|logout|manageboards|managecalendar|managesearch|manageattachments|maintain|markasread|mascot)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(membergroups|mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|news|notify)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(notifyboard|optimizetables|openidreturn|packages|permissions|pm|post|postsettings|post2|printpage|profile|quotefast)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(quickmod|quickmod2|recent|regcenter|register|register2|reminder|removepoll|removetopic2)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(repairboards|reporttm|requestmembers|restoretopic|reports|search|search2|sendtopic|serversettings|smileys|smstats|suggest)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(spellcheck|splittopics|stats|sticky|theme|trackip|about:mozilla|about:unknown)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(unread|unreadreplies|verificationcode|viewErrorLog|viewmembers|viewprofile|vote|viewquery|viewsmfile|who)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(\.xml|xmlhttp)/?$ "/forum/index.php?pretty;action=$1" last;
# Rules for: boards & Topics
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/?$ "/index.php?pretty;board=$1.0" last;
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ "/index.php?pretty;board=$1.$2" last;
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ "/index.php?pretty;board=$1;topic=$2.0" last;
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ "/index.php?pretty;board=$1;topic=$2.$3" last;
}
Quote from: vbgamer45 on November 20, 2011, 12:05:25 PM
Check the troubleshooting guide first post in this topic
Hi,
In troubleshooting page i found nothing about my issue. Can you guys please provide the little snippet and which php page i need to change.
Please guide me.
One more question, How to remove board url name in topics urls.
Example :
Old one : http://www.sitename.com/forum/source/posted-topic-url-page
New one (What i want) http://www.sitename.com/forum/posted-topic-url-page
After adding pretty urls.
I have two support questions:
1. If I install and enable pretty URLs, this is added at the end of some URLs: /?Redirectwww
Why is this and how can I make sure it doesn't get added to the URLs?
2. When I install Pretty URLs, my forum is logging me out if I click on a link on the homepage to enter another board.
So, when I want to access a board, I'm suddenly not logged in anymore.
How can I solve these problems?
I have an error with prettyurls. I was making my forum using another domain just for initial purposes then I changed the domain, but the files and everything were the same and I had installed prettyurls at the time when I was using the old domain. Now when I try to use prettyurls on the new domain and click on the boards it goes from the new domain board index to the old domain board. I have ran maintenance and emptied everything, yet still this error is there. Can someone please help.
for example:
Board Index: seconddomain.com
Board: firstdomain.com/board
(I think it might be the MySQL?!)
Thanks
Quote from: Eswar on November 21, 2011, 01:45:51 AM
One more question, How to remove board url name in topics urls.
Admin > Configuration > Pretty URLs
click the settings icon ( looks like a gear) from there you'll have these 4 options to turn off or on.
QuoteBoards
Rewrite Board URLs
Topics
Rewrite Topic URLs
Actions
Rewrite Action URLs (ie, index.php?action=something)
Profiles
Rewrite Profile URLs. As this uses the Username of an account rather than it's Display Name, it may not be desirable to your users.
Quote from: Mr. Pirate on November 24, 2011, 04:36:51 AM
I have an error with prettyurls. I was making my forum using another domain just for initial purposes then I changed the domain, but the files and everything were the same and I had installed prettyurls at the time when I was using the old domain. Now when I try to use prettyurls on the new domain and click on the boards it goes from the new domain board index to the old domain board. I have ran maintenance and emptied everything, yet still this error is there. Can someone please help.
for example:
Board Index: seconddomain.com
Board: firstdomain.com/board
(I think it might be the MySQL?!)
Thanks
Bump! :)
Try the Pretty URL Admin Panel options and turn off all changes it makes to topics, posts, profiles, etc. Then check to see if the links posted in topics are linking to your current forum. then try putting the settings back to Pretty URL.
If that doesn't work, maybe try uninstalling the mod, and click the box "delete all info with this mod" if its available, then re-install it. Only advice I can really think of.
It works when I turn it on, but when I go to the boardindex and click on a board it goes to the old url. I've uninstalled it, ran maintenance, but it won't forget the old url. Please heellllp!! It also happens to any topic too, but not for actions like help and login and stuff.
Is there any other url mod I can use or something?!
I remember there's is one of the portal mods that makes pretty urls, if i remember correctly. Not sure which one, just search 'portal' in smf modifications page. And if you dont like portals, you should be able to turn the actual portal page off.
I downloaded SimpleSEF, looks like its working!!
Thanks for the help by the way!
50 + errors in half a days use from 2 users, forum seems to be operating though, also anti-spam mods wouldnt install with it enabled
Quote
Apply Filter: Only show the error messages of this URL
http://www.domain.net/index.php?pretty;board=forum-news-chat.0&action=post2;start=0
Apply Filter: Only show the errors with the same message
8: Undefined variable: topicOptions
Apply Filter: Only show the errors from this file
File: /home/domain/public_html/Sources/Subs-Akismet.php
Line: 67
can anyone help with this..?
the url varies to whatever page is being rendered I think
That looks like from your Akismet mod.
I thought it was to do with pretty urls cos each one has 'pretty' in the url and all other errors have 'pretty' in the url too
got a few of these ones too
QuoteApply Filter: Only show the error messages of this URL
http://www.domain.net/index.php?pretty;action=admin&area=ezpblocks;sa=addblock2
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home/domain/public_html/Themes/default/EzPortal2.template.php
Line: 695
Search for disable temp eval to get the true error location.
i disabled that already (after someone else told me too previously for something else)...those are with it disabled
Find variable of
Quote
Apply Filter: Only show the error messages of this URL
http://www.domain.net/index.php?pretty;board=forum-news-chat.0&action=post2;start=0
Apply Filter: Only show the errors with the same message
8: Undefined variable: topicOptions
Apply Filter: Only show the errors from this file
File: /home/domain/public_html/Sources/Subs-Akismet.php
Line: 67
and something else in your Portal in rank of loop
QuoteApply Filter: Only show the error messages of this URL
http://www.domain.net/index.php?pretty;action=admin&area=ezpblocks;sa=addblock2
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home/domain/public_html/Themes/default/EzPortal2.template.php
Line: 695
I did not see any errors point to files of PrettyURLs mod, or I need to see doctor with my eyes :D
I had to disable PRETTY URLS to install anti-spam mods...
I'm having an issue whereby Pretty URLs is not changing page URLs. For example, the links in all pages such as...
sitename.com/index.php?topic=12345.0
...are NOT being changed to...
sitename.com/board/topic/
Mod_rewrite is active, and calling "sitename.com/board/topic/" directly does work. In addition, clicking any link on the page does change the address in the address bar to "sitename.com/board/topic/", but the link itself (when moused over, for example) is still the original SMF format.
My Apache log is filled with 301 redirects before every page hit.
I looked over the Troubleshooting page (more than once) and did not see a solution.
I'm using SMF 2.0.1. I have full control over the entire server, so although maybe an Apache config issue, it isn't a "hosting issue".
The package install went fine, without errors. In addition, I manually checked each code change. All fine.
And of course, Pretty URLs is enabled and the rewrite boxes are checked.
Any help would be appreciated. At this point I am unable so see what the issue could be.
I searched this thread many times in many different ways and I saw only one other person with the same issue from 4 years ago. The problem there was he was using Spanish. Changing to English solved it. I'm already using English (not UTF-8).
-T.
strange error, first installed on a submap forum works perfect, now installing in de root and getting modifciationserrors.
solutions?
I just upgraded from 1.1.15 to 2.0.1 and opted not to continue using Pretty URLs. Obviously I have issues with nothing mapping to where it used to. Internally I have to change all my links that point to other parts of my forum. I figure search engines will eventually get the message and reindex me - I'm not terribly concerned about SER anyway.
Any tips or pointers for making life easier during this transition period? Thanks.
Go to the pretty urls site and get the reverter package
Thanks for the tip. Just to be clear, will that work on my now upgraded to 2.0.1 forum?
Yes it will.
Hmm. . .it shows up in Packages after upload but no Install option available. Link about manual install in one doc goes to main mod site. Am I just SOL? If so, thanks anyway.
What SMF version are you running?
2.0.1
Try to use the emulate version in the package manager under advanced and try SMF 2.0
It worked! Thank you ever so much.
I would have done it manually and that was going to take a very long time. And I never would have figured out (or dared to try) the emulate function.
Glad you were able to get it working!
I still have my problem (above, #6404). :(
Any ideas?
-T.
What SMF version? Any errors on install?
2.0.1. No errors.
I also noticed something else...
Pretty URLs is supposed to add a project link down near the load times, yeah? That isn't there.
I'm using the default theme.
-T.
The link appears only if certain settings are enabled in SMF.
I see. What settings? Maybe I could use it to troubleshoot?
Otherwise... I'm at a loss. I've been going around with this for awhile. Only thing I can think of is something in the database, or something with the .htaccess file.
There were no errors during install, I'm getting no errors at run-time, and all added code is visually accounted for (as per the 2.0.1 manual install page).
-T.
EDIT: I enabled full PHP error logging. Nothing appearing there.
LOL, I see people complaining about 25mb cache table size, mine is over 2.2 gigs! I do have an older version which I am going to upgrade, 2.2 GB is just dumb.
Consider 25mb = 25 USD and 2.2 GB = a lot of money. Do you want to save more 25 USD ? :D
PLS, someone can tell me how can i set a custom url for a custom page?
like: www.mysite.com/custom-page.php
to: www.mysite.com/custom
Repeat question: /custom-page.php
http://www.simplemachines.org/community/index.php?topic=146969.msg3175832#msg3175832
Hello,
I wanted to move my site to another host but this mod made big mess.. smf_pretty_urls_cache file size is 14GB :( and all my rest forum db size is 3 gb :(
I want to get rid of this.. pls tell how do i make this smaller
Quote from: Rohan_ on December 02, 2011, 11:08:44 PM
Hello,
I wanted to move my site to another host but this mod made big mess.. smf_pretty_urls_cache file size is 14GB :( and all my rest forum db size is 3 gb :(
I want to get rid of this.. pls tell how do i make this smaller
Worth information to pay attention about using this mod.
You can try to clear cache of PrettyURLs, then optimize the database then cache of forum system or any thing else can make cache.
Then, see how many MB will has been decreased after do clear them, this is time to download your database from phpmyadmin to backup it at lightest file. Please tell me the result how many MB has been decreased, thank you.
you mean clean all the data inside that prettyurls cache table ?
what if i disable prettyurl after deleting the cache.. will my old urls will work ? like ........ site.com/board/thisismytopic
:D Your data is huge, I mean this link:
site.com/admin/?area=pretty;sa=maintenance;run
If you disable, they will not work I believe that. Pretty works like a method, cache works like a powders, you can not make a cake without one of both.
But on your talk, I am thinking, the first time we have installed this mod, we run maintenance like above to make pretty work for all old links. Now, we can remove content of them on the tables then run maintenance again when we need, but not the structure of pretty cache tables. You can do it on your risks.
I gone to phpmyadmin and emptied the prettyURL's cache table which was 14GB..
any problems now ?
Ah, I read your first question again, you want to remove this mod out of your forum?
First, go to
1. Admin >> Configuration >> Pretty URLs >> Settings: Un-tick all and Save changes
2. Admin >> Configuration >> Pretty URLs >> Maintainance: Run maintenance tasks
Second, go to
1. Admin >> Packages Manager to Uninstall this mod then after refresh page, jut Delete this mod
2. Follow this link to download a reverter package
http://code.google.com/p/prettyurls/downloads/detail?name=prettyurls-reverter-1-0RC2.zip&can=2&q= (http://code.google.com/p/prettyurls/downloads/detail?name=prettyurls-reverter-1-0RC2.zip&can=2&q=) to return your pretty urls to normal urls.
Third, check your database to see if you can define which and need to drop this mod's tables structure. Run maintainance your forum and optimize your database before save a file as backup database.
Last, try to config and setup your forum on new host successfully before ease the old one. Becareful of database with charater in Unicode UTF-8.
If you still want to use this mod:
1.
Quote from: Rohan_ on December 04, 2011, 02:03:55 AM
I gone to phpmyadmin and emptied the prettyURL's cache table which was 14GB
2. Clear all no neccesary records and cache at your url site.com/admin/?area=maintain;sa=routine
3. Optimize your database on forum admin at your url site.com/admin/?area=maintain;sa=database.
4. Go to your host >> phpmyadmin to save a file for backup (tell me how many weight of this file.).
5. Try to config and setup your forum on new host successfully before erase the old one. Becareful of database with charater in Unicode UTF-8.
I don't want to Un Install the mod.. Just wanted to get rid of that 14GB PrettyURLs Cache Table.. So In PHPMYADMIN I just selected that table and emptied it.. now 14GB is gone and the forum is still stable and normal like before.. That Table Just had url's saved in it like mysite.com/topic=123 to mysite.com/topictitle
Good news!
Did you go to your forum and login as admin to optimize database then clear all cache and any records you find it no neccessary (better to turn your forum in maintainance mod during this backup) then login back to your host, save your database via phpmyadmin, start setpup your forum on new host.
Wait to hear your result ;)
Hello there.
Anyone can help me with this error i get in error log?
Quote
Error in database: Out of memory (Needed 162720 bytes)
File: /home/blah/forum/Sources/PrettyUrls-Filters.php
Line: 60
On that line i have:
array('urls' => $urls_query));
version: smf 2.0.1
Quote from: Tomy Tran © 2012 on December 02, 2011, 05:57:01 PM
Repeat question: /custom-page.php
http://www.simplemachines.org/community/index.php?topic=146969.msg3175832#msg3175832
what about that link?
Quote from: Tomy Tran © 2012 on December 05, 2011, 03:04:34 AM
Good news!
Did you go to your forum and login as admin to optimize database then clear all cache and any records you find it no neccessary (better to turn your forum in maintainance mod during this backup) then login back to your host, save your database via phpmyadmin, start setpup your forum on new host.
Wait to hear your result ;)
I don't take backups via Phpmyadmin :D I took backup from SSH and restored it to new host via SSH too.. all fine..
All fine is last thing we wait for. Congratulation. Can you create a customize code like a mod to install into forum, when admin need, he can login to empty tha pretty cache tables ;) when you done, could you send me a copy?
Quote from: thernlund on November 27, 2011, 01:09:09 PM
I'm having an issue whereby Pretty URLs is not changing page URLs. For example, the links in all pages such as...
sitename.com/index.php?topic=12345.0
...are NOT being changed to...
sitename.com/board/topic/
Mod_rewrite is active, and calling "sitename.com/board/topic/" directly does work. In addition, clicking any link on the page does change the address in the address bar to "sitename.com/board/topic/", but the link itself (when moused over, for example) is still the original SMF format.
My Apache log is filled with 301 redirects before every page hit.
I looked over the Troubleshooting page (more than once) and did not see a solution.
I'm using SMF 2.0.1. I have full control over the entire server, so although maybe an Apache config issue, it isn't a "hosting issue".
The package install went fine, without errors. In addition, I manually checked each code change. All fine.
And of course, Pretty URLs is enabled and the rewrite boxes are checked.
Any help would be appreciated. At this point I am unable so see what the issue could be.
I searched this thread many times in many different ways and I saw only one other person with the same issue from 4 years ago. The problem there was he was using Spanish. Changing to English solved it. I'm already using English (not UTF-8).
Well.... I guess I'm on my own with this one. :(
Thanks anyways.
-T.
Hello,
Is there a way to get this Pretty URLs 1.0RC5.2 mod on SMF 2.0.1 to work properly under my website that is using https or known SSL.
I am currently using SSL with my forum currently but I have to disable the pretty urls features for board, topic and action in the settings.
Is there like something I need to add to the .htaccess file to get those three functions in pretty urls to work properly with SSL?
When I do activate those three functions (board, topic and actions) inside the pretty url settings and try to utilize any of those functions I just get a redirect back to the index page of my site.
Any suggestions? Greatly appreciated if someone can help me address this... : ) Thanks!
I don't know much but before install it, why dont you try to find whole the package (I mean all the content of files in this mod) the keyword of "http", if found, replace it to https ;) ?
Thanks! Will give that a try... : )
Ended up reinstalling Pretty URL's twice but had an issue on my forum when trying to modify my boards via the admin panel and get this error message:
QuoteFatal error: Cannot redeclare template_pretty_board_url() (previously declared in /home/content/31/8381431/html/Sources/Load.php(2175) : eval()'d code:663) in /home/content/31/8381431/html/Sources/Load.php(2175) : eval()'d code on line 746
Anything I can do to fix this?
You have to remove the duplicate code from the template file.
Its quite a bit of code....but will sift it out... Thank You! : )
Just look for the template files that the mod modified and make sure it did not add the code twice.
Quote from: Tomy Tran © 2012 on December 06, 2011, 02:29:00 AM
All fine is last thing we wait for. Congratulation. Can you create a customize code like a mod to install into forum, when admin need, he can login to empty tha pretty cache tables ;) when you done, could you send me a copy?
man I don't know that much of php coding.. I can't create a function like that :(
I need help in 1 thing.
Can I add ".html" at the end of all urls ?
getting lots of errors with this mod, works fine though:
Apply Filter: Only show the error messages of this URL
http://www.tech4talk.net/index.php?pretty;board=tech-news;topic=sky-follows-bt-and-blocks-newzbin2.new&topicseen
Apply Filter: Only show the errors with the same message
8: Undefined index: href
Apply Filter: Only show the errors from this file
File: /home/techtalk/public_html/Themes/ds-natural_20/index.template.php
Line: 366
same line of code as was playing up on your E-Notify mod:
<a class="', $button['active_button'] ? 'active ' : '', '" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '><span>', $button['title'], '</span></a>';
Will there be an option to enable SSL with this mod in the settings area anytime soon as a check box or enable with pretty urls?
Thanks!
Victor
Quote from: merculiv on December 16, 2011, 10:47:25 AM
Will there be an option to enable SSL with this mod in the settings area anytime soon as a check box or enable with pretty urls?
Thanks!
Victor
No time soon.
I moved my smf to new host n domain. I set it up properly.. changed the directory using repair_settings.php
still i get the following error:
The requested URL /politics-debate/ 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.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.17 Server at forums.techarta.com Port 80
what is the reason!
Do you have mod_rewrite installed? That is required I don't see it in the mod list from your server response.
Hello everybody hope someone gonna reply to me or can help me
i installed the mod everyting is ok , it works like a charm, but when i want to post a reply or a new reply or a new topic, nothing shows up empty page blank, all the other links seems to work in the forum.
so if someone knows what happens or has the same problem and has resolve it, it would be cool to share the info, since i cannot fix this by myself !!! thanks
SMF forum v2.01
simply portal latest
defaut look and layout
aeva media
and more but doesn't make this bug
after installing pretty urls it works but not the reply buttons new topic button, new poll, add poll, unread, unnotify, but the rest seems to work great
www.powerfullinfo.com
for example problem on post a new topic
http://powerfullinfo.com/mainstream-media/?action=post
blank page, and so are the others too
First thing I would do is check your forum's error log when you click on a link that is blank and see if there is any related errors.
need help pls
everything working but get no answer on the mod site for y issue
if you need more explanation ask me
post topics reply notify unread add poll buttons not working, get a blank page
ok ty i gonna check the error logs stay tuned pls
so thats not cool get no error log
if you wanna try or look at the code you can use this account
www.powerfullinfo.com
login with : visitor
password : visitor
this is for example the new topic url that doesn't work blan page
http://powerfullinfo.com/mainstream-media/?action=post
Quote from: vinzbomb on December 20, 2011, 10:38:16 AM
need help pls
everything working but get no answer on the mod site for y issue
if you need more explanation ask me
post topics reply notify unread add poll buttons not working, get a blank page
so thats not cool get no error log
if you wanna try or look at the code you can use this account
http:www.powerfullinfo.com (//http://http:www.powerfullinfo.com)
login with : visitor
password : visitor
this is for example the new topic url that doesn't work blan page
http:powerfullinfo.com/mainstream-media/?action=post (//http://http:powerfullinfo.com/mainstream-media/?action=post)
Modify message
Quote from: vbgamer45 on December 20, 2011, 10:35:02 AM
First thing I would do is check your forum's error log when you click on a link that is blank and see if there is any related errors.
so thats not cool get no error log
if you wanna try or look at the code you can use this account
www.powerfullinfo.com
login with : visitor
password : visitor
this is for example the new topic url that doesn't work blan page
www.powerfullinfo.com/mainstream-media/?action=post
Modify message
Quote from: vinzbomb on December 20, 2011, 10:52:04 AM
Quote from: vbgamer45 on December 20, 2011, 10:35:02 AM
First thing I would do is check your forum's error log when you click on a link that is blank and see if there is any related errors.
so thats not cool get no error log
if you wanna try or look at the code you can use this account
www.powerfullinfo.com
login with : visitor
password : visitor
this is for example the new topic url that doesn't work blan page
www.powerfullinfo.com/mainstream-media/?action=post
Modify message
If you resolve my problem i'll give you an vip account for life !!! thanks
Modify your index.php file and add after
<?php
ini_set("display_errors",1);
Quote from: vbgamer45 on December 20, 2011, 12:41:01 PM
Modify your index.php file and add after
<?php
ini_set("display_errors",1);
so i add that code but get no error logs
i don't undesrtand it
thanks for your help anyways its cool
but it doesn't work, i tried many things in settings but doesn't work
here is the list of all mods installed:
1. Pretty URLs 1.0RC5.2
2. Country Flags 1.1.3
3. Smart Pagination 0.8
4. SimplePortal 2.3.4
5. Default Avatar 2.2
6. Invitation Message In Your Face (IMIYF) 0.3.1
7. SA Chat Beta 3 Rev41
8. Forum Name in Browser Title 2.0.1
9. Custom Copyright 1.0.2
10. Add GooglePlus to Posts 1.0
11. FB & Twitter Sharer Mod 2.0 2.0
12. Custom BBCode 2.03
13. Aeva Media 1.4w
14. YouTube BBCode 2.6
15. BCC Messages 1.2
16. Add Twitter Tweet Button to Posts 1.1
17. Highslide BBCode and Image Viewer 1.0
18. Custom Pages and Tabs (2) SMF 2 - RC3 1.1
everyting works with smf 2.01 very well except the problem with pretty urls
help !!!!
Quote from: vinzbomb on December 20, 2011, 07:06:48 PM
Quote from: vbgamer45 on December 20, 2011, 12:41:01 PM
Modify your index.php file and add after
<?php
ini_set("display_errors",1);
so i add that code but get no error logs
i don't undesrtand it
thanks for your help anyways its cool
but it doesn't work, i tried many things in settings but doesn't work
here is the list of all mods installed:
1. Pretty URLs 1.0RC5.2
2. Country Flags 1.1.3
3. Smart Pagination 0.8
4. SimplePortal 2.3.4
5. Default Avatar 2.2
6. Invitation Message In Your Face (IMIYF) 0.3.1
7. SA Chat Beta 3 Rev41
8. Forum Name in Browser Title 2.0.1
9. Custom Copyright 1.0.2
10. Add GooglePlus to Posts 1.0
11. FB & Twitter Sharer Mod 2.0 2.0
12. Custom BBCode 2.03
13. Aeva Media 1.4w
14. YouTube BBCode 2.6
15. BCC Messages 1.2
16. Add Twitter Tweet Button to Posts 1.1
17. Highslide BBCode and Image Viewer 1.0
18. Custom Pages and Tabs (2) SMF 2 - RC3 1.1
everyting works with smf 2.01 very well except the problem with pretty urls
help !!!!
Btw i really got to use this mod, and no nobody can even post or reply now on the forum
help !!!!!!!!!! ;)
Do you get any errors that display?
Quote from: vbgamer45 on December 20, 2011, 07:28:45 PM
Do you get any errors that display?
yes i got everyday some errors in the logs
but i removed all logs everytime before testing somthing, like your code above and no logs
no logs that explain the error
Quote from: vinzbomb on December 20, 2011, 07:32:10 PM
Quote from: vbgamer45 on December 20, 2011, 07:28:45 PM
Do you get any errors that display?
yes i got everyday some errors in the logs
but i removed all logs everytime before testing somthing, like your code above and no logs
no logs that explain the error
the quote button and modify don't work too
Quote from: vinzbomb on December 20, 2011, 07:39:54 PM
Quote from: vinzbomb on December 20, 2011, 07:32:10 PM
Quote from: vbgamer45 on December 20, 2011, 07:28:45 PM
Do you get any errors that display?
yes i got everyday some errors in the logs
but i removed all logs everytime before testing somthing, like your code above and no logs
no logs that explain the error
the quote button and modify don't work too
what i can say after testing and testing is the url problem occurs only when it is an action button like post or make a new etc ....
and problem is everywhere in all forum pages and mods every action button leads to a blank page
no error message or logs, to explain it
if someone can fix it for me, it will be very cool thanks
Hi,
Just installed on a new installation of SMF, I installed on a separate smf forum and all work fine.
This time the URL shows a double // at the end.
The site: belizeconnect.com//travel-information/
Any ideas on how to fix?
Thanks,
belaze
i have problem with sitemap
links look like this
http://www.logooff.net/themes-support/index.php
and should be look like this
http://www.logooff.net/themes-support/
can you me help to reslove this?
Quote from: belaze on December 29, 2011, 03:15:38 AM
Hi,
Just installed on a new installation of SMF, I installed on a separate smf forum and all work fine.
This time the URL shows a double // at the end.
The site: belizeconnect.com//travel-information/
Any ideas on how to fix?
Thanks,
belaze
You shoud check your Forum URL at this address:
http://forum.vnweb.org/index.php?action=admin;area=serversettings;sa=database
It shoud be http://forum.vnweb.org (without / at the end).
Quote from: rocknroller on January 04, 2012, 05:23:48 PM
i have problem with sitemap
links look like this
http://www.logooff.net/themes-support/index.php
and should be look like this
http://www.logooff.net/themes-support/
can you me help to reslove this?
See this: http://www.simplemachines.org/community/index.php?topic=146969.msg3203937#msg3203937
thanks Tomy Tran :)
How to change the "- " to "+".
For example -
IN-the-news
in+the+news
i want to uninstall this mod and i want to rewrite all the links to normal.. what should i do?
i want this : http://www.amigozone.com/board/topic/
to redirect to :http://www.amigozone.com/index.php?topic=3351.0
You can't without the mod.
You would need to modify the mod to divert/redirect urls to their short version.
Then months later you could be able to uninstall the mod without an seo penalty.
Download the reverter package at
http://code.google.com/p/prettyurls/downloads/list
I already uninstalled this and the reverter over a year ago. now i want to delete them and it won't let me. what would you do?
Quote from: Groovystar on January 09, 2012, 12:24:55 AM
I already uninstalled this and the reverter over a year ago. now i want to delete them and it won't let me. what would you do?
Clean cache of PrettyURLs in database, I dont remember exactly but seem in settings table has some as well.
Thank you--then I could just delete it safely in Cpanel?
What would be the steps to do this?
Open your Host PhpMyAdmin, just search for word pretty (remember to Select All tables to search Inside) you will see some useful information to play around.
I've found a whole lot of stuff but it seems tangled up with SimpleSEF, which we do use and need to retain.
Aeva Media Support Hack
In ./Sources/PrettyUrls-Filters.php
Before
?>
Add
// Filter Aeva Media URLs
function pretty_aeva_filter($urls)
{
global $boardurl;
$pattern = array(
'~.*[?;&]action=media;sa=media;in=([0-9]+);(thumba?|preview)(.*)~S',
'~.*[?;&]action=media;sa=(album|item|media);in=([0-9]+)(.*)~S',
'~.*[?;&]action=media(.*)~S',
);
$replacement = array(
$boardurl . '/media/$2/$1/?$3',
$boardurl . '/media/$1/$2/?$3',
$boardurl . '/media/?$1',
);
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']) && strpos($url['url'], 'action=media') !== false)
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
}
In .Sources/PrettyUrls-Tests.php - Don't know if this is needed but might as well.
Before
?>
Add
// Dummy Aeva Test
function pretty_aeva_test()
{
global $scripturl, $txt;
// Just return a few
return array(
'<a href="' . $scripturl . '?action=media;sa=album;in=1">' . $txt['help'] . '</a>',
'<a href="' . $scripturl . '?action=media;sa=item;in=123">' . $txt['search'] . '</a>',
'<a href="' . $scripturl . '?action=media;sa=media;in=38">' . $txt['members_title'] . '</a>',
);
}
Navigate to http://yoursite.com/?action=admin;area=pretty;sa=filters
Add this to the text box right after the first line "{"
"aeva": {
"description": "Aeva Media filter",
"enabled": 1,
"filter": {
"priority": 38,
"callback": "pretty_aeva_filter"
},
"rewrite": {
"priority": 38,
"rule": [
"RewriteRule ^media/(thumba?|preview)/([0-9]+)/?(.*)$ index.php?action=media;sa=media;in=$2;$1;$3 [L,QSA]",
"RewriteRule ^media/(?:(album|item|media)/([0-9]+)/?)?(.*)$ index.php?action=media;sa=$1;in=$2;$3 [L,QSA]"
]
},
"test_callback": "pretty_aeva_test",
"title": "Aeva Media"
},
Now you should be able to activate it in the Aeva Settings, ;)
Quote from: Groovystar on January 15, 2012, 11:53:51 AM
I've found a whole lot of stuff but it seems tangled up with SimpleSEF, which we do use and need to retain.
I am not sure if it would work at all with SimpleSEF since both programs do url rewriting I can see potential conflicts.
Hello vbgamer45
Is it possible use this mod for SMF gallery pro?
And how?
THX
Yes it is. I believe I have an addon in the pro forums with pretty urls support.
Quote from: vbgamer45 on January 15, 2012, 02:12:39 PM
Quote from: Groovystar on January 15, 2012, 11:53:51 AM
I've found a whole lot of stuff but it seems tangled up with SimpleSEF, which we do use and need to retain.
I am not sure if it would work at all with SimpleSEF since both programs do url rewriting I can see potential conflicts.
So I should not need one to use the other?
Pretty URLs was apparently uninstalled, but looking at the code I can't tell where one begins and the other ends and we still have pretty URL code all over the place.
Correct it should be either or.
If you are not using prettyurls at all download the manual install instructions remove the code that it added.
Quote from: vbgamer45 on January 15, 2012, 03:24:55 PM
Yes it is. I believe I have an addon in the pro forums with pretty urls support.
And where is this pls.?
http://www.smfhacks.com/index.php/topic,4336.0.html
Ou, my membership is over...
OK... THX.
Just installed and everything is working fine. The only issue is this line of code is showing up at the top of my forum...
// Pretty URLs mod $txt['pretty_urls'] = 'Pretty URLs';
http://coastercommunity.com/smf_forum/index.php
Open themes/default/languages/modifications.english.php
Find
?>
And move that all the way to bottom on its own line
That fixed it. Thanks
Glad to help
Hmm, everything seems to have been working perfectly, except one topic gives a "error 404 page not found"
The offending URL is
http://www.mzp-tv.co.uk/forum/knight's-haven/knight's-haven-main-cast-(season-one)/
Similar URLs work fine, such as
http://www.mzp-tv.co.uk/forum/knight's-haven/knight's-haven-now-playing-(season-one)/
and
http://www.mzp-tv.co.uk/forum/knight's-haven/knight's-haven-opening-credits-(season-one)/
Very strange. Any ideas? I'd hate to uninstall the mod as it's so damn good.
Help? Pretty please?
Did you rename a topic?
Nope. A member pointed out that it didn't work. I checked and got the error too.
Later I tried renaming it, but it made no difference so reverted it.
Installed pretty url and now I cannot login and I cannot access my boards.
Anyone know how to disable or remove this without access to admin?
Check out first FAQ topic at
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Thank you, I have access to everything now. Any suggestions to try to make it work right this time? Thanks.
What happened were the links broken or were you getting some other error?
Hi thanks! Yea it was just error on all links from the index page basically. I could see the index fine but any board, thread, or admin link led to error pages. 404 I think as it just redirected back to my homepage.
There's no more "Pretty extras" for google tags, etc?
Quote from: distante on January 28, 2012, 11:46:40 PM
There's no more "Pretty extras" for google tags, etc?
I don't believe so
oh! They don't exist anymore or they are build inside the latest RC5 ?
If they existed before then they are still there. the extras package is a separate package from the pretty urls site.
Well I had an backup with the extras and it worked :P
I have now an philosophical issue, I'm seen now (well confirming) that my site using with and without index.php in the url are taking by search engines (and facebook) as two different pages (with duplicate content).
So, I was trashing and searching for the way to edit the htaccess so I can redirect index.php to the main site, after a while I found this code:
RewriteCond %{REQUEST_URI} ^/index\.php
RewriteRule ^.*$ http://%{HTTP_HOST} [R=301,L]
It worked...but trash the urls in pretty giving instead of: www.forosperuanos.net/search/ this--> www.forosperuanos.net/?pretty%3baction=search
If I try to use a simple redirect301 /index.php to / (or the site url) a infinite redirects loop begins.
Any Idea Of how can I do this change without break PrettyUrls?
Regards ;)
I think there is a mod on the mod site that removes the index.php call forget the name of it though.
Yeap you are right -> Remove Index.Php From URL (http://custom.simplemachines.org/mods/index.php?mod=2709)
But it just remove the link inside the forum, so if you write the index.php that doesn't redirect to the main url.
I will continue with the search! hehe :P
Quote from: distante on January 31, 2012, 07:39:50 PM
Yeap you are right -> Remove Index.Php From URL (http://custom.simplemachines.org/mods/index.php?mod=2709)
But it just remove the link inside the forum, so if you write the index.php that doesn't redirect to the main url.
I will continue with the search! hehe :P
Not a mod but a hack to pretty urls. I posted it in this topic a few pages back.
http://www.simplemachines.org/community/index.php?topic=146969.msg3203937#msg3203937
Quote from: nend on January 31, 2012, 09:33:34 PM
Quote from: distante on January 31, 2012, 07:39:50 PM
Yeap you are right -> Remove Index.Php From URL (http://custom.simplemachines.org/mods/index.php?mod=2709)
But it just remove the link inside the forum, so if you write the index.php that doesn't redirect to the main url.
I will continue with the search! hehe :P
Not a mod but a hack to pretty urls. I posted it in this topic a few pages back.
http://www.simplemachines.org/community/index.php?topic=146969.msg3203937#msg3203937
Thanks!
I added the line here:
// Stitch everything back together, clean it up and return
$replacement = isset($context['pretty']['cached_urls'][$url_id]) ? $context['pretty']['cached_urls'][$url_id] : $cacheableurl;
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($session_var[0]) ? $session_var[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
$replacement = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|&$|;$|#$|=$~'), array(';', '?', '#', ''), $replacement);
//REMOVE index.php <<<<<<<<<<<<<---------------------------
$replacement = str_replace('index.php', '', $replacement);
//-----------------
return $matches[1] . ($addQuotes ? '"' : '') . $replacement . ($addQuotes ? '"' : '');
But still I'm able to enter to www.forosperuanos.net/
index.php if i write it =\
I didn't know you want to remove all traces of index.php
You can add something similiar to the top of index.php
if (stristr($_SERVER["REQUEST_URI"], 'index.php')) {
header('HTTP/1.0 404 Not Found');
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>404: Page Not Found</title>
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" />
</head>
<body>
<h1>404: Page Not Found</h1>
</body>
</html>';
die();
}
Remember to keep that rewrite url in pretty that I showed you or you will have problems, ;)
Oh but that will cut external link to mysite/index.php, maybe can I put a meta refresh to the main site instead!
I will try after have launch :P
Thanks!
Ok ! sorry for the delay, I had a problem outside the matrix.
So I added the code in the Pretty-Filters and added this in the index.php
if (stristr($_SERVER["REQUEST_URI"], '/index.php')) {
header("HTTP/1.0 301 Moved Permanently");
header("Location: http://www.forosperuanos.nett/");
exit();
die();
}
It work like a charm :D!!!
Thanks nend!
Edit!
No it doesn't work fine. The attachtments aren't showing, I need some way to apply this only to the index.php alone or create some kind of pretty action for the "index.php?action=dlattach" line (and so on :S)
my smf_pretty_urls_cache table have
increased and keeps increasing under two
weeks up to 385mb since i switched hosts. And am
thinking it has caused the server overload
problem i keep getting everyday.
Does anyone think this issue or this mod
having this kind of issue can cause server
overload problems.
I want to disable the mod or anyone have
any idea on how to fix this issue. Thanks
The mod uses a of database space. Every link in the forum is cached and saved in the database
Ok.. What am actually interested in is if this can cause overload. I have about 8k topics. If it is, i want to disable it. I had issues wit this particular table when i switched hosts, it crashed and couldnt repair... After successful repair, i think it keeps increasing. My db was 500mb b4 i switched hosts, after switch, under two weeks, iys now 800mb.
Quote from: Babadinho on February 07, 2012, 11:38:53 AM
Ok.. What am actually interested in is if this can cause overload. I have about 8k topics. If it is, i want to disable it. I had issues wit this particular table when i switched hosts, it crashed and couldnt repair... After successful repair, i think it keeps increasing. My db was 500mb b4 i switched hosts, after switch, under two weeks, iys now 800mb.
The cache is bugged up, I just check it out. It is caching all the urls on a site and not only the site urls. Let me put it this way if you have a api that makes calls back and forth quite a bit, it will cache each unique url. These unique URLs for these APIs are only meant to be used once so there is no need to cache them. Bad thing though is that with some API's you can generate a few of these URLs with each page load, times that by your traffic and your going to be in trouble sooner or later. Most of these are URL's that are meant to only be used once. :-\
LOL funny thing though is Pretty URLs cache table is taking up like 75% of my DB space. That makes sense though since I use allot API's.
Find this line in /Sources/PrettyUrls-Filters.php
// Cache only the URLs which will fit, but replace $boardurl first, that will help!
if (strlen($url_id) < 256 && strlen($url['replacement']) < 256)
$cache_data[] = array($url_id, str_replace($boardurl, '`B', $url['replacement']));
and replace
// Cache only the URLs which will fit, but replace $boardurl first, that will help!
if (strlen($url_id) < 256 && strlen($url['replacement']) < 256 && stristr($url['replacement'], $boardurl))
$cache_data[] = array($url_id, str_replace($boardurl, '`B', $url['replacement']));
This says if the replacement doesn't point to our site then don't cache it. Tonight it looks like I am cleaning up a DB, lol.
*edit
Finished cleaning out my db, strange though there where allot of URLs in there that I don't link to and I don't have a API for. I wonder how pretty is getting a hold of these URLs, maybe referrer or something but doesn't seem like it should. Has to be a explanation so I got to stop speculating. So I started with 16MB used in that area of the DB, now I ended up with just a little over 1MB.
Pretty is still going to phase these URL's though once it runs across them, it just isn't going to cache external urls. I don't think this will be any extra work though because they are all generated authorization/API URLs mainly. I would think this would be more beneficial to the DB and the impact of doing this is not as bad as the impact of caching every url is having on the DB.
Hey nend you seem to be pretty intelligent and thanks very much for the feedback on this..
I have noticed some bugs with this also and your right about it caching URLS that it shouldn't be...
It is slowing my site down in some instances so I figured after reading this that this is the problem.
Is there any chance the author could update this.
Can I basically empty the cache table or is this a no no your gonna screw everything up.
Then apply your edits so it does cache better?
This table alone is 179mb that is huge... My database is only 400mb in total..
Maybe this could be re-written to solve these issues?
Edit:
Running the maintenance tasks seemed to of help that ;)
Emptied the table its self.. Back to a small size one now :)
You can empty it but some urls might change which would be bad for search engines.
VB is right, it is better to clean all the bad URLs manually. You can drop all them though but be aware that the URLs might not be generated the same. The site will not break, just different URL.
Quote from: nend on February 08, 2012, 11:19:17 AM
VB is right, it is better to clean all the bad URLs manually. You can drop all them though but be aware that the URLs might not be generated the same. The site will not break, just different URL.
Ahh not bothered about Google.. Google only puts you 1st if you are the only person in the world who has content in your website no one else does or you pay..
Not open to guests anyway lol.. I basically use it for the title Pretty.. So when you share URLS or paste them to friends they know what they..
I applied your edit too and its noticeable the difference after this table was emptied after running the maintenance I didn't empty the table myself the maintenance did...
Thanks for the fix on it only adding URLS that contain $boardurl very helpful
@aljo1985 can you test this out for me, This just disables the cache totally, Just replace the entire pretty_rewrite_buffer function with this. ;)
// Rewrite the buffer with Pretty URLs!
function pretty_rewrite_buffer($buffer)
{
global $boardurl, $context, $modSettings, $smcFunc;
// Remove the script tags now
$context['pretty']['scriptID'] = 0;
$context['pretty']['scripts'] = array();
$buffer = preg_replace_callback('~<script.+?</script>~s', 'pretty_scripts_remove', $buffer);
// Find all URLs in the buffer
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';
$urls_query = array();
$uncached_urls = array();
foreach ($context['pretty']['search_patterns'] as $pattern)
{
preg_match_all($pattern, $buffer, $matches, PREG_PATTERN_ORDER);
foreach ($matches[2] as $match)
{
// Rip out everything that shouldn't be cached
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|(se)?sc=[^;]+|' . $context['session_var'] . '=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
// Absolutise relative URLs
if (!preg_match('~^[a-zA-Z]+:|^#|@~', $match) && SMF != 'SSI')
$match = $boardurl . '/' . $match;
// Replace $boardurl with something a little shorter
$url_id = str_replace($boardurl, '`B', $match);
if (substr($url_id,0,7) == 'mailto:')
continue;
if (substr($url_id,0,10) == 'javascript')
continue;
$urls_query[] = $url_id;
$uncached_urls[$url_id] = array(
'url' => $match,
'url_id' => $url_id
);
}
}
// Procede only if there are actually URLs in the page
if (count($urls_query) != 0)
{
$urls_query = array_keys(array_flip($urls_query));
// Retrieve cached URLs
$context['pretty']['cached_urls'] = array();
/* $query = $smcFunc['db_query']('', '
SELECT url_id, replacement
FROM {db_prefix}pretty_urls_cache
WHERE url_id IN ({array_string:urls})',
array('urls' => $urls_query));
while ($row = $smcFunc['db_fetch_assoc']($query))
{
// Put the full $boardurl back in
$context['pretty']['cached_urls'][$row['url_id']] = str_replace('`B', $boardurl, $row['replacement']);
unset($uncached_urls[$row['url_id']]);
}
$smcFunc['db_free_result']($query);
*/
// If there are any uncached URLs, process them
if (count($uncached_urls) != 0)
{
// Run each filter callback function on each URL
$filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);
foreach ($filter_callbacks as $callback)
$uncached_urls = call_user_func($callback, $uncached_urls);
// Fill the cached URLs array
$cache_data = array();
foreach ($uncached_urls as $url_id => $url)
{
if (!isset($url['replacement']))
$url['replacement'] = $url['url'];
$url['replacement'] = str_replace("\x12", '\'', $url['replacement']);
$url['replacement'] = preg_replace(array('~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('%22', ';', '?', ''), $url['replacement']);
$context['pretty']['cached_urls'][$url_id] = $url['replacement'];
// Cache only the URLs which will fit, but replace $boardurl first, that will help!
// if (strlen($url_id) < 256 && strlen($url['replacement']) < 256 && stristr($url['replacement'], $boardurl))
// $cache_data[] = array($url_id, str_replace($boardurl, '`B', $url['replacement']));
}
/* // Cache these URLs in the database
if (count($cache_data) != 0)
$smcFunc['db_insert']('replace',
'{db_prefix}pretty_urls_cache',
array('url_id' => 'string', 'replacement' => 'string'),
$cache_data,
array('url_id'));
*/ }
// Put the URLs back into the buffer
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"]+\"|\'[^\']+\')~';
foreach ($context['pretty']['replace_patterns'] as $pattern)
$buffer = preg_replace_callback($pattern, 'pretty_buffer_callback', $buffer);
}
// Restore the script tags
if ($context['pretty']['scriptID'] > 0)
$buffer = preg_replace_callback("~\x14([0-9]+)\x14~", 'pretty_scripts_restore', $buffer);
// Return the changed buffer.
return $buffer;
}
I would test it but I can't since I am on a grid. I can't get accurate benchmarks since every page load is usually a different system handling the request.
I am thinking URLs can't be cached this way efficiently. Performance I think would be the same or better depending on the situation of the page load. IMHO it looks like too much overhead. ;)
Quote from: nend on February 08, 2012, 01:02:25 PM
@aljo1985 can you test this out for me, This just disables the cache totally, Just replace the entire pretty_rewrite_buffer function with this. ;)
// Rewrite the buffer with Pretty URLs!
function pretty_rewrite_buffer($buffer)
{
global $boardurl, $context, $modSettings, $smcFunc;
// Remove the script tags now
$context['pretty']['scriptID'] = 0;
$context['pretty']['scripts'] = array();
$buffer = preg_replace_callback('~<script.+?</script>~s', 'pretty_scripts_remove', $buffer);
// Find all URLs in the buffer
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';
$urls_query = array();
$uncached_urls = array();
foreach ($context['pretty']['search_patterns'] as $pattern)
{
preg_match_all($pattern, $buffer, $matches, PREG_PATTERN_ORDER);
foreach ($matches[2] as $match)
{
// Rip out everything that shouldn't be cached
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|(se)?sc=[^;]+|' . $context['session_var'] . '=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
// Absolutise relative URLs
if (!preg_match('~^[a-zA-Z]+:|^#|@~', $match) && SMF != 'SSI')
$match = $boardurl . '/' . $match;
// Replace $boardurl with something a little shorter
$url_id = str_replace($boardurl, '`B', $match);
if (substr($url_id,0,7) == 'mailto:')
continue;
if (substr($url_id,0,10) == 'javascript')
continue;
$urls_query[] = $url_id;
$uncached_urls[$url_id] = array(
'url' => $match,
'url_id' => $url_id
);
}
}
// Procede only if there are actually URLs in the page
if (count($urls_query) != 0)
{
$urls_query = array_keys(array_flip($urls_query));
// Retrieve cached URLs
$context['pretty']['cached_urls'] = array();
/* $query = $smcFunc['db_query']('', '
SELECT url_id, replacement
FROM {db_prefix}pretty_urls_cache
WHERE url_id IN ({array_string:urls})',
array('urls' => $urls_query));
while ($row = $smcFunc['db_fetch_assoc']($query))
{
// Put the full $boardurl back in
$context['pretty']['cached_urls'][$row['url_id']] = str_replace('`B', $boardurl, $row['replacement']);
unset($uncached_urls[$row['url_id']]);
}
$smcFunc['db_free_result']($query);
*/
// If there are any uncached URLs, process them
if (count($uncached_urls) != 0)
{
// Run each filter callback function on each URL
$filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);
foreach ($filter_callbacks as $callback)
$uncached_urls = call_user_func($callback, $uncached_urls);
// Fill the cached URLs array
$cache_data = array();
foreach ($uncached_urls as $url_id => $url)
{
if (!isset($url['replacement']))
$url['replacement'] = $url['url'];
$url['replacement'] = str_replace("\x12", '\'', $url['replacement']);
$url['replacement'] = preg_replace(array('~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('%22', ';', '?', ''), $url['replacement']);
$context['pretty']['cached_urls'][$url_id] = $url['replacement'];
// Cache only the URLs which will fit, but replace $boardurl first, that will help!
// if (strlen($url_id) < 256 && strlen($url['replacement']) < 256 && stristr($url['replacement'], $boardurl))
// $cache_data[] = array($url_id, str_replace($boardurl, '`B', $url['replacement']));
}
/* // Cache these URLs in the database
if (count($cache_data) != 0)
$smcFunc['db_insert']('replace',
'{db_prefix}pretty_urls_cache',
array('url_id' => 'string', 'replacement' => 'string'),
$cache_data,
array('url_id'));
*/ }
// Put the URLs back into the buffer
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"]+\"|\'[^\']+\')~';
foreach ($context['pretty']['replace_patterns'] as $pattern)
$buffer = preg_replace_callback($pattern, 'pretty_buffer_callback', $buffer);
}
// Restore the script tags
if ($context['pretty']['scriptID'] > 0)
$buffer = preg_replace_callback("~\x14([0-9]+)\x14~", 'pretty_scripts_restore', $buffer);
// Return the changed buffer.
return $buffer;
}
I would test it but I can't since I am on a grid. I can't get accurate benchmarks since every page load is usually a different system handling the request.
I am thinking URLs can't be cached this way efficiently. Performance I think would be the same or better depending on the situation of the page load. IMHO it looks like too much overhead. ;)
looking at that I think it could be improved to rip the cache function completely out so it doesn't try and read from it or write.. Unless you still need some.. Here are my results
Visiting Board
Page created in 0.082 seconds with 20 queries. (Pretty URLs adds 0.019s, 1q)
Page created in 0.132 seconds with 20 queries. (Pretty URLs adds 0.025s, 1q)
Page created in 0.352 seconds with 20 queries. (Pretty URLs adds 0.028s, 1q)
This is a board I not visited for ages? ^^
Topic
Page created in 0.886 seconds with 67 queries. (Pretty URLs adds 0.068s, 2q)
Page created in 0.973 seconds with 68 queries. (Pretty URLs adds 0.08s, 2q)
Page created in 0.287 seconds with 55 queries. (Pretty URLs adds 0.037s, 2q)
Home page
Page created in 0.306 seconds with 33 queries. (Pretty URLs adds 0.028s, 1q)
Page created in 0.362 seconds with 36 queries. (Pretty URLs adds 0.044s, 1q)
Page created in 0.61 seconds with 36 queries. (Pretty URLs adds 0.049s, 1q)
These are just averages I taken sometimes it was really fast..
It does seem better... Hard to say properly just yet.
That is the results I expected, I seen your other post also in another topic about this situation. It seems the DB caching most of the time is equal to no caching at all, but at times DB caching is more expensive than no caching. To me this cache method does not look to be effective.
IMHO and I am only spectating that it would be better to use SMF's caching feature. Each page should be able to generate a cache file with all the urls contained in that page. The cache's are allowed to expire after a certain amount of time by using this system, this would keep the cache fresh and weed out all the stale entries.
Quote from: nend on February 08, 2012, 10:03:06 PM
That is the results I expected, I seen your other post also in another topic about this situation. It seems the DB caching most of the time is equal to no caching at all, but at times DB caching is more expensive than no caching. To me this cache method does not look to be effective.
IMHO and I am only spectating that it would be better to use SMF's caching feature. Each page should be able to generate a cache file with all the urls contained in that page. The cache's are allowed to expire after a certain amount of time by using this system, this would keep the cache fresh and weed out all the stale entries.
Well your right.. I think it has improved slightly and its not really caching is it if its reading from the database?
Its just adding extra calls and queries?
I've kept your edits in anyway and also I did just upgrade my MySQL version to the very latest MySQL version 5.5.19 not too long ago
Which also needs tweaking, I will get better load times from this also..
Hello.
First off all this is a great mod! ;D
When this mod is active the users get logout after they entered a topic or board.
How can I solve this problem.
Thanks in advanced.
Make sure you have the right pretty urls root domain setup.
I ran into a pretty serious issue this morning. My website was displaying a blank white page. I had a support thread going here. It resulted that PrettyURL's was the cause. The following thread plays out what happened and what I did to fix it.
http://www.simplemachines.org/community/index.php?topic=468423.0
Did you find out what part of the code caused an error.
I installed prettyurls, and then had to make a title change to a few boards, however, the title names stayed the same.
How can I change a board title name?
Quote from: rightofatilla on February 14, 2012, 05:47:23 PM
I installed prettyurls, and then had to make a title change to a few boards, however, the title names stayed the same.
How can I change a board title name?
Not everyone at once now...
Quote from: rightofatilla on February 14, 2012, 07:27:02 PM
Quote from: rightofatilla on February 14, 2012, 05:47:23 PM
I installed prettyurls, and then had to make a title change to a few boards, however, the title names stayed the same.
How can I change a board title name?
Not everyone at once now...
Go to, Admin > Forum > Boards > Modify Boards. Every board in that area has a Pretty Url link right after Modify, go there and you can change the it.
I read the past 1-2 pages and see there are questions about emptying the cache. I guess it's not advisable, but I'm surprised at the size of my cache. THe Pretty URLS cache table is 520 MiB out of a total forum DB size of 749 MiB. 70% of my entire forum! Is that a normal size? Currently my forum is "187,914 Posts in 17,601 Topics"
Yes that is normal since every link is logged all possible combinations
What does pretty url mean? i read the info and didn't understand....sorry please explain! Thanks!
Nicer urls in the browser address bar for users and search engines.
Changes
www.forum.com/index.php?topic=35252
to
www.forum.com/boardname/topicname/
Quote from: Leemy on February 16, 2012, 03:48:12 PM
I read the past 1-2 pages and see there are questions about emptying the cache. I guess it's not advisable, but I'm surprised at the size of my cache. THe Pretty URLS cache table is 520 MiB out of a total forum DB size of 749 MiB. 70% of my entire forum! Is that a normal size? Currently my forum is "187,914 Posts in 17,601 Topics"
IMHO the cache is inefficient and basically it's only worth is to waste database space. PHP's search and replace method seems to be doing very well and is actually from what I am seeing in benchmark results is equal to speed as the DB cache.
This reminds me of another script I was looking at and now I think I get why he didn't do it that way. I was looking at Nao's Aeva Media script and was wondering why didn't he cache the embed output and store it in the database, well I see why he didn't go that route. It looks from what I am seeing deciphering a simple expression is equal to pulling the information from the database minus the space usage.
PHP is for processing, databases are for storing data, not caches. IMHO if he can find a way, I think SMF's cache system will be the way to go, but how it should be implemented, that is the question.
I think I will add an option to disable it. On my forums i modified it so it does notdo any caching for any of the action methods but just boards and topics.
Quote from: nend on February 14, 2012, 09:57:07 PM
Quote from: rightofatilla on February 14, 2012, 07:27:02 PM
Quote from: rightofatilla on February 14, 2012, 05:47:23 PM
I installed prettyurls, and then had to make a title change to a few boards, however, the title names stayed the same.
How can I change a board title name?
Not everyone at once now...
Go to, Admin > Forum > Boards > Modify Boards. Every board in that area has a Pretty Url link right after Modify, go there and you can change the it.
Oh, duh, thanks nend!!
Quote from: vbgamer45 on February 17, 2012, 11:05:03 AM
I think I will add an option to disable it. On my forums i modified it so it does notdo any caching for any of the action methods but just boards and topics.
Yeah it makes sense not to turn off caching of those since they can be different from the topic name, plus the go by name structure will make it harder or nearly impossible to do this without caching boards and topics.
Hi,
some times ago i talked here about a bug with pretty urls
it works perfect only the url with "action=" in php brings me to a blank page, every link with an action, the other links works, i tried to bypass action urls, stathe same problem, i tried everything with the settings still the same !!!
smf 2.0.2
pretty urls 1.0RC5.2
simple portal latest
theme : blackstorm
any idea what do i have to do to make it works !!!!
thanks for your replies and future help
Here is a replacement function for pretty_rewrite_buffer in Sources/PrettyUrls-Filters.php
This functions takes advantage of SMF's caching instead of DB caching.
@VB Can you add this as a option in a future version? ;)
// Rewrite the buffer with Pretty URLs!
function pretty_rewrite_buffer($buffer)
{
global $boardurl, $context, $modSettings, $smcFunc, $user_info;
// Remove the script tags now
$context['pretty']['scriptID'] = 0;
$context['pretty']['scripts'] = array();
$buffer = preg_replace_callback('~<script.+?</script>~s', 'pretty_scripts_remove', $buffer);
// Find all URLs in the buffer
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';
$urls_query = array();
$uncached_urls = array();
foreach ($context['pretty']['search_patterns'] as $pattern)
{
preg_match_all($pattern, $buffer, $matches, PREG_PATTERN_ORDER);
foreach ($matches[2] as $match)
{
// Rip out everything that shouldn't be cached
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|(se)?sc=[^;]+|' . $context['session_var'] . '=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
// Absolutise relative URLs
if (!preg_match('~^[a-zA-Z]+:|^#|@~', $match) && SMF != 'SSI')
$match = $boardurl . '/' . $match;
// Replace $boardurl with something a little shorter
$url_id = str_replace($boardurl, '`B', $match);
if (substr($url_id,0,7) == 'mailto:')
continue;
if (substr($url_id,0,10) == 'javascript')
continue;
$urls_query[] = $url_id;
$uncached_urls[$url_id] = array(
'url' => $match,
'url_id' => $url_id
);
}
}
// Procede only if there are actually URLs in the page
if (count($urls_query) != 0)
{
$urls_query = array_keys(array_flip($urls_query));
// Retrieve cached URLs
$context['pretty']['cached_urls'] = array();
/* $query = $smcFunc['db_query']('', '
SELECT url_id, replacement
FROM {db_prefix}pretty_urls_cache
WHERE url_id IN ({array_string:urls})',
array('urls' => $urls_query));
while ($row = $smcFunc['db_fetch_assoc']($query))
{
// Put the full $boardurl back in
$context['pretty']['cached_urls'][$row['url_id']] = str_replace('`B', $boardurl, $row['replacement']);
unset($uncached_urls[$row['url_id']]);
}
$smcFunc['db_free_result']($query);
*/
// Load file cache
$cache_data = array(); //moved this to merge, can just use the cached urls context but this will do for now.
if (($data = cache_get_data(strtr('pretty-'.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"],'/' ,'--'))) != null) {
foreach($data as $id => $url) {
$context['pretty']['cached_urls'][$id] = $url;
$cache_data[] = array($id, $url);
unset($uncached_urls[$id]);
}
}
// If there are any uncached URLs, process them
if (count($uncached_urls) != 0)
{
// Run each filter callback function on each URL
$filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);
foreach ($filter_callbacks as $callback)
$uncached_urls = call_user_func($callback, $uncached_urls);
// Fill the cached URLs array
// $cache_data = array();
foreach ($uncached_urls as $url_id => $url)
{
if (!isset($url['replacement']))
$url['replacement'] = $url['url'];
$url['replacement'] = str_replace("\x12", '\'', $url['replacement']);
$url['replacement'] = preg_replace(array('~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('%22', ';', '?', ''), $url['replacement']);
$context['pretty']['cached_urls'][$url_id] = $url['replacement'];
// Cache only the URLs which will fit, but replace $boardurl first, that will help!
// if (strlen($url_id) < 256 && strlen($url['replacement']) < 256 && stristr($url['replacement'], $boardurl))
// $cache_data[] = array($url_id, str_replace($boardurl, '`B', $url['replacement']));
$cache_data[] = array($url_id, $url['replacement']);
}
/* // Cache these URLs in the database
if (count($cache_data) != 0)
$smcFunc['db_insert']('replace',
'{db_prefix}pretty_urls_cache',
array('url_id' => 'string', 'replacement' => 'string'),
$cache_data,
array('url_id'));
*/
// File based caching
if (count($cache_data) != 0)
cache_put_data(strtr('pretty-'.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"],'/' ,'--'), $cache_data);
}
// Put the URLs back into the buffer
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"]+\"|\'[^\']+\')~';
foreach ($context['pretty']['replace_patterns'] as $pattern)
$buffer = preg_replace_callback($pattern, 'pretty_buffer_callback', $buffer);
}
// Restore the script tags
if ($context['pretty']['scriptID'] > 0)
$buffer = preg_replace_callback("~\x14([0-9]+)\x14~", 'pretty_scripts_restore', $buffer);
// Return the changed buffer.
return $buffer;
}
On my todo list there are couple nice tweaks in the last couple pages that would be nice to add as options.
I did also see your bug post on smf with the caching functions for / will that have any impact here?
It only happens in the key and not in the value. So values with /'s in the value will have no impact. I am though using the current page url as the key, but I am replacing all /'s with --.
It might be a good idea to convert the /'s in the key before sending it to SMF's cache function even if they do indeed figure it is a bug. This would just be a compatibility thing for older versions. However they might not consider it a bug, if that is the case it should be documented that /'s are not allowed in key names. IMHO, if they are going to replace some things out like : to -, then they should also include support for other incompatible key characters.
Funny thing though, I wrote this hack earlier this month to only have it not work. Then while optimizing one of my sites I notice Aeva was having the same problem, so something didn't seem right. Found out it was all about the /'s in the key. So I fixed some stuff in Aeva, (Don't know if I should report this though, I heard he is not supporting it for SMF anymore) and revisited my hack and it worked with a slight modification to convert the /'s.
Updated PrettyUrls with nend's function as an option
Hello,
how can I update this?
You cant only mod authors can
ok thanks for the latest update it fixed my blank pages problem with some actions page, but i got another bug now
pretty urls seems to work good but takes old boards and categories names, that not even exist anymore !!!!!!
when i select for example the category science, i got in the url an old board name "astrology" !!!! and all the boards is the same problem
maybe its the ID number they board and category has, or had, before, but i'm a noob, i did all the possible repair or check with the database, also in pretty urls.
But did not helps.
What do i have to do ?
thansk for the future help !!!!
smf 2.0.2
theme blackstorm
simple portal ...
Quote from: vbgamer45 on February 19, 2012, 12:56:45 PM
Updated PrettyUrls with nend's function as an option
I just uninstall the previous version and install the new one don't?
Quote from: distante on February 20, 2012, 10:23:15 AM
Quote from: vbgamer45 on February 19, 2012, 12:56:45 PM
Updated PrettyUrls with nend's function as an option
I just uninstall the previous version and install the new one don't?
Yes. I did it yesterday ;)
And it works fine :-)
cool, thanks.
I Also have to remember to do this change that nend told me : http://www.simplemachines.org/community/index.php?topic=146969.msg3265922#msg3265922
Quote from: vinzbomb on February 20, 2012, 07:52:39 AM
ok thanks for the latest update it fixed my blank pages problem with some actions page, but i got another bug now
pretty urls seems to work good but takes old boards and categories names, that not even exist anymore !!!!!!
when i select for example the category science, i got in the url an old board name "astrology" !!!! and all the boards is the same problem
maybe its the ID number they board and category has, or had, before, but i'm a noob, i did all the possible repair or check with the database, also in pretty urls.
But did not helps.
What do i have to do ?
someone can help me fix this ?
thansk for the future help !!!!
smf 2.0.2
theme blackstorm
simple portal ...
Quote from: vbgamer45 on February 19, 2012, 12:56:45 PM
Updated PrettyUrls with nend's function as an option
The only change is the PrettyUrls-Filters.php file?
That one here: http://www.simplemachines.org/community/index.php?topic=146969.msg3277889#msg3277889 ?
Because I think It better just change that file and that's it ! ;)
That's all I changed in the last update was include nend's patch as a setting.
Sorry for a nooby question I almost don´t dare to ask.
I installed the mod and it went fine so far.
Now I want to activate URL-rewrite in the mod-settings and am asked to check a couple of topic-links to see if they´d work - they all fail with 404.
Should I try solution 1 from the FAQ (create and navigate to that .php-file) or do something else?
What does the test do exactly... does it show the mod does not work generally or would I only have to change the few links manually that didn´t work in that test?
I don´t exactly know whether I have htacces rights if that´s important here... (so noob :'( )
vbgamer I have a problem, see after update to 2.0.2 and have an old version of pretty url (with the prettyurls extra pack) this link worked fine : http://www.forosperuanos.net/tags/cPanel/421/ (is the pretty url for smftags)
But now, as you can see, that leads to nowhere because pretty urls isn't updating the url, see : http://www.forosperuanos.net/tags/?tagid=421
How can I fix this?
pretty urls russian utf8 in attach. put file into Themes/default/languages/
pretty urls русификатор - поместить файл в Themes/default/languages/
Thanks for the translation!
What's the meaning of the 'nend' ? Thanks
nend is simple machines member on this forum and helped with the caching of pretty urls information.
vbgamer45 can you gimme a hint of how can I fix my link problem? now I have a lot of google links broken :(
Reinstall the pretty urls extra package that should with tag issue.
Yeap you were right, rare thing, the extras were installed, but the code wasn't in the pretty-urls filter. Thanks
Yeah any time you update prettyurls you must also reinstall extras too
Ohh, And what do you think about make the extras a separated file? And call it from the prettyurl-filters.php using simply the php file_exists() and include_once() functions?
In that way the filters can be updated/changed without touching the prettyurls core. :)
Does anyone know where I can get info on how to write a good robots.txt file with prettyurls? The stuff that has come up on google doesn't help me.
a problem
If the title theme only English symbols - then all is well
forum.site.by/test-new-razdel/test-letters-in-urls/
If the English and Cyrillic
forum.site.by/letters-и-русские-буквы-in-urls
the Cyrillic fades from exile
forum.site.by/test-new-razdel/letters-in-urls/
if only Cyrillic
forum.site.by/ и русские буквы
the link takes the form
forum.site.by/t24
In general, the links are cut Cyrillic characters
how to fix?
Макар, в Subs-PrettyUrls.php
// Do you know your ABCs?
$characterHash = array (
'' => array ('.', ',','_','!','@','#','$','%','^','٧'),
'-' => array (' ', '-'),
'' => array ('ъ', 'Ъ', 'ь', 'Ь',"'", '"','(', '{', '[',')', '}', ']','*'),
'a' => array ('a', 'A', 'а', 'А'),
'b' => array ('b', 'B', 'б', 'Б'),
'c' => array ('c', 'C', 'ц', 'Ц'),
'ch' => array ('ч', 'Ч'),
'd' => array ('d', 'D', 'д', 'Д'),
'e' => array ('e', 'E', 'е', 'Е', 'ё', 'Ё', 'є', 'Є', 'э', 'Э'),
'f' => array ('f', 'F', 'ф', 'Ф'),
'g' => array ('g', 'G', 'г', 'Г'),
'h' => array ('h', 'H', 'х', 'Х'),
'i' => array ('i', 'I', 'и', 'И', 'й', 'Й', 'ї', 'Ї', 'і', 'І'),
'j' => array ('j', 'J'),
'k' => array ('k', 'K', 'к', 'К'),
'l' => array ('l', 'L', 'л', 'Л'),
'm' => array ('m', 'M', 'м', 'М'),
'n' => array ('n', 'N', 'н', 'Н'),
'o' => array ('o', 'O', 'о', 'О'),
'p' => array ('p', 'P', 'п', 'П'),
'q' => array ('q', 'Q'),
'r' => array ('r', 'R', 'р', 'Р'),
's' => array ('s', 'S', 'с', 'С'),
'sh' => array ('ш', 'Ш', 'щ', 'Щ'),
't' => array ('t', 'T', 'т', 'Т'),
'u' => array ('u', 'U', 'у', 'У', 'ю', 'Ю'),
'v' => array ('v', 'V', 'в', 'В'),
'w' => array ('w', 'W'),
'x' => array ('x', 'X'),
'y' => array ('y', 'Y', 'у', 'У', 'ы', 'Ы'),
'ya' => array ('я', 'Я'),
'z' => array ('z', 'Z', 'з', 'З'),
'zh' => array ('ж', 'Ж'),
'' => array ('!'),
'~' => array ('~'),
'0' => array ('0'),
'1' => array ('1'),
'2' => array ('2'),
'3' => array ('3'),
'4' => array ('4'),
'5' => array ('5'),
'6' => array ('6'),
'7' => array ('7'),
'8' => array ('8'),
'9' => array ('9'),
);
remingtone,
я знаю о корявой таблице, она исправлена. вот только символы из нее не подставляются
I know about the crooked table, it is corrected. that's just not in symbols from the substituted
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
How it fix? Error with quotation, all functions are included. All time inscription "Ładowanie/Loading"
Screen below:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs5.postimage.org%2Feimp9pxc5%2Fpobrane.png&hash=407f2f3e25ca2587b571cc007a8443895a5f89dc)
vbgamer, are you somewhere? :P
I have a doubt/ problem regarding this mod in conjuction with SA Facebook integration. (http://custom.simplemachines.org/mods/index.php?mod=2322)
When Pretty URL is off, I can log with FB and stay in the same topic.
When Pretty URL is on, I'm kicked to the front page.
Since is a two mod problem, I also ask to SA about the facebook side, but I think it's better to ask you too!
Thanks
Been busy lately.
Oh, well, I hope you can give me a hint about my problem when you have the time ;)
/me testing: Removing facebook and facebookintegration actions didn't work
QuoteApply Filter: Only show the error messages of this URL
http://www.yourdomain.com/index.php?pretty;action=.xml&type=rss
Apply Filter: Only show the errors with the same message
Database Error: Duplicate entry '132' for key 1
Apply Filter: Only show the errors from this file
File: /home/xxxxxx/public_html/Sources/PrettyUrls-Filters.php
This i have see in my error log.
This error
Line: 431
If I switch back to the default urls will the existing pretty urls to my site still work?
There is a reverter package that you can install on the prettyurls website.
Quote from: vbgamer45 on March 12, 2012, 05:18:54 PM
There is a reverter package that you can install on the prettyurls website.
Will that allow existing links which were made with pretty urls to work?
EDIT: Also can't find one for SMF 2
Use emulate version in smf's package manager
http://code.google.com/p/prettyurls/downloads/list
I have a problem with Pretty URLs. This is when converting my forum German:
I downloaded and installed the SMF 2.0.2 . Then I downloaded the German utf-8 language pack, and set the default forum language to German, as I want a German forum this time. Then I installed Pretty URLs, and in spite of that it works and transforms the urls to static urls, the name of the navigation bar links remained English, they don't appear in their German name.
For example: in German 'Search' is 'Suche', but the link is still: http: // myforum . com / search /
Or: in German 'Login' is Einloggen, but the link to the login page is still the English: http: // myforum . com /login/
Can the name of the navbar links be adjusted somehow to include the German names instead of the English?
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
$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.
I have another problem with Pretty url. When I am doing 301 redirect, the old page on my old forum that was not a SMF forum doesn't redirect to the new, revelat page in my new SMF forum that uses pretty url. Here is the problem:
I have this section in my old forum: www.myforum.com/info
I want it redirect to my new SMF forum, to the revelant page: www.myforum.com/info2
(The new forum has the same domain name as my old one.)
when I set the 301 redirect in .htaccess, i type this to the end of the file:
redirect 301 /info http://www.myforum.com/info2
But the redirection doesn't work. The browser only lands in the frontpage of my new forum.
How can I solve this problem? If I add a different URL at a different website to redirect to, that works, but when I add the revelant section in the SMF forum, it doesn't. I have a suspicion this is because of Pretty url. What is the correct target address to redirect to, so that visitors can land in the revelant section?
When members are linking to threads on our forums that contain exclamation marks, they are being redirected to the main URL. Facebook for example, won't parse the entire URL. It works if we use a URL shortening service but we want to be able to post the link to our forums without having to do this.
Please advise.
I have problem with URL in the Sitemap.
I received alerts on my Google Webmaster as follows:
Quote
Invalid URL
This is not a valid URL. Please correct it and resubmit.
URL: /nigeria-news/
Parent tag: url
Tag: loc
When I checked my sitemap, the errors were confirmed. See it here: http://www.theinfostrides.com/sitemap/?xml
Also in the screenshot attached....
What should I do?
are you usind the sitemap mod that is in the mod site?
Hi,
I have instaled SMF 2.0.2 and Pretty Urls 1.0RC.
I think that my problem is common but I can't find something that would help me.
Posting, editing or removing the posts doesn't work because of too many loops.
I've noticed that the redirection goes on non-pretty urls url.
Anyone that knows the solution?
Ondra
Hi I just resolved this problem.
I dowloaded this mode from this forum and reinstall it on my site.
Sorry for that question
Ondra
Quote from: distante on March 14, 2012, 12:44:37 PM
are you usind the sitemap mod that is in the mod site?
Yes.
*using not usind, sorry!
I also have the combo PrettyUrls/SiteMap mod, both in the latest versions and I don't have any problem. BUT I see in your sitemap file something strange in the top
(function (){ for (var i in window) { try { var jsType = typeof window[i]; switch (jsType.toUpperCase()) { case "FUNCTION": if (window[i] !== window.location) { if (window[i] === window.open || (window.showModelessDialog && window[i] === window.showModelessDialog)) window[i] = function(){return true;}; else if (window[i] === window.onbeforeunload) // To try to fix onbeforeunload pop ups some users report seeing but I can't replicate. window.onbeforeunload = null; else if (window[i] === window.onunload) window.onunload = null; else window[i] = function(){return "";}; } break; } } catch(err) {} } for (var i in document) { try { var jsType = typeof document[i]; switch (jsType.toUpperCase()) { case "FUNCTION": document[i] = function(){return "";}; break; } } catch(err) {} } try { eval = function(){return "";}; unescape = function(){return "";}; String = function(){return "";}; parseInt = function(){return "";}; parseFloat = function(){return "";}; Number = function(){return "";}; isNaN = function(){return "";}; isFinite = function(){return "";}; escape = function(){return "";}; encodeURIComponent = function(){return "";}; encodeURI = function(){return "";}; decodeURIComponent = function(){return "";}; decodeURI = function(){return "";}; Array = function(){return "";}; Boolean = function(){return "";}; Date = function(){return "";}; Math = function(){return "";}; Number = function(){return "";}; RegExp = function(){return "";}; var oNav = navigator; navigator = function(){return "";}; oNav = null; } catch(err) {} })();
That isn't part of the sitemap mod or a regular xml file, there's something wrong with that
Quote from: distante on March 14, 2012, 04:30:51 PM
*using not usind, sorry!
I also have the combo PrettyUrls/SiteMap mod, both in the latest versions and I don't have any problem. BUT I see in your sitemap file something strange in the top
(function (){ for (var i in window) { try { var jsType = typeof window[i]; switch (jsType.toUpperCase()) { case "FUNCTION": if (window[i] !== window.location) { if (window[i] === window.open || (window.showModelessDialog && window[i] === window.showModelessDialog)) window[i] = function(){return true;}; else if (window[i] === window.onbeforeunload) // To try to fix onbeforeunload pop ups some users report seeing but I can't replicate. window.onbeforeunload = null; else if (window[i] === window.onunload) window.onunload = null; else window[i] = function(){return "";}; } break; } } catch(err) {} } for (var i in document) { try { var jsType = typeof document[i]; switch (jsType.toUpperCase()) { case "FUNCTION": document[i] = function(){return "";}; break; } } catch(err) {} } try { eval = function(){return "";}; unescape = function(){return "";}; String = function(){return "";}; parseInt = function(){return "";}; parseFloat = function(){return "";}; Number = function(){return "";}; isNaN = function(){return "";}; isFinite = function(){return "";}; escape = function(){return "";}; encodeURIComponent = function(){return "";}; encodeURI = function(){return "";}; decodeURIComponent = function(){return "";}; decodeURI = function(){return "";}; Array = function(){return "";}; Boolean = function(){return "";}; Date = function(){return "";}; Math = function(){return "";}; Number = function(){return "";}; RegExp = function(){return "";}; var oNav = navigator; navigator = function(){return "";}; oNav = null; } catch(err) {} })();
That isn't part of the sitemap mod or a regular xml file, there's something wrong with that
Where is the error showing up? Because, I could not see anything in the source file.
Here : http://www.theinfostrides.com/sitemap/?xml (http://www.theinfostrides.com/sitemap/?xml)
Take a look to the attacht
Strange! I could not see such error here. Which browser are you using?
Please note that pretty-URL mod is currently disabled.
I'm using SRIron (a crhome based browser), but I saw that code only in your site, In my its ok, so I don't think I'ts a browser issue, did you tried yo saw that file when you aren't logged into your site?
Quote from: distante on March 15, 2012, 10:11:51 AM
I'm using SRIron (a crhome based browser), but I saw that code only in your site, In my its ok, so I don't think I'ts a browser issue, did you tried yo saw that file when you aren't logged into your site?
I downloaded and installed SRIron then tested my website but nothing seen.
mmm, I realized something, I have blocked the scripts from your page, if I accept the scripts, that isn't showed, extrange thing that... well I suppose that doesn't have anything to do with the error then, big big sorry!
What is the link to your sitemap installed with PrettyURL?
Quote from: InfoStrides on March 14, 2012, 12:33:17 PM
I have problem with URL in the Sitemap.
I received alerts on my Google Webmaster as follows:
Quote
Invalid URL
This is not a valid URL. Please correct it and resubmit.
URL: /nigeria-news/
Parent tag: url
Tag: loc
When I checked my sitemap, the errors were confirmed. See it here: http://www.theinfostrides.com/sitemap/?xml
Also in the screenshot attached....
What should I do?
www.desadaptados.net/sitemap.xml (i made a 301 redirecction to http://www.desadaptados.net/sitemap/?xml )
I am using both and don't seem to have a problem. Something else is interfering on your site, either a mod or hack. ;)
My sitemap url
http://wrestletopia.2-si.net/n/sitemap/?xml
Still looking strange to me because I have removed all the mods recently to check the cause but not discovered. Here are the installed mods:
Quote1. PageDropdown 1.4 [ Uninstall ] [ List Files ] [ Delete ]
2. Sitemap 2.2.0 [ Uninstall ] [ List Files ] [ Delete ]
3. Pretty URLs Extras 1.0 [ Uninstall ] [ List Files ] [ Delete ]
4. Display Signatures Only Once Per Page 1.0.3 [ Uninstall ] [ List Files ] [ Delete ]
5. Social Login Pro 2.0 [ Uninstall ] [ List Files ] [ Delete ]
6. Pretty URLs 1.0 [ Uninstall ] [ List Files ] [ Delete ]
7. IFS MashableMenu Mod 3.0 [ Uninstall ] [ List Files ] [ Delete ]
8. Register At Post View v.1.1 1.1 [ Uninstall ] [ List Files ] [ Delete ]
9. Float BBCODE 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
10. VB Style - Poster Info On Top 1.1.1 [ Uninstall ] [ List Files ] [ Delete ]
11. Google Tagged 1.5 [ Uninstall ] [ List Files ] [ Delete ]
12. Additional Home page Title | S-Ace 3.5 [ Uninstall ] [ List Files ] [ Delete ]
13. More Spiders 1.2 [ Uninstall ] [ List Files ] [ Delete ]
14. Related Topics 1.4 [ Uninstall ] [ List Files ] [ Delete ]
15. Custom Links and Downloads Directory 1.0 [ Uninstall ] [ List Files ] [ Delete ]
16. Titled Links 1.2 [ Uninstall ] [ List Files ] [ Delete ]
17. vBulletin Style Meta Tags 1.1 [ Uninstall ] [ List Files ] [ Delete ]
18. Prevent Adding Signature Images And Links 2.0 [ Uninstall ] [ List Files ] [ Delete ]
20. Wireless/RSS amount displayed 1.2.1 [ Uninstall ] [ List Files ] [ Delete ]
21. RSS Feed Icon 1.1 [ Uninstall ] [ List Files ] [ Delete ]
22. RSS Feeder 1.1.5 [ Uninstall ] [ List Files ] [ Delete ]
23. SMF Archive 2.0 [ Uninstall ] [ List Files ] [ Delete ]
24. Contact Page 3.0 [ Uninstall ] [ List Files ] [ Delete ]
25. Tynt-SMF Tracer Mod 3.0 [ Uninstall ] [ List Files ] [ Delete ]
26. SMF4Mobile Mod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
27. SimpleAds 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
28. Remember Position After Login/Logout 1.0.0 [ Uninstall ] [ List Files ] [ Delete ]
29. SMF Downloads Directory 1.1.5 [ Uninstall ] [ List Files ] [ Delete ]
30. Twitter and Facebook Publisher mod 2.13 [ Uninstall ] [ List Files ] [ Delete ]
31. SMF Links Directory 2.2.2 [ Uninstall ] [ List Files ] [ Delete ]
32. Separate the sticky topics 1.0.0 [ Uninstall ] [ List Files ] [ Delete ]
34. Online status on login 1.7 [ Uninstall ] [ List Files ] [ Delete ]
35. SMF Featured Content Slider for IFS 1.0 [ Uninstall ] [ List Files ] [ Delete ]
36. Tagging System 2.4.2 [ Uninstall ] [ List Files ] [ Delete ]
37. Extended Help 1.0 [ Uninstall ] [ List Files ] [ Delete ]
38. SimplePortal 2.3.4 [ Uninstall ] [ List Files ] [ Delete ]
I have prolems with the 'previous topic' and 'next topic' links that are available over the topic title headers in the right corner in SMF by default. When you click them, the topics load in a way that this is added to the end of their url: '?prev_next=next#new'
Google indexed both the pure URLs of my topics, and the URLs with this tag. Do you think this can result in a penalty? I am a bit worried.
Can you disable this previous-next topic link somehow?
Quote from: Sono on March 17, 2012, 10:02:02 AM
I have prolems with the 'previous topic' and 'next topic' links that are available over the topic title headers in the right corner in SMF by default. When you click them, the topics load in a way that this is added to the end of their url: '?prev_next=next#new'
Google indexed both the pure URLs of my topics, and the URLs with this tag. Do you think this can result in a penalty? I am a bit worried.
Can you disable this previous-next topic link somehow?
Yes, you can instruct Google not to index them right inside your Google Webmasters.
Go to "Site Configuration" ===> "URL parameters"
You can set the rules there.
Which value should I choose if I want the search engine to ignore the previous page - next page links? There is two choice in Google webmasters URL parameters:
1. Doesn't affect page content
2. Affect page content
As I understand it refers to the targer URLs with the '?prev_next=next#new' tag.
Maybe the 1.? In that case it will skip what it finds with the '?prev_next=next#new' tag and only consider the simple URL?
I am using Drupal 6 and SMF 1.x and I use nginx as my webserver. I can't seem to get pretty urls working. The urls are converted but when you click on the links it gets redirected to home page. here's my nginx config
server {
server_name www.gorgeousanime.com gorgeousanime.com;
access_log /srv/www/gorgeousanime.com/logs/access.log;
error_log /srv/www/gorgeousanime.com/logs/error.log;
root /srv/www/gorgeousanime.com/public_html;
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
location ~ /forum
{
root /srv/www/gorgeousanime.com/public_html/;
index index.php index.html;
if (!-e $request_filename)
{
# actions
rewrite ^/(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(verificationcode|vote|viewquery|who|\.xml)/?$ "/index.php?pretty;action=$1" last;
# boards + topics
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/[0-9]?/?$ /index.php?pretty%3Bboard=$1.0 last;
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/[0-9]?/?$ /index.php?pretty%3Bboard=$1.$2 last;
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/[0-9]?/?$ /index.php?pretty%3Bboard=$1%3Btopic=$2.0 last;
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/[0-9]?/?$ /index.php?pretty%3Bboard=$1%3Btopic=$2.$3 last;
}
}
#######################################################
### nginx.conf catch-all
#######################################################
client_max_body_size 75M;
gzip_static on;
gzip on;
gzip_comp_level 9;
gzip_types application/x-javascript text/css text/plain text/xml application/xml application/xml+rss text/javascript;
location ~ \.(gif|jpg|jpeg|png|tif|bmp|jpe)$ {
valid_referers server_names none blocked ~(pcwintech.com|google.|simpleportforwarding.com);
if ($invalid_referer) {
rewrite ^ http://$host/showimage?file=${uri} permanent;
}
}
location ~ \.(exe|zip|reg|vbs)$ {
valid_referers server_names none blocked ~(pcwintech.com|google.|simpleportforwarding.com);
if ($invalid_referer) {
rewrite ^ http://$host? permanent;
}
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# This is mostly based on Drupal's stock .htaccess
location ~* ^.+(\.(txt|engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)|code-style\.pl|/Entries.*|/Repository|/Root|/Tag|/Template)$ {
return 404;
}
# serve static files directly
location ~* ^.+\.(jpg|jpeg|gif|png|ico|swf|flv)$ {
access_log off;
expires 30d;
}
# Very rarely should these ever be accessed outside of your lan
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
## Deny some crawlers
if ($http_user_agent ~* (HTTrack|HTMLParser|libwww) ) {
return 444;
}
## Deny certain Referers (case insensitive)
if ($http_referer ~* (poker|sex|girl) ) {
return 444;
}
## www. redirect
if ($host = 'pcwintech.com' ) {
rewrite ^/(.*)$ http://www.pcwintech.com/$1 permanent;
}
##
## required only when using purl, spaces & og for modules: ajax_comments, watcher and fasttoggle
## the /og path should be modified to match your default for og/purl URL for organic groups
##
location ~* ^/og {
rewrite ^/og\-(.*)/ajax_comments/(.*)$ /index.php?q=ajax_comments/$2 last;
rewrite ^/og\-(.*)/context/ajax-block-view$ /index.php?q=context/ajax-block-view last;
rewrite ^/og\-(.*)/comment/reply/(.*)\?reload=1$ /index.php?q=comment/reply/$2&reload=1 last;
rewrite ^/og\-(.*)/node/([0-9]+)/toggle/(.*)$ /index.php?q=node/$2/toggle/$3 last;
rewrite ^/og\-(.*)/node/([0-9]+)/edit\?(.*)$ /index.php?q=node/$2/edit?$3 last;
rewrite ^/og\-(.*)/user/([0-9]+)/watcher/toggle/(.*)$ /index.php?q=user/$2/watcher/toggle/$3 last;
rewrite ^/(.*)$ /index.php?q=$1 last;
}
## 6.x starts
location / {
deny 1.2.3.4;
deny 83.228.199.228;
deny 194.8.75.141;
deny 84.122.26.246;
deny 194.8.75.0/24;
deny 194.8.74.0/24;
#rewrite ^/(.*)/$ /$1 permanent; # remove trailing slashes - disabled
try_files $uri @cache;
}
location @cache {
if ( $request_method !~ ^(GET|HEAD)$ ) {
return 405;
}
if ($http_cookie ~ "DRUPAL_UID") {
return 405;
}
error_page 405 = @drupal;
add_header Expires "Tue, 24 Jan 1984 08:00:00 GMT";
add_header Cache-Control "must-revalidate, post-check=0, pre-check=0";
add_header X-Header "Boost Citrus 1.9";
charset utf-8;
try_files /cache/normal/$host${uri}_$args.html /cache/$host${uri}_$args.html @drupal;
}
location @drupal {
###
### now simplified to reduce rewrites
###
rewrite ^/(.*)$ /index.php?q=$1 last;
}
location ~* (/\..*|settings\.php$|\.(htaccess|engine|inc|info|install|module|profile|pl|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(Entries.*|Repository|Root|Tag|Template))$ {
deny all;
}
location ~* /files/.*\.php$ {
return 444;
}
location ~* /themes/.*\.php$ {
return 444;
}
location ~ \.css$ {
if ( $request_method !~ ^(GET|HEAD)$ ) {
return 405;
}
if ($http_cookie ~ "DRUPAL_UID") {
return 405;
}
error_page 405 = @uncached;
access_log off;
expires max; #if using aggregator
add_header X-Header "Boost Citrus 2.1";
try_files /cache/perm/$host${uri}_.css /cache/$host${uri}_.css $uri =404;
}
location ~ \.js$ {
if ( $request_method !~ ^(GET|HEAD)$ ) {
return 405;
}
if ($http_cookie ~ "DRUPAL_UID") {
return 405;
}
error_page 405 = @uncached;
access_log off;
expires max; # if using aggregator
add_header X-Header "Boost Citrus 2.2";
try_files /cache/perm/$host${uri}_.js /cache/$host${uri}_.js $uri =404;
}
location ~ \.json$ {
if ( $request_method !~ ^(GET|HEAD)$ ) {
return 405;
}
if ($http_cookie ~ "DRUPAL_UID") {
return 405;
}
error_page 405 = @uncached;
access_log off;
expires max; # if using aggregator
add_header X-Header "Boost Citrus 2.3";
try_files /cache/normal/$host${uri}_.json /cache/$host${uri}_.json $uri =404;
}
location @uncached {
access_log off;
expires max; # max if using aggregator, otherwise sane expire time
}
location ~* /files/imagecache/ {
access_log off;
try_files $uri @drupal; #imagecache support - now it works
}
location ~* ^.+\.(jpg|jpeg|gif|png|ico)$ {
access_log off;
expires 30d;
try_files $uri =404;
}
location ~* \.xml$ {
if ( $request_method !~ ^(GET|HEAD)$ ) {
return 405;
}
if ($http_cookie ~ "DRUPAL_UID") {
return 405;
}
error_page 405 = @drupal;
add_header Expires "Tue, 24 Jan 1984 08:00:00 GMT";
add_header Cache-Control "must-revalidate, post-check=0, pre-check=0";
add_header X-Header "Boost Citrus 2.4";
charset utf-8;
types { }
default_type application/rss+xml;
try_files /cache/normal/$host${uri}_.xml /cache/normal/$host${uri}_.html /cache/$host${uri}_.xml $uri @drupal;
}
location ~* /feed$ {
if ( $request_method !~ ^(GET|HEAD)$ ) {
return 405;
}
if ($http_cookie ~ "DRUPAL_UID") {
return 405;
}
error_page 405 = @drupal;
add_header Expires "Tue, 24 Jan 1984 08:00:00 GMT";
add_header Cache-Control "must-revalidate, post-check=0, pre-check=0";
add_header X-Header "Boost Citrus 2.5";
charset utf-8;
types { }
default_type application/rss+xml;
try_files /cache/normal/$host${uri}_.xml /cache/normal/$host${uri}_.html /cache/$host${uri}_.xml $uri @drupal;
}
#######################################################
### nginx.conf catch-all
#######################################################
# imagecache needs to have php read any files that it's planning to manipulate
location ^~ /sites/default/files/imagecache/ {
index index.php index.html;
# assume a clean URL is requested, and rewrite to index.php
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 last;
break;
}
}
# serve static files directly
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico)$ {
access_log off;
expires 30d;
}
}
Quote from: Sono on March 17, 2012, 04:13:26 PM
Which value should I choose if I want the search engine to ignore the previous page - next page links? There is two choice in Google webmasters URL parameters:
1. Doesn't affect page content
2. Affect page content
As I understand it refers to the targer URLs with the '?prev_next=next#new' tag.
Maybe the 1.? In that case it will skip what it finds with the '?prev_next=next#new' tag and only consider the simple URL?
Select 2. Affect page content
Under "Which URLs with this parameter should Googlebot crawl?"
Select "No URLs" to ignore the url formats....
Explore the whole scenario.
I would have some further question about proper management of my forum in Google Webmasters:
1. In my forum when I go to the list in a members profile, where their posts are listed, and click the title of a post, I am redirected to the URL of the topic the post was sent into, and automatically scrolled to the message post that I clicked on in the profile list. But at this point this can be seen at the end of the URL: /msg18/#msg18 . So practically Google indexes a topic page with the pure URL and with this ending added, but these two have the same content actually. I would like to block Google to index these /msg18/#msg18 endings. How can I do that? The problem is the number after 'msg' changes depending on what the number of the post is that you want to check.
2. There is a subdirectory in the forum: /recent/ for recent posts. Is it adviseable to block Google index its content? Basically the content is the same as of the posts, it is just the compilation of every new post. I fear it can result in duplicate content penalty if I let google index this subdirectory. How can I have it blocked?
3. I had these parameters by Google recognised and listed in the URL parameters section of the Google Webmaster Tools:
selected_id
tid
sort
PHPSESSID
u
area
viewforum
expand
collapse
I had blocked these by selecting Google not no index the URLs along with these parameters. Is it okay? I have Pretty URL running, the topics and forums have static URLs, so I didn't see the use of these parameters. Or maybe some of these are significant for indexing?
Is there a way to keep pretty URLs from rewriting things such as commas or exclamation points in URLs? Sometimes when pasting those it breaks links on websites.
Not at the moment
I have delete the old url and rewrite it.
Now i again want the old url .How will i get back.
For ex-
www.yourdomain.com/live
After rewrite
www.yourdomain.co/lives
Now i want back to
www.yourdomain.com/live
How will i get ,i have delete the "live" and i am unable to add it.
Re-build your SMF forum !
I tried to install the pretty URL mod and i do not undertand how to go about -" rename example.htaccess to .htaccess" Where is that located ? is it through CP or through FTP.
Am new to this, i will appreciate if someone can help me to install pretty url especially "rename example.htaccess to .htaccess
Thanks
This pretty URL, i want to know a few big forum where it works perfectly. It seem not to be as good as it sounds
On a brand new install of SMF 2.0.2 and Pretty URLs 1.0 with no other mods installed, everything works as it should, but the error log shows the following error whenever I view the Pretty URLs Settings page:-
http://newforum/index.php?action=admin;area=pretty;sa=settings
8: Undefined index: pretty_bufferusecache
File: D:/Inetpub/wwwroot/newforum/Themes/default/languages/PrettyUrls.english.php (pretty_settings sub template - eval?)
Line: 84
I can't see any obvious reason for the error, particularly as the text label the error refers to ("Use caching instead of database table for PrettyUrls") appears just fine on the settings page.
Any ideas what's causing this?
A missing language string? What language are you using?
I'm using English.
The theme I'm using is a copy of Curve which doesn't have a language folder to start. I tried copying the language folder from 'default' in case something was missing, but that doesn't solve it.
Seems strange that it complains about a missing string, but it still displays it OK on the page.
Quote from: iwords on April 03, 2012, 05:57:15 AM
On a brand new install of SMF 2.0.2 and Pretty URLs 1.0 with no other mods installed, everything works as it should, but the error log shows the following error whenever I view the Pretty URLs Settings page:-
http://newforum/index.php?action=admin;area=pretty;sa=settings
8: Undefined index: pretty_bufferusecache
File: D:/Inetpub/wwwroot/newforum/Themes/default/languages/PrettyUrls.english.php (pretty_settings sub template - eval?)
Line: 84
I can't see any obvious reason for the error, particularly as the text label the error refers to ("Use caching instead of database table for PrettyUrls") appears just fine on the settings page.
Any ideas what's causing this?
I've managed to resolve this myself.
This mod doesn't appear to have a default value for modSettings['pretty_bufferusecache'] and if one hasn't been explicitly set, it generates an error.
To fix, go to the Pretty URLs settings page, tick the box labelled 'Use caching instead of database table for PrettyUrls' and click 'Save Changes'. Then untick the same box, and click Save Changes again. Everything should work fine and the error should stop appearing.
when i enable pretty URL my edit board cannot open-is blank, but when i disable it, it work, what can i do to correct it so that edit board in admin can work with pretty URL enable
Thanks
my edit board not uploading when i edit pretty URL which is working perfectly. how can i fis this
Quote from: Sono on March 21, 2012, 03:50:51 AM
I would have some further question about proper management of my forum in Google Webmasters:
1. In my forum when I go to the list in a members profile, where their posts are listed, and click the title of a post, I am redirected to the URL of the topic the post was sent into, and automatically scrolled to the message post that I clicked on in the profile list. But at this point this can be seen at the end of the URL: /msg18/#msg18 . So practically Google indexes a topic page with the pure URL and with this ending added, but these two have the same content actually. I would like to block Google to index these /msg18/#msg18 endings. How can I do that? The problem is the number after 'msg' changes depending on what the number of the post is that you want to check.
2. There is a subdirectory in the forum: /recent/ for recent posts. Is it adviseable to block Google index its content? Basically the content is the same as of the posts, it is just the compilation of every new post. I fear it can result in duplicate content penalty if I let google index this subdirectory. How can I have it blocked?
3. I had these parameters by Google recognised and listed in the URL parameters section of the Google Webmaster Tools:
selected_id
tid
sort
PHPSESSID
u
area
viewforum
expand
collapse
I had blocked these by selecting Google not no index the URLs along with these parameters. Is it okay? I have Pretty URL running, the topics and forums have static URLs, so I didn't see the use of these parameters. Or maybe some of these are significant for indexing?
Just create a new parameters like 'msg'. Google will not index any url with msg....
Quote from: InfoStrides on March 14, 2012, 12:33:17 PM
I have problem with URL in the Sitemap.
I received alerts on my Google Webmaster as follows:
Quote
Invalid URL
This is not a valid URL. Please correct it and resubmit.
URL: /nigeria-news/
Parent tag: url
Tag: loc
When I checked my sitemap, the errors were confirmed. See it here: http://www.theinfostrides.com/sitemap/?xml
Also in the screenshot attached....
What should I do?
I am still helpless here... Any help?
Now, I confirmed there is problem somewhere.... The same error occur in RSS feed when I switch on pretty-URLS.
The domain name (http://www.theinfostrides.com) is removed from the URL and only return (/african-news/kenya-tanzania-issue-tsunami-warnings/msg91048/#msg91048)
Quote from: InfoStrides on April 11, 2012, 06:06:23 PM
Now, I confirmed there is problem somewhere.... The same error occur in RSS feed when I switch on pretty-URLS.
The domain name (http://www.theinfostrides.com) is removed from the URL and only return (/african-news/kenya-tanzania-issue-tsunami-warnings/msg91048/#msg91048)
Don't know what is going on with your site, but my RSS feeds are just fine for the forum with Pretty.
I tested it on localhost, there was no problem at all. I'm confused. I intend to do a fresh installation may be that can resolved the issue.... Some custom works must have been responsible for the flop!
Quote from: nend on April 12, 2012, 02:22:11 AM
Quote from: InfoStrides on April 11, 2012, 06:06:23 PM
Now, I confirmed there is problem somewhere.... The same error occur in RSS feed when I switch on pretty-URLS.
The domain name (http://www.theinfostrides.com) is removed from the URL and only return (/african-news/kenya-tanzania-issue-tsunami-warnings/msg91048/#msg91048)
Don't know what is going on with your site, but my RSS feeds are just fine for the forum with Pretty.
I got this issue resolved. I will explain what happened for reference purpose.
I found that my forum URL was not populated in the pretty URL setting which may probably due to transition from version to version and some database upgrades.
This got the problem resolved:
UPDATE `abc_xyz`.`justme_settings` SET `value` = 'http://www.theinfostrides.com' WHERE `justme_settings`.`variable` = 'pretty_root_url';
How to fix this Database Error:
Database Error: Illegal mix of collations for operation ' IN '
The text of the error is: Database Error: Illegal mix of collations for operation ' IN '
File: /home/......................../public_html/Sources/PrettyUrls-Filters.php
Line: 54
The line 54 is: "WHERE url_id IN (" . implode(', ', $urls_query) . ')', __FILE__, __LINE__);"
Make sure all your database tables are the same collation type either utf8 or latin1
A few months ago, I deleted the pretty urls plugin, because it was giving us all kinds of problems.
Now the plugin is removed, there are still many search engine friendly URL's which don't exists
anymore, but instead redirecting them to a 404 page (for search engnes), the URLs goes straight to the homepage.
This is giving us Google problems. What can we do?
So the pretty urls mod didn't removed all the sef urls.
Now the residual urls are still here, but they don't give a 404 page.
Download the reverter package from
http://code.google.com/p/prettyurls/downloads/list
Quote from: vbgamer45 on April 12, 2012, 05:01:33 PM
Make sure all your database tables are the same collation type either utf8 or latin1
:)Thank you, but how to make it? (I am with 1.1.16). Is it "Admin--------------Forum Maintenance----- ?
Or another way?
Another way using your control panel from your host and phpmyadmin
Hi, got a little problem.
I've changed order of Boards a view days ago. Something really strange is happening now:
some of the topics gives an error 500. All other threads working fine. Even in the same board.
Deactivated pretty urls, cleared pretty_urls_cache, pretty_board_lookup and pretty_board_urls.
Then re-enable Pretty Url's and and run maintenance.
But my topics keep giving me error 500.
Any suggestions?
Regards
Sven
Anything in your forum's error log that might be releated?
No. Also in server logs nothing.
ERRORI'm trying to send out an HTML newsletter via eMail, and I'm having some problems.
QuoteFatal error: Maximum execution time of 30 seconds exceeded in /Sources/PrettyUrls-Filters.php on line 269
I've turned on Mail Que settings (set to 40 emails per minute, 3 emails per page load) to help throttle the server and keep load down. It adds about 67 email addresses to the que, out of ~2,000.
I've also added the action "admin" to the skip actions area, so PrettyURLs isn't doing anything for the admin area. The link looks like: site.com/index.php?action=admin;area=news;sa=mailingsend
I *KNEW* you were going to put something like this out eventually.
*BLEEPING AWESOME* Saved me a TON of work. Where do I send the donation???
Quote from: Theatre Publicity on April 20, 2012, 01:08:21 PM
I *KNEW* you were going to put something like this out eventually.
*BLEEPING AWESOME* Saved me a TON of work. Where do I send the donation???
That's so much! Keeps me going.
I'm using the pretty urls mod on a brand new installation of SMF. The urls have changed over perfectly on the main board, but on the registration page there's a problem with the "Check if username is available" link (the little yellow question mark).
Before installing pretty urls, the yellow question mark links to ibstales.com/forum/register# and so the current page reloads and the yellow question mark changes to a tick or a cross to indicate if the username is free. But the pretty urls mod seems to strip out the # from the url and so the previous page reloads instead.
This is the page in question: ibstales.com/forum/register/
I don't have any other mods installed. I'd be very grateful for your help as this mod looks perfect for my forum otherwise.
I've tried changing the setting so that the php action urls don't get modified, but that doesn't help unfortunately.
You currently have action rewriting enabled or disabled?
Hi - action rewriting is currently enabled. I did try disabling it but it didn't seem to help so I enabled it again.
Bump...
Quote from: iverSUN on April 20, 2012, 12:20:34 PM
ERROR
I'm trying to send out an HTML newsletter via eMail, and I'm having some problems.
QuoteFatal error: Maximum execution time of 30 seconds exceeded in /Sources/PrettyUrls-Filters.php on line 269
I've turned on Mail Que settings (set to 40 emails per minute, 3 emails per page load) to help throttle the server and keep load down. It adds about 67 email addresses to the que, out of ~2,000.
I've also added the action "admin" to the skip actions area, so PrettyURLs isn't doing anything for the admin area. The link looks like: site.com/index.php?action=admin;area=news;sa=mailingsend
URGENT!!!
i really dont want any single quotes or special character in my pretty url. as i use the same table for other program, could you tell me how to exclude single qoutes?
please tell me...
ciao..
Quote from: diontoradan on April 24, 2012, 02:36:28 AM
URGENT!!!
i really dont want any single quotes or special character in my pretty url. as i use the same table for other program, could you tell me how to exclude single qoutes?
please tell me...
ciao..
Uninstall Pretty URLs, you will not have any special characters in there. ;D
However allot of special characters are not url friendly, so I don't think Pretty will output any. I can be wrong though, but haven't notice this behavior.
Quote from: vbgamer45 on April 15, 2012, 06:42:11 PM
Download the reverter package from
http://code.google.com/p/prettyurls/downloads/list
Hello VB gamer,
I taked over the forum from PatrickForum this week.
Please explain which one we need to uninstall all the codes or other files about Pretty URLs.
So- we installed the mod, deleted it, and after that we noticed that not everything was deleted properly.
Which reverter package do we need on this page to get it done? http://code.google.com/p/prettyurls/downloads/list
We use SMF 2.x
Yes grab that reverter package from that page and install it.
Quote from: nend on April 24, 2012, 06:01:42 PM
Uninstall Pretty URLs, you will not have any special characters in there. ;D
However allot of special characters are not url friendly, so I don't think Pretty will output any. I can be wrong though, but haven't notice this behavior.
Uninstalling prettyurl is not a good solution i think, can someone please tell me modifications to exclude quote ('/") from the script?
Update: I installed a clean copy of 2.0.2 with no mods, and then duplicated and installed my MySQL database that has ~2,000 accounts/members. I was able to successfully send out ~2,000 eMails through SMF with no errors.
Quote from: iverSUN on April 20, 2012, 12:20:34 PM
ERROR
I'm trying to send out an HTML newsletter via eMail, and I'm having some problems.
QuoteFatal error: Maximum execution time of 30 seconds exceeded in /Sources/PrettyUrls-Filters.php on line 269
I've turned on Mail Que settings (set to 40 emails per minute, 3 emails per page load) to help throttle the server and keep load down. It adds about 67 email addresses to the que, out of ~2,000.
I've also added the action "admin" to the skip actions area, so PrettyURLs isn't doing anything for the admin area. The link looks like: site.com/index.php?action=admin;area=news;sa=mailingsend
Hi. I know this will probably seem redundant, and maybe even obvious.
I thought I'd post it in the hopes it may help someone.
May be it is even a type of a bug. Depending upon your definition of a bug.
When receiving the internal server error, check to make sure the htaccess file created by the mod is correct.
Entirely correct.
Here is what I mean.
I set up a test forum. I even called it: Test Forum
When the mod creates the htaccess file it goes like this:
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: May 5, 2012, 12:08
RewriteEngine on
RewriteBase /Test Forum
See the problem?
It should write it like this:
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: May 5, 2012, 12:08
RewriteEngine on
RewriteBase /Test%20Forum
making sure that the %20 is there.
Every change to the htaccess file brings back the space instead of writing %20
I know.
I know.
I know.
Test Forum is sloppy coding. (shrug)
Just hope this helps someone who may, innocently create a forum with a space.
Hope all are well!
: o )
Hi all
I've just installed the mod and almost everything seems to work ok. The problem I have is that it prevents the use of alternate stylesheets that are set up for our theme, once the mod is enabled the default stylesheet colour is the one that shows regardless of the one selected.
Any ideas what to change to allow the alt stylesheets to work?
Update: I've disabled the mod for the time being, if it helps you can view the site with it's alt stylesheet selection (top right corner) working here (http://www.ukastroimaging.co.uk)
is Pretty URL possible to mod for Asian Language Topic (UTF-8)
like wordpress
u can rewrite fowllowing topic to URL base
http://www.me.com/生年1993/
http://www.me.com/%E7%94%9F%E5%B9%B41993/
thanx
Just reported a bug @ http://code.google.com/p/prettyurls/issues/detail?id=154
It is untested, but by the results of a script I am working on SQLite3 Cache, I am sure that Pretty Url's suffers the same fate.
It seems when SMF's database is SQLite any SQLite database request from inside the callback function ob_sessrewrite() causes the script to exit without any output, no errors and no database activity.
This is not a SMF bug, it seems to be related to ob_start()'s callback function and SQLite.
You can see the problem though, even with SMF's database layer there is no way at this time to add compatibility with database calls from within ob_sessrewrite().
hi everybody,
i got a problem, i erase the skip action list and don't know what it was !!! So if someone can tell me the default skip action list in pretty urls will be nice !!!
Also i get logout everytime i use reply or post or simply when i go the an category of my forum i'm disconnected from the forum !!!
what's the problem?!!!!
thanks for replying me !!
i got also after the category in url "?wwwredirect at the end wtf !!!
i got a problem when logged in i get logged out everytime i go to an topic, when pretty urls is activated, everything is working i tried every single possibility with pretty urls settings ( rewrite url works ) but get logged out on every topic, and get logged in if go back to home or forum, very strange, sometimes i got a "wwwredirect after the correct url or category !!!
I need some help thanks !!!!
How do I unsubscribe from this? It keeps popping up in my replies and I am no longer interested.
Click notify button
Thanks :) BTW did you get my PM about the glitching store bank?
Quote from: Groovystar on May 19, 2012, 08:50:49 PM
Thanks :) BTW did you get my PM about the glitching store bank?
Yeah still thinking about what to do next.
I am having a strange problem when using this awesome plugin.
I have smf in the root directory with this plug installed. I also have smf installed in another directory for theme demo board. It installed fine,but now when I try to access it I just get the one in the root showing with no content.
http://awesomescreenshot.com/01f60qmf7
i m using 1.x when i went to board option
http://www.myweb.com/forum/manageboards/
in following link in my forum i m facing this error
Fatal error: Cannot redeclare template_pretty_board_url() (previously declared in /home/myweb/public_html/forum/Sources/Load.php(1733) : eval()'d code:565) in /home/myweb/public_html/forum/Sources/Load.php(1733) : eval()'d code on line 648
plz solve my problem plzzz
Looks like you had that function added twice in manageboards_Template.php check the file and remove dupliacate code.
I have one forum where under Maintainence, Scheduled Tasks
I have an option named pretty_urls this automatically updates the url's for any post titles that have been changed etc.
I have just installed Pretty Urls on a new installed forum but cant seem to find out how to get this option to show in the Scheduled Tasks.
Can anyone help???
Many thanks and Beers in Advance
This might be an odd question but how can i get this mod running on IIS7? Im not using apache because i develop in .NET but i dont know how to set up the mod to work with it. Any one?
Quote from: vbgamer45 on May 21, 2012, 12:30:38 PM
Looks like you had that function added twice in manageboards_Template.php check the file and remove dupliacate code.
From where??
Quote from: NBK*Twitch on May 19, 2012, 09:20:52 PM
I am having a strange problem when using this awesome plugin.
I have smf in the root directory with this plug installed. I also have smf installed in another directory for theme demo board. It installed fine,but now when I try to access it I just get the one in the root showing with no content.
http://awesomescreenshot.com/01f60qmf7 (http://awesomescreenshot.com/01f60qmf7)
bump
Hi, I have an smf forum installed on a subdomain (not sure if this plays a factor?).
I followed and did the manual install instructions for SMF 2.0.2.
I tried to upload the package "prettyurls-1-0RC4.zip" but I get the error "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
Can someone shed light on what I need to do with mod_rewrite and .htaccess?
Please advise, not exactly an expert and it's my first time using smf! Thanks!
Thats because you are downloading rc4
download the one with this name which is the only one PrettyUrls1.0.zip
Nobody give me response, why ?!!!
What is the DEFAULT "Skip Actions List" when you install pretty urls ? i erase it and cannot see it now !!!
The mod is working but i get disconnected every time i change from page on my forum !!!! (is it because of empty skip action list ?!!!)
I really need help to find out what the problem is, cause i have to turn it off for now its not usable with this bug !!!
Thanks in advance for helping me
Mstcool - Great, thanks! Problem solved.
Quote from: vinzbomb on June 01, 2012, 04:15:30 AM
Nobody give me response, why ?!!!
What is the DEFAULT "Skip Actions List" when you install pretty urls ? i erase it and cannot see it now !!!
The mod is working but i get disconnected every time i change from page on my forum !!!! (is it because of empty skip action list ?!!!)
I really need help to find out what the problem is, cause i have to turn it off for now its not usable with this bug !!!
Thanks in advance for helping me
It is empty there is nothing added it by default
Quote from: abidejaz4u on May 23, 2012, 11:37:02 AM
Quote from: vbgamer45 on May 21, 2012, 12:30:38 PM
Looks like you had that function added twice in manageboards_Template.php check the file and remove dupliacate code.
From where??
w8ing for answer
I answered that in your other topic. You have to go through all the places this mod changes the code to check it's all been removed...
h33f Your welcome.
I'm loosing members they cannot reply or post topics, when pretty urls is enabled !!!!
like this :
http://powerfullinfo.com/sci-tech/fbi-warns-infected-computers-may-crash-in-july-!!/?action=post;last_msg=1818
Still the same if enable action rewrite or not,
Some of my error logs :
Undefined index: session_var
Apply Filter: Only show the errors from this file
File: /Sources/PrettyUrls-Filters.php
Line: 35
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|(se)?sc=[^;]+|' . $context['session_var'] . '=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
http://powerfullinfo.com/index.php?action=dlattach;attach=11;type=avatar
Apply Filter: Only show the errors with the same message
8: Undefined index: template_layers
Apply Filter: Only show the errors from this file
File: /Sources/Subs.php
Line: 3752
foreach (array_reverse($context['template_layers']) as $layer)
http://powerfullinfo.com/index.php?action=dlattach;attach=11;type=avatar
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /Sources/Subs.php
Line: 3645
foreach ($context['template_layers'] as $layer)
http://powerfullinfo.com/index.php?action=dlattach;attach=11;type=avatar
8: Undefined index: html_headers
Sources/Load.php
Line: 1836
$context['html_headers'] .= "\n\t" . '<link rel="stylesheet" type="text/css" id="' . $sheet . '_css" href="' . $settings[$sheet_path] . '/css/' . $sheet . '.css"/>'
And more, as you can see its the default avatar attach action problem that i get error logs from, but not for post and reply actions !!!
i get more than 150 error logs for the avatar problem, but cannot see error logs for the other actions?=post, or action?=reply
Also sometimes cannot login, it says wrong password, as i'm sure its only a url action problem too.
Btw if i uninstall pretty urls and reinstall, the settings i've made before in pretty urls still there, its like the pretty urls settings still there even after uninstall, maybe its the reason of the bugs, no clean uninstall ?!
Need help someone pls, i'm sure it is a little bug to fix but don't know how to do this !!!
Quote from: vinzbomb on June 04, 2012, 05:16:27 AM
I'm loosing members they cannot reply or post topics, when pretty urls is enabled !!!!
like this :
http://powerfullinfo.com/sci-tech/fbi-warns-infected-computers-may-crash-in-july-!!/?action=post;last_msg=1818
Still the same if enable action rewrite or not,
Some of my error logs :
Undefined index: session_var
Apply Filter: Only show the errors from this file
File: /Sources/PrettyUrls-Filters.php
Line: 35
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|(se)?sc=[^;]+|' . $context['session_var'] . '=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
http://powerfullinfo.com/index.php?action=dlattach;attach=11;type=avatar
Apply Filter: Only show the errors with the same message
8: Undefined index: template_layers
Apply Filter: Only show the errors from this file
File: /Sources/Subs.php
Line: 3752
foreach (array_reverse($context['template_layers']) as $layer)
http://powerfullinfo.com/index.php?action=dlattach;attach=11;type=avatar
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /Sources/Subs.php
Line: 3645
foreach ($context['template_layers'] as $layer)
http://powerfullinfo.com/index.php?action=dlattach;attach=11;type=avatar
8: Undefined index: html_headers
Sources/Load.php
Line: 1836
$context['html_headers'] .= "\n\t" . '<link rel="stylesheet" type="text/css" id="' . $sheet . '_css" href="' . $settings[$sheet_path] . '/css/' . $sheet . '.css"/>'
And more, as you can see its the default avatar attach action problem that i get error logs from, but not for post and reply actions !!!
i get more than 150 error logs for the avatar problem, but cannot see error logs for the other actions?=post, or action?=reply
Also sometimes cannot login, it says wrong password, as i'm sure its only a url action problem too.
Btw if i uninstall pretty urls and reinstall, the settings i've made before in pretty urls still there, its like the pretty urls settings still there even after uninstall, maybe its the reason of the bugs, no clean uninstall ?!
Need help someone pls, i'm sure it is a little bug to fix but don't know how to do this !!!
HELP !!!!!!!!!!!!!!!!!!!!!!!!!
Quote from: vinzbomb on June 05, 2012, 03:23:05 AM
Quote from: vinzbomb on June 04, 2012, 05:16:27 AM
I'm loosing members they cannot reply or post topics, when pretty urls is enabled !!!!
like this :
http://powerfullinfo.com/sci-tech/fbi-warns-infected-computers-may-crash-in-july-!!/?action=post;last_msg=1818
Still the same if enable action rewrite or not,
Some of my error logs :
Undefined index: session_var
Apply Filter: Only show the errors from this file
File: /Sources/PrettyUrls-Filters.php
Line: 35
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|(se)?sc=[^;]+|' . $context['session_var'] . '=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
http://powerfullinfo.com/index.php?action=dlattach;attach=11;type=avatar
Apply Filter: Only show the errors with the same message
8: Undefined index: template_layers
Apply Filter: Only show the errors from this file
File: /Sources/Subs.php
Line: 3752
foreach (array_reverse($context['template_layers']) as $layer)
http://powerfullinfo.com/index.php?action=dlattach;attach=11;type=avatar
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /Sources/Subs.php
Line: 3645
foreach ($context['template_layers'] as $layer)
http://powerfullinfo.com/index.php?action=dlattach;attach=11;type=avatar
8: Undefined index: html_headers
Sources/Load.php
Line: 1836
$context['html_headers'] .= "\n\t" . '<link rel="stylesheet" type="text/css" id="' . $sheet . '_css" href="' . $settings[$sheet_path] . '/css/' . $sheet . '.css"/>'
And more, as you can see its the default avatar attach action problem that i get error logs from, but not for post and reply actions !!!
i get more than 150 error logs for the avatar problem, but cannot see error logs for the other actions?=post, or action?=reply
Also sometimes cannot login, it says wrong password, as i'm sure its only a url action problem too.
Btw if i uninstall pretty urls and reinstall, the settings i've made before in pretty urls still there, its like the pretty urls settings still there even after uninstall, maybe its the reason of the bugs, no clean uninstall ?!
Need help someone pls, i'm sure it is a little bug to fix but don't know how to do this !!!
HELP !!!!!!!!!!!!!!!!!!!!!!!!!
Nobody can help me ?
Settings are usually saved unless you check remove data, not all mods allow to remove data, but data is mainly harmless.
What might of happened is the mod didn't install right, maybe due to another mod. Did you notice any errors listed when you where about to install?
Quote from: nend on June 06, 2012, 02:10:16 PM
Settings are usually saved unless you check remove data, not all mods allow to remove data, but data is mainly harmless.
What might of happened is the mod didn't install right, maybe due to another mod. Did you notice any errors listed when you where about to install?
I did not get error when install or uninstall pretty urls, but what i can say is after uninstall there are files on my server that still on the server,
and yes settings also stays there, so if you can explain me how to remove everything from pretty urls manually, so i can try to reinstall it properly.
Thanks nend for your reply !!: i appreciate
Quote from: nend on June 06, 2012, 02:10:16 PM
Settings are usually saved unless you check remove data, not all mods allow to remove data, but data is mainly harmless.
What might of happened is the mod didn't install right, maybe due to another mod. Did you notice any errors listed when you where about to install?
so i was trying to repair table of forum, and get this in phpmyadmin :
There are problems with indexes of table `` smf_messages
Warning Column id_topic `` should not be part of both a unique key and a key index
Warning More than one INDEX index type exists for the `` id_topic
Warning Column id_member `` should not be part of both a unique key and a key index
Warning More than one INDEX index type exists for the `` id_member
There are problems with indexes of table `` smf_topics
Warning More than one INDEX index type exists for the `` id_board
i don't know if it helps but cannot fix it since i don't know how to fix it, even with repair tools in phpmyadmin no change
its maybe the problem i get with pretty urls cause of these errors ?!!!
Quote from: NBK*Twitch on May 26, 2012, 04:09:55 PM
Quote from: NBK*Twitch on May 19, 2012, 09:20:52 PM
I am having a strange problem when using this awesome plugin.
I have smf in the root directory with this plug installed. I also have smf installed in another directory for theme demo board. It installed fine,but now when I try to access it I just get the one in the root showing with no content.
http://awesomescreenshot.com/01f60qmf7 (http://awesomescreenshot.com/01f60qmf7)
bump
I know you busy,but I would like atleast some kind of advice :(.
Haven't seen that happen before check your error log and see if there are any other errors that might be related.
How to know topic ID affter install Pretty URLs
Thanks
Quote from: lttung on June 07, 2012, 11:29:18 PM
How to know topic ID affter install Pretty URLs
Thanks
you will not able to see it, only in your databse via phpmyadmin, but you got pretty urks settings in each board in your forum menu, their you can change the name of your url
I'm seeing this should I go ahead with the installation ?
Quote from: abhirupmanna on June 10, 2012, 01:07:39 AM
I'm seeing this should I go ahead with the installation ?
I would not.
I would double check your file permissions and make sure the files/folders are writable.
The files permissions says all are writeable.
Could it be because I'm using a different theme ?
Quote from: abhirupmanna on June 10, 2012, 02:12:17 AM
The files permissions says all are writeable.
Could it be because I'm using a different theme ?
I don't think so. I would try asking in the support forums I think this is a somewhat common issue might be hosting configuration.
i have some sort of conflict between this and the mod below. http://www.simplemachines.org/community/index.php?topic=474727
basically when using both these 2 mods all urls seems to change from ACTION= TO ACTION;= and is stopping them all working.
Quote from: fma965 on June 17, 2012, 11:48:17 AM
Quote from: emanuele on June 17, 2012, 11:33:59 AM
Unless you give us some hints on what you have installed I have no ideas. :P
oh yeah :D
1. Tapatalk SMF 2.0 RC4/RC5/Final Plugin 3.0.2
3. SA Twitter 0.6 REV 30
4. EU cookie law 0.1.2
5. SimplePortal 2.3.5
6. SA GPlus 0.3 REV 9
7. SA Facebook 2.0 RC4 Rev58
8. Menu Editor Lite 1.0.5
9. Pretty URLs 1.0
Thats all :) it did however seem to start when i installed EU cookie law.
also
htaccess file
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: June 16, 2012, 12:34
RewriteEngine on
RewriteBase /
# Rules for: actions
RewriteRule ^(activate|admin|ads|announce|attachapprove|buddy|calendar|clock)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(emailuser|findmember|forum|portal|groups|help|helpadmin|httpBL)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jseditor|jsmodify|jsoption|lock|lockvoting|login|login2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(logout|markasread|mergetopics|mlist|moderate|modifycat|modifykarma|movetopic)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(movetopic2|notify|notifyboard|openidreturn|pm|post|post2|printpage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(profile|quotefast|quickmod|quickmod2|recent|register|register2|reminder)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removepoll|removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|stats|sticky|theme|trackip)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(about:mozilla|about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote|viewquery)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewsmfile|who|\.xml|xmlhttp)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(projects|p2map|fcbrowser|youtube)/?$ ./index.php?pretty;page=$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]
# PRETTYURLS MOD ENDS
and url
http://forgottencoders.co.uk
and of course the version is 2.0.2
thanks
EDIT: how do i change the z-index on the ecl notice? i cant find it in style.css or the index template.
Quote from: fma965 on June 17, 2012, 12:30:22 PM
ok yep so its defo prettyurls. any ideas how to fix it though? also once i accept cookies (need to manually remove the ; from the url) it then works fine so i guess its conflicting with this mod for some reason. any ideas on a fix?
ok so apparently just disablind prettyurls and re-enabling it seems to have fixed it. just my final issue now.
Where is the css for this saved?
EDIT: Found it (sources\Subs-EclWarning.php)
<style>
#ecl_notification
{
color: #f96f00;
background-color: white;
border-bottom: solid 3px #f96f00;
text-align: center;
font-size: 12pt;
padding: 8px;
width: 100%;
line-height: 25px;
position: fixed;
top: 0;
left: 0;
padding-left: 0;
padding-right: 0;
}
</style>
Quote from: fma965 on June 17, 2012, 03:20:05 PM
Quote from: emanuele on June 17, 2012, 02:58:41 PM
Okay, try this:
$context['ecl_accept_cookies'] = $scripturl . '?' . http_build_query(array_merge($_GET, array('cookieaccept' => '1')));
$context['ecl_accept_cookies'] = $scripturl . '?' . http_build_query(array_merge($_GET, array('cookieaccept' => '1')),null, ';');
The line is at the end of the file.
i so hope this works :D i have tried everything i can think of from code edits, settings, htaccess and nothing worked. just came on here to say i give up :( but then read your latest post :)
-------------------------------------------------------
DAM it didnt work :( this is the url i am getting http://forgottencoders.co.uk/index.php?cookieaccept;=1 and when clicked it goes to a blank page (im guessing a 404 page?) just to confirm shouldn't the url be http://forgottencoders.co.uk/index.php?cookieaccept=1 (without the ;)? oh and also the same happens for index.php?action;=login and index.php?action;=login2 and more.
so then i was told to ask for help here.
Quote from: emanuele on June 17, 2012, 04:24:43 PM
Since it is happening with all the URLs I'd suggest you to ask in the pretty URL topic support...the author should know better what the problem could be. ;)
Please help, thanks.
BUMP !
Seriously Come on some one must know.
Disable action url rewriting if you can.
Quote from: vbgamer45 on June 20, 2012, 12:00:32 PM
Disable action url rewriting if you can.
thanks for the reply. but i already tried that and it didn't work.
See the problem is since EU Cookie Law Mod is required by law (well the changes it makes is) and i couldn't live without PrettyURLS it makes it akward
Thanks for your help. it was not very useful as i didnt get any response :(
Please i install this mod and when my user click on board or topic link, it logged them out but when i uninstall it everything start working fine. Please help
I am using SMF 2.0.2 and latest version of pretty urls mod and I am getting below errors in the error log:-
PHP Notice: Undefined index: session_var in .../public_html/Sources/PrettyUrls-Filters.php on line 35
PHP Notice: Undefined index: session_var in .../public_html/Sources/PrettyUrls-Filters.php on line 253
PHP Notice: Undefined index: session_var in .../public_html/Sources/PrettyUrls-Filters.php on line 257
I recently moved server and domain and these errors were never there before. Any idea?
Hi, I have pretty urls installed on a 2.02 smf site with simple portal.
I cannot get the 301 non www to www redirect working without breaking the site login.
The only thing in my .htaccess is pretty url stuff. Put the 301 non www to www and bam...no more login.
Any idears? May or may not be pretty url related, although it is suspect to sy the least. I love pretty url's so much I don't want to deactivate it to test if it's part of the prob lol.
Any advice at all? I really want the non www to www redirect working.....ALMOST as important as pretties!
Seem that you make it worked, I open nicecarvings.com and it redirect to www. of it's site.
Quote from: NiceCarvings on June 28, 2012, 09:42:16 PM
Hi, I have pretty urls installed on a 2.02 smf site with simple portal.
I cannot get the 301 non www to www redirect working without breaking the site login.
The only thing in my .htaccess is pretty url stuff. Put the 301 non www to www and bam...no more login.
Any idears? May or may not be pretty url related, although it is suspect to sy the least. I love pretty url's so much I don't want to deactivate it to test if it's part of the prob lol.
Any advice at all? I really want the non www to www redirect working.....ALMOST as important as pretties!
Troubleshooting page
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Check out the part about changing url
Quote from: vbgamer45 on June 29, 2012, 10:53:22 AM
Quote from: NiceCarvings on June 28, 2012, 09:42:16 PM
Hi, I have pretty urls installed on a 2.02 smf site with simple portal.
I cannot get the 301 non www to www redirect working without breaking the site login.
The only thing in my .htaccess is pretty url stuff. Put the 301 non www to www and bam...no more login.
Any idears? May or may not be pretty url related, although it is suspect to sy the least. I love pretty url's so much I don't want to deactivate it to test if it's part of the prob lol.
Any advice at all? I really want the non www to www redirect working.....ALMOST as important as pretties!
Troubleshooting page
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Check out the part about changing url
THANK YOU! Awesome, i'm so happy about this working!
I broke my forum TWICE trying to get the 301 non www going with pretty urls. Both times I lost some forum member data (i'm a rookie forum admin).
It drove me nuts not having that non www redirect though! Thanks again, for the pretties as well, love them too!
Glad you have it working.
Split topic does not have its own pretty URL
I've been a happy users of SMF 2.0.2 with Pretty URLs for several months. However, When I recently split a topic, I've noticed that the new topic inherits the original pretty URL instead of having its own. Here is the example that I am having trouble with:
I split "How to install 3DNA on Linux and Windows?" (how-to-install-3dna-on-linux-and-windows) to a new topic "Problem with installing 3DNA on Mac OS X 10.4". I'd expect the new topic has pretty url like problem-with-installing-3dna-on-mac-os-x-10-4 instead of re-how-to-install-3dna-on-linux-and-windows. (I tried to provide URLs to demonstrate the problem, but realized that I am not allowed to post external links).
Any way to solve this problem?
Xiang-Jun
im sorry but out of all the support requested on this thread you have answered nearly all of them. but still you have not answered mine a few posts back. WHY?
- The question was answered before.
- There's no solution, sorry.
- I forgot about your post.
(edit: please be nice to other users)
Quote from: Tomy Tran on July 04, 2012, 08:21:48 PM
- The question was answered before.
- There's no solution, sorry.
- I forgot about your post.
(edit: please be nice to other users)
ok well firstly when the hell was the question answered before?, how can there be no solution there obviously is just may not be simple. Make your mind up!
Quote from: fma965 on July 05, 2012, 10:06:14 AM
Quote from: Tomy Tran on July 04, 2012, 08:21:48 PM
- The question was answered before.
- There's no solution, sorry.
- I forgot about your post.
(edit: please be nice to other users)
ok well firstly when the hell was the question answered before?, how can there be no solution there obviously is just may not be simple. Make your mind up!
I don't want to sound blunt, but I am real familiar with this mod and if you disable action rewriting then Pretty URLs is no longer rewriting action urls. The problem is most likely caused by another mod and not Pretty Urls
RewriteRule ^(projects|p2map|fcbrowser|youtube)/?$ ./index.php?pretty;page=$1 [L,QSA]
# Rules for: boards
This line is also suspicious since the first line isn't used by Pretty Urls. Also Pretty Urls adds a empty line between actions and boards. Something is going on in your .htaccess that is not related to Pretty Urls.
Quote from: nend on July 06, 2012, 01:21:37 AM
Quote from: fma965 on July 05, 2012, 10:06:14 AM
Quote from: Tomy Tran on July 04, 2012, 08:21:48 PM
- The question was answered before.
- There's no solution, sorry.
- I forgot about your post.
(edit: please be nice to other users)
ok well firstly when the hell was the question answered before?, how can there be no solution there obviously is just may not be simple. Make your mind up!
I don't want to sound blunt, but I am real familiar with this mod and if you disable action rewriting then Pretty URLs is no longer rewriting action urls. The problem is most likely caused by another mod and not Pretty Urls
RewriteRule ^(projects|p2map|fcbrowser|youtube)/?$ ./index.php?pretty;page=$1 [L,QSA]
# Rules for: boards
This line is also suspicious since the first line isn't used by Pretty Urls. Also Pretty Urls adds a empty line between actions and boards. Something is going on in your .htaccess that is not related to Pretty Urls.
yep i added that my self to make simple portal pages redirect to /pagename and even without that it doesnt work. i tried on a fresh install of smf and pretturl and cookie law but the same thing happens so it clearly is prettyurls causing it. but as you already know i moved back to MyBB but thanks for the help.
I have recently changed the PrettyURL of a few important topics in my forum. I then created 301 redirects in .htaccess so the old PrettyURLs would redirect to the new. The problem is, those redirects are being overridden by this mod causing them to fail because it adds this string at the end: ?pretty;board=example;topic=example.0 (I renamed the board and topic to example here).
Please can you help? How do I get my basic 301s to work?
hello people.... i've install this mod on smf 2.0.2... but i've one problem... when i modify one title topic.. the url remains the same... there's some option to rebuild this?? for expemple
1º - topic www...../test.php
e wanna rename to old_teste
and it shuld be like this the topic www..../old_test
but remais iqual to the original....
ther's any solution?
It does not change url if you modify the topic would hurt seo.
Quote from: vbgamer45 on July 21, 2012, 11:02:33 AM
It does not change url if you modify the topic would hurt seo.
but i wanna change it!!!! :S :(
Only way to do is you would have to modify it in the database in the prettyurls cache i believe.
hum.... ok... thnkx
Hello
I have a problem ... I try to do something like this:
breadcrumbs looks like:
domain.com » board » forum » subforum » test topic
By contrast URL like this:
domain.com/subforum/test-topic/
The question is - if you can, or how to set up (I suppose. Htaccess;)) to the address looks like this:
domain.com/board/forum/subforum/test-topic/
or even as a last resort
domain.com/forum/subforum/test-topic/
I try with configuration in prettyulr (admin>forum>boards and categories>prettyulrs on chosen subforum) but ...
when i
when I enter forum/subforum get forumsubforum , ... not -> forum/subforum in the url address
/ Does not work ..
for example: board/forum shows as boardforum
Someone help me with this? :)
What do you mean by "board" in domain.com/board/forum/subforum/topic/?
E.g. domain.com/smf/general-discussion/some-stuff/my-topic
(Remember that other systems call the entire forum 'the board' and the same software calls individual boards 'forums')
I see. Anyway, he sounds like he's requesting almost the same thing that I need. Portamx's SEF, which I'm using at the moment, only gives the immediate location in the URL (e.g. website.tld/topic_name), not the "link tree" as well.
It seems that Pretty URL's does most of what I need, but since I have a portal (Portamx), I would like "/forum/" indicated in my URL as well (e.g. website.tld/forum/board/topic_name). Will it be difficult to do this?
what happen if into settings I check
Use caching instead of database table for PrettyUrls ???
at the moment, pretty urls cache is saved into database, and increase about 10MB per day,
I have to run the maintenance pretty url to empty that table.
Quote from: hellboy78 on July 27, 2012, 03:29:55 AM
what happen if into settings I check
Use caching instead of database table for PrettyUrls ???
at the moment, pretty urls cache is saved into database, and increase about 10MB per day,
I have to run the maintenance pretty url to empty that table.
Quote from: hellboy78 on July 27, 2012, 03:29:55 AM
what happen if into settings I check
Use caching instead of database table for PrettyUrls ???
at the moment, pretty urls cache is saved into database, and increase about 10MB per day,
I have to run the maintenance pretty url to empty that table.
If you rename topic it will not keep the old url etc.
Quote from: vbgamer45 on July 27, 2012, 10:36:30 AM
Quote from: hellboy78 on July 27, 2012, 03:29:55 AM
what happen if into settings I check
Use caching instead of database table for PrettyUrls ???
at the moment, pretty urls cache is saved into database, and increase about 10MB per day,
I have to run the maintenance pretty url to empty that table.
Quote from: hellboy78 on July 27, 2012, 03:29:55 AM
what happen if into settings I check
Use caching instead of database table for PrettyUrls ???
at the moment, pretty urls cache is saved into database, and increase about 10MB per day,
I have to run the maintenance pretty url to empty that table.
If you rename topic it will not keep the old url etc.
right.
Hello,
I would like to report a critical bug in this mod: the end of urls of the categories are not filtered.
For example:
hxxp://domain.tld/forum/categorie1/ is the normal url. But we can add anything after !
hxxp://domain.tld/forum/categorie1scam
hxxp://domain.tld/forum/categorie1_thieves
hxxp://domain.tld/forum/categorie1/anythingthatdoesnotexist
All these virtual url exist (they don't redirect to hxxp://domain.tld/forum/categorie1/) but they all show the /categorie1/ content instead of generate a 404 error (or really redirect to /categorie1/).
This opens the door to an easy negative SEO. (no need to publicly explain the entire procedure, but I hope you understand that this problem is critical !)
----------------------------------
I had a second problem but certainly it's my fault this time :
I tried to redirect hxxp://www.domain.tld/forum/ to hxxp://domain.tld by using .htaccess.
It works with no problem with basic smf but as soon as Pretty URLs is installed, no way to success with this redirection.
(not so important as we can define the prefered domain in google webmaster tool, but it's a little dirty)
----------------------------------
Third problem : the same with redirection of that type :
hxxp://domain.tld/index.php to hxxp://domain.tld/
All my attempts produce a bad redirection in all navigators as soon as Pretty URLs is installed.
If someone has a solution to the 2nd and 3rd problem, i would be very happy :-)
Do not think that I disparage this mod, i think it's a must have for any smf forum !
But i'm just trying to share some bugs in order to improve it.
(sorry for my awful english)
That's a problem in regular SMF as well, not just this mod.
(And no, it's not a must have for any SMF forum. Almost all of the multi-million post SMF forums are quite happy WITHOUT it, for example)
If you wish though the file with the error that is produced when these invalid URL's are entered is Load.php. The text string is topic_gone, so if you want you can code in a redirect or a 404. Myself I have coded a call to my 404 function when this error occurs. ;)
I get a lot of error about this mod. What can I do. The forum is stabil and works perfectly. Thanks
Database Error: Duplicate entry '5360' for key 'PRIMARY'
This error with thousand lines that topics number and
.
.
.
(22596, 'xxxxx-xx-xxxx-xxxxxxx-xxxxx'),
.
.
.
.
Thanks, nend, for the tips, i'll look at this.
Arantor, effectively you're right. It's amazing that smf does not handle this problem natively.
Quote from: MaTheRyS on July 31, 2012, 04:29:21 PM
Thanks, nend, for the tips, i'll look at this.
Arantor, effectively you're right. It's amazing that smf does not handle this problem natively.
You mean aside from the stealth robots noindex directive it adds when it finds unexpected content in the URL, specifically to deal with what SMF already has (e.g. the duplicate URLs all going to a single place) plus the canonical directive?
My pretty URL has been working fine, but today, every link redirect to home page, i need help to correct this
Seems like there are a lot of errors for this mod?
Try to see content of error_log file will help you much. You might have a code to redirect to homepage on 404 page.
Quote from: Mstcool on July 31, 2012, 09:15:16 PM
Seems like there are a lot of errors for this mod?
Not really, this mod basically works right out of the box so I don't know what the commotion it about.
Oh alright
Hello,
I install Pretty URL (http://custom.simplemachines.org/mods/index.php?mod=636)s mod and install SA Facebook integration (http://custom.simplemachines.org/mods/index.php?mod=2322) mod.. And all thing working just i have few problems...
On mesegesindex page i have this problem:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dodaj.rs%2Ff%2F2F%2FRq%2F49w2XXzX%2Ffacebookindex.jpg&hash=1a07de143d26e308e574ed59706b79bf4cb565cf)
Also on facebook I have this problem:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dodaj.rs%2Ff%2F3f%2FwG%2FIOWVXdI%2Ffacebook.png&hash=7ff390879c8f52aa747abc7c14500e08738ad6cc)
But on my URL Bar I have this adress:
http://www.site.tld/general-discussion/asdsdasdas/
and i want this url been showed on facebook. Is there any way how this can be done?
Quote from: akbora on July 31, 2012, 01:19:41 PM
I get a lot of error about this mod. What can I do. The forum is stabil and works perfectly. Thanks
Database Error: Duplicate entry '5360' for key 'PRIMARY'
This error with thousand lines that topics number and
.
.
.
(22596, 'xxxxx-xx-xxxx-xxxxxxx-xxxxx'),
.
.
.
.
What about with this problem please? Thanks
any chances to have this package for other languages ?
for example, I have installed this on a Persian 2.0.2 version SMF forum, but it doesn't understand Persian words and shows like this:
FORUM/---!-!-
I myself have translated several SMF packages, but regarding this one, I am not sure if I can do that
You can find the file in Subs-PrettyUrls.php. You will need to edit the $characterHash array and put your letter in the array with the corresponding URL legal character.
Example
Before
'b' => array ('b', 'B'),
After
'b' => array ('b', 'B', 'ب'),
I don't know if that examples is correct because I don't know Persian, but you know better. Translation is a pain, as I am sure some of your characters may not be equal to a English character, do your best though. If you need me to examine the changes afterwards go head and post your file here. ;)
After you do this you may want to wipe all the URL's and have them regenerate on their own to get them updated. If it is a new site then I suggest that this isn't a bad idea, refreshing the URL's, however if it is a old site then it may be.
Hey!
I searched the topic and this hasnt been asked (it seems) so I would like to know...can I change the profile link to be user ID instead of username?
Also I have a list of fixes I would like to make...can you help with any of them? Bolded are what I see now...and underneath is what I would like to see :).
/board/?action=post
/board/post
/unread/?all;start=0 AND /unread/?all
/unread/all
/unreadreplies
/unread/replies
/mlist/?sort=registered;start=0 and all other sort URLS, like ones in boards (my poster, date, etc)
/mlist/sort/registered/asc (or desc)
/profile/?area=works;u=1 (and any other profile/mod/admin area)
/profile/area/works/<user ID>
/index.php?action=resources (and all resource areas (http://www.bunnyrabbitsex.com/index.php?action=resources) so category names and link titles are included)
/resources
/pm/
/messages/
/pm/?sa=send;f=inbox;pmsg=0000;u=000
/messages/send
/pm/?f=sent#msg0000
/messages/sent/0000
/index.php
/ (nothing, don't want it to display)
/<board>/<topic>/?action=post;last_msg=00000
/<board>/<topic>/post/00000 (if the last message thing is needed)
/<board>/<topic>/?action=post;msg=00000
/<board>/<topic>/post/00000 (if the msg id is needed)
/about/?sa=staff (and any other sa for any added pages (http://www.bunnyrabbitsex.com/about/?sa=staff) in the future)
/about/staff
Thank you for any help you can give me, I really appreciate it :D. I'm on 2.0.2 if that's relevant :).
Quote from: Jade Elizabeth on August 09, 2012, 06:51:46 AM
Hey!
I searched the topic and this hasnt been asked (it seems) so I would like to know...can I change the profile link to be user ID instead of username?
Also I have a list of fixes I would like to make...can you help with any of them? Bolded are what I see now...and underneath is what I would like to see :).
Maybe it might be easier it create a new topic for this because of some changes are pretty extensive by adding new json code to the filters in the database and adding new functions in the rewrite filters in the sources.
Some of things you are asking I already implemented.
Like
Quote/index.php
/ (nothing, don't want it to display)
Find in PrettyUrls-Filters.php
// Stitch everything back together, clean it up and return
$replacement = isset($context['pretty']['cached_urls'][$url_id]) ? $context['pretty']['cached_urls'][$url_id] : $url_id;
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($session_var[0]) ? $session_var[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
$replacement = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|&$|;$|#$|=$~'), array(';', '?', '#', ''), $replacement);
Add After
$replacement = str_replace('index.php', '', $replacement);// Remove index.php, who needs it.
Where's the latest version of this mod? nend are you rewriting it or improving upon it? It's hard to follow after 300+ pages :)
Thanks so much!
Here's the topic for you, hope it's okay :D.
http://www.simplemachines.org/community/index.php?topic=483976.0
I created a new topic at this link, and here is the quote from there:
Quote from: nairaman on August 19, 2012, 01:25:58 PM
I created a new SMForum 2.0.2 at http://www.howebook.net and I am trying to make the urls SEO-friendly, so I installed the Pretty URLs 1.0 from this link http://www.simplemachines.org/community/index.php?topic=146969.0
It's working fine, but I need to restructure the URL for topics from the current structure which is
hxxp://domain.tld/board/topic
to something like
hxxp://domain.tld/topic-id/topic
so that instead of
howebook.net/phone/master-guide
I should be having something like
howebook.net/1234/master-guide
where topic-id is a number indicating the numeric ID for that topic.
Can anyone guide me as to how I can achieve this. I would be so grateful if anyone could modify the mod accordingly and re-attach the new one here so that I could download and re-install on my forum.
Thanks. ;D
Not easily possible. You would have to change the pretty urls code.
Ok. Thanks for the prompt reply. But I would need you to guide me exactly where to go and modify, and the block of code that I need to modify. I am a bit good with PHP so I can at least hazard a try on a fresh installation of SMF on my server.
nice mod thank you ;)
Notice: Undefined index: pretty_board_url_title in /home/xxxxx/public_html/Sources/ManageBoards.php on line 851
Notice: Undefined index: pretty_duplicate_warning in /home/xxxxxx/public_html/Sources/ManageBoards.php on line 907
Notice: Undefined index: pretty_duplicate_link in /home/xxxx/public_html/Sources/ManageBoards.php on line 907
I installed Last update version successfully but I get these error. I cannot modify new primary board name. Please help me. Thanks
What happens when try to modify the primary board name?
I can not change the board name for pretty urls mod. That is I can not make a new name for pretty. Appear these errors page of above.
And the others problem over the thousand error come like this
Database Error: Duplicate entry '20245' for key 'PRIMARY'
Thanks.
Edit: When I enter the board manager page and the when I tap the pretty setting these errors appear ant he characters are getting big.
Hi everyone,
I installed pretty urls today and firstly, awesome mod, thank you :)
So I decided it would be worthwhile changing a few names of boards to make the most of pretty urls.
After changing a few of them I went and ran the maintenance.
Unfortunately this didn't have any effect on the urls. They are still the old ones.
I am not sure what to do next so any help would be appreciated.
Thank you.
When using this mod, I get the following error when I try to change the name of a board:
]i]Forbidden
You don't have permission to access /christian_forums/admin/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.[/i]
$context['pretty']['board_title'] = $txt['pretty_board_url_title'] . (isset($boards[$board_id]) ? $boards[$board_id]['name'] : $txt['pretty_deleted_board'] . $board_id);
Where is the mistakes in this line? This error wtih me When I change setting pretty of board manager.
xxxxx.index.php?action=admin;area=manageboards;sa=pretty;boardid=18xx
Error is :
Notice: Undefined index: pretty_board_url_title in /home/xxxxxi/public_html/Sources/ManageBoards.php on line 847
What can I do?
Unfıortunateliy problems don't stop abour pretty...
Is there any error these codes? Because there are a lot of this error.
Database Error: Duplicate entry '11255' for key 'PRIMARY'
Dosya: /home/xxxxxxx/public_html/Sources/PrettyUrls-Filters.php
Line: 431
// ... and add them to the database!
427: $smcFunc['db_insert']('',
428: '{db_prefix}pretty_topic_urls',
429: array('id_topic' => 'int', 'pretty_url' => 'string'),
430: $add_new,
==>431: array());
432: }
433:
Thanks
Quote from: Jade Elizabeth on August 13, 2012, 12:13:26 PM
Thanks so much!
Here's the topic for you, hope it's okay :D.
http://www.simplemachines.org/community/index.php?topic=483976.0
Can anyone help me out with any of these URL changes please?
Hello vbgamer45,
Thank you for this great mod... How can I change the topic name instead of topic id?
Like;
domain.com/board-name/topic-id
Regards,
Sedat
How do I make this not run for sending newsletters?
Fatal error: Maximum execution time of 30 seconds exceeded in /Sources/PrettyUrls-Filters.php on line 31
Is it possible to make this mo work with lighttpd instead of Apache?
I think so. I believe people posted some workarounds somewhere in this topic
Hello everyone,
We currently use PrettyURL's to make our forum URLs look nice. This works great except for 1 thing.
>The URL's now look like:
domainname/subdomain/BOARDNAME/TOPICNAME/
And we want them to look like:
domainname/subdomain/TOPICNAME/
So without the boardname.
We did play a lot with the .htaccess file but cannot seem to get it to work.
I hope you can help me.
Thanks in advance!
Kind regards,
Jarno
No easy way to to do that you would need to modify the php files
Hello VBGamer,
Ok. I can do that... if I would know what to adjust in these files (and what files exactly).
Can you help me?
Kind regards,
Jarno
Hi there,
When using Pretty URLs, I get the following error when I try to change the name of a board:
Forbidden
You don't have permission to access /christian_forums/admin/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Disable mod_security search here on how to or contact your host
I have a problem:
I intall plugins and enable pretty url but dont work good.
My SMF is todocomparte.com.ar and you can check the problem
Enable URL rewriting
todocomparte.com.ar/1/
Disable URL rewriting
todocomparte.com.ar/index.php?board=1.0
but when enable url most say todocomparte.com.ar/noticias-y-actualizaciones/.
Thanks for all.
New install? I would empty the pretty urls caches and see if that helps.
Hello,
Firstly I'd like to thank you for that great mod!
I have installed this mod on the two forums (English and Russian) for two years, and everything was OK.
But about one week ago the new topics on the English forum became something like this - t6625.
F.e.:
One of the old topics - http://www.seomastering.com/seo-forum/search_engine_optimization_basics/how_to_do_on_page_optimization/ (http://www.seomastering.com/seo-forum/search_engine_optimization_basics/how_to_do_on_page_optimization/)
One of the new topics - http://www.seomastering.com/seo-forum/search_engine_optimization_basics/t6656/ (http://www.seomastering.com/seo-forum/search_engine_optimization_basics/t6656/)
I tried to add new Boards, and everything was OK with Pretty URLs. This problem is only for topics.
On the Russian forum everything is OK.
Both forums are located on the same server, have the same Subs-PrettyUrls.php files and same settings.
Tell me please, what is wrong with my Pretty URLs on the English forum?
Thank you.
PS. Both forums: SMF 2.0.2, Pretty URLs 1.0RC5.2
Any advice?
Isn't Persian language support added to this package yet?
Quote from: PersianDeveloper on October 04, 2012, 08:19:19 AM
Isn't Persian language support added to this package yet?
I don't know if we had a translation for it yet or are you looking for url support
once I tried to translate the package
but after the installation it wad not recognizing Persian words in the URLs, replacing them with characters like "---"
Any advises ?
Is it possible to change the structure of TOPIC URLs, so that it looks like: www.url.com/topic-name
and NOT: www.url.com/board-name/topic-name
Thanks!
@zoki, why would you want to do that?
I want shorter URLs.
As opposed to having more meaningful URLs that also perform better in every respect.
Pretty URLs would need significant changes to work how you want it to.
There's another thing. When I make new topic, the URL will be created. Now if I go and edit the topic subject to a different one, the URL will not change?
for example I make spelling mistake with topic subject, then I go edit it, the Clean URL will not be changed.
Any thoughts?
No, it won't - so that if the old name is already in search engines, it won't change the URL for later since there is no other way to reference the URL.
It is stored in the database and you can change it there but you shouldn't unless you know what you're doing.
Hi,
Can Pretty URL rewrite url of a portal (Tiny portal)?
http://www.xxxxxx.biz/?page=9 ==> http://www.xxxxxxxx.biz/?name of the page/
I thank you in advance
Regards
Quote from: zoki on October 14, 2012, 04:53:17 AM
There's another thing. When I make new topic, the URL will be created. Now if I go and edit the topic subject to a different one, the URL will not change?
for example I make spelling mistake with topic subject, then I go edit it, the Clean URL will not be changed.
Any thoughts?
If you change the URL, then you will be getting a 404 or soft 404 in GWT, if Google has already indexed the topic
A little help please.
I have uploaded pretty Urls to my forum 1.1.16.
It displays error 404 not found when I test the links it suggests.
Can anyone tell me where I find the example.htaccess files so I can re name it to .htaccess as suggested.
Why does this mod allow stuff like parenthesses and exclamation points in URLs? It should automatically remove those from URLs, don't you think so? Numbers, letters and hyphens are what should be allowed....
Those are supported for urls by default.
It worked well with me. Thanks.
Quote from: topman on October 16, 2012, 07:46:22 AM
A little help please.
I have uploaded pretty Urls to my forum 1.1.16.
It displays error 404 not found when I test the links it suggests.
Can anyone tell me where I find the example.htaccess files so I can re name it to .htaccess as suggested.
Can I have a bit of help please?
I also dont know what to name the new.php file as either.
To fix the links so that the problem can be diagnosed and fixed, or so you can uninstall the mod, create a new .php file with this code:
<?php require_once(dirname(__FILE__) . '/SSI.php'); updateSettings(array('pretty_enable_filters' => '0')); ?>Upload the file to the same location as your forum's SSI.php and open it with your web browser. Then don't forget to delete it! Delete what the new file?
Currently it seems Pretty urls work only for boards and titles with English letters. I have a smf website which has titles in UTF8 and most of the time it will not have any English letters. WHen I use the pretty urls for titles and boards, the url returned contains only numbers instead of unicode letters. Is it done intentionally or is it just a feature not implemented? I want my website to have urls with unicode UTF8 letters. How can I do this using pretty urls? Is there anywhere I can change the code in pretty url module so that I can do this ?
Unicode in URLs does not always work properly, which is why Wikipedia doesn't use it either... browsers invariably replace the Unicode with escaped characters as they should.
Note that this mod has only a small SEO benefit, if you're worrying about it for SEO, don't bother.
Thank you , I go with your suggestion, better don't go with Unicode in URLS
Quote from: topman on October 17, 2012, 06:30:47 AM
To fix the links so that the problem can be diagnosed and fixed, or so you can uninstall the mod, create a new .php file with this code:
<?php require_once(dirname(__FILE__) . '/SSI.php'); updateSettings(array('pretty_enable_filters' => '0')); ?>Upload the file to the same location as your forum's SSI.php and open it with your web browser. Then don't forget to delete it! Delete what the new file?
Will anyone help me?
Quote from: topman on October 17, 2012, 05:13:55 AM
Quote from: topman on October 16, 2012, 07:46:22 AM
A little help please.
I have uploaded pretty Urls to my forum 1.1.16.
It displays error 404 not found when I test the links it suggests.
Can anyone tell me where I find the example.htaccess files so I can re name it to .htaccess as suggested.
Can I have a bit of help please?
I also dont know what to name the new.php file as either.
Can someone answer please?
Just create a text file called (say) impatience.php, put the content as shown above in it, upload it to the place where your forum's SSI.php file is, point your browsers address bar at that file.
Then, delete the file you uploaded (impatience.php).
When I move topics the URL breaks:
http://www.bunnyrabbitsex.com/help-requests/moved-different-sites-that-can-make-money-fora-writer/
Quote from: Shambles™ on October 19, 2012, 05:05:24 AM
Just create a text file called (say) impatience.php, put the content as shown above in it, upload it to the place where your forum's SSI.php file is, point your browsers address bar at that file.
Then, delete the file you uploaded (impatience.php).
I just did exactly as you say and it didnt work when ! tried agin.
the URL changed as I wanted it to, but all I got was "error 404 page not found"
not the thread page!
Do you or anyone have any other suggestions please?
I would really love this to work.
many thanks
"impatience"
Quote from: mrintech on October 22, 2012, 03:25:00 AM
Quote from: topman on October 22, 2012, 03:11:19 AM
Quote from: Shambles™ on October 19, 2012, 05:05:24 AM
Just create a text file called (say) impatience.php, put the content as shown above in it, upload it to the place where your forum's SSI.php file is, point your browsers address bar at that file.
Then, delete the file you uploaded (impatience.php).
I just did exactly as you say and it didnt work when ! tried agin.
the URL changed as I wanted it to, but all I got was "error 404 page not found"
not the thread page!
Do you or anyone have any other suggestions please?
I would really love this to work.
many thanks
"impatience"
you followed those steps?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc011.gif&hash=a034aba3103313f96a663eebd1627b4e1e193b2f) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc028.gif&hash=c6f70fa0fe8abc2c8aea0de1e69019844dcc6de5)
Not sure what you are saying or implying here but it isnt helpful!
Quote from: mrintech on October 22, 2012, 03:25:00 AM
Quote from: topman on October 22, 2012, 03:11:19 AM
Quote from: Shambles™ on October 19, 2012, 05:05:24 AM
Just create a text file called (say) impatience.php, put the content as shown above in it, upload it to the place where your forum's SSI.php file is, point your browsers address bar at that file.
Then, delete the file you uploaded (impatience.php).
I just did exactly as you say and it didnt work when ! tried agin.
the URL changed as I wanted it to, but all I got was "error 404 page not found"
not the thread page!
Do you or anyone have any other suggestions please?
I would really love this to work.
many thanks
"impatience"
you followed those steps?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc011.gif&hash=a034aba3103313f96a663eebd1627b4e1e193b2f) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc028.gif&hash=c6f70fa0fe8abc2c8aea0de1e69019844dcc6de5)
Whilst I acknowledge that asking and not getting any help with my question/problem aftre seven days, may be deemed "impatinece" by some it is still unresolved!
This mod looks like it will do exactly what I want it to but I cant get it to work on my forum
Perhaps there is another Mod that will give URLs a name rather than "topic1224" and work with SMF 1.1.16?
Or perhaps the hacks can help with some advice and things I can try to make this Mod work.
Quote from: topman on October 23, 2012, 04:05:02 AM
Quote from: mrintech on October 22, 2012, 03:25:00 AM
Quote from: topman on October 22, 2012, 03:11:19 AM
Quote from: Shambles™ on October 19, 2012, 05:05:24 AM
Just create a text file called (say) impatience.php, put the content as shown above in it, upload it to the place where your forum's SSI.php file is, point your browsers address bar at that file.
Then, delete the file you uploaded (impatience.php).
I just did exactly as you say and it didnt work when ! tried agin.
the URL changed as I wanted it to, but all I got was "error 404 page not found"
not the thread page!
Do you or anyone have any other suggestions please?
I would really love this to work.
many thanks
"impatience"
you followed those steps?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc011.gif&hash=a034aba3103313f96a663eebd1627b4e1e193b2f) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc028.gif&hash=c6f70fa0fe8abc2c8aea0de1e69019844dcc6de5)
Not sure what you are saying or implying here but it isnt helpful!
Hi
Sorry, that post was meant for a topic in chit chat section. I have deleted it.
Posted in wrong thread. I open lots of topics in different tabs
Thanks and Apologies :)
Hey Topman, maybe check your files are at the right permission levels and clear your cache if you have one :). Maybe that will help!
.htaccess will be in the forum root but you should be careful because your original might have things you need in it.
Not quite sure how to do this but I will have a look.
I dont really know what the permissions should be set to either!
This software looks amazing but it is for vBulletin.
http://www.crawlability.com/vbseo/ (http://www.crawlability.com/vbseo/)
Hello.
First off all this is a great mod! ;D
When this mod is active the users get logout after they entered a topic or board.
How can I solve this problem.
Thanks in advanced.
thx - works fine - just one thing - it is just a layout bug (see att'ed file)
this is in settings (area=pretty;sa=settings) and after the maintenance job is finished (area=pretty;sa=maintenance;run)
also I found out that this mod uses fixed strings like "settings saved"
cheers Inti31
Quote from: Jade Elizabeth on October 20, 2012, 11:07:05 PM
When I move topics the URL breaks:
http://www.bunnyrabbitsex.com/help-requests/moved-different-sites-that-can-make-money-fora-writer/
:)
Quote from: IvoLeite on October 28, 2012, 11:31:57 AM
Hello.
First off all this is a great mod! ;D
When this mod is active the users get logout after they entered a topic or board.
How can I solve this problem.
Thanks in advanced.
Can anyone help me please?
Quote from: Jade Elizabeth on October 25, 2012, 11:15:18 AM
Hey Topman, maybe check your files are at the right permission levels and clear your cache if you have one :). Maybe that will help!
.htaccess will be in the forum root but you should be careful because your original might have things you need in it.
I cannot find .htaccess in the forum root or the root of my website.
Can I add a file called .htaccess to the forum root?
What should I put in this to make the prettyuRLs work?
Can find a file called "cache" in the root using ftp either.
I clear my tempory files folders each time I turn off my PC.
Cache clearing is an option in admin....alternatively empty the folder marked "cache". Also clear your browsers cache (search "browser name clear cache".
You will need to set your root folder to 777 or 755 so that a .htaccess can be created maybe.....or ask your host if you are allowed one :).
In Admin under Caching it says "SMF has not been able to detect a compatible accelerator on your server." and I have "no caching."
Root Folder set to 777 or 755? How do I do this?
Quote from: topman on November 02, 2012, 06:06:47 AM
Root Folder set to 777 or 755? How do I do this?
Check this out: http://bit.ly/CfbOd
:)
Even more confusing!
I cant get Filezilla to work!
I have an FTP program and when I right click and change permissions
I get Read /Write/ Execute but there is no Numeric value box or number in the pop up!
Quote from: topman on November 03, 2012, 04:59:04 AM
Even more confusing!
I cant get Filezilla to work!
I have an FTP program and when I right click and change permissions
I get Read /Write/ Execute but there is no Numeric value box or number in the pop up!
If you are using cPanel, then you can change permissions from File Manager too: http://bit.ly/eT4rJD
:)
Hi Guys
i have a simple problem with Pretty URL MOD
I use SMF 1.1.16, just installed this mod, it work perfectly but some topics dosen't load and get blank page
example url:
Quotehttp://www.mysite.com/index.php?topic=2127.90
i don't know what is the problem, htaccess or etc, i need this MOD for SEO, can anyone help me out to solve this problem?
here is my htaccess:
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: November 2, 2012, 16:54
RewriteEngine on
RewriteBase /
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(activate|admin|enotify|announce|ban|blog|boardrecount|buddies)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(buddy|buddylist|buddylist|calendar|cleanperms|collapse|comment|convertentities)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(convertutf8|coppa|contact|copytopic|copytopic2|deletemsg|detailedversion|display)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dlattach|dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(helpadmin|im|jsoption|jsmodify|lock|lockVoting|login|login2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(logout|maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mergetopics|mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notify|notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post|post2|postsettings|printpage|profile|profile2|quotefast|quickmod)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod2|rate|rateadmin|ratelog|recent|regcenter|register|register2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reminder|removetopic2|removeoldtopics2|removepoll|renameTopic|repairboards|reporttm|reports)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(requestmembers|search|search2|sendtopic|serversettings|serversettings2|shoutbox|manageshoutbox)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smileys|smstats|spellcheck|splittopics|stats|sticky|staff|thankyou)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(thankyoupostlock|thankyoupostlist|thankyoupostdelete|thankyoupostdm|thankyoupostcloseall|thankyoupostunlockall|thankyoupostrecountall|thankyoupostrepairtable)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(theme|trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewprofile|verificationcode|vote|viewquery|who|\.xml)/?$ ./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]
# PRETTYURLS MOD ENDS
Thanks everyone
been trying to get this working for some time now, been searching through the help thread but can't get it fixed.
running smf 2.0.2 pretty urls installs perfectly, the urls rewrite perfectly, unfortunately cookies are broken as a user has to keep signing in over and over in a never ending loop.
Could be that url is different one could have www and the other doesn't or you have different domains.
You need to setup the primary method then update pretty urls as that url.
i use ssl on the forum, figured out if i forced ssl via htaccess on top of the settings in smf it appears to work...
---------------------got it to works but throws up errors on submitting new posts..
I've searched through the thread and think I know the answer, but wanted to make absolutely sure so apologies if this is a repeat in anyway of previous questions....
I want to understand what happens behind the scenes for Pretty URL.
Does it go post by post and uses Mod_Rewrite to change the URL address from the ugly number id to a pretty url?
If this is the case, my big concern is around proper search bot communication. I have 1000s of pages already ranked by the search engine, and if I rename them all it may hurt the rankings and traffic. Does Pretty URL actually write a 301 Redirect Rule for Every single URL that it renames?
If the search bot goes to the old url already indexed, will it see a proper 301 Redirect to the new url ?
Yes it issues a 301 redirect to the new url.
Quote from: Jade Elizabeth on October 20, 2012, 11:07:05 PM
When I move topics the URL breaks:
http://www.bunnyrabbitsex.com/help-requests/moved-different-sites-that-can-make-money-fora-writer/
Can you at least tell me you've seen this so I can remove the topic from my forum please? :)
I have seen the post.
Sweet, thank you. I'm going to delete it now :).
Does Pretty URLs only really work with Linux servers?
Just wanted to say thank you for an amazing mod. this is truly wonderful and bless you so much for this.
Quote from: topman on November 13, 2012, 07:25:04 AM
Does Pretty URLs only really work with Linux servers?
No works on windows too with ISAPI REWRITE
i have created some articles using tinyportal, can i use custom url for the same.
Quote from: abelcarreto on June 02, 2010, 05:00:33 AM
Hi guys! I guess I got a problem with something concerning that mod. When I deactivate it, the forum profile section works fine, and tpadmin too, but when activated, when I try to save forum profile (where you can choose you avatar etc...) it appears "403 Forbidden" Page. I have been looking for the same error on this topic, but I haven't found anything. Please, ¿could you help me?
This is the error on Apache error log. It says "file does not exist"
File does not exist: /home/eldiscod/public_html/tpadmin, referer: http://www.mywebsite.com/tpadmin/
File does not exist: /home/eldiscod/public_html/profile, referer: http://www.mywebsite.com/profile/?area=forumprofile;u=1
Thank you so much in advice.
Same thing http://www.mywebsite.com/profile/?area=forumprofile;u=1 does not work - a blank page. I've tried Pretty URLs and generally it works like a charm... except that no matter what I've tried, no one was ever able to edit his public profile settings (and had to turn it off).
Ideas?
I would check your forum's error log for any related errors which might be clues to what is going on.
File does not exist:..
Lots of /public_html/profile , /public_html/wap2 and some ... /public_html/topicXXX
(could be because Google had bee indexed some URLs during the experiments) and nothing else
Profiles has not been checked (tried, trough - same thing)
I've been reading about ways to speedup wmf (http://www.simplemachines.org/community/index.php?topic=293441.0) but I'm also interested in using the pretty urls mod. Will this slow down my forum at all? What about the regular "Search Engine Friendly URLS" option included with SMF?
Thanks for any advice.
Yes it will slow down the forum.
Friendly urls in SMF just removes the ? and replaces it with / instead
Has anybody found a fix to this yet?
Quote from: iverSUN on April 20, 2012, 12:20:34 PM
ERROR
I'm trying to send out an HTML newsletter via eMail, and I'm having some problems.
QuoteFatal error: Maximum execution time of 30 seconds exceeded in /Sources/PrettyUrls-Filters.php on line 269
I've turned on Mail Que settings (set to 40 emails per minute, 3 emails per page load) to help throttle the server and keep load down. It adds about 67 email addresses to the que, out of ~2,000.
I've also added the action "admin" to the skip actions area, so PrettyURLs isn't doing anything for the admin area. The link looks like: site.com/index.php?action=admin;area=news;sa=mailingsend
Try disabling action rewriting.
hello !!! :D
is there a way to avoid this bug in the url when i use a title with for example : "America's debt"
pretty url rewrite it : "America39s debt"
apparently the mod or something else does not like these " 's "
could be a problem with utf-8 ?
thanks in advance
Hello. I'm hoping you can help. I'm trying to install prettyurls but I'm getting the following error:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.towerstimes.co.uk%2Fstaff%2Fadz%2Fshot.png&hash=f0e38f373d96ee5cf9fe8fbee5bab47c3b2fbfc6)
I'm not sure what to do next?
EDIT
I've now got past this stage and the mod is installed and accessible via the admin panel. However it isn't working properly.
Board and topic rewrite simply does nothing.
Profile and Actions have worked, yet the forum still shows the .php?action=search and .php?profile=:u=xxxxx links, despite the /search and /profile/user links working if you type them into the address bar.
Really lost and confused now! :/
Your host has to have mod_rewrite support.
And you should have .htaccess file in the root of your forum.
Is it possible to add pretty url's to win server 2008? The reason I ask is I moved forum from linux to a windows server.
Thanks
Yes wither apache or IIS with ISAPI Rewrite
I have managed to get the the rewrite to work on the boards and topics on win 2008 with the built in url rewrite,but having trouble with the other links like the admin. I am not using ISAPI Rewrite, just the built in rewrite in win 2008
Thanks.
Haven't used the built in rewritie option for Windows 2008.
Thanks for the info, I think I have it all working on the win 2008 server.
Thanks Bo
I seen this question posted about page 321 but I didn't see a resolution. So, I'm going to ask again, sorry if it was answered.
I installed this mod on my forum but and it does make the urls pretty but everytime I click on a topic, it will take me to that topic but it logs me out.
Can anyone please help?
with pretty url mod how can I know the board numbers?
Quote from: perfec2 on December 27, 2012, 10:48:40 AM
with pretty url mod how can I know the board numbers?
You would have to hover over an area to know the board numbers such as when you edit a board in the admin area you can see the id
Quote from: perfec2 on December 27, 2012, 10:48:40 AM
with pretty url mod how can I know the board numbers?
I ran into this too, and the topic ids...because sometimes you have to know them (say for code or RSS/urls or what ever). I'm considering putting something hidden in for admins so I can snow it and figure out the board, cat, and topic ids.
Hi!
Is it possible to somehow modify the display pretty to address not only the forum appear immediately "address"? So I'm in section 123 post xyz. It is normally displayed hxxp:www.adres.pl/123/xyz , and I want as hxxp:www.adres.pl/ xyz.
help me! thanks!
Quote from: Jade Elizabeth on December 28, 2012, 01:31:02 AM
Quote from: perfec2 on December 27, 2012, 10:48:40 AM
with pretty url mod how can I know the board numbers?
I ran into this too, and the topic ids...because sometimes you have to know them (say for code or RSS/urls or what ever). I'm considering putting something hidden in for admins so I can snow it and figure out the board, cat, and topic ids.
Yeah might make a change to manage boards area to display board id that would be a good idea.
Quote
Hi!
Is it possible to somehow modify the display pretty to address not only the forum appear immediately "address"? So I'm in section 123 post xyz. It is normally displayed hxxp:www.adres.pl/123/xyz , and I want as hxxp:www.adres.pl/ xyz.
help me! thanks!
Not without a lot of work.
Quote from: vbgamer45 on December 30, 2012, 08:08:48 PM
Yeah might make a change to manage boards area to display board id that would be a good idea.
That would be fantastic!
You could just have a thing that displays the IDs on hover too.....so if you hover over the 4th category some text comes up and says "<cat name> (category number)" sort of thing. "<board name> (board number)", "<topic name> (topic number)".
So if my first cat is called "SMF Support" it would say "SMF Support (Category 1)" when I hover over it. You might need to set it as "admin only" or "everyone" cause not everyone will use it though :).
I'm really embarrassed. I typoed a topic title and even after running maintenance it's not spell correcting the title :(. What do I do?
Good luck!! I offered money for URL changes and was knocked back, so unless you have a bottomless pocket! LOLOL
If you do though, I take donations ha ha ;D.
mod great thank you SMFHacks and all comments here
Installed http://fairyfc.com
but not support thai Language :-[
Trying to install Pretty URLs but seeing this problem:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi828.photobucket.com%2Falbums%2Fzz203%2FChowMeinNoodoh%2Fpretty_urlerror_zpsba9fc5a3.jpg&hash=a9d36b349d203e2459d467bfad9fa61d7886a4a0)
We have been running 1.0RC since forever on smf 1.1.x. Would there be any real benefit to upgrading to the 1.0 release version? Is it a big deal to accomplish this?
Mark
Quote from: memiller on January 08, 2013, 11:54:22 AM
We have been running 1.0RC since forever on smf 1.1.x. Would there be any real benefit to upgrading to the 1.0 release version? Is it a big deal to accomplish this?
Mark
Just minor bug fixes not much.
Only reason I asked is because Pretty URLs seems to eat relatively a lot of php time on my forums. I didn't know if the release version was any more efficient. It's not a deadly problem, but just thought I would ask anyway. Thanks!
-Mark
For my sites I only rewrite the boards/topics.
There are some small performance improvements here and there to skip processing certain types of links
I am running SMF 2.03
I have been running Pretty URLs for a few months. On my main theme everything works well.
I have installed a mobile theme SMF4Mobile which was working OK.
Now I am getting some strange behavour which I think is linked to Pretty Urls.
If I am logged out of my forum, and I use the mobile theme, everything works fine, but if I log in and use the mobile theme, I get this error message in Chrome "[an error occurred while processing this directive]" In IE9 the error message is "HTTP 500 Internal Server error".
If I disable Pretty Urls, the opposite happens, the mobile theme works well when I am logged in, but when I am logged out I get the error in Chrome "[an error occurred while processing this directive]"
I am not getting any error messages in SMF or in the server CPanel log
Would Pretty Urls operate differently dependent on whether a user was logged in or not?
The fact that disabling Pretty Urls, reverses the error, makes me think that the problem is something related to Pretty Urls.
I cannot understand why using a different theme would make the navigation of the forum change and give errors.
Can anyone give me a clue as to where I can look for a solution please? Has anyone else experienced this behaviour?
Thank you.
Hard to tell I would need to see either the forum's error log or the webhosting error log to see what casues the 500 error.
Hello Everyone! ;D
after install Pretty URLs add social network and stop word "!","(",")"?
Thank you
I have just got pretty urls working after switching to a Linux sever.
Trouble is my Website link tabs have been changed as well.
Any ideas?
Quote from: topman on January 23, 2013, 07:30:14 AM
I have just got pretty urls working after switching to a Linux sever.
Trouble is my Website link tabs have been changed as well.
Any ideas?
Example?
This mod will scan for all links on your site and attempt to find a replacement depending on your pretty urls settings.
If you look at the index page
The link tabs to the right of the SMF logout tab are not supposed to have /forum/smf/ in the url.
How do I cahnge pretty url setting to exclude these?
Looks like a great mod and it installed perfect. I changed the domain name to my forum 6 months ago and it has been running perfect without any errors. When I click on enable and test the urls the boards and topic come up with the old domain name and the actions and profile come up correctly with the new domain name.
Any ideas on this?
Quote from: scvoyager on January 25, 2013, 12:43:58 AM
Looks like a great mod and it installed perfect. I changed the domain name to my forum 6 months ago and it has been running perfect without any errors. When I click on enable and test the urls the boards and topic come up with the old domain name and the actions and profile come up correctly with the new domain name.
Any ideas on this?
Check out our troubleshooting page
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Hey mate, my forum has been using Pretty URLs for over a year and we decided to get a new facebook style chat bar (arrowchat) installed onto the our SMF. I found that Pretty URLs was not allowing arrowchat to work and had to uninstall Pretty URLs.
Do you know why this may be happening? Also if I reinstall Pretty URLs the arrowchat disappears.
I had a topic posted on my website... But there was a spelling mistake in the subject line so the URL had the spelling mistake in.
Can I somehow refresh the URL of this page to show the corrected subject?
If it turn the Pretty URLs Mod off and on, will this work?
The only way to change is you modify the entry in the database. in the pretty urls cache table
I tried to change the database field but I did the other table ::)
So when I went into the board it went to the old link not the new one I put in the database...
I then uninstalled and re-installed the mod.
This has worked.
I selected the tick box to delete associated data and this worked.
Now its showing correctly...
Will there be any problems with this?
Here is the link to the page I had an error with, http://www.techyduck.com/google/why-am-i-only-getting-0-01-per-click-on-adsense (http://www.techyduck.com/google/why-am-i-only-getting-0-01-per-click-on-adsense)
It was AdSense that was spelled incorrectly but now its fine in the URL.
Error logs Errpr 404 re dircets.
Since installing Pretty Urls I am having a few issues.
Firstly, I cannot add an erro 404 re direct to a custom error page.
My host say this is because of the .htaccess error re dircet in the pretyurl dierctory.
Secondly, I have had the following from my host:
"[Tue Feb 05 02:29:18 2013] [error] [client 183.47.245.74] Directory index forbidden by Options directive: /home/linweb05/b/brand-newhomes.co.uk-1064255165/user/htdocs/forum/
[Mon Feb 04 11:30:42 2013] [alert] [client 85.210.71.248] /home/linweb05/b/brand-newhomes.co.uk-1064255165/user/.htaccess: ErrorDocument takes two arguments, Change responses for HTTP errors"
Do I need to change something in the pretty urls .htaccess file?
This is a bit beyond me I think.
Would it be better to uninstall and re install prety urls again now I am on a Linux sever?
404 redirects currently do not work known issue.
In your .htaccess file you have an error with the ErrorDocument command
Quote from: SMFHacks.com Team on February 07, 2013, 09:17:16 AM
404 redirects currently do not work known issue.
In your .htaccess file you have an error with the ErrorDocument command
Can you give me the corrected code or can I just delete this line/commmand?
Will pretty urls still work if I do?
You can just delete that command that is not part of pretty urls by default.
Could you be a bit more specific about exactly what I can or should delete?
I dont want to mess it up.
The whole line that starts with ErrorDocument
I cant find the .htacces with this in it.
Looked in both the forum diecrtory, theme and pretty files. The .htaccess doesnt have this in it.
Just a followup on my post last week about Pretty URLS eating up php time...
It wasn't php, it was the mysql query. I ended up converting the two mysql tables from MyISAM to innoDB and it shaved off about 6-8% off the Pretty URLs query time. I read that on a large board, modifying the smf_pretty_urls_cache table can take a while. We had 1.5 million+ rows that took about 6 minutes for the alter table operation to run on a fairly fast machine.
Cheers
- Mark
Quote from: topman on February 12, 2013, 09:15:34 AM
I cant find the .htacces with this in it.
Looked in both the forum diecrtory, theme and pretty files. The .htaccess doesnt have this in it.
Sorted now, Nothing to do with Pretty URLs .htaccess content.
Twas my .htaccess in the root that had the wrong code in it.
All working now thanks for those who tried to help me.
Ah good to know!
I have a rather medium forum with about 10 000 users and 500 000 posts. I installed pretty urls a year ago, and now I saw that it took about 1.7GB in my database. Searching thru this topic I see that this is normal, but not for me...
Will it afffect my forum if I change pretty url settings to us caching insted of database tables at this moment? I need to reduce my database one way or a nother. I like my urls the way they are now, so I really dont wont to uninstall this plugin.
Thx in advance for your reply :)
Guys nothing to do with the current discussion, just linking to a fix for a problem i had on Pretty URL's. My sitemap wasn't working properly with all the links going to the index page. IF anyone has that issue, there's a solution that worked for me here
http://www.simplemachines.org/community/index.php?topic=427913.msg3494191#msg3494191
Installed it after upgrade, and after I enabled it I noticed this in log:
index.php?pretty;action=admin&area=pretty;sa=settings
8: Undefined index: pretty_bufferusecacheFile:
/public_html/Themes/default/PrettyUrls.template.php
Line: 84
Hi! to all smf members , :D
I need a help, I have tried to install pretty urls in my forum IndiDroid its got installed without any kind of problem.
Now when I activate the urls from pretty url setting menu.
each and every page of my forum (except the home page) was giving 404 nothing found error, so for now I have removed it - but I am very much eager to use that MOD.
(I am not allowed to put external Link , so not able to give u my forum Link)
Forum Link:- http://(forum.)andro-park(.org) Remove the bracket from (forum.) & (.org) [ where there's a will there's a way ]
Can any one here help me please..?? Searching for help from back 1 week. :( :( :'(
hello everyone,
I have recently installed this beautiful mod and it works fine but I would like my pretty urls to look like this:
/category/child1/child2/child3/board/topic
child2 and child3 are just for example, I have only 2 levels for now. it is crucial to have it like this because it is relevant to the content I have (for example: /appliances/bosch/dishwashers/built-in/SMI69U75EU).
Now I have to enter the pretty urls manually which does not reflect the content accurately and also requests a lot of time (which I don't have enough already). When entered manually the url from my example looks like this:
bosch-built-in-dishwashers/SMI69U75EU which is not really the url I would like to be.
Please I need some suggestions! How to make pretty urls to make things my way?
Thank you.
No easy way to do that unfortunately.
Quote from: vbgamer45 on March 04, 2013, 09:35:10 AM
No easy way to do that unfortunately.
I supposed there is no easy way, otherwise it would be made as default in the mod. But could you point me in the right direction so I could try to do this. I think that this would be a very nice feature for the future releases if we make it possible.
thanks!
You would have to edit the pretty url files. Store a cache of each forumname and board title. Rewrite the .htaccess rules just a lot of work.
Hi guys, i have a question about the uninstall of the pretty urls. In my forum there are many topics which points to other topics (users made those links). Do you have script that can edit all the posts which have a pretty url?
I'll try to explain it with an example. Let's look at that post (#3031): http://fordclub.bg/forum/index.php?topic=42.msg38762#msg38762 In that post there is a link to another topic. The link is generated when the pretty urls was active: http://fordclub.bg/forum/snimki-video/tvoeto-uchastie-v-google-street-view/msg38748/#new
So, I'm wondering if there is a script that can edit all the posts that contains pretty urls and modify them to use normal SMF links. For example, the above link should look like this: http://fordclub.bg/forum/index.php?topic=3255.msg38777#msg38777
I'm just lazy, i can write such sql, but... why if there is something already done and TESTED ;)
Thanks!
I don't have a script to rewrite the posts. But do have a reverter url package to keep the old pretty urls working.
Yup, I saw it in the google code repository, but it doesn't fix the problem, it adds a workaround - ifs, db lookups, etc and... really don't want to use it :)
I'm playing now with nginx and varnish to remove any possible load from the apache and for now i left the pretty urls mod on. The load on the server now is between 0.6 and 1.7, so it is acceptable for now, but I have to test it in the "active" hours. It's 23:17 now in Bulgaria :D
If the load is high try using the caching option in pretty urls instead of the db tables.
For my sites I only pretty the topics titles and boards.
Yes, the cache is enabled from the beginning. The load is ok for now. Btw, without the varnish - only nginx for caching, serving static content and gzipping and behind that the apache processing the php with perfork MPM it's really FAST! Awesome combination.
I hope this will not be overlooked in this massive topic with about 1.25 million views. :o
I installed Pretty Urls a couple of weeks ago, version 1.0. It installed flawlessly and I tested the urls, worked fine so I turned it on and let it be like that.
However, today someone reported a 404.
Now I never knew that this red 'new' button next to a topic, notifying there are new messages waiting for the user, makes the user jump instantly to the first unread message. I always clicked the topic title next to it and scrolled to this. My assumption was that little red new picture, was just a picture.
However, I have turned on url writing for boards and topics. The user that notified me of the 404 is not sure this new button worked when Pretty Urls was installed. I verified that without pretty urls' that button works fine.
I saw I need to post urls here so that you can see my forum, but that would not work, those new buttons do not show so I can give you an account?
Basically this is what is going on:
forumurl/boardname/topicname/from213236/#new gives a 404
replacing from213236 with 'new' so it says forumurl/boardname/topicname/new/#new, does work, I just tried that because I remember seeing such a new/#new url before.
However, a non Pretty URL SMF forum does not produce such a url, it looks like this:
forumurl/index.php?topic=5032.from208737#new
I do not know if the URL generated by Pretty URL for all the new buttons, are proper or not.
I can not give you urls to view, I can give you account
Please let me know what is going on?
p.s. I believed all new buttons been broken but that is not the case.
The new buttons in the forum indexes are as described above.
The new buttons shown in show unread posts since last visit all work.
So I also know the correct url has to be replacing 'from' with 'msg'
So with this url in the forumindex:
forumurl/boardname/topicname/from213236/#new
I make it:
forumurl/boardname/topicname/msg213236/#new
Then it works.
Could this be a bug? ???
Why does this mod produce massively long queries?
I do not know can you provider an example?
I have deinstalled the package and reinstalled.
I also have deinstalled the package, dropped smf_pretty_topicurls and smf_pretty_urls_cache, and reinstalled.
Here pretty did not seem to ask me about the url testing before letting me enable url rewriting somehow.
I searched the installers contents PrettyUrls1.0zip for the phrase 'from' which gives nothing that would relate/ programming
Then I searched for the phrase 'msg', which is not to be found
I wonder if this is a bug, that my forum is the only one with this awkward thing in it or is it so that there are many many smf fora running this mod all with 'defective' new buttons?
Yeah I am not where the from is part of it. It should be msg since that is what SMF uses.
Quote from: vbgamer45 on March 21, 2013, 12:30:15 PM
Yeah I am not where the from is part of it. It should be msg since that is what SMF uses.
Hi vbgamer45! :)
Ok, I understand, so you are not questioning my finding? Really, I would be happy to give you an account, so that you can see things for yourselve, if you like.
However, I am in the process of writing a 2.0 template and then to upgrade from 1.1.18 to 2.0.4
Maybe you can tell if that would rid this seemingly incidental issue I have with my forum?
I don't want to overcomplicate things, but I also would be very grateful if you would post a rewrite that would fix this? (I can understand that would be dirty coding though)
So, to overcomplicate things anyway, I just noticed that SMF 2.x seems to have incorporated your mod?
I just noticed that there seem to be pretty 'keys' or how one says, my knowledge how to properly name this is lacking.
But I have added an attachment, I am using a 'show variables php script, it is not SMF specific, works on all php code, it is far from perfect but I want to share this with the community someday, it is not proper yet.
The attachment shows 'pretty_root_url' + 4 other pretties so to say.
I hope I am not bothering you with this, but you can see I am using a local Linux install and this 2.0.4 forum is telling the pretty root url is the actual www and everything appears to be working on my Linux setup, so besides the 'from' I assume we agree is awkward, please advice me on how to approach all this? ???
Quote from: mk13 on March 04, 2013, 07:12:28 AM
hello everyone,
I have recently installed this beautiful mod and it works fine but I would like my pretty urls to look like this:
/category/child1/child2/child3/board/topic
child2 and child3 are just for example, I have only 2 levels for now. it is crucial to have it like this because it is relevant to the content I have (for example: /appliances/bosch/dishwashers/built-in/SMI69U75EU).
Now I have to enter the pretty urls manually which does not reflect the content accurately and also requests a lot of time (which I don't have enough already). When entered manually the url from my example looks like this:
bosch-built-in-dishwashers/SMI69U75EU which is not really the url I would like to be.
Please I need some suggestions! How to make pretty urls to make things my way?
Thank you.
any updates?
Not for that that requires a lot of changes.
Hi... silly question... to upgrade to the latest version of this mod do I just uninstall it and reinstall the up to date one?
:)
Yes that's it.
I created new url and deleted url old link, leaving the new url as the primary url, but all the content still show in old links, I guess this would hurt my search ranking as that would be treated as duplication of contents. How can I avoid this by stopping old url from displaying or redirecting everylinks to the new primary link?
I'm using 1.18 smf version.
I have been playing around with APC today and Pretty URL's
This function replacing the current one in "PrettyUrls-Filters.php" works with APC and caches URL's individually for two minutes. Basically same loading time on first entry but if a page gets hammered by traffic then this may help lessen the load on the database caused by the Pretty Urls.
// Rewrite the buffer with Pretty URLs!
function pretty_rewrite_buffer($buffer)
{
global $boardurl, $context, $modSettings, $smcFunc;
// Remove the script tags now
$context['pretty']['scriptID'] = 0;
$context['pretty']['scripts'] = array();
$buffer = preg_replace_callback('~<script.+?</script>~s', 'pretty_scripts_remove', $buffer);
// Find all URLs in the buffer
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';
$urls = array();
$context['pretty']['cached_urls'] = array();
foreach ($context['pretty']['search_patterns'] as $pattern) {
preg_match_all($pattern, $buffer, $matches, PREG_PATTERN_ORDER);
foreach ($matches[2] as $match)
{
// Rip out everything that shouldn't be cached
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|(se)?sc=[^;]+|' . $context['session_var'] . '=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
// Absolutise relative URLs
if (!preg_match('~^[a-zA-Z]+:|^#|@~', $match) && SMF != 'SSI')
$match = $boardurl . '/' . $match;
if (substr($match,0,7) == 'mailto:')
continue;
if (substr($match,0,10) == 'javascript')
continue;
if (($data = cache_get_data('pretty-'.str_replace(':', '-', $match))) != null) {
$context['pretty']['cached_urls'][$match] = $data;
} else {
$urls[$match] = array('url' => $match);
}
}
}
// Procede only if there are actually URLs in the page
if (count($urls) != 0)
{
// Run each filter callback function on each URL
$filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);
foreach ($filter_callbacks as $callback)
$urls = call_user_func($callback, $urls);
// Fill the cached URLs array
foreach ($urls as $url_id => $url)
{
if (!isset($url['replacement'])) {$url['replacement'] = $url['url'];}
$url['replacement'] = str_replace("\x12", '\'', $url['replacement']);
$url['replacement'] = preg_replace(array('~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('%22', ';', '?', ''), $url['replacement']);
$context['pretty']['cached_urls'][$url_id] = $url['replacement'];
cache_put_data('pretty-'.str_replace(':', '-', $url_id), $url['replacement'], 120);
}
}
// Put the URLs back into the buffer
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"]+\"|\'[^\']+\')~';
foreach ($context['pretty']['replace_patterns'] as $pattern)
$buffer = preg_replace_callback($pattern, 'pretty_buffer_callback', $buffer);
// Restore the script tags
if ($context['pretty']['scriptID'] > 0)
$buffer = preg_replace_callback("~\x14([0-9]+)\x14~", 'pretty_scripts_restore', $buffer);
// Return the changed buffer.
return $buffer;
}
Quote from: vbgamer45 on March 21, 2013, 12:30:15 PM
Yeah I am not where the from is part of it. It should be msg since that is what SMF uses.
Just want to let you know this issue I had with SMf 1.1.18, after upgrading to 2.0.4. issue is no longer.
Just in case anyone was wondering, from is supported for thread view to start the page at a given timestamp rather than at a given message.
For example http://www.simplemachines.org/community/index.php?topic=146969.from1234567890 to give you an arbitrary example (it will end up about half way through this thread, corresponding with messages timestamped 1234567890 and later)
It's primarily a holdover from YaBBSE but still present even in 2.0.4's code, see Display.php, starting from:
// Start from a certain time index, not a message.
cutting in late to this thread - but just wanted to say this mod caused me no end of problems - sitemaps were a major problem too and they didn't work right. The Mod is not needed as many of the main lads on SMF say. Plus, if it does end up causing you hassle and you need to uninstall it, you will take a hit in google.
just tryng to help
We do have a reverter package which you can download to make urls without the pentaly.
I use this mod on my sites just the topic/board rewriting not a fan of the action rewriting.
Quote from: vbgamer45 on May 21, 2013, 02:39:41 PM
I use this mod on my sites just the topic/board rewriting not a fan of the action rewriting.
Ditto.
Actions better to block in robots.txt
And it looks so much nicer with readable urls, two competing sites don't use this so guess who looks coolest ;)
Hi,
*Edit*
Ok, had some time and had a closer look at this. I've posted my findings to:
http://www.simplemachines.org/community/index.php?topic=444596.msg3549546#msg3549546
which has fixed the usage of PrettyURLs with mixed http and https urls. Comments about those changes are welcome.
*Edit*
just a short question to this:
Quote from: vbgamer45 on December 16, 2011, 03:46:59 PM
Quote from: merculiv on December 16, 2011, 10:47:25 AM
Will there be an option to enable SSL with this mod in the settings area anytime soon as a check box or enable with pretty urls?
No time soon.
I'm running my board with http and https without real problems. The only problems which i've seen is the usage of the static:
pretty_root_url = http://www.example.com
which is set in the smf_settings table. This causes the board and topic urls to shown up as http://www.example.com/foo.bar instead of https://www.example.com/foo.bar
Anyone has any experience what happens when the code of PrettyURLS is modified to use $_SERVER['SERVER_NAME'] or $_SERVER['HTTP_HOST'] connected with $_SERVER['HTTPS'] instead of the static pretty_root_url?
I think this could resolve the wrong links at the board?
Hi ya,
Just installed this on 2.0.4 and it works great. The only problem is that Theme images, such as smiley's etc are broken because it's looking for them at different locations based on what thread/post they are in.. Anyway to prevent that?
Thanks
Hi
Ive changed my domain and pretty urls re-writing for URLs shows the old domain? - so I uninstalled, deleted, cleared out forum cache and run all optimizations then reinstalled it and same thing happens?
really need this mod to work...can anyone help?
thanks
Answered in trouble shooting guide
http://code.google.com/p/prettyurls/wiki/TroubleShooting
thanks
can i name the file anything?
and this is the code to go in (below) - then I visit the filen then delete it and thats it?
Quote<?php
require_once(dirname(__FILE__) . '/SSI.php');
require_once($sourcedir . '/Subs-PrettyUrls.php');
updateSettings(array('pretty_root_url' => $boardurl));
pretty_update_filters();
?>
Yes that is it.
all done - fixed!!
thanks - one of best SMF mods this :)
Glad to help.
Hello!
I have a problem with the PrettyURL mod and i hope, somebody can help me:
I have installed the "Topic View Log-Mod" (http://custom.simplemachines.org/mods/index.php?mod=1300).
When i look the Topic View Log, it is shown correctly, but when i want to look the other pages from the Log (e.g. page 2 or 3), it is not showing up - only page one is showing.
I have unticked the "actions" in the prettyURL-mod by default, but when i turned off PU-Mod completly, the "Topic View Log"-Mod is working without problems...
When i enter "topicviewlog" in the "skip action list", nothing changing.
The Mod-Author from "Topic View Log" are not able to help.
Thank you
D.
Hi All,
I am very new to working with .php and to be honest don't really understand them.
But I really need help.
My forum used to be with Domain Name 1, when I have switched it to a different Domain 2, copied and moved all of my database and everything.
But, when I come to run Pretty URL it makes all my forum topics not do anything and it just refreshes my page :(
I really need a basic guide on how to fix this!
Really hope you can help me!
Chelle O:)
Check out troubleshooting page on how to change domain for pretty urls
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Hi VBGamer,
I have looked at this before and I haven't got a clue what to do with it.
I did the repair_settings.php and that all worked fine.
But what does it mean by create .php with the code and run it? How do you do that?!
I'm really lost by it all.
Can someone help me through it in steps as the Troubleshooting page and me don't get along.
Thank you so much for replying to me VBGamer :)
Chelle ;)
Hi!
Is there a solution for this problem, also?
http://www.simplemachines.org/community/index.php?topic=146969.msg3579737#msg3579737
Maybe a rewrite rule in the .htaccess can help?
(But i`m not a great coder...)
Thank you!
I have a request:
would it be possible to change URLs of pages i have on my forum?
I use Simple Portal and have quite a few pages to which I have links to at the top of my forum alongside the regular links (using custom buttons mod) - these are the only links/URLs on my forum that still use the old format, I would like to make them search engine friendly too using pretty urls.. is this possible?
...also, what does the "use cache instead of database" achieve? is it faster?
thanks
Quotesearch engine friendly too using pretty urls
This does not do anything to make the forum more seo friendly.
well better it logs the url with /forum/chit-chat/thread-title-here than with forum/index.php?topic=xxxxx ..wouldnt you agree?
can you tell me what the caching option is for?
thanks
Quote from: snadge on August 10, 2013, 11:00:22 AM
well better it logs the url with /forum/chit-chat/thread-title-here than with forum/index.php?topic=xxxxx ..wouldnt you agree?
thanks
Nope. :)
Quote from: Grumpy Old Sod on August 10, 2013, 11:02:30 AM
Quote from: snadge on August 10, 2013, 11:00:22 AM
well better it logs the url with /forum/chit-chat/thread-title-here than with forum/index.php?topic=xxxxx ..wouldnt you agree?
thanks
Nope. :)
why is that? :-\
can anyone tell me what caching achieves? what does it do?
I turned it on the other day aswell as Post URL Rewriting and ive had a couple of CPU usage spikes and my account limited? (yet the overal usage looks fine too me - seems EZPZ limit your account if CPU usage hits 100% for fraction of a second or longer..)
thanks
Caching uses less hits on the database/no hits on the database for better performance.
thanks VB - I thought it would be that but wanted clarification, its on - mind ive always had it off for 2 years and never had any problems with hosting , we have about 4-5 regular members on the forum and usually only 2-3 online at a time, surely that cant be causing problems lol
This mod caused loading bar appears on message page to get stuck, so you cant use the quick edit, quick reply and all those features with this mod installed. Not only in one theme but in all themes. I think the reason was somewhere in the QueryString.php but anyways, I uninstalled this mod because of this problem. I ll install it back again when the problem is definitely fixed and there is a nice update.
Haven't seen that happened. Normally In my usage i do not rewrite actions only boards/topics
If you are using SMF 1,
this part breaks URLs
//$message = preg_replace('~(' . preg_quote($scripturl, '~') . '([?/][\w\-_%\.,\?&;=#]+)?)~', '<a href="$1">$1</a>', $message);
// We have to account for rewritten URLs now
$message = preg_replace('`\s(' . $boardurl . '[^\s<]*)`', '<a href="$1">$1</a>', $message);
For more information, go here: http://www.simplemachines.org/community/index.php?topic=509938
I'm trying to install this mod but can't. I got errors in install page. Which folders/files must be in 777 CHMOD?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F09Hgf07.jpg&hash=1738b6d4aaf3d1ac5376d9cf35a54f5f1ccefbdd)
That looks like a general SMF failure/permission issue.
777 is not good for all hosts some like 755 instead
I've installed it successfully and working well but got a little problem. In registration page, it replaced "show another captcha" link as "register page's link". So, when clicked in show another captcha, it sends to registration form (aggreement). Any chance to fix it?
how to make that the link to a subject was without the forum name
because when you transfer a subject to other section that the 404th response to the old address of a subject turns out
the Russian characters very badly change
in the file I added the Russian letters in an array of characters for translit
Also got another problem. When i click the Pretty Url page to edit link system there was error "The theme named PrettyURLs cant load". I cant change link systems. :( I want to dont use username as profile links..
Hey guys
I'm getting this critical error in the error log, it happened many times, for different urls and different users.
http://unchainedpreppers.com/forum/index.php?pretty;board=d-i-y;topic=diy-pistol-lanyard.0&prev_next=next;PHPSESSID=g0df4qgelvf025l4d48mcrfli5
Database error, given array of string values is empty. (new_urls)
Function: pretty_urls_topic_filter
File: /*****/*****/******/forum/Sources/PrettyUrls-Filters.php
Line: 407
Do you have an idea what it is? Or how to solve that?
We are using SMF 2.0.5
Thanks
Will check it out.
I dont know if its a bug or something but in forum for color boards i used <font>color=""</font> blanbla
and look was looking like /font-colorpinkgames-iifont/
after i removed the <font>blabla bla and it still keep showing it.
although i got some errors too
Apply Filter: Only show the error messages of this URL
http://www.joyspot.org/forum/index.php?pretty;action=admin&area=manageboards;sa=pretty;boardid=13
Apply Filter: Only show the errors with the same message
8: Undefined offset: 13
Apply Filter: Only show the errors from this file
File: orum/Sources/ManageBoards.php
Line: 896
http://www.joyspot.org/forum/index.php?pretty;action=admin&area=manageboards;sa=pretty;boardid=13
Apply Filter: Only show the errors with the same message
8: Undefined index: pretty_no_primary_warning
Apply Filter: Only show the errors from this file
File: forum/Sources/ManageBoards.php
Line: 832
Apply Filter: Only show the error messages of this URL
http://www.joyspot.org/forum/index.php?pretty;action=admin&area=manageboards;sa=pretty;boardid=13
Apply Filter: Only show the errors with the same message
8: Undefined index: pretty_board_url_title
Apply Filter: Only show the errors from this file
File: forum/Sources/ManageBoards.php
Line: 824
I also run the maintenance task and isnt working.
Way to fix that please?
Quoteafter i removed the <font>blabla bla and it still keep showing it.
And this is why you're *really* not supposed to use HTML inside the board names.
yes i know but not even one board color mod was working.
now possible sollutions?
You should go to phpmyadmin and edit the board name directly in the "boards" table
I changed the name from admin panel,its not the same?
also please check the errors i got.
Quote from: margarett on September 19, 2013, 08:08:45 PM
You should go to phpmyadmin and edit the board name directly in the "boards" table
i tried that too and boards name keeps be the same
From the boards area you should see a 'Pretty URLs' option listed for each board that should let you configure which board has what Pretty URL - and you should be able to fix it from there.
The other errors are ones I see sporadically too, probably a bug in the mod.
i know that about pretty urls in boards,though it doesnt work properly cause of those errors
I noticed mod,is extremly bugged.
I changed the name of a simple board without the html color,and still pretty url was using the old one.
Quote from: Ventic on September 19, 2013, 08:40:31 PM
I noticed mod,is extremly bugged.
I changed the name of a simple board without the html color,and still pretty url was using the old one.
That is how it is supposed to be otherwise you could loose your search rankings with your old urls. Which is why there is a manual option to replace it.
edited
Quote from: UnchainedPreppers on September 19, 2013, 05:41:41 PM
Hey guys
I'm getting this critical error in the error log, it happened many times, for different urls and different users.
http://unchainedpreppers.com/forum/index.php?pretty;board=d-i-y;topic=diy-pistol-lanyard.0&prev_next=next;PHPSESSID=g0df4qgelvf025l4d48mcrfli5
Database error, given array of string values is empty. (new_urls)
Function: pretty_urls_topic_filter
File: /*****/*****/******/forum/Sources/PrettyUrls-Filters.php
Line: 407
Do you have an idea what it is? Or how to solve that?
We are using SMF 2.0.5
Thanks
New update fixes this
Pretty URLs 1.1 20 September 2013
================================================================================
! Fixed possible error in PrettyUrls-Filters.php
My errors hasnt fixed yet.
Ok
Is there a complete changelog for this release, or is it only the fix for the error?
that is the only fix
Quote from: SMFHacks.com Team on September 20, 2013, 10:41:44 AM
Quote from: UnchainedPreppers on September 19, 2013, 05:41:41 PM
Hey guys
I'm getting this critical error in the error log, it happened many times, for different urls and different users.
http://unchainedpreppers.com/forum/index.php?pretty;board=d-i-y;topic=diy-pistol-lanyard.0&prev_next=next;PHPSESSID=g0df4qgelvf025l4d48mcrfli5
Database error, given array of string values is empty. (new_urls)
Function: pretty_urls_topic_filter
File: /*****/*****/******/forum/Sources/PrettyUrls-Filters.php
Line: 407
Do you have an idea what it is? Or how to solve that?
We are using SMF 2.0.5
Thanks
New update fixes this
Pretty URLs 1.1 20 September 2013
================================================================================
! Fixed possible error in PrettyUrls-Filters.php
Thanks a lot for the patch and the quick response! ;D
Undefined offset: 144
Apply Filter: Only show the errors from this file
File: /forum/Sources/PrettyUrls-Filters.php
Line: 510
Undefined offset: 144
Apply Filter: Only show the errors from this file
File: forum/Sources/PrettyUrls-Filters.php
Line: 513
errors
Hi all,
I have successfully installed Pretty URLs to my SMF installation but I have a little problem. I would like the categories to be shown as:
www.domain.com/category/post/
but instead of that what I get is
www.domain.com/category-4/post/
or
www.domain.com/category-63/post/
or
www.domain.com/category-19/post/
and so on...
Note: The number 4 is a random number, almost every category has a different one. I supposed that an older post would have the /category/ slug reserved but I have realised that is not that because if I delete the number from the URL it gets me to the same page (adding again the number anyway).
Any idea of what can it be? If it helps I have in the config all the boxes checked and with no skip actions...
Thank you very much!
It's probably the category ID ( not sure, though). It's a certain way to have unique names
Quote from: margarett on September 26, 2013, 06:29:31 AM
It's probably the category ID ( not sure, though). It's a certain way to have unique names
Do you mean that I can not change it ? Because I'd really like to...
Quote from: Flutox on September 26, 2013, 08:17:48 AM
Quote from: margarett on September 26, 2013, 06:29:31 AM
It's probably the category ID ( not sure, though). It's a certain way to have unique names
Do you mean that I can not change it ? Because I'd really like to...
You can.Go in boards,and where modify move buttons exist,you will see one more called pretty url.click to it,write the name you want save it and make it primary.
Quote from: Ventic on September 26, 2013, 08:23:51 AM
Quote from: Flutox on September 26, 2013, 08:17:48 AM
Quote from: margarett on September 26, 2013, 06:29:31 AM
It's probably the category ID ( not sure, though). It's a certain way to have unique names
Do you mean that I can not change it ? Because I'd really like to...
You can.Go in boards,and where modify move buttons exist,you will see one more called pretty url.click to it,write the name you want save it and make it primary.
Thank you a lot! I will try this afternoon and I post back if have any problem! :)
from pretty url http://forum.airtet.in/vardhaman-mahaveer-open-university-(vmou)-kota-rajasthan/get-all-exam-notices-schedule-of-vardhaman-mahaveer-open-university-vmou/
to smf default url http://forum.airtet.in/index.php?topic=1702
its worked early but not now
Hi guys. Im using this mod but when i edit a post or message, when click save, mod redirects me to the smf default link build but saves changes on post/message (ie: index.php?topic=146969.msg3613947#msg3613947). Any chance to fix it? Or mod is broken and I should reinstall it?
Is there any xml sitemap mod for smf 2.0.5, compatible with pretty urls?
Quote from: milcar on October 10, 2013, 10:38:36 PM
Is there any xml sitemap mod for smf 2.0.5, compatible with pretty urls?
Yes there is this sitemap mod
http://custom.simplemachines.org/mods/index.php?mod=755
Hello,
After updated to the latest version I don't have a problem with catpcha during register. When I press "Request another image" redirects me to /register/.
How to solve this problem?
Disable action url rewriting.
@vbgamer45, but I want to use pretty urls ;)
You can just not recommend for actions. I use pretty urls on my sites but only change the boards and topics
Despite the added "register" to Skip Actions List is still not working... :(
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fk36Pw4o.png&hash=6bf26a20cf653f53549ee1523ffaff266c2a91fd)
Also facing same error?
What error?
Hello here is my problem :P
We are using Pretty URL's in our forum.The forum is in Cyrillic alphabet and Bulgarian language.
I edited manually the main category's links but inside them is a mess.
I mean that:
teenproblems.eu/international-teen-section/ - main category
teenproblems.eu/index.php?topic=33.0 - inside this category...
So how can we made the URL'S of new topics to be converted :
topic name: Здравейте
url to be: teenproblems.eu/zdraveite
Any advice,and sorry for my bad english
When I click on a thread, the url shows a description for a different thread.
A few days ago, I created a test thread. I then deleted the test thread, after my testing was finished. I see that when I click on one of the threads, it shows the name of the test thread in the URL.
This is only happening in one board and only on some threads in that board.
My forum is ocjeepruns.com/forum/oc-motorsports-runs-and-events-forum/
Any help is appreciated.
I moved my domain. Nothing works. Please help me change the urls from the old ones to the new ones!
Grr I got it. That was seriously unnecessary hassle....does it have to be like that? Can't I have a maintenance button to click?
Well the hard is if you are rewriting actions that would be the only way to reset the links with the custom script
Any chance we can have the action rewriting subsystem be a little smarter please?
Having it scan the index.php file for actions is only any good if 1) mods only ever do that (I know at least one of mine didn't modify $actionArray) and 2) users don't have mods that add them via hooks (which several of mine do as do plenty of others)
This could be done by attaching something to the integrate_actions hook (but checking periodically to make sure it's the last hook), but probably better for all concerned would be having pretty_run_maintenance() actually call integrate_actions to scoop up any that add themselves via hooks.
If I'm reading it correctly, Subs-PrettyUrls.php should be the place to do this:
preg_match_all('~\'([^\']+)\'\\s*=>~', $actionArrayText[0], $actionArray, PREG_PATTERN_ORDER);
$context['pretty']['action_array'] = $actionArray[1];
if (function_exists('call_integration_hook'))
{
$dummy = array();
call_integration_hook('integrate_actions', array(&$dummy));
$context['pretty']['action_array'] += array_keys($dummy);
}
Untested, but if I'm reading it correctly this should do the trick to scoop up anything from hooks.
Why can't it just use $boardurl? Some of my mods use hooks too :/
Um... I don't really know how to reply to that first part... it's nothing whatsoever to do with $boardurl.
The problem is the .htaccess file generated. The way Pretty URLs works is by knowing all the actions and building an .htaccess file that has all the actions in it to catch in the rewrite rules, because it has to sift out the actions before it redirects to boards.
vbgamer: Any chance of updating Pretty URLs as mentioned above? It would greatly improve compatibility with mods.
When I get free time to test it out
What should i do to relief my database, i think pretty url is tiring it. is it ?
Quote from: Arantor on November 09, 2013, 05:02:11 PM
vbgamer: Any chance of updating Pretty URLs as mentioned above? It would greatly improve compatibility with mods.
Please add it, I would rather have it around sooner rather than later because something I want to add in 2.1 for performance reasons will absolutely screw up Pretty URLs handling for mods that use it (which they should) and I'll make sure that the new changes get propagated back through that hook instead of you having to jump through the extra hoops required to support it.
(Basically, I'm adding the facility to package-info.xml to declare actions much as one can declare hooks in 2.1, to avoid having to create a file loaded every page unnecessarily.)
Changes made published
Pretty URLs 1.1.1
+ Smarter rewriting subsystem for actions Thanks to Arantor
If you want to be added to svn access let me know it is hosted on google code.
Thanks - but I don't really have time to sit and work on that as well :(
Hi,
Quote from: vbgamer45 on November 12, 2013, 03:39:40 PM
Changes made published
Pretty URLs 1.1.1
+ Smarter rewriting subsystem for actions Thanks to Arantor
just wanted to update my SMF 2.0.6 running Pretty URLS 1.1 to the new package. Because i don't want to uninstall the old package only for one single changed file i compared the changes and just noted that the changes above was only added to:
SMF1-1/Subs-PrettyUrls.php
but not to:
SMF2-0/Subs-PrettyUrls.php
in the current PrettyUrls1.1.1.zip. Are those changes not needed for SMF 2.0.x?
The changes wouldn't even be applicable in 1.1.x because the call_integration_hook functionality doesn't even exist in 1.1.
Oh, good to know. Then there is probably something wrong with the current package.
Fixed sorry meant to do it the other way must have got confused.
I'm a bit confused, what's changed with 1.1.1a?
A bug fix for SMF 2.0.x
Ok, re-updating then :)
Small issues I just noticed with this mod.
We have a forum board named: Comedy Section Rated "R"
The mod sets up a friendly url called: comedy-section-rated-'r'
The problem is that when I go to delete that friendly URL, the delete button does not function. I tried changing the delete url to just delete: comedy-section-rated-r also, and it still did nothing.
I'm getting the following errors in my log.
site/smf/index.php?pretty;action=admin&area=manageboards;sa=pretty;boardid=129
8: Undefined index: pretty_board_url_title
File: site/smf/Sources/ManageBoards.php
Line: 826
site/smf/index.php?pretty;action=admin&area=manageboards;sa=pretty;boardid=129;do=delete;url=comedy-section-rated-%27r%27
8: Undefined index: pretty_board_url_title
File: site/smf/Sources/ManageBoards.php
Line: 826
Obviously those errors just mean that there's a language file not being included properly somewhere, but that shouldn't cause my issue. Seen this issue before with the quotation marks?
Jesus, I wish I could make a mod like that!
Nice work!
As I can add the topic number in the URL?
or just watch the number of topic
Kind Regards
Quote from: leonandres0 on November 23, 2013, 08:28:33 AM
As I can add the topic number in the URL?
or just watch the number of topic
Kind Regards
No
Is there any way of knowing the post thread I.D. number when using Pretty URLs without disabling Pretty URLs, going to the thread to get it's I.D. then re-enabling the mod?
Not easily. You can view the source of a page.
Quote from: vbgamer45 on November 24, 2013, 02:51:52 PM
Not easily. You can view the source of a page.
that's close enough for my needs, thanks :)
Better question is why you need the thread id in the first place.
Quote from: Arantor on November 24, 2013, 03:58:58 PM
Better question is why you need the thread id in the first place.
because I'm also using the rss feed poster mod and I need the thread i.d. so I can post the feed to one thread rather than making a new thread each post.
Hello, I searched with not much luck, but I'm having a couple issues with Pretty URLs.
First, I am getting the double slash error, example: (.com//index)
Second, I am getting the 404 error in the topics and boards, but not in the Help, Members, or Search pages.
I have a fair understanding at how to create .php files and add them in, but I'm far from an expert so please be easy on me.
My website is coincollectingforums.com
Thanks for any help
Kris
Check out http://code.google.com/p/prettyurls/wiki/TroubleShooting
You may have to do the second option "Links point to old domain after moving forum"
HI,
I tried to install the mod manually, from a parse on http://custom.simplemachines.org/mods/index.php?action=parse
At the section ./Sources/QueryString?.php from the fourth box the code to find is not in Querystring.php/
function cleanRequest()
{
global $board, $topic, $boardurl, $scripturl, $modSettings, $smcFunc;
Any Help? TX!
SMF 2.0.6
Just search for this part instead
function cleanRequest()
And if the globals change just add to it.
Ok Find everything and uploaded the files..
Do I have to run the install file?
Yes if you did not do it yet.
Where do I put the install.php file?
I updated all php files , als uploaded them. I can see the pretty url mod.. But it's not working, because of an error
Table 'infosite_forum.smf_pretty_urls_cache' doesn't exist
Bestand: /home/infosite/domains/forum.verenigdestaten.info/public_html/Sources/Subs-PrettyUrls.php
Regel: 306
The file is in the sources directory
Install.php in the root of your smf install then run via the browser.
Hmmm
Doesn't work ;-(
Databasefout
No database selected
Bestand: /home/infosite/domains/forum.verenigdestaten.info/public_html/install.php
Regel: 30
Terug
Hmm not sure. I normally install only using package manager.
I did try that..
But it seems to install, but nothing happens after i Click install modification..
So that's why i did it manually.
Any other suggestions?
Hi:
I installed, but the url is like this:
http://www.xxxxxxx.com/b163/t141122/msg1011056502/
How can I make to show some similar to this?
http://www.xxxxxxx.com/forum/electronics/
or
http://www.xxxxxxx.com/BOARD_NAME/TOPIC_NAME/MESSAGE_SUBJECT/
Is this possible ?
It should be of the second form unless something didn't install right.
Hi just installed version 1.1.1a.
I had hacked a way to install the previous version onto SMF 2.0.5, but after doing so users could no long add a new post on "most" forums.
Uninstalled it after I found out about this problem - was very happy to see that there is a newer version and it installs easily to SMF 2.0.6.
However, when I enable it the URL are an old "testing" URL (e.g., test1.abc.com/...., rather than www.abc.com/....
I have tried the maintenance http://forums.rootvg.net/forums/index.php?action=admin;area=pretty;sa=maintenance;run and there are no complaints, but when I go to enable pretty URL I continue to get URL's like:
http://felt-1.rootvg.net/forums/virtualization/
How can I fix this?
p.s. - I have the impression that the uninstall removes the files, but it does not (completely) clean up the database changes.
p.p.s. I like the idea of the mod, and had tested it with SMF 1.X.Y and was very disappointed that it has not worked for me with SMF 2.0.Y
regards,
Michael
any working location rules for my nginx config?
ok, I've searched but couldn't find a solution to this or maybe I didnt look well enough.
Is it possible to disable pretty urls (v1.1.1a) for some boards especially those with non-latin characters.
For now what it does for me is to generate some numbers and some weird letters. See below.
.../forum/1054107310971077108510801077-10871086-108010851090107710881077108910721084/oe-omat-a-em-ooto-o-2014/
Any solution to this?
PS: SMF version is 2.0.6
Quote from: minos on December 09, 2013, 11:59:56 PM
any working location rules for my nginx config?
Yes inside this topic somewhere
Quote from: smartblogz on December 20, 2013, 04:12:43 AM
ok, I've searched but couldn't find a solution to this or maybe I didnt look well enough.
Is it possible to disable pretty urls (v1.1.1a) for some boards especially those with non-latin characters.
For now what it does for me is to generate some numbers and some weird letters. See below.
.../forum/1054107310971077108510801077-10871086-108010851090107710881077108910721084/oe-omat-a-em-ooto-o-2014/
Any solution to this?
PS: SMF version is 2.0.6
No
"Warnings
URLs timed out
When we tested a sample of the URLs from your Sitemap, we found that some URLs were not accessible to Googlebot due to network timeouts. If this problem persists, please check the network availability of your DNS and web servers. All accessible URLs will still be submitted.
1
URL: /dia-diem/search?chap_id=12&city_id=16"
how i can fix this ? :'( thanks a lot !
my site : karaokevietnam.vn
That would be on your hosting server. The timeouts are not from pretty urls.
Hi all,
My site have this error: Unable to load the 'main' template with url like this:
hxxp://mysite.com/index.php?action=tagged%3bid=xxxxxx%3btag=xxxxxxxxx
If change it to hxxp://mysite.com/index.php?action=tagged;id=xxxxxx;tag=xxxxxxxxx it's ok (pretty url change ; to %3b).
My site running on VPS nginx.
Please help, thank you very much.
@vietravel247.com
Noticed the same some time ago:
http://www.simplemachines.org/community/index.php?topic=502310.0
Quote from: Fisch.666 on January 06, 2014, 09:51:54 AM
@vietravel247.com
Noticed the same some time ago:
http://www.simplemachines.org/community/index.php?topic=502310.0
@Fisch.666
Thank you for the reply, I think this will affect web traffic because this is not a direct customers but customers find content from the search engines. So I want to fix this. Previously, with apache server its ok, but since switching to nginx server errors occur frequently.
Hi!
Which reverter-Package i need to choose for SMF 2.0.6 & PrettyURL`s ?
Thank you!
This page http://code.google.com/p/prettyurls/downloads/list
Thank you.
I know this page - i was asking what package i need to choose, for SMF2.0.6 ...
RC2 or RC4 (well, all of them looks a little "outdated"...)
Current version of Pretty URLs is 1.1.1a according to the mod's page. Mod version numbers are irrelevant to the SMF version number they were built for.
Also, didn't you move to IPB?
Thank you. I`m asking about the reverter-Package, not the Mod-Package. Sure, the Mod is v1.1.1a, but the reverter have a 1.0-RC2 and a 1.0-RC4 Version....
(IPB: Its in progress, i need to see how can i tranfer the data from e.g. SMF-MemberMap to IPB-MemberMap, but my timeline is soon finished, and i never can wait...
In the meantime, i try many, many great mods, too.... ;))
The data didn't change, so no need to update the reverter...
Database Error: Duplicate entry '28900' for key 'PRIMARY'
I have updated new version but I am getting errors like that continuously.How can I solve this...
The update from SMF 2.0.6 to 2.0.7 will not work because a change in Sources/News.php by Pretty Urls.
Can you update this mod or provide instructions on how I can fix this myself?
Thanks.
It's this commented code from line 382 (line 377 in the original News.php):
/*** if (empty($modSettings['queryless_urls']) || ($context['server']['is_cgi'] && @ini_get('cgi.fix_pathinfo') == 0 && @get_cfg_var('cgi.fix_pathinfo') == 0) || (!$context['server']['is_apache'] && !$context['server']['is_lighttpd']))
return $val;
$val = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$/e', '\'\' . $scripturl . \'/\' . strtr(\'$1\', \'&;=\', \'//,\') . \'.html$2\'', $val); ***/
2.0.7 is not out yet the final version
Even when it is, anything using preg_replace with /e or ~e will require changes for PHP 5.5 compatibility which is what 2.0.7 was supposed to provide but some late bugs slipped through :(
When trying to activate I get this message:
QuoteTable 'infosite_forum.smf_pretty_urls_cache' doesn't exist
Bestand: /home/infosite/domains/forum.verenigdestaten.info/public_html/Sources/Subs-PrettyUrls.php
Regel: 306
Opmerking: het ziet er naar uit dat je database wellicht een upgrade nodig heeft. De versie van je forumbestanden is momenteel SMF 2.0.6, terwijl je database op dit moment op versie 2.0.2 staat. Het probleem kan mogelijk verholpen worden door de nieuwste versie van upgrade.php uit te voeren.
Small Translation Dutch part below: It says some files are from a previous version, but my forum says all files are up to date.
Ignore the bottom part because that message is misleading; the database has not changed between 2.0.2 and 2.0.6.
Quote from: Sir Cumber-Patcher on January 21, 2014, 05:40:52 PM
Ignore the bottom part because that message is misleading; the database has not changed between 2.0.2 and 2.0.6.
Ok, But seems like there is no table in the mysql database?
Can I add that manually?
Yeah, what it's saying is that the table didn't get made and you probably could install it manually. I'm just clarifying the point that your database isn't 'out of date'.
Quote from: Sir Cumber-Patcher on January 21, 2014, 05:56:02 PM
Yeah, what it's saying is that the table didn't get made and you probably could install it manually. I'm just clarifying the point that your database isn't 'out of date'.
ok Tx..
Is there anyone who could help me with some discription about how to add the table?
Unpack the MOD to a temp folder and upload the file SMF2-0/install.php to your forum root (where SSI.php is)
Then run it through your browser.
Or you can uninstall (choose to delete data) and install again, should be easier.
Quote from: Johanvd on January 21, 2014, 03:22:15 AM
The update from SMF 2.0.6 to 2.0.7 will not work because a change in Sources/News.php by Pretty Urls.
Can you update this mod or provide instructions on how I can fix this myself?
Thanks.
For anyone interested, the code to replace in the new 2.0.7 is:
if (empty($modSettings['queryless_urls']) || ($context['server']['is_cgi'] && @ini_get('cgi.fix_pathinfo') == 0 && @get_cfg_var('cgi.fix_pathinfo') == 0) || (!$context['server']['is_apache'] && !$context['server']['is_lighttpd']))
return $val;
$val = preg_replace_callback('~^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$~', create_function('$m', 'global $scripturl; return $scripturl . \'/\' . strtr("$m[1]", \'&;=\', \'//,\') . \'.html\' . (isset($m[2]) ? $m[2] : "");'), $val);
It was of course caused by the changes for PHP 5.5 compatibility but, since it will be commented out, it's just a matter of find the correct text.
Quote from: margarett on January 23, 2014, 08:44:31 AM
Unpack the MOD to a temp folder and upload the file SMF2-0/install.php to your forum root (where SSI.php is)
Then run it through your browser.
Or you can uninstall (choose to delete data) and install again, should be easier.
When I choose the first option I get this message:
No database selected
Bestand: /home/infosite/domains/forum.verenigdestaten.info/public_html/install.php
Regel: 30
Terug
If the code's commented out, you don't actually need to do the replacement as such... especially as Pretty URLs removes the need to worry about queryless URLs which is all that's dealing with.
And THAT error is the sign of a mod install not being set up properly by its author.
this is a great mod, unfortunately seems to have caused us more grief than the benefit of having pretty urls, and now that it's not working with 2.0.7... we're saying goodbye for now.
Quote from: Sir Cumber-Patcher on January 23, 2014, 11:38:59 AM
If the code's commented out, you don't actually need to do the replacement as such... especially as Pretty URLs removes the need to worry about queryless URLs which is all that's dealing with.
And THAT error is the sign of a mod install not being set up properly by its author.
Ok.. I suppose I did something wrong.. Automatic installation fails. I'll get a lot of failure's on misc. php file's..
So If I can add the table mannualy in the MsQyl database, maybe that will work..
Not really, no. The file edits are still necessary.
Quote from: margarett on January 23, 2014, 12:53:41 PM
Not really, no. The file edits are still necessary.
Seems like i have to start all over again. Put it in backorder for now, because of the 2.07 release.
Hi,
Quote from: Sir Cumber-Patcher on January 23, 2014, 11:38:59 AMIf the code's commented out, you don't actually need to do the replacement as such... especially as Pretty URLs removes the need to worry about queryless URLs which is all that's dealing with.
so Pretty URLs is compatible with the latest update 2.0.7 and PHP 5.5?
That isn't what I said. Commenting it out means the PHP 5.5 compliant code isn't going to be run. Whether PURLs itself is compliant is something else entirely.
Hi,
Quote from: Sir Cumber-Patcher on January 27, 2014, 01:58:04 AM
That isn't what I said. Commenting it out means the PHP 5.5 compliant code isn't going to be run. Whether PURLs itself is compliant is something else entirely.
upps sorry i've misunderstood your post. The part of the News.php is commented out so i thought PrettyURLs is maybe compliant.
Well... the change made is to make the queryless URLs work - but Pretty URLs disables that. Pretty URLs itself may well not work properly on PHP 5.5 because of all the regular expressions it uses.
Quote from: margarett on January 23, 2014, 08:55:59 AM
Quote from: Johanvd on January 21, 2014, 03:22:15 AM
The update from SMF 2.0.6 to 2.0.7 will not work because a change in Sources/News.php by Pretty Urls.
Can you update this mod or provide instructions on how I can fix this myself?
Thanks.
For anyone interested, the code to replace in the new 2.0.7 is:
if (empty($modSettings['queryless_urls']) || ($context['server']['is_cgi'] && @ini_get('cgi.fix_pathinfo') == 0 && @get_cfg_var('cgi.fix_pathinfo') == 0) || (!$context['server']['is_apache'] && !$context['server']['is_lighttpd']))
return $val;
$val = preg_replace_callback('~^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$~', create_function('$m', 'global $scripturl; return $scripturl . \'/\' . strtr("$m[1]", \'&;=\', \'//,\') . \'.html\' . (isset($m[2]) ? $m[2] : "");'), $val);
It was of course caused by the changes for PHP 5.5 compatibility but, since it will be commented out, it's just a matter of find the correct text.
Thanks, so should we uncomment it?
Yes or no :P In any case, you will not be able to uninstall either the upgrade or the MOD :P
Or you can ignore the error and continue (thus keeping the MOD "uninstallable" but with incorrect SMF code if you do so)
Or you can uncomment that code, let the upgrade install and then re-comment it again. This will prevent the MOD to self-install if you choose to, but you can go there manually, uncomment the code and have a nice SMF code in place.
lol :D its better i uncomment and install then comment back, i can't be so retarded to uninstall the update :D thanks :)
Is there anyway to make this mod *not* rewrite URL's for a specific subfolder?
There is an option to ignore specific actions in MOD's configuration, yes
Quote from: SimpleJoe on January 30, 2014, 04:09:39 PM
Is there anyway to make this mod *not* rewrite URL's for a specific subfolder?
I can recall back when i created a directory that has the same name with a board, when i want to visit a directory it redirects me to the board. So i just added some lines of code in the directory htaccess which worked me
RewriteEngine on
RewriteBase /
okay thanks margarett and Don Jajo
So, how do I overcome this upgrade problem? I run pretty URLs. How can I upgrade, and have pretty URLs?
Should I uninstall Pretty URLs, do the upgrade, then install again?
No need to uninstall.
Ok, guys - you've been great but I'm seriously at a loss here. Which is the best way to confront the issue with Pretty Urls?
Keeping them and somehow installing the new SMF version over them?
Uninstalling them completely (and ruining completely every google indexed page?)?
Or disabling them temporarily just to install the new SMF version (if that's possible)?
What's your opinion on the long term prognosis with using Pretty Urls? Should we get rid off them while we still have the chance? I apologize for my lack of knowledge.
Hi,
I have smf 1.1.13
I guess
and I want to disable pretty url for time being through database
there is no config table in sql
I am not able to access my website
when i try to login it doesnt happen
even if i use index.php?action=admin
login2
please help
First things first: please update your forum to 1.1.19. You are *several* security fixes behind.
Use patch update, should be easy and painless (anyway, do backup)
http://wiki.simplemachines.org/smf/Patching
(of course, you need to access your forum first :P )
To disable it, go to your database via phpmyadmin, table smf_settings and find this row: pretty_enable_filters
Set it to empty (delete the 1)
Hi,
Quote from: reFaNN on February 05, 2014, 06:37:46 PM
Ok, guys - you've been great but I'm seriously at a loss here. Which is the best way to confront the issue with Pretty Urls?
on my SMF 2.0.6 i have removed the comments of the problematic line in the News.php. Then i have installed the update to 2.0.7 and re-added the comments to the modified line. PrettyURLs is still working as far as i can test but i don't have updated to PHP 5.5 yet.
Hi, I installed the last version (1.1.1a) of this fantastic mod in a new installation of smf 2.0.7, but the value "pretty_bufferusecache" is not inserted in the DB. The solution: insert it manually.
I report you this so that you're aware. :P
So what should be change manually in News.php? Tip me please. ::)
Quote from: hqv on February 06, 2014, 07:24:58 PM
So what should be change manually in News.php? Tip me please. ::)
In News.php
if (empty($modSettings['queryless_urls']) || ($context['server']['is_cgi'] && @ini_get('cgi.fix_pathinfo') == 0 && @get_cfg_var('cgi.fix_pathinfo') == 0) || (!$context['server']['is_apache'] && !$context['server']['is_lighttpd']))
return $val;
$val = preg_replace_callback('~^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$~', create_function('$m', 'global $scripturl; return $scripturl . \'/\' . strtr("$m[1]", \'&;=\', \'//,\') . \'.html\' . (isset($m[2]) ? $m[2] : "");'), $val);
/*if (empty($modSettings['queryless_urls']) || ($context['server']['is_cgi'] && @ini_get('cgi.fix_pathinfo') == 0 && @get_cfg_var('cgi.fix_pathinfo') == 0) || (!$context['server']['is_apache'] && !$context['server']['is_lighttpd']))
return $val;
$val = preg_replace_callback('~^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$~', create_function('$m', 'global $scripturl; return $scripturl . \'/\' . strtr("$m[1]", \'&;=\', \'//,\') . \'.html\' . (isset($m[2]) ? $m[2] : "");'), $val);*/
Quote from: margarett on February 06, 2014, 09:58:45 AM
First things first: please update your forum to 1.1.19. You are *several* security fixes behind.
Use patch update, should be easy and painless (anyway, do backup)
http://wiki.simplemachines.org/smf/Patching
(of course, you need to access your forum first :P )
To disable it, go to your database via phpmyadmin, table smf_settings and find this row: pretty_enable_filters
Set it to empty (delete the 1)
Thanks I will update this forum once its is running have set the
my other forum is 1.1.18
oh my i have seen this table many times and never noticed i should change page number.
on page 7 i have found "pretty_enable_filters" and removed value from that field.
and this did the the magic
thanks a million ton
Hi,
Just upgraded to 2.0.7 using Pretty URLS 1.1.1a and it not rewriting the actions for example it shows:
index.php?board=
index.php?action=
index.php?topic=
If I go to a post it changes to the pretty URL, but. it just not rewriting the actions.
It use to, I have uninstalled it, and re-installed it yet makes no different any ideas?
The .htaccess code is all there, as before the update
It seems the latest version of Tapatalk 3.92 is cause the issue.
Seems to be ok with 3.9.1
Hi,
i have SMF 2.0.7 with PrettyURLs 1.1.1a and Tapatalk 3.9.1 installed and don't see this issue so its probably really an issue with Tapatalk 3.9.2.
*Edit*
Ah, you already reported this to Tapatalk:
https://support.tapatalk.com/threads/3-9-2-breaks-pretty-urls.23320/
I have been reading through these comments and I can't get a sense as to whether or not this is safe to install on 2.0.7? I have the latest SMF, can I just upload the package and be done with it, or is this going to take hours of fiddling around to get it to work?
I recently upgraded my board from smf 1.x to 2.x branch and installed pretty urls, all its working fine but i can´t get the seo4smf to pretty urls filter get to work.
Old seo4smf link example:
http://localhost/site/news_board-b6.0/new_car-t94697.0.html
New Pretty url link:
http://localhost/site/news-board/new-car/
I can´t redirect the old seo4smf link to the pretty urls one, not luck, i get the following msg:
QuoteAn Error Has Occurred!
The topic or board you are looking for appears to be either missing or off limits to you.
This its my htaccess file:
Quote# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: February 10, 2014, 7:48
RewriteEngine on
RewriteBase /site
# Rules for: seo4smf
RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/;(.*) index.php?board=$2.$3;$4 [L,QSA]
RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/$ index.php?board=$2.$3 [L,QSA]
RewriteRule ^(.*)-b([0-9]*)\.([0-9])$ index.php?board=$2.$3 [L,QSA]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*);(.*)$ index.php?topic=$2.$4;$6 [L,QSA]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*) index.php?topic=$2.$4 [L,QSA]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;(.*)$ index.php?topic=$2.$3;$4 [L,QSA]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html$ index.php?topic=$2.$3 [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]
# PRETTYURLS MOD ENDS
Any idea about what happened? maybe something wrong in htaccess?
thanks in advance.
Hi,
Quote from: Chris180 on February 09, 2014, 04:21:26 PM
I have been reading through these comments and I can't get a sense as to whether or not this is safe to install on 2.0.7? I have the latest SMF, can I just upload the package and be done with it, or is this going to take hours of fiddling around to get it to work?
just do what i have written here:
http://www.simplemachines.org/community/index.php?topic=146969.msg3666500#msg3666500
and you should be fine.
Hi,
Just upgraded to 2.0.7 using Pretty URLS 1.1.1a and it not rewriting the action for example it shows:
?action=mlist
Just open blank page
Is the setting checked under pretty url settings to rewrite actions.
Yes cheked, only this link don't work.
Only one action doesn't work or all
I worked for some time with the mod, but had to uninstall it in 2.0.6 because there was problems when accessing older board pages. After updating SMF to 2.0.7 I tried to re-install, but I'm getting the installation errors in News.php.
Will there be an updated installer that avoids these problems?
Maybe in the future haven't updated for 2.0.7 yet
If you check the previous 2 pages, the fix for that was already given...
Hi.
Quote from: CBG on February 07, 2014, 05:25:11 PM
It seems the latest version of Tapatalk 3.92 is cause the issue.
Seems to be ok with 3.9.1
today i've upgraded to Tapatalk 3.9.3 which doesn't show this issue.
Any update package for SMF 2.0.7 ?
Quote from: rower on March 02, 2014, 03:33:27 PM
Any update package for SMF 2.0.7 ?
Quote from: margarett on March 01, 2014, 03:01:53 PM
If you check the previous 2 pages, the fix for that was already given...
Did you fix the newsletter time out/white screen issue yet?
When Update dont forget portuguese files
here is the modified prettyurls11a for smf2.0.7 with the commented part on News.php, I published it on the Spanish forum
Hey, I got this installed but my URLs are the same as they were before. Only when I click them do I get redirected to the pretty version. Anyone know why that is? I checked the code and it seems to work to change the URLs is done in ob_sessrewrite function, but this is only called in SSI.php - and thus never on my server. Any ideas what may be wrong? 2.0.7
any help? I'm using the core theme. Is that not supported?
Which URLs? Inside the posts or, eg, in the board index?
The thread links, board index and specific forum index, anywhere really.
I belveve some one did the core theme in one of the posts here otherwise you would be on your own editing the files manually.
Hi there,
I've been using recently PrettyUrls and have already solved some problems, but now I have the following problem and need help.
On my server there are some demo projects to which I linked in the tutorial. The url to such a project, for example, sees like this:
www.meinforum.de/Demos/Slider/
Without PrettyUrls this link was called correctly. With PrettyUrls the link now leads to the board index.
Only when I change the link so:
www.meinforum.de / demos / slider / index.html
it leads to the linked page. I would have to now search my whole forum and add all links of this type to the addition index.html. This can not be intentional.
Note that this involves only forums links with external links it works.
Please help me, otherwise I have to, unfortunately, again separate from this mod.
I use SMF 2.0.7
best regards moal
Sorry for my english, I have to use the google translator because I do not speak english.
Answer found on http://code.google.com/p/prettyurls/wiki/TroubleShooting - Sub-directories can't be opened
Do you have any hint for me why it is no possible to enable this mod in the admin interface
after sending with selected option "Enable URL rewriting" the settings are closed
opening that area newly "Enable URL rewriting" is not selected
smf 2.0.6
is possible to enable the extension manually?
thanks for attention
change it in the database. Maybe cause SMF detects your webserver doesn't support it.
Hi,
I wonder if it is possible that mode "PrettyURL" works over "lighttpd" or "ngnix". If anyone knows some kind of tutorial (step by step) I prayed to him to put it here. I would be very grateful.
Best regards.
I sent you a link before. I do not run either platform so not sure how to include it other than that link that shows the changes needed.
Quote from: vbgamer45 on May 16, 2014, 11:20:49 AM
I sent you a link before. I do not run either platform so not sure how to include it other than that link that shows the changes needed.
Yes, you send me a Link before : http://www.simplemachines.org/community/index.php?topic=371631.0
I read the first post on this link but I do not understand how he did it (he not detailed explained).
I have had some database issues with one of my forum installations and am now getting these errors when I try to login-
Notice: Undefined index: pretty_action_array in /home4/*******/public_html/FORUM_NAME/index.php on line 84
Notice: Undefined index: pretty_board_urls in /home4/*******/public_html/FORUM_NAME/index.php on line 85
Should I try running the repair_settings.php file, or is there something else I can do?
Thanks
Looks like you are missing some code in the index.php file
Any suggestions?
Check the mod site for manually install instructions and check that all the edits to the index.php file were made.
Hi,
I wonder if it is possible that mode "PrettyURL" works over "lighttpd" or "ngnix". If anyone knows some kind of tutorial (step by step) I prayed to him to put it here. I would be very grateful.
Best regards.
Quote from: vbgamer45 on May 20, 2014, 12:58:59 PM
Check the mod site for manually install instructions and check that all the edits to the index.php file were made.
Can't seem to find the manual install instructions.
Also, will the reverter completely remove Pretty URLs? Can that run manually?
You can upload the package to http://www.smfhacks.com/smf-package-parser.html for manual install instructions
Reverter would yes
Hi,
I wonder if it is possible that mode "PrettyURL" works over "lighttpd" or "ngnix". If anyone knows some kind of tutorial (step by step) I prayed to him to put it here. I would be very grateful.
Best regards.
It redirects the old pretty links to normal smf links
OK, thanks.
But how do I run it?
also, If I run it with the errors will there be any issues?
You just install it after removing pretty urls.
How do I install it?
And how do I remove pretty urls?
From the package manager when logged in?
I cannot even login to the forum due to the error messages.
Package manager yes....
Read the troubleshooting guide tells you how to disable and other common errors
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Thanks but I'm not sure how to do what the guide says.
Use
Every link causes 404 Not Found errors
If after installing the mod every link is broken, there is probably a problem with your server (it may not support mod_rewrite or per-directory .htaccess configuration files). To fix the links so that the problem can be diagnosed and fixed, or so you can uninstall the mod, create a new .php file with this code:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_enable_filters' => '0'));
?>
How can I uninstall the mod when I cannot get into the forum/forum Admin panel?
After I login I get these error messages-
Notice: Undefined index: pretty_action_array in /home4/*******/public_html/FORUM_NAME/index.php on line 84
Notice: Undefined index: pretty_board_urls in /home4/*******/public_html/FORUM_NAME/index.php on line 85
I looked at my index php file and this is line 84 & 85-
'action_array' => unserialize($modSettings['pretty_action_array']),
'board_urls' => unserialize($modSettings['pretty_board_urls']),
This is line 82 - 86 -
// Unserialize the array of pretty board URLs
$context = array('pretty' => array(
'action_array' => unserialize($modSettings['pretty_action_array']),
'board_urls' => unserialize($modSettings['pretty_board_urls']),
'db_count' => 0,
What can I do to fix this?
It looks like you need to turn on url rewriting to setup the arrays. you can then in pretty urls configuration areas.
How do I do that?
Do I need to do that by editing the file or is this something my host must change?
I'm close to reinstalling the forum but would really rather get this solved.
No just go to the pretty urls setting area to turn it on.
Where is that?
In the forum admin area?
I cannot get past the error messages to login to the forum.
Is there a file that I can modify that will do what you recommend?
My host told me that url rewriting is on.
Not sure what to do at this point. Those error messages shouldn't prevent you from loggin in.
I would recover from a backup or reinstall if nothing else is working.
Forget it.
I did a new install and gave up on the old one.
Thanks anyways!
Do you think it's a good idea to switch to Optimus Brave. It looks less problematic that Pretty URL.
No idea not sure what that is.
It's a mod, but I don't think it offers pretty URLs... not that pretty URLs are actually an SEO feature much any more.
I installed the prettyurls extra mod and I use EZ Portal. After going to pages I've created with the portal, it show's blank content on the page. These pages were created before installing prettyurls extras. Any help?
I left an example up:
EZ Portal Link: http://www.kingsislandexpo.com/index.php?action=ezportal;sa=page;p=3
Pretty URL link: http://www.kingsislandexpo.com/ezportal/privacy-policy/3
Please help! I have pretty urls mod on my forum, All the page on the site now redirect to the homepage. What can i do? please help
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Nice mod!
But instead of taking the 'Title' of the post as url tag, can it allows me to determne the URL tag?
thnx.
that would be next to impossible -- Think about a forum with 2 million posts... you are going to go through and set the URL for every thread? I don't think so.
Quote from: Kindred on June 22, 2014, 04:26:00 PM
that would be next to impossible -- Think about a forum with 2 million posts... you are going to go through and set the URL for every thread? I don't think so.
Like wordpress. (optional editing of url tag)
It should automatically takes the title tag (like it is doing now) But still gives the option to edit the url tag for poster.
well, I disagree... but I'll let the author respond further.
Because of the purpose of Pretty URLs is optimize for SEs.
Sometimes URL Tags are abrupty stopping.
Like at the end of URL: it says -
......./back-p/
Better like:
......./back-pain/
nope... sorry... but that is distinctly wrong.
URLs have minimal (if ANY) impact on search engine ranking.
If SEO is the only reason you are using this, then you are wasting your time.
Not only search engines. My previous site has URLs where I set the URL tag. (300 pages of tutorials). I don't mind the url tags for the threads that users post. Before I move to SMF, i am making sure that to maintain same url is possible or not. (I am using SMF on other site but no mods are installed. Pretty basic forum)
Not without a lot of work. or writing a custom script to process/handle them.
1. There is an optional custom field during board creation and Post creation - 'url tag' (A simple mod exists for this custom field creation?)
2. Then change Pretty URLs code to use from 'title' to 'urltag' to display. First code checks 'urltag' if nothing there, it will take 'title' for url.
possible?
if you code it...
(and no, a simple mod does not exist for that)
If I ask my programmer to do it and upload files here, authors of this mod will use these files for further development?
Hi, i need to redirect pretty urls to original urls WITH htaccess.. How can I do?
Get reverter package https://code.google.com/p/prettyurls/downloads/list
Its not for 2.0.8
It should work for it though...
Same problem please fix it : code.google.com/p/prettyurls/issues/detail?id=165
:'( :'( :'(
Updated for SMF 2.0.8
Quote from: SMFHacks.com Team on July 21, 2014, 02:21:48 PM
Updated for SMF 2.0.8
Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks
Glad to help
I have a strange problem recently. If I enable Pretty Urls all seam to work fine but I can't post anything!
I'm Using Nginx with this config:
http://pastebin.com/385Z8ZY6
When Pretty Urls is enable, I can't Post anything, it just shows up a blank form again.
When I press submit I get these in the Logs:
"GET /aktuelles/?action=post2;start=0;msg=9951;a07598183=c3c9c0d7eec4832d38046bc1a16242c7 HTTP/1.1" 302 5 "-" "-"
"GET /aktuelles/?action=post HTTP/1.1" 200 43073 "-" "-"
Without Pretty Urls it works and I get this:
"POST /index.php?action=post2;start=0;msg=9951;a07598183=c3c9c0d7eec4832d38046bc1a16242c7;board=4 HTTP/1.1" 302 5 "https://example.com/index.php?action=post;msg=9951;topic=3460.0" "-"
"GET /index.php?topic=3460.msg9951 HTTP/1.1" 200 33382 "https://example.com/index.php?action=post;msg=9951;topic=3460.0"
I am using this mod on my SMF 2.0.8 and it works OK, but there is one problem at child forums. This is structure of my forum:
QuoteNews
General info
- Product
- Service
Technical info
- Product
- Service
Other
So the URLs for those boards are:
Quotehttp://forumdomain/news/
http://forumdomain/general-info/
http://forumdomain/product/
http://forumdomain/service/
http://forumdomain/technical-info/
http://forumdomain/product-14/
http://forumdomain/service-15/
http://forumdomain/other/
As you can see some names repeat so it adds number to the end and that would be OK, but the problem is that some child forum shouldn't be shown as it own but under parent, so URLs should be something like:
Quotehttp://forumdomain/news/
http://forumdomain/general-info/
http://forumdomain/general-info/product/
http://forumdomain/general-info/service/
http://forumdomain/technical-info/
http://forumdomain/technical-info/product/
http://forumdomain/technical-info/service/
http://forumdomain/other/
Is there any way to fix this?
I'm using SMF 2.0.8 with Nginx, and this is my configuration:
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
##
# nginx-naxsi config
##
# Uncomment it if you installed nginx-naxsi
##
#include /etc/nginx/naxsi_core.rules;
##
# nginx-passenger config
##
# Uncomment it if you installed nginx-passenger
##
#passenger_root /usr;
#passenger_ruby /usr/bin/ruby;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
server{
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html index.htm;
location /
{
root /usr/share/nginx/html/xdadasda;
index index.php index.html;
if (!-e $request_filename)
{
# Rules for: profiles
rewrite ^/xdadasda/profile/([^/]+)/?$ "/xdadasda/index.php?pretty;action=profile;user=$1" last;
# Rules for: actions
rewrite ^/xdadasda/(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ "/xdadasda/index.php?pretty;action=$1" last;
rewrite ^/xdadasda/(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$ "/xdadasda/index.php?pretty;action=$1" last;
rewrite ^/xdadasda/(findmember|groups|help|helpadmin|im|jseditor|jsmodify|jsoption)/?$ "/xdadasda/index.php?pretty;action=$1" last;
rewrite ^/xdadasda/(lock|lockvoting|login|login2|logout|markasread|mergetopics|mlist)/?$ "/xdadasda/index.php?pretty;action=$1" last;
rewrite ^/xdadasda/(moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard|openidreturn)/?$ "/xdadasda/index.php?pretty;action=$1" last;
rewrite ^/xdadasda/(pm|post|post2|printpage|profile|quotefast|quickmod|quickmod2)/?$ "./index.php?pretty;action=$1" last;
rewrite ^/xdadasda/(recent|register|register2|reminder|removepoll|removetopic2|reporttm|requestmembers)/?$ "/xdadasda/index.php?pretty;action=$1" last;
rewrite ^/xdadasda/(restoretopic|search|search2|sendtopic|smstats|suggest|spellcheck|splittopics)/?$ "/xdadasda/index.php?pretty;action=$1" last;
rewrite ^/xdadasda/(stats|sticky|theme|trackip|about:mozilla|about:unknown|unread|unreadreplies)/?$ "/xdadasda/index.php?pretty;action=$1" last;
rewrite ^/xdadasda/(verificationcode|viewprofile|vote|viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ "/xdadasda/index.php?pretty;action=$1" last;
# Rules for: boards
rewrite ^/xdadasda/([-_!~*'()$a-zA-Z0-9]+)/?$ "/xdadasda/index.php?pretty;board=$1.0" last;
rewrite ^/xdadasda/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ "/xdadasda/index.php?pretty;board=$1.$2" last;
# Rules for: topics
rewrite ^/xdadasda/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ "/xdadasda/index.php?pretty;board=$1;topic=$2.0" last;
rewrite ^/xdadasda/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ "/xdadasda/index.php?pretty;board=$1;topic=$2.$3" last;
rewrite ^/xdadasda/(.*)$ "/xdadasda/index.php?params=$1" last;
}
}
}
}
But when I try suft in the boards or topics, the forum displays 404.
Whats is the problem?
Not sure. I have always had a tough time with rewrite rules for nginx
Yes me too.. I need help with my configuration!!
Hi thank nice
@underc0de
My rules are still working which i have converted as posted some years ago:
location / {
# Rules for: spages
rewrite ^/forum/guestbook "/forum/index.php?spage=guestbook" last;
rewrite ^/forum/shop "/forum/index.php?spage=shop" last;
rewrite ^/forum/impressum "/forum/index.php?spage=impressum" last;
rewrite ^/forum/artikel "/forum/index.php?spage=artikel" last;
rewrite ^/forum/links "/forum/index.php?spage=links" last;
# Rules for: smftags
rewrite ^/forum/tags/([^/]+)/([0-9]*)/?$ "/forum/index.php?action=tags;tagid=$2" last;
# Rules for: aeva
rewrite ^/forum/media/(thumba?|preview)/([0-9]+)/?(.*)$ "/forum/index.php?action=media;sa=media;in=$2;$1;$3" last;
rewrite ^/forum/media/(?:(album|item|media)/([0-9]+)/?)?(.*)$ "/forum/index.php?action=media;sa=$1;in=$2;$3" last;
# Rules for: actions
rewrite ^/forum/(activate|admin|announce|attachapprove|buddy|calendar|chat|clock)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(collapse|community|coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(emailuser|findmember|groups|help|helpadmin|im|jseditor|jsmodify)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(jsoption|lock|lockvoting|login|login2|logout|markasread|mergetopics)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(media|mgallery|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(notify|notifyboard|openidreturn|pm|post|post2|printpage|profile)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(quotefast|quickmod|quickmod2|recent|register|register2|reminder|removepoll)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic|shoutbox)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(sitemap|smstats|suggest|spellcheck|splittopics|stats|sticky|tags)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(switchpermissions|thankyou|thankyouajax|thankyoupostlock|thankyoupostlist|thankyoupostdelete|thankyoupostdm|thankyoupostcloseall)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(thankyoupostunlockall|theme|trackip|about:mozilla|about:unknown|unread|unreadreplies|verificationcode)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(viewprofile|vote|viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ "/forum/index.php?pretty;action=$1" last;
# Rules for: boards
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/?$ "/forum/index.php?pretty;board=$1.0" last;
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ "/forum/index.php?pretty;board=$1.$2" last;
# Rules for: topics
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ "/forum/index.php?pretty;board=$1;topic=$2.0" last;
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ "/forum/index.php?pretty;board=$1;topic=$2.$3" last;
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
Hello, when i change my Topic's title, url does not change. How can i fix this, so when i change title, my url would change also.
I can change url for boards, but not for topics. Help me!
Thanks you
At the moment it you have to go inside the database and change. This is done for SEO reasons otherwise you would loose your rankings any time you changed the title.
Quote from: Fisch.666 on August 19, 2014, 07:39:14 AM
@underc0de
My rules are still working which i have converted as posted some years ago:
location / {
# Rules for: spages
rewrite ^/forum/guestbook "/forum/index.php?spage=guestbook" last;
rewrite ^/forum/shop "/forum/index.php?spage=shop" last;
rewrite ^/forum/impressum "/forum/index.php?spage=impressum" last;
rewrite ^/forum/artikel "/forum/index.php?spage=artikel" last;
rewrite ^/forum/links "/forum/index.php?spage=links" last;
# Rules for: smftags
rewrite ^/forum/tags/([^/]+)/([0-9]*)/?$ "/forum/index.php?action=tags;tagid=$2" last;
# Rules for: aeva
rewrite ^/forum/media/(thumba?|preview)/([0-9]+)/?(.*)$ "/forum/index.php?action=media;sa=media;in=$2;$1;$3" last;
rewrite ^/forum/media/(?:(album|item|media)/([0-9]+)/?)?(.*)$ "/forum/index.php?action=media;sa=$1;in=$2;$3" last;
# Rules for: actions
rewrite ^/forum/(activate|admin|announce|attachapprove|buddy|calendar|chat|clock)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(collapse|community|coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(emailuser|findmember|groups|help|helpadmin|im|jseditor|jsmodify)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(jsoption|lock|lockvoting|login|login2|logout|markasread|mergetopics)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(media|mgallery|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(notify|notifyboard|openidreturn|pm|post|post2|printpage|profile)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(quotefast|quickmod|quickmod2|recent|register|register2|reminder|removepoll)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic|shoutbox)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(sitemap|smstats|suggest|spellcheck|splittopics|stats|sticky|tags)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(switchpermissions|thankyou|thankyouajax|thankyoupostlock|thankyoupostlist|thankyoupostdelete|thankyoupostdm|thankyoupostcloseall)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(thankyoupostunlockall|theme|trackip|about:mozilla|about:unknown|unread|unreadreplies|verificationcode)/?$ "/forum/index.php?pretty;action=$1" last;
rewrite ^/forum/(viewprofile|vote|viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ "/forum/index.php?pretty;action=$1" last;
# Rules for: boards
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/?$ "/forum/index.php?pretty;board=$1.0" last;
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ "/forum/index.php?pretty;board=$1.$2" last;
# Rules for: topics
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ "/forum/index.php?pretty;board=$1;topic=$2.0" last;
rewrite ^/forum/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ "/forum/index.php?pretty;board=$1;topic=$2.$3" last;
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
Thanks! I modify with my paths, but nothing.. I have the same problem..
More solutions?
Regards
This mod needs to support split forum mod.
Why?
Quote from: SilverKnight on August 23, 2014, 03:57:15 AM
This mod needs to support split forum mod.
The author has to decide on that.
@underc0de
This is the only solution i can provide. Works here on several SMF 2.0.8 boards running on NginX 1.6.x.
If you still can't get PrettyURLs to work with this you probably made the wrong edits or have some wired non-standard NginX configs running which interferences with the rewrite rules above.
Quote from: SilverKnight on August 23, 2014, 03:57:15 AM
This mod needs to support split forum mod.
I'm gonna see what I can do about compatibility between the two. (I'm the author of Split Forum Mod)
Quote from: dougiefresh on August 25, 2014, 06:23:02 AM
Quote from: SilverKnight on August 23, 2014, 03:57:15 AM
This mod needs to support split forum mod.
I'm gonna see what I can do about compatibility between the two. (I'm the author of Split Forum Mod)
That would be awesome thanks
My board is in Cyrillic characetrs, so for example the first topic when creating your SMF "Добредојдовте на SMF форумот!." is transformed from
/index.php?topic=1.0 to /ota-ka/oeoote-a-smf-omot!/
It's the same with Russian, Bulgarian and some other languages too. What to do now?
That is an issue. I think it might have been talked about in the past in this mod not sure if there is a change you can make or not.
A user might have modified pretty urls in the past to support those characters in this topic somewhere.
Hi, i'm using 1.0RC5 version of this mod. What is updated in 1.2 version? I coudn't see any update file.
Changes from then on
Pretty URLs 1.1.1 12 November 2013
================================================================================
+ Smarter rewriting subsystem for actions Thanks to Arantor
Pretty URLs 1.1 20 September 2013
================================================================================
! Fixed possible error in PrettyUrls-Filters.php
Pretty URLs 1.0 19 February 2012
================================================================================
! Do no cache javascript or mailto links saves some room in the database performance improvement.
+ New setting to use caching system instead of database tables thanks to nend.
I don't know how prett urls is working but if i unstalled current one and install the new one my all links with be stay like before? Any loses happening?
"Warnings
URLs timed out
When we tested a sample of the URLs from your Sitemap, we found that some URLs were not accessible to Googlebot due to network timeouts.
Sitemaps are not part of this mod.
If it is related please explain in detail
I also encountered some similar problems do not know how to solve? What you give your contact information to their support is not . this site áo dạ đẹp (http://88shop.vn)
Post the problems here....
URLs timed out
When we tested a sample of the URLs from your Sitemap, we found that some URLs were not accessible to Googlebot due to network timeouts.
__________________________________________________________
What are the examples
how to Updated for SMF 2.0, can help
Just install the new package.
Quote from: vbgamer45 on July 15, 2014, 12:09:08 AM
Get reverter package https://code.google.com/p/prettyurls/downloads/list
This mod doesn't work and install with smf 2.0.9 I think it must be update... thanks
Try to emulate the old version.
I can't post new files on google code site anymore they disabled it :(
I've tried emulate but no worked perfectly it has problem with install and working
Can't you attach here that file?
Anyway now I use pretty but I want it.
What's the issue can you post it here?
Is everyone misunderstanding what emulate does? You are the fourth person I have had to correct about this today...
Emulate just allows you to install a mod which was targeted to previous versions of smf.... E.g. Allows you to install a mod for 2.0.4 on 2.0.9. The only time you need to use emulate is if the mod tells you it can not be installed on that versions.
Errors during the installation are a compketely different issue and are because you have made changes to the target code... Either because of manual edits or another mod. The way around that is to manually parse the mod changes and apply them using human intuition rather than code-specific automation.
There is a FAQ article about this... Why does no one read the FAQ?
Here is the SS
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.anindatepki.com%2Fuploads%2F1412969353.png&hash=47dbf9eac8ffdd8127eeb9e801cb80b6988a9e10)
Quote from: Kindred on October 09, 2014, 07:12:25 PM
Errors during the installation are a compketely different issue and are because you have made changes to the target code... Either because of manual edits or another mod. The way around that is to manually parse the mod changes and apply them using human intuition rather than code-specific automation.
There is a FAQ article about this... Why does no one read the FAQ?
Please help...
I tried this settings
Enable URL rewriting: Checked
Enable URL rewriting: Blank
Use caching instead of database table for PrettyUrls: Unchecked
Boards: Checked
Topics: Checked
Actions: Unchecked
Profiles: Checked
I hit save and I get stuck here board/index.php?action=admin;area=pretty;sa=test with only white page.
When I return to the settings, only "Enable URL rewriting" is still unchecked.
Your server might not support it. Generally requires apache with mod_rewrite enabled.
Check your forum's error log for details.
I would like to request greater support for the split forum mod (http://www.simplemachines.org/community/index.php?topic=523055.0) It has problems with the subforum links.
Hello,
It seems this mod will not work correctly for a large part of the world!
I get this message:
"Before enabling URL rewriting, please check that these rewritten links work."
The links work, but not correctly transcribed.
Instead:
domati -> omat
marzelivata-masa/kak-da-si-napravim-kapkovo-napoyavane/ -> meata-maa/kak-a-aam-kakoo-aoae/
etc...
In general, transcription of all I see, is absolutely incorrect.
Forum is in Cyrillic.
What should I do?
Where can I read about a solution?
Thank you!
I do not have a solution for those character sets. Someone might have posted a way to do in this thread but I do not know for sure.
if we are using this mod then how to find any topic id ?
like simpleportal asks for topic id for creating many blocks :(
help please :'(
No easy way you have to hover over links/code to figure that out.
Quote from: vbgamer45 on November 15, 2014, 12:05:39 AM
No easy way you have to hover over links/code to figure that out.
"hover over links/code" Means ? :'(
http://www.test.com/xxx/testing/msg142/
can we get any idea from "msg142" ?
please tell any what for finding topic id :(
Any link such as reply,notify,print topic.
Or view source code.
Quote from: vbgamer45 on November 15, 2014, 12:29:19 AM
Any link such as reply,notify,print topic.
Or view source code.
thanks
Quote from: vbgamer45 on October 14, 2014, 08:41:37 AM
Your server might not support it. Generally requires apache with mod_rewrite enabled.
Check your forum's error log for details.
yes the mod_rewrite is enabled. Is there another thing causing this?
Not sure some other mod conflict check forum error log for details.
Hi all,
I am using smf 2.0.8 with pretty URLs 1.1.2 The moment I install the mod, the urls change from:
http://www.mywebsite.com/smf/index.php?topic=981.0
To
http://66.147.244.220/~mywebsite/smf/general-chemistry/need-help-with-quantitative-analysis/
The board name and topic name in the new url is correct. However the IP address added seems to break the link.
This leads to a 404 page not found error.
I am using shared hosting for my smf installation.
I had used the repair_settings file to confirm that the links are correct
Any help is most welcome.
Strange not sure what would cause that.
Goto
https://code.google.com/p/prettyurls/wiki/TroubleShooting
And follow the step called "Links point to old domain after moving forum"
Thanks a ton vbgamer45.
This worked like a charm and sorted out my problems.
Glad to help
hi,
Could you update this mod for 2.1 Alpha?
Probably won't update it till an RC release.
Smart move ;)
Edit: we are on Beta 1, not alpha anymore :P
Just wondering if anyone understands the feature "Use caching instead of database table for PrettyUrls", what is the benefit of one over the other?
Possibly keeping the rewrites (or some of them) in memory instead of querying the db?
Quote from: Gryzor on December 14, 2014, 04:52:22 AM
Possibly keeping the rewrites (or some of them) in memory instead of querying the db?
Ah ok, so probably best to retain in DB to keep PHP memory at a minimum.
It'd be good to have an answer from the dev; I don't think it would cache everything, possibly only the newest URLs or the recently accessed ones?
There is a setting for that in pretty urls that I remember
Just checked my installation, I don't see an option... I mean, the cache vs DB is there but nothing else to explain or give a hint.
This (http://www.eevblog.com/forum/news/forum-pretty-urls/msg138690/?PHPSESSID=e2f31558c2a69797ffd27351893832bd#msg138690), however,may give some hints.
How do I change the 'pretty url' of an action?
For example, I have an action www.mysite.com/index.php?action=beer which is rewritten by prettyurls to www.mysite.com/beer/
How do I change the rewritten url to www.mysite.com/juice/
why would you use juice, if the action = beer? just name the action "juice" in the first place!
Quote from: Kindred on December 16, 2014, 02:47:04 PM
why would you use juice, if the action = beer? just name the action "juice" in the first place!
I didn't create the action, a mod did. I used to run a forum competition manually in the past, but now i installed a mod which makes the work easier.
I just want to change the 'pretty url' to the name my members are used to.
I'm sure vbgamer can comment... but I don't think that you can do it, since the basis for most of the "pretty urls" designs is pattern matching.
Hello, I am trying to install Pretty URLs 1.1.2 on SMF 2.0.9.
I recently changed directories of SMF from /smf to /
Everything works fine. I've ran repair_settings.php
When I start to enable pretty urls rewriting it ask me to verify the links are correct and they are not. They still represent my old directory.
I've deleted .htaccess
I've uninstalled and reinstalled Pretty URLs but each time I go to enable rewrite the example URL are wrong, they still use the /smf directory and I do not know where it's getting this information from.
Can someone advise?
Thank you.
Quote from: Kindred on December 16, 2014, 03:55:37 PM
I'm sure vbgamer can comment... but I don't think that you can do it, since the basis for most of the "pretty urls" designs is pattern matching.
The hard way may be to change the action name of the mod itself (something I was trying to avoid). But I am worried as to whether the current name may already have records in the database. I looked it up in the wiki and saw something about 'integration hooks'.. all that stuff is foreign to me :(
Quote from: SeeingBlue on December 17, 2014, 03:45:14 PM
Hello, I am trying to install Pretty URLs 1.1.2 on SMF 2.0.9.
I recently changed directories of SMF from /smf to /
Everything works fine. I've ran repair_settings.php
When I start to enable pretty urls rewriting it ask me to verify the links are correct and they are not. They still represent my old directory.
I've deleted .htaccess
I've uninstalled and reinstalled Pretty URLs but each time I go to enable rewrite the example URL are wrong, they still use the /smf directory and I do not know where it's getting this information from.
Can someone advise?
Thank you.
https://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: Stanyy on December 17, 2014, 04:35:18 PM
Quote from: Kindred on December 16, 2014, 03:55:37 PM
I'm sure vbgamer can comment... but I don't think that you can do it, since the basis for most of the "pretty urls" designs is pattern matching.
The hard way may be to change the action name of the mod itself (something I was trying to avoid). But I am worried as to whether the current name may already have records in the database. I looked it up in the wiki and saw something about 'integration hooks'.. all that stuff is foreign to me :(
I would try first editing it in the index.php hopeflly if it is listed there...And just duplicate the code for beer but change 'beer' to 'juice' and see if it works with the juice url after making the change.
Quote from: vbgamer45 on December 18, 2014, 08:53:39 AM
Quote from: SeeingBlue on December 17, 2014, 03:45:14 PM
Hello, I am trying to install Pretty URLs 1.1.2 on SMF 2.0.9.
I recently changed directories of SMF from /smf to /
Everything works fine. I've ran repair_settings.php
When I start to enable pretty urls rewriting it ask me to verify the links are correct and they are not. They still represent my old directory.
I've deleted .htaccess
I've uninstalled and reinstalled Pretty URLs but each time I go to enable rewrite the example URL are wrong, they still use the /smf directory and I do not know where it's getting this information from.
Can someone advise?
Thank you.
https://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: Stanyy on December 17, 2014, 04:35:18 PM
Quote from: Kindred on December 16, 2014, 03:55:37 PM
I'm sure vbgamer can comment... but I don't think that you can do it, since the basis for most of the "pretty urls" designs is pattern matching.
The hard way may be to change the action name of the mod itself (something I was trying to avoid). But I am worried as to whether the current name may already have records in the database. I looked it up in the wiki and saw something about 'integration hooks'.. all that stuff is foreign to me :(
I would try first editing it in the index.php hopeflly if it is listed there...And just duplicate the code for beer but change 'beer' to 'juice' and see if it works with the juice url after making the change.
Is there any way to rewrite simpleportal page urls?
I do not have anything built in for that but you can post on Simpleportal and see if they have done it. The pretty URLs can be extended a bit and have had other mods do it.
@vbgamer45 I'm trying to redirect a sub directory(/utb) to a page URL(http://greatarchitect.us/index.php/page,utb.html) but Pretty URLs keeps interfering. I can't even access the sub directory without Pretty URLs redirecting me. Is there anything we can do about this? If not I may just have to do without Pretty URLs.
Check the subdirectories page on
https://code.google.com/p/prettyurls/wiki/TroubleShooting
Hi,
please can someone help me, my pretty URl is now working, it directs all links to open in Homepage
Thanks
First check if it is any of these issues on this page https://code.google.com/p/prettyurls/wiki/TroubleShooting
The issue is not in https://code.google.com/p/prettyurls/wiki/TroubleShooting
i have been using Pretty URL but it just stopped working and direct all links to homepage
please i need help
.htaccess file corrupted?
If it just stopped working contact your host and maybe restore a backup?
what will i tell my host and how to i restore a backup. can you help . smf 2.0.8
my host said that i should check custom modifications to .htaccess of pretty URL.
can anyone help me check custom modifications to .htaccess
one of the expert actually installed pretty URL for me
Thanks
I just installed pretty urls but have no clue how to get it to rewrite the urls. Anybody has a clue?
Go the settings area for the mod and follow the steps.
Quote from: vbgamer45 on December 21, 2014, 06:37:13 PM
Go the settings area for the mod and follow the steps.
Thanks, I didn't know there is an admin panel for the mods.
please what can i do , i have been using pretty URL for more than one year now and it suddenly stopped when i added a new board.
what can i do to make it work
Hi Mossite,
Do you see a file called ".htaccess" in the same directory as your forum? (You may have to select an option to show hidden files, because sometimes files that start with "." are hidden).
If you look inside it, does it look anything like this? (It might not look exactly like this, depending on which directory your forum is installed in - the example below shows the forum being in a directory called /forum )
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: January 6, 2015, 14:02
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]
# PRETTYURLS MOD ENDS
Armada
I have been using pretty url for quite some time now and all my pages have been indexed as per pretty urls, recently to www resolve I uninstalled and then reinstalled pretty url, because I was getting redirect loop error with pretty url. Though redirect loop problem is still there and one more issue has come up in my live forum. Whenever I see a topic or get inside any board I automatically get logged out and not able to post anything but when I click on Home button, I login back automatically.
Please help, what could have gone wrong. This is a live forum and can't afford to uninstall pretty url but with it my forum is not working properly.
Thanks
Saurabh
I think I have found the issue, it caused by ?wwwredirect after urls, if I write www.sitename.com/forum/topicname it works fine but sitename/forum/topicname/?wwwredirect is messing things up with pretty urls. If somehow www. is added in front of all the urls then I think issue will be resolved
You can change the url using this guide
https://code.google.com/p/prettyurls/wiki/TroubleShooting
Why Pretty URLs don't rewrite rules for SA Facebook Integration url don't change is still this same: site.com/inde.php?action=facebook
Quote from: vbgamer45 on January 15, 2015, 07:05:17 PM
You can change the url using this guide
https://code.google.com/p/prettyurls/wiki/TroubleShooting
I want to the site, I am not able to find solution to two things:
1. I want www in front of every url on my site rather than it is coming as ?wwwredirect. Because when ?wwwredirect comes my users are logged out of the forum.
2. My forum is in folder /forum, and when I redirect with or without www, it is giving me redirect loop.
These two Items I am not able to find even on troubleshooting site nor listed in issues. Please help me, I am even ready to pay for it if someone fix these two issues for me
Use script change replace
$boardurl with the site url "http://www.yoursite.com"
require_once(dirname(__FILE__) . '/SSI.php');
require_once($sourcedir . '/Subs-PrettyUrls.php');
updateSettings(array('pretty_root_url' => $boardurl));
pretty_update_filters();
[/code
Thanks for trying to help me,
The required changes you suggested need to be done in which file?
Also I did some changes in htaccess file, now every thing is working fine but now pretty urls look like this
http://www.mysite.com/gt/index.php?pretty;action=forum rather than http://www.mysite.com/gt/forum
The code was suggested in one of the issue pages which I did in htaccess file:
RewriteOptions inherit
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/gt/$1 [R=301,L]
I am just very close to fix this, spent my whole week in researching a lot and came very close. Just require little bit help. What should I do to make pretty urls look like http://www.mysite.com/gt/forum again and in which file and where I should do the changes suggested by you?
The code changes need to be done it's own file. Called it updateprettyurls.php and just run via the browser copy to your main root directory.
Quote from: MESWEB on January 16, 2015, 02:31:39 PM
Why Pretty URLs don't rewrite rules for SA Facebook Integration url don't change is still this same: site.com/inde.php?action=facebook
Can anyone help me?
I have got everything working except one...
I used below htaccess code suggested in the issue section on google pretty url site, to redirect with www in front of all urls
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/gt/$1 [R=301,L]
by this way when I am trying to post, post data is getting lost and I am getting redirected to
http://www.example.com/gt/general-discussion/?action=post with a blank post form.
I have error:
Quoteaction=admin&amp;area=pretty;sa=settings
8: Undefined index: pretty_bufferusecache
File: /Themes/default/PrettyUrls.template.php
Line: 84
Line 84:
<?php
<input type="checkbox" name="pretty_bufferusecache" id="pretty_bufferusecache"', ($modSettings['pretty_bufferusecache'] ? ' checked="checked"' : ''), ' />
?>
Run this sql query on your database
REPLACE INTO smf_settings
(variable, value)
VALUES ('pretty_bufferusecache','0')
Thanks it's working. I check phpAdmin and pretty_bufferusecache not ther. Some of bug has been when I install mod.
How to display board and child board together? I have parent board
SMF and first child board
PHP and second one
MySQL when I go to MySQL board then url shows like this:
Quotedomain.com/mysql
I want display this:
Quotedomain.com/smf/mysql
Not possible currently.
Error:
Quoteindex.php?pretty;board=ciekawe-pomysly;topic=najdziwniejszy-zamek-na-swiecie.msg206&PHPSESSID=031dd031d58621c8d786f5ea35d844f0
8: Undefined offset: 0
File: /Sources/PrettyUrls-Filters.php
Line: 513
Hi
I upload pretty urls to my forum ... but each time - every post becomes a page to create a forum with an advertising link ?
Although the urls seem to change - every post on the forum and every board is now a page link to create a forum ?
I have no option but to uninstall this plugin
Those links are not part of this plugin.
I realise that - but they only appear after enabling pretty urls
I'm trrying to get my host to sort it, but may have to give up
I am using this mod and I never checked the page load stats, but I just did and found it say this:
Page created in 1.636 seconds with 12 queries. (Pretty URLs adds 1.181s, 3q)
Is it really possible it is more than doubling my page-load times? I thought my site was a bit slow... Any suggestions on how to fix or troubleshoot the issue?
It does add extra load. I do suggest only doing pretty topics and boards and not actions I do that on my sites.
Is my increased load typical? If I change the settings for actions after the fact, will it screw-up anything?
It's hard to say. depends if it is on every page or just some pages some of the times.
You should be ok to change settings.
It's pretty consistent for the main index. I turned off actions and there is some improvement, but I still find the added time a bit extreme.
Page created in 0.624 seconds with 12 queries. (Pretty URLs adds 0.448s, 5q)
There isn't much that can be done about that or that upgrading to faster server/vps or hosting environment.
Hello everyone,
I'm considering to disable the pretty urls plugin. It works great, no problems at all, but I don't need it anymore and honestly I regret a little bit that I've installed it few years ago.
I have a question about the search engine ranking when disabling it.
My forum is not so big, about 5k users, 6k topics, 100k posts, but well indexed and Google has indexed everything with the pretty urls enabled.
I'm think to disable the rewriting, but not to uninstall the plugin (for now), to be able to handle the "pretty" requests to the forum.
So, I will have an indexed content with pretty urls, but Google will see the SAME content with different urls when the rewriting is disabled. So two issues - Google will detect the "new" content as duplicated and must wait to index and get popularity again. Am I right? Can I disable the rewriting safely without worrying about the SERP position?
Thank you in advance :)
Hello community. I watched my SiteMap but I see in this the URLs are unfriendly Any configuration to my SiteMap friendly URLs?
I use this one that works
Quote from: vbgamer45 on March 07, 2015, 04:01:18 PM
I use this one that works
Sorry but I understand nothing.
Forgot to include the link
http://custom.simplemachines.org/mods/index.php?mod=755
@Pyrhel
Have a look at the reverter package available here:
https://code.google.com/p/prettyurls/downloads/list
Upgraded from 1.1.12 today to 2.9. Tried to install Pretty urls from package manager, that did go over to well. had to make a few edits manually. After trying for a couple hours to get it to work on windows 2012. All is well. Here are the rewrites for windows if anyone wants them. Might be a few extra in there, I added just enough to make pretty urls to work.
# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(findmember|groups|help|helpadmin|im|jseditor|jsmodify|jsoption)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(lock|lockvoting|login|login2|logout|markasread|mergetopics|mlist)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard|openidreturn)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(pm|post|post2|printpage|profile|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|register|register2|reminder|removepoll|removetopic2|reporttm|requestmembers)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(restoretopic|search|search2|sendtopic|smstats|suggest|spellcheck|splittopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(stats|sticky|theme|trackip|about:mozilla|about:unknown|unread|unreadreplies)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|viewprofile|vote|viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./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]
Hi everybody
I've installed Pretty URLs revert but I have the following issue:
1) Old URLs were http://www.domain.com/forum/general-discussions/who-is-alice/
2) If I set 301 redirection on .htaccess, URLs are redirected to http://www.domain.com/forum/index.php?pretty;board=general-discussion;topic=who-is-alice.0
However they should be redirected to http://www.domain.com/forum/index.php?topic=10561.0
This is the content of my .htaccess file:
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: March 24, 2015, 22:56
RewriteEngine on
RewriteBase /forum
# Rules for: seo4smf
RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/;(.*) index.php?board=$2.$3;$4 [L,QSA]
RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/$ index.php?board=$2.$3 [L,QSA]
RewriteRule ^(.*)-b([0-9]*)\.([0-9])$ index.php?board=$2.$3 [L,QSA]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*);(.*)$ index.php?topic=$2.$4;$6 [L,QSA]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*) index.php?topic=$2.$4 [L,QSA]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;(.*)$ index.php?topic=$2.$3;$4 [L,QSA]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html$ index.php?topic=$2.$3 [L,QSA]
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$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]
# PRETTYURLS MOD ENDS
What am I doing wrong? Why when URLs are redirected they keep including keywords?
I need help. The pretty url mod was successfully installed in our forum site but there is an extra text at the header or on top of the forum, a plain text, this one: // Pretty URLs mod $txt['pretty_urls'] = 'Pretty URLs';
That line appears in all pages of the forum site. How to remove it?
Fix your file modifications.english.php... the ?> must be the very last thing in thr file
Quote from: Kindred on March 25, 2015, 09:19:31 AM
Fix your file modifications.english.php... the ?> must be the very last thing in thr file
Hi Kindred
Could you please help me with this?
http://www.simplemachines.org/community/index.php?topic=146969.msg3801487#msg3801487
Thank you!
Quote from: Kindred on March 25, 2015, 09:19:31 AM
Fix your file modifications.english.php... the ?> must be the very last thing in thr file
THANK YOU SO MUCH, KINDRED. The problem was fixed by removing that extra line from modifications.english.php
cloferba,
I have no clue. I don't use this mod (and would never bother with it for a variety of reasons)
You'll have to wait for the mod author to respond, since he's probably the best one to offer assistance.
humbleworld,
not sure if you should have REMOVED that line... just moving the ?> to the end of the file would have worked and would have left the defined text string there... by removing the defined text string, you are probably going to start seeing errors in your forum error log.
Kindred,
I did not see any errors in the log after entirely removing that line.
I am using two themes for my SMF.
Default Curve for most of the boards and different theme for 3 child forums.
While installing the Pretty URLs, I am not seeing this second theme to install it.
Need to install it manually after installing it on Curve?
thnx.
Yes you will need to.
So ONLY the files in custom theme 'Themes/theme1/ folder. Right? (actually theme1 is duplicate of Curve)
No need to chane any other? Like 'Source' files.
If you already installed the mod then the source files were changed already.
For themes if you add new themes afterwords you will need to modify them for manual edits.
I can copy the needed files to theme1 from Curve?
Because if I install other mods I might be having difficulty installing them if I edit manually.
Unsure try it and see if it works.
Hello, I've been able to edit Subs.php and change the boardindex url from "index.php?action=forum" to "index.php?action=boards", however Pretty URLs is not displaying the url as "mysite.com/boards", rather as "mysite.com/index.php?action=boards".
How do I go about fixing this?
Not exactly related but...
Quote from: DionK on April 22, 2015, 09:03:21 PM
Hello, I've been able to edit Subs.php and change the boardindex url from "index.php?action=forum" to "index.php?action=boards"
Why would you do this? Pure curiosity ;)
Quote from: margarett on April 22, 2015, 09:07:24 PM
Not exactly related but...
Quote from: DionK on April 22, 2015, 09:03:21 PM
Hello, I've been able to edit Subs.php and change the boardindex url from "index.php?action=forum" to "index.php?action=boards"
Why would you do this? Pure curiosity ;)
Basically the site I'm putting together isn't a traditional forum. I just love SMF and it's customisation so I decided to base it off the software. I'm also a huge neat freak and hate urls like "?action=forum" and "?topic=1510.0" etc.
As for wanting "forum" to be changed to "boards", that's simply how I want that page to be referred to as. =)
I have another issue too. I created a board called "Test" and it showed correctly as mysite.com/test/. I then deleted it and added a board again called "Test", but now the board url shows as mysite.com/test-70/ which is the id_board, even though there's no other board with the same name in the database. Running the maintenance task does nothing. Why is this happening?
Can anyone install pretty URL successfully on my forum (paid)
Please use the Help Wanted (not for support) (http://www.simplemachines.org/community/index.php?board=50.0) board in order to ask for paid support ;)
Be sure to read the sticky topic.
Please, help! in my forum doesn't work correctly when I put https://underc0de.org/foro but works entering with the index.php https://underc0de.org/foro/index.php
Any idea?
regards!
I have errors that needs resolving. I have install other things before the pretty URLs. When it's active the broads and topics get's an 404 errors and my Rules page 404, other pages like download home and gallry is all good
This is an error log information I keep on getting
message8: Undefined index: pretty_bufferusecacheApply/home3/empire/public_html/Themes/default/languages/PrettyUrls.english.php (pretty_settings sub template - eval?)
Line: 84
insert an entry into the smf_settings table
pretty_bufferusecache
And set the value to 0
Quote from: vbgamer45 on April 26, 2015, 11:31:10 AM
insert an entry into the smf_settings table
pretty_bufferusecache
And set the value to 0
Help me little more, where do I have the code to change to 0, I don't see smf_settings table
Update errors. Some of my topics and broads that I click goes to the login page as if it's in maintenance and as for custom pages that I have gets a 404 or 403 error.
When I uncheck the box to disable Pretty URLs it's all working good and with topics and broads all good. Away to have pretty URLs without this problem
Hello,
With 2.0.10 and responsive curve I see the attached screenshot. Should I have a "go!" button on that screen or something?
Fwiw, there's a control in there that I'd like to access - I made a tweak as suggested here to show a full breadcrumb (http://www.simplemachines.org/community/index.php?topic=361506.0) (ie add home above forum) but it's caused an issue on the forum homepage - it shows the wrong title for the domain name home. But:
http://domain/forum/index.php?action=forum - correct breadcrumb
http://domain/forum/index.php - incorrect breadcrumb
So I'd like to have the default forum home link go to index.php?action=forum rather than index.php and looking at https://code.google.com/p/prettyurls/downloads/list this might seem to be a way to accomplish this?
Is there an entry in subs.php that I could try changing instead?
Thank you for your time,
-Johan
@vbgamer45 Any idea on my issue?
Quote from: DionK on April 23, 2015, 08:25:30 AM
I have another issue too. I created a board called "Test" and it showed correctly as mysite.com/test/. I then deleted it and added a board again called "Test", but now the board url shows as mysite.com/test-70/ which is the id_board, even though there's no other board with the same name in the database. Running the maintenance task does nothing. Why is this happening?
I searched around and found a few instances of this issue, but no real clear answer to it.
No idea.
Hi,
Is this as it should be?
http://www.simplemachines.org/community/index.php?topic=146969.msg3808194#msg3808194
Thx
Haven't tested with the responsive mod.
Quote from: Empire KickAss on April 27, 2015, 12:49:40 PM
Update errors. Some of my topics and broads that I click goes to the login page as if it's in maintenance and as for custom pages that I have gets a 404 or 403 error.
When I uncheck the box to disable Pretty URLs it's all working good and with topics and broads all good. Away to have pretty URLs without this problem
Weird, I change in under broads and pretty URL, still get a 403 error
Quick dumb question - my webslogs are full of thousands and thousands of errors because the directory URLs don't specify a trailing slash. ie:
QuoteFile does not exist: /home/plat-linnas01/e/extreme-macro.co.uk/user/htdocs/forum/buy-sell, referer: http://extreme-macro.co.uk/forum/buy-sell/testing-exif/
Could you suggest a quick fix - what and which files to change?
many thanks
Turn off apache error logging for non crtical errors.
Quote from: vbgamer45 on April 30, 2015, 02:47:47 PMTurn off apache error logging for non crtical errors.
Thanks - hosting company won't go for that. Is there a fix in your mod?
No fix for that.
k, thx
I was messing around and noticed a Pretty URLs link in my ManageBoards section. I then noticed the following in my error log:
Quoteindex.php?pretty;action=admin&area=manageboards;sa=pretty;boardid=5
8: Undefined index: pretty_board_url_title
File: /(path)/Sources/ManageBoards.php
Using version 1.1.2 Pretty URLs in SMG 2.0.10
I have a set up a re direct to a new sub domain and I get extra red stuff "?pretty;board=...." etc in the displayed URL when a redirect is done:
How is it working for you?
Try this:
http://www.brand-newhomes.co.uk/forum/smf/landscaping-and-gardening/watering-a-lawn/
But how can I get rid of the extra bit (you have to click on the browser to see it)
http://forum.brand-newhomes.co.uk/landscaping-and-gardening/watering-a-lawn/?pretty;board=landscaping-and-gardening;topic=watering-a-lawn.0
Sometimes the name of a thread is getting changed. Is there a way to update the Pretty URL to match the new name?
Thanks in Advance!
Yes http://code.google.com/p/prettyurls/wiki/TroubleShooting
Thanks for the fast reply. You mean the repair_settings.php correct?
Is there a way to implement this in the settings of Pretty URL?
I have an Error that still not fixed.
I have some pages/sub pages and redirect page on my site that gets an 403 error, I do have SEO installed (Optimus Brave). With this weird error, when I click on the pages to threads that does work with Pretty URL it logs me off or other-wards it shows that I'm not logged in even that I am if I click on the home page, When I uncheck the box to disable Pretty URLs it's all working good.
I only started having this problem after I upgraded from 2.0.9 to 2.0.10
Do NOT install this mod if you plan on installing other scripts under the same domain, the changes it makes to your HTACCESS files, makes it difficult/impossible/breaks things. It serves little/no purpose anymore.
You can't install blogs, chat scripts ect on same domain without major work, cause it snatches the URLs and tries to prettiefy them.Installing it on a forum under a folder/sub dir makes a difference, if its on your root, its gonna cause problems, if you install somewhere else WHATEVER.COM/FORUM ect, then probs will be minimum.
well, of course...
if you plan to install other things on your site, you should not have SMF in the root anyway.
You can use this MOD SMF 2.1 ??????????
unlikely...
and you should not be using SMF 2.1 beta2 on a production site anyway...
Is it a known issue that when a member's name begins with # and you have pretty profile URLs enabled it says profile does not exist? If it is, is there a fix?
Today i installed my SMF forum
How i can know do i have mod_rewrite and .htaccess files.
If i not have mod_rewrite and .htaccess files ,how to add them ??
I not find this on google
Tnx
The mod creates .htaccess files if needed
Quote from: vbgamer45 on August 16, 2015, 11:59:53 AM
The mod creates .htaccess files if needed
I found .htaccess file (i was enabled hidden files) ..but what about mod_rewrite
Mod_rewrite is part of the apache webserver needs to be enabled.
Quote from: vbgamer45 on August 16, 2015, 12:43:01 PM
Mod_rewrite is part of the apache webserver needs to be enabled.
how i enable ??
Search on bing or google for help.
Quote from: Shuban on August 13, 2015, 12:39:06 AM
Is it a known issue that when a member's name begins with # and you have pretty profile URLs enabled it says profile does not exist? If it is, is there a fix?
Any word?
No fix for that currently. For now I would rename the member and disallow that character.
I too am having an issue with a double slash. I have checked both the pretty_root_url AND the forum root - neither have a trailing slash (see attachment).
Funny thing is, it's only causing a problem with the Home link on my main menu, i.e., http://www.mysite.com//index.php and not (apparently) any other links like: http://www.mysite.com/calendar/
Sorry if I am missing something obvious. Thanks.
Ok guys, a bit of urgent help needed, if anyone can help...
Today we updated our server's OS (Debian) and with it, Apache. I guess that's what caused all this, because after we updated all pages of the forum (save the index) go to 404s. With Apache's update we had to merge the new config, so maybe something broke there. My question is, how can I either disable the PrettyURLs mod through shell or possibly regenerate its cache, if that would help?
Thanks!
Check this out to temp disable
https://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: vbgamer45 on September 14, 2015, 03:04:37 PM
Check this out to temp disable
https://code.google.com/p/prettyurls/wiki/TroubleShooting
You. Are. A. Godsend.
Thanks so much...
Glad to help.
Oh yes we did :) I didn't know about that wiki, going to thoroughly read it tomorrow!
Just not working; http://forum.glj-ps2.de/diskussionen-28/
HTTP-Fehler 404.0 - Not Found
- Windows Server - Not working?
Any thoughs?
If you are running apache on windows requires mod_rewrite
Otherwise iis i believe requires isapi rewrite.
Here's an interesting issue that PrettyURLs causes when used with Tapatalk:
As you know Google has started indexing sites to use with apps, so you can open results in said apps on your mobile devices. Tapatalk seems to be inserting a section of code into the pages to do that, with URLs that begin with
<link href="android-app://com.quoord.tapatalkpro.activity...
.
However, PrettyURLs is prepending the base URL of the forum to it, so it becomes
<link href="http://www.cpcwiki.eu/forum/android-app://com.quoord.tapatalkpro.activity/...
(that's my forum btw, obviously).
The Tapatalk team has been extremely helpful in guiding me with that and they're trying to implement a workaround, but I thought I'd mention it here so that maybe PrettyURLs can be updated to prevent that problem?
Thanks!
Quote from: Gryzor on September 18, 2015, 05:40:16 AM
Here's an interesting issue that PrettyURLs causes when used with Tapatalk:
As you know Google has started indexing sites to use with apps, so you can open results in said apps on your mobile devices. Tapatalk seems to be inserting a section of code into the pages to do that, with URLs that begin with
<link href="android-app://com.quoord.tapatalkpro.activity...
.
However, PrettyURLs is prepending the base URL of the forum to it, so it becomes
<link href="http://www.cpcwiki.eu/forum/android-app://com.quoord.tapatalkpro.activity/...
(that's my forum btw, obviously).
The Tapatalk team has been extremely helpful in guiding me with that and they're trying to implement a workaround, but I thought I'd mention it here so that maybe PrettyURLs can be updated to prevent that problem?
Thanks!
Hi, i´m Jagoba from Tapatalk. The problem is located in the hook to QuerysString.php, exactly the line that cause that issue is :
// Rewrite the buffer with Pretty URLs!
if (!empty($modSettings['pretty_enable_filters']))
{
require_once($sourcedir . '/PrettyUrls-Filters.php');
$buffer = pretty_rewrite_buffer($buffer); //this function cause the issue
}
I am just testing a Tapatalk plugin update that will solve the issue, hooking us after that change to restore our links back to correct ones, but I think that issue can be affecting other plugins. If this plugins devs need more info feel free on contact me.
Problem there!
I just don't know what happened with some of my links:
If I try modify any post then link has broken:
SMF expect:
?action=post;msg=382
But all links looks like:
?action=post%3bmsg=382
I think this error is from bad coding not utf8. What I need to fix?
Hi Guys;
İ'm using aeva mod 1.4c and prettyurls. İ want to file name on link. For example; i have a picture with name of "Abstract" in album "Pictures". Now i can see this as like as "media/item/3/". How can i change it to media/Album name/File Name/? in example media/Pictures/Abstract/??
Hi
I had a SMF forum at this address: http://www.electronica-duartes.com/index.php
I installed Pretty URLs mod in July 2013.
A few days ago, I had to move the forum to this address: http://www.electronica-duartes.com/forum/index.php
From there, I started having problems with the board menu. I had to uninstall the Pretty URLs mod to the menu back to work. For the Pretty URLs old worked installed the Pretty URLs Reverter mod and did the redirect using .htaccess file all the frames of the forum and was placed in the server root. This is an example: RewriteRule ^/?dicas-tvs/(.*)$ /forum/dicas-tvs/$1 [R=301,L]
However, the old Pretty URLs continue giving 404 error.
Everything that has been done is on the page below: http://www.simplemachines.org/community/index.php?topic=540227.0;all#lastPost
Someone I can lend a hand to the Pretty old URLs work again at all in the fórum?
Thank you.
Best regards
Mário Duarte Santos
Hi
I have a simple requirement that my post url should end with /mg121 for some reason. Can you tell me which file to edit ?
e.g: URL : http://custom.simplemachines.org/mods/?mod=636
after: http://custom.simplemachines.org/mods/?mod=636/msg121
Quote from: MoleDJ on September 18, 2015, 06:38:25 AM
Quote from: Gryzor on September 18, 2015, 05:40:16 AM
Here's an interesting issue that PrettyURLs causes when used with Tapatalk:
As you know Google has started indexing sites to use with apps, so you can open results in said apps on your mobile devices. Tapatalk seems to be inserting a section of code into the pages to do that, with URLs that begin with
<link href="android-app://com.quoord.tapatalkpro.activity...
.
However, PrettyURLs is prepending the base URL of the forum to it, so it becomes
<link href="http://www.cpcwiki.eu/forum/android-app://com.quoord.tapatalkpro.activity/...
(that's my forum btw, obviously).
The Tapatalk team has been extremely helpful in guiding me with that and they're trying to implement a workaround, but I thought I'd mention it here so that maybe PrettyURLs can be updated to prevent that problem?
Thanks!
Hi, i´m Jagoba from Tapatalk. The problem is located in the hook to QuerysString.php, exactly the line that cause that issue is :
// Rewrite the buffer with Pretty URLs!
if (!empty($modSettings['pretty_enable_filters']))
{
require_once($sourcedir . '/PrettyUrls-Filters.php');
$buffer = pretty_rewrite_buffer($buffer); //this function cause the issue
}
I am just testing a Tapatalk plugin update that will solve the issue, hooking us after that change to restore our links back to correct ones, but I think that issue can be affecting other plugins. If this plugins devs need more info feel free on contact me.
Simple fix, I had similar problems with Open Graph. In PrettyUrls-Filters.php find.
if (substr($match,0,10) == 'javascript')
continue;
Add after
if (substr($match,0,11) == 'android-app')
continue;
Haven't tested it but it should work.
I need to dump some of my work into this fantastic mod. VB where are you hosting files now, Google Code is no longer :'-(
All my mods are on github
https://github.com/VBGAMER45/SMFMods
Will add that fix now.
Update!
1.1.3 Thanks to nend
! Skip rewriting urls for the tapatalk android app
Quote from: SMFHacks.com Team on October 30, 2015, 12:03:22 AM
Update!
1.1.3 Thanks to nend
! Skip rewriting urls for the tapatalk android app
Ah, TT's latest versions don't have the issue, but good to know :)
Hi,
I am using smf 2.0.9.
As for the version of Pretty URLs, the browse packages in admin shows the version as 1.1.2. However the Pretty URLs Administration panel shows this:
Version info
Current version: 1.0RC5
Latest version: 1.1 Download
The issue that I am facing is that while the urls were being written correctly earlier, now the url s appear like this:
http://www.chemtopper.com/smf/ap-chemistry/1087108810801082108610831100108510991077-1082/
The correct url should be something like:
http://www.chemtopper.com/smf/ap-chemistry/how-many-liters-of-oxygen/
I am not able to make out why this has happened,
Request your help in sorting this out.
Thanks
That looks awkward.
Are you familiar with phpmyadmin? I say examine the topic table for that topic, maybe there is something awkward in it. Also if the post had a different name before it will use the first name.
The pretty topics table in the database has a limit on how many characters are allowed, maybe this is how it got truncated in the end. VB does the mod check the lenght before inserting into db?
Yeah looks like the db truncated it. I don't know if this would be something to fix or not.
What happened was your topic title was over 80 characters, however the value stored in the database is still usable. Only way to fix it for future is to chop the title before adding or increase the db table size, I vote for the first one if any fix is to be applied. I say if applied because the data is still usable, not pretty but still valid.
Hi,
Thanks for the reply.
However to check I made a small post with the topic as - check post.
The url generated is http://www.chemtopper.com/smf/ap-chemistry/10821072108810901080108510821080-108210861084/
I did check from phpmyadmin and the entry there in pretty_topic_urls is:
10821072108810901080108510821080-108210861084
Could you throw some light on what is going wrong here.
Also how to check that I have the latest version since the data shown in the package list and pretty url dashboard is different as follows:
browse packages in admin shows the version as 1.1.2. However the Pretty URLs Administration panel shows this:
Version info
Current version: 1.0RC5
Latest version: 1.1 Download
Wouold it be worth to remove and install again or would it break the links if reinstalled.
Thanks again.
Give this a go change the names in the tables manually and repair the database in the SMF admin panel.
I suspect the large title of the previous topic did something.
Hi,
I did try to change the url in the pretty_topic_urls table against the id_topic for the post.
However the url appears the same ie http://www.chemtopper.com/smf/ap-chemistry/10821072108810901080108510821080-108210861084/
Is there something else also reqd to be changed ?
Thanks again.
Also can you let me know about this part:
How to check that I have the latest version since the data shown in the package list and pretty url dashboard is different as follows:
browse packages in admin shows the version as 1.1.2. However the Pretty URLs Administration panel shows this:
Version info
Current version: 1.0RC5
Latest version: 1.1 Download
Wouold it be worth to remove and install again or would it break the links if reinstalled.
Thanks again.
Attached you will find the Spanish translation for v1.1.3, both in UTF-8 format and using entities for use with Latin1
Bests,
Thanks for the translation
Could you please add feature to support Vietnamese ?
Thanks
Quote from: t2hol on November 16, 2015, 10:05:47 AM
Could you please add feature to support Vietnamese ?
Open the Modifications.english.php file with any simple text editor (notepad or similar NEVER Microsft Word), translate all the strigs and save it as Modifications.vietnamese.php (or whatever the name convention is for your particular language). Then you can share it in this post. Hopefully it will be included in next release of the mod.
If you want to manually add that language, follow these steps:
1. Open the file package-info.xml
2. Inside that file, look for:
<require-file name="PrettyUrls.english.php" destination="$languagedir" />
3. Add afterwards:
<require-file name="PrettyUrls.vietnamese.php" destination="$languagedir" />
4. Look for:
<remove-file name="$languagedir/PrettyUrls.english.php" />
6. Add:
<remove-file name="$languagedir/PrettyUrls.vietnamese.php" />
Bests,
Back in 2008 i had the software in use called "SEO4SMF". This was done by a guy from eastern europe. He had a neat little developer Forums and the Software he was doing was top notch.
It seems the mod is now dead and VBGAMER owns the name "SEO4SMF"? Is that correct? What happened with the original one? It was such a good software with many SEO things on top of human friendly URLs.
Often just left and that was it. Happens a lot people can bored and move on to other projects.
Quote from: vbgamer45 on November 30, 2015, 07:45:14 PM
Often just left and that was it. Happens a lot people can bored and move on to other projects.
Thanks, so is your mod doing all those features of the old SEO4SMF? If not, cant we just revive it and make it run with 2.x ?
I might have an old version still on my PC somewhere
no. The license for 1.1.x mods (and some 2.0.x mods does not allow re-release or redistribution of modified code by anyone other than the original author
Does anyone know how to get the links on the forum to output user URLs as IDs? (/profile/1/ instead of /profile/user/)? I understand .htaccess rewrites, but I can't find where the mod changed all the urls to that structure on the forum.
EDIT: I figured it out myself. For those who are wanting the same thing, here you go (it's really easy):
in .htaccess
Find
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
Replace
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;u=$1 [L,QSA]
in /Sources/PrettyUrls-Filters.php
Find
$memberNames[$row['id_member']] = rawurlencode($row['member_name']);
Replace
$memberNames[$row['id_member']] = rawurlencode($row['id_member']);
Done. :)
This mod messed up my forum. I have SSL connection + this mod + rewrite rules for SSL
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteBase /
I can't make new messages, posts, edit posts.
All of my links don't have https.
Any help please.
I haven't tested it with SSL. Follow the links in the top of the of this totpic to disable it.
I want use SSL so why I need to disable it? I saw some issues. Links coding has changed from:
prettyurl/?action=post;msg=385
to
prettyurl/?action=post%3bmsg=385
Encodind and decoding issue.
If the mod isn't working for your forum you should disable it. I haven't tested with SSL use at your own risk.
I just noticed that when installed pretty urls last week wen I had images in the board name i.e.<img> tags etc.. when I enabled it the url also included the img tags.. any i have removed the images fron the board names and left only text names.. installed again the pretty urls but it still shows the urls with image tag in it.
where can I clean the old urls so pretty urls can be generated again?
fyi.. I dif download the revertor, uploaded it but I don't see Install mod option, only list files and delete.. hiw can I use that?
I have now disabled pretty urls, uninstalled it, but haven't deleted the .htacess and database tables yet..
regards
Under Admin -> Boards
With pretty urls installed there is a pretty urls link to modify the board url
yet another reason why you should NEVER include HTML in the board name
@vbgamer Thanks
@kindred Yep Lessonn learned ;) thanks for your warning..
Hey guys does anyone know how to add that the pretty urls also shows the parent main board at the start of the url instead of just showing subtopic and topic ?
Hi,
how to change:
Quote/index.php?action=community
to
Quote/community/
I use PortaMx 1.54 and Pretty URLs
please help
Regards
It should do it automatically if you have rewrite actions enabled.
I turned on
my htacces
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: December 22, 2015, 18:00
RewriteEngine on
RewriteBase /
# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|contact|credits|deletemsg|display|dlattach|editpoll|editpoll2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(emailuser|findmember|groups|help|gallery|helpadmin|im|jseditor)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jsmodify|jsoption|lock|lockvoting|login|login2|logout|markasread)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|related|reminder|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic|sitemap)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|SMFQuiz|SMFQuizAnswers|SMFQuizStart|SMFQuizEnd)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(SMFQuizQuestions|SMFQuizDispute|SMFQuizAjax|SMFQuizExport|stats|sticky|theme|topicsolved)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./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]
# PRETTYURLS MOD ENDS
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/index.php$
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)$ http://ewmapa.pl/ [L,R=301]
#Stop Bandwidth Theft from
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?ewmapa\.pl/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://ewmapa.pl/hlsteal.png [L]
# Sitemap
RewriteRule ^sitemap.xml$ /index.php?action=sitemap;xml
and screen on attach
Quote from: MESWEB on December 13, 2015, 08:28:11 AM
This mod messed up my forum. I have SSL connection + this mod + rewrite rules for SSL
...
I can't make new messages, posts, edit posts.
All of my links don't have https.
Any help please.
Look into your SMF-Database for 'smf_settings'.Change the variable 'pretty_root_url' to https.
You need to disable/enable the url-rewriting once afterwards.
Quote from: AllMassive on December 26, 2015, 12:20:00 PM
You need to disable/enable the url-rewriting once afterwards.
Can You show me How .htaccess should looks like? For https and actions.
[Edit]
looks like working but I see issue:
home url is http not https
[code
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: December 22, 2015, 18:00
RewriteEngine on
RewriteBase /
# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|contact|credits|deletemsg|display|dlattach|editpoll|editpoll2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(emailuser|findmember|groups|help|gallery|helpadmin|im|jseditor)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jsmodify|jsoption|lock|lockvoting|login|login2|logout|markasread)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|related|reminder|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic|sitemap)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|SMFQuiz|SMFQuizAnswers|SMFQuizStart|SMFQuizEnd)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(SMFQuizQuestions|SMFQuizDispute|SMFQuizAjax|SMFQuizExport|stats|sticky|theme|topicsolved)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./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]
# PRETTYURLS MOD ENDS
Quote from: vbgamer45 on December 27, 2015, 12:52:30 PM
[code
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: December 22, 2015, 18:00
RewriteEngine on
RewriteBase /
# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|contact|credits|deletemsg|display|dlattach|editpoll|editpoll2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(emailuser|findmember|groups|help|gallery|helpadmin|im|jseditor)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jsmodify|jsoption|lock|lockvoting|login|login2|logout|markasread)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|related|reminder|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic|sitemap)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|SMFQuiz|SMFQuizAnswers|SMFQuizStart|SMFQuizEnd)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(SMFQuizQuestions|SMFQuizDispute|SMFQuizAjax|SMFQuizExport|stats|sticky|theme|topicsolved)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./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]
# PRETTYURLS MOD ENDS
OMG! I'm asking about rewrite rules for HTTPS not for default. BTW do You know something about programming?
No sorry those rules work for https....
not working I still got community
Quote from: vbgamer45 on December 27, 2015, 01:44:45 PM
No sorry those rules work for https....
This is working for https? Are You kidding me? This rules don't redirect me to https urls.
yes it works that. .htaccess doesn't need to change you just need to change the base url in pretty urls to https:/// check a couple posts back someone explains it.
Yes i know and I'm update this value in db. But when I type my url like http://domain.com then I don't be redirect to https://domain.com
This is code for https. Do You have any basic knowledge about programming?
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule .* https://domain.com/%{REQUEST_URI} [R,L]
Yes i know how to do all of that.....But you weren't asking that...and if you know how to do it then why are you asking me....
Because this rewrite rules working fine only for few days, after that I can't write new posts or modify existing. I think this is a bug from cache or something like this.
Quote from: cieplutki on December 27, 2015, 02:19:43 PM
not working I still got community
Try this :
Replace:
RewriteRule ^(coppa|contact|credits|deletemsg|display|dlattach|editpoll|editpoll2)/?$ ./index.php?pretty;action=$1 [L,QSA]
With:
RewriteRule ^(coppa|community|contact|credits|deletemsg|display|dlattach|editpoll|editpoll2)/?$ ./index.php?pretty;action=$1 [L,QSA]
This should work.
Quote from: MESWEB on December 27, 2015, 12:41:22 PM
looks like working but I see issue:
home url is http not https
Sound like you didnt change the main-url insinde your SMF.
Are you sure that you changed the main forum url in Configuration/Server/Database to the https:// url ?
Quote from: MESWEB on December 27, 2015, 02:49:16 PM
Yes i know and I'm update this value in db. But when I type my url like http://domain.com then I don't be redirect to https://domain.com
You need access to the apache-config for your domain port 80 virtual domain - you need:
Redirect permanent / https://your-forum.url/
Yes I have changed url to https in configuration/database/server already.
Sorry I don't have access to server configuration files. I can use only .htaccess
I do not use https: only http:
@Cieplutki we speak about https not about Your problem. To solve Your problem try use my solution from this post:
http://www.simplemachines.org/community/index.php?topic=146969.msg3853420#msg3853420
not working, entries will be eight.
maybe something like that:
RewriteCond %{REQUEST_URI} ^/index.php?action=community$
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)$ http://ewmapa.pl/community [L,R=301]
Quote from: MESWEB on December 28, 2015, 04:46:14 AM
Sorry I don't have access to server configuration files. I can use only .htaccess
.htaccess is only for url-rewriting 'on-the-fly'.
For the real forward to https you need that entry in the apache-vhost.cfg
Quote from: Cheat on December 05, 2015, 03:41:43 PM
Does anyone know how to get the links on the forum to output user URLs as IDs? (/profile/1/ instead of /profile/user/)? I understand .htaccess rewrites, but I can't find where the mod changed all the urls to that structure on the forum.
EDIT: I figured it out myself. For those who are wanting the same thing, here you go (it's really easy):
in .htaccess
Find
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
Replace
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;u=$1 [L,QSA]
in /Sources/PrettyUrls-Filters.php
Find
$memberNames[$row['id_member']] = rawurlencode($row['member_name']);
Replace
$memberNames[$row['id_member']] = rawurlencode($row['id_member']);
Done. :)
Can this be officially added as an option by any chance?
Having some issues with getting a WordPress site that's in a sub-directory working. I assume it's something to do with PrettyURL's. I posted something in the general support forums, and they sent me here. More info is here: http://www.simplemachines.org/community/index.php?topic=542474.0
I've tried adding /blog to the "Skip Action List" but it doesn't seem to be working.
Thanks.
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: vbgamer45 on January 05, 2016, 09:22:16 AM
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Thanks, that worked. Just in case anyone didn't know, here's the line I added to my htaccess file. My WordPress blog is at /blog.
#Rule to allow access to blog.
RewriteRule ^blog/?$ /blog/index.php [L,QSA]
Hi,
i had uninstalled this mod and used the reverter packge afterwards. This created:
RewriteBase /forum
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
amongst other rules within the .htaccess. Today i've noticed that all requests, even not valid ones like:
http://example.com/forum/abc
are redirected to:
http://example.com/forum/index.php
The main difference is, that a valid call like:
http://example.com/forum/news
is redirecting correctly to:
HTTP/1.1 301 Moved Permanently
Location: http://example.com/forum/index.php?board=2.0
...
where an invalid call like:
http://example.com/forum/abc
only gets an:
HTTP/1.1 200 OK
...
Does anyone has any insight how this rewrite can be improved so only valid requests get the redirect? Thanks in advance for a reply.
Quote from: Fisch.666 on January 07, 2016, 08:38:56 AM
Does anyone has any insight how this rewrite can be improved so only valid requests get the redirect? Thanks in advance for a reply.
I'm pretty sure that if the file ACTUALLY exists at that URL, then the file is pulled instead of the URL being translated. Otherwise, the themes wouldn't be able to be loaded so the forum could be seen....
But what I think you are asking is this: "Can the rewrite be rewritten to only redirect to valid topics/boards/messages/etc?" My question to you would "How is the .htaccess file supposed to ascertain this without access to the database?" The Apache .htaccess doesn't have access to the database at all, and all "translation" of the Pretty-fied URL is handled within the source files. So any "improvement" to the handling would have to happen there, not within .htaccess.....
Hope this helps!
Hey, thats absolutely true. The .htaccess itself also can't know that:
http://example.com/forum/news
should be rewritten to:
http://example.com/forum/index.php?board=2.0
so the issue is then probably more somewhere in the files the converter package is providing?
Is there any way to force a total refresh of urls ? or to manually edit some ?
Only in the database can you manually edit them.
Board urls can be edited in admin area.
Quote from: AllMassive on December 27, 2015, 07:45:01 PM
Quote from: MESWEB on December 27, 2015, 02:49:16 PM
Yes i know and I'm update this value in db. But when I type my url like http://domain.com then I don't be redirect to https://domain.com
You need access to the apache-config for your domain port 80 virtual domain - you need:
Redirect permanent / https://your-forum.url/
Just tested on another install - apparently i was wrong - its posssible to add this redirect into the .htaccess.
Quote from: AllMassive on January 09, 2016, 07:29:06 PM
Just tested on another install - apparently i was wrong - its posssible to add this redirect into the .htaccess.
So how .htaccess rewrite rule should like?
Hi,
just digged into this:
Quote from: Fisch.666 on January 08, 2016, 10:30:49 AM
so the issue is then probably more somewhere in the files the converter package is providing?
The redirect is done within the Sources/MessageIndex.php part ( // 301 redirects) that gets edited by the prettyurls-reverter-1-0RC2 package.
Currently i can't find the place where the decision is done that board exists and should be redirected within the MessageIndex.php and where only a 200 should be thrown. Any hints / pointers are welcome.
Quote from: vbgamer45 on January 09, 2016, 06:54:38 PM
Only in the database can you manually edit them.
Board urls can be edited in admin area.
Allright, I'll edit the database then, thanks for your answer !
Quote from: MESWEB on January 09, 2016, 08:02:15 PM
Quote from: AllMassive on January 09, 2016, 07:29:06 PM
Just tested on another install - apparently i was wrong - its posssible to add this redirect into the .htaccess.
So how .htaccess rewrite rule should like?
Put a single line into your .htaccess
Redirect permanent / https://your-forum.url/
Quote from: Fisch.666 on January 09, 2016, 08:41:13 PM
The redirect is done within the Sources/MessageIndex.php part ( // 301 redirects) that gets edited by the prettyurls-reverter-1-0RC2 package.
Currently i can't find the place where the decision is done that board exists and should be redirected within the MessageIndex.php and where only a 200 should be thrown. Any hints / pointers are welcome.
Ok, put some time into that and found the solution. The decision is done within the Sources/QueryString.php part which gets added by the prettyurls-reverter-1-0RC2:
$board = (int) isset($pretty_board_lookup[$_REQUEST['board']]) ? $pretty_board_lookup[$_REQUEST['board']] : 0;
If the $pretty_board_lookup isn't successful an boardid of 0 is assumed causing the 200 to the index of the board. As i don't want to have a 200 for each request this can be easily fixed:
Open Sources/QueryString.php
Search:
$board = (int) isset($pretty_board_lookup[$_REQUEST['board']]) ? $pretty_board_lookup[$_REQUEST['board']] : 0;
Add after:
if($board == 0) {
header('HTTP/1.1 404 Not Found');
die;
}
Maybe not the best solution but works for me.
Quote from: AllMassive on January 09, 2016, 09:49:02 PM
Put a single line into your .htaccess
Redirect permanent / https://your-forum.url/
This is wrong rule, but I found new rule and I put inside. So now I wait and see what happens. Many thanks for helping me.
Has there been any sort of progress towards compatibility with custom actions mod? :)
Or is there something I can add to htaccess for my custom action "store"? :)
No progress with custom actions not planned at this time
I have a couple of actions that aren't working including "store" and "recenttopics" (from the ajax recent topics mod). Is there a way I can add them manually? :)
Hi all,
How can I remove msgxxx and topicseen in url?
Ex: http://hoidulich.com/nha-hang-quan-an/phan-mem-quan-ly-quan-cafe-mien-phi-hoan-toan/msg115173/?topicseen#msg115173
To http://hoidulich.com/nha-hang-quan-an/phan-mem-quan-ly-quan-cafe-mien-phi-hoan-toan/
Thank you very much.
why?
The #msg... is an anchor link. So, you can't remove that without affecting where the link goes on the page...
and topicseen is an argument that is needed for the database.
It would be good to remove them from the URL so you can do things like pinterest pins from your browser, people linking can not have that crap in there....we just want the canonical there really!....after it's already loaded it. I would go for that too because it's a huge hiccup for me.
but it HAS TO BE in the URL, if you want to use the anchor....
If you take it out, the link will just go to the top of the page.
That anchor link is only used when linking to a SPECIFIC message in a thread.
I understand that, but why can it change ?topic=123 into topictitle but not ?topic=123.msg115173;topicseen#new into topictitle?
Even if it starts as that and then the url updates or something? Why can't it send where it's going through post/get and that can anchor it?
I'm not meaning when linking to specific messages like this, talking about the new post thing when coming in from unread (or the new icon in general) :):
http://www.simplemachines.org/community/index.php?topic=146969.msg3859042#msg3859042
Hello everyone!
I' want to update my aging 2.0.6. When I try to install 2.0.7, I get a warning about an edit to News.php:
Replace:
$val = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$/e', '\'\' . $scripturl . \'/\' . strtr(\'$1\', \'&;=\', \'//,\') . \'.html$2\'', $val);
return $val;
with
$val = preg_replace_callback('~^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$~', create_function('$m', 'global $scripturl; return $scripturl . \'/\' . strtr("$m[1]", \'&;=\', \'//,\') . \'.html\' . (isset($m[2]) ? $m[2] : "");'), $val);
return $val;
Now, of course, the warning kicks in because that sections has been changed, as far as I can see, by PrettyURLs, and the whole original section has been commented out.
Any advice as to how to proceed?
Thanks!
Proceed make sure you update to the latest smf version though
So you mean I could just ignore the warning?
As for "latest version": the forum wants to update incrementally it would seem, do you mean continue on to update till the latest version as a general advice or go directly to the last one?
Thanks for your reply :)
Yes just ignore.
Yes upgrade incrementally all the way to the current.
yay! Thanks :)
I haven't replied to this topic awhile, been optimizing the script a little, trying to squeeze some extra performance from it.
On my original cache experiment I believe a few years back, might as well chunk that. :laugh:
Lately I have been caching only topics as that is one of the main database calls in the script and all the rest is processed which a good server should be able to handle just fine.
My Pretty URLs script now days.
<?php
// NEnd's custom Pretty URLs OB rewrite
// Based on Version 1.0 PrettyUrls-Filters.php
if (!defined('SMF'))
die('Hacking attempt...');
// Rewrite the buffer with Pretty URLs!
function pretty_rewrite_buffer($buffer)
{
global $boardurl, $context, $modSettings, $smcFunc;
// Remove the script tags now
$context['pretty']['scriptID'] = 0;
$context['pretty']['scripts'] = array();
$buffer = preg_replace_callback('~<script.+?</script>~s', 'pretty_scripts_remove', $buffer);
// Find all URLs in the buffer
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=|<meta property=\"og:url\" content=|<meta property=\"og:image\" content=|<meta property=\"og:video\" content=)(\"[^\"#]+|\'[^\'#]+)~';
$urls = array();
$context['pretty']['cached_urls'] = array();
foreach ($context['pretty']['search_patterns'] as $pattern) {
preg_match_all($pattern, $buffer, $matches, PREG_PATTERN_ORDER);
foreach ($matches[2] as $match) {
// Rip out everything that shouldn't be cached
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|(se)?sc=[^;]+|' . $context['session_var'] . '=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
// Absolutise relative URLs
if (!preg_match('~^[a-zA-Z]+:|^#|@~', $match) && SMF != 'SSI')
$match = $boardurl . '/' . $match;
if (substr($match,0,7) == 'mailto:' || substr($match,0,10) == 'javascript' || !strstr($match, '?'))
continue;
if (substr($match,0,strlen($boardurl)) != $boardurl || substr($match,strlen($boardurl),8) == '/Sources' || substr($match,strlen($boardurl),7) == '/Themes' || substr($match,strlen($boardurl),4) == '/img' || substr($match,strlen($boardurl),8) == '/Smileys' || substr($match,strlen($boardurl),8) == '/avatars')
continue;
// if (($data = cache_get_data('pretty-'.$match, 60)) != null) {
// $context['pretty']['cached_urls'][$match] = unserialize($data);
// } else {
$urls[$match] = array('url' => $match);
// }
}
}
// Procede only if there are actually URLs in the page
if (count($urls) != 0)
{
// Run each filter callback function on each URL
$filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);
foreach ($filter_callbacks as $callback)
$urls = call_user_func($callback, $urls);
// Fill the cached URLs array
foreach ($urls as $url_id => $url)
{
if (!isset($url['replacement'])) {$url['replacement'] = $url['url'];}
$url['replacement'] = str_replace("\x12", '\'', $url['replacement']);
$url['replacement'] = preg_replace(array('~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('%22', ';', '?', ''), $url['replacement']);
$context['pretty']['cached_urls'][$url_id] = $url['replacement'];
// cache_put_data('pretty-'.$url_id, serialize($url['replacement']), 60);
}
}
// Put the URLs back into the buffer
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=|<meta property=\"og:url\" content=|<meta property=\"og:image\" content=|<meta property=\"og:video\" content=)(\"[^\"]+\"|\'[^\']+\')~';
foreach ($context['pretty']['replace_patterns'] as $pattern)
$buffer = preg_replace_callback($pattern, 'pretty_buffer_callback', $buffer);
// Restore the script tags
if ($context['pretty']['scriptID'] > 0)
$buffer = preg_replace_callback("~\x14([0-9]+)\x14~", 'pretty_scripts_restore', $buffer);
// Return the changed buffer.
return $buffer;
}
// Remove and save script tags
function pretty_scripts_remove($match)
{
global $context;
$context['pretty']['scriptID']++;
$context['pretty']['scripts'][$context['pretty']['scriptID']] = $match[0];
return "\x14" . $context['pretty']['scriptID'] . "\x14";
}
// A callback function to replace the buffer's URLs with their cached URLs
function pretty_buffer_callback($matches)
{
global $boardurl, $context;
// Is this URL in an attribute, and so will need new quotes?
$addQuotes = preg_match('~^[\"\']~', $matches[2]);
// Remove those annoying quotes
$matches[2] = preg_replace('~^[\"\']|[\"\']$~', '', $matches[2]);
// Store the parts of the URL that won't be cached so they can be inserted later
preg_match('~PHPSESSID=[^;#&]+~', $matches[2], $PHPSESSID);
preg_match('~(se)?sc=[^;#]+~', $matches[2], $sesc);
preg_match('~' . $context['session_var'] . '=[^;#]+~', $matches[2], $session_var);
preg_match('~#.*~', $matches[2], $fragment);
// Rip out everything that won't have been cached
$url_id = preg_replace(array('~PHPSESSID=[^;#]+|(se)?sc=[^;#]+|' . $context['session_var'] . '=[^;#]+|#.*$~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $matches[2]);
// Absolutise relative URLs
if (!preg_match('~^[a-zA-Z]+:|@~', $url_id) && !($url_id == '' && isset($fragment[0])) && SMF != 'SSI')
$url_id = $boardurl . '/' . $url_id;
// Stitch everything back together, clean it up and return
$replacement = isset($context['pretty']['cached_urls'][$url_id]) ? $context['pretty']['cached_urls'][$url_id] : $url_id;
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($session_var[0]) ? $session_var[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
$replacement = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|&$|;$|#$|=$~'), array(';', '?', '#', ''), $replacement);
$replacement = str_replace('index.php', '', $replacement);// Remove index.php, who needs it.
return $matches[1] . ($addQuotes ? '"' : '') . $replacement . ($addQuotes ? '"' : '');
}
// Put the script tags back
function pretty_scripts_restore($match)
{
global $context;
return $context['pretty']['scripts'][(int) $match[1]];
}
// Filter miscellaneous action urls
function pretty_urls_actions_filter($urls)
{
global $boardurl, $context, $modSettings, $scripturl;
$skip_actions = array();
if (isset($modSettings['pretty_skipactions']))
$skip_actions = explode(",",$modSettings['pretty_skipactions']);
$pattern = '`' . $scripturl . '(.*)action=([^;]+)`S';
$replacement = $boardurl . '/$2/$1';
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
{
// Don't rewrite these actions
if (!empty($skip_actions))
if (in_array($matches[2],$skip_actions))
continue;
if (in_array($matches[2], $context['pretty']['action_array']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
}
return $urls;
}
// Filter topic urls
function pretty_urls_topic_filter($urls)
{
global $context, $modSettings, $scripturl, $smcFunc, $sourcedir;
$pattern = '`' . $scripturl . '(.*[?;&])topic=([.a-zA-Z0-9]+)(.*)`S';
$query_data = array();
foreach ($urls as $url_id => $url)
{
// Get the topic data ready to query the database with
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
{
if (strpos($matches[2], '.') !== false)
list ($urls[$url_id]['topic_id'], $urls[$url_id]['start']) = explode('.', $matches[2]);
else
{
$urls[$url_id]['topic_id'] = $matches[2];
$urls[$url_id]['start'] = '0';
}
$urls[$url_id]['topic_id'] = (int) $urls[$url_id]['topic_id'];
$urls[$url_id]['match1'] = $matches[1];
$urls[$url_id]['match3'] = $matches[3];
if (($data = cache_get_data('pretty-topic-'.$urls[$url_id]['topic_id'].$urls[$url_id]['start'].$urls[$url_id]['match1'].$urls[$url_id]['match3'], 240)) != null) {
$urls[$url_id]['replacement'] = unserialize($data);
} else {
$query_data[] = $urls[$url_id]['topic_id'];
}
}
}
// Query the database with these topic IDs
if (count($query_data) != 0)
{
// Look for existing topic URLs
$query_data = array_keys(array_flip($query_data));
$topicData = array();
$unpretty_topics = array();
$query = $smcFunc['db_query']('', '
SELECT t.id_topic, t.id_board, p.pretty_url
FROM {db_prefix}topics AS t
LEFT JOIN {db_prefix}pretty_topic_urls AS p ON (t.id_topic = p.id_topic)
WHERE t.id_topic IN ({array_int:topic_ids})',
array('topic_ids' => $query_data)
);
while ($row = $smcFunc['db_fetch_assoc']($query)) {
if (isset($row['pretty_url'])) {
$topicData[$row['id_topic']] = array(
'pretty_board' => (isset($context['pretty']['board_urls'][$row['id_board']]) ? $context['pretty']['board_urls'][$row['id_board']] : $row['id_board']),
'pretty_url' => $row['pretty_url'],
);
} else {
$unpretty_topics[] = $row['id_topic'];
}
}
$smcFunc['db_free_result']($query);
$context['pretty']['db_count']++;
// Generate new topic URLs if required
if (count($unpretty_topics) != 0) {
require_once($sourcedir . '/Subs-PrettyUrls.php');
// Get the topic subjects
$new_topics = array();
$new_urls = array();
$query_check = array();
$existing_urls = array();
$add_new = array();
$query = $smcFunc['db_query']('', '
SELECT t.id_topic, t.id_board, m.subject
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
WHERE t.id_topic IN ({array_int:topic_ids})',
array('topic_ids' => $unpretty_topics)
);
while ($row = $smcFunc['db_fetch_assoc']($query))
$new_topics[] = array(
'id_topic' => $row['id_topic'],
'id_board' => $row['id_board'],
'subject' => $row['subject'],
);
$smcFunc['db_free_result']($query);
$context['pretty']['db_count']++;
// Generate URLs for each new topic
foreach ($new_topics as $row)
{
$pretty_text = substr(pretty_generate_url($row['subject']), 0, 80);
// A topic in the recycle board doesn't deserve a proper URL
if (($modSettings['recycle_enable'] && $row['id_board'] == $modSettings['recycle_board']) || $pretty_text == '')
// Use 'tID_TOPIC' as a pretty url
$pretty_text = 't' . $row['id_topic'];
// No duplicates and no numerical URLs - that would just confuse everyone!
if (in_array($pretty_text, $new_urls) || is_numeric($pretty_text))
// Add suffix '-ID_TOPIC' to the pretty url
$pretty_text = substr($pretty_text, 0, 70) . '-' . $row['id_topic'];
$query_check[] = $pretty_text;
$new_urls[$row['id_topic']] = $pretty_text;
}
// Find any duplicates of existing URLs
$query = $smcFunc['db_query']('', '
SELECT pretty_url
FROM {db_prefix}pretty_topic_urls
WHERE pretty_url IN ({array_string:new_urls})',
array('new_urls' => $query_check)
);
while ($row = $smcFunc['db_fetch_assoc']($query)) {
$existing_urls[] = $row['pretty_url'];
}
$smcFunc['db_free_result']($query);
$context['pretty']['db_count']++;
// Finalise the new URLs ...
foreach ($new_topics as $row) {
$pretty_text = $new_urls[$row['id_topic']];
// Check if the new URL is already in use
if (in_array($pretty_text, $existing_urls))
$pretty_text = substr($pretty_text, 0, 70) . '-' . $row['id_topic'];
$add_new[] = array($row['id_topic'], $pretty_text);
// Add to the original array of topic URLs
$topicData[$row['id_topic']] = array(
'pretty_board' => (isset($context['pretty']['board_urls'][$row['id_board']]) ? $context['pretty']['board_urls'][$row['id_board']] : $row['id_board']),
'pretty_url' => $pretty_text,
);
}
// ... and add them to the database!
$smcFunc['db_insert']('',
'{db_prefix}pretty_topic_urls',
array('id_topic' => 'int', 'pretty_url' => 'string'),
$add_new,
array()
);
$context['pretty']['db_count']++;
}
// Build the replacement URLs
foreach ($urls as $url_id => $url) {
if (isset($url['topic_id']) && isset($topicData[$url['topic_id']])) {
$start = $url['start'] != '0' || is_numeric($topicData[$url['topic_id']]['pretty_url']) ? $url['start'] . '/' : '';
$urls[$url_id]['replacement'] = $modSettings['pretty_root_url'] . '/' . $topicData[$url['topic_id']]['pretty_board'] . '/' . $topicData[$url['topic_id']]['pretty_url'] . '/' . $start . $url['match1'] . $url['match3'];
cache_put_data('pretty-topic-'.$urls[$url_id]['topic_id'].$urls[$url_id]['start'].$urls[$url_id]['match1'].$urls[$url_id]['match3'], serialize($urls[$url_id]['replacement']), 240);
}
}
}
return $urls;
}
// Filter board urls
function pretty_urls_board_filter($urls)
{
global $scripturl, $modSettings, $context;
$pattern = '`' . $scripturl . '(.*[?;&])board=([.0-9]+)(.*)`S';
foreach ($urls as $url_id => $url)
// Split out the board URLs and replace them
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
{
if (strpos($matches[2], '.') !== false)
list ($board_id, $start) = explode('.', $matches[2]);
else
{
$board_id = $matches[2];
$start = '0';
}
$board_id = (int) $board_id;
$start = $start != '0' ? $start . '/' : '';
$urls[$url_id]['replacement'] = $modSettings['pretty_root_url'] . '/' . (isset($context['pretty']['board_urls'][$board_id]) ? $context['pretty']['board_urls'][$board_id] : $board_id) . '/' . $start . $matches[1] . $matches[3];
}
return $urls;
}
// Filter profiles
function pretty_profiles_filter($urls)
{
global $boardurl, $scripturl, $smcFunc, $context;
$pattern = '`' . $scripturl . '(.*)action=profile;u=([0-9]+)(.*)`S';
$query_data = array();
foreach ($urls as $url_id => $url)
{
// Get the profile data ready to query the database with
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url'], $matches))
{
$urls[$url_id]['profile_id'] = (int) $matches[2];
$urls[$url_id]['match1'] = $matches[1];
$urls[$url_id]['match3'] = $matches[3];
$query_data[] = $urls[$url_id]['profile_id'];
}
}
// Query the database with these profile IDs
if (count($query_data) != 0)
{
$query = $smcFunc['db_query']('', '
SELECT id_member, member_name
FROM {db_prefix}members
WHERE id_member IN ({array_int:member_ids})',
array('member_ids' => $query_data));
$memberNames = array();
while ($row = $smcFunc['db_fetch_assoc']($query))
$memberNames[$row['id_member']] = rawurlencode($row['member_name']);
$smcFunc['db_free_result']($query);
$context['pretty']['db_count']++;
// Build the replacement URLs
foreach ($urls as $url_id => $url)
if (isset($url['profile_id']))
if (strpos($memberNames[$url['profile_id']], '%2F') !== false)
$urls[$url_id]['replacement'] = $boardurl . '/profile/' . $url['match1'] . 'user=' . $memberNames[$url['profile_id']] . $url['match3'];
else
$urls[$url_id]['replacement'] = $boardurl . '/profile/' . $memberNames[$url['profile_id']] . '/' . $url['match1'] . $url['match3'];
}
return $urls;
}
// Filter Aeva Media URLs
function pretty_aeva_filter($urls)
{
global $boardurl;
$pattern = array(
'~.*[?;&]action=media;sa=media;in=([0-9]+);(thumba?|preview)(.*)~S',
'~.*[?;&]action=media;sa=(album|item|media);in=([0-9]+)(.*)~S',
'~.*[?;&]action=media(.*)~S',
);
$replacement = array(
$boardurl . '/media/$2/$1/?$3',
$boardurl . '/media/$1/$2/?$3',
$boardurl . '/media/?$1',
);
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']) && strpos($url['url'], 'action=media') !== false)
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
return $urls;
}
?>
As you can see my attempt was to make the cache smaller by filtering out stuff I know didn't need to be processed.
Line 19 & 62, implemented support for Open Graph standard.
Line 30 no ? mark in URL means no processing needed.
Line 32, If the base URL is not that of the site, then it is external and needs no processing, also if it leads to any of these well known folders & unique folders of mine then no processing.
Line 34 - 38 & 57, commented out, old full site URL cache system I was using.
Line 173 - 177, new topic only cache system query I am now using.
Line 296, new topic only cache system save.
Line 1 - 395, maybe some stuff in there I forgot I did, ::)
Thanks nend testing out the changes on my sites now.
I am having problems with pretty urls - the home page of my forums just stopped working (white screen of death) and I eventually got it fixed by turning off pretty URLs. I uninstalled it, updated to the most recent version (I had 1.1.2 and upgraded to 1.1.3). Still no dice. I moved it to a new host to test, convinced it was a problem with the host overselling. Nope, it didn't work there either.
PHP error log shows something, but I don't know what it means or how to fix:
[12-Mar-2016 17:32:41 US/Central] PHP Fatal error: ob_start(): Cannot use output buffering in output buffering display handlers in /home/terminus/public_html/seahorsetalk/Sources/Subs.php on line 2900
Subs.php line 2900:
ob_start('ob_sessrewrite');
But I'm stuck here. This appears to be a core SMF piece. Any thoughts on what to do to fix this would be greatly appreciated. I have all my URLs broken at the moment.
I found
http://www.simplemachines.org/community/index.php?topic=468423.0
http://www.simplemachines.org/community/index.php?topic=350873.0
The consensus of those two threads seems to be it's a problem with the host. It could be. But had duplicated the forum to two different servers on two different hosts. They could both be broken, but it seems unlikely. Not impossible, but it does seem to suggest to me that it it's a consistent issue.
Commenting out ob_start('ob_sessrewrite'); fixes the problem with pretty url, but I don't think I'm supposed to do that. :/
Quote from: aquagrrl on March 13, 2016, 12:07:58 AM
The consensus of those two threads seems to be it's a problem with the host. It could be. But had duplicated the forum to two different servers on two different hosts. They could both be broken, but it seems unlikely. Not impossible, but it does seem to suggest to me that it it's a consistent issue.
Commenting out ob_start('ob_sessrewrite'); fixes the problem with pretty url, but I don't think I'm supposed to do that. :/
Ask your host if there's any reason why it's not working...hopefully they will fix it :).
hello. please is there anyway I can stop all These characters " {", " }
", " |", " \", " ^", " ~", " [", " ]", and " `". in my url link.
for example this link
http://blogurl/forum/i-reply-you-'oh-what-a-child!-(see-response-hehe)'/
want to change it to this
http://blogurl/forum/i-reply-you-oh-what-a-child-see-response-hehe/
please reply
You would have to edit the code. I don't know where exactly without looking
where can I find the code in the script ????
Hello Guys
I am getting 404 not found Error with Pretty URL mod , i have set Permission on htacess file even though its not working
should i keep any input in Skip Actions List , Please help me to fix this or suggest any other way to do it.
Are you running on a windows server if so you need ISAPI Rewrite
yes windows server where i can find , what are the steps please guide me
http://www.isapirewrite.com/ for IIS 5 and 6
For IIS 7 I am not sure you will have to research .htaccess
https://www.helicontech.com/ape/ might work for IIS7
Buddy i just need how can i do it its extension will be exe , Do i need to put any thing on my Shared space or any thing else , sorry for bothering you , Please help me
I don't think this would work if you have windows shared hosting. You would have to ask your host to install.
is there any way i can sort it out
You would have to ask your host
Been really tiding up the code on this with my preferences.
So forth,
I eliminated the need for the mod to have anything DB related.
Removed the admin panel of the mod as it was no longer needed.
Removed allot of redundancy that was there to accommodate administration options.
Edited code in the sources to reflect changes.
My filters file if you see anything worth wild.
<?php
// NEnd's custom Pretty URLs OB rewrite
// Based on Version 1.0 PrettyUrls-Filters.php
if (!defined('SMF'))
die('Hacking attempt...');
// Rewrite the buffer with Pretty URLs!
function pretty_rewrite_buffer($buffer) {
global $boardurl, $context;
// Remove the script tags now
$context['pretty']['scriptID'] = 0;
$context['pretty']['scripts'] = array();
$buffer = preg_replace_callback('~<script.+?</script>~s', 'pretty_scripts_remove', $buffer);
// Find all URLs in the buffer
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=|<meta property=\"og:url\" content=|<meta property=\"og:image\" content=|<meta property=\"og:video\" content=)(\"[^\"#]+|\'[^\'#]+)~';
$urls = array();
$context['pretty']['cached_urls'] = array();
foreach ($context['pretty']['search_patterns'] as $pattern) {
preg_match_all($pattern, $buffer, $matches, PREG_PATTERN_ORDER);
foreach ($matches[2] as $match) {
// Rip out everything that shouldn't be cached
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|(se)?sc=[^;]+|' . $context['session_var'] . '=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
// Absolutise relative URLs
if (!preg_match('~^[a-zA-Z]+:|^#|@~', $match) && SMF != 'SSI')
$match = $boardurl . '/' . $match;
if (substr($match,0,7) == 'mailto:' || substr($match,0,10) == 'javascript' || !strstr($match, '?'))
continue;
if (substr($match,0,strlen($boardurl)) != $boardurl || substr($match,strlen($boardurl),8) == '/Sources' || substr($match,strlen($boardurl),7) == '/Themes' || substr($match,strlen($boardurl),4) == '/img' || substr($match,strlen($boardurl),8) == '/Smileys' || substr($match,strlen($boardurl),8) == '/avatars')
continue;
$urls[$match] = array('url' => $match);
}
}
// Procede only if there are actually URLs in the page
if (count($urls) != 0)
pretty_urls_filter($urls);
// Put the URLs back into the buffer
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=|<meta property=\"og:url\" content=|<meta property=\"og:image\" content=|<meta property=\"og:video\" content=)(\"[^\"]+\"|\'[^\']+\')~';
foreach ($context['pretty']['replace_patterns'] as $pattern)
$buffer = preg_replace_callback($pattern, 'pretty_buffer_callback', $buffer);
// Restore the script tags
if ($context['pretty']['scriptID'] > 0)
$buffer = preg_replace_callback("~\x14([0-9]+)\x14~", 'pretty_scripts_restore', $buffer);
// Return the changed buffer.
return $buffer;
}
// Remove and save script tags
function pretty_scripts_remove($match) {
global $context;
$context['pretty']['scriptID']++;
$context['pretty']['scripts'][$context['pretty']['scriptID']] = $match[0];
return "\x14" . $context['pretty']['scriptID'] . "\x14";
}
// A callback function to replace the buffer's URLs with their cached URLs
function pretty_buffer_callback($matches) {
global $boardurl, $context;
// Is this URL in an attribute, and so will need new quotes?
$addQuotes = preg_match('~^[\"\']~', $matches[2]);
// Remove those annoying quotes
$matches[2] = preg_replace('~^[\"\']|[\"\']$~', '', $matches[2]);
// Store the parts of the URL that won't be cached so they can be inserted later
preg_match('~PHPSESSID=[^;#&]+~', $matches[2], $PHPSESSID);
preg_match('~(se)?sc=[^;#]+~', $matches[2], $sesc);
preg_match('~' . $context['session_var'] . '=[^;#]+~', $matches[2], $session_var);
preg_match('~#.*~', $matches[2], $fragment);
// Rip out everything that won't have been cached
$url_id = preg_replace(array('~PHPSESSID=[^;#]+|(se)?sc=[^;#]+|' . $context['session_var'] . '=[^;#]+|#.*$~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $matches[2]);
// Absolutise relative URLs
if (!preg_match('~^[a-zA-Z]+:|@~', $url_id) && !($url_id == '' && isset($fragment[0])) && SMF != 'SSI')
$url_id = $boardurl . '/' . $url_id;
// Stitch everything back together, clean it up and return
$replacement = isset($context['pretty']['cached_urls'][$url_id]) ? $context['pretty']['cached_urls'][$url_id] : $url_id;
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($session_var[0]) ? $session_var[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
$replacement = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|&$|;$|#$|=$~'), array(';', '?', '#', ''), $replacement);
$replacement = str_replace('index.php', '', $replacement);// Remove index.php, who needs it.
return $matches[1] . ($addQuotes ? '"' : '') . $replacement . ($addQuotes ? '"' : '');
}
// Put the script tags back
function pretty_scripts_restore($match) {
global $context;
return $context['pretty']['scripts'][(int) $match[1]];
}
// Filter URLs
function pretty_urls_filter($urls) {
global $boardurl, $context, $scripturl;
foreach ($urls as $url_id => $url) {
// Filter Aeva Media
if (strpos($url['url'], 'action=media') !== false){
$context['pretty']['cached_urls'][$url_id] = preg_replace(array('~.*[?;&]action=media;sa=media;in=([0-9]+);(thumba?|preview)(.*)~S','~.*[?;&]action=media;sa=(album|item|media);in=([0-9]+)(.*)~S','~.*[?;&]action=media(.*)~S'), array($boardurl . '/media/$2/$1/?$3',$boardurl . '/media/$1/$2/?$3',$boardurl . '/media/?$1'), $url['url']);
continue;
}
//Filter actions
if (preg_match('`' . $scripturl . '(.*)action=([^;]+)`S', $url['url'], $matches)){
$context['pretty']['cached_urls'][$url_id] = preg_replace('`' . $scripturl . '(.*)action=([^;]+)`S', $boardurl . '/$2/$1', $url['url']);
continue;
}
//Filter topics
if (preg_match('`' . $scripturl . '(.*[?;&])topic=([.a-zA-Z0-9]+)(.*)`S', $url['url'], $matches)){
if (strpos($matches[2], '.') !== false)
list ($topic_id, $start) = explode('.', $matches[2]);
else{
$topic_id = $matches[2];
$start = '0';
}
$topic_id = (int) $topic_id;
$start = $start != '0' ? '?start='. $start : '';
$context['pretty']['cached_urls'][$url_id] = $boardurl . '/t/' . $topic_id . '/' . $start . $matches[1] . $matches[3];
continue;
}
// Filter boards
if (preg_match('`' . $scripturl . '(.*[?;&])board=([.0-9]+)(.*)`S', $url['url'], $matches)){
if (strpos($matches[2], '.') !== false)
list ($board_id, $start) = explode('.', $matches[2]);
else{
$board_id = $matches[2];
$start = '0';
}
$board_id = (int) $board_id;
$start = $start != '0' ? $start . '/' : '';
$context['pretty']['cached_urls'][$url_id] = $boardurl . '/b/' . $board_id . '/' . $start . $matches[1] . $matches[3];
continue;
}
// None
$context['pretty']['cached_urls'][$url_id] = preg_replace(array('~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('%22', ';', '?', ''),str_replace("\x12", '\'', $url['url']));
}
}
?>
Still have a little bit of work as there is other things I would like to do with it. Thanks for providing a base to start upon. ;)
"Fixing any old boards and topics with broken quotes" is not working. Please help me.
All my categories/boards urls end with "?wwwRedirect" Please how can I fix this?
use the correct URL to access your site.
Either you set your site us to be www.yoursite.com and you are trying to access it from just yoursite.com or vice versa.
I'm setting up a webserver for smf on a vps and am thinking of using nginx because its lightweight and want to conserve resource usage. I've seen several posts about how to rewrite prettyurl's to work in nginx that are quite old and a hint that future version may make it easier to work in nginx. Does the latest version of pretty url's work with nginx by default or will i still need to change the rewrite rules?
No it does not. People have posted the urls in this topic somewhere...
Thanks I found a couple links already and several copies of rewrites to make it work. I'll give it a shot afterafter I get the web server installed this weekend.
How do I make it so that my folder /games/ still works?
I read the troublesome page but it only teaches to make 1 page work.
But for example, I got 100 other pages in my /games/ folder, how do I make the whole folder an exception?
For example there are different pages like: /games/game1/, /games/game2/, etc.
Thanks a lot. :)
Am using SMF 2.0.11. I try to buy new domain.net, and am using domain.com , so I decide to redirect my .net to the .com
I make use of 301 redirect in my C/panel. It all redirect perfectly, but my Forum Post & Topic are still on my Old domain (.com) instead of my New Domain (.Net)
I run the repair_settings.php.....but The main problem am facing now is. If I install the pretty url. I won't be able to make new post, and all topic are redirect to old domain. Ie All topic created is in old url domain e.g (Oldurl.com/my-topic-i-created/)
But if I uninstall the pretty url.
All files in my site work well. Both topics and board are in new domain.
(Newurl.com/my-topic-i-created/)
And I want the pretty url mods to work
Check out https://code.google.com/archive/p/prettyurls/wikis/TroubleShooting.wiki
I am using a mod called Pretty URL's. I had to change my Admin username from Support Team to SupportTeam then when you click on SupporTeam it shows this url support.mtechama.com/Support Team instead of support.mtechama.com/SupportTeam there is a space between Support and Team. How can fix this?
my website has stopped working as uninstall?
Get the manual install instructions at http://www.smfhacks.com/smf-package-parser.html and reverse them to unisntall completely if it fails
so..i mean the urls work..but I can do that without a fancy mod..what I need is for the links generated to be changed to the pretty urls, which doesn't happen..EG: /index.php?action=blah should just be /blah in things like the top menu..what exactly is the point of this if it doesn't change the links?
This mod does do that, that's the point. If it doesn't, something is wrong with your setup (or it hasn't been enabled properly)
odd..this is a fresh install (downloaded like a week ago) using the default theme just to be sure it wasn't the theme...i mean if it doesn't work on a default SMF install, I don't feel it's my problem...oh well..too much time wasted already..I'll find a different forum solution for my client, thanks for the reply.
just as a note... it does work just fine with the default theme (and every other theme I have looked at)
Which is the final solution to HTTPS switch with this mod?
EDIT:
Solved
1. Switch to HTTPS
2. Use repair_settings.php to change all links to HTTPS
3. Go to Database and change into "smf_settings" table the variable "pretty_root_url" to https://
4. Go to the Admin panel -> Forum Config -> Pretty URLS and disable Rewrite URL
5. Re-Enable Rewrite URL
6. Done!
Glad you were able to figure it out.
Did a little rewriting with XPath, in no way it is truly ready as I need to add further support for anything that isn't HTML, say like XML.
<?php
// NEnd's custom Pretty URLs OB rewrite
// Based on Version 1.0 PrettyUrls-Filters.php
if (!defined('SMF'))
die('Hacking attempt...');
function xpath_rewrite_buffer($buffer) {
global $boardurl;
$doc = new DomDocument();
$doc->loadHTML($buffer);
$xpath = new DOMXPath($doc);
$search = array(
'a' => 'href',
'meta' => 'content',
'link' => 'href',
'form' => 'action',
);
foreach ($search as $tag => $attribute)
foreach ($xpath->query('//'.$tag.'[starts-with(@'.$attribute.', "'.$boardurl.'")]') as $node)
$node->setAttribute($attribute, xpath_urls_filter($node->getAttribute($attribute)));
return $doc->saveHTML();
/*
$doc->loadXML($buffer);
$xpath = new DOMXPath($doc);
$search = array('loc','link');
foreach ($search as $tag)
foreach ($xpath->query('//'.$tag.'') as $node)
$node->nodeValue = xpath_urls_filter($node->textContent);*/
}
// Rewrite the buffer with Pretty URLs!
function pretty_rewrite_buffer($buffer) {
global $boardurl, $context;
/* if (!function_exists('ShowXmlFeed'))
return xpath_rewrite_buffer($buffer);*/
// Remove the script tags now
$context['pretty']['scriptID'] = 0;
$context['pretty']['scripts'] = array();
$buffer = preg_replace_callback('~<script.+?</script>~s', 'pretty_scripts_remove', $buffer);
// Find all URLs in the buffer
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=|<meta property=\"og:url\" content=|<meta property=\"og:image\" content=|<meta property=\"og:video\" content=)(\"[^\"#]+|\'[^\'#]+)~';
$urls = array();
$context['pretty']['cached_urls'] = array();
foreach ($context['pretty']['search_patterns'] as $pattern) {
preg_match_all($pattern, $buffer, $matches, PREG_PATTERN_ORDER);
foreach ($matches[2] as $match) {
// Rip out everything that shouldn't be cached
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|(se)?sc=[^;]+|' . $context['session_var'] . '=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
// Absolutise relative URLs
if (!preg_match('~^[a-zA-Z]+:|^#|@~', $match) && SMF != 'SSI')
$match = $boardurl . '/' . $match;
if (substr($match,0,7) == 'mailto:' || substr($match,0,10) == 'javascript' || !strstr($match, '?'))
continue;
if (substr($match,0,strlen($boardurl)) != $boardurl || substr($match,strlen($boardurl),8) == '/Sources' || substr($match,strlen($boardurl),7) == '/Themes' || substr($match,strlen($boardurl),4) == '/img' || substr($match,strlen($boardurl),8) == '/Smileys' || substr($match,strlen($boardurl),8) == '/avatars')
continue;
$urls[$match] = array('url' => $match);
}
}
// Procede only if there are actually URLs in the page
if (count($urls) != 0)
pretty_urls_filter($urls);
// Put the URLs back into the buffer
$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=|<meta property=\"og:url\" content=|<meta property=\"og:image\" content=|<meta property=\"og:video\" content=)(\"[^\"]+\"|\'[^\']+\')~';
foreach ($context['pretty']['replace_patterns'] as $pattern)
$buffer = preg_replace_callback($pattern, 'pretty_buffer_callback', $buffer);
// Restore the script tags
if ($context['pretty']['scriptID'] > 0)
$buffer = preg_replace_callback("~\x14([0-9]+)\x14~", 'pretty_scripts_restore', $buffer);
// Return the changed buffer.
return $buffer;
}
// Remove and save script tags
function pretty_scripts_remove($match) {
global $context;
$context['pretty']['scriptID']++;
$context['pretty']['scripts'][$context['pretty']['scriptID']] = $match[0];
return "\x14" . $context['pretty']['scriptID'] . "\x14";
}
// A callback function to replace the buffer's URLs with their cached URLs
function pretty_buffer_callback($matches) {
global $boardurl, $context;
// Is this URL in an attribute, and so will need new quotes?
$addQuotes = preg_match('~^[\"\']~', $matches[2]);
// Remove those annoying quotes
$matches[2] = preg_replace('~^[\"\']|[\"\']$~', '', $matches[2]);
// Store the parts of the URL that won't be cached so they can be inserted later
preg_match('~PHPSESSID=[^;#&]+~', $matches[2], $PHPSESSID);
preg_match('~(se)?sc=[^;#]+~', $matches[2], $sesc);
preg_match('~' . $context['session_var'] . '=[^;#]+~', $matches[2], $session_var);
preg_match('~#.*~', $matches[2], $fragment);
// Rip out everything that won't have been cached
$url_id = preg_replace(array('~PHPSESSID=[^;#]+|(se)?sc=[^;#]+|' . $context['session_var'] . '=[^;#]+|#.*$~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $matches[2]);
// Absolutise relative URLs
if (!preg_match('~^[a-zA-Z]+:|@~', $url_id) && !($url_id == '' && isset($fragment[0])) && SMF != 'SSI')
$url_id = $boardurl . '/' . $url_id;
// Stitch everything back together, clean it up and return
$replacement = isset($context['pretty']['cached_urls'][$url_id]) ? $context['pretty']['cached_urls'][$url_id] : $url_id;
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($session_var[0]) ? $session_var[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
$replacement = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|&$|;$|#$|=$~'), array(';', '?', '#', ''), $replacement);
$replacement = str_replace('index.php', '', $replacement);// Remove index.php, who needs it.
return $matches[1] . ($addQuotes ? '"' : '') . $replacement . ($addQuotes ? '"' : '');
}
// Put the script tags back
function pretty_scripts_restore($match) {
global $context;
return $context['pretty']['scripts'][(int) $match[1]];
}
// Filter URLs
function pretty_urls_filter($urls) {
global $boardurl, $context, $scripturl;
foreach ($urls as $url_id => $url) {
// Filter Aeva Media
if (strpos($url['url'], 'action=media') !== false){
$context['pretty']['cached_urls'][$url_id] = preg_replace(array('~.*[?;&]action=media;sa=media;in=([0-9]+);(thumba?|preview)(.*)~S','~.*[?;&]action=media;sa=(album|item|media);in=([0-9]+)(.*)~S','~.*[?;&]action=media(.*)~S'), array($boardurl . '/media/$2/$1/?$3',$boardurl . '/media/$1/$2/?$3',$boardurl . '/media/?$1'), $url['url']);
continue;
}
//Filter actions
if (preg_match('`' . $scripturl . '(.*)action=([^;]+)(.*)`S', $url['url'], $matches)){
$context['pretty']['cached_urls'][$url_id] = $boardurl . '/a/' . $matches[2] . '/' . $matches[1] . $matches[3];
// $context['pretty']['cached_urls'][$url_id] = preg_replace('`' . $scripturl . '(.*)action=([^;]+)`S', $boardurl . '/$2/$1', $url['url']);
continue;
}
//Filter topics
if (preg_match('`' . $scripturl . '(.*[?;&])topic=([.a-zA-Z0-9]+)(.*)`S', $url['url'], $matches)){
if (strpos($matches[2], '.') !== false)
list ($topic_id, $start) = explode('.', $matches[2]);
else{
$topic_id = $matches[2];
$start = '0';
}
$topic_id = (int) $topic_id;
$start = $start != '0' ? '?start='. $start : '';
$context['pretty']['cached_urls'][$url_id] = $boardurl . '/t/' . $topic_id . '/' . $start . $matches[1] . $matches[3];
continue;
}
// Filter boards
if (preg_match('`' . $scripturl . '(.*[?;&])board=([.0-9]+)(.*)`S', $url['url'], $matches)){
if (strpos($matches[2], '.') !== false)
list ($board_id, $start) = explode('.', $matches[2]);
else{
$board_id = $matches[2];
$start = '0';
}
$board_id = (int) $board_id;
$start = $start != '0' ? $start . '/' : '';
$context['pretty']['cached_urls'][$url_id] = $boardurl . '/b/' . $board_id . '/' . $start . $matches[1] . $matches[3];
continue;
}
// None
$context['pretty']['cached_urls'][$url_id] = preg_replace(array('~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('%22', ';', '?', ''),str_replace("\x12", '\'', $url['url']));
}
}
function xpath_urls_filter($url) {
global $boardurl, $scripturl;
if (strpos($url, '?') == false)
return xpath_url_clean($url);
if (strpos($url, 'action=media') !== false)
return(xpath_url_clean(preg_replace(array('~.*[?;&]action=media;sa=media;in=([0-9]+);(thumba?|preview)(.*)~S','~.*[?;&]action=media;sa=(album|item|media);in=([0-9]+)(.*)~S','~.*[?;&]action=media(.*)~S'), array($boardurl . '/media/$2/$1/?$3',$boardurl . '/media/$1/$2/?$3',$boardurl . '/media/?$1'), $url)));
if (strpos($url, 'action=') !== false)
return(xpath_url_clean(preg_replace('`' . $scripturl . '(.*)action=([^;]+)(.*)`S',$boardurl . '/a/$2/$1$3',$url)));
if (strpos($url, 'topic=') !== false && preg_match('`' . $scripturl . '(.*[?;&])topic=([.a-zA-Z0-9]+)(.*)`S', $url, $matches)){
if (strpos($matches[2], '.') !== false)
list ($topic_id, $start) = explode('.', $matches[2]);
else
$topic_id = $matches[2];
return(xpath_url_clean($boardurl . '/t/' . (int) $topic_id . '/' .(!empty($start) ? '?start='.$start : ''). $matches[1] . $matches[3]));
}
if (strpos($url, 'board=') !== false && preg_match('`' . $scripturl . '(.*[?;&])board=([.0-9]+)(.*)`S', $url, $matches)){
if (strpos($matches[2], '.') !== false)
list ($board_id, $start) = explode('.', $matches[2]);
else
$board_id = $matches[2];
return(xpath_url_clean($boardurl . '/b/' . (int) $board_id . '/' .(!empty($start) ? $start.'/' : ''). $matches[1] . $matches[3]));
}
return xpath_url_clean($url);
}
function xpath_url_clean($url){
$url = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|&$|;$|#$|=$~'), array(';', '?', '#', ''), $url);
$url = str_replace('index.php', '', $url);
return $url;
}
?>
Thought I would share that just in case you want to improve upon it. ;)
Just finished my rewrite today with XML support. The code base now almost shares nothing besides a few search strings with Pretty URLs. The other Pretty URL files where canned, the one for the admin panel and rewriting boards to names. The source code edits by the mod were revised and edited accordingly and also there are no more database calls.
<?php
// NEnd's custom Pretty URLs OB rewrite
// Based on Version 1.0 PrettyUrls-Filters.php
if (!defined('SMF'))
die('Hacking attempt...');
function xpath_rewrite_buffer($buffer) {
global $boardurl;
if (strpos($buffer,'<!DOCTYPE') !== false) {
$doc = new DomDocument();
$doc->loadHTML($buffer);
$xpath = new DOMXPath($doc);
$search = array(
'a' => 'href',
'meta' => 'content',
'link' => 'href',
'form' => 'action'
);
foreach ($search as $tag => $attribute)
foreach ($xpath->query('//'.$tag.'[starts-with(@'.$attribute.', "'.$boardurl.'")]') as $node)
$node->setAttribute($attribute, xpath_urls_filter($node->getAttribute($attribute)));
$buffer = $doc->saveHTML();
} else if (strpos($buffer,'<?xml') !== false) {
$doc = new DomDocument();
$doc->loadXML($buffer);
$xpath = new DOMXPath($doc);
$search = array('loc','link','url','guid');
foreach ($search as $tag)
foreach ($xpath->query('//'.$tag.'[starts-with(text(),"'.$boardurl.'")]') as $node)
$node->nodeValue = xpath_urls_filter($node->nodeValue);
$search = array(
'enclosure' => 'url'
);
foreach ($search as $tag => $attribute)
foreach ($xpath->query('//'.$tag.'[starts-with(@'.$attribute.', "'.$boardurl.'")]') as $node)
$node->setAttribute($attribute, xpath_urls_filter($node->getAttribute($attribute)));
$buffer = $doc->saveXML();
}
return $buffer;
}
// Rewrite the buffer with Pretty URLs!
function pretty_rewrite_buffer($buffer) {
return xpath_rewrite_buffer($buffer);
}
function xpath_urls_filter($url) {
global $boardurl, $scripturl;
if (strpos($url, '?') == false)
return xpath_url_clean($url);
if (strpos($url, 'action=media') !== false)
return(xpath_url_clean(preg_replace(array('~.*[?;&]action=media;sa=media;in=([0-9]+);(thumba?|preview)(.*)~S','~.*[?;&]action=media;sa=(album|item|media);in=([0-9]+)(.*)~S','~.*[?;&]action=media(.*)~S'), array($boardurl . '/media/$2/$1/?$3',$boardurl . '/media/$1/$2/?$3',$boardurl . '/media/?$1'), $url)));
if (strpos($url, 'action=') !== false)
return(xpath_url_clean(preg_replace('`' . $scripturl . '(.*)action=([^;]+)(.*)`S',$boardurl . '/a/$2/$1$3',$url)));
if (strpos($url, 'topic=') !== false && preg_match('`' . $scripturl . '(.*[?;&])topic=([.a-zA-Z0-9]+)(.*)`S', $url, $matches)){
if (strpos($matches[2], '.') !== false)
list ($topic_id, $start) = explode('.', $matches[2]);
else
$topic_id = $matches[2];
return(xpath_url_clean($boardurl . '/t/' . (int) $topic_id . '/' .(!empty($start) ? '?start='.$start : ''). $matches[1] . $matches[3]));
}
if (strpos($url, 'board=') !== false && preg_match('`' . $scripturl . '(.*[?;&])board=([.0-9]+)(.*)`S', $url, $matches)){
if (strpos($matches[2], '.') !== false)
list ($board_id, $start) = explode('.', $matches[2]);
else
$board_id = $matches[2];
return(xpath_url_clean($boardurl . '/b/' . (int) $board_id . '/' .(!empty($start) ? $start.'/' : ''). $matches[1] . $matches[3]));
}
return xpath_url_clean($url);
}
function xpath_url_clean($url){
$url = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|&$|;$|#$|=$~'), array(';', '?', '#', ''), $url);
$url = str_replace('index.php', '', $url);
return $url;
}
?>
I am now using it live on my site to test to see the performance.
I hope you can use this in the future, however this code requires PHP 5 and above.
Trying to learn more what would this be used for. I have used XPath with xml
Quote from: vbgamer45 on September 17, 2016, 04:04:38 PM
Trying to learn more what would this be used for. I have used XPath with xml
I am using it for URL rewriting, however it does have some drawbacks. Say for instance if there are any errors in the markup when you pass the buffer through XPath it will try to correct the mistakes sometimes resulting in some minor problems with the HTML output.
The only way to prevent this problem is to make sure the HTML is correct and error free. This though would make support for something like this a nightmare so even though it has its performance gains I wouldn't recommend making it into a modification. Besides anyone that understands how to use it would know how to use the code I posted for their own means.
What if somebody has a domain for a while and registers a second one, both resolving to the same host. Pretty urls insists upon rewriting the addresses to the first name which I'm trying to phase out. How would I force it to rewrite them to the new one instead? Any help would be greatly appreciated.
Thanks
Check out the second FAQ on this page
https://code.google.com/archive/p/prettyurls/wikis/TroubleShooting.wiki
Thank you vbgamer for the response, but I don't understand.
Where is the "pretty_root_url setting " that I can fix myself and the .php file I made with that code opens as a blank white page.
I don't mean to be difficult. I really don't understand.
Thanks again,
It is in the database in the smf_settings table
That file will be blank when ran.
OUTSTANDING!!
Thank you sir. It is fixed. :)
Glad that helped
It did indeed. Thanks again. I didn't think to look in that table at all.
I was around here a lot several years back. You've been here a while man :) A few others too I recognize.
Since I change my domain from old to new domain. I make use of 301 redirect and my forum is working well. but the main problem am facing is my pretty url. this has be giving me many errors in my google webmaster tools. Some of my url change to this
http://url.com/index.php?pretty%3bboard=android-app-board%3btopic=download-android-app-version-1-0.0
Instead of the url to be in this format.
http://url.com/android-app-board/download-android-app-version-1-0/
But if I un install the pretty url mods. everything work perfectly.
please how can I fix that.
Anyone should reply on how to fix it.
I have a problem.
Pretty URLs works nice in computer but in mobile phone users can't register to my forum because when they hit "register" button they go to site "not found, the requested URL /register/index.php was not found on this server".
Register works in adress mydomain.com/register also with mobile phones.
So how can I remove that index.php from mobile register page?
Any mods installed or mobile themes?
Quote from: vbgamer45 on October 20, 2016, 11:37:28 AM
Any mods installed or mobile themes?
Yes these mods:
1. SEO Sitemap 2.2.1
2. Responsive Curve 1.0.0 (this is the mobile theme)
3. Ohara YouTube Embed 1.2.7
4. Remove Help From Menu 1.0
5. Google Tagged 2.0
6. SMF 2.0.12 Update 1.0
7. Board Viewers Mod 1.2.1.1b
8. SA Facebook 3.1
9. Optimus 1.9
10. Pretty URLs
I tried to removed Pretty URLs mod and then I was able to register with mobile phone (but that site url wasn't pretty ofcourse). Then I installed Pretty URLs again and got that ("not found..") information page again so guilty is Pretty URLs. I wanna get it work in adress mydomain.com/register because SEO.
Try it without Optimus
Pretty urls shouldn't add index.php to end of a url...
Where do I find the "smf_settings" table?
I don't have that in my phpmyadmin/mysql.
There is only some "hs5c_settings" but not "smf_settings".
You would use hs5c_settings in your case since that is your db prefix
Quote from: vbgamer45 on October 27, 2016, 03:58:48 PM
You would use hs5c_settings in your case since that is your db prefix
Well there isn't the variable "pretty_root_url".
I'm doing that "3. Go to Database and change into "smf_settings" table the variable "pretty_root_url" to https://".
that would work.
Quote from: vbgamer45 on October 27, 2016, 05:02:18 PM
that would work.
Yes but in hs5c_settings table there isn't variable "pretty_root_url".
you can add one and it may work.
Quote from: vbgamer45 on October 27, 2016, 05:18:54 PM
you can add one and it may work.
Can you check your variable? I don't know what else put than "https://".
Well now I made it work.
Here's instructions if someone has the same problem:
1. Make pretty_root_url.php file with this code:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
require_once($sourcedir . '/Subs-PrettyUrls.php');
updateSettings(array('pretty_root_url' => $boardurl));
pretty_update_filters();
?>
2. Upload the file to the same location as your forum's SSI.php.
3. Open that file with your web browser example mydomain . com / pretty_root_url.php (yes it's only blank white page)
4. Remove that file.
And finish! :)
Yup thats it.
There is a problem when using cyrillic.
If user uses cyrillic letters and type in his name then in DB things get messy.
Usernames with cyrillic looks like that: Ð'елиÑлав%20Ðнгелов
All other looks fine but usernames not.
In the database? Make sure all the pretty urls tables have the same collation/character set as your as you main SMF tables.
I have a question about the working of this modification, which I find, is a must-have mod.
I'm sorry I did not read 374 pages of posts for it, but feel free to tell me where to start looking if necessary.
The issue I have with Pretty URL's is that I have installed, next to the live forum, a 'tst' forum. So I copy the database to another one, I copy the whole SMF directory to a 'tst' directory, I change in Settings.php the database to 'tst', and I run repair settings.
Everything switches over to the 'tst' urls, besides Pretty URL's.
Not understanding how that is possible, I also needed to install from scratch a SMF forum, then, I installed Pretty URL's, but I kept the existing database named 'tst'.
So I enable URL rewriting, Pretty URL's put's it's data in the two tables it had installed and then I notice, Pretty URL's sticks with the url of the live forum. So I exported the two pretty tables and I replaced all url's to 'tst' [though I noticed it only where the url's that Pretty URL's proposed to check first] And this did not change anything.
So now I'm running a 'tst' forum with Pretty URL's url rewriting disabled, though I would like to know where and how Pretty URL's is able to come up with the live url of the forum, since it does not seem to enquire Settings.php and I expect that it gets this information from the database, however, I am not able to switch over to the 'tst' url.
Can someone explain to me if I did something wrong or where I have to look to be able to switch back and forth similar to the repair_settigns.php way?
Check #2 on this page
https://code.google.com/archive/p/prettyurls/wikis/TroubleShooting.wiki
Many thanks.
I wasn't aware that in .htaccess there is a link to that page.
QuoteFor a out of the box localhost install, ID 106 (https://code.google.com/archive/p/prettyurls/issues/106) is a wonderful solution, for mod_rewrite's inabillity to make a rewritten url [browser takes rewritten url and Apache responds with 404], to set AllowOverride to All instead of none.
And, most helpful was the Troubleshooting wiki [a little hard to find on the code.google];
'Every link causes 404 Not Found errors'
'Links point to old domain after moving forum'
And another one I don't see how people where able to run in to; 'Sub-directories can't be opened' -> https://code.google.com/archive/p/prettyurls/wikis/TroubleShooting.wiki
Now it is running everywhere, it is manageable [transportable] and it only requires mod_rewrite.
Glad you have it running.
hello all...not sure if i'm posting a question in the right place....
just installed prettyutls in latest smf (with simple portal),and all english posts look great....the problem is that i have a Greek section,where we post in greek....
this section's posts do not look right....
a sample is here http://linuxlife.eu/t-t-t-to-o/eite-ti-mmooe-ieie/
anyone who knows how to fix my broken url's?
thank you all!
It only accepts certain characters at this time. I think you have to edit the filters to allow greek charactes.
Please, help me.
I installed prettyURL it`s works good, but some problems with linktree (breadcrumbs)
topic URL looks
h__p://centro-pol.ru/forum/laminat/index.php
how to remove INDEX.PHP, because whis url 404
i need to do h__p://centro-pol.ru/forum/laminat/
At topic good URL
At Linktree - trouble.
SMF 2.0.12
Sorry for my Bad English :(
Do you have other mods installed? if so which ones
i delete table cache of pretty and now it`s work!!! ;D
But now a new problem.
i try to show on Wordpress topics by SSI.php
it works good, and URLs SEF by default, but if i make function as Array (not echo) i get href not SEF in array
ssi_recentTopics (1, null, null, 'echo') - SEF urls
$array = ssi_recentTopics (1, null, null, 'array'); - no SEF urls
How to get SEF URLs in Array ?
it`s about this function
http://support.simplemachines.org/function_db/index.php?action=view_function;id=515
Thank you, and sorry for my english.
I could use some help. I am migrating my forum from SMF 2.0 to Xenforo. I've had SMF Pretty URLs running for years (it's been great!) but now i need to redirect all threads to their new Xenforo URL. Any guidance in doing this?
So far, I know I need to get the basic URL for new threads. I see smf_pretty_topic_urls and need to join it with the board ID because the URL structure is forum / board name / thread title.
SELECT id_board, smf_pretty_topic_urls.*
FROM smf_topics
join smf_pretty_topic_urlson smf_topics.id_topic = smf_pretty_topic_urls.id_topic
One issue here is when I export, the apostrophes in the board titles are not exported well from phpmyadmin...they show as unreadable cahracters in excel & in the CSV. ideas?
Is there a better guide for migrating? this seems hard (and will not cover individual posts' links, pages 2+, etc)
Thanky ou!
I do not have a guide for migrating other than reverter package under
https://code.google.com/archive/p/prettyurls/downloads
after migrating to another host pretty url does not work at all and I can't even login to my site. please advise on how to disable pretty URL from database.
thanks!
Check http://code.google.com/p/prettyurls/wiki/TroubleShooting
Quote from: vbgamer45 on December 08, 2016, 01:26:12 PM
Check http://code.google.com/p/prettyurls/wiki/TroubleShooting
that worked!
after that I uninstalled the mod and reinstalled again and enable it, and all URLs are still like "index.php?topic=..." nothing has change to friendly URL.
mod_rewrite is enabled in Apache so not sure what could be wrong
please advise, thanks!
dsanchez, your best bet is to verify all changes that Pretty Url install has made, and look for missing or double entries. And it would be helpful to make a copy of the database and get a testing forum running if you haven't done so already. But first, verify if everything is installed o.k. with Pretty Urls.
Will pretty URLs be available on 2.1?
Yes
I observed Pretty URLs mod is not allowing new topics to be posted on the forum. When the mod is de-activated, post new topics can easily be posted but when activated, new topics can't be posted. Kindly help
Please note the forum was recently re-installed and only SA Facebook installed.
Any error that is displayed?
Quote from: vbgamer45 on December 22, 2016, 08:13:57 AM
Any error that is displayed?
No error message is displayed but the page will reload and a blank new topic post page displayed when post button is clicked.
Quote from: olufemo on December 22, 2016, 05:42:02 AM
I observed Pretty URLs mod is not allowing new topics to be posted on the forum. When the mod is de-activated, post new topics can easily be posted but when activated, new topics can't be posted. Kindly help
Please note the forum was recently re-installed and only SA Facebook installed.
I have been able to get this working. Looking through the forum DB, I observed that the value of 'pretty_root_url' is wrong, I corrected it and activate pretty url mod and everything become pretty fine again.
Thanks
Glad you have it working.
Hi, First of all, great mod it works wonders :)
My forum (ver. SMF 2.0.12) was originally at www.gameguides.pro. I updated and changed it to www.gameguides.pro/f/ and everything seems to work, I troubleshooted and got prettyurls to work correctly.
However I seem to have a problem with my root directory, www.gameguides.pro. The problem I have is that a few directories I have created for example: www.gameguides.pro/test displays the following error instead of completing X.
error:
URL: http://www.gameguides.pro/test/?pretty;board=test.0
Not Found
The requested URL /index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
For some reason the "?pretty;board=test.0" is added..
X = index.php
<?php
header( 'Location: http://www.google.com' ) ;
?>
I have tried index.html with meta redirect.. but neither work.
I have other directories such as my dev SMF forum http://www.gameguides.pro/dev/smf/ which works flawlessly.. I'm not sure what the problem here is.
Cheers, any help appreciated.
edit:
list of currently installed mods
1. Stars And Badges 2.2 [ Uninstall ]
2. Staff Permissions For Simple Portal 1.2 [ Uninstall ]
3. Yarex 2 smiley set 2.0.0.1 [ Uninstall ]
4. SimplePortal 2.3.6 [ Uninstall ]
5. Optimus 1.9 [ Uninstall ]
6. Share This Topic 4.1.2 [ Uninstall ]
7. Ohara YouTube Embed 1.2.8 [ Uninstall ]
8. Member Color Link 3.1 [ Uninstall ]
9. Google Tagged 2.0 [ Uninstall ]
10. Say Thanks 1.3.6 [ Uninstall ]
11. Pretty URLs 1.1.3 [ Uninstall ]
12. reCAPTCHA for SMF 1.0.0 [ Uninstall ]
13. Social Login 3.5 [ Uninstall ]
14. Board Icons 1.0 [ Uninstall ]
15. Gamer IDs 1.4 [ Uninstall ]
16. Auto Respond 2.0.1 [ Uninstall ]
17. Profile Comments 2.0.2 [ Uninstall ]
18. RedirectPage 2.6
*optimus "Remove "index.php" from URLs" feature is disabled because it was causing problems.
Logs, there are no errors in both forum logs and error_log
Check the subdirectories link that can't be opened topic
https://code.google.com/archive/p/prettyurls/wikis/TroubleShooting.wiki
Quote from: vbgamer45 on January 02, 2017, 01:46:23 PM
Check the subdirectories link that can't be opened topic
https://code.google.com/archive/p/prettyurls/wikis/TroubleShooting.wiki
wow, thanks for the super fast reply.
I fixed it, i checked through the .htaccess in my root and it turns out the prettyurl stuff was still in it. So i deleted it all and all the links work again :)
Glad it is working!
Good day,
I'm trying to implement https with cloudflare, but i'm having issue with Pretty URLs.
Any changes required in this mod for making it working?
my url http://www.technoparkforum.com
Once you have https you would need to change your prettyurls url you can do it on this page
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Thanks.. fixed Petty URLs now.
Still there is something to do with other mods.
When I redirected my site to https as a default address, I am getting 404 errors perhaps due to pretty url mods in .htaccess. How shall I fix this?
Did you do this step
Once you have https you would need to change your prettyurls url you can do it on this page
http://code.google.com/p/prettyurls/wiki/TroubleShooting
After installation went fine, I tried to enable URL rewriting, but got this error:
Parse error: syntax error, unexpected ''' (T_ENCAPSED_AND_WHITESPACE) in /var/www/vhosts/wwwmyurl/public_html/forum/SSI.php on line 1806
This is my 1806 line in SSI.php
// Show the most recent events.
function ssi_recentEvents($max_events = 7, $output_method = 'echo')
{
global $db_prefix, $user_info, $scripturl, $modSettings, $txt, $context, $smcFunc;
if (empty($modSettings['cal_enabled']) || !allowedTo('calendar_view'))
return;
// Find all events which are happening in the near future that the member can see.
//1806 line // $request = $smcFunc['db_query']('', '
SELECT
cal.id_event, cal.start_date, cal.end_date, cal.title, cal.id_member, cal.id_topic,
cal.id_board, t.id_first_msg, t.approved
FROM {db_prefix}calendar AS cal
LEFT JOIN {db_prefix}boards AS b ON (b.id_board = cal.id_board)
LEFT JOIN {db_prefix}topics AS t ON (t.
//end of file
SMF version: 2.0.10
Attach your SSI.php looks like it is cut off...
https://drive.google.com/file/d/0BwHJVZHeLiG4WkRVUzlaNHFWXzg/view?usp=sharing
It's uploaded on Drive. It sure is cut off, but I do not know how it happened
Fixed file attached
Thank you!
Please help. After applying your code there are double posts popping all over the forum. Should I delete cache files or something?
No idea i copied if from the normal SSI.php from SMF. You might have to ask in SMF support
I have ran in to something, which I don't understand. I'm not good with reading .htaccess rules, but when I type an url of which I know it doesn't exist, I expect Apache to come up with a 404. It didn't, and I noticed just after I went to https. So what did I do, I've used repair settings, removed the https redirect in .htaccess and ran the ' updateSettings(array('pretty_root_url' => $boardurl))' called over http, to make sure the forum was running without https. Expecting this would solve the lack of a proper 404, this didn't help.
So I took a copy of the live forum and database, and run this on my local server. The Apache I'm running is 2.2 version and the ISP is running 2.0. Then I renamed .htaccess, to make it run without htaccess. Then, a proper 404 was generated both with the ISP and on my local server. Then I removed everything from .htaccess. besides pretty urls settings, and there was no 404 any longer.
By removing the pretty urls settings partly, I learned that;# 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]
has to be removed to get a proper 404. I can't read what '^', '+', or '$' means or have a poor understanding of it. I couldn't find a clear manual explaining this, and while I have been looking to those two rewrite rules, I also can't tell there is something inside it, that makes Apache do a redirect to '/' instead of giving a 404 response. It does this with https and http. I hope you can shed some light on this, pretty urls won't be removed but it would be proper to know that spiders receive a correct response, because it does happen that something isn't there any longer and this way the spides hopefully will update their index.
There is no 404 option for links right now. Any url that matches that rewrite rules above is considered valid.
Okay. I made sure [as far as it goes], 404's won't occur and keep an eye on it, since search engines [offer to] send messages with issues. Thanks.
Finally updated from 1.x to 2.0.13 - everything works great except that notification emails are missing $scripturl at the beginning of each email, so there is no hyperlink to the forum post. This is happening with the default (Curve) theme...the only theme being used. I am running Pretty URLs (latest version) with SMF 2.0.13. I am told this may have something to do with the Pretty URLs mod.
Excerpt from one of the notification emails (New Topic email):
"
You can see it at
/forum-name/topic-name/new/#new
"
Note that this forum is being run under SSL but that shouldn't matter. In the database I had to set pretty_root_url to '' in order to make the URLs work....prior to that they had the https://hostname.com/forums/... in the links - this was also part of a switch to a https://forums.hostname.com switch - prior to the switch it was https://hostname/com/forums as the root URL.
Any ideas appreciated - maybe I need to put the pretty_root_url back and run a maintenance task in Pretty URLs?
Strange. Do you have any other mods installed?
Was there any failures on install?
No failures on install.
The following mods are installed:
1. Simple Audio Video Embedder 4.0.2
2. Ad Managment 3.2
3. Tapatalk SMF 2.0 Plugin 4.4.1
4. Pretty URLs 1.1.3
Fixed the issue by simply setting pretty_root_url again to root URL of new site. No ill effects this time.
Glad you have it working now
Hey,
I didn't expect it, but it was possible to make 404's redirect to 'ErrorDocument 404' [inside htaccess]. I wrote that I would keep an eye on the search engines, but it kept popping up in my mind, since htaccess isn't easy and there are usually more ways then just one to accomplish the same thing with htacces. It doesn't give much of error output and, when something works, it might break something else, and it's order of rules can become an obstacle to verify if everything is [still] working properly.
By looking into RewriteRule - L (http://httpd.apache.org/docs/2.2/rewrite/flags.html#flag_l), it basically says, htaccess stops processing when that rule applies. So that meant to me, it won't consider the second rule, ever. Now I've got it working, I figured that with testing all possible combinations, which are; write '#' before 'second rule', or, before 'first rule', and 'swap rules'. I didn't investigate this in depth, for example, I've chosen to put a hash before the second 'topics', rule, but this rule didn't seem to affect 404 redirect in the first place. Also, as you can see, I've enabled Pretty URLs, just for boards and topics, though I don't expect problems with that,YMMV.
Finally, the ultimate test, exclude second rule, test, then; exclude first rule, test, and swap rules without excluding, might learn why you said Pretty URL's doesn't support 404 redirects. It just doesn't make sense [to me], that I find by testing, that the second rule is never considered, since the first rule contains 'L', together with swapping the first rule for the second and vice versa while that [the last test, make the rules appear vice versa], doesn't enable the working order of 404 redirects. That I find contradicting.
Here is the code;# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: February 23, 2017, 21:28
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]
# PRETTYURLS MOD ENDS
I'm hoping you can tell me how this contradiction is possible, and of course, if you can agree, that this is working properly without introduction of [new] drawbacks. This setup is working with my local Apache 2.2, with the providers Apache 2.0 and it is running in the live forum without complaining of the visitors or their remarks pointing to this change they can't be aware of.
hello
May I ask 3 Question
1.if i disable (as picture) then enable again, will any link urls be change? or any bad result?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fupic.me%2Fi%2Fjt%2Funtitledhhhh.png&hash=9b240ebd9dd685a9cf2e347596f198b92a0d0428) (http://upic.me/show/60422962)
2.if i cant enter admin page, how to disable it?
3.if i want to delete mod, i do the following
(1) disable URL rewriting (as picture)
(2) delete mod by commonly
Anything else need to be changed?
Thank you.
1. that is ok
2/3. https://code.google.com/archive/p/prettyurls/wikis/TroubleShooting.wiki
silly question, I just installed prettyurls but I have no idea where to find the url rewrite setting in my smf admin panel. ???
I have the latest smf version and prettyurls version.
All the admin options are now on the left side of the admin panel now with the latest smf forum version... they used to be at the top.
Thanks anyone that can help ;)
There should be a link called Pretty Urls in the sidebar or the admin menus
Quote from: vbgamer45 on March 10, 2017, 11:55:46 PM
There should be a link called Pretty Urls in the sidebar or the admin menus
no i don't see it. It said it installed fine. I will check around a little more.
Thanks for the super fast reply. ;)
UPDATE: found it ;D
I'm such a dummy :P
Thanks for a great mod :)
pretty url mod has a problem in connecting to https url. i modified the htaccess to make my forum site have a default https url, but the problem is that you can no longer post new topics in your forum site.
why is this so? what is there to fix?
You have to update your root prettys url check the guide in top of this topic.
hi vbgamer, sorry but i am not sure what you mean of root prettyurl. where is that?
read first post in this topic troubleshooting link
Has anyone attempted to use my little adjustment in my post before. It is working flawlessly overhere. Search engines Google likes it.
You can see for yourself;
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.fotobakje.nl%2Fmap%2Fdiv%2Fsmf%2Fprettyurls-supporttopic-forumnissan100nxclub.png&hash=e8e504562bd1d52e4189b0964100cb2e952de76c)
Are there instructions on how to upgrade from 2.0 to 2.1?
doesn't support 2.1 yet
I'm running "Custom Actions" as well as a few other modifications that add to $actionArray in Load.php as part of integration hooks. With the "Actions" flag enabled, after I run maintenance I'm not seeing any of these hook added actions being built out in the .htaccess rewrites. It seems to only be honoring the hard coded array for $actionArray. Is there any way to get it to handle the others?
any news if it will be available in 2.1?
Yes when 2.1 is released.
that might happen when i die i use 2.1 from git anyone can add it?
I am sorry enjoy the time that you have left.
who ever wants money to make it pm me.
Hi guys I am trying to remove pretty urls and get the following:
"
Parse error: syntax error, unexpected ''" width="100%" height="200px"' (T_ENCAPSED_AND_WHITESPACE) in /..../Packages/temp/uninstall.php on line 12
"
line 12 is the following one (and yes, while opening the file from cpanel, it indeed shows an error):
echo '<iframe src ="http://www.smfhacks.com/uninstall.php?modname=' . $modName . '" width="100%" height="200px">
The entire small block of the code is this:
<?php
// Pretty URLs - Base v0.8.1
// All I do is disable URL rewriting. If you're uninstalling the mod manually, please just ignore me.
$modSettings['pretty_enable_filters'] = false;
// Show the iframe with the uninstall
$modName = base64_encode("Pretty Urls");
echo '<iframe src ="http://www.smfhacks.com/uninstall.php?modname=' . $modName . '" width="100%" height="200px">
<p>Your browser does not support iframes.</p>
</iframe>
<b>Other Helpful Mods to make your forum stand out</b><br />
<a href="http://www.smfhacks.com/smf-gallery-pro.php" target="_blank">SMF Gallery Pro</a> - A fully featured gallery for SMF<br />
<a href="http://www.smfhacks.com/smf-store.php" target="_blank">SMF Store</a> - eCommerce Store system using PayPal<br />
<a href="http://www.smfhacks.com/smf-classifieds.php" target="_blank">SMF Classifieds</a> - Auction/Listing system for SMF<br />
<a href="http://www.smfhacks.com/ad-seller-pro.php" target="_blank">Ad Seller Pro</a> - Make more money from your forum with ads<br />
<a href="http://www.smfhacks.com/download-system-pro.php" target="_blank">Downloads System Pro</a> - charge people for downloads<br />
<a href="http://www.smfhacks.com/awesomepostratings.php" target="_blank">Awesome Post Ratings</a> - gain more interaction from your visitors<br />
<a href="http://www.smfhacks.com/newsletter-pro.php" target="_blank">Newsletter Pro</a> - send html emails with open, click and unsubscribe tracking.<br />
?>
So, where exactly is the syntax error?
In my understanding the ' ... before the iframe tag is extra, meaning this:
'<iframe
But still I cannot correct the error...
I am running the 2.13 version of smf...
Does anyone know how to correct it? ... I would highly appreciate it and I thank you in advance :)
You can take out that block of code. I will review and fix if needed.
Hi vbgamer45,
first of all I would like to thank you for your quick reply...
what exactly do you mean by take out?
will it work afterwards?
if you are not sure, I would prefer to wait for your review first...
Change the file to just
<?php
// Pretty URLs - Base v0.8.1
// All I do is disable URL rewriting. If you're uninstalling the mod manually, please just ignore me.
$modSettings['pretty_enable_filters'] = false;
OK here is the thing...
I click uninstall...
pretty url uninstalls partially.
To be more precise, it uninstalls these ones:
Move the included file "SMF2-0/PrettyUrls.php" to "./Sources".
Move the included file "SMF2-0/PrettyUrls-Filters.php" to "./Sources".
Move the included file "PrettyUrls-Tests.php" to "./Sources".
Move the included file "SMF2-0/Subs-PrettyUrls.php" to "./Sources".
Move the included file "PrettyUrls.template.php" to "./Themes/default".
Move the included directory "pretty" to "./Themes/default".
Move the included file "PrettyUrls.english.php" to "./Themes/default/languages".
Once, I go to cpanel, change the uninstall.php save it, and rerun the uninstall I get the exact same error.
Checking back the uninstall.php file it is restored to its original state.
As of now, pretty urls should not have any effect on the forum YET it is still installed...
So what now?
You have to replace the package file download from mod site and upload to your packages folder.
OK, if I have understood you correctly you are telling me to re-upload all files...
If so, then I will have pretty urls up and running once again...
But what I want is to uninstall it!
No i just upload the zip file of the mod to your packages folder. overwrite the old one.
OK...
first things first... I have re-done everything and pretty urls is up and running again smoothly...
I downloaded the files from the mod site and checked them (they are the same as the ones that I already have installed)...
As said, pretty urls is back, up and running again...
Basically we are back at square one...
In my opinion, the problem may be the uninstall.php (although I am not sure about it)...
Assuming that this is the case, where do I upload the corrected uninstall.php before I proceed with a package uninstall and end up with the same problem?
Update:
OK, what I did was this to solve the issue:
1. I downloaded the zip file from the mod site.
2. Unzipped the files
3. Changed/corrected the uninstall.php
4.re-zipped them again
5. uploaded and replaced the existing package with the new/corrected one from the cpanel
6. run the uninstall and everything went well...
7. pretty urls has been uninstalled successfully
However,
for some reason, in my admin-configuration I still see the "pretty urls" appear (although they have no effect) under "themes and layouts"...
really? ???
The only way i know how is if you replace the zip file in the packages folder with the updated zip file...
Hi vbgamer45,
thanks for your quick reply and support...
to answer your question, yes, your suggestion is correct...
it did uninstall fine, afterwards, with just one minor leftover... see my updated post right above...
Looks like that part didn't uninstall
Upload the package to http://www.smfhacks.com/smf-package-parser.html
And reverse edits made to admin.php
Hi vbgamer45,
yep, everything looks fine now.
Moreover, I would like to thank you for all of your support and guidance.
So, yes, thank you :)
Glad you have it sorted out.
The plugin doesn't work with Boards and Topics giving an error message, but it works with Actions and Profiles.
I have added to this post, the list of the plugins on my forum and the messages on the error log.
I hope someone can help me.
Did the mod install with errors?
Quote from: vbgamer45 on June 08, 2017, 02:34:22 PM
Did the mod install with errors?
Thank you in advance for the support.
No, the mod installed without any error message.
Even if i try to uninstall the plugin, it doesn't give me any error message, as you can see from the screenshot added to this reply.
Best Regards.
Seems after last smf update (2.0.14) mod stopped work for non latin characters (cyrillic).
If i enable it - it decodes all topics to tNUMBER format.
Did you change your database characterset?
Quote from: vbgamer45 on June 29, 2017, 05:24:21 PM
Did you change your database characterset?
After update? Nope
All tables in utf8_general_ci & InnoDB mode.
My Subs-PrettyUrls.php file is the following (special section for cyrillic letters):
<?php
// Version: 1.0RC; Subs-PrettyUrls
if (!defined('SMF'))
die('Hacking attempt...');
// Generate a pretty URL from a given text
function pretty_generate_url($text)
{
global $modSettings, $txt;
// Do you know your ABCs?
$characterHash = array (
'a' => array ('a', 'A', 'à', 'À', 'á', 'Á', 'â', 'Â', 'ã', 'Ã', 'ä', 'Ä', 'å', 'Å', 'ª', 'ą', 'Ą', 'а', 'А', 'ạ', 'Ạ', 'ả', 'Ả', 'Ầ', 'ầ', 'Ấ', 'ấ', 'Ậ', 'ậ', 'Ẩ', 'ẩ', 'Ẫ', 'ẫ', 'Ă', 'ă', 'Ắ', 'ắ', 'Ẵ', 'ẵ', 'Ặ', 'ặ', 'Ằ', 'ằ', 'Ẳ', 'ẳ'),
'ae' => array ('æ', 'Æ'),
'b' => array ('b', 'B'),
'c' => array ('c', 'C', 'ç', 'Ç', 'ć', 'Ć', 'č', 'Č'),
'd' => array ('d', 'D', 'Ð', 'đ', 'Đ', 'ď', 'Ď'),
'e' => array ('e', 'E', 'è', 'È', 'é', 'É', 'ê', 'Ê', 'ë', 'Ë', 'ę', 'Ę', 'е', 'Е', 'ё', 'Ё', 'э', 'Э', 'Ẹ', 'ẹ', 'Ẻ', 'ẻ', 'Ẽ', 'ẽ', 'Ề', 'ề', 'Ế', 'ế', 'Ệ', 'ệ', 'Ể', 'ể', 'Ễ', 'ễ', 'ε', 'Ε', 'ě', 'Ě'),
'f' => array ('f', 'F'),
'g' => array ('g', 'G', 'ğ', 'Ğ'),
'h' => array ('h', 'H'),
'i' => array ('i', 'I', 'ì', 'Ì', 'í', 'Í', 'î', 'Î', 'ï', 'Ï', 'ı', 'İ', 'Ị', 'ị', 'Ỉ', 'ỉ', 'Ĩ', 'ĩ', 'Ι', 'ι'),
'j' => array ('j', 'J'),
'k' => array ('k', 'K', 'к', 'К', 'κ', 'Κ'),
'l' => array ('l', 'L', 'ł', 'Ł'),
'm' => array ('m', 'M', 'м', 'М', 'Μ'),
'n' => array ('n', 'N', 'ñ', 'Ñ', 'ń', 'Ń', 'ň', 'Ň'),
'o' => array ('o', 'O', 'ò', 'Ò', 'ó', 'Ó', 'ô', 'Ô', 'õ', 'Õ', 'ö', 'Ö', 'ø', 'Ø', 'º', 'о', 'О', 'Ọ', 'ọ', 'Ỏ', 'ỏ', 'Ộ', 'ộ', 'Ố', 'ố', 'Ỗ', 'ỗ', 'Ồ', 'ồ', 'Ổ', 'ổ', 'Ơ', 'ơ', 'Ờ', 'ờ', 'Ớ', 'ớ', 'Ợ', 'ợ', 'Ở', 'ở', 'Ỡ', 'ỡ', 'ο', 'Ο'),
'p' => array ('p', 'P'),
'q' => array ('q', 'Q'),
'r' => array ('r', 'R', 'ř', 'Ř'),
's' => array ('s', 'S', 'ş', 'Ş', 'ś', 'Ś', 'š', 'Š'),
'ss' => array ('ß'),
't' => array ('t', 'T', 'т', 'Т', 'τ', 'Τ', 'ţ', 'Ţ', 'ť', 'Ť'),
'u' => array ('u', 'U', 'ù', 'Ù', 'ú', 'Ú', 'û', 'Û', 'ü', 'Ü', 'Ụ', 'ụ', 'Ủ', 'ủ', 'Ũ', 'ũ', 'Ư', 'ư', 'Ừ', 'ừ', 'Ứ', 'ứ', 'Ự', 'ự', 'Ử', 'ử', 'Ữ', 'ữ', 'ů', 'Ů'),
'v' => array ('v', 'V'),
'w' => array ('w', 'W'),
'x' => array ('x', 'X', '×'),
'y' => array ('y', 'Y', 'ý', 'Ý', 'ÿ', 'Ỳ', 'ỳ', 'Ỵ', 'ỵ', 'Ỷ', 'ỷ', 'Ỹ', 'ỹ'),
'z' => array ('z', 'Z', 'ż', 'Ż', 'ź', 'Ź', 'ž', 'Ž', 'Ζ'),
'-' => array ('-', ' ', '.', ','),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),
'0' => array ('0'),
'1' => array ('1', '¹'),
'2' => array ('2', '²'),
'3' => array ('3', '³'),
'4' => array ('4'),
'5' => array ('5'),
'6' => array ('6'),
'7' => array ('7'),
'8' => array ('8'),
'9' => array ('9'),
);
// Pretty URLs RUS
$characterHash = array(
'' => array ('ъ', 'Ъ', 'ь', 'Ь', '!', '?', '«', '»', ':', '&', '+', '*', '~', '@', '%', '^'),
'-' => array('-', '№', '#', '$', '_', ' ', '.', ','),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
"\x12" => array ("'", '"'),
'0' => array ('0'),
'1' => array ('1', '¹'),
'2' => array ('2', '²'),
'3' => array ('3', '³'),
'4' => array ('4'),
'5' => array ('5'),
'6' => array ('6'),
'7' => array ('7'),
'8' => array ('8'),
'9' => array ('9'),
'a' => array ('a', 'A', 'а', 'А'),
'b' => array ('b', 'B', 'б', 'Б'),
'c' => array ('c', 'C', 'ц', 'Ц'),
'd' => array ('d', 'D', 'д', 'Д'),
'e' => array ('e', 'E', 'е', 'Е'),
'f' => array ('f', 'F', 'ф', 'Ф'),
'g' => array ('g', 'G', 'г', 'Г'),
'h' => array ('h', 'H', 'х', 'Х'),
'i' => array ('i', 'I', 'и', 'И'),
'j' => array ('j', 'J', 'й', 'Й'),
'k' => array ('k', 'K', 'к', 'К'),
'l' => array ('l', 'L', 'л', 'Л'),
'm' => array ('m', 'M', 'м', 'М'),
'n' => array ('n', 'N', 'н', 'Н'),
'o' => array ('o', 'O', 'о', 'О'),
'p' => array ('p', 'P', 'п', 'П'),
'q' => array ('q', 'Q'),
'r' => array ('r', 'R', 'р', 'Р'),
's' => array ('s', 'S', 'с', 'С'),
't' => array ('t', 'T', 'т', 'Т'),
'u' => array ('u', 'U', 'у', 'У'),
'v' => array ('v', 'V', 'в', 'В'),
'w' => array ('w', 'W'),
'x' => array ('x', 'X'),
'y' => array ('y', 'Y', 'ы', 'Ы'),
'z' => array ('z', 'Z', 'з', 'З'),
'jo' => array ('ё', 'Ё'),
'zh' => array ('ж', 'Ж'),
'ch' => array ('ч', 'Ч'),
'sh' => array ('ш', 'Ш'),
'sch' => array ('щ', 'Щ'),
'je' => array ('э', 'Э'),
'ju' => array ('ю', 'Ю'),
'ja' => array ('я', 'Я')
);
// Get or detect the database encoding, firstly from the settings or language files
if (isset($modSettings['global_character_set']))
$encoding = strtoupper($modSettings['global_character_set']);
else if (isset($txt['lang_character_set']))
$encoding = strtoupper($txt['lang_character_set']);
// or try checking UTF-8 conformance
else if (preg_match('~.~su', $text))
$encoding = 'UTF-8';
// or sadly... we may have to assume Latin-1
else
$encoding = 'ISO-8859-1';
// If the database encoding isn't UTF-8 and multibyte string functions are available, try converting the text to UTF-8
if ($encoding != 'UTF-8' && function_exists('mb_convert_encoding'))
$text = mb_convert_encoding($text, 'UTF-8', $encoding);
// Or maybe we can convert with iconv
else if ($encoding != 'UTF-8' && function_exists('iconv'))
$text = iconv($encoding, 'UTF-8', $text);
// Fix Turkish
else if ($encoding == 'ISO-8859-9')
{
$text = str_replace(array("\xD0", "\xDD", "\xDE", "\xF0", "\xFD", "\xFE"), array('g', 'i', 's', 'g', 'i', 's'), $text);
$text = utf8_encode($text);
}
// Latin-1 can be converted easily
else if ($encoding == 'ISO-8859-1')
$text = utf8_encode($text);
// Change the entities back to normal characters
$text = str_replace(array('&', '"'), array('&', '"'), $text);
$prettytext = '';
// Split up $text into UTF-8 letters
preg_match_all("~.~su", $text, $characters);
foreach ($characters[0] as $aLetter)
{
foreach ($characterHash as $replace => $search)
{
// Found a character? Replace it!
if (in_array($aLetter, $search))
{
$prettytext .= $replace;
break;
}
}
}
// Remove unwanted '-'s
$prettytext = preg_replace(array('~^-+|-+$~', '~-+~'), array('', '-'), $prettytext);
return $prettytext;
}
// URL maintenance
function pretty_run_maintenance($installing = false)
{
global $boarddir, $context, $modSettings, $smcFunc;
$context['pretty']['maintenance_tasks'] = array();
// Get the array of actions
$indexphp = file_get_contents($boarddir . '/index.php');
preg_match('~actionArray\\s*=\\s*array[^;]+~', $indexphp, $actionArrayText);
preg_match_all('~\'([^\']+)\'\\s*=>~', $actionArrayText[0], $actionArray, PREG_PATTERN_ORDER);
$context['pretty']['action_array'] = $actionArray[1];
if (function_exists('call_integration_hook'))
{
$dummy = array();
call_integration_hook('integrate_actions', array(&$dummy));
$context['pretty']['action_array'] += array_keys($dummy);
}
// Pretty URLs RUS
global $txt;
$context['pretty']['maintenance_tasks'][] = $txt['pretty_task_actons'];
// Update the list of boards
// Get the current pretty board urls, or make new arrays if there are none
$pretty_board_urls = isset($modSettings['pretty_board_urls']) ? unserialize($modSettings['pretty_board_urls']) : array();
$pretty_board_lookup_old = isset($modSettings['pretty_board_lookup']) ? unserialize($modSettings['pretty_board_lookup']) : array();
// Fix old boards by replacing ' with \x12
$pretty_board_urls = str_replace("'", "\x12", $pretty_board_urls);
$pretty_board_lookup = array();
foreach ($pretty_board_lookup_old as $board => $id)
$pretty_board_lookup[str_replace("'", "\x12", $board)] = $id;
// Fix old topics too
$smcFunc['db_query']('', '
UPDATE {db_prefix}pretty_topic_urls
SET pretty_url = REPLACE(pretty_url, {string:old_quote}, {string:new_quote})',
array(
'old_quote' => "'",
'new_quote' => "\x12",
'db_error_skip' => true,
));
// Pretty URLs RUS
$context['pretty']['maintenance_tasks'][] = $txt['pretty_task_old'];
// Get the board names
$query = $smcFunc['db_query']('', "
SELECT id_board, name
FROM {db_prefix}boards");
// Process each board
while ($row = $smcFunc['db_fetch_assoc']($query))
{
// Don't replace the board urls if they already exist
if (!isset($pretty_board_urls[$row['id_board']]) || $pretty_board_urls[$row['id_board']] == '' || in_array($row['id_board'], $pretty_board_lookup) === false)
{
$pretty_text = pretty_generate_url($row['name']);
// We need to have something to refer to this board by...
if ($pretty_text == '')
// ... so use 'bID_BOARD'
$pretty_text = 'b' . $row['id_board'];
// Numerical or duplicate URLs aren't allowed!
if (is_numeric($pretty_text) || isset($pretty_board_lookup[$pretty_text]) || in_array($pretty_text, $context['pretty']['action_array']))
// Add suffix '-ID_BOARD' to the pretty url
$pretty_text .= ($pretty_text != '' ? '-' : 'b') . $row['id_board'];
// Update the arrays
$pretty_board_urls[$row['id_board']] = $pretty_text;
$pretty_board_lookup[$pretty_text] = $row['id_board'];
}
// Current board URL is the same as an action
elseif (in_array($pretty_board_urls[$row['id_board']], $context['pretty']['action_array']))
{
$pretty_text = $pretty_board_urls[$row['id_board']] . '-' . $row['id_board'];
$pretty_board_urls[$row['id_board']] = $pretty_text;
$pretty_board_lookup[$pretty_text] = $row['id_board'];
}
}
$smcFunc['db_free_result']($query);
// Pretty URLs RUS
$context['pretty']['maintenance_tasks'][] = $txt['pretty_task_urls'];
// Update the database
updateSettings(array(
'pretty_action_array' => serialize($context['pretty']['action_array']),
'pretty_board_lookup' => serialize($pretty_board_lookup),
'pretty_board_urls' => serialize($pretty_board_urls),
));
// Update the filter callbacks
pretty_update_filters($installing);
// Pretty URLs RUS
$context['pretty']['maintenance_tasks'][] = $txt['pretty_task_filters'];
}
// Update the database based on the installed filters and build the .htaccess file
function pretty_update_filters($installing = false)
{
global $boarddir, $boardurl, $context, $modSettings, $smcFunc;
// Get the settings
$prettyFilters = unserialize($modSettings['pretty_filters']);
$filterSettings = array();
$rewrites = array();
foreach ($prettyFilters as $id => $filter)
// Get the important data from enabled filters
if ($filter['enabled'])
{
if (isset($filter['filter']))
$filterSettings[$filter['filter']['priority']] = $filter['filter']['callback'];
if (isset($filter['rewrite']))
$rewrites[$filter['rewrite']['priority']] = array(
'id' => $id,
'rule' => $filter['rewrite']['rule'],
);
}
// Build the new .htaccess file
$htaccess = '# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: ' . date('F j, Y, G:i') . '
RewriteEngine on';
// Check if we'll need a RewriteBase rule
// Thanks heaps to Silverstripe!
// http://open.silverstripe.com/ticket/2903
$base = dirname($_SERVER['SCRIPT_NAME']);
if (defined('DIRECTORY_SEPARATOR'))
$base = str_replace(DIRECTORY_SEPARATOR, '/', $base);
else
$base = str_replace("\\", '/', $base);
if ($base != '.')
$htaccess .= "\nRewriteBase " . $base;
// Output the rules
ksort($rewrites);
foreach ($rewrites as $rule)
{
$htaccess .= "\n\n# Rules for: " . $rule['id'] . "\n";
if (is_array($rule['rule']))
$htaccess .= implode("\n", $rule['rule']);
else
$htaccess .= $rule['rule'];
}
$htaccess .= "\n\n# PRETTYURLS MOD ENDS";
// Fix the Root URL
if (preg_match('`' . $boardurl . '/(.*)`', $modSettings['pretty_root_url'], $match))
$htaccess = str_replace('ROOTURL', $match[1] . '/', $htaccess);
else
$htaccess = str_replace('ROOTURL', '', $htaccess);
// Actions
if (strpos($htaccess, '#ACTIONS') !== false)
{
// Put them in groups of 8
$action_array = str_replace('.', '\\.', $context['pretty']['action_array']);
$groups = array_chunk($action_array, 8);
// Construct the rewrite rules
$lines = array();
foreach ($groups as $group)
$lines[] = 'RewriteRule ^('. implode('|', $group) .')/?$ ./index.php?pretty;action=$1 [L,QSA]';
$actions_rewrite = implode("\n", $lines);
$htaccess = str_replace('#ACTIONS', $actions_rewrite, $htaccess);
}
// Check if there is already a .htaccess file
if (file_exists($boarddir . '/.htaccess'))
{
// If we can't write to it, disable the filters!
if (!is_writable($boarddir . '/.htaccess'))
{
unset($context['template_layers']['pretty_chrome']);
updateSettings(array('pretty_enable_filters' => '0'));
if ($installing)
return;
else
fatal_lang_error('pretty_cant_write_htaccess', false);
}
// Backup the old .htaccess file
@copy($boarddir . '/.htaccess', $boarddir . '/.htaccess.backup');
// Replace the old with the new, if we can
$oldHtaccess = file_get_contents($boarddir . '/.htaccess');
$pattern = '~# PRETTYURLS MOD BEGINS.+# PRETTYURLS MOD ENDS~s';
if (preg_match($pattern, $oldHtaccess, $match))
$htaccess = str_replace($match[0], $htaccess, $oldHtaccess);
}
// Output the new .htaccess file
$handle = fopen($boarddir . '/.htaccess', 'w');
fwrite($handle, $htaccess);
fclose($handle);
// Update the settings table
ksort($filterSettings);
updateSettings(array('pretty_filter_callbacks' => serialize($filterSettings)));
// Clear the URLs cache
$smcFunc['db_query']('truncate_table', "
TRUNCATE {db_prefix}pretty_urls_cache");
// Don't rewrite anything for this page
$modSettings['pretty_enable_filters'] = false;
}
// Format a JSON string
// From http://au2.php.net/manual/en/function.json-encode.php#80339
function pretty_json($json)
{
$tab = " ";
$new_json = "";
$indent_level = 0;
$in_string = false;
$len = strlen($json);
for($c = 0; $c < $len; $c++)
{
$char = $json[$c];
if ($char == '"')
{
if($c > 0 && $json[$c - 1] != '\\')
$in_string = !$in_string;
$new_json .= $char;
}
else if ($in_string)
$new_json .= $char;
else if ($char == '{' || $char == '[')
{
$indent_level++;
$new_json .= $char . "\n" . str_repeat($tab, $indent_level);
}
else if ($char == '}' || $char == ']')
{
$indent_level--;
$new_json .= "\n" . str_repeat($tab, $indent_level) . $char;
}
else if ($char == ',')
$new_json .= ",\n" . str_repeat($tab, $indent_level);
else if ($char == ':')
$new_json .= ": ";
else
$new_json .= $char;
}
return $new_json;
}
?>
Also - during the preview of pretty urls setting (in settings, before apply when enable it) - all links are ok.
German language question
Hello :)
Pretty URLs works well on my small Forum, great Job :D
But how can I change ä, ü, ö into ae ue, oe, ?
PrettyUrls make ä, ü, ö only into a, u, o...
And one last question: Is the change of the URL still important for SEO today?
Thanks for any help.
Quote from: helpplease on June 30, 2017, 09:41:28 PM
German language question
Hello :)
Pretty URLs works well on my small Forum, great Job :D
But how can I change ä, ü, ö into ae ue, oe, ?
PrettyUrls make ä, ü, ö only into a, u, o...
And one last question: Is the change of the URL still important for SEO today?
Thanks for any help.
Check above your post
It would be in the file Subs-PrettyUrls.php
[/quote]
Check above your post
It would be in the file Subs-PrettyUrls.php
[/quote]
Hi :)
I know where the Subs-PrettyUrls.php file is located, but I don't know what or how I need to change it in order to work :laugh:
In the function pretty_generate_url($text) you can see all the mappings there.
Quote from: vbgamer45 on July 01, 2017, 11:58:45 AM
In the function pretty_generate_url($text) you can see all the mappings there.
:) Thanks, and how it needs to be done? What is the coding that I need to change?
I want to change the ä, ü, ö into ae, ue, oePrettyUrls make ä, ü, ö only into a, u, o.
Add ä
'ae' => array ('æ', 'Æ'),
Quote from: vbgamer45 on July 01, 2017, 12:06:08 PM
Add ä
'ae' => array ('æ', 'Æ'),
But german letters don't have ('æ', 'Æ') :-[ We have only Ä, Ü, Ö.
I want to change the ä, ü, ö into ae, ue, oe ... PrettyUrls make ä, ü, ö only into a, u, o.
Lets say I want to have the word "Österreich" (means Austria). PrettyUrls make: osterreich.
But it needs to be:
oesterreich
Yeah you would add it to that list
'ae' => array ('æ', 'Æ','Ä'),
How that should work?
'a' => array ('a', 'A', 'à', 'À', 'á', 'Á', 'â', 'Â', 'ã', 'Ã', 'ä', 'Ä', 'å', 'Å', 'ª', 'ą', 'Ą', 'а', 'А', 'ạ', 'Ạ', 'ả', 'Ả', 'Ầ', 'ầ', 'Ấ', 'ấ', 'Ậ', 'ậ', 'Ẩ', 'ẩ', 'Ẫ', 'ẫ', 'Ă', 'ă', 'Ắ', 'ắ', 'Ẵ', 'ẵ', 'Ặ', 'ặ', 'Ằ', 'ằ', 'Ẳ', is already on file??
So what needs to be deleted in order to make this works??
Anyone has the full code for that?
I would take it out of that array.
I need the full code to do it! Else, it will not work and I will ruin my small forum :-[
// Do you know your ABCs?
$characterHash = array (
'a' => array ('a', 'A', 'à', 'À', 'á', 'Á', 'â', 'Â', 'ã', 'Ã', 'å', 'Å', 'ª', 'ą', 'Ą', 'а', 'А', 'ạ', 'Ạ', 'ả', 'Ả', 'Ầ', 'ầ', 'Ấ', 'ấ', 'Ậ', 'ậ', 'Ẩ', 'ẩ', 'Ẫ', 'ẫ', 'Ă', 'ă', 'Ắ', 'ắ', 'Ẵ', 'ẵ', 'Ặ', 'ặ', 'Ằ', 'ằ', 'Ẳ', 'ẳ'),
'ae' => array ('ä', 'Ä'),
'b' => array ('b', 'B'),
'c' => array ('c', 'C', 'ç', 'Ç', 'ć', 'Ć', 'č', 'Č'),
'd' => array ('d', 'D', 'Ð', 'đ', 'Đ', 'ď', 'Ď'),
'e' => array ('e', 'E', 'è', 'È', 'é', 'É', 'ê', 'Ê', 'ë', 'Ë', 'ę', 'Ę', 'е', 'Е', 'ё', 'Ё', 'э', 'Э', 'Ẹ', 'ẹ', 'Ẻ', 'ẻ', 'Ẽ', 'ẽ', 'Ề', 'ề', 'Ế', 'ế', 'Ệ', 'ệ', 'Ể', 'ể', 'Ễ', 'ễ', 'ε', 'Ε', 'ě', 'Ě'),
'f' => array ('f', 'F'),
'g' => array ('g', 'G', 'ğ', 'Ğ'),
'h' => array ('h', 'H'),
'i' => array ('i', 'I', 'ì', 'Ì', 'í', 'Í', 'î', 'Î', 'ï', 'Ï', 'ı', 'İ', 'Ị', 'ị', 'Ỉ', 'ỉ', 'Ĩ', 'ĩ', 'Ι', 'ι'),
'j' => array ('j', 'J'),
'k' => array ('k', 'K', 'к', 'К', 'κ', 'Κ'),
'l' => array ('l', 'L', 'ł', 'Ł'),
'm' => array ('m', 'M', 'м', 'М', 'Μ'),
'n' => array ('n', 'N', 'ñ', 'Ñ', 'ń', 'Ń', 'ň', 'Ň'),
'o' => array ('o', 'O', 'ò', 'Ò', 'ó', 'Ó', 'ô', 'Ô', 'õ', 'Õ', 'ø', 'Ø', 'º', 'о', 'О', 'Ọ', 'ọ', 'Ỏ', 'ỏ', 'Ộ', 'ộ', 'Ố', 'ố', 'Ỗ', 'ỗ', 'Ồ', 'ồ', 'Ổ', 'ổ', 'Ơ', 'ơ', 'Ờ', 'ờ', 'Ớ', 'ớ', 'Ợ', 'ợ', 'Ở', 'ở', 'Ỡ', 'ỡ', 'ο', 'Ο'),
'oe' => array ('ö', 'Ö'),
'p' => array ('p', 'P'),
'q' => array ('q', 'Q'),
'r' => array ('r', 'R', 'ř', 'Ř'),
's' => array ('s', 'S', 'ş', 'Ş', 'ś', 'Ś', 'š', 'Š'),
'ss' => array ('ß'),
't' => array ('t', 'T', 'т', 'Т', 'τ', 'Τ', 'ţ', 'Ţ', 'ť', 'Ť'),
'u' => array ('u', 'U', 'ù', 'Ù', 'ú', 'Ú', 'û', 'Û', 'Ụ', 'ụ', 'Ủ', 'ủ', 'Ũ', 'ũ', 'Ư', 'ư', 'Ừ', 'ừ', 'Ứ', 'ứ', 'Ự', 'ự', 'Ử', 'ử', 'Ữ', 'ữ', 'ů', 'Ů'),
'ue' => array ('ü', 'Ü'),
I made the modification, don't work!!! :(
Deleted forum Cache, stopped PrettyUrls, activated again...Nothing! All the same.
I want to change the ä, ü, ö into ae, ue, oe ... PrettyUrls make ä, ü, ö only into a, u, o.
Lets say I want to have the word "Österreich" (means Austria). PrettyUrls make: osterreich.
But it needs to be: oesterreich
Does this permanently change the original urls, or does it add these pretty urls as alternates?
changes the orginal ones does a redirect
Quote from: vbgamer45 on July 03, 2017, 11:28:00 AM
changes the orginal ones does a redirect
If I was to move a topic to another board, doesn't that render the pretty url useless?
Not sure give it a test
Quote from: vbgamer45 on July 03, 2017, 07:13:22 PM
Not sure give it a test
No need to worry. I decided to change it so that Boards and Topics don't have rewritten urls. Only actions do.
Quote from: vbgamer45 on June 29, 2017, 05:24:21 PM
Did you change your database characterset?
Hi vbgamer45
Is here any news about my problem?
No sorry I don't have time to look deeply into it.
Seems its a huge problem with last SMF version.
Is there any way to make this mod work with SSL? It just says once and again that the URL can't be found (404)
You should change all the settings in smf.settings table manualy, after mod will work.
1.1.4
+Added setting to set/change the pretty url root. in SMF 2.0
+Updated prettyurls news location.
Hi, I'm good at SMF and that's why I need your help. I've noticed that smf_pretty_urls_cache in my database weighs a lot - about 300MB. I'm curious is it normal? Is there a way to somehow reduce this size, e.g by deleting this table or deleting plugin and installing its latest version? I've got 1.1.2 version. I don't want to damage anything that's why I'm asking. Thanks up front for you help.
That is normal since it stores all the urls and possible actions.
So I don't have to worry and get rid of it?
PS. Oh, in my first post it should be of course "I'm NOT good at ..." ;)
No you don't you must keep if you use the mod
Missing character problem : smf 2.0.14 This version is having trouble
problem : ı ç ş ü ğ These characters connection Not included in route
examples smf 2.0.14 utf8: www.domain.com/şıüçğ : These characters are not included in the link path
utf8 2.0.13 : www.domain.com/şıüçğ : no problem
Utf8: is also doing this problem
You are not updating the mode in time
After that link google is broken
Do your job properly in these types of mods
smf 2.0.13 In this version no problem
Need to update the mode
I didn't do any changes to mod for SMF 2.0.14 character wise should be the same.
Quote from: vbgamer45 on August 14, 2017, 03:06:11 PM
No you don't you must keep if you use the mod
Ok, thank you for you help.
I have a lot of php Notice, either with PHP 5.5 or PHP 7.0 for /[www-directory]/Sources/PrettyUrls-Filters.php (Pretty URLs 1.1.4 with SMF 2.0.14) :
PHP Notice: Undefined index: session_var in /[www-directory]/Sources/PrettyUrls-Filters.php on line 149
Lines 148-149 of /[www-directory]/Sources/PrettyUrls-Filters.php
// Rip out everything that shouldn't be cached
$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|(se)?sc=[^;]+|' . $context['session_var'] . '=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);
PHP Notice: Undefined index: session_var in /[www-directory]/Sources/PrettyUrls-Filters.php on line 259
Lines 256-260 of /[www-directory]/Sources/PrettyUrls-Filters.php
// Store the parts of the URL that won't be cached so they can be inserted later
preg_match('~PHPSESSID=[^;#&]+~', $matches[2], $PHPSESSID);
preg_match('~(se)?sc=[^;#]+~', $matches[2], $sesc);
preg_match('~' . $context['session_var'] . '=[^;#]+~', $matches[2], $session_var);
preg_match('~#.*~', $matches[2], $fragment);
PHP Notice: Undefined index: session_var in /[www-directory]/Sources/PrettyUrls-Filters.php on line 263
Lines 262-263 of /[www-directory]/Sources/PrettyUrls-Filters.php
// Rip out everything that won't have been cached
$cacheableurl = preg_replace(array('~PHPSESSID=[^;#]+|(se)?sc=[^;#]+|' . $context['session_var'] . '=[^;#]+|#.*$~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $matches[2]);
I uninstalled pretty URL'S and now my site wont even open what do I do :(
Describe the error? Or restore from a backup
Quote from: vbgamer45 on August 22, 2017, 08:30:09 AM
Describe the error? Or restore from a backup
I just went went into my package manager and uninstalled pretty URL's now when I go to my site I just get a white screen
Revert from a backup.
Also check your packages/backups folder and grab the latest one.
Quote from: vbgamer45 on August 22, 2017, 11:37:26 AM
Revert from a backup.
Also check your packages/backups folder and grab the latest one.
How can I revert to a backup if I cant access the site
Through your hosting or FTP
Quote from: d3vcho(); on August 22, 2017, 11:49:57 AM
Through your hosting or FTP
Im finnally at least able to get to the main portal of my site, but when I click any of the button or even try to log in I got a Template Parse error
Can you please post the error?
How long, in SMF years, will it take to make it ready for 2.1?
A little bit of time. Just waiting for a final/rc version of SMF 2.1
Quote from: cpf on September 02, 2017, 05:16:26 AM
How long, in SMF years, will it take to make it ready for 2.1?
Might have to wait your whole life.
Quote from: confuseamuse on September 02, 2017, 03:57:56 PM
Quote from: cpf on September 02, 2017, 05:16:26 AM
How long, in SMF years, will it take to make it ready for 2.1?
Might have to wait your whole life.
My great grandchildren are going to love RC1.
Can you add the option to open all internal links in the same window or at least, enable functionality with the SMF mod (https://custom.simplemachines.org/mods/index.php?mod=980)?
Hello!
Is there a changelog? I realised I'm on 1.1.2 and latest is 1.1.4...
Thanks!
Pretty URLs 1.1.3 29 October 2015
================================================================================
! Skip rewriting urls for the tapatalk android app
Quote from: vbgamer45 on December 06, 2017, 11:29:27 AM
Pretty URLs 1.1.3 29 October 2015
================================================================================
! Skip rewriting urls for the tapatalk android app
Ah! Thanks :)
Any idea about 1.1.4?
Not sure you would have to check the previous posts in this topic
Tried before asking, no soap...but thanks anyway!
Hello all,
Is it possible to fix the addresses of individual photos in smf-gallery-lite?
Now I have this entry in hatccess:
# Rules for: smf-gallery-lite
RewriteRule ^gallery/index\.php$ index.php?action=gallery [L,QSA]
RewriteRule ^gallery/category/([^/]+)/?$ ./index.php?action=gallery;cat=$1 [L,QSA]
RewriteRule ^gallery/picture/([^/]+)/?$ ./index.php?action=gallery;sa=view;id=$1 [L,QSA]
The address of a single photo looks like this:
www.my-side.com/gallery/?sa=view&id=31
Thank you greetings
I have installed Pretty URLs onto my 2.0.15 forum. Silly question, what do I need to do to set it up? Just tick "enable and rewrite" then save, or do I have to enter anything into the Skip Actions List box? or anything else?
Thanks in advance
Pete
Yep just enable for the urls then that's it. Nothing needed in the skip action list.
Thanks, Done that and it worked. What does "Use caching instead of database table for PrettyUrls" do? Should I leave it unticked?
unchecked if you have perofrmance issues then check it.
My homepage still has /index.php. ( http://bsac10c11c12.co.uk/smf/index.ph)Is there anything I can do about that? And smf on all? would it help google if that wasn't there? Ah! or do I just need to clear my cache?
Pete
It does not hurt...
I'm finding this mod very helpful for getting the bots to crawl, but now links from other sites to mine no longer work. Should I be setting up a redirect for old URLs? and if so, how?
Thanks
I'll tell you right now... this mod has **NO** effect on bots crawling your site and almost no effect (if any) on SEO.
PrettyURLs are good for one thing only, and that is human readability.
I wish I'd known that before installing it!
Actually, isn't it more about what Google results show? Which is what we see when we do a search? If so then there is a benefit from using this mod.
So back to my original question, can I set up a redirect for the old URLs?
I appreciate any help.
Pete
Old urls should redirect to to the new ones.
I'm getting a lot of error message showing this
8: Undefined index: pretty_enable_filters
Is this normal? Will they go away when new URLs settle? Or is there something wrong with my install?
Pete
@ petewadey: I think there's something wrong with your install, it works without a hitch on our (very) custom theme of our site/forum (not that it has much to do with the theme, just letting you know).
Do you have other Mods installed, and did you try without them?
By the way, the interface of this Mod is very, very arcane, but the functionality isn't...
Thanks Dwev. I gave it time to settle and all seems fine now. My service provider assured me this would happen, and it appears they were right. Thanks again
Pete
Good to hear that it works!
And thanks for the feedback, didn't know that it could take a while for this to take hold, it worked immediately on my server.
my board urls having index.php's which causing 404s, how can i remove the index.php's from breadcrums ?
thank you
Can you show me an example?
hi there,
When i use brackets in Topic's Subject. it is also appearing in URL
for example when i entered : [BUY] New Stuff
the url of the topic becomes = domain.com/category/[BUY]-New-Stuff
is it related to pretty url ?
I am using SMF 2.0.15 and following MODS
Pretty URLS
Mention
Registered Links
Contact Page
External and NoFollow All Links
SMF Likes Plus
Show JDALLAUI in Post and PM
Yes it is
It's not really a bug it would require you to change some of the code to remove allowing []'s in the the url for pretty urls.
Quote from: vbgamer45 on January 30, 2018, 07:30:45 AM
It's not really a bug it would require you to change some of the code to remove allowing []'s in the the url for pretty urls.
yes..but how, what and where please ?
I would have to look at the code I don't know offhand.
Quote from: vbgamer45 on January 30, 2018, 08:30:27 AM
I would have to look at the code I don't know offhand.
Please do...my forum is waiting for you kind help :-[
Installing automatically didn't work, so I'm trying to install it manually, but apparently /Sources/ManageErrors.php doesn't have the following code for it to find:
$context['sub_template'] = 'error_log';
And because of that I'm getting 500 server errors on my VPS.
Where in the file is that line so I can add it in?
Line 284
// And this is pretty basic ;).
$context['page_title'] = $txt['errlog'];
$context['has_filter'] = isset($filter);
$context['sub_template'] = 'error_log';
}
// Delete errors from the database.
function deleteErrors()
{
Quote from: vbgamer45 on January 30, 2018, 02:26:05 PM
Line 284
// And this is pretty basic ;).
$context['page_title'] = $txt['errlog'];
$context['has_filter'] = isset($filter);
$context['sub_template'] = 'error_log';
}
// Delete errors from the database.
function deleteErrors()
{
Thanks, found it and attempted to do a fully manual installation, and then found out I needed to install mod_rewrite, and after which I did, the whole site crashed. I guess I won't be using PrettyURLs. (Ubuntu 14.04, no way to upgrade on this vps)
Quote from: juliereader on January 30, 2018, 04:48:37 AM
hi there,
When i use brackets in Topic's Subject. it is also appearing in URL
for example when i entered : [BUY] New Stuff
the url of the topic becomes = domain.com/category/[BUY]-New-Stuff
is it related to pretty url ?
Still waiting for the solution of this
I am using SMF 2.0.15 and following MODS
Pretty URLS
Mention
Registered Links
Contact Page
External and NoFollow All Links
SMF Likes Plus
Show JDALLAUI in Post and PM
Please don't double post your question and wait patiently for a solution from the Mod's author. You won't make it go faster by publishing it again.
Thank you.
Quote from: d3vcho(void) on January 31, 2018, 08:08:39 AM
Please don't double post your question and wait patiently for a solution from the Mod's author. You won't make it go faster by publishing it again.
Thank you.
so can i bump now...its been a week :-\
Quote from: vbgamer45 on January 30, 2018, 08:30:27 AM
I would have to look at the code I don't know offhand.
hi there,
did u get a chance to look at the code for the brackets in url issue ?
The mod owner seems too busy to update or reply here
Installed Pretty URLs 1.1.4 a while back on our new test forum, everything worked fine and without a problem.
Today we imported the data of the old forum, and we get logged out on different places, and Pretty URLs seems to be the culprit (turning it off is enough to get rid of this problem).
We completely removed Pretty URLs (including the tables in the database) and re-installed, still no dice.
Anybody any idea what the problem is here?
Can Pretty URL handle big forums?
The smf_pretty_topic_urls table has only 319 entries, smf_pretty_urls_cache only 1.481.
The forum has more than 53,000 topics.
We ran the maintenance tasks, didn't help.
Make sure you update your pretty urls root if you are getting logoff sounds like your pretty urls root is wrong
Second topic on that page
https://code.google.com/archive/p/prettyurls/wikis/TroubleShooting.wiki
Quote from: vbgamer45 on February 15, 2018, 05:38:12 PM
Make sure you update your pretty urls root if you are getting logoff sounds like your pretty urls root is wrong
I came back here to tell that I fixed the problem, only to find that vbgamer45 already posted the same solution I just found myself.
Because you're absolutely right: it was the pretty urls root was wrong: the url of the site is without "www", but in Pretty URLs is was somehow set with "www".
Removing this was enough, everything started working immediately like it should again! :D
Is there any way to have the pretty url for tags be forum/tags/tag/ or forum/tags/exampletag/ without the ID number at the end? Currently it's forum/tags/tag/1 or forum/tags/exampletag/2
in short... no. Think about it... there could be 2 dozen threads titled "help me"
Quote from: Kindred on February 17, 2018, 05:19:18 PM
in short... no. Think about it... there could be 2 dozen threads titled "help me"
But there's only 1 tag of each name, you can't have duplicate tags, right?
Hello there,
After installation of prettyUrls, this mod (Theme changer) is not working any more. :-[
https://custom.simplemachines.org/mods/index.php?mod=3356
Is there any way to solve the issue and be able running both modifications!? ???
Thanks!
I don't think so.
(https://s10.postimg.org/4mxki1n09/tomhanks_typing.gif)
vbgamer45, update characterHash array to support cyrillic, please.
// Do you know your ABCs?
$characterHash = array (
'a' => array ('a', 'A', 'à', 'À', 'á', 'Á', 'â', 'Â', 'ã', 'Ã', 'ä', 'Ä', 'å', 'Å', 'ª', 'ą', 'Ą', 'а', 'А', 'ạ', 'Ạ', 'ả', 'Ả', 'Ầ', 'ầ', 'Ấ', 'ấ', 'Ậ', 'ậ', 'Ẩ', 'ẩ', 'Ẫ', 'ẫ', 'Ă', 'ă', 'Ắ', 'ắ', 'Ẵ', 'ẵ', 'Ặ', 'ặ', 'Ằ', 'ằ', 'Ẳ', 'ẳ', 'а', 'А'),
'ae' => array ('æ', 'Æ'),
'b' => array ('b', 'B', 'б', 'Б'),
'c' => array ('c', 'C', 'ç', 'Ç', 'ć', 'Ć', 'č', 'Č', 'ц', 'Ц'),
'd' => array ('d', 'D', 'Ð', 'đ', 'Đ', 'ď', 'Ď', 'д', 'Д'),
'e' => array ('e', 'E', 'è', 'È', 'é', 'É', 'ê', 'Ê', 'ë', 'Ë', 'ę', 'Ę', 'е', 'Е', 'ё', 'Ё', 'э', 'Э', 'Ẹ', 'ẹ', 'Ẻ', 'ẻ', 'Ẽ', 'ẽ', 'Ề', 'ề', 'Ế', 'ế', 'Ệ', 'ệ', 'Ể', 'ể', 'Ễ', 'ễ', 'ε', 'Ε', 'ě', 'Ě', 'е', 'Е'),
'f' => array ('f', 'F', 'ф', 'Ф'),
'g' => array ('g', 'G', 'ğ', 'Ğ', 'г', 'Г'),
'h' => array ('h', 'H', 'х', 'Х'),
'i' => array ('i', 'I', 'ì', 'Ì', 'í', 'Í', 'î', 'Î', 'ï', 'Ï', 'ı', 'İ', 'Ị', 'ị', 'Ỉ', 'ỉ', 'Ĩ', 'ĩ', 'Ι', 'ι', 'и', 'И'),
'j' => array ('j', 'J', 'й', 'Й'),
'k' => array ('k', 'K', 'к', 'К', 'κ', 'Κ', 'к', 'К'),
'l' => array ('l', 'L', 'ł', 'Ł', 'л', 'Л'),
'm' => array ('m', 'M', 'м', 'М', 'Μ', 'м', 'М'),
'n' => array ('n', 'N', 'ñ', 'Ñ', 'ń', 'Ń', 'ň', 'Ň', 'н', 'Н'),
'o' => array ('o', 'O', 'ò', 'Ò', 'ó', 'Ó', 'ô', 'Ô', 'õ', 'Õ', 'ö', 'Ö', 'ø', 'Ø', 'º', 'о', 'О', 'Ọ', 'ọ', 'Ỏ', 'ỏ', 'Ộ', 'ộ', 'Ố', 'ố', 'Ỗ', 'ỗ', 'Ồ', 'ồ', 'Ổ', 'ổ', 'Ơ', 'ơ', 'Ờ', 'ờ', 'Ớ', 'ớ', 'Ợ', 'ợ', 'Ở', 'ở', 'Ỡ', 'ỡ', 'ο', 'Ο', 'о', 'О'),
'p' => array ('p', 'P', 'п', 'П'),
'q' => array ('q', 'Q'),
'r' => array ('r', 'R', 'ř', 'Ř', 'р', 'Р'),
's' => array ('s', 'S', 'ş', 'Ş', 'ś', 'Ś', 'š', 'Š', 'с', 'С'),
'ss' => array ('ß'),
't' => array ('t', 'T', 'т', 'Т', 'τ', 'Τ', 'ţ', 'Ţ', 'ť', 'Ť', 'т', 'Т'),
'u' => array ('u', 'U', 'ù', 'Ù', 'ú', 'Ú', 'û', 'Û', 'ü', 'Ü', 'Ụ', 'ụ', 'Ủ', 'ủ', 'Ũ', 'ũ', 'Ư', 'ư', 'Ừ', 'ừ', 'Ứ', 'ứ', 'Ự', 'ự', 'Ử', 'ử', 'Ữ', 'ữ', 'ů', 'Ů', 'у', 'У'),
'v' => array ('v', 'V', 'в', 'В'),
'w' => array ('w', 'W'),
'x' => array ('x', 'X', '×'),
'y' => array ('y', 'Y', 'ý', 'Ý', 'ÿ', 'Ỳ', 'ỳ', 'Ỵ', 'ỵ', 'Ỷ', 'ỷ', 'Ỹ', 'ỹ', 'ы', 'Ы'),
'z' => array ('z', 'Z', 'ż', 'Ż', 'ź', 'Ź', 'ž', 'Ž', 'Ζ', 'з', 'З'),
'jo' => array ('ё', 'Ё'),
'zh' => array ('ж', 'Ж'),
'ch' => array ('ч', 'Ч'),
'sh' => array ('ш', 'Ш'),
'sch' => array ('щ', 'Щ'),
'eh' => array ('э', 'Э'),
'yu' => array ('ю', 'Ю'),
'ya' => array ('я', 'Я'),
'' => array ('ъ', 'Ъ', 'ь', 'Ь', '?', '«', '»', ':', '&', '+', '@', '%', '^', '№', '#'),
'-' => array ('-', ' ', '.', ','),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),
'0' => array ('0'),
'1' => array ('1', '¹'),
'2' => array ('2', '²'),
'3' => array ('3', '³'),
'4' => array ('4'),
'5' => array ('5'),
'6' => array ('6'),
'7' => array ('7'),
'8' => array ('8'),
'9' => array ('9'),
);
Update 1.1.5
+Added support for cyrillic thanks to digger
Not of use to me, but thanks for keeping it working :)
Out of curiosity, what happens if one posts in cyrillic without this latest version?
The url won't have the proper character map
Hi,
I can not find how configure 'Nginx' to works with mod 'PrettyURL'. Nowhere I can find a tutorial (step by step) how to do it. I've looked at google search engine and here in the forum and nowhere is a tutorial for how to do it. :-\
Quote from: Cola-Coca on March 18, 2018, 03:25:37 PM
Hi,
I can not find how configure 'Nginx' to works with mod 'PrettyURL'. Nowhere I can find a tutorial (step by step) how to do it. I've looked at google search engine and here in the forum and nowhere is a tutorial for how to do it. :-\
http://www.simplemachines.org/community/index.php?topic=371631.0
Quote from: digger on March 18, 2018, 03:30:36 PM
Quote from: Cola-Coca on March 18, 2018, 03:25:37 PM
Hi,
I can not find how configure 'Nginx' to works with mod 'PrettyURL'. Nowhere I can find a tutorial (step by step) how to do it. I've looked at google search engine and here in the forum and nowhere is a tutorial for how to do it. :-\
http://www.simplemachines.org/community/index.php?topic=371631.0
That's what I read, but I do not know where to put that long code, where to put it exactly or which file I must edit?
In your main config https://www.nginx.com/blog/creating-nginx-rewrite-rules/
Quote from: vivien on September 26, 2010, 12:22:16 PM
I have a problem with apostrophe / simple quote ( ' ) in the name of Boards : Firefox can open the page.
Boards without ' => ok
Boards with ' => not ok
I had this problem with the names of topics, Pretty URLs would write single apostrophes in the URLs.
They still worked, but that's not a good thing for indexing by search bots (which I could see in Google's Webmaster Tools) and not all browsers handel them well.
So we altered Sources/Subs-PrettyUrls.php like this:
'-' => array ('-', ' ', '.', ',', "'", '"'),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
//"\x12" => array ("'", '"'),
And all is well.
I would think that this works for Board URLs as well (same principle).
Good to know might make the fix!
Quote from: SMFHacks.com Team on March 15, 2018, 10:31:21 AM
Update 1.1.5
+Added support for cyrillic thanks to digger
Please add another fix for non latin characters in topics if mysql default-character-set is not utf8. This will fix wrong topics in urls like this site.tld/correct-board-title/t123/msg456
In the PrettyUrls-Filters.php file
before
// Query the database with these topic IDs
add
// Fix for issue with non latin characters in topics if mysql default-character-set is not utf8
global $db_character_set;
if (!empty($db_character_set))
$smcFunc['db_query']('set_character_set', '
SET NAMES ' . $db_character_set,
array()
);
Update
1.1.6
!Fix for non latin characters in topics if mysql default-character-set is not utf8. This will fix wrong topics in urls like this site.tld/correct-board-title/t123/msg456 thanks to digger
Good to see my old mod is still going strong :)
Trying! I just did an upgrade for someone that had phpBB seo to pretty urls that was fun.
Indeed, that's one of the greatest mods out there. Its functionality should really be baked into SMF proper...
Quote from: Gryzor on April 11, 2018, 02:54:39 AM
Indeed, that's one of the greatest mods out there. Its functionality should really be baked into SMF proper...
Why?
what does it do that is so important that it should be included in the core?
Produces SEO- and human-friendly URLs, I suppose. I see absolutely no need to have URLs like the ones that SMF natively produces - these tend to be a thing of the past.
This has absolutely no effect on SEO.
Requiring words in URLs as part of SEO is "a thing of the past" as you put it.
As far as human friendly... sure.
That matters for things like blogs - not so much for forums
it's a great mod... I see no need for it in core, though.
Quote from: Kindred on April 11, 2018, 09:35:02 AM
This has absolutely no effect on SEO.
Requiring words in URLs as part of SEO is "a thing of the past" as you put it.
Interesting; source?
most of the articles telling you to use "pretty urls" are dated form 3 or more years ago.
Here is a recent article describing the situation
https://www.hobo-web.co.uk/search-engine-friendly-urls/
the biggest thing is that there is ONLY a benefit if the URL "keywords" actually match real content on the page itself (not just the title of the post)
As has been said - and as with most things that differ between blogs and forums - Forum SEO is less than useful in most cases, because the forum content is not optimized and is user generated without thought to search engines. Blog articles and fixed content websites are different because the content is correctly presented best for optimizing the search engines (header tags, content, strong/emphasis tags, and matching title, URL, description to content...)
that last one ONLY matters if the title, URL and description actually match keywords in the page content.
Quote from: SMFHacks.com Team on March 31, 2018, 12:35:08 PM
Update
1.1.6
!Fix for non latin characters in topics if mysql default-character-set is not utf8. This will fix wrong topics in urls like this site.tld/correct-board-title/t123/msg456 thanks to digger
Add Russian language for mod
I have uninstalled the Pretty Url mod from an existing forum. My website lot of pages are indexed by search engines and also i have created many backlinks for different pages. How can i redirect those pages because they are indexed with different url.
Go to
https://code.google.com/archive/p/prettyurls/downloads
And get prettyurls-reverter-1-0RC2.zip
QuoteGo to
https://code.google.com/archive/p/prettyurls/downloads
And get prettyurls-reverter-1-0RC2.zip
I've tried that and when trying to run it, I get this message:
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Am running SMF 2.0.15
Emulate an older SMF version
QuoteEmulate an older SMF version
Sorry, this is getting ridiculous.
Tried 2.0.10 and 2.0.05 still the same message.
Why can Pretty Url's install on 2.0.15 but the reverter can't?
What version is the reverter compatible with?
Try SMF 2.0 RC3 or just SMF 2.0
SMF 2.0 worked.
Thanks.
Installed this mod in fresh SMF. And getting these errors:
8: Undefined index: pretty_enable_filters
File: public_html/Sources/Display.php
Line: 74
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
8: Undefined index: pretty_enable_filters
File: public_html/Sources/MessageIndex.php
Line: 50
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Please help me to sort it out. Mod working but getting these errors constantly.
----------------SOLVED---------------
Looks like these errors appears if you have installed mod but haven't enabled it. Once I enable it - looks like these errors not coming up again.
Glad you have figured it out
How can I Remove characters "()" from friendly url's and Replace them with "-"
example
http:// url/the(pretty-url)-mode
Change to
http://url/the-pretty-url-mode
Quote from: Xpresskonami on May 28, 2018, 05:52:24 AM
How can I Remove characters "()" from friendly url's and Replace them with "-"
example
http:// url/the(pretty-url)-mode
Change to
http://url/the-pretty-url-mode
Anybody to assist on this
Don't bump within 24 hours. We're all volunteers here. You'll get a response as soon as someone can.
It was mentioned a few pages back on the edits to be made
Quote from: vbgamer45 on May 28, 2018, 01:31:04 PM
It was mentioned a few pages back on the edits to be made
please can I have the link to the page please and please
I think this (https://www.simplemachines.org/community/index.php?topic=146969.msg3966640#msg3966640) might be the one.
Quote from: Dwev on March 23, 2018, 02:59:31 PM
Quote from: vivien on September 26, 2010, 12:22:16 PM
I have a problem with apostrophe / simple quote ( ' ) in the name of Boards : Firefox can open the page.
Boards without ' => ok
Boards with ' => not ok
I had this problem with the names of topics, Pretty URLs would write single apostrophes in the URLs.
They still worked, but that's not a good thing for indexing by search bots (which I could see in Google's Webmaster Tools) and not all browsers handel them well.
So we altered Sources/Subs-PrettyUrls.php like this:
'-' => array ('-', ' ', '.', ',', "'", '"'),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
//"\x12" => array ("'", '"'),
And all is well.
I would think that this works for Board URLs as well (same principle).
This is exactly issues am talking about, what how can i set up this to get ride of the characters `()[]
Quote from: Xpresskonami on May 28, 2018, 10:09:19 PM
This is exactly issues am talking about, what how can i set up this to get ride of the characters `()[]
Maybe something like this ???.
'-' => array ('-', ' ', '.', ',', "'", '"','(',')','[',']'),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
//"\x12" => array ("'", '"'),
Just to make things clear, I've never used this mod and I have no idea how it actually works (what's behind the hood), so I can't take responsibility if you apply these changes and something goes wrong.
Keep a backup of the original Subs-PrettyUrls.php in case you need to uninstall the mod, since it may not uninstall properly if you make these changes manually.
Quote from: vbgamer45 on May 28, 2018, 01:31:04 PM
It was mentioned a few pages back on the edits to be made
Come in here Vbgamer45 please. How can the characters be fix. ?? Many users needs this.
I think you would take out '(',')',
Quote from: vbgamer45 on May 29, 2018, 01:23:37 PM
I think you would take out '(',')',
Yes.. but in what line will this be placed in the file. that's what I want to know
https://www.simplemachines.org/community/index.php?topic=146969.msg2798259#msg2798259
good night friends,
I installed this mod PrettyUrls1.1.6 so it is giving me this error below, can someone help me
I do not know! I use the new version 2.0.15 and gave 500 error.
Can someone help me ?
rewrite_module is enabled
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Quote from: SMFHacks.com Team on March 31, 2018, 12:35:08 PM
Update
1.1.6
!Fix for non latin characters in topics if mysql default-character-set is not utf8. This will fix wrong topics in urls like this site.tld/correct-board-title/t123/msg456 thanks to digger
I just install the new mod of the 1.6 and i see the character as been in the code , but it keep showing in my urls
Quote
// Do you know your ABCs?
$characterHash = array (
'a' => array ('a', 'A', 'à', 'À', 'á', 'Á', 'â', 'Â', 'ã', 'Ã', 'ä', 'Ä', 'å', 'Å', 'ª', 'ą', 'Ą', 'а', 'А', 'ạ', 'Ạ', 'ả', 'Ả', 'Ầ', 'ầ', 'Ấ', 'ấ', 'Ậ', 'ậ', 'Ẩ', 'ẩ', 'Ẫ', 'ẫ', 'Ă', 'ă', 'Ắ', 'ắ', 'Ẵ', 'ẵ', 'Ặ', 'ặ', 'Ằ', 'ằ', 'Ẳ', 'ẳ', 'а', 'А'),
'ae' => array ('æ', 'Æ'),
'b' => array ('b', 'B', 'б', 'Б'),
'c' => array ('c', 'C', 'ç', 'Ç', 'ć', 'Ć', 'č', 'Č', 'ц', 'Ц'),
'd' => array ('d', 'D', 'Ð', 'đ', 'Đ', 'ď', 'Ď', 'д', 'Д'),
'e' => array ('e', 'E', 'è', 'È', 'é', 'É', 'ê', 'Ê', 'ë', 'Ë', 'ę', 'Ę', 'е', 'Е', 'ё', 'Ё', 'э', 'Э', 'Ẹ', 'ẹ', 'Ẻ', 'ẻ', 'Ẽ', 'ẽ', 'Ề', 'ề', 'Ế', 'ế', 'Ệ', 'ệ', 'Ể', 'ể', 'Ễ', 'ễ', 'ε', 'Ε', 'ě', 'Ě', 'е', 'Е'),
'f' => array ('f', 'F', 'ф', 'Ф'),
'g' => array ('g', 'G', 'ğ', 'Ğ', 'г', 'Г'),
'h' => array ('h', 'H', 'х', 'Х'),
'i' => array ('i', 'I', 'ì', 'Ì', 'í', 'Í', 'î', 'Î', 'ï', 'Ï', 'ı', 'İ', 'Ị', 'ị', 'Ỉ', 'ỉ', 'Ĩ', 'ĩ', 'Ι', 'ι', 'и', 'И'),
'j' => array ('j', 'J', 'й', 'Й'),
'k' => array ('k', 'K', 'к', 'К', 'κ', 'Κ', 'к', 'К'),
'l' => array ('l', 'L', 'ł', 'Ł', 'л', 'Л'),
'm' => array ('m', 'M', 'м', 'М', 'Μ', 'м', 'М'),
'n' => array ('n', 'N', 'ñ', 'Ñ', 'ń', 'Ń', 'ň', 'Ň', 'н', 'Н'),
'o' => array ('o', 'O', 'ò', 'Ò', 'ó', 'Ó', 'ô', 'Ô', 'õ', 'Õ', 'ö', 'Ö', 'ø', 'Ø', 'º', 'о', 'О', 'Ọ', 'ọ', 'Ỏ', 'ỏ', 'Ộ', 'ộ', 'Ố', 'ố', 'Ỗ', 'ỗ', 'Ồ', 'ồ', 'Ổ', 'ổ', 'Ơ', 'ơ', 'Ờ', 'ờ', 'Ớ', 'ớ', 'Ợ', 'ợ', 'Ở', 'ở', 'Ỡ', 'ỡ', 'ο', 'Ο', 'о', 'О'),
'p' => array ('p', 'P', 'п', 'П'),
'q' => array ('q', 'Q'),
'r' => array ('r', 'R', 'ř', 'Ř', 'р', 'Р'),
's' => array ('s', 'S', 'ş', 'Ş', 'ś', 'Ś', 'š', 'Š', 'с', 'С'),
'ss' => array ('ß'),
't' => array ('t', 'T', 'т', 'Т', 'τ', 'Τ', 'ţ', 'Ţ', 'ť', 'Ť', 'т', 'Т'),
'u' => array ('u', 'U', 'ù', 'Ù', 'ú', 'Ú', 'û', 'Û', 'ü', 'Ü', 'Ụ', 'ụ', 'Ủ', 'ủ', 'Ũ', 'ũ', 'Ư', 'ư', 'Ừ', 'ừ', 'Ứ', 'ứ', 'Ự', 'ự', 'Ử', 'ử', 'Ữ', 'ữ', 'ů', 'Ů', 'у', 'У'),
'v' => array ('v', 'V', 'в', 'В'),
'w' => array ('w', 'W'),
'x' => array ('x', 'X', '×'),
'y' => array ('y', 'Y', 'ý', 'Ý', 'ÿ', 'Ỳ', 'ỳ', 'Ỵ', 'ỵ', 'Ỷ', 'ỷ', 'Ỹ', 'ỹ', 'ы', 'Ы'),
'z' => array ('z', 'Z', 'ż', 'Ż', 'ź', 'Ź', 'ž', 'Ž', 'Ζ', 'з', 'З'),
'jo' => array ('ё', 'Ё'),
'zh' => array ('ж', 'Ж'),
'ch' => array ('ч', 'Ч'),
'sh' => array ('ш', 'Ш'),
'sch' => array ('щ', 'Щ'),
'eh' => array ('э', 'Э'),
'yu' => array ('ю', 'Ю'),
'ya' => array ('я', 'Я'),
'' => array ('ъ', 'Ъ', 'ь', 'Ь', '?', '«', '»', ':', '&', '+', '@', '%', '^', '№', '#'),
'-' => array ('-', ' ', '.', ',', "'", '"'),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),
'0' => array ('0'),
'1' => array ('1', '¹'),
'2' => array ('2', '²'),
'3' => array ('3', '³'),
'4' => array ('4'),
'5' => array ('5'),
'6' => array ('6'),
'7' => array ('7'),
'8' => array ('8'),
'9' => array ('9'),
);
Try this.
'-' => array ('-', ' ', '.', ',', "'", '"', '`', '(', ')', '[', ']'),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
// '(' => array ('(', '{', '['),
// ')' => array (')', '}', ']'),
good night friends,
I installed this mod PrettyUrls1.1.6 so it is giving me this error below, can someone help me
I do not know! I use the new version 2.0.15 and gave 500 error.
Can someone help me ?
rewrite_module is enabled
Code: [Select]
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at
[email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Floyde, you have made the same post three times. Please stop. Your issue will be addressed when someone has a chance or an idea. Until that time, you need to wait. multi-posting is rude.
Quote from: GigaWatt on May 29, 2018, 08:23:50 PM
Try this.
'-' => array ('-', ' ', '.', ',', "'", '"', '`', '(', ')', '[', ']'),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
// '(' => array ('(', '{', '['),
// ')' => array (')', '}', ']'),
This work for Me. thanks to the Developers in the forum.. The pretty-url is now fine and friendly
I installed this mod. It is good. I commed you for that. Please I would love to know how to customize the Default PRETTY URL.
E.g
Changing
site.com/board/topic-name
to site.com/topic_id/topic-name
It would have been better if you included a way to do this in there.
Please thanks in advance.
No easy way to do that requires a lot of of changes.
Thank you. I don't like the fact that the board name is showing. Can I easily remove the board from site.com/board/topic to site.com/custom_text/topic
Not really no.
Quote from: vbgamer45 on June 13, 2018, 11:41:52 PM
No easy way to do that requires a lot of of changes.
Please can you tell me how to change them.
To
site.com/topic_Id/topic-name
I'm moving to SMF and that's how my URL IS, I DON'T WANT ANY BROKEN LINK
There's no way to do it that isn't a vast amount of work to make it work correctly :(
I would advise to doing some rewrite script.
You might be able to solve your problem with this (https://github.com/sbulen/sjrbTools/blob/master/SMF_URLs_Paths.php) script, but you'd have to do it with every board URL on your forum.
I have an important question.
Let's pretend we have this MOD activated and we decide to switch a thread from one board to another.
url.com/board1/title to url.com/board2/title
Will this affect ranking or are the redirects 301? Also, if we decide to go back to normal URLs, will it affect ranking?
That's why I don't like mods like this one.
I'm in the process of rearranging some of the boards and moving some threads from one board to another on my forum and I have no idea what would happen if I already had something like this installed. This way, everything's clean, the board numbers stays the same. The only difference is the location of the board itself.
Let's await for the author to respond, because this is extremely important.
@vbgamer45
Do you know the answer to the question asked above?
Quote from: Study Force on June 18, 2018, 09:19:37 AM
I have an important question.
Let's pretend we have this MOD activated and we decide to switch a thread from one board to another.
url.com/board1/title to url.com/board2/title
Will this affect ranking or are the redirects 301? Also, if we decide to go back to normal URLs, will it affect ranking?
I wouldn't use this mod at all. While back in the day 5-6-10 years ago it was helpful for google search results, it's really not of any use at all today. And if you want to turn it off to go back to normal URLs, you will absolutely destroy your rank. Not to mention you will have to 301 every single URL because they will not translate when switched back. It serves no other purpose today except for what it's name is, your URL's look pretty.
Quote from: Study Force on June 18, 2018, 09:19:37 AM
I have an important question.
Let's pretend we have this MOD activated and we decide to switch a thread from one board to another.
url.com/board1/title to url.com/board2/title
Will this affect ranking or are the redirects 301? Also, if we decide to go back to normal URLs, will it affect ranking?
Yes there are 301 redirects in place for that case.
There is a reverter package in place that you can revert back to a seperate download
That's not *entirely* true though it is *mostly* true on most platforms. If a link with pretty URLs is posted to a platform that doesn't preview/embed it, the URL being readable might still encourage traffic.
Though this becomes less relevant as more platforms fetch the title or a preview of the link - but don't underestimate the human factor of what looks nicer.
Quote from: njtweb on June 23, 2018, 08:25:31 AM
Quote from: Study Force on June 18, 2018, 09:19:37 AM
I have an important question.
Let's pretend we have this MOD activated and we decide to switch a thread from one board to another.
url.com/board1/title to url.com/board2/title
Will this affect ranking or are the redirects 301? Also, if we decide to go back to normal URLs, will it affect ranking?
I wouldn't use this mod at all. While back in the day 5-6-10 years ago it was helpful for google search results, it's really not of any use at all today. And if you want to turn it off to go back to normal URLs, you will absolutely destroy your rank. Not to mention you will have to 301 every single URL because they will not translate when switched back. It serves no other purpose today except for what it's name is, your URL's look pretty.
Quote from: Arantor on June 23, 2018, 08:49:50 AM
That's not *entirely* true though it is *mostly* true on most platforms. If a link with pretty URLs is posted to a platform that doesn't preview/embed it, the URL being readable might still encourage traffic.
Though this becomes less relevant as more platforms fetch the title or a preview of the link - but don't underestimate the human factor of what looks nicer.
Thank you, I have turned it off.
Quote from: Study Force on June 23, 2018, 11:53:13 AM
Thank you, I have turned it off.
By the way, a really great forum you have designed. Inspirational for me, because I've lost a little bit the faith in SMF in the last year.
I would like to see how your ranks evolve after you have switch it off, are you currently monitoring some keywords in the SERPs?
Quote from: Arantor on June 23, 2018, 08:49:50 AM
That's not *entirely* true though it is *mostly* true on most platforms. If a link with pretty URLs is posted to a platform that doesn't preview/embed it, the URL being readable might still encourage traffic.
I've noticed that this is a common conception. There is a little caveat that you are not taking in consideration. When you are ranking long tail keywords, it's true that EMD or UEM is not that important (the proof can be seen with this forum, that ranks a ton of long tail keywords).
But when you are fighting with some posts for some more competed niches this can make a difference with short tails. For example, in the Study Force case, ranking for "some tests banks in certain subjects" can be really competed and important at the same time. Ranking with biology-forum...../index.php?topic=1234 will be a bad deal especially if there is a huge 10K+ words pillar post with internal linking to all the greatest banks in the site.
Does it make a difference, though? How could you *possibly* tell whether any one factor on its own makes a difference?
Well, there are some superstitions all over the place. Sometimes is good to satisfy the superstitions in order to keep it up. I'm so superstitious in this sense, that I even buy new exact match TLD to try to achieve an optimal match ;D (for example: dallas.attorney for "dallas attorney keyword").
But regardless of that, in this case, if you eliminate the rewriting after being done as Study Force has done, it will literally kill your site in terms of SEO.
You might need thousands of manual 301 to redirect the old P-URLs to new non-P-URLs. All the internal linking done through P-URL will be destroyed, and all the external linking should be audited in order to create the new redirections also (at least the most important backlinks)
Anyway, here are all the reasons why statics URLs are a must for all marketers
https://moz.com/blog/dynamic-urls-vs-static-urls-the-best-practice-for-seo-is-still-clear
Also, I have a "theory", when you link build with a P-URL you are actually inputting an anchor text in the link. For example. If your anchor text is "Dallas attorney affordable" and you have a link like dallas.attorney/affordable you are creating a direct link but indirectly contextualizing this link. This means that both the link and each part has the wording for semantic SEO purposes (as href=...> + the URL itself as the anchor text. So in this sense, you are doubling your linking "power" by the link itself + context.
But as I said, in the beginning, may this be just a superstition.
you realize that article is opinion only -- and it is opinion based on the internet as of 2008 -- 10 years ago.
Things have changed significantly in 10 years.
Keywords in the URL are basically ignored by search engines these days. They based their scans on CONTENT. Specifically, well designed, well tagged content. (unfortunately, for the most part, that is not possible to force in a forum environment, since YOU have no control over the content that other users post)
The ONE advantage that so called "static" urls have is that they ar emore easily recognizable and human readable. That's it.
If you are going to do a whole bunch of online advertising, then it doens't matter, because you can control the presentation of the advert -- amd people don't have to remember the link.
If you are not going to advertise or promote your site externally, then it doesn't matter, because google and others will scan your site just fine and will present the summary along with the dynamic url.
The only time it really matters is if you plan to do print advertising or ask others to link to specific locations on your site.
Human readable does have a psychological advantage over non human readable, just like using the full link gives you information that a URL shortener would remove.
this is true
Quote from: Study Force on June 23, 2018, 11:53:13 AM
Quote from: njtweb on June 23, 2018, 08:25:31 AM
Quote from: Study Force on June 18, 2018, 09:19:37 AM
I have an important question.
Let's pretend we have this MOD activated and we decide to switch a thread from one board to another.
url.com/board1/title to url.com/board2/title
Will this affect ranking or are the redirects 301? Also, if we decide to go back to normal URLs, will it affect ranking?
I wouldn't use this mod at all. While back in the day 5-6-10 years ago it was helpful for google search results, it's really not of any use at all today. And if you want to turn it off to go back to normal URLs, you will absolutely destroy your rank. Not to mention you will have to 301 every single URL because they will not translate when switched back. It serves no other purpose today except for what it's name is, your URL's look pretty.
Quote from: Arantor on June 23, 2018, 08:49:50 AM
That's not *entirely* true though it is *mostly* true on most platforms. If a link with pretty URLs is posted to a platform that doesn't preview/embed it, the URL being readable might still encourage traffic.
Though this becomes less relevant as more platforms fetch the title or a preview of the link - but don't underestimate the human factor of what looks nicer.
Thank you, I have turned it off.
This is forum related, are you a Bio major? My son starts college this fall and that's his major. Would your forum be helpful to him?
^^ Absolutely, and it's entirely free. Ask questions, receive expert help.
Update
Pretty URLs 2.0
!No longer store verificationcode action saving database space
!Fixed no longer stores non board urls
I have also released Pretty URLS Seo Pro at https://www.smfhacks.com/prettyurls-seo-pro.php which adds extra SEO options and more editing control over key files.
Minor update
2.0.1 fixed handling of forum action rewrite for TinyPortal
Hello,
This may have been answered before but I can't really find it.
Let's say I have a website (website.web/forum/index.php), how does PrettyURLs accomidate this to not direct to website.web/page, which would break the setup?
I'm sorry if I'm not being very clear, I hope someone can translate better.
Cheers!
It uses mod_rewrite with .htaccess rules to chagne the actions, board urls and topics urls.
So with that, would it know to write the new .htaccess rules to the /forum section instead of the top-level .web side?
Pretty urls should just affect the forum area by default.
Indeed, that's how I do it too, it's pretty straightforward.
hi, i have big issues with Pretty URLs (V 1.16) that causes me error503 and can't uninstall it with the file fix.packages.php. Please can you tell me how to uninstall it manually.
Thnks
Just take a look at the steps that fail through SMF and do them manually.
Also, as a matter of urgency, you can probably edit .htaccess to reverse its effects?
You can upload the package to
https://www.smfhacks.com/smf-package-parser.html
Some users on polish support are reporting that polish letter such as "ą" "ę" "ń" are translated as /f05 etc. Any fix to make them just equivalent of english letters in link? ą => a
It can be done if you modify one of the files there is file that handles the character mapping
Hi I want to make changes to the URL, I modified the pretty URL to
site.com/123/how-to-run
i.e url/topicid/prettyurl
When I apply the setting and it redirects me to the test page, the URL works but when I enable URL rewrites, it does not work but shows URL redirected too many times. Please help
I don't believe that is supported unless you make a lot of changes to the code
Quote from: vbgamer45 on September 04, 2018, 08:22:37 AM
I don't believe that is supported unless you make a lot of changes to the code
Can you tell me the Secret in URL REWRITING??
LIKE HOW DO YOU MANGE TO REPLACE ALL THE URL WITH SITE.COM/BOARD/HOW-TO-RUN
IF YOU CAN TELL ME THIS, I CAN CREATE AN HTACCESS FOR MY SITE AND MANUALLY GIVE THE POSTS THE CONTENT IN SITE.COM/INDEX.PHP?topic=topicId
Depends. I normally use id's in my urls on my sites to keep rewriting easier. Otherwise you need to keep a database of the slugs to do the rewriting.
Quote from: vbgamer45 on September 04, 2018, 01:53:00 PM
Depends. I normally use id's in my urls on my sites to keep rewriting easier. Otherwise you need to keep a database of the slugs to do the rewriting.
I am only trying to make changes to the topic filter. can you tell me where to edit to change the board name that attaches itself to the topic URL.
e.g site.com/general-discussion/welcome-to-smf
how can I replace the general-discussion with what ever I wand and make the URL valid. I don't care how much code I need to edit.
Note: I'm moving to SMF and my Old forum URL uses that, that's why I want to do this
When trying to install the MOD Pretty URLs, I find the following error:
-------------------
Error in the Database
Specified key was too long; max key length is 1000 bytes
Archivo: /home/wbarzgfe/public_html/Packages/temp/SMF2-0/install.php
Línea: 39
--------------
I am using the hosting service banahosting, it is a virgin installation, it has the default theme and the latest version of smf.
Not sure the cause of that...did you have it installed before the mod?
That line is just to create the table. And the key length would only be 255 bytes
Quote from: mattizzy on September 04, 2018, 03:18:28 PM
I am only trying to make changes to the topic filter. can you tell me where to edit to change the board name that attaches itself to the topic URL.
e.g site.com/general-discussion/welcome-to-smf
As far as I know you can do this in Admin > Forum > Boards > Edit Boards (I hope I got this right, our forum isn't in English).
Here you should be able to see the list of all of your boards, with to the right the options permissions, move, edit and Pretty URLs.
Hello!! I was able to tweak the pretty URL. Please How does pretty URL auto generate URL. I want to reduce the length of the URL because it's affecting my old forum URL design which is usually 60
The latest version of PrettyUrls have an issue. Some Turkish letters (characters) won't appear on the url section. Can you fix it soon? Tyvm.
Did it used to work? Did you make any custom changes to the prettyurls files?
Quote from: vbgamer45 on September 24, 2018, 01:25:37 PM
Did it used to work? Did you make any custom changes to the prettyurls files?
I've installed it and uninstalled it many times but still the same issue. It don't convert Turkish letters or they don't appear on the url section.
Did it ever work? If not you would have to patch the prettyrurls filter file to add those characters
Just used previous version and it did work but the latest version is bugged. So I don't know how to do it sorry..
Attach that version here I want to compare it.
I'll but its very old version so I've found it on my hard drive.
Here but like I said its very old version but its working good :)
What SMF version do you use?
My SMF version is 2.0.1.5
Pretty URLs 2.1.0 24 September 2018
================================================================================
!Fixed a bug due to file edits that lost the utf8 characters from rewriting.
Tyvm for the hotfix! :)
Glad to help
Is there a solution to the new post link going to the top of the page as the anchor text seems to be getting stripped out?
Quote from: Cathal on September 24, 2018, 02:46:43 PM
Is there a solution to the new post link going to the top of the page as the anchor text seems to be getting stripped out?
Haven't had that reported yet so no solution will need to test.
Quote from: vbgamer45 on September 24, 2018, 02:48:50 PM
Quote from: Cathal on September 24, 2018, 02:46:43 PM
Is there a solution to the new post link going to the top of the page as the anchor text seems to be getting stripped out?
Haven't had that reported yet so no solution will need to test.
Actually I don't think it's anything to do with it
help me about this error.
Veritabanı Hatası: Duplicate entry 'turk-havaciliginda-ilkler-adli-belgesel-film' for key 'pretty_url'
When do you get that errror? And what is line error number
You can delete it from the pretty urls cache table that entry
error
8: Undefined index: pretty_bufferusecacheFiltreyi Uygula: Sadece bu dosyaya ait hataları göster Dosya: /home/xxx/public_html/Themes/default/PrettyUrls.template.php
Satır: 92
Veritabanı Hatası: Duplicate entry 'turk-havaciliginda-ilkler-adli-belgesel-film' for key 'pretty_url'Filtreyi Uygula: Sadece bu dosyaya ait hataları göster Dosya: /home/xxx/public_html/Sources/PrettyUrls-Filters.php
Satır: 460
Copy this attached file to your sources folder and let me know if it helps
Pretty Urls now supports 2.1 Beta 3!!!
Update for SMF 2.1
2.1.2
!Fixed issue with boards/topics with a single quote not working.
Getting this error on 2.0.15
An Error Has Occurred!
syntax error, unexpected ''" width="100%" height="200px"' (T_ENCAPSED_AND_WHITESPACE)
what file do I need to fix
thanks
Are yo sure it's from this mod? This mod doesn't really change templates/tables. What file is it from?
Hello, I am having the issue below and also when i click on the pretty link in the forum it kicks me out of session. I would be very glad for any helpful answers
<label for="pretty_skipactions">', $txt['pretty_skipactions'], '</label>
88: <input type="text" name="pretty_skipactions" id="pretty_skipactions" value="', (isset($modSettings['pretty_skipactions']) ? $modSettings['pretty_skipactions'] : ''), '" />
89: <br />
90: <span class="smalltext">',$txt['pretty_skipactions_note'],'</span><br />
91: <label for="pretty_bufferusecache">', $txt['pretty_bufferusecache'], '</label>
==>92: <input type="checkbox" name="pretty_bufferusecache" id="pretty_bufferusecache"', ($modSettings['pretty_bufferusecache'] ? ' checked="checked"' : ''), ' />
i would make sure the pretty urls matches your main site url
can someone help please... my hosting site migrated my site and after connecting the database this is what it says
"Notice: Undefined index: pretty_action_array in /storage/content/41/************/forum/index.php on line 77
Notice: Undefined index: pretty_board_urls in /storage/content/41/**************/forum/index.php on line 78
Fatal error: Call to undefined function TP_loadTheme() in /storage/content/****************/forum/Sources/Load.php on line 1387 "
i am not a programmer and dont have a web admin. i survived maintaining my site by googling but this is the worst problem i have encountered.
i dont want to start from scratch, it is almost 10 years of post related on helping the livestock sector.....
any help is much appreciated
Attach your index.php file
But the second error is from tinyportal
attach is the index file.
i am just hoping that once the initial problem with pretty url is solved everything will follow, i am assuming this is the first problem which cascaded to others .
thank you
Pretty urls looks like it is installed ok on that file.
I would think it would be an issue with tinyportal.
Also you should upgrade SMF version from 2.0.11 to at least 2.0.13 if you are on php 5..3 or less if higher go up to 2.0.15
thank you.
i will try to fresh install version 2.0.13 then apply the pretty url mods , i wont install tinyportal. connect my old database and hopefully it will work.
thank you for the input....
Without any details on what was done, what versions are used (TP) it is impossible to ascertain that TinyPortal is causing the problem.
i think this is the version prettyurls 1.1.3 ,tp 1.2.
itried to instal 2.0.13 and apply the prettyurl mod but i still have the same result.
may i ask if there is a way i can remove tp and prettyurls eventhough i cannot access my smf forum?
i have a backup , i can upload it and then remove tp and prettyurl if it is possible...
thank you
Did you upload a fresh set of files from the large upgrade pacakge?
what i use is "full install" i did not upgrade.
i don't have an idea how to do large upgrade if i cant enter my smf admin area
Hello,
I'm finally trying to uninstall ver 1.0 and set up 2.1.2
smf 2.14 says there is an error in news.php
I found that part of the code in the file, here's the whole function
function fix_possible_url($val)
{
global $modSettings, $context, $scripturl;
if (substr($val, 0, strlen($scripturl)) != $scripturl)
return $val;
call_integration_hook('integrate_fix_url', array(&$val));
/*** if (empty($modSettings['queryless_urls']) || ($context['server']['is_cgi'] && @ini_get('cgi.fix_pathinfo') == 0 && @get_cfg_var('cgi.fix_pathinfo') == 0) || (!$context['server']['is_apache'] && !$context['server']['is_lighttpd']))
return $val;
$val = preg_replace_callback('~^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$~', 'feed_fix__preg_callback', $val);
return $val; ***/
return $val;
}
Attached is a prtscr error that smf displays when I try to uninstall.
I see that there is a difference in the code, why is it so?
can I just remove the comment tags manually?
thanks
Are you using SMF 2.0.x or SMF 2.1?
Generally you can't make the edit if another mod changed the same area.
Added support for SMF 2.1 RC1
Hi there,
on my site (2.1 RC1) the Login Popup windows doesn't work anymore when installing Pretty URLs.
Just on my site or anywhere else?
Confirmed. Not sure on the cause yet. Have to debug more.
SMF 2.1 RC1 update
!Fixed bug with popup login form not working.
Maybe i did something wrong, but using 2.1.2b the bug is still present...
At least it was on my page.
Are you using the default theme?
Jep
Quote from: SMFHacks.com Team on February 07, 2019, 11:33:10 PM
SMF 2.1 RC1 update
!Fixed bug with popup login form not working.
Hi, is there a reverter planned for SMF 2.1 RC1?
I tried prettyurls-reverter-1-0RC2.zip but there are too many manual modifications to do and I am not sure of the result.
Possibly probably for final.
2.1.3 for SMF 2.1
+Adds icon for SMF 2.1.x for pretty urls.
!Fixes issue with adding new and modifying boards
Thanks for the continued support :)
I've got a question: I just enabled https on my forum. For the time being it's not the default yet so http is still working, however I wanted to ask if there's anything I should have in mind for when I make https the only option? Or will things break down completely? :D
Thanks again,
T
Just make sure you update the pretty urls root under settings when all is done.
Ah yes I saw that one indeed, thanks! Though just maybe, even without changing the root, the 301 would take care of it? (I *will* change it because after all who needs a 301 at every load, just asking!)
Thanks :)
Always verify that you an post after you change the root. SMF doesn't like when you have two different urls like http and https it wants one or the other.
Good not know :)
What I do is keep the Pretty URLs settings page open when I do changes and test things on another tab so that I can revert easily (elementary, I know, just noting it in case it helps others).
Was trying version 2.1.3 of this on my forum that I just updated to 2.1 RC1 and with this installed, my login prompt is empty as well as all the help popups that seem to use a similar popup. Remove this and they start working again. This is on my local PC so I can't link to anything.
Quote from: MarkRH on March 03, 2019, 06:43:43 AM
Was trying version 2.1.3 of this on my forum that I just updated to 2.1 RC1 and with this installed, my login prompt is empty as well as all the help popups that seem to use a similar popup. Remove this and they start working again. This is on my local PC so I can't link to anything.
Try now. Made some changes grab the latest download
Quote from: SMFHacks.com Team on March 03, 2019, 09:33:36 AM
Try now. Made some changes grab the latest download
Looks like version 2.1.3a works. Both login and help popups work.
Nice! glad that fixes it.
I had Pretty URLs on a 2.1RC1 forum and there were issues with URLs in reply notification emails. They became invalid and Pretty URLs had to be uninstalled to resolve the issue.
Here is the type of URL's in the emails:
index.php?topic;=51071.new#new
instead of:
index.php?topic=51071.new#new
Yeah some strange behavior outstanding with ;'s not sure yet the cause/fix...
It's the same on my board ;)
Version Information:
[2.1 RC1]
MySQLi version: 5.7.24
PHP: 7.1.26
Server version: Apache/2.4.38
/index.php?topic;=350.new#new
:)
This only affects 2.1?
Posted possible fix for SMF 2.1.x email notifications let me know if helps.
Quote from: SMFHacks.com Team on March 08, 2019, 12:21:48 AM
Posted possible fix for SMF 2.1.x email notifications let me know if helps.
Hi,
It worked perfectly for the RC1!
Thank you very much for this fix.
:)
Thank you for the fix for RC1. :)
Glad to help.
Hello,
1.1.3 to 2.1.4 upgrade.. but Numbers appearing in boards..
Exp : https://www.hearthstoneturkiye.com/1/
https://www.hearthstoneturkiye.com/1/yorumlarimin-silinmesi/
Must be ;
https://www.hearthstoneturkiye.com/genel-sohbet/
https://www.hearthstoneturkiye.com/genel-sohbet/yorumlarimin-silinmesi/
can you help me?
I think you can modify the board under admin -> boards and change the pretty url there.
Board name change..
And Run maintenance tasks >
No change..
SS ( att )
Post your index.php file.
Okey, thank you my fault..
index.php rebuild.. ;)
Glad you have it working!
there's any way to rewrite simple portal articles an pages ?
Not at the moment.
what is the syntax to use in the "skip actions list" in settings?
eg
"alerts;sa"
or
"alerts"
or
"alerts="?
thanks in advance!!!
Just the main action name so
alerts,
awesome! thanks!
Add to remove the plugin due to its uncompatibility with PHP 7.3: Error message is :
xxx?pretty;action=admin&area=packages;sa=uninstall2;package=PrettyUrls2.1.4.zip
8192: Function create_function() is deprecated
Fichier: /home/lemagcin/www/forum/Sources/Subs.php
Ligne: 1683
That's not from the plugin but from the core of SMF 2.0.x. Which only supports up to PHP 7.1
how does one get (translate from/to prettyURL's) the :
$context['current_topic']
when using prettyURL's and masking topic's too?
I've been slamming my head on the table for days.....
there has got to be a way...
edited: disregard.... as soon as i asked i figured it out. I should have asked days ago.
How do you update the URL for a topic if you change the subject? I've tried running the maintenance tasks but that hasn't changed anything.
I just installed this and couldn't be anymore impressed, highly recommend it.
Quote from: Oldiesmann on May 13, 2019, 05:54:16 PM
How do you update the URL for a topic if you change the subject? I've tried running the maintenance tasks but that hasn't changed anything.
The only way is to modify the entries in the Pretty URLs' database. I had to do it a few times because of complaints from non members or businesses and it is a pain. It would be great to have a feature that would do it from the admin panel.
Though it is kind of deliberate to avoid breaking links to things...
I installed pretty url , but didnt get it to work. So, i uninstalled it, but keep getting these errors.
Error
Type of error: Undefined_vars
Error message: 8: Undefined index: pretty_enable_filters
File: /home/csscpsg2/public_html/smf/Sources/MessageIndex.php
Line: 30
URL of page causing the error: https://csscpsg.org/smf/index.php?board=25.0 [nofollow]
Backtrace information
#0: smf_error_handler()
Called from /home/csscpsg2/public_html/smf/Sources/MessageIndex.php on line 30
#1: MessageIndex()
Called from /home/csscpsg2/public_html/smf/index.php on line 163
Did the mod make all the changes to the your smf forum?
Quote from: vbgamer45 on May 29, 2019, 04:24:20 PM
Did the mod make all the changes to the your smf forum?
I have no idea. It is spamming my error section, so id like to fix the error.
If you uninstalled it that means it shouldn't be in the files any more.
That means a file failed to uninstall check Sources/MessageIndex.php and remove any related code.
You can upload it via https://www.smfhacks.com/smf-package-parser.html and get the install/uninstall steps
attached is the harm this mod cause to my website,i noticed my website becomes slow and my server cpu fill rate increased.after a week of installing this mod. i checked everything until i checked my php admin. this mod create a cache tabel and kept storing cache without clearing them making the website slow and also also hosting server. i have removed the mod now until the op fix this issue.
Use non caching option that should help
Quote from: vbgamer45 on June 22, 2019, 09:15:25 AM
Use non caching option that should help
none cache option is worse,i tried and it still stores cache secretly and hidden and makes the website to lag and also the server..i have removed the mod. my website runs smoothly since i removed the mod.
the op need to update this mod and remove the cache issue completely.
Hello all,
I'm getting the same error:
http://forum.usa-reise.de/index.php?topic=30407.60
8: Undefined index: pretty_enable_filters
Datei: /pages/d7/54/d0014341/home/htdocs/usa-reise.de/smf/smf-v2a/Sources/Display.php
Zeile: 74
It's the same for MessageIndex, etc. Apart from that, PrettyURLs is working so far for me.
Line 78 in Display.php is the line where the curly brackets open:
$filterData = unserialize($modSettings['pretty_filters']);
if ($filterData['topics']['enabled'])
{
$url = 'topic=' . $topic . '.' . (isset($_REQUEST['start']) ? $_REQUEST['start'] : '0') . (isset($_REQUEST['prev_next']) ? ';prev_next=' . $_REQUEST['prev_next'] : '') . (isset($_REQUEST['topicseen']) ? ';topicseen' : '') . (isset($_REQUEST['all']) ? ';all' : '') . (isset($_REQUEST['viewResults']) ? ';viewResults' : '');
header('HTTP/1.1 301 Moved Permanently');
redirectexit($url, false);
}
Any help is appreciated, my error log is growing with every visit... - thank you in advance!
Regards, Thomas
Run pretty urls maintenance task in the admin area for pretty urls
Thank you very much, this indeed did the trick.
I am curious now - before I dig into the script and have a look at the db - what did it change?
Going to truncate the huuuuuuuge log now.
Regards,
Thomas
It looks like the array wasnt populated correctly.
Thanks again.
170313 records affected. (The query took 3.0448 seconds.)
Let's hope that the log stays neat and small now.
Cheers,
Thomas
Hi,
I have a problem with Pretty URLs on my forum. I don't know why but when I have prime (') in the title of the topic I can't open it. ;/ It always redirects me to the board where the topic is placed. What can be wrong? I didn't notice this issue in the past/ I guess it happend when I updated the mod.
Thanks for any help.
Anyone? Any help?
More than likely an edit wasn't made it to sources/querystring.php
Recheck that all the edits were made
You can upload the package to https://www.smfhacks.com/smf-package-parser.html to find the edits.
Thank you for the reply. I checked it and all changes to sources/querystring.php have been done correctly.
I use SMF 2.0.15 and I've changed recently to PHP 7.2 and installed SMF 2.0.X - PHP 7.2+ Compatibility. Perhaps this has sth to do with this error?
I haven't tested on 7.2 yet. I have gone up to php 7.1 but I don't think that would be the cause.
You know what, I changed PHP to 7.1 and uninstalled SMF 2.0.X - PHP 7.2+ Compatibility and now everything works so it was the cause. :)
Critical update if you are using SMF 2.1.x
A noindex bug for categories. To fix uninstall old version and install new version of Pretty Urls: 2.1.4b
Hello, I installed and enabled pretty url now my site not opening. And not working repair_settings.php. I take screen shot error log and faulty site page. It in the attachments. Sorry for my bad english. How can I use pretty url and how I active web site again.
Smf version: 2.1 RC2
Site Url: pku.gen.tr
It means some of the files are corrupted. Check apache error logs. And or upload a fresh set of files.
The Search API errors you need to grab the new patch For SMF 2.1
Quote from: Dgnttnc on August 07, 2019, 04:39:52 PM
Hello, I installed and enabled pretty url now my site not opening. And not working repair_settings.php. I take screen shot error log and faulty site page. It in the attachments. Sorry for my bad english. How can I use pretty url and how I active web site again.
Smf version: 2.1 RC2
Site Url: pku.gen.tr
I solved the problem by upgrading the php version 7.3 from 5.6. But I have a new problem. When I changed category name, category url was not changing. Category use old url. I try uninstalling pretty url and install again but still use old url. How can I change or update url?
Try editing the board there should be an area to change the name.
@vbgamer45 Thank you for your helps.
bug
installed onto 2.0.15, no errors shown in install
everything seemed to work.... except that I as an admin did not have permissions to view member restricted boards
I had 3 boards set up
1 just for admins and mods
1 just for a member group females
1 just for a member group males
with this installed I could not view those boards, 403 Access denied
whereas all the general boards and whatnots worked just fine....
That could be a mod_security issue if you are getting a 403 error.
Hello all
Today, I upgrade my two SMF forum to 2.1 version. Both the forum got upgraded successfully. Next, I tried to install pretty URL on my first forum and even that got successful installed.
But, when I tried to install the same plugin on my second forum, it is getting installed successful and get redirects to plugin dashboard. Next, when i refresh the page, I keep getting 503 error in the entire site.
Yes, I am getting an error on the entire website ( each and every page including admin).
The only way to remove the error was to replace the file ( where the pretty url plugin made the changes)
P.S.: By mistake I have deleted the .htaccess file. Do you think, the problem could be related to htaccess file??
Please help. Without Pretty URL, my all the indexed url is getting 404 error.
You need htaccess
Quote from: vbgamer45 on August 20, 2019, 06:19:54 PM
That could be a mod_security issue if you are getting a 403 error.
I am pleased to say that this seems to be working now, I switched hosts and decided to try this again
question, can I put custom urls? Some boards have rather long names and I'd rather keep the url simple, is there a way to edit these? so instead of it for instance being
Forum Announcements url/forum-announcements it just being url/announcements ?
and there's a few mods (or whatever you want to call them) installed that were not rewritten (knowledge base, blogs, hall of fame, like stats)
For custom urls you can change them under admin -> boards
Click Pretty urls and you can adjust the board url
here is a little bit of a public service announcement.. regarding PrettyURL's and SEO for forums installing PrettyURLS that have been established for some time, and sites that are concerned with ranking or visibility....
I've been running PrettyURL's for a while... most pages have bounced back in the rankings after making the change. Some haven't, though, and those pages using the old patter url ( ?board= ) still rank higher than the 'new' ones.
well, i'm an idiot for not doing this sooner. I don't know if i'm an idiot alone, or if there are a bunch of us- but i'm sharing this to help everyone who's made the change and are perhaps still waiting, as i was, for there forum to 'recover' in the ranks...
this is SO simple.
go to your google console. inspect url... type in the OLD url ( ?board= )... inspect it- your htaccess will see the the incoming request and shove it through the prettyURL rewrites hiding out in your htaccess, and send google to the same page that is using PrettyURLs.. confirm it is indexed, searchable/can be crawled... and... hit the "webpage has changed" button and request a new index...
that freakin' simple... meta descriptions, OG tags, and my particular implementation of H1's, 2's, and 3's- that i've been waiting forever for google to get around to- were changed to reflect the new pages (using the old links) almost instantly.
the only thing that may cause an issue is canonical...
make certain and have "index.php?board=" 'allowed' in your robots.txt. whaplappahpoo- you'll be good in minutes using the same links you were ranking with prior to implementing prettyURLS... i was amazed at how fast it took hold. and hopefully, VB, since perhaps you're reading this, is there a way you can implement, in a future release, websites being approached using the 'old' url structure to either 302 to the new one and/or a code to strip 'canonical' out of the 'old' structure?
Thanks for your work, Sir.. it's worked out well for me.
good luck!
VB- I know you likely know this^, but.... perhaps you can add it to your readme or something for new users? methinks it may remove a lot of the trepidation out of using your product.
Quote from: vbgamer45 on September 12, 2019, 06:45:21 PM
For custom urls you can change them under admin -> boards
Click Pretty urls and you can adjust the board url
thank you, much better
how can i add others to the list to be rewritten?
?action=kb
ect.... these are actions but they weren't rewritten
I have problem mentioned earlier in this thread (https://www.simplemachines.org/community/index.php?topic=146969.msg3844828#msg3844828), on my SMF 2.0.15 forum, however fixes presented in those posts are no longer valid since even with latest tapatalk plugin - 4.5.2 and latest Pretty URLs - 2.1.4b, android-app:// and ios-app:// protocol links are replaced like:
"https://playpes.rs/forum/android-app://com.quoord.tapatalkpro.activity/tapatalk/playpes.rs/forum/
and
"https://playpes.rs/forum/ios-app://307880732/tapatalk/playpes.rs/forum/
respectively.
I've tried to move android-app in PrettyUrl-Filters.php to before // Absolutise relative URLs, but to no avail.
Does anyone have idea how could I fix this mess?
Copy this file to your sources folder and see if it helps...
Quote from: vbgamer45 on October 26, 2019, 06:11:25 PM
Copy this file to your sources folder and see if it helps...
Nope, same thing :P
During debugging I even tried putting:
if (substr($url_id,0,11) == 'android-app')
die('Triggered');
if (substr($url_id,0,7) == 'ios-app')
die('Triggered');
in both
pretty_rewrite_buffer and
pretty_rewrite_buffer_fromcache functions, but they never get triggered.
Uninstalling PrettyUrl package removed issue (but it isn't a good solution..)
Odd i wonder if they changed how their app works
after installing this mode my google index crashed ! why ?
Because you changed all the URLs, they all need to be reindexed now.
Quote from: Arantor on November 25, 2019, 06:55:37 AM
Because you changed all the URLs, they all need to be reindexed now.
i did but nothing happen i have still waiting since last year....
i used seo4smf my google index 150.500 pages overall after using this mode drop to 17.000 pages overall ...
SEO4SMF did a lot of very bad things, how many threads do you have in boards that guests can see?
Quote from: Arantor on November 25, 2019, 07:18:10 AM
SEO4SMF did a lot of very bad things, how many threads do you have in boards that guests can see?
my forum since 2004,
2004-2007 vbulletin
2007 - today smf
i dint problem with seo4smf but when i changed to prettyurl everything has gone ....
You also had various security holes that could have led to your forum being taken over with SEO4SMF which is why it was removed.
But you didn't answer my question, how many threads are publicly visible?
Also did you you use the SEO4SMF url convertor to handle old links?
Quote from: Arantor on November 25, 2019, 08:07:00 AM
You also had various security holes that could have led to your forum being taken over with SEO4SMF which is why it was removed.
But you didn't answer my question, how many threads are publicly visible?
all board and topic public and visible,
Quote from: vbgamer45 on November 25, 2019, 09:20:08 AM
Also did you you use the SEO4SMF url convertor to handle old links?
yes i did but when i control pretty url change all line to nofollow and robots.txt to disable for all crawler i change but its come back again and again ...
On 2.1 RC2 getting a 503 HTTP Error after enabling. PHP version is 7.1
Quote from: Aaron10 on November 26, 2019, 12:24:54 PM
On 2.1 RC2 getting a 503 HTTP Error after enabling. PHP version is 7.1
Nevermind I fixed it, conflicting .htaccess file in parent directory.
Need a quick help...
After switching server seems pretty url has stopped working ...
Not able to access most of the links on site, not allowing to login also...
https://shayarfamily.com/forum/
The file is located at
https://shayarfamily.com/pp.php
with below command..
<?php require_once(dirname(__FILE__) . '/SSI.php'); updateSettings(array('pretty_enable_filters' => '0')); ?>
Plz advise.
Looks like you have outdated code in /home1/butikville/shayarfamily.com/Sources/ScheduledTasks.php on line 1203
Attach that file.
Also grab the repair_settings tool from SMF.
Thanks for replying bro... PFA the required file..
using Repair_settings all settings done to recommended but nothing worked out...
I'll change db pwds later, but need a fix to this issue.
Looks like an issue with tiny portal block disable any tiny portal block and try script again.
Or manually modify your smf_settings database table and change the pretty urls root.
Thanks for your suggestions bro,
things still didn't work, so I'm going to make a fresh install.. :)
Working with a 1.8gb database, server's having a problem handling it, and account has gone over storage limit. _pretty_urls_cache is 1.7gb, what happens when I empty the table?
Interesting, I would guess it gets recreated slowly as the server gets hits, but is it normal for it to be so big?
This mod has trashed quite a few forums I've worked on, but first time I'm seeing such a huge cache table. Tried to uninstall the mod last night, got wsod, had to reload everything from scratch. Looks like forum owner also ran the reverter at some point, no idea what additional damage that may have caused. 95% of the database is this one table. :P
The reverter doesn't add anything to the database just creates htaccess and includes a php script.
Most of the space that is used is if you do action url rewriting. I generally don't enable that. There is also a couple options in the mod to not used database tables for storing the urls and that would also fix the database space issue.
Can't you code it so the cache table is pruned or kept to a max size? It's mostly empty space, the 1.8 db zipped down to 113mb. A lot of shared servers will choke on table that large.
Yes/No it depends on what is getting pruned.
That's why there is a no database call option to store the urls in case for shared servers.
A large part of the problem seems to be that users don't know how to configure the mod correctly for the platform they're running on. Most of these forums are on shared servers, many with crappy hosts, and the forum owners are clueless. Maybe you can fine tune the default settings accordingly, or just remove some options that are problematic.
Hi, since installing its been working great, however theres one small "glitch" in that the board index is reported to have a "noindex" meta in google webmaster tools. I have this + EhPortal installed on 2.1 RC2, so the URL for board index is mysite.com/forum/ rather than mysite.com/index.php. The noindex error only started happening since installing this mod.
https://www.simplemachines.org/community/index.php?topic=570918.msg4040578#msg4040578
Not an uncommon problem.
Question, triggered by above issue: seo-wise, if one uninstalls the mod, what steps should be taken? Wouldn't ranking tank?
There's a reverter that's supposed to address that, but don't recommend it, it may cause more damage. After the mod is uninstalled, site will be reindexed by search engines, doesn't take long. Mod doesn't uninstall cleanly, you will have to manually clean up .htaccess and your database.
Thanks for the reply!
Regarding uninstalling the mod,I think just disabling its functionality through its options works pretty ok...
I had to switch my forum from https://myboards.com to https://www.myboards.com. PrettyUrls breaks links to the various boards by removing the www. If I turn off pretty urls the www is restored. HELP!
SMF 2.0.15
PrettyUrls 1.0
Steveoh
Quote from: guldam on January 15, 2020, 12:56:51 PM
I had to switch my forum from https://myboards.com to https://www.myboards.com. PrettyUrls breaks links to the various boards by removing the www. If I turn off pretty urls the www is restored. HELP!
SMF 2.0.15
PrettyUrls 1.0
Steveoh
UPDATE: I fixed the issue by adding this snippet
<?php require_once(dirname(__FILE__) . '/SSI.php'); require_once($sourcedir . '/Subs-PrettyUrls.php'); updateSettings(array('pretty_root_url' => $boardurl)); pretty_update_filters(); ?>
to a new PrettyUrlFix.php file and then running it in my browser.
Yes, that fixes glad that worked for you!
SMF 2.0.17
PrettyURL 2.1.4b
Errors when installing
./Sources/News.php
Find
if (empty($modSettings['queryless_urls']) || ($context['server']['is_cgi'] && @ini_get('cgi.fix_pathinfo') == 0 && @get_cfg_var('cgi.fix_pathinfo') == 0) || (!$context['server']['is_apache'] && !$context['server']['is_lighttpd']))
return $val;
$val = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$/e', '\'\' . $scripturl . \'/\' . strtr(\'$1\', \'&;=\', \'//,\') . \'.html$2\'', $val);
Replace
/*** if (empty($modSettings['queryless_urls']) || ($context['server']['is_cgi'] && @ini_get('cgi.fix_pathinfo') == 0 && @get_cfg_var('cgi.fix_pathinfo') == 0) || (!$context['server']['is_apache'] && !$context['server']['is_lighttpd']))
return $val;
$val = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$/e', '\'\' . $scripturl . \'/\' . strtr(\'$1\', \'&;=\', \'//,\') . \'.html$2\'', $val); ***/
./Sources/QueryString.php
Find
parse_str(substr(preg_replace('/&(\w+)(?=&|$)/', '&$1=', strtr(preg_replace('~/([^,/]+),~', '/$1=', substr($request, strpos($request, basename($scripturl)) + strlen(basename($scripturl)))), '/', '&')), 1), $temp);
if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc() != 0 && empty($modSettings['integrate_magic_quotes']))
$temp = $removeMagicQuoteFunction($temp);
$_GET += $temp;
Replace
if (strpos($request, basename($scripturl)) !== false)
{
parse_str(substr(preg_replace('/&(\w+)(?=&|$)/', '&$1=', strtr(preg_replace('~/([^,/]+),~', '/$1=', substr($request, strpos($request, basename($scripturl)) + strlen(basename($scripturl)))), '/', '&')), 1), $temp);
if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc() != 0 && empty($modSettings['integrate_magic_quotes']))
$temp = $removeMagicQuoteFunction($temp);
$_GET += $temp;
}
You have it working now?
I didn't get install errors on a new 2.0.17
Yes I got all the time this error. Maybe I should replace system file responsible for installing mods?
Any help?
Anytime i try to upload attachment, I got this error
Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 4570229 bytes) in /public_html/Sources/PrettyUrls-Filters.php on line 114
If you disable the pretty url filters and upload the attachment does it work?
Quote from: vbgamer45 on January 29, 2020, 10:21:35 PM
If you disable the pretty url filters and upload the attachment does it work?
No I have not disable the pretty url and chk...
If I disable the pretty url, I always have problem with canonical url. And this always cause huge sitemap decrease in Google webmaster tools...
Can you try I just want to see if pretty urls is the cause or not.
You can turn it back on afterwords.
Quote from: vbgamer45 on January 30, 2020, 12:42:10 PM
Can you try I just want to see if pretty urls is the cause or not.
You can turn it back on afterwords.
Yes. I disabled the pretty url and Everything works fine.
No error when I add attachment.
How can I fix the error please
If you are on SMF 2.0.
Copy this file to Sources folder and see if it helps...
Quote from: vbgamer45 on February 02, 2020, 11:22:14 AM
If you are on SMF 2.0.
Copy this file to Sources folder and see if it helps...
Thanks Vbgamer45, The file works for my forum. No more "Error" when i added attachment to post
Great will push the change out for next update.
2.2
!Added a fix for attachment memory limit. We no longer process prettyurl filters on post2 action
Quote from: GigaWatt on May 29, 2018, 08:23:50 PM
Try this.
'-' => array ('-', ' ', '.', ',', "'", '"', '`', '(', ')', '[', ']'),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
// '(' => array ('(', '{', '['),
// ')' => array (')', '}', ']'),
How to add this please?
Add it to your Sources/Subs-PrettyUrls.php file
I'm sure this has already been answered amongst the 396 pages of comments on this mod - but so far I've not found it. hope someone can help, or link me to a previous answer
My main webpage (not my forum) shows a section of 'latest forum posts' to direct people to the forum. Easy enough before using pretty urls. I just looked up latest message posts with MySQL and created links on the fly, using the usual format.
But now I am using pretty urls this seems less easy. Obviously the old links still work, but from an seo point of view, i'd like the correct pretty link to show on my webpage rather than the 'topic= ' method.
I see the 'smf_pretty_urls_cache' table in the database. But how would I go about joining that data to the messages table? thanks in advance
Generally this PHP code rewrites the urls. If you include SMF's SSI
// Rewrite the buffer with Pretty URLs!
if (!empty($modSettings['pretty_enable_filters']))
{
require_once($sourcedir . '/PrettyUrls-Filters.php');
$buffer = pretty_rewrite_buffer($buffer);
}
Please i discovered low indexing from my google webmaster tools. i tried to check the search performance and i see my forum pretty url stop working on sitemap.xml
All my submitted topic and board has now change from www.url.com/this-is-my-forum/ to www.url.com/index.php?topic=143.0 And my pretty url is working fine on my website. How can i fix this??
What mod made the sitemap.xml?
Quote from: vbgamer45 on February 23, 2020, 12:38:47 AM
What mod made the sitemap.xml?
Open brave is what i saw at the bottom of the sitemap.xml
The mod that generates the sitemap would need to be updated to add support for pretty urls.
Quote from: vbgamer45 on February 23, 2020, 02:13:12 AM
The mod that generates the sitemap would need to be updated to add support for pretty urls.
Is the new version for the mod available?? i mean the "Optimus Brave" or not yet
Quote from: vbgamer45 on February 23, 2020, 02:13:12 AM
The mod that generates the sitemap would need to be updated to add support for pretty urls.
i install the latest update of the "optimus brave" and my website gone blank. only www.url/admin is working other topic , homepage, boards are showing blank page
And after i uninstall the latest mod back. the forum is working fine. is the new version not working with my smf 2.0.17 ??
That would be a question for optimus brave support topic
Quote from: vbgamer45 on February 23, 2020, 09:09:09 AM
That would be a question for optimus brave support topic
I have raised the issue on "Open Brave" support topic. The problem and the optimus brave 2.3 now working well. But the sitemap pretty url issue not fix yet.
My forum pretty url is not working on sitemap, it only works on the website forum. I tried to uninstall and reinstall the pretty url, still not rewriting the url.
I c
The sitemap isn't part of this mod so that would be an optimus brave issue.
Quote from: Xpresskonami on February 23, 2020, 02:02:45 PM
Quote from: vbgamer45 on February 23, 2020, 09:09:09 AM
That would be a question for optimus brave support topic
I have raised the issue on "Open Brave" support topic. The problem and the optimus brave 2.3 now working well. But the sitemap pretty url issue not fix yet.
My forum pretty url is not working on sitemap, it only works on the website forum. I tried to uninstall and reinstall the pretty url, still not rewriting the url.
I c
Hi, I'm using Optimus Brave mod, too. The link yourforum.com/sitemap.xml is a file which generated by scheduled tasks, it's not an URL index. And you just add it on Google Webmaster Tool!
Hello, I'm on SMF 2.0.17 and I have moved my forum to another hosting... and now I'm experiencing some problems loading images in the topbar.
I have already fixed the settings using "repair_settings.php" file.
I have the following errors in the browser console:
Uncaught SyntaxError: Unexpected token '&'
(index):1 Mixed Content: The page at 'https://www.mywebsite.com/comunicazioni-ed-eventi/' was loaded over HTTPS, but requested an insecure image 'http://www.mywebsite.com/Themes/default/images/LOGO.jpg'. This content should also be served over HTTPS.
theme.js?fin20:112 Mobile
(index):1 Access to font at 'https://mywebsite.com/Themes/NightBreeze20/webfonts/fa-solid-900.woff2' from origin 'https://www.mywebsite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
(index):496 GET https://mywebsite.com/Themes/NightBreeze20/webfonts/fa-solid-900.woff2 net::ERR_FAILED
(index):1 Access to font at 'https://mywebsite.com/Themes/NightBreeze20/webfonts/fa-solid-900.woff' from origin 'https://www.mywebsite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
(index):1 GET https://mywebsite.com/Themes/NightBreeze20/webfonts/fa-solid-900.woff net::ERR_FAILED
(index):1 Access to font at 'https://mywebsite.com/Themes/NightBreeze20/webfonts/fa-solid-900.ttf' from origin 'https://www.mywebsite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
(index):1 GET https://mywebsite.com/Themes/NightBreeze20/webfonts/fa-solid-900.ttf net::ERR_FAILED
My forum is the following: https://www.mon*ywant*rsforum.com (* = e).
As you can see images in the topbar are propertly loaded only when you are in the home page. Any other pages can't load images.
I see that if I temporary uninstall Pretty URLs I haven't the problem. So, what could be wrong with Pretty URLs?
Thank you.
You might have relative images paths instead of full url such as /images/
The errrors in your log needs to be fixed by changing to https:// for links and setting a cross orgin policy
Quote from: vbgamer45 on February 28, 2020, 09:19:18 AM
You might have relative images paths instead of full url such as /images/
The errrors in your log needs to be fixed by changing to https:// for links and setting a cross orgin policy
What has been changed since moving from my previous host? Where do I change https:// for those links and where can I see the cross origin policy?
That would be in your html/css files for https:// issues
cross orgin policy you have to setup one or contact your host.
I have the same host of before, I just changed the plan.
Anyway removing Pretty URLs solve my problems...
Quote from: digger on March 15, 2018, 07:35:18 AM
vbgamer45, update characterHash array to support cyrillic, please.
// Do you know your ABCs?
$characterHash = array (
'a' => array ('a', 'A', 'à', 'À', 'á', 'Á', 'â', 'Â', 'ã', 'Ã', 'ä', 'Ä', 'å', 'Å', 'ª', 'ą', 'Ą', 'а', 'А', 'ạ', 'Ạ', 'ả', 'Ả', 'Ầ', 'ầ', 'Ấ', 'ấ', 'Ậ', 'ậ', 'Ẩ', 'ẩ', 'Ẫ', 'ẫ', 'Ă', 'ă', 'Ắ', 'ắ', 'Ẵ', 'ẵ', 'Ặ', 'ặ', 'Ằ', 'ằ', 'Ẳ', 'ẳ', 'а', 'А'),
'ae' => array ('æ', 'Æ'),
'b' => array ('b', 'B', 'б', 'Б'),
'c' => array ('c', 'C', 'ç', 'Ç', 'ć', 'Ć', 'č', 'Č', 'ц', 'Ц'),
'd' => array ('d', 'D', 'Ð', 'đ', 'Đ', 'ď', 'Ď', 'д', 'Д'),
'e' => array ('e', 'E', 'è', 'È', 'é', 'É', 'ê', 'Ê', 'ë', 'Ë', 'ę', 'Ę', 'е', 'Е', 'ё', 'Ё', 'э', 'Э', 'Ẹ', 'ẹ', 'Ẻ', 'ẻ', 'Ẽ', 'ẽ', 'Ề', 'ề', 'Ế', 'ế', 'Ệ', 'ệ', 'Ể', 'ể', 'Ễ', 'ễ', 'ε', 'Ε', 'ě', 'Ě', 'е', 'Е'),
'f' => array ('f', 'F', 'ф', 'Ф'),
'g' => array ('g', 'G', 'ğ', 'Ğ', 'г', 'Г'),
'h' => array ('h', 'H', 'х', 'Х'),
'i' => array ('i', 'I', 'ì', 'Ì', 'í', 'Í', 'î', 'Î', 'ï', 'Ï', 'ı', 'İ', 'Ị', 'ị', 'Ỉ', 'ỉ', 'Ĩ', 'ĩ', 'Ι', 'ι', 'и', 'И'),
'j' => array ('j', 'J', 'й', 'Й'),
'k' => array ('k', 'K', 'к', 'К', 'κ', 'Κ', 'к', 'К'),
'l' => array ('l', 'L', 'ł', 'Ł', 'л', 'Л'),
'm' => array ('m', 'M', 'м', 'М', 'Μ', 'м', 'М'),
'n' => array ('n', 'N', 'ñ', 'Ñ', 'ń', 'Ń', 'ň', 'Ň', 'н', 'Н'),
'o' => array ('o', 'O', 'ò', 'Ò', 'ó', 'Ó', 'ô', 'Ô', 'õ', 'Õ', 'ö', 'Ö', 'ø', 'Ø', 'º', 'о', 'О', 'Ọ', 'ọ', 'Ỏ', 'ỏ', 'Ộ', 'ộ', 'Ố', 'ố', 'Ỗ', 'ỗ', 'Ồ', 'ồ', 'Ổ', 'ổ', 'Ơ', 'ơ', 'Ờ', 'ờ', 'Ớ', 'ớ', 'Ợ', 'ợ', 'Ở', 'ở', 'Ỡ', 'ỡ', 'ο', 'Ο', 'о', 'О'),
'p' => array ('p', 'P', 'п', 'П'),
'q' => array ('q', 'Q'),
'r' => array ('r', 'R', 'ř', 'Ř', 'р', 'Р'),
's' => array ('s', 'S', 'ş', 'Ş', 'ś', 'Ś', 'š', 'Š', 'с', 'С'),
'ss' => array ('ß'),
't' => array ('t', 'T', 'т', 'Т', 'τ', 'Τ', 'ţ', 'Ţ', 'ť', 'Ť', 'т', 'Т'),
'u' => array ('u', 'U', 'ù', 'Ù', 'ú', 'Ú', 'û', 'Û', 'ü', 'Ü', 'Ụ', 'ụ', 'Ủ', 'ủ', 'Ũ', 'ũ', 'Ư', 'ư', 'Ừ', 'ừ', 'Ứ', 'ứ', 'Ự', 'ự', 'Ử', 'ử', 'Ữ', 'ữ', 'ů', 'Ů', 'у', 'У'),
'v' => array ('v', 'V', 'в', 'В'),
'w' => array ('w', 'W'),
'x' => array ('x', 'X', '×'),
'y' => array ('y', 'Y', 'ý', 'Ý', 'ÿ', 'Ỳ', 'ỳ', 'Ỵ', 'ỵ', 'Ỷ', 'ỷ', 'Ỹ', 'ỹ', 'ы', 'Ы'),
'z' => array ('z', 'Z', 'ż', 'Ż', 'ź', 'Ź', 'ž', 'Ž', 'Ζ', 'з', 'З'),
'jo' => array ('ё', 'Ё'),
'zh' => array ('ж', 'Ж'),
'ch' => array ('ч', 'Ч'),
'sh' => array ('ш', 'Ш'),
'sch' => array ('щ', 'Щ'),
'eh' => array ('э', 'Э'),
'yu' => array ('ю', 'Ю'),
'ya' => array ('я', 'Я'),
'' => array ('ъ', 'Ъ', 'ь', 'Ь', '?', '«', '»', ':', '&', '+', '@', '%', '^', '№', '#'),
'-' => array ('-', ' ', '.', ','),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),
'0' => array ('0'),
'1' => array ('1', '¹'),
'2' => array ('2', '²'),
'3' => array ('3', '³'),
'4' => array ('4'),
'5' => array ('5'),
'6' => array ('6'),
'7' => array ('7'),
'8' => array ('8'),
'9' => array ('9'),
);
Please this has stop working on my forum... The symbols
() , " , ' are now showing in my pretty-url link. and i check my
Subs-Prettyurl.php all this code is in the file
Quote from: Xpresskonami on February 29, 2020, 04:29:36 AM
Quote from: digger on March 15, 2018, 07:35:18 AM
vbgamer45, update characterHash array to support cyrillic, please.
// Do you know your ABCs?
$characterHash = array (
'a' => array ('a', 'A', 'à', 'À', 'á', 'Á', 'â', 'Â', 'ã', 'Ã', 'ä', 'Ä', 'å', 'Å', 'ª', 'ą', 'Ą', 'а', 'А', 'ạ', 'Ạ', 'ả', 'Ả', 'Ầ', 'ầ', 'Ấ', 'ấ', 'Ậ', 'ậ', 'Ẩ', 'ẩ', 'Ẫ', 'ẫ', 'Ă', 'ă', 'Ắ', 'ắ', 'Ẵ', 'ẵ', 'Ặ', 'ặ', 'Ằ', 'ằ', 'Ẳ', 'ẳ', 'а', 'А'),
'ae' => array ('æ', 'Æ'),
'b' => array ('b', 'B', 'б', 'Б'),
'c' => array ('c', 'C', 'ç', 'Ç', 'ć', 'Ć', 'č', 'Č', 'ц', 'Ц'),
'd' => array ('d', 'D', 'Ð', 'đ', 'Đ', 'ď', 'Ď', 'д', 'Д'),
'e' => array ('e', 'E', 'è', 'È', 'é', 'É', 'ê', 'Ê', 'ë', 'Ë', 'ę', 'Ę', 'е', 'Е', 'ё', 'Ё', 'э', 'Э', 'Ẹ', 'ẹ', 'Ẻ', 'ẻ', 'Ẽ', 'ẽ', 'Ề', 'ề', 'Ế', 'ế', 'Ệ', 'ệ', 'Ể', 'ể', 'Ễ', 'ễ', 'ε', 'Ε', 'ě', 'Ě', 'е', 'Е'),
'f' => array ('f', 'F', 'ф', 'Ф'),
'g' => array ('g', 'G', 'ğ', 'Ğ', 'г', 'Г'),
'h' => array ('h', 'H', 'х', 'Х'),
'i' => array ('i', 'I', 'ì', 'Ì', 'í', 'Í', 'î', 'Î', 'ï', 'Ï', 'ı', 'İ', 'Ị', 'ị', 'Ỉ', 'ỉ', 'Ĩ', 'ĩ', 'Ι', 'ι', 'и', 'И'),
'j' => array ('j', 'J', 'й', 'Й'),
'k' => array ('k', 'K', 'к', 'К', 'κ', 'Κ', 'к', 'К'),
'l' => array ('l', 'L', 'ł', 'Ł', 'л', 'Л'),
'm' => array ('m', 'M', 'м', 'М', 'Μ', 'м', 'М'),
'n' => array ('n', 'N', 'ñ', 'Ñ', 'ń', 'Ń', 'ň', 'Ň', 'н', 'Н'),
'o' => array ('o', 'O', 'ò', 'Ò', 'ó', 'Ó', 'ô', 'Ô', 'õ', 'Õ', 'ö', 'Ö', 'ø', 'Ø', 'º', 'о', 'О', 'Ọ', 'ọ', 'Ỏ', 'ỏ', 'Ộ', 'ộ', 'Ố', 'ố', 'Ỗ', 'ỗ', 'Ồ', 'ồ', 'Ổ', 'ổ', 'Ơ', 'ơ', 'Ờ', 'ờ', 'Ớ', 'ớ', 'Ợ', 'ợ', 'Ở', 'ở', 'Ỡ', 'ỡ', 'ο', 'Ο', 'о', 'О'),
'p' => array ('p', 'P', 'п', 'П'),
'q' => array ('q', 'Q'),
'r' => array ('r', 'R', 'ř', 'Ř', 'р', 'Р'),
's' => array ('s', 'S', 'ş', 'Ş', 'ś', 'Ś', 'š', 'Š', 'с', 'С'),
'ss' => array ('ß'),
't' => array ('t', 'T', 'т', 'Т', 'τ', 'Τ', 'ţ', 'Ţ', 'ť', 'Ť', 'т', 'Т'),
'u' => array ('u', 'U', 'ù', 'Ù', 'ú', 'Ú', 'û', 'Û', 'ü', 'Ü', 'Ụ', 'ụ', 'Ủ', 'ủ', 'Ũ', 'ũ', 'Ư', 'ư', 'Ừ', 'ừ', 'Ứ', 'ứ', 'Ự', 'ự', 'Ử', 'ử', 'Ữ', 'ữ', 'ů', 'Ů', 'у', 'У'),
'v' => array ('v', 'V', 'в', 'В'),
'w' => array ('w', 'W'),
'x' => array ('x', 'X', '×'),
'y' => array ('y', 'Y', 'ý', 'Ý', 'ÿ', 'Ỳ', 'ỳ', 'Ỵ', 'ỵ', 'Ỷ', 'ỷ', 'Ỹ', 'ỹ', 'ы', 'Ы'),
'z' => array ('z', 'Z', 'ż', 'Ż', 'ź', 'Ź', 'ž', 'Ž', 'Ζ', 'з', 'З'),
'jo' => array ('ё', 'Ё'),
'zh' => array ('ж', 'Ж'),
'ch' => array ('ч', 'Ч'),
'sh' => array ('ш', 'Ш'),
'sch' => array ('щ', 'Щ'),
'eh' => array ('э', 'Э'),
'yu' => array ('ю', 'Ю'),
'ya' => array ('я', 'Я'),
'' => array ('ъ', 'Ъ', 'ь', 'Ь', '?', '«', '»', ':', '&', '+', '@', '%', '^', '№', '#'),
'-' => array ('-', ' ', '.', ','),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),
'0' => array ('0'),
'1' => array ('1', '¹'),
'2' => array ('2', '²'),
'3' => array ('3', '³'),
'4' => array ('4'),
'5' => array ('5'),
'6' => array ('6'),
'7' => array ('7'),
'8' => array ('8'),
'9' => array ('9'),
);
Please this has stop working on my forum... The symbols () , " , ' are now showing in my pretty-url link. and i check my Subs-Prettyurl.php all this code is in the file
This problem occurs after i re-update my pretty-url.
Quote from: Xpresskonami on June 10, 2018, 04:52:33 AM
Quote from: GigaWatt on May 29, 2018, 08:23:50 PM
Try this.
'-' => array ('-', ' ', '.', ',', "'", '"', '`', '(', ')', '[', ']'),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
// '(' => array ('(', '{', '['),
// ')' => array (')', '}', ']'),
This work for Me. thanks to the Developers in the forum.. The pretty-url is now fine and friendly
This has fix my error i just comment on previously. Thanks!!!
Update
2.0.2
!Fixes for urls for other character sets
!Minor code optimizations
!Improved session variable generation to 2.1 standards if not present.
Hello, I have tried to install this mod on SMF 2.1 and all files have "Test successful".
...but I opened all arrows and I have found some files having errors! (see the attached image)
Why these errors were hidden? ...and how to install mod without errors?
Safe to ignore which is is why I have it hidden.
Quote from: vbgamer45 on March 03, 2020, 08:54:57 AM
Safe to ignore which is is why I have it hidden.
How installation figures out that it has to ignore and then hide them?
I code it manually in the mod to check which ones are safe to ignore.
Quote from: vbgamer45 on February 02, 2020, 11:22:14 AM
If you are on SMF 2.0.
Copy this file to Sources folder and see if it helps...
I raise complain on Optimus Brave topic that my sitemap is not working with pretty url.
No one is responding to my comments on the topic. The error begins after you tell me to upload this file. Can you please help to check on it why the sitemap not working with pretty url mod??
Thanks
I wouldn't know as Optimus Brave is not part of this mod...sorry.
Quote from: vbgamer45 on March 08, 2020, 09:07:29 PM
I wouldn't know as Optimus Brave is not part of this mod...sorry.
Ok thanks
Quote from: Xpresskonami on March 08, 2020, 08:21:47 PM
Quote from: vbgamer45 on February 02, 2020, 11:22:14 AM
If you are on SMF 2.0.
Copy this file to Sources folder and see if it helps...
I raise complain on Optimus Brave topic that my sitemap is not working with pretty url.
No one is responding to my comments on the topic. The error begins after you tell me to upload this file. Can you please help to check on it why the sitemap not working with pretty url mod??
Thanks
Please Vbgamer45 is there anyway I can use htacess to rewrite the sitemap urls?
The optimus brave support topic is ignoring my comments on the Error. This sitemap url has get my forum deranked , all the index topics are not in Google SEO anymore. I can't keep shut and be looking at the forum this way.
Please any idea or help to assist on this.
Quote from: Xpresskonami on February 23, 2020, 12:15:21 AM
Please i discovered low indexing from my google webmaster tools. i tried to check the search performance and i see my forum pretty url stop working on sitemap.xml
All my submitted topic and board has now change from www.url.com/this-is-my-forum/ to www.url.com/index.php?topic=143.0 And my pretty url is working fine on my website. How can i fix this??
My issues about the error am facing on the rewrite url is not from "Optimus Brave" Before I could update the Optimus brave to lastest version, I have been facing the error.
If I disable the pretty url mod the forum url work fine with no error including the sitemap url.
But if I enable the pretty url mod. The url automatically change to this
www.url.com/index.php?board;=1.0
What I later found in this error is, when I disable the pretty url, the working url link is like this www.url.com/index.php?board=1.0
But after I enable pretty url, this symbol
; is added after
index.php?board;=1.0What has cause the url to convert the link to that automatically?? I later install the latest version of
pretty url mod so I can see maybe the problem is from the old version. But the error is still the same.
If I disable the pretty url, the url links re all working fine including on sitemap!..
What SMF version? Are you not rewriting board urls?
Quote from: vbgamer45 on March 11, 2020, 11:38:00 AM
What SMF version? Are you not rewriting board urls?
The smf version is SMF 2.0.17
Am rewriting both the boards, topic and action urls. And I was confused about how the url link automatically change.
Quote from: Xpresskonami on January 29, 2020, 09:55:02 PM
Anytime i try to upload attachment, I got this error
Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 4570229 bytes) in /public_html/Sources/PrettyUrls-Filters.php on line 114
Back to this
I come to complain about this error before I start facing the error on the rewrite urls. You give a "PrettyUrls-Filters.php" file to upload and see if I will have the error or not. After I upload the file, the attachment error fix.
After fixing the attachment error, the pretty url rewrite url error link occurs. And I find out the url is attached with the symbols
;So I was thinking maybe the fixing attached might cause the error or not. And also I think updating the pretty url latest version will fix it but did not!
Quote from: Xpresskonami on March 11, 2020, 11:42:06 AM
Quote from: vbgamer45 on March 11, 2020, 11:38:00 AM
What SMF version? Are you not rewriting board urls?
The smf version is SMF 2.0.17
Am rewriting both the boards, topic and action urls. And I was confused about how the url link automatically change.
Am yet to get your respond back
I am busy at the moment takes time for me to look at. I may have time in a week or so. I haven't had others have that issue...
Quote from: vbgamer45 on March 11, 2020, 03:34:14 PM
I am busy at the moment takes time for me to look at. I may have time in a week or so. I haven't had others have that issue...
Ok thanks for the reply
Quote from: vbgamer45 on March 11, 2020, 03:34:14 PM
I am busy at the moment takes time for me to look at. I may have time in a week or so. I haven't had others have that issue...
Please when will you actually get back to me over this error??
Maybe in two weeks.
Quote from: vbgamer45 on March 13, 2020, 01:45:53 PM
Maybe in two weeks.
OMG. That's too long!! Anyway u did your part.
this ****** make fake url in my google index.
https://www.turkishairforce.org/havacilik-haberleri/turkiye-havacilik-ve-uzay-sanayii-(tai)-hakkinda-genel-bilgiler/
https://www.turkishairforce.org/havacilik-haberleri/turk-f-16'lari-ve-aesa-sar-radar-ve-hmcs/
whats the solution ?
What's the issue? Did you change the title of the url?
Quote from: vbgamer45 on April 21, 2020, 10:17:13 PM
What's the issue? Did you change the title of the url?
no a lot of url indexing by google but there arent on my website ... pretty url make them how can i solute it.
Make sure you have alll the file edits.
Your forum is missing the noindex tag if the topic doesn't exist...
Upload the package to https://www.smfhacks.com/smf-package-parser.html and make sure all edits are made to your forum.
saw there was an update to the mod, though i'm sure I've missed several....
do I need to uninstall then reinstall the update or are there just file replacements that I can do, and if so which ones?
I had 2.0.15 and upgraded to 2.0.17 so making sure mods are updated as well
My admin says that I have v2.1.4b of pretty urls....
Thank you
Best way if you can uninstall old one first. If not install on top if it allows.
Quote from: Xpresskonami on March 11, 2020, 11:34:41 AM
Quote from: Xpresskonami on February 23, 2020, 12:15:21 AM
Please i discovered low indexing from my google webmaster tools. i tried to check the search performance and i see my forum pretty url stop working on sitemap.xml
All my submitted topic and board has now change from www.url.com/this-is-my-forum/ to www.url.com/index.php?topic=143.0 And my pretty url is working fine on my website. How can i fix this??
My issues about the error am facing on the rewrite url is not from "Optimus Brave" Before I could update the Optimus brave to lastest version, I have been facing the error.
If I disable the pretty url mod the forum url work fine with no error including the sitemap url.
But if I enable the pretty url mod. The url automatically change to this
www.url.com/index.php?board;=1.0
What I later found in this error is, when I disable the pretty url, the working url link is like this www.url.com/index.php?board=1.0
But after I enable pretty url, this symbol ; is added after index.php?board;=1.0
What has cause the url to convert the link to that automatically?? I later install the latest version of pretty url mod so I can see maybe the problem is from the old version. But the error is still the same.
If I disable the pretty url, the url links re all working fine including on sitemap!..
The errors on this matter has occurred in my forum. Pretty url seem to stop working with my Optimus Brave mod. The error stopped few weeks ago but today I discovered that my urls has totally rewrite to www.url.com/topic;=1234.0 on my sitemap url. And the pretty url mod is working fine on forum.
I have to RUN the sitemap schedule task before the urls with rewrite to www.url.com/smf-forum-software/
@vbgamer45
1) Thank you very much for the very useful mod!
2) Looks like the cause of the error reported in 2012 (https://www.simplemachines.org/community/index.php?topic=146969.msg3308636#msg3308636) and 2015 (https://www.simplemachines.org/community/index.php?topic=146969.msg3786642#msg3786642) still hasn't been addressed.
2. Unsure of the cause of it at this time. I have it defeind on install.php....not sure why it would still occur.
@vbgamer45
Well, at least it was easy to fix after some googling. :)
However, I think I've now run into a problem that no amount of googling can help me solve. I've spent hours poring over (severely outdated) forum posts, documentation articles and configuration pages, with zero results.
Pretty URLs 2.3 refuses to "prettify" _any_ URLs generated by TinyPortal 1.6.6 on SMF 2.0.17. I have only these two mods installed on my test system, as both are essential for my task of migrating a large forum from an antiquated platform onto one that is more modern and sustainable, and I'm trying to avoid any mod conflicts. I would appreciate any help and suggestions from both mod authors and the community at large.
A custom filter/rule would need to be built to handle tinyportal.
I do have one for older versions of TP that might still work. Just handles TinyPortal articles.
Attached.
Thanks a lot, @vbgamer45, I have tested your custom filter and can confirm it still works!
Wouldn't it be too much to ask of you to make it handle TinyPortal categories (?cat=) in addition to articles? This would be very helpful to those who are trying to keep their static text content neatly categorized, accessible and easily indexable.
ok starting up a new project and installed this and ran into a strange error
I could not use the menu (either frontend or admin)
front end the dropdown menu wouldn't work at all, admin the dropdown menu would dropdown but none of the "links" were clickable....
with the newest pretty url's installed (2.3)
on a 2.0.17
with these others installed
Sorted Package Manager Listing
Anti-Spam Links
Optimus
Unknown Actions
Sisyphus
Custom BBCodes Manager
using theme Greeny (https://custom.simplemachines.org/themes/index.php?lemma=2835)
it seems to only be this theme that is having this issue, I check other themes installed and they all work
any suggestions?
Just installed on 2.1 RC2 and now getting a 503 error and can't access anything. I checked the .htaccess and the rewrite is there, any help would be great.
A direct link is http://www.host-hunters.com/smf/index.php since I am converting from Xenforo. On a side note Maintenance mode is on, but can't back in admin to disable it or uninstall mod.
use the paraphraser on the download page and make sure all edits were done
if still after that it's not working use the paraphraser to find the edits and revert them
Quote from: shadav on June 06, 2020, 08:29:45 PM
use the paraphraser on the download page and make sure all edits were done
if still after that it's not working use the paraphraser to find the edits and revert them
I was hoping to not have to go through all that lol
:laugh: I understand your pain
I'd assume that it has to be something with the htaccess file....use the paraphraser and make sure that the edits to it are correct
not really a fix but this might help for you to disable the mod
https://code.google.com/archive/p/prettyurls/wikis/TroubleShooting.wiki
QuoteIf after installing the mod every link is broken, there is probably a problem with your server (it may not support mod_rewrite or per-directory .htaccess configuration files). To fix the links so that the problem can be diagnosed and fixed, or so you can uninstall the mod, create a new .php file with this code:
<?php require_once(dirname(__FILE__) . '/SSI.php'); updateSettings(array('pretty_enable_filters' => '0')); ?>
Upload the file to the same location as your forum's SSI.php and open it with your web browser. Then don't forget to delete it!
going to have to go that route since all the files were right. Thank you for the help.
That got it work so I could uninstall the mod again thank you. Also for anyone that wants to know this was causing the error.
8: Undefined index: pretty_bufferusecache
<input type="checkbox" name="pretty_bufferusecache" id="pretty_bufferusecache"', ($modSettings['pretty_bufferusecache'] ? ' checked="checked"' : ''), ' />
Themes/default/PrettyUrls.template.php(line 92)
No idea haven't been able to solve it.
Quote from: shadav on June 06, 2020, 05:48:50 PM
ok starting up a new project and installed this and ran into a strange error
I could not use the menu (either frontend or admin)
front end the dropdown menu wouldn't work at all, admin the dropdown menu would dropdown but none of the "links" were clickable....
with the newest pretty url's installed (2.3)
on a 2.0.17
with these others installed
Sorted Package Manager Listing
Anti-Spam Links
Optimus
Unknown Actions
Sisyphus
Custom BBCodes Manager
using theme Greeny (https://custom.simplemachines.org/themes/index.php?lemma=2835)
it seems to only be this theme that is having this issue, I check other themes installed and they all work
any suggestions?
I'm still having this issue....
Diego installed the theme and the mod on his site and didn't reproduce the error....
http://shadav.com/forum/
I can pm you a test account log in if you can take a look and maybe figure out what's causing the issue? (you have to be logged in to use the members link and stuff)
I finally figured it out....it's the scrolling-nav.js in the greeny theme
for future reference if someone else uses that theme
fixed it by removing all of the instances of #forum from themes/greeny/index.template.php
and then in themes/greeny/scripts/scrolling-nav.js
find
$("#forum a").not(".dd-selected, .dd-option, .bbc_link").each(function(i){
var titulo = $(this).attr("href");
if (this.href.indexOf("#") != -1 || this.href.indexOf("javascript") != -1)
{
$(this).attr("href", titulo);
}
else
{
$(this).attr("href", titulo + "#forum");
replace
$("a").not(".dd-selected, .dd-option, .bbc_link").each(function(i){
var titulo = $(this).attr("href");
if (this.href.indexOf("#") != -1 || this.href.indexOf("javascript") != -1)
{
$(this).attr("href", titulo);
}
else
{
$(this).attr("href", titulo);
now it seems to be working
Hi.
I have error when try to install ot remove any mod.
"admin" is added to ignore actions list.
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 23068736 bytes) in /.../Sources/PrettyUrls-Filters.php on line 304
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($session_var[0]) ? $session_var[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
What SMF version?
Quote from: vbgamer45 on June 09, 2020, 09:08:03 AM
What SMF version?
The same error when trying to clear the cache
Will there be a correction?
2.0.17
What filters do you have enabled?
Quote from: vbgamer45 on June 18, 2020, 01:46:01 PM
What filters do you have enabled?
All
Understood with caching, this is not this mod
But with the removal of mods the exact same error
And with the installation. I disable the mod to add or remove mods
I am working on a new forum. I have many mods installed. Among them is Pretty URLs. I cannot access the template for that mod. And, today, I tried changing the "Pretty URLs" name under boards. Now I cannot access the page at all. The url in the browser does not reference the page. And there is no entry for either the new or the old name in the database.
how did you go about "Changing the PrettyURL's name under boards"? can you expound upon that and exactly what you were seeking to accomplish? I'm certainly willing to assist, but I don't know what was going on here...
@drewactual
Thanks for the reply.
I was on this page: Admin > Manage Boards. Pretty URLs is an option ... pretty_urls-1.png
I tapped on it and was taken to the page shown in ... pretty_urls-2.png
I thought I could change the name, which is what I wanted to do. That is shorten "flora-~-rushes-sedges" to just "rushes-sedges".
Tapping on the coloured box (without text) adds the second title. However, the board itself (on the forum) disappears regardless whether or not I delete the first label. And when checking the database (after deleting the first label) I found the pretty_url_boards table for that item is gone. I then created a whole new board but it didn't take; IE: does not show in PrettyURLs in the database. In both instances, the text from the url is shortened to a number, 2 for the first change, 68 for the new board.
I should add that when I tap on the Pretty URLs link in the Admin menu I get: "Unable to load the 'PrettyUrls' template."
I'm not sure if you can use the & in the url
also after adding the new pretty url, did you set it as primary?
you may also have to then go to pretty urls in admin and Run maintenance tasks
as for the Unable to load the 'PrettyUrls error....sounds like it didn't fully install, use the parse and make sure that all edits were done correctly and all files were uploaded to the proper places
first and perhaps most important, dump your cache.
Quote from: shadav on June 25, 2020, 07:51:50 PM
I'm not sure if you can use the & in the url
also after adding the new pretty url, did you set it as primary?
you may also have to then go to pretty urls in admin and Run maintenance tasks
as for the Unable to load the 'PrettyUrls error....sounds like it didn't fully install, use the parse and make sure that all edits were done correctly and all files were uploaded to the proper places
i may be mistaken, here, and in the real world you'd be right... but in the wonder land of htaccess rewrites- the ampersand is permissible... the 'actual' URL is not what you see in the address bar- it's been rewritten... so long as the script does what is intended, it will translate it and arrive a person at the intended destination... this is why every move you make in your htaccess is important- one little mistake or even something out of order, and you can wreck a page.
My apologies. The ampersand in the screenshot of my revised Pretty URL is a typo. I was emulating the error which was on a different board. Rather than "rushes & sedges" for the Pretty URL it should have been "rushes-sedges". The - not the & is what I typed in the actual error. Apparently though, that function (in the Boards Admin section) cannot or should not be used.
@drewactual, if by dump your cache you mean "Empty the file cache" I have done that.
I am also getting errors such as "Unable to load the 'PrettyUrls.english' language file." and page after page of
8: Undefined offset: 2
Apply Filter: Only show the errors from this file
File: /site_name/Sources/MessageIndex.php
Line: 50
The code below is line 49 and 50:
// 301 redirects
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
I am also seeing, in the various php files, many "warnings" which say "If-Else Statements Must Use Braces"
I checked uninstalling this mod and no error warnings are displayed. Perhaps uninstalling it is the way to go.
are you on a shared server? what version of php? what are the permissions of the sub-directories and files in the PrettyURL's directory?
i think you've got a malformed htaccess and i think you've either an incomplete or somehow corrupted install- OR- the permissions have been altered (which is why i ask you about shared server- but it could also have been done by you if you use something like filezilla and don't pay attention when uploading/replacing files).
@drewactual
I am presently working on a local installation; IE: the server is a second computer in my studio.
It is on a Linux19.3 box with xampp (lampp) and has PHP 7.3 installed. I do use Filezilla but mostly upload/download files through NerBeans which I use to make alterations, mostly to the theme's CSS file. I think file permissions are okay.
Here is the .htaccess file:
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# https://www.smfhacks.com/prettyurls-seo-pro.php
# .htaccess file generated automatically on: June 8, 2020, 5:09
RewriteEngine on
RewriteBase /gm
# Rules for: actions
RewriteRule ^(agreement|acceptagreement|activate|admin|announce|attachapprove|bookmarks|buddy)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(buddies|calendar|clock|collapse|contact|coppa|credits|deletemsg)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(display|dlattach|editpoll|editpoll2|emailuser|findmember|forum|portal)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(groups|help|helpadmin|im|jseditor|jsmodify|links|jsoption)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(lock|lockvoting|login|login2|mailread|logout|markasread|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyannouncements|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|reminder|removepoll|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reporttm|requestmembers|restoretopic|search|search2|sendtopic|smstats|suggest)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(spellcheck|splittopics|stats|sticky|tags|theme|trackip|about:mozilla)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(who|\.xml|xmlhttp|forum)/?$ ./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]
# PRETTYURLS MOD ENDS
NetBeans is the issue for "If-Else Statements Must Use Braces"
https://bz.apache.org/netbeans/show_bug.cgi?id=233027
The ad the 'PrettyUrls.english' language file." should like that file is not found in the themes/default/languages folder.
Thanks @vbgamer,
I didn't know about the NetBeans issue. Good thing I didn't start "correcting" files.
PrettyUrls.english.php file is in the default theme folder. I just copied it to the languages folder of the theme I am using. The broken link works now. And I can change the URL filename on the boards page. However, I get the following errors when I visit pages in the forum:
.../index.php?pretty;board=flora-~-general.0
2: preg_replace_callback(): Requires argument 2, 'preg_replace_callback('/(.{20})/u', '\$1< >', '$1')', to be a valid callback
.../Sources/Subs.php
Line: 4998
.../index.php?pretty;board=forbs.0
2: preg_replace_callback(): Requires argument 2, 'preg_replace_callback('/(.{20})/u', '\$1< >', '$1')', to be a valid callback
File: .../Sources/Subs.php
Line: 4998
Line 4998 is the word "$message);" in the code below:
if ($smcFunc['strlen']($message) > $modSettings['TopicSummary_maxwordlength'])
{
// This is done in a roundabout way because $breaker has "long words" :P.
$message = strtr($message, array($breaker => '< >', ' ' => $context['utf8'] ? "\xC2\xA0" : "\xA0"));
$message = preg_replace_callback(
'~(?<=[>;:!? ' . $non_breaking_space . '\]()]|^)([\w' . ($context['utf8'] ? '\pL' : '') . '\.]{' . ($modSettings['TopicSummary_maxwordlength'] + 1) . ',})~e' . ($context['utf8'] ? 'u' : ''),
'preg_replace_callback(\'/(.{' . ($modSettings['TopicSummary_maxwordlength']) . '})/' . ($context['utf8'] ? 'u' : '') . '\', \'\\$1< >\', \'$1\')',
$message);
$message = strtr($message, array('< >' => $breaker, $context['utf8'] ? "\xC2\xA0" : "\xA0" => ' '));
}
Hi,
I just installed the latest 2.1 gitub version today and when I try to install this mod I have this error.
yeah that can happen due to changes will update for rc3
ok thanks
Hello,
Im trying to upgrade from 2.1.4b to 2.3 but getting error while upgrading. and i can not uninstall previous mod as there is only option to delete.
can you please guide how to upgrade?
forum url: https://www.engrz.org
I would do manually updates/install the mod over the top of the orignal mod.
Hi all,
Having Greeny theme, when I install PrettyURL mod in SMF 2.0.17, I can't access to admin menu.
@shadav I think you had a similar problem, didn't you?.
Can you (or anyone else) give me a tip to solve it?
Quote from: charlie663 on July 01, 2020, 11:31:26 AM
Hi all,
Having Greeny theme, when I install PrettyURL mod in SMF 2.0.17, I can't access to admin menu.
@shadav I think you had a similar problem, didn't you?.
Can you (or anyone else) give me a tip to solve it?
Quote from: shadav on June 07, 2020, 03:49:33 AM
I finally figured it out....it's the scrolling-nav.js in the greeny theme
for future reference if someone else uses that theme
fixed it by removing all of the instances of #forum from themes/greeny/index.template.php
and then in themes/greeny/scripts/scrolling-nav.js
find
$("#forum a").not(".dd-selected, .dd-option, .bbc_link").each(function(i){
var titulo = $(this).attr("href");
if (this.href.indexOf("#") != -1 || this.href.indexOf("javascript") != -1)
{
$(this).attr("href", titulo);
}
else
{
$(this).attr("href", titulo + "#forum");
replace
$("a").not(".dd-selected, .dd-option, .bbc_link").each(function(i){
var titulo = $(this).attr("href");
if (this.href.indexOf("#") != -1 || this.href.indexOf("javascript") != -1)
{
$(this).attr("href", titulo);
}
else
{
$(this).attr("href", titulo);
now it seems to be working
note that by doing this though it seems to have broken the toTop button of the theme on most pages.....but ;) I'd rather have prettyurls than a scroll to top button
there's also another issue I ran into with the greeny theme creating tons of errors in the logs.....there's a simple fix in the theme's support topic https://www.simplemachines.org/community/index.php?topic=538554.20
i was unable to load/display the Pretty URLs template in the admin section. I found out why. I needed to copy it to the theme folder I am using. When I did that I can now access the Pretty URLs Administration page but selecting Enable URL rewriting doesn't work. After saving, it reverts to an unchecked box. And the URLs are not "pretty" they are the basic form: board=___, topic=___.
So, I went to the database > settings > pretty_enable_filters and changed "0" to "1". Works now.
It seems like something went horribly wrong on install....You shouldn't have had those issues. It looks like the mod did not install fully...
Quote from: vbgamer45 on July 02, 2020, 12:48:34 PM
It seems like something went horribly wrong on install....You shouldn't have had those issues. It looks like the mod did not install fully...
this MAY be an SMF issue... some folks (and i've seen it myself) have reported taking half a dozen times for a setting in admin (ANY setting) to change... i think, personally, it has to do with server settings but i cant' imagine what or where... i thought it was some sort of cache issue for a while, but it's not that.
You mean like the way the SMF settings table is cached for up to 90 seconds and thus while the new setting is saved, the admin pages are shown using the cached value for that time?
Quote from: Arantor on July 02, 2020, 02:29:47 PM
You mean like the way the SMF settings table is cached for up to 90 seconds and thus while the new setting is saved, the admin pages are shown using the cached value for that time?
that would be the first time i've heard that explanation... and may very well be 'it'.
i noticed it way back in 2.0.14 for the first time... adjust setting- save- no change... IF i refreshed the page before trying to save it would
usually be saved, but if i didn't and just tried to change and save again it would take several attempts... sometimes it would save instantly... others, it wouldn't- and i don't mean 'after several attempts' i mean it flat wouldn't save it... i'd come back later intent to track cause- try to save, and it would.
No, it would save it every time, first time. It just wouldn't show you immediately, because it would be using the stale cache to build the form.
good to know- thanks!
Quote from: digger on June 09, 2020, 08:55:46 AM
Hi.
I have error when try to install ot remove any mod.
"admin" is added to ignore actions list.
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 23068736 bytes) in /.../Sources/PrettyUrls-Filters.php on line 304
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($session_var[0]) ? $session_var[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
Quote from: Yariksat on June 18, 2020, 01:27:09 PM
Quote from: vbgamer45 on June 09, 2020, 09:08:03 AM
What SMF version?
The same error when trying to clear the cache
Will there be a correction?
2.0.17
Fixed
I tried searching but not finding an answer
found a slight error....
with pretty urls on, when anything (other than the forum index page) is shared to facebook, it spits out either a database error on the share or a 401/403....
with pretty urls off, it shares just fine on fb
anyway to fix this? I'd rather keep pretty urls
If it is a database error needs to see the error in the logs of SMF.
401/403 sounds like a mod_security issue please disable.
why would it work without pretty urls though then?
and sorry for a stupid question but how do I disable mod_security? I do not have access to the server itself....
Mod security rules my thought
Details https://wiki.simplemachines.org/smf/Mod_security_-_Having_problems_with_mod_security
that seems to have done the trick, thank you
Glad to help
What rewrite is needed to work with Tapatаlk?
I don't think any. I use tapatalk on my sites.
links to scripts Tapatаlk do not break? I have 404
What are the links url that are broken? I can't see what is posted.
check browser console page https://g-news.com.ua/forum_smf/belarus/lukashenko-snizil-nasilie-no-pereshel-k-ugrozam/
https://g-news.com.ua/forum_smf/mobiquo/tapatalkdetect.js
Missing
Check that folder exists.
If it does you have to add exception in .htaccess to ignore that folder.
can you give an example to add exception in .htaccess to ignore that folder?
https://www.smfhacks.com/index.php/topic,9619.0.html
THANKS!!!!!!!
When this modification is installed, index.php is not displayed in the forum address after entering the forum. How to restore index.php to the forum address?
That's literally the point of this plugin, to make all of the URL nice, not just the bit after the index.php... why would you want to put it back?
Because I can't log in using the top login field.
An Error Has Occurred! Unable to verify referring url. Please go back and try again.
And one SMFPL support member claims that some users report to him that they have to log in all the time because the logging system doesn't keep them all the time. And if they log in via mydomain.pl/forum/index.php, there are no problems with keeping logged in. He uses the Pretty URLs modification on the forum.
Which site? It's almost certainly not the URL but the relevant login form missing the flag that equates to "stay logged in forever".
Quote from: Arantor on August 26, 2020, 07:14:42 AM
Which site? It's almost certainly not the URL but the relevant login form missing the flag that equates to "stay logged in forever".
I have this modification installed on a test forum. I get this error:
An Error Has Occurred! Unable to verify referring url. Please go back and try again.
when I want to log in via the top login field with the "Forever" function selected.
I already know what was causing it. I use SSL on the forum and in the .htaccess file I had the code to redirect to SSL and after installing this modification, the modification replaces the .htaccess file with its own. I added a code to redirect to SSL to the .htaccess file and this error with logging in no longer occurs and index.php is displayed in the forum address. What do you think about it?
So, again, which site? I didn't ask that for no reason, I wanted to see what the issue was because without seeing the HTML for myself I can't help you.
Quote from: lazanet on October 26, 2019, 04:16:06 PM
I have problem mentioned earlier in this thread (https://www.simplemachines.org/community/index.php?topic=146969.msg3844828#msg3844828), on my SMF 2.0.15 forum, however fixes presented in those posts are no longer valid since even with latest tapatalk plugin - 4.5.2 and latest Pretty URLs - 2.1.4b, android-app:// and ios-app:// protocol links are replaced like:
"https://playpes.rs/forum/android-app://com.quoord.tapatalkpro.activity/tapatalk/playpes.rs/forum/
and
"https://playpes.rs/forum/ios-app://307880732/tapatalk/playpes.rs/forum/
respectively.
I've tried to move android-app in PrettyUrl-Filters.php to before // Absolutise relative URLs, but to no avail.
Does anyone have idea how could I fix this mess?
FYI regex for
// Absolutise relative URLs is wrong since it wouldn't capture protocols with dash in them (such as ios-app and android-app)
Solution is to use this regex
~^[a-zA-Z\-]+:|^#|@~
instead of
~^[a-zA-Z]+:|^#|@~
on all occurences in PrettyUrl-Filters.php
Update! 2.3.1
!Fixes for tapatalk urls thanks to lazanet
Updated to include SMF 2.1 RC3 support.
Dear SMFHacks team,
Been using this mod on 2 of my sites and have been working great without issues so far.
1 thing i've noticed however is the HUGE amount of space it uses in the MySQL database.
i.e. On one of my sites, the entire DB is 8.2Gb large and the pretty_urls_cache table is 7.3Gb on its own.
I've gone into the Pretty URLs setting and checked the box "Use caching instead of database table for PrettyUrls".
Question is:
1) Does checking this box make it work any better and do i have to do anything else?
2) Can i safely drop the table prefix_pretty_urls_cache so that i can clear up 7.3Gb of space?
Thanks in advance!
Empty the table, I believe it will remain empty once you change the setting. It's caused problems on forums I've worked on, some servers will choke on a table that large, and makes it difficult to export a complete backup.
Dear Helpers,
Ran into the same problem as statusjpn here above.
Our small SMF site 2.0.17 (Dutch version) is a free Computer-Help-site and has a tiny little Database of 500 MB.
As we run this on our host for free, and the site doesn't generate income, I can not affort to buy more space.
Of the 500 MB, there is only 90 MB free, for this moment, and decreasing rapidly.
The table smf-Messages is the biggest table with 189 MB. The second largest is smf_pretty_url_cache with 138 MB
My question, can I de-install the pretty_url_mod (Ver. 2.1) safely, and regain those 138 MB by empty the smf_pretty_url_cache-table?
Can I ran into errors with the rest of the database/forum?
When I can do this, can I also empty the smf_pretty_topic_urls and smf_pretty_topics_url_bak tables?
Thanks for your wise advise and help.
Softaid :)
You can empty the tables via phpmyadmins smf_pretty_topics_url_bak is not a standard table and can probably be removed.
Hello vbgamer45,
thank you for your quick response.
I supose I can then empty these tables each time it's neccesary?
SoftAid
Just use this setting instead "Use caching instead of database table for PrettyUrls".
Hi vbgamer45.
I tried to find that setting, as I did read it in this topic. Can't find it (and I'm grey, not blond ;D)
Thanks
SoftAid
You might need a newer version. You can upgrade on topic if you can't uninstall the old version.
Hi vbgamer45,
found the setting and emptyed the tables.
Thanks a lot.
Greetings,
SoftAid
Glad to help
i lost a forum before some days and managed to get backups now i have installed new smf on a server and using old db where pretty url tables are there. when i copied prettyurl.php to package folder and tried installing from package manager it gives error below, any suggestions ?
Specified key was too long; max key length is 1000 bytes
File: /home/customer/www/samplesite.com/public_html/Packages/temp/SMF2-0/install.php
Line: 39
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.17, while your database is at version 2.0.10. The above error might possibly go away if you execute the latest version of upgrade.php.
Strange...it shoudn't be that big 255 characters
You can try this query
CREATE TABLE `smf_pretty_urls_cache` (
`url_id` varchar(255) NOT NULL,
`replacement` varchar(255) NOT NULL,
KEY (`url_id`(100))
) ENGINE=MyISAM DEFAULT CHARSET=latin1
Where smf_ is your database prefix
You would then need to remove these lines from install.php
$smcFunc['db_drop_table']('{db_prefix}pretty_urls_cache');
$smcFunc['db_create_table']('{db_prefix}pretty_urls_cache', array(
array('name' => 'url_id', 'type' => 'varchar', 'size' => 255),
array('name' => 'replacement', 'type' => 'varchar', 'size' => 255),
), array(
array('type' => 'primary', 'columns' => array('url_id')),
), array(), 'overwrite');
Then repackage the zip file and install from there.
Quote from: vbgamer45 on December 08, 2020, 01:57:53 PM
Strange...it shoudn't be that big 255 characters
You can try this query
CREATE TABLE `smf_pretty_urls_cache` (
`url_id` varchar(255) NOT NULL,
`replacement` varchar(255) NOT NULL,
KEY (`url_id`(100))
) ENGINE=MyISAM DEFAULT CHARSET=latin1
Where smf_ is your database prefix
You would then need to remove these lines from install.php
$smcFunc['db_drop_table']('{db_prefix}pretty_urls_cache');
$smcFunc['db_create_table']('{db_prefix}pretty_urls_cache', array(
array('name' => 'url_id', 'type' => 'varchar', 'size' => 255),
array('name' => 'replacement', 'type' => 'varchar', 'size' => 255),
), array(
array('type' => 'primary', 'columns' => array('url_id')),
), array(), 'overwrite');
Then repackage the zip file and install from there.
thank you for quick reply sir. query ran successfully but where can i find install.php ?
Quote from: vbgamer45 on December 08, 2020, 01:57:53 PM
Strange...it shoudn't be that big 255 characters
You can try this query
CREATE TABLE `smf_pretty_urls_cache` (
`url_id` varchar(255) NOT NULL,
`replacement` varchar(255) NOT NULL,
KEY (`url_id`(100))
) ENGINE=MyISAM DEFAULT CHARSET=latin1
Where smf_ is your database prefix
You would then need to remove these lines from install.php
$smcFunc['db_drop_table']('{db_prefix}pretty_urls_cache');
$smcFunc['db_create_table']('{db_prefix}pretty_urls_cache', array(
array('name' => 'url_id', 'type' => 'varchar', 'size' => 255),
array('name' => 'replacement', 'type' => 'varchar', 'size' => 255),
), array(
array('type' => 'primary', 'columns' => array('url_id')),
), array(), 'overwrite');
Then repackage the zip file and install from there.
and what does it mean by repackage the zip file and install ?
After you make the edit zip up all the pretty url files then upload the package to the smf package manager to install
where are those files sir ? sorry but i am not very tech savvy. i have just copy pasted .zip file in package directory and tried installing it from admin
in the zip file from pretty urrs.
i ahve it in zip file only sir under package folder from old backup
You would then need to remove these lines from install.php
Code: [Select]
$smcFunc['db_drop_table']('{db_prefix}pretty_urls_cache');
$smcFunc['db_create_table']('{db_prefix}pretty_urls_cache', array(
array('name' => 'url_id', 'type' => 'varchar', 'size' => 255),
array('name' => 'replacement', 'type' => 'varchar', 'size' => 255),
), array(
array('type' => 'primary', 'columns' => array('url_id')),
), array(), 'overwrite');
where can i find install.php ?
SMF2-0\install.php folder in the zip file.
Quote from: vbgamer45 on December 08, 2020, 02:36:42 PM
SMF2-0\install.php folder in the zip file.
sorry but i cant see any folder with such name in my webspace
not on the webspace you have to download and edit the zip for prettyurls.
Quote from: vbgamer45 on December 08, 2020, 02:51:54 PM
not on the webspace you have to download and edit the zip for prettyurls.
done that and now below error
Table 'dbdg7ewvqjenhb.soft_pretty_urls_cache' doesn't exist
File: /home/customer/www/indian-femdom.com/public_html/Sources/Subs-PrettyUrls.php
Line: 312
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.17, while your database is at version 2.0.10. The above error might possibly go away if you execute the latest version of upgrade.php.
Hello s10dulkar,
schouldn't it be a good idea to first install your old version of SMF (the Backup) and add the Pretty_URLs.php .
After this went well, then upgrade to SMF 2.0.17 ???
This would avoid this problem, I believe.
Just my 2 cents.
Softaid
Quote from: SoftAid on December 08, 2020, 03:08:35 PM
Hello s10dulkar,
schouldn't it be a good idea to first install your old version of SMF (the Backup) and add the Pretty_URLs.php .
After this went well, then upgrade to SMF 2.0.17 ???
This would avoid this problem, I believe.
Just my 2 cents.
Softaid
mate trying everything from last 3 days. tried what you said also but that have different issues than this ones
Thats a good idea!
Yeah the issue is the table doesn't exist
Or run this query on db
CREATE TABLE `soft_pretty_urls_cache` (
`url_id` varchar(255) NOT NULL,
`replacement` varchar(255) NOT NULL,
KEY (`url_id`(100))
) ENGINE=MyISAM DEFAULT CHARSET=latin1
Quote from: vbgamer45 on December 08, 2020, 03:10:48 PM
Thats a good idea!
Yeah the issue is the table doesn't exist
Or run this query on db
CREATE TABLE `soft_pretty_urls_cache` (
`url_id` varchar(255) NOT NULL,
`replacement` varchar(255) NOT NULL,
KEY (`url_id`(100))
) ENGINE=MyISAM DEFAULT CHARSET=latin1
run successfully and returned below message
MySQL returned an empty result set (i.e. zero rows). (Query took 0.0033 seconds.)
it was installed now but everytime i click on any board it logs out user
run successfully and returned below message
MySQL returned an empty result set (i.e. zero rows). (Query took 0.0033 seconds.)
[/quote]
Looks normal to me, the database is empty in the beginning, building up every time an url is used.
Yeah, I'am blond, sorry.... ;)
Monica
SoftAid
Quote from: SoftAid on December 08, 2020, 03:15:40 PM
run successfully and returned below message
MySQL returned an empty result set (i.e. zero rows). (Query took 0.0033 seconds.)
Looks normal to me, the database is empty in the beginning, building up every time an url is used.
Yeah, I'am blond, sorry.... ;)
Monica
SoftAid
[/quote]
it was installed now but everytime i click on any board it logs out user
i was using http earlier with old host now on https that might be a problem ? any idea how to get this working friends.
Hello s10dulkar,
I'm not a programmer nor a specialist. I only know that when I updated my site from Http to Https Itherfore I had to ad .htaccess.
That redirects (renames?) all Http-adresses to Hppts.
Search on this site for .htaccess or "http to https"
An adittional search in the DB_Messages and replacing Http by Https did a good job to for links in the text of the Messages.
Good luck
SoftAid
Quote from: SoftAid on December 09, 2020, 07:04:56 AM
Hello s10dulkar,
I'm not a programmer nor a specialist. I only know that when I updated my site from Http to Https Itherfore I had to ad .htaccess.
That redirects (renames?) all Http-adresses to Hppts.
Search on this site for .htaccess or "http to https"
An adittional search in the DB_Messages and replacing Http by Https did a good job to for links in the text of the Messages.
Good luck
SoftAid
this is what my htaccess have
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: December 8, 2020, 20:15
RewriteEngine on
RewriteBase /
# 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]
# PRETTYURLS MOD ENDS
Did you went trough this (https://www.simplemachines.org/community/index.php?topic=555034.0)
SoftAid
yeah checked it but not sure what i need to put in my htaccess it already has lots of stuff. everything else is working fine just when i enable pretty url it starts logging out user whenever he clicks on any board or topis
Did you change your url? check out this to reset your pretty url root https://www.smfhacks.com/index.php/topic,9619.0.html
Quote from: vbgamer45 on December 09, 2020, 08:54:21 AM
Did you change your url? check out this to reset your pretty url root https://www.smfhacks.com/index.php/topic,9619.0.html
no luck mate
Quote from: vbgamer45 on December 09, 2020, 08:54:21 AM
Did you change your url? check out this to reset your pretty url root https://www.smfhacks.com/index.php/topic,9619.0.html
my site is https now instead of http. do you think thats the issue ?
Yes
Quote from: vbgamer45 on December 11, 2020, 09:21:03 AM
Yes
so what do you suggest brother ? what to change ? i have already changed path from admin area
Check troubleshooting link there is an FAQ on how to update the pretty urls root.
Quote from: vbgamer45 on December 11, 2020, 11:19:55 AM
Check troubleshooting link there is an FAQ on how to update the pretty urls root.
are you talkong about this
https://code.google.com/archive/p/prettyurls/wikis/TroubleShooting.wiki
Yes Links point to old domain after moving forum
Quote from: vbgamer45 on December 11, 2020, 01:44:03 PM
Yes Links point to old domain after moving forum
need to change anything in below according to my site or its universal code ?
<?php require_once(dirname(__FILE__) . '/SSI.php'); require_once($sourcedir . '/Subs-PrettyUrls.php'); updateSettings(array('pretty_root_url' => $boardurl)); pretty_update_filters(); ?>
Quote from: vbgamer45 on December 11, 2020, 01:44:03 PM
Yes Links point to old domain after moving forum
actually pretty urls installs completely i can access settings of that package also and it gives pretty url also working only thing is whenever user clicks on any board or topic he gets logged out. everything else works just fine
Yes you still have to run that script above.
Quote from: vbgamer45 on December 11, 2020, 02:10:14 PM
Yes you still have to run that script above.
got below errors while running it
Deprecated: Function get_magic_quotes_runtime() is deprecated in /home/customer/www/indian-femdom.com/public_html/SSI.php on line 30
Notice: Trying to access array offset on value of type null in /home/customer/www/indian-femdom.com/public_html/Sources/Load.php on line 168
Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /home/customer/www/indian-femdom.com/public_html/SSI.php on line 172
Fatal error: require_once(): Failed opening required '/home/customer/www/indian-femdom.com/public_html/Sources/Subs-PrettyUrls.php' (include_path='.:/usr/local/php74/pear') in /home/customer/www/indian-femdom.com/public_html/ad.php on line 1
Looks like pretty urls didn't install... Subs-PrettyUrls.php should be in sources folder from the pretty urls folder...
Make sure all edits occur: https://www.smfhacks.com/smf-package-parser.html
Quote from: vbgamer45 on December 11, 2020, 05:57:46 PM
Looks like pretty urls didn't install... Subs-PrettyUrls.php should be in sources folder from the pretty urls folder...
Make sure all edits occur: https://www.smfhacks.com/smf-package-parser.html
changed everything manually and now forum not load at all
You made an error somewhere... I would suggest at this point just uninstall pretty urls completely.
Quote from: vbgamer45 on December 12, 2020, 11:13:58 AM
You made an error somewhere... I would suggest at this point just uninstall pretty urls completely.
how to uninstall. i am not able to view site anymore. please check www.indian-femdom.com
Restore from a backup or undo the changes that you made.
Backup can also be found in Packages/backups folder.
Quote from: vbgamer45 on December 12, 2020, 12:05:49 PM
Restore from a backup or undo the changes that you made.
Backup can also be found in Packages/backups folder.
okay i restored backup from yesterday forum is working now. and pretty url is not installed . now ?
get below error while trying to install pretty url. just used upgrade.php to upgrade my database and retried
Fixes found at https://www.simplemachines.org/community/index.php?topic=560538.msg4075764#msg4075764
Quote from: vbgamer45 on December 16, 2020, 02:37:37 PM
Fixes found at https://www.simplemachines.org/community/index.php?topic=560538.msg4075764#msg4075764
followed steps able to activate and configure pretty url. again same issue logs out user when any board or topic clicked
Same issue the pretty urls root is wrong..
Quote from: vbgamer45 on December 17, 2020, 10:45:33 AM
Same issue the pretty urls root is wrong..
so how to correct it ?
Go inside your smf_settings database table and adjust the pretty urls root value
Quote from: vbgamer45 on December 18, 2020, 02:11:40 PM
Go inside your smf_settings database table and adjust the pretty urls root value
i cant see any row with pretty url in smf setting table :(
If not enter a field pretty_root_url and put your board url in it...
Quote from: vbgamer45 on December 18, 2020, 11:22:56 PM
If not enter a field pretty_root_url and put your board url in it...
done that with no luck it was there actually pretty_root_url and i have made http to https but still the same. keeps logging out whenever its enabled and clicked on any board
I have no other idea at this time.
For those who may have created the same problem as I did, here is the workaround.
For all the others here's a recipe for a problem you haven't had, yet.
After upgrading a damaged forum according to these steps to version from 2.0.12 or so to 2.0.17 existing members were not able to log in successfully.
https://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files
This forum: https://www.georgkreisler.net/
Right after logging in the members got redirected to this page - in order to subscribe to the new settings. On my computer/Firefox appears to be a white page. Your view may differ:
https://www.georgkreisler.net/agreement/?sa=policy
My part of the problem: I have the index.php redirect to root via htaccess. This has killed the URL so much it could not be prettified.
Workaround: Excluding the action "agreement" in pretty-url-settings did it for me.
Quote from: K-Forum on January 21, 2021, 06:10:47 AM
For those who may have created the same problem as I did, here is the workaround.
For all the others here's a recipe for a problem you haven't had, yet.
After upgrading a damaged forum according to these steps to version from 2.0.12 or so to 2.0.17 existing members were not able to log in successfully.
https://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files
This forum: https://www.georgkreisler.net/
Right after logging in the members got redirected to this page - in order to subscribe to the new settings. On my computer/Firefox appears to be a white page. Your view may differ:
https://www.georgkreisler.net/agreement/?sa=policy
My part of the problem: I have the index.php redirect to root via htaccess. This has killed the URL so much it could not be prettified.
Workaround: Excluding the action "agreement" in pretty-url-settings did it for me.
ehhh if memory serves from reading through posts...you can't drop the index.php or it will mess up functions of smf
Yeah, Shadav, you are right.
Our forum is nearly 20 years old and since it had been converted it had accumulated lots of rewrites and redirects.
Since I built it anew I already dropped most of them, now I think I should also drop this one. It was a solution yesterday but it should not become a problem tomorrow.
I will leave my reply for others with a similar problem.
Thank you
Critical Update for SMF 2.0.x!!!
In order to use on SMF 2.0.18
You must upgrade the latest version otherwise you will have issues with boards/topics that quotes in the name of them.
Pretty Urls 2.4
Fix:
!Handle quote character storage changes in 2.0.18
Does the new version work with php 7.2?
Yes, it has been working for PHP 7.2 I run PHP 7.3 myself with it.
:o I'm still running 1.0RC5 :-[ .... and I updated to 2.0.18 and PHP7.4 ....
Quote from: vbgamer45 on January 29, 2021, 10:16:46 PM
Critical Update for SMF 2.0.x!!!
In order to use on SMF 2.0.18
You must upgrade the latest version otherwise you will have issues with boards/topics that quotes in the name of them.
Pretty Urls 2.4
Fix:
!Handle quote character storage changes in 2.0.18
Pretty URLs 2.4 Up and Running :D
Just upgraded from my ancient pretty 1.0 to 2.4 and SMF to 2.0.18 afterwards.
since then i get a lot of these errors:
https://url/index.php?pretty;action=.xml&amp;amp;type=webslice;PHPSESSID=uhfusifhiusdfoudsfhuodshfodshfuds
8: Undefined index: sa
File: /var/www/clients/client2/web6/web/Sources/News.php
Line: 68
These Errors only occur on unauthed users of the Forum - so maybe some bot/crawler.
I think it is a 2.0.18 bug that fill be fixed I heard there is an xml issue outstanding.
Hi,
I am running smf 2.0.17 with pretty URLs 2.0.1.
Everything had been working fine till I started getting the urls which seem to have spam topic. The board name is correct but the topic name has no relation to the actual topic. However they point correctly to the post.
Some of these are as follows:
https://www.chemtopper.com/smf/organic-chemistry/best-dissertation-results-writing-for-hire-au/
https://www.chemtopper.com/smf/organic-chemistry/essay-duty-good-student/
https://www.chemtopper.com/smf/organic-chemistry/bachelor-thesis-terrorism/
https://www.chemtopper.com/smf/organic-chemistry/professional-descriptive-essay-writing-sites-uk/
Kindly help to resolve this issue.
Did you delete the existing posts? found inside the topic?
How did you find those urls?
Quote from: vbgamer45 on March 10, 2021, 01:23:40 AM
Did you delete the existing posts? found inside the topic?
How did you find those urls?
HI,
The posts are still there.
I had posted the links in the post above but probably they were deactivated by this forum settings. Now putting them as per Insert Hyperlink.
https://www.chemtopper.com/smf/organic-chemistry/best-dissertation-results-writing-for-hire-au/ (https://www.chemtopper.com/smf/organic-chemistry/best-dissertation-results-writing-for-hire-au/) The actual topic for this post is IUPAC Nomenclature.
https://www.chemtopper.com/smf/cbse-xi-and-xii-chemistry/great-gatsby-foreshadowing-essay/ (https://www.chemtopper.com/smf/cbse-xi-and-xii-chemistry/great-gatsby-foreshadowing-essay/) The actual topic for this post is Bond dissociation enthalpy of halogens
Did you delete any posts or had spam posts? Or did you a post a to another board?
was the name of the topic changed after it was posted?
in your admin go to your pretty urls and click on the maintenance button for the pretty urls and then click on Run maintenance tasks
this should change the urls to the new topic titles
Quote from: vbgamer45 on March 10, 2021, 10:18:33 AM
Did you delete any posts or had spam posts? Or did you a post a to another board?
Yes I did delete spam posts on the forum. In fact human generated spam keeps coming probably two to three per week which I keep deleting.
No I have not moved the topics from one board to another.
The same is occurring with new posts also. The topic as given out by Pretty URLs is not coming as the actual topic for new posts also.
Quote from: shadav on March 10, 2021, 11:25:08 AM
was the name of the topic changed after it was posted?
in your admin go to your pretty urls and click on the maintenance button for the pretty urls and then click on Run maintenance tasks
this should change the urls to the new topic titles
I have run the maintenance tasks a No of times. However the URL of post remains the same.
I did notice a curious thing though. IN the settings for Pretty URLs admin, the version shown is
Version info
Current version: 1.0
However in package manager, the version installed is 2.0.1.
Also I can paste here the extract from .htaccess if you feel it is relevant.
Hi, guys! Just a quick question, please. The forum was recently upgraded from 2.0.15 to 2.1RC3 and there seem to be a few quirks with Pretty URLs. We'd like to just overwrite the files and reinstall it. Here's the question: will uninstalling PrettyURLs (2.4), overwriting the files, then reinstalling it empty the database tables? (We'll back it up.) But there are years of threads using Pretty URLs, that we don't want to lose. Should it empty existing tables, if it's reinstalled using the Package Manager?
(Also, by the bye... even though it's 2.4 in the Package Manager, it shows in settings as being "1.0" so that may just be a version typo in the package?)
Thanks, I'm just gonna sit here and hum, hoping someone drops by. :)
It shouldn't empty the tables if reninstalled the tables are not removed unless you choose the option to remove data but always have backups.
I checked the package file it says version 2.4 in the xml area.
Quote from: vbgamer45 on May 14, 2021, 08:45:31 PM
It shouldn't empty the tables if reninstalled the tables are not removed unless you choose the option to remove data but always have backups.
I checked the package file it says version 2.4 in the xml area.
The version thing is probably just some upgrade glitch, then, it's a bit buggy. Thanks, vbgamer45! :)
Thanks will check out.
Quote from: vbgamer45 on May 17, 2021, 07:07:39 PM
Thanks will check out.
I was fumbling around and inadvertently removed my entire post here (thinking I was on another board, such a putz!) so I just wanted to put the issue back, in case it needed to be on this thread.
I tried again: I downloaded a fresh zip (a few minutes ago) of 2.1RC3 from Github, overwrote all the files on the server just for good measure and then tried to install Pretty URLs on a fresh, untouched site and again, it failed on Subs-Boards.php. It wants to find
function modifyBoard($board_id, &$boardOptions)
{
global $cat_tree, $boards, $smcFunc;
But that bit in Subs-Boards.php is
function modifyBoard($board_id, &$boardOptions)
{
global $cat_tree, $boards, $smcFunc, $context, $txt;
(right out of the zip, unmodified). So, because it can't find the block of code, it won't install.
Same file, it's also not finding
if (isset($boardOptions['move_to']))
reorderBoards();
This seems to be a white-space issue because the string is there... but the spacing is off.
I can make the find strings match the installation files, then edit them after installing, but I just wanted you to be aware. :)
EDIT TO ADD:
Also not finding on Subs-Boards.php
// Change the board according to the given specifications.
Again, I think it's a white-space issue, the string is there.
Fixed! Thanks for help with finding and and solving these issues
Quote from: vbgamer45 on May 17, 2021, 09:53:15 PM
Fixed! Thanks for help with finding and and solving these issues
Oh, I'm so glad if it helped! (And I was able to get it installed just fine!) :)
Hi, vbgamer45! I don't know if you'd be interested in this or not, but testing on my 2.1RC3 forum, when Pretty URLS is enabled, it changes the Custom Profile links (the Show Enclosed Within Text field) so that they look like this (using ICQ as the example):
<a class="icq" href="http://thewellbucket.com/21RC3///www.icq.com/people/{INPUT}" target="_blank" rel="noopener" title="ICQ - {INPUT}"><img src="{DEFAULT_IMAGES_URL}/icq.png" alt="ICQ - {INPUT}"></a>
So you see, it inserts the forum URL before the ICQ link, rendering it a void link that doesn't go anywhere. Of course, I manually edited the link to look like this (below) and the changes did save.
<a class="icq" href="https://www.icq.com/people/{INPUT}" target="_blank" rel="noopener" title="ICQ - {INPUT}"><img src="{DEFAULT_IMAGES_URL}/icq.png" alt="ICQ - {INPUT}"></a>
I'm not sure where else on the forum this might occur; I've only seen it in the Custom Profile (Show Enclosed Within Text) field.
Just putting that out there into your universe. :)
Quick question - has anyone experienced random links when inserting them in posts?
Not sure if PrettyURLs could do something like that; basically, every once in a blue moon a user will insert a link in a post, and while the link text is correct, the underlying link URL will be changed to something else!
Any ideas?
Not that I heard of. Might be a plugin in the browser??
No, because it happens for different users... and myself, I've seen it in different browsers as well.
Ok, just wanted to ask here first, I'll try asking in the general SMF support forum :)
are you sure that the user isn't putting in the wrong url because they have to use the url tags and type in the link text....unless you are using some auto link mod and if so then you should ask in it's support thread but if not using a mod then the user is the one that is typing the url and using the url bbcode tags and inputting the link title
I have a forum (version SMF 2.0.6) with pretty url mod installed on it. In the past few days something abnormal happened, because the database started to eat up my hosting space, and the memory usage of the forum bursted to the limits of my hosting. The database abnormally jumped from 7.7GB to 17GB in size in the past 3 days, that is unusual considering the steady number of members and new post count, and that I manually approve registrants every time. The forum directory size on the server is unaffected, that is nearly the same. Observing the database, I noticed that when checking in myPHPadmin, the interface reports 105MB as database size incorrectly. The size of table "pretty_urls_cache" is reported as NULL. The hosting team concluded there has to be some problem with that table. Any ideas what resulted in this burst of memory and storage usage? Someone suggested I should empty that cache table.
You can use the option to not use the database to store pretty urls.
It can happen with depending on your settings with pretty urls such as action rewrites.
Make sure you are using the last version of pretty urls and I would also suggest upgrading your SMF version.
Okay but where to go now from this situation, because the forum doesn't even work at the moment? There is white blank page due to the burst in memory usage, the script lacks memory to work. The processes push the memory usage to the limits. All I could do is to remove the forum files from the server, but if I copy back it starts again.
Empty the pretty_urls_cache folder.
Then enable use caching instead of the database table in pretty urls settings.
I've run across an issue with pretty urls
https://www.simplemachines.org/community/index.php?topic=578994.0
when a new user tries to log in they get redirected to
http://forum.foamyfanatics.net/agreement/?sa=policy
Not Found
The requested URL was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I do have the agreement in place, I do have something written into the privacy policy
===
I tried resetting the htaccess as Arantor suggested but no joy, same issue
I turned off pretty urls and it worked user could log in and was redirected to
http://forum.foamyfanatics.net/index.php?action=agreement;sa=policy
where they could accept the privacy policy
running 2.0.18 and 2.4a pretty urls with the prettyurls-extras-1.0
if it helps i've attached my htaccess
I think it might be a mod_security issue. Disable mod_security.
As all your other urls on your forum seem to be ok.
Hi,
is it worth?
I ve heard that is not good for SEO...
forum since 2004 with abut 2 mln posts...
Should I use pretty urls mode?
I still look like for urls, and boards. That's what I use it for. Actions not so much.
I still think it helps a little bit with keywords on pages/in search engines it hightlights the keyword in the url
well if you have an established forum already and then install pretty urls it can hurt your search engine ranking and stuff for a bit but should bounce back over time
pretty urls is more for end user than bots, as the name implies it makes the urls pretty :laugh: more user friendly
take the url for this topic for example
simplemachines.org/community/index.php?topic=146969
if you post that into a topic without any explanation, no one will know what the link is for
however if you use this mod it could look something like
simplemachines.org/community/Customizing-SMF/Modifications-and-Packages/Pretty-URLs
or
simplemachines.org/community/Pretty-URLs
and then the url would at least give the end user an idea of what the link is about
How can I clean the cache of pretty urls?
I don't see anything on my Admin Panel, and tried to see in the database in the server, using phpmyadmin, but, I couldn't find the table to clean the cache.
How can I do it?
Just truncate the pretty_urls_cache table that will clear the table.
Could you please explain how to do that? Like click there, go there, do this?
I can't find any table with the prefix pretty urls on phpmyadmin.
Thanks
Edit: Ok. I was able to find out how to do it.
Since a few days I am having a problem, and that's why yesterday I asked you how to clean the cache of the prettyurls Mod.
I did it, and I still have the problem. To not write again everything, you could read this small thread to understand the problem I am having.
https://www.simplemachines.org/community/index.php?topic=579404.0
OK so I'm setting up a new forum and figure this might be a good time to implement this mod.
I'm using SMF 2.1 RC4
Are there any known clashes / incompatibilities between this and any other mods?
Any 'cons' / downsides to pretty URLs ?
Not that I know of in terms of conflicts with other mods. Unless you use two url rewrite mods
how can i remove "www" from url?
You have to adjust your SMF settings first change the board url
Then follow the second bold point at
https://www.smfhacks.com/index.php/topic,9619.0.html
What mod would you recommend for building a map with pretty links?
A map? This mod here does actions, topics, and posts.
another mod for sitemap
@OP could you please see my thread here - https://www.simplemachines.org/community/index.php?topic=580225.0 as suggested by others. Thank you.
I updated the forum to 2.1.0. version and when Pretty URLs is on it is not possible to log in to the forum. What could be the problem?
(https://i.postimg.cc/YCWPBrmd/Sporazum-o-registraciji.png)
Anything in the forum's error log? that would be related?
There are no records of errors in this regard. Now the Preety URLs is off so I can't keep track of the details.
Ok will check it out this weekend and run some tests
Thanks. :)
On my server I get a 404 error when trying to login with Pretty URLs enabled. I added login, login2 and logintfa to the disabled actions list and it works again. It's trying to POST to /login2/;ajax.
Update
Pretty URLs 2.5 2 February 2022
================================================================================
!Fixes for SMF 2.1 for logins Thanks to Oldiesmann
+Redid the template for pretty urls settings area for SMF 2.1
+Now uses hooks for the main admin menu for SMF 2.1
It works great, thanks! :)
Thanks for the quick fix. I'm going to be upgrading my site again soon so I'll hold off on updating the mod until then (just got around to updating to 2.1 RC4 a few days before 2.1 was released)
Decided to go ahead and upgrade anyway...
Only thing now is it seems the actions array isn't getting updated when I run maintenance tasks - it still shows "action=login" for the login button rather than /login/ even though I removed that from the disabled actions list and ran maintenance tasks (not a big deal though)
Quote from: Oldiesmann on February 12, 2022, 05:44:09 PMDecided to go ahead and upgrade anyway...
Only thing now is it seems the actions array isn't getting updated when I run maintenance tasks - it still shows "action=login" for the login button rather than /login/ even though I removed that from the disabled actions list and ran maintenance tasks (not a big deal though)
I hardcoded for SMF 2.1 final those three actions login, login2 and logintfa
For the past in SMF 2.1 prior I had to inject an extra ; character in order to get the popup login to work correctly.
Hi,
Https or non-http links are broken
forum ; https://site.com/forum
link added to topic (without http or https): site.com/forum or another site link anothersite.com
clickable link html output
<a href="https://site.com/forum///site.com/forum/" class="bbc_link" target="_blank" rel="noopener">site.com/forum/</a>
<a href="https://site.com/forum///anothersite.com" class="bbc_link" target="_blank" rel="noopener">anothersite.com</a>
SMF 2.1.1, Pretty Urls 2.5 PHP 7.4
Check that your pretty urls root is set correctly. I see to many ///
Pretty Urls Root: https://site.com/forum
It looks more like a link issue
Your links are not starting with http:// or https:// so they are not getting linked correctly.
same problem in wamp and real server
mod installed
0000045.png
mod. uninstall
77775555.png
Note: other mod. are disabled
I haven't been able to recrate on my test site you can try to remove this code
From Sources/PrettyUrls-Filter.phpp
// Absolutise relative URLs
if (!preg_match('~^[a-zA-Z\-]+:|^#|@~', $match) && SMF != 'SSI')
$match = $boardurl . '/' . $match;
Hi,
I tried the problem persists
Could this be a problem because the forum is installed in the folder?
site.com/forum/
I don't think so my test forum is in a sub folder.
The mod is not rewriting the urls in sitemap. this results in google is not indexing the urls and error shows, urls blocked by robots.txt
What sitemap mod? Probably requires edits.
Quote from: vbgamer45 on March 16, 2022, 07:39:45 AMWhat sitemap mod? Probably requires edits.
Im using pretty urls and optimus seo mod. All urls are pretty but urls in sitemap at https://www.engrz.com/sitemap.xml are not pretty.
Google is blocking this structure and is not indexing. I have tried uninstalling prettry url mod and result in google shows url is availe for indexing.
Actually, i want to use prettry urls or is there any other way to set seo friendly urls without pretty urls mod?
Optimus has a pretty urls feature i think too
Quote from: vbgamer45 on March 16, 2022, 02:24:05 PMOptimus has a pretty urls feature i think too
Can you help me to track pretty urls feature in optimus? im unable to find.
Quote from: engrz on March 17, 2022, 01:20:51 AMQuote from: vbgamer45 on March 16, 2022, 02:24:05 PMOptimus has a pretty urls feature i think too
Can you help me to track pretty urls feature in optimus? im unable to find.
It's an addon that doesn't come pre-installed on optimus. You'll have to ask the author over in the Optimus (https://www.simplemachines.org/community/index.php?topic=422210.0) thread. ;)
Hi. I have uninstalled the pretty urls mod, and in the admin panel I still have a link Pretty Urls. When I click on it, I get this fatal error.
Fatal error: require_once(): Failed opening required '/home///forums/Sources/PrettyUrls.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home///forums/Sources/Admin.php on line 529
Forum version: SMF 2.0.19
I have already manually checked all files installed by the mod, and all modifications, and everything seems to have been uninstalled. I don't understand why I still have the link in the admin panel and the fatal error. Any idea why this is happening? Thanks.
Quote from: BigSerge on March 29, 2022, 05:33:41 PMHi. I have uninstalled the pretty urls mod, and in the admin panel I still have a link Pretty Urls. When I click on it, I get this fatal error.
Fatal error: require_once(): Failed opening required '/home///forums/Sources/PrettyUrls.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home///forums/Sources/Admin.php on line 529
Forum version: SMF 2.0.19
I have already manually checked all files installed by the mod, and all modifications, and everything seems to have been uninstalled. I don't understand why I still have the link in the admin panel and the fatal error. Any idea why this is happening? Thanks.
It looks like the mod has not been removed properly. How did you uninstall it btw? Did you clcik the Uninstall button from the Package Manager, or the Delete one?
You can use the Fix Packages tool to do a thorough removal/uninstallation of it.
https://wiki.simplemachines.org/smf/Manually_setting_a_package_installed_or_uninstalled
Yes, I uninstalled it correctly, clicking the Uninstall button from the Package Manager.
I will try the link you gave me. Thanks.
Quote from: BigSerge on March 29, 2022, 05:50:02 PMYes, I uninstalled it correctly, clicking the Uninstall button from the Package Manager.
I will try the link you gave me. Thanks.
You are welcome.
I used the file and marked the Mod as installed, so it was again on the list of installed Mods, and I could click the Uninstall button, but, when I clicked the button I got this:
An Error Has Occurred!
Unable to find package file!
I have no idea why this is happening. Today I found that all the info about the Mod was still on the htaccess file, but, I removed it, and I still have the error.
Quote from: BigSerge on March 29, 2022, 06:02:38 PMI used the file and marked the Mod as installed, so it was again on the list of installed Mods, and I could click the Uninstall button, but, when I clicked the button I got this:
An Error Has Occurred!
Unable to find package file!
I have no idea why this is happening. Today I found that all the info about the Mod was still on the htaccess file, but, I removed it, and I still have the error.
Can you re-install it, and then uninstall it again? Hopefully this time it will be removed/uninstalled correctly.
No chance. Installed and uninstalled two times, and it did not solve the problem.
Quote from: BigSerge on March 29, 2022, 06:32:28 PMNo chance. Installed and uninstalled two times, and it did not solve the problem.
Can you go through the parser and undo all the changes manually?
You can try something else as well. That is to uninstall all the mods in one go by overwritting your forum files with those from the large 2.0.19 package. Please note that this method will also undo any manual edits that you might have done, so you want to make a backup of all the edited files, if any. This method should work for sure.
Hope it helps.
Like I said on my first message here, I checked all the modifications the Mod does, and all the files it installs, and all was clean.
The second option you suggest, it is a problem for me, because I changed a few things before, but I already do not remember, so it will bring me more problems than the one I have that only affects me as admin, and does not interfere with the visitors or members of the forum.
Thanks anyway.
@BigSerge you have to reset the values when uninstalling the mod (or have it configured so that it does not modify everything) it will give you an error, in a clean file in the root of your forum add this:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
require_once($sourcedir . '/Subs-PrettyUrls.php');
updateSettings(array('pretty_root_url' => $boardurl));
pretty_update_filters();
?>
then you should be able to log in with no problem.
Regards!
Quote from: -Rock Lee- on March 30, 2022, 07:00:42 PM@BigSerge you have to reset the values when uninstalling the mod (or have it configured so that it does not modify everything) it will give you an error, in a clean file in the root of your forum add this:
<?php
require_once(dirname(__FILE__) . '/SSI.php');
require_once($sourcedir . '/Subs-PrettyUrls.php');
updateSettings(array('pretty_root_url' => $boardurl));
pretty_update_filters();
?>
then you should be able to log in with no problem.
Regards!
I inserted the code you posted here, in a clean txt file, and uploaded it to the root of my forum, but, it did not change anything. I still have the "prettyurls" link on my admin panel, and the fatal error when I click on it.
How do I reset the values when uninstalling the mod? I do not understand this, because unistalling the Mod is just clicking the "uninstall" link, and then delete the files.
Could you please clarify?
Thanks
After uploading it to the root of your host, did you enter that file via url? it should show you a blank screen. After that delete what appears in the .htaccess if there is leftover code, that should work (sometimes you have to repair some addresses by hand in the SMF configuration) otherwise you can use repair settings.
Regards!
Quote from: ForumMustang.com on February 14, 2019, 09:17:31 PMQuote from: SMFHacks.com Team on February 07, 2019, 11:33:10 PMSMF 2.1 RC1 update
!Fixed bug with popup login form not working.
Hi, is there a reverter planned for SMF 2.1 RC1?
I tried prettyurls-reverter-1-0RC2.zip but there are too many manual modifications to do and I am not sure of the result.
Quote from: vbgamer45 on February 14, 2019, 09:25:36 PMPossibly probably for final.
2.1 is now final, is there anything new about the reverter?
Quote from: -Rock Lee- on March 31, 2022, 08:51:35 PMAfter uploading it to the root of your host, did you enter that file via url? it should show you a blank screen. After that delete what appears in the .htaccess if there is leftover code, that should work (sometimes you have to repair some addresses by hand in the SMF configuration) otherwise you can use repair settings.
Regards!
I did not enter the file via url before, but I did it now. I saw only the code on the top left corner of the page, and the rest of the page was blank.
Then I removed the prettyurls code on the .htaccess file. Nothing changed.
Quotesometimes you have to repair some addresses by hand in the SMF configuration
- Which addresses are you referring to? And where in the smf configuration should I do this?
Thanks
Regards
Quote from: BigSerge on April 01, 2022, 11:21:07 AMI did not enter the file via url before, but I did it now. I saw only the code on the top left corner of the page, and the rest of the page was blank.
Then I removed the prettyurls code on the .htaccess file. Nothing changed.
It should work because it returns the urls to normal, and only some of the code would remain in .htaccess but it shouldn't affect it. What version of SMF do you have? what is the url of the site in question?
Regards!
QuoteIt should work because it returns the urls to normal, and only some of the code would remain in .htaccess but it shouldn't affect it. What version of SMF do you have? what is the url of the site in question?
Regards!
The URLs were already normal before, I didn't have any pretty URLs after uninstalling the Mod.
The only small problem I have is the Pretty URLs link on the Configuration part of the Admin Panel, and when I click this link, I get the fatal error you can see on the screenshots. So the only "problem" is this link that for some reason stays there.
I do not have any other errors or problems with any URL. All URLs are the usuall ones like they should be without the pretty URLs Mod. The forum is also working well, without any other bugs or errors. This error only affects myself because nobody is seeing it. But it is just weird why that link is still there.
I prefer not posting here any info about my site.
Thank you.
Quote from: BigSerge on April 01, 2022, 12:02:11 PMThe only small problem I have is the Pretty URLs link on the Configuration part of the Admin Panel, and when I click this link, I get the fatal error you can see on the screenshots. So the only "problem" is this link that for some reason stays there.
You get that error because the files that the links need to work are not present. What about the default theme, does the link appear there as well or only in the custom theme? When you removed the code manually, did you make sure to undo the changes from the custom themes as well?
QuoteYou get that error because the files that the links need to work are not present. What about the default theme, does the link appear there as well or only in the custom theme? When you removed the code manually, did you make sure to undo the changes from the custom themes as well?
I just tried, and on Default Theme - Core, the link is also there, and the fatal error too.
Yes, I always check the boxes to install every Mod in both themes, and to uninstall too. So it means that whatever it is causing this small problem, is affecting both themes.
Thank you
Quote from: BigSerge on April 01, 2022, 04:40:25 PMQuoteYou get that error because the files that the links need to work are not present. What about the default theme, does the link appear there as well or only in the custom theme? When you removed the code manually, did you make sure to undo the changes from the custom themes as well?
I just tried, and on Default Theme - Core, the link is also there, and the fatal error too.
Yes, I always check the boxes to install every Mod in both themes, and to uninstall too. So it means that whatever it is causing this small problem, is affecting both themes.
Thank you
Can you please attach the ManageBoards.template.php and Admin.php files here?
QuoteCan you please attach the ManageBoards.template.php and Admin.php files here?
Done. The Admin.php was inside the Sources folder, and the ManageBoards.template.php was inside default's theme folder. Hope it is what you asked.
Thank you
Quote from: BigSerge on April 01, 2022, 06:01:43 PMQuoteCan you please attach the ManageBoards.template.php and Admin.php files here?
Done. The Admin.php was inside the Sources folder, and the ManageBoards.template.php was inside default's theme folder. Hope it is what you asked.
Thank you
I thought that you said that you had removed all the mod 's code manually from the files :D
Anyways, at the Admin.php file find and remove the following code:
'pretty' => array(
'label' => (isset($txt['pretty_urls']) ? $txt['pretty_urls'] : 'Pretty URLs'),
'file' => 'PrettyUrls.php',
'function' => 'PrettyInterface',
'custom_url' => $scripturl . '?action=admin;area=pretty',
),
Save the changes and reupload the file back overwritting the one in the server.
That will remove the mod link from the Admin Panel.
My advice, if I may, go through all the files that the mod edits, once again, and double check them again.
QuoteI thought that you said that you had removed all the mod 's code manually from the files :D
I did, following the instructions on the parse, but I looked right below the code where it says to add the pretty urls code, and saw the code for the ad management mod, and I did not look below. Damn, well done. So it was this piece of code.
Thanks a lot, and sorry for bothering with this ;)
Quote from: BigSerge on April 01, 2022, 06:27:12 PMQuoteI thought that you said that you had removed all the mod 's code manually from the files :D
I did, following the instructions on the parse, but I looked right below the code where it says to add the pretty urls code, and saw the code for the ad management mod, and I did not look below. Damn, well done. So it was this piece of code.
Thanks a lot, and sorry for bothering with this ;)
No worries, you did not bother me at all. Glad to have been of help :)
Hello,
I'm running into an issue with the latest version of the MOD.
It happens on SMF 2.0.19, but not on SMF 2.1.1.
I have set to receive email when a new post is done, etc.
After the upgrade of version 2.5, link in the received email is not pretty change:
For ex :
Now I receive this :
http://127.0.0.1/public_html/forum/index.php?topic=8260.new;topicseen#new
That should be :
http://127.0.0.1/public_html/forum/journaux/(journal)-de-jack/new/?topicseen#new
You can see URL are local because, I'm trying to figure out why it happens on the copy on the forum we used.
But, it's the same issue with fresh installation of SMF 2.0.19 and Pretty Urls 2.5.
I have noticed this after the upgrade on official running SMF forum.
So after investigating, I have found that commented out that part of code in the file : Subs-PrettyUrls.php
Line 13 :
if (isset($_REQUEST['action']))
{
if ($_REQUEST['action'] == 'post2')
return $buffer;
}
To :
// Need to comment out that part to be able to have pretty link in email
/*if (isset($_REQUEST['action']))
{
if ($_REQUEST['action'] == 'post2')
return $buffer;
}*/
And all is working correctly, I have tried to disable the "action" settings with original code, but it doesn't work.
On Subs-PrettyUrls.php from 2.1.1 SMF install, this part of code is present and works, so not sure why it happens !
Thanks.
Hmm that does sound like a bug. I just don't remember the reason why I disabled it to begin with.
Ok, thanks
@vbgamer45 for your answer, hoping that it will not break anything !
Hello,
I have upgraded.. v.2.2 to 2.5..
But, board not translate.
Exp: https://www.diablofanturkiye.com/3/diablo-immortal-2-haziranda-her-yerde/
Patch file is ok. Where should I pay attention?
Click on the pretty urls link in the manage boards section and enter a custom url.
Quote from: vbgamer45 on April 25, 2022, 03:39:00 PMClick on the pretty urls link in the manage boards section and enter a custom url.
Not work..
(https://i.hizliresim.com/gfw0pck.png)
exp : https://www.diablofanturkiye.com/3/
What did you change it to? Any special characters? If so avoid them.
Quote from: vbgamer45 on April 25, 2022, 03:53:53 PMWhat did you change it to? Any special characters? If so avoid them.
php 5.6 to 7.4 :)
..
Prettymod delete and fresh setup..
2: in_array() expects parameter 2 to be array, null given
File: /home/xx/diablofanturkiye.com/Sources/PrettyUrls-Filters.php
: 340
if (in_array($matches[2], $context['pretty']['action_array']))
board and action not working..
profile and topic working :)
Any install failtures?
Are you rewriting actions? on your board
That error makes sense if (in_array($matches[2], $context['pretty']['action_array'])) is empty.
Then it works like this : https://diablofanturkiye.com/temelbilgiler/diablo-iii-kutsal-bilgi-kaynagi/
while browsing the site : https://diablofanturkiye.com/13/diablo-iii-kutsal-bilgi-kaynagi/
:)
How can I fix?
DB:
(https://i.hizliresim.com/hwtxgar.png) (https://www.hizliresim.com/hwtxgar)
.htaccess
PRETTYURLS MOD BEGINS
# Pretty URLs mod
# https://www.smfhacks.com/prettyurls-seo-pro.php
# .htaccess file generated automatically on: April 27, 2022, 17:54
RewriteEngine on
RewriteBase /
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(agreement|acceptagreement|activate|admin|announce|attachapprove|bookmarks|buddy)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(buddies|calendar|clock|collapse|coppa|credits|deletemsg|display)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dlattach|editpoll|editpoll2|mediapro|badgeawards|emailuser|findmember|gpbp)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(gpbpmanage|forum|portal|gamercard|groups|help|helpadmin|im)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(projects|jseditor|jsmodify|jsoption|lock|lockvoting|login|login2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(logout|markasread|mergetopics|media|mgallery|mlist|moderate|modifycat)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(modifykarma|movetopic|movetopic2|notify|notifyboard|notifyannouncements|openidreturn|pm)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post|post2|printpage|profile|quotefast|quickmod|quickmod2|recent)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(register|register2|reminder|removepoll|removetopic2|reporttm|requestmembers|restoretopic)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(search|search2|sendtopic|sitemap|smstats|suggest|spellcheck|splittopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(stats|sticky|feedsadmin|tags|theme|trackip|about:mozilla|about:unknown)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(unread|unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile|who)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(calreminder|\.xml|NewsSubscribe|alisveris|xmlhttp|canliyayin|paragon|builder)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(immortalbuilder|paragon2|paragonupdate|forum)/?$ ./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]
# PRETTYURLS MOD ENDS
RewriteEngine on
RewriteCond %{QUERY_STRING} ^[^=]*$
RewriteCond %{QUERY_STRING} %2d|\- [NC]
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule .? - [F,L]
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^sitemap2.xml$ /index.php?action=sitemap;xml
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://diablofanturkiye.com/$1 [R=301,L]
Quote from: gevv on February 16, 2022, 12:03:14 PMHi,
Https or non-http links are broken
forum ; https://site.com/forum
link added to topic (without http or https): site.com/forum or another site link anothersite.com
clickable link html output
<a href="https://site.com/forum///site.com/forum/" class="bbc_link" target="_blank" rel="noopener">site.com/forum/</a>
<a href="https://site.com/forum///anothersite.com" class="bbc_link" target="_blank" rel="noopener">anothersite.com</a>
SMF 2.1.1, Pretty Urls 2.5 PHP 7.4
Has this been resolved?
I am having an exact problem.
My forum is in a subfolder.
Any text within the post that has a domain address - but is not a link - is also converted into a link and it has a wrong prefix.
I have not come up with a solution.
not solved.
i don't pretty urls mod.
Pretty URLs 2.5.1 16 May 2022
================================================================================
!Fixes for handling actions loaded from hooks
n installed packages it states I have this installed:
Pretty URLs 1.1.3
If I try to uninstall I get an error... that seems a bit odd:
"
An Error Has Occurred!
Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF.
"
I would like to get the latest version:
https://custom.simplemachines.org/index.php?mod=636
to fix some problems with quotes in URLs
But I an not install this before uninstalling the older...
Any ideas of how to maybe manually remove all traces of old version of pretty urls? (Or whatever method that works)
....
For reference I am using SMF version:
2.0.19
An example of broken quotes URL:
https:// example.com/ sitemap-generator/robot-txt-pretty-much-empty-after-'creation'/
Yep, it seems in code, the version is 1.1.3 even if it's 2.5.1 installed :)
You can uninstall manually by uploading the package https://www.smfhacks.com/smf-package-parser.html then reversing the uninstall steps.
Make a back up first.
Quote from: Sebastiii on June 12, 2022, 05:44:22 AMYep, it seems in code, the version is 1.1.3 even if it's 2.5.1 installed :)
So you are saying I have 2.5.1 installed most likely :)
Still... then it is strange I can not uninstall successfully
The reason I am trying install/uninstall pretty URLs is that this URL appears broken in my forum:
https://webhelpforums.net/sitemap-generator/robot-txt-pretty-much-empty-after-'creation'/
And in admin section of prettyurls... it does not appear to help using maintenance
Maybe... I can somehow manually fix this single URL / forum topic?
But still strange it says 1.1.3 and giving error when trying to unstall
Quote from: vbgamer45 on June 12, 2022, 02:41:06 PMYou can uninstall manually by uploading the package https://www.smfhacks.com/smf-package-parser.html then reversing the uninstall steps.
Make a back up first.
Thank you... This seems like an okay solution. I saw another user stating that 1.1.3 = 2.5.1
Can you other guys uninstall? If yes, then my install is probably messed up and I should take the time to fix
It could be a permissions issues on the packages folder or files. I guess does it happen with other mods on install/uninstall.
I have tried on local installation and It seems to be uninstall correctly (from memory) and I have look at the version, original recent version keep sainy that there is an update and the version installed is 1.0 :
(https://cdn.discordapp.com/attachments/816565874387451957/986247848972669008/unknown.png)
I have seen that changing :
in sources.xml :
<version>1.0</version>
to
<version>2.5.1</version>
and in PrettyUrls.template.php :
// Lets show some news (and more!)
function template_pretty_news()
{
global $txt;
echo '
<h3>', $txt['pretty_chrome_menu_news'], '</h3>
<div id="chrome_news">', $txt['ajax_in_progress'], '</div>
<h3>', $txt['pretty_version'], '</h3>
<p>', $txt['pretty_current_version'], ': 1.0</p>
<p>', $txt['pretty_latest_version'], ': <span id="chrome_latest">', $txt['ajax_in_progress'], '</span></p>';
}
to
// Lets show some news (and more!)
function template_pretty_news()
{
global $txt;
echo '
<h3>', $txt['pretty_chrome_menu_news'], '</h3>
<div id="chrome_news">', $txt['ajax_in_progress'], '</div>
<h3>', $txt['pretty_version'], '</h3>
<p>', $txt['pretty_current_version'], ': 2.5.1</p>
<p>', $txt['pretty_latest_version'], ': <span id="chrome_latest">', $txt['ajax_in_progress'], '</span></p>';
}
Make now the version displayed correctly :)
(https://cdn.discordapp.com/attachments/816565874387451957/986249744026304522/unknown.png)
And the uninstallation was fine :)
Fixed the version number in the template! Kind of forgot about that one.
Thanks
@vbgamer45 :D
Updated and the version is indicated :) (still the online version says that the latest is 2.3 :D)
Fixed, I keep forgetting to update that one lol
Thanks :) it's working :)
Hello
I have two errors in the protokoll.
If an user used the button Report to Moderator, then
i get this two errors.
What can i do ?
SMS2.1.2
Pretty urls 2.5.1a
Quote from: peter_mein on August 08, 2022, 04:19:44 PMHello
I have two errors in the protokoll.
If an user used the button Report to Moderator, then
i get this two errors.
What can i do ?
SMS2.1.2
Pretty urls 2.5.1a
Released
PrettyUrls2.5.1b.zip which should fix this issue.
Hello
Yes it works perfectly
Thanks.
hello, sorry for the annoyance but i have these errors in logs in the webs
http://masnubes.com/index.php?action=admin;area=pretty;sa=test
/www/wwwroot/masnubes.com/Themes/default/GenericMenu.template.php (Línea 269)
Quote2: foreach() argument must be of type array|object, null given
line 269:foreach ($tab_context['tabs'] as $sa => $tab)
and this another error thats repeat in three lines of code
Quote2: Trying to access array offset on value of type null
http://masnubes.com/index.php?action=admin;area=pretty;sa=test
/www/wwwroot/masnubes.com/Themes/default/GenericMenu.template.php (
this error repeat in line 255, 269 and 261)
255
<span class="text_menu">', sprintf($txt['mobile_generic_menu'], $tab_context['title']), '</span>
261
', sprintf($txt['mobile_generic_menu'], $tab_context['title']), '
269 [code]foreach ($tab_context['tabs'] as $sa => $tab)
-
im using the version SMF 2.1.2 and the trouble appears with plugin prettyurls (https://custom.simplemachines.org/index.php?mod=636), the configuration is
Enable url rewriting, rewrite board, topics and actions
I need a fix to this. My Simple Image Upload (https://custom.simplemachines.org/index.php?mod=1669) mod is not showing when Pretty Url is enabled.
If you uninstall pretty urls does it show?
That sounds strange since this should just affect url structure.
Quote from: vbgamer45 on October 13, 2022, 11:29:48 PMIf you uninstall pretty urls does it show?
That sounds strange since this should just affect url structure.
Yes. It also shows up when I choose to rewrite the URL in Rewrite SMF Gallery URLs (even if I don't have an SMF Gallery installed on my forum, but I get a lot of errors "SMF Gallery Not Found" on log every seconds). When I installed the SMF Gallery, I don't get any errors, but the Simple Image Upload mod doesn't show up again.
What is the error message you get in the log?
Quote from: vbgamer45 on October 14, 2022, 01:12:40 AMWhat is the error message you get in the log?
I reinstalled my forum. I just downloaded 2 mods (Simple Image Upload and Pretty Urls). The Simple Image Upload does not show up in my forum if Pretty Urls is enabled or installed. It shows up when I uninstalled/disabled Pretty Urls. No errors in the log.
I believe this is a problem with the Image mod....
It has two references as so: encodeURIComponent(document.location.href)
which, I suspect, does not take the re-write of PrettyURLs into account.
Quote from: Kindred on October 14, 2022, 09:27:06 AMI believe this is a problem with the Image mod....
It has two references as so: encodeURIComponent(document.location.href)
which, I suspect, does not take the re-write of PrettyURLs into account.
Any fix to this?
Here is imgbb.js
// MOD Title: Simple Image Upload
// MOD Author: Sium < [email protected] > (N/A) http://imgbb.com/mod
// MOD Version: 2.0.0
if(typeof(imgbb_add_text)=='undefined')
{
var imgbb_lang="en";
var imgbb_add_text="Add movie image";
var imgbb_style="padding:10px 0px 0px 0px;font-weight:bold;";
var imgbb_skip_textarea=new RegExp("recaptcha|username_list|search|recipients|signature","i");
if(imgbb_lang=="en"){imgbb_lang="";}else if(imgbb_lang.indexOf(".")===-1){imgbb_lang+=".";}if(window.location.hash){var imgbb_text;var imgbb_hash;if(window.name.indexOf("imgbb_")===-1){imgbb_text=window.name;imgbb_hash=window.location.hash.substring(1).split("_");}else{imgbb_text=window.location.hash.substring(1);imgbb_hash=window.name.split("_");}if(imgbb_text!="" && imgbb_hash.length>1){if(imgbb_hash[0]=="imgbb"){var imgbb_id=imgbb_hash[1];imgbb_text=decodeURIComponent(imgbb_text);if(imgbb_text.length>20){if(opener!=null && !opener.closed){var imgbb_area=opener.document.getElementsByTagName('textarea');for(var i=0;i<imgbb_area.length;i++){if(i==imgbb_id){var editor=false;if(typeof opener.smf_editorArray==='object'){for(var A in opener.smf_editorArray){if(opener.smf_editorArray[A].opt.sUniqueId==imgbb_area[i].id){opener.smf_editorArray[A].insertText(opener.smf_editorArray[A].getText()+imgbb_text,true);editor=true;}}}if(editor==false){imgbb_area[i].value=imgbb_area[i].value+imgbb_text;}opener.focus();window.close();}}}}window.location.replace("//" + imgbb_lang + "imgbb.com/upload?mode=code&url=" + encodeURIComponent(document.location.href));}}}function imgbb_insert(){var imgbb_area=document.getElementsByTagName('textarea');for(var i=0;i<imgbb_area.length;i++){if(imgbb_area[i].name && !imgbb_skip_textarea.test(imgbb_area[i].name)){var attr=imgbb_area[i].getAttribute('data-imgbb');if(attr!="true"){var imgbb_div=document.createElement('div');imgbb_div.setAttribute('class',"imgbb");var imgbb_a=document.createElement('a');imgbb_a.innerHTML=imgbb_add_text;imgbb_a.href="javascript:imgbb_upload("+i+");";var imgbb_bullet=document.createElement('span');imgbb_bullet.setAttribute('class',"imgbb_bullet");imgbb_bullet.innerHTML=" • ";imgbb_div.appendChild(imgbb_bullet);imgbb_div.appendChild(imgbb_a);imgbb_area[i].setAttribute('data-imgbb',"true");if(new RegExp("quick","i").test(imgbb_area[i].name)==false && imgbb_area[i].nextElementSibling && new RegExp("resize","i").test(imgbb_area[i].nextElementSibling.id)){imgbb_div.setAttribute('style',imgbb_style);imgbb_area[i].parentNode.insertBefore(imgbb_div,imgbb_area[i].nextSibling);}else if(new RegExp("quick","i").test(imgbb_area[i].name)==false && imgbb_area[i].parentNode.nextElementSibling && new RegExp("resize","i").test(imgbb_area[i].parentNode.nextElementSibling.id)){imgbb_div.setAttribute('style',imgbb_style);imgbb_area[i].parentNode.parentNode.appendChild(imgbb_div);}else if(new RegExp("quick","i").test(imgbb_area[i].name)==false && imgbb_area[i].nextElementSibling && imgbb_area[i].nextElementSibling.nextElementSibling && new RegExp("resize","i").test(imgbb_area[i].nextElementSibling.nextElementSibling.id)){imgbb_div.setAttribute('style',imgbb_style);imgbb_area[i].parentNode.insertBefore(imgbb_div,imgbb_area[i].nextSibling.nextSibling);}else{if(imgbb_area[i].nextSibling.nextSibling){imgbb_area[i].parentNode.insertBefore(imgbb_div,imgbb_area[i].nextSibling.nextSibling);}else if(imgbb_area[i].nextSibling){imgbb_area[i].parentNode.insertBefore(imgbb_div,imgbb_area[i].nextSibling);}else{imgbb_area[i].parentNode.appendChild(imgbb_div);}}}}}}function imgbb_upload(areaid){window.open("//" + imgbb_lang + "imgbb.com/upload?mode=smf&code=hotlink&url=" + encodeURIComponent(document.location.href),"imgbb_" + areaid,"resizable=yes,width=720,height=550");return void(0);}if(typeof(window.addEventListener)=='function'){window.addEventListener('DOMContentLoaded',imgbb_insert,false);window.addEventListener('load',imgbb_insert,false);}else if(typeof(window.attachEvent)=='function'){window.attachEvent('onload',imgbb_insert);}else{if(window.onload!=null){var old_onload=window.onload;window.onload=function(e){old_onload(e);imgbb_insert();};}else{window.onload=imgbb_insert;}}for(var i=1;i<12;i+=2){setTimeout("imgbb_insert()",i*1000);}imgbb_insert();}
I am testing out the latest version on 2.1.3 version of the board locally prior to upgrading the one at my webhost. I am upgrading from version 2.1 RC3 since that version doesn't work well with PHP 8.1.
Anyway, the update seems to have gone well.. all my URLs look good except the login one which still looks like (Url)/index.php?action=login and not (Url)/login/ when I click on the login button at the top. The Signup button URL looks fine though.
Is this the intended behavior now? I can manually go to (Url)/login/ and it will redirect to it. Looking at the .htaccess and the redirect is in there.
So, what should I check at this point or do I need to remove all traces of it and try again?
Thanks,
Mark H.
As a follow-up I looked in the smf_pretty_urls_cache and the `B/index.php?action=login
url_id had a replacement of the same thing: `B/index.php?action=login
which explains why that did not get replaced.
On the site at my host, it has `B/login/
as the replacement value which is why it still shows that URL.
It is skipped on purpose. For some reason it breaks in SMF 2.1 with the popups.
We skip actions login, login2, logintfa you can them in sources/PrettyUrls-Filters.php
Quote from: vbgamer45 on December 10, 2022, 10:50:55 AMIt is skipped on purpose. For some reason it breaks in SMF 2.1 with the popups.
We skip actions login, login2, logintfa you can them in sources/PrettyUrls-Filters.php
What I figured. I'll leave it be then. :)
Thanks for all your work.
ERROR!
Invalid argument supplied for foreach() and Trying to access array offset on value of type null.
/Themes/default/GenericMenu.template.php (269):
foreach ($tab_context['tabs'] as $sa => $tab).
ERROR!
Trying to access array offset on value of type null.
/Themes/default/GenericMenu.template.php (269):
foreach ($tab_context['tabs'] as $sa => $tab).
ERROR!
Trying to access array offset on value of type null.
/Themes/default/GenericMenu.template.php (261):
', sprintf($txt['mobile_generic_menu'], $tab_context['title']), '.
ERROR!
Trying to access array offset on value of type null.
/Themes/default/GenericMenu.template.php (255):
<span class="text_menu">', sprintf($txt['mobile_generic_menu'], $tab_context['title']), '</span>
ERROR!
Undefined index: pretty_enable_filters.
/Sources/MessageIndex.php (32):
if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
Have posted an update that might help.
Hi,
I'd like to ask if there is a solution for the issue described in the quote below?
(SMF 2.1.3, PrettyURLs 2.5.1c, PHP 7.4)
Quote from: gevv on February 16, 2022, 12:03:14 PMHi,
Https or non-http links are broken
forum ; https://site.com/forum
link added to topic (without http or https): site.com/forum or another site link anothersite.com
clickable link html output
<a href="https://site.com/forum///site.com/forum/" class="bbc_link" target="_blank" rel="noopener">site.com/forum/</a>
<a href="https://site.com/forum///anothersite.com" class="bbc_link" target="_blank" rel="noopener">anothersite.com</a>
SMF 2.1.1, Pretty Urls 2.5 PHP 7.4
There is not currently.
Hi (have posted this ask in the support as well excuse me)
I am upgrading from 2.019 to 2.13 an old and fairly large forum
the upgrade is stalling at pretty_urls_cache (step 6 conversion to UTF-8)
I am wondering whether to empty the pretty_urls_cache table from phpmyadmin?
any advice gratefully received
thx
You can empty that cache it will be rebuilt.
Error: Undefined array key "pretty_enable_filters" on php 8.1 and SMF 2.1.3.
How do I fix this error?
Check the setting and save to enable. It should only appear once.
I'm on SMF 2.0.19, and I still have Pretty URLs 2.3 installed. I'd obviously like to update to 2.5.1c, but when I download the package from here into the Packages directory as PrettyUrls2.5.1c.zip it appears with version 2.3 in the Package Manager list, but with a red 'older version' image. Consequently, there's no upgrade button available for it.
Why does SMF think that PrettyUrls2.5.1c.zip is an older package than PrettyUrls2.3.zip?
It could be maybe due to the letter c in version numbering which might throw it off.
It knows that it's still 2.5.1c even if I change the filename, and still says no, but presumably it works for someone as that internally.
.. and if I edit the XML file to say that it's 2.5.1, it still has a red 'older version' mark and won't let me install it.
How i can download the file prettyurls-extras-1.0-rc.zip?
here it is
Hello.
Thanks for the wonderful mod. Everything works fine on SMF v2.1.3
I'm switching from the old version of the IPB (to SMF). And it is very important save that the old links work.
Search engines have remembered the old link format.
Please tell me how to change the output of information about links, changing the standard view, now it looks like this:
URLs FOR Boards
https://site.com/there-nameboard-sample/
https://site.com/there-nameboard-sample/15/
need to
https://site.com/board233445.html
https://site.com/board233445s15.html
URLs FOR Topics
https://site.com/there-nameboard-sample/there-name-topic-of-title/
https://site.com/there-nameboard-sample/there-name-topic-of-title/15/
need to
https://site.com/topic233445.html
https://site.com/topic233445s15.html
Use:
SMF v2.1.3
Pretty URLs v2.5.1c
Shared hosting with PHP v7.4
That would be somewhat difficult. You would need access to the original database to to do a lookup based on the url entered. Then do the mapping to the new url.
Pretty urls default is https://site.com/board-name/topic-title
Quote from: vbgamer45 on March 09, 2023, 09:24:28 PMThat would be somewhat difficult. You would need access to the original database to to do a lookup based on the url entered. Then do the mapping to the new url.
Pretty urls default is https://site.com/board-name/topic-title
After the forum conversion, all forum and topic IDs remained original. In which mod file can the code be corrected so that it displays links so that instead of names there are only ids?
In that case would need pretty urls if want to display numbers? Do you want to keep urls like this site here?
Hello!
In a fresh installation (2.1.3), I'm trying to install the latest version (2.5.1c). However I'm getting the following errors when trying to apply the mod:
1. | Execute Modification | SMF2-1/Sources.xml | File not found |
| 2. | Execute Modification | SMF2-1/BoardsAndTopics.xml | File not found |
| 3. | Execute Modification | SMF2-1/Themes.xml | File not found |
(https://www.cpcwiki.eu/forum/Themes/default/images/selected.png) | 4. | Execute Modification | ./Themes/default/languages/Modifications.english.php | Test successful |
| 5. | Extract File | ./Sources/PrettyUrls.php | File not found |
| 6. | Extract File | ./Sources/PrettyUrls-Filters.php | File not found |
| 7. | Extract File | ./Sources/PrettyUrls-Tests.php | |
| 8. | Extract File | ./Sources/Subs-PrettyUrls.php | File not found |
| 9. | Extract File | ./Sources/Subs-PrettyUrls-Hooks.php | File not found |
| 10. | Extract File | ./Themes/default/PrettyUrls.template.php | File not found |
| 11. | Extract File | ./Themes/default/images/admin/prettyurls.png | |
| 12. | Extract Tree | ./Themes/default/pretty | File not found |
| 13. | Extract File | ./Themes/default/languages/PrettyUrls.english.php | |
| 14. | Add Hook | Adapting hook integrate_admin_areas | Test successful |
| 15. | Adapt Database | SMF2-1/install.php | File not found |
I thought maybe it was a permissions issue but even setting the whole Packages directory to 777 temporarily doesn't solve it... any ideas?
Thanks!
So it would appear the package was not able to be extracted correctly; the root zip contents were extracted in temp/ , however the subfolders were not. Once I unzipped it manually I was able to install the mod, but still the usual SMF URLs appear, not prettified. No errors in the log, and htaccess has indeed been changed with:
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: March 14, 2023, 11:44
RewriteEngine on
RewriteBase /forum
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(agreement|acceptagreement|activate|admin|announce|attachapprove|buddy|calendar)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(clock|coppa|credits|deletemsg|dlattach|editpoll|editpoll2|findmember)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(groups|help|helpadmin|jsmodify|jsoption|likes|lock|lockvoting)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(login|login2|logintfa|logout|markasread|mergetopics|mlist|moderate)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(modifycat|movetopic|movetopic2|notifyannouncements|notifyboard|notifytopic|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|printpage|profile|quotefast|quickmod|quickmod2|recent|reminder)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removepoll|removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendactivation)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(signup|signup2|smstats|suggest|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:unknown|unread|unreadreplies|uploadAttach|verificationcode|viewprofile|vote)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewquery|viewsmfile|who|\.xml|xmlhttp|forum)/?$ ./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]
# PRETTYURLS MOD ENDS
I'm puzzled...
Ok some more info, after changing it to use caching instead just to check things I got errors in the log:
In Subs-PrettyURLs.php:
In line 301: 2: Invalid argument supplied for foreach()
In line 298: 2: array_chunk() expects parameter 1 to be array, string given
In line 297: 8: Undefined index: action_array
Anybody can give any insights?
Thanks!
Hi, I have a small issue that I wrote about in this thread: https://www.simplemachines.org/community/index.php?topic=585227.0
Basically when "Enable URL rewriting" is enabled on SMF 2.1 then external links without bbcode turn into burning-brushes.pl///link.com and when I disable it then it's fine, but maybe I can add something to "Skip Actions List" so it doesn't happen?
Hello experts,
can you please guide me on this error?
https://www.simplemachines.org/community/index.php?topic=586057.0
Hi,
Please see this topic about Pretty URLs and NotifyBoardReply mods not working well together. Any possible remedy you can think of would be appreciated.
https://www.simplemachines.org/community/index.php?topic=586148.0 (https://www.simplemachines.org/community/index.php?topic=586148.0)
I have rewrite rules on my main site, as well as using Pretty URLs in /forums/. However, this seems to cause issues, as I frequently see the following in the error log:
/MY_SMF_FOLDER/Sources/PrettyUrls-Filters.php (Line 93)
No direct access...
SELECT url_id, replacement
FROM `ags_forums`.smf_pretty_urls_cache
WHERE url_id IN ('/images/favicon.ico', '/includes/index.css', '/includes/trumbowyg/ui/trumbowyg.css', '/site/cookies/', '/', '/site/community/donate/', '/forums/index.php?action=login', '/forums/', '/site/ags/', '/site/games/', '/site/community/', '/includes/gamesrss.xml', '/site/games/game/2675-les-chroniques-de-katura-partie-2-cha-lle/', '/site/games/game/2674-les-chroniques-de-katura-partie-1-la-l-gende-d-eikos/', '/site/games/game/2673-the-sleeping-castle/', '/site/games/game/2672-stygiophobia-another-day/', '/site/games/game/2671-elevation/', '/site/games/search/', '/site/games/awards/', '/site/games/picks/', 'site/games/search/game_lengths:1,6,0,2,3,7,4,5,15;genres:1,2,3,4,5,0;game_types:1,2,3,4,5,0;story_types:3;commercial:1/1/name/asc/', [...], '/forums/index.php?action=profile;u=988', '/forums/index.php?action=profile;u=817', '/forums/index.php?action=profile;u=39')
Function: pretty_rewrite_buffer
Basically it seems to be including URLs from outside /forums/ in its rewrites, and getting confused?
If it's any help, my root .htaccess is:
AddDefaultCharset utf-8
AddCharset utf-8 .php
SetEnv TZ Europe/London
ErrorDocument 404 /site/404/
RewriteEngine On
RewriteCond %{HTTPS} off
# First rewrite to HTTPS. Don't put www. here. If it is already there it will be included, if not the subsequent rule will catch it.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Now, rewrite any request to the wrong domain to use www. [NC] is a case-insensitive match.
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^(forums)($|/) - [L]
RewriteRule ^site/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)(/)?$ /index.php?a=$1&b=$2&c=$3&d=$4&e=$5&f=$6&g=$7 [L]
RewriteRule ^site/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)(/)?$ /index.php?a=$1&b=$2&c=$3&d=$4&e=$5&f=$6 [L]
RewriteRule ^site/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)(/)?$ /index.php?a=$1&b=$2&c=$3&d=$4&e=$5 [L]
RewriteRule ^site/([^/]*)/([^/]*)/([^/]*)/([^/]*)(/)?$ /index.php?a=$1&b=$2&c=$3&d=$4 [L]
RewriteRule ^site/([^/]*)/([^/]*)/([^/]*)(/)?$ /index.php?a=$1&b=$2&c=$3 [L]
RewriteRule ^site/([^/]*)/([^/]*)(/)?$ /index.php?a=$1&b=$2 [L]
RewriteRule ^site/([^/]*)(/)?$ /index.php?a=$1 [L]
#RewriteRule ^meets/([^/]*)/([^/]*)/([^/]*)/([^/]*)(/)?$ /meets/index.php?s=$1&y=$2&e=$3&i=$4 [L]
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
# Rewrite old forums URLs to new
RedirectMatch 301 /yabb/*.* /forums/$1
Redirect 301 /games.php /site/games/
Redirect 301 /forumauth.php /
Redirect 301 /wp-login.php /
Redirect 301 /forums/wp-login.php /
Redirect 301 /kbview.php /
Redirect 301 /xmlrpc.php /
Redirect 301 /gamesrss.php /includes/gamesrss.xml
# Redirect /manual to GitHub manual
Redirect 301 /manual ANOTHER_SITE
RewriteBase /
And /forums/ one:
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: June 11, 2023, 8:57
RewriteEngine on
RewriteBase /forums
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(agreement|acceptagreement|activate|admin|announce|attachapprove|buddy|calendar)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(clock|coppa|credits|deletemsg|dlattach|editpoll|editpoll2|findmember)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(groups|help|helpadmin|jsmodify|jsoption|likes|lock|lockvoting)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(login|login2|logintfa|logout|markasread|mergetopics|mlist|moderate)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(modifycat|movetopic|movetopic2|notifyannouncements|notifyboard|notifytopic|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|printpage|profile|quotefast|quickmod|quickmod2|recent|reminder)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removepoll|removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendactivation)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(signup|signup2|smstats|suggest|splittopics|staff|stats|sticky)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(theme|trackip|about:unknown|unread|unreadreplies|uploadAttach|verificationcode|viewprofile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(vote|viewquery|viewsmfile|who|\.xml|xmlhttp|forum|unsetedittime)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(faq|googlemap|\.kml)/?$ ./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]
# PRETTYURLS MOD ENDS
The full error message is "No direct access..." with that sql query? nothing else?
Quote from: vbgamer45 on June 24, 2023, 10:10:28 AMThe full error message is "No direct access..." with that sql query? nothing else?
Sorry, forgot to include the context:
QuoteGuest
a=games&b=notveryrated&c=
/MY_SMF_FOLDER/Sources/PrettyUrls-Filters.php (Line 93)
Which suggests a main site URL is being accessed on the forums? But yeah, above is the full text of the error, only with 99% of the massive SQL query cut out to avoid hitting the post length limit.
There should be an option to turn off queries under settings i forget the name of it under petty urls use buffer instead of queries or something
Quote from: vbgamer45 on June 26, 2023, 11:41:48 AMThere should be an option to turn off queries under settings i forget the name of it under petty urls use buffer instead of queries or something
"Use caching instead of database table for PrettyUrls". I'll give that a try, thanks!
For a while now, Pretty URLs has been choking on any username that has a space character in it.
https://www.domain.com/profile/Ronald%20McDonald/
or
https://www.domain.com/profile/Ronald McDonald/
The fix right now is to MANUALLY change the URL to:
https://www.domain.com/profile/Ronald+McDonald/
I don't think this was ALWAYS an issue; but it certainly is now. How to fix it?
The issue is the space. what SMF version?
Quote from: DeveloperMcD on June 28, 2023, 12:16:15 PMQuote from: vbgamer45 on June 28, 2023, 12:11:49 PMThe issue is the space. what SMF version?
2.0.14
well, you definitely need to upgrade to at least 2.0.19 ASAP
Update
Pretty URLs 3.0 29 June 2023
================================================================================
!Fixes for handling spaces in profile urls. SMF 2.1.x SMF 2.0.x
!Use display name instead of username for profile urls SMF 2.1.x, SMF 2.0.x, SMF 1.1.x
!Use caching instead of sql queries by default for url replacements
I've noticed a tiny bug where posts belonging to a deleted user will throw a missing array key error. I've managed to fix it by changing line 578 in PrettyUrls-Filters.php to:
if ((isset($url['profile_id'])) && (isset($memberNames[$url['profile_id']])))
Thanks added the fix!
And another one, Display.php, line 44:
if ((isset($context['pretty']['oldschoolquery']) || (isset($context['pretty']['query_string']['board']) && ($context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]))) && $modSettings['pretty_enable_filters'])
Thanks
@agagames have added the fix!
Dear SMFHacks.com Team,
Does your mod allow you to customize links like this?
forum.com/user1.html
forum.com/board5.20.html
forum.com/topic12345.40.html
If there is no such possibility now, maybe you are considering adding such a setting additionally in the future?
I think you can enable that in vanilla SMF.
Configuration > Features and Options > General > Search engine friendly URLs
Quote from: Diego Andrés on July 09, 2023, 05:44:19 PMI think you can enable that in vanilla SMF.
Configuration > Features and Options > General > Search engine friendly URLs
Thank you)
How to delete `index.php` from url?
forum.com/index.php/topic,1.0.html
need to
forum.com/topic,1.0.html
Update post:Souirces/QueryString.php
`/index.php` to `/`
Quote from: Butiks on July 09, 2023, 06:45:42 PMQuote from: Diego Andrés on July 09, 2023, 05:44:19 PMI think you can enable that in vanilla SMF.
Configuration > Features and Options > General > Search engine friendly URLs
Thank you)
How to delete `index.php` from url?
forum.com/index.php/topic,1.0.html
need to
forum.com/topic,1.0.html
Update post:
Souirces/QueryString.php
`/index.php` to `/`
NO!! DO NOT DO THAT!!
You should not remove the index.php -- definitely not like that
and there is also a question as to why you want .html urls.... You do realize that it literally has NO impact on search engines any more (not for the last 5-10 years)
Quote from: Kindred on July 09, 2023, 07:21:43 PMQuote from: Butiks on July 09, 2023, 06:45:42 PMQuote from: Diego Andrés on July 09, 2023, 05:44:19 PMI think you can enable that in vanilla SMF.
Configuration > Features and Options > General > Search engine friendly URLs
Thank you)
How to delete `index.php` from url?
forum.com/index.php/topic,1.0.html
need to
forum.com/topic,1.0.html
Update post:
Souirces/QueryString.php
`/index.php` to `/`
NO!! DO NOT DO THAT!!
You should not remove the index.php -- definitely not like that
and there is also a question as to why you want .html urls.... You do realize that it literally has NO impact on search engines any more (not for the last 5-10 years)
Sorry. ???
And what's wrong with removing the "unnecessary part" of the link, without which all links on the forum work correctly?
It's not unnecessary and, unless things have changed, some parts of the forum will not work with what you have done
Version 4.0
+Added an area to generate/view Nginx rules if you are using the Nginx webserver.
Getting an error visiting the admin area
Sources/PrettyUrls.php (Line 35)
2: Undefined array key "pretty_chrome_menu_nginix"
Otherwise all good. Is it better to use caching or database tables for Pretty URLs (ticked or unticked)? I know this has probably been asked a bunch of times, thanks.
Caching normally better.
For the error what SMF version?
Alright thanks :)
2.1.4, other mods:
Simple Colorizer
Optimus
EhPortal
The error is only confined to the Pretty URLs area in admin.
Thanks posted a fix.
I have a problem and it is that the user profile does not redirect correctly, the rest of the views do, but the user profile does not.
In addition, whenever I start the server again I get an error log:
/Sources/PrettyUrls.php (Línea 340)
2: Undefined array key "nginx"
I leave here my vhost configuration in nginx in case someone can help me or detect some kind of error:
# Rules for: profiles
rewrite ^profile/([^/]+)/?$ "/index.php?pretty;action=profile;user=$1" last;
# Rules for: actions
rewrite ^/(activate|admin|announce|attachapprove|badbehavior|buddy|buddies|calendar)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(clock|collapse|coppa|credits|deletemsg|display|dlattach|editpoll)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(editpoll2|refferals|emailuser|findmember|glossary|groups|guest|help)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(helpadmin|httpBL|ignoretopic|im|jseditor|jsmodify|jsoption|lock)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(lockvoting|login|login2|logout|markasread|mergetopics|mlist|moderate)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard|openidreturn|pm)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(post|post2|printpage|profile|quotefast|quickmod|quickmod2|rate)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(recent|register|register2|reminder|removepoll|removetopic2|reporttm|requestmembers)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(restoretopic|rules|search|search2|sendtopic|smstats|suggest|spellcheck)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(splittopics|stats|sticky|staff|theme|trackip|about:mozilla|about:unknown)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(unignoretopic|unread|unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile)/?$ "/index.php?pretty;action=$1" last;
rewrite ^/(who|\.xml|xmlhttp)/?$ "/index.php?pretty;action=$1" last;
# Rules for: boards
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/?$ "/index.php?pretty;board=$1.0" last;
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ "/index.php?pretty;board=$1.$2" last;
# Rules for: topics
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ "/index.php?pretty;board=$1;topic=$2.0" last;
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ "/index.php?pretty;board=$1;topic=$2.$3" last;
I have added these rules inside location / {
If I did it somewhere else I would get a configuration error.
Does anyone know how I can fix this?
Try to change
rewrite ^profile/([^/]+)/?$ "/index.php?pretty;action=profile;user=$1" last;
To
rewrite ^/profile/([^/]+)/?$ "/index.php?pretty;action=profile;user=$1" last;
Hello everyone!
I'm getting this error in the log hub
Quote2: Undefined array key "pretty_urls"
Error Type: Undefined_vars
URL Error: /forum/index.php?pretty;action=admin&area=manageboards
UPDATE: I ran the maintenance task and now I got "2: Undefined array key "nginx"
URL: /forum/index.php?action=admin;area=pretty;sa=nginx;ca13a1578a64=1932bc28b4f204b6baa4f116de0a9dd8
What SMF version?
Quote from: vbgamer45 on August 03, 2023, 04:49:30 PMWhat SMF version?
Oh, sorry for not mentioning that before. The latest one, 2.1.4
Are you using the English language pack?
If not add this to the your themes modifications.language.php
// Pretty URLs mod
$txt['pretty_urls'] = 'Pretty URLs';
Quote from: vbgamer45 on August 03, 2023, 11:50:56 PMAre you using the English language pack?
If not add this to the your themes modifications.language.php
// Pretty URLs mod
$txt['pretty_urls'] = 'Pretty URLs';
No, I'm not. I'm using a custom language pack from Spanish. I mean, I'm using as base the Spanish Language pack and I'm translating the strings manually from CP.
Ok great add that to it and it should then work.
Yeah, it worked, thank you so much! ❤️
i got errors trying to install latest version 4 to smf forum smf 2.019
(https://i.gyazo.com/c67596442b5b5dee7b770359ed189765.png)
Did you remove the old version?
Hello
When I click on settings or on maintenance I always get an error in the error log.
The error is: Undefined array key "pretty_chrome_menu_nginix".
Each click generates an error entry in the log
SMF 2.1.4
Pretty URL 4.0
Are you using a language other than english?
If so you will have to copy that language string from modifications.english.php or prettyurls.english.php to your lanaugage file.
I use the german language package.
What do I need to copy where ?
Add these language strings toyour language file for pretty urls
$txt['pretty_chrome_menu_nginx'] = 'Nginx Rules';
$txt['pretty_chrome_menu_nginx_description'] = 'Generate Nginx rules for Pretty Urls. Only used if you use Nginx webserver!';
$txt['pretty_nginix_note'] = 'If you use Nginx as a webserver here are the rules generated. Anytime you add a new mod or action you will need to update your Nginx rules.';
Which file do you mean ?
Modifications.german.php ?
Or what ?
modifications works or prettyurls.german.php if it exists
Does not work.
I have changed the Modifications.german.php.
You might have to clear cache in SMF check your themes modifications files.
Or just add to all prettyurls.*php lanaguage files
Does not work.
I have changed the Modifications.german.php and
modifications.english.php.
And now i have changed the prettyurls.english.php
but nothing do it.
I clear the cache in smf. Nothing.
Do your themes/default/languages folder
And and the current theme you are using.
That will fix the issue.
Smf 2.1.4 has been freshly installed. Nothing else is installed only the German language. As soon as I install pretty url4, the error comes. If I install prettyurl 3.0b no error comes. Just try it out. Then comes the same error with you.
Are you using the latest file on the mod site? I would redownloaded
I used this Version.
https://custom.simplemachines.org/index.php?mod=636
Use this version... Should be the same but there was a minor update that I did
Hello
The new file works without errors.
Thank you for the solution.
kind regards Peter
4.0.1
Fixed a few error logs with display and messagindex in certain cases.
Hello, when using pretty urls it won't let me switch themes, it will just refresh and show the same page with the same theme, unless I'm on the index of the forum, then the switch will work. Do you know how can I make it work anywhere?
Are you using a mod to change themes?
Quote from: vbgamer45 on September 23, 2023, 09:11:05 AMAre you using a mod to change themes?
Yes, this one https://custom.simplemachines.org/index.php?mod=3356
Hello
At the moment this error comes again and again.
Fehlermeldung
JSON-Dekodierungsfehler: Die maximale Stack-Tiefe wurde überschritten
Datei
/Sources/Load.php
Zeile
3904
URL der Seite die den Fehler erzeugte
https://www.pic-microcontroller.de/index.php?action=profile;area=alerts_popup;counter=0;u=4
Backtrace-Information
#0: smf_json_decode()
Aufgerufen von /Sources/Load.php in Zeile 3904
#1: cache_get_data()
Aufgerufen von /Sources/PrettyUrls-Filters.php in Zeile 225
#2: pretty_rewrite_buffer_fromcache()
Aufgerufen von /Sources/PrettyUrls-Filters.php in Zeile 21
#3: pretty_rewrite_buffer()
Aufgerufen von /Sources/QueryString.php in Zeile 770
#4: ob_sessrewrite()
Aufgerufen von unbekannt in Zeile -1
SMF 2.1.4
Mod: 4.0.1
Hello,
I see the same error too
index.php?action=profile;area=alerts_popup;counter=0;u=1
Sources/Load.php (Line 3917)
Error type: Fatal
JSON decoding error: Maximum stack depth exceeded
==>3917: return empty($value) ? null : (isset($smcFunc['json_decode']) ? $smcFunc['json_decode']($value, true) : smf_json_decode($value, true));
Trackback information
#0: smf_json_decode()
Searched by /Sources/Load.php on line 3917
#1: cache_get_data()
Searched by /Sources/PrettyUrls-Filters.php on line 225
#2: pretty_rewrite_buffer_fromcache()
Searched by /Sources/PrettyUrls-Filters.php on line 21
#3: pretty_rewrite_buffer()
Searched by /Sources/QueryString.php on line 751
#4: ob_sessrewrite()
Searched by unknown on line -1
SMF 2.1.4
Pretty URLs v4.0.1
Copy this file to your sources folder and see if it helps.
Old errors do not appear.
New Error records when looking at the profile page (users or guests) ;
index.php?action=profile;u=10894
/PrettyUrls-Filters.php (Line 18)
Error type: Undefined
Select error message
8: Undefined index: area
==>18: if ($_REQUEST['action'] == 'profile' && $_REQUEST['area'] && $_REQUEST['area'] == 'alerts_popup')
Trackback information
#0: smf_error_handler()
Searched by /Sources/PrettyUrls-Filters.php on line 18
#1: pretty_rewrite_buffer()
Searched by /Sources/QueryString.php on line 751
#2: ob_sessrewrite()
Searched by unknown on line -1
Try this file.
Too many guests errors occurred;
https://SITE.com/index.php?pretty;board=BOARD-TITLE;topic=TITLE.0&&utm_campaign=OTHER-SITE&utm_medium=referral&utm_source=OTHER-SITE;sslRedirect
Sources/Subs.php (Line 4569)
2: Invalid argument supplied for foreach()
Sources/Subs.php (Line 4569)
8: Undefined index: template_layers
Sources/Subs.php (Line 5574)
8: Undefined index: session_id
Sources/Subs.php (Line 5574)
8: Undefined index: session_var
Sources/Subs.php (Line 5428)
8: Undefined index: id
Sources/Subs.php (Line 5414)
8: Undefined index: is_guest
....
....
....
Trackback information
#0: smf_error_handler()
Searched by unknown on line -1
#1: fopen()
Searched by /Sources/Cache/APIs/FileBased.php on line 84
#2: writeFile()
Searched by /Sources/Cache/APIs/FileBased.php on line 166
#3: putData()
Searched by /Sources/Load.php on line 3862
#4: cache_put_data()
Searched by /Sources/PrettyUrls-Filters.php on line 263
#5: pretty_rewrite_buffer_fromcache()
Searched by /Sources/PrettyUrls-Filters.php on line 24
#6: pretty_rewrite_buffer()
Searched by /Sources/QueryString.php on line 751
#7: ob_sessrewrite()
Searched by unknown on line -1
Looks like a different error different page though? Did this update fix the previous error?
yes previous errors are not visible
@vbgamer45 Could there be a conflict? Modifications I used;
Avatars Display Integration
Automatic Attachment Rotation (and Resize)
Smarter Internal Links
FancyBox 4 SMF
Topic Solved
Pretty URLs
Optimus
Contact Page
AJAX Recent Topics
PM to New Members
Message Bookmarks
If I install this mod, all the old URLs in the forum become inaccessible, right?
The old urls work but get a 301 redirect to the new one.
Hello, I just installed this mod in SMF 2.1.4, I am as admin and the problem is that all the urls are sent to me at the beginning, I have this virtualhost in nginx
server {
server_name ejemplo.com;
root /var/www/html/test;
index index.php index.html index.htm;
# Rules for: boards
rewrite ^([-_!~*'()$a-zA-Z0-9]+)/?$ "/index.php?pretty&board=$1.0" last;
rewrite ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ "/index.php?pretty&board=$1.$2" last;
# Rules for: topics
rewrite ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ "/index.php?pretty&board=$1&topic=$2.0" last;
rewrite ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ "/index.php?pretty&board=$1&topic=$2.$3" last;
# Rules for: actions
rewrite ^(agreement|acceptagreement|activate|admin|announce|attachapprove|buddy|calendar)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(clock|coppa|credits|deletemsg|dlattach|editpoll|editpoll2|findmember)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(groups|help|helpadmin|jsmodify|jsoption|likes|lock|lockvoting)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(login|login2|logintfa|logout|markasread|mergetopics|mlist|moderate)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(modifycat|movetopic|movetopic2|notifyannouncements|notifyboard|notifytopic|pm|post)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(post2|printpage|profile|quotefast|quickmod|quickmod2|recent|reminder)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(removepoll|removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendactivation)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(signup|signup2|smstats|suggest|splittopics|stats|sticky|theme)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(trackip|about:unknown|unread|unreadreplies|uploadAttach|verificationcode|viewprofile|vote)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(viewquery|viewsmfile|who|\.xml|xmlhttp|forum)/?$ "/index.php?pretty&action=$1" last;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
location ~ /\.ht {
deny all;
}
Thxs.
I guess what is the issue? Not understanding.
Looks like he used a translation tool, he means that all the URLs redirect to the index.
Please what could be the cause of this?
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 11347033 bytes) in /home3/spyloade/public_html/Sources/PrettyUrls-Filters.php on line 132
This happened whenever I go to schedule task to run the sitemap.
Sitemap is that from pretty urls pro? what is the is exact task name
Quote from: vbgamer45 on January 08, 2024, 10:47:29 AMI guess what is the issue? Not understanding.
Yes, all the URLs redirect to the index with SMF 2.1.4
I'm using nginx 1.18
Hmm check this topic for other examples. i used the rules that other people said worked for them in the past.
I am trying to uninstall Pretty URLS 1.1.1a. My forum version is 2.0.9. When I click uninstall, the test runs, but returns an error at 1 position:
It is looking for:
/*** if (empty($modSettings['queryless_urls']) || ($context['server']['is_cgi'] && @ini_get('cgi.fix_pathinfo') == 0 && @get_cfg_var('cgi.fix_pathinfo') == 0) || (!$context['server']['is_apache'] && !$context['server']['is_lighttpd']))
return $val;
$val = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$/e', '\'\' . $scripturl . \'/\' . strtr(\'$1\', \'&;=\', \'//,\') . \'.html$2\'', $val); ***/
And want to replace it to:
if (empty($modSettings['queryless_urls']) || ($context['server']['is_cgi'] && @ini_get('cgi.fix_pathinfo') == 0 && @get_cfg_var('cgi.fix_pathinfo') == 0) || (!$context['server']['is_apache'] && !$context['server']['is_lighttpd']))
return $val;
$val = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$/e', '\'\' . $scripturl . \'/\' . strtr(\'$1\', \'&;=\', \'//,\') . \'.html$2\'', $val);
But, what I have there is:
/*** if (empty($modSettings['queryless_urls']) || ($context['server']['is_cgi'] && @ini_get('cgi.fix_pathinfo') == 0 && @get_cfg_var('cgi.fix_pathinfo') == 0) || (!$context['server']['is_apache'] && !$context['server']['is_lighttpd']))
return $val;
$val = preg_replace_callback('~^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$~', create_function('$m', 'global $scripturl; return $scripturl . \'/\' . strtr("$m[1]", \'&;=\', \'//,\') . \'.html\' . (isset($m[2]) ? $m[2] : "");'), $val); ***/
What shall I do? Replace it to what the uninstaller wants or leave the one in News.php only deleting the comment marks what the uninstall script actually wants? You see the second half of the code concerned differs. Don't know why. As I see normally it is only a comment mark deletion I guess, I don't have a clue why my code changed over time.
The create_function is old code.
TO revert completely I would reverse the old package for uninstall instructions
Also you should upgrade to SMF 2.0.19 asap.
Quote from: vbgamer45 on January 18, 2024, 01:23:48 AMThe create_function is old code.
TO revert completely I would reverse the old package for uninstall instructions
Also you should upgrade to SMF 2.0.19 asap.
What do you mean by reversing the old package for uninstall instructions? 1. Leave the code as is in News.php and remove the /** **/ or 2. paste back the code the uninstaller wants to revert to manually?
Well you could replace with the original SMF code probably be easier and just skip that step on uninstall.
Or,just do a direct upgrade to 2.0.19 which will reset all mod edits and then reinstall current versions of the mods
Quote from: Kindred on January 18, 2024, 09:20:12 AMOr,just do a direct upgrade to 2.0.19 which will reset all mod edits and then reinstall current versions of the mods
That might be problematic due to the extensive use on my site of SimplePortal. Loosing its added panels with lots of code in them will be a big problem.
Well, I figured out a Cutting the Gordian Knot type of solution. I added Pretty URLs back in the days because I was told Google won't index the dynamic pages. Since then it turned out my forum is getting traffic organically, maybe 1% of it comes from Google. So no need to worry about indexing problems any more. I can just go on with Pretty URLs uninstalled.
I removed the /*** marks from the problematic part in News.php. Apart from that the test reported everything should uninstall properly. The mod removed, forum seems to work fine. Anything to do to make sure there won't be error? Removing something from the database or htaccess?
Quote from: vbgamer45 on January 15, 2024, 07:18:37 AMSitemap is that from pretty urls pro? what is the is exact task name
Sitemap XML Generation
Quote from: vbgamer45 on January 15, 2024, 07:18:37 AMSitemap is that from pretty urls pro? what is the is exact task name
Not from Pretty Url Pro. From Optimus Brave Mod
Probably getting caught in a loop or too many urls? How big is the sitemap?
I have removed Pretty URLs some days ago, but I noticed this piece of code in News.php. I wonder if this is okay that it is still there or if I should remove it manually?
// Pretty URLs need to be rewritten
ob_start('ob_sessrewrite');
$context['pretty']['search_patterns'][] = '~(<link>|<id>|<comments>|<guid>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<link>|<id>|<comments>|<guid>)([^<]+)~';
if ($xml_format == 'smf' || isset($_REQUEST['debug']))
header('Content-Type: text/xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
elseif ($xml_format == 'rss' || $xml_format == 'rss2' || $xml_format == 'webslice')
header('Content-Type: application/rss+xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
elseif ($xml_format == 'atom')
header('Content-Type: application/atom+xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
elseif ($xml_format == 'rdf')
header('Content-Type: ' . ($context['browser']['is_ie'] ? 'text/xml' : 'application/rdf+xml') . '; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
Quote from: vbgamer45 on January 20, 2024, 11:32:20 AMProbably getting caught in a loop or too many urls? How big is the sitemap?
About 20,000+ links
I have uninstalled Pretty URLS, but I noticed a lot of stuff from it is still present. This code is still in my .htaccess file. Is this normal?
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: January 15, 2024, 23:12
RewriteEngine on
RewriteBase /
# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(findmember|forum|portal|groups|help|helpadmin|hidetopic|im)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jseditor|jsmodify|jsoption|lock|lockvoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(markasread|mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notify|notifyboard|openidreturn|pm|post|post2|printpage|profile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quotefast|quickmod|quickmod2|recent|register|register2|reminder|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic|smstats)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(suggest|spellcheck|splittopics|stats|sticky|theme|trackip|about:mozilla)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(who|\.xml|xmlhttp)/?$ ./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]
# PRETTYURLS MOD ENDS
This should have been removed by the uninstaller, shouldn't it?
Hello!
I'm (still) on 2.5.1c. Are there any special steps I should follow to upgrade to v4?
Thanks!
Backup, Backup
Uninstall old one first
I just upgraded one of my forums to 4 without issue
Quote from: mickjav on January 30, 2024, 08:10:04 AMBackup, Backup
Uninstall old one first
I just upgraded one of my forums to 4 without issue
Thank you, much appreciated! :)
Hello, every time I install: Pretty URLs I have a small error, what am I using
ed2k://|file|Los.guardianes.de.la.f%C3%B3rmula.(2023).(Spanish.English.Spanishsub).WEB-DL.1080p.HEVC.10b-AAC.by.byp58.mkv |2888845695|C40C115C40BF9BC721B212C469B2E02E|/
And it comes out like this:
fiuxy.lat/ed2k://|file|Los.guardianes.de.la.f%C3%B3rmula.(2023).(Spanish.English.Spanishsub).WEB-DL.1080p.HEVC.10b-AAC.by .byp58.mkv|2888845695|C40C115C40BF9BC721B212C469B2E02E|/
I use the plugins:; ed2k Autolinker
When I uninstall it, Pretty appears like I showed you above.
fiuxy.lat is your site?forum?
Might require adding ed2k as a skip option in prettyurls code.
I get the following error:
8: Undefined index: pretty_enable_filters
How to repair it?
\\mydomain.cba.pl/Sources/Display.php (Line 43)
Content of Display.php:
42: //301 redirects
43: if ((isset($context['pretty']['oldschoolquery']) || (isset($context['pretty']['query_string']['board']) && ($context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]))) && $modSettings['pretty_enable_filters'])
44: {
45: $filterData = unserialize($modSettings['pretty_filters']);
46: if (!empty($filterData['topics']['enabled']))
47: {
48: $url = 'topic=' . $topic . '.' . (isset($_REQUEST['start']) ? $_REQUEST['start'] : '0') . (isset($_REQUEST['prev_next']) ? ';prev_next=' . $_REQUEST['prev_next'] : '') . (isset($_REQUEST['topicseen']) ? ';topicseen' : '') . (isset($_REQUEST['all']) ? ';all' : '') . (isset($_REQUEST['viewResults']) ? ';viewResults' : '');
49: header('HTTP/1.1 301 Moved Permanently');
50: redirectexit($url, false);
51: }
52: }
Type of error: Undefined_vars
I probably have it installed freshly. No settings were changed.
Can someone explain what this is about? Why did this happen and how to fix it?
Replace in your code
$modSettings['pretty_enable_filters']
with
!empty($modSettings['pretty_enable_filters'])
Or only on line 34 or in all occurrences of the code?
Why didn't the developers fix this? If this is a global bug then why hasn't it been fixed in future releases?
And what does it do?
Probably because as soon as you enable it, the error goes away.
This plugin doesn't work.
I don't know why. I simply installed it.
My addresses look like this:
h44ps://example.cba.pl/index.php?board=3.0
Not:
h44ps://example.cba.pl/boardname
Any idea how to configure it?
I don't know if I have Nginx or Apache, but .htaccess is filled in.
Did you enable the settings? under Admin -> Pretty Urls Configuration
Added dutch, french, german, spanish AI assisted translations.
We are using Pretty URLs on our website and post news-items on a shadow-board (www.xyz.com/test-topics/etc) before we make move them to another board that's visible to everyone (www.xyz.com/news/etc).
Turns pout that Google keeps the first (test-topics) and not the final (news) links.
Is there maybe a way to avoid this?
By the way, Pretty URLs is at this moment set to rewrite the Board URLs and Topic URLs.
Currently there is not a way to avoid this would be a new feature request
So this option isn't a part of Pretty URLs Pro either?
(I would definitely be willing to pay for this).
It is not. Its done this way for seo value/avoiding broken links