yeah im trying to do it wink thx for the advice. Not sure though....

and not i did a good job; that was you smile hehe i just copied and follow your

haha u are right; im silly again....

thank you very much; love u again smile

here is the link to Forum:

when u look at the link (over the month) u will see it isnt right hehe

and yes cause im vietnamese wink

twohawks wrote:

Your welcome, I am glad if I can help.
In my last post I edited and asked too late...
nding it with your own div/stuyle/class ?
Looks good.

Also, why is it going to 404 page when I click the month?

1. yes i did
2.thats what i want to ask too; im checking the link atm now

woa it is cool now after i remove the <div> tag; thank you very much; would be fell in love with you tongue

thx again

i got it twohawks; last time u told me to go there; but yeah now i got the calendar show on my front page.

Just now i forgot to put this one at my index.php

require PUN_ROOT.'include/common.php';

silly i am.

but the calendar doesnt show up right take a look here i mean the position. i wonder how and where i can fix it for right with my existing template.

Thanks a lot for your help

i got this error:

Fatal error: Call to a member function on a non-object in /srv/www/vhosts/xxx/httpdocs/Forum/include/user/showminical2.php on line 115

thanks im trying your codes; yeah i know about PHP code as well as CSS ; well not as good as you but still understand hehe... i will tell u what is the result

Kha0sK1d wrote:

It finally hit me earlier yesterday. The way I have it set up is all the ratings go in a commonpool.

##              +----------+------------------+------+-----+---------+-------+
##              | Field    | Type             | Null | Key | Default | Extra |
##              +----------+------------------+------+-----+---------+-------+
##              | rate     | tinyint(2)       |      |     | 0       |       |
##              | user_id  | int(10) unsigned |      |     | 0       |       |
##              | topic_id | int(10) unsigned |      |     | 0       |       |
##              +----------+------------------+------+-----+---------+-------+

The overall rating for a topic is not stored; only the individual ratings from a person. So if two people vote for the same topic, it is possible that it could show up twice. What you would have to do is select all distinct topic_id and then individually calculate the averages. To find top 5 you would have to store results in an array and do a lot more querying.

u gonna have a new release? i hope so... if will; i hope it will be included some functions or tables that can show the top rate wink

twohawks wrote:

Okay, you went offline - must have just missed you 8^P
Tell you what I think, but I am not the expert here (so I would have to mess with it to get to the definitive answer)...
...but... If you are running the punbb forum on your site and you have the calendar installed, then the minical should work wherever you wish to put it in your other php pages (but not html pages) on your site... I bet all you would have to do is maybe adjust some of the link/pointers.

That's where i think it begins.

aye sorry i fell asleep lol....

My website is a portal; so i just want to put the calendar outside as i did to most of the punbb function. however this calendar  i dunno how tongue

thx for your reply

PS: yes my foum and my front page under the same host/database/root; but i just want to do that; so when members open the main page; they can see the calendar as well as what events going on... no need untill go to forum wink

thanks a lot ... and btw can i just include the minical in my main page so it can be showed? i mean not in the forum ?


(2 replies, posted in Feature requests)

thx thats what im looking for however i still need to learn how to use it tongue


(2 replies, posted in Feature requests)

Hi guys;

My forum is about IT; so have some ppl they quote/code the PHP code; i just wonder can we change the color for the fonts inside the CODE tag looks like PHP in Dreamweaver?


showminical.php what is this file? i cant find it at all....

thanks for your reply; im looking for it but btw; what i mean is can i use the GLOBAL function so that i can put it on my front page; not forum front page

twohawks wrote:

mystic, please post the code at line 959, with the preceding and following lines as well, in the referenced file, and maybe we can tell you what the error is and how to deal with it.

sorry for the long reply; here is the code

if($month!=0 && $day!=0){
        $Nyear = (strlen($year)!=4)? NULL: $year;
                $datestamp = mktime(0,0,0,$month,$day,0)
                if ($lang_calendar['Date_format'] == 'US') {
                   $birthday = date("F jS ", $datestamp).$Nyear;
                } else {
                   $birthday = date("j ", $datestamp).$lang_calendar[(date("F", $datestamp))].$Nyear;
        $birthday = $lang_profile['Unknown'];

i fixed it; i realise that at

$datestamp = mktime(0,0,0,$month,$day,0)

dont have ;

after i put it in; it worked perfect.

by the way; may i ask there are any chance that we can show the small calendar at the front page, not in the forum?



(6 replies, posted in PunBB 1.2 discussion) wink

*my hope is coming back ... * tongue

i just fixed it thanks; just a small part i forgot. thanks again...

aye thanks for reply.... i know nothing about mysql... so i think have to give up the top rate...

need to bother u guys again; ive done chaging domain name, i changed all the path; the forum works fine, but the extern.php always point the active news to the old domain. how do i fix it please?

elbekko wrote:

Unless topics can get multiple ratings it shouldn't be any problem =/

I know it whould be fine; but i cant fine why it like that. I dont think the topic can get multiple ratings, it only can get one for each member....


(6 replies, posted in PunBB 1.2 discussion)

Here is my code now

<? $resulta = $db->query('SELECT, t.poster, t.subject, r.topic_id , r.rate FROM '.$db->prefix.'topics AS t JOIN '.$db->prefix.'Ratings AS r ON ORDER BY r.rate DESC LIMIT 5') or error('Unable to fetch ranked topics', __FILE__, __LINE__, $db->error()); 
while ($dataa = $db->fetch_assoc($resulta))
echo "".'<li><a href="http://xxxxx/Forum/viewtopic.php?id='.$dataa['topic_id'].'">'.pun_htmlspecialchars($dataa['subject']).'</a></li> '.""; 

the subject, it apears right on main page, however (again).... some of the topic just show 2 times, it should be only 1 time for each toping beacuse it was orderred by rate and DESC LIMIT...

I wonder what did i do wrong?

Thanks for youre reply

cool u are my god <3 thanks a lot