Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Suggestions and Feature Requests

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-18-2011, 03:14 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 28,755
Bloodrun
Send a message via Yahoo to Bloodrun
Default Updates to files.

Okay, so there was an update to the old script.
I need to know what old files were changed and what was changed.

For example, what was changed in the registration file, the account file, etc.

Knowing this will save a lot of time in the migration process for new and old modifications.
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!
Reply With Quote
  #2  
Old 01-18-2011, 03:17 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: 336,506
Hall of Famer is on a distinguished road
Default

I see, I can give a you a list of files and change logs later tonight. Most of them are additions of new script files, such as trade.php, abandon.php and so on. Others are slight modifications of sql query lines, you will see soon.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 01-18-2011, 03:20 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 28,755
Bloodrun
Send a message via Yahoo to Bloodrun
Default

Quote:
Originally Posted by Hall of Famer View Post
I see, I can give a you a list of files and change logs later tonight. Most of them are additions of new script files, such as trade.php, abandon.php and so on. Others are slight modifications of sql query lines, you will see soon.
Alright, thanks a lot of HoF. =D
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!
Reply With Quote
  #4  
Old 01-18-2011, 04:54 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: 336,506
Hall of Famer is on a distinguished road
Default

Alright, here's the scripts that we've modified in latest release:

admin.php
account.php
doadopt.php
levelup.php
myadopts.php
register.php
inc/bbcodes.php
inc/function.php(added one function getcash(), which actually does nothing)

The new script files are listed below:
abandon.php
cash.php
doadoptab.php
mycash.php
redeem.php
shoutbox.php
trade.php

Also I've modified the script files inside the folder install, but guess they aint really that important to you since you already had a site long time ago. I will post in the next reply for detailed change log if you request.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 01-18-2011, 04:57 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 28,755
Bloodrun
Send a message via Yahoo to Bloodrun
Default

Quote:
Originally Posted by Hall of Famer View Post
Alright, here's the scripts that we've modified in latest release:

admin.php
account.php
doadopt.php
levelup.php
myadopts.php
register.php
inc/bbcodes.php
inc/function.php(added one function getcash(), which actually does nothing)

The new script files are listed below:
abandon.php
cash.php
doadoptab.php
mycash.php
redeem.php
shoutbox.php
trade.php

Also I've modified the script files inside the folder install, but guess they aint really that important to you since you already had a site long time ago. I will post in the next reply for detailed change log if you request.
Yes, I would like to know the detailed change in admin, account and function.php

Also, why does the added function in the function.php file not work?
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!
Reply With Quote
  #6  
Old 01-18-2011, 04:59 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 32,442
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

I've only glanced at it, but from that glance it seemed like it would work, although it's possible it's just not being used currently.
Reply With Quote
  #7  
Old 01-18-2011, 05:11 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 28,755
Bloodrun
Send a message via Yahoo to Bloodrun
Default

Quote:
Originally Posted by Kaeliah View Post
I've only glanced at it, but from that glance it seemed like it would work, although it's possible it's just not being used currently.
Hmm, Ill see if i can get it to work for you guys.
I'll have to get the money system to work for the forum now anyway, so I kinda have to.
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!
Reply With Quote
  #8  
Old 01-18-2011, 05:37 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: 336,506
Hall of Famer is on a distinguished road
Default

Database Structure Change:
New tables:
PHP Code:
$query "CREATE TABLE ".$prefix."shoutbox (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, user varchar(50), date varchar(30), comment varchar(2500))";
mysql_query($query);

$query "CREATE TABLE ".$prefix."trades (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, userrequestingtrade varchar(50), tradetype varchar(20), adoptableoffered INT, cashoffered INT, adoptabledesired INT, custommessage varchar(150), offerstatus varchar(30), tradeto varchar(40))";
mysql_query($query);

$query "CREATE TABLE ".$prefix."cash_logs (to varchar(40), from varchar(40), type varchar(40), amount int(10), date varchar(25))";
mysql_query($query); 
Also add the column 'gender'(VARCHAR) in table 'owned_adoptables', and 'dollar'(INT) in table 'user'
After this is done, insert the following three rows in the table 'settings':
PHP Code:
$query "INSERT INTO ".$prefix."settings (name, value) VALUES ('enabletrades', 'yes')";
mysql_query($query);

$query "INSERT INTO ".$prefix."settings (name, value) VALUES ('tradecost', '0')";
mysql_query($query);

$query "INSERT INTO ".$prefix."settings (name, value) VALUES ('tradeoffercost', '0')";
mysql_query($query); 





Scripts Modifications:

In admin.php, find the lines below to add more bbcodes buttons:

PHP Code:
if($pagetitle != "" or $pagecontent != ""){

$article_content $article_content="Here you can edit an existing page.  Use the text editor below to change the page title or content.
You may use some limited BBCodes in the box below.<br><form name='form1' method='post' action='admpost.php'>
  <p><b><u>Currently Editing Page:</u> "
.$more."</b>
    <input name='pageurl' type='hidden' id='pageurl' value='"
.$more."'>
</p>
  <p>Page Title: 
    <input name='pagetitle' type='text' id='pagetitle' value='"
.$pagetitle."'>
</p>
  <p>Page Content: </p>
  <p><input type=\"button\" value=\"Bold\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[b]Bold Text Here[/b]'\">
<input type=\"button\" value=\"Italics\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[i]Italic Text Here[/i]'\"> 
<input type=\"button\" value=\"Underline\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[u]Underlined Text Here[/u]'\">
<input type=\"button\" value=\"URL / Link\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[url=http://www.yoursite.com]Link text goes here[/url]'\">
<input type=\"button\" value=\"Image\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[img]http://www.somesite.com/images/someimage.gif[/img]'\">
<input type=\"button\" value=\"Image w/ Link\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[url=http://www.yourlinksite.com][img]http://www.somesite.com/images/someimage.gif[/img][/url]'\"> 
Add below:

PHP Code:
<input type=\"button\" value=\"Links a Text\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[urlsame=]Linked Text Here[/urlsame]'\">
<input type=\"button\" value=\"Striking Format\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[s]Strike Text Here[/s]'\">
<input type=\"button\" value=\"Youtube Video\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[youtube]http://www.youtube.com/videoname[/youtube]'\">
<input type=\"button\" value=\"User Profile\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[profile]Username[/profile]'\">
<input type=\"button\" value=\"Image Maps\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[imgmap]http://www.urlhere.com/[/imgmap]'\">
<input type=\"button\" value=\"Map Locations\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[map][where=#,#,#,#=http://www.firstlinkhere.com/][wherecirc=#,#,#=http://www.secondinkhere.com/][/map]'\"> 

In doadopt.php, find:

PHP Code:
if($name == ""){
$name $type;

Add below:

PHP Code:
//The gender mod
$tempgender rand(01);
if(
$tempgender == "0") {
$gender "Female";
unset(
$tempgender);
}
else {
$gender "Male";
unset(
$tempgender);

Then update the sql query line:

PHP Code:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','notfortrade','no')"); 
To:

PHP Code:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','notfortrade','no','$gender')"); 


In myadopts.php, change:

PHP Code:
$aid=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel=@mysql_result($result,$i,"currentlevel");
$type=@mysql_result($result,$i,"type");
$name=@mysql_result($result,$i,"name");
$totalclicks=@mysql_result($result,$i,"totalclicks"); 
To:

PHP Code:
$aid=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel=@mysql_result($result,$i,"currentlevel");
$type=@mysql_result($result,$i,"type");
$name=@mysql_result($result,$i,"name");
$gender=@mysql_result($result,$i,"gender");
$totalclicks=@mysql_result($result,$i,"totalclicks"); 
Then change:

PHP Code:
$article_title $name."'s Statistics:";
$article_content "<img src='".$image."'><br><br>
<b>Total Clicks: "
.$totalclicks."<br>
Current Level: "
.$currentlevel."<br>
Next Level: "
.$nloutput."<br></b>"
To:

PHP Code:
$article_title $name."'s Statistics:";
$article_content "<img src='".$image."'><br><br>
<b>Total Clicks: "
.$totalclicks."<br>
Gender: "
.$gender."<br>
Current Level: "
.$currentlevel."<br>
Next Level: "
.$nloutput."<br></b>"


In register.php, find:

PHP Code:
mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1','$email','3','1', '$date', '0','','','','','')"); 
Replace with:(this makes sure the number of columns in user.php is correct)

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


In levelup.php, find:

PHP Code:
// Show a thank you message along with the adoptable's information to the user...

    
$image getcurrentimage($id); // Get the current image of the adoptable...

    
$article_title $lang_gave."".$name." one ".$lang_unit;
    
$article_content "<img src='".$image."'><br>".$lang_gave."".$name." one ".$lang_unit.".<br>".$lang_levelup_encourage;
    

    } 
// Adoptable is not frozen, end isfrozen else check 
Add below:

PHP Code:
// Start Rewards
                  
                  // ************************************************  
                  
                  
                  //Get currency on level up
                  
                  
$query "SELECT * FROM `".$prefix."users` WHERE `username`='$loggedinname'";
                  
$result mysql_query($query);
                  
$num mysql_numrows($result);
                  
                  
$i 0;
                  while (
$i 1) {
                      
$dollar = @mysql_result($result$i"dollar");
                      
                      
// Change this number 10 to the number of currency you want users to earn on level up  
                      
$amount rand(515);
                      
$newbalance $dollar $amount;
                      
                      
$i++;
                  }
                  
                  
mysql_query("UPDATE `".$prefix."users` SET `dollar`='" $newbalance "' WHERE `username`='$loggedinname'");  
                  
                  
                  
$article_content $article_content "<div align='center'><br />You have earned "$amount ." Dollars for leveling up this Adoptable. <br />You now have  " $newbalance " Dollars.</div>";
    

    

    } 
In inc/bbcodes.php

Simply replace your old bbcode php file with the one in Mys/RA v1.10, plain and simple.

In inc/function.php

Add this line to somewhere in your function.php, it defines a blank function that does nothing but to prevent an error from occurring:

PHP Code:
function getcash(){


__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #9  
Old 01-18-2011, 05:40 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 28,755
Bloodrun
Send a message via Yahoo to Bloodrun
Default

Thank you for the detailed list, I will get to work on adapting the modifications now. =D
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!
Reply With Quote
  #10  
Old 01-18-2011, 05:47 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: 336,506
Hall of Famer is on a distinguished road
Default

You are very welcome Bloodrun. I actually intentionally left out Bokkun's abandon system in this changelog, since the dev staff have somewhat reached an agreement that we should get rid of it and use an improved version.

Hall of Famer
__________________


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
insert flash / .swf files voni Questions and Supports 7 06-15-2014 10:55 AM
Uploading files!? EpicEquestrian Questions and Supports 3 05-27-2012 07:54 PM
css files superdude44 Questions and Supports 5 05-06-2012 05:46 PM
How to get a PHP file to be included in the files in different directories? robertson Other Chat 4 11-09-2010 10:20 AM


All times are GMT -5. The time now is 11:10 PM.

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