PDA

View Full Version : I want the URL to be optional


vkaryl
09-12-2005, 06:56 PM
and I'm sure that sounds weird, but in this area there's a need for not only links to local listings with websites, but also similar listings that do not as yet have a website.

Right now, there's no way to "force" a listing to be accepted if there's no URL in place, and sure, you can input a "fake" URL - but that's a bad idea.

What would I have to change in order to make the URL NOT required in order to add listings without websites?

yktan
09-14-2005, 06:57 PM
Hi vkaryl,

Do you want this for public submissions or admin link creations?

Regards,
York Kie

vkaryl
09-14-2005, 07:16 PM
Admin only.... I really don't think it's going to be an issue for public submits. Thanks.

yktan
09-14-2005, 07:22 PM
Hi vkaryl,

Open \admin\dir_links_edit.php.
Find and remove:
Content visible to registered users only.

Open \templates\admin\dir_links_edit.tpl
Find and remove:
Content visible to registered users only.

I haven't test it, but it should work.

Regards,
York Kie

vkaryl
09-14-2005, 07:28 PM
Thanks. I'll make the changes, test, and report back asap!

vkaryl
09-14-2005, 07:39 PM
PERFECT! You're a coding genius, yktan!

Thanks so much!

webwriter
09-30-2005, 04:56 AM
This is just what I needed! Thanks yktan and vkaryl!! 8)

Maybe this should be moved to the modifications topic?

vkaryl
09-30-2005, 05:36 AM
Not a bad idea, webwriter. Maybe David or Casey could oblige.

Ap0s7le
10-01-2005, 04:51 PM
*tips hat*

There you go.

-Casey

angeljs
10-12-2005, 09:16 AM
Hi, is there any way to do this for the public submit side? Thanks. :D

yktan
10-12-2005, 10:10 AM
Content visible to registered users only.

Sure, do the following:
Open submit.php
Find and delete:
Content visible to registered users only.

Open templates\submit.tpl
Find and delete:
Content visible to registered users only.

angeljs
10-12-2005, 11:02 AM
That's great...thank you so much! :mrgreen:

SKT
07-16-2007, 07:39 AM
Could someone possibly post instructions for the two mods in the link for version 3.0.6? Mods removing URL requirement on both the user and admin ends. The file names appear to be different.

Thanks!

shadav
07-17-2007, 10:54 PM
just look for
Content visible to registered users only.
what the posted should be the same except for instead of having
Content visible to registered users only.
it should only have 2
Content visible to registered users only.

Althema
07-18-2007, 05:04 AM
Hi YKTan and Shadav, I just wanted to post and say thanks for the great instructions.

They worked perfectly fine for me, using version 3.2.0

MyWebSearches
07-18-2007, 08:12 AM
Thanks for that info, It is something I have to do almost four times a year. I hope someday it will be included with the script. I think we have enough people asking for this option already.

PLEASE hear our voice!!!

akear1970
08-06-2007, 06:07 PM
regarding this topic the reply at no #4 says to use those files and edit them but they done apprear to be there in version 3.2 could anyone tell me how you make the url optional from both admin side and from user side also on 3.2?

Regards Alex

shadav
08-06-2007, 06:48 PM
check my reply....#14

akear1970
08-06-2007, 07:01 PM
I did look at post 14 but didnt understand it to be honest im not sure which files i would find the coding in and would that make url optional for both admin and user side??

shadav
08-06-2007, 07:24 PM
just edited yktan's posts removing one of the checks...this should work for 3.2

Open \admin\dir_links_edit.php.
Find and remove:
Content visible to registered users only.Open \templates\Core\admin\dir_links_edit.tpl
Find and remove:
Content visible to registered users only.


Open submit.php
Find and delete:
Content visible to registered users only.Open templates\YOUR TEMPLATE FOLDER\submit.tpl
Find and delete:
Content visible to registered users only.

akear1970
08-06-2007, 08:56 PM
thanks for that shadav will do that tommorow and let you know how i go on cause i can be a bit dense at times lol.

Regards Alex

Willy
08-06-2007, 11:43 PM
Nice Shadav,

The Core\admin\dir_links_edit.tpl edit got rid of the warning message I was getting on my add url form after having done Yktan´s edits.

Thanks and greetings.

falsealarm
08-20-2007, 02:07 AM
Hey All. This was exactly what I needed and thanks for all the clears steps you have made available here.

I need to add a message in the listing details when a URL is not present; something along the lines of "NO URL is available for this listing" and if possible have these listings come up at the bottom when links are provided. Is there a quick way to do this? Thanks.

shadav
08-20-2007, 12:22 PM
not sure, but off the top of my head in your detail template file
find your url spot...this is from the default 3.2 template

Content visible to registered users only.
but basically you are looking for something simular to Content visible to registered users only.
my guess would be change it to Content visible to registered users only.