Advertisement:

Author Topic: Optimus  (Read 193347 times)

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,531
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Optimus
« Reply #560 on: June 13, 2019, 09:21:47 PM »
By default, this mod takes the first paragraph from the first topic to create the description. But you can use the Topic Descriptions mod with Optimus. It will help to fill more concrete descriptions. Or, if you are using the SMF 2.1.x, just enable "Allow a separate field for the topic description" option for that.

A different variant, open Class-Optimus.php, find
Code: [Select]
$row['body'] = parse_bbc($row['body'], false);and replace with
Code: [Select]
$row['body'] = parse_bbc($row['body'], false);
$row['body'] = str_replace('Good afternon,<br />', '', $row['body']);
or with
Code: [Select]
$row['body'] = parse_bbc($row['body'], false);
$row['body'] = str_replace('Good afternon,<br /><br />', '', $row['body']);

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 855
Re: Optimus
« Reply #561 on: June 14, 2019, 12:03:05 PM »
I can confirm FB posting is working now. It's taking the image from the topic. Twitter isn't working yet.

Offline Portugal

  • Jr. Member
  • **
  • Posts: 212
Re: Optimus
« Reply #562 on: June 14, 2019, 08:03:28 PM »
Very thanks Bugo, i will g oto test it :) soon i will come here to give some feedback.



Thanks

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 855
Re: Optimus
« Reply #563 on: June 15, 2019, 09:04:27 AM »
Working on both FB and Twitter now!

Offline Portugal

  • Jr. Member
  • **
  • Posts: 212
Re: Optimus
« Reply #564 on: June 15, 2019, 12:32:35 PM »
Hi Bugo,

After instal the new version of this great MOD, i try to read the sitemap, and i think its no good genareted, it includes in fact a large number of items, but give me the message psted here attached.
Ive changed from 50000 to 500000 to dont have a blank xml sitemap file. Any sugestion?

Thanks
Portugal
« Last Edit: June 15, 2019, 12:51:09 PM by Portugal »

Offline Portugal

  • Jr. Member
  • **
  • Posts: 212
Re: Optimus
« Reply #565 on: June 18, 2019, 09:31:42 AM »
Like i said before, after testing this solution i will come back with the results. Well, as as far i see it doesn´t work. I will go to test the mod you refer, but i think inst a good option, ive more than 30.000 topics until now.


Regards,
Thanks anyway Bugo


By default, this mod takes the first paragraph from the first topic to create the description. But you can use the Topic Descriptions mod with Optimus. It will help to fill more concrete descriptions. Or, if you are using the SMF 2.1.x, just enable "Allow a separate field for the topic description" option for that.

A different variant, open Class-Optimus.php, find
Code: [Select]
$row['body'] = parse_bbc($row['body'], false);and replace with
Code: [Select]
$row['body'] = parse_bbc($row['body'], false);
$row['body'] = str_replace('Good afternon,<br />', '', $row['body']);
or with
Code: [Select]
$row['body'] = parse_bbc($row['body'], false);
$row['body'] = str_replace('Good afternon,<br /><br />', '', $row['body']);

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,531
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Optimus
« Reply #566 on: June 18, 2019, 11:01:08 AM »
Any case you should not change Sitemap.php ("50000" etc.)

https://www.sitemaps.org/protocol.html
Quote
You can provide multiple Sitemap files, but each Sitemap file that you provide must have no more than 50,000 URLs and must be no larger than 50MB (52,428,800 bytes). If you would like, you may compress your Sitemap files using gzip to reduce your bandwidth requirement; however the sitemap file once uncompressed must be no larger than 50MB. If you want to list more than 50,000 URLs, you must create multiple Sitemap files.

If you do provide multiple Sitemaps, you should then list each Sitemap file in a Sitemap index file. Sitemap index files may not list more than 50,000 Sitemaps and must be no larger than 50MB (52,428,800 bytes) and can be compressed. You can have more than one Sitemap index file. The XML format of a Sitemap index file is very similar to the XML format of a Sitemap file.

Optimus adds to the sitemap only those topics, the number of messages in which more than defined in the mod's settings. And these topics should be within the boards that available to guests.

Offline sub0

  • Newbie
  • *
  • Posts: 3
Re: Optimus
« Reply #567 on: June 24, 2019, 06:21:09 PM »
Hi Bugo
I installed Optimus today but since then facing some issues. My SMF version is latest SMF 2.1 RC2

  • Sitemap is not generating
  • Missing Properties. When sharing topics/replies on Facebook. Facebook isn't fetching Topic title. before installing the Optimus it was fetching first image and title correctly.

Kindly help !

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,531
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Optimus
« Reply #568 on: June 25, 2019, 03:15:23 AM »
1. Does the manual run via Scheduled Tasks not work too?
2. Give me an example (link) of a topic with such a problem.

Offline sub0

  • Newbie
  • *
  • Posts: 3
Re: Optimus
« Reply #569 on: June 25, 2019, 05:57:23 AM »
1. Does the manual run via Scheduled Tasks not work too?
2. Give me an example (link) of a topic with such a problem.

Thank you for your reply.

1. Does the manual run via Scheduled Tasks not work too?
Answer: Manual Run didn't work also No sitemap was generated on Manual Run

2. Give me an example (link) of a topic with such a problem.

here a few screenshots of shared posts on Facebook:
Code: [Select]
https://i.imgur.com/yv5LNas.jpg

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,531
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Optimus
« Reply #570 on: June 25, 2019, 06:33:53 AM »
Try to install updated version v2.4.3 (https://github.com/dragomano/Optimus/archive/develop.zip)

Use https://developers.facebook.com/tools/debug/ for testing problem URLs of your site, and post here any notes.
« Last Edit: June 25, 2019, 06:46:40 AM by Bugo »

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 855
Re: Optimus
« Reply #571 on: June 28, 2019, 07:49:38 AM »
Think about donating towards this project. It helps immensely with google and bing placement. The project needs our help to stay alive. I greatly appreciate Bugo's effort's to keep it going.

Thank you Bugo.

Offline lurkalot

  • Sophist Member
  • *****
  • Posts: 1,274
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Optimus
« Reply #572 on: June 28, 2019, 03:03:59 PM »
I can confirm FB posting is working now. It's taking the image from the topic. Twitter isn't working yet.

Since trying this mod, when I share a TinyPortal bbc article to farcebook, it picks up the first image ok, but seems to be posting the bbcode from within the article as well.

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 855
Re: Optimus
« Reply #573 on: June 28, 2019, 03:20:59 PM »
Hmmmmm, my articles are html. I don't do bbcode so that wasn't tested on mine.

Offline Massl

  • Jr. Member
  • **
  • Posts: 252
Re: Optimus
« Reply #574 on: June 28, 2019, 04:03:06 PM »
Think about donating towards this project. It helps immensely with google and bing placement.

You're right, Bugo did a great job!

Offline @rjen

  • Full Member
  • ***
  • Posts: 432
  • Gender: Male
Re: Optimus
« Reply #575 on: June 28, 2019, 05:46:09 PM »
Since trying this mod, when I share a TinyPortal bbc article to farcebook, it picks up the first image ok, but seems to be posting the bbcode from within the article as well.

Similar issues with php articles... the PHP code is posted to facebook, not the resulting html...
Running SMF 2.0 with Tinyportal 1.6.3 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal 1.6.3 at http://test2.fjr-club.nl/

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,531
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Optimus
« Reply #576 on: June 28, 2019, 11:52:52 PM »
I have made special versions to testing these issues, try it.

Offline @rjen

  • Full Member
  • ***
  • Posts: 432
  • Gender: Male
Re: Optimus
« Reply #577 on: June 29, 2019, 04:00:48 AM »
Look like that fixed the BBC articles Bugo!

I only tested the 2.0 version yet, but I am not seeing the bbc codes in the facebook posts anymore. Image is picked up and the description is showing without the bbc.

The php article is not showing php code anymore, bu it seems that both the og:title and the og:description are picking up the Article title.
Example article: https://test.fjr-club.nl/index.php?page=Welkom

I also see that the scaper has a problem picking up the image on this article, because the link is built up in php, showing random images. I dont think that has anything to do with Optimus though...

Invalid URL
Provided og:image URL, Documenten/Images/Illustraties/details', rand(1, 8), '.gif was not a valid URL.
 
Running SMF 2.0 with Tinyportal 1.6.3 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal 1.6.3 at http://test2.fjr-club.nl/

Offline lurkalot

  • Sophist Member
  • *****
  • Posts: 1,274
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Optimus
« Reply #578 on: June 29, 2019, 05:00:06 AM »
@rjen haven't tested this one on php, or bbc articles yet, but have you tried a html article again with this new version, it appears to be posting the html code from my mine.  Will test properly later.

Offline @rjen

  • Full Member
  • ***
  • Posts: 432
  • Gender: Male
Re: Optimus
« Reply #579 on: June 29, 2019, 05:47:51 AM »
2.2.1 seems to work fine on html articles in 2.0.15
Running SMF 2.0 with Tinyportal 1.6.3 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal 1.6.3 at http://test2.fjr-club.nl/