to previous topic Print topic to next topic

 Root :: Developments :: Others :: Guestbook
 Moderated by:
 
  Bottom  Guestbook
jabbere Posted: 09.06.2006, 04:22
Noob
Noob
avatar

registered: Mar 21, 2005
Posts: 11

Status:  offline
last visit: 09.11.06
Chestnut,

Would you by any chance in the future be creating your own guestbook?

Right now, I'm using portalZINE's Guestbook (Site-User) last version released before he had shut his subscription site down. Now it's hard to find reliable help.

Anyways, I was wonderin' if you could help me out. I'm trying to create a link in the User-Profile to the User's guestbook. So to say if I was checking out your profile and wanted to sign your guestbook, all I have to do is click on the link and it will take me directly to your guestbook, and not the site's guestbook.

Any help would be much appreciated.

Top  jabbere send PM
 
Chestnut Posted: 09.06.2006, 11:29
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
It's not in my immediate plan but as I tend to create what I need, you never know when I'll need something like this. :)

Is it the same as this one ? http://dev.pnconcept.com/index.php?module=GuestBook

Note that mine is probably older than yours though.

To create a link in the profile, (only a link) you have 1 files to create.

Copy and paste this code into a file name links.guestbook.php

Code
  1. <?php
  2.  
  3. if (eregi('links.guestbook.php', $_SERVER['PHP_SELF'])) {
  4.     die ("You can't access this file directly...");
  5. }
  6.  
  7. //modules_get_language();
  8. usermenu("module-GuestBook.html", "Sign the Guestbook", "info.gif");
  9.  
  10. ?>


The link is yours to decide, I only wrote a simple link that goes to the main page of the guestbook, change also the text if you want and the image.

This links.guestbook.php file must be place in modules/Your_Account/user/links
(I think that the image is in yoursiteroot/images/menu

That's all... when the file is in place, you should see a new link in your account targetting the GuestBook.


In case of upgrade, you can also move the links.guestbook.php file into the Guestbook module. For that, in the modules/GuestBook folder, create a "user" folder and in the "user" folder, create a "links" folder. And move the links.guestbook.php file there. PostNuke will notice the file and add the link in your account the same way as if you had put it in the Your_Account module.

modules
--GuestBook
----user
------links
--------links.guestbook.php


icon_wink


Chestnut ! Cool
Site Admin
Top  Chestnut send PM Homepage
 



Powered by pnForum Version 2.0.1
DarkMindZ