View Full Version : submit.php isn't working
morning
08-31-2007, 05:41 AM
I don't know what is wrong with my submit.php >.< I can add links from my admin panel but i don't think anyone can add links through submit.php now. There's no errors reporting and the form just doesn't go through.
I'm using the current free version.
I turned off the visual thing.
I deleted files in temp/templates then reup the index.html
I reuploaded the submit.php and submit.tpl for a few times now so they are in the original versions.
Please help. Thank you, thank you and thank you...
James
08-31-2007, 05:52 AM
i just submitted one. looks like you have bigger problems though as in no template??
morning
08-31-2007, 05:56 AM
It's working now. Probably bc i used same email as admin's email.
Thanks.
morning
08-31-2007, 04:42 PM
I wanna ask something related to submit.php.
If i want to have a link to submit.php in the side bar of index.php, what should i put?
Like index.php includes a leftside.php file and i want to put a link to submit.php in the leftside.php, what code do i use (how do i get the category id if i'm on that category page)? Thanks in advance.
David
08-31-2007, 04:57 PM
Are you saying you want the submit form right on the page rather than people clicking over to it?
It sounds like a good idea, but this would definitely be a mod request. I'm not sure if the answer is simple.
morning
08-31-2007, 07:30 PM
No i think it's quite simple but i just don't know how to put the php function. I need the php code to get the id of the category for submit.php.
Like i'm on category A page, and if i click on "submit link", it'll leads to submit.php?c=1 for example. My "submit link" is not in the main.tpl but it's in a php file like leftnavigation.php.
David
08-31-2007, 07:33 PM
It may very well be simple. If you are not able to get the answer, I can employ the (paid) services of someone from the dev team. Or better yet, someone may know the answer and still reply to this thread.
(we get a lot of mod requests, large and small)
James
08-31-2007, 08:04 PM
Let me get this straight ... you just want to link to it not have a form?
James
08-31-2007, 08:07 PM
<a href="{$smarty.const.DOC_ROOT}/submit.php{if !empty ($category.ID) and $category.ID > 0}?c={$category.ID}{/if}" title="{l}Submit your link to the directory{/l}">{l}Submit Link{/l}</a>
morning
08-31-2007, 09:00 PM
in a .php file not .tpl file.
Thanks for replying.
James
08-31-2007, 09:03 PM
Ok explain what you are doing ....
I dont understand the whole leftside.php
so your going to have to explain better what it is your trying to do.
morning
08-31-2007, 09:07 PM
Ok, =.=
i want index.php to include leftnavigation.php
then leftnavigation.php includes a "submit link" so that if the person is on category A page, he/she will get straight to the submit form of that category.
similar to this: <a href="{$smarty.const.DOC_ROOT}/submit.php{if !empty ($category.ID) and $category.ID > 0}?c={$category.ID}{/if}" title="{l}Submit your link to the directory{/l}">{l}Submit Link{/l}</a>
but since this is for a .tpl file, it of course doesn't work in a .php file...
Better? :p
James
08-31-2007, 09:50 PM
you need to include a leftnavigation.tpl in the header or top_bar.tpl not a leftnavigation.php in the index.php.
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.