kuckovic
Forum Replies Created
-
Forum: Plugins
In reply to: [Gutenberg] Add “ng-href” on a-tags?Hi Riad,
Okay – it would be awesome if this gets implemented in the future.
Meanwhile, I have already done, what you’ve suggested πI’ll look forward to future updates π
Best regards
AK- This reply was modified 8 years, 8 months ago by kuckovic.
Forum: Plugins
In reply to: [Gutenberg] 2 images in same blockIt’s working perfectly now π
I’ve put my solution above, so if anyone else experiences the same problems, they might get an epiphany, as I just did after my nap and reading your reply twice! πThanks again!
Forum: Plugins
In reply to: [Gutenberg] 2 images in same blockHi Andrew,
That makes perfect sense.
Here’s my save implementation:var attributes = props.attributes; return ( el( 'a', { href: attributes.primaryCaseUrl}, el( 'div', { className: 'case1' }, attributes.primaryLargeMediaURL && el( 'div', { className: 'large-img' }, el( 'img', { src: attributes.primaryLargeMediaURL } ) ), el( 'div', { className: 'arrow' }, el( 'span', {}, el( 'img', { src: '/wpdeveloper/wp-content/uploads/2017/09/arrow-outline-right.svg' }) ) ), el( 'div', { className: 'description' }, el( 'div', { className: 'title' }, attributes.primaryTitle ), el( 'div', { className: 'content' }, attributes.primaryTeaser ) ), attributes.primarySmallMediaURL && el( 'div', { className: 'desc-image' }, el( 'img', { src: attributes.primarySmallMediaURL } ) ) ) ) );Please let me know what you find out.
I guess I’m blind on the problem right now – so I continued with some other development meanwhile πUPDATE
I made it work now!
Of course, it all made sense, what you said about the querySelector.
I changed:primarySmallMediaURL: { type: 'string', source: attr( 'img', 'src' ) },To:
primarySmallMediaURL: { type: 'string', source: attr( 'img.smallimg', 'src' ) },And added a className in my
save:attributes.primarySmallMediaURL && el( 'div', { className: 'desc-image' }, el( 'img', { className: 'smallimg', src: attributes.primarySmallMediaURL } ) )Thanks a lot for opening my eyes!
Keep up the good work.Best regards
Aris Kuckovic- This reply was modified 8 years, 9 months ago by kuckovic.
Forum: Fixing WordPress
In reply to: Upgrade core through plugin?UPDATE:
Otto from the review team wrote this:
It’s not disallowed, as such. Never seen one do it, but we have some plugins that make WP core shift into beta test mode, so there’s plugins that do that kind of thing already.
So it is allowed to be done.
Furthermore, the users have the option to not update core, if they want that.
Thanks for all the help π– Aris Kuckovic
Forum: Fixing WordPress
In reply to: Upgrade core through plugin?Hi Tor-BjΓΆrn,
You’re right π
I will post their reply in here, for future issues on this matter.Thanks, guys!
Best regards
Aris KuckovicForum: Fixing WordPress
In reply to: Upgrade core through plugin?Hi Jacob,
Yes, my plugin is already in the plugin repo – I was just thinking about adding this feature aswell, but if it’s not allowed, then I won’t add it. I was just wondering, and didn’t want to add something that’s not allowed.
I’m adding a settings-page to the plugin, where the user can check which tasks he/she wants to run when the plugin is activated. And here I wanted to add the “Update WP to x.xx” if there was an update available.
But I don’t know – it was just a thought π
Best regards
Aris KuckovicForum: Plugins
In reply to: [Bulk Order Form for WooCommerce] Cant search for SKUAnd yes, I have set up the configuration to search by SKU …
I have 45K+ products – is it a problem to handle this amount of products?Forum: Hacks
In reply to: Redirect after successful wpdb->queryHi Amras,
Sure I can, but that won’t reload my page :/
And I can’t use “header(“location:”)” either.Som Im’m kindda stuck here…
Forum: Hacks
In reply to: Search price rangeStill nothing π
I don’t know what could be wrong in the code.. :/Forum: Hacks
In reply to: Search price rangeHI bcworkz
Well, now I get a “Can’t find a matching criteria” page when I search, so we are getting closer π
Still, if I search for a pricerange between 8200 and 8400 – I should get at least one result, but nothing comes up.
You know what it can be?
Forum: Hacks
In reply to: Search price rangeHi bcworkz,
Okay, here’s how I’ve done it so far.
I don’t know if it’s the right approach – but you tell me πThe form:
<label>Min. husleje</label> <input name="minimumhusl" id="minimumhusl" onchange="" class="textfield" type="text" /> <label>Maks. husleje</label> <input name="maksimumhusl" id="maksimumhusl" onchange="" class="textfield" type="text" />As you see, I’ve made 2 fields.
“Minimumhusl” is equal to “low” and “Maksimumhusl” is equal to “high”.
And here is how I’ve done the “acceptpage”I’m not sure if I’ve done it the right way.
It wont work when I upload it πForum: Hacks
In reply to: Search price rangeForum: Hacks
In reply to: Search price rangeHi bcworkz!
Thanks for your amazing help – REALLY appreciated!
Okay, I have some codes for you here:The code from search.php (acceptpage I think):
if($_REQUEST['srch_price']) { $is_search = 1; $srch_price = $_REQUEST['srch_price']; if(strstr($srch_price,'-')) { $srch_price_str = str_replace('-',' and ',$srch_price); $srch_price_arr = $wpdb->get_col("select post_id from $wpdb->postmeta where meta_key like 'price' and meta_value between $srch_price_str"); } elseif(strstr($srch_price,'+')) { $srch_price_str = str_replace('+','',$srch_price); $srch_price_arr = $wpdb->get_col("select post_id from $wpdb->postmeta where meta_key like 'price' and meta_value >= $srch_price_str"); } $all_pids_arr = array_intersect($all_pids_arr,$srch_price_arr); }And the form:
<label><?php echo SEARCH_PRICE_RANGE_TEXT; ?> : </label> <select name="srch_price" id="srch_price" onchange="" class="fl select"> <option value=""><?php echo SELECT_ALL_PRICE_TEXT; ?> <?php _e("in","templatic");?> <?php echo get_currency_sym();?> </option> <?php echo get_price_range_dl($_REQUEST['srch_price']);?> </select>I really appreciate your help!
Forum: Hacks
In reply to: Search price rangeHi Bcworkz,
Can you please tell me how to change those fields?
And whats the “accepting page”?Sorry for the inconvenience
Aris
Forum: Hacks
In reply to: Search price rangeAnd here’s a link to my website, of course:
http://t2.designa-homepages.dk/