DMOZ Information and Resources for Webmasters

Go Back   DMOZ Information and Resources for Webmasters > General > Other Directories and Directory Software > phpLD Directory Modifications
Register FAQDonate Members List Calendar Arcade Search Today's Posts Mark Forums Read

phpLD Directory Modifications phpLinkDirectory script: Modifications and Contributions

Reply
 
Submit Tools Thread Tools Display Modes
  #1  
Old 07-30-2007, 07:26 AM
Energizer Bunny's Avatar
Energizer Bunny Energizer Bunny is offline
Meat Popsicle/SuperBunny
Recent Blog: Blog comment exchanges
 

Join Date: Feb 2007
Posts: 1,311
Rep Power: 8
Energizer Bunny is on a distinguished road
Send a message via AIM to Energizer Bunny Send a message via MSN to Energizer Bunny
Wink Convert link.html detail pages to title.id.html pages for phpld.

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
Replace with
Code:
{$smarty.const.DOC_ROOT}/detail/{$TITLE}_{$link.ID}.html
Place this code anywhere in the same link.tpl, but if unsure, place it just above {/strip} code found at the very bottom.
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]
Replace with
Code:
RewriteRule (.*)detail/(.*)_(.*).html$ detail.php [QSA,NC]
Now open detail.php file

Locate
Code:
preg_match ('#(.*)link(_|-)(\d+)\.htm[l]?$#i', request_uri(), $matches);
Replace with
Code:
preg_match ('#(.*)(_|-)(\d+)\.htm[l]?$#i', request_uri(), $matches);
And you are done. Enjoy.
__________________
|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
Reply With Quote
Sponsored Links

  #2  
Old 12-27-2007, 05:30 AM
ahmershuja ahmershuja is offline
Rookie Wanabee
 

Join Date: Dec 2007
Location: Hamilton, Canada
Posts: 5
Rep Power: 0
ahmershuja is on a distinguished road
Exclamation

Code:
preg_match ('#(.*)(_|-)(\d+)\.htm[l]?$#i', request_uri(), $matches);
I'm using v2.1.3 and I do not have this line, and my title is not displaying in the detail page, would you please check and suggest something else for me

thanks in advance...
www(.)uuStuff(.)com
Reply With Quote
  #3  
Old 12-27-2007, 09:06 PM
Energizer Bunny's Avatar
Energizer Bunny Energizer Bunny is offline
Meat Popsicle/SuperBunny
Recent Blog: Blog comment exchanges
 

Join Date: Feb 2007
Posts: 1,311
Rep Power: 8
Energizer Bunny is on a distinguished road
Send a message via AIM to Energizer Bunny Send a message via MSN to Energizer Bunny
Default

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
Reply With Quote
  #4  
Old 12-28-2007, 01:38 AM
ahmershuja ahmershuja is offline
Rookie Wanabee
 

Join Date: Dec 2007
Location: Hamilton, Canada
Posts: 5
Rep Power: 0
ahmershuja is on a distinguished road
Default

Thanks Bunny
Reply With Quote
  #5  
Old 12-28-2007, 03:39 PM
999999's Avatar
999999 999999 is offline
Unemployable
 

Join Date: Jul 2007
Posts: 363
Rep Power: 6
999999 is on a distinguished road
Default

Quote:
Convert link.html detail pages to title.id.html pages for phpld.
Looks cool but for the non-programmers in the mob, what does it do and why would you want to do it?

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.
Reply With Quote
  #6  
Old 12-29-2007, 09:51 AM
Energizer Bunny's Avatar
Energizer Bunny Energizer Bunny is offline
Meat Popsicle/SuperBunny
Recent Blog: Blog comment exchanges
 

Join Date: Feb 2007
Posts: 1,311
Rep Power: 8
Energizer Bunny is on a distinguished road
Send a message via AIM to Energizer Bunny Send a message via MSN to Energizer Bunny
Default

Quote:
Originally Posted by 999999 View Post
Looks cool but for the non-programmers in the mob, what does it do and why would you want to do it?

Please type slowly
Ok first of all ...

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
Reply With Quote
  #7  
Old 01-05-2008, 09:47 PM
ahmershuja ahmershuja is offline
Rookie Wanabee
 

Join Date: Dec 2007
Location: Hamilton, Canada
Posts: 5
Rep Power: 0
ahmershuja is on a distinguished road
Default

still waiting for the new updates,

anyone!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules Site Sponsors Resources Advertisements

Smilies are On
[IMG] code is On
HTML code is Off
Dmoz
Free Image Hosting
A1 Web Hosting solutions
Contact us for advertising.
Forum Jump


All times are GMT. The time now is 11:16 PM.


Copyright © Dmoz-Resources.com. All rights reserved.

We are not associated with DMOZ, Netscape, AOL, or Resource-Zone.com in any way.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Forum SEO by Zoints

Ad Management by RedTyger
3 4 5 6 8 9 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44