Log in

View Full Version : Html/PHP cross over



Damion
10-12-2007, 07:20 PM
http://www.wiitalk.co.uk/forums/wiitag.php
like that one can some one link to me where i would find a script like that.PLEASE HELP ME

djr33
10-12-2007, 10:06 PM
Very complex.

You will need to use PHP's GD library (or a similar server side image-generation-capable language) to layer the background and the letters, as well as setup a font for those letters, or maybe position image layers [for each letter] over the background.

It's possible, but a big project.

Damion
10-12-2007, 10:20 PM
huh explain please also i just want to make it so that when the tags are created they link to my site not to wiitag but please make a tag using that and u will see what i mean

djr33
10-12-2007, 10:34 PM
Using their page to create an image then linking to your site would be against their TOS, not something supported on this forum.

However, all you do is change the URL... but making the page generate that or creating some sort of shell page to generate it would be difficult.

I did try making an image, and it is just what I said. You choose parameters, then the data is sent to a PHP [or similar] script to generate the images. The text is a quick afterthought, just echo '<tag stuff="whatever">text';.

Damion
10-12-2007, 10:38 PM
Using their page to create an image then linking to your site would be against their TOS, not something supported on this forum.

However, all you do is change the URL... but making the page generate that or creating some sort of shell page to generate it would be difficult.

I did try making an image, and it is just what I said. You choose parameters, then the data is sent to a PHP [or similar] script to generate the images. The text is a quick afterthought, just echo '<tag stuff="whatever">text';.

U lost me dude can u just post the whole edited html and also didn't understand a word of that also i am new at this programing thing so please bear with me

djr33
10-12-2007, 10:40 PM
Using their page to create an image then linking to your site would be against their TOS, not something supported on this forum.
This is a place for learning, and you want something hard. Being new is fine-- we all were at some point, but you gotta start small.

I'm really not sure how else to explain this.

The code takes parameters from the form, like the number, and the style.

Then it generates an image from that.

What is unclear?

What I have mentioned, such as the PHP GD library, probably WON'T be clear and it is complex, but it's just the name for something that will generate images.
http://www.php.net/manual/en/ref.image.php

Damion
10-12-2007, 10:47 PM
This is a place for learning, and you want something hard. Being new is fine-- we all were at some point, but you gotta start small.

I'm really not sure how else to explain this.

The code takes parameters from the form, like the number, and the style.

Then it generates an image from that.

What is unclear?

What I have mentioned, such as the PHP GD library, probably WON'T be clear and it is complex, but it's just the name for something that will generate images.
http://www.php.net/manual/en/ref.image.php

ok but how would i go about doing it though i would post the html but it won't let me i would pm u but it won't let me

djr33
10-12-2007, 10:51 PM
There's no need to post any HTML.

The point is, this IS NOT html.

The image is GENERATED by PHP. The end.

HTML will display the information and create the form that will send info to the PHP script to make the image, but that is all.

Damion
10-12-2007, 10:54 PM
oh ok so what should i do then if it doesn't involve html but involves php better yet email me wiiworld@hotmail.com explain there

djr33
10-12-2007, 10:59 PM
What?

Is that your site or is that one you want to copy?

I'm very confused.

PHP is used to make the image. HTML is used to display the image and the generating form.

Email is not the best method for this, nor is PM. Post and post clearly, so everyone can participate in learning from this and finding a solution.

Damion
10-13-2007, 12:20 AM
What?

Is that your site or is that one you want to copy?

I'm very confused.

PHP is used to make the image. HTML is used to display the image and the generating form.

Email is not the best method for this, nor is PM. Post and post clearly, so everyone can participate in learning from this and finding a solution.
ok and this is my site http://wiiworld.engpol-community.org/index.php i want to add a tag creator to it and that is why i am asking now i will post a seperate thread showing what i need exactly ok in the other section ok please be very very descriptive when answering said post.

Damion
10-13-2007, 12:29 AM
Ok here is my site url http://wiiworld.engpol-community.org/index.php it is a mybb forum.
Now i want to add a tag creator to my site like this http://www.wiitag.net/index.php?page=tags or this http://www.wiitalk.co.uk/forums/wiitag.php
Now i have 2 problems
1.I don't know how to make it so its tags it generates link to my site when created.
2.I need it to be explained to me(every detail) so i can do it later when i have more experince.
PLEASE HELP ME

Damion
10-13-2007, 03:32 PM
So any ideas?

djr33
10-13-2007, 10:32 PM
You are missing some of the basic things going on here. Creating the links to be pasted is incredibly easy with a bit of knowledge about PHP. That's not a problem.
<?php echo '<a href="'.$url'."><img src="'.$img.'"></a>'; ?>

However, you will first need to set the $url and $img variables, and CREATE THE IMAGE. That's the hard part.

Why don't you start with a basic PHP tutorial to begin working with it.

http://php-mysql-tutorial.com is good, but gets into databases after the first few lessons (though this may help you too).
http://www.w3schools.com/php/default.asp General tutorial.
http://us.php.net/tut.php Official tutorial

Even if I gave you the PHP code to generate a tag like that, you'd need to know enough PHP to place it somewhere.

Now, as for making images, the documentation isn't very clear, but here's a link to all of the functions available:
http://www.php.net/manual/en/ref.image.php

What you want isn't something basic, so you need to learn some more advanced coding. That's all there is to it.
You can just decide you want a very complex site then not know how to make the code... gotta decide. Learn/have it? Don't learn/don't have it?


With a thread title like "html/php crossover", you clearly don't know how php works, because that is exactly how it is used 99% of the time. I don't mean to be rude or anything, but there's no other way for me to explain it.

And, not to sound too discouraging, but you should realize that even though I know both PHP (including the GD library) and html well, it would take me a day or two to write such a complex script. It WILL take you longer, but it's worth it if you want it on your site.

I'm happy to answer specific questions, but right now that won't help because you need to understand the fundamentals of using PHP.

For example, $img = imagecreatefromjpeg('myimg.jpg'); is something you will probably need to use. But for now, it probably looks like nonsense-- and that's ok, but my point is that even if I gave you parts of the code, you'd still need to know how/where to use them.

Damion
10-14-2007, 12:19 AM
You are missing some of the basic things going on here. Creating the links to be pasted is incredibly easy with a bit of knowledge about PHP. That's not a problem.
<?php echo '<a href="'.$url'."><img src="'.$img.'"></a>'; ?>

However, you will first need to set the $url and $img variables, and CREATE THE IMAGE. That's the hard part.

Why don't you start with a basic PHP tutorial to begin working with it.

http://php-mysql-tutorial.com is good, but gets into databases after the first few lessons (though this may help you too).
http://www.w3schools.com/php/default.asp General tutorial.
http://us.php.net/tut.php Official tutorial

Even if I gave you the PHP code to generate a tag like that, you'd need to know enough PHP to place it somewhere.

Now, as for making images, the documentation isn't very clear, but here's a link to all of the functions available:
http://www.php.net/manual/en/ref.image.php

What you want isn't something basic, so you need to learn some more advanced coding. That's all there is to it.
You can just decide you want a very complex site then not know how to make the code... gotta decide. Learn/have it? Don't learn/don't have it?


With a thread title like "html/php crossover", you clearly don't know how php works, because that is exactly how it is used 99% of the time. I don't mean to be rude or anything, but there's no other way for me to explain it.

And, not to sound too discouraging, but you should realize that even though I know both PHP (including the GD library) and html well, it would take me a day or two to write such a complex script. It WILL take you longer, but it's worth it if you want it on your site.

I'm happy to answer specific questions, but right now that won't help because you need to understand the fundamentals of using PHP.

For example, $img = imagecreatefromjpeg('myimg.jpg'); is something you will probably need to use. But for now, it probably looks like nonsense-- and that's ok, but my point is that even if I gave you parts of the code, you'd still need to know how/where to use them.

never mind it is hopeless i quit

thetestingsite
10-14-2007, 12:53 AM
It's not hopeless, you just need to grasp the basics of PHP scripting in order to achieve what you want. Look through the tutorials posted above and try out the examples until you get a grasp of it. If you are just looking for us to give you some code to work, then you are pretty much out of luck. You could probably find either a premade script out there, or pay someone to custome make one for you.

Hope this helps.

Damion
10-14-2007, 06:24 PM
Dude this is all greek to me dude i will never get this i have failed my forum team and i will never be able to make my own tag generator i should just give up also i looked at those tutorials i didn't get any of it also i am on the wii while doing this

Damion
10-14-2007, 08:13 PM
i Get It Now Dude but I Still Need The Codes So Can U Give Them To Me PLEASE AND THANK U

djr33
10-14-2007, 11:00 PM
This is getting ridiculous.

Look up tutorials.
Learn PHP
Learn the fundamentals of web design.

If you want something, work for it. Not our problem if you're lazy.

Everyone here who does this learned at some point and it's not some unattainable mystery. Just start doing tutorials and be patient.

Plus, yeah, get on a computer. Your Wii skills won't help here :p

Damion
10-15-2007, 01:00 AM
I get it though i just don't have the software to code

djr33
10-15-2007, 01:01 AM
No special software is required to code. In fact, many people use notepad.
You do need a server, but if you have a forum, you probably have that (or could easily upgrade).

Damion
10-15-2007, 12:18 PM
Oh cool u should have said that earlier but i got no computer

djr33
10-15-2007, 06:06 PM
I didn't say you did, but you do need to learn the programming languages.

Well... I'd suggest getting a computer. Writing code is about the least processor intensive thing that can be done (right down there with typing things for school-- speaking of which, how do you write papers or letters, whatever your needs may be?).
Anything will do. Something for free, from a friend, perhaps.

Or enjoy typing lots of code with the strange Wii inputs. Up to you.

But, really, if you want to be a webmaster, you should have, y'know, a computer :p

Damion
10-15-2007, 09:22 PM
How would i get one

djr33
10-15-2007, 09:26 PM
Put down the Wii controller, grab a newspaper, and find a job.
C'mon.

Though there is no reason you need to give up, I think it's time if you're not even going to try basic problem solving tactics.

Damion
10-15-2007, 10:38 PM
I'm 13

djr33
10-15-2007, 10:56 PM
Parents? Library? Friend's house? School?
Or look in the attic.
I'm serious about this taking no processing power.
Any computer at all will do.
Xmas is coming up too (or whatever holiday you celebrate this time of year).

Damion
10-15-2007, 10:59 PM
oh well ok but those u listed don't exist for me also at school i can't

tech_support
10-16-2007, 06:23 AM
Hack your Wii to turn into a computer.

Please note that this may be illegal, and I'm no way responsible of your actions. It's your Wii, not mine.

Damion
10-16-2007, 12:18 PM
How???

tech_support
10-17-2007, 06:32 AM
1. Buy a wireless bluetooth keyboard/mouse set.
2. Put your XP CD in.
3. Follow steps.

If you want to use your WiiRemote, then try downloading this (http://onakasuita.org/wii/index-e.html) driver.

Again, please note that this may be illegal, and I'm no way responsible of your actions. It's your Wii, not mine.

Damion
10-17-2007, 06:49 PM
Explain what it does

tech_support
10-18-2007, 07:35 AM
Explain what?

djr33
10-18-2007, 07:37 AM
A computer is a device that uses binary numerals to represent the data created from precreated determining parameters and the interpreted user input, and the resulting conditions created from the parsing thereof.

Damion
10-18-2007, 12:43 PM
Huh and explain how the link u gave me turns my wii into a computer

boogyman
10-18-2007, 01:43 PM
Huh and explain how the link u gave me turns my wii into a computer

djr was explaining how a computer "thinks"
it cannot read words, it can only read and understand 0 and 1 (on or off) these two numbers are arranged in sets (group) and depending on the positions of the 1's and 0's the computer will recognize some type of command, for each key that you hit on the keyboard there is a number of steps that are involved in reading / processing / printing that key on the screen or doing some other action.

I am sure you have heard the history of how computers used to take up entire warehouses right? well they still do, the warehouse is just alot smaller, and alot faster.



now the link that tech_support provided you was to a site that you download a driver (set of instructions) that tell the electronic device what to do and where to do it, basically the driver is the engine in the car, and the car is whatever device you are using to perform the action

Damion
10-18-2007, 10:13 PM
So it allows me to do stuff on the wii that i usually use the computer for?

djr33
10-18-2007, 11:39 PM
My response was entirely cynical.
At some point, you need to start figuring some things out, like... getting a computer. We can't really build one for you.

If you don't have access, I can be sympathetic, but if you want to be a webmaster, my sympathy won't help you. So... get creative and figure something out.

You are pretty young, so maybe you do just need to wait, as annoying as that might be.

If you do decide to get the Wii to run windows, good luck, though I'm not sure I'd recommend it because you won't know how to troubleshoot if something goes wrong and you don't want to end up with no computer and no Wii.

Tutorial, though it is quite obvious (not that you have done it yet):
Web design step 1:
Spend the next couple months finding and using a computer.
Step 2:
Start worrying about any details from there.

thetestingsite
10-19-2007, 12:10 AM
You can usually find computers at places like the Salvation Army, charities, used computer shops, etc; but until you can get a computer, I recommend waiting on learning web design/programming.

Hope this helps.

tech_support
10-19-2007, 06:39 AM
So it allows me to do stuff on the wii that i usually use the computer for?
Yes, but you'll lose the Wii.