Pretty URLs

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

Previous topic - Next topic

shumilica

Are you asking me?
Yes, I use 2.0 RC1.2, as you can check from the link above.
Today, if you're not confused it means you're not thinking clear!

Dannii

Not really no... you should use UTF-8. What encoding are you using now?
"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."

Am'

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  :)
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Dannii

I don't know why it would do that. The topic wasn't ever named something else was it?
"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."

shumilica

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?
Today, if you're not confused it means you're not thinking clear!

Naveeddil

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

Dannii

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

Am'

#4167
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/

!!!!
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Özgür

If you change to subject, topic url didn't change. Try to Truncate {db_prefix}pretty_topic_urls.
So Long

Naveeddil

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

haerde

Sorry but i can't install it on smf 2.0 rc1.2. What to do now ?

Dannii

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

Naveeddil

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


Dannii

No, all the little ones, like to:<td style="padding-left: 1ex;" colspan="4">

Also, are you using 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."

distante

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


Dannii

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

Naveeddil

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>


tmarques

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

hash899

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.

Dannii

Then add

RewriteRule ^myfairytail/wp-admin/?$ myfairytail/wp-admin/index.php [L,QSA]

Or whatever it is...
"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."

Advertisement: