Coming 1.9.7 WP_w3all RSS feeds shortcode, iframe v4

Locked
User avatar
axew3
w3all User
w3all User
Posts: 1627
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Coming 1.9.7 WP_w3all RSS feeds shortcode, iframe v4

Post by axew3 » Fri Mar 08, 2019 10:34 pm

Since a "strange" question, asking to retrieve forums data without having possibility to access the phpBB config.php values by a domain not under control, cross domain, first idea/answer has been: not possible.
Second answer i've think: ... or better, would be possible via RSS and if this board run with phpBB and phpBB have a default RSS system.

Subsequent has been the coded shortcode to retrieve feeds from any URL in WordPress, not only from phpBB to grab RSS in any flavors.

The shortcode to use will be like this:

Code: Select all

[w3allfeed w3feed_url="https://www.axew3.com/w3/forums/feed.php?mode=news" w3feed_items_num="10" w3feed_text_words="0|30|content" w3items_ul_class="myclass" w3items_li_class="myclass"]
params to pass are quite well self explained:

w3feed_url
w3feed_items_num
w3feed_text_words (if 0 without content, only link and author/date, OR number of words, OR entire content)
w3feed_ul_class
w3feed_li_class


it will be added into next coming soon 1.9.7

New iframe v4 code with new scroll way (v4 new scroll example is actually online here, but it is not complete and still lack of some adjustment to scroll correctly in any situation) will be also added.

Some old plugin shortcode and the widgets code will be simplified and rewrite to be easier to customize for anyone, like this last one about feeds will be.

User avatar
axew3
w3all User
w3all User
Posts: 1627
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Coming 1.9.7 WP_w3all RSS feeds shortcode, iframe v4

Post by axew3 » Sat Mar 09, 2019 12:04 am

The RSS feed should be possible to be used also without that the plugin has been setup/activated with a valid path to a valid phpBB config.php.

Since RSS feed to retrieve data not require params/credentials (commonly this is it, but could ... just not considered this aspect for now) and since it return any kind of data styled and ready to be used into any context, and the plugin useful even if used for this single feature, it need to be usable also as standalone.


User avatar
axew3
w3all User
w3all User
Posts: 1627
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Coming 1.9.7 WP_w3all RSS feeds shortcode, iframe v4

Post by axew3 » Wed Mar 13, 2019 11:10 am

new way to style Last Topics and Feeds shortcodes coming on 1.9.7:
new way to style listed shortcodes
Several fixes more ... then let's adjust something more about scroll iframe v4 code and we are ready to go with 1.9.7 release.

User avatar
axew3
w3all User
w3all User
Posts: 1627
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Coming 1.9.7 WP_w3all RSS feeds shortcode, iframe v4

Post by axew3 » Thu Mar 14, 2019 9:07 am

Ok, the scroll has been little improved.
I see some aspect that may can further more adjusted, by the way, simple modifications as are actually applied on this online example, seem to cover +- any expected correct scroll behavior. But i've not test anything, so if any problem/bug you may note in the while into this online running iframe integration, please let know here in reply. 1.9.7 is coming very soon ...

User avatar
axew3
w3all User
w3all User
Posts: 1627
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Coming 1.9.7 WP_w3all RSS feeds shortcode, iframe v4

Post by axew3 » Thu Mar 14, 2019 10:34 am

the v4 iframe code has been moved to the 2.0.0 release, where more changes will be applied.
At moment, to achieve the same result as it is on this online example, the smooth scroll, you'll need to follow this procedure:
smooth scroll for v3 iframe code

User avatar
axew3
w3all User
w3all User
Posts: 1627
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Coming 1.9.7 WP_w3all RSS feeds shortcode, iframe v4

Post by axew3 » Thu Mar 14, 2019 3:46 pm

the scroll code has been improved using jQuery for advanced and easier 'all browsers compatible' code.
https://www.axew3.com/w3/2019/03/smooth ... iframe-v3/

User avatar
axew3
w3all User
w3all User
Posts: 1627
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Coming 1.9.7 WP_w3all RSS feeds shortcode, iframe v4

Post by axew3 » Thu Mar 14, 2019 3:54 pm

and at date of this post definitively fixed wrapping with document.ready in this way:

Code: Select all

jQuery( document ).ready(function() {
jQuery('html, body').animate({
    scrollTop: jQuery('.site-content').offset().top
 }, 300);
});
check how to here:
https://www.axew3.com/w3/2019/03/smooth ... iframe-v3/

well yes, it is the same above

User avatar
axew3
w3all User
w3all User
Posts: 1627
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Coming 1.9.7 WP_w3all RSS feeds shortcode, iframe v4

Post by axew3 » Thu Mar 14, 2019 11:29 pm


Locked