Skip to main content
Recent Posts
21
Feature Discussion / Re: PWA Progressive Web App
Last post by Steeley -
Quote from: Spuds – I was thinking that if offline and they hit POST then it would show a message such as ......


"You are off line - click 'save as draft' then turn this off ...
....and go play!"


{sheesh, you thought I was making funny?} :rolling_eyes:

:stuck_out_tongue:

Quote from: ahrasis – So, if member is offline, keep it in PWA cache, but when he is back should it immediately be posted or prompt him whether he wants it to be posted or discard it?

No auto-post... but maybe a pending message flag.. invariably events will overcome the post in the meantime, the poster will think better of it, and go to edit/delete it only to discover that at some point while playing the connection was re-established and the (now outdated/unrevised) post was sent unknowingly..:face_with_symbols_over_mouth:
[/quote]
22
Feature Discussion / Re: PWA Progressive Web App
Last post by Spuds -
I was thinking that if offline and they hit POST then it would show a message such as "You are offline, would you like me to send the message when the connection is restored" or something like that.  Otherwise it would stay as a draft, and maybe push the draft when the connection is restored.
23
Feature Discussion / Re: Look up IP on a regional whois-server
Last post by Spuds -
Thanks for the report ... yeah that is a change, surprised they don't have a redirect setup.

Looks like you do not need to set the flags (as those are the default) so just a https://apps.db.ripe.net/db-web-ui/query?searchtext=0.0.0.0 should work.
24
Feature Discussion / Look up IP on a regional whois-server
Last post by Burke Knight -
Okay, I found something that is not working anymore.

Look up IP on a regional whois-server - action=trackip;searchip

It appears that RIPE (Europe, the Middle East and parts of Africa and Asia) has changed the way their site does the searches, so a new URL has to be set for it:

Current URL when click:
Code: [Select]
https://apps.db.ripe.net/search/query.html?searchtext=0.0.0.0

New would be:
Code: [Select]
https://apps.db.ripe.net/db-web-ui/query?bflag=false&dflag=false&rflag=true&searchtext=0.0.0.0&source=RIPE

This is definitely different looking than they had it before, so I'm guessing they really redid their whole system. So, may want to make sure on the way to set up the searches. My "new" may be a bit off, when coming from a site.
25
Feature Discussion / Re: PWA Progressive Web App
Last post by ahrasis -
So, if member is offline, keep it in PWA cache, but when he is back should it immediately be posted or prompt him whether he wants it to be posted or discard it?
27
Addons / Re: [ADDON] SimplePortal
Last post by Spuds -
Quote from: Burke Knight –
Code: [Select]
class Recent_Ex_Block extends SP_Abstract_Block
Looks like to fix that we need to move up the require_once of that class (it does not autoload in 1.1) So in sources\admin\PortalAdminBlocks.controller.php we need to add a line.
Code: (find) [Select]
		// We'll need the utility functions from here.
require_once(SUBSDIR . '/PortalAdmin.subs.php');
require_once(SUBSDIR . '/Portal.subs.php');
Code: (replace) [Select]
		// We'll need the utility functions from here.
require_once(SUBSDIR . '/PortalAdmin.subs.php');
require_once(SUBSDIR . '/Portal.subs.php');
require_once(SUBSDIR . '/spblocks/SPAbstractBlock.class.php');
I think the best thing to do is make the edit in sources\subs\spblocks\BoardNews.block.php  in that file in the template_sp_boardNews function
Code: (find) [Select]
	// Output all the details we have found
foreach ($data['news'] as $news)
{
$attachment = $news['attachment'];

echo '
<h3 class="category_header">' . (empty($modSettings['messageIcons_enable'])
and just add a div to the start of that like
Code: (replace) [Select]
	// Output all the details we have found
foreach ($data['news'] as $news)
{
$attachment = $news['attachment'];

echo '
<div class="well">
<h3 class="category_header">' . (empty($modSettings['messageIcons_enable'])
I used the class well (that is roundframe), but content, or forumpost or ... whatever you want would work fine.  Also be sure to close that new div at the end of the function, so it looks like:
Code: (replace) [Select]
		echo $news['body'], '
</div>
<div class="submitbutton">', $news['link'], ' ', $news['new_comment'], '</div>
</div>
</div>
</div>';
30
Addons / Re: [ADDON] SimplePortal
Last post by Burke Knight -
@Spuds

Board News Block...

Is there a way, to divide each post into it's own div with a space between them?
Right now, I have an hr then the next post's title, but would like it to show each post in it's own div, if possible.
Kind of making each post into it's own block, look wise. Since set the main display as No Title and Roundframe.