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.
Documentation (https://dragomano.github.io/Optimus/)
Requirements:- PHP 8.1+ (for Optimus 3.0+)
- PHP 7.4+ (for Optimus 2.13)
Features:- Managing of title and description for the main forum page.
- Managing of title, description, and keywords meta-tags for topic pages.
- Description meta-tag for boards' and topics' pages.
- Keywords meta-tag for topics. Users can fill them when creating/changing topics.
- Support of Open Graph meta-tags and Twitter Cards.
- Ability to specify the verification codes when adding sites to Google, Yandex, and Bing (Webmaster Tools).
- Adding custom metatags.
- Adding any JS/CSS code without template editing.
- Changing the robots.txt and .htaccess from the Settings page.
- Generator for the robots.txt file.
- Simple Sitemap XML.
- Managing of favicon.
- Statistics of search queries on the forum.
- Ability to create simple redirects.
- Support of addons.
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:
- a short description of your problem
- mods list that installed
- your SMF version
- your PHP version
- forum link where I can see the issue
- screenshots of the problem
Premium addons (https://ko-fi.com/post/All-premium-addons-for-Optimus-U7U3VKQHJ)
(https://img.shields.io/github/license/dragomano/optimus?color=red)
I like this mod! 8)
Nice mod...
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?
I fixed it, try new version :)
thanks for the update :)
just installed it, will update you if the issue is fixed.
Nice mod Bugo :)
Bugo, that fix did the job :D
many thanks for the cool mod and great support 8)
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/
Try and learn :)
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
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?
i don't want help, i just informing...
Well, maybe this problem appears only for the first time but after saving of settings it disappears.
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
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
2 link.
Use link the two? With the same content?
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
thanks bro.
What is the meaning of
Allow: /$
Thanking you.
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.
This line — "Allow: /$" it's a main page (only main page!) of your forum (i.e: http://www.yourforum/).
Now my doubt cleared.
Thanks for your quick reply.
Wish You All The Best.
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.
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.
http://www.simplemachines.org/community/index.php?topic=422210.msg3144963#msg3144963
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.
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.
I like this mod, but would take the keys of the number, looks like this {1} could contain just the number 1.
What do you mean?
Here's the link the title, appears on page {1} instead of just one page:
http://www.tectonny.com/forum/apoio-tecnico/
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... :)
I do not want to see the symbols, I see only the number without the {}.
Well, I'll add this feature in the next release.
Okay.
Ok, try new version.
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.
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.
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).
The problem is that if we use the fixed number will appear on all pages with the same number.
And why you use the fixed number? :) You must use the constant — "number". It will be replaced with number page automatically.
There was no way, tried everything, here's what I tried.
[board_name] - [forum_name] - Página
[board_name] - [forum_name] - Página {number}
Look at screenshots ("666" in mod settings - it's just example).
Yes, my work well, but not without braces. "{ }"
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimgbr.in%2Fimages%2F63179327200033548942_thumb.png&hash=a280f4cfb53edca89f23af5117dc3d2f1fd33df5) (http://imgbr.in/viewer.php?file=63179327200033548942.jpg)
Is difficult to guess replace {number} with number?
Perfect your explanation, now understood and is working perfectly.
Thanks
Muito Obrigado.
I liked the update, best explains how the sitemap ....
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
I was able to generate the sitemap prettyurl disabling, but where is the sitemap? What is the link to the sitemap?
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?
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.
Looks good.
Good job ;)
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'
can anyone tell me how to get topic title, page number etc?
Template of topic pages title : [board_name] - page
- - [forum_name]
shows only forum name
and also keywords are not added to metatags of topics
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.
You forgot to paste square brackets: []
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
- in between.
but if there are two pages of topics in that board then page 1 and page 2 are shown
This is a feature.
Why did you remove the link to your forum?
If page is only one, page number not appears.
Can I see a screenshot of your settings?
the problem is not with topic pages but only with board pages
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?
okay i posted a screenshot of settings above
Well, I have the same settings but don't have any problem. Do you have any mods that can change page titles/numbers?
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
Can you give me test admin account to PM?
sent you PM
just append /discus to access SMF at the end of the link i sent
Well, you forgot to mention you are using an older version of Optimus. Current last stable - 1.7.1, you have - 1.7
ok done
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']);
i find similar errors with Sources/Subs-Optimus.php
it generates sitemap with deleted topic numbers and 404 errors are caused.
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.
QuoteQuote 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 :)
oops.. those errors were from 1.7
i've just updated to 1.7.1 and let me see for errors after few hrs
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 :)
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).
PM is send :) thank you very much!
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?
Sorry i answer my own question, in your mod it says:
Metatag keywords
Recommended no more than 20.
I should learn to read :P
now sitemap.xml is not getting generated even after 1 day of scheduling the task.
the existing sitemap.xml is also missing !!!!!!!!!!!
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
Thank you for the update!!! I just installed it, will let you know how it works out! ;D
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"
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.
Ok, this is solved.
But, is there a way to put all of urls in sitemap?
Why? Any sitemap is not required if there is a proper robots.txt
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
Try add http://www.allstudentforum.com/common.xml
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?
Exactly, it's optional - you can use, you can not use.
@ 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
@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)
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
@ bugo, thanks,its ok now. No more error. Am grateful
Last Modified: Today
What´s news? :)
Surprise :)
nothing :D
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?
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.
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
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
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
I think the keywords are useless for forums.
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
Just remove all keywords at all. And wait for indexing updates. Forget about keywords. Think about content ;)
ok , i removed all ..
we will see the results after a while , hope to be ok
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
Did you try to create sitemap again?
no , i had the last one , i have to rebuild it and reupload ? :)
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.
cool bro , thanks for advice .. now everything is all right :) is looking well
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
$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?
What is "wiki"? Do you mean SimpleWiki mod?
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
Unfortunately, this mod doesn't work for me. Wait stable release.
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.
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);
}
}
that worked. :) thanks!
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
;)
hmmmm.... that link works for me, when I am logged in, so it must be a conflict in the guest settings/permissions
for SMF 2.0 RC3 ?when? :D
When pigs fly.
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.
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
Hi I just installed Optimus Brave but I dont know what to add in these fields
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
Well, don't use .gz format. Do you know about Sitemap mod?
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.
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?
No difference.
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
Thanks for this great mod. But I am having difficulty with Sitemap generation. It is not working at all.
Topic/board pages settings
After the last update to the functioning of nuperação of pages in the term page displays.
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
This is not working
"Output board description to the meta-tag description "
@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?
But it did not working for me and google show the duplicate meta description.
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
{category_name} is not provided.
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. :)
I'll add this feature later. Next version, maybe.
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.
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.
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.
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
Everything Mess up after install the meta modification.I am unable to verify the website using optomus brave . How to manaully add it.
Many thanks!!!
Nice mod!
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?
Un-install all mods before upgrading SMF.
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']);
$context['topic_first_message'] it's best :)
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"?
I am using this MOD and it's awesome for SEO :)
Thanks a ton :)
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;
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.
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?
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?
thnks, problem solved :)
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?
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".
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
get rid of prettyurls...
Recreate the sitemap via Task Manager.
@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!
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......
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.
What exactly do you want?
Special template for sub boards like "Forum name - Board name - Sub board name - page xxx"?
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)
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?
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']))
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
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.
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)
Just wait... some days... or weeks. It depends on indexing & traffic :)
Beautiful mod! Thank you so very much for taking the time to give the world (well, ok, the SMF world) such a great present.
Where can i change Page into Pagina.
Please see attachment.
Great mod by the way ;)
Admin -> Configuration -> SEO -> Common settings, 2 options: Template of board pages title and Template of topic pages title
Briljant Bugo
Thanx for tje quick answer.
Greetings from the Netherlands ;)
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...?
Just change column (name "id") type from SMALLINT to INT - see search_terms table in your database.
Ahhh - perfect ! Thanks :-)
no questions but just in one tiny sweet sentence, this package is a MUST for all SMF forums
thumbs up Bugo
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.
In the verification metatags section, what type of text am i supposed to be putting in the boxes?
Thanks.
What is written there?
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
can somebody guide me on how to set this mod for my site to be search engine friendly
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.
You shouldn't change nothing in index.template.php, never. This mod doesn't make any edits with files.
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?
Not required, but one can use other tabs of this mod.
ok, thanks
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);
Great mod! Where are the controls in the Admin Panel?
You wouldn't believe me — Admin Panel => Configuration => Search Engine Optimization :)
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!
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.
Anyone? Optimus Brave, though I ask it to, won't change the meta description anywhere. Any ideas?
Try to use original index.template.php, without ANY changes.
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.
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??
If you don't know what to write, leave these fields blank.
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 :)
Does it support 1.16 version?
did you even bother to read the mod download page?
Quote
Compatible With:
2.0, 2.0.1, 2.0.2
so. no.
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 ???
How did you install it? Via Package Manager or by hand?
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!!
Can you make a screenshot of your Scheduled Tasks page?
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
Try to run task "Creating of Sitemap" in Scheduled Tasks by hand.
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
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.!
All links work fine for me too. Try to update cache in your browser.
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!)
Disable/Uninstall your SEO mod (Pretty URLs or what you are using) and then re-create Sitemap via Scheduled Tasks.
Hi Bugo, thanks for getting back to me. Can I then go back to using pretty URL after doing that?
no.... and, as I said - pretty urls will cause problems with lots of mods (and is not necessary)
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?
This mod does not change the urls at all, since urls have very little, if any, effect on search engine ranking.
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
You're in the minority actually - the WSJ and YouTube, consistently in the top 10 sites online, do not bother with 'nice' URLs.
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....................................
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.
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> — bölüm adı, <strong>{topic_name}</strong> — konu başlığı,<br/><strong>{#}</strong> — geçerli sayfa numarası, <strong>{cat_name}</strong> — kategori adı, <strong>{forum_name}</strong> — 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"><meta name="google-site-verification" content="<strong>SAĞ SÜTUNA YAPIŞTIRMANIZ GEREKEN DEĞER</strong>" /></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&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 — 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> — bölüm adı, <strong>{topic_name}</strong> — konu baÅŸlığı,<br/><strong>{#}</strong> — geçerli sayfa numarası, <strong>{cat_name}</strong> — kategori adı, <strong>{forum_name}</strong> — 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"><meta name="google-site-verification" content="<strong>SAÄ SÜTUNA YAPIÅTIRMANIZ GEREKEN DEÄER</strong>" /></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&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 — 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'
);
the utf-8 translation did not come across well.
You have to make UTF-8 translations as attachments not as posts
Thx. Previous post was edited.
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.
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!
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?
Is there an example?
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 :)
Any solution for that missing scheduled task please?
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?
Where the mod should to take different description from? From the first message on every page?
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...
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)
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*
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.
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?
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.
-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...)
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?
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.
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.
Oh yes, that's the one. And yes, the rampantly anti 'forum SEO' developer over there implemented this feature months ago.
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.
@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.
Hi, please i don't understand how to set this part of Optimus brave, I've attached the screenshot. Thanks
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.
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!
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
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
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?
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?
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.
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?
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.
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.
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.
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.
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.
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.
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'.
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.
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.
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.
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.
Thank you for this great mod!
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.
Hi! I have a question: Is the sitemap working perfectly with Pretty URLs MOD? :)
Thanks.
I don't think so...
prettyurls screws up many things, including this mod. drop it. it serves no really useful purpose.
Quoteit serves no really useful purpose.
Makes the URLs look nice though.
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)
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.
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.
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
HI, I just installed this and I do not see the option to generate sitemap, any help would be appreciated.
thanks
Ignore that working fine now
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
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
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.
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
i want to install this mod, can anyone can help me to install it correctly
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
It would not be bad to show up your robots.txt and your forum.
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
When I run this task manually, the sitemap gets generated correctly, but it doesnt seem to run as a scheduled task
For me the same thing
Attach your Subs-Optimus.php file.
not cleaning bbcode in meta description
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fclub-dhayzone.net%2Fimg_styles%2F20130707001933942.png&hash=50e5d8605e736ac46a4c148369d71626bf59baa1)
I would like to use the function
strip_tags for cleaning
Do not use bbcode or html in the description. Ever. Images are not allowed in the description tag anyway
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.
prettyurls are a waste of resources anyway..... and they contribute nothing to SEO
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.
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.
Thanks for the response Arantor. #4 was what I was looking for.
Best,
BFM
Updated the translation, thank you for including them to core :)
There are some errors in your language files. Please fix them.
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.
Sorry, akonze, but I can not replicate your issue.
I use the current version and had no such reaction.
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.
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?
Disable "Create and periodically update Sitemap XML-file" option in mod's settings.
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.
Is it difficult for you to remove sitemap.xml (see forum's root)?
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.
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)
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?
that SEF setting is stupid and should not be used anyway.
Alright, that was short and to the point. :) Any suggestions about other stuff?
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.
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>.
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!
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
turn off the silly SEO friendly urls...
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 !!
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
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
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!
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.
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
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(" ", "", $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.
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
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
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
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
Just another thought:
Another Solutions would be for example an option to put only the newest 10.000 URLs insinde the sitemap...
well, since I used this on a site with over 3 millions posts... I think there may be something else going on with you...
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 ?
I thought sitemaps individually weren't permitted above 50k URLs anyway?
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!
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.
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!
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?
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.
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
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
How to add download file (all files have title, description and much more) from Download System mod to sitemap?
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 :)
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.
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?
You have to add it to your .htaccess file indeed.
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 :)
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.
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 :/
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.
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.
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
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.
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.
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
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...
I have already found a way, the solution is on page 17.
which involved re-coding... :P
This MOD is absolutely brilliant, one of the few I would like to see built-in SMF.
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. :)
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 :)
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(" ", "", $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(" ", "", $teaser);
return strip_tags($teaser);
}
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?
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.
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.
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
I don't believe that this mod creates an XML sitemap. You would use a different mod for that
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
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
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?
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...
There's a bunch of other posts for and against it. I can understand how it can be detrimental in come cases.
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? :)
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.
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.
I found the DB stuff, still no dice. Can ANYONE help please?
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/
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.
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 ...
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! :)
Open Themes/default/languages/Optimus/Optimus.xxx.php
XXX = france, english or german
find
$txt['optimus_sitemap_section'] = 'Optimus Sitemap';
add before
$txt['optimus_sitemap_title'] = 'Sitemap';
Woo hoo! Thank you, winstar! :)
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.
I contacted my host and my problem has been solved.
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.
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
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
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?
Is there a way to remove all the mod instances in the database, as if it hasn't installed before?
Doe this mod work when using SSL?
Once installed and activated, none of the features seem to be working.
be more specific please?
Because I have all of my sites on SSL and optimus brave is working just fine
See attachments. The mod just doesn't seem to be working at all, also sitemap was never generated.
No error when checking apache log.
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...
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
No, this changes the meta description, etc tags... not the URL ... because pretty URLs are also, basically, useless for seo
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.
I keep meaning to try this. Looks awesome!
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
)
);
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...
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...
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']:""
or, a better solution would be to actually define $txt['optimus_sitemap_title'] in modifications.YOURLANGUAGE.php
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,
Well, for one, this mod is not designed for smf 2.1
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.
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
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))
Thank you.
I think you missed ?> at the end of both files.
It's not required :)
I can not activate this option. Please help.
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=422210.0;attach=254597;image)
This option is visible if there is sitemap.xml on the forum's root.
It works. Thanks for the reply!
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
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! :)
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...
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.
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...
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. :(
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...
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?
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...
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?
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...
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
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
What is the changelog between 1.9.6 and 1.9.7?
- Favicon support
- Custom metatags
- Various fixes
Very good @Bugo for updating the mod and step by step I leave the translation into Spanish Latin ;D
Regards!
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
Thanks. I have added your translations into package.
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
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 ;)
That does NOT solve the issue.
I should have mentioned: error occurs for members that ARE allowed to see attachments...
Quote from: Bugo on April 01, 2018, 05:57:04 PM
- Favicon support
- Custom metatags
- Various fixes
This is awesome. Thanks! :)
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?
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...
Another update? What's that all about? :o Every second day something new... I am just wondering what is the chagelog? :D
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
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).
Forgotten variable $txt['optimus_robots_desc'] :-[
Complete french translation:
Thanks :)
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!
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.
Ok, that's what I did. I wasn't sure if there was a "suggested default config" for starters. Thanks
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.
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
Off topic
On the mod page, you should indicate which languages are supported. It would bring you more people. ;)
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
Hi @Bugo
What does the portal support do in your mod? I ask because I don't see EZ Portal listed.
"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.
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.
Anybody have any suggestions on this or doesn't anyone use this mod?
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.
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.
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?
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)
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, ...)
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...
I'm not sure that Optimus is compatible with Pretty URL... :-\
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.
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.
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
It's up to you :)
Thanks... I will install it again. ;)
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?
Sitemap file is creating via Scheduled Tasks.
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.
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.
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.
Getting this error:
Incorrect namespace
Your Sitemap or Sitemap index file doesn't properly declare the namespace.
I need URL to your sitemap file, SMF forum's version, Optimus version.
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?
Try new version, https://github.com/dragomano/Optimus/releases/tag/v1.9.9.1_optimus
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?
Yes, of course.
I see 3 zip packages, do I need to do all three or just the Optimus package?
Thank you
The first, optimus.zip
Quote from: Bugo on August 07, 2018, 01:33:03 PM
The first, optimus.zip
Thank you, hopefully my sitemap links get indexed now.
What is today's change log? ???
@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
??? 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
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?
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.
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.
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.
Check the robots.txt config. Use that as a disallow template for exclusions.
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?
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.
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)
Did you try to recreate the sitemap manually, via Scheduled Tasks area?
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?
No, it's normal. What settings of Pretty URLs do you have?
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
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.
Thanks but that doesn't answer my question at all...
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 :)
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
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.
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
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.
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...
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 ;).
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.
Your categories change daily? Really?
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.
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?
The last version does not included xsl file, just install updated version of the OP, remove old sitemap files, re-generate new.
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.
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.
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?
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.
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.
Euh LoL, never mind, I wasn't awake enough. Found out where I had too look and it's fixed now.
Thank you!
turkish translate
How do I get access to the sitemap? '
It does not show it at the bottom of the page
You need to create it at first (see Sitemap Tab Settings and Scheduled Tasks).
When I install this optimus MOD , my site is not opening, what could be problem?
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?
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...
This CSS file is loading only on Optimus settings area.
No, it is not
Ok, just remove this rule from CSS.
Already done that. Thought you would like to know for future releases...
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...
Why it works for others? Any specific settings? Hosting? Php?
Hi and thanks for this mod!
Can I activate the sitemap even in large forums and there is a limit for topics?
Thanks
Why not. Just try it. The mod will create a few sitemaps if your forum has over 50000 urls.
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 ???
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...
Apart from the sitemap creations, is this mod still relevant? The reason I'm curious is because it was made in 2011
It is updated frequently so I would assume it is probably still current.
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...
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
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
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
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?
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
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?
Great mod! Where are the controls in the Admin Panel?
^ do the screenshots in the mod page not show where these are?
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
Does sitemap-index.xml not exist in your forum root?
No, I don't know where it comes from...
Sorry Bugo, it was my fault ::)
Thank you again
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.
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.
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.
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.
You should apply ALL provided changes, not just one...
No option to uninstall, do i need to delete?
see attachment
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
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.
i have done, it looks okay but i lost all credentials was setup in optimus... Thank you for the support
New posts/topics are not in sitemap.xml it is not adding, what to do?
Take a look at the mod's settings area.
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?
There is a special area, the Optimus Sitemap. Also, there are Scheduled Tasks, where you can manage time for periodically creating sitemap.xml
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.
checked every option again and again but new links are not added into sitemap. kindly help.
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?
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
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.
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
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']);
I can confirm FB posting is working now. It's taking the image from the topic. Twitter isn't working yet.
Very thanks Bugo, i will g oto test it :) soon i will come here to give some feedback.
Thanks
Working on both FB and Twitter now!
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
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']);
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.
Hi Bugo
I installed Optimus today but since then facing some issues. My SMF version is latest SMF 2.1 RC2
- Sitemap is not generating
- Missing Properties. When sharing topics/replies on Facebook. Facebook isn't fetching Topic title. before installing the Optimus it was fetching first image and title correctly.
Kindly help !
1. Does the manual run via Scheduled Tasks not work too?
2. Give me an example (link) of a topic with such a problem.
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
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.
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.
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.
Hmmmmm, my articles are html. I don't do bbcode so that wasn't tested on mine.
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!
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...
I have made special versions to testing these issues, try it.
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.
@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.
2.2.1 seems to work fine on html articles in 2.0.15
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.
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.
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...
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...
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(' ', $intro)[0];
$intro = shorten_subject($intro, 130);
} else {
$body = Subs::getTeaser($body);
$body = str_replace($txt['quote'], '', $body);
$body = explode(' ', $body)[0];
$body = shorten_subject($body, 130);
}
// Если есть intro, используем в качестве описания его, иначе — выдержку из текста страницы
$context['meta_description'] = (isset($intro) ? $intro : $body);
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?
SMF 2.1 has such a setting by default, in Current Theme settings.
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.
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
Try this version => https://www.simplemachines.org/community/index.php?topic=422210.msg4023106#msg4023106
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
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
Ok, I'll fix it in the next release.
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.
in theory, that would require a lot of parsing logic...
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.
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
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;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
I have installed Optimus mod, but it is not generating sitemap file,
How OPTIMUS is creating sitemap?
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.
I could not find " scheduled task "
Can youshow path as > > >?
Pls see my dasboard screenshoot of OPTIMUS MOD...
I've marked the path on your screenshot.
I checked , it is already marked under scheduled task ,
But I do not see a sitemap is created...
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
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__);
Thank you :)
Thanks for the new update Bugo, now i think my sugestion is implemented!
Excelent work!
Can I update safely from 1.8.7 by just replacing the files? (SMF 2.0)
It is better to remove the previous version, then install the current one. Save your settings, if you want.
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'])) {
Thanks, I've updated the Github repository.
Thanks, that does the trick!
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?
Approved topics only.
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.
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.
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?
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
I have just tried to upgrade Optimus and got HTTP 500 error
Now my site gone offline www.engrz.org
Remove /Sources/Optimus dir and uninstall the mod.
Did you install the optimus_2.3_smf20.zip package?
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
Any notes in your Error log?
List of installed mods?
I can't guess from coffee grounds what is happening :)
Can I set the name of topic or board to the <h1>...</h1> tag?
Maybe in the future versions? :)
That would require edits to the core and every theme template....
Got it. Thank you :)
I will realize this feature in the next version of Optimus for SMF 2.1
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
Ураааа!
Ждем :)
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.
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 ?
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
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
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?
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
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
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!
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
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
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.
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! :-\
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
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! :-)
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.
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!
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!
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
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
happens to me too, only in Base settings
Is there anywhere in mySQL that I can edit the <title> layout thing? That's mainly what I need.
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
Seems that it did not actually, fully install on your server
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 ??
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?
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])
For SMF2.1, you need to download Optimus version from github: https://github.com/dragomano/Optimus
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
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
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
You shouldn't enable that option, removing index.php from url doesn't make sense for people and SEO, too
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.
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?
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.
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.
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.
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.
Don't think about SEO, think about content. And it will come ;)
Solved my problem https://github.com/dragomano/Optimus
sitemap does not enter Tasks scheduled. Not updated! (Optimus-master)
My mistake. Update yes. Even without scheduling
I installed both Optimus and SMFPacks SEO Pro. Will it be in conflict?
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.
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?
Hey Bugo!
you seem to have removed the 2.0.x version of this mod! :(
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.
Yes, little by little, I will transfer all my mods to SMF 2.1
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
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.
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!
500 error after update
Update PHP version to 7.2 or update the mod.
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.
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.
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
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')
);
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.)
I think you're talking about the smile set exactly what should i do
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.
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
What exactly field did you use to paste emoji?
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
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
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?
@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
Try to clear the cache.
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?
@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
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
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)
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
Update the mod (v2.6, for SMF 2.0)
Great work!!!
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?
Turn off template eval in the admin area, see what the real error is.
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...
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 :)
thank you that seems to have stopped the flooding of my error log
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.
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.
I installed Optimus after I installed PrettyURLs. The site got messed up. Are these two MODS not compatible with each other?
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.
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.
The information provided will not help me in any way. It seems it is not your fate to use both mods together.
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.
There is no such built-in option. The mod has only a plugin, to make SEO URLs in sitemaps if the PrettyURL is installed.
2.6.4 глюк
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.
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.
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)
Now you should use such a link: http://yourforum/sitemap.xml
Or you can make a redirect via .ḥtaccess.
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 :)
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.
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?
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.
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
You need to install the latest version of SMF from GitHub to properly work with v2.9.3.
2.6.5 опять глюк
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 ;)
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)
Drag these lines from line 86-87 to line 32-33:
defined('OP_NAME') or define ...
defined('OP_VERSION') or define ...
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?
If it's okay, do not touch anything :)
Quote from: Bugo on July 14, 2020, 02:50:03 PM
If it's okay, do not touch anything :)
Great, thank you!
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.
/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 ...
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
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!
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.
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
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.
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
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;
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
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]).
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.
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.
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.
Thanks, it will be fixed in the next release.
Why Optimus 2.6.2 do not work with Opcache?
It works well. Just re-create a sitemap by hand (if you mean that a sitemap is not creating with Opcache enabled).
With php 7 work, with php5.6 do not work. Any 2.6.2 any 2.6.5
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);
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.
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
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
At first, remove /Sources/Optimus dir.
Then, extract files from the new Optimus package, to the forum dir.
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
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&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&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&area=optimus;d77834cdcf9=c87b7e15170ed1bc0937fd2bc707bbdf
/home/fts/public_html/Sources/Optimus/Settings.php (Line 122)
These and some other errors are fixed in v2.9.4 that is available for sponsors on Patreon yet.
Для СМФ2.0 есть спецпредложение?
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.
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)?
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.
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?
On the mod page find "Manual install" select box, select your SMF version and click "Parse" button.
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
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.
have you been able to install any other mods?
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.
Yes. I installed invitation Mod. And it works.
Here is what my admin panel shows. Not the left column shows Invitation mod but not the other Optimus mod.
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.
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?
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.
Those are not instructions.
There is a database modification file that isnt even mention in the "directions".
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
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
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.
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.
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?
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.
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*.
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.
The ampersand is double encoded at that point. Or you could borrow the code in $smcFunc to fix just the emoji.
Ok, I will add a fix for that in the next version.
Hi, does anyone know where i can download version 2.8.3?
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.) :(
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!
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? ???
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)
That has nothing to do with this mod. It's the reason modified mod... and it looks like it did not fully install
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">
It is a part of Light Portal, will be fixed in the next version.
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. ;)
Just updated my site to 2.6.6.
Find attached the updated dutch language files...
Thanks :)
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.
/Sources/Optimus/TopicHooks.php, prepareDisplayContext() method. It is a simple fieldset with "roundframe" class.
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.
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
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
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.
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?
Thanks. This fixed the forum. Can you explain what to do to make the mod work without edits?
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.
Thank you very much, after deleting the lines from the database, everything worked.
Дайте бог тебе здоровья.
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");
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!
v2.7.1 for SMF 2.0.x
* Fixed found issues
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
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
Optimus supports user addons, see addons dir for example.
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?
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
you definitely need a php upgrade. 5.5 is ANCIENT -- most hosts have actually forced an update to php 7.x at this point.
@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? :-\
SMF 2.0.18 supports up to php 7.4
use php 7.4 for everything.
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 ?
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.
Hello sitemap turned into this shape. Is this normal?
https://webtiryaki.com/sitemap.xml
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.
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? :-\
@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.
sitemap.xml is missing in the root.
Does this file creates by itself when selected to do so?
See the corresponding task in Scheduled Tasks.
Installed current version in 2.0.18 forum, all admin actions went wsod.
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. :)
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?
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.
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.
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.
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.
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?
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...)
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.
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)
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)
sitemap do not update automatically?
what's the problem?
+ 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
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?
Thanks sir,
take a look at the attachments
+ SMF Default Theme - Curve
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 ?
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.
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 ?
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 ?
VPSCan 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.
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"
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 ;)
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.
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. :-[
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? :-[
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
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?
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?
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.
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
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 :(
https://github.com/dragomano/Optimus/archive/refs/heads/smf20.zip
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?
: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
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.
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 :(
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 ;)
Poor guy got 44 pages thread, it's understandable :(
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
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
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.
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. :)
can you add an option to create a map with pretty links?
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.
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.
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}');
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. ;)
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...
@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?
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.
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
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 :)
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 :)
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?
How many topics and posts on your forum? I need to create a similar test environment.
2452 topics and 23000 posts, some topics have more than 50 pages...
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.
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
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...
Replace
op_filter('optimus_htaccess')
with
trim($_POST['optimus_htaccess'])
in Sources/Optimus/Settings.php
That fixes the issue.
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?
Optimus adds own optimus_description field into smf_topics table. So there is no need for the Topic Descriptions mod.
Turkish translation
Hello, any workaround to make it working with PHP 7.3?
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
This feature is more simplified now, look into the basic settings.
i didnt see setting for page number inclusion anywhere
Page numbers - default feature for SMF 2.1, out of the box.
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
https://www.simplemachines.org/community/index.php?topic=580768.msg4111907#msg4111907
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
You need to install a special addon (https://www.buymeacoffee.com/bugo/all-premium-addons-optimus) for this.
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.
It is not for sale, but is distributed as a bonus to sponsors.
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...
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
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.
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 ;)
Well, that's why it's called "keywords", not "keyphrases".
Use descriptions for that.
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)
Fixed various little things, if everything works with the current version, you don't need to update.
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.
Where is it written that they should be?
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
Are optimus_keywords and optimus_log_keywords tables exist in your database? If not, try to reinstall the mod.
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.
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.
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.
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?
Did you install the PrettyURLs addon (https://www.buymeacoffee.com/bugo/all-premium-addons-optimus) for Optimus?
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.
I don't support the old versions.
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
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.
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)
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?
is the mod have hashtag function?
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
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.
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.
Can you provide screenshots of all your settings?
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).
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.
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.
Hello
Your website is not accepting Paypal payment. i have to pay using paypal.
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.
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.
I will send you a link via PM, don't worry.
it is declined the payment two times using paypal. please see screenshot.
Have you tried contacting PayPal support?
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?
I can't find version for my forum. Does it work with SMF 2.0.19 or only 2.1 and above?
2.1 only
No chance of getting an old version for 2.0.19? It should still work. Perhaps someone has it?
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
I have 2.7.4 for 2.0.19
Quote from: @rjen on September 18, 2022, 09:22:44 AMQuote 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.
2.7.4
Thank you ;)
Can I get an extension so it can include pretty URLs links into sitemap.xml?
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?
thanks!
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
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. ;)
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"
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)
Is it possible keywords to be displayed on every topic's page?
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
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?
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)
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
@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.
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
Is this compatible with 2.1.3?
Yes
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?
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.
How to add 2-4 phase keyword ?
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: [","],
Quote from: Bugo on March 08, 2023, 10:50:03 PMQuote 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
I think what was meant was one sentence instead of one word.
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)
Is jQuery loading? Are there any errors in the browser console?
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>
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.
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)
Fixed!
Re upload to local webserver, and reinstall mod
@BugoPlease, 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.
Interesting, it will be necessary to test the work with this service.
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")));
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 :)
Ok, then try to test with this updated file.
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)
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 :)
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
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
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
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.
@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!
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.
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)
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'];
}
Thanks very much, will try that
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.
Shouldn't it be located in root?
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.
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.
You can do a small addon for that.
Create a file \Sources\Optimus\addons\ChangeSitemap.php with this content:
<?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.
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:
<?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!)
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
Is there a way to make Optimus automatically update the sitemap after a new topic is created?
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!
My sitemap page is showing black page and by post is not showing on Google
@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.
How can I add it back please help me
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
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.
No Optimus Brave For SMF 2.0.15
2.0.15 is outdated and insecure.
No one should still be using it.
Upgrade.
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
I still have an old Optimus package for SMF 2.0 . I can upload it here, but the package comes as is: NO support
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
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.
Quote from: @rjen on December 16, 2023, 07:10:24 AMQuote 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
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
Quote from: Xpresskonami on December 25, 2023, 10:50:26 PMQuote from: @rjen on December 16, 2023, 07:10:24 AMQuote 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
How can I do the latest mod update? Do I need to delete the old version?
It depends on what version you have specifically. But in general, yes. Usually the settings are stored in the database.
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?
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.
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?
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.
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
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'];
}
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.
Try to remove your changes, then open index.template.php of used theme and replace <html> with <html prefix="og: https://ogp.me/ns#">
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?
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/)
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.
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/
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.
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.
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?
Social Networking Service. You won't be able to influence their cache.
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.
Hi,
I created a translation of the plugin into Polish language. I use it on my forum, I am sharing it with you.
Thank you, you can upload and mantain it on the Crodwin system (https://crowdin.com/project/smf-optimus).
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).
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 :)
Why isn't the sitemap loading?
(https://i.imgur.com/CIGbyCw.png)
https://fiuxer.lat/index.php?action=sitemap_xsl
The error itself tells you: there's a mismatch between HTTP and HTTPS. Everything should be using HTTPS...
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
Have you tried recreating the sitemap? (just turn off/on in the settings)
Is your forum *itself* configured to use HTTPS? As in, inside Settings.php, is $boardurl HTTPS?
The error suggests not.
I am having an error in the error log after installing this addon:
error.PNG
Try to define default og_image in your current theme settings.
Yeah, that solved it. Thanks!
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.
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
There is the IndexNow addon (https://ko-fi.com/post/All-premium-addons-for-Optimus-U7U3VKQHJ) for that.
I tried Optimus package 3.0 beta, but I removed it again: that version causes unknown actions to produce errors in the log: Unable to load the 'main' template.
To reproduce:
install version 3.0 beta in a forum
then access a non-existent action, like /index.php?action=register
Result:
Unable to load the 'main' template.
Thanks for the warning
@rjen I plannend that version too for the next Thirsday as my mate plans to make a visit. Now he can stay home. ;D
If I understand Bugo correctly, you have to empty the Optimus folder on the server and install the new version there?? Is that right?? If that's it, my mate can stay home and I'll try it myself, but now what and which one?
Have you tested Optimus 2.13?
Greetings
Pieszyce
Installed version 2.11 for quite some time. When I tried to reinstall I noted that the buttons for Install and Uninstall are not there anymore. Now there is only one for showing the files and a Delete button. What do I do?
I want to update the mod but am afraid if I use Delete it might break something else.
SMF version is 2.1.4
Use "Delete" button, and then remove "Sources/Optimus" dir on your server.
Also, remove the integration hook:
(https://i.ibb.co/Svn79yn/sshot-22.png) (https://ibb.co/12qJwQq)
After doing what Bugo said, go to 'Add Packages' and install the version you want.
Quote from: [member=137340rjen[/member]]
I tried Optimus package 3.0 beta, but I removed it again: that version causes unknown actions to produce errors in the log: Unable to load the 'main' template.
To reproduce:
install version 3.0 beta in a forum
then access a non-existent action, like /index.php?action=register
Result:
Unable to load the 'main' template.
@rjen ...do you know which file contains that string "Unable to load the 'main' template."? I haven't been able to find it in SMF 21.4, TP 3.0.0 or Optimus 3.0beta.
Quote from: davo88 on May 18, 2024, 07:31:28 PM@rjen ...do you know which file contains that string "Unable to load the 'main' template."? I haven't been able to find it in SMF 21.4, TP 3.0.0 or Optimus 3.0beta.
Why are you looking for this file? The package has already updated, and this error was fixing. And this error was not associated with any file.
I have installed a version which came in a file called 'optimus_3.0_beta.zip' which was downloaded on 03 March 2024. It is called 'Optimus 3.0 Beta' in Package Manager. It gives the same error message, so I went looking to see what was generating that error message.
The version listed on the mod download page (https://custom.simplemachines.org/index.php?mod=2659) is still called 'optimus_3.0_beta.zip' and is the file same size as the previous zip I downloaded. But I see the 'Last updated' date has changed to May 01 2024. Is this a new version with an old label? Or am I missing something?
Well yeah, while beta testing is going on, I am just updating the package.
Quote from: Bugo on May 19, 2024, 02:18:26 AMWell yeah, while beta testing is going on, I am just updating the package.
I figured that much, but indeed without any information on updates and what has been fixed it is not clear what the state of the latest package is. I for one did not reinstall the beta package, simply due to lack of information that this issue was fixed...
This project is open, all changes are available on Github History. I'm just too lazy to spam here about every change :)
Well, I am too lazy to start hunting for changes in the packages. The beta testing is also for your benefit...
@Bugo... this is very nice software. I am new to Optimus and have been using another sitemap mod on 2.0.19. But this week I am converting to SMF 2.1.4, TP 3.0 and Optimus 3.0b. I have found having a sitemap significantly improved the Google crawler results, so am looking forward to learning about and using Optimus' features.
'Enable logging of search terms' is very useful for understanding users' needs. I am not a coder, but this part looks as though it is designed to limit the display of terms searched to those having > 10 hits under 'Popular search queries'.
$i = 0;[font=Verdana, Arial, Helvetica, sans-serif] $rows = '';[/font]
foreach (Utils::$context['search_terms'] as $data) {
if ($data['hit'] > 10) {
$i++;
$rows .= '["' . $data['text'] . '",' . $data['hit'] . '],';
}
}
What I see listed under 'Popular search queries', is every search term irrespective of the hit count. Is this the intended behaviour?
So, basically, it just decides which queries are going to be in the round chart. The normal (bar) chart only shows the top 30 most popular queries, but the round chart shows the ones that were searched for more than 10 times.
Hi, first thanks for this great mod!.
I have 2 smf forums on my server and one shows sitemap.xml correctly but the other one show white screen (with nothing) on the browser, but if i opened from my server i can see data inside, what is wrong?
Regards.
I am very sorry to hear that you are facing a similar problem. Try searching by the combination "blank page" within this topic. If I knew for sure which version of SMF and Optimus you were using, it would be easier for me to determine the source of the problem. The general recommendations are as follows: if you are using Optimus 2.x, try to upgrade to 3.0. If the problem persists, check the permissions to create files inside your forum's root directory on the server.
Quote from: Bugo on June 22, 2024, 10:39:55 AMI am very sorry to hear that you are facing a similar problem. Try searching by the combination "blank page" within this topic. If I knew for sure which version of SMF and Optimus you were using, it would be easier for me to determine the source of the problem. The general recommendations are as follows: if you are using Optimus 2.x, try to upgrade to 3.0. If the problem persists, check the permissions to create files inside your forum's root directory on the server.
Hi
@Bugo i have smf 2.1.4 and Optimus 3.0 Beta, my main folder /var/www/xxxxx/ is 0777 and i can see inside sitemap.xml. If i open my forum /sitemap.xml it show empty on browsers but if i open the file on the server inside i can see content... the other smf site has the same versions, permissions etc and i can see it without problem on my browser the sitemap.xml file and content. thanks, regards.
What about /Themes/default/css/optimus/sitemap.xsl - does it exist?
Quote from: Bugo on June 24, 2024, 12:40:29 AMWhat about /Themes/default/css/optimus/sitemap.xsl - does it exist?
yes, sitemap.xsl, optimus.css and index.php there i can see.
Hello,
I'm not sure if this is the right place but I have a problem.
First of all, Google has stopped crawling my SMF forum
I get when I look in Statistics and then for say a month back the error message . . . .
QuoteFouttype: Database
Foutmelding Selecteer
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'offset
FROM smfvd_log_spider_stats
WHERE stat_date < '2024-04-01'' at line 1
SELECT COUNT(*) AS offset
FROM smfvd_log_spider_stats
WHERE stat_date < '2024-04-01'
In my screen and in my error log.
I am totally unfamiliar with this kind of thing, but what should be done?
Kind regards,
Pieszyce
You are right, this is not the right place, but try to replace "offset" with any other word, that is not a reserved in SQL (https://en.wikipedia.org/wiki/List_of_SQL_reserved_words).
ManageSearchEngines.php
SELECT COUNT(*) AS offset
I'm sorry I am Mr. Zero about this kind of work,
I changed
SELECT COUNT(*) AS num_stats in
SELECT COUNT(*) AS offset en now I dont have totaly no stats anymore the error is
QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'offset
FROM smfvd_log_spider_stats' at line 1
File: /home/g101178/domains/polenforum.nl/public_html/forum-over-polen/Sources/ManageSearchEngines.php
Line: 1096
What did I wrong?
Kind regards
DONE
I changed it in upset because it made me angry and it is working know.
Thanks BUGO for your help and sorry I'm, that stupid. ;)
@Bugo after done, my whole spiderfile was disappeared. Stats was perfect, but spiderfile gave the following error
QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'offset
FROM smfvd_spiders' at line 1
File: /home/g101178/domains/polenforum.nl/public_html/forum-over-polen/Sources/ManageSearchEngines.php
Line: 370
I know I'm in the wrong topic, can you please move everything to the right topic, my age doesn't allow me to find everything properly and quickly, so please help me get to the right topic.
for now I have restored the original with offset
Kind regards
Pieszyce
Ukrainian localization.
Author, please add it to the mod pack.
Quote from: Xvost on June 24, 2024, 08:24:33 PMUkrainian localization.
Author, please add it to the mod pack.
Thanks, we use Crowdin system (https://crowdin.com/project/smf-optimus) for translations, you can join and upload your file there.
Quote from: clubkadettspain on June 21, 2024, 08:58:45 AMI have 2 smf forums
Can you provide links to these forums? Do they have the same set of installed mods?
Hi
@Bugo, I have the same situation as clubkadettspain. If I click on the Sitemap link at the bottom of the home page, Chrome, Brave, Opera browsers display a white screen. However using Firefox, I do see a screen full of links.
If I download and save sitemap.xml from the same link at the bottom of the home page using any of those browsers, it downloads correctly and is a properly formatted xml file. Google Search Console is able to read the sitemap OK.
/Themes/default/css/optimus/sitemap.xsl also exists and is 0666.
SMF 2.1.4
Optimus 3.0 Beta
TinyPortal 3.0.0
TinyPortalArticleDefaults 1.0.0
Forum Width Setting 1.2
Board Sorting Method 1.0.1
Custom Form Mod 4.0.6
Quick Reply Attachments Button 1.0
Simple Audio Video Embedder 7.0.5
Ultimate Menu 2.0.2
Login Menu Button 2.0
Admin Notes 1.0
https://www.douglasmotorcycles.net/
Try to enable "Force SSL" (Maintenance - Server Settings - General) and re-create (disable/enable) a sitemap.
Thanks
@Bugo, that fixed it. Could you explain how that fix worked please?
For some reason, sometimes the map generates links with `http` instead of `https`, that's the problem.
Hi
@Bugo, I am having issues with the Optimus mod on my site. I installed v3.0 Beta and everything looks alright but no sitemap.xml is generated.
The link to the sitemap.xml returns to 404.
My forum is in a sub-folder - https://www.theinfostride.com/forum/
Please help!
Perhaps you have some kind of redirect configured? Check the forum directory to see if the sitemap.xml file is there.
Or try to disable/enable the sitemap generation.
Quote from: Bugo on July 06, 2024, 10:23:34 PMPerhaps you have some kind of redirect configured? Check the forum directory to see if the sitemap.xml file is there.
Or try to disable/enable the sitemap generation.
There is no sitemap.xml file in the folder. I have attempted to disable and enable but no luck.
The redirect I have in place happens when there is no file. I disabled the redirect and attempted to run the sitemap again but no luck. The sitemap page returned 404.
Did you set permissions to create files in the forum root directory?
Quote from: Bugo on July 07, 2024, 09:24:47 AMDid you set permissions to create files in the forum root directory?
Yes.
Try to create an empty sitemap.xml file in your forum root, and then disable/enable the sitemap generation, with 666 permission.
Do not check option "Remove previously generated sitemap*.xml files"
Quote from: Bugo on July 07, 2024, 10:38:36 PMTry to create an empty sitemap.xml file in your forum root, and then disable/enable the sitemap generation, with 666 permission.
Do not check option "Remove previously generated sitemap*.xml files"
I have done this. I opened the file and noticed "This XML file does not appear to have any style information associated with it. The document tree is shown below."
Quote from: InfoStrides on July 08, 2024, 02:57:35 PMThis XML file does not appear to have any style information associated with it. The document tree is shown below.
This is normal for raw XML files, nothing says they have to have style information - but that should also mean it's not a blank XML file because it must be a valid file there for the browser to pick it up as such.
Quote from: Arantor on July 08, 2024, 03:09:57 PMQuote from: InfoStrides on July 08, 2024, 02:57:35 PMThis XML file does not appear to have any style information associated with it. The document tree is shown below.
This is normal for raw XML files, nothing says they have to have style information - but that should also mean it's not a blank XML file because it must be a valid file there for the browser to pick it up as such.
The file is empty.
An XML file that is empty but recognised by browsers as valid XML? That would be new to me, never seen that in 20 years of dealing with XML.
Quote from: Arantor on July 08, 2024, 05:50:15 PMAn XML file that is empty but recognised by browsers as valid XML? That would be new to me, never seen that in 20 years of dealing with XML.
The file was created empty though as part the troubleshooting guidance.
That's just it, *an empty file is not valid XML*.
Quote from: InfoStrides on July 14, 2024, 12:32:18 PMThe file was created empty though as part the troubleshooting guidance.
Ok, now enable "Remove previously generated sitemap*.xml files" option and disable/enable the sitemap generation.
it only solves by "rewinding" the Optimus version. Then it works normally!
Hello,
I do have a big problem.
Around April 1 this year, a host employee installed Pretty Urls for me. Now the fact occurs that as of 4-7-2024 Google no longer crawls which can be seen in statistics, Bing does not get far beyond the login page, so crawled 1 page. Google works strange now in the Users online and not in Spiders and visit one page, the login page.The only one doing a good job is Excite.
Could this spider conflict be caused by Pretty Urls?
What also is strange, is the fact that on the forum in the url now there is a readable url, but in the sitemap still the one that smf creates.
I am a newbe in this area, sorry
The forum can be found here (https://polenforum.nl/forum-over-polen/index.php).
From September 27, 2022 we switched from Yabb to SMF, everything ran pretty well until April 2024. In Google Page functionality is also something strange what I don't understand.
Mobile Desktop HTTPS
Good No data lockHTTPS
No problems found No recent usage. More information Good, No problems found
This is strange because there are at least 13 posts per day
Can somebody tell me what is wrong?? :)
Kind regards
The sitemap is updated at the frequency specified in the Optimus settings. So, open the settings, choose desired frequency and disable/enable the sitemap generation.
Hai Bogu
I did what you said. But nothing changed
Settings sitemap
https://polenforum.nl/polenblog/wp-content/uploads/2024/07/sitem001.jpg (https://polenforum.nl/polenblog/wp-content/uploads/2024/07/sitem001.jpg)
url's sitemap
https://polenforum.nl/polenblog/wp-content/uploads/2024/07/sitem002.jpg (https://polenforum.nl/polenblog/wp-content/uploads/2024/07/sitem002.jpg)
When I use Pretty Urls, why don't the urls in the sitemap not change in for example
https://polenforum.nl/forum-over-polen/index.php/board,80.0.html to https://polenforum.nl/forum-over-polen/actuele-politieke-ontwikkelingen-in-polen-vanaf-13-november-2023/
which is the actual readable URL.
why doesn't google read the first url?
Try to instal 3.0 Beta
Question,
when I take an sitemap generator, it shows de Pretty url urls but only 500.
I can't remember how I made the one I have now https://polenforum.nl/polenblog/wp-content/uploads/2024/07/sitem002.jpg
I have to look for some one who will install the Beta, is it correct you have to delete the 2.13??
I had a admin who was IT er But he has no ttime anymore because of a new Job and I'm Green in this matters.
Of course, you can hire a specialist every time to perform simple actions in the forum settings, then hire other specialists to clean up the actions of the first ones, but it is better for you to understand and learn the basics yourself.
Try to disable "Use caching instead of database table for PrettyUrls" in the PrettyUrls settings, then disable/enable the sitemap generation 2-3 times.
Lol ;D ;D No hire, he was member of the forum since 2004
At the age of 79 it is no longer easy to learn but I like to learn Thats why the questions. ;) .
Good. I have uploaded Optimus 3.0 Beta to the forum, can I click the install link or I have first to delete the previous version?
That's all I think I need to know. Please show me the way to learn. :)
Do not DELETE the previous version.
UNINSTALL it.
Thank you, Now I'm going the right way.
I will Uninstall and install 3.0 Beta after that
Ok I installed.
But I don't see changes in the Sitemap https://polenforum.nl/forum-over-polen/index.php/board,75.0.html that should be https://polenforum.nl/forum-over-polen/verkiezingen-polen-najaar-2023/ Because Google does not likes the first
As Bugo said, I disabbled the Use caching instead of database table for PrettyUrls check mark and then disable/enable the sitemap generation 15 times and Nothing happens.
What did I wrong?
Is it correct Optimus does not generate a sitemap?
Which generator should I take?
Is there somebody to help? Because I don't understand why I do have those problems.
Around the end of March I installed the first version of Optimus and when I go to Google I see strange things.
https://polenforum.nl/polenblog/wp-content/uploads/2024/07/googindex.jpg (https://polenforum.nl/polenblog/wp-content/uploads/2024/07/googindex.jpg) See this picture.
Google is going from Hight to zero
Mobile has the rating GOOD
and Desktop says, NO DATA and to think that this is a forum where I post at least 12 posts every day.
Are these robots correct?
QuoteUser-agent: Googlebot (desktop)
User-agent: *
Disallow: /forum-over-polen/index.php?action=admin*
Disallow: /wp-admin/*
Disallow: /wp-login*
Allow: /forum-over-polen/index.php?*
Allow: /forum-over-polen/*
Allow: /forum-over-polen/*board,*.0.html$
Allow: /forum-over-polen/*topic,*.0.html$
Allow: /forum-over-polen/*page
Allow: /forum-over-polen/*.xml
Allow: /forum-over-polen/$
Allow: /*.css$
Allow: /*.js$
Allow: /*.png$
Allow: /*.jpg$
Allow: /*.gif$
I hope there is some one who can help me out.
After enabling Pretty Urls, the rule generator recommends a different set of rules. The robots.txt file will not update itself, you must do it manually. In fact, I've been pondering lately whether to remove Pretty Urls support altogether, since it does more harm than good. People want instant indexing everywhere and anywhere after turning on one button. It's not going to happen.
Hi Bugo,
The settings in Optimus are not yours?
I've been reading a lot the last few days and there are indeed quite a few problems with Pretty Urls. Is there another way to make the URLs readable? How do I get Pretty urls removed again?????
Can I use some robots generator or, should I read what Google adviced
The rule set offered in the Optimus panel is just a sample recommendation. You should not blindly trust it and copy it. Each forum may have its own nuances. Read Google's recommendations, they are prioritized.
Thanks Bugo
I will look to it,
Hai Bugo,
Would this work?? You know I'm green as grass in this matter. :'(
QuoteUser-agent: *
User-agent: Googlebot (smartphone)
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /forum-over-polen/index.php?action=admin*
Allow: /forum-over-polen/index.php?*
Allow: /forum-over-polen/*
User-agent: Googlebot (desktop)
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /forum-over-polen/index.php?action=admin*
Allow: /forum-over-polen/index.php?*
Allow: /forum-over-polen/*
User-agent: Googlebot (images)
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /forum-over-polen/index.php?action=admin*
Allow: /forum-over-polen/index.php?*
Allow: /forum-over-polen/*
Disallow: /cgi-bin/
Sitemap: https://polenforum.nl/forum-over-polen/sitemap.xml
These rules are for Wordpress site, not for SMF.
You can use very simple rules to start:
User-agent: *
Allow: /
From there, you'll just slowly ban what you don't want in your search.
https://developers.google.com/search/docs/crawling-indexing/robots/create-robots-txt?hl=en
For example, if you want do prevent indexing of your content by ChatGPT bots, you can add this rule:
User-agent: GPTBot
Disallow: /
Hi Bugo,
#1109
I know, but that's what the domain is, in Polenforum.nl there is a folder polenblog, with the WP of the portal and a folder forum over Polen, with the SMF forum.
When I create a robots.txt for them in the folder and try to look it up in Google, Google says "Only available to root level properties" and the robots.txt is ignored.
Only the robots.txt in the polenforum.nl domain root is recognized as good and then you get the combined one I already showed you.
Until the end of March there was no problem, but Google changed something and I became a victim.
I have also been looking at this picture since the end of March
https://polenforum.nl/polenblog/wp-content/uploads/2024/07/Googlexx22xx.jpg (https://polenforum.nl/polenblog/wp-content/uploads/2024/07/Googlexx22xx.jpg)
From April 7, Google will no longer index. I have now suggested to the host that they create a new domain and transfer everything to it, so that the forum is really in a domain.
Thanks for the advice
Apologies for the length but a good explanation is needed.
Bugo
I have a serious problem.
After disabling Pretty Urls today, I decided to reinstall OPtimus 3 Beta hoping to get my sitemap back, During the installation I got . . . .
Validation Results
Simple Machines Third-party Mod Site Found
Simple Machines Downloads Site Unknown or Not Found
and after install I had a white page. What did I wrong??
The mod version: 2.13, I can install withput a problem but 3.0 keeps giving the white page
Hi Bugo,
I have good and bad news
After some searching I found download 1 again, I installed it and everything works. Only no sitemap yet.
Differences in the MOD?? Is that possible??
Download 1 of July 18, 2024 optimus_3.0_beta.zip 164,736
Download 2 of July 27, 2024 optimus_3.0_beta.zip 160,757
Download 2 gives at me the white page, Download 1 is good.
But how do I create a working sitemap with Optimus??
What do I have to do??
I've re-uploaded the file, try to download an updated package.
Done.
But this one is also 500 bytes smaller.
Everything seems to work, only "Recount all forum totals and statistics" gives a white page.
Quote from: Bugo on July 14, 2024, 02:12:07 PMQuote from: InfoStrides on July 14, 2024, 12:32:18 PMThe file was created empty though as part the troubleshooting guidance.
Ok, now enable "Remove previously generated sitemap*.xml files" option and disable/enable the sitemap generation.
I have done the above, but no luck. I also uninstalled and downloaded the new files, but same issue.
I did the same, now I don't have a sitemap because of nobody tells a green PC user how to do.
5 day's of reading the internet, trying en nothing. :( :(
@InfoStrides, go to the Package Manager => File Permissions area and make sure that your forum root directory is writable.
Hi Bugo,
After the last install of Optimus on July 28, 2024, 06:25:18 AM post #1115 I have the following problem.
When I click on Forum Maintenance> Recount all forum totals and statistics
I get the message below
QuoteParse error: syntax error, unexpected token "}" in /home/g101178/domains/forum.polenforum.nl/public_html/Sources/ScheduledTasks.php on line 276
How should that be changed because now it doesn't work??
Regards
Pieszyce
@Pieszyce, Optimus does not change source files
Oke, I understand, but how can I repair this
because Now I cannot make a recount for the sitemap
and it showed up after the last Optimus install, that why I connected it together like a layman
Dear Bugo
Today my host put the forum in a subdomain at my request, it worked perfectly after that.
It was strange that even though Optimus 3.0 Beta was installed in Packages, Optimus was present with all its features, including sitemap settings, etc., etc.
I decided to install Optimus 3.0 Beta with the following result, so the forum is inaccessible.
QuoteFatal error: Uncaught Error: Undefined constant Bugo\Optimus\Addons\ExampleAddon::PACKAGE_ID in /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Handlers/AddonHandler.php:52 Stack trace: #0 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Libs/league/event/src/PrioritizedListenerRegistry.php(56): Bugo\Optimus\Handlers\AddonHandler->subscribeListeners() #1 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Libs/league/event/src/EventDispatcher.php(84): League\Event\PrioritizedListenerRegistry->subscribeListenersFrom() #2 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Handlers/AddonHandler.php(34): League\Event\EventDispatcher->subscribeListenersFrom() #3 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Handlers/HandlerLoader.php(39): Bugo\Optimus\Handlers\AddonHandler->__invoke() #4 [internal function]: Bugo\Optimus\Handlers\HandlerLoader::Bugo\Optimus\Handlers\{closure}() #5 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Handlers/HandlerLoader.php(39): array_map() #6 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Prime.php(29): Bugo\Optimus\Handlers\HandlerLoader->__construct() #7 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/app.php(24): Bugo\Optimus\Prime->__construct() #8 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Load.php(439): require_once('/home/g101178/d...') #9 /home/g101178/domains/forum.polenforum.nl/public_html/index.php(143): reloadSettings() #10 {main} thrown in /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Handlers/AddonHandler.php on line 52[/quote]
In such cases you can just delete/rename the Sources/Optimus folder, since the mod doesn't change anything anywhere and works on hooks. Then uninstall all versions of Optimus via Package Manager, download and install the latest 3.0 Beta. Don't look at the archive size, you need the latest version by date.
Quote from: Bugo on August 04, 2024, 10:23:44 AM@InfoStrides, go to the Package Manager => File Permissions area and make sure that your forum root directory is writable.
I changed the permission as advised, then deactivated and reactivated the mod but no luck.
Quote from: Bugo on August 06, 2024, 01:57:07 PMIn such cases you can just delete/rename the Sources/Optimus folder, since the mod doesn't change anything anywhere and works on hooks. Then uninstall all versions of Optimus via Package Manager, download and install the latest 3.0 Beta. Don't look at the archive size, you need the latest version by date.
Done,
And so far I can see, no errors.
But I did not activate your Pretty url links. Also because I had the idea that you were not happy with that link.
Thanks for the moment. ;)
Hi Bugo,
The forum is now in a subdomain. Optimus generates a .htaccess containing the following lines.
Quote# PRETTYURLS MOD BEGINS <<
# Pretty URLs mod <<
# http://code.google.com/p/prettyurls/ <<
# .htaccess file generated automatically on: May 14, 2024, 0:07 <<
RewriteEngine on
RewriteBase /forum-over-polen
# 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 <<
I don't plan on ever using Pretty urls and everything is disabled.
The .htaccess is in the subdomain. Can I remove all the lines with << without any problems so I can use the map for
order allow,deny
Deny from 50.114.*.*
allow from all
??
The Sitemap works fine now. ;D
Optimus does not generate .htaccess files, it just allows to create/edit them :)
It has also nothing to do with your Pretty urls support?
Because of this?
QuoteI've been pondering lately whether to remove Pretty Urls support altogether, since it does more harm than good.
Also not any idea what I can do?
Just take it out if you are not using the mod.
Better: take a local copy, update tot your liking and test the result.
If you don't like it put back the copy you made
Quote from: @rjen on August 14, 2024, 01:01:59 PMJust take it out if you are not using the mod.
Optimus I use, but not the link to Pretty Urls because of many problems.
That's why I thought Optimus had generated that .htaccess.
I know enough and thank you.
I think post#1130 is in te wrong topic ;D ;D ;D
Quote from: Pieszyce on August 14, 2024, 11:09:55 AMHi Bugo,
The forum is now in a subdomain. Optimus generates a .htaccess containing the following lines.
Quote# PRETTYURLS MOD BEGINS <<
# Pretty URLs mod <<
# http://code.google.com/p/prettyurls/ <<
# .htaccess file generated automatically on: May 14, 2024, 0:07 <<
RewriteEngine on
RewriteBase /forum-over-polen
# 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 <<
I don't plan on ever using Pretty urls and everything is disabled.
The .htaccess is in the subdomain. Can I remove all the lines with << without any problems so I can use the map for
order allow,deny
Deny from 50.114.*.*
allow from all
??
The Sitemap works fine now. ;D
bro how did you fix the issue ? I'm facing the same problem, sitemap showing only main url
@Bugo can you help me out if possible
What issue can I assist you with? If you have PrettyUrls installed, please remove it, and the forum map link will work. Alternatively, you can install SimpleSEF, but it's better to avoid using any of them altogether, imho.
Quote from: Bugo on October 31, 2024, 01:59:27 AMWhat issue can I assist you with? If you have PrettyUrls installed, please remove it, and the forum map link will work. Alternatively, you can install SimpleSEF, but it's better to avoid using any of them altogether, imho.
I removed pretty urls and reinstalled optimus and when I click site map its look like this
(https://files.catbox.moe/2z2ki3.PNG)
Btw I've 100+ topics
What should it look like? Considering that almost all topics have no responses, the result is expected. Try changing some options in the mod settings, turn it off and on again (this will trigger a regeneration of the map).
Quote from: Bugo on October 31, 2024, 04:03:56 AMWhat should it look like? Considering that almost all topics have no responses, the result is expected. Try changing some options in the mod settings, turn it off and on again (this will trigger a regeneration of the map).
I did every possible thing and its not working, I should have not installed pretty urls mod in the first place
Try to install Optimus 3.0
Quote from: Bugo on October 31, 2024, 04:39:46 AMTry to install Optimus 3.0
no use :( do I need to change anything ?
Wait for the search bots to scan the most interesting topics on your forum by themselves. Creating a sitemap for this is not necessary. As the forum fills up with real people and new messages, the sitemap will update itself.
Quote from: Bugo on October 31, 2024, 08:53:35 AMWait for the search bots to scan the most interesting topics on your forum by themselves. Creating a sitemap for this is not necessary. As the forum fills up with real people and new messages, the sitemap will update itself.
Somehow I managed to make it work but the topic maps are not showing up ;D
(https://files.catbox.moe/shzj4s.PNG)
Hi,
I successfully installed the mod (SMF 2.1) and when I want to see the sitemap it shows me only a white blank page?
I put CHMOD to 777 from sitemap.xml but it still shows white blank page.
I have a bit of a worse problem – I can't even see a link to your website. And I don't even know which version of the mod you installed, what settings you enabled, and all those other little details.
Quote from: Bugo on November 03, 2024, 10:23:11 PMI have a bit of a worse problem – I can't even see a link to your website. And I don't even know which version of the mod you installed, what settings you enabled, and all those other little details.
I have installed the latest version of the mod (v3.0 Beta).
I solved the problem by clearing the cache of the browser I use.
Thanks.
Dear
@Bugo,
I recently installed Optimus 3.0 Beta and I'm trying to add a meta-tag description.
When I set "The forum description" for the Homepage, the meta-tag description remains the same across every page of the forum.
Configuration Details:
"Display the topic first message snippet as the meta-tag description": Enabled
In Optimus 2.13, this configuration worked perfectly, displaying the topic's first message snippet as the meta-tag description. However, it doesn't seem to function the same way in Optimus 3.0 Beta.
System Information:
- SMF 2.1.4
- PHP 8.2
- Optimus 3.0 Beta
- Installed mod: Stop Forum Spam
Could you please guide me on how to resolve this issue in Optimus 3.0 Beta?
Thank you!
Everything is fine on the test forum, I'll try to test it on a fresh installation.
Quote from: Bugo on November 07, 2024, 10:23:28 AMEverything is fine on the test forum, I'll try to test it on a fresh installation.
Dear
@Bugo,
I have tested the issue three times by installing it on a clean SMF setup. Please let me know when you test it, as I need to find a solution to fix it.
Thank you!
I have checked the display of the description tag in three scenarios: when only the general description of the forum is provided, when a topic description is specified, and when the option to display the first message as the description is enabled. In the latter case, the topic description will still be displayed if it has been previously set by the user.
In other cases, where no description is provided and the option to display the first message of the topic is not enabled, the default SMF description should be used—specifically, the topic title should be displayed as its description. If your experience differs, please describe your actions step by step and check for the influence of other mods (which may have been installed previously but left their traces even after removal).
By the way, please show me your forum; I will take a look at the page descriptions.
Dear
@Bugo,
I am currently testing Optimus 3.0 Beta on a local computer before deploying it on a public server.
I noticed that when I remove the description for the homepage and enable "Display the topic first message snippet as the meta-tag description," it works correctly. However, there is no description on the main page of the forum. When I add a meta description for the homepage, the original issue persists.
I have not installed any other mods and had not done so before. For reference, I upgraded my SMF from version 2.1.8 to 2.1.4. Please note that Optimus 2.13 functions correctly with this configuration.
Here is a screenshot of my settings:
(https://i.ibb.co/xKnnCRs/smd-meta.png) (https://ibb.co/35xxrLs)
Same metadescription in all pages:
(https://i.ibb.co/pRPzyLf/smf-desc.png) (https://ibb.co/2s6tNkv)
I can create a test subdomain and provide test admin details for you. Could you please test it on my forum? Let me know if this works for you, and I'll send you the details via PM.
Thank you for your assistance!
No, you don't need to create anything. Just share the info about your test environment setup: PHP, Database, and so on. Did you use the latest package of Optimus 3.0 from this site? And one more question: what's stopping you from installing Optimus on the live site, enabling the necessary settings, and checking how they work? It only takes a couple of minutes.
Quote from: Bugo on November 08, 2024, 04:33:11 AMNo, you don't need to create anything. Just share the info about your test environment setup: PHP, Database, and so on. Did you use the latest package of Optimus 3.0 from this site? And one more question: what's stopping you from installing Optimus on the live site, enabling the necessary settings, and checking how they work? It only takes a couple of minutes.
@Bugo , Thank you for the message.
I have installed it to public server (test subdomain), but the problem is same. In every post page the meta description is same as in the main (home) page.
How can I fix it ? Which file and which line is responsible for this function? I have a large forum and I would like to fix it.
The mod version: Optimus 3.0 RC1, PHP version: 8.2.25, MySQL version: 8.0.40.
The Optimus 2.13 Working Fine.
The description on the main page is handled by the addDescription method in Sources/Optimus/Handlers/FrontPageHandler.php, and the description of the topic page is handled by the menuButtons method in Sources/Optimus/Handlers/TopicHandler.php. Please report the results.
Quote from: Bugo on November 12, 2024, 03:17:56 AMThe description on the main page is handled by the addDescription method in Sources/Optimus/Handlers/FrontPageHandler.php, and the description of the topic page is handled by the menuButtons method in Sources/Optimus/Handlers/TopicHandler.php. Please report the results.
Dear
@Bugo,
Thank you for the information.
In the
Sources/Optimus/ directory, I do not see a
Handlers folder. Please check the attached screenshot for reference:
(https://i.ibb.co/mBZLmqv/optfiles.png) (https://ibb.co/kybRp83)
I have already tried uninstalling and reinstalling several times.
Is it possible to manually add these missing folders and files? If so, could you please specify which folders and files need to be added manually in the Sources/Optimus/ directory ?
And which additional folders should be rechecked (in which directory) to ensure there are no missing files or folders?
Thank you very much for your help.
See Github repository for information: https://github.com/dragomano/Optimus/tree/main/src
Are we definitely talking about the same version of the mod? 3.0 RC1?
Perhaps you haven't completely removed the previous version?
QuoteSee Github repository for information: https://github.com/dragomano/Optimus/tree/main/src
Should I download add add all "Github" files and folders manually to the same directories ?
QuoteAre we definitely talking about the same version of the mod? 3.0 RC1?
Yes, we are talking about the 3.0 RC1
QuotePerhaps you haven't completely removed the previous version?
I have a clean backup of my forum, I'm trying on the clean backup, but the problem is same.
Thank you so much
Just remove the current version via the Package manager, then make sure Sources/Optimus directory is deleted (delete it manually if it is not). After all, install the 3.0 RC1 version (download the archive from the mod's page on this site). After that, check the contents of Sources/Optimus directory.
Quote from: Bugo on November 12, 2024, 06:04:29 AMJust remove the current version via the Package manager, then make sure Sources/Optimus directory is deleted (delete it manually if it is not). After all, install the 3.0 RC1 version (download the archive from the mod's page on this site). After that, check the contents of Sources/Optimus directory.
Dear Bugo,
I sincerely apologize for the confusion earlier; I mistakenly provided the wrong screenshot. After reviewing everything, I can confirm that all files and folders are correctly installed, and there are no missing files or folders. However, the issue with the meta-description persists, and I am unsure how to resolve it.
Thank you
Hello I use smf 2.0
I activate a Cloudflare DDos attack in which new visitors will pass through verification before accessing my forum. But My content image graph stops working whenever i share a post to whatsapp group or Facebook. But if i deactivate the cloudflare Ddos attack. The open image graph will start working back. Please how can I fix this with the DDOs activated?
You can't. You literally can't. The graph image gets blocked by CloudFlare because it can't answer their "are you human" (because the graph image fetcher isn't human)
Hello! I need help.
I need help so that the keywords can include separate words, for example: "two words" and the system interprets it as one keyword and not as 2.
Is this possible?
In version 3.0, this issue should not exist. As for the other version, a solution has already been mentioned somewhere in this topic, so please look for it.
Quote from: vitalog2010 on November 07, 2024, 09:59:36 AMDear @Bugo,
I recently installed Optimus 3.0 Beta and I'm trying to add a meta-tag description.
When I set "The forum description" for the Homepage, the meta-tag description remains the same across every page of the forum.
Configuration Details:
"Display the topic first message snippet as the meta-tag description": Enabled
In Optimus 2.13, this configuration worked perfectly, displaying the topic's first message snippet as the meta-tag description. However, it doesn't seem to function the same way in Optimus 3.0 Beta.
System Information:
- SMF 2.1.4
- PHP 8.2
- Optimus 3.0 Beta
- Installed mod: Stop Forum Spam
Could you please guide me on how to resolve this issue in Optimus 3.0 Beta?
After extensive testing, I finally identified the problem. [Refer to my initial request for more details, and check my previous messages in this topic].
@Bugo , I tested Optimus v3.0 RC1 and pinpointed the issue. Note that I conducted these tests on a clean SMF 2.1.4 with PHP 8.2 (no additional mods installed).
Here are the detailed test results:
When "Search Engine Friendly URLs" is checked in the "General Configuration" on SMF, and "Display the topic first message snippet as the meta-tag description" is enabled in the Optimus settings, the page meta description is the same for all pages.
How to verify the issue after making these settings:
- Go to the main page of the forum by clicking the forum name. (Do not refresh the same page, follow the steps)
- Click on any board.
- Click on any topic.
- Refresh the topic page using Ctrl+F5.
- Open the page source to see the meta description.
You will see that the meta description is the same on all pages. However, when I disable "Search Engine Friendly URLs" in the global settings on SMF, the Optimus mod works correctly.
Hope you could you fix this issue in the next release or provide us resolution.
Screenshots of the settings:
1. SMF General Configuration (https://i.ibb.co/R93ySJj/zz1.png) (https://ibb.co/Dt9pbjr)
2. Optimus Settings(https://i.ibb.co/ZS3WDmy/zz2.png) (https://ibb.co/JqN5JQX)
3. Topic Page source code (same meta description in the every forum pages):(https://i.ibb.co/KhQbQgL/zz3.png) (https://ibb.co/r0LFLhc)
Thank you.
@vitalog2010 Thank you for the research conducted. I never enable that option, so I probably wouldn't have noticed. Try changing the code
if (empty(Utils::$context['current_action'])
&& empty(Input::server('query_string'))
&& empty(Input::server('argv'))
) {
Utils::$context['meta_description'] = Input::xss(Config::$modSettings['optimus_description']);
}
in the Sources/Optimus/Handlers/FrontPageHandler.php file to this:
if (empty(Utils::$context['current_action'])
&& empty(Input::server('query_string'))
&& empty(Input::server('path_info'))
&& empty(Input::server('argv'))
) {
Utils::$context['meta_description'] = Input::xss(Config::$modSettings['optimus_description']);
}
Quote from: Xpresskonami on November 29, 2024, 03:20:38 AMHello I use smf 2.0
I activate a Cloudflare DDos attack in which new visitors will pass through verification before accessing my forum. But My content image graph stops working whenever i share a post to whatsapp group or Facebook. But if i deactivate the cloudflare Ddos attack. The open image graph will start working back. Please how can I fix this with the DDOs activated?
How can I fix this ??
@Bugo
Quote from: Bugo on December 08, 2024, 10:49:26 PM@vitalog2010 Thank you for the research conducted. I never enable that option, so I probably wouldn't have noticed. Try changing the code
if (empty(Utils::$context['current_action'])
&& empty(Input::server('query_string'))
&& empty(Input::server('argv'))
) {
Utils::$context['meta_description'] = Input::xss(Config::$modSettings['optimus_description']);
}
in the Sources/Optimus/Handlers/FrontPageHandler.php file to this:
if (empty(Utils::$context['current_action'])
&& empty(Input::server('query_string'))
&& empty(Input::server('path_info'))
&& empty(Input::server('argv'))
) {
Utils::$context['meta_description'] = Input::xss(Config::$modSettings['optimus_description']);
}
@Bugo,
Thank you so much. The problem is solved.
I have another question: Could you please add a "rel" attribute option in the next release to include, for example, rel="noopener noreferrer nofollow" for external URLs in forum messages?
Thanks again.
You can create the addon for Optimus right now without waiting - the file Sources/Optimus/Addons/SaveLinks.php with the code provided in the link:
https://laravel.su/pastebin/9daf765b-9b08-414b-b444-33d7b9435d94
Hi
@Bugo ,
I just found another problem/bug on the Optimus 3.0 RC1 [see my My System Information in the signature].
When I'm trying to "Move Topic", getting an error on the local server: (And 500 Error on the Hosting)
Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in https://localtestforum.com/Sources/Optimus/Handlers/TagHandler.php:192 Stack trace: #0 https://localtestforum.com/Sources/Optimus/Handlers/TagHandler.php(192): explode() #1 https://localtestforum.com/Sources/Subs.php(5797): Bugo/Optimus/Handlers/TagHandler->createTopic() #2 https://localtestforum.com/Sources/Subs-Post.php(1978): call_integration_hook() #3 https://localtestforum.com/Sources/MoveTopic.php(314): createPost() #4 https://localtestforum.com/index.php(184): MoveTopic2() #5 {main} thrown in https://localtestforum.com/Sources/Optimus/Handlers/TagHandler.php on line 192
(https://i.ibb.co/M7jCjXq/mt.png) (https://ibb.co/Wfd2dTS)
Could you please test at your end ?
Thank you so much for your help.
I see, replace "$keywords = Input::xss(Input::request('optimus_keywords', []));" with "$keywords = Input::xss(Input::request('optimus_keywords', ''));" in that string.
Quote from: Bugo on December 19, 2024, 09:51:36 AMI see, replace "$keywords = Input::xss(Input::request('optimus_keywords', []));" with "$keywords = Input::xss(Input::request('optimus_keywords', ''));" in that string.
@Bugo , Solved, Thank you so much
Screenshot 2024-12-28 154151.png
@Bugo I installed the mod and found that the topic page was not displayed, but the borad page was shown as shown in the picture.
How should I fix it?
Thank you in advance.
www.ponboon.com/sitemap.xml
In your sitemap, as it should be, the boards available to guests are displayed. And the topics with more than 0 replies, as configured in the settings. What is wrong? If you need these topics without replies in the sitemap, just change the mod settings.
Quote from: Bugo on December 28, 2024, 06:44:16 AMIn your sitemap, as it should be, the boards available to guests are displayed. And the topics with more than 0 replies, as configured in the settings. What is wrong? If you need these topics without replies in the sitemap, just change the mod settings.
@Bugo Thank you ^^
Hello,
@bungo.
Any chance of default OG Images for forum topics via your ACP settings? (limited to topics).
Some forum scripts have this, where you can upload several images and some social media sites allow you to toggle which to use. I do plan to seek a mod that will allow me to upload a custom one to topics, as this is sometimes the best way to grab people's attention but as a default image most would fall within that due to convenience.
Thank you for releasing this awesome mod.
Optimus displays the first attachment from the first post of the topic as the OG image. If no such image exists, the default OG image set in the topic settings will be displayed. This is mentioned both in the mod settings and in the documentation (https://dragomano.github.io/Optimus/settings/extra/#use-the-image-from-the-first-topic-message-in-the-meta-tag-ogimage).
Quote from: Bugo on March 04, 2025, 10:55:48 AMOptimus displays the first attachment from the first post of the topic as the OG image. If no such image exists, the default OG image set in the topic settings will be displayed. This is mentioned both in the mod settings and in the documentation (https://dragomano.github.io/Optimus/settings/extra/#use-the-image-from-the-first-topic-message-in-the-meta-tag-ogimage).
Sorry, Bugo. I am not greatly familiar with SMF's ACP as I am to other software and I have never used your mod until recently. I also might need glasses, but that's more of an excuse. 😂