Customizing SMF > Modifications and Packages

Pretty URLs 1.0 - Updated for SMF 2.0

<< < (3/1429) > >>

Vinspire:

--- 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/ :)

--- End quote ---

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ː :)

Dannii:
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.

GetRank:
can someone help install this mod to RC3 ?

errors in RC3 (top of the forum)

--- Code: ---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
--- End code ---


--- Quote from: index.php line 75 ---$context['pretty']['board_urls'] = unserialize($modSettings['pretty_board_urls']);
--- End quote ---

error during the installation (to RC3)


--- Code: ---Fatal error: Call to undefined function: generateprettyurl() in /home/****/public_html/forum/Packages/temp/prettyurls-base_0_3/install.php on line 34
--- End code ---


--- Quote from: install.php line 34 ---$pretty_text = generatePrettyUrl($row['name']);
--- End quote ---

Dannii:
1.1 RC3 isn't supported sorry. Can you upgrade to 1.1.1?

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

--- Code: --- <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>
--- End code ---
to:

--- Code: --- <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>
--- End code ---

The string is still unique and what I removed remained uneditted anyway so no real need for it to be included.
 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version