PDA

View Full Version : How to remove or modify the URL check on submission?


mjauneau
04-03-2007, 04:05 PM
Hello everybody,
Before asking my question... congratulations to the PHP LD team! :cool:

I am building a Second Life site with forum, user guides... and a directory with plenty of SL urls. Those are URLs that point to specific places of Second Life. The format is: http://slurl.com/secondlife/<region>/<x-coordinate>/<y-coordinate>/<z-coordinate>/

Now, given that PHP LD makes a check on the URLs, it refuses SLURL
http://slurl.com/secondlife/here/<22/22/22/ after I have submitted SLURL http://slurl.com/secondlife/elsewhere/<292/292/292/

Logical, nothing to say. Any advice on how to solve that?

Thanks in advance!
MJ


[Solved!]

James
04-03-2007, 04:13 PM
in submit.tpl look for

{validate form="submit_link" id="v_URL_U" message=$smarty.capture.url_not_unique}

if you run into problems after that I would suggest removing or commenting out references to it in submit.php also

mjauneau
04-03-2007, 04:47 PM
Thanks a lot Dawzz.

Here is what I did for the ones who would have the same issue:

1) I edited the submit.tpl file and removed the line you suggested ->
Content visible to registered users only.
NB: I found it twice.

2) I commented two lines in the submit.php file. First, the one that declares the smarty function
Content visible to registered users only.
... adn then the one that uses the function:
Content visible to registered users only.

I reloaded the files... it works.

Next step: create a piece of code that checks for duplicate SLurls in the category ;-)

Regards,
MJ

James
04-03-2007, 05:00 PM
I take it you mean the full url?/ If so then I suggest modifying the existing unique check to match the entire instead of just the domain.tld
;)

mjauneau
04-03-2007, 09:22 PM
Exactly!

Thanks again