Popup com boas vindas.
- doutrinador
- Membro Recente
- Mensagens: 300
- Registrado em: 22 Ago 2009, 12:11
- Nome Real: Carlos Angelo
Popup com boas vindas.
Caros amigos, creio que exista um mod que coloque uma janela popup de boas vindas para os visitantes, alguem sabe o nome deste mod?
Obrigado.
Obrigado.
Re: Popup com boas vindas.
Veja este tutorial: kb.php?a=71
Basta adaptar para visitantes.
Veja outras dicas neste tópico: viewtopic.php?f=148&t=43731&start=0
Basta adaptar para visitantes.
Veja outras dicas neste tópico: viewtopic.php?f=148&t=43731&start=0
Tradução Português Brasileiro: https://www.phpbb.com/customise/db/tran ... ortuguese/
Precisa de serviços phpBB? Me mande um mensagem privada!
Precisa de serviços phpBB? Me mande um mensagem privada!
- doutrinador
- Membro Recente
- Mensagens: 300
- Registrado em: 22 Ago 2009, 12:11
- Nome Real: Carlos Angelo
Re: Popup com boas vindas.
Obrigado Vinny, irei testar o codigo.
Pensei que o aviso em popup de recebimento de Mp fosse nativo no phpbb.
Abs
Pensei que o aviso em popup de recebimento de Mp fosse nativo no phpbb.
Abs
Re: Popup com boas vindas.
Bom, essa opção existe, não lembro se vem ativada com o phpBB padrão. Lembrando que ela pode ser desativada.Pensei que o aviso em popup de recebimento de Mp fosse nativo no phpbb.
Tradução Português Brasileiro: https://www.phpbb.com/customise/db/tran ... ortuguese/
Precisa de serviços phpBB? Me mande um mensagem privada!
Precisa de serviços phpBB? Me mande um mensagem privada!
- doutrinador
- Membro Recente
- Mensagens: 300
- Registrado em: 22 Ago 2009, 12:11
- Nome Real: Carlos Angelo
Re: Popup com boas vindas.
Vinny, não consigo encontrar o codigo " <!-- IF S_USER_LOGGED_IN -->" no overall_header.
Uso o estilo Subsilver 2Clean.
É neste arquivo overall_header que devo trabalhar?
Re: Popup com boas vindas.
É nesse sim. Pode ele aqui por favor.É neste arquivo overall_header que devo trabalhar?
Tradução Português Brasileiro: https://www.phpbb.com/customise/db/tran ... ortuguese/
Precisa de serviços phpBB? Me mande um mensagem privada!
Precisa de serviços phpBB? Me mande um mensagem privada!
- doutrinador
- Membro Recente
- Mensagens: 300
- Registrado em: 22 Ago 2009, 12:11
- Nome Real: Carlos Angelo
Re: Popup com boas vindas.
Aí está meu amigo:
Código: Selecionar todos
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<style type="text/css">
<!--
.style2 {color: #FFFFFF}
-->
</style>
{META}
<title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>
<!-- IF S_ENABLE_FEEDS -->
<!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
<!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF -->
<!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF -->
<!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_NEW}" href="{U_FEED}?mode=topics" /><!-- ENDIF -->
<!-- IF S_ENABLE_FEEDS_TOPICS_ACTIVE --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_ACTIVE}" href="{U_FEED}?mode=topics_active" /><!-- ENDIF -->
<!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF -->
<!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}" /><!-- ENDIF -->
<!-- ENDIF -->
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
<script type="text/javascript">
// <![CDATA[
<!-- IF S_USER_PM_POPUP -->
if ({S_NEW_PM})
{
popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
}
<!-- ENDIF -->
function popup(url, width, height, name)
{
if (!name)
{
name = '_popup';
}
window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
return false;
}
function jumpto()
{
var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
var per_page = '{PER_PAGE}';
var base_url = '{A_BASE_URL}';
if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
{
if (base_url.indexOf('?') == -1)
{
document.location.href = base_url + '?start=' + ((page - 1) * per_page);
}
else
{
document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
}
}
}
/**
* Find a member
*/
function find_username(url)
{
popup(url, 760, 570, '_usersearch');
return false;
}
/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
var parent = document.getElementById(id);
if (!parent)
{
eval('parent = document.' + id);
}
if (!parent)
{
return;
}
var rb = parent.getElementsByTagName('input');
for (var r = 0; r < rb.length; r++)
{
if (rb[r].name.substr(0, name.length) == name)
{
rb[r].checked = state;
}
}
}
<!-- IF ._file -->
/**
* Play quicktime file by determining it's width/height
* from the displayed rectangle area
*
* Only defined if there is a file block present.
*/
function play_qt_file(obj)
{
var rectangle = obj.GetRectangle();
if (rectangle)
{
rectangle = rectangle.split(',')
var x1 = parseInt(rectangle[0]);
var x2 = parseInt(rectangle[2]);
var y1 = parseInt(rectangle[1]);
var y2 = parseInt(rectangle[3]);
var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
}
else
{
var width = 200;
var height = 0;
}
obj.width = width;
obj.height = height + 16;
obj.SetControllerVisible(true);
obj.Play();
}
<!-- ENDIF -->
// ]]>
</script>
<SCRIPT language=javascript>
function closeDiv() {
document.getElementById('floatLayer').style.left = "-1000";
return false;
}
window.onerror = null;
//VALOR DE 75 ABAIXO É A POSIÇÃO ACIMA E ABAIXO DA JANELA//
var topMargin = 75;
var slideTime = 1000;
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);
function layerObject(id,left) {
if (ns6) {
this.obj = document.getElementById(id).style;
this.obj.left = left;
return this.obj;
}
else if(ie4) {
this.obj = document.all[id].style;
this.obj.left = left;
return this.obj;
}
else if(ns4) {
this.obj = document.layers[id];
this.obj.left = left;
return this.obj;
}
}
function layerSetup() {
floatLyr = new layerObject('floatLayer', pageWidth * .2);
window.setInterval("main()", 10)
}
function floatObject() {
if (ns4 || ns6) {
findHt = window.innerHeight;
} else if(ie4) {
findHt = document.body.clientHeight;
}
}
function main() {
if (ns4) {
this.currentY = document.layers["floatLayer"].top;
this.scrollTop = window.pageYOffset;
mainTrigger();
}
else if(ns6) {
this.currentY = parseInt(document.getElementById('floatLayer').style.top);
this.scrollTop = scrollY;
mainTrigger();
} else if(ie4) {
this.currentY = floatLayer.style.pixelTop;
this.scrollTop = document.body.scrollTop;
mainTrigger();
}
}
function mainTrigger() {
var newTargetY = this.scrollTop + this.topMargin;
if ( this.currentY != newTargetY ) {
if ( newTargetY != this.targetY ) {
this.targetY = newTargetY;
floatStart();
}
animator();
}
}
function floatStart() {
var now = new Date();
this.A = this.targetY - this.currentY;
this.B = Math.PI / ( 1 * this.slideTime );
this.C = now.getTime();
if (Math.abs(this.A) > this.findHt) {
this.D = this.A > 0 ? this.targetY - this.findHt : this.targetY + this.findHt;
this.A = this.A > 0 ? this.findHt : -this.findHt;
}
else {
this.D = this.currentY;
}
}
function animator() {
var now = new Date();
var newY = this.A * Math.sin( this.B * ( now.getTime() - this.C ) ) + this.D;
newY = Math.round(newY);
if (( this.A > 0 && newY > this.currentY ) || ( this.A < 0 && newY < this.currentY )) {
if ( ie4 )document.all.floatLayer.style.pixelTop = newY;
if ( ns4 )document.layers["floatLayer"].top = newY;
if ( ns6 )document.getElementById('floatLayer').style.top = newY + "px";
}
}
function start() {
if(ns6||ns4) {
pageWidth = innerWidth;
pageHeight = innerHeight;
layerSetup();
floatObject();
}
else if(ie4) {
pageWidth = document.body.clientWidth;
pageHeight = document.body.clientHeight;
layerSetup();
floatObject();
}
}
</SCRIPT>
<DIV id=floatLayer style="LEFT: -1000px; WIDTH:300px; POSITION: absolute; TOP: 3px; 200: 128px; BACKGROUND-COLOR: #FFFFFF">
<!--VALOR DE 300 E 300 ACIMA É O TAMANHO DA JANELA-->
<table border="1" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" width="300" height="300">
<tr height="30">
<td border="3" align="right" bgcolor="#f4f4e8" colspan="4">
<b><font size="1" face="Verdana" color="#0000FF">Fechar</font></b><A onclick="return closeDiv()"
href=""><b><FONT size="1" face="Verdana" color="#0000FF">[X]</FONT></b></A>
</td>
</tr>
<tr>
<td border="1" align="center" bgcolor="#f4f4e8" colspan="4">
<a href="http://www.suportephpbb.org" target="_blank">
<img
src="http://www.fyvie.net/projects/fyvienet/phpbb-logo.jpg" alt="Suporte phpBB" border="0" ></a>
</td>
</tr>
</table>
</DIV>
</head>
<body class="{S_CONTENT_DIRECTION}">
<table width="100%" height="60" border="0" align="center">
<tr bgcolor="#ffffff">
<td><div align="center"><img src="http://localhost/cozinha/images/barrinha.jpg" width="900" height="60" /></div></td>
</tr>
</table>
<div id="menubar">
<table width="100%" class="cat" cellspacing="0">
<tr>
<td class="genmed">
<!-- IF not S_IS_BOT --><img src="{T_THEME_PATH}/images/icon_mini_login.gif" width="12" height="13" alt="*" /><a href="{U_LOGIN_LOGOUT}"> {L_LOGIN_LOGOUT}</a> <!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS --> <img src="{T_THEME_PATH}/images/icon_mini_login.gif" width="12" height="13" alt="*" /><a href="{U_RESTORE_PERMISSIONS}"> {L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --> <span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF -->
<!-- IF not S_IS_BOT -->
<!-- IF S_USER_LOGGED_IN -->
<!-- IF S_DISPLAY_PM --> <img src="{T_THEME_PATH}/images/icon_mini_message.gif" width="12" height="13" alt="*" /><a href="{U_PRIVATEMSGS}"> {PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
<!-- ELSEIF S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) --> <img src="{T_THEME_PATH}/images/icon_mini_register.gif" width="12" height="13" alt="*" /><a href="{U_REGISTER}"><strong> {L_REGISTER}</strong></a>
<!-- ENDIF -->
<!-- ENDIF --> </td>
<td class="genmed" align="{S_CONTENT_FLOW_END}">
<img src="{T_THEME_PATH}/images/icon_mini_faq.gif" width="12" height="13" alt="*" /><a href="{U_FAQ}"> {L_FAQ}</a>
<!-- IF S_DISPLAY_SEARCH --> <img src="{T_THEME_PATH}/images/icon_mini_search.gif" width="12" height="13" alt="*" /><a href="{U_SEARCH}"> {L_SEARCH}</a><!-- ENDIF -->
<!-- IF not S_IS_BOT -->
<!-- IF S_DISPLAY_MEMBERLIST --> <img src="{T_THEME_PATH}/images/icon_mini_members.gif" width="12" height="13" alt="*" /><a href="{U_MEMBERLIST}"> {L_MEMBERLIST}</a><!-- ENDIF -->
<!-- IF S_USER_LOGGED_IN --> <img src="{T_THEME_PATH}/images/icon_mini_profile.gif" width="12" height="13" alt="*" /><a href="{U_PROFILE}"> {L_PROFILE}</a><!-- ENDIF -->
<!-- ENDIF -->
</td>
</tr>
</table>
</div>
<div id="wrapcentre">
<table width="90" height="120" border="0" align="center">
<tr>
<td><img src="http://localhost/phpBB3/images/logotipo1.jpg" width="900" height="105" /></td>
</tr>
</table>
<table width="900" height="80" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td width="468" height="60" bgcolor="#FFFFff"><!-- INCLUDEPHP ./bannertopo.php --></td>
</tr>
</table>
<!-- INCLUDE breadcrumbs.html -->
- Chico Gois
- Administrador
- Mensagens: 3728
- Registrado em: 03 Jul 2004, 03:53
- Nome Real: Chico Gois
- Localização: São Paulo - Capital
- Contato:
Re: Popup com boas vindas.
Tem sim,
Código: Selecionar todos
<!-- IF S_USER_LOGGED_IN -->
<!-- IF S_DISPLAY_PM --> <img src="{T_THEME_PATH}/images/icon_mini_message.gif" width="12" height="13" alt="*" /><a href="{U_PRIVATEMSGS}"> {PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
<!-- ELSEIF S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) --> <img src="{T_THEME_PATH}/images/icon_mini_register.gif" width="12" height="13" alt="*" /><a href="{U_REGISTER}"><strong> {L_REGISTER}</strong></a>
- doutrinador
- Membro Recente
- Mensagens: 300
- Registrado em: 22 Ago 2009, 12:11
- Nome Real: Carlos Angelo
Re: Popup com boas vindas.
Realmente tem meus amigos.
Estou usando o PHPeditor pra procurar pelos codigos, mas parece que ele falha as vezes.
Obrigado a todos.
Estou usando o PHPeditor pra procurar pelos codigos, mas parece que ele falha as vezes.
Obrigado a todos.
Re: Popup com boas vindas.
doutrinador, eu encontrei dois termos para:
Procurou corretamente?
Código: Selecionar todos
<!-- IF S_USER_LOGGED_IN -->
Tradução Português Brasileiro: https://www.phpbb.com/customise/db/tran ... ortuguese/
Precisa de serviços phpBB? Me mande um mensagem privada!
Precisa de serviços phpBB? Me mande um mensagem privada!