|
|
#1 |
|
Member
Join Date: Apr 2006
Location: UK
Posts: 45
Rep Power: 12 ![]() |
Hi,
On our site racecarsdirect.com, we allow sellers to place urls to their sites, from time to time, people make mistakes with their typing and we would like to amend the url. From the admin area, it isn't an option for us. We can edit everything else. Any thoughts? Many thanks |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2006
Posts: 3,921
Rep Power: 95 ![]() ![]() |
Can you be more specific??
Are you saying the URL field isnt there? Are you saying the field is there but you cant change it contents? Are you saying you can change the form contents but the database doesnt get updated?
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
#3 |
|
Member
Join Date: Apr 2006
Location: UK
Posts: 45
Rep Power: 12 ![]() |
Sorry Larry,
Yes, I am saying the url field is not there when editing a listing in the admin area. I have re-uploaded the 4.09 administration folder with the same result. |
|
|
|
|
|
#4 |
|
Member
Join Date: Apr 2006
Location: UK
Posts: 45
Rep Power: 12 ![]() |
Looking at listing_edit.tpl we have
Code:
{if $checkoutDisURL=="Y"}
<tr>
<td width="5%" nowrap="nowrap" valign="top"><label for="url">{$smarty.const.LANG_URL}{$smarty.const.LANG_COLON}</label></td>
<td><input name="url" id="url" type="text" value="{$url}" style="width: 100%" /></td>
</tr>
{/if}
Many thanks |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Mar 2006
Posts: 3,921
Rep Power: 95 ![]() ![]() |
I just checked a 4.0.8 site and it all works fine and the code in the template is the same as yours. Taking out the if statement should work, but I dont think its the root of the problem.
Do you have any mods installed at all?
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,167
Rep Power: 35 ![]() ![]() |
I think we may want to step back just a bit. The code that you displayed with the if statement is checking the variable as to whether or not you ALLOW an external URL in the listing package that you are placing/modifying.
So if it is NOT showing, that would indicate that you are trying to modify a listing that is in a Listing Package/Product that you have set to NOT allow an external URL field. Bearing this in mind, the first thing that I would check is your Product listing in the Admin. When you add a Product, one of the options is whether or not you allow an external URL in the listing. It is a separate field. See what Product the listing is and check the Products options to see whether you actually have set the product to have this field available. -Mike
__________________
Mike-N-Tosh v3.1.10 Developer IndianaPC.org - A community website Sandbox v4.0.9, 4.1 Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds. Web Hosting | Web Design & Development | 68 Classifieds Customizations I am not a 68C employee, just a user and try to help out |
|
|
|
|
|
#7 |
|
Member
Join Date: Apr 2006
Location: UK
Posts: 45
Rep Power: 12 ![]() |
I have checked all the listing packages and they all allow urls (we had checked this before posting, and double checked later). I took out the 'if' statements and can now edit the urls in admin. I can live with this solution for now, but I am curious as to what has caused this. I wonder if we have any corrupted data in the database. When we upgraded from 3.x to 4.x in June/July last year, we found that no sellers could update their listings that they had placed previous to the upgrade. We had a fair number to update through the admin section. This isn't a problem now as most of those ads have expired and/or sold. I'll have a google for the mysql command to check and repair the tables.
Many thanks all for your input. |
|
|
|
|
|
#8 |
|
Moderator
Join Date: Mar 2006
Posts: 3,921
Rep Power: 95 ![]() ![]() |
I dont think its a corrupt table. Its more likely the variable to display the field isnt set for some reason. Maybe due to some of your files not all being at the proper level OR as I mentioned above if you have a mod installed that may be causing problems as well.
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
#9 | |
|
Member
Join Date: Apr 2006
Location: UK
Posts: 45
Rep Power: 12 ![]() |
Quote:
What did you mean "files not all being at the proper level" ? If you mean the files physical location within the web directory, we have not moved any from the standard install. |
|
|
|
|
|
|
#10 |
|
Moderator
Join Date: Mar 2006
Posts: 3,921
Rep Power: 95 ![]() ![]() |
You said you upgraded from 3 to 4 in june/july and your signature says you are running 4.0.9 which didnt come out until Aug which means you would have had a couple upgrades and maybe during one of those the proper files didnt all make it into place and one of your script files is old.
If you open /administration/templates/default/layout.tpl and add {debug} to the top of the file and save it, then in admin, navigate to a listing and edit the listing you should have a popup debug window showing you the vars in place. One of them should be {$checkoutDisURL} and it should have a value of "Y". If you do not have that variable then you need to take a closer look at the users.php file and try and determine if its really from 4.0.9. Thats where I would start anyway.
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| lost password to my admin area | buzzandgo | v3.1 Questions & Support | 2 | 02-15-2008 08:04 AM |
| Admin Area not working. | GianniC | v3.1 Questions & Support | 12 | 01-09-2008 08:48 PM |
| Admin Area | Jessej | v4 Questions & Support | 1 | 09-21-2007 12:41 PM |
| Please help: problem logging into admin area | spaceboy | v3.1 Questions & Support | 3 | 08-27-2006 10:00 PM |
| Error trying to get to Admin area???? | dawyatt | v3.1 Modules & Modifications | 27 | 05-15-2006 04:15 PM |