Category: "Tips for PHP"
Aggregating all posts at the front page b2evolution
In 1.8.X, by the default, the frist blog will aggregate the posts from all other blogs. But new version 2.4.x, it won't do by default. I read some posts in forums. Some people suggested to use multiblogs.php and summary.php. Yes, they are right, if you want to do a custom layout, please use multiblogs.php, if you want to have a summary of your blogs, using summary.php is a right choice. But if you just want the frontpage working like the older version. Please go to backoffice->Blog setting. And select you default blog. At Advance tab, there is an option to set aggregate blogs' post. You need to enter ID of blogs need to be aggregated in a comma-separated format, such as "2,3,5". Then it will work for you.
Subscribe Buttons for Wordpress
I have added the subscribe buttons of RSS for my wordpress blog.I tried Add to Any Subscribe Button and Subscribe Sidebar plugin. "Add to Any Subscribe Button" can add your rss feed to almost all feed readers , such as Google Reader, My Yahoo!, Netvibes and Windows Live. But it will lead the reader to their smart menu. That is not somethings I prefer. I prefer there was some button in my blog. The reader can directly add my feed to their rss reader directly. Subscribe sider can do that. But I don't know why after I added widget into my page. There is an extra h1 tag on the plugin.
But that is easy to fix.
From
Code
echo $before_widget . $before_title . $title . $after_title; |
Change to:
Code
$line_before = $before_widget . $before_title . $title . $after_title; | |
$line_before = str_replace($tags,"",$line_before); | |
echo $line_before; |
Easy, Easy, Easy
Change the homepage title at Joolma
Finally, I found out how to change the homepage title at Joolma 1.5. I can't change my homepage title,"Welcome to the front page" for months. That is because I am busy and lazy. But that is very easy.
1. go to Menu Manager.
2. Edit the "Home" Menu Option.
3. Then there is an option under "Paremeters - System" for page title
Multilingual Joomla
I am looking for the tools to do a Multilingual Joomla. I found Joom!fish. It works prefectly fine, if your website has a same structure across different language version. But in my case, that is hard. Because each version has a unique menu structure. All of them are very similar, but not exactly same. So, Joom!fish is not a solution in this case.
Get my WordPress in Mobile
I installed the WordPress Mobile Plug-in, http://wordpressmobile.mobi/. That is very easy to use. I upload the file into the plug-in directory. And it will be auto detect your browser version. If that is a mobile version, then it will display the simplified version. But you need to customize the advertisements, $backlink and $admobbottom.