I heard destiny was extremely overhyped?

Posts
-
RE: What's up yall?
@Skyhijinx said:
I’m down to shoot the shit and talk about whatever else is going on though!
Pretty much what we only do here anyway :P
-
RE: Cry of Fear Game Night [Weekend of 13th February 2015]
Cry of Fear was a bit of a failure last night but we managed to rescue the game night with @GoaNy’s suggest of an online board game.
It worked out to be quite an interesting and fun game to play. Definitely worth another go with some more people, I can imagine it being even more crazy than it was last night.
-
RE: [nodebb-theme-classic] BitBangers Classic Theme
Upgraded for the latest version of NodeBB which is currently 0.6.x
git checkout 0.6.x
-
NodeBB v0.6.x
I have finally managed to figure out why our theme wasn’t working with the latest version of NodeBB. I have now made the changes and we are currently running the latest stable version of NodeBB!
There are some new features with this version of NodeBB, mainly the new Groups section.
The Groups section allows for the creation of Groups within NodeBB. They can be user created or Admin only created. At the moment only I am able to create groups but that can change if you guys want.
Groups allow for a custom “Badge” underneath your username, you can also upload custom pictures for the group header.We have an issue with the shoutbox at the moment but @Schamper will work his balls off to get it fixed.
If there is anything else you notice wrong, let me know and hopefully I can get it fixed asap.
-
Cry of Fear Game Night [Weekend of 13th February 2015]
Since last weeks Minecraft Parkour was a success I think we should have another Game Night.
I think some of you said you were up to playing a horror game. I have tried a few of the Minecraft Horror maps but they don’t seem to be that good.I have seen Cry of Fear mentioned in the shoutbox before, I think it was either @Jellyforme or @GoaNy. I think it’s time we tried it out.
You can download it on Steam for free. It’s based on HL2 i think so anyone should be able to run it.
Who’s up for it?
-
RE: Blog Theme
It’s taken a bit longer than a few days but I have completed all the changes.
Hopefully now I can take a look at upgrading this theme to be compatible with v0.6.x of NodeBB.
-
RE: Minecraft Parkour Gaming Night [weekend of 2015-2-6]
@Almost I can upload a map and set the server to use that one and then when you are done i can switch it back to the other one.
Also, is that February 6th or June 2nd?
-
RE: Minecraft Parkour Gaming Night [weekend of 2015-2-6]
Do you want this map hosted on our server too?
-
RE: [nodebb-plugin-imdb] IMDB Information
While testing out this API I have realised that IMDB does not allow hotlinking so the poster part of this plugin will have to wait until I can come up with a solution to include poster images.
In its current state the plugin will display a popover, similar to @Schamper user cards plugin, with the films title, rating, genre and small plot.
Like this:
Here is the code.
(function(window) { var urls; var href; var omdburl; var target; var regex = new RegExp('(?:https?:\/\/)?(?:www\.)?(?:imdb\.com)\/(?:title)\/(.+)\/', 'g'); function createOMDB(id){ var url = 'http://www.omdbapi.com/?i=' + id + '&plot=short&r=json'; return url; } function getFilmInfo(url, callback){ $.get(url, function(data){ //showPopover(JSON.parse(data), target); callback(JSON.parse(data), target); }); } function showPopover(filmData, target){ target.popover({ trigger: 'manual', placement: 'right', html: true, title: '<b>' + filmData.Title + '</b>', content: '<h5>Rating: '+ filmData.imdbRating +'</h5><h5>Genre: ' + filmData.Genre + '</h5><p>' + filmData.Plot + '</p>' }).popover('show'); } $(document).ready(function() { $(document).on('mouseenter', 'a', function(e){ target = $(e.currentTarget); href = $(this).attr('href'); while((urls = regex.exec(href)) !== null) { omdburl = createOMDB(urls[1]); getFilmInfo(omdburl, function(filmData, target){ showPopover(filmData, target); }); } }).on('mouseleave', 'a', function(){ target.popover('destroy'); }); }); })(window);
I think I may have the hang of callbacks but I’m not to sure at the moment, I did manage to implement one in the code though. I suppose that’s a start.
I have also notice a bug that when you mover your mouse over the link fast the popover will open but not close. You have to hover you mouse over the link again for it to be removed.
Also, bold title :P
-
RE: [nodebb-plugin-imdb] IMDB Information
I have literally been doing that . Had a tab open with cards plugin and a tab open with jquery methods.
Many many tabs… :P
-
RE: [nodebb-plugin-imdb] IMDB Information
@Schamper A template will be simple i think, not sure how I would add it to a post though?
-
RE: [nodebb-plugin-imdb] IMDB Information
I have been working on the client side javascript for this plugin tonight. After an hour of trying to get it working and then suddenly realising I have been pretty stupid for that hour. I forgot to include the javascript in the plugin.json…
Once I managed to get some feedback from the console I went ahead and tried to get to where @Almost recommended me to get to. I can now output the Title of the films onto the client console when hovering over an IMDB link. Kinda cool :)
(function(window) { var imdburls var regex = new RegExp('(?:https?:\/\/)?(?:www\.)?(?:imdb\.com)\/(?:title)\/(.+)\/', 'g'); var urls; var omdburl; function createOMDB(id){ var omdburl = 'http://www.omdbapi.com/?i=' + id + '&plot=short&r=json'; return omdburl; } function getFilmInfo(url){ var filmData; $.get(url, function(data){ filmData = JSON.parse(data); console.log(filmData.Title); }); } $(document).ready(function() { urls = document.links; for (var i = 0; i < urls.length; i++) { while ((imdburls = regex.exec(urls[i].href)) != null) { omdburl = createOMDB(imdburls[1]); getFilmInfo(omdburl); } } }); })(window);
Updated for auto console output for each imdb link, no need to mouseover now.
-
RE: Game of Thrones Season 5 Trailer
Even reading the book its yard to keepntrack.
-
RE: [nodebb-plugin-imdb] IMDB Information
Updated code with some of @Almost s help.
(function(module) { 'use strict' var request = module.parent.require("request"); var OMDB = {}; var embed; var film; var omdburl; var urls; var regex = new RegExp('<a href="(?:https?:\/\/)?(?:www\.)?(?:imdb\.com)\/(?:title)\/(.+)\/">.+<\/a>', 'g'); var regex2 = /<a href="(?:https?:\/\/)?(?:www\.)?(?:imdb\.com)\/(?:title)\/(.+)\/.+">.+<\/a>/g; OMDB.parse = function(data, callback) { if (!data || !data.postData || !data.postData.content) { return callback(null, data); } if (data.postData.content.match(regex)) { while ((urls = regex.exec(data.postData.content)) != null) { data.postData.content = data.postData.content.replace(urls[0], urls[1]); } } if (data.postData.content.match(regex2)) { } callback(null, data); }; module.exports = OMDB; }(module));
One issue i am facing at now is that it only replaces the first link in a post, the second link stays the same.
Edit - Fixed it with @Almost
(function(module) { 'use strict' var request = module.parent.require("request"); var OMDB = {}; var embed; var film; var omdburl; var urls; var regex = new RegExp('<a href="(?:https?:\/\/)?(?:www\.)?(?:imdb\.com)\/(?:title)\/(.+)\/">.+<\/a>', 'g'); var regex2 = /<a href="(?:https?:\/\/)?(?:www\.)?(?:imdb\.com)\/(?:title)\/(.+)\/.+">.+<\/a>/g; OMDB.parse = function(data, callback) { if (!data || !data.postData || !data.postData.content) { return callback(null, data); } var postCopy = data.postData.content; while ((urls = regex.exec(data.postData.content)) != null) { postCopy = postCopy.replace(urls[0], urls[1]); } data.postData.content = postCopy; callback(null, data); }; module.exports = OMDB; }(module));
-
RE: [nodebb-plugin-imdb] IMDB Information
Currently I can make it out put the correct film titles with a
console.log(film.Title);
.
If I did a
console.log(omdburl);
it shows 4 different URLs corresponding to the films that have been posted. -
RE: [nodebb-plugin-imdb] IMDB Information
Spending way to much fucking time on this…
This currently outputs the film title to the console.(function(module) { 'use strict' var request = module.parent.require("request"); var OMDB = {}; var embed; var omdburl; var film; var regex = /.+<a href="(?:https?:\/\/)?(?:www\.)?(?:imdb\.com)\/(?:title)\/(.+)\/">.+<\/a>.+/g; var regex2 = /.+<a href="(?:https?:\/\/)?(?:www\.)?(?:imdb\.com)\/(?:title)\/(.+)\/.+">.+<\/a>.+/g; OMDB.parse = function(data, callback) { if (!data || !data.postData || !data.postData.content) { return callback(null, data); } if (data.postData.content.match(regex)) { omdburl = data.postData.content.replace(regex, 'http://www.omdbapi.com/?i=$1&plot=short&r=json'); request(omdburl, function (error, status, response) { if (!error && status.statusCode == 200){ film = JSON.parse(response); console.log(film.Title); } }) } if (data.postData.content.match(regex2)) { } callback(null, data); }; module.exports = OMDB; }(module));
I have spent hours trying to get the URLs to change to the correct title but I can only get them all to change to the first one. I’m sure it may be something simple but I think my brain is dead.
If i do
request(omdburl, function (error, status, response) { if (!error && status.statusCode == 200){ film = JSON.parse(response); embed = "<h1>" + film.Title + "</h1>"; data.postData.content = data.postData.content.replace(regex, embed); } })
The content does not change but when I put it outside the request call the post do actually change, but they all change to the same name.