Transcendent Studios
« Making a mini profile? »

Welcome Guest. Please Login or Register.
May 22, 2013, 9:04pm



Exist To Create

Transcendent Studios :: Coding Corner :: Coding Chat :: Making a mini profile?
Page 1 of 5 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]
 AuthorTopic: Making a mini profile? (Read 527 times)
iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

No Cookie For Guessing Hobby.



Joined: Feb 2009
Gender: Male
Posts: 543
Karma: 0
 Making a mini profile?
« Thread Started on Mar 15, 2009, 7:29am »

How hard is it to make a custom mini profile?
I've been learning javascript for a little while, and I really want to do something forum related. I just need an idea of how tricky it is, then I'll decide whether to have a go.

Thanks!
Link to Post - Back to Top  IP: Logged

[image]
Blind
Administrator
*****
Head Coder[M:0]
member is offline

[avatar]

Paper Wings


[homepage]

Joined: Jan 2009
Gender: Male
Posts: 1,356
Karma: 1
 Re: Making a mini profile?
« Reply #1 on Mar 15, 2009, 7:38am »

All coding can be difficult.
If this is going to be your first major code, i would suggest something a slight bit smaller, but if you really are intent on creating a mini profile i suggest studying mini profile codes before actually starting on your own.
This will help you understand the elements in a mini profile and what you will need to make one.
Link to Post - Back to Top  IP: Logged

iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

No Cookie For Guessing Hobby.



Joined: Feb 2009
Gender: Male
Posts: 543
Karma: 0
 Re: Making a mini profile?
« Reply #2 on Mar 15, 2009, 8:00am »

Okay. I'm looking at the one you have here, and it looks complicated. For instance:
for(a=0;a<TsMp.length;a++){
I have no idea what that does etc.
I think I'd have to learn a lot more before making a decent code that works.
Link to Post - Back to Top  IP: Logged

[image]
Blind
Administrator
*****
Head Coder[M:0]
member is offline

[avatar]

Paper Wings


[homepage]

Joined: Jan 2009
Gender: Male
Posts: 1,356
Karma: 1
 Re: Making a mini profile?
« Reply #3 on Mar 15, 2009, 8:37am »

The easiest way too learn is to base your code on someone elses, but at the same time test things out on a test board to see what happens.
Link to Post - Back to Top  IP: Logged

iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

No Cookie For Guessing Hobby.



Joined: Feb 2009
Gender: Male
Posts: 543
Karma: 0
 Re: Making a mini profile?
« Reply #4 on Mar 15, 2009, 8:59am »

*steals tS mini profile code*
xP
Not really. I'll grab one from PBS to have a go with.
Link to Post - Back to Top  IP: Logged

[image]
Blind
Administrator
*****
Head Coder[M:0]
member is offline

[avatar]

Paper Wings


[homepage]

Joined: Jan 2009
Gender: Male
Posts: 1,356
Karma: 1
 Re: Making a mini profile?
« Reply #5 on Mar 15, 2009, 9:02am »

:P
Yeah just study it, look through and see what each line does, then start writing your own using the techniques you learned from the code.
Link to Post - Back to Top  IP: Logged

iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

No Cookie For Guessing Hobby.



Joined: Feb 2009
Gender: Male
Posts: 543
Karma: 0
 Re: Making a mini profile?
« Reply #6 on Mar 15, 2009, 9:25am »


Quote:
<script>
// Transcendent Studio iDesign's Mini Profile
// Coded by Jye iDesign
// Only Not to be used on Transcendent Studios
// http://tsstudios.proboards.com <Ignore this line plz

I made a start on my code ^_^
:P
« Last Edit: Mar 15, 2009, 9:26am by iDesign »Link to Post - Back to Top  IP: Logged

[image]
yilduz
Coding Moderator
*****
[M:15]
member is offline



[msn] [aim]
[homepage]

Joined: Feb 2009
Gender: Male
Posts: 234
Location: index.php
Karma: 0
 Re: Making a mini profile?
« Reply #7 on Mar 15, 2009, 12:25pm »


Mar 15, 2009, 7:38am, Blind wrote:
If this is going to be your first major code, i would suggest something a slight bit smaller

As a coder, I don't completely agree with this. Everyone has always told me the same thing, but I rarely listen because I've found the best way for me to learn is to tackle a massive project. It helps me learn many aspects of the language in a lot of instances. I've just never really believed a person can learn a whole lot by writing a code only six lines long. Everyone learns differently, though.


Mar 15, 2009, 8:00am, iDesign wrote:
Okay. I'm looking at the one you have here, and it looks complicated. For instance:
for(a=0;a<TsMp.length;a++){
I have no idea what that does etc.
I think I'd have to learn a lot more before making a decent code that works.

That's called a "for loop." There are different kinds of loops in coding. This loop has three parts separated by semicolons.
The first part of this one is starting off with a variable named "a" and saying "a" is equal to 0. The second part says as long as "a" is less than the length of "TsMp," do whatever is in the loop. The third part says increase "a" by 1. The actual purpose of the loop is in the curly bracket things "{" and "}" which you cut off. Let's just say the part between the brackets is document.write('poop');

Now let's figure out what it does.

for(a=0;a<TsMp.length;a++){
document.write('poop');
}

It comes to the for part, a is 0. a is less than the length of TsMp, so let's add 1 to a and do what's in the loop. It writes "poop" onto the page. Now it's at the end of the loop, but since it's a loop, it goes back to the beginning. Now a is 1, though. It's still less than 5, so it adds 1 to a and does the loop. It writes "poop" to the page again. It'll keep doing that until a isn't less than 5 anymore. Once that happens, it skips past the loop and keeps going down the page to write the rest of the code. What the loop ended up doing was writing "pooppooppooppooppoop" to the page.

I know I'm not the best person in the world at describing things, but do you have any questions?
« Last Edit: Mar 15, 2009, 12:26pm by yilduz »Link to Post - Back to Top  IP: Logged


[image]


I am PHP's Einstein
$E = $m * pow($c,2);
iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

No Cookie For Guessing Hobby.



Joined: Feb 2009
Gender: Male
Posts: 543
Karma: 0
 Re: Making a mini profile?
« Reply #8 on Mar 15, 2009, 12:30pm »

I see, so TsMp is just a variable?
Link to Post - Back to Top  IP: Logged

[image]
yilduz
Coding Moderator
*****
[M:15]
member is offline



[msn] [aim]
[homepage]

Joined: Feb 2009
Gender: Male
Posts: 234
Location: index.php
Karma: 0
 Re: Making a mini profile?
« Reply #9 on Mar 15, 2009, 3:53pm »


Mar 15, 2009, 12:30pm, iDesign wrote:
I see, so TsMp is just a variable?

TsMp is a variable that was defined at some other point in the code before the loop.
Link to Post - Back to Top  IP: Logged


[image]


I am PHP's Einstein
$E = $m * pow($c,2);
xcessive
Administrator
*****
[M:0]
member is offline

[avatar]



Joined: Jan 2009
Gender: Male
Posts: 1,171
Location: around
Karma: 0
 Re: Making a mini profile?
« Reply #10 on Mar 15, 2009, 5:50pm »

I think its about time we made yilduz a coding mod....
Link to Post - Back to Top  IP: Logged

[image]


iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

No Cookie For Guessing Hobby.



Joined: Feb 2009
Gender: Male
Posts: 543
Karma: 0
 Re: Making a mini profile?
« Reply #11 on Mar 15, 2009, 6:01pm »

That does seem like a fairly good idea yes :P
Link to Post - Back to Top  IP: Logged

[image]
Blind
Administrator
*****
Head Coder[M:0]
member is offline

[avatar]

Paper Wings


[homepage]

Joined: Jan 2009
Gender: Male
Posts: 1,356
Karma: 1
 Re: Making a mini profile?
« Reply #12 on Mar 15, 2009, 7:36pm »


Mar 15, 2009, 12:25pm, yilduz wrote:

Mar 15, 2009, 7:38am, Blind wrote:
If this is going to be your first major code, i would suggest something a slight bit smaller

As a coder, I don't completely agree with this. Everyone has always told me the same thing, but I rarely listen because I've found the best way for me to learn is to tackle a massive project. It helps me learn many aspects of the language in a lot of instances. I've just never really believed a person can learn a whole lot by writing a code only six lines long. Everyone learns differently, though.


By smaller code i meant something that is not as complex. I do agree with you there but i find that something like a board modification is a bit easier and at least starting with that you can understand the functions used in proboards coding along with how to grab certain proboard elements.


Quote:
I see, so TsMp is just a variable?


Yes TsMp is a variable that i created at the beginning of the code, off course it stands for "Transcendent Studios Mini profile".
Your variable names can be whatever you like really.
It is the main variable of the entire code, which is the same major variable for the majority of the proboards codes.
"document.getElementsByTagName("TD");"

That certain variable grabs an array of elements that have the tag name "TD", which is a table cell.
Link to Post - Back to Top  IP: Logged

iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

No Cookie For Guessing Hobby.



Joined: Feb 2009
Gender: Male
Posts: 543
Karma: 0
 Re: Making a mini profile?
« Reply #13 on Mar 15, 2009, 7:41pm »

Okay. I won't do a mini profile yet then.
So, board mod.
document.getElementsByTagName("TD");
Surely that gets every item with the tag "TD" in the whole document?
Link to Post - Back to Top  IP: Logged

[image]
iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

No Cookie For Guessing Hobby.



Joined: Feb 2009
Gender: Male
Posts: 543
Karma: 0
 Re: Making a mini profile?
« Reply #14 on Mar 15, 2009, 8:03pm »

On another note, I actually completely understand how to make a board mod ^_^
I will ask here if I need help if that's alright.
Link to Post - Back to Top  IP: Logged

[image]
Page 1 of 5 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile