News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Optimus

Started by Bugo, February 15, 2011, 03:48:12 PM

Previous topic - Next topic

-Rock Lee-

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
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

cpf

Is this compatible with 2.1.3?
Don't email me, PM me, IM me, contact me, look at me, breath on me, or even attempt to think about thinking of contacting me.  If you do, I will send you to the correct forum to post, where I will promptly tell you that you posted in the wrong forum.

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

Julius_2000

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?

Julius_2000

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.

swstarone

How to add 2-4 phase keyword ?

Bugo

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: [","],

Shades.

Quote from: Bugo on March 08, 2023, 10:50:03 PM
Quote from: swstarone on March 08, 2023, 02:21:28 PMHow to add 2-4 phase keyword ?
Sources/Optimus/Keywords.php, find
tokenSeparators: [",", " "],
and replace with
tokenSeparators: [","],

Maybe a dumb question but what does "2-4 phase keyword" mean? :o
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Bugo

I think what was meant was one sentence instead of one word.

Butiks

#969
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!


Tables in db, ok.


Source html code (css path)


Source html code (js path)


HTML inspect

Bugo

Is jQuery loading? Are there any errors in the browser console?

Butiks

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>

Bugo

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.

Butiks

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


../js/select2.min.js work in browser


../css/select2.min.css work in browser


Butiks

#974
Fixed!

Re upload to local webserver, and reinstall mod

Butiks

@Bugo
Please, add to the description of the mod - if Cloudflare is connected, then it is necessary to disable the
Speed -> Optimization -> Rocket Loader ™ setting there.



The problem with the "meta keywords" field on my forum (on a webhost) was due to this CloudFlare setting.

Bugo

Interesting, it will be necessary to test the work with this service.

Bugo

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")));

Butiks

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  :)

Bugo

Ok, then try to test with this updated file.

Advertisement: