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

codevarun

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


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

   

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

Join: http://www.helponrelation.com/forum/

LETS HELP OTHERS

gregh

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

Yağız...

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.

L.G.S

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!
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


ukhalik2

[ ] {  } ( )
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.

dedo

Is it possible to update board pretty urls name in SMF 1.1.x? I see no options when editing boards

ukhalik2

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

dedo

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? :-[

Dannii

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.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Yağız...

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

ukhalik2

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

abelcarreto

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/ [nofollow]
File does not exist: /home/eldiscod/public_html/profile,    referer: http://www.mywebsite.com/profile/?area=forumprofile;u=1 [nofollow]

Thank you so much in advice.

abadaba

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 [nofollow]

SMF 2.0 RC3 
Pretty URLs 1.0RC

humbleworld

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?

vbgamer45

No don't empty it at all should stay cached
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


Masterd

I can't install the mod on RC3. What is the problem?

blow

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.

vbgamer45

Might be an issue with the host if they restart mysql often or have disk issues.
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

Advertisement: