![]() |
Adding a link back to an adoptable's stats
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? :)
|
{$this->adopt->aid} is what you need. ^^
|
Re
Thanks! So I just plug this thing into the link? >^.^<
|
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.< |
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 |
Well Id say using the GUI component Link object is the better idea, since you never know where the relative url will resolve to.
|
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... >.<
|
Quote:
|
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); |
Quote:
|
All times are GMT -5. The time now is 05:39 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.