Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Templates and Themes (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=26)
-   -   Help Create This? (http://www.mysidiaadoptables.com/forum/showthread.php?t=2454)

SilverDragonTears 10-24-2011 12:42 PM

That's nice and clean Chibi!! Love it! :usedusedused:

ChibiMaestro 10-24-2011 01:44 PM

Lol thanks :3

I might start doing requests since I do have the time and it'll help with my CSS XD

Tequila 10-24-2011 02:20 PM

1 Attachment(s)
Since I've finally gotten time, here's mine as well. :3
http://i53.tinypic.com/r7qf0j.jpg
Colors are just random, fix as needed. :3
Also comes with a read me of sorts:
Quote:

You'll need to edit a portion of your inc/functions.php file to get the sidebar to display properly. :3

Copy & Paste this part into your functions file:
PHP Code:

// Edit of functions by tequila

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'>Archive</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'>Scrolls <b>(".$num.")</b></a>";

        }

// Feel free to keep this url for coins if you use them
// otherwise reset to whatever you would like.
// For now the money links to the account page.

        
$sidebar "
        <a href='profile.php?user='
{$row['username']}'>{$row['username']}</a>
<a href="
account.php">{$GLOBALS['money']}<img src='http://i42.tinypic.com/1zwp1mf.jpg' border='0'></a>
        <a href='myadopts.php'>My Adopts</a>
        <a href='inventory.php'>Inventory</a>
        "
.$msgctr."
        <a href='logout.php'>Log Out</a>"
;



           
$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 .= "</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 .= "";



    }

    return 
$sidebar;


// End of sidebar portion. 

Quote:

Don't forget to edit the line in the header to tell where the css file is located. :3

Enjoy after changing colors to suit. :3

tequila ;3
Nicely done chibi. :3 Did you have problems with the drop down html?

ChibiMaestro 10-24-2011 02:33 PM

Wow :3 Yours look sooo cool 8D Lolol, very different to mine (lol, I just basically copied everything that Iris/Pero said to do and didn't change anything :P)

And I didn't change anything to do with the PHP (too confusing XD).

And yeah, I did actually. But what I did to make it easier for me was to make the menu first, then fit it into the theme, so then I'd know the menu would work XD

Abronsyth 10-24-2011 02:44 PM

Afgk, *glomps Chibi*

Erm...why won't it install properly?! Let's see, I added the file under public_html/templates/chibiarchurub

Now, I go to install the theme, and put in template/chibiarchurub....and it always says this:

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

Any ideas?

Ahhhhhhhhh, guys, stop editing your posts D: Iris/Pero can not keep up with you! And, thank you both so, so, so, so very much!
Never mind, you didn't edit your posts, you just posted more XD I feel so slow...but seriously, why's it not working to install? I had this happen before, but I don't remember how I fixed it.

ChibiMaestro 10-24-2011 02:51 PM

Okay, when you add a theme fill it like this:

Theme Name: chibiarchurub
Theme URL: chibiarchurub

Try that :P

EDIT: Now I'm editing, because I don't want to double-post. Anyway, if you can't access the ACP because of that error to add the theme, go here: http://archurub.com/changestyle.php?theme=elements

Abronsyth 10-24-2011 03:05 PM

"The theme you are trying to install cannot be found on this server at the specified URL. Please go back and double check that the path to the theme's HTML file is correct. If you uploaded the theme and you are sure the URL is correct please make sure your web host does not have PHP's safe_mode configuration enabled as this can interfere with using or locating themes."

Perhaps the web host has safe_mode configuration enabled? In which case, I'm not sure how to disable that..?


All times are GMT -5. The time now is 05:16 AM.

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