Sugestões ou Dúvidas


Boas Vindas, Felicitações, Sugestões e Duvidas sobre o fórum.

Moderadores: hulkman, prodrive, migueis

Avatar do Utilizador

Geopt Lackey
Geopt Lackey

Mensagens: 7057

Registado: terça 27 abr 2010, 13:57

Mensagem Post: #711 a sexta 27 jan 2012, 12:03 

Re: Sugestões ou Dúvidas

Realmente... era uma coisa desta para certas e determinhadas caches e afins na Gs!!!
Imagem Imagem Imagem Imagem
Avatar do Utilizador

Geopt Proud Member
Geopt Proud Member

Mensagens: 10395

Registado: segunda 29 mar 2010, 17:23

Mensagem Post: #712 a sexta 27 jan 2012, 16:09 

Re: Sugestões ou Dúvidas

btrodrigues Escreveu:Já o tinha manifestado anteriormente.
Acho que o volume de tráfego da secção de badges é exagerado e que desvia a atenção dos tópicos importantes.

Estou com o Lopes e o ViperUnderground


não sei se já repararam, mas foi adicionado um subfórum para os badges, e os tópicos desse novo subfórum deixaram de aparecer nos últimos tópicos que existem no portal. Esperamos que assim esteja mais ao vosso gosto!
Imagem Imagem Imagem Imagem
Avatar do Utilizador

Geocoin
Geocoin

Mensagens: 821

Registado: quinta 25 mar 2010, 22:46

Mensagem Post: #713 a sexta 27 jan 2012, 16:59 

Re: Sugestões ou Dúvidas

Xelente!

Muito obrigado!
Imagem
Avatar do Utilizador

Geocacher Viciado
Geocacher Viciado

Mensagens: 1003

Registado: terça 27 abr 2010, 20:30

Localização: Valongo - Porto

Mensagem Post: #714 a sexta 27 jan 2012, 23:58 

Re: Sugestões ou Dúvidas

migueis Escreveu:Para a sua implementação, é por isso necessária a utilização do browser Firefox e do plugin Greasemonkey.

Eu, "atirei" para o Chrome e aparentemente também dá, pelo menos instalou!

migueis Escreveu:Esqueci-me de dizer que esta opção de ocultar os fóruns nao esta assim muito boa, esta espectacular :D

Já instalei, mas ainda não testei ;). Mas, não dá para subdividir mais? É que ignorar fóruns completos é muito, era mais os sub-fóruns ;).
Imagem Imagem Imagem
Avatar do Utilizador

Geopt Proud Member
Geopt Proud Member

Mensagens: 14160

Registado: quinta 25 mar 2010, 05:07

Mensagem Post: #715 a sábado 28 jan 2012, 01:38 

Sugestões ou Dúvidas

Sim podes subdividir ainda mais.
É fácil e intuitivo. Se olhares para o código percebes rapidamente como funciona. Caso tenhas dificuldade avisa.
Life would be so much easier if we just had the source code.
Imagem
Avatar do Utilizador

Geocacher Viciado
Geocacher Viciado

Mensagens: 1003

Registado: terça 27 abr 2010, 20:30

Localização: Valongo - Porto

Mensagem Post: #716 a sábado 28 jan 2012, 01:44 

Re: Sugestões ou Dúvidas

Eu a olhar para o código, é mais ou menos como um burro a olhar para um palácio ;)

Se puderes, coloca o exemplo, para um sub-fórum e/ou directamente para um tópico.

Obrigado.
Imagem Imagem Imagem
Avatar do Utilizador

Geopt Proud Member
Geopt Proud Member

Mensagens: 14160

Registado: quinta 25 mar 2010, 05:07

Mensagem Post: #717 a sábado 28 jan 2012, 02:57 

Re: Sugestões ou Dúvidas

Fica aqui o código completo com todos os foruns e subforuns

  Código:
    //GeoPT.org
    //By default, every forum is shown. To remove specific results from your search,
    //replace "true" at the end of the line (below) that contains the forum's name with "false" (no quotation marks)
    var s=document.getElementsByTagName('a');
    var availableForums = new Array();
    availableForums[0] = new Forum('Forum - FORUM',24,true);
    availableForums[1] = new Forum('Forum - FORUM - Utilizadores',39,true);
    availableForums[2] = new Forum('Forum - IAAN, BADGES, BANNERS, MAPAS',52,true);
    availableForums[3] = new Forum('Forum - IAAN, BADGES, BANNERS, MAPAS - BADGES',89,true);
    availableForums[4] = new Forum('Forum - MANUAIS, LOGBOOKS & STASHNOTES',36,true);
    availableForums[5] = new Forum('Forum - GEOPT.TV',42,true);
    availableForums[6] = new Forum('Forum - PRÉMIOS GPS',43,true);
    availableForums[7] = new Forum('Forum - PROJECTOS GEOPT',62,true);
    availableForums[8] = new Forum('Forum - MERCHANDISING',50,true);
    availableForums[9] = new Forum('Forum - PASSATEMPOS',51,true);
    availableForums[10] = new Forum('Geocaching - GEOCACHING GERAL',47,true);
    availableForums[11] = new Forum('Geocaching - GEOCACHING NACIONAL',2,true);
    availableForums[12] = new Forum('Geocaching - GEOCACHING REGIONAL',66,true);
    availableForums[13] = new Forum('Geocaching - GEOCACHING REGIONAL - VIAGENS DA MINHA TERRA',87,true);
    availableForums[14] = new Forum('Geocaching - GEOCACHING REGIONAL - ARQUIPÉLAGO DA MADEIRA',67,true);
    availableForums[15] = new Forum('Geocaching - GEOCACHING REGIONAL - ARQUIPÉLAGO DOS AÇORES',68,true);
    availableForums[16] = new Forum('Geocaching - GEOCACHING REGIONAL - AVEIRO',69,true);
    availableForums[17] = new Forum('Geocaching - GEOCACHING REGIONAL - BEJA',70,true);
    availableForums[18] = new Forum('Geocaching - GEOCACHING REGIONAL - BRAGA',71,true);
    availableForums[19] = new Forum('Geocaching - GEOCACHING REGIONAL - BRAGANÇA',72,true);
    availableForums[20] = new Forum('Geocaching - GEOCACHING REGIONAL - CASTELO BRANCO',73,true);
    availableForums[21] = new Forum('Geocaching - GEOCACHING REGIONAL - COIMBRA',74,true);
    availableForums[22] = new Forum('Geocaching - GEOCACHING REGIONAL - ÉVORA',75,true);
    availableForums[23] = new Forum('Geocaching - GEOCACHING REGIONAL - FARO',76,true);
    availableForums[24] = new Forum('Geocaching - GEOCACHING REGIONAL - GUARDA',77,true);
    availableForums[25] = new Forum('Geocaching - GEOCACHING REGIONAL - LEIRIA',78,true);
    availableForums[26] = new Forum('Geocaching - GEOCACHING REGIONAL - LISBOA',79,true);
    availableForums[27] = new Forum('Geocaching - GEOCACHING REGIONAL - PORTALEGRE',80,true);
    availableForums[28] = new Forum('Geocaching - GEOCACHING REGIONAL - PORTO',81,true);
    availableForums[29] = new Forum('Geocaching - GEOCACHING REGIONAL - SANTARÉM',82,true);
    availableForums[30] = new Forum('Geocaching - GEOCACHING REGIONAL - SETÚBAL',83,true);
    availableForums[31] = new Forum('Geocaching - GEOCACHING REGIONAL - VIANA DO CASTELO',84,true);
    availableForums[32] = new Forum('Geocaching - GEOCACHING REGIONAL - VILA REAL',85,true);
    availableForums[33] = new Forum('Geocaching - GEOCACHING REGIONAL - VISEU',86,true);
    availableForums[34] = new Forum('Geocaching - GEOCACHING INTERNACIONAL',14,true);
    availableForums[35] = new Forum('Geocaching - WHERIGO, EARTHCACHING & CHALLENGES',16,true);
    availableForums[36] = new Forum('Geocaching - WAYMARKING, MUNZEE E OUTROS',57,true);
    availableForums[37] = new Forum('Geocaching - EVENTOS & MEETUPS',37,true);
    availableForums[38] = new Forum('Geocaching - TRACKABLES',15,true);
    availableForums[39] = new Forum('Geocaching - DÚVIDAS SOBRE GUIDELINES',55,true);
    availableForums[40] = new Forum('Geocaching - FEEDBACK',44,true);
    availableForums[41] = new Forum('Tech - SOFTWARE',17,true);
    availableForums[42] = new Forum('Geocaching - GEOCACHING REGIONAL - CACHEBOX',58,true);
    availableForums[43] = new Forum('Geocaching - GEOCACHING REGIONAL - GSAK',59,true);
    availableForums[44] = new Forum('Geocaching - GEOCACHING REGIONAL - CARTOGRAFIA',60,true);
    availableForums[45] = new Forum('Geocaching - GEOCACHING REGIONAL - UTILITÁRIOS/OUTROS',61,true);
    availableForums[46] = new Forum('Tech - GADGETS & GIZMOS',18,true);
    availableForums[47] = new Forum('Lazer - ESCUTISMO & NATUREZA',25,true);
    availableForums[48] = new Forum('Lazer - FOTOGRAFIA',20,true);
    availableForums[49] = new Forum('Lazer - TT, BTT & Pedestrianismo',28,true);
    availableForums[50] = new Forum('Lazer - VIAJAR',29,true);
    availableForums[51] = new Forum('Forum - OFF-TOPIC',21,true);
    availableForums[52] = new Forum('Forum - CLASSIFICADOS',23,true);

    for (var i = 0; i < s.length; i++){
        var a=s[i];
        if (a.getAttribute('href') != null){
            if (!CheckIfHidden(a.getAttribute('href'))){
                a.parentNode.parentNode.parentNode.style.display='none';
            }
        }
    }

    function Forum(strTextName, intForumID, boolIncludeInSearch){
        this.DisplayName = strTextName;
        this.ForumID = intForumID;
        this.IsAvailable= boolIncludeInSearch;
    }

    function CheckIfHidden(strLink){
        for (var x=0; x < availableForums.length; x++){
            if (a.getAttribute('href').indexOf('index.php?option=com_jfusion&Itemid=53&jfile=viewforum.php&f=' + availableForums[x].ForumID) != -1)
            {
                return availableForums[x].IsAvailable;
            }
        }
        //no match - prevent error - assume available
        return true;
    }
Life would be so much easier if we just had the source code.
Imagem
Avatar do Utilizador

Geocacher Viciado
Geocacher Viciado

Mensagens: 1003

Registado: terça 27 abr 2010, 20:30

Localização: Valongo - Porto

Mensagem Post: #718 a sábado 28 jan 2012, 03:54 

Re: Sugestões ou Dúvidas

Obrigado.

Se eu já percebi alguma coisa, já descobri um erro ;)

migueis Escreveu:
  Código:
 
    availableForums[41] = new Forum('Tech - SOFTWARE',17,true);
    availableForums[42] = new Forum('Geocaching - GEOCACHING REGIONAL - CACHEBOX',58,true);
    availableForums[43] = new Forum('Geocaching - GEOCACHING REGIONAL - GSAK',59,true);
    availableForums[44] = new Forum('Geocaching - GEOCACHING REGIONAL - CARTOGRAFIA',60,true);
    availableForums[45] = new Forum('Geocaching - GEOCACHING REGIONAL - UTILITÁRIOS/OUTROS',61,true);

não será:

  Código:
    availableForums[41] = new Forum('Tech - SOFTWARE',17,true);
    availableForums[42] = new Forum('Geocaching - SOFTWARE - CACHEBOX',58,true);
    availableForums[43] = new Forum('Geocaching - SOFTWARE - GSAK',59,true);
    availableForums[44] = new Forum('Geocaching - SOFTWARE - CARTOGRAFIA',60,true);
    availableForums[45] = new Forum('Geocaching - SOFTWARE - UTILITÁRIOS/OUTROS',61,true);


Dá para ir ao nível do "Tópico"? do tipo:

  Código:
    availableForums[0] = new Forum('Forum - FORUM - Sugestões ou Dúvidas',24,false);


Para não seguir este tópico.

Se sim, teria de ficar logo a seguir à linha do "Fórum mãe", ou poderia ser acrescentado no final? E a numeração entre "[]", teria de ser toda corrigida?

Ah, não percebi é o número antes do "true/false".
Imagem Imagem Imagem
Avatar do Utilizador

Geopt Proud Member
Geopt Proud Member

Mensagens: 14160

Registado: quinta 25 mar 2010, 05:07

Mensagem Post: #719 a sábado 28 jan 2012, 22:46 

Sugestões ou Dúvidas

Obrigado pela correcção. De facto esta mal mas nao é impeditivo do correcto funcionamento. A descrição é apenas para que as pessoas percebam qual é o fórum que estão a desactivar.
O número que vem a seguir é o que é importante que é o id do fórum.
Quanto ao tópico neste caso não é possível. Seria necessário desenvolver um pouco mais mas nada que nao se consiga.
Da nossa parte nao gostaria de desenvolver muito mais por aí. ;)
Fica a ideia e o principio dum script que podem desenvolver.
Life would be so much easier if we just had the source code.
Imagem
Avatar do Utilizador

Geocoin
Geocoin

Mensagens: 749

Registado: domingo 25 abr 2010, 21:26

Localização: Alentejo, Portugal

Mensagem Post: #720 a domingo 29 jan 2012, 11:47 

Re: Sugestões ou Dúvidas

Será que é possível implementar uma moderação nos banners da assinatura?
Poder usar um máximo de 4 foi uma melhoria, o que me choca é a dimensão de alguns... [B)]
Imagem Imagem Imagem Imagem
AnteriorPróximo

Voltar para FORUM

Quem está ligado:

Utilizadores a ver este Fórum: Nenhum utilizador registado e 3 visitantes

Powered by PHPBB - Geopt.org 2013