Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Addons/Mods Graveyard (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=41)
-   -   Currency for leveling up / Adoptable shop (Fixed again) (http://www.mysidiaadoptables.com/forum/showthread.php?t=561)

Ashje 04-16-2009 08:05 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
$money should work for the amount you get but you're on your own on figuring out how to make it random. You see, if you manage to get it random, $money will show the random number, which is what you want. The problem is getting the random number. Try talking to Brandon, it is similar to the "Featured Adoptable". For that error, show me line 62 and I'll show you the error.

trollis76 04-16-2009 08:48 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
OK, well, I already know how to make it random. You helped me a lot. I'll show you the document soon.

EDIT: Here it is:

PHP Code:

<?php

// Easy Adoptables Script by Brandon Rusnak
// Get our includes out of the way

include("inc/functions.php");
include(
"inc/config.php");
include(
"inc/settings.php");
include(
"inc/nbbc.php");  // BBCODE Parser
$bbcode = new BBCode;

// Connect to our database

$conn mysql_connect($dbhost$dbuser$dbpass) or die ('Error connecting to mysql database!');
mysql_select_db($dbname);


//Set up our login info...
$username "";
$password "";

//Check for cookie

if (isset($_COOKIE['adoptu']) and isset($_COOKIE['adoptp'])){

$username $_COOKIE['adoptu'];
$password $_COOKIE['adoptp'];

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

//Run login operation
$query "SELECT * FROM users WHERE username = '$username'";
$result mysql_query($query);
$num mysql_numrows($result);

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

$luser=@mysql_result($result,$i,"username");
$lpass=@mysql_result($result,$i,"password");

$i++;
}

    if(
$username == $luser and $password == $lpass){
        
$isloggedin "yes";
    }
    else{
    if (isset(
$_COOKIE['adoptu'])){
    
$past time() - 10
    
setcookie("adoptu",$username,$past);
    }

    if (isset(
$_COOKIE['adoptp'])){
    
$past time() - 10
    
setcookie("adoptp",$password,$past);
    }
    
$isloggedin "no";
    }
if (
$isloggedin == "yes"){
$query "SELECT * FROM `users` WHERE `username` = '".$luser."'";
$result mysql_query($query);
$num mysql_numrows($result);
$i=0;
    while (
$i 1) {
    
    
$money =@mysql_result($result,$i,"money");
    
$i++;
            }
$template replace(':WELCOMEORREGISTER:','',$template);
$template replace(':LOGINORACCT:''<p>Hi, '.$username.'
<p>Currency name: '
.$money.'
<p><a href="logout.php">Log out</a>' 
,$template)
}
else
{
//User is not logged in
$isloggedin "no";





// Define our Template File

$file $current_theme;



// Get our content for the index page

$query "SELECT * FROM article_content WHERE page = 'index'";
$result mysql_query($query);
$num mysql_numrows($result);

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

$article_title=mysql_result($result,$i,"title");
$article_date=mysql_result($result,$i,"date");
$article_content=mysql_result($result,$i,"content");

$i++;
}

$article_title stripslashes($article_title);
$article_content stripslashes($article_content);

$article_content $bbcode->Parse($article_content);

// Run the BBCODE parser on the content

// Should we show the extra pages in the nav bar?

$link1 "";
if(
$show_extra_page1 == "yes"){
$link1 "<li><a href='$extra_page1_link'>$extra_page1_name<span class='tab-l'></span><span class='tab-r'></span></a></li>"
}

$link2 "";
if(
$show_extra_page2 == "yes"){
$link2 "<li><a href='$extra_page2_link'>$extra_page2_name<span class='tab-l'></span><span class='tab-r'></span></a></li>"
}

// Do the template changes and echo the ready template

$template file_get_contents($file);
$template replace(':SITETITLE:',$site_title,$template);
$template replace(':SITENAME:',$site_name,$template);
$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':LINK1:',$link1,$template);
$template replace(':LINK2:',$link2,$template);
$template replace(':LINK3:',$link3,$template);

//Get the featured adoptable...
$featured getfeatured();
$template replace(':FEATURED:',$featured,$template);

//Ad Management
$header = @file_get_contents("ads/header.txt");
$footer = @file_get_contents("ads/footer.txt");
$tower = @file_get_contents("ads/tower.txt");

$header stripslashes($header);
$footer stripslashes($footer);
$tower stripslashes($tower);

$template replace(':HEADERAD:',$header,$template);
$template replace(':FOOTERAD:',$footer,$template);
$template replace(':TOWERAD:',$tower,$template);

//Is the user logged in?
//$isloggedin = "no";
if ($isloggedin == "yes"){
$template replace(':WELCOMEORREGISTER:','<u>Welcome Back:</u>',$template);
$template replace(':LOGINORACCT:''Welcome back '.$username.'.  <br><br><a href="account.php">Click here to view or edit your account.</a><br><br><a href="logout.php">Log Out</a>' ,$template);
}
else{

//User is not logged in
$template replace(':WELCOMEORREGISTER:','<u>Member Login:</u>',$template);
$loginform "<form name='form1' method='post' action='login.php'>
  <p>Username: 
    <input name='username' type='text' id='username'>
</p>
  <p>Password: 
    <input name='password' type='password' id='password'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit'>
  </p>
  <p>Don't have an account?<br>
  <a href='register.php'>Register Free</a>  </p>
</form>
"
;
$template replace(':LOGINORACCT:'$loginform ,$template);
}

echo 
$template;
?>

Oh, if it is any help: I used Words to make this. If you can't use that program, please tell me so.

Ashje 04-16-2009 04:57 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
I use Notepad but I also use Microsoft Word. I prefer Notepad as it is much easier to use. Also, you do realise that that document is reading from your index page..?

trollis76 04-16-2009 11:59 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
What do you mean "Reading from your Index"? He/She said we were supposed to paste it into every page!
It just doesn't work on any of them.

Ashje 04-17-2009 02:31 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Never mind, I made a mistake. Now I just need line 62. Instead of clicking 'Edit' or 'Open', click 'View' and it will show you the line numbers. Copy-paste line 62...

trollis76 04-17-2009 09:50 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Well, I don't have that version any more. Do you know if this currency-thing will work with the new release?

BMR777 04-17-2009 09:55 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Quote:

Originally Posted by trollis76
Well, I don't have that version any more. Do you know if this currency-thing will work with the new release?

It will need to be upgraded to work with the new release.

trollis76 04-17-2009 10:04 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
OK, thank you.

Hope you upgrade it!

Ashje 04-17-2009 06:30 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
^
Kisazeky needs to do that, but I'll give it a shot once I get the upgrade script. He hasn't been responding of late...

zhiichiro 04-21-2009 11:05 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
the adoptables bought from my shop doesnt level up XD

it always says "max level" when it's about to level-up

Ashje 04-21-2009 06:06 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
I think it's because you are using the new version...

Aluka 05-02-2009 09:18 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Where is register2.php? I can't find one.

zhiichiro 06-16-2009 07:23 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
how to add this on new release?

Seapyramid 06-16-2009 08:40 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
If you actually read this thread you would know it was NOT made for and does NOT work with the latest release. You would also know that a mod for the new version has been created and will be released for DONATORS only! Please, if you wont do some research and learning, at least read the thread you are posting in!

Bloodrun 07-18-2009 04:53 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
The last three posts in this thread have been deleted.
The altercations between them, are being dealt with.
At the same time, I would like to ask that non-staff members, leave the staffing to the actual staff.
I understand that you want to help, but it just causes to much commotion to others, especially when comments tend to get a little aggressive.

Please, don't let us see arguing in the Forums. If you have a problem with someone, please take it to PM, and alert a Moderator immediately. This is all in hopes to keep this community fun, and helpful.

Blues 07-27-2009 06:14 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Can you add so we will also get money when clicking other people pet? And is this compitable with Rusnak PHP script 1.0.0?

Tequila 07-29-2009 09:10 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Quote:

Originally Posted by Blues
Can you add so we will also get money when clicking other people pet? And is this compitable with Rusnak PHP script 1.0.0?

Unfortunaetly this is not compatible with the new script. Its for the old one.

SieghartZeke 10-06-2009 11:44 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Ehm...i dont know where to put the MYSQL code....
And when i uplod the levelup file i get an error when i level up my pet...

Seapyramid 10-06-2009 01:54 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Quote:

Originally Posted by SieghartZeke
Ehm...i dont know where to put the MYSQL code....
And when i uplod the levelup file i get an error when i level up my pet...

That is because this is for the old script & doesn't work with the new one.

jthm0138 10-06-2009 09:51 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Ok... I am guessing this is a long shot but worth the try.
As everyone keeps pointing out, this mod is for an older version of the script, and is not compatible with the new one...... So...... Any chance of getting a copy of the old script? :-)

SieghartZeke 10-07-2009 03:44 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Quote:

Originally Posted by enddayne
Quote:

Originally Posted by Blues
Can you add so we will also get money when clicking other people pet? And is this compitable with Rusnak PHP script 1.0.0?

Unfortunaetly this is not compatible with the new script. Its for the old one.

But i have the version 1.00 of the script.... not the 2 beta...

Seapyramid 10-07-2009 04:01 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Quote:

Originally Posted by jthm0138
Ok... I am guessing this is a long shot but worth the try.
As everyone keeps pointing out, this mod is for an older version of the script, and is not compatible with the new one...... So...... Any chance of getting a copy of the old script? :-)

Brandon might have a copy laying around, but support for it is no longer offered nor for any of it's mods such as this one.

Sea

SieghartZeke 10-08-2009 03:47 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Ehm..someone know how to upgrade the Script??I WANT THE SHOP WITH THE CURRENCY!!!!!!

Seapyramid 10-08-2009 06:45 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Currency mod has been added to the donators forum.

Sea

Bloodrun 10-08-2009 07:51 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Quote:

Originally Posted by SieghartZeke
Ehm..someone know how to upgrade the Script??I WANT THE SHOP WITH THE CURRENCY!!!!!!

We can see that you want the shop, as well as many other people. There is currently this and many more scripts in the Donators Forum that would fix your problem.

But as it stands there is not a release planned for non-Donators. That does not mean that there won't be one.

I was planning on making a new one for non-Donators, but after what I need to get done, gets done.

SieghartZeke 10-12-2009 01:11 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Nuuuuuuu...I cant wait! Dx

jthm0138 10-12-2009 01:44 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Ummm.... Ok.. am I missing something?
I am a donator, and I cant find the updated script anywhere.

The reason I requested the old script was so I could compare the changes and update the script, as I would really like to have this on gamingarmy.com in the end. :-)

Seapyramid 10-12-2009 01:54 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
It's available in the Donator Forum. http://www.rusnakweb.com/forum/showthread.php?tid=1333

Sea

SieghartZeke 10-12-2009 02:18 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Sniff...i want go in the Donator Forum!Pleaseeeeeeeeee can i enter only one time???I cant donating because i have only 14 age......=_=

Arianna 10-26-2009 01:25 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Quote:

Originally Posted by Seapyramid
It's available in the Donator Forum. http://www.rusnakweb.com/forum/showthread.php?tid=1333

Sea

*Waits quietly and patiently for her paypal account to be billed so she can see the amazing script.*

Gah! I am not a patient person. xP

SieghartZeke 10-31-2009 08:47 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Ueee!

Szymon 02-08-2010 07:01 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
can anybody re-upload?

Tequila 02-08-2010 10:28 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Quote:

Originally Posted by Szymon
can anybody re-upload?

Old script mod, the newer mod is for Premium Members (and well worth $15 to help a college student out, buy the guy a brewski and a pizza pie).

Szymon 02-08-2010 01:56 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
but i'm form Poland :|
please send it to me on e-mail vandallow@wp.pl

Seapyramid 02-08-2010 09:50 PM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Quote:

Originally Posted by Szymon
but i'm form Poland :|
please send it to me on e-mail vandallow@wp.pl

It can't be sent to your email for free. It is for DONATORS only.. not for FREE.

Sea

Tequila 02-09-2010 09:57 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Quote:

Originally Posted by Szymon
but i'm form Poland :|
please send it to me on e-mail vandallow@wp.pl

http://www.xe.com/ucc/ - to find equivalent costs.

Brandon is giving way more than he gets out of this.

aldredheron 02-22-2010 05:05 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
how do you insert the adoptables into the shop? I mean like..where do I put the lines of
code for it? XD I don't wanna screw anything up. I know how to make a custom adoptable,
I just don't know how to add it to the shop.

Seapyramid 02-22-2010 07:48 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
This mod is NOT for the current release of the adoptables. It is for the first release & does not work with the current version.

Sea

Tequila 02-22-2010 08:13 AM

RE: Currency for leveling up / Adoptable shop (Fixed again)
 
Quote:

Originally Posted by aldredheron
how do you insert the adoptables into the shop? I mean like..where do I put the lines of
code for it? XD I don't wanna screw anything up. I know how to make a custom adoptable,
I just don't know how to add it to the shop.

This is for the old script (EasyPHP Adoptables) not the new Rusnak PHP Adoptables script. If you want access to the new shop/cash mod you'll need a premium membership. It's like 15$ to help Brandon out, he is a college student after all.


All times are GMT -5. The time now is 04:45 AM.

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