Gönderen Konu: Mwp 2.12 Duyuru Sorunu Cözülmüştür [çözüldü]  (Okunma sayısı 1304 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı ziyaretci12

  • İleti: 0
  • Puan: 2
Mwp 2.12 Duyuru Sorunu Cözülmüştür [çözüldü]
« : Mart 11, 2007, 14:16:34 ÖS »
Sizde bulunan admin_announce_add dosyayı acın ve sizin dosyadaki kodları silin aşağda belirttilmiş dokları ekeleyiniz ve ekededikden sonra kaydederek ftp atıyorsunuz sadece iki dosya değişecek

1: admin_announce_add.asp değiştirin

Alıntı
<%
'<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
'<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
'<> Copyright (C) 2004-2005 Tom Nance (SkyDogg) All Rights Reserved
'<> Events Suite Copyright (C) 2004-2005 Ken Smiley All Rights Reserved
'<>
'<> By using this program, you are agreeing to the terms of the
'<> GNU General Public License.
'<>
'<> This program is free software; you can redistribute it and/or
'<> modify it under the terms of the GNU General Public License
'<> as published by the Free Software Foundation; either version 2
'<> of the License, or any later version.
'<>
'<> All copyright notices regarding MaxWebPortal must remain intact
'<> in the scripts and in the outputted HTML.
'<> The "powered by" text/logo with a link back to
'<> http://www.maxwebportal.info in the footer of the pages MUST
'<> remain visible when the pages are viewed on the internet or intranet.
'<>
'<> Support can be obtained from support forums at:
'<> http://www.maxwebportal.info
'<>
'<> Email: maxweb@maxwebportal.info
'** Türkçeye Çevirenler: OgReTmEnLeRiM.NeT | Bülent KARAYAZI & UzmanWeb.Net | Adem TÜRK
'***********************************************************************
'<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
'<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
'***********************************************************************
'** Copyright (C) 2001 - 2004 Max Yuan All Rights Reserved
'**
'** By using this program, you are agreeing to the terms of the
'** GNU General Public License.
'**
'** This program is free software; you can redistribute it and/or
'** modify it under the terms of the GNU General Public License
'** as published by the Free Software Foundation; either version 2
'** of the License, or any later version.
'**
'** All copyright notices regarding MaxWebPortal must remain intact
'** in the scripts and in the outputted HTML.
'** The "powered by" text/logo with a link back to
'** http://www.maxwebportal.com in the footer of the pages MUST
'** remain visible when the pages are viewed on the internet or intranet.
'**
'** Support can be obtained from support forums at:
'** http://www.maxwebportal.com
'**
'** Email: maxwebportal@hotmail.com
'** ICQ: 148111300
'***********************************************************************
'** This Page Contains source code of Snitz Forums 2000
'***********************************************************************
'#################################################################################
'## Copyright (C) 2000  Michael Anderson and Pierre Gorissen
'##
'## This program is free software; you can redistribute it and/or
'## modify it under the terms of the GNU General Public License
'## as published by the Free Software Foundation; either version 2
'## of the License, or any later version.
'##
'## All copyright notices regarding Snitz Forums 2000
'## must remain intact in the scripts and in the outputted HTML
'## The "powered by" text/logo with a link back to
'## http://forum.snitz.com in the footer of the pages MUST
'## remain visible when the pages are viewed on the internet or intranet.
'##
'## This program is distributed in the hope that it will be useful,
'## but WITHOUT ANY WARRANTY; without even the implied warranty of
'## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'## GNU General Public License for more details.
'##
'## You should have received a copy of the GNU General Public License
'## along with this program; if not, write to the Free Software
'## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
'##
'## Support can be obtained from support forums at:
'## http://forum.snitz.com
'##
'## Correspondence and Marketing Questions can be sent to:
'## reinhold@bigfoot.com
'##
'## or
'##
'## Snitz Communications
'## C/O: Michael Anderson
'## PO Box 200
'## Harpswell, ME 04079
'#################################################################################
%><!--#INCLUDE FILE="config.asp" -->
<!--#INCLUDE FILE="inc_adminvar.asp" --><%If Session(strCookieURL & "Approval") = "256697926329" and instr(strWebMaster,lcase(strAdmin1UserName)&",") <> 0 and not lcase(strAdmin1UserName) = "" and not lcase(strAdmin1UserName) = " " Then %>
<!--#INCLUDE file="inc_functions.asp" -->
<!--#INCLUDE file="inc_top.asp" -->
<script language="JavaScript" type="text/javascript" src="inc_jscode.js"></script>
<script language="JavaScript">
<!--
function OpenPreview()
{
   var curCookie = "strMessagePreview=" + escape(document.PostTopic.Message.value);
   document.cookie = curCookie;
   popupWin = window.open('pop_preview.asp', 'preview_page', 'scrollbars=yes,width=550,height=250')
}
//-->
</script>
<table border="0" width="100%" align="center">
  <tr>
    <td width="33%" align="left" nowrap><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
    <img src="images/icons/icon_folder_open.gif" height=15 width=15 border="0">&nbsp;<a href="default.asp">Ana Sayfa[/url]

    <img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_folder_open.gif" height=15 width=15 border="0">&nbsp;<a href="admin_home.asp">Yönetici Paneli[/url]

    <img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_folder_open.gif" height=15 width=15 border="0">&nbsp;<a href="admin_announce_home.asp">Duyurular[/url]

    <img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_folder_open_topic.gif" height=15 width=15 border="0">&nbsp;Yeni Duyuru Ekleyin...</font></td>
  </tr>
</table>
<%   Function Date_GetYear( dDate )
   Date_GetYear = DatePart( "yyyy", dDate )
   End Function

   Function Date_GetMonthNo( dDate )
   Date_GetMonthNo = DatePart( "m", dDate )
   End Function

   Function Date_GetDayNo( dDate )
   Date_GetDayNo = DatePart( "d", dDate )
   End Function

   Function Date_GetMonthName( nMonthNo )
   Select Case nMonthNo
   Case 1
   Date_GetMonthName = "Ocak"
   Case 2
   Date_GetMonthName = "Şubat"
   Case 3
   Date_GetMonthName = "Mart"
   Case 4
   Date_GetMonthName = "Nisan"
   Case 5
   Date_GetMonthName = "Mayıs"
   Case 6
   Date_GetMonthName = "Haziran"
   Case 7
   Date_GetMonthName = "Temmuz"
   Case 8
   Date_GetMonthName = "Ağustos"
   Case 9
   Date_GetMonthName = "Eylül"
   Case 10
   Date_GetMonthName = "Ekim"
   Case 11
   Date_GetMonthName = "Kasım"
   Case 12
   Date_GetMonthName = "Aralık"
   End Select
   End Function

strEndDayDefault = Date_GetDayNo(DateAdd( "d", 0, strForumTimeAdjust) )
strEndMonthDefault = Date_GetMonthNo(DateAdd( "m", 1, strForumTimeAdjust) )
strEndYearDefault = Date_GetYear(DateAdd( "yyyy", 0, strForumTimeAdjust) )

    if Request.Form("Method_Type") = "Write_Configuration" then

   txtSubject = ChkString(Request.Form("Subject"),"title")
   txtMessage = ChkString(Request.Form("Message"),"message")
   txtStartDate = Request.Form("StartYearName") & doublenum(Request.Form("StartMonthName")) & doublenum(Request.Form("StartDayName")) & "000001"
   txtEndDate = Request.Form("EndYearName") & doublenum(Request.Form("EndMonthName")) & doublenum(Request.Form("EndDayName")) & "000001"

   Err_Msg = ""

   if txtSubject = " " then
      Err_Msg = Err_Msg & "<li>Duyuru Konusunu Yazmadınız!</li>"
   end if

   if txtMessage = " " then
      Err_Msg = Err_Msg & "<li>Duyuru İçeriğini Yazmadınız!</li>"
   end if

   if txtStartDate = txtEndDate then
      Err_Msg = Err_Msg & "<li>Duyurunun Başlangıcı İle Bitişi Aynı Tarih Olamaz!</li>"
   end if

   if txtStartDate > txtEndDate then
      Err_Msg = Err_Msg & "<li>Duyurunun Bitiş Tarihi Başlangıç Tarihinden Erken Olamaz!</li>"
   end if

   if Err_Msg = "" then

        txtMessage = ChkString(Request.Form("Message"),"message")
      txtSubject = ChkString(Request.Form("Subject"),"title")
      strStartDate = Request.Form("StartYearName") & doublenum(Request.Form("StartMonthName")) & doublenum(Request.Form("StartDayName")) & "000001"
      strEndDate = Request.Form("EndYearName") & doublenum(Request.Form("EndMonthName")) & doublenum(Request.Form("EndDayName")) & "000001"

      '## Forum_SQL - Do DB Update
      strSql = "INSERT INTO " & strTablePrefix & "ANNOUNCE ("
      strSql = strSql & "A_AUTHOR"
      strSql = strSql & ", A_SUBJECT"
      strSql = strSql & ", A_MESSAGE"
      strSql = strSql & ", A_START_DATE"
      strSql = strSql & ", A_END_DATE"
      strSql = strSql & ") VALUES ("
      strSql = strSql & "'" & strDBNTUserName & "'"
      strSql = strSql & ", '" & txtSubject & "'"
      strSql = strSql & ", '" & txtMessage & "'"
      strSql = strSql & ", " & "'" & strStartDate & "'"
      strSql = strSql & ", " & "'" & strEndDate & "'"
      strSql = strSql & ")"

      my_Conn.Execute (strSql)
%>
      <p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Duyuru Eklendi!</font></p>
      <meta http-equiv="Refresh" content="2; URL=admin_announce_home.asp">

      <p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Tebrikler!</font></p>

      <p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="admin_announce_home.asp">Duyuru Yönetimi Sayfasına Geri Dön</font>[/url]</p>
<%   else %>
      <p align=center><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Yazdığınız Bilgilerde Bir Problem Var</font></p>

      <table align=center border=0>
        <tr>
          <td><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
            <ul>
         <% =Err_Msg %>
            </ul>
          </font></td>
        </tr>
      </table>

      <p align=center><font face="<% =strDefaultFontFace %>" size=<% =strDefaultFontSize %>><a href="JavaScript:history.go(-1)">Geri Dönüp Bilgilerinizi Kontrol Edin[/url]</font></p>
<%   end if %>
<%  else %>
   <form action="admin_announce_add.asp" method="post" id="formEle" name="PostTopic">
   <input type="hidden" name="Method_Type" value="Write_Configuration">
   <table border="0" cellspacing="0" cellpadding="0" align=center>
     <tr>
       <td bgcolor="<% =strPopUpBorderColor %>">
         <table border="0" cellspacing="1" cellpadding="1">
      <tr valign="top">
        <td align="center" bgcolor="<% =strHeadCellColor %>" colspan="2"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>">Yeni Duyuru Oluşturun</font></td>
      </tr>
      <tr valign="top">
        <td bgColor="<% =strPopUpTableColor %>" align="right"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Konu:&nbsp;</font></td>
        <td bgColor="<% =strPopUpTableColor %>"><input maxLength="50" name="Subject" value="<% =Trim(ChkString(TxtSub,"display")) %>" size="30" tabindex="1"></td>
      </tr>
      <tr valign="top">
        <td bgColor="<% =strPopUpTableColor %>" align="right"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Biçim:</font></td>
        <td bgColor="<% =strPopUpTableColor %>" align="left"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
          <select name="font" onChange="thelp(this.options[this.selectedIndex].value)">
            <option value="1">Yardım&nbsp;</option>
            <option selected value="0">Tam&nbsp;</option>
            <option value="2">Temel&nbsp;</option>
          </select></font></td>
      </tr>
      <!--#INCLUDE FILE="inc_post_buttons.asp" --> 
      <tr valign="top">
        <td bgColor="<% =strPopUpTableColor %>" align="right"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Duyuru İçeriği:&nbsp;</font>


          <table border=0>
            <tr>
              <td align="left" nowrap><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
           <% if strAllowHTML = "1" then %>
                  * HTML Kod Kullanımı Açık

           <% else %>
                  * HTML Kod Kullanımı Kapalı

           <% end if %>
           <% if strAllowForumCode = "1" then %>
                  * <a href="JavaScript:openWindow3('pop_forum_code.asp')">Forum Kodu[/url] Kullanımı Açık

           <% else %>
                  * Forum Kodu Kullanımı Kapalı

           <% end if %>
                </font>
              </td>
                 </tr>
               </table>
             </td>
            <td bgColor="<% =strPopUpTableColor %>"><textarea name="Message" cols="33" rows=6 wrap="virtual" onfocus="getActiveText(this)" onclick="getActiveText(this)" onchange="getActiveText(this)" onkeyup="getActiveText(this)" onselect="getActiveText(this)" tabindex="2"><% =Trim(cleancode(TxtMsg)) %></textarea></td>
      </tr>
           <tr>
        <td align="right" bgcolor="<% =strPopUpTableColor %>" colspan="1">
          <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Başlangıç Tarihi:&nbsp;</font><BR>
          <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">Duyuru bu tarihte görüntülenmeye başlar.<BR></font>
        </td>
        <td align="left" bgcolor="<% =strPopUpTableColor %>" colspan="1">
          <table border="0" cellspacing="1" cellpadding="1">
            <tr valign="top">
              <td><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><B>Gün</B></FONT></td>
         <td><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><B>Ay</B></FONT></td>
         <td><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><B>Yıl</B></FONT>
</td>
            </tr>
            <tr>
         <td><SELECT NAME="StartDayName"><% Date_FillBoxWithDays "" %></SELECT></td>
         <td><SELECT NAME="StartMonthName"><% Date_FillBoxWithMonths "", True %></SELECT></td>
         <td><SELECT NAME="StartYearName"><% Date_FillBoxWithYears 2007, 2020, "" %></SELECT></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td align="right" bgcolor="<% =strPopUpTableColor %>" colspan="1">
          <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Bitiş Tarihi:&nbsp;</font><BR>
          <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">Duyuru bu tarihten sonra görüntülenmez.<BR></font>
        </td>
        <td align="left" bgcolor="<% =strPopUpTableColor %>" colspan="1">
          <table border="0" cellspacing="1" cellpadding="1">
            <tr valign="top">
         <td><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><B>Gün</B></FONT></td>
         <td><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><B>Ay</B></FONT></td>
         <td><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><B>Yıl</B></FONT>
</td>
            </tr>
            <tr>
         <td><SELECT NAME="EndDayName"><% Date_FillBoxWithDays strEndDayDefault %></SELECT></td>
         <td><SELECT NAME="EndMonthName"><% Date_FillBoxWithMonths strEndMonthDefault, True %></SELECT></td>
         <td><SELECT NAME="EndYearName"><% Date_FillBoxWithYears 2007, 2020, strEndYearDefault %></SELECT></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr valign="top">
        <td bgColor="<% =strPopUpTableColor %>" colspan="2" align="center">&nbsp;</td>
      </tr>
      <tr valign="top">
        <td bgColor="<% =strPopUpTableColor %>" colspan="2" align="center"><input type="submit" value=" Duyuruyu Gönder " id="submit1" name="submit1" tabindex="3" class="button"> <input class="button" name="Preview" type="button" value=" Önizleme " onclick="OpenPreview()"> <input type="reset" value=" İptal Et " id="reset1" name="reset1" class="button"></td>
      </tr>
         </table>
       </td>
     </tr>
   </table>
   </form>
   </font>
<%  end if %>
<!--#INCLUDE file="inc_footer.asp" -->
<% else %>
   <% Response.Redirect "admin_login.asp" %>
<% end if %>
<%
Sub Date_FillBoxWithYears( nFirst, nLast, nDefault )
Dim nYear
If nDefault = "" Then
   nDefault = Date_GetYear( strForumTimeAdjust )
End If
For nYear = nFirst To nLast
         Response.Write "<option"
         If nYear = nDefault Then
         Response.Write " selected=yes"
         End If
         Response.Write ">" & nYear & "</option>" & vbcrlf
Next
End Sub

Sub Date_FillBoxWithMonths( nDefault, fUseNumbersAsValue )
Dim nMonth
If nDefault = "" Then
   nDefault = Date_GetMonthNo( strForumTimeAdjust )
End If
For nMonth = 1 To 12
         Response.Write "<option"
         If nMonth = nDefault Then
         Response.Write " selected=yes"
         End If
         If fUseNumbersAsValue = True Then
         Response.Write " value=" & nMonth
         End If
         Response.Write ">" & Date_GetMonthName(nMonth) & "</option>" & vbcrlf
Next
End Sub

Sub Date_FillBoxWithDays( nDefault )
Dim nDay
If nDefault = "" Then
   nDefault = Date_GetDayNo( strForumTimeAdjust )
End If
For nDay = 1 To 31
         Response.Write "<option"
         If nDay = nDefault Then
         Response.Write " selected=yes"
         End If
         Response.Write ">" & nDay & "</option>" & vbcrlf
Next
End Sub
%>


« Son Düzenleme: Nisan 19, 2007, 16:38:50 ÖS Gönderen: AdmiN »
Konuyu Paylaş:
  delicious  facebook  twitter  google

Çevrimdışı ziyaretci12

  • İleti: 0
  • Puan: 2
-Duyuru Sorunu Cözülmüştür?
« Yanıtla #1 : Mart 11, 2007, 14:17:01 ÖS »

2: admin_announce_edit.asp ve bu dosyayı değiştirmeniz gerekiyor.


Alıntı
<%
'<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
'<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
'<> Copyright (C) 2004-2005 Tom Nance (SkyDogg) All Rights Reserved
'<> Events Suite Copyright (C) 2004-2005 Ken Smiley All Rights Reserved
'<>
'<> By using this program, you are agreeing to the terms of the
'<> GNU General Public License.
'<>
'<> This program is free software; you can redistribute it and/or
'<> modify it under the terms of the GNU General Public License
'<> as published by the Free Software Foundation; either version 2
'<> of the License, or any later version.
'<>
'<> All copyright notices regarding MaxWebPortal must remain intact
'<> in the scripts and in the outputted HTML.
'<> The "powered by" text/logo with a link back to
'<> http://www.maxwebportal.info in the footer of the pages MUST
'<> remain visible when the pages are viewed on the internet or intranet.
'<>
'<> Support can be obtained from support forums at:
'<> http://www.maxwebportal.info
'<>
'<> Email: maxweb@maxwebportal.info
'** Türkçeye Çevirenler: OgReTmEnLeRiM.NeT | Bülent KARAYAZI & UzmanWeb.Net | Adem TÜRK
'***********************************************************************
'<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
'<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
'***********************************************************************
'** Copyright (C) 2001 - 2004 Max Yuan All Rights Reserved
'**
'** By using this program, you are agreeing to the terms of the
'** GNU General Public License.
'**
'** This program is free software; you can redistribute it and/or
'** modify it under the terms of the GNU General Public License
'** as published by the Free Software Foundation; either version 2
'** of the License, or any later version.
'**
'** All copyright notices regarding MaxWebPortal must remain intact
'** in the scripts and in the outputted HTML.
'** The "powered by" text/logo with a link back to
'** http://www.maxwebportal.com in the footer of the pages MUST
'** remain visible when the pages are viewed on the internet or intranet.
'**
'** Support can be obtained from support forums at:
'** http://www.maxwebportal.com
'**
'** Email: maxwebportal@hotmail.com
'** ICQ: 148111300
'***********************************************************************
'** This Page Contains source code of Snitz Forums 2000
'***********************************************************************
'#################################################################################
'## Copyright (C) 2000  Michael Anderson and Pierre Gorissen
'##
'## This program is free software; you can redistribute it and/or
'## modify it under the terms of the GNU General Public License
'## as published by the Free Software Foundation; either version 2
'## of the License, or any later version.
'##
'## All copyright notices regarding Snitz Forums 2000
'## must remain intact in the scripts and in the outputted HTML
'## The "powered by" text/logo with a link back to
'## http://forum.snitz.com in the footer of the pages MUST
'## remain visible when the pages are viewed on the internet or intranet.
'##
'## This program is distributed in the hope that it will be useful,
'## but WITHOUT ANY WARRANTY; without even the implied warranty of
'## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'## GNU General Public License for more details.
'##
'## You should have received a copy of the GNU General Public License
'## along with this program; if not, write to the Free Software
'## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
'##
'## Support can be obtained from support forums at:
'## http://forum.snitz.com
'##
'## Correspondence and Marketing Questions can be sent to:
'## reinhold@bigfoot.com
'##
'## or
'##
'## Snitz Communications
'## C/O: Michael Anderson
'## PO Box 200
'## Harpswell, ME 04079
'#################################################################################
%>
<!--#INCLUDE FILE="config.asp" -->
<% If Session(strCookieURL & "Approval") = "256697926329" Then %>
<!--#INCLUDE file="inc_functions.asp" -->
<!--#INCLUDE file="inc_top.asp" -->
<script language="JavaScript" type="text/javascript" src="inc_jscode.js"></script>
<script language="JavaScript">
<!--
function OpenPreview()
{
   var curCookie = "strMessagePreview=" + escape(document.PostTopic.Message.value);
   document.cookie = curCookie;
   popupWin = window.open('pop_preview.asp', 'preview_page', 'scrollbars=yes,width=550,height=250')
}
//-->
</script>
<table border="0" width="100%" align="center">
  <tr>
    <td width="33%" align="left" nowrap><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
    <img src="images/icons/icon_folder_open.gif" height=15 width=15 border="0">&nbsp;<a href="default.asp">Ana Sayfa[/url]

    <img src="images/icons/icon_bar.gif" height=15 width=15 border="0"><img src="images/icons/icon_folder_open.gif" height=15 width=15 border="0">&nbsp;<a href="admin_home.asp">Yönetici Paneli[/url]

    <img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_folder_open.gif" height=15 width=15 border="0">&nbsp;<a href="admin_announce_home.asp">Duyurular[/url]

    <img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_folder_open.gif" height=15 width=15 border="0">&nbsp;<a href="admin_review_announce.asp">Duyuru Düzenleme[/url]

<%  if Request.Form("Method_Type") = "Write_Configuration" then %>
       <img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_bar.gif" height=15 width=15 border="0"><img src="images/icons/icon_folder_open_topic.gif" height=15 width=15 border="0">&nbsp;<% =ChkString(Request.Form("Subject"),"title") %></font></td>
<%  else %>
       <img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_blank.gif" height=15 width=15 border="0"><img src="images/icons/icon_bar.gif" height=15 width=15 border="0"><img src="images/icons/icon_folder_open_topic.gif" height=15 width=15 border="0">&nbsp;<% =ChkString(Request.QueryString("A_SUBJECT"),"display") %></font></td>
<%  end if %>
  </tr>
</table>
<%   Function Date_GetYear( dDate )
   Date_GetYear = DatePart( "yyyy", dDate )
   End Function

   Function Date_GetMonthNo( dDate )
   Date_GetMonthNo = DatePart( "m", dDate )
   End Function

   Function Date_GetDayNo( dDate )
   Date_GetDayNo = DatePart( "d", dDate )
   End Function

   Function Date_GetMonthName( nMonthNo )
   Select Case nMonthNo
   Case 1
   Date_GetMonthName = "Ocak"
   Case 2
   Date_GetMonthName = "Şubat"
   Case 3
   Date_GetMonthName = "Mart"
   Case 4
   Date_GetMonthName = "Nisan"
   Case 5
   Date_GetMonthName = "Mayıs"
   Case 6
   Date_GetMonthName = "Haziran"
   Case 7
   Date_GetMonthName = "Temmuz"
   Case 8
   Date_GetMonthName = "Ağustos"
   Case 9
   Date_GetMonthName = "Eylül"
   Case 10
   Date_GetMonthName = "Ekim"
   Case 11
   Date_GetMonthName = "Kasım"
   Case 12
   Date_GetMonthName = "Aralık"
   End Select
   End Function


    if Request.Form("Method_Type") = "Write_Configuration" then

   txtSubject = ChkString(Request.Form("Subject"),"title")
   txtMessage = ChkString(Request.Form("Message"),"message")
   txtEndDate = Request.Form("EndYearName") & doublenum(Request.Form("EndMonthName")) & doublenum(Request.Form("EndDayName")) & "000001"

   Err_Msg = ""

   if txtSubject = " " then
      Err_Msg = Err_Msg & "<li>Duyuru Konusunu Yazmadınız!</li>"
   end if

   if txtMessage = " " then
      Err_Msg = Err_Msg & "<li>Duyuru İçeriğini Yazmadınız!</li>"
   end if

   if txtEndDate < DateToStr(Now()) then
      Err_Msg = Err_Msg & "<li>Duyuru Bitiş Tarihi Başlangıç Tarihinden İtibaren En Az 1 Gün Olmalıdır!</li>"
   end if

   if Err_Msg = "" then

        txtMessage = ChkString(Request.Form("Message"),"message")
      txtSubject = ChkString(Request.Form("Subject"),"title")
      strEndDate = Request.Form("EndYearName") & doublenum(Request.Form("EndMonthName")) & doublenum(Request.Form("EndDayName")) & "000001"

      '## Forum_SQL - Do DB Update
      strSql = "UPDATE " & strTablePrefix & "ANNOUNCE "
      strSql = strSql & " SET A_SUBJECT = '" & txtSubject & "'"
      strSql = strSql & ",    A_MESSAGE = '" & txtMessage & "'"
      strSql = strSql & ",    A_END_DATE = '" & strEndDate & "'"
      strSql = strSql & " WHERE A_ID = " & Request.Form("A_ID")

      my_Conn.Execute (strSql)
%>
      <p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Duyuru Güncellendi!</font></p>
      <meta http-equiv="Refresh" content="2; URL=admin_review_announce.asp">

      <p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Tebrikler!</font></p>

      <p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="admin_review_announce.asp">Duyuru Düzenleme Sayfasına Geri Dön</font>[/url]</p>
<%   else %>
      <p align=center><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Yazdığınız Bilgilerde Bir Problem Var</font></p>

      <table align=center border=0>
        <tr>
          <td><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
            <ul>
         <% =Err_Msg %>
            </ul>
          </font></td>
        </tr>
      </table>

      <p align=center><font face="<% =strDefaultFontFace %>" size=<% =strDefaultFontSize %>><a href="JavaScript:history.go(-1)">Geri Dönüp Bilgilerinizi Kontrol Edin[/url]</font></p>
<%   end if %>
<%  else %>
<%
   '## Forum_SQL - Get Announcements from DB
   strSql = "SELECT * "
   strSql = strSql & " FROM " & strTablePrefix & "ANNOUNCE "
   strSql = strSql & " WHERE A_ID = " & Request.QueryString("A_ID")

   set rs = my_Conn.Execute (strSql)

        TxtSub = rs("A_SUBJECT")
        TxtMsg = rs("A_MESSAGE")
   strStartDate = StrToDate(rs("A_START_DATE"))
   strEndDate = StrToDate(rs("A_END_DATE"))
%>
   <form action="admin_announce_edit.asp" method="post" id="PostTopic" name="PostTopic">
   <input type="hidden" name="Method_Type" value="Write_Configuration">
   <input type="hidden" name="A_ID" value="<% =rs("A_ID") %>">
   <table border="0" cellspacing="0" cellpadding="0" align=center>
     <tr>
       <td bgcolor="<% =strPopUpBorderColor %>">
              <table border="0" cellspacing="1" cellpadding="1">
      <tr valign="top">
        <td align="center" bgcolor="<% =strHeadCellColor %>" colspan="2"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>">Duyuru Düzenleme</font></td>
      </tr>
      <tr valign="top">
        <td bgColor="<% =strPopUpTableColor %>" align="right"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Konu:&nbsp;</font></td>
        <td bgColor="<% =strPopUpTableColor %>"><input maxLength="50" name="Subject" value="<% =Trim(ChkString(TxtSub,"display")) %>" size="30" tabindex="1"></td>
      </tr>
      <tr valign="top">
        <td bgColor="<% =strPopUpTableColor %>" align="right"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Biçim:</font></td>
        <td bgColor="<% =strPopUpTableColor %>" align="left"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
          <select name="font" onChange="thelp(this.options[this.selectedIndex].value)">
            <option value="1">Yardım&nbsp;</option>
            <option selected value="0">Tam&nbsp;</option>
            <option value="2">Temel&nbsp;</option>
          </select></font></td>
      </tr>
      <!--#INCLUDE FILE="inc_post_buttons.asp" -->
      <tr valign="top">
        <td bgColor="<% =strPopUpTableColor %>" align="right"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Duyuru İçeriği:&nbsp;</font>


          <table border=0>
            <tr>
              <td align="left" nowrap><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
                <% if strAllowHTML = "1" then %>
                  * HTML Kod Kullanımı Açık

           <% else %>
                  * HTML Kod Kullanımı Kapalı

           <% end if %>
           <% if strAllowForumCode = "1" then %>
                  * <a href="JavaScript:openWindow3('pop_forum_code.asp')">Forum Kodu[/url] Kullanımı Açık

           <% else %>
                  * Forum Kodu Kullanımı Kapalı

           <% end if %>
                </font>
                   </td>
            </tr>
          </table>
        </td>
        <td bgColor="<% =strPopUpTableColor %>"><textarea name="Message" cols="33" rows=6 wrap="virtual" onfocus="getActiveText(this)" onclick="getActiveText(this)" onchange="getActiveText(this)" onkeyup="getActiveText(this)" onselect="getActiveText(this)" tabindex="2"><% =Trim(cleancode(TxtMsg)) %></textarea></td>
      </tr>
      <tr>
        <td align="right" bgcolor="<% =strPopUpTableColor %>" colspan="1">
          <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Başlangıç Tarihi:&nbsp;</font><BR>
          <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">Duyuru bu tarihte görüntülenmeye başlar<BR></font>
        </td>
        <td align="left" bgcolor="<% =strPopUpTableColor %>" colspan="1">
          <table border="0" cellspacing="1" cellpadding="1">
            <tr valign="top">
         <td><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><B>Gün</B></FONT></td>
         <td><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><B>Ay</B></FONT></td>
         <td><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><B>Yıl</B></FONT>
</td>
            </tr>
            <tr>
         <td><SELECT NAME="StartDayName" disabled><% Date_FillBoxWithDays DatePart("d", strStartDate) %></SELECT></td>
         <td><SELECT NAME="StartMonthName" disabled><% Date_FillBoxWithMonths DatePart("m", strStartDate), True %></SELECT></td>
         <td><SELECT NAME="StartYearName" disabled><% Date_FillBoxWithYears 2007, 2020, DatePart("yyyy", strStartDate) %></SELECT></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td align="right" bgcolor="<% =strPopUpTableColor %>" colspan="1">
          <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Bitiş Tarihi:&nbsp;</font><BR>
          <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">Duyuru bu tarihten sonra görüntülenmez.<BR></font>
        </td>
        <td align="left" bgcolor="<% =strPopUpTableColor %>" colspan="1">
          <table border="0" cellspacing="1" cellpadding="1">
            <tr valign="top">
         <td><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><B>Gün</B></FONT></td>
         <td><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><B>Ay</B></FONT></td>
         <td><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><B>Yıl</B></FONT>
</td>
            </tr>
            <tr>
         <td><SELECT NAME="EndDayName"><% Date_FillBoxWithDays DatePart("d", strEndDate) %></SELECT></td>
         <td><SELECT NAME="EndMonthName"><% Date_FillBoxWithMonths DatePart("m", strEndDate), True %></SELECT></td>
         <td><SELECT NAME="EndYearName"><% Date_FillBoxWithYears 2007, 2020, DatePart("yyyy", strEndDate) %></SELECT></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr valign="top">
        <td bgColor="<% =strPopUpTableColor %>" colspan="2" align="center">&nbsp;</td>
      </tr>
      <tr valign="top">
        <td bgColor="<% =strPopUpTableColor %>" colspan="2" align="center"><input type="submit" value=" Duyuruyu Gönder " id="submit1" name="submit1" tabindex="3" class="button"> <input name="Preview" type="button" value=" Önizleme " onclick="OpenPreview()" class="button"> <input type="reset" value=" İptal Et " id="reset1" name="reset1" class="button"></td>
      </tr>
         </table>
       </td>
     </tr>
        </table>
        </form>
        </font>
<%  end if %>
<!--#INCLUDE file="inc_footer.asp" -->
<% else %>
   <% Response.Redirect "admin_login.asp" %>
<% end if %>
<%
Sub Date_FillBoxWithYears( nFirst, nLast, nDefault )
Dim nYear
If nDefault = "" Then
   nDefault = Date_GetYear( strForumTimeAdjust )
End If
For nYear = nFirst To nLast
         Response.Write "<option"
         If nYear = nDefault Then
         Response.Write " selected=yes"
         End If
         Response.Write ">" & nYear & "</option>" & vbcrlf
Next
End Sub

Sub Date_FillBoxWithMonths( nDefault, fUseNumbersAsValue )
Dim nMonth
If nDefault = "" Then
   nDefault = Date_GetMonthNo( strForumTimeAdjust )
End If
For nMonth = 1 To 12
         Response.Write "<option"
         If nMonth = nDefault Then
         Response.Write " selected=yes"
         End If
         If fUseNumbersAsValue = True Then
         Response.Write " value=" & nMonth
         End If
         Response.Write ">" & Date_GetMonthName(nMonth) & "</option>" & vbcrlf
Next
End Sub

Sub Date_FillBoxWithDays( nDefault )
Dim nDay
If nDefault = "" Then
   nDefault = Date_GetDayNo( strForumTimeAdjust )
End If
For nDay = 1 To 31
         Response.Write "<option"
         If nDay = nDefault Then
         Response.Write " selected=yes"
         End If
         Response.Write ">" & nDay & "</option>" & vbcrlf
Next
End Sub
%>

Çevrimdışı adanali_abey

  • İleti: 14
  • Puan: 0
-Mwp 2.12 Duyuru Sorunu Cözülmüştür [çözüldü]
« Yanıtla #2 : Haziran 23, 2007, 21:21:30 ÖS »
Tesekkürler kardesim bunu ben ekledim ama yine beni Admin girisine geri getiriyor tekrar sifre vermemi istiyor herseferinde aynisini yapiyo kullandigim mwp 2,12 baska bilmem gereken bir husuz varmi aceba simdikten Tesekkürler .....

Çevrimiçi burajan

  • Web Programcısı
  • Administrator
  • *
  • İleti: 5051
  • Puan: 334
  • Cinsiyet: Bay
  • Web Programcısı
    • Burak ŞİMŞEK - Kişisel İnternet Sitesi
-Mwp 2.12 Duyuru Sorunu Cözülmüştür [çözüldü]
« Yanıtla #3 : Haziran 23, 2007, 21:26:07 ÖS »
Maxwebportal 2.12 güncellemeleri başlığında duyuru için güncelleme mevcut. Onu deneyebilirsin.
Kişisel İnternet Sitem => buraksimsek.com.tr - http://www.buraksimsek.com.tr

Lütfen özel mesaj ile destek istemeyiniz. Önce forumda arama yapınız daha sonra forumda ilgili bölüme konu açınız.

Çevrimdışı adanali_abey

  • İleti: 14
  • Puan: 0
-Mwp 2.12 Duyuru Sorunu Cözülmüştür [çözüldü]
« Yanıtla #4 : Haziran 23, 2007, 22:11:54 ÖS »
Burajan Kardesim sagol hemen cevap yazdigin icin ama aradim bir güncelleme bulamadim bu konuda deminden beri bende herseyine baktim tekrardan ama yinede bise bulamiyorum tekrar bir yardimda bulunursan cok sevinirim... Saolasin

Çevrimiçi burajan

  • Web Programcısı
  • Administrator
  • *
  • İleti: 5051
  • Puan: 334
  • Cinsiyet: Bay
  • Web Programcısı
    • Burak ŞİMŞEK - Kişisel İnternet Sitesi
-Mwp 2.12 Duyuru Sorunu Cözülmüştür [çözüldü]
« Yanıtla #5 : Haziran 23, 2007, 22:18:31 ÖS »
http://www.uzmanweb.net/forum/index.php?topic=1965.msg7959#msg7959
Bu yukarıdaki linkin mesaj ek kısmında bir güncelleme var. Bunu deneyebilirsin. Ayrıca şunu ekleyeyim. Bu duyuru kısmına girip senin tekrar yönetim paneli login kısmına gönderiyorsa bu geçici bir durumdur. Bazen öyle durumlarda karşılaştığım olmuştu.
Kişisel İnternet Sitem => buraksimsek.com.tr - http://www.buraksimsek.com.tr

Lütfen özel mesaj ile destek istemeyiniz. Önce forumda arama yapınız daha sonra forumda ilgili bölüme konu açınız.

Çevrimdışı adanali_abey

  • İleti: 14
  • Puan: 0
-Mwp 2.12 Duyuru Sorunu Cözülmüştür [çözüldü]
« Yanıtla #6 : Haziran 23, 2007, 23:18:27 ÖS »
Burajan Kardesim gercekten Yardimlarin icin Cok Tesekkürler ama yinede olmuyo demin tüm güncellemelri yükledim belki bir degisiklik olur diye ama malesef :( yine olmadi hala yeni duyuru eklemek istedigimde tekrar basa geri geliyor valla anlamis degilim bir türlü icinden cikamadim neden olmadigini bilemiyorum.....

Çevrimdışı prog_cenk

  • İleti: 142
  • Puan: 2
  • Cinsiyet: Bay
-Mwp 2.12 Duyuru Sorunu Cözülmüştür [çözüldü]
« Yanıtla #7 : Haziran 24, 2007, 19:24:00 ÖS »
Arkadaşlar bu sorunun sebebi Duyuru' yu adminden başka birisinin eklemeye yetkisi olmamasından kaynaklanıyor. Aynı şeyi bende yaşadım. Bunu kontrol etmenin yolu :

config dosyasını notepad ile açın, aşagıdaki kod satırlarını bulun.

strWebMaster = "admin,"

sizdeki de bu şekilde olmalı. Bu arada bir dipnot daha vereyim. Sitede başka bir admin yetkisine sahip birisi daha varsa onu da burada belirtmelisiniz. yani bu satır şöyle olmalı :

strWebMaster = "admin,sizinisminiz,baska_admin_kullanici_ismi,"
CŞAHİN

Seo4Smf Tagleri:
 

Benzer Konular

  Konu / Başlatan Yanıt Son İleti
8 Yanıt
1833 Gösterim
Son İleti Mart 11, 2007, 13:58:29 ÖS
Gönderen: ziyaretci12
2 Yanıt
1335 Gösterim
Son İleti Ocak 25, 2007, 23:06:37 ÖS
Gönderen: CaSh
10 Yanıt
2414 Gösterim
Son İleti Mart 15, 2007, 15:58:20 ÖS
Gönderen: ziyaretci12
42 Yanıt
9995 Gösterim
Son İleti Ağustos 11, 2009, 12:05:49 ÖS
Gönderen: AdmiN
2 Yanıt
832 Gösterim
Son İleti Ekim 26, 2007, 15:07:43 ÖS
Gönderen: uguer