OpenSource

I absolutely love using Jquery Mobile on my Vbulletin forum, however, not being able to monentize the traffic was a real disappointment. Typically, the issue in the earlier version of Jquery Mobile, is that upon a ajax page load, the Google Adsense script would be executed and the user would only see the ad and not the page. Then on the later version, the script itself wouldn’t be executed at all.

So, after much looking around, I finally found this posts that started me in the direction to sucess.

http://stackoverflow.com/questions/1142861/jquery-append-google-adsense-to-div

Here is how I’m accomplishing it. Try it out!

JS Code:

$(window).load(function(){
var ads_top = $("#adsense_top").find("iframe");</code>

//This is where the ads will show when the page is first loaded
$(ads_top).appendTo("#google_ads_top div");

$("#adsense_top").remove();

$('div').live('pagehide',function(event, ui){
//This is where the ads will show when theirs a page transition
$(ads_top).appendTo("#google_ads_top div");
});
});

Now, here is a sample page structure.

<!DOCTYPE html>
<html>
	<head>
 	</head> 

	<body>
 		<div data-role="page" data-theme="d">
	 		<div id="header">
	 	</div>

		<div data-role="navbar">
		</div>

		<div id="google_ads_top">
			<div align="center">
		    </div>
		</div>

		<div data-role="content"> 

		</div>

		<div id="footer">
		</div>
	</div>

	<div id="adsense_top" style="display:none;">
		<!--Insert adsense Code-->
	</div>
	</body>
</html>

Let me know how it works out for you!

{ 4 comments }

If you found this post, it’s probably because you’re using vbulletin while running PHP as fastcgi (mod_fcgid) and you encountering 500 server errors whenver you upload larget attachments? We’ll, that’s what I ran into. Little background. I was using the latest Cpanel, along with Apache 2.2, latest php 5.3 and running it as fastcgi. But, I found that when uploading large attachments in vbulletin, I would get a 500 server error. Looking through the logs, I couldn’t find much explanation as to why this was happening. So while I investigated this, I set it back to mod_suphp since attachment uploading worked fine with that mod.

Okay, you just wan’t to know how to fix this? Easy. After switing back to mod_fcgid, you need to log in the terminal as root and open the php.conf file.

/usr/local/apache/conf/php5.conf

After researching, it looked like all I needed to add was the following:

MaxRequestLen 15728640

However, even with that change, it was still throwing 500 errors. So a little more investigation led to:

PHP_Fix_Pathinfo_Enable 1

That was the missing link. After adding the above, it would work fine, yay!

These are the final additions I made to the php.conf file


MaxProcessCount 1000
DefaultMaxClassProcessCount 100
IPCConnectTimeout 60
IPCCommTimeout 60
PHP_Fix_Pathinfo_Enable 1
IdleTimeout 900
IdleScanInterval 120
BusyTimeout 300
BusyScanInterval 120
ErrorScanInterval 9
ZombieScanInterval 9
ProcessLifeTime 3600
MaxRequestLen 15728640

Souce:

Link1
Link2
Link3

{ 6 comments }

So if you found this, you’re probably looking for a PHPBB3 Facebook connect mod. Lady’s and gentlemen, boys and girls, birds and bees, this mod is now available. I’m currently using it on my forums over @ http://www.ixtreme.net and so far, seems to be working great!

This mod as of this posting, has not been officially released on the Phpbb.com site for download, but you can find it over at http://svmods.com.The mod itself if fairly easy to install given you setup your application correctly at http://facebook.com/developers

Big thanks for SVMODS for finally coming up with a rock solid solution that allows one of the best open source forums out there (phpbb3) to be intergrated with Facebook Connect.

{ 10 comments }

I’m finally up for a renewal on my AT&T line and the bottom line is, do I get the Samsung Captivate or do I wait for a new android to hit AT&T. I’d prefer a HTC phone, but the HTC Aria isn’t my cup of decaf. I defiantly want the latest in terms of CPU, Ram, Video Recording, etc. I’m still rocking out my iPhone 3GS, but I’ve decided to switch over to Android.

Any thoughts?

{ 2 comments }

I’m not one to typically write about 3rd party services, and what I think of them. But folks, I believe this merits a post. As some of you may know, I have acouple of sites out there, http://www.politicalwind.net and http://www.newdgamez.com, both of which use Intensedebate as their commenting system. Along with that, I also like to use one of many widgets they offer, the “Latest Comments” widget. Now, for the longest time, I’ve just created the div that houses that script, and put a height of 200px, and overflow to auto. This as you might know, will render the OS’s default scroll bars, as seen below.

So for awhile, I was okay with this. Didn’t look the prettiest, but got the job done, until one day, a came accross a pretty cool Jquery plugin, jScrollPane. Wow, that would really help the layout and make it look a little nicer. It’s fairly easy to use, just add the css declarations to your current css file, and in the document ready function, simply apply the jScrollPane function to your selector, like so:

$('#LatestComments .CommentContainer').jScrollPane();

But this is where I ran into problems. Since the actual html markup is not inserted into the Dom until the script executes, there was no way for me to properly apply the jScrollPane function to it. Even when calling it inside the doc ready function, it wouldn’t work. I needed some way to know, when the script finished loading. So, not expecting to hear any reply whats so ever, I emailed the support teams @ IntenseDebate, and told them of my issue.  Two weeks later or so, and still no reply.

Boom, I got the email last night. The first started off with an apology on how long it took them to get back to me, but on top of that, they added a new call back function to be called when the script finishes loading.

id_recent_comments_loaded

Now that their dev team added this callback function, I now know when I can apply the jScrollPane function to the comments. Side note, even with this new function, after applying the jScrollPane to my selection, which contained the comments, it would force the comments to open in the same window, with just the comments only. Weird issue here, but have an idea to what the issue was. When looking at the source via firebug, I could see that at the bottom of the IntenseDebate html markup, was a script tag. And for some reason, if I removed it, then applied the jScrollPane, it would render as one would expect. If I left the script tag in there, it would open my index page with the intense debate head and body tags.

So, here’s my solution. And remember, I’m just a amateur here folks, not an experienced jquery developer, so please, if you see something that I can optimize, let me know.

$(document).ready(function() {
id_recent_commenats_loaded = function() {
var htmlStr = $('#IDWidget2').html();
$("#LatestComments .CommentContainer").empty();
$("#LatestComments .CommentContainer").append("<div id=IDWidget2 class=idw-container></div>");
$("#IDWidget2").append(htmlStr);
$('#LatestComments .CommentContainer').jScrollPane();
}
});

Again, big thanks to the IntenseDebate team for doing this. See below on how it looks now, or shoot, just visit http://www.newdgamez.com to see it in action.

{ 0 comments }

Today I’m officially throwing in the towel on the Apple iPhone 3GS. I know, I know, some people think I’m crazy. But I don’t. Now that the Nexus one is offered on the AT&T wireless network with 3G speeds, I couldn’t be happier. Yeah, it’s pricey, but folks, it’s work it.

iPhone 3GS, signing out!

{ 1 comment }

google-nexus-one

AT&T owners should hold out just a bit longer, if you’re deciding on purchasing a Nexus One phone. According to files submitted to the FCC, the Nexus One will soon support the 3G networks across North America. So don’t screw yourself, and be stuck on the edge network, hang in there folks!

Source

{ 0 comments }

Apparently, this has been out for awhile now. I’ve always used PeerGuardian PG2 when downloading torrent. But ever since I updated to Windows 7, 64 bit, I found you have to run a tweak, for the OS to load the un-signed driver. We’ll, not any more folks.

Statement from Phoenixlabs.org:

PeerGuardian 2 users should check out PeerBlock, which just released version 1.0. It is a continuation from where PeerGuardian 2 development left off, with many bug fixes and support for Windows Vista and Windows 7.

So forget PeerGuardian 2, and start using PeerBlock 1.0.

{ 0 comments }

Recaptcha

With the introduction of the ReCaptcha plugin in Phpbb 3.0.6, you not only have the ability to use this outstanding captcha service to stop spam, but you can also adjust some parameters, to change how it’s looks.

Let’s get started.

First, let’s assume you’re using the Prosilver template with Phpbb 3.0.6. First, you wan’t to open up the following file in your favorite text editor. This file is in /prosilver/template

captcha_recaptcha.html [Read More]

{ 0 comments }

If you have absolutely no idea on what Google Chrome OS is, watch the video above.

{ 0 comments }