Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 24, 2012, 07:10:35 AM
1 Hour
1 Day
1 Week
1 Month
Forever
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
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
Guestbook Entry Notification Link Goes to Incorrect Page?
Pages: [
1
]
Go Down
Author
Topic: Guestbook Entry Notification Link Goes to Incorrect Page? (Read 1120 times)
Angelz
Offline
Posts: 54
Guestbook Entry Notification Link Goes to Incorrect Page?
«
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
By the way, I'm using version 2.7
Logged
erpe
Offline
Posts: 2077
Re: Guestbook Entry Notification Link Goes to Incorrect Page?
«
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
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7972
Re: Guestbook Entry Notification Link Goes to Incorrect Page?
«
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
Posts: 2077
Re: Guestbook Entry Notification Link Goes to Incorrect Page?
«
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
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
Angelz
Offline
Posts: 54
Re: Guestbook Entry Notification Link Goes to Incorrect Page?
«
Reply #4 on:
October 05, 2008, 06:55:17 PM »
Quote from: ruebenwurzel 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
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
Posts: 7972
Re: Guestbook Entry Notification Link Goes to Incorrect Page?
«
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
Posts: 54
Re: Guestbook Entry Notification Link Goes to Incorrect Page?
«
Reply #6 on:
October 05, 2008, 08:40:55 PM »
Quote from: ruebenwurzel 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
I tried that. Just got an error message
Logged
erpe
Offline
Posts: 2077
Re: Guestbook Entry Notification Link Goes to Incorrect Page?
«
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
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
Angelz
Offline
Posts: 54
Re: Guestbook Entry Notification Link Goes to Incorrect Page?
«
Reply #8 on:
October 09, 2008, 05:29:14 AM »
Shouldn't be right but that seems to be the case
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...