Change Guestbook Layout

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
_sarah
Posts: 46
Joined: Wed 19. Apr 2006, 16:19

Change Guestbook Layout

Post by _sarah »

hej guys.

i'm changing my guestbook, so that it looks like a comment box. now i was wondering, where to change the code, to have the comments above the entry form. all i try does not work. i changed the cnt18.article, the default.html and had a look at the act.guestbook, but didnt find anything.

could somebody help me out?

would it also be possible, to click on a link first like "add a comment" to get the entry form?

cheers

sarah
row row little heart.
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post by Stim »

Hi

Have you look at phpwcms_template/inc_cntpart/guestbook/default.html ?!

Maybe something there to changing?
_sarah
Posts: 46
Joined: Wed 19. Apr 2006, 16:19

Post by _sarah »

sure

i changed the order of the stuff. the "<!--GUESTBOOK_ENTRY_START//-->" comes before "<!--FORM_START//-->". i thought this might change the look, but it does not work.

i think one php file must configure this order. (?) but i didnt find it.
row row little heart.
_sarah
Posts: 46
Joined: Wed 19. Apr 2006, 16:19

Post by _sarah »

well

now i discovered this : http://faq.phpwcms-docu.de/10_32_de.html

how does this comment feature work? am i this blind, that i can't find it by searching the backend and forum?


thanks for your help.
row row little heart.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi _sarah,

I do not understand: "Wo finde ich fertige Templates" = http://faq.phpwcms-docu.de/10_32_de.html :?: :?:

Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
_sarah
Posts: 46
Joined: Wed 19. Apr 2006, 16:19

Post by _sarah »

how does this comment feature work? am i this blind, that i can't find it by searching the backend and forum?
under the text is one comment, and a link to post a new.
i just want to know how it works. is it a content part? modified?
row row little heart.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

A yes I understand.

Sorry, but the FAQ is a special system, not running phpWCMS.
We have it made looks like the docu template.

© 2005 phpwcms-docu.de powered by phpMyFAQ 1.6.1 http://www.phpmyfaq.de/

Gruß Knut :D
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
_sarah
Posts: 46
Joined: Wed 19. Apr 2006, 16:19

Post by _sarah »

so okay

back to my first question then.
row row little heart.
_sarah
Posts: 46
Joined: Wed 19. Apr 2006, 16:19

Post by _sarah »

hm. is there nobody who can help me out?
row row little heart.
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

I too would like to know

Post by jsw_nz »

Hi _sarah,

The order of elements of the guestbook/comments contentpart is determined inside a given template file - and can be controlled via the replacement tags (internal) for the output. Guessing that OliG did it this way for future expansion, that might include UI for modifying these values.

Open file: phpwcms_template/inc_cntpart/guestbook/default.html
then look at lines 131-146 (dev 127pre):

with tags <!--TAG//-->that call the get_tmpl_section function ()....

so to move the {FORM} to a position below the actual comments you would need to change the order of the rep tags found 'nested' inside the these 'comment' tags.

The default looks like this:

Code: Select all

<!--GUESTBOOK_START//-->
  {FORM} {NAV}..............code.................
<!--GUESTBOOK_ENTRY_START//-->
..............code.................
  <!--GUESTBOOK_ENTRY_END//-->
</table>
<!--GUESTBOOK_END//-->
so to move the {FORM} to a position below the comments, you would
simple move the {FORM} Rep Tag: Something like:

Code: Select all

<!--GUESTBOOK_START//-->
  {NAV}..............code.................
<!--GUESTBOOK_ENTRY_START//-->
..............code.................
  <!--GUESTBOOK_ENTRY_END//-->
</table>{FORM} 
<!--GUESTBOOK_END//-->
Kind of simple really - did take some time to find. OliG's guestbook code is way advanced.

Hope this helps.

:D -john-
Post Reply