As this http://drupal.org/node/234096 was marked 'closed' and dealt w/ AdvProfile while using Nodeprofile, thought I'd better start anew. Besides, TC44, who started that issue evidently gave up on his orig. problem & switched to the "guestbook" method that comes with AdvProfile (comment/form).
I'm trying to get the Guestbook.module to correctly show in user profiles when using AdvProfile and BIO module.
As per http://drupal.org/node/214392, which says: "quick and easy way to add the guestbook [module] to advanced profile is to edit the panel page, click add new custom content, and add this code:
<?php
print guestbook_page(arg(1));
?>I finally figured out that "edit the panel page" meant - go to ?q=admin/panels/panel-page/userprofile/edit/content, remove (red "x") the existing "Guestbook" pane (mini panel) from the bottom panel.
Then, that "click add new custom content" meant - click on the "+" icon (add content to this panel), which opens a new (java) window - then click on the "New custom content" icon in that window. This will provide a form for the new custom (pane) content. Title your new pane i.e. "Guestbook", "My Guestbook", "Visitors", or anything you like.
But after that is where I (and I assume others) get lost. The instructions "and add this code" (php snippet from above) aren't exactly clear, at least to me. I assumed it meant - paste the php snippet into the "Body:" text area provided. Which is what I did, but without success.
I tried pasting the entire snippet WITH and WITHOUT the beginning/end php tags while "Input format" was set to "Basic HTML" - AND - I tried pasting it in WITH and WITHOUT the beginning/end php tags while "Input format" was set to "Full HTML". Nothing has worked so far.
PLEASE help. Is the text area field NOT the place to "add this code"? And what about pasting in php tags into html input format area? Please see attached screen shots.
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| pane_showing_on_profile_without_content_below.png | 1.39 KB | rhimes | |
| new_cutom_pane_configured.png | 2.99 KB | rhimes | |
| phpSnippet_w_tags_fullhtml.png | 7.23 KB | rhimes |
Comments
Comment #1
michelleYou need to include the php tags and also set the input format to PHP.
Michelle
Comment #2
rhimes commentedok, done that, thanks
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.