Integrating the Blog with the Forum

Articles from the official HammockHangers.net Blog
Post Reply
User avatar
Scuba
Site Admin
Reactions:
Posts: 872
Joined: Thu Aug 13, 2015 10:02 pm
Location: San Antonio
Hammock: DreamHammock
Tarp: UGQ WD or Hanger
Suspension: Varies
Insulation: UGQ40 HG20

Integrating the Blog with the Forum

#1

Post by Scuba » Thu Aug 25, 2016 4:26 pm

Read Full Article
When set up correctly, any Blog post will also make a post in the Article sub-forum.
 
-Scuba
document.getElementById("xpost_link").onclick = function(event) { event.preventDefault(); var http = new XMLHttpRequest(); http.onreadystatechange = function () { if (http.readyState == 4 && http.status == 200) { if (http.responseText) { document.getElementById("bridgedd").parentNode.innerHTML = http.responseText + '
Read Full Article'; } else { window.location = this.href; } } }; http.open("GET", "/xpost.php?p=73", true); http.send(); };



Post Reply

Return to “Articles”

Who is online

Users browsing this forum: No registered users and 1 guest