Adding a link back to an adoptable's stats

Forum
Last Post
Threads / Messages

Hwona

Member
Member
Joined
Mar 1, 2013
Messages
620
Points
0
Mysidian Dollar
31,589
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? :)
 
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... >.<
 
Last edited:
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

Yeah, I normally don't go through the lang file. In the php file it'd work, I have done something similar. I don't use the styles either (would you believe me if I told you I spent 2 hours trying to figure out how to align something?) :coloness:
 
Yeah, I normally don't go through the lang file. In the php file it'd work, I have done something similar. I don't use the styles either (would you believe me if I told you I spent 2 hours trying to figure out how to align something?) :coloness:

Well, you have a really amazing site so sorry, but no, I don't believe you. XP

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:
Well, you have a really amazing site so sorry, but no, I don't believe you. XP

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);

It needs to be a regular dash not a equals sign, methinks.
 
Re

Ok, doesn't work with dashes either. o_O

This is the closest I've gotten:
$pagelink = <html><a href="http://caterpillarcave.x10.mx/levelup/stats/<?php{$this->adopt->aid}?>" target="_self" title="" style="font-size:16;color:black;font-family:;text-decoration:none;">Click here to view this adoptable</a></html>
 
Well you better use the GUI API rather than embedding PHP code inside HTML. The code you posted above clearly aint working 'cause you are trying to assign a string variable $pagelink, but its not a string.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,130
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top