Mugur Rus | 24 May 08:14
Picon
Favicon

Re: Connection refused (111)

For some reason the template engine didn't start; on some Linux distributions
Campsite doesn't know how to set the template engine to start on system boot.
Please search for /etc/rc3.d/S95campsite or /etc/rc5.d/S95campsite. If you
can't find these links you must set it to start on system boot. You must run
this command:

/usr/local/campsite/bin/campsitectl start

Regards,
Mugur

--- campsite-support <at> eserver2.mdlf.org wrote:
> This message was sent from: Campsite Support.
> <http://www.campware.org/phorum_en/read.php?f=8&i=279&t=279> 
> ----------------------------------------------------------------
> 
> Hi,
> I installed 2.2.1, the admin section works fine however I receive the
> above error when I attempt to connect to the site or preview an article.
> Any idea what I may have done wrong?
> 
> 
> Thanks.

		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/

(Continue reading)

Mugur Rus | 24 May 08:24
Picon
Favicon

Re: Adding a link to the image

> We have 2 issues:
> 1- Is there anyway to automatically create the thumbnails? Or is the only
> way is to upload the thumbnail and the full size cartoon?
No, there is no way to automatically create thumbnails.

> 2- When we use  tag with the <!** print article picture>, the picture
> isn't linked. When we check the source code we find:
> آ 
> So as you see the problem is that the picture is inside a table?! How can
> we get it outside the table so we can link it.
There is no default attribute "picture" in "print article" statement, so I
suppose you created your custom article field. You can't use the content of
this field as a link to image. If you want to display an article image outside
the article content you can do it the following way:

<img src="/cgi-bin/get_img?<!** urlparameters image [image_number]>">

Regards,
Mugur

		
__________________________________
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html

campsite-support | 24 May 11:25

Re: Re: Adding a link to the image

This message was sent from: Campsite Support.
<http://www.campware.org/phorum_en/read.php?f=8&i=282&t=281> 
----------------------------------------------------------------

Hi

I would say i can't force the user to give the image number every  time ,
for example if the user delete unwanted image and add another one he will
see that the number of image is changing sequentially, and in my situation
i have to add the image daily without changing the number of these
images.

Fadi Abu Essa

----------------------------------------------------------------
Sent using Phorum software version 3.4.3a <http://phorum.org> 

Douglas.Arellanes | 24 May 12:01

[serbianow] Question for Ondra regarding PHP in templates

Hi,

 

Boban in Belgrade has the following questions about PHP in templates, so I'm forwarding it to this list in hopes of both getting a good answer, but also so that we can hear about what others are doing with their combinations of PHP and Campsite templates. - doug

 

===========

 

This is the script, a little different than previous,
just to avoid if then loops...
<?php
$arr=array("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun");
foreach ($arr as $value)
{
if ($value == date("D"))
echo "<!** include $value.tpl>"
}
?>

then it does not work as expected, because its not processed correctly, like
it would work in plain php... and this one

<?php
$d = date("D");
if ($d == "Fri")
echo "<!** include program-ponedeljak.tpl>"
?>


As You can see my logic was to automaticly switch radio program for curent
date.
But my problem was that only front page shows dynamicly included tpl file,
(and not completely since i got some garbage too it also echoes " ?>), and
other pages doesnt load at all (probably because its not intended to use
this way)...

Now, I have read on Campsite forum that there are 2 versions of phpwrapper.
One with its own language, and one that supports php language in tpl files.
So finaly, question is:
Does version that supports php in tpl files have all features of other
version ?
If yes, can we have upgrade?
Is there any way to solve my problem with currently installed phpwrapper on
skala.campware.org?
Any other solution ?(apart from auto publishing/unpublishing articles) :)
Thanks
Boban

Mugur Rus | 24 May 12:02
Picon
Favicon

Re: Re: Adding a link to the image

The image number is like a label; for example: I have a front page image, intro
image etc. You should train your journalists to label the images according to
their purpose. For example set the front page image number to 100. All images
that are to be displayed on the front page must have the number 100. This way
you can build your template:

<!** if image 100>
    <img src="/cgi-bin/get_img?<!** urlparameters image 100>">
<!** endif>

This is the only way to solve this problem.

Regards,
Mugur

--- campsite-support <at> eserver2.mdlf.org wrote:
> This message was sent from: Campsite Support.
> <http://www.campware.org/phorum_en/read.php?f=8&i=282&t=281> 
> ----------------------------------------------------------------
> 
> Hi
> 
> I would say i can't force the user to give the image number every  time ,
> for example if the user delete unwanted image and add another one he will
> see that the number of image is changing sequentially, and in my situation
> i have to add the image daily without changing the number of these
> images.
> 
> 
> Fadi Abu Essa
> 
> ----------------------------------------------------------------
> Sent using Phorum software version 3.4.3a <http://phorum.org> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

campsite-support | 24 May 18:54

Re: Re: Connection refused (111)

This message was sent from: Campsite Support.
<http://www.campware.org/phorum_en/read.php?f=8&i=285&t=280> 
----------------------------------------------------------------

Thank you!

This got it working:

/usr/local/campsite/bin/campsitectl start

Thanks again.

J

----------------------------------------------------------------
Sent using Phorum software version 3.4.3a <http://phorum.org> 

campsite-support | 27 May 11:31

How to install

This message was sent from: Campsite Support.
<http://www.campware.org/phorum_en/read.php?f=8&i=286&t=286> 
----------------------------------------------------------------

How to install on windows based platform

----------------------------------------------------------------
Sent using Phorum software version 3.4.3a <http://phorum.org> 

Mugur Rus | 27 May 11:45
Picon
Favicon

Re: How to install

Hi,

Campsite doesn't work on Windows; we're working on this and hopefuly in a few
months we'll have a Windows version.

Mugur

--- campsite-support <at> eserver2.mdlf.org wrote:
> This message was sent from: Campsite Support.
> <http://www.campware.org/phorum_en/read.php?f=8&i=286&t=286> 
> ----------------------------------------------------------------
> 
> How to install on windows based platform
> 
> ----------------------------------------------------------------
> Sent using Phorum software version 3.4.3a <http://phorum.org> 
> 

		
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 


Gmane