hello
elgg default invite link is buried under right lower corner of friends page. i tried to place a banner ad on each page with content_insert plugin which says "click to invite friends". when clicked it would take you to invite users link.
<a href="http://mysite.com/friends/invite">
<img src="http://mysite.com/mygraphics/Invitebanner.jpg" alt="image">
</a>
problem is invite users url must have username in it.
http://mysite.com/friends/USERNAME/invite
how can i work around this?
thank you
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Selen@Nesuhiselen
Selen - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 1 like
- Selen@Nesuhiselen
Selen - 0 likes
- İşöğüçı@Sinan
İşöğüçı - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- İşöğüçı@Sinan
İşöğüçı - 0 likes
- Selen@Nesuhiselen
Selen - 0 likes
You must log in to post replies.Any help?
Thank you RvR!
May ask you how you did it? I tried the given code to add a banner (calling PHP from within HTML)
<a href="<?php
$user = elgg_get_logged_in_user_entity();
$username = $user->username;
$url = elgg_get_site_url() . 'friends/' . $username . '/invite';
?>
">
<img src="graphics URL" style='width:100%; max-height:500px' border="0" alt="Null">
</a>
but get 'page not found' message. Also tried echoing the url var but to no avail.
Best Regards
Works ok. Elgg 2.3.14
Hi @RvR, I've got 2.3.12. I doubt so much changed between 2.3.12 and 2.3.14 but I'll check the release notes anyways. Best.
Indeed, I also get page not found...