Hello All,
I am trying to integrate guestbook.module and user_profile.tpl.php. Here is how I would like it to work.
Ideally,
I would like the whole user guestbook to be included right alongside all of the other users info in the profile page. For example, the last 10 user guestbook entries (with user photos) would be included in the user profile page.
Alternatively,
the guestbook can be all by itself in a new tab. For example,
* view
* guestbook
* edit
* track
* contact
However, this solution would not be as desireable as the first one.
As a last resort,
Just making a simple link work to the users guestbook (view $users guestbook). This is how the guestbook hooks into the user profile now, but how could I make that work with the user_profile.tpl.php? Again, this solution is only what is needed if neither of the first two are doable.
Please use the contact tab in my user profile at the link below to send any bids and how long this job would take.
http://drupal.org/user/32425/contact
or if it is a simple enough solution for a non-coder to tackle, just post in this thread and I will be much appreciative of your troubles
Comments
cant help
sorry, I cannot help you
but I need this one, too!!!
A bit lengthy but..
I just tried this with Drupal 4.6.5 and it works fine..
Change the Div classes to suit. It's very lengthy, but it works.
This snippet is for use with a custom user_profile.tpl.php file.
Instructions: paste the entire snippet below/above/whatever content you want it to appear in the user profile page, edit the "no messages text" and DIV class/text to suit.
Hope that helps..
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
Nice..
Now, if only guestbook.module was 4.7 compatible.. ;p
thx
I cant test it right now, my ftp-server is down
but nevertheless I want to thank you very much, dublin drupaller!
Yes, thank you very much
Yes, thank you very much indeed!
Works exactly like I wanted it to!
An update for 4.7?
This issue is tracked on http://drupal.org/node/34484. If anyone is updating this hack for 4.7, please post the patch there.
Great code
Thanks for the snippet, dub.
Here's something that validates:
--
Even a clock that does not tick is right twice in a day
this works
from other forum
$uid5= arg(1);
print module_invoke('guestbook', 'page', $uid5);
The $uid5 could be simpler, but I forgot, this works anyway. (in 4.7)
Thank you so much for the
Thank you so much for the code you posted above. I had to tweak it a little, but you can see an example here: http://www.themes4urmobilephone.com/user/corleno
Next up: modify the actual guestbook page itself..
Thanks again..
photo
can you post a photo (not a profle photo) to a guestbook node?
is the above easy enough in 5.2 too
kk
has this topic any relevance in the nodeprofile v profile ...
,
It is possible to modify the guestbook page too
Hi,
It is possible to modify the guestbook page too. Although i have only done a basic mod due to limited time. But a lot can be done with a little bit of imagination. see example on my site..(http://www.themes4urmobilephone.com/guestbook/6554).
can u share your user profile modifications
Hi
you user profile page is very nice.
can u share the code..so we can figure it out too..u cld upload the file here..then we can learn...or cld u paste it in the comment box.
thanks
My internet voluntary services include
1. Helping answer queries on www.krishna.com
2. Learning & Helping in the Vedic section of www.spiritualnectar.com
3. Helped in some aspects to make www.indiapoised.org
4. Learning & ( Helping newbies) on www.
This works for Drupal 6.9
For Drupal 6.9 this worked for me...
I do a direct call to the function in guestbook.module that creates the guestbook page. Paste this code into your user-profile.tpl.php:
It works beautifully and returns the user back to the profile page after posting.
Heya! The above code does not
Heya! The above code does not return you to profile page after posting. After pressing the send button you are redirected to guestbook page.