Search found 134 matches

by Frank Rizzo
Wed Nov 30, 2022 5:48 pm
Forum: [3.3.x] Support Forum
Topic: Recompile Stale Style Components Efficiency and Run On Schedule?
Replies: 2
Views: 441

Re: Recompile Stale Style Components Efficiency and Run On Schedule?

This has to be done at least a dozen times a day, and 24/7 so any way of automating it would be preffered. Besides, I don't like purging *all* the cache unless necessary. Doing so also produces various errors for the first visit after purge such as "Couldn't fetch DOMElement. Node no longer exi...
by Frank Rizzo
Tue Nov 22, 2022 3:59 pm
Forum: [3.3.x] Support Forum
Topic: Recompile Stale Style Components Efficiency and Run On Schedule?
Replies: 2
Views: 441

Recompile Stale Style Components Efficiency and Run On Schedule?

I have had to change the way I load a dynamic file because of the deprecation of PHP / include. Previously I would just include a .php file that is dynamically written and then displayed in a side panel. The forum would always display fresh info but now I have to use <!-- include my_dynamic_side_pan...
by Frank Rizzo
Tue Nov 22, 2022 3:24 pm
Forum: phpBB Custom Coding
Topic: Work Around for deprecation of PHP INCLUDE
Replies: 8
Views: 5295

Re: Work Around for deprecation of PHP INCLUDE

Thanks all for the help with this. I managed to work out a solution. 1. create a file in the forum root called mysite_vars.php 2. In that file put all the code that I need to create variables e.g. <?php $mysite_subscriber_logged_in = 0; if($_SESSION['subscriber_loggedin'] == 1) $mysite_subscriber_lo...
by Frank Rizzo
Fri Sep 23, 2022 7:50 pm
Forum: phpBB Custom Coding
Topic: Work Around for deprecation of PHP INCLUDE
Replies: 8
Views: 5295

Re: Work Around for deprecation of PHP INCLUDE

OK, I think I get this now. I need to set template variables in the corresponding forum root files and then in the templates themselves detect what the variables are set and include the relevant file. This would be the case for your example {% if SESSION_VALID %} // display forum here {% else %} <di...
by Frank Rizzo
Fri Sep 23, 2022 10:26 am
Forum: phpBB Custom Coding
Topic: Work Around for deprecation of PHP INCLUDE
Replies: 8
Views: 5295

Re: Work Around for deprecation of PHP INCLUDE

Here's an abridged version <?php if(empty($code) || ($code <> 'a' && $code <> 'b' && $code <> 'c')) include('/home/example/php_incs2/a.php'); ?> <!-- ======= Header ======= --> <header id="header" class="header fixed-top" data-scrollto-offset="0"> <div c...
by Frank Rizzo
Fri Sep 23, 2022 8:42 am
Forum: phpBB Custom Coding
Topic: Work Around for deprecation of PHP INCLUDE
Replies: 8
Views: 5295

Re: Work Around for deprecation of PHP INCLUDE

Ok, that looks a good solution. I should be able to get that sorted. One other issue I have is that my forum sits within a overall website menu theme. i.e. I have a site menu bar at the top and the forum is in the middle of the page. This is done using this code in the overall_header.html file: <!--...
by Frank Rizzo
Wed Sep 21, 2022 11:19 am
Forum: phpBB Custom Coding
Topic: Work Around for deprecation of PHP INCLUDE
Replies: 8
Views: 5295

Work Around for deprecation of PHP INCLUDE

Firstly forgive me for posting in the wrong section (I assume this is where this post should go) and if there is already a post on this (I tried search but searching for PHP and / or INCLUDE finds too many posts because they are generic search terms). I am looking for a solution to the deprecation o...
by Frank Rizzo
Sun Jun 26, 2022 10:43 pm
Forum: phpBB Discussion
Topic: Discuss: phpBB 3.3.8 Release
Replies: 59
Views: 16084

Re: Discuss: phpBB 3.3.8 Release

With reference to the deprecation of <!-- PHP --> I use this in order to process session information from another part of my website; namely subscriptions and to show / limit various parts of the forum. How can I now do this if I can't run my own PHP code? simplified example <!-- PHP --> if($_SESSIO...
by Frank Rizzo
Tue Feb 23, 2021 9:56 pm
Forum: [3.3.x] Support Forum
Topic: Excessive MySQL memory usage on email::mark_notifications_by_parent()
Replies: 7
Views: 1133

Re: Excessive MySQL memory usage on email::mark_notifications_by_parent()

This is confirmed as an issue with MariaDB 10.5.9

a temporary fix to this is to add / change a setting in my.cnf

set

optimizer_max_sel_arg_weight

to a value less than 16000

10.5.9 crashes with large IN() list
by Frank Rizzo
Tue Feb 23, 2021 11:20 am
Forum: [3.3.x] Support Forum
Topic: Excessive MySQL memory usage on email::mark_notifications_by_parent()
Replies: 7
Views: 1133

Re: Excessive MySQL memory usage on email::mark_notifications_by_parent()

Sorry for bumping this thread but I have started receiving the same error this morning. Last night I upgraded to MariaDB 10.5.9 (from 10.5.8 which itself was supposed to address issues like this) and now I am getting crashes every half hour. 1. This could be a regression error with MariaDB 10.5.9? T...
by Frank Rizzo
Sat May 30, 2020 11:22 am
Forum: phpBB Custom Coding
Topic: Curl Auto Posting Stopped Working
Replies: 1
Views: 590

Sample script to add a new post to a phpBB forum as a specific userRe: Curl Auto Posting Stopped Working

I gave up on that method and changed to the proper API / submit_post() feature.

There are hardly any decent examples on how to use this via the CLI but I did find this example that worked first time:

Sample script to add a new post to a phpBB forum as a specific user
by Frank Rizzo
Fri May 29, 2020 9:06 pm
Forum: phpBB Custom Coding
Topic: Curl Auto Posting Stopped Working
Replies: 1
Views: 590

Curl Auto Posting Stopped Working

I have just revived a procedure I had not performed for 3 months. The procedure runs on a server and posts a specific topic onto a board on the same server. The code used is this: <?php $url = "https://www.example.com/phpbb/"; $post_fields = 'username=xyz&password=***&redirect=&...
by Frank Rizzo
Thu Jul 12, 2018 11:08 am
Forum: phpBB Discussion
Topic: Solve this SEO Issue Once and For All
Replies: 33
Views: 7052

Re: Solve this SEO Issue Once and For All

Hmm. If serving bots a different 'view' to regular users is such an issue why do phpbb offer it as a configuration option?
by Frank Rizzo
Thu Jul 12, 2018 9:05 am
Forum: phpBB Discussion
Topic: Solve this SEO Issue Once and For All
Replies: 33
Views: 7052

Re: Solve this SEO Issue Once and For All

Looking at the Google issue (where it does crawl the site but lilttle response in serps). There are some search terms appearing but they are way down the long tail. This could indeed be due to the lack of meta data. Each page has a title tag but no specific tags for title or description. I also have...
by Frank Rizzo
Thu Jul 12, 2018 8:54 am
Forum: phpBB Discussion
Topic: Solve this SEO Issue Once and For All
Replies: 33
Views: 7052

Re: Solve this SEO Issue Once and For All

What was the point of 90% of that post Amigo? That was mostly not helpful. - - - - - - - - - - - - - - - - - - Ref: Bing parameters. Still no full crawl yet since the values were removed. This is all that has been crawled so far today: 40.77.167.149 - - [12/Jul/2018:03:49:23 +0100] "GET /ppp/fe...

Go to advanced search