News:

Join the Facebook Fan Page.

Main Menu

Pretty URLs

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

Previous topic - Next topic

XxLexXX

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

vbgamer45

Not built in maybe possible but I think perforamance issues if you have alot of child boards...
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

XxLexXX

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?

IdanC

is it possible to achieve utf-8 support for urls?

right now, a subject such as בדיקה 21 ניסוי shows as /21

havenone

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

vbgamer45

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
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

havenone

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

Scratching my Head

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.


havenone

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

BlaBlaBla121

www.webcanavari.net
www.rapcanavari.net
www.rockcanavari.net
www.resimcanavari.net
www.kadincaforum.net

webcanavari - rapcanavari - rockcanavari

anakmacan

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

vbgamer45

Check the troubleshootting link the first post of this topic
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

anakmacan

#5092
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.

vbgamer45

Don't know anything about foxy I would try removing it and see if it works without it.
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

anakmacan

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;
}


havenone

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.

luismanson

Hi, is there any variable or way to get the original URL inside the code?


Vincent Volmer

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

Advertisement: