Page 1 of 2 12 LastLast
Results 1 to 15 of 19

Thread: Listing Type disabled

  1. #1
    Join Date
    Aug 2008
    Location
    Dubai
    Posts
    27

    Default Listing Type disabled

    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?

  2. #2
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    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! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  3. #3
    Join Date
    Aug 2008
    Location
    Dubai
    Posts
    27

    Default

    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!!

  4. #4
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    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



  5. #5
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    It's most likely that the add_form.html page contains brken HTML. This is typically caused by users editing the code.

  6. #6
    Join Date
    Aug 2008
    Location
    Dubai
    Posts
    27

    Default

    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>&nbsp;</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>&nbsp;</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;">&nbsp;</div>
    </div>
    <!-- end page -->
    <!-- start footer -->
    <div id="footer">
    <%include file="footer.html"%>
    </div>
    <!-- end footer -->

  7. #7
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    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



  8. #8
    Join Date
    Aug 2008
    Location
    Dubai
    Posts
    27

    Default

    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

  9. #9
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    Did the same error occur when you changed themes?
    ____________________________
    http://www.articleconveyer.com
    Give Your Articles Exposure



  10. #10
    Join Date
    Aug 2008
    Location
    Dubai
    Posts
    27

    Default

    Yes switching theme makes no difference

  11. #11
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    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



  12. #12
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    Your missing the file categories.enables.js.php this should be in your theme directory,
    Last edited by echo@; 11-02-2008 at 05:43 PM.
    ____________________________
    http://www.articleconveyer.com
    Give Your Articles Exposure



  13. #13
    Join Date
    Aug 2008
    Location
    Dubai
    Posts
    27

    Default

    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!).

  14. #14
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    Hope you solve this
    ____________________________
    http://www.articleconveyer.com
    Give Your Articles Exposure



  15. #15
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    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?

Similar Threads

  1. Listing Type (add text)
    By Webfriend in forum v5.x
    Replies: 8
    Last Post: 01-03-2008, 01:32 PM
  2. Warning: mail() has been disabled....
    By Jibé in forum v5.x
    Replies: 0
    Last Post: 01-28-2002, 04:44 AM
  3. Warning: mail() has been disabled...
    By Jibé in forum v5.x
    Replies: 0
    Last Post: 01-28-2002, 04:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •