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
  #4  
Old 06-03-2015, 04:48 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 140,375
Kyttias is on a distinguished road
Default

I see, I see... Try this?

PHP Code:
<?php
class IndexView extends View
  
    public function 
index(){ 
             
$mysidia Registry::get("mysidia"); 
        
$document $this->document;         
        
$document->setTitle(" Welcome to Auratus Ghoti - Opening late 2015 "); 
    if(!
$mysidia->user->isloggedin){
$document->add(new Comment("
<div style='min-height: 100%; background-color: white; position: fixed;width: 100%;top: 0px;left: 0px;z-index: 9999;'> 
  <div style='position: relative; top: 50%; background-color: white; padding: 20px; border-radius:7px;'> 
    <center><a href='http://auratusghoti.com/forum' target='_blank'><img src='http://i134.photobucket.com/albums/q93/flippin_k_moon/splashpage2.png'/></a></center> 
<center> Auratus Ghoti is an in development Goldfish Breeding Sim where the player controls a school of goldfish as they build their school and please the creatures that they believe are gods. For a <center>limited time, the alpha forums are open for new members who are interested in joining the alpha test of this game. Alpha testing is scheduled to start in late 2015.</center> 
<a href='http://auratusghoti.com/forum' target='_blank'>Join the forum here!</a> <a href='http://auratusghoti.tumblr.com' target='_blank'>Follow us on Tumblr!</a> <a href='http://auratusghoti.wikia.com/' target='_blank'>View the official wiki!</a></center> 
<script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script> 
<!-- Ad space --> 
<ins class='adsbygoogle' 
     style='display:block' 
     data-ad-client='ca-pub-1249390240201341' 
     data-ad-slot='2925505659' 
     data-ad-format='auto'></ins> 
<script> 
(adsbygoogle = window.adsbygoogle || []).push({}); 
</script> 
  </div> 
</div> "
FALSE)); 
         
}     

}
?>
I changed the embedded css a bit (setting these elements positions to 'fixed' breaks them out of their 'real' location). It's also unnecessary to have an extra set of doctype/body/html elements so I removed them. They already exist.

I also somehow spaced on the whole usergroup thing from earlier... and I wrote in a check to simply see if the user is logged in or not. If they're not, they'll see this. To still access the page '/login' and not automatically be redirected to the index, make sure you don't have my mod for that installed because then you'd never be able to log in.
__________________
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.

Last edited by Kyttias; 06-03-2015 at 05:24 PM.
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 07:58 PM.

Currently Active Users: 5371 (0 members and 5371 guests)
Threads: 4,082, Posts: 32,047, 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