View Single Post
  #139  
Old 12-18-2001, 01:46 PM
Tarion's Avatar
Tarion Tarion is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Bira,

i have a little problem viewing my modifie_profile template, wenn i add an bithday, the day and the month of the birthday is also showing in the selectboxes of your hack, i tried to get it work but it doesn't.

here the template:
PHP Code:
<tr>
    <
td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Abwesenheitsinformation</b></normalfont> <smallfont color="{tableheadtextcolor}" class=thtcolor>Benutze diese Option um anderen Mitglieder deine Abwesenheit zu signalisieren</smallfont></td>
</
tr>
<
tr>
    <
td bgcolor="{secondaltcolor}"><b><normalfont>Abwesenheits Status</normalfont></b><br><smallfont>$awaystatus</smallfont></td>
    <
td bgcolor="{secondaltcolor}"><normalfont><input type="radio" name="away" value="0" $away0checkedBin da &nbsp;&nbsp;&nbsp; <input type="radio" name="away" value="1" $away1checkedBin abwesend</normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="{firstaltcolor}"><b><normalfont>Abwesenheits Grund:</normalfont></b><br><smallfont>max200 Zeichen</smallfont></td>
    <
td bgcolor="{firstaltcolor}"><normalfont><input type="text" class="bginput" name="awayreason" value="$bbuserinfo[awayreason]size="30" maxlength="200"></normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="{secondaltcolor}"><b><normalfont>R?ckkehr Datum:</normalfont></b></td>
    <
td bgcolor="{secondaltcolor}">
        <
table border="0" cellspacing="0" cellpadding="2">
        <
tr>
        <
td><smallfont><select name="awayday">
            <
option value="">Tag</option>
            <
option value="1" $day01selected>1</option>
            <
option value="2" $day02selected>2</option>
            <
option value="3" $day03selected>3</option>
            <
option value="4" $day04selected>4</option>
            <
option value="5" $day05selected>5</option>
            <
option value="6" $day06selected>6</option>
            <
option value="7" $day07selected>7</option>
            <
option value="8" $day08selected>8</option>
            <
option value="9" $day09selected>9</option>
            <
option value="10" $day10selected>10</option>
            <
option value="11" $day11selected>11</option>
            <
option value="12" $day12selected>12</option>
            <
option value="13" $day13selected>13</option>
            <
option value="14" $day14selected>14</option>
            <
option value="15" $day15selected>15</option>
            <
option value="16" $day16selected>16</option>
            <
option value="17" $day17selected>17</option>
            <
option value="18" $day18selected>18</option>
            <
option value="19" $day19selected>19</option>
            <
option value="20" $day20selected>20</option>
            <
option value="21" $day21selected>21</option>
            <
option value="22" $day22selected>22</option>
            <
option value="23" $day23selected>23</option>
            <
option value="24" $day24selected>24</option>
            <
option value="25" $day25selected>25</option>
            <
option value="26" $day26selected>26</option>
            <
option value="27" $day27selected>27</option>
            <
option value="28" $day28selected>28</option>
            <
option value="29" $day29selected>29</option>
            <
option value="30" $day30selected>30</option>
            <
option value="31" $day31selected>31</option>
        </
select></smallfont></td>
        <
td>
<
td><smallfont><select name="awaymonth">
            <
option value="">Monat</option>
            <
option value="1" $month01selected>Januar</option>
            <
option value="2" $month02selected>Februar</option>
            <
option value="3" $month03selected>M?rz</option>
            <
option value="4" $month04selected>April</option>
            <
option value="5" $month05selected>Mai</option>
            <
option value="6" $month06selected>Juni</option>
            <
option value="7" $month07selected>Juli</option>
            <
option value="8" $month08selected>August</option>
            <
option value="9" $month09selected>September</option>
            <
option value="10" $month10selected>Oktober</option>
            <
option value="11" $month11selected>November</option>
            <
option value="12" $month12selected>Dezember</option>
        </
select></smallfont></td>
        <
td><smallfont><select name="awayyear">
            <
option value="">Jahr</option>
            <
option value="01" $year2001selected>2001</option>
            <
option value="02" $year2002selected>2002</option>
            <
option value="03" $year2003selected>2003</option>
            <
option value="04" $year2004selected>2004</option>
        </
select></smallfont></td>
        </
tr>
        </
table>
    </
td>
</
tr
and here the part of member.php i insert your code:

PHP Code:
  // Get referrals
  
if ($usereferrer) {
    if (
$backcolor=="#13486D") {
      
$backcolor="#1C5780";
      
$bgclass "alt2";
    } else {
      
$backcolor="#13486D";
      
$bgclass "alt1";
    }
    
$refcount $DB_site->query_first("SELECT count(*) AS count
                                       FROM user
                                       WHERE referrerid = '
$userinfo[userid]'");
    
$referrals $refcount[count];
    eval(
"\$referrals = \"".gettemplate("getinfo_referrals")."\";");
  }
// Leave Away Message in Profile (v1.2)
  
if ($userinfo[away]=="1") {
      
$sincedate vbdate($dateformat$userinfo[awaydate]);
    if (
$userinfo[returndate]=="0000-00-00") {
        
$returndate "Unbekannt";
    } else {
          
$returnaway explode("-"$userinfo[returndate]);
          
$returndate vbdate($dateformatmktime(0,0,0,$returnaway[1],$returnaway[2],$returnaway[0]));
      }
      eval(
"\$away .= \"".gettemplate("getinfo_away")."\";");
  } else {
      
$away "";
  }
// Leave Away Message in Profile (v1.2)



  // get extra profile fields 
THX Bira

Sorry but the template is in german, i hope you understand this so far
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01333 seconds
  • Memory Usage 1,902KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete