How to include "View All Entries" link to the modded version of Guestbook

How to include "View All Entries" link to the modded version of Guestbook

2 replies
Joined: 01/15/2008
User offline. Last seen 46 weeks 2 days ago.
I have implemented a nice little user-guestbook using these tutorials and the modded guestbook module (pretty sweet!!) I have a suggestion! I have set the pager limit in the modded guestbook.module code to "3" as space is limited on the userpages, and the Guestbook Admin settings pager limit to 50. (pager settings in tpl had no effect.. ) however I also wanted to include a "view all" link in there also, so viewers have the option to link to that user's dedicated guestbook page (i.e. "guestbook/245" if id of the user-page owner was 245) and view the full guestbook page 50 entries at a time in addition to the "pagerized" version on the userpage (like facebooks "view all Wall posts" buttons) so in the top or bottom of the user_profile.tpl.php or node-uprofile.tpl.php snippet for adding the guestbook, include the following: <?php$link = l(t('View All Entries'), "guestbook/$user->uid", array('title' => $title));print $link ?> and replace 'View All Entries' text with what you want to name the link, thats all!
Joined: 01/15/2008
User offline. Last seen 46 weeks 2 days ago.
and also...

might want to include a "Return to user profile"
link the full guestbook page

Joined: 05/13/2007
User offline. Last seen 1 hour 28 min ago.
Thanks

Thanks, but I won't be doing any more work on version 2 of the tutorials. I'm focusing on the advanced profile module now as I think it's a much better method.

Michelle

Post new comment
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options