News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

RC2 with Joomla and broken links in notifications

Started by Nitro, January 02, 2006, 12:31:57 PM

Previous topic - Next topic

Nitro

strange this, i just realized about it.
well, i don't know what i did but my members started to get the link inside emails, you know the com_smf tag BUT... something i noticed was the email link comes like this:

Quoteindex.php?option=com_smf&Itemid=79&topic=1949.new#new

notice it doesn't have the http://... stuff before the index word, how strange is that! how can i fix that?

is there a way or should i install again the whole thing?
MPF Rocks!!!

Orstio

On line 306 of smf.php, you should find this:

if ($mosConfig_sef == '1')
$new_url = str_replace(';', '/', $new_url);


Replace it with this:

if ($mosConfig_sef == '1'){
$new_url = str_replace(';', '/', $new_url);
} else {$new_url = $mosConfig_live_site . '/' . $new_url;}


And let me know?

Nitro

#2
oh yeah, i remember about that file, but where is it, i looked into the sources? and it's not there.





EDIT: i found it. but i get this error:
8: Undefined offset: 0
File: /homepages/20/d107436098/htdocs/bb/components/com_smf/smf.php
Line: 306



lines 304-309:
if ($mosConfig_sef == '1'){
$new_url = str_replace(';', '/', $new_url);
} else {$new_url = $mosConfig_live_site . '/' . $new_url;}
$message = str_replace($url[0], $new_url, $message);
}
}

i checked the code and looks exactly as the one you gave me. any comments? thank you man!
MPF Rocks!!!

Kindred

looks like you have an extra bracket on the end of your else statement...
Сл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."

Nitro

MPF Rocks!!!

Nitro

this works GREAT!!!
thank you man! i had to move the forum to somewhere else and i forgot this litle thing, so it's working again!!

you ROCK!!!!!
MPF Rocks!!!

Advertisement: