View previous topic :: View next topic |
Author |
Message |
blog17
Joined: 28 Jan 2003 Posts: 144 Location: London, UK
|
Posted: Mon Feb 17, 2003 1:58 pm Post subject: b2stats. |
|
|
All of the b2stats download locations dont work!!! I would really like to use this on my site but I cannot find it. |
|
Back to top |
|
 |
GamerZ
Joined: 15 May 2002 Posts: 537 Location: Singapore
|
|
Back to top |
|
 |
blog17
Joined: 28 Jan 2003 Posts: 144 Location: London, UK
|
Posted: Mon Feb 17, 2003 7:24 pm Post subject: |
|
|
Hi.
Great, but I get this error when trying to include it into a page:
Fatal error: Cannot redeclare get_currentuserinfo() in .../public_html/community/b2-include/b2functions.php on line 20 |
|
Back to top |
|
 |
GamerZ
Joined: 15 May 2002 Posts: 537 Location: Singapore
|
Posted: Tue Feb 18, 2003 10:21 am Post subject: |
|
|
u canot include it, u need to run it standalone _________________
++ GamerZ.Per.Sg - Complex Simplicity |
|
Back to top |
|
 |
blog17
Joined: 28 Jan 2003 Posts: 144 Location: London, UK
|
Posted: Fri Feb 21, 2003 1:22 pm Post subject: |
|
|
Hi;
I dont get it then -- how do people make their b2stats look like their blogs? I tried just putting the code into where I want the stats to appear, but I get the same message... _________________ Check this out! The ULTIMATE site! |
|
Back to top |
|
 |
GamerZ
Joined: 15 May 2002 Posts: 537 Location: Singapore
|
Posted: Fri Feb 21, 2003 1:51 pm Post subject: |
|
|
blog17 wrote: | Hi;
I dont get it then -- how do people make their b2stats look like their blogs? I tried just putting the code into where I want the stats to appear, but I get the same message... | hmm, that u need to have at least a little php knowdlge =D _________________
++ GamerZ.Per.Sg - Complex Simplicity |
|
Back to top |
|
 |
blog17
Joined: 28 Jan 2003 Posts: 144 Location: London, UK
|
|
Back to top |
|
 |
GamerZ
Joined: 15 May 2002 Posts: 537 Location: Singapore
|
Posted: Fri Feb 21, 2003 5:28 pm Post subject: |
|
|
if website looks a bit too complicated no hard feelings _________________
++ GamerZ.Per.Sg - Complex Simplicity |
|
Back to top |
|
 |
transmothra
Joined: 01 Jan 2003 Posts: 23 Location: Dayton, OH
|
Posted: Fri Feb 21, 2003 8:24 pm Post subject: |
|
|
that's life. you just got to open it up in a text editor and start changing things. be careful not to change any actual PHP, especially the longish bits, but if you see something that looks like HTML, then go ahead and change that to your liking. you can take variables (usually have a dollar sign in front) and move them around, too. you'll find that if you just use your head wisely, you can do what you want with little fuss. i don't know PHP very well at all and i got b2 completely templated how i like it on my site within a couple of hours.
always remember to SAVE COPIES FOR BACKUP!!! _________________ ...do you believe that?
-transmothra, KSC
[url]mp3.com/transmothra[/url]|[url]meat-thing.com[/url]|[url]technothrope.com[/url]
[url]subgenius.com[/url]~[url]adbusters.org[/url] |
|
Back to top |
|
 |
wteening
Joined: 12 Jul 2002 Posts: 71
|
Posted: Sat Mar 01, 2003 11:13 pm Post subject: |
|
|
Gamer, I totally LOVE this hack, but there's one tiny thing going wrong. When I display the comments from one user, some comments are displayed twice?! Is it me screwing up my database, or is something wrong with the hack?
Check it out:
http://www.krabbels.com/b2stats.php?user=Berklee |
|
Back to top |
|
 |
wteening
Joined: 12 Jul 2002 Posts: 71
|
Posted: Sun Mar 02, 2003 9:36 am Post subject: |
|
|
Somehow, it doesn't seem to do it anymore
What a good night's sleep can be good for |
|
Back to top |
|
 |
gengar56
Joined: 07 Mar 2003 Posts: 48 Location: California, USA
|
|
Back to top |
|
 |
stranger than fishing
Joined: 26 Feb 2003 Posts: 12 Location: Sydney
|
Posted: Mon Mar 17, 2003 10:18 am Post subject: |
|
|
How can I change the dates 'last 5 comments' to my liking? Currently it displays like this 2003-02-26 15:54:33.. But I would like to change this.. I want it to be formatted like '15:54:33, 26 feb 2003' that
thanks  |
|
Back to top |
|
 |
GamerZ
Joined: 15 May 2002 Posts: 537 Location: Singapore
|
Posted: Mon Mar 17, 2003 2:10 pm Post subject: |
|
|
maybe can try replace $lc vaiable initial code with this [php:1:3170c248a3]$lc = "SELECT ID, post_title, comment_author, DATE_FORMAT(comment_date, '%e.%c.%Y @ %H:%i') FROM $tableposts, $tablecomments WHERE $tableposts.ID=$tablecomments.comment_post_ID AND comment_content NOT LIKE '%<trackback />%' AND comment_content NOT LIKE '%<pingback />%' ORDER BY $tablecomments.comment_date DESC LIMIT 5";[/php:1:3170c248a3] _________________
++ GamerZ.Per.Sg - Complex Simplicity |
|
Back to top |
|
 |
blog17
Joined: 28 Jan 2003 Posts: 144 Location: London, UK
|
|
Back to top |
|
 |
|