Recent Topics

1 Jan 03, 2006 19:19    

Hello, I've been working on customizing my blog, and currently I have a static blog that I'm using as my homepage, so I had just a few questions.

1. When posting blogs, the default blog that pops up when I log in is Blog A, my custom blog is the last tab and I have to select it every time, is there a way to change it and make it the first tab - aside from deleting all the other blogs? :)

2. In the admin menu when writing a blog, there are all these shortcuts like ins, del, img, etc. Is there a way to edit them or add new ones? (I need to make a shortcut for my wife to post thumbnails it'll look something like this <div class = "thumbs"><a href = ""><img src = "" alt = ""></a></div>)

3. How do I display the time it took to generate the page for b2evo?

Thanks in advance for your help, it is really appretiated :D

Edit: Found the answer to #2 in plugins/_quicktags.plugins.php got it to work, still need #1 & #3 plz :)

2 Jan 03, 2006 22:02

1. Set the access parameters for the new blog to 'default on index'. It's in the blogs tab. That should make index.php go straight to the new blog. You may also have to change the access parameters for the current default blog.

3 Jan 03, 2006 22:09

3. There's nothing built in that does this (as far as I know), but I found this on Hotscripts.com:

<?php

// Insert at the very top of your page

$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$start = $time;

?>




<?php

// Place at the very bottom of your page

$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$finish = $time;
$totaltime = ($finish - $start);
printf ("Page took %f seconds to load.", $totaltime);
// The above line can be changed but remember to keep %f 

?>

I haven't tested it, so let me know if it works.

reference: http://www.hotscripts.com/Detailed/49118.html

4 Jan 03, 2006 23:26

personman,
Thanks for that script it worked great! I'm not sure how accurate it is, but it seemed pretty reasonable to me. Quick question on that, it's spitting out time to the millionths of a second, any way to format it to 3 places?

Also, about question #1, I already have the blog posting to my index.php, what I was wondering is that in the admin page where you go to write the blog, it defaults to Blog A, and I have to tab over to my custom blog everytime I have to write a blog. Any way to change the order of tabs in the admin screen? Thanks for your help!


Form is loading...