Is there a way to override the bfthumb default link and point to a different page?
How to override bfthumb and hard code a custom link?
(13 posts) (3 voices)-
- ChuckPosted 9 months ago #
-
yes, with php, but this is so much easier with the new version coming out this week, so wait for that. There you can override links with custom fields.
Posted 9 months ago # -
Hmm. We're about to launch our website this week by building out with your theme. Any idea what's forthcoming so we can figure if it's best to wait a week?
Thanks,
RayPosted 9 months ago # -
it's basically an improvement of bfthumbs, making it possible to have any post layout design anywhere.
Posted 9 months ago # -
Cool, I'll just hard code temporarily for now. Welcome back to the grind vfxdude!
Posted 9 months ago # -
So given the new theme and shortcodes, how would I create a thumbnail with a custom url?
Posted 9 months ago # -
Here's how to add a custom url for an image in the bfthumbs layout gui:
1. add a sid parameter to the bfthumbs shortcode. Example: sid="bfthumbs-mythumbs".
2. Click the "insert/update a shortcode" button.
3. Select the shortcode in the "current post shortcodes" list.
4. Click the "bthumbs layout" button.
5. Drag an image node (and any other information you want to display) to the right page.
6. Click on the image node to expand the parameters.
7. Write a name (this is the name of the custom field) in the the cf-link input field and save.
8. Go to the post and add a custom field with the name you specified and the url as value.The cf-link name can be added to the title too (and readmore link).
Posted 9 months ago # -
I finally got around to adding this custom image but for some reason, the custom link isn't working. I've created the unique sid, set up the bfthumbs layout. I've called the cf-link "customized" and created it under Custom Fields with the targeted link.
I also tried the same method on two different servers with no luck. Anything I'm missing or recommendations?
Posted 8 months ago # -
yes you are right, it does not work for the image (works for the title link though). I just have forgotten to implement it. A new version will be released in some days with this fixed.
Posted 8 months ago # -
I've updated to 1.4.1.1 but the cf-link still isn't working properly. By the way, the "readmore" node doesn't have a field for the cf-link. Would you mind taking a look? I hopfully followed your instructions correctly. I can PM you a login/pass.
Here's a screenshot of the custom shortcode. Also, check the testing page and custom field. Notice how the thumbnail is not appearing and cf-link is pointing to uncategorized. It should be pointing to this page.
Posted 8 months ago # -
did you add the custom field to the post (and not the page where the shortcode is on) listed by bfthumbs? I tested this now and it works.
Thumbnail not appearing? I see a thumbnail there though...
yeah I forgot to add the field to the readmore tag (implemented it, but forgot the field).
Posted 8 months ago # -
Yes, I added the custom field to the page (it's not on a post). Thumbnail is working though - must have been the server. Here's the shortcode:
[bfthumbs sid="bfthumbs-mythumbs" category="available" numposts="1"]Posted 8 months ago # -
the category="available" fetches posts, not pages. In other words, you have to add the custom field to every post you want to redirect.
Posted 8 months ago #
Reply
You must log in to post.