Tereza Loparic | 1 May 21:00
Picon

how to use 'usemap' in spip?

Hi all


How can i use a map inside a spip template? When i put the "#" needed for the 'usemap' attribute, spip thinks it's one of it's balises...

For example:

    <img usemap="#BR" src="squelettes/img/brasil/BR.gif" width=210 height=210 border=0 name="brasil">


thanks in advance!!!
tereza

Gilles Vincent | 1 May 22:49
Picon
Gravatar

Re: how to use 'usemap' in spip?

Hi,

of course it will work.
Just don't put you id in uppercase.

.Gilles

On Thu, May 1, 2008 at 9:00 PM, Tereza Loparic <telopa@...> wrote:
> Hi all
>
>
> How can i use a map inside a spip template? When i put the "#" needed for
> the 'usemap' attribute, spip thinks it's one of it's balises...
>
> For example:
>
>     <img usemap="#BR" src="squelettes/img/brasil/BR.gif" width=210
> height=210 border=0 name="brasil">
>
>
> thanks in advance!!!
> tereza
>
> _______________________________________________
>  spip-en@... - http://listes.rezo.net/mailman/listinfo/spip-en
>
>
kamran Mir Hazar | 3 May 17:29
Picon
Favicon

Help option in Cpanel

Dear All,

In SPIP Cpanel when click on Help option (pup up), there is no any help in Farsi language. I wrote an article in Farsi how users can submit a new article or video. Could you please tell me how to display an article (which is in Farsi) from public space in to the help pup up page inside Cpanel? That article has also several photos.

Regards

Kamran

Paolo | 3 May 18:02
Picon
Favicon

Re: Help option in Cpanel

kamran Mir Hazar wrote:
> In SPIP Cpanel when click on Help option (pup up), there is no any help 
> in Farsi language. I wrote an article in Farsi how users can submit a 
> new article or video. Could you please tell me how to display an article 
> (which is in Farsi) from public space in to the help pup up page inside 
> Cpanel? That article has also several photos.

Hello Kamran,

The text of the online help needs to be put in spip.net, in the section "Aide en 
ligne / fa-aide.html" which I have just created.

First, make yourself a login to the admin (private) area of spip.net by going to 
http://www.spip.net/ecrire, for example, and clicking "Register" ثبت نام (?)

Then (if you translating from English) go to
http://www.spip.net/ecrire/?exec=naviguer&id_rubrique=329

and translate the articles you want, placing the new Farsi articles in fa-aide.html

Note: in the online help section, lines like this:
    <h2>raccourcis/Typographical shortcuts</h2>
have a special meaning as section headings within the online help. The word 
before the slash (/) should be left as it is, and not translated.

Do not hesitate to ask for more help if you need it, on the translators' mailing 
list (where you can write in English or French). See: 
http://www.spip.net/en_article2333.html

best wishes,
Paolo

_______________________________________________
spip-en <at> rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en
Paolo | 4 May 01:07
Picon
Favicon

Re: Help option in Cpanel

kamran Mir Hazar wrote:
 > What I wrote is a simple article how users of my website submit an
 > article. In several sentences I’ve mentioned the name of my website and
 > what system has installed.
 >
 >  It is not completely the translated version of SPIP help section.

Hi Kamran,

In that case, the place for your article is an article on your own website for 
your own users to see. There are various ways of making the article a hidden one 
so that other visitors do not see it. The easiest way is to leave the article as 
one which is "proposed" but not published, in the private (admin) area of the 
site so that only your authors are able to read it.

However, please consider translating the online help in Farsi even if you 
simplify/abbreviate some parts of it: this could then be helpful not only for 
your site but for others who use SPIP.

(Please reply to the list, not in private.)

Paolo

kamran Mir Hazar | 5 May 18:35
Picon
Favicon

Re: Help option in Cpanel

Hi Paolo,
I will try. Thanks
Kamran

 


----- Original Message ----
From: Paolo <paolo2-/55T5e/mXTk@public.gmane.org>
To: spip-en-JM9gtpQu/Ho@public.gmane.org
Sent: Sunday, May 4, 2008 1:07:40 AM
Subject: Re: [Spip-en] Help option in Cpanel

kamran Mir Hazar wrote:
> What I wrote is a simple article how users of my website submit an
> article. In several sentences I’ve mentioned the name of my website and
> what system has installed.
>
>  It is not completely the translated version of SPIP help section.

Hi Kamran,

In that case, the place for your article is an article on your own website for
your own users to see. There are various ways of making the article a hidden one
so that other visitors do not see it. The easiest way is to leave the article as
one which is "proposed" but not published, in the private (admin) area of the
site so that only your authors are able to read it.

However, please consider translating the online help in Farsi even if you
simplify/abbreviate some parts of it: this could then be helpful not only for
your site but for others who use SPIP.

(Please reply to the list, not in private.)

Paolo

_______________________________________________
spip-en-JM9gtpQu/Ho@public.gmane.org - http://listes.rezo.net/mailman/listinfo/spip-en
Picon

same picture in all articles

is there anybody with a good idea how to put the same picture in all  
articles.
Som kind of code ( #spip code ??)
Because I would like to be able to a picture ( including .swf etc) in  
"all articles" for ( as an example) one week, and then change this to  
another picture.

the reason why I asc for a code, instead of manuallyputting in some  
HTML, is that my site produces lets say 20-40 articles a week, and it  
would be a lot of manual work, to move all pictures/html code every  
sunday night..
Also if there is a code ( #spipcode)  could this code go for "all  
articles" including archives etc..
Maybe that is an easyer way..
Just "one piece of code" for all "articles" ( maybe even in the HTML  
part??)

kindly

Tom Dissing
Heiko Jansen | 8 May 09:33
Picon

Re: same picture in all articles

Hello Tom,

without testing: Make a new article in a "hidden" sector (one you're hidding by excluding from the menu e.g.') and take the wanted image as article logo. Publish this article and then you shuld use the logo with this code in the HTML-squelettes:
#LOGO_ARTICLE{xx}
xx is the number of your article. When you want to change the image, just change the logo of the article and then it should work.

(well, I actually didn't know, but for me this works fine with #URL_ARTICLE{xx} - I use it e.g. for the footer with links to the contact-Page or the imprint-page.)

greetings from Bochum
Heiko

On Wed, May 7, 2008 at 5:52 PM, tom-e3ruA339NCA@public.gmane.org <tom-e3ruA339NCA@public.gmane.org> wrote:
is there anybody with a good idea how to put the same picture in all
articles.
Som kind of code ( #spip code ??)
Because I would like to be able to a picture ( including .swf etc) in
"all articles" for ( as an example) one week, and then change this to
another picture.

the reason why I asc for a code, instead of manuallyputting in some
HTML, is that my site produces lets say 20-40 articles a week, and it
would be a lot of manual work, to move all pictures/html code every
sunday night..
Also if there is a code ( #spipcode)  could this code go for "all
articles" including archives etc..
Maybe that is an easyer way..
Just "one piece of code" for all "articles" ( maybe even in the HTML
part??)

kindly

Tom Dissing
_______________________________________________
spip-en-JM9gtpQu/Ho@public.gmane.org - http://listes.rezo.net/mailman/listinfo/spip-en

Thomas Sutton | 8 May 10:04

Re: same picture in all articles

Hi Tom, Heiko, and other SPIPsters,

On 08/05/2008, at 3:33 PM, Heiko Jansen wrote:
Hello Tom,

without testing: Make a new article in a "hidden" sector (one you're hidding by excluding from the menu e.g.') and take the wanted image as article logo. Publish this article and then you shuld use the logo with this code in the HTML-squelettes:
#LOGO_ARTICLE{xx}
xx is the number of your article. When you want to change the image, just change the logo of the article and then it should work.

(well, I actually didn't know, but for me this works fine with #URL_ARTICLE{xx} - I use it e.g. for the footer with links to the contact-Page or the imprint-page.)

If not, you could upload it as a document somewhere and use the various models like img and doc. Choose or create a new article or rubrique that is "hidden", and attach your image/flash/whatever and note the ID of the new document. Then add this to your template code, changing xx to the ID you noted:

#MODELE{img}{id_document=xx}

The problem here is that you'll have to update the template code every time you want to change it.

To make it slightly more SPIP-y, and avoid having to edit the templates manually every time you change it, you can use a loop to get the right document automatically. Create a "hidden" rubrique or article and attach the images, flash, etc. as documents. Then add code to display one (or more) of these documents wherever you want. I often use {par hasard}{0,1} to display a random item, but you can just use {par date}{0,1} if you only want the single newest:

<BOUCLE_badge(DOCUMENTS){id_article=xx}{par date}{0,1}>
[(#MODELE{img}{id_document=#ID_DOCUMENT})]
</BOUCLE_badge>

You'll need to choose your model carefully, though. img assumes that the document can be an <img> tag, but doc and emb both generate captions and stuff. If you need to, just copy dist/modeles/emb.html to squelettes/models/logo.html, delete the lines which create the captions, and change the loop to call logo instead of emb/img/doc.

I hope this helps.


Regards,

 

Thomas Sutton
Web Developer
bouncingorange
graphic + web design

greetings from Bochum
Heiko

On Wed, May 7, 2008 at 5:52 PM, tom-e3ruA339NCA@public.gmane.org <tom-e3ruA339NCA@public.gmane.org> wrote:
is there anybody with a good idea how to put the same picture in all
articles.
Som kind of code ( #spip code ??)
Because I would like to be able to a picture ( including .swf etc) in
"all articles" for ( as an example) one week, and then change this to
another picture.

the reason why I asc for a code, instead of manuallyputting in some
HTML, is that my site produces lets say 20-40 articles a week, and it
would be a lot of manual work, to move all pictures/html code every
sunday night..
Also if there is a code ( #spipcode)  could this code go for "all
articles" including archives etc..
Maybe that is an easyer way..
Just "one piece of code" for all "articles" ( maybe even in the HTML
part??)

kindly

Tom Dissing

Attachment (smime.p7s): application/pkcs7-signature, 2433 bytes
Paolo | 8 May 10:32
Picon
Favicon

Re: same picture in all articles

tom wrote:
> is there anybody with a good idea how to put the same picture in all  
> articles.

It depends if you want to always put it in exactly the same place in your page 
or not.

If you do, then you could simply use the logo of a keyword (as I explained in a 
reply to an earlier question of yours).

If not, you will need to use a model (see doc on models 
http://www.spip.net/en_article3512.html)

As I am using the SVN version of SPIP, I have made a page using Crayons
http://www.spip-contrib.net/Crayons,2698

The crucial advantage this has over the ordinary admin area is that you can 
replace documents without their number changing:

"documents can be edited using #EDIT{fichier}. In this case the new document 
replaces the old one and the filesize, as well as, in the case of graphics, the 
height and width are updated in the database"

We have a very multilingual site, so this makes it possible to change a photo 
that is used in an article which is used in a dozen languages without needing to 
go into each article and change the tags.
(I do hope this will be incorporated into the main admin area at some point soon!)

Paolo


Gmane