| |||||||
| Register | Projects | FAQ | Members List | Mark Forums Read |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
I'm configuring a directory website using deluxe 1.1 and flower theme. I setup a listing price for sponsored links and 0 for basic and premium. When I try to use add.php to add a listing, I select a category but the "listing type field is disabled (I cannot select anything and it always shows the message :"selecta category first!"). I'm missing something? Any idea?
__________________ http://www.dubainumber1.com |
| ||||
|
I just woke up so I only have 1 active brain cell firing.... With that being said, do you have your listing types configured??? Another words, did you configure your Basic Listing, Premium Listing, and Sponsored??? Do you plan on charging for Premium or Sponsored Listings? Is the Category your trying to submit a listing to allowed to have listings submitted to it? Just some things that might help get you over the 'hump'
__________________ FSGDAG | IndexU Hosting | Owner Website | NiceCoder Script Hosting and More! | Blog General Directory | Deep Links Directory | Bidding Directory |
| |||
|
Basic and premium are free of charge (0) and sponsored are configured with 5 . Anyway I got this error for any categories I select... it is like script is unaware I already select a category and it asks to select one!!
__________________ http://www.dubainumber1.com |
| ||||
|
hey kamika could post your add_form.html source I could have a look see whats wrong, I dont have the theme but it could be a simple typo somewhere in the code. Also have you tried switching to a diffrent theme like kosmos and seeing if the same error ocurs? try doing this before you post up add_form.html
__________________ ____________________________ http://www.articleconveyer.com Give Your Articles Exposure |
| |||
|
this is the code: <%include file="header.html" title=$smarty.const.PT_HOME meta_keywords="link management" meta_description="make a web directory with ease" %> <!-- start page --> <div id="page"> <!-- start content --> <div id="content"> <%$hook_html_add_form_begin%> <h2><%t%>Add a Listing<%/t%></h2> <script language="javascript" type="text/javascript" src="<%$tpl_base%>/calendar.js"></script> <script language="javascript" type="text/javascript" src="<%$tpl_base%>/calendar-en.js"></script> <script language="javascript" type="text/javascript" src="<%$tpl_base%>/calendar-setup.js"></script> <script language="javascript" type="text/javascript" src="<%$tpl_base%>/json.js"></script> <script language="javascript" type="text/javascript" src="<%$tpl_base%>/ajax.js"></script> <script language="javascript" type="text/javascript" src="<%$tpl_base%>/categories.enables.js.php?nmform=add_frm"></script> <form action="add.php" method="post" enctype="multipart/form-data" name="add_frm"> <input type="hidden" name="pflag" value="add" /> <fieldset> <%if $error_msg%> <div id="error_msg"><%$error_msg%></div> <%/if%> <%if $title_is_visible%> <div> <label><%t%>Title<%/t%></label> <span><input type="text" name="title" value="<%$title%>" /></span> </div> <%/if%> <%if $url_is_visible%> <div> <label><%t%>Url<%/t%></label> <span><input type="text" name="url" value="<%$url%>" /></span> </div> <div> <label> </label> <input type="button" name="fetch_meta" value="<%t%>Fetch Meta Tags<%/t%>" onclick="FetchMeta(); return false;" /> </div> <%/if%> <%if $description_is_visible%> <div> <label><%t%>Description<%/t%></label> <textarea name="description"><%$description%></textarea> </div> <%/if%> <div> <label><%t%>Category<%/t%></label> <label id="cat_div"><%$category%></label> <br style="clear:both;"> </div> <div> <label><%t%>Additional Category 1<%/t%></label> <label id="add_cat1_div"><%$add_cat1%></label> <br style="clear:both;"> </div> <div> <label><%t%>Additional Category 2<%/t%></label> <label id="add_cat2_div"><%$add_cat2%></label> <br style="clear:both;"> </div> <%if $contact_name_is_visible%> <div> <label><%t%>Contact Name<%/t%></label> <%if $user_contact.name%> <%$user_contact.name%> <input type="hidden" name="contact_name" value="<%$user_contact.name%>" /> <%else%> <span><input type="text" name="contact_name" value="<%$contact_name%>" /></span> <%/if%> </div> <%/if%> <%if $email_is_visible%> <div> <label><%t%>Email<%/t%></label> <%if $user_contact.email%> <%$user_contact.email%> <input type="hidden" name="email" value="<%$user_contact.email%>" /> <%else%> <span><input type="text" name="email" value="<%$email%>" /></span> <%/if%> </div> <%/if%> <%if $keywords_is_visible%> <div> <label><%t%>Keywords<%/t%></label> <span><input type="text" name="keywords" value="<%$keywords%>" /></span> </div> <%/if%> <%if $reciprocal_url_is_visible%> <div> <label><%t%>Reciprocal URL<%/t%></label> <span><input type="text" name="reciprocal_url" value="<%$reciprocal_url%>" /></span> </div> <%/if%> <div> <!-- remove <%$custom_field_form%> if you want to generate field manualy --> <%$custom_field_form%> <%if $enable_bidding%> <div> <label><%t a=$currency_symbol%>Bid (%1)<%/t%></label> <span><input type="text" name="bid" value="<%$bid%>" /></span> </div> <%else%> <div> <label><%t%>Listing Type<%/t%></label> <label id="listing_type_div"> <%if ($cat > 0)%> <select name="periodprice"> <option value="BASIC|0|<%$basic_listing_price%>" selected="selected"> <%t%>Basic Listing<%/t%> <%if ($basic_listing_price) > 0%> <%t a=$currency_symbol b=$basic_listing_price%>(%1 %2, one time inclusion fee)<%/t%> <%else%> <%t%>(FREE)<%/t%> <%/if%> </option> <%section name=i loop=$premium_listing_period%> <option value="PREMIUM|<%$premium_listing_period[i].period%>|<%$premium_listing_period[i].price%>" <%$premium_listing_period[i].selected%>> <%if ($premium_listing_period[i].period != "permanent")%> <%t a=$premium_listing_period[i].period b=$currency_symbol c=$premium_listing_period[i].price%>Premium Listing (%1 days, %2 %3)<%/t%> <%else%> <%t a=$currency_symbol b=$premium_listing_period[i].price%>Premium Listing (Permanent Listing, %1 %2)<%/t%> <%/if%> <%if ($premium_listing_period[i].disc) > 0%> <%t a=$premium_listing_period[i].disc b=$currency_symbol c=$premium_listing_period[i].save%>disc. %1%, you save %2 %3<%/t%> <%/if%> </option> <%/section%> <%section name=i loop=$sponsored_listing_period%> <option value="SPONSORED|<%$sponsored_listing_period[i].period%>|<%$sponsored_listing_period[i].price%>" <%$sponsored_listing_period[i].selected%>> <%if ($sponsored_listing_period[i].period != "permanent")%> <%t a=$sponsored_listing_period[i].period b=$currency_symbol c=$sponsored_listing_period[i].price%>Sponsored Listing (%1 days, %2 %3)<%/t%> <%else%> <%t a=$currency_symbol b=$sponsored_listing_period[i].price%>Sponsored Listing (Permanent Listing, %1 %2)<%/t%> <%/if%> <%if ($sponsored_listing_period[i].disc) > 0%> <%t a=$sponsored_listing_period[i].disc b=$currency_symbol c=$sponsored_listing_period[i].save%>disc. %1%, you save %2 %3<%/t%> <%/if%> </option> <%/section%> </select> <%else%> <select name="periodprice" disabled> <option><%t%>Please select category first !<%/t%></option> </select> <%/if%> </label> <span id="price_message_place" style="clear:both;display:block;text-align:center;"></span> <div id="hidden_price" style="clear:both;display:none;"></div> </div> <%/if%> <div> <label><%t%>Payment Gateway<%/t%></label> <%$available_payment_systems%> </div> <%if !$enable_bidding%> <div> <label><%t%>Coupon Code<%/t%></label> <input type="text" id="coupon_code" name="coupon_code" value="" /> <input type="button" id="check_coupon" value="<%t%>Add Coupon<%/t%>" onclick="CouponChecking();"/> </div> <%/if%> <div> <label><img src="captcha.php" alt="" /></label> <span><input type="text" name="captcha_key" value="" /></span> </div> <div> <label> </label> <input type="submit" value="<%t%>Add New Listing<%/t%>" /> </div> </fieldset> </form> <%$hook_html_add_form_end%> </div> <!-- end content --> <!-- start sidebar --> <div id="sidebar"> <%include file="sidebar2.html"%> </div> <!-- end sidebar --> <div style="clear: both;"> </div> </div> <!-- end page --> <!-- start footer --> <div id="footer"> <%include file="footer.html"%> </div> <!-- end footer -->
__________________ http://www.dubainumber1.com |
| ||||
|
The Code works for me, I dont think its anything to do with add_form.html Update the the category path and clear your cache. Then test this on a diffrent theme by switching theme. If you still have a problem i would suggest overwriting your add.php with one from the original package. Are you using the latest svn version?
__________________ ____________________________ http://www.articleconveyer.com Give Your Articles Exposure |
| |||
|
I made all your suggestions but nothing changed. I think I'm using the last version 1.1 downloaded 1 week ago. I had another installation with the same release and is working fine. I don't know how to debug this problem, any idea? the page is: WeddWorld4U - The Latest Wedding Directory
__________________ http://www.dubainumber1.com |
| ||||
|
Did the same error occur when you changed themes?
__________________ ____________________________ http://www.articleconveyer.com Give Your Articles Exposure |
| |||
|
Yes switching theme makes no difference
__________________ http://www.dubainumber1.com |
| ||||
|
strange , did you import your categorys from a template, are you sure your category permissions correct? Are your two indexu intallations on the same server? Other than that I would install the latest svn version here http://www.nicecoder.com/svn/ Backup your key.php application.php themes\yourtheme - directory Then extract the archive and upload Copy your key.php, application.php and theme back to thier origianal locations. Browse to the install directory and upgrade , I dont know what else to do after that hopefully someone else might have some ideas
__________________ ____________________________ http://www.articleconveyer.com Give Your Articles Exposure |
| ||||
|
Your missing the file categories.enables.js.php this should be in your theme directory,
__________________ ____________________________ http://www.articleconveyer.com Give Your Articles Exposure Last edited by echo@; 11-02-2008 at 06:43 PM. |
| |||
|
Echo, thanks for your support... The file is present in the dir. I try to upload it again, but still the same problem.... The 2 sites are on 2 different servers... the permissions seem fine... i don't know what to think...maybe I've to sleep (here is 11:30 PM!).
__________________ http://www.dubainumber1.com |
| ||||
|
Hope you solve this
__________________ ____________________________ http://www.articleconveyer.com Give Your Articles Exposure |
| ||||
| http://www.weddworld4u.com/themes/fl...enables.js.php returns a 404, either the file does not exist or you have set the incorrect permissions on this file. What are the file permissions right now?
__________________ |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Listing Type (add text) | Webfriend | v5.x | 8 | 01-03-2008 02:32 PM |
| Warning: mail() has been disabled.... | Jibé | v5.x | 0 | 01-28-2002 05:44 AM |
| Warning: mail() has been disabled... | Jibé | v5.x | 0 | 01-28-2002 05:43 AM |