Congratulations to the Winner Linkernel.com of the
Dir.vc Web Directory Competition!
RSS Feed Directory Forums Blog Articles Submit Site Popular Sites Contact Us
Web Directory » Blog
|__phpld-Show full category Path while editing sites

phpld-Show full category Path while editing sites

  - August 14th, 2007 by Web Directory | Posted in phpLD Hacks & tweeks!   2 Comments »
Email this  Email  |   Print This Post Print This Post     

UPDATE: hack upgraded to work with phpLD4.0.0, please download from here

Hi,

i was requested by some to write a small hack similiar to my last about the full path appearing in the approve section;

a similiar thing needed for the editing ;) section also!

So here it goes!

1. This will only work after you apply the full path in approve section mod

2. Will only work for phpLD3.1 and phpLD 3.2

Open /admin/dir_links_edit.php and search for the following code:

   case 'E' : //Edit
      if (empty ($_REQUEST['submit']))
      {
         $data = $db->GetRow("SELECT * FROM `{$tables['link']['name']}` WHERE `ID` = ".$db->qstr($id));
      }

Replace the whole block by :

   case 'E' : //Edit
      if (empty ($_REQUEST['submit']))
      {
         ##$data = $db->GetRow("SELECT * FROM `{$tables['link']['name']}` WHERE `ID` = ".$db->qstr($id));
         $data = getFullLinkInfo($id);
      }

2. Now open /templates/Core/admin/dir_links_edit.tpl and find the code:

<label for="OWNER_EMAIL">{l}Owner Email{/l}:</label>

<input id="OWNER_EMAIL" class="text" maxlength="255" name="OWNER_EMAIL" type="text" value="{$OWNER_EMAIL|escape|trim}" />
            {validate form="dir_links_edit" id="v_OWNER_EMAIL" message=$smarty.capture.invalid_email}

Add after that:

<label for="CACHE_URL">{l}Category Path{/l}:</label>
{$CACHE_URL|escape|trim}

Done!

lemme know how this goes!

Regards,
M.

2 Responses to “phpld-Show full category Path while editing sites”

  1. Chris says:

    My directory use phpLD 3.2.0 vs and i tried to use “show full category Path while editing sites” mode.

    Never works for me. When i login to admin section…nothing happend: is the same pannels and categories. I tested on phpLD 3.3.0 – the same = not works.

    You have updated this mode?

    Thanks

  2. msolution says:

    have u installed Show Category Path while approving sites, without that it will not work.

    M.

Leave a Reply

Captcha
Enter the letters you see above.



Entries (RSS) and Comments (RSS) Blog – Dir.vc :: Web Directory is proudly powered by WordPress - Site By : M-Solutions India