Jump to content

Recommended Posts

My whole site works for the best now with new host for those who helped with short tags problem :P

 

So for those who doesnt know, i'm a newbie so yeah that's why i can't figure it out and would like your help :)

 

-My site uses $sitelink in alot of places, i couldn't figure out where it's wrong but my site is www.thedaylightmafia.com but everywere he needs to write it he writes edaylightmafia.com

Kind of weird ...

 

-My domain is www.thedaylightmafia.com,  now when you log in and are viewing the site it gives this as link http://www.thedaylightmafia.com/layout/layout001/index.php.

The host help told me to do this :

RewriteEngine on

Options +FollowSymlinks

 

RewriteCond %{REQUEST_URI} ^/layout/ [NC]

RewriteRule ^(.*)$ http://www.www.thedaylightmafia.com/$1 [R=301,L]

 

But he said it could cause some problems, personally i have no idea where to add this and totally not the kinda my script is usin so, any other solution.

Don't break your head on this I can live with "http://www.thedaylightmafia.com/layout/layout001/index.php" it's just an extra.

 

- Every time i click on a link to a page on my site, it loads for about a second. That's not a problem but while he's loading he flashes a white screen and that's a problem :P

It surely is because i got something wrong on my style.css, only a code to change or my implementation on my index.php is wrong. Code i use

 

<link href="<?= $sitelink;?>/layout/layout<?= $page->layout; ?>/style.css" type="text/css" rel="stylesheet">

 

Perhaps this is also the part i could change so that my site link would be www.thedaylightmafia.com/index.php

 

Link to comment
https://forums.phpfreaks.com/topic/239844-some-trouble/
Share on other sites

I figured out first problem

 

My site uses $sitelink in alot of places, i couldn't figure out where it's wrong but my site is www.thedaylightmafia.com but everywere he needs to write it he writes edaylightmafia.com

 

<?=trim($sitelink,"http://www.")?> Must Be <?=trim($sitelink,"http://")?> if anyone encounter this :)

Link to comment
https://forums.phpfreaks.com/topic/239844-some-trouble/#findComment-1232006
Share on other sites

Hmm

 

div#left

{

width: 180px;

float: left;

   

}

div#center

{

width: 100%;

float: left;

margin: 0 0 0 5px;

     

 

}

div#right

{

width: 180px;

float: left;

       

}

 

Only the div#center flashes a white screen for less then a second when it loads ...

It's a mafia game so you must imagine having all kind of choices left and right and in the center happens what you just clicked.

Link to comment
https://forums.phpfreaks.com/topic/239844-some-trouble/#findComment-1232019
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.