Forums

Welcome Guest

Pages: 1
Quaddicted Portal
OneMadGypsyPostAugust 18, 2018, 05:54
Moderator
Posts: 392
Registered:
November 12, 2017, 00:13
Normal topicQuaddicted Portal

People were asking me if I could maybe be a mirror for quaddicted due to its lockout in Europe. Unfortunately, that would eat up way too much of my space. I started thinking... "what if I made a portal?". So I did. It pretty much works. There are a handful of issues but you can definitely browse the entire site.

I uploaded my portal here to test it and potentially share it and... well... my host is in Europe ::snort::. However, I still wanted to share my work so, here is a lil one minute vid. You'll notice as I browse the site everything happens after the "rest" var in the url. I never leave the portal. It won't get page images BUT, it does get image links. gypsy.com is just my little localhost.

I used a lot of crappy things to make this video. It lagged my browser and like the first 20 seconds are kinda blurry. Sorry. I'm not a video engineer. I just wanted to share my results.

[embed class="is-loading"]https://www.youtube.com/watch?v=u2NUDLPDhiM[/embed]

Here's the code. It's pretty bare. Aside from this I simply recreated the two folders with styles in them and downloaded the 2 header images.

jQuery(document).ready(function($)
{	//suppress every link and make new decisions
	$("a").click(function(e){
		e.preventDefault();
		
		var found;  
		var url	= $(this).attr("href");
		
		//fix locations 
		switch(true)
		{	case ((url.match(/html/i) !== null) && (url.match(//reviews//i) === null)):
				found = window.location.href.match(//reviews//i);	
				if(found !== null) url = '/reviews/'+url;	
				break;
			case ((url.match(/viewforum|viewtopic/i)!== null) && (url.match(//forum//i) === null)):
				found = window.location.href.match(//forum//i);	
				if(found !== null) url = '/forum/'+url;	
				break;
			case ((url.match(/?idx/i) !== null) && (url.match(///i) === null)):
				found = window.location.href.match(//start/i);	
				if(found !== null) url = '/start'+url;	
				break;
		}
		
		//go
		window.location.assign("portal.php?rest="+url);
	});
});
';
} else {								//assume it must be a page
	$homepage	= file_get_contents($loc);
	$inject		= '<script src="gypjs/jquery.min.js" type="text/javascript"></script><script src="gypjs/gypsy.js" type="text/javascript"></script></body>';
	$homepage	= preg_replace('/</body>/i', $inject, $homepage);
	echo $homepage;
} 
?>
Mr.BurnsPostAugust 18, 2018, 13:23
Insider
Posts: 54
Registered:
January 12, 2018, 09:03
Normal topicReply To: Quaddicted Portal

Nicely done MG. I must admit I was not aware of the lockout as it still appears to work fine in England but perhaps it's only blocked in some specific regions for some reason? Good job good sir!

Kind regards

Monty

Pages: 1
Page loaded in: 0.214 seconds.