Advertisement:

Author Topic: Optimus  (Read 198998 times)

Offline muratbora

  • Semi-Newbie
  • *
  • Posts: 59
Re: Optimus
« Reply #600 on: August 06, 2019, 06:42:25 AM »
I could not find " scheduled task "
Can youshow path as > > >?

Pls see my dasboard screenshoot of OPTIMUS MOD...

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,537
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Optimus
« Reply #601 on: August 06, 2019, 07:01:26 AM »
I've marked the path on your screenshot.

Offline muratbora

  • Semi-Newbie
  • *
  • Posts: 59
Re: Optimus
« Reply #602 on: August 09, 2019, 07:36:49 AM »
I checked , it is already marked under scheduled task  ,
But I do not see a sitemap is created...

Offline Massl

  • Jr. Member
  • **
  • Posts: 260
Re: Optimus
« Reply #603 on: August 11, 2019, 04:41:18 AM »
Hi Bugo, thanks for the last 2.4.6  :)

When the task is executed I have the following error

Hook call: la funzione "Bugo\Optimus\Addons\PortaMx::makeSefUrl" nel file /home/user2560/public_html/Sources/Optimus/addons/PortaMx.php non può essere chiamata.
 https://www.site.name/index.php?action=admin;area=scheduledtasks   
 d6ca350f5ccdacbf85525e62146b8c6f
 Tipo di errore: Generale

The callable Bugo\Optimus\Addons\PortaMx::makeSefUrl could not be called.
 https://site.name/index.php?action=admin;area=scheduledtasks

Optimus 2.4.6 and SMF 2.1 RC2

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,537
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Optimus
« Reply #604 on: August 11, 2019, 05:11:18 AM »
PortaMx.php, replace this line:
Code: [Select]
add_integration_function('integrate_optimus_sitemap', __NAMESPACE__ . '\PortaMx::makeSefUrl', true, __FILE__);
Code: [Select]
add_integration_function('integrate_optimus_sitemap', __NAMESPACE__ . '\PortaMx::makeSefUrls', true, __FILE__);
« Last Edit: August 11, 2019, 05:35:27 AM by Bugo »

Offline Massl

  • Jr. Member
  • **
  • Posts: 260
Re: Optimus
« Reply #605 on: August 11, 2019, 06:52:39 AM »
Thank you  :)

Offline Portugal

  • Jr. Member
  • **
  • Posts: 219
Re: Optimus
« Reply #606 on: August 13, 2019, 12:43:41 PM »
Thanks for the new update Bugo, now i think my sugestion is implemented!
Excelent work!


Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,357
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Optimus
« Reply #607 on: September 26, 2019, 02:01:21 PM »
Can I update safely from 1.8.7 by just replacing the files? (SMF 2.0)

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,537
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Optimus
« Reply #608 on: September 27, 2019, 07:47:24 AM »
It is better to remove the previous version, then install the current one. Save your settings, if you want.

Online @rjen

  • Full Member
  • ***
  • Posts: 509
  • Gender: Male
Re: Optimus
« Reply #609 on: September 29, 2019, 10:42:56 AM »
Question...

we ran into an issue with TinyPortal that seems to be caused by Optimus.

In SMF2.0.15 the BBC code editor in blocks and articles is missing smileys and BBC buttons when Optimus is installed & a Twitter account name is set in Meta data. This only happens if the Twitter account is entered.
Using package: optimus_2.2.1_smf20.zip

This issue does not occur in SM2.1  using package optimus_2.4.6_smf21.zip

I tracked down the exact cause in the Optimus code, and it is in the file Integration.php

In 2.2.1 this code is used:
Code: [Select]
if (!empty($modSettings['optimus_tw_cards'])) {
Where 2.4.6 uses this code:
Code: [Select]
// Twitter cards
if (!empty($modSettings['optimus_tw_cards']) && isset($context['canonical_url'])) {
[/code]

The check for $context['canonical_url'] is missing in the 2.2.1 code
As a result it seems that a $twitter variable is being incorrectly set on admin pages, causing the bbc editor to break.

Is this left out on 2.2 on purpose? I am asking because it was there in Optimus version 1.9.7.2, but appears te be removed with 1.9.9..
If not, updating this line of code to this fixes the conflict..

Code: [Select]
if (!empty($modSettings['optimus_tw_cards']) && isset($context['canonical_url'])) {
 
Running SMF 2.0 with Tinyportal 1.6.4 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,537
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Optimus
« Reply #610 on: September 29, 2019, 12:46:27 PM »
Thanks, I've updated the Github repository.

Online @rjen

  • Full Member
  • ***
  • Posts: 509
  • Gender: Male
Re: Optimus
« Reply #611 on: September 29, 2019, 01:02:18 PM »
Thanks, that does the trick!
Running SMF 2.0 with Tinyportal 1.6.4 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/

Offline sirfpsycho

  • Semi-Newbie
  • *
  • Posts: 67
Re: Optimus
« Reply #612 on: October 01, 2019, 10:19:50 PM »
Add  to the sitemap only those topics that have the number of replies is more than

1

It is the default value.
If I set 0 then will it add all of the posts? Or any problem will come?

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,537
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Optimus
« Reply #613 on: October 02, 2019, 02:26:21 AM »
Approved topics only.

Offline alitech

  • Semi-Newbie
  • *
  • Posts: 11
Re: Optimus
« Reply #614 on: October 11, 2019, 10:48:02 AM »
Hi Bugo

I have been reading all the questions and your patient replies to all queries. Hats off to you.

I had a question of my own.

Do you know if there is a reason why a link to the XML sitemap wouldnt appear on the footer on 2.0? Do you think it has something to do with the theme I may have installed?

If I manually go to the sitemap URL, I can read it but I it does not update even after I run the task manually.

Just some background. I reinstalled SMF 2.0. I tried 2.1 but not many mods available fo I am trying 2.0 however I think I am having cache issues as it takes a while for the site to show any changes once they are made.


Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,537
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Optimus
« Reply #615 on: October 12, 2019, 03:04:45 AM »
Do you think it has something to do with the theme I may have installed?
I think so.

Offline muratbora

  • Semi-Newbie
  • *
  • Posts: 59
Re: Optimus
« Reply #616 on: November 07, 2019, 02:47:09 AM »
The callable \Bugo\Optimus\Integration::scheduledTask could not be called.

I am seeing in error LOG above given error code, is something to correct or?

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 970
Re: Optimus
« Reply #617 on: November 08, 2019, 07:56:23 AM »
Hi @Bugo do you know if Facebook changed it's API? Smaller 1st images stopped parsing in debugger 2 days ago.

Ex.
Code: [Select]
h++ps://www.youthhockeyinfo.com/index.php?topic=1406

Thank you