anywere.... f.e. you can put it in separate file, called it modules/birthday.php f.e. and :
require PUN_ROOT.'modules/birthday.php';
echo $out_list;
You are not logged in. Please login or register.
PunBB Forums → Posts by seva
anywere.... f.e. you can put it in separate file, called it modules/birthday.php f.e. and :
require PUN_ROOT.'modules/birthday.php';
echo $out_list;
delete "echo $moderators"
keyword: css
yea
it was based on 1.2.7
then we rewrite it and add all needed modules and pages )
>>You should really convet ur footer from english to your own language, It is just weird
Fixed
And also diff.styles:
http://hostel.nstu.ru/img/style1.jpg
http://hostel.nstu.ru/img/style2.jpg
http://hostel.nstu.ru/img/style3.jpg
Oooh, sorry, of coz:
In viewforum.php:
if ($id == n)
if ($pun_user['num_posts'] < 50)
message($lang_common['No view']);
where n - your private forum id
And in viewtopic.php after
$cur_topic = $db->fetch_assoc($result);
$forum_id = $cur_topic['forum_id'];
if ($forum_id == n)
if ($pun_user['num_posts'] < 50)
message($lang_common['No view']);
add in the beginning of viewtopic.php and viewforum.php (after require PUN_ROOT.'include/common.php';)
if ($pun_user['num_posts'] < 50)
message($lang_common['No view']);
after this code var $out_list will contain list of users, who have birthday in 3 days
Hmm.... no, u can only set another language by default, guests can't change language
????? ??????? ?????? ?????????? ???????????
$date = explode ('.',date("d.m.Y"));
$day = $date[0]+0;
$month = $date[1]+0;
$year = $date[2];
$cur_date="%-".$month."-".$day;
if ($month=="1"||$month=="3"||$month=="5"||$month=="7"||$month=="8"||$month=="10"||$month=="12") $days=31;
if ($month=="4"||$month=="6"||$month=="9"||$month=="11") $days=30;
if ($month=="2")
{
if(date("Y")%4==0) $days=29;
else $days=28;
}
$cur_date2="%-".$month."-".($day+1);
$cur_date3="%-".$month."-".($day+2);
if($day == $days){
$cur_date2="%-".($month+1)."-1";
$cur_date3="%-".($month+1)."-2";
}
$out_list="";
$query = 'select id,username,birthday from '.$db->prefix.'users where birthday ILIKE \''.$cur_date.'\' or birthday LIKE \''.$cur_date2.'\' or birthday LIKE \''.$cur_date3.'\' order by birthday ASC';
//die($query);
$result = $db->query($query) or error('Unable to fetch user list', __FILE__, __LINE__, $db->error());;
$u_count = $db->num_rows($result);
if ($u_count > 0)
{
while($row=$db->fetch_object($result))
{
$a=strftime("%d-%m-%Y",strtotime($row->birthday));
$b=$row->username;
$id=$row->id;
$out_list=$out_list."\t<li> » <a href=\"/profile.php?id=".$id."\">".$b."</a> </li>\n";
}
something like this
Find
case 'personal':{$form = extract_elements(array('blablabla'));
Replace with
case 'personal':{$form = extract_elements(array('username','realname','address','website','state','zipcode','phone','mobile','workpone','location','birthday','email'));
Hm.. nice bag
By the way, forum description field may contain HTML.
and header.php for replaceing
? viewforum.php ? viewtopic.php ? ?????? ?????
if ($pun_user['g_read_board'] == '0')
message($lang_common['No view']);
??????
if ($pun_user['id'] != $id1 && $pun_user['id'] != $id2)
message($lang_common['No view']);
??? $id1 - ???? id, ? $id2 - id ????? ???????
nyuk, ????? ?????????? ??????????????? ??????? ?????????. ???????? ?? ????????? ???????? ??? ???????????, ? ????? "??????" ??????? ???? ??? ????? ???????? ? ?????????? ? ???????????..
?????? ???? ????????: "???????? ????????? ?? ?????? ???? ? ??????". ? ???????, ??? ???? ??? ????????? ?? ????? ???? ???????? ? ????? ??????.
? ?????????, ????????.
$row = $db->query("SELECT posted FROM prefix_posts WHERE topic_id=$idto DESC LIMIT 1");
$arr = $db->fetch_row($row);
$timestamp = $arr['posted'];
$result = $db->query("SELECT posted FROM prefix_posts WHERE topic_id=$idfrom");
while ($row1 = $db->fetch_row($result)) {
if ($row1['posted'] < $timestamp)
$result = $db->query("UPDATE prefix_posts SET topic_id=$idto, posted=$timestamp+1 WHERE topic_id=$idfrom")
else $result = $db->query("UPDATE prefix_posts SET topic_id=$idto WHERE topic_id=$idfrom");
}
??? ???? ??????
$idfrom - id ?????? ?????? ?????????? ?????
$idto - id ?????? ???? ?????????? ?????
???????, ??????? ???????????, ??? ??? ?? ??????, ?? ? ?????? ?????, ?? ????????. ???-?? ???? ?? ??
InternetExplorer don't display some <dt> and <dd> in right way
some strings "goes" right
Is there any advises or suggestions? What tags do u use? Defaults?
p.s.
table - isn't solution
open %pundir%/include/parser.php
find
function handle_url_tag($url, $link = '')
find
return '<a href="'.$full_url.'">'.$link.'</a>';
change to
return '<a href="'.$full_url.'" target="_blank">'.$link.'</a>';
What about make post/topics shown/unshown .. just add field
'show' to DB, add into query string AND show=1
when you wanna hide message you'll set show to null
Hm.. it's wrong users, that discussed same things in diff. topics ban them
PunBB Forums → Posts by seva
Powered by PunBB, supported by Informer Technologies, Inc.