WordPress phpBB Latest phpBB Topics shortcode by forums IDS

WP_w3all 1.8.8 or >

Vers. 1.0

see also:
phpBB posts into WordPress post shortcode how to
WordPress phpBB Latest phpBB Topics shortcode how to

WordPress phpBB Latest phpBB Topics FOR SPECIFIC FORUMS IDS – shortcode how to

To add a WP_w3all shortcode, and display a list of Latest updated phpBB Topics from specified Forums ID/IDS into a WordPress post/page, the WordPress shortcode to use is like this:

change the topics_number value 5 with the number of Last phpBB topics/posts you need to retrieve and display , AND forums_id value 3,9
based on forum’s ids you like to retrieve posts from. In the above shortcode example it retrieve posts from forums with ID 3 and 9 (substantially, add forum’s IDS separated by comma).
To retrieve posts by a single forum
, just add the single ID
(like on next example).
If you want display Latest Posts with post text, you’ll use the shortcode in this way:

change the text_words value 30 based on how many words you want to display for listed posts. Here we retrieve forum’s posts from an unique  forum with ID 6

About avatars: will use the same settings you choose for avatars in WP_w3all config page.

Note: if you want to add custom style to Last Topics/post shortcode output, the file used by the Last Topics/post shortcode you need to look for, may to add custom modifications in, is:

wp-content/plugins/wp-w3all-phpbb-integration/views/phpbb_last_topics_forums_ids_shortcode.php

WordPress Shortcode: last phpBB topics/posts into WP post

WP_w3all 1.7.5 or >

Vers. 1.0

see also:
phpBB posts into WP post shortcode
Latest phpBB Topics by specific forums ids shortcode how to

WordPress phpBB Latest phpBB Topics shortcode how to

To add a WP_w3all shortcode, and display a list of Latest updated phpBB Topics into a WordPress post/page, the WordPress shortcode to use is like this:

change the topics_number value 5 with the number of Last phpBB topics/posts you need to retrieve and display.

To display with post text, use the shortcode in this way:

change the text_words value 30 based on how many words you want to display for listed posts.

This feature will use the same settings you have choose for avatars in WP_w3all config page.

Note: in case you want to add custom style the output of Last Topics/post shortcode, the file used by the Last Topics/post shortcode you need to look for, may to add custom modifications is:

wp-content/plugins/wp-w3all-phpbb-integration/views/phpbb_last_topics_output_shortcode.php

that is not the same used to output phpBB Last Topics on widgets, which is instead the file phpbb_last_topics.php  (as you’ll see on same folder).

How to activate shortcode into WordPress Posts Replies or Widgets or even Excerpt?

About the above, consider the fact that if shortcode is activated in this way on comments, the shortcode (any, not only the WP_w3all shortcode) can be used by any commenting user on comments, if a plugin not provide explicitly the feature to disable on comments the shortcode for all users except specifics groups.

WordPress shortcode for comments, widgets and excerpts

The following add_filter lines of code that will activate shortcode for Posts Comments, Widgets and Excerpts in WordPress, could also be added into your theme functions.php file.

Or if you wish, you can add it on WP_w3all plugin (that allow you to show phpBB posts into WordPress) inside the wp_w3all.php file (NOTE: when plugin update you’ll lost these modifications).

Open wp_w3all.php and search for line:

immediately after, add the follow line/s, about what/where you want to activate shortcode

Activate shortcode for Posts Comments:

Activate shortcode for Widgets:

Activate shortcode for Excerpt:

As said above, you could instead add these “activation” code lines for shortcode in Posts Comments, Widgets or Excerpts in WordPress, into the functions.php file of your WordPress theme.

WordPress Shortcode: phpBB posts into WP post

WP_w3all 1.7.4 or >

see also:
WordPress phpBB Latest phpBB Topics shortcode how to
Latest phpBB Topics by specific forums ids shortcode how to

phpBB posts – WP post shortcode how to

To add a WP_w3all shortcode, and display a phpBB post into a WordPress post, you need to choose a phpBB Post ID (note: post ID NOT Topic ID) to display, and add it into WordPress post, like this:

Change the value 1202 with the post ID you need to display.
( POST ID NOT TOPIC ID )

If you want display the post as plain text (so the bbcode will be removed from the output) use:

The simple bbcode parser function, display all default bbcode tags, excluded flash, attachments and email, check the list on this phpBB help page, phpBB bbcode how to
which are:

[b] [u] [i]  [list] (all lists type) [size] [color] [url] [image] [code]

added: [media] bbcode parsing (video etc embed)
useful if in phpBB is installed the media embed  mod.

Note: on this phpBB installation, is not installed the phpBB Media Embed mod to display media/video into phpBB posts,  by the way, adding the [media] bbcode into a phpBB post like this:

in this case the [media] bbcode into the real phpBB post will not be parsed (because  the Media Embed mod has not been installed in phpBB) but will be parsed into the WP post, because recognized and parsed by the WP_w3all plugin code.

It can be considered as 1.0 version, that work quite fine until bbcode tags structure is respected.

Here an example for a phpBB postID 2249
which you can see in phpBB at this link: https://www.axew3.com/w3/forums/viewtopic.php?f=13&t=566&p=2249#p2249

the shortcode used into this WP post to display the phpBB postID 2249, with bbcode formatted, will be this:

Shortcode output for post id 2249 is right here:

This is huge red text
so i want this text bold,
and after i like to display a piece of code: <?php function test() { $foo = "local variable"; echo '$foo in global scope: ' . $GLOBALS["foo"] . "\n"; echo '$foo in current scope: ' . $foo . "\n"; } $foo = "Example content"; test(); ?> then i want display a big test but without colorize it:
WoW! i like it ...
and i hev some list to display:
  • The first possible answer
  • The second possible answer
  • The third possible answer
in different format
  1. The first possible answer
  2. The second possible answer
  3. The third possible answer
and i want underline text
or quoted text:
una canzone per te
so a nice image:

then more strange bad code: <test />$find = array( '~\[img\].*?\[/img\]~si', // if there links/text for the image elsewhere, remove. Done above '~(^(\r\n|\r|\n))|^\s*$~m', ......... ); an url with text
Visit phpBB!
and an url
https://www.wordpress.org/
and more code for bbcode parsing: // partial bbcode regex $find = array( '~\[b\](.*?)\[/b\]~usi', '~\[i\](.*?)\[/i\]~usi', '~\[u\](.*?)\[/u\]~usi', '~\[quote\](.*?)\[/quote\]~usi', '~\[size=(.*?)\](.*?)\[/size\]~usi', ); and an image link also:



NOTE: on this phpBB example is not installed the phpBB Media Embed mod, to display video into phpBB posts, but if i add this bbcode into this phpBB post like this:

it will not be parsed into this phpBB post, because the mod has not been installed in phpBB, but will be parsed into the WP post because recognized and parsed by the WP_w3all plugin code.

you cannot add, expecting it will be parsed: an attachment, flash or email bbcode tag.
see the result of this post parsed into a WordPress post via Shortcode here: https://www.axew3.com/w3/2017/07/wordpress-shortcode-phpbb-posts-into-wp-post/

you need a more improved version of the function that do this? email me here: me@you.us
As you see was not so important to add email parsing .... (what?)

Cheers to all cool people!