News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Pretty URLs

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

Previous topic - Next topic

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

vinzbomb

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

vinzbomb

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

vinzbomb

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

belaze

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: hxxp:belizeconnect.com/ [nonactive]/travel-information/

Any ideas on how to fix?

Thanks,
belaze

rocknroller

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?

Tomy Tran

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

rocknroller


shubha

How to change the "- " to "+".
For example -
IN-the-news
in+the+news


!RFAN

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

karlbenson

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.

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

wynnyelle

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?

Tomy Tran

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.

wynnyelle

Thank you--then I could just delete it safely in Cpanel?

What would be the steps to do this?

Tomy Tran

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.

wynnyelle

I've found a whole lot of stuff but it seems tangled up with SimpleSEF, which we do use and need to retain.

nend

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, ;)

vbgamer45

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.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

MaXiForum.cz

Hello vbgamer45
Is it possible use this mod for SMF gallery pro?
And how?
THX

Advertisement: