Additional layout for forum form (forum.html)

Dear all

I need some help on the forum template.

At the moment (default) if I use the tag #FORMULAIRE_FORUM in the article.html template, it will display the forum form on the public site. This is fine.

My problem is I need to have different layouts of the forum form (at least 2 layouts). One special layout for, say, all articles belong to rubrique 3, and the 2nd, generic (default) layout for all other articles.

How to approach this need?

I noticed that the forum form is control by the file dist/formulaires/forum.html. I tried to add in some Boucle loop:

<BOUCLE_abc(RUBRIQUES){id_rubrique}{id_rubrique=3}>
....
</BOUCLE_abc>

to control the layout but it doesn't work. Because no id_rubrique date or id_article data is pass on to this forum.html??? So how can I run a boucle loop in this file?

Or can I create an additional forum.html say forum2.html?? Then how can I direct spip to use this forum2.html instead of forum.html?
Tried to use #FORMULAIRE_FORUM2 tag but obviously it doesn't work automartically without some additional hack. Am I right?

Really appreciate if some of the gurus can help me out on this problem.

Regards,

Vinc.

Hi

As you said, you can create a forum2.html template and use #FORMULAIRE_FORUM2 in the template of articles belonging to rubrique 3 but you should save the forum2 template in a folder "formulaires" in your squelettes folder and name the articles template for rubrique 3 "article-3.html".

George

Quoting TN Media <info@tnmedia.net>:

Dear all

I need some help on the forum template.

At the moment (default) if I use the tag #FORMULAIRE_FORUM in the
article.html template, it will display the forum form on the public
site. This is fine.

My problem is I need to have different layouts of the forum form (at
least 2 layouts). One special layout for, say, all articles belong to
rubrique 3, and the 2nd, generic (default) layout for all other
articles.

How to approach this need?

I noticed that the forum form is control by the file
dist/formulaires/forum.html. I tried to add in some Boucle loop:

<BOUCLE_abc(RUBRIQUES){id_rubrique}{id_rubrique=3}>
....
</BOUCLE_abc>

to control the layout but it doesn't work. Because no id_rubrique date
or id_article data is pass on to this forum.html??? So how can I run a
boucle loop in this file?

Or can I create an additional forum.html say forum2.html?? Then how can
I direct spip to use this forum2.html instead of forum.html?
Tried to use #FORMULAIRE_FORUM2 tag but obviously it doesn't work
automartically without some additional hack. Am I right?

Really appreciate if some of the gurus can help me out on this problem.

Regards,

Vinc.
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hi Grorge,

That's how I did, copy the forum.html into forum2.html, modify the
layout and have both these files in folder "formulaires" in my
squelettes folder.

And use #FORMULAIRE_FORUM2 in the template file. But it doesn't work, it
returns nothing!

Vinc

george@diwanalarab.com wrote:

Hi

As you said, you can create a forum2.html template and use #FORMULAIRE_FORUM2 in the template of articles belonging to rubrique 3 but you should save the forum2 template in a folder "formulaires" in your squelettes folder and name the articles template for rubrique 3 "article-3.html".

George

Quoting TN Media <info@tnmedia.net>:

Dear all

I need some help on the forum template.

At the moment (default) if I use the tag #FORMULAIRE_FORUM in the
article.html template, it will display the forum form on the public
site. This is fine.

My problem is I need to have different layouts of the forum form (at
least 2 layouts). One special layout for, say, all articles belong to
rubrique 3, and the 2nd, generic (default) layout for all other
articles.

How to approach this need?

I noticed that the forum form is control by the file
dist/formulaires/forum.html. I tried to add in some Boucle loop:

<BOUCLE_abc(RUBRIQUES){id_rubrique}{id_rubrique=3}>
....
</BOUCLE_abc>

to control the layout but it doesn't work. Because no id_rubrique date
or id_article data is pass on to this forum.html??? So how can I run a
boucle loop in this file?

Or can I create an additional forum.html say forum2.html?? Then how can
I direct spip to use this forum2.html instead of forum.html?
Tried to use #FORMULAIRE_FORUM2 tag but obviously it doesn't work
automartically without some additional hack. Am I right?

Really appreciate if some of the gurus can help me out on this problem.

Regards,

Vinc.
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hello all ...

Does anyone know or have any solution for this problem?

Thanks in advance.

V.

Dear all

I need some help on the forum template.

At the moment (default) if I use the tag #FORMULAIRE_FORUM in the article.html template, it will display the forum form on the public site. This is fine.

My problem is I need to have different layouts of the forum form (at least 2 layouts). One special layout for, say, all articles belong to rubrique 3, and the 2nd, generic (default) layout for all other articles.

How to approach this need?

I noticed that the forum form is control by the file dist/formulaires/forum.html. I tried to add in some Boucle loop:

<BOUCLE_abc(RUBRIQUES){id_rubrique}{id_rubrique=3}>
....
</BOUCLE_abc>

to control the layout but it doesn't work. Because no id_rubrique date or id_article data is pass on to this forum.html??? So how can I run a boucle loop in this file?

Or can I create an additional forum.html say forum2.html?? Then how can I direct spip to use this forum2.html instead of forum.html?
Tried to use #FORMULAIRE_FORUM2 tag but obviously it doesn't work automartically without some additional hack. Am I right?

Really appreciate if some of the gurus can help me out on this problem.

Regards,

Vinc.
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hi,

squelettes-dist/inc-forum.html contains
<BOUCLE_forums(FORUMS) {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {par date}>
So this loop can take into account the context.

If your needs is to change the design of the forum, you can create a global

that embeds the forum (and with a class attribute that eables you to change the color, positions, etc…)

If it’s a deeper customisation, you have tou copy formulaires/forum.html AND formulaires/forum.php (it’s a « CVT » form) [explanation in french here : http://www.spip.net/fr_article3796.html]

if you rename them myforum.html, and myforum.php, you can include them in your templates with #FORMULAIRE_MYFORUM
(of course, inside myforum.php, the main function must be renamed to be automatically loaded :

function formulaires_myforum_charger(…)
function formulaires_myforum_verifier(…)
function formulaires_myforum_traiter()

.Gilles

On Thu, Jan 8, 2009 at 7:56 AM, TN Media <info@tnmedia.net> wrote:

Hello all …

Does anyone know or have any solution for this problem?

Thanks in advance.

V.

Dear all

I need some help on the forum template.

At the moment (default) if I use the tag #FORMULAIRE_FORUM in the article.html template, it will display the forum form on the public site. This is fine.

My problem is I need to have different layouts of the forum form (at least 2 layouts). One special layout for, say, all articles belong to rubrique 3, and the 2nd, generic (default) layout for all other articles.

How to approach this need?

I noticed that the forum form is control by the file dist/formulaires/forum.html. I tried to add in some Boucle loop:

<BOUCLE_abc(RUBRIQUES){id_rubrique}{id_rubrique=3}>

</BOUCLE_abc>

to control the layout but it doesn’t work. Because no id_rubrique date or id_article data is pass on to this forum.html??? So how can I run a boucle loop in this file?

Or can I create an additional forum.html say forum2.html?? Then how can I direct spip to use this forum2.html instead of forum.html?
Tried to use #FORMULAIRE_FORUM2 tag but obviously it doesn’t work automartically without some additional hack. Am I right?

Really appreciate if some of the gurus can help me out on this problem.

Regards,

Vinc.


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hi Gilles,

I forgot to stated that my spip version was 1.9.2g

Now I just upgraded to spip 2.0.2 and … found another problem!!!

As reported by , now I can’t login to spip! Tried several method: 1. Copy spip 2.0 over the current spip 1.9.2g – can’t login 2. Fresh installation of spip 2.0 – after initial login is ok, database migration ok, log out and now can’t login 3. Follow Tom’s message, chmod 777 to folder tmp and its subfolders – still can’t login. Is this a bug? or simply something wrong with my server? Note that this happen on my web server as well as on my localhost (xampp, on my laptop) Please help. V. Gilles VINCENT wrote:

On Fri, Jan 9, 2009 at 6:00 AM, TN Media <info@tnmedia.net> wrote:

Now I just upgraded to spip 2.0.2 and … found another problem!!!

Do you have any plugin installed ?

In such a case, desactivate them by ftp : just rename plugin/ into something else
Remove everything in /tmp
This will forse SPIP to clear it’s cache in database, and erase the plugins cache files

A lot of plugin are still not compatible with spip2.0 (ex. acces restreint, or forms&tables )

.Gilles

As reported by Tom@mir.dk, now I can’t login to spip!

Tried several method:

  1. Copy spip 2.0 over the current spip 1.9.2g – can’t login
  2. Fresh installation of spip 2.0 – after initial login is ok, database migration ok, log out and now can’t login
  3. Follow Tom’s message, chmod 777 to folder tmp and its subfolders – still can’t login.

Is this a bug? or simply something wrong with my server?

Note that this happen on my web server as well as on my localhost (xampp, on my laptop)

Please help.

V.

Gilles VINCENT wrote:

Hi,

squelettes-dist/inc-forum.html contains
<BOUCLE_forums(FORUMS) {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {par date}>
So this loop can take into account the context.

If your needs is to change the design of the forum, you can create a global

that embeds the forum (and with a class attribute that eables you to change the color, positions, etc…)

If it’s a deeper customisation, you have tou copy formulaires/forum.html AND formulaires/forum.php (it’s a « CVT » form) [explanation in french here : http://www.spip.net/fr_article3796.html]

if you rename them myforum.html, and myforum.php, you can include them in your templates with #FORMULAIRE_MYFORUM
(of course, inside myforum.php, the main function must be renamed to be automatically loaded :

function formulaires_myforum_charger(…)
function formulaires_myforum_verifier(…)
function formulaires_myforum_traiter()

.Gilles

On Thu, Jan 8, 2009 at 7:56 AM, TN Media <info@tnmedia.net> wrote:

Hello all …

Does anyone know or have any solution for this problem?

Thanks in advance.

V.

Dear all

I need some help on the forum template.

At the moment (default) if I use the tag #FORMULAIRE_FORUM in the article.html template, it will display the forum form on the public site. This is fine.

My problem is I need to have different layouts of the forum form (at least 2 layouts). One special layout for, say, all articles belong to rubrique 3, and the 2nd, generic (default) layout for all other articles.

How to approach this need?

I noticed that the forum form is control by the file dist/formulaires/forum.html. I tried to add in some Boucle loop:

<BOUCLE_abc(RUBRIQUES){id_rubrique}{id_rubrique=3}>

</BOUCLE_abc>

to control the layout but it doesn’t work. Because no id_rubrique date or id_article data is pass on to this forum.html??? So how can I run a boucle loop in this file?

Or can I create an additional forum.html say forum2.html?? Then how can I direct spip to use this forum2.html instead of forum.html?
Tried to use #FORMULAIRE_FORUM2 tag but obviously it doesn’t work automartically without some additional hack. Am I right?

Really appreciate if some of the gurus can help me out on this problem.

Regards,

Vinc.


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hi Gilles and all

Yes I did have 1 plugin, but it’s already deactivated.

I also clean out /tmp folder as well. And even delete everything, reinstall fresh spip 2.0 nut the problem is still there! :-(((

Quite frustrated, have to revert back to spip 1.9.2g as my project need to go live today!

If anyone have any clues to this problem please let me know.

V.

Gilles VINCENT wrote:

Hi Gilles and all

Yes I did have 1 plugin, but it’s already deactivated.

I also clean out /tmp folder as well. And even delete everything, reinstall fresh spip 2.0 nut the problem is still there! :-(((

Quite frustrated, have to revert back to spip 1.9.2g as my project need to go live today!

If anyone have any clues to this problem please let me know.

V.

Gilles VINCENT wrote:

Hi,

do you have in your template folder something likes formulaires/login.html ?
SPIP use it to display the login form.
Maybe you pb is here,

.Gilles

On Sat, Jan 10, 2009 at 3:20 PM, TN Media <info@tnmedia.net> wrote:

Hi Gilles and all

Yes I did have 1 plugin, but it’s already deactivated.

I also clean out /tmp folder as well. And even delete everything, reinstall fresh spip 2.0 nut the problem is still there! :-(((

Quite frustrated, have to revert back to spip 1.9.2g as my project need to go live today!

If anyone have any clues to this problem please let me know.

V.

Gilles VINCENT wrote:

On Fri, Jan 9, 2009 at 6:00 AM, TN Media <info@tnmedia.net> wrote:

Now I just upgraded to spip 2.0.2 and … found another problem!!!

Do you have any plugin installed ?

In such a case, desactivate them by ftp : just rename plugin/ into something else
Remove everything in /tmp
This will forse SPIP to clear it’s cache in database, and erase the plugins cache files

A lot of plugin are still not compatible with spip2.0 (ex. acces restreint, or forms&tables )

.Gilles

As reported by Tom@mir.dk, now I can’t login to spip!

Tried several method:

  1. Copy spip 2.0 over the current spip 1.9.2g – can’t login
  2. Fresh installation of spip 2.0 – after initial login is ok, database migration ok, log out and now can’t login
  3. Follow Tom’s message, chmod 777 to folder tmp and its subfolders – still can’t login.

Is this a bug? or simply something wrong with my server?

Note that this happen on my web server as well as on my localhost (xampp, on my laptop)

Please help.

V.

Gilles VINCENT wrote:

Hi,

squelettes-dist/inc-forum.html contains
<BOUCLE_forums(FORUMS) {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {par date}>
So this loop can take into account the context.

If your needs is to change the design of the forum, you can create a global

that embeds the forum (and with a class attribute that eables you to change the color, positions, etc…)

If it’s a deeper customisation, you have tou copy formulaires/forum.html AND formulaires/forum.php (it’s a « CVT » form) [explanation in french here : http://www.spip.net/fr_article3796.html]

if you rename them myforum.html, and myforum.php, you can include them in your templates with #FORMULAIRE_MYFORUM
(of course, inside myforum.php, the main function must be renamed to be automatically loaded :

function formulaires_myforum_charger(…)
function formulaires_myforum_verifier(…)
function formulaires_myforum_traiter()

.Gilles

On Thu, Jan 8, 2009 at 7:56 AM, TN Media <info@tnmedia.net> wrote:

Hello all …

Does anyone know or have any solution for this problem?

Thanks in advance.

V.

Dear all

I need some help on the forum template.

At the moment (default) if I use the tag #FORMULAIRE_FORUM in the article.html template, it will display the forum form on the public site. This is fine.

My problem is I need to have different layouts of the forum form (at least 2 layouts). One special layout for, say, all articles belong to rubrique 3, and the 2nd, generic (default) layout for all other articles.

How to approach this need?

I noticed that the forum form is control by the file dist/formulaires/forum.html. I tried to add in some Boucle loop:

<BOUCLE_abc(RUBRIQUES){id_rubrique}{id_rubrique=3}>

</BOUCLE_abc>

to control the layout but it doesn’t work. Because no id_rubrique date or id_article data is pass on to this forum.html??? So how can I run a boucle loop in this file?

Or can I create an additional forum.html say forum2.html?? Then how can I direct spip to use this forum2.html instead of forum.html?
Tried to use #FORMULAIRE_FORUM2 tag but obviously it doesn’t work automartically without some additional hack. Am I right?

Really appreciate if some of the gurus can help me out on this problem.

Regards,

Vinc.


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


---

_______________________________________________
[spip-en@rezo.net](mailto:spip-en@rezo.net) - [http://listes.rezo.net/mailman/listinfo/spip-en](http://listes.rezo.net/mailman/listinfo/spip-en)
  


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en