Insights
Remove WordPress.org link in meta widget of WordPress > 3.6
You have to edit one of the core files of WordPress to get rid of the WordPress link in the widget box or you have to use any of the custom meta widget plugins which are available. Use the core method: Go to /wp-includes/ and edit default-widgets.php Search for „wordpress.org“ and you find the corresponding […]
Conditional statements for url in XenForo templates
[gard] If you need to check a conditional statement in your XenForo template for a specific part of a url just use the following syntax: <li id=“menu-item-14″ class=“<xen:if is=“{$requestPaths.requestUri} == ‚/community/marketplace/categories/marketplace.7/'“> current-menu-item</xen:if>“><a href=“http://www.xsimulator.net/community/marketplace/categories/marketplace.7/“>Marketplace</a></li> In this example, if the current Url is ‚/community/marketplace/categories/marketplace.7/‘ the class will be extended with current-menu-item I use that piece of code […]
phpinfo in XenForo
XenForo 1.2 You ll find the phpinfo() when you log into your admin panel and than add the following parameter to the admin url admin.php?tools/phpinfo There is no direct link to it in the admin panel, so thats a really „nice to know“.
MySql String replace with REPLACE()
[gard] Often i have to replace clearly identifiable strings (strings, text) with a new string in a MySQL column. Either its possible to use php, read the DB content and use str_replace() for string replacement, there is a much better way: Thank God, MySQL offers a native REPLACE() function therefore: REPLACE(str,from_str,to_str) Returns the string str with all […]
XenForo Nginx rewrite rules configuration for friendly url
[gard] Use the following configuration file to run your XenForo forum installation delivered by the Nginx webserver with friendly urls: The rules are very simple: Open your nginx.conf (You often in /etc/nginx): Inside the server block {} insert two location related sections: location / { try_files $uri $uri/ /index.php?$uri&$args; } location ~ /(internal_data|library) { internal; […]
Disable author meta box for specific pages and posts – WordPress
[gard] Sometimes its necessary to give your posts or pages switches to turn on and off specific template elements on your site. WordPress makes it really easy: If not already done, activate the Custom fields on the Screen Options menue at the upper right corner of your post: Than create any field and value, […]
Three and multi columns responsive css layout
One of the best source for a responsive easy adaptable responsive multi column layout is http://www.responsivegridsystem.com It´s not a bloated framework, neither a boilerplate or similar. It´s just a little bunch of very smart code to create a responsive div layout. I´ll use it at the frontpage of XSimulator.net. Just a example for a responsive […]
WordPress breadcrumbs without plugin
Find out how to get a cool breadcrumb navigation directly into your theme function.php without the need for any external plugin.
Limit revisions in WordPress 3.6
In WP older than 3.6 it´s possible to deactivate or limit revisions in WordPress with the entry define(‚WP-POST_REVISIONS‘, 100); It seems that it is not working any longer in WP 3.6. Fortunately there is a nice little plugin that works very reliable and is able to delete a whole bunch of old revisions between two […]