Jump to content

Search the Community

Showing results for tags 'album de fotos'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Q&A Desenvolvimento
    • Perguntas e respostas rápidas
  • Desenvolvimento e Banco de Dados
    • HTML e CSS
    • Java
    • Javascript
    • .NET
    • PHP
    • Python
    • Ruby
    • Mobile
    • Ambientes de Desenvolvimento
    • Arquitetura e Métodos Ágeis
    • Banco de Dados
    • DevOps
    • Desenvolvimento de Games
    • E-Commerce e Pagamentos Online
    • SEO e Otimizações
    • WordPress
    • Algoritmos & Outras Tecnologias
  • Design e Produto
    • Fotografia
    • Photoshop
    • Design de interfaces e UX
    • Edição/Produção de Vídeos
    • Marketing Online
    • Desenho, Ilustração e 3D
  • Entretenimento e uso pessoal
    • Geral
    • Segurança & Malwares
    • Gadgets e wearable
    • Softwares e Apps
    • Entretenimento

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Google+


Hangouts


Skype


Twitter


deviantART


Github


Flickr


LinkedIn


Pinterest


Facebook


Site Pessoal


Localização


Interesses

Found 1 result

  1. Ola pessoal Eu fiz a galeria de fotos porem estou tendo um problema o albuns abre normalmente e as fotos tbm mais se eu atualizar a pagina a minha pagina galeria.php ela fica vazia sem os albuns la dentro que eu atualizar de novo aparece todos os albuns Meu album seria assim meudominio.com/galeria.php <?php header('Access-Control-Allow-Origin: *'); require_once('../../includes/funcoes.php'); require_once('../../database/config.database.php'); require_once('../../database/config.php'); $categoria = get('categoria'); if (ModoManutencao()) { header("Location: ../manutencao.php"); } $data_atual = date('Y-m-d'); $QueryCat = DBRead('c_album','*',"WHERE id = '{$categoria}'"); if (is_array($QueryCat)) { foreach ($QueryCat as $c_album) { $p = $c_album['paginacao']; $ordenar_por = $c_album['ordenar_por']; $asc_desc = $c_album['asc_desc']; $background = $c_album['background']; $cor_titulo = $c_album['cor_titulo']; $url = $c_album['url']; } } if ($categoria != '0') { $QueryNum = DBCount('album','*',"WHERE status = 1 AND id_categoria = '{$categoria}' AND data <= '{$data_atual}' AND status = '1' ORDER BY {$ordenar_por} {$asc_desc}"); } else { $QueryNum = DBCount('album','*',"WHERE status = 1 AND data <= '{$data_atual}' AND status = '1' ORDER BY {$ordenar_por} {$asc_desc}"); } $pag = (isset($_GET['pag']))? $_GET['pag'] : 1; $registros = $p; $numPaginas = ceil($QueryNum/$registros); $inicio = ($registros*$pag)-$registros; if ($categoria != '0') { $Query = DBRead('album','*',"WHERE status = 1 AND id_categoria = '{$categoria}' AND data <= '{$data_atual}' AND status = '1' ORDER BY {$ordenar_por} {$asc_desc} LIMIT {$inicio}, {$registros}"); } else { $Query = DBRead('album','*',"WHERE status = 1 AND data <= '{$data_atual}' AND status = '1' ORDER BY {$ordenar_por} {$asc_desc} LIMIT {$inicio}, {$registros}"); } ?> <style> .thumbnail:hover{ border-radius: 0px !important; border: 1px transparent !important;} .bg:hover { opacity: 0; } </style> <div class="row"> <div class='list-group'> <?php if (is_array($Query)) { foreach ($Query as $album) { ?> <div class='col-sm-4 col-xs-12 col-md-3 col-lg-3'> <a onmouseover="bg(<?php echo $album['id']; ?>)" onmouseout="bgnormal(<?php echo $album['id']; ?>)" class="thumbnail" style="background-color:<?php echo $background; ?>; border-radius: 0px !important; position: relative !important; border: 1px transparent !important;" href="#!" onclick="AbreAlbum(<?php echo $album['id']; ?>, <?php echo $categoria; ?>, <?php echo $pag; ?>, <?php echo $pag; ?>)"> <img class="img-responsive" alt="<?php echo $album['titulo']; ?>" src="<?php echo ConfigPainel('site_url'); ?>/wa/thumb.php?src=<?php echo ConfigPainel('site_url'); ?>/wa/album/uploads/<?php echo $album['imagem']; ?>&w=500&h=500&q=90" /> <div class='legenda' onmouseover="bg(<?php echo $album['id']; ?>)" onmouseout="bgnormal(<?php echo $album['id']; ?>)" style="margin-left: 4px; width: calc(100% - 8px); height: calc(55px + 5%); left: 0px; position: absolute; text-align: center; background-color: rgba(0,0,0,0.5); z-index: 1001; padding: 1px; bottom: 4px;"> <small class='text-muted' style="font-size: 15px; color: #FFF;"><?php echo LimitarTexto($album['titulo'],50,'...'); ?></small> </div> <div id="bg<?php echo $album['id']; ?>" class="bg" style="margin-left: 4px; width: calc(100% - 8px); height: calc(100% - 8px); top: 4px; left: 0px; position: absolute; text-align: center; background-color: rgba(0,0,0,0.5); transition: 0.4s; z-index: 1000; padding: 1px; bottom: 4px;"></div> </a> </div> <?php } } ?> </div> </div> <?php $GetPag = "?categoria=".$categoria."&p=".$p; ?> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <center> <div class="btn-group" role="group" aria-label="..."> <?php if (isset($_GET['pag'])) { $i = $_GET['pag']; } else { $i = 1; } ?> <?php if ($i <= '1') { ?> <button type="hidden" class="btn btn-default btn-sm hidden" disabled>Anterior</button> <?php } elseif ($i >= '2') { $i = $i - '1'; ?> <button type="button" class="btn btn-default btn-sm" onclick="PaginacaoAlbums('albums.php', <?php echo $categoria; ?>,'<?php echo $i; ?>');">Anterior</button> <?php } ?> <?php if (isset($_GET['pag'])) { $i = $_GET['pag']; } else { $i = '1'; } ?> <?php if ($numPaginas >= '1' && $numPaginas < '9') { $numPaginas = '0'.$numPaginas; } elseif ($numPaginas > '9') { $numPaginas = $numPaginas; } ?> <?php if ($i >= '1' && $i <= '9') { ?> <button type="button" class="btn btn-default btn-sm" disabled>Página 0<?php echo $i; ?> de <?php echo $numPaginas; ?></button> <?php } elseif ($i > '9') { ?> <button type="button" class="btn btn-default btn-sm" disabled>Página <?php echo $i; ?> de <?php echo $numPaginas; ?></button> <?php } ?> <?php if (isset($_GET['pag'])) { $i = $_GET['pag']; } else { $i = '1'; } ?> <?php if ($i >= 1 && $i < $numPaginas) { $i++; ?> <button type="button" class="btn btn-default btn-sm" onclick="PaginacaoAlbums('albums.php', <?php echo $categoria; ?>,'<?php echo $i; ?>');">Próximo</button> <?php } elseif ($i == $numPaginas) { ?> <button type="button" class="btn btn-default btn-sm hidden" disabled>Próximo</button> <?php } ?> </div> </center> <br> </div> <?php if (isset($_GET['Wa5']) || !isset($_GET['Wa4'])){ ?> <script type="text/javascript"> history.pushState('','','?'); </script> <?php } ?> <script> $(document).ready(function() { $(".ModalNoticia").fancybox({ maxWidth : 1000, maxHeight : 700, fitToView : false, width : '90%', height : '90%', autoSize : false, closeClick : false, openEffect : 'none', closeEffect : 'none' }); }); </script> <script> function bg(x) { document.getElementById("bg"+x).style.opacity = "0"; } function bgnormal(x) { document.getElementById("bg"+x).style.opacity = "1"; } </script> Ja quando abre todas as imagem que esta dentro do album ele gera um link ex: meudominio.com/galeria?album=7&categoria=52&pag=1&back=1 Ate aqui esta de boa se atualizar ele ou fazer shared quando clica ele nao fica no link enviado ele retorna para meudominio.com/galeria? e fica tudo vazio também para aparecer os albuns tenho que atualizar de novo Códgo de todas as fotos esta assim <?php header('Access-Control-Allow-Origin: *'); require_once('../../includes/funcoes.php'); require_once('../../database/config.database.php'); require_once('../../database/config.php'); $album = get('album'); $categoria = get('categoria'); $data_atual = date('Y-m-d'); $pag = (isset($_GET['pag']))? $_GET['pag'] : 1; $Query = DBRead('album','*',"WHERE id = '{$album}'"); if (is_array($Query)) { foreach ($Query as $qalbum) { $TituloAlbum = $qalbum['titulo']; $AutorAlbum = $qalbum['autor']; $DataAlbum = $qalbum['data']; } } if (is_array($Query)) { foreach ($Query as $qalbum) { $QueryCat = DBRead('c_album','*',"WHERE id = '{$qalbum['id_categoria']}'"); if (is_array($QueryCat)) { foreach ($QueryCat as $c_album) { $p = $c_album['paginacao_fotos']; $ordenar_por = $c_album['ordenar_por']; $asc_desc = $c_album['asc_desc']; $background = $c_album['background']; $cor_titulo = $c_album['cor_titulo']; $UrlAlbum = $c_album['url']; } } }} $QueryNum = DBCount('fotos_album','*',"WHERE id_album = '{$album}' ORDER BY {$ordenar_por} {$asc_desc}"); $pag = (isset($_GET['pag']))? $_GET['pag'] : 1; $registros = $p; $numPaginas = ceil($QueryNum/$registros); $inicio = ($registros*$pag)-$registros; $Query = DBRead('fotos_album','*',"WHERE id_album = '{$album}' ORDER BY {$ordenar_por} {$asc_desc} LIMIT {$inicio}, {$registros}"); if (get('back') == 'null') { $GetBack = '1'; } else { $GetBack = get('back'); } ?> <style> .bg:hover { opacity: 0; } .fancybox-skin { padding: 5px !important; } </style> <div class="row"> <div class="col-md-12" style="margin-bottom:5px;"> <button class="btn btn-xs pull-right" onclick="Albums(<?php echo $categoria; ?>,<?php echo $GetBack; ?>);" style="background-color:transparent; color:<?php echo $cor_titulo; ?> ;"><i class='fa fa-chevron-left'></i> Voltar</button> </div> <div class='list-group pull-left'> <?php if (is_array($Query)) { foreach ($Query as $fotos) { ?> <div class="col-sm-4 col-xs-6 col-md-3 col-lg-3"> <a class="fancybox" rel="<?php echo $album; ?>" href="<?php echo ConfigPainel('site_url'); ?>/wa/album/uploads/<?php echo $fotos['imagem']; ?>" title="<?php echo $fotos['titulo']; ?> <?php if (!empty($fotos['titulo'])) { echo "-"; } ?><a href='<?php echo ConfigPainel('site_url'); ?>/wa/album/uploads/<?php echo $fotos['imagem']; ?>' download='<?php echo $fotos['titulo']; ?>' style='color:#FFF; <?php if (!empty($fotos['titulo'])) { echo "margin-left:15px;"; } ?>'><i class='fa fa-download fa-2x'></i></a>"> <img title="<?php echo $fotos['titulo']; ?>" class="img-responsive" src="<?php echo ConfigPainel('site_url'); ?>/wa/thumb.php?src=<?php echo ConfigPainel('site_url'); ?>/wa/album/uploads/<?php echo $fotos['imagem']; ?>&w=500&h=500" style="margin-bottom:10px;"> <div class="bg" style="margin-left: 15px; width: calc(100% - 30px); height: calc(100% - 10px); top: 0px; left: 0px; position: absolute; text-align: center; background-color: rgba(0,0,0,0.5); transition: 0.4s; z-index: 1000; padding: 1px; bottom: 4px;"></div> </a> </div> <?php }} ?> </div> <div class="col-md-12"> <center style="color: <?php echo $cor_titulo; ?>;"> <?php echo $TituloAlbum; ?> </center> </div> <div class="col-md-6 col-sm-6"> <label style="color: <?php echo $cor_titulo; ?>;">Compartilhe:</label> <a class="btn btn-primary btn-xs" style="text-decoration:none; background-color:#3b5998; border:0px;" href="javascript:void(0);" onclick="window.open('http://www.facebook.com/sharer.php?u=<?php echo ConfigPainel('site_url'); ?>/wa/album/share.php?id=<?php echo $album; ?>_url_<?php echo base64_encode(EncurtarUrl($UrlAlbum)); ?>','Compartilhar', 'toolbar=0, status=0, width=650, height=450');"> <i class="fa fa-facebook"></i> Facebook </a> <a class="btn btn-primary btn-xs" style="text-decoration:none; background-color:#00aced; border:0px;" href="javascript:void(0);" onclick="window.open('https://twitter.com/home?status=<?php echo $TituloAlbum; ?> <?php echo EncurtarUrl($UrlAlbum); ?>','Compartilhar', 'toolbar=0, status=0, width=650, height=450');"> <i class="fa fa-twitter"></i> Twitter </a> <a class="btn btn-primary btn-xs hidden-lg hidden-md hidden-sm whatsapp" data-text="<?php echo $TituloAlbum; ?>" data-link="<?php echo EncurtarUrl($UrlAlbum); ?>" style="text-decoration:none;background-color:#20a114; border:0px;"> <i class="fa fa-whatsapp"></i> Whatsapp </a> </div> <div class="col-md-6 col-sm-6" style="text-align:right;"> <p style="color: <?php echo $cor_titulo; ?>; margin-right: 10px;"><i class="fa fa-user"></i> Autor: <?php echo $AutorAlbum; ?> / <i class="fa fa-calendar"></i> Data: <?php echo date('d/m/Y', strtotime($DataAlbum)); ?></p> </div> </div> <?php $GetPag = "?album=".$album."&categoria=".$categoria."&back=".get('back')."&p=".$p; ?> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <center> <div class="btn-group" role="group" aria-label="..."> <?php if (isset($_GET['pag'])) { $i = $_GET['pag']; } else { $i = 1; } ?> <?php if ($i <= '1') { ?> <button type="hidden" class="btn btn-default btn-sm hidden" disabled>Anterior</button> <?php } elseif ($i >= '2') { $i = $i - '1'; ?> <button type="button" class="btn btn-default btn-sm" onclick="PaginacaoFotos('album.php', '<?php echo $categoria; ?>','<?php echo $i; ?>');">Anterior</button> <?php } ?> <?php if (isset($_GET['pag'])) { $i = $_GET['pag']; } else { $i = '1'; } ?> <?php if ($numPaginas >= '1' && $numPaginas < '9') { $numPaginas = '0'.$numPaginas; } elseif ($numPaginas > '9') { $numPaginas = $numPaginas; } ?> <?php if ($i >= '1' && $i <= '9') { ?> <button type="button" class="btn btn-default btn-sm" disabled>Página 0<?php echo $i; ?> de <?php echo $numPaginas; ?></button> <?php } elseif ($i > '9') { ?> <button type="button" class="btn btn-default btn-sm" disabled>Página <?php echo $i; ?> de <?php echo $numPaginas; ?></button> <?php } ?> <?php if (isset($_GET['pag'])) { $i = $_GET['pag']; } else { $i = '1'; } ?> <?php if ($i >= 1 && $i < $numPaginas) { $i++; ?> <button type="button" class="btn btn-default btn-sm" onclick="PaginacaoFotos('album.php', '<?php echo $categoria; ?>','<?php echo $i; ?>');">Próximo</button> <?php } elseif ($i == $numPaginas) { ?> <button type="button" class="btn btn-default btn-sm hidden" disabled>Próximo</button> <?php } ?> </div> </center> <br> </div> <script type="text/javascript"> history.pushState('','','?album=<?php echo get('album'); ?>&categoria=<?php echo $categoria; ?>&pag=<?php echo $pag; ?>&back=<?php echo $GetBack; ?>'); </script> <script> jQuery(document).ready(function() { jQuery('.whatsapp').on("click", function(e) { if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { var article = jQuery(this).attr("data-text"); var weburl = jQuery(this).attr("data-link"); var whats_app_message = encodeURIComponent(article)+" - "+encodeURIComponent(weburl); var whatsapp_url = "whatsapp://send?text="+whats_app_message; window.location.href= whatsapp_url; } else { alert('Oops, você não está usando um dispositivo mobile.'); } }); }); </script> Eu achei que seria algum ERRO ou BUG, mais ele abre tudo certinho só da este problemas quando vai atualizar ou shared da pagina inteira das fotos
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.