Its a fresh install of the latest version of SMF and the bridge just downloaded here.
ALl of the emails that are being send out only have the last part of the linkand look like they're missing the info in $script (ie "http://www.mydomain.tld/smf-folder/"). This is all set up correctly in the smf admin -> server settings.
for example:
Quote
A new topic, 'blah blah blah', has been made on a board you are watching.
You can see it at topic=507.new#new
More topics may be posted, but you won't receive more email notifications until you return to the board and read some of them.
Unsubscribe to new topics from this board by clicking here: action=notifyboard;board=11.0
Regards, The SMF Forums Team.
Forum was working fine until bridge was installed. Bridge install seemed to work perfectly. (yes all the preflight checks were good) Board is unwrapped
This forum is live, so any quick help would be greatly appreciated!
« Last Edit: October 11, 2005, 10:04:26 PM by Piers »
Mine does this only it's random.. Noticed it today during a topic notification. I had one complaint from a new user that the URL was incomplete like you describe.
I can't reproduce it though, it's just "random"...
So for any newbies even more newbie than me, just replace the lines above with the lines below in your SMF folder/sources/Subs-Post.php with the lines below:
That fix should reference the link to your com_smf link. If you commented it out, the link will be your original SMF url. I will take a look at this for 1.0.3.
[1.0.3]
« Last Edit: October 14, 2005, 11:32:17 PM by Editor (cowboy) »
Somehow $mosurl doesn't seem to have a value when it needs it, so it replaces $scripturl with null. I coded a test fix like this:
Code:
//JOOMLAHACKS.COM : fix links global $mosurl; // HACK: $mosurl is coming out null, so I copied this in from my config file if (!$mosurl) {$mosurl = "http://www.yourdomain.com/index.php?option=com_smf&Itemid=35&";}
That seemed to work as well, I get full Joomla URL's back to the private messages in my email notifications. It's odd because the first reference to $mosurl is the global declaration, so it should have taken the global value.
Myself, I always tend to go through the $GLOBALS array. I've had difficulty with global declarations in the past that I solved by using the array.
Well, I give up. I reversed all that out and tried again and still got a good link. Is it intermittent? The first notification I got today had arguments only. I'm going home.
Somehow $mosurl doesn't seem to have a value when it needs it, so it replaces $scripturl with null. I coded a test fix like this:
Code:
//JOOMLAHACKS.COM : fix links global $mosurl; // HACK: $mosurl is coming out null, so I copied this in from my config file if (!$mosurl) {$mosurl = "http://www.yourdomain.com/index.php?option=com_smf&Itemid=35&";}
That seemed to work as well, I get full Joomla URL's back to the private messages in my email notifications. It's odd because the first reference to $mosurl is the global declaration, so it should have taken the global value.
Myself, I always tend to go through the $GLOBALS array. I've had difficulty with global declarations in the past that I solved by using the array.
i'm trying to address this issue for 1.0.2, i'm just really not sure how to fix it because it is fine on my testing. The $mosurl is never null. I guess for users having this issue, just manually put your url.
So for any newbies even more newbie than me, just replace the lines above with the lines below in your SMF folder/sources/Subs-Post.php with the lines below:
Look, i dont know at all php or stuffs like that, but after i lost 5 kg/minute manipulating database and upgrading forum to 1.1RC1 i had the same error. I used the solution in quote. Works perfect!
I think the best fix here is if mosurl is not set, require_once the Joomla-SMF config file and then use mosurl. That way any changes a user makes will be replicated always. I am going to test this.
I made this change to the code. Since the problem hasn't occurred for me I am unsure if it truly works. If one of you with consistent problems could try it and report any failures or problems that would be great. I plan to include this in the next release of the Joomla-SMF bridge.
Code:
//JOOMLAHACKS.COM : fix links global $mosurl; if(empty($mosurl)){ global $mosConfig_absolute_path; require_once($mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php"); } $message = str_replace($scripturl."?", $mosurl, $message);
« Last Edit: January 24, 2006, 05:47:19 PM by -Wolverine »
Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use