Hacking it

April 13, 2007

When I’m logged in I now have the link to ‘Admin’ grouped under ‘user’. This is done at the loginform.php by placing below line after if ($user) {….

Here is [a href="[?php Site::out_url('admin'); ?]" title="Admin area"]Dashboard[/a]

Only just found out that I can place core classes with my hacks in \user\classes\ folder. By doing this classes under this folder will override those under \system\classes\. So far I have made changes to utils.php and userhandler.php.

When I’m logged in I’ll be redirected to the blog, i.e. posts.php instead of ‘admin’, likewise after I logged out I’ll be here again instead of seeing “IT WORKS”, how nice thanks Owen.

In line 240 of utils.php …'[‘.$current.’]’…. is to indicate the current page number but at the same time in line 242 …?’class=”current-page”‘:…. is there to let me style ‘current-page’.

I removed the square brackets [ ] and inserted below in CSS

a.current-page {
color:#mycolor;
background-color:#mycolor;
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: