User

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4038
  • *Latest: loplo

  • *Total Posts: 15704
  • *Total Topics: 2329
  • *Online Today: 16
  • *Most Online: 157
(27 Aug 09, 03:54:53)
  • *Users: 0
  • *Guests: 12
  • *Total: 12

Author Topic: SEF problems  (Read 527 times)

0 Members and 1 Guest are viewing this topic.

Offline Bugo

  • Newbie
  • *
  • Posts: 23
  • Gender: Male
    • Логово медведя
SEF problems
« on: 17 Jan 12, 01:10:03 »
I have a small mod. It has such urls:
Code: [Select]
/index.php?action=classifieds
/index.php?action=classifieds;sa=category;id=XXX
/index.php?action=classifieds;sa=section;id=XXX
/index.php?action=classifieds;sa=item;id=XXX
/index.php?action=classifieds;sa=add
/index.php?action=classifieds;sa=edit
/index.php?action=classifieds;sa=moderate
/index.php?action=classifieds;sa=moderate;deals
/index.php?action=classifieds;sa=moderate;reports
/index.php?action=classifieds;sa=user
etc

When I try enable SEF feature (in PortaMx) I get such urls:
Code: [Select]
/classifieds/
/classifieds/sa/category/id/XXX/
/classifieds/sa/section/id/XXX/
/classifieds/sa/item/id/XXX/
/classifieds/sa/add/
/classifieds/sa/edit/
/classifieds/sa/moderate/
/classifieds/sa/moderate/deals//
/classifieds/sa/moderate/reports//
/classifieds/sa/user/

But all these urls don't work. Any solution/suggestion?

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5242
  • Gender: Female
Re: SEF problems
« Reply #1 on: 17 Jan 12, 19:35:05 »
Look at the SEF Manager - Settings - All actions of your forum if you find the action classifieds.
If this exist and the SEF don't work add the action to Actions they ignored ...
Many are stubborn in relation to the path, a few in relation to the target.

Offline Bugo

  • Newbie
  • *
  • Posts: 23
  • Gender: Male
    • Логово медведя
Re: SEF problems
« Reply #2 on: 18 Jan 12, 01:04:33 »
It exists. But how make it workable? I'd not want to put this action to ignored.

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5242
  • Gender: Female
Re: SEF problems
« Reply #3 on: 18 Jan 12, 13:24:52 »
Which mod you use? Without test this, I can't say more ...
Many are stubborn in relation to the path, a few in relation to the target.

Offline Bugo

  • Newbie
  • *
  • Posts: 23
  • Gender: Male
    • Логово медведя
Re: SEF problems
« Reply #4 on: 19 Jan 12, 04:57:40 »
It's a paid mod. What code you need?

For example, this is a main function with $subActions array:
Code: [Select]
function classifieds_main()
{
global $context, $txt, $scripturl;

isAllowedTo('view_classifieds');

$subActions = array(
'moderate' => 'classifieds_moderate',
'user' => 'classifieds_own',
'category' => 'classifieds_category',
'section' => 'classifieds_section',
'item' => 'classifieds_item',
'add' => 'classifieds_add',
'edit' => 'classifieds_edit',
'search' => 'classifieds_search'
);

if (isset($_GET['sa']) && isset($subActions[$_GET['sa']]) && !WIRELESS)
return $subActions[$_GET['sa']]();

loadTemplate('Classifieds');
$context['page_title'] = $txt['classifieds'];
$context['canonical_url'] = $scripturl . '?action=classifieds';

$context['linktree'][] = array(
'name' => $context['page_title']
);
}

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5242
  • Gender: Female
Re: SEF problems
« Reply #5 on: 19 Jan 12, 08:59:25 »
well .. the code say nothing .. if I can't test that, I can say nothing.
if the action insert in the smf action array in the index.php or is the action added by a hook ?
Many are stubborn in relation to the path, a few in relation to the target.

Offline Bugo

  • Newbie
  • *
  • Posts: 23
  • Gender: Male
    • Логово медведя
Re: SEF problems
« Reply #6 on: 19 Jan 12, 10:53:20 »
Via integrate_actions hook. I tried to add action in index.php, but nothing changes.

Offline Bugo

  • Newbie
  • *
  • Posts: 23
  • Gender: Male
    • Логово медведя
Re: SEF problems
« Reply #7 on: 20 Jan 12, 02:32:23 »
Well, I tested SimpleSEF и PortaMx SEF. Summary: both mods don't work with action "classifieds". Why? :)
When I replaced "classifieds" with "super" (for example), the problem has disappeared. Now all urls are working. Strange, isn't it?

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5242
  • Gender: Female
Re: SEF problems
« Reply #8 on: 20 Jan 12, 13:47:07 »
That's indeed interesting .. I will look at that
Many are stubborn in relation to the path, a few in relation to the target.