FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » FUDforum in eGroupWare » Trying to find how it work : mailing topic subscription !!
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Trying to find how it work : mailing topic subscription !! [message #22665] Thu, 10 February 2005 15:59 Go to next message
sparcman is currently offline  sparcman   United States
Messages: 4
Registered: February 2005
Location: Versailles
Karma: 0
Junior Member
Hi,

I'm trying to understand how FUDforum is sending email to topic or forum subscribers. Because it seems that i've got a trouble in the links provided in the mail sent (/egroupware/blablalba/... without the http://www.toto.com before).
I've found that there is the same problem either i'm using english or french. So i looked inside the iemail.tmpl file in order to change the <a href ...> link but it doesn't work at all (even putting blablabla inside the file to see some jam in the mail)...
I'm running the FUDforum provided with the debian testing egroupware package.
I've tried these :

in iemail.tmpl ,
putting {GVAR: WWW_ROOT} before {TEMPLATE: iemail_body_lnk} => NOT WORKING
putting {GVAR: FULL_ROOT} => also not working

Any advice ?

Thanks.
Cem
Re: Trying to find how it work : mailing topic subscription !! [message #22668 is a reply to message #22665] Thu, 10 February 2005 16:58 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
FULL_ROOT is not a var, it is used like this: {FULL_ROOT}, but it's only supported in later revisions of the forum. {GVAR: WWW_ROOT} should work fine however.

FUDforum Core Developer
Re: Trying to find how it work : mailing topic subscription !! [message #22669 is a reply to message #22668] Thu, 10 February 2005 17:28 Go to previous messageGo to next message
sparcman is currently offline  sparcman   United States
Messages: 4
Registered: February 2005
Location: Versailles
Karma: 0
Junior Member
/************************************************************************** *
* copyright : (C) 2001-2003 Advanced Internet Designs Inc.
* email : forum(at)prohost(dot)org
* $Id: iemail.tmpl,v 1.1.1.1 2003/10/17 21:12:29 ralfbecker Exp $
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*************************************************************************** /

{PHP_FILE: input: iemail.inc.t; output: iemail.inc;}
{REF: rev_fmt.tmpl}
{REF: smtp.tmpl}

{SECTION: iemail_body}
{TEMPLATE: header_plain}
<table border="0" cellspacing="1" cellpadding="2" class="ContentTable">
<tr class="RowStyleB">
<td width="33%">{MSG: iemail_msg_subject}</td>
<td width="33%">{MSG: iemail_msg_author}</td>
<td width="33%">{MSG: iemail_msg_date}</td>
</tr>
<tr class="RowStyleA">
<td colspan="3">
{TEMPLATE-DATA: iemail_poll}
{TEMPLATE-DATA: body}
{TEMPLATE-DATA: iemail_attach}
</td>
</tr>
<tr class="RowStyleB">
<td colspan="3">
[ <a href="{GVAR: WWW_ROOT}{TEMPLATE: iemail_body_lnk}">{MSG: iemail_msg_reply}</a> ][ <a href="{GVAR: WWW_ROOT}{TEMPLATE: iemail_body_lnk}&quote=true">{MSG: email_msg_quote}</a> ][ <a href="{GVAR: WWW_ROOT}{TEMPLATE: iemail_body_lnk1}">{MSG: iemail_msg_view}</a> ]{TEMPLATE-DATA: iemail_unsub}
</td>
</tr>
</table>


------------------------------------------------------

As you can see before, i've tested this way in the two files :
/usr/share/egroupware/fudforum/setup/base/thm/default/tmpl/iemail.tmpl
/var/lib/egroupware/files/fudforum/work/thm/default/tmpl/iemail.tmpl

But no way to have the correct url in the sent mail to subscribers, i've also looked in translations (in french).

Have i forget something ?

Thanks.
Cem
Re: Trying to find how it work : mailing topic subscription !! [message #22670 is a reply to message #22669] Thu, 10 February 2005 17:40 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You are looking @ the HTML version of the e-mail, there is a plain-text version that is entirely inside french/msg file.

FUDforum Core Developer
Re: Trying to find how it work : mailing topic subscription !! [message #22671 is a reply to message #22670] Thu, 10 February 2005 18:11 Go to previous messageGo to next message
sparcman is currently offline  sparcman   United States
Messages: 4
Registered: February 2005
Location: Versailles
Karma: 0
Junior Member
Ok i've looked inside the msg file specific to french translation, but where are relations with the URL ? As i think the msg file is only a translation so i'm lost Crying or Very Sad

I'm receiving the mail that you can find in attachment.

Is there a template to change this behaviour ? I suppose that if people want to change the way the mail is sent (to add some graphics, ...), there is a way.

Happy to see such quick answers Smile

Cem
  • Attachment: DOC004.zip
    (Size: 61.07KB, Downloaded 1212 times)
Re: Trying to find how it work : mailing topic subscription !! [message #22959 is a reply to message #22671] Wed, 23 February 2005 04:13 Go to previous messageGo to next message
LaoziSailor is currently offline  LaoziSailor   Canada
Messages: 8
Registered: November 2004
Location: Don Mills. ON, Canada
Karma: 0
Junior Member
Hi,

I'm getting exactly the same problem, except I get the text message and the language is English.

Quote:

To view unread replies goto /teamDSAO/fudforum/3814588639/index.php?t=rview&goto=25

If you do not wish to receive further notifications about replies in this topic, please go here: /teamDSAO/fudforum/3814588639/index.php?t=rview&th=23&notify=1& opt=off



I thought that adding http://... to
WWW Root:
This is the URL of your forum.

in the Global Configuration would do the trick, but no such luck.

Where do I go from here?

Thanks,



Han Tacoma

~ Artificial Intelligence is better than none! ~

[Updated on: Wed, 23 February 2005 05:33]

Report message to a moderator

Re: Trying to find how it work : mailing topic subscription !! [message #22962 is a reply to message #22959] Wed, 23 February 2005 05:29 Go to previous messageGo to next message
LaoziSailor is currently offline  LaoziSailor   Canada
Messages: 8
Registered: November 2004
Location: Don Mills. ON, Canada
Karma: 0
Junior Member
...also tried changing the Global setting to HTML email and got:

----- Original Message -----
From: LaoziSailor(at)foobar(dot)tld
To: LaoziSailor(at)foobar(dot)tld
Sent: Tuesday, February 22, 2005 11:52 PM
Subject: New reply to Re: Check Subscription to Forum email notification by LaoziSailor

Subject: Re: Check Subscription to Forum email notification
Author: LaoziSailor
Date: Tue, 22 February 2005 23:52
...the above really show side by side as a table...

Still testing this............

[Reply] [Quote] [View Topic/Message] [Unsubscribe from this topic]

...FUDcode is ON is playing tricks here because it is placing http://fudforum.org ahead of what my note actually says -- it starts with:
/teamDSAO/fudforum/3814588639/index.php?t=post&amp;reply_to=27
/teamDSAO/fudforum/3814588639/index.php?t=post&amp;reply_to=27&amp; quote=true
/teamDSAO/fudforum/3814588639/index.php?t=rview&amp;goto=27
/teamDSAO/fudforum/3814588639/index.php?t=rview&amp;th=3&amp;notify =1&amp;opt=off

Help would really be appreciated.

Cheers!


Han Tacoma

~ Artificial Intelligence is better than none! ~
Re: Trying to find how it work : mailing topic subscription !! [message #22974 is a reply to message #22962] Wed, 23 February 2005 15:44 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Looks like the sent links are missing the forum URL and only contain the directory path. You can update thing by adding {GVAR: WWW_ROOT} in front of the URLs inside the template.

FUDforum Core Developer
Re: Trying to find how it work : mailing topic subscription !! [message #22979 is a reply to message #22974] Wed, 23 February 2005 18:13 Go to previous messageGo to next message
LaoziSailor is currently offline  LaoziSailor   Canada
Messages: 8
Registered: November 2004
Location: Don Mills. ON, Canada
Karma: 0
Junior Member
Ilia,

Thank you so much for your speedy response.

I am a PHP wannabe, I started my computer work with vacuum tube computers and writing machine code and have ever since been adding to the repertoire of languages. PHP is completely new to me however so I will need a little help.

in my /teamDSAO/fudforum/setup/base/www_root/adm/admglobal.php I have a section that is part of the FufForum Global settings admin panel:

<tr class="fieldtopic"><td colspan=2><br><b>Global (do not change these unless you know what you are doing)</b></td></tr>
<[QUESTION_MARK]php
	print_reg_field('WWW Root', 'WWW_ROOT');  = /teamDSAO/fudforum/3814588639/
	print_reg_field('WWW Root (disk path)', 'WWW_ROOT_DISK');  = /home/USRNAM/public_html/teamDSAO/fudforum/3814588639/
	print_reg_field('Data Root', 'DATA_DIR');  = /home/USRNAM/files/fudforum/3814588639/
[QUESTION_MARK]>


this displays (presumably) the contents of $WWW_ROOT, $WWW_ROOT_DISK, $DATA_DIR variables defined in /teamDSAO/fudforum/setup/base/include/GLOBAL.php

The only refernce to WWW_ROOT in /teamDSAO/fudforum/setup/base/thm/default/tmpl/iemail.tmpl is:

{SECTION: iemail_attach_entry file attachment entry row}
<tr>
<td valign="middle"><a class="GenLink" href="{TEMPLATE: iemail_attach_entry_lnk}"><img alt="" src="{GVAR: WWW_ROOT}images/mime/{VAR: v[4]}" /></a></td>
<td><font class="GenText"><b>{MSG: attachment}</b></font> <a class="GenLink" href="{TEMPLATE: iemail_attach_entry_lnk}">{VAR: v[1]}</a><br />
<font class="SmallText">({MSG: size} {VAR: sz}, {MSG: download_counter})</font></td></tr>
{SECTION: END}

I don't know at which stage of the installation the $WWW_ROOT was initialized or where it is kept for certain.
I was able to find "www.foobar.tld" in the phpgw_config table:

config_app config_name   config_value
phpgwapi   hostname      www.foobar.tld
phpgwapi   files_dir     /home/USRNAM/files
phpgwapi   temp_dir      /home/USRNAM/tmp
phpgwapi   webserver_url /teamDSAO

I feel I am so close (this is after all the Application Program Interface area) and yet I can't seem to put it all together.

I hope this gives you some meaningful information if you decide to give me another little push Smile

Cheers!


Han Tacoma

~ Artificial Intelligence is better than none! ~
Re: Trying to find how it work : mailing topic subscription !! [message #22982 is a reply to message #22979] Wed, 23 February 2005 18:28 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
When you install the forum it creates GLOBALS.php that sets a value for WWW_ROOT. This value should contain the URL to your forum is should be prefixed to all external URLs, such as the ones sent via e-mail.

FUDforum Core Developer
Re: Trying to find how it work : mailing topic subscription !! [message #22986 is a reply to message #22982] Wed, 23 February 2005 18:53 Go to previous messageGo to next message
LaoziSailor is currently offline  LaoziSailor   Canada
Messages: 8
Registered: November 2004
Location: Don Mills. ON, Canada
Karma: 0
Junior Member
Ilia,

Thank you very much.

At this stage I'm going to have to take this to the eGroupWare forums because FudForum and Filemanager have some special characteristics regarding ownership and access authorization and when you are running in a hosted environment there is no access to shell commands (I have seen it done through PHP but like I said I'm a newbie at this). I've spoken to Reiner multiple times and I still don't have a clear answer on how to install eGW in a shared environment.

So somewhere in the eGW install process things went wrong and I cannot even look at the contents of GLOBALS.php on the website (because of access authorizations).
The references I took came from the original (Windows) that were uploaded to the site.

I'll keep you posted.

Cheers!


Han Tacoma

~ Artificial Intelligence is better than none! ~
Re: Trying to find how it work : mailing topic subscription !! [message #22999 is a reply to message #22986] Thu, 24 February 2005 03:59 Go to previous messageGo to next message
LaoziSailor is currently offline  LaoziSailor   Canada
Messages: 8
Registered: November 2004
Location: Don Mills. ON, Canada
Karma: 0
Junior Member
Ilia,

Just one more question before I jump over to eGroupWare forums, please.

I just found the Filemanager in FudForum and was able to D/L a copy of GLOBALS.php which resides in the /files directory outside of /eGW a.k.a. /teamDSAO and found the following:

/***************************************************************************
* copyright            : (C) 2001-2003 Advanced Internet Designs Inc.
* email                : forum(at)prohost(dot)org
* $Id: GLOBALS.php,v 1.2 2004/04/03 18:35:35 iliaa Exp $
*
* This program is free software; you can redistribute it and/or modify it 
* under the terms of the GNU General Public License as published by the 
* Free Software Foundation; either version 2 of the License, or 
* (at your option) any later version.
***************************************************************************/

	$INCLUDE 		         = "/home/USRNAM/files/fudforum/3814588639/include/";
	$WWW_ROOT 		= "http://www.foobar.tld/teamDSAO/fudforum/3814588639/";
	$WWW_ROOT_DISK		= "/home/USRNAM/public_html/teamDSAO/fudforum/3814588639/";
	$DATA_DIR		         = "/home/USRNAM/files/fudforum/3814588639/";
	$ERROR_PATH 		= "/home/USRNAM/files/fudforum/3814588639/errors/";
	$MSG_STORE_DIR		= "/home/USRNAM/files/fudforum/3814588639/messages/";
	$TMP			= "/home/USRNAM/files/fudforum/3814588639/tmp/";
	$FILE_STORE		= "/home/USRNAM/files/fudforum/3814588639/files/";
	$FORUM_SETTINGS_PATH 	= "/home/USRNAM/files/fudforum/3814588639/cache/";

	$FUD_OPT_1		= 1739519037;
	$FUD_OPT_2		= 544542781;
	$FUD_OPT_3		= 0;



is this what I am supposed to see?

Thanks,


Han Tacoma

~ Artificial Intelligence is better than none! ~
Re: Trying to find how it work : mailing topic subscription !! [message #23006 is a reply to message #22999] Thu, 24 February 2005 16:52 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Yes, that is the correct file and it's contains what appears to be correct information.

FUDforum Core Developer
Re: Trying to find how it work : mailing topic subscription !! [message #23545 is a reply to message #23006] Mon, 21 March 2005 15:14 Go to previous messageGo to next message
Robert is currently offline  Robert   United States
Messages: 9
Registered: March 2005
Karma: 0
Junior Member
I am using EGroupware 1.00.006 as well. When I prepend my URL root of Fudforum to $WWW_ROOT in the eGw fudForum admin, the hyperlinks in the email only reference a URI not the fully qualified URL. Changing this setting has no effect on the link in the subscribe email.

Example:
$WWW_ROOT = "http://www.mydomain.tld/teamDSAO/fudforum/3814588639/";


Example:
$WWW_ROOT = "/teamDSAO/fudforum/3814588639/";


When I hardcode my domain prefix in the iemail.tmpl file, the subscribe email link still does not included the full URL, only the URI.

[Updated on: Mon, 21 March 2005 20:12]

Report message to a moderator

Re: Trying to find how it work : mailing topic subscription !! [message #23570 is a reply to message #23545] Tue, 22 March 2005 14:10 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
After changing GLOBALS.php you should always rebuild the theme to make the compiled changes take the new values into effect.

FUDforum Core Developer
icon14.gif  Re: Trying to find how it work : mailing topic subscription !! [message #23576 is a reply to message #23570] Tue, 22 March 2005 19:59 Go to previous messageGo to next message
Robert is currently offline  Robert   United States
Messages: 9
Registered: March 2005
Karma: 0
Junior Member
That was it. I needed to rebuild the theme. Many thanks
Re: Trying to find how it work : mailing topic subscription !! [message #23577 is a reply to message #22665] Tue, 22 March 2005 20:58 Go to previous messageGo to next message
LaoziSailor is currently offline  LaoziSailor   Canada
Messages: 8
Registered: November 2004
Location: Don Mills. ON, Canada
Karma: 0
Junior Member
Please forgive my ignorance.

What steps do I need to follow to perform this rebuild?

Thanks


Han Tacoma

~ Artificial Intelligence is better than none! ~
Re: Trying to find how it work : mailing topic subscription !! [message #23578 is a reply to message #23577] Tue, 22 March 2005 21:53 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Go into the forum's admin control panel, theme manager and you will see the "Rebuild Theme" link.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Application Title Change
Next Topic: FUDforum setup within egroupware
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 08 15:22:38 GMT 2024

Total time taken to generate the page: 0.07310 seconds