![]() |
|
|||||||
| Register | FAQ | Donate | Members List | Calendar | Arcade | Search | Today's Posts | Mark Forums Read |
| phpLD Directory Modifications phpLinkDirectory script: Modifications and Contributions |
![]() |
|
|
Submit Tools | Thread Tools | Display Modes |
#1
|
||||
|
||||
|
Thanks to dan use the following codes to convert your link.id.html detail pages to title.id.html pages.
Demo : http://www.h-log.com/detail/link-2842.html is converted to http://www.h-log.com/detail/Online_Slots_2842.html , if you do not like that format do not proceed any further. Open link.tpl file in your template directory. Locate Code:
{$smarty.const.DOC_ROOT}/detail/link-{$link.ID}.html
Code:
{$smarty.const.DOC_ROOT}/detail/{$TITLE}_{$link.ID}.html
Code:
{assign var="TITLE" value=$link.TITLE}
{php}
$title = preg_replace('/\W/', '_', $this->get_template_vars('TITLE'));
$this->assign('TITLE', $title);
{/php}
Above code is a must code. Now open your .htaccess file Locate Code:
RewriteRule (.*)detail/link-(.*)\.htm[l]?$ detail.php [QSA,NC] Code:
RewriteRule (.*)detail/(.*)_(.*).html$ detail.php [QSA,NC] Locate Code:
preg_match ('#(.*)link(_|-)(\d+)\.htm[l]?$#i', request_uri(), $matches);
Code:
preg_match ('#(.*)(_|-)(\d+)\.htm[l]?$#i', request_uri(), $matches);
__________________
|Support the New Dmoz Resource Zone Project| Messaging Editors for site review, inclusion, status check or annoying messages is a ban. Editors are volunteers. A1 Web Hosting Solutions| Free Image Hosting |Directory |
| Sponsored Links |
|
|
#2
|
|||
|
|||
|
Code:
preg_match ('#(.*)(_|-)(\d+)\.htm[l]?$#i', request_uri(), $matches);
thanks in advance... www(.)uuStuff(.)com |
#3
|
||||
|
||||
|
This is for PHPLD 3+ version as phpld 2 does not have details pages at all. And if you used custom mod, than contact the owner or maker of that mod.
Cheers
__________________
|Support the New Dmoz Resource Zone Project| Messaging Editors for site review, inclusion, status check or annoying messages is a ban. Editors are volunteers. A1 Web Hosting Solutions| Free Image Hosting |Directory |
#4
|
|||
|
|||
|
Thanks Bunny
|
#5
|
||||
|
||||
|
Quote:
Please type slowly ![]()
__________________
========== If you are told that your suggested site is Untouched by an editor, read this to find out what it means. Do not send private messages asking for status reports or advice. Ask in the public forums. |
#6
|
||||
|
||||
|
Quote:
Going slow here ... wait for next post ![]()
__________________
|Support the New Dmoz Resource Zone Project| Messaging Editors for site review, inclusion, status check or annoying messages is a ban. Editors are volunteers. A1 Web Hosting Solutions| Free Image Hosting |Directory |
#7
|
|||
|
|||
|
still waiting for the new updates,
anyone! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
Posting Rules
| Site Sponsors | Resources | Advertisements |
|
Dmoz Free Image Hosting A1 Web Hosting solutions |
Contact us for advertising. |
|
|