Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Templates and Themes

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-26-2011, 04:47 PM
Inf3rnal's Avatar
Inf3rnal Inf3rnal is offline
Member
 
Join Date: Mar 2011
Location: Florida
Posts: 108
Gender: Male
Credits: 21,802
Inf3rnal is on a distinguished road
Default [1.2.3] Chibiry!

Chibiry! Theme is now done!
Tested With: Mysidia Adoptables v1.2.3
Works With: Mysidia Adoptables v1.2.3

Installation:

Download and unzip Chibiry.zip

Upload Chibiry files to the theme directory

Now comes the file edits! These file edits are exactly the same as Midnight_Rain's so if you have done so with Midnight_Rain you can skip this part.
Then open inc/functions.php and around line 451 find:

Code:
function getsidebar() {
That whole function which should look like this:

Code:
function getsidebar() {

	//This function determines what shows in the side bar of the template

	$isloggedin = $GLOBALS['isloggedin'];

	$loggedinname = $GLOBALS['loggedinname'];

	if($isloggedin == "yes") {

		$msgctr = "<a href='messages.php'>Messages</a>";

		$query = "SELECT * FROM ".$GLOBALS['prefix']."messages WHERE touser='".$loggedinname."' and status='unread'";

		$result = runquery($query);

		$num = mysql_num_rows($result);

		if($num > 0) {

		$msgctr = "<a href='messages.php'>Messages <b>(".$num.")</b></a>";

		}

		$sidebar = "You have {$GLOBALS['money']} {$GLOBALS['settings']['cost']}.<br />

		<a href='donate.php'>Donate money to friends</a><br />

		<br /><strong>Your links:</strong><br />

		<ul><li><a href='adopt.php'>Adopt New Pets</a></li>

		<li><a href='pound.php'>Acquire Pounded Pets</a></li>

		<li><a href='myadopts.php'>Manage Adoptables</a></li>

		<li><a href='account.php'>Go to My Account</a></li>

		<li>".$msgctr."

		<li><a href='changestyle.php'>Change Theme</a></li>

		<li><a href='logout.php'>Log Out</a></li>";



           $query = "SELECT * FROM ".$GLOBALS['prefix']."users WHERE username='".$loggedinname."' and usergroup='1'";

		   $result = runquery($query);

           $usercancp = mysql_num_rows($result);



		if($usercancp  != 0) {

			$sidebar .= "<li><a href='admin.php'>Admin Center</a></li><br />";

		}



        $query1 = runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username != 'Visitor'");

        $total1 = mysql_num_rows($query1);

        $query2 = runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username = 'Visitor'");

        $total2 = mysql_num_rows($query2);

		$sidebar .= "<a href='online.php'>This site has ".$total1." members and ".$total2." guests online.</a>";



		

		$sidebar .= "</ul>";

	}

	else {

		$sidebar = "<b><u>Member Login:</u></b><br />

		<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='Log In'>

		  </p>

		</form>Don't have an account?<br /><a href='register.php'>Register Free</a><br /><a href='forgotpass.php'>Forgot Password?</a>";

        $query1 = runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username != 'Visitor'");

        $total1 = mysql_num_rows($query1);

        $query2 = runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username = 'Visitor'");

        $total2 = mysql_num_rows($query2);

		$sidebar .= "<br />This site currently has ".$total1." members and ".$total2." guests.";



	}

	return $sidebar;

}
Replace that with:

Code:
function getsidebar() {

	//This function determines what shows in the side bar of the template

	$isloggedin = $GLOBALS['isloggedin'];

	$loggedinname = $GLOBALS['loggedinname'];

	if($isloggedin == "yes") {

		//User Profile Link
		$welcome = "<span id='welcome' title='Welcome back, ".$loggedinname."'><a href='profile.php?user=".$loggedinname."'>".$loggedinname."</a></span>";

		//Link to My Account
		$profile = "<a href='account.php' title='My Account'>My Account</a>"; 

		//Link with No Messages
		$msgctr = "<a href='messages.php' title='No New Messages'>Messages</a>";
		
		//Link with Messages
		$query = "SELECT * FROM ".$GLOBALS['prefix']."messages WHERE touser='".$loggedinname."' and status='unread'";

		$result = runquery($query);

		$num = mysql_num_rows($result);

		if($num > 0) {


		$msgctr = "
			<a href='messages.php' title='You have ".$num." new message(s)'>Messages (".$num.")</a>
		";
		}	

		//Link to change theme
		$chngthm = "<a href='changestyle.php' alt='Change Theme' title='Change Theme'>Change Theme</a>"; 

		$sidebar = "
		<div id='topbar'>
			<span id='links'>
				".$welcome."
				".$profile."
				".$msgctr."
				".$chngthm."
		";

           $query = "SELECT * FROM ".$GLOBALS['prefix']."users WHERE username='".$loggedinname."' and usergroup='1'";

		   $result = runquery($query);

           $usercancp = mysql_num_rows($result);

		if($usercancp  != 0) {

			$sidebar .= "<a href='admin.php' title='Admin Center'>Admin</a>";

		}

        $query1 = runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username != 'Visitor'");

        $total1 = mysql_num_rows($query1);

        $query2 = runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username = 'Visitor'");

        $total2 = mysql_num_rows($query2);

		$query3 = runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username != ''");

        $total3 = mysql_num_rows($query3);
		
		$sidebar .= "
			<a href='pound.php' title='Acquire Pounded Pets'>Pound Center</a>
			<a href='donate.php' title='You have {$GLOBALS['money']} {$GLOBALS['settings']['cost']}.'>Donate</a>
			<a href='online.php' title='This site currently has ".$total1." members and ".$total2." guests.'>".$total3." Users Online</a>
			<a href='logout.php' title='Securely Logout'>Logout</a>
			</span><br /></div>
		";
	}

	else {

		$sidebar = "
		<div id='topbar'>
			<form name='form1' method='post' id='links' action='login.php'>
				Username: <input name='username' type='text' id='username'>
				Password: <input name='password' type='password' id='password'>
				<input type='submit' name='Submit' value='Log In'>
				<a href='register.php'>Sign Up</a>
				<a href='forgotpass.php'>Forgot Password?</a>

";

        $query1 = runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username != 'Visitor'");

        $total1 = mysql_num_rows($query1);

        $query2 = runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username = 'Visitor'");

        $total2 = mysql_num_rows($query2);

		$query3 = runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username != ''");

        $total3 = mysql_num_rows($query3);
		
		$sidebar .= "<a href='online.php' title='This site currently has ".$total1." members and ".$total2." guests.'>".$total3." Users Online</a></form></div></span>";


	}

	return $sidebar;

}
Now save and exit.

Database Changes
Now open Phpmyadmin or whatever you use and go to [yourprefix]_themes
Click Insert and use the following data:

themename = Chibiry
themefolder = Chibiry

The rest can be left blank then click "Go"
That will insert the theme to the database.

To use the theme:
Now open your site and go to http://yoursite.com/changestyle.php and Chibiry should be on the list.
Select it and you are now using the theme.

To make it the default theme: (Way #1)
Go to your Admin CP > Site Settings > View or Edit Theme and Template Settings
Use the dropdown menu and select Chibiry then click use this theme.

To make it the default theme: (Way #2)
If that doesn't work (I haven't got that way to work for me at all.)
Open PhpMyAdmin (Or whatever you use) and go to [prefix]_settings and the first field should be "theme"
Set theme's "value" to "Chibiry" (Without the quotes.)

Now your all done. :)

Important Notes:
If you have donated to Mysidia PHP Adoptables you can remove the Powered by Mysidia PHP Adoptables
Please leave Theme by Inf3rnal intact unless you have donated to me or I have given you permission
I can accept Paypal dontation at the following email address: infertioxstudios@gmail.com
There will be an "enhanced version" of the theme that will be released to users that have donated to me

Bugs/Issues
There is quite a few issues I'm still working on such as the footer, body size, etc.
I'll try to get those issues fixed asap for both Chibiry and Midnight_Rain.

Preview
__________________
Finished Mods/Themes:
Admin Notes | Better Messages Buttons | Avatars in Memberlist
Chibiry! Theme | Midnight Rain Theme
Work in Progress:
Redesign of the core functions
Couple more themes

Last edited by Inf3rnal; 01-23-2013 at 04:13 PM.
Reply With Quote
  #2  
Old 10-27-2011, 02:13 AM
kitty08's Avatar
kitty08 kitty08 is offline
Member
 
Join Date: Sep 2011
Posts: 42
Gender: Female
Credits: 6,865
kitty08 is on a distinguished road
Default waaaa

it's finally released!dont know if i'll use chibiy or midnight :D
__________________



NABARUDIS.COM
Reply With Quote
  #3  
Old 10-27-2011, 10:50 AM
Nemesis's Avatar
Nemesis Nemesis is offline
Member
 
Join Date: Mar 2011
Location: Ohio, United States
Posts: 641
Gender: Male
Credits: 57,125
Nemesis is on a distinguished road
Default

It's a wonderful theme. Hope to see it use.
__________________
https://gemnode.com
Free Hosting for Mysidia Adopt Sites
Just join our forum and request your free hosting account
Reply With Quote
  #4  
Old 10-28-2011, 04:14 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 77,893
AlexC is an unknown quantity at this point
Default

I use it - two questions though. The footer appears behind the content as appose to below it, and how do you work the update bar thingy?
__________________
Reply With Quote
  #5  
Old 10-28-2011, 05:34 PM
Inf3rnal's Avatar
Inf3rnal Inf3rnal is offline
Member
 
Join Date: Mar 2011
Location: Florida
Posts: 108
Gender: Male
Credits: 21,802
Inf3rnal is on a distinguished road
Default

Yes the footer is a known issue. I have to redo some of the css to have the footer stick to the bottom.

Also the update bar is just a row of images and can be changed in the template.htm
__________________
Finished Mods/Themes:
Admin Notes | Better Messages Buttons | Avatars in Memberlist
Chibiry! Theme | Midnight Rain Theme
Work in Progress:
Redesign of the core functions
Couple more themes
Reply With Quote
  #6  
Old 11-05-2011, 05:08 PM
kitty08's Avatar
kitty08 kitty08 is offline
Member
 
Join Date: Sep 2011
Posts: 42
Gender: Female
Credits: 6,865
kitty08 is on a distinguished road
Default

Warning: file_get_contents(templates/chibiry/template.html) [function.file-get-contents]: failed to open stream: No such file or directory in /home/tanatia/public_html/game/inc/functions.php on line 1679


>< :'( i wanted it soooo bad....did I did anything wrong? ^^"
__________________



NABARUDIS.COM
Reply With Quote
  #7  
Old 11-05-2011, 05:54 PM
Inf3rnal's Avatar
Inf3rnal Inf3rnal is offline
Member
 
Join Date: Mar 2011
Location: Florida
Posts: 108
Gender: Male
Credits: 21,802
Inf3rnal is on a distinguished road
Default

That's strange. Did you add it to the mysql data?

If you PM me I can help you out. ^^
__________________
Finished Mods/Themes:
Admin Notes | Better Messages Buttons | Avatars in Memberlist
Chibiry! Theme | Midnight Rain Theme
Work in Progress:
Redesign of the core functions
Couple more themes
Reply With Quote
  #8  
Old 11-06-2011, 05:23 AM
kitty08's Avatar
kitty08 kitty08 is offline
Member
 
Join Date: Sep 2011
Posts: 42
Gender: Female
Credits: 6,865
kitty08 is on a distinguished road
Default

It's okay,I did make a css myself,finally ^^ thanks anyway,and keep up the good work!I'll probably use chibiry in the future for another site
__________________



NABARUDIS.COM
Reply With Quote
  #9  
Old 02-23-2012, 03:09 PM
StarGirl's Avatar
StarGirl StarGirl is offline
Member
 
Join Date: Feb 2012
Posts: 45
Gender: Female
Credits: 9,776
StarGirl is on a distinguished road
Default

Do you mind if I edit the theme? Just to make it suit my site? I won't say I made it completely and I'll put you in the the credits page. I won't take off the made by Inf3rnal on the theme either. Thanks. :3
Reply With Quote
  #10  
Old 01-27-2014, 08:14 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: 487,059
Hall of Famer is on a distinguished road
Default

Come to think about it, this style is actually quite similar to the Midnight Rain theme. It will take just a few minutes to get it to work if you already have Mys v1.3.4 compatible version of Midnight Rain. If demand is high, I will probably do it for users who request it.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply

Tags
themes


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 07:01 AM.

Currently Active Users: 729 (0 members and 729 guests)
Threads: 4,081, Posts: 32,029, 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