Bom galera eu estou precisando de 2 ajudas.
a 1ª é saber como desativar meu site=forum. Eu coloquei no meu site um forum da smf no meu site http://forum.privatedota.com/ Tudo beleza ta de boa. Mais o Site http://www.privatedota.com esta com site=forum ativado eu queria desativar ele e redirecionar o Botao "forum" para esse link "http://forum.privatedota.com/" ja pesquisei e não encontrei nda relacionado. Então decidi postar.
a 2ª é saber se tem como e como fazer ;x, Quero ligar os usuarios do site com o do forum. ja vi site assim e sei que tem como, se alguem poder me ajudar fico grato.
Não sou web maste nem nda apenas sou um amador estou fazendo as coisas com pesquisas, manerem ae =D
oBrigado.
Duvida. Sobre Cadastros
Started By Leo nardo, 10/02/2010, 18:46
6 replies to this topic
#1
Posted 10/02/2010, 18:46
#2
Posted 10/02/2010, 22:31
Para a primeira pergunta, você tem que ver primeiro como foi feito esse redirecionamento, não existe só uma forma. Veja se o redirecionamento está sendo feito pelo arquivo .htaccess ou se está sendo feito pela index do site (header, meta, js...).
Para a segunda pergunta, é possível sim. Tendo acesso às tabelas no banco de dados, você pode fazer o que quiser, mas aí você precisa ter conhecimento em php/mysql.
Para a segunda pergunta, é possível sim. Tendo acesso às tabelas no banco de dados, você pode fazer o que quiser, mas aí você precisa ter conhecimento em php/mysql.
- Leo nardo likes this
att,
Muller Dias
ex-administrador Fórum WMO
Muller Dias
ex-administrador Fórum WMO
#3
Posted 11/02/2010, 07:36
Quanto a primeira, além das considerações do sem.Ponto você deve procurar também sobre subdominios!
Com eles será possivel fazer:
forum.dominio.com.br
Obs. O que é um "site=forum"???????
Com eles será possivel fazer:
forum.dominio.com.br
Obs. O que é um "site=forum"???????
- Leo nardo likes this
CalvinBall.
Any player may declare a new rule at any point in the game.
The player may do this audibly or silently...
Any player may declare a new rule at any point in the game.
The player may do this audibly or silently...
#4
Posted 11/02/2010, 11:38
A questão do Forum eu ja resolvi, consigui fazer mais meu site esta com 2 forum agora o "site=forum" eo forum que eu criei. Esse é o "site=forum" http://www.privatedo....php?site=forum o proprio site ja contem o forum, mais para oque eu preciso esse forum n me ajuda. Entao criei o forum por fora (ja esta criado http://forum.privatedota.com ), Agora estou querendo desativar o "site=forum.
sem.Ponto Vo da uma olhada nesse arquivos mais tarde, agora tenho q dar uma saidinha.
Sobre a segunda pergunta isso era apenas um "luxo" a mais. Mais vou ver com uma amiga que ela fez isso no site dela, e ela podera me ajudar.
UNICA COISA QUE EU QUERO E DESATIVAR ESSE FORUM "/
abraços mais tarde do uma olhada melhor.
sem.Ponto Vo da uma olhada nesse arquivos mais tarde, agora tenho q dar uma saidinha.
Sobre a segunda pergunta isso era apenas um "luxo" a mais. Mais vou ver com uma amiga que ela fez isso no site dela, e ela podera me ajudar.
UNICA COISA QUE EU QUERO E DESATIVAR ESSE FORUM "/
abraços mais tarde do uma olhada melhor.
#5
Posted 11/02/2010, 14:11
Entendi...UNICA COISA QUE EU QUERO E DESATIVAR ESSE FORUM "/
A chamada desse fórum deve estar na index.php. Poste o código da index.php que eu dou uma olhada.
att,
Muller Dias
ex-administrador Fórum WMO
Muller Dias
ex-administrador Fórum WMO
#6
Posted 11/02/2010, 15:54
<?php /* ########################################################################## # # # Version 4 / / / # # -----------__---/__---__------__----__---/---/- # # | /| / /___) / ) (_ ` / ) /___) / / # # _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___ # # Free Content / Management System # # / # # # # # # Copyright 2005-2009 by webspell.org # # # # visit webSPELL.org, webspell.info to get webSPELL for free # # - Script runs under the GNU GENERAL PUBLIC LICENSE # # - It's NOT allowed to remove this copyright-tag # # -- http://www.fsf.org/licensing/licenses/gpl.html # # # # Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at), # # Far Development by Development Team - webspell.org # # # # visit webspell.org # # # ########################################################################## */ // important data include include("_mysql.php"); include("_settings.php"); include("_functions.php"); $_language->read_module('index'); $index_language = $_language->module; // end important data include ?> <!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="description" content="Clanpage using webSPELL 4 CMS" /> <meta name="author" content="webspell.org" /> <meta name="keywords" content="webspell, webspell4, clan, cms" /> <meta name="copyright" content="Copyright © 2005 - 2009 by webspell.org" /> <meta name="generator" content="webSPELL" /> <!-- Head & Title include --> <title><?php echo PAGETITLE; ?></title> <link href="_newsslider.css" rel="stylesheet" type="text/css" /> <script src="js/rotation.js" type="text/javascript"></script> <script src="js/prototype.js" type="text/javascript"></script> <link href="_stylesheet.css" rel="stylesheet" type="text/css" /> <link href="tmp/rss.xml" rel="alternate" type="application/rss+xml" title="<?php echo getinput($myclanname); ?> - RSS Feed" /> <script src="js/bbcode.js" language="jscript" type="text/javascript"></script> <!-- end Head & Title include --> <!-- standard Design stylesheet --> <style type="text/css"> <!-- body { font: 12px Arial, sans-serif; background: url(bg1.jpg) top center fixed #000000; background-repeat: no-repeat; overflow: scroll; margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ padding: 0; text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ color: #000000; } .twoColFixLtHdr #headlogin { width: 1020px; height: 207px; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ background-image: url(images/over_01.png); background-position: top center; background-repeat: no-repeat; background-color: transparent; padding: 0px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */ } .twoColFixLtHdr #adbar { width: 1020px; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ background-image: url(images/top_10.png); background-position: top center; background-repeat: no-repeat; background-color: transparent; padding: 0px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */ } .twoColFixLtHdr #topbar { width: 1020px; height: 220px; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ background-image: url(images/top_12.png); background-position: top center; background-repeat: no-repeat; background-color: transparent; padding: 0px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */ } .twoColFixLtHdr #container { width: 1020px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */ background-image: url(images/mainbg.png); background-position: top center; background-repeat: repeat-y; background-color: transparent; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ border: 0px solid #000000; text-align: left; /* this overrides the text-align: center on the body element. */ } .twoColFixLtHdr #header { padding: 0px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */ } .twoColFixLtHdr #sidebar1 { float: left; /* since this element is floated, a width must be given */ width: 255px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */ padding: 0px; } .twoColFixLtHdr #mainContent { width: 765px; margin: 0 0 0 255px; /* the left margin on this div element creates the column down the left side of the page - no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. */ padding: 0px; /* remember that padding is the space inside the div box and margin is the space outside the div box */ } .twoColFixLtHdr #footer { width: 1020px; height: 214px; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ background-image: url(images/top_21.png); background-position: top center; background-repeat: no-repeat; background-color: transparent; padding: 0px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */ } .twoColFixLtHdr #footer p { margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */ padding-left: 300px; padding-top: 125px; } .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */ float: right; } .fltlft { /* this class can be used to float an element left in your page */ float: left; } .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */ clear:both; height:0; font-size: 1px; line-height: 0px; } --> </style><!--[if IE 5]> <style type="text/css"> /* place css box model fixes for IE 5* in this conditional comment */ .twoColFixLtHdr #sidebar1 { width: 255px; } </style> <![endif]--><!--[if IE]> <style type="text/css"> /* place css fixes for all versions of IE in this conditional comment */ .twoColFixLtHdr #sidebar1 { padding-top: 0px; } .twoColFixLtHdr #mainContent { zoom: 1; } /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */ </style> <![endif]--> <script type="text/javascript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_nbGroup(event, grpName) { //v6.0 var i,img,nbArr,args=MM_nbGroup.arguments; if (event == "init" && args.length > 2) { if ((img = MM_findObj(args[2])) != null && !img.MM_init) { img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src; if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array(); nbArr[nbArr.length] = img; for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = img.MM_dn = args[i+1]; nbArr[nbArr.length] = img; } } } else if (event == "over") { document.MM_nbOver = nbArr = new Array(); for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up); nbArr[nbArr.length] = img; } } else if (event == "out" ) { for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; } } else if (event == "down") { nbArr = document[grpName]; if (nbArr) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; } document[grpName] = nbArr = new Array(); for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up; nbArr[nbArr.length] = img; } } } //--> </script> </head> <body class="twoColFixLtHdr" onload="MM_preloadImages('images/over_02.png','images/over_03.png','images/over_04.png','images/over_05.png','images/over_06.png','images/over_07.png','images/over_08.png','images/over_09.png')"> <div id="headlogin"> <div style="padding-left: 729px; padding-top: 30px;"> <?php include("login.php"); ?> </div> </div> <center> <a href="index.php" target="_top" onclick="MM_nbGroup('down','group1','top02','',1)" onmouseover="MM_nbGroup('over','top02','images/over_02.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/top_02.png" alt="" name="top02" width="132" height="51" border="0" id="top02" onload="" /></a><a href="forum/index.php" target="_top" onclick="MM_nbGroup('down','group1','top03','',1)" onmouseover="MM_nbGroup('over','top03','images/over_03.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/top_03.png" alt="" name="top03" width="123" height="51" border="0" id="top03" onload="" /></a><a href="index.php?site=squads" target="_top" onclick="MM_nbGroup('down','group1','top04','',1)" onmouseover="MM_nbGroup('over','top04','images/over_04.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/top_04.png" alt="" name="top04" width="122" height="51" border="0" id="top04" onload="" /></a><a href="index.php?site=articles" target="_top" onclick="MM_nbGroup('down','group1','top05','',1)" onmouseover="MM_nbGroup('over','top05','images/over_05.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/top_05.png" alt="" name="top05" width="123" height="51" border="0" id="top05" onload="" /></a><a href="index.php?site=files" target="_top" onclick="MM_nbGroup('down','group1','top06','',1)" onmouseover="MM_nbGroup('over','top06','images/over_06.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/top_06.png" alt="" name="top06" width="123" height="51" border="0" id="top06" onload="" /></a><a href="index.php?site=clanwars" target="_top" onclick="MM_nbGroup('down','group1','top07','',1)" onmouseover="MM_nbGroup('over','top07','images/over_07.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/top_07.png" alt="" name="top07" width="122" height="51" border="0" id="top07" onload="" /></a><a href="index.php?site=contact" target="_top" onclick="MM_nbGroup('down','group1','top08','',1)" onmouseover="MM_nbGroup('over','top08','images/over_08.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/top_08.png" alt="" name="top08" width="123" height="51" border="0" id="top08" onload="" /></a><a href="index.php?site=sponsors" target="_top" onclick="MM_nbGroup('down','group1','top09','',1)" onmouseover="MM_nbGroup('over','top09','images/over_09.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/top_09.png" alt="" name="top09" width="152" height="51" border="0" id="top09" onload="" /></a> </center> <div id="adbar"> <div style="padding-left: 75px;"> <?php include("sc_bannerrotation.php"); ?> </div> </div> <img src="images/top_11.png" width="1020" height="38" /> <div id="topbar"> <table width="1020" border="0" cellspacing="0" cellpadding="0"> <tr> <td><div style="width: 252px; height: 220px; padding-left: 8px;"><?php include("sc_upcomingmatch.php"); ?></div></td> <td><div style="width: 396px; height: 220px;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="396" height="220" id="ad_loader" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="ad_loader.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <embed src="ad_loader.swf" quality="high" bgcolor="#ffffff" width="396" height="220" name="ad_loader" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object></div></td> <td><div style="width: 350px; height: 220px; padding-left: 2px;"><?php include("sc_sponsors.php"); ?></div></td> </tr> </table> </div> <div id="container"> <div id="sidebar1"> <img src="images/top_13.png" width="255" height="41" /> <div style="padding-left: 10px;"> <?php include("sc_results.php"); ?> </div> <img src="images/top_17.png" width="255" height="63" /> <div style="padding-left: 10px;"> <?php include("latesttopics.php"); ?> </div> <img src="images/top_19.png" width="255" height="67" /> <div style="padding-left: 8px;"> <center><?php include("partners.php"); ?></center> </div> <!-- end #sidebar1 --></div> <div id="mainContent"> <img src="images/top_14.png" width="765" height="41" /> <div style="padding-left: 10px; padding-right: 30px;"> <?php if(!isset($site)) $site="news"; $invalide = array('\\','/','/\/',':','.'); $site = str_replace($invalide,' ',$site); if(!file_exists($site.".php")) $site = "news"; include($site.".php"); ?> </div> <!-- end #mainContent --></div> <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" /> <!-- end #container --></div> <div id="footer"> <p><?php include("counter.php"); ?><br /> <a href="index.php" target="_blank">Pagina Inicial</a> | <a href="/forum/index.php" target="_blank">Forum</a> | <a href="index.php?site=squads" target="_blank">Times</a> | <a href="index.php?site=articles" target="_blank">Artigos</a> | <a href="index.php?site=files" target="_blank">Arquivos</a> | <a href="index.php?site=clanwars" target="_blank">Jogos</a> | <a href="index.php?site=contact" target="_blank">Contato</a> | <a href="index.php?site=sponsors" target="_blank">Patrocinadores</a> | <br /> Copyright by <b><?php echo $myclanname ?></b> | CMS powered by <a href="http://www.webspell.org" target="_blank"><b>webSPELL.org</b></a> | <a href="tmp/rss.xml" target="_blank"><img src="images/icons/rss.png" width="16" height="16" style="vertical-align:bottom;" alt="" /></a> <a href="tmp/rss.xml" target="_blank">RSS Feed</a> | <a href="index.php?site=login" target="_blank">Admin</a></p> <!-- end #footer --></div> </body> </html>
ta ae eu mudei os links do site=forum para o meu forum mais o forum ainda esta ativo
Analisando aki agora descobri que esse e um dos Problemas
<img src="images/top_17.png" width="255" height="63" /> <div style="padding-left: 10px;"> <?php include("latesttopics.php"); ?> </div>
Isso e que faiz os Posts ficar do lado esquerdo do site. vo da uma olhada para ver se consigo colocar do otro forum os post ficar na lateral.
#7
Posted 11/02/2010, 17:05
Aqui está o problema:
Coloque no início do arquivo:
<?php if(!isset($site)) $site="news"; $invalide = array('\\','/','/\/',':','.'); $site = str_replace($invalide,' ',$site); if(!file_exists($site.".php")) $site = "news"; include($site.".php"); ?>
Coloque no início do arquivo:
$site = $_GET['forum']; if ($site == 'forum') { header("Location: http://forum.privatedota.com/"); exit; }
att,
Muller Dias
ex-administrador Fórum WMO
Muller Dias
ex-administrador Fórum WMO
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)