The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How can I add userwall in a link in a template?

View previous topic View next topic Go down

Solved How can I add userwall in a link in a template?

Post by Van-Helsing on October 25th 2014, 12:19 pm

Hi all,
How can I add the userwall in a link in overall_header template?

Example code
Code:

<li id="user_content"><a href="LINK" title="Userwall">User's wall</a></li>

I think I need a javascript to complete this function. Can someone help me please?


Last edited by Black-Shadow on October 25th 2014, 3:21 pm; edited 1 time in total

Van-Helsing
Hyperactive

Male Posts : 2197
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add userwall in a link in a template?

Post by _Twisted_Mods_ on October 25th 2014, 12:34 pm

your trying to make a link to the current logged in users wall?

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How can I add userwall in a link in a template?

Post by Van-Helsing on October 25th 2014, 1:24 pm

@_Twisted_Mods_ wrote:your trying to make a link to the current logged in users wall?
Yes I need it for logged in users _Twisted_Mods_

Van-Helsing
Hyperactive

Male Posts : 2197
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add userwall in a link in a template?

Post by _Twisted_Mods_ on October 25th 2014, 1:51 pm

haha i figured it out.... now where u want to put it?

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How can I add userwall in a link in a template?

Post by Van-Helsing on October 25th 2014, 2:25 pm

I want to put it in overall_header template.

Van-Helsing
Hyperactive

Male Posts : 2197
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add userwall in a link in a template?

Post by _Twisted_Mods_ on October 25th 2014, 2:37 pm

add

Code:
<span id="uwall"></span>

in the overall_header where ever you want the link to be

and this is the js


Code:
$(function(){
var numb1 = document.getElementById('uwall');
          var userlink = _userdata.user_id;
 numb1.innerHTML += ' <a href="http://yoursite.com/u' + userlink + 'wall">My Wall</a>';
         
        });

Replace:
Code:
http://yoursite.com/

with your site link
and

replace

Code:
My Wall

with your text or img code

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How can I add userwall in a link in a template?

Post by Van-Helsing on October 25th 2014, 3:20 pm

Thank you very much _Twisted_Mods_ I have modified it and the problem is solved.

Best Regards,
Black-Shadow

Van-Helsing
Hyperactive

Male Posts : 2197
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add userwall in a link in a template?

Post by Base on October 25th 2014, 3:31 pm

Solved => Archived

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum