axew3.com

Shortcode: phpBB PM into WordPress

by

WP_w3all phpBB PM into WordPress shortcode version 1.0

check all others shortcodes listed under the “common how” to section

[w3allphpbbupm]

The w3allphpbbupm shortcode display phpBB Private Messages count into a div, which html output result will be by default something like this:

<div id="w3pm_id" class="w3pm_class"><a href="https://localhost/wp51/phpBB3/ucp.php?i=pm&folder=inbox">You have 1 unread forum PM</a></div>

To display this way, you’ll add the shortcode as is:

[w3allphpbbupm]

To change attributes class name, id or to get a element link with target _blank or to add inline style to the div element, params are:

     'w3pm_class' => 'w3pm_class',
     'w3pm_id' => 'w3pm_id',
     'w3pm_inline_style' => '',
     'w3pm_href_blank' => ''

so for example:

[w3allphpbbupm w3pm_class="myclass" w3pm_id="myid" w3pm_inline_style="padding:10px;border:1px solid grey;" w3pm_href_blank="1"]

To set the target="_blank" pass as on the example the w3pm_href_blank="1" argument with value 1.