maxemil
Forum Replies Created
-
Forum: Plugins
In reply to: [Secret Content] [Plugin: Secret Content] Search componentsHi
If you provide a link to your page with this floating searcbox, then I can try to understand your issue. Currently I have no reason to believe its due to the plugin.
The plugin manipulates results from the wp query, and as such the search results is also filtered.
Is your question related to hiding the searchbox? you dont want unregistered members to see the searchbox?
Sorry for the late reply – its summertime, and wordpress dident send me a notification ??
An easy way to find your file path on BOTH systems, are of course to install the plugin on BOTH systems ??
@alchymyth nothing prevents me from using my own example.
If anyone needs to do what I do:
add_filter( 'dynamic_sidebar_params', 'add_my_widget_position_class'); function add_my_widget_position_class($params) { $widget_class = $params[0]['id'].' '; // make sure you leave a space at the end $widget_class = 'class="'.$widget_class; $params[0]['before_widget'] = str_replace('class="',$widget_class,$params[0]['before_widget']); return $params; }
BR\Emil
Hi,
Not really…
register_sidebar(array( 'name' => __('Home Widget 1', 'responsive'), 'description' => __('Area Six - sidebar-home.php', 'responsive'), 'id' => 'home-widget-1', 'before_title' => '<div id="widget-title-one" class="widget-title-home"><h3>', 'after_title' => '</h3></div>', 'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">', 'after_widget' => '</div>' ));
makes it show the widget type like:
<div id="text-3" class="widget-wrapper widget_text"><widget content here></div>
What I request is that the widget AREA that you specify is used as the id/class instead.
like:
'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s widget-home-1">'
Becourse id=”text-3″ or class=”widget_text” is not specifiv to the position/area on the website – but to the functionality of the chosen widget – I would have to make a css specification to all thinkable widgets, instead of on the area..
We want the same thing, Im just doing it in another way.. ??
BR\Emil
Forum: Themes and Templates
In reply to: [Responsive] [Theme: Responsive] small menu fixconfirmed, gj!
– removed video ??Forum: Themes and Templates
In reply to: [Responsive] [Theme: Responsive] small menu fixgoogle chrome / latest.. (18 something)
see a small vid here.. https://oneconsult.dk/tmp/
Awsome work Emil Uzelac, it was mostly for selfhelp if anyone stumbles on the same ??
Forum: Plugins
In reply to: [wk-email-antibot] [Plugin: wk-email-antibot] Link is not clickableWhen correct shortcode is used, the link is clickable:
[antibot mailto="[email protected]"]
However, if you use the other shortcode, it will not be clickable:
[antibot mail="[email protected]"]
Did you use correct shortcode?
If you still have problems, please provide a link to your site so I can have a look on it ??
Forum: Hacks
In reply to: Add id="" to thumbnails in indexdo something like this:
$attr = array( 'id' => 'slide_thumb_'.$post->ID ); echo get_the_post_thumbnail( $post->ID, 'thumbnail', $attr );
Then you can use #slide_thumb_<your_post_id> as selector.
also see https://codex.www.ads-software.com/Function_Reference/get_the_post_thumbnail
BR\ME
Forum: Hacks
In reply to: Public attribute for register_post_type()hmz.. I had a comment, but I then realized it was my fault :p
theres a delete button missing in this forum.Forum: Hacks
In reply to: tinymce setup issue in pluginmake sure you use the nightly build:
https://www.ads-software.com/nightly-builds/wordpress-latest.zipand follow the ticket, its being updated almost daily:
https://core.trac.www.ads-software.com/ticket/17144maby download the example plugin:
https://core.trac.www.ads-software.com/attachment/ticket/17144/test-wp-editor-class.2.zipIm implementing it in a plugin, and it seems to work as expected ??
Also the same loop issue when in the admin line 101
admin/administration_page.php
if ($tqmcf) // not empty // new { // new $fields = array(); foreach($tqmcf as $field) { $fields[] = $field["slug"]; } $fields = "'".implode("', '", $fields)."'"; $items = $wpdb->get_col("SELECT DISTINCT(meta_key) FROM $wpdb->postmeta WHERE meta_key LIKE '%tqmcf_%' AND meta_key NOT IN ($fields) "); } // new
again, this is a nice plugin ??
Forum: Fixing WordPress
In reply to: using alternative wpdb (connecting a page template to external db)A quick follow up to myself,
I cant in my head consume the way I would have to weave together the databases, so I’m using a full install of WP in a subdirectory and a remote database..The only real not so cool thing is the detection of which WP install does the presentation. (when people signup for news and comment notification on the different databases & synchronizing certain users..)
Why all this, well I have a internal website inside a firewalled network, and a external website to communicate comments realtime.. anyways.. ??
Forum: Plugins
In reply to: [comments-likes] [Plugin: comments-likes] pulling top 5 likes@biralucena
You cant really do that in a sql like this, theres no “page id” in the table.. (these are comment likes, not page/post likes)Btw: the sql in my first example should be
$liketop5 = $wpdb->get_results($wpdb->prepare("SELECT like_ID, like_comment_ID FROM $cl_table_name GROUP BY like_comment_ID ORDER BY count(like_ID) desc LIMIT 5"));
count, not sum… silly me ??
Forum: Fixing WordPress
In reply to: Subscribe 2 – Optin Box on external websiteIm currently using subscribe2 in a custom signup box,
Check how to load the wp framework on any php page, useually you can do something like.. (fix the path)
// Initialize wordpress framework if missing (when email confirmation click) if (!function_exists('get_option')) { require('../../../wp-blog-header.php'); };
And I call the subscribe2 shortcode whereever I want, like this…
<?php $shortcode = "[subscribe2 hide=unsubscribe]"; $content = do_shortcode( $shortcode ); echo $content; ?>
I also had to add IDs to the form and elements inside the subscribe2.php file, to make it look the way I wanted.
Further, to take the return message whenever someone has clicked submit (which hasent been ajaxed yet) I use jQuery to check the ID if its empty – and then react on the message if not empty..
long story short – its doable, but you gotta stick your feet in the water.
BR\Emil
Forum: Themes and Templates
In reply to: Function To Check If Category Is Child Of Another Category