#1
|
||||
|
||||
My Adopts Page
Does anyone know how to edit the TCells in the myadoptsview.php file? I am attempting to make it so that your adoptables show up side by side (maybe more than 2 in a row if I can find out a way to auto size them smaller). But I have been trying to edit them for 4 hours now and I am officially lost... I have managed to get it down to where it just shows their image but I don't want that... I want it to also show their gender, their total clicks and their name. So this is what it looks like so far:
Anyway, what I want now is for it to appear in this format: IMAGE NAME GENDER TOTAL CLICKS And for that to continue along the whole page and then go down and start a new row once it reaches the end of the wrapper. Basically, I want it to look like the daycare. I have been looking at the daycare file and attempting to copy across similar commands but it isn't working as I don't think it is compatible if I just change stuff >.< So... it's irritating me now. And I didn't want to ask for help as I want to learn how to do stuff myself now, but without a teacher here to tell me what to do and show me at the same time, learning is going to be VERY hard.. but I will have to just try and find some books or something when I can and see if they help me. But for now, can anyone help me? ^_^ Thank you.. |
#2
|
||||
|
||||
Well, when you are new to something, you will need people's help in some way or another (directly asking questions or reading guides made by others) to go through the initial learning process. So don't feel bad for asking questions
Alright, when we want to do something, we should write down the process. It will make it easier to translate into coding. 1) We take all the adoptables owned by the person 2) We set a limit of how many adoptables will be displayed per row 3) With the number of adoptables (for example, 30) and the limit (for example, 5), we can get the number of rows our table will have (30/5 = 6) 5) To go through all rows, we need a for() cycle. 6) We need to display 5 adoptables per row, so we make an internal for() cycle PHP Code:
__________________
asp.net stole my soul. |
#3
|
||||
|
||||
Thank you. I guess it just get's frustrating not having anyone physically being here to teach me and so I get a bit frustrated when I don't get something XD Do you know how to change the line:
PHP Code:
PHP Code:
|
#4
|
||||
|
||||
Ah, I forgot about that! Sorry!
PHP Code:
__________________
asp.net stole my soul. |
#5
|
||||
|
||||
Thanks! It worked! XD
|
#6
|
||||
|
||||
Do you know how to make it so that the genders appear as 'Female' and 'Male' not 'f' and 'm'? I tried editing the array in the deep down core and that works, but stops everything recognising them as male and female (basically breeding doesn't work XD) because I would need to edit everything and anything that specifies their genders. When I put them back to 'm' and 'f' in the table, the adoptables showed back up as available.. and then promptly banned me for modifying the genders XD So I put the files back to normal, but would like to know how to make the gender appear as words?
Could you do a command where it gets the gender, senses whether it is 'f' or 'm' and then inputs Female or Male instead of the letter? (Just for the word on the adopt page, really) Thanks~ |
#7
|
||||
|
||||
If this is doing what I think it's doing, then it's something I had plans for over break, yay~ headstart!
As for gender, try this: PHP Code:
PHP Code:
PHP Code:
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#8
|
||||
|
||||
No, it doesn't quite work. It get's rid of the m and f but's replaces it with nothing. It just shows 'Gender:'
This is what I have: PHP Code:
|
#9
|
||||
|
||||
Use $gender. Not $Gender.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#10
|
||||
|
||||
Oh! XD Alright XD Yes, thank you, it worked XD
Silly mistake :P Thanks XD |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Placing descriptions on the My Adopts page | Vaporman87 | Questions and Supports | 7 | 02-21-2014 02:02 PM |
Pagination/ My Adopts Page | Missy Master | Suggestions and Feature Requests | 13 | 01-23-2011 08:37 PM |
Neater Adopts Page | LilPixie | Questions and Supports | 0 | 09-06-2009 10:14 PM |
My Adopts Page | Seapyramid | Addons/Mods Graveyard | 8 | 05-02-2009 03:04 PM |
What's New? |
What's Hot? |
What's Popular? |