Skip to content

Instantly share code, notes, and snippets.

View Uriel29's full-sized avatar

Uriel dos Santos Souza Uriel29

View GitHub Profile
@Uriel29
Uriel29 / Pegar dados gerais do Joomla e seblod.php
Created November 13, 2016 15:21
Código para pegar dados do usuário e de qualquer campo do Seblod. Código by Marcio Garrido
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('id', 'name', 'cep', 'associacao_associado','cpf','cnpj','endereco','celular')));
$query->from($db->quoteName('vjboleto'));
$query->where($db->quoteName('id') . ' = '.$db->quote($user->id));
$query->order('id ASC');
$db->setQuery($query);
$row = $db->loadRow();
@Uriel29
Uriel29 / equal_heights_grouped.js
Created September 15, 2016 00:40 — forked from uzielweb/equal_heights_grouped.js
This is a Script to autoresize DIVS grouped to each parente div to set the same heights
<script type="text/javascript">
jQuery(document).ready(function($){
/* Thanks to CSS Tricks for pointing out this bit of jQuery
http://css-tricks.com/equal-height-blocks-in-rows/
It's been modified into a function called at page load and then each time the page is resized. One large modification was to remove the set height before each new calculation. */
equalheight = function(container){
@Uriel29
Uriel29 / app.js
Created April 14, 2016 13:30
XDK project Test Onesignal
function onAppReady() {
if( navigator.splashscreen && navigator.splashscreen.hide ) { // Cordova API detected
navigator.splashscreen.hide() ;
}
}
// document.addEventListener("deviceready", onAppReady, false) ;
// document.addEventListener("onload", onAppReady, false) ;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>JSON Sample</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>JSON Sample</title>
</head>
<body>
<div id="resultado"></div>
<div id="resultado2"></div>
@Uriel29
Uriel29 / manipularJson_comJquery.js
Last active March 31, 2016 12:55
Forma simples de receber e manipular Json com Jquuery $.get e $.getJSON nesses 2 arquivos mostros 2 formas de fazer isso.
$(document).ready(function(){
$.get( "http://seu site/", function( data ) {
data = typeof data == 'string' ? JSON.parse(data) : data;
data.forEach(function(elementoDaArray) {
var div = document.createElement('div');
@Uriel29
Uriel29 / form_mainbody.php
Created March 10, 2016 18:12 — forked from jsfernando/form_mainbody.php
Formulário de Acompanhamento de Protocolo - j!3.4.8 + Seblod 3.7.2 override
/* arquivo mainbody.php */
/* templates/seb_one/positions/protocolo_acompanhamento/site/mainbody.php */
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#protoca_num").change(function(){
var idnum = jQuery(this).val();
jQuery.ajax({
@Uriel29
Uriel29 / inserir_e_verificardados.php
Last active June 13, 2016 19:14
Este código criado pelo Marcio Pinheiro, verifica se um usuário logado viu um artigo. O código salva os dados dele no banco.
<?php defined('_JEXEC') or die;
//CÓDIGO CRIADO POR Marcio Pinheiro, PARA VERIFICAR SE UM USUÁRIO VIU UM ARTIGO QUE DEVERIA VER.
// CONTATO: marciop07@hotmail.com, https://www.facebook.com/MarcioP001
//Criei uma tabela manual no banco de dados com nome "_log_diario";
//Com os campos "id, article_id, user, data, ip"
//O campo id é auto incremento,
//O campo article_id é do tipo inteiro
@Uriel29
Uriel29 / JoomlaNginx.conf
Created January 20, 2016 16:09 — forked from tiagovtg/JoomlaNginx.conf
Configuration file Nginx for Joomla! Akeeba + Uriel29 Merge
server {
######################################################################
## The Master .htaccess - NginX adaptation
##
## Version 3.3
##
## This file is designed to be the template NginX server configuration file
## for your Joomla! sites. You should go through all of its sections and
## modify it to match your site. Most notably, all instances of example.com
## and example\.com should be replaced with your real domain name.
@Uriel29
Uriel29 / customDescr.php
Last active February 21, 2019 11:55
Custom description Joomla AND Seblod and title page
<?php
$app = JFactory::getApplication();
$this->setTitle( 'meu titulo de página' );
//nem sempre funciona
?>