Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bugo on February 15, 2011, 03:48:12 PM

Title: Optimus
Post by: Bugo on February 15, 2011, 03:48:12 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=2659)

This mod might help you solve some problems associated with the indexing of your forum by search engines.

Requirements:

Features:

I do not support any previous versions of this mod. Please, use only the latest version of OP for your SMF.

To submit an issue, leave:

Premium addons (https://ko-fi.com/post/All-premium-addons-for-Optimus-U7U3VKQHJ)

(https://img.shields.io/github/license/dragomano/optimus?color=red)
Title: Re: Optimus Brave
Post by: butchs on February 15, 2011, 07:49:19 PM
I like this mod!  8)
Title: Re: Optimus Brave
Post by: vicram10 on February 15, 2011, 07:51:52 PM
Nice mod...
Title: Re: Optimus Brave
Post by: Leppie on February 22, 2011, 03:28:14 PM
very nice mod, just installed it on my RC5  8)

the only thing is that my error log is flooded with the following error:
index.php?action=dlattach;attach=####;type=avatar
8: Undefined index: current_action
/Sources/Subs-Optimus.php
Line: 17

any suggestions?
Title: Re: Optimus Brave
Post by: Bugo on February 22, 2011, 05:16:36 PM
I fixed it, try new version :)
Title: Re: Optimus Brave
Post by: Leppie on February 22, 2011, 06:04:49 PM
thanks  for the update :)

just installed it, will update you if the issue is fixed.
Title: Re: Optimus Brave
Post by: busterone on February 22, 2011, 06:06:55 PM
Nice mod Bugo  :)
Title: Re: Optimus Brave
Post by: Leppie on February 23, 2011, 07:33:49 AM
Bugo, that fix did the job  :D

many thanks for the cool mod and great support  8)
Title: Re: Optimus Brave
Post by: tectonny on August 23, 2011, 04:48:29 PM
My robots.txt is suggested by this mod:

User-agent: slurp
User-agent: msnbot
Crawl-delay: 120

User-agent: Twiceler
User-agent: Baiduspider
User-agent: W3C-checklink
User-agent: Googlebot-Image
User-agent: YandexImages
Disallow: /forum/

User-agent: Googlebot-Mobile
User-agent: YandexImageResizer
Allow: /forum/*wap
Allow: /forum/*imode
Disallow: /forum/

User-agent: *
Allow: /forum/$
Allow: /*forum$
Allow: /forum/*board*.0$
Allow: /forum/*topic*.0$
Allow: /forum/*rss
Allow: /forum/*sitemap
Disallow: /forum/
Sitemap: http://www.tectonny.com/forum/?action=sitemap;xml
Host: www.tectonny.com/forum


I would not be blocking all my forum? with the expression:
Disallow: /forum/

Title: Re: Optimus Brave
Post by: Bugo on August 23, 2011, 11:35:41 PM
Try and learn :)
Title: Re: Optimus Brave
Post by: ReaperX on August 24, 2011, 04:07:28 AM
I don't know what i did to cause this error, but i just noticed it...

http://xxx/index.php?action=admin;area=modsettings;sa=optimus
8: Uninitialized string offset: 0
File: /home/xxx/domains/xxx/public_html/Themes/default/Optimus.template.php
Line: 83



http://xxx/index.php?action=admin;area=modsettings;sa=optimus
8: Uninitialized string offset: 0
File: /home/xxx/domains/xxx/public_html/Themes/default/Optimus.template.php
Line: 80


I can't recreate it
Title: Re: Optimus Brave
Post by: Bugo on August 24, 2011, 04:40:04 AM
Quote from: ReaperX on August 24, 2011, 04:07:28 AM
I don't know what i did
And how I can resolve this problem?
Title: Re: Optimus Brave
Post by: ReaperX on August 24, 2011, 04:49:33 AM
i don't want help, i just informing...
Title: Re: Optimus Brave
Post by: Bugo on August 24, 2011, 05:24:45 AM
Well, maybe this problem appears only for the first time but after saving of settings it disappears.
Title: Re: Optimus Brave
Post by: tectonny on August 24, 2011, 08:43:30 AM
Quote from: Bugo on August 23, 2011, 11:35:41 PM
Try and learn :)


Hello dear, I am wrong in my conclusion? Sorry do not understand is why robots.txt
Title: Re: Optimus Brave
Post by: tectonny on August 25, 2011, 08:24:42 AM
Another question, where I place the robots.txt? In the forum folder in the rais of the site?

http://www.tectonny.com/forum/robots.txt
or
http://www.tectonny.com/robots.txt
Title: Re: Optimus Brave
Post by: Bugo on August 25, 2011, 09:02:49 AM
2 link.
Title: Re: Optimus Brave
Post by: tectonny on August 25, 2011, 09:39:14 AM
Use link the two? With the same content?
Title: Re: Optimus Brave
Post by: Bugo on August 25, 2011, 10:42:29 AM
Well, if you don't know what a robots.txt and how to fill it — please, don't install this mod. At first, read http://www.robotstxt.org/robotstxt.html
Title: Re: Optimus Brave
Post by: infoseeker on August 26, 2011, 11:24:36 AM
thanks bro.

What is the meaning of
Allow: /$

Thanking you.
Title: Re: Optimus Brave
Post by: infoseeker on August 26, 2011, 12:32:16 PM
The mod recommended me below robots.txt

User-agent: *
Allow: /$
Allow: /*board*.0$
Allow: /*topic*.0$
Allow: /*rss
Allow: /*sitemap/?xml

But i dont know what i allowing robots in my forum by the line "Allow: /$"

Plz tell me what is the meaning of that line. Is that carrying out any personal content from my forum?

Thanking you.
Title: Re: Optimus Brave
Post by: Bugo on August 26, 2011, 01:14:30 PM
This line — "Allow: /$" it's a main page (only main page!) of your forum (i.e: http://www.yourforum/).
Title: Re: Optimus Brave
Post by: infoseeker on August 26, 2011, 01:47:23 PM
Now my doubt cleared.

Thanks for your quick reply.

Wish You All The Best.
Title: Re: Optimus Brave
Post by: infoseeker on September 13, 2011, 04:36:41 AM
This mode added my homepage's title twice in google search results.
I leaved the index bar blank in optimusbrave settings to show the homepage title one time on google search results. But, nothing is changed. I also uninstalled the mod. But still my homepage title indexed two times in google results. Plz help me. How can i solve this?

Sorry if i giving any trouble to you.
Thanking you.
Title: Re: Optimus Brave
Post by: Bugo on September 13, 2011, 10:21:59 AM
The mod has no relevance to this situation.
You must to change your forum's title to something other. To do this go to Admin » Configuration » Server Settings » Forum Title => here enter forum name (not adress!) and save settings.

After this you will only have to wait until Google reindex your site.
Title: Re: Optimus Brave
Post by: Bugo on September 13, 2011, 02:01:21 PM
http://www.simplemachines.org/community/index.php?topic=422210.msg3144963#msg3144963
Title: Re: Optimus Brave
Post by: infoseeker on September 14, 2011, 03:12:26 AM
Just i reincluded my websit to google. Last time i used optimusbrave1.6.2
Now i installed optimus brave 1.6.4. I Hope that everything will be fine :)

Thanking you.
Title: Re: Optimus Brave
Post by: infoseeker on September 18, 2011, 09:54:25 PM

Thanks Bugo.
All my problem is happened by my meta tags. Now every thing is fine.
The new version of optimusbrave is very nice. The recommended format of robots.txt is ultimate.

Thanks a lot for creating this mod

Below iam giving some useful links for our smf users to check their website's strength, and errors.

The below website can help you to create website's meta tags. dont use refresh page meta tag. Because, the meta tag is related with spam problems.

http://www.onlinemetatag.com

The below website can analyze your website's meta description.

http://www.submitexpress.com/analyzer/

Thats all. :)
Thanking you.
Title: Re: Optimus Brave
Post by: tectonny on October 06, 2011, 01:40:31 PM
I like this mod, but would take the keys of the number, looks like this {1} could contain just the number 1.
Title: Re: Optimus Brave
Post by: Bugo on October 06, 2011, 02:52:08 PM
What do you mean?
Title: Re: Optimus Brave
Post by: tectonny on October 06, 2011, 03:22:46 PM
Here's the link the title, appears on page {1} instead of just one page:

http://www.tectonny.com/forum/apoio-tecnico/
Title: Re: Optimus Brave
Post by: Bugo on October 06, 2011, 03:32:46 PM
And what? Look at page 2, 3 etc — you'll see {2}, {3} etc. If you don't want see page number, remove
[#]
from topic/board title templates in Optimus settings.
If you don't want see { and } symbols — it's another question... :)
Title: Re: Optimus Brave
Post by: tectonny on October 06, 2011, 03:52:25 PM
I do not want to see the symbols, I see only the number without the {}.
Title: Re: Optimus Brave
Post by: Bugo on October 06, 2011, 03:55:02 PM
Well, I'll add this feature in the next release.
Title: Re: Optimus Brave
Post by: tectonny on October 06, 2011, 04:07:24 PM
Okay.
Title: Re: Optimus Brave
Post by: Bugo on October 08, 2011, 12:11:55 PM
Ok, try new version.
Title: Re: Optimus Brave
Post by: tectonny on October 08, 2011, 02:52:45 PM
Updated, but not decided what I wanted, now we can choose a fixed number to page, but the account appears brace ({}), what I wanted is not the key appears ({}) ... Only the page number alone.
Title: Re: Optimus Brave
Post by: infoseeker on October 09, 2011, 11:13:36 AM
Quote from: tectonny on October 06, 2011, 03:52:25 PM
I do not want to see the symbols, I see only the number without the {}.

I hope that this mod may solve your problem

http://custom.simplemachines.org/mods/index.php?mod=3052

But, i did not test it. Try this mod yourself with optimus.

Thanking you.
Title: Re: Optimus Brave
Post by: Bugo on October 09, 2011, 01:46:36 PM
This problem has been resolved.
There is option "Template of current page number", where you can enter any template. By example: {number}, or number, or [number] etc ("number" - constant).
Title: Re: Optimus Brave
Post by: tectonny on October 09, 2011, 06:42:17 PM
The problem is that if we use the fixed number will appear on all pages with the same number.
Title: Re: Optimus Brave
Post by: Bugo on October 10, 2011, 02:11:22 AM
And why you use the fixed number? :) You must use the constant — "number". It will be replaced with number page automatically.
Title: Re: Optimus Brave
Post by: tectonny on October 10, 2011, 08:10:34 AM
There was no way, tried everything, here's what I tried.

[board_name] - [forum_name] - Página
Title: Re: Optimus Brave
Post by: Bugo on October 10, 2011, 10:20:56 AM
Look at screenshots ("666" in mod settings - it's just example).
Title: Re: Optimus Brave
Post by: tectonny on October 10, 2011, 11:07:46 AM
Yes, my work well, but not without braces. "{ }"


(http://imgbr.in/images/63179327200033548942_thumb.png) (http://imgbr.in/viewer.php?file=63179327200033548942.jpg)
Title: Re: Optimus Brave
Post by: Bugo on October 10, 2011, 12:18:07 PM
Is difficult to guess replace {number} with number?
Title: Re: Optimus Brave
Post by: tectonny on October 10, 2011, 03:00:59 PM
Perfect your explanation, now understood and is working perfectly.

Thanks
Muito Obrigado.
Title: Re: Optimus Brave
Post by: tectonny on October 19, 2011, 10:48:13 AM
I liked the update, best explains how the sitemap ....
Title: Re: Optimus Brave
Post by: tectonny on October 19, 2011, 11:15:46 AM
Test error:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 6361273 bytes) in /home/user/public_html/forum/Sources/PrettyUrls-Filters.php on line 16
Title: Re: Optimus Brave
Post by: tectonny on October 19, 2011, 02:00:26 PM
I was able to generate the sitemap prettyurl disabling, but where is the sitemap? What is the link to the sitemap?
Title: Re: Optimus Brave
Post by: tectonny on October 19, 2011, 03:43:19 PM
Log errors with just one minute of use:

Aplicar filtro do tipo: Todos os erros (210) | Indefinidos (210)
  Páginas: [1] 2 3 4 5 6 7 8 ... 11


Aplicar Filtro: Mostrar apenas as mensagens de erro deste URL
http://www.tectonny.com/forum/index.php?pretty;board=defeito-resolvido;topic=tv-(lg)-mod-20cd2r-desligano-a-cada-3-minuto.0&wap2
Aplicar Filtro: Mostrar apenas os erros com a mesma mensagem
8: Undefined index: subject
Aplicar Filtro: Mostrar apenas erros deste ficheiro
Ficheiro: /home/xxxxx/public_html/forum/Sources/Subs-Optimus.php
Linha: 285

Aplicar Filtro: Mostrar apenas as mensagens de erro deste membro Visitante
Aplicar Filtro: Mostrar apenas as mensagens de erro deste endereço de IP 201.70.91.18 
  Inverter a ordem cronológica da lista Hoje às 17:40:11
Aplicar Filtro: Mostrar apenas as mensagens de erro desta sessão 0be5af5197d167351ab5c992415bf281
Aplicar Filtro: Mostrar apenas erros deste tipo Tipo de erro: Indefinidos
Aplicar Filtro: Mostrar apenas as mensagens de erro deste URL
http://www.tectonny.com/forum/index.php?topic=28639.0
Aplicar Filtro: Mostrar apenas os erros com a mesma mensagem
8: Undefined index: num_views
Aplicar Filtro: Mostrar apenas erros deste ficheiro
Ficheiro: /home/xxxxx/public_html/forum/Sources/Subs-Optimus.php
Linha: 284

What can be?
Title: Re: Optimus Brave
Post by: Bugo on October 19, 2011, 05:17:03 PM
Quote from: tectonny on October 19, 2011, 02:00:26 PM
What is the link to the sitemap?
See http://www.tectonny.com/forum/sitemap.xml etc.
Quote from: tectonny on October 19, 2011, 03:43:19 PM
Log errors with just one minute of use:
Just relax. I'll fix it next version.
Title: Re: Optimus Brave
Post by: MaXiForum.cz on October 20, 2011, 10:39:33 AM
Looks good.
Good job ;)
Title: Re: Optimus Brave
Post by: Dblog on October 25, 2011, 09:32:19 AM
i dont know if sitemap was generated or not even after selecting run now.
also it took away all page titles and now all pages are only titled same as 'forum title'
Title: Re: Optimus Brave
Post by: Dblog on November 07, 2011, 11:20:06 AM
can anyone tell me how to get topic title, page number etc?


Template of topic pages title       : [board_name] - page
Title: Re: Optimus Brave
Post by: Bugo on November 07, 2011, 11:51:04 AM
Default values help you to get a proper result:

[topic_name] - page [#] - [forum_name]

If you want add board name just paste [board_name] after (or before) [topic_name] (to field #1):

[topic_name] - [board_name] - page [#] - [forum_name]

Alternative way (add board name to field #3):

[topic_name] - page [#] - [board_name] - [forum_name]


"Add the bold words to the metatag" option work only with enabled "autokeywords for board/topic pages" option.

In the future, when you will ask questions, attach screenshots of your settings. And post link to your forum, with installed mod.
Title: Re: Optimus Brave
Post by: Bugo on November 07, 2011, 01:13:23 PM
You forgot to paste square brackets: []
Title: Re: Optimus Brave
Post by: Dblog on November 08, 2011, 10:14:35 PM
okay i got this solved but there's one more issue.
if a board has lesser topics and its only for one page, then that board's 1st and only page gives page title as [board_name] - - [forum_name], without page
Title: Re: Optimus Brave
Post by: Bugo on November 09, 2011, 04:11:38 AM
This is a feature.
Why did you remove the link to your forum?
Title: Re: Optimus Brave
Post by: Bugo on November 09, 2011, 07:02:13 AM
If page is only one, page number not appears.
Can I see a screenshot of your settings?
Title: Re: Optimus Brave
Post by: Dblog on November 09, 2011, 07:28:15 AM


the problem is not with topic pages but only with board pages
Title: Re: Optimus Brave
Post by: Bugo on November 09, 2011, 07:32:47 AM
Quote from: Bugo on November 09, 2011, 07:02:13 AM
If page is only one, page number not appears.
Can I see a screenshot of your settings?
Title: Re: Optimus Brave
Post by: Dblog on November 09, 2011, 07:51:23 AM
okay i posted a screenshot of settings above
Title: Re: Optimus Brave
Post by: Bugo on November 09, 2011, 08:42:33 AM
Well, I have the same settings but don't have any problem. Do you have any mods that can change page titles/numbers?
Title: Re: Optimus Brave
Post by: Dblog on November 09, 2011, 09:16:42 AM
no more mods modifying page titles.
this problem is seen only for boards with topics in 1 page.
if there are 2 pages, then no issue.

for topic pages, i haven't seen any issue
Title: Re: Optimus Brave
Post by: Bugo on November 09, 2011, 09:30:26 AM
Can you give me test admin account to PM?
Title: Re: Optimus Brave
Post by: Dblog on November 09, 2011, 10:37:34 AM
sent you PM
just append /discus to access SMF at the end of the link i sent
Title: Re: Optimus Brave
Post by: Bugo on November 09, 2011, 11:47:10 AM
Well, you forgot to mention you are using an older version of Optimus. Current last stable - 1.7.1, you have - 1.7
Title: Re: Optimus Brave
Post by: Dblog on November 09, 2011, 11:52:57 AM
ok done
Title: Re: Optimus Brave
Post by: [Lucien] on November 09, 2011, 01:30:15 PM
Awesome mod!! But there is a error in my errorlog:

http://www.mysite/index.php?action=admin;area=modsettings;save;sa=optimus
8: iconv() [<a href='function.iconv'>function.iconv</a>]: Detected an illegal character in input string
File: /............/............/.........../........./public_html/Sources/Subs-Optimus.php
Line: 430


==>430:       $context['small_advice'] = iconv('UTF-8', $db_character_set, $context['small_advice']);
Title: Re: Optimus Brave
Post by: Dblog on November 09, 2011, 01:44:48 PM
i find similar errors with Sources/Subs-Optimus.php
it generates sitemap with deleted topic numbers and 404 errors are caused.
Title: Re: Optimus Brave
Post by: Bugo on November 09, 2011, 02:00:18 PM
Quote from: [Lucien] on November 09, 2011, 01:30:15 PMAwesome mod!! But there is a error in my errorlog:
You know, if any mod has errors, it's not longer awesome :) I'll fix it next release.

Quote from: Cblog on November 09, 2011, 01:44:48 PM
i find similar errors with Sources/Subs-Optimus.php
it generates sitemap with deleted topic numbers and 404 errors are caused.
Details, please.
Title: Re: Optimus Brave
Post by: [Lucien] on November 09, 2011, 02:05:26 PM
Quote
Quote from: [Lucien] on November 09, 2011, 01:30:15 PMAwesome mod!! But there is a error in my errorlog:
You know, if any mod has errors, it's not longer awesome :) I'll fix it next release.

;D ;D it's still awesome!!! Thanks for looking into it :)
Title: Re: Optimus Brave
Post by: Dblog on November 10, 2011, 12:22:29 AM
oops.. those errors were from 1.7
i've just updated to 1.7.1 and let me see for errors after few hrs
Title: Re: Optimus Brave
Post by: [Lucien] on November 10, 2011, 05:32:13 AM
I have a question  :)

This is the suggested robots.txt from the Optimus Brave mod:

User-agent: Googlebot-Image
Disallow: /

User-agent: YandexImages
Disallow: /

User-agent: msnbot-MM
Disallow: /

User-agent: Googlebot-Mobile
Allow: /*wap
Disallow: /

User-agent: YandexImageResizer
Allow: /*wap
Disallow: /

User-agent: MediaPartners-Google
Allow: /

User-agent: *
Allow: /$
Allow: /*forum$
Allow: /*page*page
Allow: /*type=rss
Disallow: /*action
Disallow: /*;
Disallow: /*PHPSESSID
Allow: /*board*.html$
Allow: /*topic*.html$
Disallow: /
Crawl-delay: 5
Clean-param: PHPSESSID /index.php
Host: www............com


But i want my arcade to be found by search engines, i have a game site :)
Is this the right robots.txt for me? Because google webmaster tools tels me that 81 links are forbidden by robots.txt,
so that's not a good thing i suppose?

And i have another question:

Please use only the values from content parameter of the meta tags.
Example: <meta name="google-site-verification" content="VALUE" />


What should be the "Value" here?

Sorry for my ignorance  :( i will learn one day with the help from you guys :)
Title: Re: Optimus Brave
Post by: Bugo on November 10, 2011, 06:26:23 AM
Well, if you will send link to your site (you can do it via PM), I'll try to analize your links and add some changes to next version of mod.

Also, you can register on http://www.google.com/webmasters/tools, add your site there and learn about robots.txt and other things (like <meta name="bla-bla-bla"... etc).
Title: Re: Optimus Brave
Post by: [Lucien] on November 10, 2011, 06:39:11 AM
PM is send :) thank you very much!
Title: Re: Optimus Brave
Post by: [Lucien] on November 10, 2011, 07:08:14 AM
Thank you Bugo for your help!

I have so many questions, i hope it's oke :) Please let me now if i get annoying :P


Just downloaded this pdf file from Google

Google's Search Engine Optimization Starter Guide (http://static.googleusercontent.com/external_content/untrusted_dlcp/www.google.com/nl//webmasters/docs/search-engine-optimization-starter-guide.pdf)

How does this "Make use of the "description" meta tag" works? Is it implemented in this mod?
Or is it default in SMF?
Title: Re: Optimus Brave
Post by: [Lucien] on November 10, 2011, 07:30:15 AM
Sorry i answer my own question, in your mod it says:

Metatag keywords
Recommended no more than 20.


I should learn to read :P
Title: Re: Optimus Brave
Post by: Dblog on November 10, 2011, 09:20:38 AM
now sitemap.xml is not getting generated even after 1 day of scheduling the task.
the existing sitemap.xml is also missing !!!!!!!!!!!
Title: Re: Optimus Brave
Post by: Dblog on November 10, 2011, 10:00:33 PM
i wonder why existing sitemap.xml was deleted by new version 1.7.1
i already submitted it to google through webmaster tools and now sitemap cant be found by google
Title: Re: Optimus Brave
Post by: [Lucien] on November 24, 2011, 02:18:06 PM
Thank you for the update!!! I just installed it, will let you know how it works out!  ;D
Title: Re: Optimus Brave
Post by: Farmacija on December 05, 2011, 06:14:10 PM
While trying to generate sitemap, i get this error

"Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2371411 bytes) in /home/farmaceu/public_html/forum/Sources/Subs-Optimus.php on line 1411"
Title: Re: Optimus Brave
Post by: Bugo on December 05, 2011, 11:18:05 PM
Well, ask your hoster about this error. I think you need add line "php_value memory_limit 32M" (or something else — ask hoster) to your .htaccess.
Title: Re: Optimus Brave
Post by: Farmacija on December 06, 2011, 04:20:31 PM
Ok, this is solved.
But, is there a way to put all of urls in sitemap?
Title: Re: Optimus Brave
Post by: Bugo on December 06, 2011, 11:34:53 PM
Why? Any sitemap is not required if there is a proper robots.txt
Title: Re: Optimus Brave
Post by: drfun on December 07, 2011, 09:34:58 AM
Hello
please am having issues with the sitemap, it was generated sucessfully but when i added the sitemap link to may google webmaster tool, it said they cant read it. and the status is X. so i dont know if this how the site map should look like, and why Google could not read through it and giving me this (Error: The last attempt at downloading the Sitemap failed). below is my site map url
http://www.allstudentforum.com/sitemap.xlm
Title: Re: Optimus Brave
Post by: Bugo on December 07, 2011, 01:25:57 PM
Try add http://www.allstudentforum.com/common.xml
Title: Re: Optimus Brave
Post by: Farmacija on December 07, 2011, 03:50:11 PM
Quote from: Bugo on December 06, 2011, 11:34:53 PM
Why? Any sitemap is not required if there is a proper robots.txt

And why is there option for making sitemap at all?
Title: Re: Optimus Brave
Post by: Bugo on December 08, 2011, 12:42:34 AM
Exactly, it's optional - you can use, you can not use.
Title: Re: Optimus Brave
Post by: drfun on December 08, 2011, 05:24:06 AM
@ Bugo, thanks for the respond, but are you saying that the extension /sitemap.xml is not functional using this mod? or its from my site. well i have added this on you gave me, i will report back if its ok or the error still persist. thanks
Title: Re: Optimus Brave
Post by: drfun on December 09, 2011, 01:23:09 PM
@bugo, i have added this one you suggested http://www.allstudentforum.com/common.xml and am still having the same error on my google webmaster tool. ( Error: The last attempt at downloading the Sitemap failed. URL restricted by robots.txt
We encountered an error while trying to access your Sitemap)
Title: Re: Optimus Brave
Post by: Bugo on December 09, 2011, 10:25:10 PM
You are using a wrong line in your robots.txt:

Allow:/*Sitemap: http://www.allstudentforum.com/sitemap.xml

Correct:

Sitemap: http://www.allstudentforum.com/sitemap.xml
Title: Re: Optimus Brave
Post by: drfun on December 10, 2011, 04:22:18 AM
@ bugo, thanks,its ok now. No more error. Am grateful
Title: Re: Optimus Brave
Post by: MaXiForum.cz on January 04, 2012, 07:59:18 AM
Last Modified: Today
What´s news? :)
Title: Re: Optimus Brave
Post by: Bugo on January 04, 2012, 02:59:04 PM
Surprise :)
Title: Re: Optimus Brave
Post by: MaXiForum.cz on January 04, 2012, 03:15:10 PM
nothing :D
Title: Re: Optimus Brave
Post by: keith021773 on January 08, 2012, 05:53:14 PM
Hello there.  I installed this the other day and I am getting a few errors.   I will list them here.   Please tell me what you think.

8: Undefined index: map_title
File:Sources/Subs-Optimus.php
Line: 997

8: Undefined index: map_thumbnail
File:Sources/Subs-Optimus.php
Line: 996

8: Undefined index: map_direct_link
File: /Sources/Subs-Optimus.php
Line: 995

8: Undefined index: map_frequency
File: /Sources/Subs-Optimus.php
Line: 991

8: Undefined index: map_modified
File:/Sources/Subs-Optimus.php
Line: 990

8: Undefined index: map_url
File: /Sources/Subs-Optimus.php
Line: 971

any ideas?
Title: Re: Optimus Brave
Post by: Bugo on January 08, 2012, 07:30:51 PM
I think you're using non-UTF8 charset on forum. To solve this problem open Subs-Optimus.php, find

$file = $boarddir . '/sitemap.xsl';
optimus_file_create($file, $xsl, false);

and replace with:

global $context;

if ($context['character_set'] != 'UTF-8')
$xsl = iconv($context['character_set'], 'UTF-8', $xsl);

$file = $boarddir . '/sitemap.xsl';
optimus_file_create($file, $xsl, false);


Then re-create sitemap via Task Manager.
Title: Re: Optimus Brave
Post by: keith021773 on January 08, 2012, 07:48:37 PM
That seemed to fix that problem, but I think because of what we changed, I am now getting a new error.

Use of undefined constant infopmi - assumed 'infopmi'
File: l/Sources//ManageSettings.php

same names as all of the ones before, just a different file where the errors are coming from.


One other thing too.    LOL     
I am getting this from google saying that it doesn't understand this in my robots.txt file.  Is this normal? 
Clean-param: PHPSESSID /index.php
Title: Re: Optimus Brave
Post by: Antes on January 15, 2012, 02:27:25 PM
2: html_entity_decode() [<a href='function.html-entity-decode'>function.html-entity-decode</a>]: charset `ISO-8859-9' not supported, assuming iso-8859-1

File: /home/gnoll/public_html/testsmf/Sources/Subs-Optimus.php
Line: 161
Title: Re: Optimus Brave
Post by: denisoi on January 17, 2012, 08:49:14 AM
hello Bugo , firstly i want to say thanks for this modification , i saw it very useful .. i just made upgrade with the latest version and i saw that is not anymore the fuctions with meta keywords .. i had settings in the last version to use the first bolded words like meta keywords and i think that now is a problem for my forum because i not anymore in settings

could u help me please how to modify for this version to set again this option ?

Thanks in advance 
Title: Re: Optimus Brave
Post by: Bugo on January 17, 2012, 09:11:08 AM
I think the keywords are useless for forums.
Title: Re: Optimus Brave
Post by: denisoi on January 17, 2012, 09:31:44 AM
so, about your opinion is not a problem to don't have seted keywords for any topic ? i have nice positions in engines till now and im afraid to don't lose way ... i have a poker forum where im posting daily tournaments and events .

Now i put the same keywords for all website (portal and forum) which appear in all topics and boards. Give me please some advice how is better to set up

thanks
Title: Re: Optimus Brave
Post by: Bugo on January 17, 2012, 10:09:33 AM
Just remove all keywords at all. And wait for indexing updates. Forget about keywords. Think about content ;)
Title: Re: Optimus Brave
Post by: denisoi on January 17, 2012, 10:44:21 AM
ok , i removed all ..

we will see the results after a while , hope to be ok
Title: Re: Optimus Brave
Post by: denisoi on January 24, 2012, 05:36:11 AM
Hello Bugo ,

Im back with another question about sitemap which is in this modification :)

Today i realised that my forum links wich are in sitemap is looking different than my normal links which are on form and i wanna ask if that is a problem (in my opinion i think yes) and if yes how to repair them to look normal

I will give u some example so see about what im talking :

In forum like is looking like that : domain/2626/a-gray-challenge-a-la-ferguson/
In sitemap link is looking like that :  domain/index.php?topic=2626.0

Total different .. question is how engines are looking that

Thank u in advance
Title: Re: Optimus Brave
Post by: Bugo on January 24, 2012, 09:17:52 AM
Did you try to create sitemap again?
Title: Re: Optimus Brave
Post by: denisoi on January 24, 2012, 09:35:59 AM
no , i had the last one , i have to rebuild it and reupload ? :)
Title: Re: Optimus Brave
Post by: Bugo on January 24, 2012, 09:38:01 AM
Open Subs-Optimus.php, find block:

// SimpleSEF enabled?
$sef = !empty($modSettings['simplesef_enable']) && file_exists($sourcedir . '/SimpleSEF.php');
if ($sef)
{
function create_sefurl($url)
{
global $sourcedir;

require_once($sourcedir . '/SimpleSEF.php');
$simple = new SimpleSEF;

return $simple->create_sef_url($url);
}
}

and replace with:

// SimpleSEF enabled?
$sef = !empty($modSettings['simplesef_enable']) && file_exists($sourcedir . '/SimpleSEF.php');
if ($sef)
{
function create_sefurl($url)
{
global $sourcedir;

require_once($sourcedir . '/SimpleSEF.php');
$simple = new SimpleSEF;

return $simple->create_sef_url($url);
}
}

// PortaMx SEF enabled?
if (file_exists($sourcedir . '/PortaMx/PortaMxSEF.php') && function_exists('create_sefurl')) $sef = true;


Then re-create sitemap in Task Manager.
Title: Re: Optimus Brave
Post by: denisoi on January 24, 2012, 09:51:47 AM
cool bro , thanks for advice .. now everything is all right :) is looking well


Title: Re: Optimus Brave
Post by: Kindred on February 01, 2012, 12:38:10 PM
ok...   I installed this on my test system (with 150+ mods - set to test conflicts, overlaps, etc)

everything seems to be working correctly - except the wiki

Quote
Fatal error: Cannot use object of type WikiPage as array in /mysite/Sources/Subs-Optimus.php on line 77

Code (find line77) Select

  $board_page_number = $topic_page_number = '';
  if (!empty($context['page_info']['current_page']) && $context['page_info']['num_pages'] != 1)
  {
    $trans = array("{#}" => $context['page_info']['current_page']);
    $board_page_number = strtr($board_page_tpl, $trans);
    $topic_page_number = strtr($topic_page_tpl, $trans);
  }


any ideas?
Title: Re: Optimus Brave
Post by: Bugo on February 01, 2012, 08:03:44 PM
What is "wiki"? Do you mean SimpleWiki mod?
Title: Re: Optimus Brave
Post by: Kindred on February 01, 2012, 08:11:50 PM
No, it's Niko's beta SMF wiki mod...http://smfwiki.net/

It calls, http://test.turtleshellprod.com/index.php?action=wiki just before choking
Title: Re: Optimus Brave
Post by: Bugo on February 01, 2012, 10:58:42 PM
Unfortunately, this mod doesn't work for me. Wait stable release.
Title: Re: Optimus Brave
Post by: Kindred on February 01, 2012, 11:00:30 PM
The wiki mod doesn't work for you?  It is working fine for me, just not with  Optimus...  As for the stable release... I'm not sure it'll ever get done...lol, it's been in beta longer than 2.0 was, I think.
Title: Re: Optimus Brave
Post by: Bugo on February 02, 2012, 01:22:10 AM
Possible solution. Find
$board_page_number = $topic_page_number = '';
if (!empty($context['page_info']['current_page']) && $context['page_info']['num_pages'] != 1)
{
$trans = array("{#}" => $context['page_info']['current_page']);
$board_page_number = strtr($board_page_tpl, $trans);
$topic_page_number = strtr($topic_page_tpl, $trans);
}

and replace with:
$board_page_number = $topic_page_number = '';
if ($context['current_action'] != 'wiki')
{
if (!empty($context['page_info']['current_page']) && $context['page_info']['num_pages'] != 1)
{
$trans = array("{#}" => $context['page_info']['current_page']);
$board_page_number = strtr($board_page_tpl, $trans);
$topic_page_number = strtr($topic_page_tpl, $trans);
}
}
Title: Re: Optimus Brave
Post by: Kindred on February 02, 2012, 07:28:03 AM
that worked. :)   thanks!
Title: Re: Optimus Brave
Post by: MaXiForum.cz on February 03, 2012, 12:58:30 PM
http://test.turtleshellprod.com/index.php?action=wiki;page=Special:Upload
Fatal error: Cannot use object of type WikiPage as array in /home/turtleshell/www/test/Sources/Subs-Optimus.php on line 79

;)
Title: Re: Optimus Brave
Post by: Kindred on February 04, 2012, 02:51:53 AM
hmmmm.... that link works for me, when I am logged in, so it must be a conflict in the guest settings/permissions
Title: Re: Optimus Brave
Post by: FreeMan19 on February 13, 2012, 08:15:02 AM
for SMF 2.0 RC3 ?when? :D
Title: Re: Optimus Brave
Post by: Bugo on February 13, 2012, 08:42:18 AM
When pigs fly.
Title: Re: Optimus Brave
Post by: painterforum20 on February 13, 2012, 12:14:15 PM
I installed the mod but according to Webmasters Tools the Robots Text provided with the mod blocked Google bots from crawling the forum . According to WT 383 important pages were blocked plus there was some syntax error. I dropped completely off Google Search.
Title: Re: Optimus Brave
Post by: daveb47 on February 16, 2012, 11:22:49 AM
I have these files on root of forum but none of them are recognised by google webmaster tools

sitemap.xml.gz
sitemap_images.xml.gz
sitemap_mobile.xml.gz
sitemap.xsl

Title: Re: Optimus Brave
Post by: lepidas on February 18, 2012, 04:44:13 AM
Hi I just installed Optimus Brave but I dont know what to add in these fields

Title: Re: Optimus Brave
Post by: daveb47 on February 18, 2012, 12:07:34 PM
Getting these errors on webmaster tools

[code]Sitemap: /sitemap.xml.gz
Type: ?
Error details: 1 Errors, 0 Warnings.
Show:
Show
25 rows
1-1 of 1
# Type Issue Description Issues count Example Line Detected
1


Errors

Unsupported file format

Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.[

1


-

Feb 18, 2012


QuoteSitemap: /sitemap_images.xml.gz
Type: ?
Error details: 1 Errors, 0 Warnings.
Show:
Show
25 rows
1-1 of 1
#      Type   Issue   Description   Issues count   Example   Line   Detected
1
   
   
Errors
   
Unsupported file format
   
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.
   
1
   
   
-
   
Feb 18, 2012
Title: Re: Optimus Brave
Post by: Bugo on February 19, 2012, 06:34:12 AM
Well, don't use .gz format. Do you know about Sitemap mod?
Title: Re: Optimus Brave
Post by: painterforum20 on February 19, 2012, 03:10:08 PM
Google only recognizes XML and TEXT fie extensions for sitemaps.  You can create your own sitemap with any of the free online sitemap generators like http://sitemapxml.net/  download the file and upload to your server then submit to Google in your Webmaster Tools account.
Title: Re: Optimus Brave
Post by: bluedragon2k9 on March 11, 2012, 11:39:49 PM
hello i have a question.when we use this mod do we leave the  meta keywords that are in admin-feature and options blank or fill them out to?
Title: Re: Optimus Brave
Post by: Bugo on March 12, 2012, 01:24:55 AM
No difference.
Title: Re: Optimus Brave
Post by: bluedragon2k9 on March 14, 2012, 01:09:51 AM
ok i have one last question love the mod so far by the way great work.anyways the robot.txt generation does it matter if i have pretty urls mod? does the mod account for that or  does it matter  at all? meaning will the robots.txt be the same either way.
thanks for the help much appreciated
Title: Re: Optimus Brave
Post by: InfoStrides on March 16, 2012, 11:02:07 PM
Thanks for this great mod. But I am having difficulty with Sitemap generation. It is not working at all.
Title: Re: Optimus Brave
Post by: tectonny on April 29, 2012, 11:59:24 AM
Topic/board pages settings

After the last update to the functioning of nuperação of pages in the term page displays.
Title: Re: Optimus Brave
Post by: MoinFaraz on May 13, 2012, 11:15:34 AM
The only thing i am concerned about is "dupe keywords"

No matter what page content is, it will not generate auto keywords for boards, topics etc...

Would there be a setting to generate auto keywords just like it generate description

Title: Re: Optimus Brave
Post by: shubha on May 24, 2012, 02:28:40 AM
This is not working
"Output board description to the meta-tag description "
Title: Re: Optimus Brave
Post by: James--- on May 24, 2012, 07:22:12 PM
@shubba

It is working by me. If I put this option on, this mod will take the description of the board and use it as the meta description for that board.

@ the creator of the mod

QuoteOther small changes to improve the indexing of your forum

Can you be specific and tell us what those changes are? Does this change the breadcrumb homepage link to off?
Title: Re: Optimus Brave
Post by: shubha on May 25, 2012, 12:41:15 AM
But it did not working for me and google show the duplicate meta description.
Title: Re: Optimus Brave
Post by: MESWEB on May 28, 2012, 05:44:07 AM
Quote from: shubha on May 25, 2012, 12:41:15 AM
But it did not working for me and google show the duplicate meta description.
For me too.

How to display this:
Quote{topic_name}+{category_name}+ - page {#} - +{board_name} - {forum_name}
I need category name in title tag
Title: Re: Optimus Brave
Post by: Bugo on May 30, 2012, 01:17:20 AM
{category_name} is not provided.
Title: Re: Optimus Brave
Post by: MoinFaraz on May 30, 2012, 01:25:36 AM
Quote from: Bugo on May 30, 2012, 01:17:20 AM
{category_name} is not provided.

Could you possibly address my question mate? or possibly point me in the right direction.

Any help would be much appreciated. :)
Title: Re: Optimus Brave
Post by: Bugo on May 30, 2012, 05:38:42 AM
I'll add this feature later. Next version, maybe.
Title: Re: Optimus Brave
Post by: MESWEB on May 30, 2012, 05:44:03 AM
Quote from: Bugo on May 30, 2012, 05:38:42 AM
I'll add this feature later. Next version, maybe.
I appreciate it and wait for this feature.
Title: Re: Optimus Brave
Post by: MoinFaraz on May 30, 2012, 11:08:53 AM
Quote from: Bugo on May 30, 2012, 05:38:42 AM
I'll add this feature later. Next version, maybe.

My bad! its not about category name, but auto generating of keywords based on title or description.
Currently, there is no function to generate keywords like it does for description and title.

Hope i am making sense.
Title: Re: Optimus Brave
Post by: shubha on May 30, 2012, 11:38:34 AM
No need to add "category name", repeat the keywords against the terms and condition of google. I have already remove the forum name. You can contact the any seo.
Title: Re: Optimus Brave
Post by: MESWEB on May 30, 2012, 01:14:25 PM
I need category name in title description coz I have double posts:
First posts in MP3 (category)
Second posts in Videoclips (category)
Google index my post as doubled title description coz in Mp3 and Videoclips posts are this same name. Only If I add category name to title description - google index this properly
Title: Re: Optimus Brave
Post by: shubha on June 02, 2012, 07:29:16 AM
Everything Mess up after install the meta modification.I am unable to verify the website using optomus brave . How to manaully add it.
Title: Re: Optimus Brave
Post by: Gà Mái on June 08, 2012, 02:12:33 PM
Many thanks!!!
Nice mod!
Title: Re: Optimus Brave
Post by: floridaflatlander on June 08, 2012, 02:23:57 PM
Quote from: Gà Mái on June 08, 2012, 02:12:33 PM
Many thanks!!!
Nice mod!

I agree
Title: Re: Optimus Brave
Post by: GCMain on June 19, 2012, 01:53:03 PM
Loved this mod, but when I installed it on my SMF 2.0.2 board, ALL of the other choices from the configuration drop-down menu disappeared except for the Optimus Brave one.

When I uninstalled it, they all came back.

Any suggestions?
Title: Re: Optimus Brave
Post by: butchs on June 24, 2012, 10:00:02 PM
Un-install all mods before upgrading SMF.
Title: Re: Optimus Brave
Post by: Vrooom on August 03, 2012, 10:31:39 AM
That is better I think:
in Subs-Optimus.php

find:
$context['optimus_description'] = optimus_meta_teaser($topicinfo['id_first_msg']);

replace with:
$context['optimus_description'] = optimus_meta_teaser($context['first_message']);
Title: Re: Optimus Brave
Post by: Bugo on August 04, 2012, 07:34:22 AM
$context['topic_first_message'] it's best :)
Title: Re: Optimus Brave
Post by: MiY4Gi on August 11, 2012, 12:03:22 PM
I use the PortaMx portal, so the homepage title I specified in the mod only shows when I'm in my forum (i.e. at mysite.tld/forum), not when I'm at my "Home"/Portal page (i.e. mysite.tld). Would it be possible to move the homepage title to the Website's homepage, and rename the Forum's homepage as simply "MySiteTitle - Forum"?
Title: Re: Optimus Brave
Post by: mrintech on August 11, 2012, 01:24:02 PM
I am using this MOD and it's awesome for SEO :)

Thanks a ton :)
Title: Re: Optimus Brave
Post by: Bugo on August 12, 2012, 02:50:53 AM
Quote from: MiY4Gi on August 11, 2012, 12:03:22 PM
I use the PortaMx portal, so the homepage title I specified in the mod only shows when I'm in my forum (i.e. at mysite.tld/forum), not when I'm at my "Home"/Portal page (i.e. mysite.tld). Would it be possible to move the homepage title to the Website's homepage, and rename the Forum's homepage as simply "MySiteTitle - Forum"?
Subs-Optimus.php, find
function optimus_home()
{
global $txt, $modSettings, $context;

loadLanguage('Optimus');

$txt['forum_index'] = !empty($modSettings['optimus_forum_index']) ? '%1$s - ' . $modSettings['optimus_forum_index'] : $context['forum_name'];
}

function optimus_operations()
{
global $context, $boardurl, $modSettings, $smcFunc, $txt, $scripturl, $topicinfo, $board_info;

and replace with
function optimus_home()
{
global $context, $mbname, $txt, $modSettings;

loadLanguage('Optimus');

// Portal
if(empty($context['current_board']) && empty($context['current_topic']) && empty($_REQUEST['action']))
$context['forum_name'] = !empty($modSettings['optimus_forum_index']) ? $mbname . ' - ' . $modSettings['optimus_forum_index'] : $context['forum_name'];

// Forum
$txt['forum_index'] = '%1$s - Forum';
}

function optimus_operations()
{
global $context, $mbname, $boardurl, $modSettings, $smcFunc, $txt, $scripturl, $topicinfo, $board_info;

// Portal
if(empty($context['current_board']) && empty($context['current_topic']) && empty($_REQUEST['action']))
$context['linktree'][0]['name'] = $mbname;
Title: Re: Optimus Brave
Post by: MiY4Gi on August 13, 2012, 01:18:58 PM
Quote from: Bugo on August 12, 2012, 02:50:53 AM
Subs-Optimus.php, find
function optimus_home()
{
global $txt, $modSettings, $context;

loadLanguage('Optimus');

$txt['forum_index'] = !empty($modSettings['optimus_forum_index']) ? '%1$s - ' . $modSettings['optimus_forum_index'] : $context['forum_name'];
}

function optimus_operations()
{
global $context, $boardurl, $modSettings, $smcFunc, $txt, $scripturl, $topicinfo, $board_info;

and replace with
function optimus_home()
{
global $context, $mbname, $txt, $modSettings;

loadLanguage('Optimus');

// Portal
if(empty($context['current_board']) && empty($context['current_topic']) && empty($_REQUEST['action']))
$context['forum_name'] = !empty($modSettings['optimus_forum_index']) ? $mbname . ' - ' . $modSettings['optimus_forum_index'] : $context['forum_name'];

// Forum
$txt['forum_index'] = '%1$s - Forum';
}

function optimus_operations()
{
global $context, $mbname, $boardurl, $modSettings, $smcFunc, $txt, $scripturl, $topicinfo, $board_info;

// Portal
if(empty($context['current_board']) && empty($context['current_topic']) && empty($_REQUEST['action']))
$context['linktree'][0]['name'] = $mbname;


Worked like a charm. Thanks.
Title: Re: Optimus Brave
Post by: bearstreet on August 21, 2012, 05:08:12 PM
if i have a robots.txt file on root of my server, do i need to update the contents of it in the mod settings in my forum for this mod?

also, sitemap generated by it contains links like
forum/categoryx
and then
forum/categoryx/xyz
will it point to duplicate content issues?
Title: Re: Optimus Brave
Post by: mrintech on August 22, 2012, 12:44:50 AM
Quote from: bearstreet on August 21, 2012, 05:08:12 PM
if i have a robots.txt file on root of my server, do i need to update the contents of it in the mod settings in my forum for this mod?

also, sitemap generated by it contains links like
forum/categoryx
and then
forum/categoryx/xyz
will it point to duplicate content issues?

1. Nope

2. Are both URLs serving exact same content?
Title: Re: Optimus Brave
Post by: bearstreet on August 22, 2012, 06:44:22 AM
thnks, problem solved :)
Title: Re: Optimus Brave
Post by: bearstreet on August 22, 2012, 02:41:09 PM
the frequency is set for daily for boards
can I set it to hourly ?

i.e hourly change in frequency of boards instead of daily?
Title: Re: Optimus Brave
Post by: Bugo on August 22, 2012, 03:36:08 PM
The frequency depends on the date of the latest messages in each board. If your messages will be posted every hour then frequency automatically set to "hourly".
Title: Re: Optimus Brave
Post by: bearstreet on August 23, 2012, 10:40:07 AM
this is the link of xml sitemap made by using this mod
http://testbear1234.site88.net/sitemap.xml

I am using pretty urls
now the sitemap generates the urls and they are not that should be generated by using pretty urls
and clicking on the urls generated by this mod's sitemap, i gt redirected to the index page
how to rectify it
i.e. the sitemap shows urls consistent with pretty urls mod and does not gets redirected to index page
Title: Re: Optimus Brave
Post by: Kindred on August 23, 2012, 10:44:51 AM
get rid of prettyurls...
Title: Re: Optimus Brave
Post by: Bugo on August 24, 2012, 01:03:15 AM
Recreate the sitemap via Task Manager.
Title: Re: Optimus Brave
Post by: James--- on August 31, 2012, 11:13:40 AM
@Bugo,

We use your mod (optimus brave) and its pretty good actually, but we have a question about it.
You can configure the settings for the board's title tags,
but the sub-boards doesn't have that option yet. So by the sub-boards, the title tags remains the same
and can not be edited yet. Maybe you can create an option to do that? (configure title tags of sub-boards).

Thanks in advance!
Title: Re: Optimus Brave
Post by: Kindred on August 31, 2012, 11:31:06 AM
James,

Subboards?  Do you mean child boards?
If so, then the display page of a childboard uses the exact same template as the parent board......
Title: Re: Optimus Brave
Post by: James--- on August 31, 2012, 11:36:42 AM
Yes, I mean child boards. I don't understand it. Bugo has made an SEO mod, called "Optimus Brave".
His mod creates better titles and descriptions. You can use the name of the forum in the title tag for example.
This option creates better title tags for all topics and boards, but for child boards, there is nothing to configure.
So the title tags for child boards cannot be optimized.

Title: Re: Optimus Brave
Post by: Bugo on August 31, 2012, 12:09:52 PM
What exactly do you want?

Special template for sub boards like "Forum name - Board name - Sub board name - page xxx"?
Title: Re: Optimus Brave
Post by: Kindred on August 31, 2012, 01:19:43 PM
James - child boards = boards...   the child board will use the exact same profile as every other board.

Template of board pages title


Unless, as Bugo suggested, you are looking for a special template, just for child boards... However, that could get REALLY messy, REALLY fast. (I have seen forums with boards buried 5 or 6 layers deep)
Title: Re: Optimus Brave
Post by: James--- on September 01, 2012, 07:09:03 AM
Just to clarify, this is what I mean:

This URL leads to the affiliate marketing board: http://www.geldverdienenopinternetforum.nl/affiliate-marketing/3/
However, this URL leads to a child board of affiliate marketing, named "clickbank": http://www.geldverdienenopinternetforum.nl/clickbank/45/

As you can see, "Affiliate Marketing - Pagina 1 - Geld Verdienen Op Internet Forum" is the title of the affiliate marketing board, which is excellent.

However, just the word "Clickbank" is the title of the Clickbank child board.
It should be: Clickbank - Pagina 1 - Geld Verdienen Op Internet Forum

And my question is if there would be an opportunity to modify this?
Title: Re: Optimus Brave
Post by: Bugo on September 01, 2012, 08:15:17 AM
This child board is empty. OB mod doesn't work with empty boards (it's my idea). Post any topic and you will see changes.
Look at other your child board => http://www.geldverdienenopinternetforum.nl/google-analytics/47/, for example.

If you still want to "fix" OB, do the following:
1) open /Sources/Subs-Optimus.php,
2) find
if (!empty($board_info['total_topics']))
and replace with:
if (!empty($board_info['name']))
Title: Re: Optimus Brave
Post by: johnpaul2k2 on September 01, 2012, 11:00:08 AM
 i just installed Optimus Brave and i don't want to make mistakes

1. looking at the first image, do i need to include "meta-tag" (whether html or bbc) or should i leave it like that?

(https://lh5.googleusercontent.com/-VNeFdfMJZ7s/UEIG7Dws0wI/AAAAAAAAAHo/_FQfNTZlUGw/s989/Capture.PNG)

2. Looking at the second image, i dont understand this "robots.txt" very well. i only included the code that someone here shown  on how to block "link Profile" . i also saw many other codes but in order not to make mistakes.

(https://lh4.googleusercontent.com/-qkulan8jsh4/UEIG7PPrt9I/AAAAAAAAAHs/hbEV_YQXsZ4/s989/Capture2.PNG)
Should i copy all the codes to "robots.txt" box?
are there some i should select from?
or any smf tutorials concerning robots.txt??
here are the following robots.txt i saw in the "Generator of rules"

User-agent: Googlebot-Image
Disallow: /

User-agent: YandexImages
Disallow: /

User-agent: msnbot-MM
Disallow: /

User-agent: Googlebot-Mobile
Allow: /*wap
Disallow: /

User-agent: YandexImageResizer
Allow: /*wap
Disallow: /

User-agent: MediaPartners-Google
Allow: /

User-agent: *
Allow: /$
Allow: /*action=.xml
Disallow: /*action
Disallow: /*wap
Disallow: /*board=*wap
Disallow: /*topic=*wap
Disallow: /*topic=*.msg
Disallow: /*topic=*.new
Disallow: /*;
Disallow: /*PHPSESSID
Allow: /*board
Allow: /*topic
Disallow: /
Crawl-delay: 5
Clean-param: PHPSESSID /index.php
Host: topnichez.com
Title: Re: Optimus Brave
Post by: Bugo on September 01, 2012, 12:20:04 PM
1. Just make a short description (not keywords!) of your forum. Example: "The best forum in the world"...
2. Shouldn't, but can. It's not necessary.
Title: Re: Optimus Brave
Post by: johnpaul2k2 on September 01, 2012, 01:06:05 PM
Thanks but i saw another thing under "Search team"  take a look, they said my page has been indexed
what will i do?




(https://lh3.googleusercontent.com/-cJ6MgJTBLCg/UEI_xtKG_VI/AAAAAAAAAIM/ujzcXenfVfc/s848/Capture.PNG)
Title: Re: Optimus Brave
Post by: Bugo on September 01, 2012, 01:16:45 PM
Just wait... some days... or weeks. It depends on indexing & traffic :)
Title: Re: Optimus Brave
Post by: Oceander on September 15, 2012, 01:00:51 PM
Beautiful mod!  Thank you so very much for taking the time to give the world (well, ok, the SMF world) such a great present.
Title: Re: Optimus Brave
Post by: weerforum on September 17, 2012, 07:07:39 AM
Where can i change Page into Pagina.
Please see attachment.
Great mod by the way  ;)
Title: Re: Optimus Brave
Post by: Bugo on September 17, 2012, 07:12:05 AM
Admin -> Configuration -> SEO -> Common settings, 2 options: Template of board pages title and Template of topic pages title
Title: Re: Optimus Brave
Post by: weerforum on September 17, 2012, 07:21:44 AM
Briljant Bugo
Thanx for tje quick answer.
Greetings from the Netherlands  ;)
Title: Re: Optimus Brave
Post by: Thilo on September 19, 2012, 12:14:17 PM
Just one question:

My error-log shows always:

"Datenbankfehler: Duplicate entry '32767' for key 1"

So - to me it seems, that it isn't possible to store more than 32767 Search-Terms in the database ?

Ok - but is there a way to stop the mod trying to put more terms to the database if the number of terms already reached 32767...?
Title: Re: Optimus Brave
Post by: Bugo on September 19, 2012, 12:24:16 PM
Just change column (name "id") type from SMALLINT to INT - see search_terms table in your database.
Title: Re: Optimus Brave
Post by: Thilo on September 19, 2012, 12:39:23 PM
Ahhh - perfect ! Thanks :-)
Title: Re: Optimus Brave
Post by: PersianDeveloper on October 12, 2012, 10:27:31 AM
no questions but just in one tiny sweet sentence, this package is a MUST for all SMF forums

thumbs up Bugo
Title: Re: Optimus Brave
Post by: zoki on October 13, 2012, 07:29:18 AM
Is it possible for META Description tag to have not first sentence, but for example first 200 characters from the post? That would be awesome.
Title: Re: Optimus Brave
Post by: jobey on October 15, 2012, 06:42:15 PM
In the verification metatags section, what type of text am i supposed to be putting in the boxes?
  Thanks.
Title: Re: Optimus Brave
Post by: Bugo on October 15, 2012, 11:15:53 PM
What is written there?
Title: Re: Optimus Brave
Post by: mrintech on October 16, 2012, 01:50:35 AM
Quote from: jobey on October 15, 2012, 06:42:15 PM
In the verification metatags section, what type of text am i supposed to be putting in the boxes?
  Thanks.

When you try to verify your Site in Google Webmasters Tool, Bing etc., you will get a small verification snippet. You need to enter these snippets in these boxes

http://support.google.com/webmasters/bin/answer.py?hl=en&answer=35179
Title: Re: Optimus Brave
Post by: oloyede JAMIU on October 16, 2012, 04:55:44 AM
can somebody guide me on how to set this mod for my site to be search engine friendly
Title: Re: Optimus Brave
Post by: alphacaveman on October 17, 2012, 07:56:52 PM
Hi there, I'm using Optimus Brave but am running into a problem. It won't change the meta description no matter how I enter the settings. I went to my index.template.php file and saw that I had a meta description in there that it was pulling. But when I remove it, the forum still won't show what I'm asking it to via Optimus. Any ideas? Thanks.
Title: Re: Optimus Brave
Post by: Bugo on October 18, 2012, 03:29:59 AM
You shouldn't change nothing in index.template.php, never. This mod doesn't make any edits with files.
Title: Re: Optimus Brave
Post by: jobey on October 18, 2012, 03:32:22 PM
Apart from entering a description in the forum review....and entering the verification metatags....should i be doing anything else with this mod to optimize the results i get?
Title: Re: Optimus Brave
Post by: Bugo on October 18, 2012, 09:35:02 PM
Not required, but one can use other tabs of this mod.
Title: Re: Optimus Brave
Post by: jobey on October 19, 2012, 04:50:30 PM
ok, thanks
Title: Re: Optimus Brave
Post by: Bugo on October 19, 2012, 10:47:23 PM
Quote from: zoki on October 13, 2012, 07:29:18 AM
Is it possible for META Description tag to have not first sentence, but for example first 200 characters from the post? That would be awesome.
Of course, it's possible. Open Subs-Optimus.php, find this:
if ($smcFunc['strlen']($teaser) < 150) return strip_tags($teaser);
and replace with
if ($smcFunc['strlen']($teaser) < 200) return strip_tags($teaser);

Then find this:
$teaser = $smcFunc['substr']($teaser, 0, 150);
and replace with
$teaser = $smcFunc['substr']($teaser, 0, 200);

Finally, find
$result = !empty($tmp1) ? $tmp1 : (!empty($tmp2) ? $tmp2 : (!empty($tmp3) ? $tmp3 : rtrim($teaser)));
and replace with
$result = rtrim($teaser);
Title: Re: Optimus Brave
Post by: Uhura! on October 25, 2012, 09:14:39 PM
Great mod! Where are the controls in the Admin Panel?
Title: Re: Optimus Brave
Post by: Bugo on October 25, 2012, 11:12:51 PM
You wouldn't believe me — Admin Panel => Configuration => Search Engine Optimization :)
Title: Re: Optimus Brave
Post by: Uhura! on October 26, 2012, 06:46:00 PM
It's not that - I thought I would get a faster response in the support thread.

Anyway - it was my lack of attention. i uploaded but did not hit "install"

Sorry LOL!
Title: Re: Optimus Brave
Post by: alphacaveman on October 28, 2012, 05:21:45 PM
So back to my original post. Whether or not I edit the index.template.php file is irrelevant. The mod still won't change the meta description no matter how I enter the settings.
Title: Re: Optimus Brave
Post by: alphacaveman on November 07, 2012, 12:35:43 PM
Anyone? Optimus Brave, though I ask it to, won't change the meta description anywhere. Any ideas?
Title: Re: Optimus Brave
Post by: Bugo on November 07, 2012, 07:40:35 PM
Try to use original index.template.php, without ANY changes.
Title: Re: Optimus Brave
Post by: alphacaveman on November 16, 2012, 05:06:16 PM
Quote from: Bugo on November 07, 2012, 07:40:35 PM
Try to use original index.template.php, without ANY changes.

As far as I know, that's what I'm doing. :) Can you tell me what parts are essential so I can check them with the SMF default? Or if you know of a quicker, easier way, I'd certainly appreciate that as well.
Title: Re: Optimus Brave
Post by: jack001 on November 17, 2012, 03:51:06 AM
i am not getting what to write in

Search engine (Tools)    
Google (Webmasters tools)       
Yandex (Yandex.Webmaster)       
MSN (MSN Webmaster Tools)       
Yahoo (Yahoo Site Explorer)       
Alexa (Alexa Site Tools)

can you please elaborate??
Title: Re: Optimus Brave
Post by: Bugo on November 17, 2012, 04:25:59 AM
If you don't know what to write, leave these fields blank.
Title: Re: Optimus Brave
Post by: mrintech on November 17, 2012, 08:49:47 AM
Quote from: jack001 on November 17, 2012, 03:51:06 AM
i am not getting what to write in

Search engine (Tools)    
Google (Webmasters tools)       

can you please elaborate??

You need to enter Meta Verification Tags in these fields: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=35659

Google matters the most :)
Title: Re: Optimus Brave
Post by: perfec2 on November 21, 2012, 06:10:54 AM
Does it support 1.16 version?
Title: Re: Optimus Brave
Post by: Kindred on November 21, 2012, 10:07:18 AM
did you even bother to read the mod download page?

Quote
Compatible With:
    2.0, 2.0.1, 2.0.2


so. no.
Title: Re: Optimus Brave
Post by: normd on November 27, 2012, 01:16:10 PM
I can not get the sitemap generator to work using 2.0.2, There is no option in the Scheduled Tasks to enable Sitemap Generation task? 

When you go to
Administration Center » Search Engine Optimization »robots.txt  in the place where the options should be under Search Engine Optimization it just says "Do you want a simple sitemap? Optimus Brave can generate sitemap.xml for small forums. Just go to Scheduled Tasks and enable Sitemap Generation task.. " But as i say there is no option for this in scheduled tasks??????

any idea's ???
Title: Re: Optimus Brave
Post by: Bugo on November 27, 2012, 09:22:21 PM
How did you install it? Via Package Manager or by hand?
Title: Re: Optimus Brave
Post by: normd on November 28, 2012, 02:22:16 PM
Via package manager but all is fine, there is still no option for the site map but it has now done one anyway all by it's self lol, well happy with it thanks!!
Title: Re: Optimus Brave
Post by: Bugo on November 28, 2012, 11:45:39 PM
Can you make a screenshot of your Scheduled Tasks page?
Title: Re: Optimus Brave
Post by: joeyjojoshabadoo on December 04, 2012, 06:12:06 PM
Bugo thanks for the great mod. Can you help me with something possibly small related to the sitemap?

The sitemap is generating, but each link in the sitemap, when I click it, just leads to to the main index page. Is this normal? Should the sitemap links not go direct to the specific topics for the search engines?

Sitemap URL
http://www.dropkickrugby.com/forum/sitemap.xml
(http://www.dropkickrugby.com/forum/sitemap.xml)
Many thanks for any thoughts.

kind regards
Title: Re: Optimus Brave
Post by: Bugo on December 05, 2012, 01:33:56 AM
Try to run task "Creating of Sitemap" in Scheduled Tasks by hand.
Title: Re: Optimus Brave
Post by: joeyjojoshabadoo on December 05, 2012, 11:11:56 AM
Hi Bugo,

thanks for getting back to me.

I tried that, and yet the sitemap on the url is the same- every link on it, when clicked, just goes to the index.
Can you try it and see if they all go to the index for you too?

http://www.dropkickrugby.com/forum/sitemap.xml

Do you have any other ideas as to what is wrong?

Thanks
Title: Re: Optimus Brave
Post by: Kindred on December 05, 2012, 12:56:44 PM
ok, joey...   the links in your sitemap work fine for me...   each of them links to a specific BOARD, exactly as it should

it looks like you have some silly "SEO" or "pretty urls" mod...   I'd say get rid of it, it's useless and will cause mor eproblems than it supposedly solves.!
Title: Re: Optimus Brave
Post by: Bugo on December 05, 2012, 01:50:12 PM
All links work fine for me too. Try to update cache in your browser.
Title: Re: Optimus Brave
Post by: joeyjojoshabadoo on December 05, 2012, 09:44:41 PM
hey guys - i cleared my cache and it's still the same. Even when I try it in IExplorer, every link takes me to this page

http://www.dropkickrugby.com/forum/index

but comes up like this in the browser address

http://www.dropkickrugby.com/forum/index.php?topic;=87.0

am I going crazy? ( maybe i am!)
Title: Re: Optimus Brave
Post by: Bugo on December 06, 2012, 01:58:36 AM
Disable/Uninstall your SEO mod (Pretty URLs or what you are using) and then re-create Sitemap via Scheduled Tasks.
Title: Re: Optimus Brave
Post by: joeyjojoshabadoo on December 09, 2012, 02:34:37 PM
Hi Bugo, thanks for getting back to me. Can I then go back to using pretty URL after doing that?
Title: Re: Optimus Brave
Post by: Kindred on December 09, 2012, 06:11:37 PM
no....   and, as I said - pretty urls will cause problems with lots of mods (and is not necessary)
Title: Re: Optimus Brave
Post by: 2strokecentral on December 28, 2012, 02:53:44 AM
Hi,
I installed this mod. It seems like it would great. Only problem is that none of my titles changed they are still the same.
www.2strokecentral.com/index.php
it should be www.2strokecentral.com/home

Is there something I'm not doing or I should do?
Title: Re: Optimus Brave
Post by: Kindred on December 28, 2012, 08:20:39 AM
This mod does not change the urls at all, since urls have very little, if any, effect on search engine ranking.
Title: Re: Optimus Brave
Post by: joeyjojoshabadoo on January 03, 2013, 04:57:07 PM
Hi kindred,

I agree they dont do alot for SEO (maybe a little according to some people) but as an internet user myself i'm FAR more likely to click on a link if it's not a jumble of numbers - but words relevant to what im looking for
Title: Re: Optimus Brave
Post by: Arantor on January 03, 2013, 05:02:11 PM
You're in the minority actually - the WSJ and YouTube, consistently in the top 10 sites online, do not bother with 'nice' URLs.
Title: Re: Optimus Brave
Post by: joeyjojoshabadoo on January 03, 2013, 05:42:21 PM
im not in any minority or majority actually - said 'maybe' a little. From what i've read. That's all.

And youtube being owned by google means theyll get the most favourable traffic anyway, so not sure theyre a good example. Plus, with the volume and uploaders writing headings, its not practical for them to make pretty urls.

Again, i dont know, but alot of people online say they matter. Again, not here to argue with you....................................
Title: Re: Optimus Brave
Post by: Arantor on January 03, 2013, 05:44:31 PM
And here's the other thing... remember that you're not writing all the topics on the forum, your *users* are, and I guarantee users will not care about keywords and whatnot in titles.

I'm not asking you to believe what I'm saying. Nor am I asking you to argue. I'm asking you to take what I'm saying and think about it.
Title: Re: Optimus Brave
Post by: Badboy on January 06, 2013, 05:30:58 PM
Turkish translation
$txt['optimus_main'] = 'Optimus Brave';
$txt['optimus_title'] = 'Arama Motoru Optimizasyonu';

$txt['optimus_common_title'] = 'Genel ayarlar';
$txt['optimus_common_desc'] = 'Bu sayfada forum açıklamasını değiştirebilir, sayfa başlıklarının şablonlarını yönetebilirsiniz.';
$txt['optimus_verification_title'] = 'Meta etiketleri doğrulaması';
$txt['optimus_verification_desc'] = 'Bu sayfada aşağıdaki listeden herhangi bir genel veya doğrulama kodu ekleyebilirsiniz.';
$txt['optimus_robots_title'] = 'robots.txt';
$txt['optimus_robots_desc'] = 'Bu sayfada forum haritası oluşturmanın bazı seçeneklerini değiştirebilirsiniz, bunun yanı sıra özel üreteci kullanarak bir robots.txt dosyası değiştirebilirsiniz.';
$txt['optimus_terms_title'] = 'Arama terimleri';
$txt['optimus_terms_desc'] = 'Arama terimleri insanların forumunuzu bulmak için arama motorlarının arama formlarına yazdığı kelime ve ifadelerdir.';

$txt['optimus_main_page'] = 'Anasayfa';
$txt['optimus_common_info'] = 'Peki, eğer robot bir sayfa ile bir arama sorgusunun eşleştiğini belirlerse açıklama etiketi içeriği dikkate alınabilir.';
$txt['optimus_portal_index'] = 'Portal anasayfa başlığı';
$txt['optimus_forum_index'] = 'Forum anasayfa başlığı';
$txt['optimus_description'] = 'Kısa ama ilginç bir forum yorumu<br /><span class="smalltext"><em>description</em> etiketinin içeriği olarak kullanılacaktır.</span>';
$txt['optimus_all_pages'] = 'Konu/bölüm sayfalarının ayarları';
$txt['optimus_tpl_info'] = 'Olası değişkenler:<br/><strong>{board_name}</strong> &mdash; bölüm adı, <strong>{topic_name}</strong> &mdash; konu başlığı,<br/><strong>{#}</strong> &mdash; geçerli sayfa numarası, <strong>{cat_name}</strong> &mdash; kategori adı, <strong>{forum_name}</strong> &mdash; forumunuzun adı.';
$txt['optimus_board_tpl'] = 'Bölüm sayfalarının başlık şablonu';
$txt['optimus_topic_tpl'] = 'Konu sayfalarının başlık şablonu';
$txt['optimus_templates'] = array(
'board' => array('{board_name}', ' - sayfa {#} - ', '{forum_name}'),
'topic' => array('{topic_name}', ' - sayfa {#} - ', '{board_name} - {forum_name}')
);

$txt['optimus_board_description'] = 'Bölüm açıklamasını meta-etikete gönder <em>description</em>';
$txt['optimus_topic_description'] = 'Konunun ilk mesajının ilk cümlesini meta-etikete gönder <em>description</em>';
$txt['optimus_404_status'] = 'İstenen sayfa durumuna göre <a href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes" target="_blank">403/404 kodunu</a> getir';
$txt['optimus_404_page_title'] = '404 - Sayfa bulunamadı';
$txt['optimus_404_h2'] = 'Hata 404';
$txt['optimus_404_h3'] = 'Üzgünüm, ama istenilen sayfa bulunamadı.';
$txt['optimus_403_page_title'] = '403 - Erişim Yasak';
$txt['optimus_403_h2'] = 'Hata 403';
$txt['optimus_403_h3'] = 'Üzgünüm, ancak bu sayfaya erişim hakkınız yok.';

$txt['optimus_codes'] = 'Doğrulama meta etiketleri';
$txt['optimus_titles'] = 'Arama Motoru (Araçları)';
$txt['optimus_name'] = 'Adı';
$txt['optimus_content'] = 'İçerik';
$txt['optimus_meta_info'] = ' Lütfen sadece <strong>content</strong> meta etiketinin parametre değerlerini kullanın.<br />Örneğin: <span class="smalltext">&lt;meta name="google-site-verification" content="<strong>SAĞ SÜTUNA YAPIŞTIRMANIZ GEREKEN DEĞER</strong>" /&gt;</span>';
$txt['optimus_search_engines'] = array(
'Google' => array('google-site-verification','<a href="http://www.google.com/webmasters/tools" target="_blank">Web Yöneticisi Araçları</a>'),
'Yandex' => array('yandex-verification','<a href="http://webmaster.yandex.com/" target="_blank">Yandex.Web Yöneticisi</a>'),
'MSN' => array('msvalidate.01','<a href="http://www.bing.com/webmaster" target="_blank">MSN Web Yöneticisi Araçları</a>'),
'Yahoo' => array('y_key','<a href="https://siteexplorer.search.yahoo.com/" target="_blank">Yahoo Site Tarayıcısı</a>'),
'Alexa' => array('alexaVerifyID','<a href="http://www.alexa.com/siteowners" target="_blank">Alexa Site Araçları</a>')
);

$txt['optimus_counters'] = 'Sayaçlar';
$txt['optimus_counters_desc'] = 'Bu bölümde forumunuza ziyaretleri hesaplamak için sayaç çeşitleri ekleyebilir veya değiştirebilirsiniz.';
$txt['optimus_stat_code'] = 'Görünmez sayaçlar (<a href="http://www.google.com/analytics/sign_up.html" target="_blank">Google Analytics</a>, <a href="http://piwik.org/" target="_blank">Piwik</a> etc)';
$txt['optimus_count_code'] = 'Görünür sayaçlar (<a href="http://www.freestats.com/" target="_blank">FreeStats</a>, <a href="http://www.superstats.com/" target="_blank">SuperStats</a>, <a href="http://www.prtracker.com/FreeCounter.html" target="_blank">PRTracker</a> etc)';
$txt['optimus_ignored_actions'] = 'Yoksayılan eylemler';

$txt['optimus_sitemap_section'] = 'Forum haritası';
$txt['optimus_sitemap_desc'] = 'Basit bir site haritası ister misiniz? Optimus Brave küçük forumlar için sitemap.xml oluşturabilir. Sadece <a href="?action=admin;area=scheduledtasks;sa=tasks" target="_blank">Zamanlanmış Görevler</a>e gidin ve Site Haritası Oluşturma görevini etkinleştirin.';

$txt['optimus_manage'] = 'Robots.txt yönet';
$txt['optimus_robots_old'] = 'Eski (yüklemeden önceki) robots.txt içeriğini <a href="/old_robots.txt" target="_blank">bu bağlantıdan</a> görebilirsiniz.';
$txt['optimus_links_title'] = 'Faydalı bağlantılar';
$txt['optimus_links'] = array(
'.htaccess düzenleme' => 'http://httpd.apache.org/docs/trunk/howto/htaccess.html',
'robots.txt kullanımı' => 'http://help.yandex.com/webmaster/?id=1113851',
'robots.txt dosyası kullanarak sayfaları engelleme veya kaldırma' => 'http://www.google.com/support/webmasters/bin/answer.py?hl=en&amp;answer=156449'
);

$txt['optimus_rules'] = 'Kural oluşturucu';
$txt['optimus_rules_hint'] = 'Siz sağdaki alana bu kuralları kopyalayabilirsiniz:';
$txt['optimus_robots_hint'] = 'Burada kendi kurallarınızı ekleyebilir veya mevcut olanları değiştirebilirsiniz:';
$txt['optimus_other_text'] = 'Lütfen unutmayın';
$txt['optimus_post_scriptum'] = '<span class="alert">Bu değişikliği kendi sorumluluğunuzda kullanın</span>';
$txt['optimus_useful'] = '';

$txt['scheduled_task_optimus_sitemap'] = 'Forum Haritası Oluştur';
$txt['scheduled_task_desc_optimus_sitemap'] = 'Önerilen düzenlilik &mdash; günde bir defa.';
$txt['optimus_sitemap_rec'] = ' Optimus Brave dosyaları birkaç parçaya bölemez.';
$txt['optimus_sitemap_url_limit'] = 'Site Haritası dosyası 50.000\'den fazla URL içermemelidir!';
$txt['optimus_sitemap_size_limit'] = '%1$s dosyası 10 MB\'den büyük olmamalıdır.!';

$txt['optimus_search_stats'] = 'Arama terimleri kaydını etkinleştir';
$txt['optimus_chart_title'] = 'Arama terimleri - En İyi %1$s';
$txt['optimus_terms_none'] = 'İstatistikler mevcut değil. Belki forumunuz henüz indekslenmemiştir.';
$txt['optimus_terms'] = array(
'google' => 'q',
'yahoo' => 'p',
'bing' => 'q',
'alexa' => 'q'
);


Turkish-utf8 translation
$txt['optimus_main'] = 'Optimus Brave';
$txt['optimus_title'] = 'Arama Motoru Optimizasyonu';

$txt['optimus_common_title'] = 'Genel ayarlar';
$txt['optimus_common_desc'] = 'Bu sayfada forum açıklamasını değiştirebilir, sayfa başlıklarının şablonlarını yönetebilirsiniz.';
$txt['optimus_verification_title'] = 'Meta etiketleri doğrulaması';
$txt['optimus_verification_desc'] = 'Bu sayfada aşağıdaki listeden herhangi bir genel veya doğrulama kodu ekleyebilirsiniz.';
$txt['optimus_robots_title'] = 'robots.txt';
$txt['optimus_robots_desc'] = 'Bu sayfada forum haritası oluşturmanın bazı seçeneklerini değiştirebilirsiniz, bunun yanı sıra özel üreteci kullanarak bir robots.txt dosyası değiştirebilirsiniz.';
$txt['optimus_terms_title'] = 'Arama terimleri';
$txt['optimus_terms_desc'] = 'Arama terimleri insanların forumunuzu bulmak için arama motorlarının arama formlarına yazdığı kelime ve ifadelerdir.';

$txt['optimus_main_page'] = 'Anasayfa';
$txt['optimus_common_info'] = 'Peki, eğer robot bir sayfa ile bir arama sorgusunun eşleştiğini belirlerse açıklama etiketi içeriği dikkate alınabilir.';
$txt['optimus_portal_index'] = 'Portal anasayfa başlığı';
$txt['optimus_forum_index'] = 'Forum anasayfa başlığı';
$txt['optimus_description'] = 'Kısa ama ilginç bir forum yorumu<br /><span class="smalltext"><em>description</em> etiketinin içeriği olarak kullanılacaktır.</span>';
$txt['optimus_all_pages'] = 'Konu/bölüm sayfalarının ayarları';
$txt['optimus_tpl_info'] = 'Olası değişkenler:<br/><strong>{board_name}</strong> &mdash; bölüm adı, <strong>{topic_name}</strong> &mdash; konu başlığı,<br/><strong>{#}</strong> &mdash; geçerli sayfa numarası, <strong>{cat_name}</strong> &mdash; kategori adı, <strong>{forum_name}</strong> &mdash; forumunuzun adı.';
$txt['optimus_board_tpl'] = 'Bölüm sayfalarının başlık şablonu';
$txt['optimus_topic_tpl'] = 'Konu sayfalarının başlık şablonu';
$txt['optimus_templates'] = array(
'board' => array('{board_name}', ' - sayfa {#} - ', '{forum_name}'),
'topic' => array('{topic_name}', ' - sayfa {#} - ', '{board_name} - {forum_name}')
);

$txt['optimus_board_description'] = 'Bölüm açıklamasını meta-etikete gönder <em>description</em>';
$txt['optimus_topic_description'] = 'Konunun ilk mesajının ilk cümlesini meta-etikete gönder <em>description</em>';
$txt['optimus_404_status'] = 'İstenen sayfa durumuna göre <a href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes" target="_blank">403/404 kodunu</a> getir';
$txt['optimus_404_page_title'] = '404 - Sayfa bulunamadı';
$txt['optimus_404_h2'] = 'Hata 404';
$txt['optimus_404_h3'] = 'Üzgünüm, ama istenilen sayfa bulunamadı.';
$txt['optimus_403_page_title'] = '403 - EriÅŸim Yasak';
$txt['optimus_403_h2'] = 'Hata 403';
$txt['optimus_403_h3'] = 'Üzgünüm, ancak bu sayfaya erişim hakkınız yok.';

$txt['optimus_codes'] = 'DoÄŸrulama meta etiketleri';
$txt['optimus_titles'] = 'Arama Motoru (Araçları)';
$txt['optimus_name'] = 'Adı';
$txt['optimus_content'] = 'İçerik';
$txt['optimus_meta_info'] = ' Lütfen sadece <strong>content</strong> meta etiketinin parametre değerlerini kullanın.<br />Örneğin: <span class="smalltext">&lt;meta name="google-site-verification" content="<strong>SAĞ SÜTUNA YAPIŞTIRMANIZ GEREKEN DEĞER</strong>" /&gt;</span>';
$txt['optimus_search_engines'] = array(
'Google' => array('google-site-verification','<a href="http://www.google.com/webmasters/tools" target="_blank">Web Yöneticisi Araçları</a>'),
'Yandex' => array('yandex-verification','<a href="http://webmaster.yandex.com/" target="_blank">Yandex.Web Yöneticisi</a>'),
'MSN' => array('msvalidate.01','<a href="http://www.bing.com/webmaster" target="_blank">MSN Web Yöneticisi Araçları</a>'),
'Yahoo' => array('y_key','<a href="https://siteexplorer.search.yahoo.com/" target="_blank">Yahoo Site Tarayıcısı</a>'),
'Alexa' => array('alexaVerifyID','<a href="http://www.alexa.com/siteowners" target="_blank">Alexa Site Araçları</a>')
);

$txt['optimus_counters'] = 'Sayaçlar';
$txt['optimus_counters_desc'] = 'Bu bölümde forumunuza ziyaretleri hesaplamak için sayaç çeşitleri ekleyebilir veya değiştirebilirsiniz.';
$txt['optimus_stat_code'] = 'Görünmez sayaçlar (<a href="http://www.google.com/analytics/sign_up.html" target="_blank">Google Analytics</a>, <a href="http://piwik.org/" target="_blank">Piwik</a> etc)';
$txt['optimus_count_code'] = 'Görünür sayaçlar (<a href="http://www.freestats.com/" target="_blank">FreeStats</a>, <a href="http://www.superstats.com/" target="_blank">SuperStats</a>, <a href="http://www.prtracker.com/FreeCounter.html" target="_blank">PRTracker</a> etc)';
$txt['optimus_ignored_actions'] = 'Yoksayılan eylemler';

$txt['optimus_sitemap_section'] = 'Forum haritası';
$txt['optimus_sitemap_desc'] = 'Basit bir site haritası ister misiniz? Optimus Brave küçük forumlar için sitemap.xml oluşturabilir. Sadece <a href="?action=admin;area=scheduledtasks;sa=tasks" target="_blank">Zamanlanmış Görevler</a>e gidin ve Site Haritası Oluşturma görevini etkinleştirin.';

$txt['optimus_manage'] = 'Robots.txt yönet';
$txt['optimus_robots_old'] = 'Eski (yüklemeden önceki) robots.txt içeriğini <a href="/old_robots.txt" target="_blank">bu bağlantıdan</a> görebilirsiniz.';
$txt['optimus_links_title'] = 'Faydalı bağlantılar';
$txt['optimus_links'] = array(
'.htaccess düzenleme' => 'http://httpd.apache.org/docs/trunk/howto/htaccess.html',
'robots.txt kullanımı' => 'http://help.yandex.com/webmaster/?id=1113851',
'robots.txt dosyası kullanarak sayfaları engelleme veya kaldırma' => 'http://www.google.com/support/webmasters/bin/answer.py?hl=en&amp;answer=156449'
);

$txt['optimus_rules'] = 'Kural oluÅŸturucu';
$txt['optimus_rules_hint'] = 'Siz sağdaki alana bu kuralları kopyalayabilirsiniz:';
$txt['optimus_robots_hint'] = 'Burada kendi kurallarınızı ekleyebilir veya mevcut olanları değiştirebilirsiniz:';
$txt['optimus_other_text'] = 'Lütfen unutmayın';
$txt['optimus_post_scriptum'] = '<span class="alert">Bu değişikliği kendi sorumluluğunuzda kullanın</span>';
$txt['optimus_useful'] = '';

$txt['scheduled_task_optimus_sitemap'] = 'Forum Haritası Oluştur';
$txt['scheduled_task_desc_optimus_sitemap'] = 'Önerilen düzenlilik &mdash; günde bir defa.';
$txt['optimus_sitemap_rec'] = ' Optimus Brave dosyaları birkaç parçaya bölemez.';
$txt['optimus_sitemap_url_limit'] = 'Site Haritası dosyası 50.000\'den fazla URL içermemelidir!';
$txt['optimus_sitemap_size_limit'] = '%1$s dosyası 10 MB\'den büyük olmamalıdır.!';

$txt['optimus_search_stats'] = 'Arama terimleri kaydını etkinleştir';
$txt['optimus_chart_title'] = 'Arama terimleri - En Ä°yi %1$s';
$txt['optimus_terms_none'] = 'İstatistikler mevcut değil. Belki forumunuz henüz indekslenmemiştir.';
$txt['optimus_terms'] = array(
'google' => 'q',
'yahoo' => 'p',
'bing' => 'q',
'alexa' => 'q'
);
Title: Re: Optimus Brave
Post by: Kindred on January 06, 2013, 06:29:53 PM
the utf-8 translation did not come across well.

You have to make UTF-8 translations as attachments not as posts
Title: Re: Optimus Brave
Post by: Badboy on January 07, 2013, 11:00:04 AM
Thx. Previous post was edited.
Title: Re: Optimus Brave
Post by: sukafia on January 15, 2013, 10:57:31 PM
hi, please can someone guide me on what to do to make this mod work properly after installing it what next, i don't understand its setting, please what should i do?

"Output board description to the meta-tag description 
Output the first sentence of the topic first message to the meta-tag description 
Return 403/404 code depending on the requested page's status "

should i tick the above, can someone explain their functions please.
it also ask for forum title, should put the title again or it'll use my forum title if i don't put it.
Template of board pages title: what should i put here please.
Title: Re: Optimus Brave
Post by: maarawoe on January 28, 2013, 01:42:52 PM
Hi,

I am having the same problem as someone described before...
I installed this mod via the package manager, all went ok, the addon works well but there is no scheduled task in the list of my scheduled tasks...

Is there any way how to crate the task manually?

Thanks!
Title: Re: Optimus Brave
Post by: sukafia on January 30, 2013, 04:15:45 PM
I used this mod to add Google analytics to my site, its working but the whole Google analytics code is showing in the mobile version of my site. is there a fix?
Title: Re: Optimus Brave
Post by: Bugo on January 30, 2013, 04:44:22 PM
Is there an example?
Title: Re: Optimus Brave
Post by: Pyrhel on January 31, 2013, 06:32:27 PM
Hi guys! I hit the wall :)
In the "Common settings" menu there are two sections, right - homepage and Topic/board pages settings. Everything in the Homepage settings work fine, but the settings about board and topic don't change the titles. There are no errors in the apache log files and nothing in the admin logs section. Do you have any ideas? Thanks :)
Title: Re: Optimus Brave
Post by: maarawoe on February 01, 2013, 03:11:01 AM
Any solution for that missing scheduled task please?
Title: Re: Optimus Brave
Post by: humbleworld on February 03, 2013, 01:08:46 PM
Hi Bugo, thanks for this MOD. I have a question.

If a thread has 5 pages, Optimus would present the thread page with with Page Number. I notice however that all the pages in a thread have the same meta name description.

Is is possible to update this MOD so that it can give a different meta name description for each page of the thread instead of just one meta name description for all the pages of the thread?
Title: Re: Optimus Brave
Post by: Bugo on February 03, 2013, 02:25:01 PM
Where the mod should to take different description from? From the first message on every page?
Title: Re: Optimus Brave
Post by: humbleworld on February 03, 2013, 05:35:58 PM
Yes, first message of the thread. But the first message in the first page is also the meta description in the second, third, fourth, fifth pages.

I checked the vBulletin seo mod and it is not like that way. The second page will take a different first message as meta description, then another meta description for the third page...
Title: Re: Optimus Brave
Post by: Kindred on February 03, 2013, 05:53:28 PM
humbleworld, that's just silly, IMO... it's the same thread, why would it have  different description?
(and as a note, "that's the way vb does it" is not really a valid argument. VB does a lot of things, many of them poorly (and some of the good)
Title: Re: Optimus Brave
Post by: Arantor on February 03, 2013, 05:58:56 PM
Quotehumbleworld, that's just silly, IMO... it's the same thread, why would it have  different description?

Because the description describes the page, and the first post of the page would *actually* make more sense than reusing the first post of the page.

Consider a 12 page topic like this one. The 12th page comments may or may not have anything at all to do with the original post.

And actually it's not 'vB' that does it that way. It's vbSEO. And other forum systems. Oh, and a certain fork, while I'm at it *whistle*
Title: Re: Optimus Brave
Post by: humbleworld on February 03, 2013, 07:28:55 PM
Hello Kindred, this is for SEO benefits. Each page of the thread, if it has the same meta content description, will be treated as duplicate by Google. But if each page of your thread has a unique meta content description based on the first sentence of that page, each page will be treated differently by Google, not duplicate. That's why Google would serve search results from a VBulletin from a Page 27 of a thread, not Page 1 or Page 2, depending on the related content being searched for.

Arantor, yes, I agree, it's the vBSEO that is doing this fork.

I'm not going to shift to VBulletin, but I just want a better SEO Mod available in SMF.

Optimus Brave is already a very good one, only that I wish this meta content description would be improved by showing a different content in each page of the thread.
Title: Re: Optimus Brave
Post by: Arantor on February 03, 2013, 07:33:07 PM
QuoteArantor, yes, I agree, it's the vBSEO that is doing this fork.

If only that were the point I were making, which it isn't.

The point I was making is that yes, vbSEO does this. So do other forum systems like XenForo. And in fact a certain fork of SMF does this as well (and has done for months)

Just as a clue to those who haven't got the hint yet. Said fork has a developer who is about as anti 'forum SEO' as I am. And *that* developer was the one who implemented this in said fork. What does *that* tell you?
Title: Re: Optimus Brave
Post by: humbleworld on February 03, 2013, 08:01:57 PM
Arantor, we can all be anti-SEO but I believe it is worth trying following the rules. It's still a cat-and-mouse game, I know, but there are still good things that we'll gain from SEO techniques.
Title: Re: Optimus Brave
Post by: Arantor on February 03, 2013, 08:16:54 PM
-sigh- I really wish people would read what I actually wrote. Forum SEO != SEO in general. Please do not assume you know what I mean, because I'm pretty sure you've missed the actual point of what I was saying (and I'm *certain* Kindred will get the point, which is actually arguing in favour of what you're arguing in favour of...)
Title: Re: Optimus Brave
Post by: humbleworld on February 03, 2013, 09:14:30 PM
Quote[size=78%]And in fact a certain fork of SMF does this as well (and has done for months)[/size]

May I know what Fork are you referring to? Is it a MOD or do we have to do it manually?
Title: Re: Optimus Brave
Post by: Arantor on February 03, 2013, 09:21:35 PM
I'm not supposed to talk about it seeing that it is an SMF derivative, that because it's not under an 'open source licence', it is not supposed to be discussed here. The team have been known to remove it from my signature in the past, too.

Suffice to say, it is a heavily modified SMF base, and it would be a truly enormous mod if it were possible to make as a mod. (It would modify EVERY file in SMF, without exception. And be impossible to uninstall after.)

That is what a fork is: a branch off of the software. This software I'm talking about started with 2.0 and started rewriting great chunks of it. The developers today, for example, are finishing up replacing the entire ban system with one that is faster and has features the base SMF package does not. But the fork is not yet publicly available.


We're getting off topic here. Point stands: more systems do actually do different-meta-description-per-topic-page than don't these days, and there are justifications for it.
Title: Re: Optimus Brave
Post by: humbleworld on February 03, 2013, 09:30:37 PM
Oh, I know what you mean, Arantor. It starts with letter W... A 5-letter word. When the fork is publicly available, I will surely try it in one of my idle domains.
Title: Re: Optimus Brave
Post by: Arantor on February 03, 2013, 09:32:57 PM
Oh yes, that's the one. And yes, the rampantly anti 'forum SEO' developer over there implemented this feature months ago.
Title: Re: Optimus Brave
Post by: Kindred on February 03, 2013, 10:25:06 PM
Oh yes, I get your point...  Not sure that I agree, but I will accept that you have probably done a bit more research into it than I have, currently.
Title: Re: Optimus Brave
Post by: Mick. on February 04, 2013, 12:27:23 AM
@bugo....

I have an external page. In fact is my front page since I have SMF in /community.

Code:


<?php
 
require_once('/path/to/SSI.php');
 
$context['page_title_html_safe'] = 'Page title goes here';

 
template_html_above();
  
template_body_above();
  
 echo 
'
   <hr />
   This would be the content sections of the page
   <hr />
   '
;
  
   
template_body_below();
  
template_html_below();
    
 
?>



Optimus is not reading said page. How can I make it work?

I used the mod's globals and $context and ran a meta tag service and it seems not to see the description. Only the title. I'm stumped.
Title: Re: Optimus Brave
Post by: sukafia on February 15, 2013, 11:57:54 PM
Hi, please i don't understand how to set this part of Optimus brave, I've attached the screenshot. Thanks
Title: Re: Optimus Brave
Post by: Mick. on February 16, 2013, 12:05:10 AM
Quote from: sukafia on February 15, 2013, 11:57:54 PM
Hi, please i don't understand how to set this part of Optimus brave, I've attached the screenshot. Thanks
leave it like that.
Title: Re: Optimus Brave
Post by: sukafia on February 16, 2013, 12:20:45 AM
Quote from: Mick. on February 16, 2013, 12:05:10 AM
Quote from: sukafia on February 15, 2013, 11:57:54 PM
Hi, please i don't understand how to set this part of Optimus brave, I've attached the screenshot. Thanks
leave it like that.

Thanks!
Title: Re: Optimus Brave
Post by: Dblog on February 22, 2013, 08:10:27 AM
for some unknown reasons, one site that runs optimus brave's 2011 version, shows sitemap properly and options in admin panel
another site newly converted to smf and running 2.0.4 now has optimus brave 1.8.5 and sitemap shows errors
Title: Re: Optimus Brave
Post by: drfun on February 22, 2013, 12:27:26 PM
Good day to you all , please i noticed today as i was searching for info on google, there was a post from my site, but google was displaying the name of my site as the topic, instead of displaying the topic as it does for other site. I am using optimus bave as my SEO mod, is there i way i can change this and make google display my topics for any match query search for.
I will be grateful for any assistance and if this has been treated please kindly point me to it. Thanks
Title: Re: Optimus Brave
Post by: floridaflatlander on February 23, 2013, 08:22:37 AM
Quote from: drfun on February 22, 2013, 12:27:26 PM
Good day to you all , please i noticed today as i was searching for info on google, there was a post from my site, but google was displaying the name of my site as the topic

That's odd, it should be displaying whatever you have as your title(what you have in your title tags)

Checked here, http://www.allstudentforum.com/index.php?PHPSESSID=c3f7f4774213f02f2934cbd32ce2fd15&topic=1460.0 it seems right to me.

Can you put the google search link up?
Title: Re: Optimus Brave
Post by: rightofatilla on February 25, 2013, 09:47:05 PM
Quote from: Kindred on December 28, 2012, 08:20:39 AM
This mod does not change the urls at all, since urls have very little, if any, effect on search engine ranking.

Can you post the link to Google stating this?
Title: Re: Optimus Brave
Post by: Arantor on February 25, 2013, 09:48:30 PM
Why would search engines tell you how they work? If they told you how they worked, they would be opening them up to abuse from scammers.
Title: Re: Optimus Brave
Post by: rightofatilla on February 25, 2013, 09:52:01 PM
Quote from: Arantor on February 25, 2013, 09:48:30 PM
Why would search engines tell you how they work? If they told you how they worked, they would be opening them up to abuse from scammers.

Do they not post guidelines?
Title: Re: Optimus Brave
Post by: Arantor on February 25, 2013, 10:02:00 PM
The guidelines are very vague but they do not make any mention of 'pretty URLs' being helpful.

The last guidelines I saw from Google came out a few years ago and concentrate far more on things like having everything actually link together, proper XHTML, and so on. Stuff that SMF does out of the box and has done for years.

A bigger problem is how you expect users to write 'content optimised for search engines'. If you use the 'pretty URLs', the topic's title is what the user gives it. If the URL were a major part of ranking, you've just given users a tool to shoot you in the foot.
Title: Re: Optimus Brave
Post by: rightofatilla on February 25, 2013, 10:16:34 PM
Quote from: Arantor on February 25, 2013, 10:02:00 PM
The guidelines are very vague but they do not make any mention of 'pretty URLs' being helpful.

The last guidelines I saw from Google came out a few years ago and concentrate far more on things like having everything actually link together, proper XHTML, and so on. Stuff that SMF does out of the box and has done for years.

A bigger problem is how you expect users to write 'content optimised for search engines'. If you use the 'pretty URLs', the topic's title is what the user gives it. If the URL were a major part of ranking, you've just given users a tool to shoot you in the foot.

They actually encourage you to use pretty URLs (check page 8 on their guidelines).

Personally, I think SEO is fool's gold, and the biggest scam of the century.  Setting proper titles, descriptions, and housing good content is important, however, as Google has said it is.  When Google encourages behaviors in their guidelines, I don't quite understand the advice to push back on it, especially if you (anyone) doesn't know for certain.  Maybe pretty URLs do affect rankings.  Maybe they don't.  Unless any of us has Google's code sitting in front of us, we don't really know.
Title: Re: Optimus Brave
Post by: Kindred on February 25, 2013, 10:34:57 PM
they don't affect rankings. plain and simple.  Google has already indicated that CONTENT and proper tagging of content is the way their system works best.
Also, pretty urls on a forum are next to useless. After all - how many posts would we have on this site with the url simplemachines.org/help_me
I have never had any pretty urls on any of my forums, yet they are all ranked very high with the content.

However, as page 8 points out... it is the human factor that could be affected - people looking at the url may be more likely to click it...   but that depends on it being actually descriptive - and for forums, that is at the mercy of your users - you as an admin have very little control.
Title: Re: Optimus Brave
Post by: Arantor on February 25, 2013, 10:42:27 PM
Which edition of the guidelines? The 2007 or the 2009 edition? The 2007 guidelines does make it clear that it's a bigger factor, but in the 2009 guidelines it's made clearer that it doesn't influence rankings but only possibly clickthrough.

There is a small argument with respect to link sharing and keywords being in the link text, but from a ranking perspective it's very small.
Title: Re: Optimus Brave
Post by: rightofatilla on February 25, 2013, 10:52:55 PM
Quote from: Kindred on February 25, 2013, 10:34:57 PM
they don't affect rankings. plain and simple.
You don't know for sure. You're guessing, until you can prove it.

Quote
Google has already indicated that CONTENT and proper tagging of content is the way their system works best.
Agreed.

Quote
Also, pretty urls on a forum are next to useless. After all - how many posts would we have on this site with the url simplemachines.org/help_me
I have never had any pretty urls on any of my forums, yet they are all ranked very high with the content.
The site would need to be smart enough to make the URLs unique.

Quote
However, as page 8 points out... it is the human factor that could be affected - people looking at the url may be more likely to click it...   but that depends on it being actually descriptive - and for forums, that is at the mercy of your users - you as an admin have very little control.
I don't disagree.
Title: Re: Optimus Brave
Post by: Arantor on February 25, 2013, 10:55:51 PM
QuoteYou don't know for sure. You're guessing, until you can prove it.

And you'll never get proof. They're never going to tell you how to game their system.

QuoteThe site would need to be smart enough to make the URLs unique.

That's not hard.
Title: Re: Optimus Brave
Post by: rightofatilla on February 25, 2013, 10:57:17 PM
Quote from: Arantor on February 25, 2013, 10:42:27 PM
Which edition of the guidelines? The 2007 or the 2009 edition? The 2007 guidelines does make it clear that it's a bigger factor, but in the 2009 guidelines it's made clearer that it doesn't influence rankings but only possibly clickthrough.

There is a small argument with respect to link sharing and keywords being in the link text, but from a ranking perspective it's very small.

I'm not sure.  It says copyright 2010 at the end of the doc, but I'm not sure...  It's the first PDF that popped up for 'google seo guidlines'.
Title: Re: Optimus Brave
Post by: Kindred on February 25, 2013, 10:57:36 PM
I am guessing...   sort of.  I am making educated assumptions based on 20+ years of experience in dealing with websites.


and making the url unique is not hard, no... but making it USEFUL is.
help_me, help_me2, help_me3
etc
all useless, actually....  regardless of being unique.
Title: Re: Optimus Brave
Post by: rightofatilla on February 25, 2013, 10:58:16 PM
Quote from: Arantor on February 25, 2013, 10:55:51 PM
And you'll never get proof. They're never going to tell you how to game their system.
I agree.  Until then, it's speculation.
Title: Re: Optimus Brave
Post by: rightofatilla on February 25, 2013, 10:59:43 PM
Quote from: Kindred on February 25, 2013, 10:57:36 PM
I am guessing...   sort of.  I am making educated assumptions based on 20+ years of experience in dealing with websites.
Same here.  I don't think they help either, but I'm not going to tell people they don't (help rankings) unless I know 100% for sure.

Quote
and making the url unique is not hard, no... but making it USEFUL is.
help_me, help_me2, help_me3
etc
all useless, actually....  regardless of being unique.
Yes.
Title: Re: Optimus Brave
Post by: drfun on March 01, 2013, 05:49:51 PM
Thank you all for you contributions, it could be from google, but i will look out to see if more search result comes up like this.
Title: Re: Optimus Brave
Post by: radu81 on March 31, 2013, 05:20:52 PM
Thank you for this great mod!
Title: Re: Optimus Brave
Post by: putoguiri on April 02, 2013, 08:04:33 AM
Thanks for the mod!

But I've run into some troubles.

The mod does everything it announced but it seems that I can't get the titles and meta descriptions working. The titles do show fine on my home (tinyportal) and forum but not in any subforum/topic.

And the meta description doesn't change in any, it's just the title.

The rest of the mod works fine (it shows the meta tag for google webmaster, for examples) the previous and next links...

I've been looking into the mod files and tinkering with the forum (removing mods that could conflict) but I haven't achieved anything.


Now for the fun fact: I do have seen the changed titles in a topic but they seem to show in a random fashion (after refreshing the same page some times it poped up and later disapeared, I tried with different browsers and emptying the cache).

Last but not least, here is a diff between a fresh index.template.php and the one I'm using (the differences are some mods):


diff /route/toFreshFile/index.template.php Themes/default/index.template.php
128a129,135
>
> // Bad Behavior Start
> if (function_exists('bb2_insert_head')) {
>   bb2_insert_head();
> }
> // Bad Behavior End
>
160a168,179
>
> //Tynt-SMF Tracer Mod Starts Here
> if (!empty($modSettings['tynt_on']) && !empty($modSettings['tynt_userid']))
> echo '
> <script type="text/javascript">
> if(document.location.protocol==\'http:\'){
>  var Tynt=Tynt||[];Tynt.push(\'', $modSettings['tynt_userid'] . '\');
>  (function(){var s=document.createElement(\'script\');s.async="async";s.type="text/javascript";s.src=\'http://tcr.tynt.com/ti.js\';var h=document.getElementsByTagName(\'script\')[0];h.parentNode.insertBefore(s,h);})();
> }
> </script>';
> //Tynt-SMF Tracer Mod Ends Here
>
215a235,244
>
> if (!empty($modSettings['enableChatBelowPM'])){
> $count = count(chatOnlineUsers());
> if ($count == 0 )
> echo '<li>' . $txt['chat_no_user'] . '</li>';
> elseif ($count == 1 )
>    echo '<li>1' . $txt['chat_aUser'] . '</li>';
> else
>    echo '<li> ' . $count . $txt['chat_users'] . '.</li>';
> }
344a374,380
> if ($modSettings['badbehavior_display_stats']) {
> if (!function_exists('bb2_insert_stats')) {
> global $sourcedir;
> require_once($sourcedir . '/bad-behavior/BadBehavior-SMF.php'); }
>
bb2_insert_stats();
> }
410,412c446,448
< {
< global $context, $settings, $options, $scripturl, $txt;
<
---
> {
> global $context, $settings, $options, $scripturl, $txt, $modSettings;
505c541
< ?>
\ No newline at end of file
---
> ?>


My guess is that it is somehow not calling optimus_operations() right int Subs-Optimus, but I don't know how I could check that or where the hook is for calling the function.
Title: Re: Optimus Brave
Post by: Kacper on April 05, 2013, 02:40:10 PM
Hi! I have a question: Is the sitemap working perfectly with Pretty URLs MOD? :)
Thanks.
Title: Re: Optimus Brave
Post by: Kindred on April 05, 2013, 03:01:46 PM
I don't think so...

prettyurls screws up many things, including this mod. drop it. it serves no really useful purpose.
Title: Re: Optimus Brave
Post by: Arantor on April 05, 2013, 03:03:28 PM
Quoteit serves no really useful purpose.

Makes the URLs look nice though.
Title: Re: Optimus Brave
Post by: Kindred on April 05, 2013, 03:09:07 PM
I suppose it does...  but is it worth it, when it has issues with a dozen other mods?

There's another SEO mod around that does nice urls without conflict (at least that's what the authors claim)
Title: Re: Optimus Brave
Post by: Arantor on April 05, 2013, 03:10:13 PM
Any mod that rewrites URLs is going to cause trouble. The only solution I can see is if the core does it then plugin authors should fall into line.
Title: Re: Optimus Brave
Post by: Bugo on April 06, 2013, 08:17:46 AM
Quote from: Kacper on April 05, 2013, 02:40:10 PM
Hi! I have a question: Is the sitemap working perfectly with Pretty URLs MOD? :)
Thanks.
1. Install Optimus.
2. Install Pretty Urls. Enable it.
3. Re-create Sitemap via Scheduled Tasks.
Title: Re: Optimus Brave
Post by: Dblog on April 08, 2013, 04:26:30 PM
how to make latest topics come on top of sitemap ?
also frequently updated topic is shown priority text as 'hourly' but priority remains 0.6 and is at bottom of sitemap
Title: Re: Optimus Brave
Post by: toastedone on April 11, 2013, 02:45:56 PM
HI, I just installed this and I do not see the option to generate sitemap, any help would be appreciated.

thanks
Title: Re: Optimus Brave
Post by: toastedone on April 11, 2013, 02:48:44 PM
Ignore that working fine now
Title: Re: Optimus Brave
Post by: joeyjojoshabadoo on April 17, 2013, 11:16:36 PM
Hi guys,

can anyone think of any reason why my sitemap still wouldnt be working properly using optimus brave?

http://www.dropkickrugby.com/forum/sitemap.xml

every link is just leading to the index page, and the accursed pretty url's is finally gone ( thanks to the great people on here). I had thought this was screwed up because of pretty urls but I dont think so now

Anyone any ideas ? - I have changed all my URL's so google doesn't like me now probably, and i'd love to get the sitemap working asap.


ignore me guys, i ran it again, and it started working somehow, after i deleted pretty url files.

sorry.

thanks all
Title: Re: Optimus Brave
Post by: Hawkmoth on May 21, 2013, 01:53:24 PM
Hi
I hope someone may be able to give me some guidance.

On google my listing is showing with:-

www.follyfoot.org/‎
A description for this result is not available because of this site's robots.txt – learn more.

I am using the robots.txt suggested in this mod:-

User-agent: Googlebot-Image
Disallow: /smf/

User-agent: YandexImages
Disallow: /smf/

User-agent: msnbot-MM
Disallow: /smf/

User-agent: Googlebot-Mobile
Allow: /smf/*wap
Disallow: /smf/

User-agent: YandexImageResizer
Allow: /smf/*wap
Disallow: /smf/

User-agent: MediaPartners-Google
Allow: /smf/

User-agent: *
Allow: /smf/$
Allow: /smf/*action=.xml
Allow: /smf/*sitemap
Disallow: /smf/*action
Disallow: /smf/*wap
Disallow: /smf/*board=*wap
Disallow: /smf/*topic=*wap
Disallow: /smf/*;
Disallow: /smf/*PHPSESSID
Allow: /smf/*board*.html$
Allow: /smf/*topic*.html$
Disallow: /smf/
Sitemap: http://follyfoot.org/smf/sitemap.xml
Crawl-delay: 5
Clean-param: PHPSESSID /smf/index.php
Host: follyfoot.org


Am I doing something wrong?

Thanks
Title: Re: Optimus Brave
Post by: Arantor on May 21, 2013, 02:12:10 PM
The key here is:
Disallow: /smf/

in the User-Agent: * block

That will disallow anything that starts with /smf/


It might be better if you explain what it is you're trying to achieve rather than showing us the code and asking what's wrong with it. I can see cases where that list would be fine.
Title: Re: Optimus Brave
Post by: Hawkmoth on May 21, 2013, 04:28:48 PM
Hi Arantor

Many thanks for your quick reply.
I have removed that line now.

Quote from: Arantor on May 21, 2013, 02:12:10 PM
It might be better if you explain what it is you're trying to achieve rather than showing us the code and asking what's wrong with it. I can see cases where that list would be fine.

I originally installed this great MOD to help manage the verification Meta tags without having to manually edit files etc.
After installing the MOD, I noticed that it had the ability to do a lot of other useful stuff including the editing of the robot.txt.
I'm no expert as you can probably tell but the developer was kind enough to include some suggested rules which I duly used.

It was only few weeks later that we noticed the description wasn't showing correctly in google.

Many thanks
Title: can anyone help to install this mod
Post by: mossite on June 02, 2013, 03:14:40 AM
i want to install this mod, can anyone can help me to install it correctly
Title: Re: Optimus Brave - no <meta> <h1> description robot.txt
Post by: averageangler on June 02, 2013, 09:54:42 AM
Hi everyone who has taken the time to read my post, Thank You.
I have searched the board and am unable to find exactly where to find a solution that defines my problem. If this has been covered..please link me up.

My problem seems pretty basic, I assume user error. When using bing webmaster tools seo analyzer, it says no <h1> <meta> <description> .

also it says that robots.txt is blocking sitemap.xml
I used the optimus sitemap section and copy/paste the items it suggested.
I went FTP and deleted robots.txt and resubmitted sitemap to bing...
Google also was blocked by robots.txt
That has allowed access to the optimus sitemap. It seems odd that it would block its own sitemap?

I must have the settings wrong.
could someone point me in the right direction
thanks
Title: Re: Optimus Brave
Post by: Bugo on June 02, 2013, 06:28:19 PM
It would not be bad to show up your robots.txt and your forum.
Title: Re: Optimus Brave
Post by: Brewster on June 04, 2013, 09:16:46 AM
Hi

Great plugin. I am having issues with the sitemap generation though.

I have installed 1.8.6.2 using the package manager and am running SMF 2.0.4

When I go to scheduled tasks, there is no option for sitemap generation. I do have "Create Forum Map" - is this what I should be running? I have set this to be run every ten minutes, but nothing appears in the task log.

What information can I provide to help debug this issue?

Thanks,
Joe
Title: Re: Optimus Brave
Post by: Brewster on June 04, 2013, 09:34:10 AM
When I run this task manually, the sitemap gets generated correctly, but it doesnt seem to run as a scheduled task
Title: Re: Optimus Brave
Post by: Obcy on June 04, 2013, 09:41:24 AM
For me the same thing
Title: Re: Optimus Brave
Post by: Bugo on June 05, 2013, 12:46:02 PM
Attach your Subs-Optimus.php file.
Title: Re: Optimus Brave
Post by: Dhayzon on July 06, 2013, 08:20:12 PM
not  cleaning bbcode in meta description

(http://club-dhayzone.net/img_styles/20130707001933942.png)

I would like to use the function
strip_tags for cleaning
Title: Re: Optimus Brave
Post by: Kindred on July 07, 2013, 05:47:19 AM
Do not use bbcode or html in the description. Ever. Images are not allowed in the description tag anyway
Title: Re: Optimus Brave
Post by: Babyfacemagee on August 23, 2013, 03:56:59 AM
Ok, so now I'm a bit confused.  My site Nexus7forum.com uses 'Pretty URLs'.  Should I not use this mod?  I just installed it hoping it would help with indexing.  Should I uninstall it?  Can anyone tell me what the specific advantages of using this mod for my particular site would be?  Thanks in advance and yes, I read this complete board from start to finish before posting this. 
Title: Re: Optimus Brave
Post by: Kindred on August 23, 2013, 06:59:19 AM
prettyurls are a waste of resources anyway..... and they contribute nothing to SEO
Title: Re: Optimus Brave
Post by: Babyfacemagee on August 23, 2013, 01:30:53 PM
I'm sure we could have a long debate about whether using a mod like 'Pretty URLs' or not adds value at all to a forum.  In many areas of life I've learned that looking at something purely from the 'technical' doesn't always give the complete story.   For instance while strictly speaking Pretty URLs might not help SEO at all from a technical standpoint, I think many would agree that a url with meaning or 'familiarity' does make someone more inclined to click on it when compared to a url that is cryptic.  Thus, there is a psychological component to why a person clicks a url as well as a 'technical'.  I think most would agree that is common sense.  Even if only 1 in 20 chooses my URL because it is understandable and hints at the subject matter...compared to another URL that is cryptic...that 1 in 20 is an advantage I want.

With that said, back to my main interest...the advantage of using this MOD for my site.   Would this mod help me have more 'site links' in google results and thus have more 'screen real estate' or otherwise increase traffic?  Right now when searching for 'nexus 7 forum' in google my site comes up usually within the top 3 listings.  My concern is that my competitors seem to have many 'site links' or 'sub-topics' listed beneath their main url and mine does not.  My site is large enough that I should have some of these as well and I believe it's because the theme i'm using or setup of my forum is not doing something that these others are.   It might not be coincidental that these competitors are predominantly using either Vbulletin or another paid platform. 

So again...would this mod help rectify this issue and help increase site links or subheadings on Google results?

Thx in advance.
Title: Re: Optimus Brave
Post by: Arantor on August 23, 2013, 01:37:13 PM
Yes we could. We could also note that pretty much all of this has been hashed many times over and the salient points are reiterated every time.

1. There is no actual SEO benefit for pretty URLs.
2. There is an arguable benefit to nicer looking URLs but that doesn't stop YouTube now, does it?
3. This mod does have some SEO improvements.
4. The 'site links' and 'sub links' are not related to this mod but based on having better ranking to those individual pages due to good backlinks.
Title: Re: Optimus Brave
Post by: Babyfacemagee on August 26, 2013, 04:21:13 AM
Thanks for the response Arantor.  #4 was what I was looking for. 

Best,

BFM
Title: Re: Optimus Brave
Post by: Antes on August 31, 2013, 07:32:47 PM
Updated the translation, thank you for including them to core :)
Title: Re: Optimus Brave
Post by: Bugo on September 03, 2013, 12:29:46 AM
There are some errors in your language files. Please fix them.
Title: Re: Optimus Brave
Post by: akonze on September 26, 2013, 03:11:18 PM
This mod deleted my complete configuration menu in the admin area. I can't administrate the board anymore and have to completetely reinstall everything.

I just can warn you to not use the current version. It seems to have a massive bug in it.
Title: Re: Optimus Brave
Post by: Kindred on September 26, 2013, 03:13:43 PM
Sorry, akonze, but I can not replicate your issue.

I use the current version and had no such reaction.
Title: Re: Optimus Brave
Post by: Bugo on September 27, 2013, 07:52:21 AM
Quote from: akonze on September 26, 2013, 03:11:18 PM
This mod deleted my complete configuration menu in the admin area. I can't administrate the board anymore and have to completetely reinstall everything.

I just can warn you to not use the current version. It seems to have a massive bug in it.
Just rename Subs-Optimus.php to Subs-Optimus1.php and re-check.
Title: Re: Optimus Brave
Post by: Low on October 13, 2013, 10:16:19 AM
This mod adds it's own sitemap with credit link regardless of your settings. This can be quite bad for SEO. Any chance of removing the sitemap?
Title: Re: Optimus Brave
Post by: Bugo on October 13, 2013, 03:34:35 PM
Disable "Create and periodically update Sitemap XML-file" option in mod's settings.
Title: Re: Optimus Brave
Post by: Low on October 14, 2013, 05:50:22 AM
Quote from: Bugo on October 13, 2013, 03:34:35 PM
Disable "Create and periodically update Sitemap XML-file" option in mod's settings.
That's what I posted originally, I've tried that.
Title: Re: Optimus Brave
Post by: Bugo on October 14, 2013, 09:10:34 AM
Is it difficult for you to remove sitemap.xml (see forum's root)?
Title: Re: Optimus Brave
Post by: dianneu on November 03, 2013, 11:48:57 AM
I don't mean to seem dense. But how do I know if it's running? I had a please wait... on forever.

I copied everything that needed to be based on what was on the page.

Not certain if it's even running? How do I confirm this? I'm not a programmer, just can do installs I guess. I'm running GT5 as the forum.

Title: Re: Optimus Brave
Post by: DeroZ on January 24, 2014, 05:17:05 AM
Quote from: Bugo on October 13, 2013, 03:34:35 PM
Disable "Create and periodically update Sitemap XML-file" option in mod's settings.

Where is this option? i need disable to remove linktree on my site (simpleportal)
Title: Re: Optimus Brave
Post by: cortez on February 09, 2014, 06:59:40 PM
Really nice mod, I have few questions though:

1. Suggested robots.txt


User-agent: Googlebot-Image
Disallow: /forum/

User-agent: YandexImages
Disallow: /forum/

User-agent: msnbot-MM
Disallow: /forum/

User-agent: Googlebot-Mobile
Allow: /forum/*wap
Disallow: /forum/

User-agent: YandexImageResizer
Allow: /forum/*wap
Disallow: /forum/

User-agent: MediaPartners-Google
Allow: /forum/

User-agent: *
Allow: /forum/$
Allow: /forum/*.xml
Allow: /forum/*sitemap
Disallow: /forum/*action
Disallow: /forum/*board=*wap
Disallow: /forum/*board=*imode
Disallow: /forum/*topic=*wap
Disallow: /forum/*topic=*imode
Disallow: /forum/*;
Disallow: /forum/*PHPSESSID
Allow: /forum/*board*.html$
Allow: /forum/*topic*.html$
Disallow: /forum/
Sitemap: well this one is hidden
Crawl-delay: 5


"Disallow: /forum/" ? Forum is in /forum/ dir and this setting will disallow bots from accessing it? Also, why is "Googlebot-Image" blocked by default? For example, I want images from my site (picture posting is highly valued) to appear everywhere.

2. Inserting html tag for additional ownership verification fails for me, webmaster tools can't detect it (yes, it's formatted properly). Insterting analytics code works, though.

3. Does formatting of allowed "topic" and "board" have issues with enabled "Search engine friendly URLs" setting in SMF?
Title: Re: Optimus Brave
Post by: Kindred on February 09, 2014, 08:40:51 PM
that SEF setting is stupid and should not be used anyway.
Title: Re: Optimus Brave
Post by: cortez on February 10, 2014, 06:23:43 AM
Alright, that was short and to the point. :) Any suggestions about other stuff?
Title: Re: Optimus Brave
Post by: Bugo on February 10, 2014, 08:39:57 PM
Quote from: cortez on February 09, 2014, 06:59:40 PM
"Disallow: /forum/" ? Forum is in /forum/ dir and this setting will disallow bots from accessing it?
There are more strong methods to prohibit bots any access to your forum. For example, using the rules in .htaccess file.

Quote from: cortez on February 09, 2014, 06:59:40 PMAlso, why is "Googlebot-Image" blocked by default? For example, I want images from my site (picture posting is highly valued) to appear everywhere.
Just remove a line with this rule ("Googlebot-Image" bla-bla-bla).

Quote from: cortez on February 09, 2014, 06:59:40 PM
2. Inserting html tag for additional ownership verification fails for me, webmaster tools can't detect it (yes, it's formatted properly). Insterting analytics code works, though.
Well, try to find information on this question in the Google's help. Maybe, they have changed your html tag etc.

Quote from: cortez on February 09, 2014, 06:59:40 PM
3. Does formatting of allowed "topic" and "board" have issues with enabled "Search engine friendly URLs" setting in SMF?
After enabling this option "topic/board" rules in robots.txt will be changed. And yes,
Quote from: Kindred on February 09, 2014, 08:40:51 PM
that SEF setting is stupid and should not be used anyway.
Title: Re: Optimus Brave
Post by: cortez on February 10, 2014, 08:48:09 PM
Quote from: Bugo on February 10, 2014, 08:39:57 PM
Well, try to find information on this question in the Google's help. Maybe, they have changed your html tag etc.

Nope, I've double checked that. It just doesn't insert a line in <head>.
Title: Re: Optimus Brave
Post by: _socrates_ on February 22, 2014, 12:24:27 PM

Hi,

I get the following error on my sitemap.xml:

QuoteThis page contains the following errors:

error on line 3 at column 21: Entity 'nbsp' not defined
Below is a rendering of the page up to the first error.

How can I troubleshoot this? I have uninstalled/reinstalled the mod, but the same error appears.

Thanks!
Title: Re: Optimus Brave
Post by: johnpaul2k2 on February 26, 2014, 10:37:12 AM
this particular board has refused to show

check the page 2 of this place please

http://www.topnichez.com/index.php/board,10.15.html

could it caused by this mod

please how can i set it to work

thanks
Title: Re: Optimus Brave
Post by: Kindred on February 26, 2014, 07:03:55 PM
turn off the silly SEO friendly urls...
Title: Re: Optimus Brave
Post by: johnpaul2k2 on February 26, 2014, 11:41:11 PM
Quote from: Kindred on February 26, 2014, 07:03:55 PM
turn off the silly SEO friendly urls...
then it will affect my 2 years urls in search engines. I think this started of recent  because other page 2 boards are openings !!
Title: Re: Optimus Brave
Post by: hawe2014 on March 19, 2014, 12:47:03 PM
Excuse me, i am brandnew to SMF and tried to use the optimus brave modification on my board.

But after installation and configuration my board url still is: /index.php/board,2.0.html

I wanted something like "/board1/topc1.html

I already tried to activate/deactivate SMF internal SEO URL (the "?" says, that my server supports SEO URL) and i tried to reinstall optimus brave twice. Still no changes.

Is there anything else my server need to get this done? I host my forum on a namecheap business account. Do i need a .htaccess in my root? I don't see where i could have made an error.

I would love to get some help on this issue.

Thank you and best regards.

Harald
Title: Re: Optimus Brave
Post by: Kindred on March 19, 2014, 06:42:01 PM
Welcome to smf.

First... This mod does nothing to the urls. Urls have no benefit to see anyway... This mod only changes things like the title, description and keywords.

Second, if you just started your board, the. Insuggestbthat your turn off the silly seo thing. It serves no useful purpose any more (it was intended for search engines years ago, when they looked for the HTML at the end of a website address) search engines will catalog sites just fine without any silly URL changes.

Third, if you absolutely insist on change the urls  you will have to install a mod like pretty urls or smf sef urls.
In both cases, there are potential issues with those urls and other mods
Title: Re: Optimus Brave
Post by: hawe2014 on March 20, 2014, 03:41:06 AM
Hello Kindred,

thank you for your reply. So i totally misunderstodd the use of Optimus Brave ;-) Thank you for the explanation and i see, if i will test pretty url oder sef url. I thought Optimus Brave does this :) Thanks again!
Title: Re: Optimus Brave
Post by: Dblog on July 03, 2014, 11:44:08 AM
Is there anyway to  do these topic/board settings ?

{board_name} -  {forum_name} - page {#}

{topic_name} - {board_name} - {forum_name} - page {#}

if i try to display page {#} in 3rd column, it doesnt show actual number but just shows the word : page {#}, # doesnt get replaced by number.
it only happens if {#} is used in 2nd column.
Title: Re: Optimus Brave
Post by: Portugal on July 04, 2014, 10:38:39 AM
Hi all,

Its possible to change the original configuration of that mod on "Display the first sentence of the current page first message as the meta-tag description" to the firsts 50 words, or the 2 firsts sentences? I apreciate to do this on my particular situation.


Thanks in advance.
From Portugal
Title: Re: Optimus Brave
Post by: asura88 on July 23, 2014, 04:13:50 PM
It's a great mod, but the whole META description parsing method is imperfect in my opinion.
For example, if someone started their topic with:
"Hello. (content)", the description would look as follows: "Hello", since it's coded to show only the first sentence (ended with dot or exclamation mark).
I have simplified the description function and it should now correctly deal with this issue. In addition it will now also remove the trimmed (cut) last word from the description and empty spaces from the messages started with new line. I would like to point out that I am still coding noob, but there's nothing advanced, so.

Sources/Subs-Optimus.php
function optimus_meta_teaser()
{
global $context, $txt, $smcFunc;

if ($context['is_poll'])
{
$teaser = $txt['poll'] . ': ' . $context['poll']['question'] . ' (' . $context['page_info']['current_page'] . ')';
}
else
{
$request = $smcFunc['db_query']('', '
SELECT SUBSTRING(body, 1, 200)
FROM {db_prefix}messages
WHERE id_msg = {int:id_msg}
LIMIT 1',
array(
'id_msg' => $context['first_message']
)
);

list ($teaser) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);
}

$teaser = optimus_meta_chars(str_replace('<br />', ' ', parse_bbc($teaser, false)));
$teaser = trim($teaser);
$teaser = str_replace("&nbsp;", "", $teaser);

if ($smcFunc['strlen']($teaser) < 150) return strip_tags($teaser);

$teaser = preg_replace('/\s+?(\S+)?$/', '', substr($teaser, 0, 150));

return strip_tags($teaser);
}


Quote from: Portugal on July 04, 2014, 10:38:39 AM
Hi all,

Its possible to change the original configuration of that mod on "Display the first sentence of the current page first message as the meta-tag description" to the firsts 50 words, or the 2 firsts sentences? I apreciate to do this on my particular situation.


Thanks in advance.
From Portugal
In the function above just change 150 to 50 in two places.
Title: Re: Optimus Brave
Post by: Portugal on July 25, 2014, 10:44:08 AM
Hi,

Thanks Homeland for your work on this. Now i will go to implement this modification, after to see the results i will give my feedback here.

Regards
Title: Re: Optimus Brave
Post by: swaggaderby on September 12, 2014, 02:07:32 PM
this is what i get from the robot text am told to copy to the right. and im not sure its correct

User-agent: Googlebot-Image
Disallow: /

User-agent: YandexImages
Disallow: /

User-agent: msnbot-MM
Disallow: /

User-agent: Googlebot-Mobile
Allow: /*wap
Disallow: /

User-agent: YandexImageResizer
Allow: /*wap
Disallow: /

User-agent: MediaPartners-Google
Allow: /

User-agent: *
Allow: /$
Allow: /*.xml
Disallow: /attachments/
Disallow: /avatars/
Disallow: /Packages/
Disallow: /Smileys/
Disallow: /Sources/
Disallow: /Themes/
Disallow: /*msg
Disallow: /*profile
Disallow: /*help
Disallow: /*search
Disallow: /*mlist
Disallow: /*sort
Disallow: /*recent
Disallow: /*register
Disallow: /*groups
Disallow: /*stats
Disallow: /*unread
Disallow: /*topicseen
Disallow: /*showtopic
Disallow: /*prev_next
Disallow: /*imode
Disallow: /*wap
Disallow: /*all
Disallow: /*action
Disallow: /*PHPSESSID
Crawl-delay: 5
Title: Re: Optimus Brave
Post by: swaggaderby on September 12, 2014, 02:12:39 PM
Quote from: infoseeker on September 18, 2011, 09:54:25 PM

Thanks Bugo.
All my problem is happened by my meta tags. Now every thing is fine.
The new version of optimusbrave is very nice. The recommended format of robots.txt is ultimate.

Thanks a lot for creating this mod

Below iam giving some useful links for our smf users to check their website's strength, and errors.

The below website can help you to create website's meta tags. dont use refresh page meta tag. Because, the meta tag is related with spam problems.

http://www.onlinemetatag.com

The below website can analyze your website's meta description.

http://www.submitexpress.com/analyzer/

Thats all. :)
Thanking you.
the website u gave to analyze my website meta description seems to be giving me error whenever i try checking it dunno if you can help out
Title: Re: Optimus Brave
Post by: Thilo on November 17, 2014, 03:25:30 AM
Hi there,

a very nice Mod! Thanks for sharing it!!!

Just on thing. On my forum (quite big one) almost everytime a Posting ist made the following error shows up:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4194207 bytes) in /var/www/sites/xxx/html/forum/Sources/Subs-Optimus.php on line 705..."

To me it seems that creating the xml-sitemap for google needs to much memory (probably because it's quite big - 40.000 Urls) ?
Is that right ? Does Optimus Brave updates that file each time a new thread is transmitted?

Ok - one thing would be - to enlarge the memory of course. (Shouldn't actually be a big problem)

But on the other side: Maybe it's worth to do another logic in creating the sitemap.
(i don't know - maybe every hour as a cron-job or something else...? Cause i believe if there is a huge forum and we have rush-hour with many users writings posts, it could quite annoy the server... ;- ) )

Greets,

Thilo
Title: Re: Optimus Brave
Post by: Thilo on November 17, 2014, 05:39:40 AM
Just another thought:

Another Solutions would be for example an option to put only the newest 10.000 URLs insinde the sitemap...

Title: Re: Optimus Brave
Post by: Kindred on November 17, 2014, 06:36:41 AM
well, since I used this on a site with over 3 millions posts... I think there may be something else going on with you...
Title: Re: Optimus Brave
Post by: Thilo on November 17, 2014, 06:42:23 AM
That's interesting.

How many URLs are inside your sitemap.xml ?

Should be more than 50.000, right ?


Can you tell me what's your "allowed memory size" for php on your server ?


Title: Re: Optimus Brave
Post by: Arantor on November 17, 2014, 06:46:29 AM
I thought sitemaps individually weren't permitted above 50k URLs anyway?
Title: Re: Optimus Brave
Post by: Thilo on November 17, 2014, 06:53:52 AM
If that's so, (and im sure you are right) than a option to set a limit somewhere inside the mod would definetely make sense!
Title: Re: Optimus Brave
Post by: Arantor on November 17, 2014, 06:56:53 AM
Just for clarification, http://www.sitemaps.org/protocol.html says this:

QuoteYou 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 10MB (10,485,760 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 10MB. If you want to list more than 50,000 URLs, you must create multiple Sitemap files.
Title: Re: Optimus Brave
Post by: Thilo on November 17, 2014, 08:21:25 AM
Hi there,

again me. I checked my xml Sitemap and it's already 9 MB.
So there isn't much left 'til it reaches the max. allowed size...

In Kindreds site it should be already way larger than the allowed size.

So for some users it would be a very friendly option to limit the sitemap to a size the board-admin can chose ?

i really would appreciate that!
Title: Re: Optimus Brave
Post by: Black Tiger on December 11, 2014, 04:30:31 PM
I just installed this mod, but it seems I'm missing something somewhere, because I read this on some site:
Quoteall you need is to do is to install Optimus Brave in your forum and click Schedule tasks to generate and enable your sitemap
However... I don't see anything about sitemap or Optimus or Brave in the Schedule tasks.

I left every setting default, I only activated to generate sitemap:
QuoteCreate and periodically update Sitemap XML-file

What am I doing wrong?
Title: Re: Optimus Brave
Post by: Black Tiger on December 13, 2014, 03:26:41 PM
I've seen this problem a couple of times in this 17 page thread, also seen 1 time that it was fixed, but not how it was fixed.
Does anybody have a clue on what's causing this?

No Scheduled task present in the scheduled tasks manager and no option "Create forum map" either.
Title: Re: Optimus Brave
Post by: Armada on December 17, 2014, 10:45:38 AM
I've a strange problem here.

I installed Optimus Brave, but when I looked at the metadata of pages it had not changed anything.

I then read that perhaps Pretty URL didn't work well with it. SO I uninstalled Pretty URLs.

Then I could see Optimus Brave changes in the metadata. So then it worked. Great.  Whoohoo.

Anyway I've broken something, because it doesn't work now. Argh!

As a background the things I did that might have messed it up is:

Checking/repairing database because of a crash yesterday (sessions table shown as crashed)
Also, Six of the boards on out forum were using a different theme to the rest of the forum, I changed them back to the overall forum default.

So any pointers on how to get this working again would be much appreciated.
Thanks.

I've attached an image of the settings. Were using SMF 2.0.9.
Armada
Title: Re: Optimus Brave
Post by: Armada on December 17, 2014, 11:50:48 AM
I think I've found the problem and fixed it.  :) Hopefully this will help somebody if you have the same problem.

To try and work out what is going on, I had a look at the latest modified files.

I saw something interesting in changes in Load.php by running "diff" to see the changes:


diff Load.php~ Load.php

11c11
<  * @version 2.0.7
---
>  * @version 2.0.9
2746a2747,2753
>
> // Invalidate the opcode cache
> if (function_exists('opcache_invalidate'))
>    opcache_invalidate($cachedir . '/data_' . $key . '.php', true);
>
> if (function_exists('apc_delete_file'))
>    @apc_delete_file($cachedir . '/data_' . $key . '.php');



It's something to do with caching.
So I went to my caching options under Admin > Server Settings > Caching and I changed it from "Level 2" caching to "No caching" then went back in and changed it from "No caching" to "Level 1" caching.

Now it works :)

Armada
Title: Re: Optimus Brave
Post by: MESWEB on January 22, 2015, 06:08:17 AM
How to add download file (all files have title, description and much more) from Download System mod to sitemap?
Title: Re: Optimus Brave
Post by: B3aker on March 15, 2015, 11:21:22 AM
Hi. This add on's been working great for the last couple years but I do have a new problem I hope someone can answer for me. Whenever I or someone on my forum tries to upload an attachment, this error pops up. It's only been a recent thing like within the last week.

QuoteFatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 5603761 bytes) in /home/xxxx/xxxxxx_xxxx/community/Sources/Subs-Optimus.php on line 780

Any help would be appreciated. Don't want to have to uninstall this mod :)
Title: Re: Optimus Brave
Post by: Black Tiger on March 15, 2015, 11:39:58 AM
This is more a php error. It might not have to do with this mod specifically. You could try to increase your php memory size to 128 for example.
If you are not your own host, you could try it via a .htaccess file in your public_html root directory with this statement:
php_value memory_limit 128M

or
<IfModule mod_php5.c>
php_value memory_limit 128M
</IfModule>


If this won't work, you have to ask your host.
Since it's only the last week, you could investigate if you have installed other php things which might have increased the memory usage for php.
Title: Re: Optimus Brave
Post by: B3aker on March 15, 2015, 11:49:41 AM
Quote from: Black Tiger on March 15, 2015, 11:39:58 AM
This is more a php error. It might not have to do with this mod specifically. You could try to increase your php memory size to 128 for example.
If you are not your own host, you could try it via a .htaccess file in your public_html root directory with this statement:
php_value memory_limit 128M

or
<IfModule mod_php5.c>
php_value memory_limit 128M
</IfModule>


If this won't work, you have to ask your host.
Since it's only the last week, you could investigate if you have installed other php things which might have increased the memory usage for php.

Thanks for the response. I'm a little confused though. I don't see any coding like this to my htaccess file. Do I have to add this or edit this?
Title: Re: Optimus Brave
Post by: Black Tiger on March 15, 2015, 11:58:24 AM
You have to add it to your .htaccess file indeed.
Title: Re: Optimus Brave
Post by: B3aker on March 15, 2015, 12:00:16 PM
Quote from: Black Tiger on March 15, 2015, 11:58:24 AM
You have to add it to your .htaccess file indeed.

Does it matter where this goes? Sorry for my ignorance. I'm still learning this web stuff :)
Title: Re: Optimus Brave
Post by: Black Tiger on March 15, 2015, 12:17:32 PM
As far as I know it does not really matter. I mostly put it at the bottom.

Ah you're still learning. In that case. Check your phpinfo what the memory limit is now, and afterwards. That way you can fastly see if it did change.
Title: Re: Optimus Brave
Post by: B3aker on March 15, 2015, 01:00:25 PM
Yeah. I do my forum more as a hobby. My day job is merchandising for a major retailer. So I'm a little out of my element here ;) I usually only learn something new with web development when something goes wrong, lol.

So I put both the codes in. I checked my memory limit, doesn't seem to have changed.

QuoteResource Limits     memory_limit       96M

EDIT: Seems to have caused a 500 internal server error. Had to remove the code :/
Title: Re: Optimus Brave
Post by: Black Tiger on March 15, 2015, 01:13:50 PM
You only need 1 code. If you use both, you have the chance on a 500 internal server error.
In that case only use the second code only, just to be sure.

If that also gives a 500 internal server error, the host has configured things another way. In that case you can try to create a php.ini on your public_html with the following content:
memory_limit = 128M

If that also does not work, you can try to change it internally in the SMF files:
http://wiki.simplemachines.org/smf/What_the_white_screen_of_death_means_when_accessing_admin_or_package_installs#Increase_memory_allocation_in_the_file.28s.29
bottom part of the page.

However, I would suggest to rather ask your host to increase the php memory size for you instead of changing SMF files.
Title: Re: Optimus Brave
Post by: B3aker on March 15, 2015, 01:32:48 PM
Quote from: Black Tiger on March 15, 2015, 01:13:50 PM
You only need 1 code. If you use both, you have the chance on a 500 internal server error.
In that case only use the second code only, just to be sure.

If that also gives a 500 internal server error, the host has configured things another way. In that case you can try to create a php.ini on your public_html with the following content:
memory_limit = 128M

If that also does not work, you can try to change it internally in the SMF files:
http://wiki.simplemachines.org/smf/What_the_white_screen_of_death_means_when_accessing_admin_or_package_installs#Increase_memory_allocation_in_the_file.28s.29
bottom part of the page.

However, I would suggest to rather ask your host to increase the php memory size for you instead of changing SMF files.

Oh yeah. I only used one at a time and tested it. Thanks for you help. I'm reaching out to my host now to see what they can do before I change the SMF files. I'll have an update when I hear back or if this is fixed or not.
Title: Re: Optimus Brave
Post by: Low on April 15, 2015, 10:20:51 AM
Hi this mod is changing my URL structure in the canonical source i.e. the forum homepage and all links to it is example.com/index.php but with Optimus activated the canonical in the source shows example.com/.

Please help
Title: Re: Optimus Brave
Post by: Stanyy on April 17, 2015, 04:21:03 PM
Quote from: Armada on December 17, 2014, 11:50:48 AM
I think I've found the problem and fixed it.  :) Hopefully this will help somebody if you have the same problem.

To try and work out what is going on, I had a look at the latest modified files.

I saw something interesting in changes in Load.php by running "diff" to see the changes:


diff Load.php~ Load.php

11c11
<  * @version 2.0.7
---
>  * @version 2.0.9
2746a2747,2753
>
> // Invalidate the opcode cache
> if (function_exists('opcache_invalidate'))
>    opcache_invalidate($cachedir . '/data_' . $key . '.php', true);
>
> if (function_exists('apc_delete_file'))
>    @apc_delete_file($cachedir . '/data_' . $key . '.php');



It's something to do with caching.
So I went to my caching options under Admin > Server Settings > Caching and I changed it from "Level 2" caching to "No caching" then went back in and changed it from "No caching" to "Level 1" caching.

Now it works :)

Armada

Thank you. You just saved me a few hours of headache.
Title: Re: Optimus Brave
Post by: jarin001 on April 28, 2015, 10:20:02 AM
Excuse my English. Is there any way to change the OB, instead of the first sentence in the meta description added a larger part of the text? For example, three sentences to 500 characters .. I for subjects sharing on Facebook and that takes data from a meta description on FB page is then as 5 words next to the big picture. Thank you for your help.
Title: Re: Optimus Brave
Post by: roshaoar on April 28, 2015, 11:00:24 AM
Hello,

Just wanted to make a note of something here in case someone else runs into the same problem I had this morning. My forum is a subdirectory and I wanted to make the breadcrumb (linktree in SMF talk) show the site homepage before the forum. This meant adding some lines to load.php, as per here (http://www.simplemachines.org/community/index.php?topic=361506.msg3808187#msg3808187). But on the forum homepage the breadcrumb title over the site homepage was consistently wrong. This is because in Sources\Subs-Optimus.php, there is a line which overwrites what it should be -

$context['linktree'][0]['name'] = $mbname;

Commenting this out solved the problem.

-Johan
Title: Re: Optimus Brave
Post by: Kindred on April 28, 2015, 11:30:36 AM
Quote from: jarin001 on April 28, 2015, 10:20:02 AM
Excuse my English. Is there any way to change the OB, instead of the first sentence in the meta description added a larger part of the text? For example, three sentences to 500 characters .. I for subjects sharing on Facebook and that takes data from a meta description on FB page is then as 5 words next to the big picture. Thank you for your help.

not without recoding the mod...
Title: Re: Optimus Brave
Post by: jarin001 on April 28, 2015, 12:06:08 PM
I have already found a way, the solution is on page 17.
Title: Re: Optimus Brave
Post by: Kindred on April 28, 2015, 02:39:07 PM
which involved re-coding... :P
Title: Re: Optimus Brave
Post by: Paracelsus on May 01, 2015, 05:42:45 AM
This MOD is absolutely brilliant, one of the few I would like to see built-in SMF.
Title: Re: Optimus Brave
Post by: Armada on July 15, 2015, 05:58:48 AM
Quote from: Stanyy on April 17, 2015, 04:21:03 PM
Thank you. You just saved me a few hours of headache.

You're most welcome - glad to be of some help. :)
Title: Re: Optimus Brave
Post by: Armada on July 15, 2015, 06:00:14 AM
Quote from: Kindred on April 28, 2015, 11:30:36 AM
Quote from: jarin001 on April 28, 2015, 10:20:02 AM
Excuse my English. Is there any way to change the OB, instead of the first sentence in the meta description added a larger part of the text? For example, three sentences to 500 characters .. I for subjects sharing on Facebook and that takes data from a meta description on FB page is then as 5 words next to the big picture. Thank you for your help.

not without recoding the mod...

In all fairness, that's probably why the person said "Is there any way to change the OB", and they did excuse for their English too :)
Title: Re: Optimus Brave
Post by: Armada on July 15, 2015, 09:16:09 AM
Quote from: asura88 on July 23, 2014, 04:13:50 PM
It's a great mod, but the whole META description parsing method is imperfect in my opinion.
For example, if someone started their topic with:
"Hello. (content)", the description would look as follows: "Hello", since it's coded to show only the first sentence (ended with dot or exclamation mark).
I have simplified the description function and it should now correctly deal with this issue. In addition it will now also remove the trimmed (cut) last word from the description and empty spaces from the messages started with new line. I would like to point out that I am still coding noob, but there's nothing advanced, so.

Sources/Subs-Optimus.php
function optimus_meta_teaser()
{
global $context, $txt, $smcFunc;

if ($context['is_poll'])
{
$teaser = $txt['poll'] . ': ' . $context['poll']['question'] . ' (' . $context['page_info']['current_page'] . ')';
}
else
{
$request = $smcFunc['db_query']('', '
SELECT SUBSTRING(body, 1, 200)
FROM {db_prefix}messages
WHERE id_msg = {int:id_msg}
LIMIT 1',
array(
'id_msg' => $context['first_message']
)
);

list ($teaser) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);
}

$teaser = optimus_meta_chars(str_replace('<br />', ' ', parse_bbc($teaser, false)));
$teaser = trim($teaser);
$teaser = str_replace("&nbsp;", "", $teaser);

if ($smcFunc['strlen']($teaser) < 150) return strip_tags($teaser);

$teaser = preg_replace('/\s+?(\S+)?$/', '', substr($teaser, 0, 150));

return strip_tags($teaser);
}




asura88,

That modification to the mod is good. I've just used it myself.


I've added the thing to strip out the "&nbsb" before it returns the description:

Sources/Subs-Optimus.php
function optimus_meta_teaser()

// RIght neat the end of the function
// I've added this next line too
$teaser = str_replace("&nbsp;", "", $teaser);
return strip_tags($teaser);
}

Title: Re: Optimus Brave
Post by: tectonny on July 30, 2015, 11:55:58 AM
Bugo Installed in smf 2.1 beta 2 without error, but the redirect after installation I get this error:

Unable to load the 'main' template.

You can solve this problem?
Title: Re: Optimus Brave
Post by: Kindred on July 30, 2015, 01:09:19 PM
this mod will not work on 2.1 beta...      2.1 is still in beta and will not run most 2.0 mods without edit -- even if they "install without error"
additionally, you should not be running 2.1 beta on any production site.
Title: Re: Optimus Brave
Post by: tectonny on July 30, 2015, 01:57:09 PM
I am aware that I must not use SMF 2.1, this is not a problem for me.

And I know that was not done, but many MODs I could have run in SMF 2.1, but give this error.

I thought you could help me.

I'll try alone, as I did with those who are already working,

Thanks for the answer.
Title: Re: Optimus Brave
Post by: Paleus on September 16, 2015, 03:19:41 PM
How can I submit my sitemap to Google Webmaster if it is HTML? Should it not be an XML file?

www.example.com/sitemap.xml
Title: Re: Optimus Brave
Post by: Kindred on September 16, 2015, 03:21:05 PM
I don't believe that this mod creates an XML sitemap.  You would use a different mod for that
Title: Re: Optimus Brave
Post by: Dblog on October 09, 2015, 09:53:09 PM
Quote from: Kindred on September 16, 2015, 03:21:05 PM
I don't believe that this mod creates an XML sitemap.  You would use a different mod for that
It does create an XML sitemap (yoursite.com/sitemap.xml)
check options as admin
Title: Re: Optimus Brave
Post by: Jade Elizabeth on January 28, 2016, 10:51:24 PM
So I recently discovered that I'm not indexed in google properly, and neither are any of my other forums using this mod. This is very disappointing.

I went into google webmasters and out of almost 200 submitted sitemap links only 50 were indexed.

I tried resubmitting the sitemap and this time 93 out of 20 links were accepted.

It (google) is not rechecking the sitemap and the sitemap is not adding topics specifically. How often is "periodically" and do I need to resubmit the sitemap each time? Can you please take a look and help?

www.colormeforum.com/sitemap.xml
Title: Re: Optimus Brave
Post by: Jade Elizabeth on February 15, 2016, 08:10:19 PM
Is it a good idea to have the forum name in the title? When I google I am getting mixed results.

http://sixrevisions.com/content-strategy/5-common-seo-mistakes-with-web-page-titles/
Quote4. Using the Company/Site Name in All Web Pages

As previously said, Google displays up to 70 characters of a given page title in their SERPs. It does see longer ones, though, and despite what many SEO professionals preach, it isn't a huge problem to have page titles that are greater than 70 characters in a page title.

Nevertheless, you need to think of what should and shouldn't appear in the title. Many website owners tend to include their business name in the title, some of which can be very lengthy. What is even worse is that they want their name to appear first in every single web page.

Including your company name (unless it's a search term that will likely be used), is unnecessary, and is consistent with some of the mistakes I've discussed earlier.

For example, study this title:

<title>ACME Exporting/Importing Company, LLC: Export Surfboards to Hawaii<title>
With the page title including the company's name, it is using 37 more characters (with spaces)!

Search engine ranking might be better if it was simply:

<title>Export Surfboards to Hawaii</title>
It would make sense displaying your company name in the homepage, contact page, and about page but avoid them in content pages.


Additionally would you be willing to include open graph things so we can format the titles for Facebook, add the body as the description, maybe even choose a global Facebook image as well as using post images and avatars when sharing?
Title: Re: Optimus Brave
Post by: Kindred on February 15, 2016, 08:24:24 PM
First... I disagree with that person's interpretation of seo.

Second, however... This mod author has not updated the mod ins a while so, it's unlikely to have any features added...
Title: Re: Optimus Brave
Post by: Jade Elizabeth on February 15, 2016, 09:18:02 PM
There's a bunch of other posts for and against it. I can understand how it can be detrimental in come cases.
Title: Re: Optimus Brave
Post by: Jade Elizabeth on February 16, 2016, 08:13:15 PM
Hey!

Not sure what's going on but on one of my forums the title is showing twice. It's showing as forum name - optimus brave title (which includes the forum name at the end). It's doing this when I look at it, when I share it on Facebook, and probably in search results too. I want that first forum name to bugger off.

I've compared the meta tags to the default theme (clean) and they're the same except I've added open graph things for facebook image and description. I'm having this across all themes. Any suggestions? or ideas on what to look for? :)
Title: Re: Optimus Brave
Post by: Jade Elizabeth on February 21, 2016, 09:02:12 PM
Quote from: Jade Elizabeth on February 16, 2016, 08:13:15 PM
Hey!

Not sure what's going on but on one of my forums the title is showing twice. It's showing as forum name - optimus brave title (which includes the forum name at the end). It's doing this when I look at it, when I share it on Facebook, and probably in search results too. I want that first forum name to bugger off.

I've compared the meta tags to the default theme (clean) and they're the same except I've added open graph things for facebook image and description. I'm having this across all themes. Any suggestions? or ideas on what to look for? :)

Anyone? :)
Happening on all themes.
Title: Re: Optimus Brave
Post by: Jade Elizabeth on February 22, 2016, 09:24:22 PM
Uninstalling and reinstalling isn't working. How do I completely wipe Optimus Brave's existence so I can try a fresh install like it's new? I don't know what else I can do.
Title: Re: Optimus Brave
Post by: Jade Elizabeth on February 22, 2016, 11:08:15 PM
I found the DB stuff, still no dice. Can ANYONE help please?
Title: Re: Optimus Brave
Post by: Paracelsus on February 23, 2016, 02:43:25 PM
Are there any plans to develop a "Social Optimus Brave"? :laugh:

Looking at WPSSO makes me wonder if some ideas there could be ported to a SMF mod in order to improve the way social networks pick up data from SMF (a glimpse: https://wpsso.com/ and https://surniaulula.com/2014/10/25/social-seo-wordpress-seo-vs-wpsso/
Title: Re: Optimus Brave
Post by: Jade Elizabeth on February 25, 2016, 10:44:28 PM
THERE IS A BUG

On a forum with Tinyportal installed that does not use the portal aspect, say they only use sidebars, etc, "integrate with Tinyportal" breaks the canonical URL. This is actually pretty major! ALL canonicals will be set to index.php?action=forum, topics, boards, the whole lot. Perhaps you want to check the settings of Tinyportal before assuming? Or perhaps you want to make a note for the end user to only integrate if using the portal function.

I checked it with simple portal and it doesn't happen. I don't have any other portals to test with so that bit is up to you :D.

Also it would be really good to put a check in for RIAST or to state they are not compatible because it duplicates the title and mucks it all up. It should be obvious but it's not if you installed it 20 years ago lol.
Title: Re: Optimus
Post by: Bob Perry of Web Presence Consulting on October 23, 2016, 07:45:42 PM
Open Graph default image doesn't work, is there anyone even supporting this anymore? I like this mod a lot and can't get anything with open graph enabled, running SMF 2.0.12 and aeva media... if there are embedded images it sometimes will work but usually not. Also a missing language entry for the sitemap title ...
Title: Re: Optimus
Post by: anidea on November 13, 2016, 02:53:38 PM
Hi All,

I just installed this mod on my site (2.0.12) and I keep getting this error.  Is anyone familiar with it and can help make it go away?  It generates a ton of errors at a time... (and I just noted the language error above me, is it the same thing?)

http://ragdollsunited.com/smf/index.php?action=admin;area=logs;sa=errorlog;desc
8: Undefined index: optimus_sitemap_title
File: /home/public/smf/Sources/Admin-Optimus.php
Line: 42

Thanks!  :)
Title: Re: Optimus
Post by: wintstar on November 14, 2016, 10:08:48 AM
Open Themes/default/languages/Optimus/Optimus.xxx.php

XXX = france, english or german

find
Code (php) Select
$txt['optimus_sitemap_section'] = 'Optimus Sitemap';

add before
Code (php) Select
$txt['optimus_sitemap_title'] = 'Sitemap';



Title: Re: Optimus
Post by: anidea on November 14, 2016, 11:14:24 PM
Woo hoo!  Thank you, winstar!  :)
Title: Re: Optimus
Post by: owemeone on December 22, 2016, 02:18:06 PM
Hello.

The mod works great, except for the analytics part.

Error:
Forbidden

You don't have permission to access /f/ on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


I am using the following code:

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', '****54392-1', 'auto');
  ga('send', 'pageview');

</script>


Theme: zone99

extra info: Without the <script> tags the code is displayed at the top of my page in normal text.

tried:
1. backlashing (adding \ before the ')
2. adding echo stuff
3. trying different combos, ie. removing <script> tags, only pasting my tracking ID, etc.

From this post you can see I have little knowledge about scripting, so any help is appreciated.

PS: I know there is a mod specifically for google analytics, but I would prefer to get this mod working.

Title: Re: Optimus
Post by: owemeone on December 26, 2016, 11:50:23 AM
I contacted my host and my problem has been solved.
Title: Re: Optimus
Post by: perfec2 on January 07, 2017, 11:36:24 AM
I don't have simpleportal installed, and mistakenly chose Portal integration >>Simpleportal. I got 500 server error when I clicked save.
As a result whenever a user click post to start a new thread, it will display 500 server, when you view board index you will see that the new thread is posted.

Please how can I fix this?

Note that posting reply doesn't have any problem as it works fine.
Title: Re: Optimus
Post by: owemeone on January 13, 2017, 09:48:03 AM
Quote from: perfec2 on January 07, 2017, 11:36:24 AM
I don't have simpleportal installed, and mistakenly chose Portal integration >>Simpleportal. I got 500 server error when I clicked save.
As a result whenever a user click post to start a new thread, it will display 500 server, when you view board index you will see that the new thread is posted.

Please how can I fix this?

Note that posting reply doesn't have any problem as it works fine.

You're not able to change the settings? Are you able to install simpleportal?

If not, then you'll have to dig into your database.

QuoteHow do you change the settings of a mod if you aren't able to access the settings via natural methods?

> phpmyadmin
> open up relevant database
> search mod name (for this example: Cumulus Congestus)
> Words or values to search for (wildcard: "%"): Cumulus Congestus
> Find: At least one of the words
> ***_Settings

>browse

>edit whichever field you need to edit

Just make sure you've got a backup :)

There might be another solution, and I am an amateur, so yer.. :p
Title: Re: Optimus
Post by: acsieben on January 18, 2017, 06:29:27 AM
Hi,
After starting to use PHP 7.1 I had to make this change to get a lot of warnings related to "optimus_buffer()" from being generated:

function optimus_buffer(&$buffer) -> function optimus_buffer($buffer)

I.e. I removed the ampersand.

Edit:
Another error that is popping up a lot in the logs is:
Quote8: Undefined index: optimus_sitemap_title
File: /home/**myforum**/public_html/smf/Sources/Admin-Optimus.php
Line: 42
Title: Re: Optimus
Post by: perfec2 on January 20, 2017, 06:23:43 AM
Quote from: owemeone on January 13, 2017, 09:48:03 AM
Quote from: perfec2 on January 07, 2017, 11:36:24 AM
I don't have simpleportal installed, and mistakenly chose Portal integration >>Simpleportal. I got 500 server error when I clicked save.
As a result whenever a user click post to start a new thread, it will display 500 server, when you view board index you will see that the new thread is posted.

Please how can I fix this?

Note that posting reply doesn't have any problem as it works fine.

You're not able to change the settings? Are you able to install simpleportal?

If not, then you'll have to dig into your database.

QuoteHow do you change the settings of a mod if you aren't able to access the settings via natural methods?

> phpmyadmin
> open up relevant database
> search mod name (for this example: Cumulus Congestus)
> Words or values to search for (wildcard: "%"): Cumulus Congestus
> Find: At least one of the words
> ***_Settings

>browse

>edit whichever field you need to edit

Just make sure you've got a backup :)

There might be another solution, and I am an amateur, so yer.. :p

Thank you for your help, this I believe can solve setting saving issue. How about when a user clicks "post" to start a new thread and it displays 500 server errors at thesame time get posted? currently I uninstalled the mod so that users can post without seeing errors. Please how can I solve this aspect?
Title: Re: Optimus
Post by: perfec2 on January 22, 2017, 08:18:50 AM
Is there a way to remove all the mod instances in the database, as if it hasn't installed before?
Title: Re: Optimus
Post by: aetherdan on March 22, 2017, 07:04:58 AM
Doe this mod work when using SSL?

Once installed and activated, none of the features seem to be working.
Title: Re: Optimus
Post by: Kindred on March 22, 2017, 07:46:09 AM
be more specific please?

Because I have all of my sites on SSL and optimus brave is working just fine
Title: Re: Optimus
Post by: aetherdan on March 23, 2017, 01:17:11 AM
See attachments. The mod just doesn't seem to be working at all, also sitemap was never generated.

No error when checking apache log.
Title: Re: Optimus
Post by: Kindred on March 23, 2017, 11:12:08 PM
It looks like you have done some bad things...
1- removing index.php from the URL is useless when it comes to seo and may cause issues
2- turn off the set URLs in smf admin, they are useless these days.

3- what do you think this mod does? It does not change the URL at all... 
Title: Re: Optimus
Post by: aetherdan on March 23, 2017, 11:19:32 PM
Ahhh, I thought it was similar to pretty urls. Thanks mate, must be working as intended.

ll i get now is

8: Undefined index: optimus_sitemap_title
Title: Re: Optimus
Post by: Kindred on March 23, 2017, 11:24:56 PM
No, this changes  the meta description, etc tags... not the URL ... because pretty URLs are also, basically, useless for seo
Title: Re: Optimus
Post by: aetherdan on March 23, 2017, 11:27:21 PM
Quote from: Kindred on March 23, 2017, 11:24:56 PM
No, this changes  the meta description, etc tags... not the URL ... because pretty URLs are also, basically, useless for seo

Cheers mate, learn something enw every day.
Title: Re: Optimus
Post by: Linkjay on March 24, 2017, 02:06:47 AM
I keep meaning to try this. Looks awesome!
Title: Re: Optimus
Post by: khalimerot on June 25, 2017, 06:42:44 AM
Hi everyone,

When i send a new topic, or change a sitemap option in Optimus i have this error:

Table 'icka_smf.smf_bbs_items' doesn't exist
File: /var/sentora/hostdata/icka/public_html/icka_eu/Sources/Subs-Optimus.php
Ligne: 852


My SMF is a 2.0.14 and i Re run the upgrade.php to re update the database...but the problem is still there...

And i have uninstall and reinstall the mod, with no luck..

Edit: After searching i think i have to change the Subs-Optimus.php file to search in smf_topics, but i'm not sure....
Edit2: Not working, it search for id wich could possibly be id_topics, date, and last_edit which are not present in smf_topics

// Simple Classifieds
if (!empty($modSettings['optimus_sitemap_classifieds'])) {
$request = $smcFunc['db_query']('', '
SELECT id, date, last_edit
FROM {db_prefix}bbs.items
WHERE status = {int:approved}
ORDER BY date',
array(
'approved' => 1
)
);
Title: Re: Optimus
Post by: khalimerot on June 25, 2017, 07:47:29 AM
The problem seems to come from the Simple Classifed Sitemap option...but I cannot deactivate this option...each time it return selected...

The options seems to not be stored in the database...so i don't know where i can change it..

Edit: Found the parameters in the DB smf_settings at Optimus_sitemap_classifieds and change it to 0, solved my problems..

Do not activate the SMF Classifieds option if you don't have this mod...it was a miss click from me...and this option cannot be change without manually editing the database...
Title: Re: Optimus
Post by: whoey on June 26, 2017, 02:59:29 PM
Quote from: perfec2 on January 07, 2017, 11:36:24 AM
I don't have simpleportal installed, and mistakenly chose Portal integration >>Simpleportal. I got 500 server error when I clicked save.
As a result whenever a user click post to start a new thread, it will display 500 server, when you view board index you will see that the new thread is posted.

Please how can I fix this?

Note that posting reply doesn't have any problem as it works fine.
We had Optimus Brave 1.8.7 installed, updating to 1.9.x caused 500 errors when starting a new topic. Have temporarily reverted to 1.8.7 since it's not causing us any headaches. I guess something in the old config barfs with the new versions...
Title: Re: Optimus
Post by: acsieben on July 01, 2017, 01:00:20 PM
Quote from: aetherdan on March 23, 2017, 11:19:32 PM
Ahhh, I thought it was similar to pretty urls. Thanks mate, must be working as intended.

ll i get now is

8: Undefined index: optimus_sitemap_title


To clear this warning from the error log I changed two entries of this string in Sources/Admin-Optimus.php:

$txt['optimus_sitemap_title']

To:

isset($txt['optimus_sitemap_title'])?$txt['optimus_sitemap_title']:""
Title: Re: Optimus
Post by: Kindred on July 01, 2017, 01:06:50 PM
or, a better solution would be to actually define $txt['optimus_sitemap_title'] in modifications.YOURLANGUAGE.php
Title: Re: Optimus
Post by: SaidJan on August 06, 2017, 02:59:10 PM
Sometimes, I get this error with SMF 2.1 beta 3. How to fix it?

8: Undefined variable: mobile_type
file: .../Sources/Subs-Optimus.php
Line: 466

==>466:            'wap'      => $scripturl . '/?' . $mobile_type,

Title: Re: Optimus
Post by: Kindred on August 06, 2017, 03:05:41 PM
Well, for one, this mod is not designed for smf 2.1
Title: Re: Optimus
Post by: SaidJan on August 06, 2017, 04:11:11 PM
Quote from: Kindred on August 06, 2017, 03:05:41 PM
Well, for one, this mod is not designed for smf 2.1
Ok, NP.
I thought it's compatible as it says in Modification section of the site.
Title: Re: Optimus
Post by: Kindred on August 06, 2017, 06:27:28 PM
hmmm.... it does say that, doesn't it?   Bugo must have made a update or mistakenly clicked 2.1 when he meant 2.0.14


but it would require some changes since I believe we may have removed WAP from the 2.1 codebase
Title: Re: Optimus
Post by: Bugo on August 08, 2017, 04:19:11 AM
Quote from: SaidJan on August 06, 2017, 02:59:10 PM
Sometimes, I get this error with SMF 2.1 beta 3. How to fix it?

8: Undefined variable: mobile_type
file: .../Sources/Subs-Optimus.php
Line: 466

==>466:            'wap'      => $scripturl . '/?' . $mobile_type,
Thanks, I fixed it on GitHub (develop branch (https://github.com/dragomano/Optimus/tree/develop))
Title: Re: Optimus
Post by: SaidJan on August 08, 2017, 10:16:39 AM
Thank you.
I think you missed ?> at the end of both files.
Title: Re: Optimus
Post by: Bugo on August 08, 2017, 12:44:05 PM
It's not required :)
Title: Re: Optimus
Post by: boyanova6 on September 15, 2017, 03:07:27 AM
I can not activate this option. Please help.

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=422210.0;attach=254597;image)
Title: Re: Optimus
Post by: Bugo on September 19, 2017, 01:17:26 PM
This option is visible if there is sitemap.xml on the forum's root.
Title: Re: Optimus
Post by: boyanova6 on September 19, 2017, 01:35:56 PM
It works. Thanks for the reply!
Title: Re: Optimus
Post by: Parmaster on October 02, 2017, 07:10:50 PM
Is this really the correct robots.txt?

Because in the Google Console I see the message that Google has no access to my site because of the second  Disallow: /

User-agent: MediaPartners-Google
Allow: /

User-agent: *
Allow: /*.xml
Allow: /*sitemap
Allow: /*.css
Allow: /*.js
Allow: /*.png
Allow: /*.jpg
Allow: /*.gif
Disallow: /*action
Disallow: /*board=*wap
Disallow: /*board=*imode
Disallow: /*topic=*wap
Disallow: /*topic=*imode
Disallow: /*topic=*.msg
Disallow: /*topic=*.new
Disallow: /*;
Disallow: /*PHPSESSID
Allow: /*board
Allow: /*topic
Disallow: /

Sitemap: https://mydomain.tld/sitemap.xml
Title: Re: Optimus
Post by: anidea on October 21, 2017, 04:39:01 PM
Hi!  I hate to be a pest, but this error started up again today.  It was resolved previously by winstar's post (change "Optimus Sitemap' to 'Sitemap' in languages), and nothing changed about the forum (that I know of/within my control) so I don't really understand what might've suddenly happened.  It is only generated when I am on the site, under my admin username.  Also I don't have the sitemap option enabled, and don't know where it can be found.

BTW my site has been 2.0.14 for months (since shortly after it was available).

If anyone could point me in a direction to fixing this, I'd be very grateful.

Quote from: anidea on November 13, 2016, 02:53:38 PM
Hi All,

I just installed this mod on my site (2.0.12) and I keep getting this error.  Is anyone familiar with it and can help make it go away?  It generates a ton of errors at a time... (and I just noted the language error above me, is it the same thing?)

http://ragdollsunited.com/smf/index.php?action=admin;area=logs;sa=errorlog;desc
8: Undefined index: optimus_sitemap_title
File: /home/public/smf/Sources/Admin-Optimus.php
Line: 42

Thanks!  :)
Title: Re: Optimus
Post by: Bob Perry of Web Presence Consulting on October 21, 2017, 05:38:13 PM
Quote from: anidea on October 21, 2017, 04:39:01 PM
Hi!  I hate to be a pest, but this error started up again today.  It was resolved previously by winstar's post (change "Optimus Sitemap' to 'Sitemap' in languages), and nothing changed about the forum (that I know of/within my control) so I don't really understand what might've suddenly happened.  It is only generated when I am on the site, under my admin username.  Also I don't have the sitemap option enabled, and don't know where it can be found.

BTW my site has been 2.0.14 for months (since shortly after it was available).

If anyone could point me in a direction to fixing this, I'd be very grateful.

Quote from: anidea on November 13, 2016, 02:53:38 PM
Hi All,

I just installed this mod on my site (2.0.12) and I keep getting this error.  Is anyone familiar with it and can help make it go away?  It generates a ton of errors at a time... (and I just noted the language error above me, is it the same thing?)

http://ragdollsunited.com/smf/index.php?action=admin;area=logs;sa=errorlog;desc
8: Undefined index: optimus_sitemap_title
File: /home/public/smf/Sources/Admin-Optimus.php
Line: 42

Thanks!  :)

If you start at the beginning of this thread and read each post carefully you may find that somewhere along the line the file sitemap.xml got deleted, OR your language files did not install correctly, I've had experience with the latter in this module when installing on 2.1, which as Kindred stated this module needs to be updated for 2.1... its a fair module for what it does, but requires custom edits to install on 2.1, but you are on 2.0.14 yes? same issue maybe, check that the language files got installed correctly... because back when I was messing with this one there was a whole missing menu item because of the language files, simple fix though...

Title: Re: Optimus
Post by: anidea on October 21, 2017, 06:55:00 PM
Quote from: Bob Perry of Web Presence Consulting on October 21, 2017, 05:38:13 PM
If you start at the beginning of this thread and read each post carefully you may find that somewhere along the line the file sitemap.xml got deleted, OR your language files did not install correctly, I've had experience with the latter in this module when installing on 2.1, which as Kindred stated this module needs to be updated for 2.1... its a fair module for what it does, but requires custom edits to install on 2.1, but you are on 2.0.14 yes? same issue maybe, check that the language files got installed correctly... because back when I was messing with this one there was a whole missing menu item because of the language files, simple fix though...

Thanks for the hint, it certainly sounds similar to my problem, BUT...

I went through 21 pages of discussion and didn't find anything addressing how to fix it.  A lot of work and no result :(  (and yes, I did uninstall and reinstall, which was the only thing I saw.)

If anyone can point me to something more concrete, I would really appreciate it.
Title: Re: Optimus
Post by: Bob Perry of Web Presence Consulting on October 21, 2017, 07:05:05 PM
Quote from: anidea on October 21, 2017, 06:55:00 PM
Quote from: Bob Perry of Web Presence Consulting on October 21, 2017, 05:38:13 PM
If you start at the beginning of this thread and read each post carefully you may find that somewhere along the line the file sitemap.xml got deleted, OR your language files did not install correctly, I've had experience with the latter in this module when installing on 2.1, which as Kindred stated this module needs to be updated for 2.1... its a fair module for what it does, but requires custom edits to install on 2.1, but you are on 2.0.14 yes? same issue maybe, check that the language files got installed correctly... because back when I was messing with this one there was a whole missing menu item because of the language files, simple fix though...

Thanks for the hint, it certainly sounds similar to my problem, BUT...

I went through 21 pages of discussion and didn't find anything addressing how to fix it.  A lot of work and no result :(  (and yes, I did uninstall and reinstall, which was the only thing I saw.)

If anyone can point me to something more concrete, I would really appreciate it.

Oops, what I meant to say is that you should start at the top of this page of the thread, not meaning to suggestion the entire thread...

At any rate, so what you are saying is that you have physically checked and that sitemap.xml file does indeed exist in the root directory of the forum?

The error msg that you cited indicates to me initially that a manual edit of your language files will fix this, IF that file does indeed exist where it is suppose to be... especially if the module was working okay beforehand...

Title: Re: Optimus
Post by: anidea on October 21, 2017, 10:23:37 PM
Quote from: Bob Perry of Web Presence Consulting on October 21, 2017, 07:05:05 PM

Oops, what I meant to say is that you should start at the top of this page of the thread, not meaning to suggestion the entire thread...

At any rate, so what you are saying is that you have physically checked and that sitemap.xml file does indeed exist in the root directory of the forum?

The error msg that you cited indicates to me initially that a manual edit of your language files will fix this, IF that file does indeed exist where it is suppose to be... especially if the module was working okay beforehand...

I'm still confused.

I made a txt document and renamed it to sitemap.xml and uploaded it to smf.  Didn't fix it.

I'm not sure what I should do.  If there's a manual edit of my language files needed, how do I find what/where to edit? 

On the other hand, if something was supposed to happen that didn't, shouldn't there be a reason *why* something didn't happen as predicted?  I checked the zip file for the mod, and there is no sitemap.xml in there.  What creates this file?  When?  And if it was supposed to happen on install, why didn't that happen?  'Cause obviously something is broken.  Re-install did not fix it.

BTW, that screenshot that Boyanova6 posted above?  I don't have anything looking like that in the mod.  There is nothing referencing sitemaps *at all* in any of the mod settings.  When I look through the language file, I see a whole section on creating a sitemap.xml.  Should I just delete all that?  Shouldn't that appear somewhere in the mod? 

Still confused.  :(
Title: Re: Optimus
Post by: Bob Perry of Web Presence Consulting on October 21, 2017, 11:37:23 PM
Yes, if you are unfamiliar with doing a manual edit, it can be confusing... been working with computers for longer than some have been alive, and they always do EXACTLY as they are told to do by the programmer, they do not make mistakes, ever... its the programmer's responsibility to account for every scenario & details of what the task at hand is doing.

Sometimes, if the forum admin has installed/re-installed several different modules, some modules change the language files and source code of the core software in a variety of ways, or are "suppose" to, but because some other module has already made changes to those files, and un-install re-install does not always fix some little quirk of the software and you must manually make the edits yourself to put things back in order...

SMF© makes that process relatively easy to spot and tells you where/what edits to make through the pre-install/uninstall test...

Title: Re: Optimus
Post by: anidea on October 21, 2017, 11:42:39 PM
So what you're saying is my only choice is to delete the entire forum and start over?

Quote from: Bob Perry of Web Presence Consulting on October 21, 2017, 11:37:23 PM
SMF© makes that process relatively easy to spot and tells you where/what edits to make through the pre-install/uninstall test...

Not really, because there was never a single indication of the mod not installing properly.  Not the first time, and not when I uninstalled and reinstalled earlier today.

Unless there is some other pre-install/uninstall test that I am unaware of?
Title: Re: Optimus
Post by: Bob Perry of Web Presence Consulting on October 21, 2017, 11:56:06 PM
Quote from: anidea on October 21, 2017, 11:42:39 PM
So what you're saying is my only choice is to delete the entire forum and start over?

In this case, no that is not the case, if you go in and un-install Optimus, then turn around and re-install it, the pretest phase will show where and what files need to be edited... familiarize yourself with this feature of the package manager, it will save you hours of fret, confusion, and headaches if you are trying to add functionality features new or old...

The wiki section of the online manual here has vast resources for a variety of scenarios that typically happen with the SMF platform, one of the moderators can point you to the section of the manual that covers manual edits of source code...

In your case, you should be able to quickly make a minor edit to the language files which are located in the Themes/default/languages sub-directory, but first you need to determine which one(s) to edit...

Title: Re: Optimus
Post by: anidea on October 22, 2017, 12:01:12 AM
Quote from: Bob Perry of Web Presence Consulting on October 21, 2017, 11:56:06 PM
In this case, no that is not the case, if you go in and un-install Optimus, then turn around and re-install it, the pretest phase will show where and what files need to be edited... familiarize yourself with this feature of the package manager, it will save you hours of fret, confusion, and headaches if you are trying to add functionality features new or old...

I've uninstalled and reinstalled twice today.  The pretest phase does not show any issues AT ALL.  That's the problem.  So what do I do next?

Installations actions for "Optimus"
Installing this package will perform the following actions:
Type   Action   Description
1.   Extract File   ./Sources/Admin-Optimus.php   Core file
2.   Extract File   ./Sources/Subs-Optimus.php   Core file
3.   Extract File   ./Themes/default/Optimus.template.php   Template file
4.   Extract Tree   ./Themes/default/languages   Language files
5.   Extract Tree   ./Themes/default/css   CSS files
6.   Adapt Database   install.php

This is followed by a quick "successful install" screen that I don't even have the chance to read it is so quick, followed by the "Base Settings" page with these options:

Base settings
Extra
Verification meta tags
Counters
File robots.txt

Nothing about sitemaps.

STill getting this error:

8: Undefined index: optimus_sitemap_title
File: /home/public/smf/Sources/Admin-Optimus.php
Line: 42

Quote from: Bob Perry of Web Presence Consulting on October 21, 2017, 11:56:06 PM
The wiki section of the online manual here has vast resources for a variety of scenarios that typically happen with the SMF platform, one of the moderators can point you to the section of the manual that covers manual edits of source code...

In your case, you should be able to quickly make a minor edit to the language files which are located in the Themes/default/languages sub-directory, but first you need to determine which one(s) to edit...

I should also add that most of the descriptions for the code are in Russian.  While I can boast being able to utter a few Russian words/phrases, I can't read whatever the writing says in the Admin-Optimus.php file says.  I tried looking at places where "sitemap" is mentioned, but I can't find anything particularly wrong with it, other than that it doesn't work.  I'm not sure how the SMF wiki is supposed to help here... :-/  I came to the Mod thread hoping for help with the Mod, is that not what I'm supposed to do?
Title: Re: Optimus
Post by: Bob Perry of Web Presence Consulting on October 22, 2017, 12:32:58 AM
Okay, let me ask you this, is your forum utilizing utf-8 protocol? or no?

If it is, try replacing these two files in your Themes/default/languages directory... see attached...

Afterward you should see an additional option on the optimus admin menu regarding sitemap...

Title: Re: Optimus
Post by: anidea on October 22, 2017, 12:46:42 AM
Haha, very clever.  "Need to fix this language error Bugo" now appears where I assume Sitemaps is supposed to appear.

And it looks like the error is gone :)

Thank you.  It was a rough ride for a bit, but I appreciate your stick-to-it-iveness.

I can probably fix the "Need to fix this language error Bugo" item, but I think I'll leave it, just for kicks :D
Title: Re: Optimus
Post by: Black Tiger on November 13, 2017, 06:50:56 PM
I had version 1.8.x and now installed version 1.9.6 but encountered an error about
https://www.myforums.org/Themes/default/css/sitemap.xsl on line 1 column xxxx. I don't remember the column number.
So I checked and there is no sitemap.xsl present neither created in the .css directory.
This occurs when I visit https://www.myforums.org/forum/sitemap.xml in my browser.

Am i doing something wrong or is this file missing from the zip? At this moment I used the sitemap.xsl from the 1.8.x version and then the error does not occur.


Optimus 1.9.6
SMF 2.0.14
Title: Re: Optimus
Post by: Black Tiger on April 01, 2018, 02:32:25 PM
What is the changelog between 1.9.6 and 1.9.7?
Title: Re: Optimus
Post by: Bugo on April 01, 2018, 05:57:04 PM
Title: Re: Optimus
Post by: -Rock Lee- on April 02, 2018, 12:48:19 PM
Very good @Bugo for updating the mod and step by step I leave the translation into Spanish Latin ;D


Regards!
Title: Re: Optimus
Post by: @rjen on April 02, 2018, 03:22:32 PM
A glitch in the code

Optimus.template.php

<span>
<label for="optimus_favicon_text">Код для вставки favicon</label><br />
<span class="smalltext">', $txt['optimus_favicon_help'], '</span>
</span>


Should be
<span>
<label for="optimus_favicon_text">', $txt['optimus_favicon_text'], '<br />
<span class="smalltext">', $txt['optimus_favicon_help'], '</span>
</span>


And the corrected Dutch translations attached
Title: Re: Optimus
Post by: Bugo on April 03, 2018, 06:35:19 AM
Thanks. I have added your translations into package.
Title: Re: Optimus
Post by: @rjen on April 03, 2018, 07:56:01 AM
Nice.

I have another question / issue:
I activated the setting for 'Open Graph support' linking to an image...

Now every time a topic is read with an attachment in the first message this error is written:

https://www.fjr-club.nl/index.php?topic=22081.msg311175;topicseen
2: getimagesize(https://www.fjr-club.nl/index.php?action=dlattach;topic=22081;attach=11722;image): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
File: /home/deb77453/domains/fjr-club.nl/public_html/Sources/Subs-Optimus.php
Line: 467

Title: Re: Optimus
Post by: Bugo on April 03, 2018, 09:23:14 AM
Open Subs-Optimus.php, find
function get_optimus_description()
{
global $smcFunc, $context, $txt, $board_info;

and add after
if (!allowedTo('view_attachments'))
return;


It should look like that:
function get_optimus_description()
{
global $smcFunc, $context, $txt, $board_info;

if (empty($context['first_message']))
return;


P. S. Or you can just allow guests to view attachments ;)
Title: Re: Optimus
Post by: @rjen on April 03, 2018, 10:01:00 AM
That does NOT solve the issue.

I should have mentioned: error occurs for members that ARE allowed to see attachments...
Title: Re: Optimus
Post by: pocttopus on April 03, 2018, 11:11:46 AM
Quote from: Bugo on April 01, 2018, 05:57:04 PM
  • Favicon support
  • Custom metatags
  • Various fixes
This is awesome. Thanks!  :)
Title: Re: Optimus
Post by: Bugo on April 03, 2018, 04:27:36 PM
Quote from: @rjen on April 03, 2018, 10:01:00 AM
That does NOT solve the issue.

I should have mentioned: error occurs for members that ARE allowed to see attachments...
Did you clean cache?
Title: Re: Optimus
Post by: @rjen on April 03, 2018, 04:37:54 PM
Quote from: Bugo on April 03, 2018, 04:27:36 PM
Quote from: @rjen on April 03, 2018, 10:01:00 AM
That does NOT solve the issue.

I should have mentioned: error occurs for members that ARE allowed to see attachments...
Did you clean cache?

yes I did. And note my comment: error is showing for registered users, they have access to the attachments anyway...
Title: Re: Optimus
Post by: pocttopus on April 07, 2018, 06:42:02 AM
Another update? What's that all about?  :o Every second day something new... I am just wondering what is the chagelog?  :D
Title: Re: Optimus
Post by: @rjen on April 08, 2018, 02:30:03 PM
Quote from: pocttopus on April 07, 2018, 06:42:02 AM
Another update? What's that all about?  :o Every second day something new... I am just wondering what is the chagelog?  :D

So was I. I believe a mod author should announce the changelogs every time an update is done.

I checked the package and I found that Bugo has made a few more changes related to my issue with the OG_image support...
I tested it again on my forum, and I now get different error messages...

https://www.fjr-club.nl/index.php?topic=21625.msg311459;topicseen
8: Undefined offset: 0
File: /home/deb77453/domains/fjr-club.nl/public_html/Sources/Subs-Optimus.php
Line: 470
Title: Re: Optimus
Post by: alexetgus on April 20, 2018, 11:18:03 AM
Hello,

Good job, @Bugo ! :)
Thanks.

I had already modified my forum manually for SEO and social media.
Now that i found this mod, it's cool. He will do the rest! ;)


Translation :
- French UTF-8
- French

I converted "Webmaster Tools" to "Search Console" (the name as changed).

Title: Re: Optimus
Post by: alexetgus on April 24, 2018, 02:59:54 AM
Forgotten variable $txt['optimus_robots_desc'] :-[

Complete french translation:
Title: Re: Optimus
Post by: Bugo on April 25, 2018, 04:01:27 AM
Thanks :)
Title: Re: Optimus
Post by: njtweb on April 25, 2018, 01:13:59 PM
Thank you, I'm just getting started with mine. Couple questions.

1. Is there a quick and easy configuration manual for standard basic seo config? I'm not looking to get my site noticed on the first page or anything. I would like it indexed properly though.
2. I have sitemap.xml and robots.tx file at my site root already, should I remove them?

Thanks!
Title: Re: Optimus
Post by: Bugo on April 25, 2018, 02:09:18 PM
I advice you to enable mod's options one by one and view what effect they produce. Read a hint for every option, if it there is.
When you enable "Sitemap XML" option, Optimus replaces the current sitemap.xml file. The robots.txt file you can change manually, on "robots.txt" page.
Title: Re: Optimus
Post by: njtweb on April 25, 2018, 02:21:20 PM
Ok, that's what I did. I wasn't sure if there was a "suggested default config" for starters. Thanks
Title: Re: Optimus
Post by: njtweb on April 26, 2018, 04:12:50 PM
How do you change the meta data open graph image link? I can't it's hard coded. I uploaded the image I want to use to my app on FB and it's not using that either.
Title: Re: Optimus
Post by: njtweb on April 26, 2018, 05:58:49 PM
Couple Questions..... I would've edited my last comment but can't.


- How do you change the meta data open graph image link? I can't it's hard coded. I uploaded the image I want to use to my app on FB and it's not using that either.

- Under base settings/Forum Homepage title. I don't want "- Index" showing in web search results. If I leave it empty there's still a hyphen. Is there anyway to remove the hyphen so just my website title shows up without it in results, (image attached)?

- When I browse to my site in chrome the suffix is index.php?wwwRedirect<--- What is that? It doesn't show that in FF or IE

http://www.youthhockeyinfo.com/index.php?wwwRedirect
Title: Re: Optimus
Post by: alexetgus on April 27, 2018, 04:24:22 AM
Off topic

On the mod page, you should indicate which languages ​​are supported. It would bring you more people. ;)
Title: Re: Optimus
Post by: Kindred on April 27, 2018, 07:13:09 AM
Quote from: njtweb on April 26, 2018, 05:58:49 PM
- When I browse to my site in chrome the suffix is index.php?wwwRedirect<--- What is that? It doesn't show that in FF or IE

http://www.youthhockeyinfo.com/index.php?wwwRedirect

https://wiki.simplemachines.org/smf/WwwRedirect
Title: Re: Optimus
Post by: njtweb on May 13, 2018, 03:10:53 PM
Hi @Bugo

What does the portal support do in your mod? I ask because I don't see EZ Portal listed.
Title: Re: Optimus
Post by: Bugo on May 13, 2018, 03:23:23 PM
"Portal support" just means that Optimus can change page titles and/or $context['canonical_url'] on portal frontpages.
I didn't use the last versions of EZ Portal, so I don't know how it works, what is changed, etc.
Title: Re: Optimus
Post by: BillLeeDee on May 14, 2018, 01:14:25 PM
I don't know if this is widespread or not, but when I upgraded from 1.9.6 to 1.9.7.2 or 1.9.7.3 I lost all the open graph tags, regardless of the settings. Reverting back to 1.9.6 returned them to the forum. I didn't check anything else to see what wasn't working with the 1.9.7.x version as when I noticed all my Twitter cards were broken until I reverted to the old version.
Title: Re: Optimus
Post by: BillLeeDee on May 16, 2018, 07:32:15 PM
Anybody have any suggestions on this or doesn't anyone use this mod?
Title: Re: Optimus
Post by: alexetgus on May 17, 2018, 09:29:35 AM
Sorry, i use another system, of my making, for social images.
I installed Optimus after i started a big SEO job on my site.
Optimus is a complement.
Title: Re: Optimus
Post by: BillLeeDee on May 19, 2018, 09:46:55 PM
Thanks for the reply. Apparently there's some sort of bug or features have been removed, so I'll use the older version for now.
Title: Re: Optimus
Post by: njtweb on June 28, 2018, 08:09:00 AM
Quote from: BillLeeDee on May 14, 2018, 01:14:25 PM
I don't know if this is widespread or not, but when I upgraded from 1.9.6 to 1.9.7.2 or 1.9.7.3 I lost all the open graph tags, regardless of the settings. Reverting back to 1.9.6 returned them to the forum. I didn't check anything else to see what wasn't working with the 1.9.7.x version as when I noticed all my Twitter cards were broken until I reverted to the old version.

Did you install optimus.zip or optimus_smf21.zip?
Title: Re: Optimus
Post by: pocttopus on July 20, 2018, 01:19:36 PM
Hello,

I am receiving a lot of errors and I don't know how to fix this... I had noticed that this issue is related with optimus modificiation.
In this message I had uploaded Class-Optimus.php
Is there any fix!?

Thanks!

(https://s20.postimg.cc/lkzvx9vu5/err.jpg)
Title: Re: Optimus
Post by: alexetgus on July 20, 2018, 01:42:51 PM
Hello

Use this file. I changed lines 475 to 478.
if (!empty($context['canonical_url'])) {
$open_graph .= '
<meta property="og:url" content="' . $context['canonical_url'] . '" />';
}


These errors are caused by the absence of canonical url on SMF privates pages (admin, PM, ...)
Title: Re: Optimus
Post by: pocttopus on July 20, 2018, 02:45:07 PM
Quote from: alexetgus on July 20, 2018, 01:42:51 PM
Hello

Use this file. I changed lines 475 to 478.
if (!empty($context['canonical_url'])) {
$open_graph .= '
<meta property="og:url" content="' . $context['canonical_url'] . '" />';
}


These errors are caused by the absence of canonical url on SMF privates pages (admin, PM, ...)
Thanks, I had uploaded the file and see how it goes...
Title: Re: Optimus
Post by: alexetgus on July 20, 2018, 03:03:45 PM
I'm not sure that Optimus is compatible with Pretty URL... :-\
Title: Re: Optimus
Post by: pocttopus on July 20, 2018, 03:36:10 PM
Quote from: alexetgus on July 20, 2018, 03:03:45 PM
I'm not sure that Optimus is compatible with Pretty URL... :-\
Thanks for the advice... now I had removed PrettyUrl's and not to worry.
Title: Re: Optimus
Post by: Bugo on July 21, 2018, 01:02:31 AM
Quote from: alexetgus on July 20, 2018, 03:03:45 PM
I'm not sure that Optimus is compatible with Pretty URL... :-\
It is compatible and works with the latest version very well.
Title: Re: Optimus
Post by: pocttopus on July 21, 2018, 03:29:23 AM
Quote from: Bugo on July 21, 2018, 01:02:31 AM
Quote from: alexetgus on July 20, 2018, 03:03:45 PM
I'm not sure that Optimus is compatible with Pretty URL... :-\
It is compatible and works with the latest version very well.
Now I am able to return PrettyUrl's?  :o
Title: Re: Optimus
Post by: Bugo on July 21, 2018, 04:25:41 AM
It's up to you :)
Title: Re: Optimus
Post by: pocttopus on July 21, 2018, 06:03:07 AM
Thanks... I will install it again.  ;)
Title: Re: Optimus
Post by: brettuk on July 21, 2018, 12:40:39 PM
Hey great mod btw, however, having some issues with the sitemap.

I have all of the relevant sitemap boxes checked, but where is the sitemap URL?
Title: Re: Optimus
Post by: Bugo on July 21, 2018, 03:30:47 PM
Sitemap file is creating via Scheduled Tasks.
Title: Re: Optimus
Post by: njtweb on July 21, 2018, 07:49:26 PM
Quote from: brettuk on July 21, 2018, 12:40:39 PM
Hey great mod btw, however, having some issues with the sitemap.

I have all of the relevant sitemap boxes checked, but where is the sitemap URL?

Just submit sitemap.xml to google webmaster tools. It'll get picked up.
Title: Re: Optimus
Post by: SirLouen on August 01, 2018, 02:21:37 PM
For some reason my sitemap shows in the bottom this:

/* loading */ .lt-sk-three-bounce { margin: 2px auto; width: 100%; text-align: center; } .lt-sk-three-bounce .lt-sk-child { width: 5px; height: 5px; background-color: #333; border-radius: 100%; display: inline-block; -webkit-animation: lt-sk-three-bounce 1.4s ease-in-out 0s infinite both; animation: lt-sk-three-bounce 1.4s ease-in-out 0s infinite both; } .lt-sk-three-bounce .lt-sk-bounce1 { -webkit-animation-delay: -0.32s; animation-delay: -0.32s; } .lt-sk-three-bounce .lt-sk-bounce2 { -webkit-animation-delay: -0.16s; animation-delay: -0.16s; } @-webkit-keyframes lt-sk-three-bounce { 0%, 80%, 100% { -webkit-transform: scale(0); transform: scale(0); } 40% { -webkit-transform: scale(1); transform: scale(1); } } @keyframes lt-sk-three-bounce { 0%, 80%, 100% { -webkit-transform: scale(0); transform: scale(0); } 40% { -webkit-transform: scale(1); transform: scale(1); } }

And it's not showing visually right like this one: https://dragomano.ru/sitemap.xml

It just shows a plain text file with all the sitemap fields (loc, changefreq, lastmod, etc..)

I've seen that Google is not indexing any of the URLs in this sitemap... It seems that is broken for some reason I can understand.

I'm using latest version 1.9.9 and I've regenerated manually the sitemap trough the task system.
Title: Re: Optimus
Post by: njtweb on August 01, 2018, 03:25:36 PM
Quote from: SirLouen on August 01, 2018, 02:21:37 PM
For some reason my sitemap shows in the bottom this:

/* loading */ .lt-sk-three-bounce { margin: 2px auto; width: 100%; text-align: center; } .lt-sk-three-bounce .lt-sk-child { width: 5px; height: 5px; background-color: #333; border-radius: 100%; display: inline-block; -webkit-animation: lt-sk-three-bounce 1.4s ease-in-out 0s infinite both; animation: lt-sk-three-bounce 1.4s ease-in-out 0s infinite both; } .lt-sk-three-bounce .lt-sk-bounce1 { -webkit-animation-delay: -0.32s; animation-delay: -0.32s; } .lt-sk-three-bounce .lt-sk-bounce2 { -webkit-animation-delay: -0.16s; animation-delay: -0.16s; } @-webkit-keyframes lt-sk-three-bounce { 0%, 80%, 100% { -webkit-transform: scale(0); transform: scale(0); } 40% { -webkit-transform: scale(1); transform: scale(1); } } @keyframes lt-sk-three-bounce { 0%, 80%, 100% { -webkit-transform: scale(0); transform: scale(0); } 40% { -webkit-transform: scale(1); transform: scale(1); } }

And it's not showing visually right like this one: https://dragomano.ru/sitemap.xml

It just shows a plain text file with all the sitemap fields (loc, changefreq, lastmod, etc..)

I've seen that Google is not indexing any of the URLs in this sitemap... It seems that is broken for some reason I can understand.

I'm using latest version 1.9.9 and I've regenerated manually the sitemap trough the task system.

Not sure if mine is working right either. While my sitemap does resolve without error in Google webmaster tools It shows 869 web pages submitted and 34 indexed. 
Title: Re: Optimus
Post by: SilverKnight on August 05, 2018, 10:02:00 PM
Getting this error:

   
Incorrect namespace
Your Sitemap or Sitemap index file doesn't properly declare the namespace.
Title: Re: Optimus
Post by: Bugo on August 05, 2018, 10:53:51 PM
I need URL to your sitemap file, SMF forum's version, Optimus version.
Title: Re: Optimus
Post by: SilverKnight on August 05, 2018, 11:48:52 PM
Quote from: Bugo on August 05, 2018, 10:53:51 PM
I need URL to your sitemap file, SMF forum's version, Optimus version.

Your Sitemap or Sitemap index file doesn't properly declare the namespace. Expected: http://www.sitemaps.org/schemas/sitemap/0.9 Found: https://www.sitemaps.org/schemas/sitemap/0.9

I'm forcing my forum to use https so that could be why?
Title: Re: Optimus
Post by: Bugo on August 06, 2018, 02:26:30 AM
Try new version, https://github.com/dragomano/Optimus/releases/tag/v1.9.9.1_optimus
Title: Re: Optimus
Post by: njtweb on August 06, 2018, 02:15:45 PM
Quote from: Bugo on August 06, 2018, 02:26:30 AM
Try new version, https://github.com/dragomano/Optimus/releases/tag/v1.9.9.1_optimus

Hi Bugo, does the new version address the all of the sitemap responses?
Title: Re: Optimus
Post by: Bugo on August 07, 2018, 01:19:09 AM
Yes, of course.
Title: Re: Optimus
Post by: njtweb on August 07, 2018, 07:08:50 AM
I see 3 zip packages, do I need to do all three or just the Optimus package?

Thank you
Title: Re: Optimus
Post by: Bugo on August 07, 2018, 01:33:03 PM
The first, optimus.zip
Title: Re: Optimus
Post by: njtweb on August 07, 2018, 02:48:01 PM
Quote from: Bugo on August 07, 2018, 01:33:03 PM
The first, optimus.zip

Thank you, hopefully my sitemap links get indexed now.
Title: Re: Optimus
Post by: pocttopus on August 08, 2018, 05:51:44 AM
What is today's change log?  ???
Title: Re: Optimus
Post by: SirLouen on August 08, 2018, 09:53:53 AM
@Bugo https://www.forotoc.com/sitemap.xml
Latest 1.9.9.1
+ SMF 2.0.15
Completely broken as you can see

By the way, how can I save the config file before updating? Everytime I remove the plugin and put the new one, the whole config system resets to default :P
Title: Re: Optimus
Post by: Bugo on August 08, 2018, 12:01:59 PM
??? I see normal sitemap file :)

Quote from: SirLouen on August 08, 2018, 09:53:53 AM
By the way, how can I save the config file before updating? Everytime I remove the plugin and put the new one, the whole config system resets to default :P
Just comment Line #11 in uninstall.php file
Title: Re: Optimus
Post by: SirLouen on August 08, 2018, 12:06:22 PM
Quote from: Bugo on August 08, 2018, 12:01:59 PM
??? I see normal sitemap file :)
The old one seem to have some formating, this one seems to be plain xml where is the difference?
Title: Re: Optimus
Post by: njtweb on August 08, 2018, 01:01:41 PM
Updated to 2.0 and sitemap is working but nothing's changed except for the number of URLs total that have been submitted, 945. Nothing has indexed for months. That last time anything indexed was April.

Google Webmaster tools shows no Crawl, Sitemap, Robots errors.
Title: Re: Optimus
Post by: Bugo on August 08, 2018, 01:15:29 PM
Quote from: SirLouen on August 08, 2018, 12:06:22 PM
The old one seem to have some formating, this one seems to be plain xml where is the difference?
The current version uses simple format. Sitemap is for spiders, not for people. Spiders do not need in any formatting.

Quote from: njtweb on August 08, 2018, 01:01:41 PM
sitemap is working
It's good. Optimus is not responsible for the work of search engines.
Title: Re: Optimus
Post by: brettuk on August 14, 2018, 09:46:56 AM
Hi,

Is there any way we're able to exclude certain pages/boards from showing in the sitemap file?

e.g I am blocking the "Introduce Yourself" section from Google, however, it's being listed in the sitemap file.

Thanks, great plugin btw.
Title: Re: Optimus
Post by: njtweb on August 14, 2018, 10:14:01 AM
Check the robots.txt config. Use that as a disallow template for exclusions.
Title: Re: Optimus
Post by: brettuk on August 14, 2018, 10:48:31 AM
Quote from: njtweb on August 14, 2018, 10:14:01 AM
Check the robots.txt config. Use that as a disallow template for exclusions.

I am and that's why I'd like to remove the entries from the sitemap file. I am sending two different signals to Google.

Sitemap: "hey google, crawl this please".

Robots: "Google, please ignore these URL's."

Google now thinks, well the sitemap file is telling me to crawl it but the robots is telling me not to crawl it?
Title: Re: Optimus
Post by: Bugo on August 14, 2018, 11:37:19 PM
Robots will scan everything that is available to them, it does not matter whether it is in sitemap or not. If you do not want to see some board in sitemap, close it for guests in properties.
Title: Re: Optimus
Post by: brettuk on August 15, 2018, 06:03:05 AM
Quote from: Bugo on August 14, 2018, 11:37:19 PM
Robots will scan everything that is available to them, it does not matter whether it is in sitemap or not. If you do not want to see some board in sitemap, close it for guests in properties.

Roger, that will work for me. Thanks.

Also the Sitemap was compatible with pretty URL's at first, but now it seems as if it's switched to index.php urls.

Any idea? My sitemap can be found here. (http://letschatlove.com/sitemap.xml)
Title: Re: Optimus
Post by: Bugo on August 15, 2018, 10:21:00 AM
Did you try to recreate the sitemap manually, via Scheduled Tasks area?
Title: Re: Optimus
Post by: brettuk on August 15, 2018, 01:11:29 PM
Quote from: Bugo on August 15, 2018, 10:21:00 AM
Did you try to recreate the sitemap manually, via Scheduled Tasks area?

Thanks for the help.

I have a scheduled task set to re-generate the sitemap every 1 day, yes. Do you think this is interfering?
Title: Re: Optimus
Post by: Bugo on August 15, 2018, 01:40:05 PM
No, it's normal. What settings of Pretty URLs do you have?
Title: Re: Optimus
Post by: Ninja ZX-10RR on September 01, 2018, 09:16:46 PM
Hello, I've been using this mod for a while on some forums (and thanks for it, it's great! :) )
I do have a bit of a problem though, I have "Display board description as the meta-tag description" checked, but what actually shows on google is the board name, followed by the forum name, not the board description ???
I looked at the code but couldn't really understand what's wrong, the conditional for the description seemed fine... Do you have any idea?
Thanks in advance.

P.S.: Actually... Maybe it should be the opposite here?
if (!empty($modSettings['optimus_board_description'])) {
$context['optimus_description'] = !empty($context['description']) ? $context['description'] : $context['name'];
$context['optimus_description'] = $smcFunc['htmlspecialchars']($context['optimus_description']);

Shouldn't it be
if (!empty($modSettings['optimus_board_description'])) {
$context['optimus_description'] = empty($context['description']) ? $context['description'] : $context['name'];
$context['optimus_description'] = $smcFunc['htmlspecialchars']($context['optimus_description']);

? Perhaps it's me being crazy at 3 a.m. ;D
Title: Re: Optimus
Post by: Bugo on September 02, 2018, 03:31:52 AM
Search system (Google, in your case) can or can't use meta description tag for its search results. Meta description is only recommendation, not strong rule.
Title: Re: Optimus
Post by: Ninja ZX-10RR on September 02, 2018, 10:02:44 AM
Thanks but that doesn't answer my question at all...
Title: Re: Optimus
Post by: Ninja ZX-10RR on September 05, 2018, 09:22:45 PM
So uhm... Some more updates about this, the code doesn't work because it's run before the board description variable is populated, so it can't find it. You're running your hooks at integrate_pre_include and integrate_pre_load, which is really (and too) early as the hooks documentation says.
I'm 100% sure about it because I tried to change that and that was the only way I could get visible effects. The problem is, I wouldn't really know what hooks to use for this mod, as it doesn't seem to like the other ones I tried either (too late with already established page or too early without variable, can't find the sweet spot).
Any input would be appreciated, you know how your mod works better than me and you surely have a better idea about how to make it work :)
Title: Re: Optimus
Post by: sundar_83 on September 11, 2018, 06:58:47 AM
hey installed this mod successfully in SMF 2.0.15 but cant generate sitemap if i click to generate sitemap under schedule task getting internal 500 error other task running successfully kindly help to fix this issue
Title: Re: Optimus
Post by: Ninja ZX-10RR on September 19, 2018, 11:05:47 PM
Quote from: Ninja ZX-10RR on September 05, 2018, 09:22:45 PM
So uhm... Some more updates about this, the code doesn't work because it's run before the board description variable is populated, so it can't find it. You're running your hooks at integrate_pre_include and integrate_pre_load, which is really (and too) early as the hooks documentation says.
I'm 100% sure about it because I tried to change that and that was the only way I could get visible effects. The problem is, I wouldn't really know what hooks to use for this mod, as it doesn't seem to like the other ones I tried either (too late with already established page or too early without variable, can't find the sweet spot).
Any input would be appreciated, you know how your mod works better than me and you surely have a better idea about how to make it work :)
*bump*
Quote from: sundar_83 on September 11, 2018, 06:58:47 AM
hey installed this mod successfully in SMF 2.0.15 but cant generate sitemap if i click to generate sitemap under schedule task getting internal 500 error other task running successfully kindly help to fix this issue
Potentially bad host.
Title: Re: Optimus
Post by: vinaykumar on September 24, 2018, 10:59:42 AM
Hi Optimus,
Thanks for the great mod which I installed just now.
Running SMF 2.0.15.
While the forum shows 431 topics, the entries in the xml sitemap are 119.
On checking I find that the old posts have not been included in the sitemap while the new ones are all there.
Could you guide me how to fix this so that all posts are present in the sitemap.
Thanks
Title: Re: Optimus
Post by: GigaWatt on September 29, 2018, 08:17:52 PM
Does anybody have Optimus v1.9.9? It seems to be missing from the Package files, thus the package manager can't uninstall it :S.
Title: Re: Optimus
Post by: smartmouse on October 12, 2018, 09:59:13 AM
Hi, would be useful to add an option like "Add to the sitemap only those topics that have the last post date with year greater that" ?
Maybe it could be a good idea to make sitemap exclude old topics to be indexed...
Title: Re: Optimus
Post by: GigaWatt on October 12, 2018, 11:47:19 AM
Quote from: GigaWatt on September 29, 2018, 08:17:52 PM
Does anybody have Optimus v1.9.9? It seems to be missing from the Package files, thus the package manager can't uninstall it :S.

Just in case anybody was wondering, I found version 1.9.9 ;).
Title: Re: Optimus
Post by: brettuk on November 06, 2018, 06:37:05 AM
Hi Bugo,

Great mod - I have been using this for a while now.

I have a question regarding the sitemap re-generation within the scheduled tasks section in SMF.

My categories are being generated in the sitemap file with a change freq of yearly, which seems to be affecting Google's ability to crawl my content. Are we able to change this? If so, how? I'd like my categories to be daily change frequency.
Title: Re: Optimus
Post by: Kindred on November 06, 2018, 07:42:01 AM
Your categories change daily?   Really?
Title: Re: Optimus
Post by: Bugo on November 06, 2018, 11:56:17 PM
Quote from: brettuk on November 06, 2018, 06:37:05 AM
My categories are being generated in the sitemap file with a change freq of yearly, which seems to be affecting Google's ability to crawl my content. Are we able to change this? If so, how? I'd like my categories to be daily change frequency.
Just leave a post in any of your boards and re-generate the sitemap. The frequency depends on the last post date for each board.
Title: Re: Optimus
Post by: Oldiesmann on November 07, 2018, 02:18:59 AM
The sitemap file includes this...

<?xml-stylesheet type="text/xsl" href=".../Themes/default/css/sitemap.xsl"?>

However, no such file is included with the mod, which leads to users getting a blank screen when they click on the Sitemap XML link.

Is the mod supposed to include this?
Title: Re: Optimus
Post by: Bugo on November 07, 2018, 04:15:45 AM
The last version does not included xsl file, just install updated version of the OP, remove old sitemap files, re-generate new.
Title: Re: Optimus
Post by: brettuk on November 07, 2018, 01:21:36 PM
Quote from: Kindred on November 06, 2018, 07:42:01 AM
Your categories change daily?   Really?

Of course, new posts every day in the categories, Google needs to re-crawl the categories to find the new posts.
Title: Re: Optimus
Post by: Arantor on November 07, 2018, 01:25:55 PM
Only two boards, board 4 and board 50 have a frequency of yearly. They're literally the only mentions of 'yearly' in the sitemap.

Though the URLs look broken in the sitemap.xml file, https://letschatlove.com/index.php?board;=4.0 which won't work properly at all. I suspect pretty URLs doesn't play nice.
Title: Re: Optimus
Post by: Black Tiger on November 07, 2018, 09:30:19 PM
Is it possible to fix this?

Optimus (for 2.0.15) is throwing this error:
8: Array to string conversion
Apply Filter: Only show the errors from this file
File: /home/user/domains/forumsite.org/public_html/forum/Sources/Class-Optimus.php
Line: 435


It might be caused because I'm using php 7.2 and I know SMF is only supporting up to 7.1 but I'm on 7.2 with the mod from Chen Zen to fix things.
But maybe this is easy to fix?

Or maybe you can give me a code to replace line 435 with?
Title: Re: Optimus
Post by: Bugo on November 07, 2018, 11:49:13 PM
Are you using right values on Metatags page?

For example, if your metatag for Google looks like this:
<meta name="google-site-verification" content="12345" />
then you need to paste value "12345" into the right text box. That's it.
Title: Re: Optimus
Post by: Black Tiger on November 08, 2018, 08:26:03 AM
No I did not yet. I did not know what to put there.
I installed the new versions and the content part was gone.

Where can I find those values? Also the values for Yandex and Bing?

It looks like this in my screen now (attachment).
I don't know where the last 3 lines (aangepaste meta tag = custom meta tag) are coming from.
Title: Re: Optimus
Post by: Black Tiger on November 08, 2018, 09:45:07 AM
Euh LoL, never mind, I wasn't awake enough. Found out where I had too look and it's fixed now.
Thank you!
Title: Re: Optimus
Post by: Snrj on December 10, 2018, 01:46:00 PM
turkish translate
Title: Re: Optimus
Post by: ^SoporteGSM^ on January 26, 2019, 11:04:41 PM
How do I get access to the sitemap? '

It does not show it at the bottom of the page
Title: Re: Optimus
Post by: Bugo on January 27, 2019, 12:56:44 AM
You need to create it at first (see Sitemap Tab Settings and Scheduled Tasks).
Title: Re: Optimus
Post by: muratbora on February 05, 2019, 08:50:57 AM
When I install this optimus MOD , my site is not opening, what could be problem?
Title: Re: Optimus
Post by: Kindred on February 05, 2019, 11:40:36 AM
help us help you.....

SMF version?
Were there any errors on the installation?
your site URL?

please explain what you mean by "my site is not opening"?  What is happening? Is there an error?
Title: Re: Optimus
Post by: @rjen on February 09, 2019, 03:51:42 AM
In 2.1 the extra CSS file from Optimus is effectively breaking some standard screens.


@media screen and (max-width:720px) {
th,td:first-child{display:none}
td input{display:block;width:100%}
input[name^=custom_tag_]{width:100%}
div[class=min]{float:none;width:100%}
}


This code :    th,td:first-child{display:none}

Is making the notifications settings in the admin area SMF unusable by hiding the first column in tables...
Title: Re: Optimus
Post by: Bugo on February 09, 2019, 05:30:43 AM
This CSS file is loading only on Optimus settings area.
Title: Re: Optimus
Post by: @rjen on February 09, 2019, 05:35:52 AM
No, it is not
Title: Re: Optimus
Post by: Bugo on February 09, 2019, 07:12:46 AM
Ok, just remove this rule from CSS.
Title: Re: Optimus
Post by: @rjen on February 09, 2019, 07:16:17 AM
Already done that. Thought you would like to know for future releases...
Title: Re: Optimus
Post by: Ninja ZX-10RR on February 11, 2019, 12:52:49 PM
Quote from: Ninja ZX-10RR on September 05, 2018, 09:22:45 PM
So uhm... Some more updates about this, the code doesn't work because it's run before the board description variable is populated, so it can't find it. You're running your hooks at integrate_pre_include and integrate_pre_load, which is really (and too) early as the hooks documentation says.
I'm 100% sure about it because I tried to change that and that was the only way I could get visible effects. The problem is, I wouldn't really know what hooks to use for this mod, as it doesn't seem to like the other ones I tried either (too late with already established page or too early without variable, can't find the sweet spot).
Any input would be appreciated, you know how your mod works better than me and you surely have a better idea about how to make it work :)
Gonna bump again, perhaps someone has a solution. To me having a wrong meta description is just silly, that's the first thing users read below the website name, it's not even about SEO, it's common sense...
Title: Re: Optimus
Post by: Bugo on February 12, 2019, 12:22:18 AM
Why it works for others? Any specific settings? Hosting? Php?
Title: Re: Optimus
Post by: Massl on February 12, 2019, 04:16:34 AM
Hi and thanks for this mod!
Can I activate the sitemap even in large forums and there is a limit for topics?

Thanks
Title: Re: Optimus
Post by: Bugo on February 12, 2019, 06:02:43 AM
Why not. Just try it. The mod will create a few sitemaps if your forum has over 50000 urls.
Title: Re: Optimus
Post by: ^SoporteGSM^ on February 25, 2019, 11:22:36 AM
Hi friends, I have a question, where I can see the sitemap that the mod generates.

What is the URL to send to search engines ???
Title: Re: Optimus
Post by: Bob Perry of Web Presence Consulting on February 25, 2019, 11:29:54 AM
Quote from: ^SoporteGSM^ on February 25, 2019, 11:22:36 AM
Hi friends, I have a question, where I can see the sitemap that the mod generates.

What is the URL to send to search engines ???

Let me ask you this, did you scan through the previous 26 pages of this thread with a key word or two about the problem, the search function is your friend...
Title: Re: Optimus
Post by: Biology Forums on February 25, 2019, 12:02:02 PM
Apart from the sitemap creations, is this mod still relevant? The reason I'm curious is because it was made in 2011
Title: Re: Optimus
Post by: Arantor on February 25, 2019, 12:05:34 PM
It is updated frequently so I would assume it is probably still current.
Title: Re: Optimus
Post by: Bob Perry of Web Presence Consulting on February 25, 2019, 12:07:31 PM
Quote from: Study Force on February 25, 2019, 12:02:02 PM
Apart from the sitemap creations, is this mod still relevant? The reason I'm curious is because it was made in 2011

It still functions properly if installed correctly, but the last time i used it there were glitch's in the install process that were easy to fix but none the less, newbies get lost...
Title: Re: Optimus
Post by: ^SoporteGSM^ on February 26, 2019, 07:38:33 PM
Hello!!

I have a question the urls of the optimus sitemap do not match the urls of my forum, can something be done ??

example: https://forum.50gsm.com/index.php/board,6.0.html

https://forum.50gsm.com/sitemap.xml

my urls end in .html, but the ones in the sitemap do not
Title: Re: Optimus
Post by: Kindred on February 27, 2019, 08:41:45 AM
well, you should get rid of that silly .html setting anyway....

https://wiki.simplemachines.org/smf/SMF2.0:Features_and_Options
turn off Search engine friendly URLs

that is an old setting that really should have been removed years ago since it just confuses things and is not needed
Title: Re: Optimus
Post by: ^SoporteGSM^ on February 27, 2019, 09:16:08 PM
Quote from: Kindred on February 27, 2019, 08:41:45 AM
well, you should get rid of that silly .html setting anyway....

https://wiki.simplemachines.org/smf/SMF2.0:Features_and_Options
turn off Search engine friendly URLs

that is an old setting that really should have been removed years ago since it just confuses things and is not needed

I appreciate your comment. I thought that this option helped in the friendly urls.

Now deactivate it, remove that option in the new update jejeje
Title: Re: Optimus
Post by: muratbora on March 09, 2019, 08:13:15 AM
Guys, I have optimus mod, but I can not find where it is generating sitemap file? Can someone help me how to find sitemap URL path which is generated automatically by Optimus mod?
Title: Re: Optimus
Post by: Bugo on March 09, 2019, 11:51:12 AM
If you enabled generation of this file in mod's settings and file has generated you can view it on this url: http://your_forum/sitemap.xml
Title: Re: Optimus
Post by: njtweb on March 26, 2019, 02:52:40 PM
Quote from: Bugo on March 09, 2019, 11:51:12 AM
If you enabled generation of this file in mod's settings and file has generated you can view it on this url: http://your_forum/sitemap.xml

I've had this installed since April 2018. The sitemap at the root of my site says it was last updated August 6th 2018. Wembaster tools hasn't updated my sitemap from 945 URL's since that time. No matter how many times I re-submit.

How do I know Optimus is still working?

Edit. I think it doesn't work on my site anymore. I clicked to show sitemap links on footer and nothing shows up. Optimus v1.9.9

Edit again..... I uninstalled Optimus and downloaded 2.0 and installed. No changes. Is the Optimus sitemap at the root or somewhere else on the server?
Title: Re: Optimus
Post by: 4everBlue on March 27, 2019, 02:10:30 PM
Great mod! Where are the controls in the Admin Panel?
Title: Re: Optimus
Post by: Shambles on March 27, 2019, 02:25:35 PM
^ do the screenshots in the mod page not show where these are?
Title: Re: Optimus
Post by: Massl on April 04, 2019, 03:59:22 AM
Thanks for this great mod, I have found a problem...
Editor robots.txt
Sitemap: https://site.name/sitemap-index.xml
but sitemap address is
https://site.name/sitemap.xml
Title: Re: Optimus
Post by: Bugo on April 04, 2019, 05:33:11 AM
Does sitemap-index.xml not exist in your forum root?
Title: Re: Optimus
Post by: Massl on April 04, 2019, 05:50:40 AM
No, I don't know where it comes from...
Title: Re: Optimus
Post by: Massl on April 04, 2019, 08:47:30 AM
Sorry Bugo, it was my fault  ::)
Thank you again
Title: Re: Optimus
Post by: Bugo on April 05, 2019, 03:06:20 AM
That is not the mod error. This is its logic — when a forum is small, Optimus creates sitemap.xml with forum links, when a forum is large, Optimus creates sitemap.xml (sitemap_index.xml in old versions of the mod) with sitemapindex, depending on https://www.sitemaps.org rules.
There is a simple formula: Small forum < 50000 posts < Large forum.

Of course, I mean the latest version of the Optimus. The logic of different versions may differ.

You can change the count of posts to define a small/large forum. Open Sources/Optimus/Sitemap.php (or Class-OptimusSitemap.php, for SMF 2.0), find
private static $count = 50000;
and set your own value.
Title: Re: Optimus
Post by: engrz on April 27, 2019, 11:32:34 PM
Hello

I have tried to upgrade Optimus on my smf 2.0.15, first it said the package is already available (it was there but older version) so i renamed the file and upload it.

when i click install mod, my website goes offline with http 500 error. now i dont know ho to modify/revert or delete this mod from cpanel to make online my website.
Title: Re: Optimus
Post by: Bugo on April 28, 2019, 02:02:11 AM
At first, you should uninstall the previous version (uninstall the mod, remove the mod's file), then install a new one.
If you see 500 error and cannot enter into the admin area, try to remove all the mod's files from /Sources dir, then remove "$sourcedir/Optimus/Class-Optimus.php" line from the value of variable integrate_pre_include (smf_settings table in database), and "Optimus::hooks" line from the value of variable integrate_pre_load.
Title: Re: Optimus
Post by: engrz on April 28, 2019, 03:33:32 AM
I have resolved the 500 http error by removing /sources/optimus directory but now in my error log im getting


Undefined index: optimus_common_titleApply Filter: Only show the errors from this file File: /home/engrz/public_html/engrz.org/Sources/Admin-Optimus.php
Line: 28


and when trying to enter into "search engine optimization" from admin menu i see

An Error Has Occurred!
Unable to load the 'common' template.
Title: Re: Optimus
Post by: @rjen on April 28, 2019, 03:39:56 AM
You should apply ALL provided changes, not just one...
Title: Re: Optimus
Post by: engrz on April 28, 2019, 03:48:50 AM
No option to uninstall, do i need to delete?

see attachment
Title: Re: Optimus
Post by: engrz on April 28, 2019, 04:22:57 AM
done as you said and installed a new one

successfully intalled, but now error in error log is:

Array to string conversionApply Filter: Only show the errors from this file File: Sources/Optimus/Class-Optimus.php
Line: 434
Title: Re: Optimus
Post by: Bugo on April 28, 2019, 05:04:50 AM
Open phpMyAdmin and try to run SQL query:
DELETE FROM smf_settings WHERE variable LIKE "optimus_%"
Then go to OP setting area and enter new settings.
Title: Re: Optimus
Post by: engrz on April 28, 2019, 06:23:12 AM
i have done, it looks okay but i lost all credentials was setup in optimus... Thank you for the support
Title: Re: Optimus
Post by: engrz on April 29, 2019, 12:31:08 AM
New posts/topics are not in sitemap.xml it is not adding, what to do?
Title: Re: Optimus
Post by: Bugo on April 29, 2019, 01:32:52 AM
Take a look at the mod's settings area.
Title: Re: Optimus
Post by: engrz on April 29, 2019, 04:35:17 AM
Quote from: Bugo on April 29, 2019, 01:32:52 AM
Take a look at the mod's settings area.

according to my knowledge, i have configured it well.

is there any specific option to look?
Title: Re: Optimus
Post by: Bugo on April 29, 2019, 05:14:36 AM
There is a special area, the Optimus Sitemap. Also, there are Scheduled Tasks, where you can manage time for periodically creating sitemap.xml
Title: Re: Optimus
Post by: engrz on April 29, 2019, 06:17:13 AM
i set it 0 as many topics have no reply.

but still no update and it is not showing sitemap link in footer as im enabling the option.
Title: Re: Optimus
Post by: engrz on April 30, 2019, 03:27:38 AM
checked every option again and again but new links are not added into sitemap. kindly help.
Title: Re: Optimus
Post by: Bugo on April 30, 2019, 04:35:05 AM
How often is your sitemap updated? Look in the Scheduled Tasks area. New topics should be added to the sitemap only after the corresponding task is completed (in Scheduled Tasks). If you really need, you can run any task manually.

P. S. Why clutter search results with topics without replies?
Title: Re: Optimus
Post by: njtweb on May 19, 2019, 09:37:36 AM
Hi @Bugo

Is there any chance you can add Tinyportal article support to Sources/Class-Optimus.php

As it stands when Tiny Portal articles are posted to Facebook nothing is parsed. The Facebook posting defaults to the general site name, description and image. FB completely ignores anything associated with the article.

This is my "Rink Directory" article. Its called Rink Directory, it has a ton of context and an image. All of it is ignored, same deal with all other articles.
https://www.youthhockeyinfo.com/index.php?page=rink-directory
Title: Re: Optimus
Post by: Bugo on June 12, 2019, 01:14:14 AM
Quote from: njtweb on May 19, 2019, 09:37:36 AM
Is there any chance you can add Tinyportal article support to Sources/Class-Optimus.php
Unfortunately, only very few make donations to support my free work. So I have little free time.
Title: Re: Optimus
Post by: Portugal on June 13, 2019, 11:21:34 AM
Hi Bugo,

Ive instaled the new pakage and i ask you if can help me.
My forum its about law and some staff for professionals in this category. Almost of my members starts topic´s with a saludations like "Hi everyone" hi coleagues" etc, but this kind of prases ar to bad for the SEO. Worst when they make a saludatiosn and due like i was done on this post. It means, if they wright the saludation, and give a enter to go to another line, only stay as SEO like this:
Quotename="description" content="Good afternon,
the rest of the text is not included, becouse it goes a line below. Its possibile to remove the sentence? "Good afternoon", or in case to do not be possibile to remove some sentences from the begin of the text, must be possibile to be included the second line.

I apreciatte your attencion to this.

Thanks in advance.

Regards
Portugal
Title: Re: Optimus
Post by: Bugo 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
$row['body'] = parse_bbc($row['body'], false);
and replace with
$row['body'] = parse_bbc($row['body'], false);
$row['body'] = str_replace('Good afternon,<br />', '', $row['body']);

or with
$row['body'] = parse_bbc($row['body'], false);
$row['body'] = str_replace('Good afternon,<br /><br />', '', $row['body']);
Title: Re: Optimus
Post by: njtweb 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.
Title: Re: Optimus
Post by: Portugal 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
Title: Re: Optimus
Post by: njtweb on June 15, 2019, 09:04:27 AM
Working on both FB and Twitter now!
Title: Re: Optimus
Post by: Portugal 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
Title: Re: Optimus
Post by: Portugal 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


Quote from: Bugo 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
$row['body'] = parse_bbc($row['body'], false);
and replace with
$row['body'] = parse_bbc($row['body'], false);
$row['body'] = str_replace('Good afternon,<br />', '', $row['body']);

or with
$row['body'] = parse_bbc($row['body'], false);
$row['body'] = str_replace('Good afternon,<br /><br />', '', $row['body']);

Title: Re: Optimus
Post by: Bugo on June 18, 2019, 11:01:08 AM
Any case you should not change Sitemap.php ("50000" etc.)

https://www.sitemaps.org/protocol.html
QuoteYou 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.
Title: Re: Optimus
Post by: sub0 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


Kindly help !
Title: Re: Optimus
Post by: Bugo 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.
Title: Re: Optimus
Post by: sub0 on June 25, 2019, 05:57:23 AM
Quote from: Bugo 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.

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:
https://i.imgur.com/yv5LNas.jpg
Title: Re: Optimus
Post by: Bugo 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.
Title: Re: Optimus
Post by: njtweb 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.
Title: Re: Optimus
Post by: lurkalot on June 28, 2019, 03:03:59 PM
Quote from: njtweb 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.

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.
Title: Re: Optimus
Post by: njtweb 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.
Title: Re: Optimus
Post by: Massl on June 28, 2019, 04:03:06 PM
Quote from: njtweb on June 28, 2019, 07:49:38 AM
Think about donating towards this project. It helps immensely with google and bing placement.

You're right, Bugo did a great job!
Title: Re: Optimus
Post by: @rjen on June 28, 2019, 05:46:09 PM
Quote from: lurkalot on June 28, 2019, 03:03:59 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...
Title: Re: Optimus
Post by: Bugo on June 28, 2019, 11:52:52 PM
I have made special versions to testing these issues, try it.
Title: Re: Optimus
Post by: @rjen 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.
Title: Re: Optimus
Post by: lurkalot 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.
Title: Re: Optimus
Post by: @rjen on June 29, 2019, 05:47:51 AM
2.2.1 seems to work fine on html articles in 2.0.15
Title: Re: Optimus
Post by: lurkalot on June 29, 2019, 06:39:42 AM
Quote from: @rjen on June 29, 2019, 05:47:51 AM
2.2.1 seems to work fine on html articles in 2.0.15

Thanks, I'm also testing with 2.0.15  I have some adsense code at the top of one of mine, and displays part of the code on facebook and twitter when I share it.  Apart from that it works really well.  For now I have just moved the code further down, and it works.
Title: Re: Optimus
Post by: Bugo on June 29, 2019, 07:24:30 AM
If article type is "php", it is better to use "intro" block (in article settings) for a short description. However, this block you can use for any article types.
Title: Re: Optimus
Post by: @rjen on June 29, 2019, 07:37:07 AM
Quote from: Bugo on June 29, 2019, 07:24:30 AM
If article type is "php", it is better to use "intro" block (in article settings) for a short description. However, this block you can use for any article types.

It could be , but the intro text is only open for input when you choose to use intro text. Doing that will cause the Frontpage to only show the intro text. A separate descriptive text would be more appropriate. Maybe we can add that in the next TP version...
Title: Re: Optimus
Post by: @rjen on July 02, 2019, 07:05:10 AM
Quote from: Bugo on June 28, 2019, 11:52:52 PM
I have made special versions to testing these issues, try it.

Testing 2.4.5 on SMF 2.1 RC2 with TinyPortal 1.6.3

When I have a BBC article without introtext each page load gives one error:

8: Undefined variable: intro
/home/deb77453/domains/fjr-club.nl/public_html/test2/Sources/Optimus/addons/TinyPortal.php (Regel 139)

The line in question..


138: // Если есть intro, используем в качестве описания его, иначе — выдержку из текста страницы
==>139: $context['meta_description'] = $intro ?: $body;
140:
141: $context['optimus_og_type']['article']['published_time'] = date('Y-m-d\TH:i:s', $row['date']);


the $intro value needs to be checked for a value first...

Then If I set to use Intro for the article but leave the introtext empty the whole body text is showing in the page...
See attachment...
Title: Re: Optimus
Post by: @rjen on July 02, 2019, 08:08:28 AM
Fixed the code.

below the corrected section of the file TinyPortal.php


// Ищем изображение в тексте страницы
$first_post_image = preg_match('/<img(.*)src(.*)=(.*)"(.*)"/U', $body, $value);
$settings['og_image'] = $first_post_image ? array_pop($value) : null;

if ($row['useintro'] && !empty($row['intro'])) {
$intro = $row['type'] == 'bbc' ? parse_bbc($row['intro'], false) : ($row['type'] == 'php' ? '<?php' . $row['intro'] : $row['intro']);
$intro = Subs::getTeaser($intro);
$intro = explode('
&nbsp;', $intro)[0];
$intro = shorten_subject($intro, 130);
} else {
$body = Subs::getTeaser($body);
$body = str_replace($txt['
quote'], '', $body);
$body = explode('
&nbsp;', $body)[0];
$body = shorten_subject($body, 130);
}

// Если есть intro, используем в качестве описания его, иначе — выдержку из текста страницы
$context['
meta_description'] = (isset($intro) ? $intro : $body);
Title: Re: Optimus
Post by: @rjen on July 02, 2019, 09:23:20 AM
Just an observation: in version 2.4.5 you dropped the "Link to your default Open Graph image" setting.

I found this very useful in the 2.0 branch... any particular reason for not having that setting in 2.1?
Title: Re: Optimus
Post by: Bugo on July 02, 2019, 11:26:19 AM
SMF 2.1 has such a setting by default, in Current Theme settings.
Title: Re: Optimus
Post by: @rjen on July 02, 2019, 12:14:46 PM
Quote from: Bugo on July 02, 2019, 11:26:19 AM
SMF 2.1 has such a setting by default, in Current Theme settings.

Oops, must have missed that, thanks.
Title: Re: Optimus
Post by: Kailash Aghera on July 03, 2019, 02:57:05 AM
I have enabled sitemap in SMF 2.1 RC2  but it is not generating sitemap.xml and no other sitemap file. I am using 2.4.4 [06/27/19] version.

- Kailash
Title: Re: Optimus
Post by: Bugo on July 03, 2019, 05:19:18 AM
Try this version => https://www.simplemachines.org/community/index.php?topic=422210.msg4023106#msg4023106
Title: Re: Optimus
Post by: Kailash Aghera on July 03, 2019, 09:16:13 AM
Quote from: Bugo on July 03, 2019, 05:19:18 AM
Try this version => https://www.simplemachines.org/community/index.php?topic=422210.msg4023106#msg4023106
It worked on one test installation but it is not working on another installation. Both are having same SMF version and other mods.

- Kailash
Title: Re: Optimus
Post by: Kailash Aghera on July 03, 2019, 11:10:13 AM
Hi,

I just noticed a bug in latest version. It is actually creating sitemap.xml file but if you have install SMF in subfolder, it is creating xml file in website's root directory instead of subfolder. For example, if forum is in example.com/forum, it is creating sitemap in example.com/sitemap.xml instead of example.com/forum/sitemap.xml.

Can this be fixed?

Thanks,
Kailash
Title: Re: Optimus
Post by: Bugo on July 03, 2019, 12:38:32 PM
Ok, I'll fix it in the next release.
Title: Re: Optimus
Post by: Kailash Aghera on July 03, 2019, 01:14:12 PM
Thank you!

Also, as a feature request, it is possible to split the sitemap to multiple xml files as follow:

- sitemap.xml (main sitemap file) contains xml of individual forum board sitemap.
Title: Re: Optimus
Post by: Kindred on July 03, 2019, 01:26:06 PM
in theory, that would require a lot of parsing logic...
Title: Re: Optimus
Post by: njtweb on July 03, 2019, 05:21:50 PM
Quote from: Kailash Aghera on July 03, 2019, 01:14:12 PM
Thank you!

Also, as a feature request, it is possible to split the sitemap to multiple xml files as follow:

- sitemap.xml (main sitemap file) contains xml of individual forum board sitemap.

What do you believe the benefit would be? Google and Bing webmaster tools only support one sitemap. submission per site.
Title: Re: Optimus
Post by: Kailash Aghera on July 04, 2019, 06:07:20 AM
Quote from: njtweb on July 03, 2019, 05:21:50 PM
What do you believe the benefit would be? Google and Bing webmaster tools only support one sitemap. submission per site.
That is not true. You can submit multiple sitemaps for one website and in fact if you have large website having large number of of URLs, you will have to break your sitemap to multiple sitemaps. To understand in better way, you can refer the following:

https://support.google.com/webmasters/answer/75712?hl=en

- Kailash
Title: Re: Optimus
Post by: Massl on July 11, 2019, 03:02:07 AM
Hi, I updated to version 2.4.4 and now I often get this error.

Table 'smf.smf_tp_articles' doesn't exist
https://sitename/index.php?topic=95.0&amp;amp;page=35
/home/user/public_html/Sources/Optimus/addons/TinyPortal.php (Riga 99)


I never installed TinyPortal!

Topic 95 is not present in the sitemap and does not exist in the forum.

SMF 2.1 RC2 with default theme and language.

Many thanks

Title: Re: Optimus
Post by: muratbora on August 04, 2019, 12:20:09 PM
I have installed Optimus mod, but it is not generating sitemap file,
How OPTIMUS is creating sitemap?
Title: Re: Optimus
Post by: digger on August 04, 2019, 09:38:05 PM
Quote from: muratbora on August 04, 2019, 12:20:09 PM
I have installed Optimus mod, but it is not generating sitemap file,
How OPTIMUS is creating sitemap?
There is a task in forum Scheduled Tasks.
Title: Re: Optimus
Post by: muratbora 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...
Title: Re: Optimus
Post by: Bugo on August 06, 2019, 07:01:26 AM
I've marked the path on your screenshot.
Title: Re: Optimus
Post by: muratbora 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...
Title: Re: Optimus
Post by: Massl 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
Title: Re: Optimus
Post by: Bugo on August 11, 2019, 05:11:18 AM
PortaMx.php, replace this line:
add_integration_function('integrate_optimus_sitemap', __NAMESPACE__ . '\PortaMx::makeSefUrl', true, __FILE__);

add_integration_function('integrate_optimus_sitemap', __NAMESPACE__ . '\PortaMx::makeSefUrls', true, __FILE__);
Title: Re: Optimus
Post by: Massl on August 11, 2019, 06:52:39 AM
Thank you  :)
Title: Re: Optimus
Post by: Portugal on August 13, 2019, 12:43:41 PM
Thanks for the new update Bugo, now i think my sugestion is implemented!
Excelent work!

Title: Re: Optimus
Post by: Diego Andrés on September 26, 2019, 02:01:21 PM
Can I update safely from 1.8.7 by just replacing the files? (SMF 2.0)
Title: Re: Optimus
Post by: Bugo 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.
Title: Re: Optimus
Post by: @rjen 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:
if (!empty($modSettings['optimus_tw_cards'])) {

Where 2.4.6 uses this code:
// 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..


if (!empty($modSettings['optimus_tw_cards']) && isset($context['canonical_url'])) {



Title: Re: Optimus
Post by: Bugo on September 29, 2019, 12:46:27 PM
Thanks, I've updated the Github repository.
Title: Re: Optimus
Post by: @rjen on September 29, 2019, 01:02:18 PM
Thanks, that does the trick!
Title: Re: Optimus
Post by: sirfpsycho 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?
Title: Re: Optimus
Post by: Bugo on October 02, 2019, 02:26:21 AM
Approved topics only.
Title: Re: Optimus
Post by: alitech 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.

Title: Re: Optimus
Post by: Bugo on October 12, 2019, 03:04:45 AM
Quote from: alitech on October 11, 2019, 10:48:02 AM
Do you think it has something to do with the theme I may have installed?
I think so.
Title: Re: Optimus
Post by: muratbora 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?
Title: Re: Optimus
Post by: njtweb 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.
h++ps://www.youthhockeyinfo.com/index.php?topic=1406

Thank you
Title: Re: Optimus
Post by: engrz on February 04, 2020, 02:08:48 AM
I have just tried to upgrade Optimus and got HTTP 500 error

Now my site gone offline www.engrz.org
Title: Re: Optimus
Post by: Bugo on February 04, 2020, 03:11:47 AM
Remove /Sources/Optimus dir and uninstall the mod.
Did you install the optimus_2.3_smf20.zip package?
Title: Re: Optimus
Post by: engrz on February 04, 2020, 03:39:37 AM
Quote from: Bugo on February 04, 2020, 03:11:47 AM
Did you install the optimus_2.3_smf20.zip package?

yes i have installed the latest update 2.3
Title: Re: Optimus
Post by: Bugo on February 04, 2020, 04:39:01 AM
Any notes in your Error log?
List of installed mods?
I can't guess from coffee grounds what is happening :)
Title: Re: Optimus
Post by: Slonik :) on February 13, 2020, 04:33:16 PM
Can I set the name of topic or board to the <h1>...</h1> tag?
Maybe in the future versions? :)
Title: Re: Optimus
Post by: Kindred on February 13, 2020, 05:29:49 PM
That would require edits to the core and every theme template....
Title: Re: Optimus
Post by: Slonik :) on February 14, 2020, 06:03:03 AM
Got it. Thank you :)
Title: Re: Optimus
Post by: Bugo on February 14, 2020, 08:30:01 AM
I will realize this feature in the next version of Optimus for SMF 2.1
Title: Re: Optimus
Post by: Slonik :) on February 14, 2020, 09:45:36 AM
Quote from: Bugo on February 14, 2020, 08:30:01 AM
I will realize this feature in the next version of Optimus for SMF 2.1
Ураааа!
Ждем :)
Title: Re: Optimus
Post by: Xpresskonami on February 23, 2020, 04:19:20 AM
I install the latest version of Optimus brave 2.3 and my forum start showing blank. the only page that is working on my forum is www.url/admin

After i uninstall the mod, the forum start working back. Please i need you to assist me in fixing this. i have deleted the old version of the optimus brave 1.9 am using before installing this new one of 2.3. Right now my forum has not Seo.
Title: Re: Optimus
Post by: Xpresskonami on February 29, 2020, 03:00:01 AM
Quote from: Bugo on February 14, 2020, 08:30:01 AM
I will realize this feature in the next version of Optimus for SMF 2.1

Kindly fix this as well

(https://i.imgur.com/2zH9ipV.png)

i try to change the 1 to 0 but my sitemap is not increasing. the only sitemap i see from my sitemap.xml are the sitemaps with more than 1 replies. out of 14000 topics i have only 138 topic with more than one replies in it submitted to sitemap. other 13000 topics are not submitted to sitemap.xml. what is the correct values to input or what is the correction to this ?

Title: Re: Optimus
Post by: Xpresskonami on March 04, 2020, 09:23:41 AM
Quote from: Xpresskonami on February 29, 2020, 03:00:01 AM
Quote from: Bugo on February 14, 2020, 08:30:01 AM
I will realize this feature in the next version of Optimus for SMF 2.1

Kindly fix this as well

(https://i.imgur.com/2zH9ipV.png)

i try to change the 1 to 0 but my sitemap is not increasing. the only sitemap i see from my sitemap.xml are the sitemaps with more than 1 replies. out of 14000 topics i have only 138 topic with more than one replies in it submitted to sitemap. other 13000 topics are not submitted to sitemap.xml. what is the correct values to input or what is the correction to this ?


Please remove the replies topic of more than 1 in the optimus brave mod. The new mod you released is not improving the SEO of topic with no replies. The topic with no replies re not submitting to sitemap. Please help use remove it.

Thanks



Title: Re: Optimus
Post by: Xpresskonami on March 06, 2020, 04:22:07 AM
I regret updating the Optimus brave to lastest updated version. The latest version is not working properly and I think the creator is very busy to respond to the error.

Did anyone else have the old version please? Should share the the old version of the Optimus brave

The new version is not pleased enough!

Thanks
Title: Re: Optimus
Post by: smartmouse on March 06, 2020, 05:03:12 AM
Quote from: Xpresskonami on March 06, 2020, 04:22:07 AM
I regret updating the Optimus brave to lastest updated version. The latest version is not working properly and I think the creator is very busy to respond to the error.

Did anyone else have the old version please? Should share the the old version of the Optimus brave

The new version is not pleased enough!

Thanks
I have version 1.9.9. Is ok for you?
Title: Re: Optimus
Post by: Xpresskonami on March 06, 2020, 05:26:58 AM
Quote from: smartmouse on March 06, 2020, 05:03:12 AM
Quote from: Xpresskonami on March 06, 2020, 04:22:07 AM
I regret updating the Optimus brave to lastest updated version. The latest version is not working properly and I think the creator is very busy to respond to the error.

Did anyone else have the old version please? Should share the the old version of the Optimus brave

The new version is not pleased enough!

Thanks
I have version 1.9.9. Is ok for you?
Yes that was the version I have been looking for. Please drop it for me let me download

Title: Re: Optimus
Post by: Xpresskonami on March 06, 2020, 01:30:24 PM
Quote from: smartmouse on March 06, 2020, 10:07:57 AM
Here is Optimus version 1.9.9:

Thank you
Title: Re: Optimus
Post by: Xpresskonami on March 08, 2020, 05:33:06 AM
Quote from: Bugo on February 14, 2020, 08:30:01 AM
I will realize this feature in the next version of Optimus for SMF 2.1

Pretty url mod is not working with my sitemap. I install both "Optimus brave" version 1.9 and version 2.3.2 but the urls in sitemap.xml are not rewriting.

I decide to permanent the new version 2.3.2 of optimus brave , i input the "Number of replies topic to show in sitemap to 1" i have just few topics with 139 replies topic, and all the 139 topics work with pretty url.

so i go back and set up the settings of "Number of replies topic to show in sitemap to 0" It brings all my topic with the total of about 14000 upwards but all this topics and boards submitted to sitemap did not work with pretty urls.

Could this because i have too much of topics submitted to the sitemap or what??

if i input 1 in the box, i have few submitted topic working with pretty url

if i input 0 in the box, i have all topic submitted but not working with pretty urls

Click to see what am saying (https://bit.ly/2Tv7NZA)

And in this link, if you copy any url and paste to new tab on your browser. it is not working. they are not opening the correct pages
Title: Re: Optimus
Post by: Bobby on March 13, 2020, 02:23:03 PM
Quote from: Xpresskonami on March 08, 2020, 05:33:06 AM
Quote from: Bugo on February 14, 2020, 08:30:01 AM
I will realize this feature in the next version of Optimus for SMF 2.1

Pretty url mod is not working with my sitemap. I install both "Optimus brave" version 1.9 and version 2.3.2 but the urls in sitemap.xml are not rewriting.

I decide to permanent the new version 2.3.2 of optimus brave , i input the "Number of replies topic to show in sitemap to 1" i have just few topics with 139 replies topic, and all the 139 topics work with pretty url.

so i go back and set up the settings of "Number of replies topic to show in sitemap to 0" It brings all my topic with the total of about 14000 upwards but all this topics and boards submitted to sitemap did not work with pretty urls.

Could this because i have too much of topics submitted to the sitemap or what??

if i input 1 in the box, i have few submitted topic working with pretty url

if i input 0 in the box, i have all topic submitted but not working with pretty urls

Click to see what am saying (https://bit.ly/2Tv7NZA)

And in this link, if you copy any url and paste to new tab on your browser. it is not working. they are not opening the correct pages

Sorry for my interruption, the file "sitemap.xml" on your forum is created by Scheduled Tasks. Therefore, you should disable PrettyURL mod first, then run Scheduled Task for Sitemap XML Generation. After that, you can re-enable PrettyURL mod! Try it maybe help!
Title: Re: Optimus
Post by: Xpresskonami on March 13, 2020, 08:53:58 PM
Quote from: Bobby on March 13, 2020, 02:23:03 PM
Quote from: Xpresskonami on March 08, 2020, 05:33:06 AM
Quote from: Bugo on February 14, 2020, 08:30:01 AM
I will realize this feature in the next version of Optimus for SMF 2.1

Pretty url mod is not working with my sitemap. I install both "Optimus brave" version 1.9 and version 2.3.2 but the urls in sitemap.xml are not rewriting.

I decide to permanent the new version 2.3.2 of optimus brave , i input the "Number of replies topic to show in sitemap to 1" i have just few topics with 139 replies topic, and all the 139 topics work with pretty url.

so i go back and set up the settings of "Number of replies topic to show in sitemap to 0" It brings all my topic with the total of about 14000 upwards but all this topics and boards submitted to sitemap did not work with pretty urls.

Could this because i have too much of topics submitted to the sitemap or what??

if i input 1 in the box, i have few submitted topic working with pretty url

if i input 0 in the box, i have all topic submitted but not working with pretty urls

Click to see what am saying (https://bit.ly/2Tv7NZA)

And in this link, if you copy any url and paste to new tab on your browser. it is not working. they are not opening the correct pages

Sorry for my interruption, the file "sitemap.xml" on your forum is created by Scheduled Tasks. Therefore, you should disable PrettyURL mod first, then run Scheduled Task for Sitemap XML Generation. After that, you can re-enable PrettyURL mod! Try it maybe help!

Thanks for your concern. i did this step and what i notice is that the sitemap.xml works perfectly with no error when i disable pretty url. but immediately i enable the pretty url mod, the sitemap.xml is not working with pretty urls. I actually don't know if the problem is from optimus or pretty url. because the pretty url mod is working well on the forum both (profile, boards, topic) in the forum is working perfectly. but pretty url is not working on sitemap.xml only.

when i activate pretty url it rewrite my sitemap url to www.url.com/index.php?board;=232.0. in this link am confused with this symbol ; that was include after board instead of rewriting the sitemap urls to www.url.com/i-am-a-member-on-this-forum

If i disable the pretty url the sitemap url is www.url.com/index.php?board=232.0 from this url, no ; is include after the board and it works with no error if pretty url is deactivated


Title: Re: Optimus
Post by: Bobby on March 13, 2020, 09:20:25 PM
Quote from: Xpresskonami on March 13, 2020, 08:53:58 PM
Quote from: Bobby on March 13, 2020, 02:23:03 PM
Quote from: Xpresskonami on March 08, 2020, 05:33:06 AM
Quote from: Bugo on February 14, 2020, 08:30:01 AM
I will realize this feature in the next version of Optimus for SMF 2.1
Pretty url mod is not working with my sitemap. I install both "Optimus brave" version 1.9 and version 2.3.2 but the urls in sitemap.xml are not rewriting.

I decide to permanent the new version 2.3.2 of optimus brave , i input the "Number of replies topic to show in sitemap to 1" i have just few topics with 139 replies topic, and all the 139 topics work with pretty url.

so i go back and set up the settings of "Number of replies topic to show in sitemap to 0" It brings all my topic with the total of about 14000 upwards but all this topics and boards submitted to sitemap did not work with pretty urls.

Could this because i have too much of topics submitted to the sitemap or what??

if i input 1 in the box, i have few submitted topic working with pretty url

if i input 0 in the box, i have all topic submitted but not working with pretty urls

Click to see what am saying (https://bit.ly/2Tv7NZA)

And in this link, if you copy any url and paste to new tab on your browser. it is not working. they are not opening the correct pages

Sorry for my interruption, the file "sitemap.xml" on your forum is created by Scheduled Tasks. Therefore, you should disable PrettyURL mod first, then run Scheduled Task for Sitemap XML Generation. After that, you can re-enable PrettyURL mod! Try it maybe help!

Thanks for your concern. i did this step and what i notice is that the sitemap.xml works perfectly with no error when i disable pretty url. but immediately i enable the pretty url mod, the sitemap.xml is not working with pretty urls. I actually don't know if the problem is from optimus or pretty url. because the pretty url mod is working well on the forum both (profile, boards, topic) in the forum is working perfectly. but pretty url is not working on sitemap.xml only.

when i activate pretty url it rewrite my sitemap url to www.url.com/index.php?board;=232.0. in this link am confused with this symbol ; that was include after board instead of rewriting the sitemap urls to www.url.com/i-am-a-member-on-this-forum

If i disable the pretty url the sitemap url is www.url.com/index.php?board=232.0 from this url, no ; is include after the board and it works with no error if pretty url is deactivated

Can you please give me an URL has error with ";" on board? I'm seeing your forum working well with prettyurl and sitemap.xml at spyloadedng.com
Title: Re: Optimus
Post by: Xpresskonami on March 13, 2020, 10:01:11 PM
Quote from: Bobby on March 13, 2020, 09:20:25 PM
Quote from: Xpresskonami on March 13, 2020, 08:53:58 PM
Quote from: Bobby on March 13, 2020, 02:23:03 PM
Quote from: Xpresskonami on March 08, 2020, 05:33:06 AM
Quote from: Bugo on February 14, 2020, 08:30:01 AM
I will realize this feature in the next version of Optimus for SMF 2.1
Pretty url mod is not working with my sitemap. I install both "Optimus brave" version 1.9 and version 2.3.2 but the urls in sitemap.xml are not rewriting.

I decide to permanent the new version 2.3.2 of optimus brave , i input the "Number of replies topic to show in sitemap to 1" i have just few topics with 139 replies topic, and all the 139 topics work with pretty url.

so i go back and set up the settings of "Number of replies topic to show in sitemap to 0" It brings all my topic with the total of about 14000 upwards but all this topics and boards submitted to sitemap did not work with pretty urls.

Could this because i have too much of topics submitted to the sitemap or what??

if i input 1 in the box, i have few submitted topic working with pretty url

if i input 0 in the box, i have all topic submitted but not working with pretty urls

Click to see what am saying (https://bit.ly/2Tv7NZA)

And in this link, if you copy any url and paste to new tab on your browser. it is not working. they are not opening the correct pages

Sorry for my interruption, the file "sitemap.xml" on your forum is created by Scheduled Tasks. Therefore, you should disable PrettyURL mod first, then run Scheduled Task for Sitemap XML Generation. After that, you can re-enable PrettyURL mod! Try it maybe help!

Thanks for your concern. i did this step and what i notice is that the sitemap.xml works perfectly with no error when i disable pretty url. but immediately i enable the pretty url mod, the sitemap.xml is not working with pretty urls. I actually don't know if the problem is from optimus or pretty url. because the pretty url mod is working well on the forum both (profile, boards, topic) in the forum is working perfectly. but pretty url is not working on sitemap.xml only.

when i activate pretty url it rewrite my sitemap url to www.url.com/index.php?board;=232.0. in this link am confused with this symbol ; that was include after board instead of rewriting the sitemap urls to www.url.com/i-am-a-member-on-this-forum

If i disable the pretty url the sitemap url is www.url.com/index.php?board=232.0 from this url, no ; is include after the board and it works with no error if pretty url is deactivated

Can you please give me an URL has error with ";" on board? I'm seeing your forum working well with prettyurl and sitemap.xml at spyloadedng.com

No URL has error with ";" on my topic and boards. The symbol ";" it only occurs on sitemap.xml urls when pretty url is activated.
Title: Re: Optimus
Post by: Bobby on March 13, 2020, 10:20:51 PM
I'm seeing now:
1. You sitemap at url/sitemap.xml is working well
2. You forum is working well, too (while enable prettyurl)
So I don't see any errors with your boards url  ;)
Did you get error when generate new sitemap xml or something else? I'm confused!  :-\
Title: Re: Optimus
Post by: Xpresskonami on March 13, 2020, 10:27:12 PM
Quote from: Bobby on March 13, 2020, 10:20:51 PM
I'm seeing now:
1. You sitemap at url/sitemap.xml is working well
2. You forum is working well, too (while enable prettyurl)
So I don't see any errors with your boards url  ;)
Did you get error when generate new sitemap xml or something else? I'm confused!  :-\


1. My sitemap at url/sitemap.xml is working well ✔
2. My forum is working well, too (while enable prettyurl) ✔
But while pretty url is working, the url submitted in sitemap is not rewriting. it suppose to be this www.url.com/i-am-a-member-on-this-forum/

See the urls link in the sitemap.xml


Title: Re: Optimus
Post by: Bobby on March 13, 2020, 10:30:27 PM
It's so strange! I'm not using prettyurl but I'll test it with Optimus mod to check your problem. Maybe tonight when I work with my computer! :-)
Title: Re: Optimus
Post by: Kindred on March 17, 2020, 09:17:54 AM
AFAIK, this sitemap does not pair with prettyurls.

the scripts find/address the contents of the forum separately and do not talk to each other.
Title: Re: Optimus
Post by: Bobby on March 17, 2020, 11:59:57 PM
Quote from: Kindred on March 17, 2020, 09:17:54 AM
AFAIK, this sitemap does not pair with prettyurls.

the scripts find/address the contents of the forum separately and do not talk to each other.

I had pm to Xpresskonami and he fixed the problem (download all new files and replace to old). Actually this sitemap pairs with prettyurls!
Title: Re: Optimus
Post by: Xpresskonami on March 20, 2020, 10:06:59 PM
From this new optimus brave mod, The scheduled Task was set to be 1 week, Is this means the New Urls topics post should get submitted to sitemap after 1 week or what? I am confused about this. If set to (Hourly, Daily) Will that affect the sitemap ?

For example if a forum is with 10 topics today, and i added another 5 new topics in the next day, making 15 topics. Will the 15 topics get submitted to sitemap after 1 week if the scheduled task was set to be 1 week. or it will get submitted daily and got index on SEO weekly/Daily?? Need better explanation about how the scheduled task works please!
Title: Re: Optimus
Post by: Bobby on March 21, 2020, 04:28:21 AM
Quote from: Xpresskonami on March 20, 2020, 10:06:59 PM
From this new optimus brave mod, The scheduled Task was set to be 1 week, Is this means the New Urls topics post should get submitted to sitemap after 1 week or what? I am confused about this. If set to (Hourly, Daily) Will that affect the sitemap ?

For example if a forum is with 10 topics today, and i added another 5 new topics in the next day, making 15 topics. Will the 15 topics get submitted to sitemap after 1 week if the scheduled task was set to be 1 week. or it will get submitted daily and got index on SEO weekly/Daily?? Need better explanation about how the scheduled task works please!
Go to Admin CP —> Scheduled Task —> Click "Optimus Brave" to change your scheduled time
Title: Re: Optimus
Post by: Aaron10 on March 25, 2020, 05:23:09 PM
2.1 RC2
Pretty URLs 2.3
ehPortal 1.24

"Token verification failed. Please go back and try again."

When trying to save any settings
Title: Re: Optimus
Post by: marcosbr on March 25, 2020, 07:20:04 PM
happens to me too, only in Base settings
Title: Re: Optimus
Post by: Aaron10 on March 26, 2020, 05:07:12 PM
Is there anywhere in mySQL that I can edit the <title> layout thing? That's mainly what I need.
Title: Re: Optimus
Post by: abdurhman on April 25, 2020, 06:09:30 PM
Upon installation, this message appears
Fatal error: Class 'Bugo\Optimus\Subs' not found in /home/anime50/public_html/forums/Sources/Optimus/Integration.php on line 60
Title: Re: Optimus
Post by: Kindred on April 25, 2020, 08:24:46 PM
Seems that it did not actually, fully install on your server
Title: Re: Optimus
Post by: abdurhman on April 25, 2020, 09:48:32 PM
Quote from: Kindred on April 25, 2020, 08:24:46 PM
Seems that it did not actually, fully install on your server
What's the solution  ??
Title: Re: Optimus
Post by: Bobby on April 25, 2020, 11:09:05 PM
Quote from: Aaron10 on March 25, 2020, 05:23:09 PM
2.1 RC2
Pretty URLs 2.3
ehPortal 1.24

"Token verification failed. Please go back and try again."

When trying to save any settings
With SMF 2.1, you need the latest Optimus version from Github

Quote from: abdurhman on April 25, 2020, 06:09:30 PM
Upon installation, this message appears
Fatal error: Class 'Bugo\Optimus\Subs' not found in /home/anime50/public_html/forums/Sources/Optimus/Integration.php on line 60
Seem you're missing the file Sources/Optimus/Subs.php
But what's your SMF, Optimus version?
Title: Re: Optimus
Post by: abdurhman on April 26, 2020, 04:22:45 AM
Quote from: Bobby on April 25, 2020, 11:09:05 PM
Quote from: Aaron10 on March 25, 2020, 05:23:09 PM
2.1 RC2
Pretty URLs 2.3
ehPortal 1.24

"Token verification failed. Please go back and try again."

When trying to save any settings
With SMF 2.1, you need the latest Optimus version from Github

Quote from: abdurhman on April 25, 2020, 06:09:30 PM
Upon installation, this message appears
Fatal error: Class 'Bugo\Optimus\Subs' not found in /home/anime50/public_html/forums/Sources/Optimus/Integration.php on line 60
Seem you're missing the file Sources/Optimus/Subs.php
But what's your SMF, Optimus version?

SMF 2.1 RC2
Optimus (v 2.3.3 [03/10/20])
Title: Re: Optimus
Post by: Bobby on April 26, 2020, 04:40:43 AM
For SMF2.1, you need to download Optimus version from github: https://github.com/dragomano/Optimus
Title: Re: Optimus
Post by: abdurhman on April 26, 2020, 05:20:08 AM
Quote from: Bobby on April 26, 2020, 04:40:43 AM
For SMF2.1, you need to download Optimus version from github: https://github.com/dragomano/Optimus
The same problem, but in another file
The control panel has crashed completely
Parse error: syntax error, unexpected '?' in /home/anime50/public_html/forums/Sources/Optimus/Settings.php on line 384
Title: Re: Optimus
Post by: Bobby on April 26, 2020, 05:51:55 AM
The sign ?? is null coalesce operator just available in php7. What's your PHP version? If possible you should change to php 7.2 or 7.3
Title: Re: Optimus
Post by: abdurhman on April 26, 2020, 06:01:28 AM
Quote from: Bobby on April 26, 2020, 05:51:55 AM
The sign ?? is null coalesce operator just available in php7. What's your PHP version? If possible you should change to php 7.2 or 7.3

php5.6
You deleted this line
$robots_path = ($_SERVER['DOCUMENT_ROOT'] ?? $modSettings['optimus_root_path'] ?? '') . "/robots.txt";
Now the control panel and plugin are working
But why do these links not work after activating the (Remove "index.php" from the forum urls) feature?
https://www.anime-network.org/forums//board,1.0.html
Title: Re: Optimus
Post by: Bobby on April 26, 2020, 06:12:25 AM
You shouldn't enable that option, removing index.php from url doesn't make sense for people and SEO, too
Title: Re: Optimus
Post by: Arantor on April 26, 2020, 08:36:24 AM
Quote from: abdurhman on April 26, 2020, 06:01:28 AM
Quote from: Bobby on April 26, 2020, 05:51:55 AM
The sign ?? is null coalesce operator just available in php7. What's your PHP version? If possible you should change to php 7.2 or 7.3

php5.6
You deleted this line
$robots_path = ($_SERVER['DOCUMENT_ROOT'] ?? $modSettings['optimus_root_path'] ?? '') . "/robots.txt";
Now the control panel and plugin are working
But why do these links not work after activating the (Remove "index.php" from the forum urls) feature?
https://www.anime-network.org/forums//board,1.0.html

Because for those style of links the index.php MUST be there. It WILL NOT work without it.
Title: Re: Optimus
Post by: jbridges87 on April 29, 2020, 04:35:56 PM
Hey guys, I have read through the support page of the Optimus mod, trying to figure out exactly how to use it, but I don't quite understand.

I have set my forum description, and if I do a Google search, it shows for crown-sports.com, but not for www.crown-sports.com?
Also, if I do a google search for 'crown-sports.com NFL forum', it shows;

Mar 31, 2020 - Sports Leagues. No New Posts, NFL. The official home of football. Child Boards: Draft Talk.

or a search for 'crown-sports.com NFL Tom Brady', and my site doesn't even show up in the results. How can that be when I have my specific site name in the search?

I don't like the google search results, and would like them to reflect how most other websites do on the web, like this;

(https://crown-sports.com/Images/Support%20Screenshots/website%20descriptions.png)

Why aren't keywords showing up when I specifically type in 'crown-sports.com nhl wayne gretzky'. That's very specific to my site, and I recently wrote an article with those keywords, but don't get any results?

What exactly do I need to do to have my site to pickup keywords from my posts and display paragraph descriptions such as above?
Title: Re: Optimus
Post by: Arantor on April 29, 2020, 04:59:00 PM
As pointed out in your other topic, first you have to wait for Google to update its index before any updated version will show.

Secondly, anything this mod does is considered a *hint* to Google. It is perfectly free to ignore any and all hints you give it, especially meta keywords is likely to be ignored, but meta description can be ignored for anything if Google thinks it has found a better match.
Title: Re: Optimus
Post by: jbridges87 on April 29, 2020, 06:00:46 PM
How long should one be expected to wait? I have posts dating back several weeks that I can't find when I do a google search.

I did just check the box off in Optimus to create a sitemap.xml file today. Perhaps that's what has been missing?
If I do a google search for a specific sentence posted within one of my topics, I was hoping to get a result showing my page, with a paragraph description of the search, as most other sites have.

If it's simply a matter of time, then that's fine, and I can wait. However, I want to be sure there isn't a specific setting and/or file that isn't checked off and/or working properly.


Title: Re: Optimus
Post by: Arantor on April 29, 2020, 06:07:51 PM
There are a total of 10 posts visible to guests on your forum. Don't expect Google to come visit regularly with so little content.

Google is perfectly capable of indexing a site without a sitemap; the sitemap is a suggestion of what content to look at more regularly.
Title: Re: Optimus
Post by: jbridges87 on April 29, 2020, 07:05:55 PM
I actually have a total of 16 posts, and those are mostly all mine, as I haven't been able to get any active members as of yet.
Point taken though. My site is new, and I understand it will take some time.

Again, I just wanted to be sure I wasn't missing anything with my site settings in terms of Optimus/SEO.
Title: Re: Optimus
Post by: Bugo on April 30, 2020, 11:53:57 AM
Don't think about SEO, think about content. And it will come ;)
Title: Re: Optimus
Post by: marcosbr on May 01, 2020, 07:04:27 PM
  Solved my problem   https://github.com/dragomano/Optimus
Title: Re: Optimus
Post by: marcosbr on May 04, 2020, 04:07:43 PM
sitemap does not enter Tasks scheduled. Not updated! (Optimus-master)
Title: Re: Optimus
Post by: marcosbr on May 08, 2020, 07:04:33 PM
 My mistake. Update yes. Even without scheduling
Title: Re: Optimus
Post by: humbleworld on May 17, 2020, 10:24:10 PM
I installed both Optimus and SMFPacks SEO Pro. Will it be in conflict?
Title: Re: Optimus
Post by: gorbi on May 18, 2020, 01:40:17 AM
Quote from: humbleworld on May 17, 2020, 10:24:10 PM
I installed both Optimus and SMFPacks SEO Pro. Will it be in conflict?
Why two? They are similar.
Title: Re: Optimus
Post by: humbleworld on May 18, 2020, 01:56:48 AM
Quote from: gorbi on May 18, 2020, 01:40:17 AM
Quote from: humbleworld on May 17, 2020, 10:24:10 PM
I installed both Optimus and SMFPacks SEO Pro. Will it be in conflict?
Why two? They are similar.

So I have to uninstall the other one?
Title: Re: Optimus
Post by: Kindred on May 20, 2020, 12:04:10 PM
Hey Bugo!


you seem to have removed the 2.0.x version of this mod! :(   
Title: Re: Optimus
Post by: lurkalot on May 20, 2020, 04:32:17 PM
Quote from: Kindred on May 20, 2020, 12:04:10 PM
Hey Bugo!

you seem to have removed the 2.0.x version of this mod! :(

Must admit, I was surprised to see it gone too.  ;)

Optimus v2.4 for SMF 2.0.x is on GitHub though.  Last updated 13 days ago.
Title: Re: Optimus
Post by: Bugo on May 20, 2020, 10:26:24 PM
Yes, little by little, I will transfer all my mods to SMF 2.1
Title: Re: Optimus
Post by: Kindred on May 21, 2020, 09:13:46 AM
I understand adding 2.1 -- but are you actually removing 2.0.x? :(

Because 2.0.x is going to continue to be a valid/supported branch until the NEXT release of SMF
Title: Re: Optimus
Post by: Bugo on May 27, 2020, 08:00:45 AM
In fact, the 2.0 version can still be downloaded from Github.
I am tired of messages where people write that the mod does not work or the sitemap is not updated, so I want to migrate the sitemap functionality from the version of the mod for SMF 2.1.
The next version for 2.0 will use caching instead of an update via the Task Manager.
Title: Re: Optimus
Post by: gorbi on May 27, 2020, 02:57:46 PM
Quote from: Bugo on May 27, 2020, 08:00:45 AM
The next version for 2.0 will use caching instead of an update via the Task Manager.
we wait!
Title: Re: Optimus
Post by: gorbi on May 28, 2020, 12:35:43 AM
500 error after update
Title: Re: Optimus
Post by: Bugo on May 28, 2020, 01:27:19 AM
Update PHP version to 7.2 or update the mod.
Title: Re: Optimus
Post by: jbridges87 on May 30, 2020, 10:31:08 PM
The first initial post states this mod has the capability of;

- Managing of title and description for the main forum page.
- Managing of title, description, and keywords metatags for topic pages.
- Description meta-tag for boards' and topics' pages.
- Keywords meta-tag for topics. Users can fill them when creating/changing topics.

Forgive my ignorance, but how exactly would I go about updating meta-tag descriptions for each individual topic of my forum?

Just for clarity, I'm look to modify the description content as shown in attached screenshot.
Title: Re: Optimus
Post by: Bugo on May 31, 2020, 01:08:38 AM
Updated the description of the OP, for your clarity :)
You can use the Topic Descriptions (https://custom.simplemachines.org/mods/index.php?mod=3012) mod with SMF 2.0.
Title: Re: Optimus
Post by: jbridges87 on June 01, 2020, 03:22:35 PM
I tried the Topics Description mod, and was immediately receiving syntax errors when simply trying to create a new topic post, so I uninstalled it.
I will look for another way to achieve my goal.

Thanks
Title: Re: Optimus
Post by: Seyit replikacep.com on June 02, 2020, 06:48:34 PM
gave an error What's the solution

Incorrect string value: '\xF0\x9F\x87\xB9\xF0\x9F...' for column `renklc_ppp`.`smf_settings`.`value` at row 1
Dosya: /home//public_html/Sources/Subs.php
Satır: 537


$smcFunc['db_insert']('replace',
'{db_prefix}settings',
array('variable' => 'string-255', 'value' => 'string-65534'),
$replaceArray,
array('variable')
);
Title: Re: Optimus
Post by: Arantor on June 02, 2020, 06:52:04 PM
Don't put emoji in the settings.

(Or the code should be changed so that $smcFunc['htmlspecialchars'] is explicitly used to cope with fixing emoji for the user.)
Title: Re: Optimus
Post by: Seyit replikacep.com on June 02, 2020, 07:01:16 PM
I think you're talking about the smile set  exactly what should i do

Title: Re: Optimus
Post by: Arantor on June 02, 2020, 07:05:04 PM
No, no, I'm not. Smileys are one thing, I'm talking about emoji like you use on your phone. Don't use them in this mod.
Title: Re: Optimus
Post by: Seyit replikacep.com on June 02, 2020, 07:11:23 PM
Quote from: Arantor on June 02, 2020, 07:05:04 PM
No, no, I'm not. Smileys are one thing, I'm talking about emoji like you use on your phone. Don't use them in this mod.

🇹🇷  It was related to this: I am very happy laugh :D
Title: Re: Optimus
Post by: Bugo on June 02, 2020, 11:59:17 PM
What exactly field did you use to paste emoji?
Title: Re: Optimus
Post by: Seyit replikacep.com on June 03, 2020, 03:01:52 PM
Quote from: Bugo on June 02, 2020, 11:59:17 PM
What exactly field did you use to paste emoji?
I used the selection in the picture
Title: Re: Optimus
Post by: Xpresskonami on June 05, 2020, 11:07:28 AM
Quote from: Bugo on May 28, 2020, 01:27:19 AM
Update PHP version to 7.2 or update the mod.

The new optimus 2.5.1 version sitemap url  is good but not working working with prettyurl while the topics work with prettyurl. What i mean is, the sitemap link shown at the footer is https://www.url.com/?action=sitemap;xml NOT www.url.com/sitemap.xml

While all topics shown in the sitemap works with pretty urls.

And when i access the sitemap page i saw this

https://www.url.com/index.php?action=sitemap;xml;start=0
https://www.url.com/index.php?action=sitemap;xml;start=1
https://www.url.com/index.php?action=sitemap;xml;start=2
https://www.url.com/index.php?action=sitemap;xml;start=3

is there any way of making the urls to work with pretty url mod, like

https://www.url.com/sitemap.xml;start=0
https://www.url.com/sitemap.xml;start=1
https://www.url.com/sitemap.xml;start=2
https://www.url.com/sitemap.xml;start=3

Title: Re: Optimus
Post by: gorbi on June 06, 2020, 01:46:18 AM
Quote from: Xpresskonami on June 05, 2020, 11:07:28 AM
The new optimus 2.5.1 version sitemap url  is good
Can you give a link to the map of your site?
Title: Re: Optimus
Post by: gorbi on June 06, 2020, 02:24:47 AM
@Bugo
https://g-news.com.ua/forum_smf/index.php?action=sitemap;xml;start=1
Invalid argument supplied for foreach() Файл: /home/gnewscom/public_html/forum_smf/Themes/default/Optimus.template.php
Строка: 384

smf 2.0.15
Title: Re: Optimus
Post by: Bugo on June 06, 2020, 03:06:49 AM
Try to clear the cache.
Title: Re: Optimus
Post by: gorbi on June 06, 2020, 03:21:09 AM
Quote from: Bugo on June 06, 2020, 03:06:49 AM
Try to clear the cache.
@Bugo did not help
Title: Re: Optimus
Post by: Bugo on June 06, 2020, 04:00:29 AM
Create test.php in the forum root, then paste there this text:

require(dirname(__FILE__) . '/SSI.php');
require($sourcedir . '/Optimus/Sitemap.php');
$links = \Bugo\Optimus\Sitemap::getLinks();
var_dump($links);

Does it work?
Title: Re: Optimus
Post by: gorbi on June 06, 2020, 04:20:11 AM
@Bugo do not work

https://g-news.com.ua/forum_smf/index.php?action=sitemap;xml;start=2
Invalid argument supplied for foreach()
Файл: /home/gnewscom/public_html/forum_smf/Themes/default/Optimus.template.php
Строка: 384

https://g-news.com.ua/forum_smf/index.php?action=sitemap;xml;start=2
array_merge(): Argument #2 is not an array
Файл: /home/gnewscom/public_html/forum_smf/Sources/Optimus/Sitemap.php
Строка: 115
Title: Re: Optimus
Post by: Xpresskonami on June 06, 2020, 04:27:46 AM
Quote from: Bugo on June 06, 2020, 04:00:29 AM
Create test.php in the forum root, then paste there this text:

require(dirname(__FILE__) . '/SSI.php');
require($sourcedir . '/Optimus/Sitemap.php');
$links = \Bugo\Optimus\Sitemap::getLinks();
var_dump($links);

Does it work?

What function of code is this working for?? Will it convert the www.url.come/?action=sitemap;xml to www.url.com/sitemap.xml
Title: Re: Optimus
Post by: Xpresskonami on June 06, 2020, 04:35:18 AM
Quote from: Xpresskonami on June 05, 2020, 11:07:28 AM
Quote from: Bugo on May 28, 2020, 01:27:19 AM
Update PHP version to 7.2 or update the mod.

The new optimus 2.5.1 version sitemap url  is good but not working working with prettyurl while the topics work with prettyurl. What i mean is, the sitemap link shown at the footer is https://www.url.com/?action=sitemap;xml NOT www.url.com/sitemap.xml

While all topics shown in the sitemap works with pretty urls.

And when i access the sitemap page i saw this

https://www.url.com/index.php?action=sitemap;xml;start=0
https://www.url.com/index.php?action=sitemap;xml;start=1
https://www.url.com/index.php?action=sitemap;xml;start=2
https://www.url.com/index.php?action=sitemap;xml;start=3

is there any way of making the urls to work with pretty url mod, like

https://www.url.com/sitemap.xml;start=0
https://www.url.com/sitemap.xml;start=1
https://www.url.com/sitemap.xml;start=2
https://www.url.com/sitemap.xml;start=3


The new version of Optimus has affect the action page of my website. When I install back my previous version of the Optimus.

When I visit www.url.com/?action=sitemap;xml I saw this error


This page contains the following errors:
error on line 345 at column 2: Extra content at the end of the document
Below is a rendering of the page up to the first error.


Click here to see
(https://bit.ly/3f1ZDA5)
Title: Re: Optimus
Post by: Xpresskonami on June 06, 2020, 05:55:00 AM
Quote from: gorbi on June 06, 2020, 04:20:11 AM
@Bugo do not work

https://g-news.com.ua/forum_smf/index.php?action=sitemap;xml;start=2
Invalid argument supplied for foreach()
Файл: /home/gnewscom/public_html/forum_smf/Themes/default/Optimus.template.php
Строка: 384

https://g-news.com.ua/forum_smf/index.php?action=sitemap;xml;start=2
array_merge(): Argument #2 is not an array
Файл: /home/gnewscom/public_html/forum_smf/Sources/Optimus/Sitemap.php
Строка: 115

NO ERROR FROM MY END POINT
YOU CAN TRY TO RE-CHECK
Title: Re: Optimus
Post by: Bugo on June 06, 2020, 10:34:11 AM
Update the mod (v2.6, for SMF 2.0)
Title: Re: Optimus
Post by: gorbi on June 06, 2020, 02:55:55 PM
Great work!!!
Title: Re: Optimus
Post by: shadav on June 11, 2020, 03:22:24 PM
checked my forum logs today and there's about 200 pages
tons of

8: Undefined index: sub_buttons
File: /Themes/default/Optimus.template.php (body_above sub template - eval?)

on several lines
Line: 423
Line: 424
Line: 426

funny part is there aren't that many lines to the optimus.template.php, there's only 414 lines

any suggestions?
Title: Re: Optimus
Post by: Arantor on June 11, 2020, 03:23:11 PM
Turn off template eval in the admin area, see what the real error is.
Title: Re: Optimus
Post by: shadav on June 11, 2020, 03:30:43 PM
hm ok...
now it says
8: Undefined index: sub_buttons
File: /Themes/SN/index.template.php

here's lines 420 - 434
foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<li id="button_', $act, '" class="', $button['sub_buttons'] ? 'dropdown ' : '', '', $button['active_button'] ? 'active ' : '', '">
<a ', $button['sub_buttons'] ? 'class="dropdown-toggle" ' : '', 'href="', $button['sub_buttons'] ? '#' : $button['href'] . '', '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '', $button['sub_buttons'] ? ' data-toggle="dropdown"' : '', '>
', $button['title'], '
', $button['sub_buttons'] ? '<span class="caret"></span>' : '' ,'
</a>';
if (!empty($button['sub_buttons']))
{
echo '
<ul class="dropdown-menu" role="menu">
<li>
<a href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>', $button['title'], '</a>
</li>';


switched through other themes, and doesn't seem to produce the error so seems to be the greeny theme....so probably nothing to do with the mod....i'll go ask over in the theme support...
Title: Re: Optimus
Post by: Arantor on June 11, 2020, 03:33:33 PM
After the opening { of that section (so, what would be between the { and the echo) add this:


if (empty($button['sub_buttons']))
$button['sub_buttons'] = [];


Yes it's a theme bug but this will get you an empty error log :)
Title: Re: Optimus
Post by: shadav on June 11, 2020, 03:38:40 PM
thank you that seems to have stopped the flooding of my error log
Title: Re: Optimus
Post by: muratbora on June 15, 2020, 12:33:34 AM
 2: Use of undefined constant OP_NAME - assumed 'OP_NAME' (this will throw an Error in a future version of PHP) https://www.otelisilanlari.net/forum/index.php?action=admin;area=optimus;sa=sitemap
/home/mrtsoftw/domains/otelisilanlari.net/public_html/forum/Sources/Optimus/Settings.php (Line 156)

After installing optimus_2.9.1_smf21.zip , above given records appear on dashboard.
Title: Re: Optimus
Post by: Diego Andrés on June 15, 2020, 11:30:06 AM
Before or after updating (can't really tell it was 1-3 minute spawn) to version 2.6.2 I ran into a peculiar "bug" where my file directory got spammed with hundreds of new xml files for the sitemap in the root of my forum.
Is not happening anymore so I guess it was when I uninstalled previous version, but thought it was worth bringing that up.
Title: Re: Optimus
Post by: humbleworld on June 17, 2020, 05:35:15 AM
I installed Optimus after I installed PrettyURLs. The site got messed up. Are these two MODS not compatible with each other?
Title: Re: Optimus
Post by: Bugo on June 20, 2020, 12:47:27 AM
These are compatible, don't worry. But unfortunately, PrettyURLs increase the time of Sitemap's generation.

As you can see, on this screenshot:
1) A sitemap has created without PrettyURLs
2) A sitemap has created with PrettyURLs (the option "Use caching instead of database table for PrettyUrls" is disabled)
3) A sitemap has created with PrettyURLs (the option "Use caching instead of database table for PrettyUrls" is enabled)
The screenshot made on a test site with 2 mln posts.
Title: Re: Optimus
Post by: humbleworld on June 27, 2020, 12:16:14 AM
First, I installed PrettyURL mod and the forum site was fine. Next I installed Optimus mod, then the site became inaccessible already. I am using Plesk control panel.
Title: Re: Optimus
Post by: Bugo on June 27, 2020, 03:34:05 AM
The information provided will not help me in any way. It seems it is not your fate to use both mods together.
Title: Re: Optimus
Post by: humbleworld on June 27, 2020, 03:56:38 AM
Quote from: Bugo on June 27, 2020, 03:34:05 AM
The information provided will not help me in any way. It seems it is not your fate to use both mods together.
I agree with you, Bugo. Considering the Optimus has a built-in PrettyURL option, it may not be a better choice to install both mods.
Title: Re: Optimus
Post by: Bugo on June 27, 2020, 04:55:55 AM
There is no such built-in option. The mod has only a plugin, to make SEO URLs in sitemaps if the PrettyURL is installed.
Title: Re: Optimus
Post by: gorbi on June 27, 2020, 09:51:56 AM
2.6.4 глюк
Title: Re: Optimus
Post by: humbleworld on June 30, 2020, 05:33:09 AM
Quote from: Bugo on June 27, 2020, 04:55:55 AM
There is no such built-in option. The mod has only a plugin, to make SEO URLs in sitemaps if the PrettyURL is installed.
I want to give optimus a second chance by installing it manually. I hope it won't run conflict with PrettyURLs.
Title: Re: Optimus
Post by: Xpresskonami on June 30, 2020, 11:23:40 PM
Quote from: humbleworld on June 17, 2020, 05:35:15 AM
I installed Optimus after I installed PrettyURLs. The site got messed up. Are these two MODS not compatible with each other?

This also happen to my forum. up till now i haven't fix the problem am facing on my prettyurl + optimus. Bugo is really doing a great job. but my recommendation to this is, Smf should also allow user to be able to download the old version of mods instead of new version only. Immediately you find the working good mod for your forum, i suggest you shouldn't try to upgrade because it may give other side effect to the other working mod. Only those who just install smf latest version can enjoy latest mods version. 
Title: Re: Optimus
Post by: Massl on July 08, 2020, 02:47:34 AM
Just udpate to 2.9.3 and sitemap stop working...
https://site.com/index.php?action=sitemap;xml takes you to the home page of the site.

OP_VERSION instead of the version of the mod.
(https://i.postimg.cc/WhWc3ZF5/sitemap.jpg) (https://postimg.cc/WhWc3ZF5)
Title: Re: Optimus
Post by: Bugo on July 08, 2020, 04:27:24 AM
Now you should use such a link: http://yourforum/sitemap.xml
Or you can make a redirect via .ḥtaccess.
Title: Re: Optimus
Post by: Massl on July 08, 2020, 04:39:37 AM
Also with http://yourforum/sitemap.xml I am redirected to the home.

OP_VERSION present also on new 2.9.3 release.

It's correct that on robots.txt editor there isn't sitemap url?

Thanks Bugo  :)
Title: Re: Optimus
Post by: Bugo on July 08, 2020, 04:52:35 AM
At first, you should create sitemap.xml, clean cache, and then the link will be working. I thought it goes without saying :)
I have no ideas about the problem with OP_VERSION.
It works for the latest version of SMF (from Github), which has an integrate_load_session hook.
Title: Re: Optimus
Post by: Massl on July 08, 2020, 06:12:59 AM
Quote from: Bugo on July 08, 2020, 04:52:35 AM
At first, you should create sitemap.xml, clean cache, and then the link will be working. I thought it goes without saying :)

Thanks Bugo, now it works but it is empty.
Do I have to wait 24 hours for the first creation too?
Title: Re: Optimus
Post by: Bugo on July 08, 2020, 07:55:06 AM
Quote from: Massl on July 08, 2020, 06:12:59 AM
Do I have to wait 24 hours for the first creation too?
Yes, it depends on the new setting "How often the map is updated". Or you can manually re-run Daily Maintenance or Weekly Maintenance via Scheduled Tasks.
Title: Re: Optimus
Post by: Massl on July 08, 2020, 09:16:38 AM
Quote from: Bugo on July 08, 2020, 07:55:06 AM
Or you can manually re-run Daily Maintenance or Weekly Maintenance via Scheduled Tasks.

Do you mean these?
I run these but sitemap.xml is always empty.
The file is in the right path...

Thanks
Title: Re: Optimus
Post by: Bugo on July 08, 2020, 10:27:49 AM
You need to install the latest version of SMF from GitHub to properly work with v2.9.3.
Title: Re: Optimus
Post by: gorbi on July 08, 2020, 02:00:07 PM
2.6.5 опять глюк
Title: Re: Optimus
Post by: Massl on July 08, 2020, 04:44:11 PM
Quote from: Bugo on July 08, 2020, 10:27:49 AM
You need to install the latest version of SMF from GitHub to properly work with v2.9.3.

Ah OK,  thanks  ;)
Title: Re: Optimus
Post by: pocttopus on July 14, 2020, 02:50:11 AM
Hello,

I am using 2.1rc2 forum version and optimus 2.9 [04.06.20] but somehow I am receiving a lot of error's on lines 86 and 87.
Is there any fix for this? Thanks!  :)

Type of error: General
8: Constant OP_VERSION already defined https://renaultclub.mk/index.php?action=login2
/xxxx/public_html/Sources/Optimus/Integration.php (Line 87)


Type of error: General
8: Constant OP_NAME already defined https://renaultclub.mk/index.php?action=login2
/xxxx/public_html/Sources/Optimus/Integration.php (Line 86)
Title: Re: Optimus
Post by: Bugo on July 14, 2020, 04:37:03 AM
Drag these lines from line 86-87 to line 32-33:
defined('OP_NAME') or define ...
defined('OP_VERSION') or define ...
Title: Re: Optimus
Post by: njtweb on July 14, 2020, 10:54:21 AM
Hi Bugo, I'm on SMF 2.0.17 and Optimus 2.2 which is working without issue. Do I need to upgrade if all is working fine?
Title: Re: Optimus
Post by: Bugo on July 14, 2020, 02:50:03 PM
If it's okay, do not touch anything :)
Title: Re: Optimus
Post by: njtweb on July 14, 2020, 03:06:03 PM
Quote from: Bugo on July 14, 2020, 02:50:03 PM
If it's okay, do not touch anything :)

Great, thank you!
Title: Re: Optimus
Post by: AleksNet on July 15, 2020, 10:32:48 PM
Hello!
Installed Optimus_2.9.3, it gives errors:

2: Use of undefined constant OP_NAME - assumed 'OP_NAME' (this will throw an Error in a future version of PHP)
/Sources/Optimus/Settings.php (Строка 164)

2: Use of undefined constant OP_VERSION - assumed 'OP_VERSION' (this will throw an Error in a future version of PHP)
/Sources/Optimus/Settings.php (Строка 146)

2: Use of undefined constant OP_NAME - assumed 'OP_NAME' (this will throw an Error in a future version of PHP)
/Sources/Optimus/Settings.php (Строка 122)


If you click on the icon next to "Error type", then it displays:
For the first error:

[b]Error[/b]
Error type: Undefined_vars
Error message: 2: Use of undefined constant OP_NAME - assumed 'OP_NAME' (this will throw an Error in a future version of PHP)
File: /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php
Line: 164
URL error on page: http://ххххх.ru/?action=admin;area=optimus;a1898540baf=d56d405831c4b0c81e973c12550ef7f6

[b]Trace data[/b]
#0: smf_error_handler()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php in line 164
#1: settingActions()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php in line 77
#2: Bugo\Optimus\{closure}()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Admin.php in line 497
#3: AdminMain()
Call from /var/www/ххххх/data/www/ххххх.ru/index.php in line 153


For the second error:

[b]Error[/b]
Error type: Undefined_vars
Error message: 2: Use of undefined constant OP_VERSION - assumed 'OP_VERSION' (this will throw an Error in a future version of PHP)
File: /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php
Line: 146
URL error on page: http://ххххх.ru/?action=admin;area=optimus;a1898540baf=d56d405831c4b0c81e973c12550ef7f6

[b]Trace data[/b]
#0: smf_error_handler()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php in line 146
#1: settingActions()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php in line 77
#2: Bugo\Optimus\{closure}()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Admin.php in line 497
#3: AdminMain()
Call from /var/www/ххххх/data/www/ххххх.ru/index.php in line 153


For the third error:

[b]Error[/b]
Error type: Undefined_vars
Error message: 2: Use of undefined constant OP_NAME - assumed 'OP_NAME' (this will throw an Error in a future version of PHP)
File: /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php
Line: 122
URL error on page: http://ххххх.ru/?action=admin;area=optimus;a1898540baf=d56d405831c4b0c81e973c12550ef7f6

[b]Trace data[/b]
#0: smf_error_handler()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php in line 122
#1: settingActions()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php in line 77
#2: Bugo\Optimus\{closure}()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Admin.php in line 497
#3: AdminMain()
Call from /var/www/ххххх/data/www/ххххх.ru/index.php in line 153


Forum version: SMF_2-1-rc2

Tell me how to fix it or what could be the problem.
Title: Re: Optimus
Post by: Bugo on July 15, 2020, 11:07:28 PM
/Sources/Optimus/Integration.php
Quote from: Bugo on July 14, 2020, 04:37:03 AM
Drag these lines from line 86-87 to line 32-33:
defined('OP_NAME') or define ...
defined('OP_VERSION') or define ...

Title: Re: Optimus
Post by: AleksNet on July 15, 2020, 11:39:16 PM
If I understand correctly, then during the installation the table "optimus_keywords" should have been created in the database?
But nothing was created in the DB
Title: Re: Optimus
Post by: AleksNet on July 15, 2020, 11:42:31 PM
Quote from: Bugo on July 15, 2020, 11:07:28 PM
/Sources/Optimus/Integration.php
Quote from: Bugo on July 14, 2020, 04:37:03 AM
Drag these lines from line 86-87 to line 32-33:
defined('OP_NAME') or define ...
defined('OP_VERSION') or define ...


Thank.
For help!
Title: Re: Optimus
Post by: Bugo on July 16, 2020, 12:50:07 AM
Quote from: AleksNet on July 15, 2020, 11:39:16 PM
If I understand correctly, then during the installation the table "optimus_keywords" should have been created in the database?
But nothing was created in the DB
Try to copy database.php to a forum root and run via browser.
Title: Re: Optimus
Post by: Massl on July 16, 2020, 03:14:17 AM
Quote from: Bugo on July 08, 2020, 10:27:49 AM
You need to install the latest version of SMF from GitHub to properly work with v2.9.3.

Quote from: AleksNet on July 15, 2020, 10:32:48 PM
Installed Optimus_2.9.3
Forum version: SMF_2-1-rc2

Sorry but I don't understand... 2.9.3 is compatible or not with 2.1 RC2?

Thanks
Title: Re: Optimus
Post by: Bugo on July 16, 2020, 04:16:33 AM
Some features require the latest changes from SMF 2.1 GitHub.
I'll try to fix them in the next version.
In any case, if you are using the SMF 2.1, you should understand possible risks.
Title: Re: Optimus
Post by: AleksNet on July 16, 2020, 11:39:56 PM
Quote from: Bugo on July 16, 2020, 12:50:07 AM
Quote from: AleksNet on July 15, 2020, 11:39:16 PM
If I understand correctly, then during the installation the table "optimus_keywords" should have been created in the database?
But nothing was created in the DB
Try to copy database.php to a forum root and run via browser.

I did as they wrote.
Outputs:
Database Error
Duplicate column name 'optimus_description'
File: /var/www/xxxxx/data/www/xxxxx.ru/database.php
Line: 121
Back to


If you expand the error description

Mistake
Error type: Database
Error message: Database error: Duplicate column name 'optimus_description'
File: /var/www/ххххх/data/www/ххххх.ru/database.php
Line: 121
URL error on page: http://ххххх.ru/database.php
Trace data
# 0: smf_db_error ()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Subs-Db-mysql.php on line 489
# 1: smf_db_query ()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/DbPackages-mysql.php on line 330
# 2: smf_db_add_column ()
Call from /var/www/ххххх/data/www/ххххх.com/database.php on line 121
Title: Re: Optimus
Post by: Bugo on July 17, 2020, 12:53:29 AM
Well, try to create necessary tables by hand, via phpMyAdmin, etc.


DROP TABLE IF EXISTS `smf_optimus_keywords`;
CREATE TABLE `smf_optimus_keywords` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


DROP TABLE IF EXISTS `smf_optimus_log_keywords`;
CREATE TABLE `smf_optimus_log_keywords` (
  `keyword_id` int(10) unsigned NOT NULL,
  `topic_id` mediumint(8) unsigned NOT NULL,
  `user_id` mediumint(8) unsigned NOT NULL,
  PRIMARY KEY (`keyword_id`,`topic_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Title: Re: Optimus
Post by: Kailash Aghera on August 07, 2020, 08:30:29 AM
This mod is not working with SMF 2.1 RC2:

SMF Version: SMF 2.1 RC2
Mod Version:  optimus_2.9.3_smf21

No other mod. This is a fresh installation. The issue is with Sitemap. Running a sitemap task manually, generates the following error logs:

The callable \Bugo\Optimus\Integration::scheduledTask could not be called.

While accessing sitemap URL, it give 404 error page.

Kailash
Title: Re: Optimus
Post by: vicram10 on August 07, 2020, 03:47:22 PM
Quote from: Kailash Aghera on August 07, 2020, 08:30:29 AM
This mod is not working with SMF 2.1 RC2:

SMF Version: SMF 2.1 RC2
Mod Version:  optimus_2.9.3_smf21

No other mod. This is a fresh installation. The issue is with Sitemap. Running a sitemap task manually, generates the following error logs:

The callable \Bugo\Optimus\Integration::scheduledTask could not be called.

While accessing sitemap URL, it give 404 error page.

Kailash

Yes, same problem for me, the previous version works fine (Optimus 2.8.4 [28.05.20]).

Title: Re: Optimus
Post by: Arantor on August 07, 2020, 03:57:40 PM
Quote from: Bugo on July 08, 2020, 10:27:49 AM
You need to install the latest version of SMF from GitHub to properly work with v2.9.3.

As in, not 2.1 RC2 from the download page.
Title: Re: Optimus
Post by: vicram10 on August 09, 2020, 09:10:13 AM
Quote from: Arantor on August 07, 2020, 03:57:40 PM
Quote from: Bugo on July 08, 2020, 10:27:49 AM
You need to install the latest version of SMF from GitHub to properly work with v2.9.3.

As in, not 2.1 RC2 from the download page.

ah okay, I see, I have the 2.1 from download page, thanks Arantor.
Title: Re: Optimus
Post by: forumovod on September 04, 2020, 01:45:02 AM
If a visible counter with an informer is inserted in Optimus, the quote doesn't work in the posts.

SMF 2.1 RC2 from github, Optimus 2.9.3.
Title: Re: Optimus
Post by: Bugo on September 04, 2020, 07:38:35 AM
Thanks, it will be fixed in the next release.
Title: Re: Optimus
Post by: gorbi on September 04, 2020, 10:38:26 AM
Why Optimus 2.6.2 do not work with Opcache?
Title: Re: Optimus
Post by: Bugo on September 07, 2020, 10:01:23 AM
It works well. Just re-create a sitemap by hand (if you mean that a sitemap is not creating with Opcache enabled).
Title: Re: Optimus
Post by: gorbi on September 08, 2020, 05:39:35 AM
With php 7 work, with php5.6 do not work. Any 2.6.2 any 2.6.5
Title: Re: Optimus
Post by: Bugo on September 08, 2020, 09:48:18 AM
Quote from: Bugo on September 07, 2020, 10:01:23 AM
Just re-create a sitemap by hand

Or, a backup plan - open Sources/Optimus/Task.php, and add this line into scheduled_optimus_sitemap() function:
@ini_set('opcache.enable', false);

function scheduled_optimus_sitemap()
{
global $boarddir, $sourcedir;

@ini_set('opcache.enable', false);
Title: Re: Optimus
Post by: pocttopus on September 10, 2020, 02:07:00 AM
Hello,
I am having these issues:


Type of error: General
8: Constant OP_VERSION already defined
/home/xxxx/public_html/Sources/Optimus/Integration.php (Line 33)



Type of error: General
8: Constant OP_NAME already defined
/home/xxxx/public_html/Sources/Optimus/Integration.php (Line 32)


How can I solve this?
Thanks.
Title: Re: Optimus
Post by: Portugal on September 26, 2020, 03:25:46 PM
Hi people,

I need yours help, Bugo can you hel me?

After try to instal the new version (2.6.5) without uninstal the older version (12/2019) ive got this fatal error:
[26-Sep-2020 20:09:24 Europe/Lisbon] PHP Fatal error:  Cannot redeclare scheduled_optimus_sitemap() (previously declared in /home/xxxxxxxxxxxx/public_html/Sources/Optimus/Scheduled.php:25) in /home/xxxxxxxxx/public_html/Sources/Optimus/Task.php on line 32

What can i do to solve this? My forum is now down.



Thanks in advance
Portugal
Title: Re: Optimus
Post by: Kindred on September 26, 2020, 07:38:48 PM
Did you take a backup before you did that?

If not (shame on you,  ALWAYS BACKUP) then you will have to manually remove ALL  the duplicated code
Title: Re: Optimus
Post by: Bugo on September 27, 2020, 12:37:02 AM
At first, remove /Sources/Optimus dir.
Then, extract files from the new Optimus package, to the forum dir.
Title: Re: Optimus
Post by: Portugal on September 27, 2020, 03:32:15 PM
Thanks friends

Yesterday ive rebamad the file "scheduled.php" and the forum starts running withowt this file. Today ive changed all the folder as Bugo says... and works perfectllly.


Thanks Bugo and all
Title: Re: Optimus
Post by: Randem on October 01, 2020, 06:06:37 AM
Hi, I installed Optimus version 2.9.3 [08.07.20]  on SMF 2.1 RC2 and got 27 errors in the error log on install which keep repeating these three errors.

Type of error: Undefined
2: Use of undefined constant OP_NAME - assumed 'OP_NAME' (this will throw an Error in a future version of PHP) /index.php?pretty;action=admin&amp;area=optimus;d77834cdcf9=c87b7e15170ed1bc0937fd2bc707bbdf
/home/fts/public_html/Sources/Optimus/Settings.php (Line 164)
   
admin
Today at 09:51 am
75.80.73.210
c87b7e15170ed1bc0937fd2bc707bbdf
Type of error: Undefined
2: Use of undefined constant OP_VERSION - assumed 'OP_VERSION' (this will throw an Error in a future version of PHP) /index.php?pretty;action=admin&amp;area=optimus;d77834cdcf9=c87b7e15170ed1bc0937fd2bc707bbdf
/home/fts/public_html/Sources/Optimus/Settings.php (Line 146)
   
admin
Today at 09:51 am
75.80.73.210
c87b7e15170ed1bc0937fd2bc707bbdf
Type of error: Undefined
2: Use of undefined constant OP_NAME - assumed 'OP_NAME' (this will throw an Error in a future version of PHP) /index.php?pretty;action=admin&amp;area=optimus;d77834cdcf9=c87b7e15170ed1bc0937fd2bc707bbdf
/home/fts/public_html/Sources/Optimus/Settings.php (Line 122)
Title: Re: Optimus
Post by: Bugo on October 01, 2020, 07:39:34 AM
These and some other errors are fixed in v2.9.4 that is available for sponsors on Patreon yet.
Title: Re: Optimus
Post by: gorbi on October 01, 2020, 01:32:07 PM
Для СМФ2.0 есть спецпредложение?
Title: Re: Optimus
Post by: njtweb on October 02, 2020, 07:59:56 AM
Hi @Bugo - Facebook question

They have recently changed the format/design of the website. I've noticed a few things with shared posts from my website.

1. If there is no image in a site topic - Facebook no longer posts the default image which is identified in Optimus settings. It doesn't even post the topic title, it only posts the URL, nothing is parsed from the topic to Facebook
2. Ift the default image in a topic is small, like 260x260 Facebook does some weird stuff. It either defaults to a very old image from a Tiny Portal article, or it doesn't post any image at all and only posts the URL to the topic. Nothing is parsed.
3. If a topic has a normal sized image, FB will parse that and post it but there's no description

Lastly, in all 3 of these scenarios, I always run every topic I want to post on Facebook through the Facebook debugger. They always parse correctly but since Facebook changed, things don't seem to equate from debugger to facebook in general.

Which brings me to this question. Has FB changed how it parses code again? If it has can you fix this for me? $25USD for your help.

Thank yoU!


EDIT: I was able to install the Chrome Facebook "Switch to classic" extension in order to post topics correctly. This is only a bandaid and I expect the extension to eventually stop working.
Title: Re: Optimus
Post by: Bugo on October 02, 2020, 08:14:16 AM
Lets wait for the next release TinyPortal (2.0.0 final) because some things will be changed there.
Any case, I have already changed a TinyPortal addon for the current Optimus dev version.

Can you test articles with specific images (1200х630 px)?
Title: Re: Optimus
Post by: njtweb on October 02, 2020, 08:19:15 AM
Quote from: Bugo on October 02, 2020, 08:14:16 AM
Lets wait for the next release TinyPortal (2.0.0 final) because some things will be changed there.
Any case, I have already changed a TinyPortal addon for the current Optimus dev version.

Can you test articles with specific images (1200х630 px)?

Okay Bugo, thank you. I'll continue to use the Chrome extension for now. I'll get back to you on the image test.
Title: Re: Optimus
Post by: pixelpadre on October 06, 2020, 12:41:19 PM
I have spent the morning trying to get the mod to work.  There are no instructions on how to do this.

I uploaded the zip file via admin panel.  then I clicked on install.   Mod shows a green light but I dont see the mod interface anywhere.  there is a database.php file in the zip file.  do I need to do something with that?
Title: Re: Optimus
Post by: Bugo on October 06, 2020, 01:01:59 PM
On the mod page find "Manual install" select box, select your SMF version and click "Parse" button.
Title: Re: Optimus
Post by: Kindred on October 06, 2020, 01:14:59 PM
if you used the package manager to install it, then it should already BE installed

it installed under a heading in the admin called "Search Engine Optimization
index.php?action=admin;area=optimus
Title: Re: Optimus
Post by: pixelpadre on October 06, 2020, 01:26:55 PM
Quote from: Kindred on October 06, 2020, 01:14:59 PM
if you used the package manager to install it, then it should already BE installed

it installed under a heading in the admin called "Search Engine Optimization
index.php?action=admin;area=optimus

Its installed but not there.  And I dont see any changes to the database.
Title: Re: Optimus
Post by: Kindred on October 06, 2020, 01:28:59 PM
have you been able to install any other mods?
Title: Re: Optimus
Post by: pixelpadre on October 06, 2020, 01:40:28 PM
Quote from: Kindred on October 06, 2020, 01:28:59 PM
have you been able to install any other mods?
Have not tried.  But its a good idea.
Title: Re: Optimus
Post by: pixelpadre on October 06, 2020, 04:00:10 PM
Yes.  I installed invitation Mod.  And it works.
Title: Re: Optimus
Post by: pixelpadre on October 06, 2020, 04:09:59 PM
Here is what my admin panel shows.  Not the left column shows Invitation mod but not the other Optimus mod.

Title: Re: Optimus
Post by: Kindred on October 06, 2020, 04:39:58 PM
You could try uninstalling and then reinstalling optimus

if that doesn't work, then yes... you will probably have to manually install the Optimus mod, since your system seems to be incapable of installing it automatically.
Title: Re: Optimus
Post by: pixelpadre on October 07, 2020, 07:32:43 AM
Quote from: Kindred on October 06, 2020, 04:39:58 PM
You could try uninstalling and then reinstalling optimus

if that doesn't work, then yes... you will probably have to manually install the Optimus mod, since your system seems to be incapable of installing it automatically.

Uninstalling and reinstalling was the first thing I tried.

Going back to my original post...........are there any instructions on how to install this manually.

I noticed that owner is set to root for all of the mod files/directories when it is installed from the admin panel.  Is that a problem?
Title: Re: Optimus
Post by: Kindred on October 07, 2020, 09:12:08 AM
if another mod installed correctly, it should not be a problem....

Manual install instructions are on the mod download page...
Quote from: Bugo on October 06, 2020, 01:01:59 PM
On the mod page find "Manual install" select box, select your SMF version and click "Parse" button.
Title: Re: Optimus
Post by: pixelpadre on October 07, 2020, 09:47:49 AM
Those are not instructions. 

There is a database modification file that isnt even mention in the "directions".
Title: Re: Optimus error log
Post by: pixelpadre on October 07, 2020, 07:11:33 PM
Two different error log entries:

Apply Filter: Only show the error messages of this URL
https://cwpforum.com/index.php?action=admin;area=logs;sa=errorlog;desc;filter=error_type;value=database
Apply Filter: Only show the errors with the same message
2: Illegal string offset 'member_name'
Apply Filter: Only show the errors from this file
File: /home/user/public_html/cwpforum/Sources/ManageErrors.php
Line: 204

and

Apply Filter: Only show the error messages of this URL
https://cwpforum.com/index.php?action=admin;area=packages;sa=install2;package=optimus_2.6.5_smf20.zip;pid=0
Apply Filter: Only show the errors with the same message
2: fopen(/home/user/public_html/cwpforum/Themes/default/css/optimus/optimus.css): failed to open stream: Permission denied
Apply Filter: Only show the errors from this file
File: /home/user/public_html/cwpforum/Sources/Subs-Package.php
Line: 2545
Title: Re: Optimus
Post by: Massl on October 19, 2020, 04:19:02 PM
Hi Bugo, is there a reason why this option has been removed?

QuoteAdd ALL topic pages to the sitemap
If not checked, only the first pages of topics will be added to the sitemap.

Thanks
Title: Re: Optimus
Post by: Bugo on October 20, 2020, 12:55:50 AM
Usually, the search spider gets the first link - http://yourforum/?topic=x.0 - and then finds all other automatically, no need to collect all possible links in sitemaps.
Title: Re: Optimus
Post by: Massl on October 21, 2020, 03:04:54 AM
Thanks for your reply Bugo  :)

In my forum I have many discussions with over 50 pages and after the upgrade from 2.8.3 to 2.9.3 the google indexing has dropped a lot, last pages are no longer indexed.

I think it is better put back the option.
Title: Re: Optimus
Post by: Neol on October 21, 2020, 06:44:57 PM
Need some help here.
I tried to add emojis to the forum title and description, but it won't work. If I add an emoji the whole title or description text will disappear. Usually, emojis are treated as text, and shouldn't be a problem to add/use them. I use emojis sometimes in topic titles and there are no issues in these cases. Just inside the meta data it won't work. Any idea why?
Title: Re: Optimus
Post by: Bugo on October 22, 2020, 02:48:02 AM
At first, make sure that your database supports utf8mb4 (https://mathiasbynens.be/notes/mysql-utf8mb4).
At second, add $db_character_set = 'utf8mb4'; into your Settings.php file.
Title: Re: Optimus
Post by: Arantor on October 22, 2020, 03:33:07 AM
That only works if you're already using UTF-8, and is not a recommended or supported configuration. Especially when you realise the emoji are supported in posts and other areas *without needing this step*.
Title: Re: Optimus
Post by: Bugo on October 22, 2020, 03:48:54 AM
Yes, but this line $context['page_title_html_safe'] = $smcFunc['htmlspecialchars'](un_htmlspecialchars($context['page_title'])) . (!empty($context['current_page']) ? ' - ' . $txt['page'] . ' ' . ($context['current_page'] + 1) : ''); in Subs.php does not allow to display emoji properly, if to use $smcFunc['htmlspecialchars'] on saving forum title/description.

Neol did not provide any data about his configuration, I gave advice based on the data from my test forum.
Title: Re: Optimus
Post by: Arantor on October 22, 2020, 04:00:29 AM
The ampersand is double encoded at that point. Or you could borrow the code in $smcFunc to fix just the emoji.
Title: Re: Optimus
Post by: Bugo on October 22, 2020, 04:57:24 AM
Ok, I will add a fix for that in the next version.
Title: Re: Optimus
Post by: Massl on October 22, 2020, 05:37:59 AM
Hi, does anyone know where i can download version 2.8.3?
Title: Re: Optimus
Post by: mmmusty on November 10, 2020, 03:24:30 PM

Hello.

I installed Optimus for forum using version 2.1 RC3. But it does not create a sitemap. When I click on the sitemap in the footer, I get a 404 error.

The sitemap.xml file was never created.

Can you help me?

Note:(I know very little English. I had to translate the text.) :(
Title: Re: Optimus
Post by: pocttopus on December 13, 2020, 11:53:03 AM
Hello, I am receiving a lot error messages in error log.
How can I fix them?

Type of error: General
8: Constant OP_VERSION already defined https://xxxx/index.php?https://xxxx/
/home/xxxx/public_html/Sources/Optimus/Integration.php (Line 87)

Type of error: General
8: Constant OP_NAME already defined https://xxxx/index.php?https://xxxx/
/home/xxxx/public_html/Sources/Optimus/Integration.php (Line 86)


Thanks!
Title: Re: Optimus
Post by: pocttopus on December 20, 2020, 02:08:44 PM
Quote from: pocttopus on December 13, 2020, 11:53:03 AM
Hello, I am receiving a lot error messages in error log.
How can I fix them?

Type of error: General
8: Constant OP_VERSION already defined https://xxxx/index.php?https://xxxx/
/home/xxxx/public_html/Sources/Optimus/Integration.php (Line 87)

Type of error: General
8: Constant OP_NAME already defined https://xxxx/index.php?https://xxxx/
/home/xxxx/public_html/Sources/Optimus/Integration.php (Line 86)


Thanks!

No help? Anyone?  ???
Title: Re: Optimus
Post by: wylekk on December 20, 2020, 05:03:32 PM
More errors are displayed :-\

Тип ошибки: Критические
The database value you're trying to insert does not exist: var_modified_reason
Function: modifyPost
http://www.sub.ru/index.php?action=post2;board=11.0;start=0;msg=8370;aecb1c67557=8c6f7709089a41020279a3ae23fdcfdd
/home/admin/web/sub.ru/public_html/Sources/Subs-Post.php (Строка 2275)
Title: Re: Optimus
Post by: Kindred on December 20, 2020, 05:45:02 PM
That has nothing to do with this mod. It's the reason modified mod...  and it looks like it did not fully install
Title: Re: Optimus
Post by: Mick. on December 26, 2020, 01:09:25 PM
Hey Bugo, I ran that xhtml checker and my site came back with 1 error. Wondering if this is part of Optimus mod.

Error: Bad value x-dns-prefetch-control for attribute http-equiv on element meta.

<meta http-equiv="x-dns-prefetch-control" content="on">
Title: Re: Optimus
Post by: Bugo on December 26, 2020, 03:22:58 PM
It is a part of Light Portal, will be fixed in the next version.
Title: Re: Optimus
Post by: Mick. on December 26, 2020, 03:32:03 PM
Quote from: Bugo on December 26, 2020, 03:22:58 PM
It is a part of Light Portal, will be fixed in the next version.
Awesome. Thank you. ;)
Title: Re: Optimus
Post by: @rjen on December 29, 2020, 06:17:27 PM
Just updated my site to 2.6.6.

Find attached the updated dutch language files...
Title: Re: Optimus
Post by: Bugo on December 31, 2020, 10:21:50 AM
Thanks :)
Title: Re: Optimus
Post by: Mick. on January 14, 2021, 05:47:36 PM
Where do i find the css for the topic kewords? I want to remove the roundframe around it but can't seem to locate it.
Title: Re: Optimus
Post by: Bugo on January 14, 2021, 10:56:43 PM
/Sources/Optimus/TopicHooks.php, prepareDisplayContext() method. It is a simple fieldset with "roundframe" class.
Title: Re: Optimus
Post by: Mick. on January 15, 2021, 07:21:28 AM
Quote from: Bugo on January 14, 2021, 10:56:43 PM
/Sources/Optimus/TopicHooks.php, prepareDisplayContext() method. It is a simple fieldset with "roundframe" class.
Found it. Thank you.
Title: Re: Optimus
Post by: 6o6ep84 on January 26, 2021, 09:09:29 AM
Hi Bugo.
I updated Optimus Brave 1.8.6.1. to 2.6.6. Updated php to 5.6. Installation without errors 2.6.6. The forum stopped showing. A clean slate. The admin panel works without errors. smf 2.0.15 + SimplePortal 2.3.7
Title: Re: Optimus
Post by: Bugo on January 26, 2021, 09:36:47 AM
QuoteTo submit an issue, leave:
a short description of your problem
mods list that installed
your SMF version
your PHP version
forum link where I can see the issue
Title: Re: Optimus
Post by: 6o6ep84 on January 26, 2021, 09:45:06 AM
sorry
url FAW-CARS.ru

mods:
Auto Merge Double Post
Disable Help
Sitemap RUS
Sitemap
InLine Attachments
RedirectPage   
Similar Topics
SimplePortal - KPR Block
Karma Post Rating
Fix set size for DECIMAL columns
New Hooks 0.4.1

Версия мода: 2.6.6, версия PHP: 5.6.40-38+0~20201103.42+debian9~1.gbpb211e0, версия MySQL: 5.7.30-log.
Title: Re: Optimus
Post by: Bugo on January 26, 2021, 09:58:39 AM
Try to comment some hooks in Sources/Optimus/Integration.php:

public static function hooks()
{
//add_integration_function('integrate_load_theme', __CLASS__ . '::loadTheme', false);
//add_integration_function('integrate_menu_buttons', __CLASS__ . '::menuButtons', false);
//add_integration_function('integrate_buffer', __CLASS__ . '::buffer', false);
add_integration_function('integrate_admin_include', '$sourcedir/Optimus/Settings.php', false);
add_integration_function('integrate_admin_areas', __NAMESPACE__ . '\Settings::adminAreas', false);
}


Will it help?
Title: Re: Optimus
Post by: 6o6ep84 on January 26, 2021, 10:56:05 AM
Thanks. This fixed the forum. Can you explain what to do to make the mod work without edits?
Title: Re: Optimus
Post by: Bugo on January 26, 2021, 11:18:01 AM
Run this SQL via phpMyAdmin:

DELETE FROM `smf_settings`
WHERE `variable` LIKE '%op_%' OR `variable` LIKE '%optimus_%';


This will remove all Optimus' settings. Then restore the hooks method in Sources/Optimus/Integration to the initial state.
If you see errors again, begin to comment hooks one by one until you find out which hook is responsible for the white screen:

1) integrate_buffer?

public static function hooks()
{
add_integration_function('integrate_load_theme', __CLASS__ . '::loadTheme', false);
add_integration_function('integrate_menu_buttons', __CLASS__ . '::menuButtons', false);
//add_integration_function('integrate_buffer', __CLASS__ . '::buffer', false);
add_integration_function('integrate_admin_include', '$sourcedir/Optimus/Settings.php', false);
add_integration_function('integrate_admin_areas', __NAMESPACE__ . '\Settings::adminAreas', false);
}


2) integrate_menu_buttons?

public static function hooks()
{
add_integration_function('integrate_load_theme', __CLASS__ . '::loadTheme', false);
//add_integration_function('integrate_menu_buttons', __CLASS__ . '::menuButtons', false);
add_integration_function('integrate_buffer', __CLASS__ . '::buffer', false);
add_integration_function('integrate_admin_include', '$sourcedir/Optimus/Settings.php', false);
add_integration_function('integrate_admin_areas', __NAMESPACE__ . '\Settings::adminAreas', false);
}


3) etc.
Title: Re: Optimus
Post by: 6o6ep84 on January 26, 2021, 11:28:34 AM
Thank you very much, after deleting the lines from the database, everything worked.
Дайте бог тебе здоровья.
Title: Re: Optimus
Post by: MobileCS on February 06, 2021, 11:55:01 PM
I love this mod! However, there is a small issue.

On the forum main page, it's missing the following meta tags :

og:title
og:type
og:url
og:image
og:description
og:site_name
fb:app_id

Also, you need to include the og:image width/height.

<meta property="og:image:width" content="$width" />
<meta property="og:image:height" content="$height" />

You can easily grab the image width and height using this method :

list($width, $height) = getimagesize("/www/example.com/httpdocs/forum/$image_name");
Title: Re: Optimus
Post by: Portugal on February 15, 2021, 11:09:35 AM
Hi,

After make the last update, i get some errors on sitemap, any idea to fix it?

Sometimes instead of the "scheduledtasks" i comes with a topic, just one!
It produces about 39 erros everytime it makes the cronjob (hourly in my case)

Attached image to explain better!

Thanks!
Title: Re: Optimus
Post by: Bugo on February 16, 2021, 06:22:13 AM
v2.7.1 for SMF 2.0.x
* Fixed found issues
Title: Re: Optimus
Post by: Portugal on February 16, 2021, 07:40:51 AM
Thanks @Bugo problem solved!



Quote from: Bugo on February 16, 2021, 06:22:13 AM
v2.7.1 for SMF 2.0.x
* Fixed found issues
Title: Re: Optimus
Post by: gevv on February 18, 2021, 02:21:19 PM
Hello,


@Bugo

I'm using Pretty URLs the url on the sitemap page looks  index.php?topic=xxxx  , index.php?board=xx  etc     

Could the sitemap be compatible with Pretty URLs?

Thanks
Title: Re: Optimus
Post by: Bugo on February 18, 2021, 11:37:14 PM
Optimus supports user addons, see addons dir for example.
Title: Re: Optimus
Post by: pocttopus on May 07, 2021, 05:42:35 AM
Hello,

I cannot install the latest version 2.7.2

This mod needs PHP 5.6 or greater. You will not be able to install/use this mod, contact your host and ask for a php upgrade.

Version Information:
Forum version: SMF 2.0.18 (more detailed)
Current SMF version: SMF 2.0.18
GD version: bundled (2.1.0 compatible)
Database Server: MySQL
MySQL version: 5.7.33-log-cll-lve
PHP: 5.5.38
Server version: LiteSpeed


Should I contact the host because I have 5.5.38 version or is there any way to solve this without them?
Title: Re: Optimus
Post by: pocttopus on May 07, 2021, 07:14:54 AM
And also I have this error too with sitemap:

Error loading stylesheet: An unknown error has occurred (805303f4)
https://107.189.4.145/Themes/default/css/optimus/sitemap.xsl
Title: Re: Optimus
Post by: Kindred on May 07, 2021, 08:29:22 AM
you definitely need a php upgrade.   5.5 is ANCIENT -- most hosts have actually forced an update to php 7.x at this point.
Title: Re: Optimus
Post by: pocttopus on May 07, 2021, 09:35:48 AM
@Kindred at the same hosting I am running two smf scripts, one is 2.0.18 version and the second is 2.1rc3.
How can I run 2.1rc3 on the same hosting if hosting is using older php then 5.6 version? :-\
Title: Re: Optimus
Post by: Kindred on May 07, 2021, 10:01:58 AM
SMF 2.0.18 supports up to php 7.4

use php 7.4 for everything.
Title: Re: Optimus
Post by: aegersz on May 07, 2021, 10:22:21 AM
I am testing SMF 2.0.18 on CentOS 7 and I am seeing the attached Optimus errors. No sitemap is generated probably due to these errors.

The mod version: 2.7.2, PHP version: 7.1.33, MySQL version: 5.6.51.

Your thoughts ?

Title: Re: Optimus
Post by: Kindred on May 07, 2021, 10:25:45 AM
looks to me like a conflict between other mods and optimus.
Interestingly enough, I have the KB installed on two of my systems along with Optimus (using php 7.3) and I don't get any errors.
Title: Re: Optimus
Post by: gecitli on May 07, 2021, 10:45:13 AM
Hello sitemap turned into this shape. Is this normal?

https://webtiryaki.com/sitemap.xml
Title: Re: Optimus
Post by: aegersz on May 07, 2021, 11:00:50 AM
Quote from: Kindred on May 07, 2021, 10:25:45 AM
looks to me like a conflict between other mods and optimus.
Interestingly enough, I have the KB installed on two of my systems along with Optimus (using php 7.3) and I don't get any errors.

I have KB installed too but all these weird errors started after I upgraded to PHP 7.
Title: Re: Optimus
Post by: pocttopus on May 07, 2021, 11:15:21 AM
Quote from: Kindred on May 07, 2021, 10:01:58 AM
SMF 2.0.18 supports up to php 7.4

use php 7.4 for everything.
I had an option to manual change the php version. Now is  PHP: 7.4.16 and I have been able to update Optimus mod to the latest version.

Sitemap now is returning 404 page.
How can I fix this? :-\
Title: Re: Optimus
Post by: Bugo on May 08, 2021, 07:44:42 AM
@pocttopus, do you have sitemap.xml in your forum's root?
Make sure that you properly defined the forum's root path in the robots.txt settings area.
Title: Re: Optimus
Post by: pocttopus on May 08, 2021, 10:43:50 AM
sitemap.xml is missing in the root.
Does this file creates by itself when selected to do so?
Title: Re: Optimus
Post by: Bugo on May 08, 2021, 12:48:53 PM
See the corresponding task in Scheduled Tasks.
Title: Re: Optimus
Post by: Sir Osis of Liver on May 08, 2021, 11:15:58 PM
Installed current version in 2.0.18 forum, all admin actions went wsod.
Title: Re: Optimus
Post by: pocttopus on May 09, 2021, 02:44:37 AM
Quote from: Bugo on May 08, 2021, 12:48:53 PM
See the corresponding task in Scheduled Tasks.
It works!
Thanks @Bugo, you are very kind.  :)
Title: Re: Optimus
Post by: Bugo on May 09, 2021, 05:12:44 AM
Quote from: Sir Osis of Liver on May 08, 2021, 11:15:58 PM
Installed current version in 2.0.18 forum, all admin actions went wsod.
Check file permissions. Do other mods work?
Title: Re: Optimus
Post by: aegersz on May 10, 2021, 10:30:35 PM
Quote from: aegersz on May 07, 2021, 11:00:50 AM
Quote from: Kindred on May 07, 2021, 10:25:45 AM
looks to me like a conflict between other mods and optimus.
Interestingly enough, I have the KB installed on two of my systems along with Optimus (using php 7.3) and I don't get any errors.

I have KB installed too but all these weird errors started after I upgraded to PHP 7.

It working fine now since I upgraded a few mods.
Title: Re: Optimus
Post by: aegersz on May 14, 2021, 08:52:24 PM
In Linux, to get the Scheduled Task working to unlink the sitemap, I had to change the parent directory ownership to apache:apache and also chmod 777 it.

I am the only user of my VPS so it's ok.
Title: Re: Optimus
Post by: MohammedFK on May 18, 2021, 07:20:09 AM
OMG! Awesome work bro,
Go ahead and update always, it really helps a lot.

I have Inquiry: Can you make topic title = H1 ?

Now = H1 for the forum name.
Title: Re: Optimus
Post by: Kindred on May 18, 2021, 08:00:57 AM
Quote from: MohammedFK on May 18, 2021, 07:20:09 AM
I have Inquiry: Can you make topic title = H1 ?

Now = H1 for the forum name.




As I said to you in your other thread ---  no, doing that is MUCH more complicated than you seem to think.
Title: Re: Optimus
Post by: MohammedFK on May 18, 2021, 11:13:11 AM
QuoteMUCH more complicated than you seem to think

I think it will be easy with a programmer; Are you suggesting that I switch to another software, Like: vBulletin or XenForo .. etc?
Title: Re: Optimus
Post by: Kindred on May 18, 2021, 01:33:16 PM
I am suggesting that you either consider PAYING for a complicated solution or you LIVE with the functionality that exists in a FREE software with FREE add-ons.

... but sure - If you think that some other software would better suit your needs, then, by all means, go ahead ans switch. Just note that you'll have to PAY for either of those softwares up front --- and they STILL won't do everything you have asked for.
(Hint, however: you will get the same response with those other softwares when you make a complicated request...)
Title: Re: Optimus
Post by: Ninja ZX-10RR on May 18, 2021, 03:39:52 PM
I've read that other thread as well... For your sake, can you stop asking that? You've been told many times it's a bad idea and very complicated to do. With no offense meant, you don't seem like a knowledgeable programmer who knows what he is doing and still wants/needs to do it no matter what.
Asking about other softwares is also rather rude, like "Hey you don't want to do this so I'll just leave". We don't want to do that because it's just wrong and that's been explained to you.
Title: Re: Optimus
Post by: pocttopus on May 20, 2021, 01:20:02 AM
Hello folks,

Suddenly sitemaps does not displays as should be. Here is the example and how can I fix this?

(https://i.postimg.cc/KRdTnHKw/Screenshot-322.jpg) (https://postimg.cc/KRdTnHKw)
Title: Re: Optimus
Post by: gecitli on May 20, 2021, 03:31:55 AM
Hello, do I have a solution for the problem here?

https://www.simplemachines.org/community/index.php?topic=422210.msg4088006#msg4088006 (https://www.simplemachines.org/community/index.php?topic=422210.msg4088006#msg4088006)
Title: Re: Optimus
Post by: MohammedFK on May 20, 2021, 05:05:54 AM
sitemap do not update automatically?
what's the problem?
Title: Re: Optimus
Post by: MohammedFK on May 20, 2021, 05:21:03 AM
+ after add my Google Analytics code to (Counters), I found:

QuoteForbidden
You don't have permission to access /index.php on this server.

I an the Administrator
Title: Re: Optimus
Post by: shadav on May 26, 2021, 09:22:56 AM
as for the sitemap, what are your settings for it?

as for the analytics code, sounds like the mod wasn't installed correctly, use the parse button on the mod's download page and make sure that each installation step was done correctly.
Does it work on the default (curve theme)?
smf version?
optimus mod version?
theme in use?
Title: Re: Optimus
Post by: MohammedFK on May 27, 2021, 03:32:03 AM
Thanks sir,
take a look at the attachments

+ SMF Default Theme - Curve
Title: Re: Optimus
Post by: aegersz on May 27, 2021, 09:38:10 AM
Quote from: MohammedFK on May 20, 2021, 05:21:03 AM
+ after add my Google Analytics code to (Counters), I found:

QuoteForbidden
You don't have permission to access /index.php on this server.

I an the Administrator

Where and when are you seeing that error ? I just got Google Analytics working without any hassles.

Can you screenprint it ?
Title: Re: Optimus
Post by: MohammedFK on May 27, 2021, 10:10:16 AM
Quote from: aegersz on May 27, 2021, 09:38:10 AM
Can you screenprint it ?

Forbidden
You don't have permission to access /index.php on this server.


Title: Re: Optimus
Post by: aegersz on May 27, 2021, 10:24:27 AM
Yes but when does it happen ?

Are you shared hosting, Windows or Linux ?

It is a permissions error on the web root directory, I'm thinking ... could be Apache mod security too.

Can you run the scheduled task to update the sitemap without errors ?

Can we also see your .htaccess file ?
Title: Re: Optimus
Post by: MohammedFK on May 27, 2021, 11:20:50 AM
Quote from: aegersz on May 27, 2021, 10:24:27 AM
!!

Yes but when does it happen ?
after add the google code and press "save"

Are you shared hosting, Windows or Linux ?
VPS

Can you run the scheduled task to update the sitemap without errors ?
HOW?

Can we also see your .htaccess file ?
I don't have a .htaccess file for the forums.
Title: Re: Optimus
Post by: aegersz on May 27, 2021, 11:43:58 AM
OK, so you have a VPS as do I. I run Linux - what do you run ?

No .htaccess then I assume that you don't run https, correct ?

To run the scheduled task:

Admin > Maintenance > Scheduled Tasks > Sitemap XML Generation ... tick the "Run Now" box and hit the "Run Now" button. I am expecting an error.

Let me know if it fails.

By the way, my index.php is "-rwxrwxrwx  1 apache root       19057 May 27 13:41 index.php" and my web root is "drwxrwxrwx 29 apache apache 12288 May 27 21:25 html"

Title: Re: Optimus
Post by: shadav on May 27, 2021, 12:27:26 PM
if the issue is with trying to add the google analytics code into the counter box

delete that and add this mod: https://custom.simplemachines.org/mods/index.php?mod=2210

searching this topic for the word analyitcs (https://www.simplemachines.org/community/index.php?action=search2;search=analytics;topic=422210)
there's only one other person that mentioned a issue and they said that they contacted their host and it was fixed, so it seems to be something hosting related

or you could as I said above, remove your code from the counter box and install the google analytics mod

*giggles* and if you noticed the pink icon on the gender there, I am not a sir ;)
Title: Re: Optimus
Post by: MohammedFK on May 27, 2021, 12:36:51 PM
Quote from: aegersz on May 27, 2021, 11:43:58 AM

Admin > Maintenance > Scheduled Tasks > Sitemap XML Generation ... tick the "Run Now" box and hit the "Run Now" button. I am expecting an error.


Fabulous; successfully done. I made it once every single day.

I will see if the map will be updated daily; It would be great.
Title: Re: Optimus
Post by: pocttopus on May 31, 2021, 09:52:27 AM
Hello again, I asked this question on previous page but didn't get any tips how to solve this issue on the screenshot when I click on the sitemap link at the bottom of my forum page.

(https://i.postimg.cc/TKkNW11m/Screenshot-345.jpg) (https://postimg.cc/TKkNW11m)

Any suggestions please.  :-[
Title: Re: Optimus
Post by: pocttopus on June 01, 2021, 02:25:37 AM
Quote from: pocttopus on May 31, 2021, 09:52:27 AM
Hello again, I asked this question on previous page but didn't get any tips how to solve this issue on the screenshot when I click on the sitemap link at the bottom of my forum page.

(https://i.postimg.cc/TKkNW11m/Screenshot-345.jpg) (https://postimg.cc/TKkNW11m)

Any suggestions please.  :-[
No one?  :-[
Title: Re: Optimus
Post by: shadav on June 01, 2021, 11:25:45 AM
Quote from: pocttopus on June 01, 2021, 02:25:37 AM
Quote from: pocttopus on May 31, 2021, 09:52:27 AM
Hello again, I asked this question on previous page but didn't get any tips how to solve this issue on the screenshot when I click on the sitemap link at the bottom of my forum page.

(https://i.postimg.cc/TKkNW11m/Screenshot-345.jpg) (https://postimg.cc/TKkNW11m)

Any suggestions please.  :-[
No one?  :-[

it seems to be more of a css issue

check to make sure that in your default theme folder, in the css folder there is the optimus folder and that it contains the three needed files

in your root folder make sure that the sitemap.xml file is correct
make sure that this line is pointing to the correct path
<?xml-stylesheet type="text/xsl" href="http://YOURSITE.TLD/Themes/default/css/optimus/sitemap.xsl"?>
or that it's using https if that's what you are using

if all seems ok, then make sure of file permissions of the css folder and files
Title: Re: Optimus
Post by: smartmouse on July 02, 2021, 05:08:52 AM
Hello, I have Optimus v2.3.1 on SMF 2.1 RC2. I noticed that when I share a link of my forum there is no preview of it.
I would install the latest version of Optimus but I see that it doesn't support SMF 2.1.
What's wrong?
Title: Re: Optimus
Post by: Ninja ZX-10RR on July 13, 2021, 12:01:09 PM
Quote from: smartmouse on July 02, 2021, 05:08:52 AM
Hello, I have Optimus v2.3.1 on SMF 2.1 RC2. I noticed that when I share a link of my forum there is no preview of it.
I would install the latest version of Optimus but I see that it doesn't support SMF 2.1.
What's wrong?
What's the point of asking for support for something that clearly isn't supported?
Title: Re: Optimus
Post by: smartmouse on July 14, 2021, 03:45:34 AM
Quote from: Ninja ZX-10RR on July 13, 2021, 12:01:09 PM
Quote from: smartmouse on July 02, 2021, 05:08:52 AM
Hello, I have Optimus v2.3.1 on SMF 2.1 RC2. I noticed that when I share a link of my forum there is no preview of it.
I would install the latest version of Optimus but I see that it doesn't support SMF 2.1.
What's wrong?
What's the point of asking for support for something that clearly isn't supported?

Sorry, I'm afraid there is a misunderstanding.
Some months ago I upgraded my forum from 2.0.x to 2.1 RC2 and I keep installed only compatible mods.
Now I'm accessing to my packages after a lot of times and I see Optimus, so I supposed that at the time I upgraded it supported SMF 2.1. Am I wrong?
That's why I asked how to install an updated version of Optimus that supports SMF 2.1, since post previews is not working.
I hope it is clear now, sorry for my english.
Title: Re: Optimus
Post by: Kindred on July 14, 2021, 08:57:48 AM
Actually, Ninja -- Optimus *DOES* have a version that supports SMF 2.1


However, smartmouse, the version on the SMF mod site might not be that one.

You might need to get the 2.1 version from the author's github

https://github.com/dragomano/Optimus

Or --   Bugo might have included the updated version for 2.0 AND 2.1 into the packaged mod. 



However, SMartmouse...     if you are running SMF 2.1 RC2 -- you DESPERATELY need to update to RC4.   there have been literally THOUSANDS of commits since RC2
Title: Re: Optimus
Post by: smartmouse on July 14, 2021, 10:08:35 AM
Quote from: Kindred on July 14, 2021, 08:57:48 AM
Actually, Ninja -- Optimus *DOES* have a version that supports SMF 2.1


However, smartmouse, the version on the SMF mod site might not be that one.

You might need to get the 2.1 version from the author's github

https://github.com/dragomano/Optimus

Or --   Bugo might have included the updated version for 2.0 AND 2.1 into the packaged mod. 



However, SMartmouse...     if you are running SMF 2.1 RC2 -- you DESPERATELY need to update to RC4.   there have been literally THOUSANDS of commits since RC2

Thank you for your reply, it was very useful to make me to figure out the situation.
Anyway, despite message on github page says "P.S. The master branch contains the Optimus 2.x version for SMF 2.1 RC3+" I can't see any master branch :(
Title: Re: Optimus
Post by: Kindred on July 14, 2021, 12:34:17 PM
https://github.com/dragomano/Optimus/archive/refs/heads/smf20.zip
Title: Re: Optimus
Post by: smartmouse on July 14, 2021, 12:46:22 PM
Quote from: Kindred on July 14, 2021, 12:34:17 PM
https://github.com/dragomano/Optimus/archive/refs/heads/smf20.zip

Doesn't "20" stand for SMF version 2.0?
Title: Re: Optimus
Post by: Kindred on July 14, 2021, 12:48:34 PM
:D

yes, but according to the release note, the master branch (which is the default displayed there) contains both!

look at the package_info.xml file to be sure
Title: Re: Optimus
Post by: smartmouse on July 15, 2021, 05:54:57 AM
Quote from: Kindred on July 14, 2021, 12:48:34 PM
:D

yes, but according to the release note, the master branch (which is the default displayed there) contains both!

look at the package_info.xml file to be sure

The package_info.xml file is clear: SMF 2.1 is not supported.
Title: Re: Optimus
Post by: Ninja ZX-10RR on July 15, 2021, 11:57:44 AM
I think the only person who knows for sure is Bugo, so I'd rather wait for him to say something. He's generally very friendly and helpful :)
For the time being, however, I cannot find any reference to 2.1 so unless he specifically says otherwise it's not officially supported as I pointed out :(
Title: Re: Optimus
Post by: smartmouse on July 21, 2021, 03:37:04 AM
Quote from: Kindred on July 14, 2021, 08:57:48 AM
Actually, Ninja -- Optimus *DOES* have a version that supports SMF 2.1
Where can I get this version?

QuoteYou might need to get the 2.1 version from the author's github

https://github.com/dragomano/Optimus
No way: "Wait for the 2.1 Final. Unfortunately, at the current moment, I have no time, no funds, nor desire to continue this development"

https://github.com/dragomano/Optimus/issues/36#issuecomment-881225330

Quoteif you are running SMF 2.1 RC2 -- you DESPERATELY need to update to RC4.   there have been literally THOUSANDS of commits since RC2
Done, thank you ;)
Title: Re: Optimus
Post by: Ninja ZX-10RR on July 22, 2021, 02:04:02 PM
Poor guy got 44 pages thread, it's understandable :(
Title: Re: Optimus
Post by: Dr Web on October 24, 2021, 01:34:04 PM
Hi guys and girls. I need help urgent.

I installed a new smf forum about a week ago, installed a few mods, including pretty urls. Yesterday I installed this Optimus mod. Everything was working fine.

A few minutes ago, I noticed that a few categories/boards were not showing the correct url. For example the General Discussion standard category/board that already comes with smf when we install it, I changed to another name a few days ago. However, it was still showing as general discussion in the URL.

A couple other categories created with a name that I changed right after to another name I found it was better, were also showing the first chosen name. 

Example: the URL https://www.myforum.com/new-board-name was still showing https://www.myforum.com/general-discussion

First I thought it was a browser cache problem, so I cleaned the cookies and cache. The problem was still there.

So I thought I need to run the manutention on pretty urls panel. I did it, and now I have a blank page.

I see the url of my site on my browser but I don't see anything. I have a white page.

As I read that this mod may conflict with pretty urls mod, it was probably what happened?

I looked at my server for errors, and no errors there.

I see this:

documentation.
Latest web server error log messages:
No recent web server errors exist for your domain: XXXXXXXXXXXXX

Latest suEXEC event log messages:
No recent suEXEC events exist for your domain:XXXXXXXXXXXXX

I also noticed something weird since several days. Every time I want to change something in the forum admin panel, I need to try several times until it is accepted. I click the button and stays the same. Then I wait 10 seconds and try again, and the same. After a few tryes, sometimes after one or two minutes, for some reason it is finally accepted. I think this has to do with the changed categories not being changed in the URL.

I don't know why this is happening, but I am telling you so maybe someone knows what it is.

I am running SMF 2.0.18, core theme, and these are my server settings:

Database server:
    Server: Localhost via UNIX socket
    Server type: MariaDB
    Server connection: SSL is not being used Documentation
    Server version: 10.3.31-MariaDB-cll-lve - MariaDB Server
    Protocol version: 10
    User: xxxxxxxxxxxxxxxxx
    Server charset: xxxxxxxxxxxxxxxx

Web server:
    cpsrvd 11.98.0.9
    Database client version: libmysql - 5.6.43
    PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
    PHP version: 7.3.30

phpmyAdmin:
    Version information: 4.9.7

This is the code generated today on my .htaccess file exactly when I ran the manutention on pretty urls panel:

# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# https://www.smfhacks.com/prettyurls-seo-pro.php
# .htaccess file generated automatically on: October 24, 2021, 16:56

RewriteEngine on
RewriteBase /

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

More info: I have this Optimus mod installed, and also pretty urls, smfcontactpage, likeposts, StopSpammer_v2_4_0, ads management and WYSIWYGquickreply.
 
Any help in solving this big problem will be greatly appreciated  ;D
Title: Re: Optimus
Post by: shadav on October 24, 2021, 01:56:47 PM
Quote from: Dr Web on October 24, 2021, 01:34:04 PMHi guys and girls. I need help urgent.

I installed a new smf forum about a week ago, installed a few mods, including pretty urls. Yesterday I installed this Optimus mod. Everything was working fine.

A few minutes ago, I noticed that a few categories/boards were not showing the correct url. For example the General Discussion standard category/board that already comes with smf when we install it, I changed to another name a few days ago. However, it was still showing as general discussion in the URL.

A couple other categories created with a name that I changed right after to another name I found it was better, were also showing the first chosen name. 

Example: the URL https://www.myforum.com/new-board-name was still showing https://www.myforum.com/general-discussion

First I thought it was a browser cache problem, so I cleaned the cookies and cache. The problem was still there.

So I thought I need to run the manutention on pretty urls panel. I did it, and now I have a blank page.

I see the url of my site on my browser but I don't see anything. I have a white page.

As I read that this mod may conflict with pretty urls mod, it was probably what happened?

I looked at my server for errors, and no errors there.

I see this:

documentation.
Latest web server error log messages:
No recent web server errors exist for your domain: XXXXXXXXXXXXX

Latest suEXEC event log messages:
No recent suEXEC events exist for your domain:XXXXXXXXXXXXX

I also noticed something weird since several days. Every time I want to change something in the forum admin panel, I need to try several times until it is accepted. I click the button and stays the same. Then I wait 10 seconds and try again, and the same. After a few tryes, sometimes after one or two minutes, for some reason it is finally accepted. I think this has to do with the changed categories not being changed in the URL.

I don't know why this is happening, but I am telling you so maybe someone knows what it is.

I am running SMF 2.0.18, core theme, and these are my server settings:

Database server:
    Server: Localhost via UNIX socket
    Server type: MariaDB
    Server connection: SSL is not being used Documentation
    Server version: 10.3.31-MariaDB-cll-lve - MariaDB Server
    Protocol version: 10
    User: xxxxxxxxxxxxxxxxx
    Server charset: xxxxxxxxxxxxxxxx

Web server:
    cpsrvd 11.98.0.9
    Database client version: libmysql - 5.6.43
    PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
    PHP version: 7.3.30

phpmyAdmin:
    Version information: 4.9.7

This is the code generated today on my .htaccess file exactly when I ran the manutention on pretty urls panel:

# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# https://www.smfhacks.com/prettyurls-seo-pro.php
# .htaccess file generated automatically on: October 24, 2021, 16:56

RewriteEngine on
RewriteBase /

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

More info: I have this Optimus mod installed, and also pretty urls, smfcontactpage, likeposts, StopSpammer_v2_4_0, ads management and WYSIWYGquickreply.
 
Any help in solving this big problem will be greatly appreciated  ;D
please see thread here: https://www.simplemachines.org/community/index.php?topic=579404.0
where I originally moved your first post from this thread into it's own as this isn't really an issue with the optimus mod, it's party a pretty url issue
Title: Re: Optimus
Post by: Dr Web on October 24, 2021, 02:12:07 PM
You were so fast moving the topic that I thought I didn't press the post button  ;D  , so I posted it again.

I posted it here because I read a few pages of this thread, and I know these two mods conflict with each other, and this one was the last one I installed so I thought here would be the best place.

Ok,thanks. I will take a look at the new thread.
Title: Re: Optimus
Post by: Pause on December 30, 2021, 04:12:14 PM
Not a big deal since the underlying link itself is correct, but I just thought I should point out a slight error in the Base Settings page.

QuoteOne can discuss bugs and features of the mod at simplemachines.com (https://www.simplemachines.org/community/index.php?topic=422210.0).

Especially as the .com is owned by someone else doing something completely unrelated.

Since I'm already pointing out text errors on that page, you're also missing the 's' on 'thanks' in the text for the coffee link. :)
Title: Re: Optimus
Post by: gorbi on January 08, 2022, 02:21:31 PM
can you add an option to create a map with pretty links?
Title: Re: Optimus
Post by: Bugo on February 09, 2022, 08:49:33 PM
v2.10 (for SMF 2.1.0)
* Fixed found issues.
* Sitemap template is translatable now.
* Added managing of .htaccess.
* Added syntax highlighting for textareas in settings.
* Added IndexNow addon (for sponsors).
* Updated available settings.

If some addon occurs errors on your forum, and you do not use it — just remove addon file from Sources/Optimus/addons.
Title: Re: Optimus
Post by: Shades. on February 09, 2022, 10:47:42 PM
Hey this is great I love this mod and thank you for updating it! 8)

Just one question, how do I change the color for the highlighter in the code box when you select the codes?
#d9d9d9 It highlights the code but can't see the code itself. ???

Edit: I've searched thru all the css I could locate and couldn't find it anywhere.
Title: Re: Optimus
Post by: Bugo on February 09, 2022, 11:27:30 PM
It seems, I forgot to add a theme switcher.

As a temporary fix, open Sources/Optimus/Settings.php, find
addInlineCss('.CodeMirror {max-height: 24em; font-size: 1.4em; border: 1px solid #C5C5C5} .CodeMirror-line {z-index: auto !important}');and replace with
addInlineCss('.CodeMirror {max-height: 24em; font-size: 1.4em; border: 1px solid #C5C5C5}');
Title: Re: Optimus
Post by: Shades. on February 09, 2022, 11:49:55 PM
Awesome thanks! 8)

Just an FYI for anyone else the code is to be replaced with:

addInlineCss('.CodeMirror {max-height: 24em; font-size: 1.4em; border: 1px solid #C5C5C5}');
Ya accidently left '); off the end and I figured it out when I got an error 500. ;)
Title: Re: Optimus
Post by: @rjen on February 10, 2022, 09:01:30 AM
Quote from: Bugo on February 09, 2022, 08:49:33 PMv2.10 (for SMF 2.1.0)
* Fixed found issues.
* Sitemap template is translatable now.
* Added managing of .htaccess.
* Added syntax highlighting for textareas in settings.
* Added IndexNow addon (for sponsors).
* Updated available settings.

If some addon occurs errors on your forum, and you do not use it — just remove addon file from Sources/Optimus/addons.

Nice, find attached the updated dutch translation for this version...
Title: Re: Optimus
Post by: Massl on February 10, 2022, 10:25:46 AM
@Bugo thanks for the update!
I think there is a problem ... I upgraded from 2.9.4 to 2.10 and URLs in the sitemap have become 344, in the previous version they were 2439.
The settings are the same, why are over 2000 URLs gone?
Title: Re: Optimus
Post by: Bugo on February 10, 2022, 11:21:47 AM
Quote from: Massl on February 10, 2022, 10:25:46 AMI think there is a problem ... I upgraded from 2.9.4 to 2.10 and URLs in the sitemap have become 344, in the previous version they were 2439.
The settings are the same, why are over 2000 URLs gone?
I cannot know, compare sitemaps. In any case, these URLs will stay in the search index if they are available for spiders.
Title: Re: Optimus
Post by: Massl on February 10, 2022, 12:27:25 PM
Quote from: Bugo on February 10, 2022, 11:21:47 AMI cannot know, compare sitemaps.

It looks like it hangs in a 97 page thread, there are no errors ... how can I verify?
Thanks
Title: Re: Optimus
Post by: Massl on February 10, 2022, 03:32:30 PM
Sorry @Bugo , I can't edit my previous post...

It stops when threads exceed 30 pages and the option "Add ALL topic pages to the sitemap" is enabled.

I also noticed that I have to insert a year, before I used 0, higher than 1994 otherwise I get an error message.

(https://i.postimg.cc/RZCDZCNm/Immagine-2022-02-10-180943.png)

And this
(https://i.postimg.cc/02sG9tb1/smf.png)

Thanks  :)
Title: Re: Optimus
Post by: Bugo on February 10, 2022, 11:13:39 PM
That's right. I recommend not enabling the "Add ALL topic pages to the sitemap" option on large forums. You have to specify a minimum year because there were no forums in the zero year :)
Title: Re: Optimus
Post by: Massl on February 11, 2022, 02:47:56 AM
Quote from: Bugo on February 10, 2022, 11:13:39 PMThat's right. I recommend not enabling the "Add ALL topic pages to the sitemap" option on large forums.

Ah OK, than is it normal that it gets stuck with threads with many pages (more than 30) and doesn't continue with sitemap generation?
Title: Re: Optimus
Post by: Bugo on February 11, 2022, 05:32:08 AM
How many topics and posts on your forum? I need to create a similar test environment.
Title: Re: Optimus
Post by: Massl on February 11, 2022, 06:40:02 AM
2452 topics and 23000 posts, some topics have more than 50 pages...
Title: Re: Optimus
Post by: Bugo on February 11, 2022, 10:42:25 PM
v2.10.1
* Fixed found issues
* Added Dutch translation (thanks to @rjen)
* Added theme switcher for syntax highlighting
* Updated IndexNow addon

@Massl, now I will try to reproduce your case and find a solution.
Title: Re: Optimus
Post by: Bugo on February 14, 2022, 02:50:18 PM
v2.10.2
* Fixed issues related with sitemap generation for large topics
* Added an option to disable syntax highlighting in text areas
* Updated ExtraSettings addon
Title: Re: Optimus
Post by: @rjen on February 14, 2022, 03:31:32 PM
Bugo, I tried using the htaccess editor, just to find that it completely breaks my htaccess file...

Open htaccess and make no changes, then save it and it breaks my sye access completely...

It seems to strip all statements within < > tags...
such as <IfModule mod_security.c> and <IfModule mod_expires.c>

attached the .htaccess file before and after optimus 'broke' it...
Title: Re: Optimus
Post by: Bugo on February 14, 2022, 11:09:47 PM
Replace
op_filter('optimus_htaccess') with
trim($_POST['optimus_htaccess']) in Sources/Optimus/Settings.php
Title: Re: Optimus
Post by: @rjen on February 15, 2022, 01:06:30 AM
That fixes the issue.
Title: Re: Optimus
Post by: gevv on February 19, 2022, 03:42:07 AM
Hi,

QuoteDisplay the topic first message snippet as the meta-tag <strong>description</strong><br><span class="smalltext">Use <a href="https://custom.simplemachines.org/mods/index.php?mod=3012" target="_blank" rel="noopener">Topic Descriptions mod</a> to create short descriptions for topics.</span>

Topic Descriptions mod is not compatible with SMF 2.1.1

Allow a separate field for the topic description
This feature has been added. Is this statement no longer valid? or for old version SMF?
Title: Re: Optimus
Post by: Bugo on February 19, 2022, 04:20:26 AM
Optimus adds own optimus_description field into smf_topics table. So there is no need for the Topic Descriptions mod.
Title: Re: Optimus
Post by: gevv on February 19, 2022, 05:36:07 AM
Turkish translation
Title: Re: Optimus
Post by: smartmouse on March 02, 2022, 10:16:44 AM
Hello, any workaround to make it working with PHP 7.3?
Title: Re: Optimus
Post by: Dblog on March 03, 2022, 12:24:31 PM
is this feature possible in latest version for smf 2.1.1
https://www.simplemachines.org/community/index.php?msg=3202714
i dont see those options anymore
Title: Re: Optimus
Post by: Bugo on March 03, 2022, 12:45:03 PM
This feature is more simplified now, look into the basic settings.
Title: Re: Optimus
Post by: Dblog on March 03, 2022, 07:54:04 PM
i didnt see setting for page number inclusion anywhere
Title: Re: Optimus
Post by: Bugo on March 03, 2022, 09:10:19 PM
Page numbers - default feature for SMF 2.1, out of the box.
Title: Re: Optimus
Post by: Dblog on March 03, 2022, 09:26:21 PM
It works only in topic having multiple pages. How about a board with multiple topics in multiple pages. It doesnt show page numbers there.
Also its like topic_name - page # - board_name - forum-name
how to shift page # position

In boards, its like board_name - forum_name in all pages
Title: Re: Optimus
Post by: Bugo on March 03, 2022, 11:08:45 PM
https://www.simplemachines.org/community/index.php?topic=580768.msg4111907#msg4111907
Title: Re: Optimus
Post by: engrz on March 17, 2022, 02:00:45 AM
Hello

Im using pretty urls mod and optimus mod. all urls are seo friendly using pretty urls mod but urls in sitemap are not seo friendly.

I need your help to enable pretty urls on all forum using optimus mod so that i can use sitemap in google console.


Thank you
Title: Re: Optimus
Post by: Bugo on March 17, 2022, 02:24:13 AM
You need to install a special addon (https://www.buymeacoffee.com/bugo/all-premium-addons-optimus) for this.
Title: Re: Optimus
Post by: engrz on March 17, 2022, 02:50:51 AM
Quote from: Bugo on March 17, 2022, 02:24:13 AMYou need to install a special addon (https://www.buymeacoffee.com/bugo/all-premium-addons-optimus) for this.

Thank you for the quick reply.

I just signed up but unable to see the special addon to buy for optimus seo on given link.
Title: Re: Optimus
Post by: Bugo on March 18, 2022, 08:14:47 AM
It is not for sale, but is distributed as a bonus to sponsors.
Title: Re: Optimus
Post by: guldam on March 21, 2022, 01:52:08 PM
Quote from: Bugo on March 18, 2022, 08:14:47 AMIt is not for sale, but is distributed as a bonus to sponsors.

I have the same issue. Hmmmmm. Doesn't have the effect of making me want to sponsor...
Title: Re: Optimus
Post by: Hotcmel on April 06, 2022, 08:46:37 AM
Hello, I installed the optimus mod on a 2.1 version, I can't get my sitemap, I have a 404 not found error, do you have an idea? thank you
Title: Re: Optimus
Post by: Bugo on April 06, 2022, 12:42:43 PM
Apparently, for some reason, the file was not created at the root of the forum. See server logs - maybe it's about file permissions. Try to create an empty sitemap.xml and set permissions at 777 for it. Then go to the sitemap tab settings and click the Save button.
Title: Re: Optimus
Post by: DarkBrew on April 07, 2022, 11:22:52 PM
Hi, Bugo

Optimus is extremely useful mod but I'm would like to know

How to add 2-4 phase keyword ?

example :

I'm need to add keyword "Grigor Dimitrov" and "Grigor Dimitrov Forehand"

OPTIMUS allow only 1 Phase keyword.

optimus-1.png

optimus-2.png

optimus-3.png 

and keyword will show only 1 phase keyword.

Thank you for your reply  ;)
Title: Re: Optimus
Post by: Bugo on April 08, 2022, 01:01:59 AM
Well, that's why it's called "keywords", not "keyphrases".
Use descriptions for that.
Title: Re: Optimus
Post by: Shades. on April 20, 2022, 09:51:41 AM
I see this was updated...

What is the difference from v2.10.4 to v2.10.5? Trying to figure out if I need to upgrade or not!?

(Sorry, I couldn't find a changelog!)

Thanks,
Shades 8)
Title: Re: Optimus
Post by: Bugo on April 20, 2022, 10:06:13 AM
Fixed various little things, if everything works with the current version, you don't need to update.
Title: Re: Optimus
Post by: smartmouse on April 27, 2022, 09:16:57 AM
Hello, I have installed latest 2.10.5 version on SMF v2.1.1... but after saving settings I can't see any friendly url. What could be wrong?

Thank you.
Title: Re: Optimus
Post by: Bugo on April 27, 2022, 11:07:26 AM
Where is it written that they should be?
Title: Re: Optimus
Post by: smartmouse on April 27, 2022, 11:25:57 AM
Quote from: Bugo on April 27, 2022, 11:07:26 AMWhere is it written that they should be?

Ops...
Title: Re: Optimus
Post by: nishuFun on May 04, 2022, 05:40:00 AM
very first mod installed in very fresh 2.1.1

and after on saving, an edited topic got this error

2: Undefined array key "optimus_keywords"optimus keyword error.jpg


also, on editing topic, keywords were  not listed
Title: Re: Optimus
Post by: Bugo on May 04, 2022, 10:11:59 PM
Are optimus_keywords and optimus_log_keywords tables exist in your database? If not, try to reinstall the mod.
Title: Re: Optimus
Post by: nishuFun on May 05, 2022, 03:06:02 AM
Quote from: Bugo on May 04, 2022, 10:11:59 PMAre optimus_keywords and optimus_log_keywords tables exist in your database? If not, try to reinstall the mod.

yes, both tables exists in db with newly generated rows.


i reinstalled mod, tried to edit topic, but old keywords were empty.
on saving, gave same error.

checked db again and keywords were there in db.
Title: Re: Optimus
Post by: Aaron10 on May 25, 2022, 01:18:27 AM
Possible to add EhPortal pages to the sitemap also?

EDIT: I just saw you made a portal mod for 2.1 also, which has SEO built into it, would rather not switch over though now that I have everything setup.
Title: Re: Optimus
Post by: Bugo on May 25, 2022, 06:14:30 AM
Optimus has long supported EhPortal and adds pages accessible for guests to the sitemap. If pages are inaccessible to guests, they will not be added to the sitemap.
Title: Re: Optimus
Post by: Aaron10 on May 25, 2022, 04:32:11 PM
HM okay so, I set it up on a test forum and it does indeed list the custom page from Ehportal. In addition, prettyURLs is working on the test forum but not my actual forum. Do I need to set something in .htaccess or will it maybe fix it next time it updates?
Title: Re: Optimus
Post by: Bugo on May 25, 2022, 10:26:27 PM
Did you install the PrettyURLs addon (https://www.buymeacoffee.com/bugo/all-premium-addons-optimus) for Optimus?
Title: Re: Optimus
Post by: Aaron10 on May 26, 2022, 12:47:49 AM
No, and yet, its working on the older/test forum (running SMF RC2, PrettyURLs 2.3, Optimus 2.8.3 [10.05.20]). All links are pretty and its showing my custom pages fine.
Title: Re: Optimus
Post by: Bugo on May 26, 2022, 02:32:11 AM
I don't support the old versions.
Title: Re: Optimus
Post by: Aaron10 on May 26, 2022, 03:40:17 PM
I see. So if I'm understanding right 3euros for the Addon? Is this a one time payment? Also, I'm having the same issue nishuFun has with adding keywords to topics:

Undefined array key "optimus_keywords"

Thanks
Title: Re: Optimus
Post by: Bugo on May 26, 2022, 10:20:45 PM
Quote from: Aaron10 on May 26, 2022, 03:40:17 PMI see. So if I'm understanding right 3euros for the Addon? Is this a one time payment?
No, wrong. Addons are not for sale, they are provided as a bonus for donations. All at once (more than 1 addon).

Quote from: Aaron10 on May 26, 2022, 03:40:17 PMUndefined array key "optimus_keywords"
This bug will be fixed in the next version, which will be released when the German and Italian translations are completed.
Title: Re: Optimus
Post by: Shades. on May 26, 2022, 10:27:54 PM
Quote from: Bugo on May 26, 2022, 10:20:45 PMNo, wrong. Addons are not for sale, they are provided as a bonus for donations. All at once (more than 1 addon).
And worth every bit of it plus plus! 8)
Title: Re: Optimus
Post by: Aaron10 on May 29, 2022, 10:35:57 AM
Okay PrettyURLs working now, still not showing my Ehportal page (I only have one not a big deal really). Thanks for your work.

Also small request; for topic keywords (when fixed) can we have the option to have them at the bottom of a topic instead of the top?
Title: Re: Optimus
Post by: footballhd720p on June 02, 2022, 12:09:31 PM
is the mod have hashtag function?
Title: Re: Optimus
Post by: Kindred on June 02, 2022, 02:08:06 PM
Quote from: footballhd720p on June 02, 2022, 12:09:31 PMis the mod have hashtag function?

no
Title: Re: Optimus
Post by: Jotade29 on June 04, 2022, 11:06:58 PM
A question about the mod... More precisely about robots.txt. Currently I have Optimus + Pretty URL ( @SMFHacks.com Team - https://custom.simplemachines.org/index.php?mod=636), Optimus suggests a certain robots.txt, and I wanted to know if there is any rule to add with the pretty url mod, since that changes the urls... Thnxx @Bugo
Title: Re: Optimus
Post by: Bugo on June 05, 2022, 10:13:13 AM
Optimus suggests just example rules that are not mandatory. You can specify your own rules, or you can search for a set of rules on this forum.
Title: Re: Optimus
Post by: Ibues on July 27, 2022, 08:51:55 PM
Hello,

when I install this mod my forum have a problem with charge of css/design, really I don't why happens.
The error is in the first charge, later work normal, in incognite mod browser happens in each new session/charge (first time with browser opened).

Added an image for you can know better that I mean, sorry for my english because it's limited.

Really I want to use this mod because I heard is the better mod for SEO, but if I don't get solve or know why happens it I'll not install this because the problem continue when mod is uninstalled...

Thank you and I hope you can help me.
Title: Re: Optimus
Post by: Bugo on July 28, 2022, 12:20:31 AM
Can you provide screenshots of all your settings?
Title: Re: Optimus
Post by: Ibues on July 28, 2022, 12:09:54 PM
Quote from: Bugo on July 28, 2022, 12:20:31 AMCan you provide screenshots of all your settings?

Oh, sorry, I unistalled the Optimus mod and I installed again SMF 2.1.2 because the forum was new and I don't knew solve the problem, then I prefered start again of zero.

Anyway if you tell me options I can remember sure that I marked or puted and not marked or not puted...

I only touched options of name, meta-tags (this page), the rest of pages I think remember don't touch nothing but now not can asecure 100% this if I don't see pages of the mod.

At the same time, I had Pretty Urls with option change name of boards and profiles (I don't know if this can generate problem with Optimus).
Title: Re: Optimus
Post by: Diego Andrés on July 28, 2022, 12:28:44 PM
You should *try* to reproduce the issue again so you can make sure Optimus is causing it, or Optimus + Pretty Urls, otherwise it's difficult to guess what happened.
Title: Re: Optimus
Post by: Ibues on July 28, 2022, 12:34:36 PM
Quote from: Diego Andrés on July 28, 2022, 12:28:44 PMYou should *try* to reproduce the issue again so you can make sure Optimus is causing it, or Optimus + Pretty Urls, otherwise it's difficult to guess what happened.

Yes, I think need a forum for do test of all this things, because I install all in the main and it's a problem really.

About options, I touched "base settings" and nothing more. Also because the rest of options I don't know touch.

I know it's relationed with Optimus because in this last time don't installed Optimus and the issue isnt happen.
Title: Re: Optimus
Post by: engrz on August 24, 2022, 12:36:27 AM
Hello

Your website is not accepting Paypal payment. i have to pay using paypal.
Title: Re: Optimus
Post by: Bugo on August 24, 2022, 12:48:25 AM
Quote from: engrz on August 24, 2022, 12:36:27 AMHello

Your website is not accepting Paypal payment. i have to pay using paypal.
Use https://ko-fi.com/dragomano as an alternative, thanks.
Title: Re: Optimus
Post by: engrz on August 24, 2022, 12:54:06 AM
QuoteUse https://ko-fi.com/dragomano as an alternative, thanks.


Can i get Optimus special version from this website? as im looking for pretty urls in optimus.
Title: Re: Optimus
Post by: Bugo on August 24, 2022, 12:55:41 AM
I will send you a link via PM, don't worry.
Title: Re: Optimus
Post by: engrz on August 24, 2022, 01:04:35 AM
it is declined the payment two times using paypal. please see screenshot.
Title: Re: Optimus
Post by: Bugo on August 24, 2022, 02:29:53 AM
Have you tried contacting PayPal support?
Title: Re: Optimus
Post by: engrz on August 24, 2022, 02:53:48 AM
Quote from: Bugo on August 24, 2022, 02:29:53 AMHave you tried contacting PayPal support?

No, I didnt tried to connect paypal support. can you give me your paypal email id so that i can send it to you directly?
Title: Re: Optimus
Post by: bod22 on September 17, 2022, 06:11:05 AM
I can't find version for my forum. Does it work with SMF 2.0.19 or only 2.1 and above?
Title: Re: Optimus
Post by: gorbi on September 17, 2022, 07:27:15 AM
2.1 only
Title: Re: Optimus
Post by: bod22 on September 18, 2022, 07:17:16 AM
No chance of getting an old version for 2.0.19? It should still work. Perhaps someone has it?
Title: Re: Optimus
Post by: @rjen on September 18, 2022, 09:22:44 AM
Quote from: bod22 on September 18, 2022, 07:17:16 AMNo chance of getting an old version for 2.0.19? It should still work. Perhaps someone has it?

Find attached the old 2.0 version...
Mind you: no guarantees or support...optimus_2.6.6_smf20.zip
Title: Re: Optimus
Post by: gorbi on September 18, 2022, 12:02:58 PM
I have 2.7.4 for 2.0.19
Title: Re: Optimus
Post by: bod22 on September 23, 2022, 12:22:17 PM
Quote from: @rjen on September 18, 2022, 09:22:44 AM
Quote from: bod22 on September 18, 2022, 07:17:16 AMNo chance of getting an old version for 2.0.19? It should still work. Perhaps someone has it?

Find attached the old 2.0 version...
Mind you: no guarantees or support...optimus_2.6.6_smf20.zip

Thank you! I'll have a look at it.
Title: Re: Optimus
Post by: gorbi on September 25, 2022, 06:06:09 AM
2.7.4
Title: Re: Optimus
Post by: bod22 on September 25, 2022, 07:22:54 AM
Thank you ;)
Title: Re: Optimus
Post by: allbatros on October 09, 2022, 06:11:56 PM
Can I get an extension so it can include pretty URLs links into sitemap.xml?
Title: Re: Optimus
Post by: -Rock Lee- on October 10, 2022, 09:27:31 PM
Quote from: allbatros on October 09, 2022, 06:11:56 PMCan I get an extension so it can include pretty URLs links into sitemap.xml?

Of course you can only that it is something paid, I leave you the bugo quote.

Quote from: Bugo on May 25, 2022, 10:26:27 PMDid you install the PrettyURLs addon (https://www.buymeacoffee.com/bugo/all-premium-addons-optimus) for Optimus?
Title: Re: Optimus
Post by: allbatros on October 11, 2022, 02:57:25 AM
thanks!
Title: Re: Optimus
Post by: Shades. on October 28, 2022, 06:21:20 PM
SMF 2.1.2
Optimus 2.10.6

Was trying to enter a topic description on a new site and it cut off the text that was too long as it should but give me an error when I click save, when normally it would just cut off the text and continue on with the save.

QuoteError
Type of error
Database
Error message
Database Error: Data too long for column 'optimus_description' at row 1
File
/home/******/public_html/******/Sources/Optimus/Topics.php
Line
196
URL of page causing the error
https://******.com/?action=post2;start=0;msg=28;bd516af97=e00cc50f09bb95cbc835225a3ef4a096;board=26

Backtrace information
#0: smf_db_error()
Called from /home/******/public_html/******/Sources/Subs-Db-mysql.php on line 494
#1: smf_db_query()
Called from /home/******/public_html/******/Sources/Optimus/Topics.php on line 196
#2: modifyDescription()
Called from /home/******/public_html/******/Sources/Optimus/Topics.php on line 127
#3: modifyPost()
Called from /home/******/public_html/******/Sources/Subs.php on line 5868
#4: call_integration_hook()
Called from /home/******/public_html/******/Sources/Subs-Post.php on line 2288
#5: modifyPost()
Called from /home/******/public_html/******/Sources/Post.php on line 2347
#6: Post2()
Called from /home/******/public_html/******/index.php on line 192
Title: Re: Optimus
Post by: Shades. on October 29, 2022, 12:38:32 PM
Just tried this again on a fresh 2.1.2 install and got the same error. Test went fine while creating the topic with the topic description and posted with no errors, but when I went back to edit the post and entered the same info in the topic description box and clicked save I immediately got the error:

QuoteData too long for column 'optimus_description' at row 1
File: /home/******/public_html/******/Sources/Optimus/Topics.php
Line: 196

Try entering this in topic description, save and then go back and edit with the same info below and see if it happens to you:

QuoteSummoned from an ashram in Tibet, Ace finds himself on a perilous journey into the jungles of Africa to find Shikaka, the missing sacred animal of the friendly Wachati tribe. He must accomplish this before the wedding of the Wachati's Princess to the prince of the warrior Wachootoos. If Ace fails, the result will be a vicious tribal war.

BTW, this is on a fresh install of SMF 2.1.2 and no optimus addons or any other mods. ;)
Title: Re: Optimus
Post by: Bugo on October 29, 2022, 11:44:20 PM
There are 2 quick solutions:

1) Open Topics.php, replace
'description'   => shorten_subject($description, 252),'description'   => shorten_subject($description, 200),
or

2) Go to your database, find smf_topics table, optimus_description column and change "VARCHAR" type into "TEXT"
Title: Re: Optimus
Post by: Shades. on October 29, 2022, 11:58:06 PM
Quote from: Bugo on October 29, 2022, 11:44:20 PM2) Go to your database, find smf_topics table, optimus_description column and change "VARCHAR" type into "TEXT"
The second option worked perfectly, thank you! 8)
Title: Re: Optimus
Post by: Speed King on November 11, 2022, 11:08:40 PM
Is it possible keywords to be displayed on every topic's page?
Title: Re: Optimus
Post by: Bugo on November 13, 2022, 06:03:56 AM
Quote from: Speed King on November 11, 2022, 11:08:40 PMIs it possible keywords to be displayed on every topic's page?
Yes, it's possible. Sources/Optimus/Keywords.php, prepareDisplayContext function should look like this - https://codeshare.io/X89wJj
Title: Re: Optimus
Post by: thebeacon07 on December 04, 2022, 05:45:41 AM
Actually, the mode isn't rebuilding the sitemap with the frequency we set as daily. is there any cronjob need to set to run the sitemap built?
Title: Re: Optimus
Post by: Speed King on December 23, 2022, 01:55:26 AM
Installing Optimus 2.10.6 on SMF 2.1.3 causes destroying of table layout in section Admin => Maintenance => Integration Hooks

Click => (https://i.postimg.cc/SjMxtfJk/2022-12-23.png) (https://postimg.cc/SjMxtfJk)
Title: Re: Optimus
Post by: -Rock Lee- on December 24, 2022, 12:22:48 PM
Quote from: Bugo on April 06, 2022, 12:42:43 PMApparently, for some reason, the file was not created at the root of the forum. See server logs - maybe it's about file permissions. Try to create an empty sitemap.xml and set permissions at 777 for it. Then go to the sitemap tab settings and click the Save button.

I tried to do it as you say in the quote but it doesn't generate the .xml file, I even tried to do it in localhost by adding it doesn't generate any errors, I even use a sitemap generated a while ago, it works but it doesn't update it, any possible ideas @Bugo?


Regards!

Ah sorry I add that it is a smf 2.1.3 with PHP 8.1 and the mod is version 2.10.5
Title: Re: Optimus
Post by: Bugo on December 26, 2022, 06:48:11 AM
@Speed King, it is obvious that you are using a non-standard theme.

@-Rock Lee-, the sitemap update task may have been removed from the database during the SMF update process. Go to the map settings page, disable it, save the settings, and then re-enable its creation.
Title: Re: Optimus
Post by: -Rock Lee- on December 26, 2022, 09:16:11 AM
It uses server resources, it takes a while but it generates the same sitemap again as if it didn't take new messages into account, it's weird I'll do more tests if it's on the host side because it doesn't generate any errors because the sitemap is generated and does all the work but it does not reflect it.


Regards!

Add: The only error that appears to me is [25-Dec-2022 21:30:31 America/Argentina/Buenos_Aires] PHP Warning: Trying to access array offset on value of type null in /home/public_html/Sources/Optimus/addons/IndexNow/IndexNow.php on line 133 but has no relation to current
Title: Re: Optimus
Post by: cpf on February 08, 2023, 06:06:08 PM
Is this compatible with 2.1.3?
Title: Re: Optimus
Post by: Diego Andrés on February 08, 2023, 06:36:52 PM
Yes
Title: Re: Optimus
Post by: Julius_2000 on February 09, 2023, 06:17:27 AM
Hi,

I noticed that the meta description for my forum is not shown in Facebook. All I get is a repeated forum name in the meta card. However, in google and elsewhere it's shown just fine. Is that a FB specific issue? Can anyone confirm this behavior?
Title: Re: Optimus
Post by: Julius_2000 on February 25, 2023, 06:37:39 AM
Quote from: Julius_2000 on February 09, 2023, 06:17:27 AMHi,

I noticed that the meta description for my forum is not shown in Facebook. All I get is a repeated forum name (sic: Forum Homepage title) in the meta card. However, in google and elsewhere it's shown just fine. Is that a FB specific issue? Can anyone confirm this behavior?

Need to bump this. Seems like Facebook doesn't recognize the meta tag, even though it should be there (maybe it's because of this "prefix" tag before property="og.description"?).

I also would like to add that using the Optimus meta description for the forum somehow overwrites the meta tags  for each individual board. At least on sites like HeyMeta or the official Facebook debugger I would only get the general forum description.
Title: Re: Optimus
Post by: swstarone on March 08, 2023, 02:21:28 PM
How to add 2-4 phase keyword ?
Title: Re: Optimus
Post by: Bugo on March 08, 2023, 10:50:03 PM
Quote from: swstarone on March 08, 2023, 02:21:28 PMHow to add 2-4 phase keyword ?
Sources/Optimus/Keywords.php, find
tokenSeparators: [",", " "],
and replace with
tokenSeparators: [","],
Title: Re: Optimus
Post by: Shades. on March 09, 2023, 02:29:13 PM
Quote from: Bugo on March 08, 2023, 10:50:03 PM
Quote from: swstarone on March 08, 2023, 02:21:28 PMHow to add 2-4 phase keyword ?
Sources/Optimus/Keywords.php, find
tokenSeparators: [",", " "],
and replace with
tokenSeparators: [","],

Maybe a dumb question but what does "2-4 phase keyword" mean? :o
Title: Re: Optimus
Post by: Bugo on March 09, 2023, 10:00:02 PM
I think what was meant was one sentence instead of one word.
Title: Re: Optimus
Post by: Butiks on March 17, 2023, 01:10:48 PM
Dear @Bugo how to fix that the form for adding seo keyword is not displayed?
SMF (Default theme) : v2.1.3
OPTIMUS: v2.11

Main problem - form not work!
(https://i.imgur.com/t3ILaOk.png)

Tables in db, ok.
(https://i.imgur.com/ZMdQbT9.png)

Source html code (css path)
(https://i.imgur.com/SZUWLUM.png)

Source html code (js path)
(https://i.imgur.com/oB2T4tv.png)

HTML inspect
(https://i.imgur.com/zBGqiZ3.png)
Title: Re: Optimus
Post by: Bugo on March 17, 2023, 01:19:11 PM
Is jQuery loading? Are there any errors in the browser console?
Title: Re: Optimus
Post by: Butiks on March 17, 2023, 01:39:24 PM
Quote from: Bugo on March 17, 2023, 01:19:11 PMIs jQuery loading? Are there any errors in the browser console?
Mozilla\Chrome no errors in console.

All names jQuuery loaded:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" type="text/javascript"></script>
<script src="../Themes/default/scripts/jquery.sceditor.bbcode.min.js" type="text/javascript"></script>
<script src="../Themes/default/scripts/jquery.caret.min.js" defer type="text/javascript"></script>
<script src="../Themes/default/scripts/jquery.atwho.min.js" defer type="text/javascript"></script>
<script src="../Themes/default/scripts/dropzone.min.js?smf213_1679072520" defer type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/select2@4/dist/js/select2.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/select2@4/dist/js/i18n/ru.js" type="text/javascript"></script>
<script src="../Themes/default/scripts/minified_c53dsgthc2e2371595ed9d8e.js" type="text/javascript"></script>
<script src="../Themes/default/scripts/minified_65f3f0c8dfrtdfgh52f67b7.js" defer type="text/javascript"></script>
Title: Re: Optimus
Post by: Bugo on March 17, 2023, 04:07:43 PM
If you have not made any changes to the files, then one of the scripts is not loading and this is the problem. Try opening the links https://cdn.jsdelivr.net/npm/select2@4/dist/js/select2.min.js and https://cdn.jsdelivr.net/npm/select2@4/dist/css/select2.min.css in your browser, do they load? Try to test the modification on an own forum on a local server.
Title: Re: Optimus
Post by: Butiks on March 17, 2023, 07:36:12 PM
Quote from: Bugo on March 17, 2023, 04:07:43 PMIf you have not made any changes to the files, then one of the scripts is not loading and this is the problem. Try opening the links https://cdn.jsdelivr.net/npm/select2@4/dist/js/select2.min.js and https://cdn.jsdelivr.net/npm/select2@4/dist/css/select2.min.css in your browser, do they load? Try to test the modification on an own forum on a local server.
I haven't made any manual changes before. But only now I have added two links forcibly.  :)


Added to ../default/index.template.php 2 lines
(https://i.imgur.com/ngNhZhB.png)

../js/select2.min.js work in browser
(https://i.imgur.com/KTrgndP.png)

../css/select2.min.css work in browser
(https://i.imgur.com/91Sh23h.png)
Title: Re: Optimus
Post by: Butiks on March 18, 2023, 10:01:58 AM
Fixed!

Re upload to local webserver, and reinstall mod
Title: Re: Optimus
Post by: Butiks on March 28, 2023, 11:21:04 AM
@Bugo
Please, add to the description of the mod - if Cloudflare is connected, then it is necessary to disable the
Speed -> Optimization -> Rocket Loader ™ setting there.

(https://i.imgur.com/bVKCLX0.png)

The problem with the "meta keywords" field (https://www.simplemachines.org/community/index.php?msg=4148118) on my forum (on a webhost) was due to this CloudFlare setting.
Title: Re: Optimus
Post by: Bugo on March 28, 2023, 12:49:07 PM
Interesting, it will be necessary to test the work with this service.
Title: Re: Optimus
Post by: Bugo on March 28, 2023, 01:50:41 PM
Try to enable this Rocket Loader again and replace in Sources/Optimus/Keywords.php
loadJavaScriptFile('https://cdn.jsdelivr.net/npm/select2@4/dist/js/select2.min.js', array('external' => true));
loadJavaScriptFile('https://cdn.jsdelivr.net/npm/select2@4/dist/js/i18n/' . $txt['lang_dictionary'] . '.js', array('external' => true));
with
loadJavaScriptFile('https://cdn.jsdelivr.net/npm/select2@4/dist/js/select2.min.js', array('external' => true, 'attributes' => array('data-cfasync' => "false")));
loadJavaScriptFile('https://cdn.jsdelivr.net/npm/select2@4/dist/js/i18n/' . $txt['lang_dictionary'] . '.js', array('external' => true, 'attributes' => array('data-cfasync' => "false")));
Title: Re: Optimus
Post by: Butiks on March 29, 2023, 07:03:52 PM
Quote from: Bugo on March 28, 2023, 01:50:41 PMTry to enable this Rocket Loader again and replace in Sources/Optimus/Keywords.php
loadJavaScriptFile('https://cdn.jsdelivr.net/npm/select2@4/dist/js/select2.min.js', array('external' => true));
loadJavaScriptFile('https://cdn.jsdelivr.net/npm/select2@4/dist/js/i18n/' . $txt['lang_dictionary'] . '.js', array('external' => true));
with
loadJavaScriptFile('https://cdn.jsdelivr.net/npm/select2@4/dist/js/select2.min.js', array('external' => true, 'attributes' => array('data-cfasync' => "false")));
loadJavaScriptFile('https://cdn.jsdelivr.net/npm/select2@4/dist/js/i18n/' . $txt['lang_dictionary'] . '.js', array('external' => true, 'attributes' => array('data-cfasync' => "false")));

Changed.
Cloudflare Rocket ON. Form keyword SEO is hidden  again trouble.
Cloudflare Rocket OFF. Form keyword SEO visible is ok  :)
Title: Re: Optimus
Post by: Bugo on March 29, 2023, 11:44:19 PM
Ok, then try to test with this updated file.
Title: Re: Optimus
Post by: Butiks on March 30, 2023, 08:49:54 PM
Quote from: Bugo on March 29, 2023, 11:44:19 PMOk, then try to test with this updated file.

Replaced the file, again the same as before.
QuoteCloudflare Rocket ON. Form keyword SEO is hidden  again trouble.
Cloudflare Rocket OFF. Form keyword SEO visible is ok


In the screenshot, the console error when Cloudflare Rocket ON

(https://i.imgur.com/SPh1n0u.png)
Title: Re: Optimus
Post by: Bugo on March 30, 2023, 10:52:02 PM
So, this Rocket Loader is blocking some other scripts. And for every script that needs to load to bypass the rules, you will have to manually add the attribute data-cfasync="false" (https://developers.cloudflare.com/fundamentals/speed/rocket-loader/ignore-javascripts/). But you are unlikely to do that, so it's easier to disable the Rocket Loader :)
Title: Re: Optimus
Post by: shawnb61 on March 30, 2023, 11:00:39 PM
Quote from: Bugo on March 30, 2023, 10:52:02 PMSo, this Rocket Loader is blocking some other scripts. And for every script that needs to load to bypass the rules, you will have to manually add the attribute data-cfasync="false" (https://developers.cloudflare.com/fundamentals/speed/rocket-loader/ignore-javascripts/). But you are unlikely to do that, so it's easier to disable the Rocket Loader :)

FYI - we've seen this before - where Rocket Loader interferes with SMF javascript.  In the past, the workaround was to disable it.
https://www.simplemachines.org/community/index.php?msg=4076917
Title: Re: Optimus
Post by: blackhawk10 on April 03, 2023, 09:50:29 PM
Hi all,

I just installed this mod and i love it. im having one problem though. When i click  the sitemap link
on the footer, sometimes the map shows, and sometimes the page is blank. Any ideas?

Im using the Steyle_V1 theme.

thanks
Title: Re: Optimus
Post by: webtiryaki on April 16, 2023, 05:20:15 AM
Sitemap white page issue?

Hello
Mods I use
1 Google Analytics Code   1.6.1   
2 Pretty URLs 2.5.1c   
3 SMF Trader System 3.0.2   
4 Optimus 2.11   

Site url https://f1wm.net/index.php

https://f1wm.net/sitemap.xml
PHP version: 8.0.28, MySQL version: 10.5.19-MariaDB.

sitemap.png
Title: Re: Optimus
Post by: Bugo on April 16, 2023, 07:00:25 AM
Try to deactivate/activate again. Then repeat with disabled Pretty URLs.

There seems to be no problem with the sitemap links, but for some reason the style sheet for it is not loaded.

Title: Re: Optimus
Post by: Lazarus™ on May 06, 2023, 03:08:06 AM
@Bugo:

I'am using Optimus V2.11 on SMF V2.1.3

So i wan't to have Optimus and PrettyURL working. I have heard that i need a extra "Plugin" from you.
What is the way to become this Addon ?

Thank you!
Title: Re: Optimus
Post by: Bugo on May 06, 2023, 03:18:28 AM
Quote from: Lazarus™ on May 06, 2023, 03:08:06 AM@Bugo:

I'am using Optimus V2.11 on SMF V2.1.3

So i wan't to have Optimus and PrettyURL working. I have heard that i need a extra "Plugin" from you.
What is the way to become this Addon ?

Thank you!
Currently it is provided as a present for sponsors (https://www.buymeacoffee.com/bugo/all-premium-addons-optimus), without any garanties.
Title: Re: Optimus
Post by: MartyHunter on July 03, 2023, 10:13:44 AM
Hi, only just realised this thread is for question/support on this (excellent) mod!

I have just installed and have an issue. I chose to pull the first post image for OG tags. It works, IF there is an image in the first post of a topic, but if not, it shows a blank "image missing" when I use OG preview tools. I hoped it would default to the board's default OG image when no first post image is present.
Any ideas? thanks

PS example: https://www.opengraph.xyz/url/https%3A%2F%2Fforum.thehunterslife.com%2Findex.php%3Ftopic%3D21065.0

(P.P.S. I do have the settings correct to show the default board OG image. If I turn off the setting to use first post image, that image does work in preview tools)
Title: Re: Optimus
Post by: Bugo on July 03, 2023, 11:45:12 PM
File Sources/Optimus/Topics.php, find this code
        // Looking for an image in the text of the topic first message
        if (empty($context['optimus_og_image']) && ! empty($context['topicinfo']['topic_first_message'])) {
            $image = preg_match('/\[img.*]([^]\[]+)\[\/img]/U', $context['topicinfo']['topic_first_message'], $value);
            $settings['og_image'] = $image ? array_pop($value) : null;
        }
and replace with
        // Looking for an image in the text of the topic first message
        if (empty($context['optimus_og_image']) && ! empty($context['topicinfo']['topic_first_message'])) {
            $image = preg_match('/\[img.*]([^]\[]+)\[\/img]/U', $context['topicinfo']['topic_first_message'], $value);
            $settings['og_image'] = $image ? array_pop($value) : $settings['og_image'];
        }
Title: Re: Optimus
Post by: MartyHunter on July 07, 2023, 08:30:50 AM
Thanks very much, will try that
Title: Re: Optimus
Post by: jacbier on July 20, 2023, 11:11:22 AM
Where is the sitemap saved? I can't find it with my ftp program.
I am using SMF 2.1.4 and Optimus 2.12.
Title: Re: Optimus
Post by: Julius_2000 on July 22, 2023, 04:36:04 PM
Shouldn't it be located in root?
Title: Re: Optimus
Post by: jacbier on July 22, 2023, 04:52:01 PM
Quote from: Julius_2000 on July 22, 2023, 04:36:04 PMShouldn't it be located in root?

It took a little longer for the sitemap to be created. It is now in the root.
Sorry I didn't report this back in this topic.
Title: Re: Optimus
Post by: Butiks on August 30, 2023, 08:54:44 PM
Hello @Bugo,

Could you please advise on how to configure or edit the script (PHP) in the Optimus module? I need to remove index.php from all forum topic links in ../sitemap_0.xml.

P.S. This is related to the fact that I have removed index.php from all links on my forum, as mentioned here: https://www.simplemachines.org/community/index.php?topic=146969.msg4156008#msg4156008.
Title: Re: Optimus
Post by: Bugo on August 31, 2023, 03:28:48 AM
You can do a small addon for that.

Create a file \Sources\Optimus\addons\ChangeSitemap.php with this content:
Code (php) Select
<?php

namespace Bugo\Optimus\Addons;

/**
 * ChangeSitemap.php
 *
 * @package Optimus
 */

if (! defined('SMF'))
    die(
'No direct access...');

class 
ChangeSitemap
{
    public function 
__construct()
    {
        
add_integration_function('integrate_optimus_sitemap_rewrite_content'__CLASS__ '::optimusSitemapRewriteContent'false__FILE__true);
    }

    public function 
optimusSitemapRewriteContent(string &$content)
    {
        
$content str_replace('index.php'''$content);
    }
}

Then disable and again enable "Activate the Sitemap" option in the Optimus' settings.
Title: Re: Optimus
Post by: Butiks on August 31, 2023, 04:39:51 PM
Quote from: Bugo on August 31, 2023, 03:28:48 AMYou can do a small addon for that.

Create a file \Sources\Optimus\addons\ChangeSitemap.php with this content:
Code (php) Select
<?php

namespace Bugo\Optimus\Addons;

/**
 * ChangeSitemap.php
 *
 * @package Optimus
 */

if (! defined('SMF'))
    die(
'No direct access...');

class 
ChangeSitemap
{
    public function 
__construct()
    {
        
add_integration_function('integrate_optimus_sitemap_rewrite_content'__CLASS__ '::optimusSitemapRewriteContent'false__FILE__true);
    }

    public function 
optimusSitemapRewriteContent(string &$content)
    {
        
$content str_replace('index.php'''$content);
    }
}

Then disable and again enable "Activate the Sitemap" option in the Optimus' settings.
Thank you, its work!)
Title: Re: Optimus
Post by: Speed King on September 21, 2023, 01:58:12 AM
Quote from: Speed King on December 23, 2022, 01:55:26 AMInstalling Optimus 2.10.6 on SMF 2.1.3 causes destroying of table layout in section Admin => Maintenance => Integration Hooks

Click => (https://i.postimg.cc/SjMxtfJk/2022-12-23.png) (https://postimg.cc/SjMxtfJk)

The problem was caused by another mod - Arantor Sidebar  :-X
Title: Re: Optimus
Post by: MobileCS on September 22, 2023, 09:42:32 PM
Is there a way to make Optimus automatically update the sitemap after a new topic is created?
Title: Re: Optimus
Post by: -Rock Lee- on September 22, 2023, 10:22:31 PM
Quote from: MobileCS on September 22, 2023, 09:42:32 PMIs there a way to make Optimus automatically update the sitemap after a new topic is created?

But it already does it every 3 days by default, otherwise make sure your cronjob is working...


Regards!
Title: Re: Optimus
Post by: Thomas057 on October 07, 2023, 01:48:16 AM
My sitemap page is showing black page and by post is not showing on Google
Title: Re: Optimus
Post by: Steve on November 12, 2023, 07:26:41 AM
@Bugo - be advised that the above user has removed the SMF copyright:

@Thomas057:

Quote from: Aleksi "Lex" Kilpinen on November 12, 2023, 03:06:22 AMAlso, be aware that we reserve the right to not support users that remove or alter the SMF copyright - And you have completely replaced it with your own, basically indicating that you do not need our support.
Title: Re: Optimus
Post by: Thomas057 on November 19, 2023, 08:27:37 PM
How can I add it back please help me
Title: Re: Optimus
Post by: Kindred on November 20, 2023, 08:53:32 AM
Quote from: Thomas057 on November 19, 2023, 08:27:37 PMHow can I add it back please help me
undo whatever changes you made to remove it...   :P
Title: Re: Optimus
Post by: Dorin1 on December 01, 2023, 05:49:45 PM
do you have any idea why google can't read my sitemap?
it generates it well, it looks ok and when I add it to the site on google it says that it cannot read it.
Title: Re: Optimus
Post by: Xpresskonami on December 15, 2023, 02:37:39 AM
No Optimus Brave For SMF 2.0.15
Title: Re: Optimus
Post by: Kindred on December 15, 2023, 09:25:43 AM
2.0.15 is outdated and insecure.

No one should still be using it.

Upgrade.
Title: Re: Optimus
Post by: Xpresskonami on December 15, 2023, 02:55:01 PM
Quote from: Kindred on December 15, 2023, 09:25:43 AM2.0.15 is outdated and insecure.

No one should still be using it.

Upgrade.

Already upgraded..  but no optimus brave for smf 2.0 except smf 2.1 version
Title: Re: Optimus
Post by: @rjen on December 15, 2023, 03:59:38 PM
I still have an old Optimus package for SMF 2.0 . I can upload it here, but the package comes as is: NO support
Title: Re: Optimus
Post by: @rjen on December 16, 2023, 07:10:24 AM
Quote from: @rjen on December 15, 2023, 03:59:38 PMI still have an old Optimus package for SMF 2.0 . I can upload it here, but the package comes as is: NO support

here it is
Title: Re: Optimus
Post by: Aleksi "Lex" Kilpinen on December 20, 2023, 01:29:53 AM
Just noting here for others that the package attached above includes a statement of being licensed under Artistic License 2.0 which allows redistribution in unmodified form.
Title: Re: Optimus
Post by: Xpresskonami on December 25, 2023, 10:50:26 PM
Quote from: @rjen on December 16, 2023, 07:10:24 AM
Quote from: @rjen on December 15, 2023, 03:59:38 PMI still have an old Optimus package for SMF 2.0 . I can upload it here, but the package comes as is: NO support

here it is

Thank you. The mod destroyed my web. It turns my web into a blank white page. and I have to re-install a new smf 2.0 version. It says my Php version is not working with the mod
Title: Re: Optimus
Post by: Kindred on December 26, 2023, 12:59:42 AM
Always back up your files and database before applying mods.

And yeah,  the old mod does not support modern php - henve the reason it was replaced by a new version,  and the reason that the new version only supports smf 2.1.x
Title: Re: Optimus
Post by: @rjen on December 26, 2023, 02:10:39 AM
Quote from: Xpresskonami on December 25, 2023, 10:50:26 PM
Quote from: @rjen on December 16, 2023, 07:10:24 AM
Quote from: @rjen on December 15, 2023, 03:59:38 PMI still have an old Optimus package for SMF 2.0 . I can upload it here, but the package comes as is: NO support

here it is

Thank you. The mod destroyed my web. It turns my web into a blank white page. and I have to re-install a new smf 2.0 version. It says my Php version is not working with the mod

Sorry to hear that, I did warn you about the lacking suport.


FYI this version is still running on Php 8.0 on one of my forums, so it is not THAT outdated. If you did not make a backup you can try dropping php version to 8.0 to uninstall the mod
Title: Re: Optimus
Post by: dmnlksm on January 11, 2024, 04:19:03 PM
How can I do the latest mod update? Do I need to delete the old version?
Title: Re: Optimus
Post by: Bugo on January 12, 2024, 12:39:03 AM
It depends on what version you have specifically. But in general, yes. Usually the settings are stored in the database.
Title: Re: Optimus
Post by: Julius_2000 on January 16, 2024, 06:20:31 AM
Hi @Bugo,

I've got a question:
Ever since using this great tool, we've had just one minor "issue" with Facebook not showing our forum description for the boardindex. Instead the forum name is repeated a second time where the description is expected.
When I go to meta tag analyzing websites, the meta tag card is shown as expected: Title, description, image etc. Only on FB it won't show the description, no matter what I do. If I turn off Optimus and manually write the meta tag into the php, it works, but then I lose all the meta tags for individual boards and will get the same description for everything (boards, topics).

What's weird, though, is that on a message index and topic level, the descriptions work in FB. It's only the board index description that doesn't.

I've manually added as sort of a "backup"
<meta property="og:description" content="', $context['description'],'">
<meta name="description" content="', $context['description'],'">

but only the second one would be shown in the head of the html on the board index level and the first one be ignored.

Do you happen to have an explanation for this and/ or is anyone experiencing the same thing?
Title: Re: Optimus
Post by: Bugo on January 16, 2024, 08:01:03 AM
The ways of the Facebook are mysterious, try to find some information in the API docs. However, some search engines also ignore the description meta tag, preferring to take some other text from the page as a description if it is more relevant to the user's request.
Title: Re: Optimus
Post by: Julius_2000 on January 18, 2024, 10:00:38 AM
Ah, well yeah I kind of figured that. But there's something that I observed and what I think may have a connection with this mod. Because when I look at the meta tags that are provided for the 3 forum levels, Boardindex, Messageindex and topic, they somewhat differ (an not the obvious differences, like "article" content in a topic).

In Boardindex, the meta tag for property="og:description" that I manually added (see above) is being just ignored and only the second one (property:"description") is printed, while in Messageindex, both of them are shown in the head.
In a topic, again, my meta tag for og:description is missing and only the Optimus one is printed.

What's also weird is, that in Messageindex, the plain property="description" is shown twice. One is my manually added one and one seems to be coming from somewhere else.

Bordindex
Meta Bordindex.png

Messageindex
Meta messageindex.png

Topic
Meta Topic.png

I can't figure out why that is.

Edit: Also, my twitter:card tag that I added is shown twice on Messageindex, or is Optimus adding the second one on the Messageindex level by default but not for the Boardindex?
Title: Re: Optimus
Post by: Bugo on January 18, 2024, 10:19:40 AM
Think about what an extra description might add - maybe it is specified manually in the template or added by some mod. Take a look at your theme's MessageIndex.template as well as MessageIndex.php and compare them with the original files.
Title: Re: Optimus
Post by: Julius_2000 on January 18, 2024, 10:27:35 AM
Quote from: Bugo on January 18, 2024, 10:19:40 AMThink about what an extra description might add - maybe it is specified manually in the template or added by some mod. Take a look at your theme's MessageIndex.template as well as MessageIndex.php and compare them with the original files.

I will, but I don't think I've added something there. I believe I only added the meta code to indextemplate.php right below the standard meta code from SMF.

// Content related meta tags, like description, keywords, Open Graph stuff, etc...
  echo '
<meta name="viewport" content="width=device-width, initial-scale=1">';
  foreach ($context['meta_tags'] as $meta_tag)
{
echo '
<meta';
foreach ($meta_tag as $meta_key => $meta_value)
echo ' ', $meta_key, '="', $meta_value, '"';
echo '>';  
}
/*Changed: added for individual board descriptions*/
 if (isset($context['description']))
echo ' <meta prefix="https://ogp.me/ns#" property="og:description" content="', $context['description'],'">
<meta name="description" content="', $context['description'],'">
<meta name="twitter:card" content="summary_large_image">';

Edit: Can confirm, no meta tag code added in either of those. Only in indextemplate.php
Title: Re: Optimus
Post by: Bugo on January 18, 2024, 11:57:21 AM
The $context['description'] variable is defined only in boards.

So, try to change this block in Sources/Optimus/Boards.php:


    public function menuButtons()
    {
        global $board_info, $settings;

        if (! empty($board_info['og_image']))
            $settings['og_image'] = $board_info['og_image'];
    }


with it:


    public function menuButtons()
    {
        global $context, $board_info, $settings;

        if (isset($context['description']))
    $context['meta_description'] = $context['description'];

        if (! empty($board_info['og_image']))
            $settings['og_image'] = $board_info['og_image'];
    }

Title: Re: Optimus
Post by: Julius_2000 on January 18, 2024, 04:31:06 PM
Thank you very much. Unfortunately, this didn't help. I tried a simpler way of using just YOUR mod and added the og:description in the meta tag section, and now it shows in the head of the Boardindex. BUT, Facebook still won't show it in its description and keeps repeating the forum title in its instead.

Edit Argh, of course it couldn't work! Optimus' custom meta section only allows for name="" tags, not property tags. :(

Interestingly, in FB's debugger tool, the redirect path for the meta tag gets me to my forum BUT looking at the head of that site, the og:description is missing as well. I tried re-scraping the site multiple times, but the info stayed the same. FB's debugger also shows me a different PHPSESSID session ID than in my dev tools on the actual forum. It's like it's still referring to an outdated cache or something.

It just defeats me what's going on.
Title: Re: Optimus
Post by: Bugo on January 18, 2024, 10:45:01 PM
Try to remove your changes, then open index.template.php of used theme and replace <html> with <html prefix="og: https://ogp.me/ns#">
Title: Re: Optimus
Post by: Julius_2000 on January 19, 2024, 05:01:36 AM
Thanks Bugo. Well, it didn't have any effect.

I removed my manually set meta codes and added your prefix to html like that

<html prefix="og: https://ogp.me/ns#" ', $context['right_to_left'] ? ' dir="rtl"' : '', !empty($txt['lang_locale']) ? ' lang="' . str_replace("_", "-", substr($txt['lang_locale'], 0, strcspn($txt['lang_locale'], "."))) . '"' : '', '>
But still, FB shows title as description, even though in the head there's Optimus' og:description. It just gets ignored.

Another question: Could you tell me why on a Messageindex/ topic level, meta tags do not have a prefix="" in them?

Another interesting observation: When in FB's debugger, I can see a Session ID added after the /index.php for our forum for og:url in the list of all available meta tags . But when I use SMF's forum, FB shows the regular ../index.php for og:url. Could it be that it's still caching an older version of the forum that I had linked in FB?
Title: Re: Optimus
Post by: Bugo on January 19, 2024, 05:45:49 AM
I made sure that the meta tags were changed only for those pages that did not have the robot_no_index tag.

I tested one (https://demo.dragomano.ru/index.php?board=3.0) of my pages, and the page of the first board on your site, and did not notice any problems.

(https://i.postimg.cc/mgFWLHK5/sshot-10.png) (https://postimages.org/)
(https://i.postimg.cc/TPqS1q0C/sshot-15.png) (https://postimg.cc/yJxnrRwZ)

QuoteCould it be that it's still caching an older version of the forum that I had linked in FB?
(https://i.postimg.cc/4yM2q84N/sshot-8.png) (https://postimages.org/)
Title: Re: Optimus
Post by: Julius_2000 on January 19, 2024, 05:58:42 AM
The issue is only the boardindex, which does not show its description (only) in FB. The others work as expected.

I'm going to try this refresh method.

And thanks a million for your quick replies all the time, much appreciated!!

Edit
Still, no love.

Interestingly, when I click either of these redirect paths and look up the Dev tools, the content of the og:description has been replaced by the forum title. Keywords are as filled in in Optimus. Only the description is affected for some reason.
Title: Re: Optimus
Post by: Bugo on January 19, 2024, 06:10:31 AM
Ok, I've tested your main page, here are results from Yandex Webmaster:

https://ogp.me/ns#site_name
@value = The ChemBase
https://ogp.me/ns#title
@value = The Chemical Brothers Forum - The ChemBase
https://ogp.me/ns#url
@value = https://forum.thechembase.com/index.php
https://ogp.me/ns#image
@value = https://forum.thechembase.com/Themes/The_ChemBase_Theme_BF/images/Chems/Meta/Meta_Forum.jpg
https://ogp.me/ns#description
@value = Welcome to the ChemBase, home of the Chemical Brothers fan forum. A place where you can discuss everything Chemical and beyond! Love Is All!

As you see, the title is correct. So the problem is on Facebook side.

Try this debugger as well - https://en.rakko.tools/tools/9/
Title: Re: Optimus
Post by: Julius_2000 on January 19, 2024, 06:25:00 AM
Thanks! It works in your debugger as well, just like on other meta tag checking sites I found online. Just FB doesn't like us :D, they just cut it off. Perhaps it's got something to do with the length of the description or the forum title? ... Weird.
Title: Re: Optimus
Post by: Bugo on January 19, 2024, 08:44:00 AM
By the way, og:description is optional and in its absence the social network should take the description from the standard description meta tag. But some networks have clever algorithms that can take descriptions from elsewhere on the page if they are more relevant to the content of the page.

And do not forget about cache...
QuoteOnce a webpage is shared, Open Graph setting is cached on a SNS.
In case the display (OG image, title, etc.) isn't updated after changing the setting, please try cache clear on each SNS.
Title: Re: Optimus
Post by: Julius_2000 on January 19, 2024, 10:42:15 AM
Yeah, must that way.

Quote from: Bugo on January 19, 2024, 08:44:00 AMIn case the display (OG image, title, etc.) isn't updated after changing the setting, please try cache clear on each SNS.
SNS, would that be our forum cache in Admin?
Title: Re: Optimus
Post by: Bugo on January 19, 2024, 11:09:29 AM
Social Networking Service. You won't be able to influence their cache.
Title: Re: Optimus
Post by: Xpresskonami on January 19, 2024, 07:43:11 PM
Please what could be the cause of this on smf 2.0?

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 11347033 bytes) in /home3/xpresskon/public_html/Sources/PrettyUrls-Filters.php on line 132

This happened whenever I go to schedule task to run the sitemap.
Title: Re: Optimus
Post by: razor1995 on January 25, 2024, 07:25:17 AM
Hi,
I created a translation of the plugin into Polish language. I use it on my forum, I am sharing it with you.
Title: Re: Optimus
Post by: Bugo on January 25, 2024, 07:30:21 AM
Thank you, you can upload and mantain it on the Crodwin system (https://crowdin.com/project/smf-optimus).
Title: Re: Optimus
Post by: Bugo on January 25, 2024, 02:24:52 PM
Attention! A control group of volunteers is being recruited to test Optimus 3.0 Beta.

Conditions: SMF 2.1.4, PHP 8.0+, presence of one or more of the following modifications:

* EhPortal (https://web-develop.ca/index.php?action=downloads&area=stable_eh_portal)
* EzPortal (https://custom.simplemachines.org/index.php?mod=1461)
* TinyPortal (https://custom.simplemachines.org/index.php?mod=97)
* Topic Descriptions (https://custom.simplemachines.org/index.php?mod=3012)
* Pretty Urls (https://custom.simplemachines.org/index.php?mod=636)
* SimpleSEF (https://github.com/dragomano/SimpleSEF/releases/tag/v2.4.5)

You need to install a test version (https://drive.proton.me/urls/K26ZK4MC3G#Qjhi2HF6rv20) of the mod and try out each of the available settings. If any errors occur, take a screenshot and attach it here or create a new issue on Github (https://github.com/dragomano/Optimus/issues).
Title: Re: Optimus
Post by: razor1995 on January 25, 2024, 04:22:54 PM
Quote from: Bugo on January 25, 2024, 07:30:21 AMThank you, you can upload and mantain it on the Crodwin system (https://crowdin.com/project/smf-optimus).
Hi, joined.
I will upload the translation, when will able to :)
Title: Re: Optimus
Post by: Carlos1903 on February 02, 2024, 03:24:12 PM
Why isn't the sitemap loading?

(https://i.imgur.com/CIGbyCw.png)

https://fiuxer.lat/index.php?action=sitemap_xsl
Title: Re: Optimus
Post by: Arantor on February 02, 2024, 05:46:05 PM
The error itself tells you: there's a mismatch between HTTP and HTTPS. Everything should be using HTTPS...
Title: Re: Optimus
Post by: Carlos1903 on February 03, 2024, 01:30:32 AM
Quote from: Arantor on February 02, 2024, 05:46:05 PMThe error itself tells you: there's a mismatch between HTTP and HTTPS. Everything should be using HTTPS...

How I fixed it, through SSL everything is fine from hosting and cloudflare
Title: Re: Optimus
Post by: Bugo on February 03, 2024, 02:21:38 AM
Have you tried recreating the sitemap? (just turn off/on in the settings)
Title: Re: Optimus
Post by: Arantor on February 03, 2024, 03:13:28 AM
Is your forum *itself* configured to use HTTPS? As in, inside Settings.php, is $boardurl HTTPS?

The error suggests not.
Title: Re: Optimus
Post by: Rupurudu! on February 28, 2024, 08:11:53 AM
I am having an error in the error log after installing this addon:

error.PNG
Title: Re: Optimus
Post by: Bugo on February 28, 2024, 08:32:45 AM
Try to define default og_image in your current theme settings.
Title: Re: Optimus
Post by: Rupurudu! on February 28, 2024, 08:38:11 AM
Yeah, that solved it. Thanks!
Title: Re: Optimus
Post by: Bugo on March 07, 2024, 11:31:45 PM
v3.0 Beta

* New Event System by League\Event (https://event.thephpleague.com/3.0/) for addons (thanks to Tyrsson (https://www.simplemachines.org/community/index.php?action=profile;u=155269) for an idea and assistance with implementation)
* An option for grabbing topic images for your sitemaps
* Compatibility with SMF 3.0 Alpha
* Added a new hook - `integrate_optimus_teaser` - for adding custom replacement rules in topic descriptions
* Various fixes and improvements

For Modders

* If you like hooks, you can add links from own mods into the sitemap, as well as rules for the robots.txt generator via hooks `integrate_optimus_sitemap_links` and `integrate_optimus_robots_rules`.
* However, I recommend getting acquainted with the new event system by using the bundled addons as an example. There is no strict requirement that your addon must necessarily be in the `Sources/Optimus/Addons` directory. There is a hook `integrate_optimus_addons` for external addons.
Title: Re: Optimus
Post by: cuongvttt on March 14, 2024, 01:46:01 AM
Hello Bugo,

I would like to have a feature that I could update hourly the sitemap.xml.

Thank you so much for making this amazing mod :D

Title: Re: Optimus
Post by: Bugo on March 14, 2024, 02:39:03 AM
There is the IndexNow addon (https://ko-fi.com/post/All-premium-addons-for-Optimus-U7U3VKQHJ) for that.