Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2013, 08:26 AM
Hwona's Avatar
Hwona Hwona is offline
Member
 
Join Date: Mar 2013
Posts: 620
Gender: Female
Credits: 48,746
Hwona is on a distinguished road
Default 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? :)
Reply With Quote
  #2  
Old 07-16-2013, 11:01 AM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,856
Infernette is on a distinguished road
Default

{$this->adopt->aid} is what you need. ^^
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #3  
Old 07-16-2013, 11:40 AM
Hwona's Avatar
Hwona Hwona is offline
Member
 
Join Date: Mar 2013
Posts: 620
Gender: Female
Credits: 48,746
Hwona is on a distinguished road
Default Re

Thanks! So I just plug this thing into the link? >^.^<
Reply With Quote
  #4  
Old 07-16-2013, 11:44 AM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,856
Infernette is on a distinguished road
Default

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.<
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #5  
Old 07-16-2013, 12:01 PM
Hwona's Avatar
Hwona Hwona is offline
Member
 
Join Date: Mar 2013
Posts: 620
Gender: Female
Credits: 48,746
Hwona is on a distinguished road
Default

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
Reply With Quote
  #6  
Old 07-16-2013, 12:05 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 332,975
Hall of Famer is on a distinguished road
Default

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.
Reply With Quote
  #7  
Old 07-16-2013, 12:15 PM
Hwona's Avatar
Hwona Hwona is offline
Member
 
Join Date: Mar 2013
Posts: 620
Gender: Female
Credits: 48,746
Hwona is on a distinguished road
Default

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.
Reply With Quote
  #8  
Old 07-16-2013, 01:43 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,856
Infernette is on a distinguished road
Default

Quote:
Originally Posted by Wallie987 View Post
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?)
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #9  
Old 07-16-2013, 02:20 PM
Hwona's Avatar
Hwona Hwona is offline
Member
 
Join Date: Mar 2013
Posts: 620
Gender: Female
Credits: 48,746
Hwona is on a distinguished road
Default

Quote:
Originally Posted by Infernette View Post
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?)
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 by Hwona; 07-16-2013 at 02:41 PM.
Reply With Quote
  #10  
Old 07-16-2013, 02:47 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,856
Infernette is on a distinguished road
Default

Quote:
Originally Posted by Wallie987 View Post
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.
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT -5. The time now is 02:25 AM.

Currently Active Users: 9598 (0 members and 9598 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636