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 04-09-2012, 11:05 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,373
SilverDragonTears is on a distinguished road
Default Joining Tables

Yes I changed $pet to $row

PHP Code:
$row $adopts->join("adoptables""adoptables.type = owned_adoptables.type")->select("owned_adoptables", array(), constant("PREFIX")."owned_adoptables.aid = '{$aid}'")->fetchObject();  


if(
$row->currentlevel == '6') {
$article_content .="<p align='justify'>{$row->adultdescript}";
}else if(
$row->currentlevel == '5') {
$article_content .="<p align='justify'>{$row->hatchmdescript}";
}else if(
$row->currentlevel == '4') {
$article_content .="<p align='justify'>{$row->hatchdescript}";
}else if(
$row->currentlevel <= '3') {
$article_content .="<p align='justify'>{$row->description}";

__________________

Check out SilvaTales
Reply With Quote
  #2  
Old 04-09-2012, 11:24 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: 333,750
Hall of Famer is on a distinguished road
Default

Well the problem may be with the $aid in the where clause. As I said before, this was just a rough example. It assumes that your adoptables id are stored in variable $aid, if the variable name is not $aid, or that you aint using adoptables id to fetch information, you will need to modify the where clause.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 04-09-2012, 11:26 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,373
SilverDragonTears is on a distinguished road
Default

What should I change it to? I'm lost about it..

Edit: I don't give myself enough credit...
Code:
constant("PREFIX")."owned_adoptables.aid = '{$id}'")
That worked. I have another issue... Should I make a new thread? Dragons won't show up in siggies
__________________

Check out SilvaTales

Last edited by SilverDragonTears; 04-09-2012 at 11:29 PM.
Reply With Quote
  #4  
Old 04-09-2012, 11:34 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: 333,750
Hall of Famer is on a distinguished road
Default

Oh dragons wont show up in siggy? The same adoptables id problem? Check if you get rid of is_numeric() from every php page. XD
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 04-09-2012, 11:36 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,373
SilverDragonTears is on a distinguished road
Default

Don't I just need to make sure it's not in siggy.php? Which I did...
__________________

Check out SilvaTales
Reply With Quote
  #6  
Old 04-09-2012, 11:55 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: 333,750
Hall of Famer is on a distinguished road
Default

I do not have this problem from the demo site, nor do I have trouble using bbcodes from TOD.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #7  
Old 04-09-2012, 11:59 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,373
SilverDragonTears is on a distinguished road
Default

Test:



What on earth....
__________________

Check out SilvaTales
Reply With Quote
  #8  
Old 04-10-2012, 12:04 AM
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: 333,750
Hall of Famer is on a distinguished road
Default

So you see? Its not a problem at all. XD
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #9  
Old 04-10-2012, 12:12 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,373
SilverDragonTears is on a distinguished road
Default

LoL... I must be tired!
__________________

Check out SilvaTales
Reply With Quote
  #10  
Old 04-10-2012, 12:20 AM
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: 333,750
Hall of Famer is on a distinguished road
Default

Alright guess thats it, I understand the frustration of having to start over when you already have a community with 500 members and 2500 posts. You must be overexhausted, take a rest now if you have to. XD
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
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
New newbie joining in destrovel Newcomer Center 2 09-14-2014 11:18 AM
Shop Tables SilverDragonTears Questions and Supports 1 02-02-2013 03:26 PM
More fetching from tables help SilverDragonTears Questions and Supports 4 04-30-2012 03:00 PM
Tables StarGirl Questions and Supports 3 04-26-2012 02:57 PM
Joining Usergroups Cindykt Questions and Supports 1 08-19-2011 09:25 PM


All times are GMT -5. The time now is 08:44 AM.

Currently Active Users: 9673 (0 members and 9673 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