Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

regel292 in sef_ext.php - can I remove this line?
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: regel292 in sef_ext.php - can I remove this line?

regel292 in sef_ext.php - can I remove this line? 18 years, 1 month ago #758

  • pavlovapete
Hi all,

thanks to Artio for picking up this component. I have an unusual IIS setup - I'm nnot using the .dll method but am using the "IIS custom error page" method to get SEF on our Joomla install.

For our Mambo installation I'd hacked sef_ext.php and added
$realloc = str_replace("com_content", "content", $realloc); 
(around line 362)
to stop duplicate entries of URLs.

When I added this line to JoomSEF the page died.

if ($realloc = $database->loadResult()) {
// found a match, so we aredone
//Dat betekent dus, dat de functie create(), slecht gekozen is
//That means therefore that the function create () is chosen, badly (trans)
die('regel292 in sef_ext.php');}


Can I comment out die('regel292 in sef_ext.php')?

What does it do?

Re:regel292 in sef_ext.php - can I remove this lin 18 years, 1 month ago #850

  • miun
  • OFFLINE
  • A pesimist is just a well-informed realist.
  • Posts: 563
Hello,

I probably won't be able to help you much with this issue, because if you have reached that line, it means something went wrong. Commenting it out probably will not help you, because there is some problem in the rewriting process.

I'm afraid I am not much able to help you with some custom hacks here, but what is the problem with diplicate URLs you had?

Best regards,
Michal<br><br>Post edited by: michal, at: 2006/11/01 10:36
ARTIO Support Team

Re:regel292 in sef_ext.php - can I remove this lin 18 years, 1 month ago #857

  • pavlovapete
Hi Michal,

thanks for your reply. The original (Mambo) component produced duplicate URLs, and reading some of the posts on this forum led me to think that duplicates were still an issue with the current version of JoomSEF.

When I originally looked at the problem I found that
str_replace(&quot;com_content&quot;, &quot;content&quot;, $realloc); solved the issue.
It is breaking now because
$realloc &lt;&gt; $database-&gt;loadResult() because $realloc does not have &quot;com_content&quot; in it even if $database-&gt;loadResult() does have &quot;com_content&quot;

Thinking about it just now I don't think there will be an issue - as you say if $realloc &lt;&gt; loadResult() then nothing will happen.

Because of the way I'm using IIS I'm bypassing the JoomSEF redirection mechanism all together, and just using it to display SEF URLs on my Joomla pages.

Thanks for your time.

Cheers

Re:regel292 in sef_ext.php - can I remove this lin 18 years, 1 month ago #861

  • miun
  • OFFLINE
  • A pesimist is just a well-informed realist.
  • Posts: 563
Hi Derek,

ok, I think the hack you were trying to do would not have any influence at the duplicate URLs anyway.

As regards the duplicate URLs problems that appear on these forums, it is a bit tricky -- many components generate different links (sometime e.g. with different itemID) which leads to same content. This regards mostly links coming from menus (where the content has certain itemID - related to the menu item) and links from frontpage or other components (the real content itemD).

These kind of duplicities are quite problematic to get rid of. I do not yet say impossible, but at least we have not yet figured out rules that could be applied generally. So there will be probably always some duplicate items, we just try to limit their number to minimum.

Best regards,
Michal
ARTIO Support Team
  • Page:
  • 1
Přihlášení uživatele Prázdný