Wordpress

wordpress hacks, wordpress modification, wordpress changes, wordpress updates, wordpress themes, wordpress plugins, wordpress help

Wordpress Comma Delimited Categories

1) Add your own delimiter (comma and other) and display Categories (including child categories)
2) Allows you to list categories with/without Hyper Link
4) This is an extension of wordpress_list_categories() so all the parameters, you use in that function, will work here also.
3) Works well in 2.3 or later
Usages:
webwalas_list_categories(’depth=1&show_count=0&title_li=&orderby=ID&show_link=yes&style=webwalas&deli=, &exclude=257′);
if show_link=yes (hyperlink will be added)
if style=webwalas (default [...]

Import PHPBB3 Users to Wordpress

Here we assume that you have just installed Wordpress from scratch and this code will overright other users but admin.
By default the user permissions will be “contributor”.. and you can change that later from admin.

 

<?php

$db=mysql_connect("localhost","username","password") or die(mysql_error());

mysql_select_db("databasename",$db) or die("Could not select to the DB");

 

 

$result=mysql_query("select username,username_clean,user_password,user_email,user_website from phpbb_users") or die(mysql_error());

while($row=mysql_fetch_object($result))

{

        mysql_query("insert into wp_users [...]