Go Back   the Magicball Network > Forums > MBN Main Forums > LBA promotion forum
Buy LBA1/Relentless from GOG.com Buy LBA1/Relentless from DotEmu Buy LBA2/Twinsen's Odyssey from DotEmu Buy LBA2/Twinsen's Odyssey from GOG.com Buy Little big Adventure from GOG.com or DotEmu Buy Little big Adventure 2 from DotEmu or GOG.com

Welcome to the Magicball Network.

You are currently viewing our site as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

LBA promotion forum A forum to discuss, organise and create methods to promote the LBA games, as well as other works by their creators.

Reply
 
Thread Tools
  #1  
Old 2011-10-29, 21:35
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 23,836
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
Twinsunification of the Interweb! (php coders needed!)

One silly project I've bee working on today is this;

http://darkflame.co.uk/sharespace/te...p://google.com
http://darkflame.co.uk//sharespace/t...p://cubed3.com

The idea being when finnished that it will parse over a urls contents and add twinsen to any images on it before displaying.
It barely works at the moment, just a few sites.
I'm hoping people with php skills could help me improve/finnish it.

Maybe when its more working we can add a options page, and merely have Twinsen as one of the options.

The code is attached below, debugs welcome ;p

(I did originaly want to make this in javascript but quickly run up against cross-site permission issues)
Attached Files
File Type: php testtwinsunify.php‎ (5.8 KB, 128 views)
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff

Last edited by Darkflame; 2011-10-31 at 16:41.
Reply With Quote
  #2  
Old 2011-10-29, 21:40
morshem's Avatar
morshem morshem is offline
Magic level: Ice Ball
 
Join Date: Aug 2001
Location: Beʼer Sheva, Israel
Posts: 20,093
Send a message via MSN to morshem
On both pages I see some HTML code on top.
Reply With Quote
  #3  
Old 2011-10-29, 21:46
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 23,836
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
Thats just debug info (echo statements) easy to turn off, but I'm leaving it till the rest of the code is better.
At the moment it changes the layout of some pages, and stops some images loading. (cant work out why that is).

Basicly at the moment the code should do two things;

a) Turn all relative links on the page to absolute (as the domain is different now).

b) Look at the first image, convert it to a div with the image as the backdrop, and then set twinsens image ontop of it.

a doesnt seem to be working right on many pages, and b often mess's up the layout. Why I'm hoping for help with other coders to calaborate on this, as I think the result will be pretty fun.
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
  #4  
Old 2011-10-29, 23:13
Kitarii's Avatar
Kitarii Kitarii is offline
You what?!
 
Join Date: Jun 2004
Location: London, UK
Posts: 6,730
I don't understand, what's the point of this? Would every page to be affected have to be access through some kind of proxy?
Reply With Quote
  #5  
Old 2011-10-29, 23:29
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 23,836
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
The point is "fun", wouldnt it be funny to have Twinsen waving at the side of every picture on a website ? :P
It could also be used for premotion purpose's, as we could adjust the code to have a few different image overlays with LBA just being one option - hopefully the site could get online attention and thus become a sort of stealth advert.

And yes, it must go via a proxi page, as those links do. The PHP grabs the url of the page specified, downloads, and tries to add the new images ontop.
If it could be done in javascript it would be less server intensive and faster, but sadly I cant find a good way to do it.
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
  #6  
Old 2011-10-30, 01:03
Kitarii's Avatar
Kitarii Kitarii is offline
You what?!
 
Join Date: Jun 2004
Location: London, UK
Posts: 6,730
That's what I mean, I don't see how you're going to convince people to use this... It's kind of funny for a joke.

Twitter looks good.
Reply With Quote
  #7  
Old 2011-10-30, 01:41
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 23,836
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
Well, youd have a site that also, say, lets you insert Rick Ashely onto random pages (and replaces some text maybe...).
It could become popular via proxi.

Imagine a dropdown with a set of replacements and Twinsen is one of those options.
(purhapes with a link to Gog also somewhere on the page?)

Its still a half-formed idea, I admit, but if we can get it working I think it could be quite a fun way to share links too.
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
  #8  
Old 2011-10-30, 16:34
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 23,836
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
I improved it a bit, should work with more sites now without corrupting them so much.
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
  #9  
Old 2011-11-01, 14:02
Renesans's Avatar
Renesans Renesans is offline
Magic Level: Fire Ball
 
Join Date: Apr 2007
Location: Kecskemét, Hungary
Posts: 497
Maybe it could use GD library to insert Twinsen to the images instead of turning them to a div.

EDIT: I think I've got another idea. What if the script displayed Twinsen in the corner of every page (like vuvuzela-time.co.uk shows the vuvuzela) instead of the corner of the images?

Last edited by Renesans; 2011-11-01 at 14:14.
Reply With Quote
  #10  
Old 2011-11-01, 15:16
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 23,836
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
Corner of pages would be dead-easy by comparison, but not nearly as much fun imho :P

I have no expirence of "GD library" maybe that would be better.
Admitably its tricky to get Div's working universaly. At the moment I cant figure out why some sites (like IMDB) lose all their images
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LBA 2 help needed Unregistered First aid 2 2006-02-13 23:28
A little help needed :) Darkflame The Relentless Movie project 16 2006-01-28 22:27
Help needed!! zaib88 General 3 2005-06-17 17:20
PHP help needed morshem Off topic 3 2005-01-31 21:40
Hello..help needed <^.^> Rabbibunny052 LBA DM 7 2002-10-09 19:30


All times are GMT +2. The time now is 23:39.


News Feed
Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright ©2000 - 2019, the Magicball Network