By René on Saturday, 29 November 2014
Posted in General Issues
Replies 9
Likes 0
Views 699
Votes 0
hi, if a gueest subscribe to a Bloger then admin get a email. but within that admin email is no link to respective Blogger or Blog Post!?

// Send email to notify admin upon successful subscriptions
$user = EasyBlogHelper::getTable( 'Profile' );
$user->load( $userId );
$date = EasyBlogDateHelper::getDate();

$subscriberName = ($my->id == 0) ? $post['esfullname'] : $user->getName();

$data = array(
'title' => JText::_( 'COM_EASYBLOG_SUBSCRIPTION_SUCCESS_DIALOG_TITLE' ),
'subscriber' => $subscriberName,
'subscriberLink' => EasyBlogRouter::getRoutedURL( 'index.php?option=com_easyblog&view=blogger&layout=listings&id=' . $user->id , false , true ),
'subscriberAvatar' => $user->getAvatar(),
'subscriberDate' => EasyBlogDateHelper::toFormat( $date , '%A, %B %e, %Y' ),
'type' => $type
);


How can i get here a Link back to subscribed Blogger or Blog Entry?
When you subscribe to an author, the site admin does not get notified. Only the blog author get's notified. If you want to alter this behavior, you can modify the codes in /com_easyblog/models/blogger.php and at line 486 you will need to locate the method "addBloggerSubscription".
·
Sunday, 30 November 2014 00:56
·
0 Likes
·
0 Votes
·
0 Comments
·
When you subscribe to an author, the site admin does not get notified. Only the blog author get's notified.


that's not correct mark!

// Send email to notify admin upon successful subscriptions

super user get a email forch each guest subscribe to an author/blogger!
·
Sunday, 30 November 2014 01:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rene,

Ops, my bad. I was checking on the wrong codes. You can use the variable $subscriberLink to generate a link to the author's page.
·
Sunday, 30 November 2014 12:51
·
0 Likes
·
0 Votes
·
0 Comments
·
hi mark, no problem..variable $subscriberLink is already in above code, but in Admin mail is no Link to the author's page, or?

'subscriberLink' => EasyBlogRouter::getRoutedURL( 'index.php?option=com_easyblog&view=blogger&layout=listings&id=' . $user->id , false , true ),
·
Sunday, 30 November 2014 17:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah, you mean the author instead of the user. Currently it doesn't do that, you need to hack the codes there in order to add the author link. The code above is applied to all types of subscription so you need to add some hacks there to achieve this.
·
Sunday, 30 November 2014 21:40
·
0 Likes
·
0 Votes
·
0 Comments
·
hi mark, i'm not sure if we unterstand here the same!

the only thing i want is that inside the email Notification - COM_EASYBLOG_NOTIFICATION_NEW_SUBSCRIPTIONS - Blogger.

is also a link to the respective Blogger Page! admin do with that notification know that a new subscription is done but not how the name of the Blogger is!?
·
Saturday, 20 December 2014 02:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rene,

I really have no idea what you are trying to achieve now. You are trying to display a link of the AUTHOR in the email correct? It's not possible currently unless you hack the view file to pass the blogger's link into the template.
·
Saturday, 20 December 2014 18:36
·
0 Likes
·
0 Votes
·
0 Comments
·
hi mark, yes i'm trying to display a link of the AUTHOR in the email, so admins are apple to know what Blogger are subscriped for that mail. maybe you can add this in EB5 or give me a workking code for the hack!
·
Saturday, 20 December 2014 22:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry but I have already provided the file above which you can customize. I am afraid we might not be able to assist you with your customization request.
·
Sunday, 21 December 2014 16:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post