Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Off Topic Discussions > Adoptables Sites Showcase

Notices

Reply
 
Thread Tools Display Modes
  #11  
Old 03-13-2010, 08:31 AM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 44,961
Missy Master is an unknown quantity at this point
Default RE: Kritter Kingdom

the money add on is working, yay!! thanks again for that Magnie, that was a huge help!! Now everyone can see how much they are making <3

We really have some active members already, I feel good to see that! As time goes on we will move from "just" clicks to much more of course, just taking it slowly and weathering all those little bumps in the road.

Thanks again to everyone here for their mods, couldn't have done it without you!
Reply With Quote
  #12  
Old 03-13-2010, 10:02 AM
Magnie's Avatar
Magnie Magnie is offline
Pythonic
 
Join Date: Dec 2009
Location: Polaris, the Planet
Posts: 34
Gender: Male
Credits: 4,934
Magnie
Send a message via ICQ to Magnie
Default RE: Kritter Kingdom

Lol, no problem. :D The new background is much better! ;)
Reply With Quote
  #13  
Old 03-13-2010, 12:04 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 44,961
Missy Master is an unknown quantity at this point
Default RE: Kritter Kingdom

Oh great, I'm really glad!! Hope you enjoy your time there, we are officially opening Monday ----

the last really big thing I need to do is make a way for members to send money to each other, so we can do the sales! Once we have that, we will be all set, pretty much! :D

Any idea how to implement that? I have spent hours trying to figure that out, and I know it's really easy, and I am just not seeing it --- If anyone can help me do this, I'd be very grateful, I really have tried to figure it out, and I am just not getting it.
Reply With Quote
  #14  
Old 03-13-2010, 07:02 PM
Magnie's Avatar
Magnie Magnie is offline
Pythonic
 
Join Date: Dec 2009
Location: Polaris, the Planet
Posts: 34
Gender: Male
Credits: 4,934
Magnie
Send a message via ICQ to Magnie
Default RE: Kritter Kingdom

Nothing is easy until you can do it easily. ;)

This is actually something hard. I'm not even sure it's possible on the myadopts site that has all the features ( It might be part of the trading... I'm not sure ). Give me some time and I'll figure one out. :)
Reply With Quote
  #15  
Old 03-13-2010, 08:13 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 44,961
Missy Master is an unknown quantity at this point
Default RE: Kritter Kingdom

Magnie you're the best!

Thank you so much, I am still looking at this too, trying to figure out how to take from the one source, the money of the logged in user, and then send to the person you are buying the adoptable from --- I won't give up, and I really appreciate that help! ^__^
Reply With Quote
  #16  
Old 03-13-2010, 08:48 PM
Magnie's Avatar
Magnie Magnie is offline
Pythonic
 
Join Date: Dec 2009
Location: Polaris, the Planet
Posts: 34
Gender: Male
Credits: 4,934
Magnie
Send a message via ICQ to Magnie
Default RE: Kritter Kingdom

This was completely made up from my mind, so yeah it may not be perfect.

From what I know, this will require two files. Let's name one "givemoney.php" and "givemoney2.php"

givemoney.php:

PHP Code:
<?php



// **********************************************************************

// Rusnak PHP Adoptables Script

// Copyright 2009 Brandon Rusnak

// For help and support: http://www.rusnakweb.com/forum/

//

// Redistribution prohibited without written permission

// **********************************************************************



// Wake the sleeping giant



// **********************************************************************

// Basic Configuration Info

// **********************************************************************



include("inc/functions.php");

include(
"inc/config.php");



$themeurl grabanysetting("themeurl");



// **********************************************************************

// Define our top links by calling getlinks()

// **********************************************************************



$links getlinks();



// **********************************************************************

// Define our ads by calling getads()

// **********************************************************************



$ads getads("any");



// **********************************************************************

// Grab any dynamic article content from the content table

// **********************************************************************



$pagecontent getsitecontent("index");

$article_title $pagecontent[title];

$article_content $pagecontent[content];

$article_content nl2br($article_content);



// **********************************************************************

// Grab any settings that we will need for the current page from the DB

// **********************************************************************



$browsertitle grabanysetting("browsertitle");

$sitename grabanysetting("sitename");

$slogan grabanysetting("slogan");



// **********************************************************************

// Check and see if the user is logged in to the site

// **********************************************************************



$loginstatus logincheck();

$isloggedin $loginstatus[loginstatus];

$loggedinname $loginstatus[username];



// **********************************************************************

// End Prepwork - Output the page to the user

// **********************************************************************


if($isloggedin == 'yes'){
$article_content "<FORM METHOD='POST' ACTION='givemoney.php2'>

Give to User:<input name='user' type='text' id='user'><br>
Amount to Give:<input name='gm' type='text' id='gm'>
<INPUT TYPE='submit' VALUE='Give Money'>
</FORM>"
;
}
else{
$article_content "[Display Some Nice Message to the Guest]";
}

// **********************************************************************

// Begin Template Definition

// **********************************************************************



//Define our current theme

$file $themeurl;



// Do the template changes and echo the ready template

$template file_get_contents($file);



$template replace(':ARTICLETITLE:',$article_title,$template);

$template replace(':ARTICLECONTENT:',$article_content,$template);

$template replace(':ARTICLEDATE:',$article_date,$template);



$template replace(':BROWSERTITLE:',$browsertitle,$template);

$template replace(':SITENAME:',$sitename,$template);



//Define our links

$template replace(':LINKSBAR:',$links,$template);



//Get the content for the side bar...



$sidebar getsidebar();

$template replace(':SIDEFEED:',$sidebar,$template);



//Get the ad content...

$template replace(':ADS:',$ads,$template);



//Get the slogan info

$template replace(':SLOGAN:',$slogan,$template);





echo 
$template;



// **********************************************************************

// End Template Definition

// **********************************************************************







?>
givemoney2.php:

PHP Code:
<?php



// **********************************************************************

// Rusnak PHP Adoptables Script

// Copyright 2009 Brandon Rusnak

// For help and support: http://www.rusnakweb.com/forum/

//

// Redistribution prohibited without written permission

// **********************************************************************



// Wake the sleeping giant



// **********************************************************************

// Basic Configuration Info

// **********************************************************************



include("inc/functions.php");

include(
"inc/config.php");



$themeurl grabanysetting("themeurl");



// **********************************************************************

// Define our top links by calling getlinks()

// **********************************************************************



$links getlinks();



// **********************************************************************

// Define our ads by calling getads()

// **********************************************************************



$ads getads("any");



// **********************************************************************

// Grab any dynamic article content from the content table

// **********************************************************************



$pagecontent getsitecontent("index");

$article_title $pagecontent[title];

$article_content $pagecontent[content];

$article_content nl2br($article_content);



// **********************************************************************

// Grab any settings that we will need for the current page from the DB

// **********************************************************************



$browsertitle grabanysetting("browsertitle");

$sitename grabanysetting("sitename");

$slogan grabanysetting("slogan");



// **********************************************************************

// Check and see if the user is logged in to the site

// **********************************************************************



$loginstatus logincheck();

$isloggedin $loginstatus[loginstatus];

$loggedinname $loginstatus[username];



// **********************************************************************

// End Prepwork - Output the page to the user

// **********************************************************************

if($isloggedin == 'yes') {
$user $_GET["user"];

$user preg_replace("/[^a-zA-Z0-9\\040.]/"""$user);

$user secure($user);

$gm $_GET["gm"];

$gm secure($gm);

$query "SELECT * FROM ".$prefix."users WHERE username = '$loggedinname'";

$result = @mysql_query($query);



//Loop out code

$i=0;

while (
$i 1) {



$cash=@mysql_result($result,$i,"cash");



$i++;

}

$query "SELECT * FROM ".$prefix."users WHERE username = '$user'";

$result = @mysql_query($query);



//Loop out code

$i=0;

while (
$i 1) {



$cash2=@mysql_result($result,$i,"cash");



$i++;

}

$cashs $cash $gm;
$cashs2 $cash2 $cash;
if(
$gm !> $cash){
$query "UPDATE ".$prefix."users SET cash='".$cashs."' WHERE username='".$loggedinname."'";

mysql_query($query);
$query "UPDATE ".$prefix."users SET cash='".$cashs2."' WHERE username='".$user."'";

mysql_query($query);
$article_content "[Put a nice message of it's success]";
}
else{
article_content "[Put a nice message of it's failure]";
}
}




// **********************************************************************

// Begin Template Definition

// **********************************************************************



//Define our current theme

$file $themeurl;



// Do the template changes and echo the ready template

$template file_get_contents($file);



$template replace(':ARTICLETITLE:',$article_title,$template);

$template replace(':ARTICLECONTENT:',$article_content,$template);

$template replace(':ARTICLEDATE:',$article_date,$template);



$template replace(':BROWSERTITLE:',$browsertitle,$template);

$template replace(':SITENAME:',$sitename,$template);



//Define our links

$template replace(':LINKSBAR:',$links,$template);



//Get the content for the side bar...



$sidebar getsidebar();

$template replace(':SIDEFEED:',$sidebar,$template);



//Get the ad content...

$template replace(':ADS:',$ads,$template);



//Get the slogan info

$template replace(':SLOGAN:',$slogan,$template);





echo 
$template;



// **********************************************************************

// End Template Definition

// **********************************************************************







?>
I would suggest testing this with a test account and your account before you start doing it with other people. Also, if your cash name is different from "cash" then change every single "cash" in both files.

Edit: Needed to fix two IF Statements.
Reply With Quote
  #17  
Old 03-13-2010, 10:23 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,542
Seapyramid
Default RE: Kritter Kingdom

It is not easy & it is a trade system. The trade system I created took me about 5 weeks to complete
Reply With Quote
  #18  
Old 03-14-2010, 03:23 AM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 44,961
Missy Master is an unknown quantity at this point
Default RE: Kritter Kingdom

ah fantastic Magnie, I'll try it out today!! This is my birthday and this is a wonderful present, thank you so much!!! **happy dance**
Reply With Quote
  #19  
Old 03-14-2010, 04:41 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 44,961
Missy Master is an unknown quantity at this point
Default RE: Kritter Kingdom

Just had to change givemoney.php2 to givemoney2.php in the givemoney.php code and it was good to go for the form -- -

changed "cash" to "money" for the second file-- but it isn't taking from the logged in user, and giving to the intended user.

Hmm ... not sure what is the matter .... ?

So close! :D

Now it is giving me an error, right about:

$cashs = $cash - $gm;
$cashs2 = $cash2 + $cash;
if($gm !> $cash){
$query = "UPDATE ".$prefix."users SET cash='".$cashs."' WHERE username='".$loggedinname."'";

mysql_query($query);
$query = "UPDATE ".$prefix."users SET cash='".$cashs2."' WHERE username='".$user."'";
Reply With Quote
  #20  
Old 03-15-2010, 12:18 AM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,542
Seapyramid
Default RE: Kritter Kingdom

Background is still not seamless & with the size of squares you are using it will hurt you time later. The colors are much better however. I did a search & while many came up this was the top one http://www.tickie.net/Backgrounds/index.html try looking there for a seamless you like.

Your pets... This kinda confuses me because most pets are transparent & yours have a full scene. Not bad, new approaches is always good & if it works for you that's great! The images are appealing & nice to look at. However, their size is larger then many forums allow. You might want to consider the size as it greatly limits where they can be posted.

Can't help you with your trade system. Mine took me weeks & that was at 12-18 hours a day. I can't just give it away.

Sea
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


All times are GMT -5. The time now is 12:40 PM.

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