Resource icon

[bd] Widget Framework 2.6.6

No permission to download
I love widget framework. Anyone know how I might plop in some google traffic code into a sidebar widget? I tried putting this in an advanced HTML, but it showed nothing.

Code:
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true"></script>
    <script>
function initialize() {
  var myLatlng = new google.maps.LatLng(34.04924594193164, -118.24104309082031);
  var mapOptions = {
    zoom: 13,
    center: myLatlng
  }

  var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);

  var trafficLayer = new google.maps.TrafficLayer();
  trafficLayer.setMap(map);
}

google.maps.event.addDomListener(window, 'load', initialize);

    </script>
You are missing this part:

Code:
<div id="map-canvas"></div>
 
Ok, still nothing though. If I use advanced HTML with a wrapper, I see the wrapper so I know I have it in the right spot. For my html I now have:

Code:
<div id="map-canvas">
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true"></script>
    <script>
function initialize() {
  var myLatlng = new google.maps.LatLng(34.04924594193164, -118.24104309082031);
  var mapOptions = {
    zoom: 13,
    center: myLatlng
  }

  var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);

  var trafficLayer = new google.maps.TrafficLayer();
  trafficLayer.setMap(map);
}

google.maps.event.addDomListener(window, 'load', initialize);

    </script>
</div>
 
Yes but only if I copy the whole thing which includes the <script> being within the <head> tags. I've added the <style> element but still no luck in the widget. Maybe I need to move the script outside of the widget HTML?
 
Hi, how do I put a widget at the bottom of my forum index page between the bottom of the node list and the footer? I try using hook:forum_list_nodes with -10 and other values, but it just ends up above the forum list. Specifically, I'm trying to use this with the Who Has Visited add on renderer.
 
Good question - i have a similar problem with a block above the forum list. Serveral times it will be displayed, but other times not. And i dont know why?

@xfrocks can you take a look please?
 
Hi, how do I put a widget at the bottom of my forum index page between the bottom of the node list and the footer? I try using hook:forum_list_nodes with -10 and other values, but it just ends up above the forum list. Specifically, I'm trying to use this with the Who Has Visited add on renderer.

Good question - i have a similar problem with a block above the forum list. Serveral times it will be displayed, but other times not. And i dont know why?

@xfrocks can you take a look please?

hook:forum_list_nodes

Display Order: -10 == above the node list
Display Order: 10 == below the node list
 
Was curious if there are plans for a 'threads' renderer option to select threads based on tags -- when 1.5 rolls around, of course.
 
Anyone ever figure out a way to have the Threads renderer link to the first unread post? Is there an alternative renderer that accomplishes this?
 
Hi, I tried adding status updates and recent profile posts and all I get is the block to update your status but it does not show the statuses or profile posts after entering. What might I be doing wrong?
 
Change cache TTL to 0.

Nope. Still just allows me to enter a status and just disappears when I click enter. Also, it should show previous statuses entered, even if sevewral months ago right? Its not showing anything like that. Just the line to enter your status
 
Anyone know how to disable rich usernames in profile posts widget?

Also @xfrocks can you update this to include the new 'new posts' sidebar thing please so we do not have to make a custom widget.
 
At this rate there will be no custom widgets because XF keeps adding them to core :P

First the profile posts and now that recent posts sidebar block!
 
Back
Top Bottom