форум vBSupport.ru > vBulletin > Вопрос — Ответ
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
sadovnikde
Простоузер
Default Посоветовать форум другу
0

такой вот вопрос:
можно ли на vB зделать такое?




Добавлено через 3 минуты
вот шаблон этой шнягт с укоза

Code:
<html>
<head>
<title>Посоветовать форум другу</title>
<link type="text/css" rel="StyleSheet" href="http://src.ucoz.ru/src/css/831.css">
</head>
<body style="background-color:#FFFFFF; margin:0px; padding:0px;">

<div style="background:#FFFFFF;padding:10px;width:100%;">
<table border="0" cellpadding="0" cellspacing="0" width="90%" height="26" align="center" style="background:url('http://src.ucoz.ru/t/831/17.gif');">
<tr><td width="11"><img src="http://src.ucoz.ru/t/831/18.gif" border="0"></td><td align="center"><b>Посоветовать форум другу</b></td><td width="12"><img src="http://src.ucoz.ru/t/831/19.gif" border="0"></td></tr>
</table><br>
<center><b>Если вам понравился наш форум <br>и вы хотите рассказать о нём всем своим друзьям, <br>то непременно зделайте это!</b></center><br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td align="center" style="padding:5px;">
<form method="post" name="advform" action="/adviser/" onsubmit="document.getElementById('sbm').disabled=true;send_advice('advform');return false;">
<table border="0" cellspacing="1" width="100%">
<tr><td colspan="2" align="center">$ERROR$</td></tr>
<tr><td width="30%">Имя отправителя:</td><td>$NAME_FROM_FL$</td></tr>
<tr><td>E-mail отправителя <font color="#FF0000">*</font>:</td><td>$EMAIL_FROM_FL$</td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr><td>Имя получателя:</td><td>$NAME_TO_FL$</td></tr>
<tr><td>E-mail получателя <font color="#FF0000">*</font>:</td><td>$EMAIL_TO_FL$</td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr><td valign="top">Комментарий:<div style="font-size:7pt;padding-top:3px">Макс. <b>200</b> символов.</div></td><td>$COMMENT_FL$</td></tr>
<tr><td colspan="2"><hr></td></tr>
%IF($SECURITY_CODE$)%
<tr><td>Код безопасности <font color="#FF0000">*</font>:</td><td>$SECURITY_CODE$</td></tr>
<tr><td colspan="2"><hr></td></tr>
%ENDIF%
<tr><td colspan="2" align="center"><input class="commSbmFl" type="submit" value="Отправить" id="sbm"></td></tr>
</table>
$HIDDEN_FL$
</form>
</td></tr>
</table>
</div>

</body>
</html>
можно ли переделать под vB ?

Last edited by sadovnikde : 01-21-2008 at 10:06 PM. Reason: Добавлено сообщение
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Мик
Эксперт
 
Мик's Avatar
Default
0

да, конечно
 
 
Sellrion
Kernel panic
 
Sellrion's Avatar
Default
0

sadovnikde, как бы это не называлось, и как бы оформлено не было, все равно это - самая обычная форма для отправки сообщения по e-mail, описанная в каждом учебнике по php, html, vbscript, javascript и AJAX...
 
 
sadovnikde
Простоузер
Default
0

Sellrion, я это понимаю,для укоза напишу всё что угодно,любой каприз.
а вот в PHP ещё не силён,проблема с кодировкой,я её незнаю
$EMAIL_FROM_FL$ как к примеру этот код на PHP vB ?

где можно найти словарь этих кодов?
 
 
Sellrion
Kernel panic
 
Sellrion's Avatar
Default
0

Quote:
Originally Posted by sadovnikde View Post
$EMAIL_FROM_FL$ как к примеру этот код на PHP vB ?
Это, скорее всего переменная SSI, Вам на это не надо обращать внимание. Просто найдите книжку по php и напишите по ней форму отправки e-mail и все...
 
 
sadovnikde
Простоузер
Default
0

на просторах инета нашёл вот такое:

sendform
Code:
<HTML>
<HEAD>
<TITLE>Text Field and Text Area Events</TITLE>
<SCRIPT LANGUAGE="JavaScript"><!--

//###INSERT FROM HERE BETWEEN YOUR JAVASCRIPT TAGS######
//########################################################

//Insert Required fields within quotes separated by comma. Make sure to use the correct name as used in the
//form fields. Do not change the name of the email field from "Email" as it is used in the
//validation routine	
required = new Array("Name", "Email", "Message")

//Validation Routines
//##############DO NOT CHANGE FROM HERE##################
var emailregex = /^[a-z][a-z\-\_0-9\.]+@[a-z-_0-9\.]+\.[a-z]{2,4}$/i
var notgiven = ""

//============Check if a field is blank================
function isBlank(s) {
 var len=s.length
 var i
 for(i=0;i<len;++i) {
  if(s.charAt(i)!=" ") return false
 }
 return true
}

//================Email Address validation routine=========
function correct_email(str) {
        return emailregex.test(str)
}

function validateEmail() {
	if(!correct_email(document.forms[0].Email.value)) {
		alert("the Email entered is not a valid Email address")
		document.forms[0].Email.focus()
		document.forms[0].Email.select()
		return false	
	}
	return true
}

//==============Check if a field is blank===========

function validate(fieldName,fieldValue) {
	if(isBlank(fieldValue)) {
		notgiven += fieldName + ", "	
 }
}

//=Validate fields and send Form if OK or generate proper alert message=====
function validateForm() {
validation = true
for(var i=0; i < required.length; ++i) {
	ele = eval("document.forms[0]." + required[i])
	 validate(ele.name, ele.value)
}
if (notgiven != "") {
	notgiven += " cannot be left blank."
	alert(notgiven)
	notgiven = ""	
	validation = false
}
if (!validateEmail()) {
	validation = false
}
if (!validation) {
	return false
}
else document.forms[0].submit()
}
//########################################################
//####INSERT UPTO HERE BETWEEN YOUR JAVASCRIPT TAGS#####
//--></SCRIPT>
</HEAD>

<BODY>
<CENTER>
<!-###############################################------------>
<!-###############################################------------>
<?
//Configure Variables
//#########CHANGE THE CONFIGURATION VARIABLES AS DIRECTED###############
//Enter here the Email address to which you want to direct all the mails
$recepient = "webmaster@creativephp.com";

//Enter subject of the email to you e.g. feedback from site etc.
$subject = "Submission of comments on your site";

//Enter header with any additional information you may want to be sent with the form
$mailheader = "From Formsender to Web Server"; 

//Insert the directory for the Form processor relative to directory where this form is located.
//For this example the processor is in the same directory as the Form.
$processdir = "";

//Message to be displayed on the senders screen after the sender's name if the Form is sent successfully.
$sent = "Thanks! Your message has been sent successfully. ";

//Message to be displayed on the senders screen after the sender's name if the attempt to send the form fails.    
$failed = "Sorry! Your message could not be sent. Please try again later. If the problem persists please contact us by Email.";
                      
//#################DO NOT CHANGE FROM HERE###############
$formprocessor = $processdir . "processform.php3";

// Sets up hidden fields for form and opens the form tag
echo "<form action = \"$formprocessor\" method = \"post\" ONSUBMIT=\"return validateForm()\">\n";
echo "<input type = \"hidden\" name = \"recepient\" value = \"$recepient\">\n";
echo "<input type = \"hidden\" name = \"subject\" value = \"$subject\">\n";
echo "<input type = \"hidden\" name = \"sent\" value = \"$sent\">\n";
echo "<input type = \"hidden\" name = \"failed\" value = \"$failed\">\n";
echo "<input type = \"hidden\" name = \"mailheader\" value = \"$mailheader\">\n";
echo "<input type = \"hidden\" name = \"processdir\" value = \"$processdir\">\n";
//#################DO NOT CHANGE UPTO HERE###############
?>
<!-###############################################------------>
<!-###############################################------------>

<!-#######YOUR FORM FIELDS STARTS HERE########------------>
<!-####PUT IN ANY TYPE AND NUMBER OF FIELDS#####------------>
<H1>The Form Sender</H1>
<p>
Name :
<input type="text" name="Name" size="20" maxlength="40">
<p>
Email : 
<input type="text" name="Email" size="20" maxlength="40" ONCHANGE="validateEmail()">
<p>
Occupation :-
<br>
Service 
<input type="radio" name="Occupation" value="Service"><br>
Business 
<input type="radio" name="Occupation" value="Business"><br>
Student 
<input type="radio" name="Occupation" value="Student"><br>
<p>
<!----------FOR CHECKBOXES ADD [] AT THE END OF THE SAME NAMES---------------------------->
Hobby :-
<BR>
Music<input type="checkbox" name="hobby[]" value="Music"><br>
Reading<input type="checkbox" name="hobby[]" value="Reading"><br>
Internet<input type="checkbox" name="hobby[]" value="Internet"><br><br>
<p>
<!----------FOR MULTIPLE SELECT BOX USE THE NAME WITH [] AT THE END -------------------->
Sports :-
<BR>
<select multiple name = "sport[]" >
<option value="Golf">Golf
<option value="Baseball">Baseball
<option value="Hockey">Hockey
<option value="Basketball">Basketball
</select>
<p>
Message :-
<BR> 
<textarea name="Message" rows="3" cols="40"></textarea>
<p>
<input type="SUBMIT" value="Send Form">
<!----------END OF FORM----------------------------->
</form>
</CENTER>
</body>
</html>
processform
Code:
<?

//Processform is a simple formsender. The validation is preferably done at the sending end
//to keep traffic to the server to minimum. More on this topic elsewhere on the site. 
//This formsender has the capability to handle multiple selection elements like Checkboxes
//or Select-Multiple items. It, therefore can be used for any application like Surveys etc. 
//It will allow multiple forms to access and send the information to one common processor.
//The form file includes the information that gets sent to the Sender.  This eliminates //modifications to the processing files.  The hidden form variables required are included in 
//each form.  Read the README.TXT first.

$arrexclude = array("recepient", "subject", "sent", "failed", "mailheader", "processdir");

$msg = "";
while (list($key, $value) = each($HTTP_POST_VARS)) {
	$exclude = false;
	for ($n = 0; $n < count($arrexclude); ++$n) {
		if ($key == $arrexclude[$n]) {
			$exclude = true;
		}
	}
	if (!$exclude) {
		$msg .= "\n\n".$key." : ";
		if (is_array($value)) {
			for ($n =0; $n < count($value); ++$n) {
				$msg .= $value[$n]."   ";
			}
		} else {
			$msg .= $value;
		}
	}
}
if (mail ($recepient, $subject, $msg, $mailheader)) {
echo $Name." ".$sent;
}
else
{
echo $name." ".$failed;
}
?>
только что с ними делать и куда воткнуть, неясно.
 
 
arafat
Простоузер
Default
0

может есть мод/хак такой?
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 06:43 AM.


Powered by vBulletin® Version zEdition
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.