Hi all,
Just wanted to offer a little hack to all.
It's to do with the submit plugin, basically if you want it to be 'idiot proof' i.e. people will enter www.google.co.uk instead of http://www.google.co.uk we all know that the user will get an error message 'invalid url' because of no 'http://" at the beginning of the submission.
A quick hack:
The file in question we need to alter is submit1.php this can be found:
content/plugins/submit/templates/submit1.php
Open up submit1.php in your editor of choice I use notepad ++ (tis good)
find the following line:
<td><input type='text' id='submit_orig_url' name='submit_orig_url' value='<?php echo $submitted_url; ?>' /></td>
and replace with:
<td><input type='text' id='submit_orig_url' name='submit_orig_url' value='http://<?php echo $submitted_url; ?>' /></td>
Save and then FTP back up and next time you submit a link it will prefilled with http:// thus making it muppet proof(to a certain degree)
That is all, probably an obvious one but thought I would release it into the ether!


Reply With Quote

Bookmarks