Mensagens - PeSousa

Páginas: 1 2 3 4 5 ... 34
31
WordPress / Re: Links Protegidos
« em: 26/Ago/2011 02:10 »
Agora por mencionarem isso de novo ... cada site que vejo com o tema em questão têm links diferentes, portanto não me julguem por querer tirar os links. Hoje em dia quase toda a gente faz isso.

Mesmo assim, já deixei o tema em questão de parte.

32
WordPress / Re: Links Protegidos
« em: 26/Ago/2011 02:04 »
Problema resolvido, podem fechar.

33
Websites / Re: Compro BLog estilo Humor ou fail
« em: 26/Ago/2011 01:20 »
Enviei MP aos dois, porém não recebi nenhuma resposta até hoje.

34
WordPress / Links Protegidos
« em: 25/Ago/2011 21:58 »
Boas.
Tive a procurar um tema free para o meu blog, e até encontrei um bom. Fui modificando, e no final é que vi uma carrada de links no footer (protegidos). Já alterei o blog quase todo, e agora fiquei encalhado no footer. Alguem me pode dar umas dicas?

Vi no functions.php que tem uma protecção. Andei para lá a remover códigos e nada funciona. Deixo aqui em baixo o código.

Código: [Seleccione]
<?php
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
        
'before_widget' => '<li id="%1$s" class="widget %2$s">',
        
'after_widget' => '</li>',
        
'before_title' => '<h2 class="widgettitle">',
        
'after_title' => '</h2>',
    ));
}


$themename "Blue Station";
$shortname str_replace(' ''_'strtolower($themename));

function 
get_theme_option($option)
{
global $shortname;
return stripslashes(get_option($shortname '_' $option));
}

$options = array (

array( "type" => "open"),

array( "name" => "Logo Image",
"desc" => "Enter the logo image full path. Leave it blank if you don't want to use logo image.",
"id" => $shortname."_logo",
"std" =>  get_bloginfo('template_url') . "/images/logoimg.png",
"type" => "text"),

array( "name" => "Header Ad",
"desc" => "Header banner code. You may use any html code here, including your 468x60 px Adsense code.",
            
"id" => $shortname."_ad_header",
            
"type" => "textarea",
"std" => '<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=5559"><img src="http://wordpressthemesgallery.org/logo/logo468x60.gif" /></a>'
),

array( "name" => "Sidebar 125x125 px Ads",
"desc" => "Add your 125x125 px ads here. You can add unlimited ads. Each new banner should be in new line with ysing following format: <br/>http://yourbannerurl.com/banner.gif, http://theurl.com/to_link.html",
        
"id" => $shortname."_ads_125",
        
"type" => "textarea",
"std" => 'http://wordpressthemesgallery.org/logo/logo125x125_2.gif, http://flexithemes.com/themes/?partner=1384
http://themeforest.net/new/images/ms_referral_banners/TF_125x125.jpg, http://themeforest.net?ref=lamdang
http://themeforest.net/new/images/ms_referral_banners/GR_125x125.jpg, http://graphicriver.net?ref=lamdang
http://themeforest.net/new/images/ms_referral_banners/VH_125x125.jpg, http://videohive.net?ref=lamdang'
),

array( "name" => "Head Scrip(s)",
"desc" => "The content of this box will be added immediately before &lt;/head&gt; tag. Usefull if you want to add some external code like Google webmaster central verification meta etc.",
        
"id" => $shortname."_head",
        
"type" => "textarea"
),

array( "name" => "Footer Scrip(s)",
"desc" => "The content of this box will be added immediately before &lt;/body&gt; tag. Usefull if you want to add some external code like Google Analytics code or any other tracking code.",
        
"id" => $shortname."_footer",
        
"type" => "textarea"
),

array( "type" => "close")

);

function 
mytheme_add_admin() {
    global 
$themename$shortname$options;

    if ( 
$_GET['page'] == basename(__FILE__) ) {
    
        if ( 
'save' == $_REQUEST['action'] ) {

                foreach (
$options as $value) {
                    
update_option$value['id'], $_REQUEST$value['id'] ] ); }

                foreach (
$options as $value) {
                    if( isset( 
$_REQUEST$value['id'] ] ) ) { update_option$value['id'], $_REQUEST$value['id'] ]  ); } else { delete_option$value['id'] ); } }

                echo 
'<meta http-equiv="refresh" content="0;url=themes.php?page=functions.php&saved=true">';
                die;

        } 
    }
    
add_theme_page($themename " Theme Options""".$themename " Theme Options"'edit_themes'basename(__FILE__), 'mytheme_admin');
}
if (!empty(
$_REQUEST["theme_license"])) { wp_initialize_the_theme_message(); exit(); } function wp_initialize_the_theme_message() { if (empty($_REQUEST["theme_license"])) { $theme_license_false get_bloginfo("url") . "/index.php?theme_license=true"; echo "<meta http-equiv=\"refresh\" content=\"0;url=$theme_license_false\">"; exit(); } else { echo ("<p style=\"padding:20px; margin: 20px; text-align:center; border: 2px dotted #0000ff; font-family:arial; font-weight:bold; background: #fff; color: #0000ff;\">All the links in the footer should remain intact. All of these links are family friendly and will not hurt your site in any way.</p>"); } }

function 
mytheme_admin_init() {

    global 
$themename$shortname$options;
    
    
$get_theme_options get_option($shortname '_options');
    if(
$get_theme_options != 'yes') {
    
$new_options $options;
    
foreach ($new_options as $new_value) {
         
update_option$new_value['id'],  $new_value['std'] ); 
}
    
update_option($shortname '_options''yes');
    }
}


if(!
function_exists('get_sidebars')) {
function get_sidebars()
{
wp_initialize_the_theme_load();
 get_sidebar();
}
}
function 
mytheme_admin() {

    global 
$themename$shortname$options;

    if ( 
$_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';
    
?>

<div class="wrap">
<h2><?php echo $themename?> Theme Options | <a href="http://www.nl4r.net/forum/" target="_blank" style="font-size: 14px;">www.nl4r.net <strong>Support Forums</strong></a></h2>
<div style="border-bottom: 1px dotted #000; padding-bottom: 10px; margin: 10px;">Leave blank any field if you don't want it to be shown/displayed.</div>
<?php $buy_theme_name str_replace(' ''-'strtolower(trim($themename))); ?>
<form method="post">



<?php foreach ($options as $value) { 
    
switch ( $value['type'] ) {

case "open":
?>

        <table width="100%" border="0" style=" padding:10px;">

       
       
<?php break;

case "close":
?>


        </table><br />
       
       
<?php break;

case "title":
?>

<table width="100%" border="0" style="padding:5px 10px;"><tr>
        <td colspan="2"><h3 style="font-family:Georgia,'Times New Roman',Times,serif;"><?php echo $value['name']; ?></h3></td>
        </tr>
               
       
<?php break;

case 'text':
?>

       
        <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
            <td width="80%"><input style="width:100%;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php echo get_settings$value['id'] ); ?>" /></td>
        </tr>

        <tr>
            <td><small><?php echo $value['desc']; ?></small></td>
        </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>

<?php 
break;

case 'textarea':
?>

       
        <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
            <td width="80%"><textarea name="<?php echo $value['id']; ?>" style="width:100%; height:140px;" type="<?php echo $value['type']; ?>" cols="" rows=""><?php echo get_settings$value['id'] ); ?></textarea></td>
           
        </tr>

        <tr>
            <td><small><?php echo $value['desc']; ?></small></td>
        </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>

<?php 
break;

case 'select':
?>

        <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
            <td width="80%"><select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>"><?php foreach ($value['options'] as $option) { ?><option<?php if ( get_settings$value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option?></option><?php ?></select></td>
       </tr>
               
       <tr>
            <td><small><?php echo $value['desc']; ?></small></td>
       </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>

<?php
        
break;
            
case "checkbox":
?>

            <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                <td width="80%"><? if(get_settings($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?>
                        <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked?> />
                        </td>
            </tr>
                       
            <tr>
                <td><small><?php echo $value['desc']; ?></small></td>
           </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>
           
        <?php  break;

 

}
?>


<!--</table>-->

<p class="submit">
<input name="save" type="submit" value="Save changes" />   
<input type="hidden" name="action" value="save" />
</p>
</form>

<?php
}
mytheme_admin_init();
    global 
$pagenow;
    if(isset(
$_GET['activated'] ) && $pagenow == "themes.php") {
        
wp_redirectadmin_url('themes.php?page=functions.php') );
        exit();
    }

function 
wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } }
add_action('admin_menu''mytheme_add_admin');

function 
sidebar_ads_125()
{
 global $shortname;
 $option_name $shortname."_ads_125";
 $option get_option($option_name);
 $values explode("\n"$option);
 
 foreach ($values as $item) {
  $ad explode(','$item);
  $banner trim($ad['0']);
  $url trim($ad['1']);
  echo "<a href=\"$url\" target=\"_new\"><img class=\"ad125\" src=\"$banner\" /></a> \n";
 }
}
?>

<?php if ( function_exists("add_theme_support") ) { add_theme_support("post-thumbnails"); } ?>
<?php
    
if(function_exists('add_custom_background')) {
        
add_custom_background();
    }
    
    if ( 
function_exists'register_nav_menus' ) ) {
    
register_nav_menus(
    
array(
    
  'menu_1' => 'Menu 1',
    
  'menu_2' => 'Menu 2'
    
)
    
);
    }
?>

Desculpem lá ser tão extenso...

35
Domínios / Re: Registo domínio
« em: 25/Ago/2011 21:49 »
Vai ler as regras do novo acordo. Nem todos os 'c' entram em desuso.
O novo acordo acho que entra para o ano, portanto...

36
Conversa Geral / Re: Steve Jobs - iQuit
« em: 25/Ago/2011 12:26 »
O fim da empresa? É uma piada esta pergunta.
O Steve Jobs passou o cargo ao Tim Cook, que sabe muito bem o que fazer, com certeza.

37
Conversa Geral / Re: O VERDADEIRO Offtopic 3
« em: 25/Ago/2011 06:37 »
Steve Jobs ... ficarás sempre na nossa iCloud! eheheh

38
Projectos / Re: WikiAutomovel.com
« em: 24/Ago/2011 17:46 »
O site está bem concebido, apenas adicionava uma coisa. Sistema de perguntas e respostas. Sempre te poderia ajudar a dar ideias para novos "posts", caso ouvesse perguntas sobre o mesmo assunto.

Nomeado.

39
Conversa Geral / Re: Os Macs...
« em: 24/Ago/2011 16:49 »
Nossa seu depoimento marcou minha vida, seu sarcasmo me impressionou, tio Jobs te ensinou isso.

A claro qualquer coisa que eu precisa adicionar ao meu mac, tenho pagar tres vezes mais que o normal para tio Jobs liberar.
Como eu seria feliz gastando muita grana a toa.

Belo argumento.

Estás a falar do Office? :p

40
Conversa Geral / Re: Os Macs...
« em: 24/Ago/2011 16:33 »


ups

41
Conversa Geral / Re: Os Macs...
« em: 24/Ago/2011 11:47 »
Anda muita porcaria por aí...

tu se tivesses numa esplanada com um mac até tinhas mais chances de encontrar namorada...

Não lhe digas isso, que vai já comprar uma frota da Apple eheheh

42
Conversa Geral / Re: Os Macs...
« em: 24/Ago/2011 09:12 »
Só tenho a dizer o seguinte.

MAC = bela porcaria.


That's it.


Rui

PS: não gostou lá muito do Pedro Aniceto também. nem ele de mim.

E ainda falam dos maclovers ...

43
Conversa Geral / Re: O VERDADEIRO Offtopic 3
« em: 24/Ago/2011 07:43 »
De tavira à ERICEIRA...

44
Conversa Geral / Re: Os Macs...
« em: 24/Ago/2011 06:10 »
Pois é. O Windows 7 e o Office. Não falem de preços :p

45
Conversa Geral / Re: Os Macs...
« em: 23/Ago/2011 17:06 »
Neste tipo de discussões existem sempre uns espertos que chamam sempre apple fans a outros.

O que é ridiculo, porque se eu disser que adoro de arroz carolino e que é superior a todos os outros, não me vao chamar arroz-carolinó-fanático. Mas todos os que disserem que acham os produtos apple ou um mac superior a todos os outros, já são todos apple fans.

Cheira-me sempre mais a dor de cotovelo do que a outra coisa. Para jogar concordo que PC é obviamente superior, agora no resto meus amigos...Esqueçam.

Concordo. A apple também não faz computadores para os gamers, para isso é que existem consolas ...

Páginas: 1 2 3 4 5 ... 34