![]() |
|
![]() |
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. |
![]() |
|
Thread Tools |
#1
|
||||
|
||||
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)
__________________
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 15:41. |
#2
|
||||
|
||||
On both pages I see some HTML code on top.
|
#3
|
||||
|
||||
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 |
#4
|
||||
|
||||
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?
|
#5
|
||||
|
||||
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 |
#7
|
||||
|
||||
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 |
#8
|
||||
|
||||
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 |
#9
|
||||
|
||||
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 13:14. |
#10
|
||||
|
||||
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 |
![]() |
Thread Tools | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
LBA 2 help needed | Unregistered | First aid | 2 | 2006-02-13 22:28 |
A little help needed :) | Darkflame | The Relentless Movie project | 16 | 2006-01-28 21:27 |
Help needed!! | zaib88 | General | 2 | 2005-06-17 16:04 |
PHP help needed | morshem | Off topic | 3 | 2005-01-31 20:40 |
Hello..help needed <^.^> | Rabbibunny052 | LBA DM | 7 | 2002-10-09 18:30 |