Mysidia Adoptables Support Forum  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-02-2015, 09:17 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 137,255
Kyttias is on a distinguished road
Default

Unfortunately, no part of your site is going to work without the index file as the entire site is routed through it. However, you can add custom content to your index page manually (rather than through the AdminCP's pages) if you read through this thread over here.

Hopefully you know some code? You should perhaps modify your page in such a way that a giant div covers the entire screen and your splash contents sits inside that, covering everything below -- but only if the person visiting is a visitor.

PHP Code:
if($usergroup == 6) { 
/*show something for visitors only*/
$document->add(new Comment(" Only visitors will be able to see this!! "FALSE));  
 } 
These are the usergroups, by number:
1 - root admins
2 - admins
3 - registered users
4 - artists
5 - banned
6 - visitors

As for suggestions to further a splash page -- make a div that's 100% the width and height of the page, and then center some content vertically and horizontally to make it appealing:

HTML Code:
<div style='min-height: 100%; background-color: orange; position: relative;'>
  <div style='position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: white; padding: 20px; border-radius:7px;'>
    some content
  </div>
</div>
You'll be putting the above inside the Comment shown in the php even higher up, where it says " Only visitors will be able to see this!! " -- in case you were wondering, yes, it still needs to be surrounded by quotes. When writing html inside this space, be sure to only use single quotes ( ' ) and not double quotes ( " ).

Also, for this trick to work you'll need some additional css. Make sure your stylesheet's css contains a rule that sets the height of the body/html to 100%:
Code:
body, html { height: 100%; }
You can see an example of the html I quickly put together at this link.

I would be sure to include a way for you to log in in case you get yourself logged out. It'd be the "/login" page, of course! Or, if you can just remember that, you should have no problems.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
 


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
Help Making Stats Page = Click Page & Lineages? squiggler Questions and Supports 2 02-22-2014 04:42 AM
Adopt Page & Pound Page change? tahbikat Questions and Supports 3 02-14-2014 03:19 PM


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

Currently Active Users: 12843 (0 members and 12843 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636