Only discussions started by the user in a widget

Go down

Only discussions started by the user in a widget

Post by Majong on Sat 3 Jan 2015 - 9:43

I would put in a widget link "Number of Topics" located in the profile because clicking on this link you will see only the open discussions started by the user and not all of his posts in general.


I found this tutorial ( Says to place this code in widget), but it does not work. Can not see anything.

Code:
<div id="newwall"></div>
<script>
(function(){
 var uid = _userdata["username"];
  var url = '/st/' + uid;
var result = '<a href="' + url + '">Trova i tuoi argomenti</a>';
  $('#newwall').append(result);
})();
</script>

Majong
New Member

Posts : 2
Reputation : 1
Language : Italian-English

http://aureomicina.forumattivo.it

Back to top Go down

Back to top


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