Viewing 15 replies - 31 through 45 (of 47 total)
  • Thread Starter philmay

    (@philmay)

    i can certainly appreciate that.
    there is nowhere i can just plug <img src="{thumbnailResize $post->thumbnailSrc, w => 300, h => 300}" alt="{__ 'Item image'}"> to grab the correct image thumbnail? thats the code i got from the page itself that displays the individual items featured image thumb

    Thread Starter philmay

    (@philmay)

    maybe i can stick that in the rating code somewhere so it shows in the box for every new rating

    Thread Starter philmay

    (@philmay)

    # Grab the content of the post once its been filtered for display - this converts app tags into HTML so we can grab gallery images etc.
    	$args = array(
    	'post_type' => 'attachment',
    	'numberposts' => -1,
    	'post_status' => null,
    	'post_parent' => $postid
    	);
    	$postcontent2="";
    	$attachments = get_posts( $args );
    	if ( $attachments ) {
    		foreach ( $attachments as $attachment ) {
    			if ($attachment->post_type=='attachment') {
    			  $junk=wp_get_attachment_image_src( $attachment->ID,'wordbooker_og');
    			  $og_image=$junk[0];
    			  if(!isset($og_image)) {
    				$junk=wp_get_attachment_image_src( $attachment->ID,'large');
    				$og_image=$junk[0];
    			  }
    			  if(!isset($og_image)) {$og_image=wp_get_attachment_url($attachment->ID);}
    			$post_content2 .= ' <img src="' . urlencode($og_image) . '"> ';
    		   }
    		}
    	}

    that looks like the spot i would have to plug in
    <img src="{thumbnailResize $post->thumbnailSrc, w => 300, h => 300}" alt="{__ 'Item image'}">

    specifically line 1507 of wordbooker.php

    i am probably wrong, but im going to try it and see what happens

    Thread Starter philmay

    (@philmay)

    yeah that definitely does not work.

    is it possible for me to change the link here for the blank image to use the dynamic image url above?

    else {
    		if (isset($wordbooker_settings['wordbooker_use_this_image']))  {
    			$images[]=$wordbooker_settings['wb_wordbooker_default_image'];
    			if ($flag==1) {wordbooker_debugger("No Post images found so using open graph default to keep Facebook happy ",'',$postid,90) ;}
    			}
    		else {
    			$x=get_bloginfo('wpurl').'/wp-content/plugins/wordbooker/includes/wordbooker_blank.jpg';
    			$images[]=$x;
    			if ($flag==1) {wordbooker_debugger("No Post images found so loading blank to keep Facebook happy ",'',$postid,90) ;}

    Plugin Author Steve

    (@steveatty)

    Phil, did you check to turn off the only use thumbnail option? If you did then its something odd in your theme as Wordbooker works fine with the normal methods of creating thumbnails and allows you to add custom post fields to search for images, as documented in the user manual.

    Thread Starter philmay

    (@philmay)

    yes i did. i understand its more than likely my theme. i am hoping to find out how to replace your links to /wp-content/plugins/wordbooker/includes/wordbooker_blank.jpg with <img src=”{thumbnailResize $post->thumbnailSrc, w => 300, h => 300}” alt=”{__ ‘Item image’}”> because i have no idea how else to do it. Then maybe i can just set it to use a defalt image and it will call the dynamic link instead of the static link to the image. I wish i knew js and php then i wouldnt be so lost

    Plugin Author Steve

    (@steveatty)

    Find out from the theme developers what internal FB Custom field they are using to store the thumbnail in:

    http://codex.wordpress.org/Using_Custom_Fields

    Then once you know that you can add that to the list in the Wordbooker configuration.

    Editing the code is NOT a good idea because each time an update comes out you’ll lose the changes.

    Thread Starter philmay

    (@philmay)

    so if i find out that custom field i can set wordbooker to pull it?

    Plugin Author Steve

    (@steveatty)

    Yes, you just add it to the list of custom fields to scan. They should have stored it in the post meta data rather than doing anything to the post data structure.

    Thread Starter philmay

    (@philmay)

    well, if i use the themes csv importer to import a listing, the featured image has to be in the column with the taxinomy “post_image”

    would post_image then be the meta?

    Thread Starter philmay

    (@philmay)

    or does this give a hint?

    function aitDirItemFeaturedImageMetabox() {
    global $wp_meta_boxes;
    // only if exist
    if(isset($wp_meta_boxes[‘ait-dir-item’])){
    foreach ($wp_meta_boxes[‘ait-dir-item’] as $contextName => $context) {
    foreach ($context as $boxesName => $boxes) {
    foreach ($boxes as $boxName => $box) {
    if($boxName == ‘postimagediv’){
    remove_meta_box( ‘postimagediv’, ‘ait-dir-item’, ‘side’ );
    add_meta_box(‘postimagediv’, ‘Image for item’, ‘post_thumbnail_meta_box’, ‘ait-dir-item’, ‘normal’, ‘high’);

    Plugin Author Steve

    (@steveatty)

    First of all make sure Wordbooker is NOT just using thumbnail images – I’ve told you which option to uncheck which will affect all new posts. If you are testing by republishing an existing post then you’ll need to change the setting on each post as Wordbooker remembers the settings for each post.

    Secondly – ask them where those images are stored. If they are stored in the internal Post Meta then we need to know the tag name. If they’re stored as attachments on each post then Wordbooker should find them once you’ve told it to find all images.

    Thread Starter philmay

    (@philmay)

    i wish there was a way i could find out using phpmyadmin or examining the theme code because they take weeks to respond.

    Plugin Author Steve

    (@steveatty)

    they don’t seem to be very responsive – or helpful. I had a dig round on their support forums to see if I could find anything of use.

    Thread Starter philmay

    (@philmay)

    lol Steve, believe me i have tried. They offer no support beyond installation and basic functions. If you think this is a hard project, I still need to find a way to allow site users to submit location based work requests. For example if you are looking for a house painter youd choose “House Painters” from a category dropdown, select how far away you want to look, describe the job and submit. Then every business listed under “house painters” category would recieve the request as long as they are within the location/distance parameters you defined in the form. Then theyd be able to contact you so give you an estimate. Ive been searching for weeks for a way to do that and im not even going to mention it on the theme support forums because the devs there are 100% useless. If it werent for the amazing features and functionality of the theme itself id ditch it and get another from someone else.

Viewing 15 replies - 31 through 45 (of 47 total)
  • The topic ‘wordbooker is posting the wrong url’ is closed to new replies.