Tom Dissing | 2 Jul 15:36
Picon

Best idea to put pictures on all pages

Im about to upgrade from old 183b to newest spip.
Hence I can se that it is possible to avoid a good part of the html, that i "hacked" into the ole 183b.
Now Im wondering.
How to put quite a few pictures ( specific sizes) on all pages, on specific areas.
eg
pic1, pic2, pic3 in the top
pic1-pic10 left
pic1-pic10 right

just found "modeles" and think It can help, but is this the right way, or should  i continue with html

btw need these pictures to open in new frame eg _blank, and need ability to use flash (?clickTAG=)
Is modeles the wrong "path"..?
 
Attachment (smime.p7s): application/pkcs7-signature, 1934 bytes
Gilles Vincent | 2 Jul 19:04
Picon

Re: Best idea to put pictures on all pages

Hi,

not used yet but maybe

[(#MODELE{img}{id_document=10}|left|image_reduire{123,0}|..)]

(doc. on models here : http://www.spip.net/en_article3512.html)

.Gilles
--
2007/7/2, Tom Dissing <tom@...>:
> Im about to upgrade from old 183b to newest spip.
> Hence I can se that it is possible to avoid a good part of the html, that i
> "hacked" into the ole 183b.
> Now Im wondering.
> How to put quite a few pictures ( specific sizes) on all pages, on specific
> areas.
> eg
> pic1, pic2, pic3 in the top
> pic1-pic10 left
> pic1-pic10 right
>
> just found "modeles" and think It can help, but is this the right way, or
> should  i continue with html
>
> btw need these pictures to open in new frame eg _blank, and need ability to
> use flash (?clickTAG=)
> Is modeles the wrong "path"..?
>
> _______________________________________________
> spip-en@... -
> http://listes.rezo.net/mailman/listinfo/spip-en
>
>
>
Tom Dissing | 4 Jul 03:33
Picon

Auto links eg everytime you write wiki it results in a link

I was just wondering if its possible to integrate some kind of  
"autolinking" in spip.
I mean we have the keywords, wouldent it be rather easy to make som  
code that "autolinked" to pre defines sites..?
If you know of other ways to do it, please tell.. then I will check  
taht out !?
kindly
Tom

Attachment (smime.p7s): application/pkcs7-signature, 1934 bytes
Gilles Vincent | 4 Jul 04:09
Picon

Re: Auto links eg everytime you write wiki it results in a link

Yes this is possible :
it consits in adding a hook after the generation of the html code for
a post-processing.

Take as exemple the antispam plugin wich does something like this :
http://www.spip-contrib.net/Plugin-antispam
(it transforms everything that is a mail, so that it's obscursed for spam bots)

- it uses the pipeline "post_propre" to insert it's treatment (it's
specified in plugin.xml)
- you find then the corresponding function
function antispam_post_propre ($texte) {
  include_spip("inc/antispam_fonctions");		
  $texte =  preg_replace_callback('`(<a
href="mailto:.*?>)(.*?)(</a>)`s',"antispam_crypter",$texte);
  return $texte;
}

You can do your "autolinking" with the same mecanism

.Gilles
--
2007/7/4, Tom Dissing <tom@...>:
> I was just wondering if its possible to integrate some kind of
> "autolinking" in spip.
> I mean we have the keywords, wouldent it be rather easy to make som
> code that "autolinked" to pre defines sites..?
> If you know of other ways to do it, please tell.. then I will check
> taht out !?
> kindly
> Tom
>
>
> _______________________________________________
> spip-en@... - http://listes.rezo.net/mailman/listinfo/spip-en
>
>
>
Mark Baber | 4 Jul 08:35
Picon

Re: Auto links eg everytime you write wiki it results in a link

This isn't going to help much, but I also remember seeing a contrib
that checks all text for potential links and uses a similar
post-processing technique to automatically turn them into real links.
I think it was in a contrib that dealt with processing CSV files and
presenting them in-stream as HTML tables.
I'm sure it's not hard to find and adapt along with Gilles' comments.

Specifying a particular keyword group as the definitive source of such
keywords to auto-linkify is a great idea ... maybe I go do the same
thing later today... let me know if you come up with any other ideas
to include....

Mark

----- Original message -----
From: "Gilles Vincent" <gilles.vincent@...>
Date: Wed, 4 Jul 2007 04:09:21 +0200
Subject: Re: [Spip-en] Auto links eg everytime you write wiki it results in a link
To: "Tom Dissing" <tom@...>
Cc: spip-en <spip-en@...>

>Yes this is possible :
>it consits in adding a hook after the generation of the html code for
>a post-processing.
>
>Take as exemple the antispam plugin wich does something like this :
>http://www.spip-contrib.net/Plugin-antispam
>(it transforms everything that is a mail, so that it's obscursed for spam bots)
>
>- it uses the pipeline "post_propre" to insert it's treatment (it's
>specified in plugin.xml)
>- you find then the corresponding function
>function antispam_post_propre ($texte) {
>  include_spip("inc/antispam_fonctions");		
>  $texte =  preg_replace_callback('`(<a
>href="mailto:.*?>)(.*?)(</a>)`s',"antispam_crypter",$texte);
>  return $texte;
>}
>
>You can do your "autolinking" with the same mecanism
>
>.Gilles
>--
>2007/7/4, Tom Dissing <tom@...>:
>> I was just wondering if its possible to integrate some kind of
>> "autolinking" in spip.
>> I mean we have the keywords, wouldent it be rather easy to make som
>> code that "autolinked" to pre defines sites..?
>> If you know of other ways to do it, please tell.. then I will check
>> taht out !?
>> kindly
>> Tom
>>
>>
>> _______________________________________________
>> spip-en@... - http://listes.rezo.net/mailman/listinfo/spip-en
>>
>>
>>
>_______________________________________________
>spip-en@... - http://listes.rezo.net/mailman/listinfo/spip-en
>
Gilles Vincent | 4 Jul 09:36
Picon

Re: Auto links eg everytime you write wiki it results in a link

My idea was to do it with a plugin. so it processes every page stored in cache.
However, the limit of my simple comment is that the regexp, here, is
fixed in the hook function : it can be a parameter in mes_options, but
it's not dynamically managed throught spip keywords and keywords
groups. However you can use mysql queries to get them.. It's a little
more complicated but not so much imho..

.Gilles
--
2007/7/4, Mark Baber <mark.baber@...>:
> This isn't going to help much, but I also remember seeing a contrib
> that checks all text for potential links and uses a similar
> post-processing technique to automatically turn them into real links.
> I think it was in a contrib that dealt with processing CSV files and
> presenting them in-stream as HTML tables.
> I'm sure it's not hard to find and adapt along with Gilles' comments.
>
> Specifying a particular keyword group as the definitive source of such
> keywords to auto-linkify is a great idea ... maybe I go do the same
> thing later today... let me know if you come up with any other ideas
> to include....
>
> Mark
>
>
> ----- Original message -----
> From: "Gilles Vincent" <gilles.vincent@...>
> Date: Wed, 4 Jul 2007 04:09:21 +0200
> Subject: Re: [Spip-en] Auto links eg everytime you write wiki it results in a link
> To: "Tom Dissing" <tom@...>
> Cc: spip-en <spip-en@...>
>
> >Yes this is possible :
> >it consits in adding a hook after the generation of the html code for
> >a post-processing.
> >
> >Take as exemple the antispam plugin wich does something like this :
> >http://www.spip-contrib.net/Plugin-antispam
> >(it transforms everything that is a mail, so that it's obscursed for spam bots)
> >
> >- it uses the pipeline "post_propre" to insert it's treatment (it's
> >specified in plugin.xml)
> >- you find then the corresponding function
> >function antispam_post_propre ($texte) {
> >  include_spip("inc/antispam_fonctions");
> >  $texte =  preg_replace_callback('`(<a
> >href="mailto:.*?>)(.*?)(</a>)`s',"antispam_crypter",$texte);
> >  return $texte;
> >}
> >
> >You can do your "autolinking" with the same mecanism
> >
> >.Gilles
> >--
> >2007/7/4, Tom Dissing <tom@...>:
> >> I was just wondering if its possible to integrate some kind of
> >> "autolinking" in spip.
> >> I mean we have the keywords, wouldent it be rather easy to make som
> >> code that "autolinked" to pre defines sites..?
> >> If you know of other ways to do it, please tell.. then I will check
> >> taht out !?
> >> kindly
> >> Tom
> >>
> >>
> >> _______________________________________________
> >> spip-en@... - http://listes.rezo.net/mailman/listinfo/spip-en
> >>
> >>
> >>
> >_______________________________________________
> >spip-en@... - http://listes.rezo.net/mailman/listinfo/spip-en
> >
> _______________________________________________
> spip-en@... - http://listes.rezo.net/mailman/listinfo/spip-en
>
spip | 4 Jul 12:12

standing alone secteurs - how to?

I am trying for a while now to "separate" the the secteurs (lowest rubriques) on my site in a way that on all front end pages  for rubriques, articles, breves, ... only stuff from the current secteur is visible, i.e. the visitor will not see anything from another secteur and therefore will not be able to go into another secteur. 

Of course, that is not feasible for the first overview screen based on squelette sommaire.

Basically, my rubriques.html is as follows.

<!--  rubriques.html -->
<BOUCLE_rubrique_principal(RUBRIQUES) {id_rubrique}>
... ... ...
<INCLURE{fond=inc-rubriques}{id_rubrique}>
</INCLURE>
... ... ...
</BOUCLE_rubrique_principal>

For the included rubriques listing I'm using basically the following inc-rubriques.html.

<!--  inc-rubriques.html -->
<B_rubriques>
<ul>
<BOUCLE_rubriques(RUBRIQUES){racine}{par titre}>
<li>
#TITRE 
<B_sous_rubriques>
<ul>
<BOUCLE_sous_rubriques(RUBRIQUES) {id_parent} {par titre}>
<B_test_expose>
<BOUCLE_test_expose(RUBRIQUES) {id_enfant}>
#EXPOSE{' '} 
</BOUCLE_test_expose>
<li>
#TITRE 
<BOUCLE_re(BOUCLE_sous_rubriques)>
</BOUCLE_re>
</li>
</B_test_expose>
</BOUCLE_sous_rubriques>
</ul>
</B_sous_rubriques>
</li>
</BOUCLE_rubriques>
</ul>
</B_rubriques>

I know that tasks should be accomplished with "Multi-site provisioning with a shared SPIP kernel"  (http://www.spip.net/en_article3581.html). That does not work for me. And the article "The RUBRIQUES Loop (Sections)"  (http://www.spip.net/en_article2084.html) did not give me any clue what criteria to apply and how. Generally speaking, the documentation of spip is the hardest part for me.

Thank you for your help.

Gilles Vincent | 4 Jul 14:06
Picon

Re: standing alone secteurs - how to?

2007/7/4, spip@... <spip@...>:
>
> I am trying for a while now to "separate" the the secteurs (lowest
> rubriques) on my site in a way that on all front end pages  for rubriques,
> articles, breves, ... only stuff from the current secteur is visible, i.e.
> the visitor will not see anything from another secteur and therefore will
> not be able to go into another secteur.
>
> Of course, that is not feasible for the first overview screen based on
> squelette sommaire.
>
> Basically, my rubriques.html is as follows.
>
> <!--  rubriques.html -->
> <BOUCLE_rubrique_principal(RUBRIQUES) {id_rubrique}>
>  ... ... ...
>  <INCLURE{fond=inc-rubriques}{id_rubrique}>
>  </INCLURE>
>  ... ... ...
> </BOUCLE_rubrique_principal>
>

Personnaly I would try in the included file the same loops except the
main one :

<B_rubriques>
  <ul>
  <BOUCLE_rubriques(RUBRIQUES){id_secteur}{racine}>
  <li>

etc..

Your loop doesn't work because you do not take into account the
{id_rubrique} which is in #ENV (you can see it with "&var_mode=debug"
in your url)
- in fact it's lost when you are inside BOUCLE_rubriques -

.Gilles

---
> For the included rubriques listing I'm using basically the following
> inc-rubriques.html.
>
> <!--  inc-rubriques.html -->
> <B_rubriques>
>  <ul>
>  <BOUCLE_rubriques(RUBRIQUES){racine}{par titre}>
>  <li>
>  #TITRE
>  <B_sous_rubriques>
>  <ul>
>  <BOUCLE_sous_rubriques(RUBRIQUES) {id_parent} {par titre}>
>  <B_test_expose>
>  <BOUCLE_test_expose(RUBRIQUES) {id_enfant}>
>  #EXPOSE{' '}
>  </BOUCLE_test_expose>
>  <li>
>  #TITRE
>  <BOUCLE_re(BOUCLE_sous_rubriques)>
>  </BOUCLE_re>
>  </li>
>  </B_test_expose>
>  </BOUCLE_sous_rubriques>
>  </ul>
>  </B_sous_rubriques>
>  </li>
>  </BOUCLE_rubriques>
>  </ul>
> </B_rubriques>
>
> I know that tasks should be accomplished with "Multi-site provisioning with
> a shared SPIP kernel"
> (http://www.spip.net/en_article3581.html). That does not
> work for me. And the article "The RUBRIQUES Loop (Sections)"
> (http://www.spip.net/en_article2084.html) did not give me
> any clue what criteria to apply and how. Generally speaking, the
> documentation of spip is the hardest part for me.
>
> Thank you for your help.
>
> _______________________________________________
> spip-en@... -
> http://listes.rezo.net/mailman/listinfo/spip-en
>
>
spip | 8 Jul 13:54

language file local.*.php

Hi,

My own language file local.*.php does not show up in the menu  
Configuration > Language management > Language files as long as it is  
in the folder squelettes.  It shows up in that menu when moved to  
folder /ecrire/lang. But after selecting local.*.php I don't get the  
listing. I'm getting only two warning messages

Warning: ksort() expects parameter 1 to be array, null given in /home/ 
barner/public_html/wirselbst/ecrire/exec/lang_raccourcis.php on line 77
Warning: Invalid argument supplied for foreach() in /home/barner/ 
public_html/wirselbst/ecrire/exec/lang_raccourcis.php on line 102

The files ecrire.*.php, public.*.php, spip.*.php are fine.

I wonder what to do about these warnings, actually error messages.

Barnie
Gilles Vincent | 8 Jul 19:24
Picon

Re: language file local.*.php

Hi!

Doesn't it work if you put your language file in squelettes/lang ?
Which version of SPIP do you use ?

.Gilles
---
2007/7/8, spip@... <spip@...>:
> Hi,
>
> My own language file local.*.php does not show up in the menu
> Configuration > Language management > Language files as long as it is
> in the folder squelettes.  It shows up in that menu when moved to
> folder /ecrire/lang. But after selecting local.*.php I don't get the
> listing. I'm getting only two warning messages
>
> Warning: ksort() expects parameter 1 to be array, null given in /home/
> barner/public_html/wirselbst/ecrire/exec/lang_raccourcis.php on line 77
> Warning: Invalid argument supplied for foreach() in /home/barner/
> public_html/wirselbst/ecrire/exec/lang_raccourcis.php on line 102
>
> The files ecrire.*.php, public.*.php, spip.*.php are fine.
>
> I wonder what to do about these warnings, actually error messages.
>
> Barnie
> _______________________________________________
> spip-en@... - http://listes.rezo.net/mailman/listinfo/spip-en
>

Gmane