"Viewing the category ."

Started by kai920, September 15, 2007, 03:02:41 AM

Previous topic - Next topic

kai920

While viewing Who's Online in SMF, sometimes I see this message "Viewing the category ." (it's blank)

I suspect it's because I changed some of my Joomla categories, resulting in different or non-existant URLs. Is there a way to fix this small issue?


PS. I also plan on doing a Joomla section/category revamp in the near future

Orstio

I could see this happening, especially if a search engine was looking at a cached page that no longer exists.

Or, perhaps, these categories still exist in your trash, which is why the bridge is unable to find the name in the database?

Basically, even if it found a URL to the category, if it didn't find a name, the result would be the same.

kai920

I didn't have any menu items in the trash, but I emptied the content items.

Is there a way to prevent non-existent links from being accessed?

Orstio

I know the Yahoo crawler seems to store a list of links.  It crawls some links on my site that haven't had content there for over 4 years, actually.  I don't know if there is any way to change that.

青山 素子

You can try using a sitemap and sending that to Yahoo! Site Explorer.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


kai920

Revisiting this topic, what does "Viewing Something Else." mean?

The "Something Else" links to index.php?option=&Itemid=0

Kindred

"something else" means that whoever it is is looking at an Itemid that is not defined in the action array.

Could be anything you have installed on your system that was not defined into the list by Orstio or me.
Сл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."

kai920

Quote from: Kindred on October 02, 2007, 08:51:12 AM
"something else" means that whoever it is is looking at an Itemid that is not defined in the action array.

Could be anything you have installed on your system that was not defined into the list by Orstio or me.

I recently installed SEF Advanced... could that be it?

Or it could be the same problem of changing my menus around...?

Kindred

it could be that you have a component that I never detailed in the array....
Сл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."

kai920

oh - right! that part of yr reply completely went over my head lol.

I believe the component in question would be Joomla Tags by Phil Taylor. How hard is it to ad it into the array?

Kindred

just open up the file, copy a line and change the copied line to suit your additional component.
Сл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."

kai920

The file to edit is components/com_smf/smf_integration_arrays.php correct?

I'm trying this, but I don't understand the %1$s stuff.

Non-SEF URL: http://www.kaitech.hk/index.php?option=com_tag&tag=HTC&tag_id=448 - I would like this to show "Viewing the tag HTC", with HTC linking to this URL.

    $txt['who_tag'] = 'Viewing the tag <a href="' . ($mosConfig_sef !='1' ? $mosConfig_live_site . '/index.php?option=com_tag&amp;tag=%2$s&amp;tag_id=%1$s' : sefReltoAbs ('index.php?option=com_tag&amp;tag=%2$s&amp;tag_id=%1$s')) . '">%2$s</a>.';

Also I would like this link: http://www.kaitech.hk/index.php?option=com_tag&Itemid=124 to be shown as "Viewing the Tag Cloud." , with Tag Cloud linked...

I've tried various code and it all shows Viewing Something Else.   O:)

Orstio

You'll also need to add the condition into the integrate_whos_online function in smf.php.

kai920

Quote from: Orstio on October 04, 2007, 06:37:29 AM
You'll also need to add the condition into the integrate_whos_online function in smf.php.

Ah! No one told me that! :)

Will give it another try.

kai920

OK, need help from the master(s)...   ???

(1) I discovered that "Who's Online" is not showing correctly even for viewing articles. It says Viewing Something Else. I believe it has to do with SEF Advance since it was working before that?

(2) here is what I attempted for integrating com_tag into "Who's Online". The actual URLs are:

(non-SEF) http://www.kaitech.hk/index.php?option=com_tag&tag=O2&tag_id=416
(plain SEF) http://www.kaitech.hk/component/option,com_tag/tag,O2/tag_id,416/  (SEF Advance turns this into something else, would that have any impact?)

Code (smf.php) Select

        //How about the Tags?
        else if ($actions['option']=='com_tag')  {
            return sprintf($txt['who_tag'], $actions['option'], $actions['tag'], $actions['tag_id']);
        }


Code (smf_integration_arrays.php) Select

    $txt['who_tag'] = 'Viewing the tag <a href="' . ($mosConfig_sef !='1' ? $mosConfig_live_site . '/index.php?option=com_tag&amp;tag=%2$s&amp;tag_id=%3$s' : sefReltoAbs ('index.php?option=com_tag&amp;tag=%2$s&amp;tag_id=%3$s') . '%3$s/') . '">%2$s</a>.';



kai920

Any hints for the two problems?

Kindred

no clue...  I don't bother with SEF, so I never designed any of my modules to do anything with it....   but the who's online/what are they doing should track it correctly, since the $actions['option'] should still be set.

You seem to have some sort of truly bizarre configuration, Kai, in that you have all these issues that I have never seen on any other site.
Сл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."

kai920

Yeah, feels like I need someone to perform some exorcism on my site :(

kai920

Orstio, have you got any idea(s) what might be wrong?

Orstio

I would experiment by echoing $actions['option'] to see what the result is, and then alter the array accordingly.

Advertisement: