PDA

View Full Version : Switch off obligation to place a URL


Peter (IMC)
12-10-2006, 10:34 PM
Hi everybody,

I have been playing with phplinkdirectory for a while now. Using it in Brazil, creating a directory of all real estate companies in Brazil. There is a problem though. Not all (in fact, most) real estate companies in brazil don't have a website. But I want to add these companies too with just their information. However, I am oblied to put a URL.

I tried creating a single page that explains the company doesn't have a site yet, but that didn't help, since the system checks if the url already exists in that category. (So I can place that url only once per category.)

Where can I make the changes to switch of the obligation to place a url?

Thank you in advance,

Peter

MyWebSearches
12-11-2006, 12:46 AM
Good question. I trying to create directory in the USA and I have the same problem.

Anyone with an answer?

proprod
12-11-2006, 03:15 AM
Ok, tested and works... in your submit.php file, comment out the following lines by adding a // in front of the line:

Content visible to registered users only.

Please, please only comment these line out, don't delete them in case in the future you need them back.

Peter (IMC)
12-12-2006, 03:21 AM
Propod,

Thanks for the reply. That wasn't exactly what I wanted to know, but what you showed helped me enough to figure out where to look. I edited the dir_links_edit.php file which made it possible to add a link without a url.

But now I found the next problem (there“s always a next problem,. :) ). Now the links link to the page they are in. How could I switch of the <a href etc. ></a> code in case the url field is empty?

Thanks,

Peter

Boby
12-12-2006, 03:24 PM
Content visible to registered users only.

This will show the title if no URL is available or show the title as link if the URL is there.

Boby

Peter (IMC)
12-12-2006, 03:40 PM
Hi Boby,

Thank you for the reply. In which file(s) should I make that change?

Thank you,

Peter

Peter (IMC)
12-12-2006, 05:06 PM
Ah never mind,. I found it already. link.tpl,.. :)

Boby
12-12-2006, 05:09 PM
Content visible to registered users only.
Good to know :)