Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.1.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=20)
-   -   Adoptable shop new version! [UPDATED!] (http://www.mysidiaadoptables.com/forum/showthread.php?t=1360)

mapleblade 03-27-2010 06:20 AM

RE: Adoptable shop new version! [UPDATED!]
 
is this from your new register.php?

if so youst add ,'' so ti would be:
PHP Code:

mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1','$email','3','1', '$date', '0','','','','','','')"); 


SieghartZeke 03-27-2010 07:47 AM

RE: Adoptable shop new version! [UPDATED!]
 
Yay!!!!! Now Work!!!
Ehm a other question, for show the total monay on the Sidebar??Like this:

Manage Character
"Your Money 450"[hr]
Ahh...and how change the money when you register?
"Like: You regesiter in the site and receive 1500 Coins"

mapleblade 03-27-2010 07:56 AM

RE: Adoptable shop new version! [UPDATED!]
 
where you did put ,'' change that to ,'1500' then, it puts 1500 coins ni then.[hr]
Oh and ill make an code dto msee your coins

SieghartZeke 03-27-2010 08:06 AM

RE: Adoptable shop new version! [UPDATED!]
 
Uhm...I Dont want touch the register code...or i make a disaster!!!

mapleblade 03-27-2010 08:15 AM

RE: Adoptable shop new version! [UPDATED!]
 
Okay

Find:
PHP Code:

$sidebar "<b><u>".$loggedinname."'s Links:</u></b><br><br> 

And put this ABOVE that
PHP Code:

$query222 "SELECT * FROM ".$prefix."users WHERE username = '$loggedinname'";
$result222 = @mysql_query($query222);
$num222 = @mysql_numrows($result222);

//Loop out code
$i=0;
while (
$i 1) {

$coins=@mysql_result($result222,$i,"coins");

$i++;


Then at last you add the line that really shows it.

Somewhere you want it in the text of your sidebar put this:

PHP Code:

You currenty have $coins Coins.<br

[hr]
lol, ill make it again for you
PHP Code:

mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1','$email','3','1', '$date', '0','','','','','','1500')"); 


SieghartZeke 03-27-2010 08:22 AM

RE: Adoptable shop new version! [UPDATED!]
 
Awwww...I have a other error!!!
Parse error: syntax error, unexpected T_STRING in /home/a2394530/public_html/inc/functions.php on line 239[hr]
Oh and this error came only when i put the "You currenty have $coins Coins.<br> "
What the problem??? =_=""[hr]
And sorry if i bother you---But how i can put an image of the coin when you level up a pet?

mapleblade 03-27-2010 08:44 AM

RE: Adoptable shop new version! [UPDATED!]
 
oh change $coins to ".$coins."
if that shows errror
'.$coins.'[hr]
BTW for the image, just find Price: in the adopt.php and put <img src="img link"> before it.

SieghartZeke 03-27-2010 11:34 AM

RE: Adoptable shop new version! [UPDATED!]
 
Ok...All work....the only last problem is...when i go to create i pet, it doesnt create this!!

mapleblade 03-27-2010 11:48 AM

RE: Adoptable shop new version! [UPDATED!]
 
it only creates in your own shop heh?

so usershop.php?user=yourname

SieghartZeke 03-27-2010 12:14 PM

RE: Adoptable shop new version! [UPDATED!]
 
Ops... Wrong places....i Was talking of the "Adoptable Shop"[hr]
Oh Wait...
When i go to the admin.php, i make all thing for create adoptable, and when say that i have succesfull created pet, and i click "Add a new level" Say that the adoptable id doesn't exist!""

mapleblade 03-28-2010 05:30 AM

RE: Adoptable shop new version! [UPDATED!]
 
u have added the 'price' at the end of the adoptables table?

gensuperman 03-28-2010 01:50 PM

RE: Adoptable shop new version! [UPDATED!]
 
Well, this code wouldn't work for me,

I added the SQL info as per first post within my SQL Query on my site, and that added fine, and then I uploaded/overwrote the files needed as per your zipped file in the first post of this thread.

After testing, I found that any new adoptable that I create will not show up on the adopt page, it still will only show the old adoptable.

Also, existing adoptable dont show a price, although has the word price under their image.

Not sure what I'm doing wrong, but, I can't create any new adoptable now and if I try and buy one, then it says I dont have enough coins.

SieghartZeke 03-29-2010 05:24 AM

RE: Adoptable shop new version! [UPDATED!]
 
I Have the same problem....°_°[hr]
Quote:

Originally Posted by mapleblade
u have added the 'price' at the end of the adoptables table?

Ehm no....what code i need to create??[hr]
Omg....Im a Idiot...Added the table and now...WORK!!!!!!!!! XD

mapleblade 03-29-2010 11:14 AM

RE: Adoptable shop new version! [UPDATED!]
 
maybe saame for above, you added price table at adoptables or shop adoptables table AT THE END?

gensuperman 03-31-2010 12:45 AM

RE: Adoptable shop new version! [UPDATED!]
 
Quote:

Originally Posted by mapleblade
maybe saame for above, you added price table at adoptables or shop adoptables table AT THE END?

Its kinda difficult to understand you... are you saying to add the SQL information to the SQL Query? I have already done that and this still doesn't work. I have even updated the price and coins within that SQL Query(s) and it still didn't matter.

The issue I am having isn't about price or coins. After I upload the adoptable shop files to my server, I then try and create an adoptable within the admin area, and I add a PRICE within that adoptables creation. However, after I create it, the adoptable never shows up in the list of options for choosing to adopt. It is almost as if, the adoptable was never created to begin with.

This is a very odd bug... which I believe points back to the SQL Query's that you are having people add to their server SQL database... there must be something that is getting Null(ed) that shouldn't.

Basically, I'm going to have to re-install this script each and every time to a new SQL database until I can figure out which setting is causing this.

As for adding price to the end of something... I must be overlooking what you are suggesting, as I can't find it... Frankly, I believe that I have followed the steps precisely as you have written them.

Can anyone please assist me with this and let me know what steps they took to get this working?

mapleblade 03-31-2010 07:38 AM

RE: Adoptable shop new version! [UPDATED!]
 
uhm.... you sure you have uplaoded the right files?, and if so? do you have any other tables in your adoptables table that may cause an problem, like gender?

redheadturkey 03-31-2010 01:46 PM

RE: Adoptable shop new version! [UPDATED!]
 
Are you looking for the new adoptable in the right place -- it will not show up in the usual places, but only in the usershop itself ---- it wont show up in the regular shop, or the normal place to get a pet to adopt.

I am using it on my site, you can take a look there if you wish :)


Click on Customs in the top menu once you reg .......

Tequila 08-15-2011 07:50 AM

Locking this do to a necro post. :3


All times are GMT -5. The time now is 03:07 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.