indybook
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Text Widget issuesHi teejayuu.
The WP text widgets won’t execute php code. You could use a plugin ( like PHP Code Widget ) or the widget_text filter
function php( $wtext ) { if( false !== strpos( $wtext, "<?php" ) ) { ob_start(); eval( "?>" . $wtext ); $wtext=ob_get_contents(); ob_end_clean(); } return $wtext; } add_filter('widget_text','php');
( please, use the function only if you are sure no role can access the widgets but the admins, otherwise a plugin is safer! )
Forum: Plugins
In reply to: add "styles" to the tinymce editorHi wombelt,
If you mean a little dropdown of predefined styles like the WP default one that says “Paragraph” and lets you select Address / Headings / pre … you need to add a button to the Editor first.
The easiest I guess would be:
// add dropdownfunction tiny_mce_buttons_2($butts) { $butts[] = 'styleselect'; return $butts; } add_filter('mce_buttons_2', 'tiny_mce_buttons_2');
Then pass your styles
function my_mce_styles($style) { $array = array( array( 'title' => 'Red text', 'styles' => array('color'=> 'red'), 'block' => 'span' ) ); $style['style_formats'] = json_encode( $array ); return $style; } add_filter( 'tiny_mce_before_init', 'my_mce_styles' );
Should do it
Forum: Plugins
In reply to: [Iconic Navigation] Installing menu icon in theme folderHi rijuroy, Thanks for contacting!
I’m not sure I got it right, theoretically you can’t activate a plugin from a theme directory. May be try changing the plugin path with
wp_register_plugin_realpath( $your_plugin_file )
Have you looked at that yet? I never played with this one and have no clue what are the possible downsides, might be a very bad idea to cheat on WP_PLUGIN_DIR )
May be you could just add your plugin normally and then use TGM class to recommend users for activation.
Check it here.
If you simply need to know a plugin path, this should work:include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); $plugins = get_plugins();
and then filter them against global $wp_plugin_paths by ‘TextDomain’.
Iconic navigation has ‘TextDomain’ property and it matches its folder and main file names, just in case. I find it handy when those names match so you don’t need more strings to vars )
Again if you need the iconic-navigation icons file simply copy it to your theme and include.
Let me know if it helps.Forum: Plugins
In reply to: [Iconic Navigation] Plugin errorafter migrationHi Angelo, the latest version should be fine if you update the plugin. Let me know if it still has the issue.
)Forum: Plugins
In reply to: [Iconic Navigation] Plugin errorafter migrationHi Angelo, thank you for letting me know. I think I’ve seen this before, it’s a php version. Could you possibly leave the plugin folder name changed till tomorrow so you can access your site, and I’ll make the fix first thing my morning? It’s a bit late for me now to work on this. But tomorrow morning you’ll be able to update the plugin and use it again. I’ll let you know by a comment here when it’s done, OK?
Forum: Themes and Templates
In reply to: Does this theme worth developing?Hi Jan Dembowski, thanks for your reply and help.
Sorry if I’m missing the idea. These are the quotes from the Your WordPress forum welcome message:This forum is for sharing your WordPress install with others
You can certainly post requests for people to review your site
That’s exactly what i requested. Just some feedback on my WordPress install. Sorry again.
May be you know a right community where I could ask for reviews? I’m not planning any license so far ) just feeling unsure about too much pink on a web store page.Forum: Themes and Templates
In reply to: Does this theme worth developing?Thanks for the reply, roiabrazaldo )
Forum: Plugins
In reply to: [Iconic Navigation] size code?Hi cerisedelicieuse,
You don’t need any code for icons size, just use dimension.75%
like you said.
The result you get will depend on your theme. The icon will be rendered 75% of its parent element size ( not the icon image size ). So if you are not sure about the parent element size or it’s not set by your theme, I’d suggest using pixels.Forum: Plugins
In reply to: [Iconic Navigation] post installation errorsHi killerdog, monkychilote. Thank you for contacting. Could you please give more detail on what PHP version your site is running on? If it’s less then 5.4, please write me via the demo site – Support, I’ll edit the plugin files for you.
Forum: Fixing WordPress
In reply to: Not Allowing Me To Changes Category SlugMake sure the slug you want is unique. It looks like you got more categories slugged dj-equipment, might be the reason.
Forum: Networking WordPress
In reply to: Removing "export" from my users admin panelIpstenu (Mika Epstein), it’s a good one, thanks! I never gave it much thought with singles, as the owners usually want a theme per a site. will try it definitely. Is productivity ok with it? Theoretically it should be
Forum: Networking WordPress
In reply to: Removing "export" from my users admin panelAmal 007, you are right about the theme function file. It’s a mu forum, my bad. should be mu-plugin file, of course, as Ipstenu (Mika Epstein) says.
Forum: Networking WordPress
In reply to: Removing "export" from my users admin panelfunction hide_export_from_non_admins() { if ( ! current_user_can( 'install_themes' ) ) { remove_submenu_page('tools.php', 'export.php'); } } add_action( 'admin_menu', 'hide_export_from_non_admins' );
Add this to your theme function.php
Forum: Plugins
In reply to: [Iconic Navigation] Add own iconsGood! I agree, it looks great. the icons are a bit blurry due to the real and set size mismatch, but it’s OK. I really like your web page and the pictures! Thanks for sharing )
Hi Geert,
The setting page works now, worked it out without debugging, so ignore my e-mail message.
Sorry for this inconvenience. Please, update the plugin when the update is there, I’ll make the fix to prevent the same possible bug asap.
Let me know if something is not working properly.