This basicly works correctly - if I would have language flags like for
example "de.png" or "fi.png" but they are like "de_DE.png" and
"fi_FI.png". And I want to keep it in that way because we have also
English for different countries and others like, Swedish "sv_SE.png"
and "sv_FI.png". The written name should then differ the language and
flag the country.
So how do I get dynamically "de_DE.png" etc instead of only "de.png"?
After putting Mugur's changed file "add_modify.php", we are getting an
error when trying to go to Languages -> editing a languag in
administration.
I see that there are several occasions of changing "DOCUMENT_ROOT" to
"g_campsiteDir". Is that deliberate?
e.g.
REPLACING
require_once($_SERVER['DOCUMENT_ROOT'].'/classes/Input.php');
TO
require_once($GLOBALS['g_campsiteDir'].'/classes/Input.php');
Gene
> Please install the attached file (add_modify.php) to the following
> directory:
> [campsite_dir]/admin-files/languages
>
> Modify the languages codes to include the localization; e.g.: in
> German modify the code from de to de_DE.
>
> Mugur
Error Report
Error ID: 2:Campsite:3.2.3:add_modify.php:4
Error String: require_once(/admin-files/localizer/Localizer.php)
[function.require-once]: failed to open stream: No such file or
directory
Time: Tue, 09 Jun 2009 15:08:24 +0300
Backtrace:
camp_report_bug() called at [/home/webadmin/myserver/html/admin-files/
languages/add_modify.php:4]
require_once() called at [/home/webadmin/myserver/html/admin-files/
languages/add_modify.php:4]
require_once() called at [/home/webadmin/myserver/html/admin.php:132]
Sorry, I sent you the file from the 3.3 development version; please replace
lines 4, 5 and 6:
require_once($GLOBALS['g_campsiteDir']."/$ADMIN_DIR/localizer/Localizer.php");
require_once($GLOBALS['g_campsiteDir'].'/classes/Language.php');
require_once($GLOBALS['g_campsiteDir'].'/classes/Input.php');
On Tue, Jun 9, 2009 at 3:18 PM, Generare Management Department < management@generare.com> wrote:
> Hi!
>
> After putting Mugur's changed file "add_modify.php", we are getting an
> error when trying to go to Languages -> editing a languag in administration.
>
> I see that there are several occasions of changing "DOCUMENT_ROOT" to
> "g_campsiteDir". Is that deliberate?
> e.g.
> REPLACING
> require_once($_SERVER['DOCUMENT_ROOT'].'/classes/Input.php');
> TO
> require_once($GLOBALS['g_campsiteDir'].'/classes/Input.php');
>
> Gene
>
> Please install the attached file (add_modify.php) to the following
>> directory:
>> [campsite_dir]/admin-files/languages
>>
>> Modify the languages codes to include the localization; e.g.: in German
>> modify the code from de to de_DE.
>>
>> Mugur
>>
>
>
> Error Report
> Error ID: 2:Campsite:3.2.3:add_modify.php:4
> Error String: require_once(/admin-files/localizer/Localizer.php)
> [function.require-once]: failed to open stream: No such file or directory
> Time: Tue, 09 Jun 2009 15:08:24 +0300
> Backtrace:
>
> camp_report_bug() called at
> [/home/webadmin/myserver/html/admin-files/languages/add_modify.php:4]
> require_once() called at
> [/home/webadmin/myserver/html/admin-files/languages/add_modify.php:4]
> require_once() called at [/home/webadmin/myserver/html/admin.php:132]
>
>
>
>
>
Thanks! I thought so indeed. It works now. Just need to invent proper
language code following some standard for language + region.
G
On 9.6.2009, at 15.58, Mugur Rus wrote:
> Sorry, I sent you the file from the 3.3 development version; please
> replace lines 4, 5 and 6:
> require_once($GLOBALS['g_campsiteDir']."/$ADMIN_DIR/localizer/
> Localizer.php");
> require_once($GLOBALS['g_campsiteDir'].'/classes/Language.php');
> require_once($GLOBALS['g_campsiteDir'].'/classes/Input.php');
>
> with:
> require_once($_SERVER['DOCUMENT_ROOT']."/$ADMIN_DIR/localizer/
> Localizer.php");
> require_once($_SERVER['DOCUMENT_ROOT'].'/classes/Language.php');
> require_once($_SERVER['DOCUMENT_ROOT'].'/classes/Input.php');
>
> and line 41:
> include_once($GLOBALS['g_campsiteDir']."/$ADMIN_DIR/
> javascript_common.php");
>
> with:
> include_once($_SERVER['DOCUMENT_ROOT']."/$ADMIN_DIR/
> javascript_common.php");
>
> Mugur
>
> On Tue, Jun 9, 2009 at 3:18 PM, Generare Management Department
> > wrote:
> Hi!
>
> After putting Mugur's changed file "add_modify.php", we are getting
> an error when trying to go to Languages -> editing a languag in
> administration.
>
> I see that there are several occasions of changing "DOCUMENT_ROOT"
> to "g_campsiteDir". Is that deliberate?
> e.g.
> REPLACING
> require_once($_SERVER['DOCUMENT_ROOT'].'/classes/Input.php');
> TO
> require_once($GLOBALS['g_campsiteDir'].'/classes/Input.php');
>
> Gene
>
>
> Please install the attached file (add_modify.php) to the following
> directory:
> [campsite_dir]/admin-files/languages
>
> Modify the languages codes to include the localization; e.g.: in
> German modify the code from de to de_DE.
>
> Mugur
>
>
> Error Report
> Error ID: 2:Campsite:3.2.3:add_modify.php:4
> Error String: require_once(/admin-files/localizer/Localizer.php)
> [function.require-once]: failed to open stream: No such file or
> directory
> Time: Tue, 09 Jun 2009 15:08:24 +0300
> Backtrace:
>
> camp_report_bug() called at [/home/webadmin/myserver/html/admin-
> files/languages/add_modify.php:4]
> require_once() called at [/home/webadmin/myserver/html/admin-files/
> languages/add_modify.php:4]
> require_once() called at [/home/webadmin/myserver/html/admin.php:132]
>
>
The link for RSS is not properly formed. It shows just the language
folder in the path, nothing else and it gets re-directed to the same
language form as well.
You have to adapt this script to your publication. Please make sure you have
a template rss.tpl or change the template name in the URI statement. Go to
Configure->templates in the campsite admin interface to see if the template
exists.
Mugur
On Wed, Jun 10, 2009 at 12:00 PM, Generare Management Department < management@generare.com> wrote:
> Hi!
>
> Is this info about RSS still valid? Any changes in current versions for
> this?
> http://code.campware.org/manuals/campsite/3.2/index.php?id=162&lang=en-us
> ( Last update: 2008-07-24 00:47:00 )
>
> The link for RSS is not properly formed. It shows just the language folder
> in the path, nothing else and it gets re-directed to the same language form
> as well.
>
> Gene
>
>
Yes, we have a rss.tpl in the server and we can see it through the
admin as well. We Haven't realised the word "channel" earlier though
and changed the info there (previously only link info was correct) but
now we still get this kind of error:
> You have to adapt this script to your publication. Please make sure
> you have a template rss.tpl or change the template name in the URI
> statement. Go to Configure->templates in the campsite admin
> interface to see if the template exists.
>
> Mugur
>
> On Wed, Jun 10, 2009 at 12:00 PM, Generare Management Department
> > wrote:
> Hi!
>
> Is this info about RSS still valid? Any changes in current versions
> for this?
> http://code.campware.org/manuals/campsite/3.2/index.php?id=162&lang=en-us
> ( Last update: 2008-07-24 00:47:00 )
>
> The link for RSS is not properly formed. It shows just the language
> folder in the path, nothing else and it gets re-directed to the same
> language form as well.
>
> Gene
>
Can a user (without any subscriptions etc) to read an article and then
send a message to us
...like "I'm going to use this in our edition of..."
and the system would put the article name and id and translation that
we would know which article it is about?
Is there something in Campsite to make this easy to happen?
There's no such feature in Campsite, what you could do is use a "send an
email" form which would contain data about the article. The email would be
sent to an email address which you would have to check.
Mugur
On Tue, Jun 23, 2009 at 11:03 AM, Generare Management Department < management@generare.com> wrote:
> Hi!
>
> Can a user (without any subscriptions etc) to read an article and then send
> a message to us
> ...like "I'm going to use this in our edition of..."
> and the system would put the article name and id and translation that we
> would know which article it is about?
>
> Is there something in Campsite to make this easy to happen?
>
> Gene
>
In a possible scenario, you could make a comments template but write: "If
you would like to use this article, send us a message using the form below
(the form being the comments form)". The user submits the comment as you
described above. Of course, you'd set comments to be moderated and then
you'd just check the You leave comments as moderated, and you check the
new comments screen (Content->Comments) for those requests and deal from
them there.
Subject: Re: [campsite-support] Response from an article...
There's no such feature in Campsite, what you could do is use a "send an
email" form which would contain data about the article. The email would be
sent to an email address which you would have to check.
Mugur
On Tue, Jun 23, 2009 at 11:03 AM, Generare Management Department < management@generare.com> wrote:
Hi!
Can a user (without any subscriptions etc) to read an article and then
send a message to us
...like "I'm going to use this in our edition of..."
and the system would put the article name and id and translation that we
would know which article it is about?
Is there something in Campsite to make this easy to happen?
Or probably the best solution is to program simple info button, that
would grab article ID and follows to a form "request permition to
republish this article"
But it would need some PHP / Smarty coding to your template.
O.
Odesláno z iPhone
23.6.2009 v 10:03, Generare Management Department
>:
> Hi!
>
> Can a user (without any subscriptions etc) to read an article and
> then send a message to us
> ...like "I'm going to use this in our edition of..."
> and the system would put the article name and id and translation
> that we would know which article it is about?
>
> Is there something in Campsite to make this easy to happen?
>
> Gene
I was trying to add user types but when pushing this admin address
...admin/user_types/add.php?Back=%2Fadmin%2Fuser_types%2F
it comes a blank page.
So, I can edit user types and save the changes but when I click to add
a new user type as an administrator, it comes a blank page only.
Only alterations to the admin is the language changes sent by Mugur
that we can have "en_US" as code instead of "en". I do not think this
could possibly affect on this though. Anybody else having issues with
this "adding user types"?
On Wed, Jun 24, 2009 at 12:01 PM, Generare Management Department < management@generare.com> wrote:
> Hi,
>
> I was trying to add user types but when pushing this admin address
> ...admin/user_types/add.php?Back=%2Fadmin%2Fuser_types%2F
>
> it comes a blank page.
> So, I can edit user types and save the changes but when I click to add a
> new user type as an administrator, it comes a blank page only.
>
> Only alterations to the admin is the language changes sent by Mugur that we
> can have "en_US" as code instead of "en". I do not think this could possibly
> affect on this though. Anybody else having issues with this "adding user
> types"?
>
> Gene
>
> Try resetting cache: Actions->Clear System Cache
>
> On Wed, Jun 24, 2009 at 12:01 PM, Generare Management Department
> > wrote:
> Hi,
>
> I was trying to add user types but when pushing this admin address
> ...admin/user_types/add.php?Back=%2Fadmin%2Fuser_types%2F
>
> it comes a blank page.
> So, I can edit user types and save the changes but when I click to
> add a new user type as an administrator, it comes a blank page only.
>
> Only alterations to the admin is the language changes sent by Mugur
> that we can have "en_US" as code instead of "en". I do not think
> this could possibly affect on this though. Anybody else having
> issues with this "adding user types"?
>
> Gene
>
On Wed, Jun 24, 2009 at 3:18 PM, Generare Management Department < management@generare.com> wrote:
> Emptying the cache doesn't help.
> /G
>
> On 24.6.2009, at 14.05, Mugur Rus wrote:
>
> Try resetting cache: Actions->Clear System Cache
>
> On Wed, Jun 24, 2009 at 12:01 PM, Generare Management Department <
> management@generare.com> wrote:
>
>> Hi,
>>
>> I was trying to add user types but when pushing this admin address
>> ...admin/user_types/add.php?Back=%2Fadmin%2Fuser_types%2F
>>
>> it comes a blank page.
>> So, I can edit user types and save the changes but when I click to add a
>> new user type as an administrator, it comes a blank page only.
>>
>> Only alterations to the admin is the language changes sent by Mugur that
>> we can have "en_US" as code instead of "en". I do not think this could
>> possibly affect on this though. Anybody else having issues with this "adding
>> user types"?
>>
>> Gene
>>
>
>
>
>
>
>
There is this type of error (the first one of below) many times:
[Wed Jun 24 15:16:57 2009] [error] [client 62.xx.xxx.xxx] PHP Fatal
error: Call to undefined method Section::getSectionRightName() in /
home/webadmin/www.myserver.fi/html/admin-files/user_types/add.php on
line 28, referer: http://www.myserver.fi/admin/user_types/
[Wed Jun 24 16:34:38 2009] [error] [client 219.xxx.xx.xx] script '/
home/webadmin/www.myserver.fi/html/proxyheader.php' not found or
unable to stat
G
On 24.6.2009, at 16.37, Mugur Rus wrote:
> Please check the apache error log for PHP errors.
>
> On Wed, Jun 24, 2009 at 3:18 PM, Generare Management Department
> > wrote:
> Emptying the cache doesn't help.
>
> /G
>
> On 24.6.2009, at 14.05, Mugur Rus wrote:
>
>> Try resetting cache: Actions->Clear System Cache
>>
>> On Wed, Jun 24, 2009 at 12:01 PM, Generare Management Department
>> > wrote:
>> Hi,
>>
>> I was trying to add user types but when pushing this admin address
>> ...admin/user_types/add.php?Back=%2Fadmin%2Fuser_types%2F
>>
>> it comes a blank page.
>> So, I can edit user types and save the changes but when I click to
>> add a new user type as an administrator, it comes a blank page only.
>>
>> Only alterations to the admin is the language changes sent by Mugur
>> that we can have "en_US" as code instead of "en". I do not think
>> this could possibly affect on this though. Anybody else having
>> issues with this "adding user types"?
>>
>> Gene
>
>
So, this issue seems to be fixed in the release 3.3.0. I'll study the
new version.
/G
On 24.6.2009, at 17.04, Generare Management Department wrote:
> There is this type of error (the first one of below) many times:
>
> [Wed Jun 24 15:16:57 2009] [error] [client 62.xx.xxx.xxx] PHP Fatal
> error: Call to undefined method Section::getSectionRightName() in /
> home/webadmin/www.myserver.fi/html/admin-files/user_types/add.php on
> line 28, referer: http://www.myserver.fi/admin/user_types/
> [Wed Jun 24 16:34:38 2009] [error] [client 219.xxx.xx.xx] script '/
> home/webadmin/www.myserver.fi/html/proxyheader.php' not found or
> unable to stat
>
> G
>
> On 24.6.2009, at 16.37, Mugur Rus wrote:
>
>> Please check the apache error log for PHP errors.
>>
>> On Wed, Jun 24, 2009 at 3:18 PM, Generare Management Department
>> > wrote:
>> Emptying the cache doesn't help.
>>
>> /G
>>
>> On 24.6.2009, at 14.05, Mugur Rus wrote:
>>
>>> Try resetting cache: Actions->Clear System Cache
>>>
>>> On Wed, Jun 24, 2009 at 12:01 PM, Generare Management Department
>>> > wrote:
>>> Hi,
>>>
>>> I was trying to add user types but when pushing this admin address
>>> ...admin/user_types/add.php?Back=%2Fadmin%2Fuser_types%2F
>>>
>>> it comes a blank page.
>>> So, I can edit user types and save the changes but when I click to
>>> add a new user type as an administrator, it comes a blank page only.
>>>
>>> Only alterations to the admin is the language changes sent by
>>> Mugur that we can have "en_US" as code instead of "en". I do not
>>> think this could possibly affect on this though. Anybody else
>>> having issues with this "adding user types"?
>>>
>>> Gene
>>
>>
> Or,
>
> You could (ab)use article comments for this.
>
> In a possible scenario, you could make a comments template but
> write: "If
> you would like to use this article, send us a message using the form
> below
> (the form being the comments form)". The user submits the comment as
> you
> described above. Of course, you'd set comments to be moderated and
> then
> you'd just check the You leave comments as moderated, and you check
> the
> new comments screen (Content->Comments) for those requests and deal
> from
> them there.
>
> All the best,
>
> Sava
>
>
>
> From: Mugur Rus
>
> To: campsite-support@campware.org
>
> Date: 06/23/2009 11:58 AM
>
> Subject: Re: [campsite-support] Response from an article...
>
>
>
>
>
>
> There's no such feature in Campsite, what you could do is use a
> "send an
> email" form which would contain data about the article. The email
> would be
> sent to an email address which you would have to check.
>
> Mugur
>
> On Tue, Jun 23, 2009 at 11:03 AM, Generare Management Department <
> management@generare.com> wrote:
> Hi!
>
> Can a user (without any subscriptions etc) to read an article and
> then
> send a message to us
> ...like "I'm going to use this in our edition of..."
> and the system would put the article name and id and translation
> that we
> would know which article it is about?
>
> Is there something in Campsite to make this easy to happen?
>
> Gene
>
In order to have the comments enabled you need three switches enabled:
1. in the article type screen, the article type used must have the comments
enabled (admin menu: Configure->Article Types
2. in the publication screen check "Comments enabled" and "Article comments
default to enabled"
3. for each article you have to enable the comments; right now all your
articles have comments disabled; in order to enable comments to them on mass
connect to the Campsite database and run the following query:
UPDATE Articles SET comments_enabled = true WHERE Type = 'Article';
Mugur
On Tue, Aug 4, 2009 at 5:43 PM, Generare Management Department < management@generare.com> wrote:
> Hi!
>
> I have finally proceeded for making this "Response from an article" for our
> news site.
> So the comments are enabled now but the setting is to let them be
> moderated.
>
> Our article template actually has some code for comments but we do not need
> the part that shows the comments, only that people can send their response
> that they want to re-publish the article and ask the permission and it
> should not be public info.
>
> The problem is that I can't see a form or similar related to article
> comments on the article page. I have just turned the comments enabled and to
> be moderated. Is there still some other switch that I should turn on?
>
>
>
>
>
> Sanna
>
> On 23.6.2009, at 13.12, sava.tatic@mdlf.org wrote:
>
> Or,
>>
>> You could (ab)use article comments for this.
>>
>> In a possible scenario, you could make a comments template but write: "If
>> you would like to use this article, send us a message using the form below
>> (the form being the comments form)". The user submits the comment as you
>> described above. Of course, you'd set comments to be moderated and then
>> you'd just check the You leave comments as moderated, and you check the
>> new comments screen (Content->Comments) for those requests and deal from
>> them there.
>>
>> All the best,
>>
>> Sava
>>
>>
>>
>> From: Mugur Rus
>>
>> To: campsite-support@campware.org
>>
>> Date: 06/23/2009 11:58 AM
>>
>> Subject: Re: [campsite-support] Response from an article...
>>
>>
>>
>>
>>
>>
>> There's no such feature in Campsite, what you could do is use a "send an
>> email" form which would contain data about the article. The email would be
>> sent to an email address which you would have to check.
>>
>> Mugur
>>
>> On Tue, Jun 23, 2009 at 11:03 AM, Generare Management Department <
>> management@generare.com> wrote:
>> Hi!
>>
>> Can a user (without any subscriptions etc) to read an article and then
>> send a message to us
>> ...like "I'm going to use this in our edition of..."
>> and the system would put the article name and id and translation that we
>> would know which article it is about?
>>
>> Is there something in Campsite to make this easy to happen?
>>
>> Gene
>>
>>
>
>
>
>
>