Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Greetings,
    You missed what I was asking 🙂
    It says on your website regarding the shortcode option what I said above
    listing_page – enter any url path under your website url set in admin e.g. (Listings)

    Specifically what you trying to say here: your website url set in admin ?
    Thanks,
    initialhit

    running into same issue… wonder if the later version of WP broke this? Looks like it was last updated for 3.2.1 (and we are on 3.8 for latest). I might dig through the code here soon if the developer doesn’t show up soon.

    [search_form]

    listing_page – enter any url path under your website url set in admin e.g. (Listings)

    OK I set it to a page, Reviews. However, what is this “set in admin”? The plugin option don’t allow me to set a page or really specify anything of that nature?
    As far as the CSS on the filter, I am a wp dev / web programmer myself. Was just hoping there was as a simple fix.

    running into same issue… wonder if the later version of WP broke this? Looks like it was last updated for 3.2.1 (and we are on 3.8 for latest). I might dig through the code here soon if the developer doesn’t show up soon.

    Hey what element did you edit to increase the size? Been trying to find this!

    so be able to use the wordpress tag feature within classifieds so it’s easier to search for.

    I believe it to be a theme or multisite issue, but will check this out. Interesting that only one feature is having the problems, generally it’s all or none in my experiences lol.

    I think you mis-understood me. I need to make it so they absolutely have to upload an image and remove the “place ads without image” option

    and instead of firebug, you can use inspect element in chrome as well 😉

    I decided I didn’t want text associated, so I also commented out these two lines like such:

    //$html_title = "<strong>$ad_title</strong>";
    //$html_excerpt = $show_excerpt ? "$ad_teaser<br/>$read_more" : '';

    In the end, the way I am doing it bypasses all of the themes and WP-Core css manipulations as they don’t have anything for xhtml tags like … took me about 6 hours to get it, but enjoy everyone 🙂

    Hey,
    got it work… but it’s not as simple as you put it.
    So how WP handles stuff in the footer made it fun.
    First and foremost… wordpress core manipulates it, your theme of choice has a hand in manipulating the widget area, wordpress core manipulates it, and then it gets to your actual widget. In order for me to get it to work I had to do some cleanup on your widget, deleting all your <divs>, which it automatically will only generally put one of those per line unless you place the layer tag on them. The item that was causing problems was the
    <li> and
    <ul> tags, replaced them <td> and <tr>, respectively. Then I had to remove the <h3> tag and replace it with the tag. Code of the mod on your widget is below:

    function awpcp_sidebar_headlines($limit, $showimages, $showblank, $show_title, $show_excerpt) {
        $output = '';
        global $wpdb,$awpcp_imagesurl;
        $tbl_ads = $wpdb->prefix . "awpcp_ads";
    
        $awpcppage=get_currentpagename();
        $awpcppagename = sanitize_title($awpcppage, $post_ID='');
        $permastruc=get_option('permalink_structure');
        $quers=setup_url_structure($awpcppagename);
        $displayadthumbwidth = intval(trim(get_awpcp_option('displayadthumbwidth'))) . 'px';
    
        if(!isset($limit) || empty($limit)){
            $limit = 10;
        }
    
        $query = "SELECT ad_id,ad_title,ad_details FROM ". AWPCP_TABLE_ADS ." ";
        $query.= "WHERE ad_title <> '' AND disabled = 0 ";
        // $query.= "AND (flagged IS NULL OR flagged = 0) ";
        $query.= "ORDER BY ad_postdate DESC, ad_id DESC LIMIT ". $limit . "";
        $res = awpcp_query($query, __LINE__);
    
        while ($rsrow=mysql_fetch_row($res)) {
    
            $ad_id=$rsrow[0];
            $modtitle= awpcp_esc_attr($rsrow[1]);
            $hasNoImage = true;
            $url_showad=url_showad($ad_id);
    
            $ad_title="<a href=\"$url_showad\">".stripslashes($rsrow[1])."</a>";
            if (!$showimages) {
                //Old style, list only:
                $output .= "$ad_title";
            } else {
                //New style, with images and layout control:
                $awpcp_image_display="<a  href=\"$url_showad\">";
                if (get_awpcp_option('imagesallowdisallow')) {
                    $totalimagesuploaded=get_total_imagesuploaded($ad_id);
                    if ($totalimagesuploaded >=1) {
    		    $displayadthumbwidth = "175px";
                        $image = awpcp_get_ad_primary_image($ad_id);
                        if (!is_null($image)) {
                            $awpcp_image_name_srccode="<img src=\"" . awpcp_get_image_url($image) . "\" border=\"0\" width=\"$displayadthumbwidth\" alt=\"$modtitle\"/>";
                            $hasNoImage = false;
                        } else {
                            $awpcp_image_name_srccode="<img src=\"$awpcp_imagesurl/adhasnoimage.gif\" width=\"$displayadthumbwidth\" border=\"0\" alt=\"$modtitle\"/>";
                        }
                    } else {
                        $awpcp_image_name_srccode="<img src=\"$awpcp_imagesurl/adhasnoimage.gif\" width=\"$displayadthumbwidth\" border=\"0\" alt=\"$modtitle\" />";
                    }
                } else {
                    $awpcp_image_name_srccode="<img src=\"$awpcp_imagesurl/adhasnoimage.gif\" width=\"$displayadthumbwidth\" border=\"0\" alt=\"$modtitle\"/>";
                }
    
                $ad_teaser = stripslashes(substr($rsrow[2], 0, 50)) . "...";
                $read_more = "<a href=\"$url_showad\">[" . __("Read more", "AWPCP") . "]</a>";
                $awpcp_image_display.="$awpcp_image_name_srccode</a>";
    
                $awpcp_image_display = (!$showblank && $hasNoImage) ? '' : $awpcp_image_display;
                $html_title = "<strong>$ad_title</strong>";
                $html_excerpt = $show_excerpt ? "<p>$ad_teaser<br/>$read_more</p>" : '';
    
                $output .= "<td>$awpcp_image_display  $html_title $html_excerpt</td>";
            }
        }

    [Moderator note: Please wrap all code in backticks]

    will give it a shot! Just making sure it wasn’t hard coded.

Viewing 12 replies - 1 through 12 (of 12 total)