Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 07:10:35 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155442 Posts in 21702 Topics by 7733 Members
Latest Member: DarrellDD
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Guestbook Entry Notification Link Goes to Incorrect Page?  (Read 1120 times)
Angelz

Offline Offline

Posts: 54



« on: October 05, 2008, 05:11:45 PM »

I installed the guestbook module, which works great, but when I receive notification of an entry, I get taken to http://www.domain-name.com/wb/pages/guest-book.php, when in actuality, it should go to either http://www.domain-name.com/wb/pages/add-on-features/guest-book.php (where the guest book can be seen by visitors), or to the admin area, at http://www.domain-name.com/wb/admin/pages/modify.php?page_id=28

How do I change the link that shows up in the email...? Sorry if this is obvious, but I can't find it   huh
By the way, I'm using version 2.7
Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #1 on: October 05, 2008, 06:12:42 PM »

I can confirm this error.
If I remeber right, it was from that time, when I moved the page to another location.
Maybe it depends on that?

rgds

erpe
Logged

ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7972



WWW
« Reply #2 on: October 05, 2008, 06:33:18 PM »

Hello,

the code you look for is in gstbk_save.php

Code:
//send mail
        if($admin_email!=""){
            $mail_subject = $MOD_GUESTBOOK['MAILSUBJECT'];
            $mail_message = $MOD_GUESTBOOK['MAILMESSAGE'].'<a href="'.page_link(  '/'. page_filename( get_menu_title($page_id)) ).'" target="_blank">'.page_link(  '/'. page_filename( get_menu_title($page_id)) ).'</a>';
            $wb->mail(SERVER_EMAIL,$admin_email,$mail_subject,$mail_message);
        }

Matthias
Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #3 on: October 05, 2008, 06:46:55 PM »

Hi Matthias

For I am not a coder: Can you see something wrong in there?

rgds

erpe
Logged

Angelz

Offline Offline

Posts: 54



« Reply #4 on: October 05, 2008, 06:55:17 PM »

Hello,

the code you look for is in gstbk_save.php

Code:
//send mail
        if($admin_email!=""){
            $mail_subject = $MOD_GUESTBOOK['MAILSUBJECT'];
            $mail_message = $MOD_GUESTBOOK['MAILMESSAGE'].'<a href="'.page_link(  '/'. page_filename( get_menu_title($page_id)) ).'" target="_blank">'.page_link(  '/'. page_filename( get_menu_title($page_id)) ).'</a>';
            $wb->mail(SERVER_EMAIL,$admin_email,$mail_subject,$mail_message);
        }

Matthias

Sorry that I don't know so much about this, but what is the correct code to add, and where? I do appreciate your help with this, so much.
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7972



WWW
« Reply #5 on: October 05, 2008, 08:06:43 PM »

Hello,

the code i posted is the original code. If you wanna have another link in the Email, change the "href" part. If you have only one guestbook on your page, the easiest is to hardcode the path you wanna have.

Matthias
Logged
Angelz

Offline Offline

Posts: 54



« Reply #6 on: October 05, 2008, 08:40:55 PM »

Hello,

the code i posted is the original code. If you wanna have another link in the Email, change the "href" part. If you have only one guestbook on your page, the easiest is to hardcode the path you wanna have.

Matthias

I tried that. Just got an error message Sad
Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #7 on: October 06, 2008, 09:52:03 AM »

Hi Matthias,

so if I understand that code right, the link should work, wherever the guestbook is placed on the site.
But this does only work if the guestpoge is directly placed below /pages.

This could not be right.

rgds

erpe
Logged

Angelz

Offline Offline

Posts: 54



« Reply #8 on: October 09, 2008, 05:29:14 AM »

Shouldn't be right but that seems to be the case  sad
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!