Wordpress 2.8 Template Tags/wp tag cloud

Usage

Default Usage
’smallest’ => 8,
‘largest’ => 22,
‘unit’ => ‘pt’,
‘number’ => 45,
‘format’ => ‘flat’,
‘orderby’ => ‘name’,
‘order’ => ‘ASC’,
‘exclude’ => ,
‘include’ => ,
‘link’ => ‘view’,
‘taxonomy’ => ‘post_tag’,
‘echo’ => true ); ?>

By default, the usage shows:

smallest - The smallest tag (lowest count) is shown at size 8
largest - The largest tag (highest count) is shown at size 22
unit - Describes ‘pt’ (point) as the font-size unit for the smallest and largest values
number - Displays at most 45 tags
format - Displays the tags in flat (separated by whitespace) style
orderby - Order the tags by name
order - Sort the tags in ASCENDING fashion
exclude - Exclude no tags
include - Include all tags
link - view
taxonomy - Use post tags for basis of cloud
echo - echo the results
Parameters
smallest
(integer) The text size of the tag with the smallest count value (units given by unit parameter).
largest
(integer) The text size of the tag with the highest count value (units given by the unit parameter).
unit
(string) Unit of measure as pertains to the smallest and largest values. This can be any CSS length value, e.g. pt, px, em, %; default is pt (points).
number
(integer) The number of actual tags to display in the cloud. (Use ‘0′ to display all tags.)
format Read the rest of this entry »

Share 1 set vbulletin code with multi vbulletin forums in one host

If you have several vbulletin licenses, and you only have very small web hosting. I can tell you a skill on how to share one set vbulletin code with multi vbulletin licenses.

add the following to config.php.

$arrays=array(
'localhost'=>‘configlocalhost.php’,
‘127.0.0.1′=>’config127.php’,
);
$url = $arrays[$_SERVER[’HTTP_HOST’]];
include $url;
?>

and change the other 2 forums’ config.php to configlocalhost.php and config127.php.

that’s all.

Text Vbulletin vistor ip

<if condition=”$showabiaoip==’117.95.53.162′”>
$showabiaoip <br />
</if>

If  the vistor’s ip is 117.95.53.162, then show the visitor’s ip, otherwise, do nothing.

Delet category and documents powerfully

function myrmdir($parth)
{
$handle=opendir($parth);
while ($file = readdir($handle))
{
if ($file=='..' || $file=='.') continue;
if (is_file($parth.'/'.$file))
{
echo 'del document:'.$parth.'/'.$file.'
‘;
unlink($parth.’/’.$file);
}
else myrmdir($parth.’/’.$file);
}
closedir($handle);
echo ‘del category:’.$parth.’
‘;
rmdir($parth);
}
myrmdir(’myparth’);
?>

Chang myparth to the path you plan to del, save as del.php, upload del.php to the space you want to del document or category. All the files will be deleted.

How to show moderator on index forum if vbulletin?

Q:How to show moderator on index forum if vbulletin?

A: vBulletin version 3.0.x to 3.6.7PL1
Admin CP -> vBulletin Options -> vBulletin Options ->

Forum Listings Display Options -> Show Moderator Column

Q:Is it also possible to show the moderators below the board description?

A:
Just edit template(s): forumhome_forumbit_level1_post,

 forumhome_forumbit_level2_post and add code within

tags
$forum[moderators] You will then need to enable moderators column and then you will have to edit templates and remove column.
FORUMDISPLAY, FORUMHOME, forumhome_forumbit_level1_nopost, forumhome_forumbit_level2_nopost

wordpress ban ip plugin

Wordpress ban ip pluginwill display a custom ban message when the banned IP, IP range, host name or referer url trys to visit you blog. You can also exclude certain IPs from being banned. There will be statistics recordered on how many times they attemp to visit your blog. It allows wildcard matching.

Wordpress ban ip plugin will display a custom ban message when the banned IP, IP range, host name or referer url trys to visit you blog. You can also exclude certain IPs from being banned. There will be statistics recordered on how many times they attemp to visit your blog. It allows wildcard matching too.

Download:http://wordpress.org/extend/plugins/wp-ban/

Cyb - Advanced Permissions Based on Post Count

How it works and why it’s better than vB Promotions system…
First of all it’s very easy to use.

Forum is shown on forumhome but if you have no needed post count you’ll see lock icon and predefined error message when try to access. When you set this via vB Promotions system forum is hidden on forumhome and you must create additional usergroup to make all this working.

When user collect needed amount of posts he will be able to access protected forum immediately. When you set this via vB Promotions system then user must wait until Promotions task is executed … then he will be able to access protected forum. How much time user must wait it depends on settings in AdminCP/Scheduled Tasks… and if you set this to run every minute it pushes your server. If you set it to 2 or more minutes then user must wait more and more… and nobody like it.

Read the rest of this entry »