News:

Wondering if this will always be free?  See why free is better.

Main Menu

Optimus

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

Previous topic - Next topic

denisoi

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 
Castiga bani din freerolluri

Bugo

I think the keywords are useless for forums.

denisoi

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
Castiga bani din freerolluri

Bugo

Just remove all keywords at all. And wait for indexing updates. Forget about keywords. Think about content ;)

denisoi

ok , i removed all ..

we will see the results after a while , hope to be ok
Castiga bani din freerolluri

denisoi

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
Castiga bani din freerolluri

Bugo

Did you try to create sitemap again?

denisoi

no , i had the last one , i have to rebuild it and reupload ? :)
Castiga bani din freerolluri

Bugo

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.

denisoi

cool bro , thanks for advice .. now everything is all right :) is looking well


Castiga bani din freerolluri

Kindred

ok...   I installed this on my test system (with 150+ mods - set to test conflicts, overlaps, etc)

everything seems to be working correctly - except the wiki

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

Code (find line77) Select

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


any ideas?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Bugo

What is "wiki"? Do you mean SimpleWiki mod?

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Bugo

Unfortunately, this mod doesn't work for me. Wait stable release.

Kindred

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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Bugo

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

Kindred

that worked. :)   thanks!
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MaXiForum.cz

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

;)

Kindred

hmmmm.... that link works for me, when I am logged in, so it must be a conflict in the guest settings/permissions
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

FreeMan19


Advertisement: