Cron, Heroes, CSS

If you've downloaded the FAF sourcecode, and have question, please leave them here.
Post Reply
Nabata
Newbie
Posts: 8
Joined: Mon Mar 12, 2007 5:39 am

Post by Nabata »

My last game i didnt host it i shared it with a guy and now i got like evicted and i took my code with me but i dont understand cron, my server has a cron tool i just dont know the command to run.

Also can heroes be added to the newest version of QM prom? I ask becuase i am sure you have all fiddled around here and there.

Lastly in a css of mine,

BODY
{
color: #FFFFAA;
background-color: #000000;
font-size: medium;
margin-left: 0;
margin-right: 0;
margin-top: 0;
margin-bottom: 0;
background-image:url('image.jpg');
background-repeat: no-repeat;
background-position: 60% 70%
}


In the bolded text it allows me to add a picture but it like shrinks the picture and doesnt make it a fulll backround i dont know why cause i am dumb :*laughs*:
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Probably the percentages.

We can't help you with cron as we don't use it. Same goes for QM Prom heroes. Cheers.
:wq
Nabata
Newbie
Posts: 8
Joined: Mon Mar 12, 2007 5:39 am

Post by Nabata »

Everything is fine but heroes, but ohwell i dont really need them i suppose. *laughs* thanks though.
Nabata
Newbie
Posts: 8
Joined: Mon Mar 12, 2007 5:39 am

Post by Nabata »

I know why hero's wont work but i dont know how to get rid of the code attached i dont need. Some hero's use functions i cant like.

$tr1 = array(); // non-gamefactored array
$warh[3] = "Mactalon"; // better at leader missions$peaceh[3] = "Bella"; // You can store more workers

Those make me get errors since i dont have those functions *laughs*.
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Well, what kind of errors are you getting? It seems to me that at most you should be seeing notices, which are hidden because the code spits them out by the bucketful anyway.
:wq
Nabata
Newbie
Posts: 8
Joined: Mon Mar 12, 2007 5:39 am

Post by Nabata »

Warning: Invalid argument supplied for foreach() in /home/koe/public_html/promi/heroes.php on line 29

Fatal error: Call to a member function assign() on a non-object in /home/koe/public_html/promi/heroes.php on line 144"

$reqland = $config['hero_landreq'];

<p>if($users['turnsused'] < 1000) $req_okall = 0;</p>

Lines 29 & 144 Some with the req command.
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

I don't know of us using any function called assign. However, it may be smarty-related. Could you please post all of heroes.php?

And by the way, you can just disable heroes by setting it in disabled_pages.

code: Select all

$config['disabled_pages'][] = 'heroes';
:wq
Nabata
Newbie
Posts: 8
Joined: Mon Mar 12, 2007 5:39 am

Post by Nabata »

I just disabled it thanks anyway
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members