![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
![]()
Hello, I was thinking about adding a link back to an adoptable's stats from the "click" page, but I can't figure out how to insert the adoptable's id into the "stat" page url. Can someone help me? :)
|
#2
|
|||
|
|||
![]()
{$this->adopt->aid} is what you need. ^^
|
#3
|
||||
|
||||
![]()
Thanks! So I just plug this thing into the link? >^.^<
|
#4
|
|||
|
|||
![]()
Yep! If you want to get anything else on the adopt, replacing aid also works. If you get an error about it being a private thing, tell me and what file you're editing so I can tell you how to remove that (so you don't have to add a column, or you can add one).
>Slow coding day today, all I need to do is fix up the profile page to my likes and add in a slot buying page, which the slots thing is done.< |
#5
|
||||
|
||||
![]()
Doesn't work - probably because I'm editing the lang levelup file but, is this how it's suppossed to be done?:
<a href="http://caterpillarcave.x10.mx/levelup/stats/{$this->adopt->aid}" target="_self" title="" style="font-size:16;color:black;font-family:;text-decoration:none;">Click here to view this adoptable</a> The php is smack in the middle of the link. O.o |
#6
|
||||
|
||||
![]()
Well Id say using the GUI component Link object is the better idea, since you never know where the relative url will resolve to.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#7
|
||||
|
||||
![]()
Oh, but what's that? I don't have any experience with PHP, so I'm kind of trying to figure out what that is... >.<
Last edited by Hwona; 07-16-2013 at 12:38 PM. |
#8
|
|||
|
|||
![]() Quote:
![]() |
#9
|
||||
|
||||
![]() Quote:
So let me try it in the php file... Edit: Uh oh - broke the page! :L Erm, what's supposed to go around the link? I've been trying to put it in like this: $pagelink = <a href="http://caterpillarcave.x10.mx/levelup/stats/{$this->adopt->aid}" target="_self" title="" style="font-size:16;color:black;font-family:;text-decoration:none;">Click here to view this adoptable</a> $document => addlangvar ($message, $pagelink); Last edited by Hwona; 07-16-2013 at 02:41 PM. |
#10
|
|||
|
|||
![]() Quote:
|
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
alright back here again | MeinKat | Questions and Supports | 0 | 06-19-2015 02:07 AM |
Adoptable Stats | Abronsyth | Suggestions and Feature Requests | 2 | 09-10-2011 02:28 PM |
Adding adoptable >.< | blondbananamix | Questions and Supports | 12 | 03-20-2011 05:29 PM |
I am back ! | PokePets | Newcomer Center | 5 | 01-16-2011 10:15 AM |
What's New? |
What's Hot? |
What's Popular? |