Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter perezdi

    (@perezdi)

    Forgot to say that it’s a multisite.

    Forum: Hacks
    In reply to: Comments for subscribers only
    Thread Starter perezdi

    (@perezdi)

    Well, this already tells me a lot and is very helpfull. Thank you so much, mate. Will have to see someone to mess with this for me, since I dont think Im ready to fight this dragon.

    Cheers!

    Forum: Hacks
    In reply to: Comments for subscribers only
    Thread Starter perezdi

    (@perezdi)

    I’ve been told to wrap the comments function on a funcionality the plugin has.

    I search for the function on the plugin and it’s this one:

    //Private Tag with AND statement Account Type
    		case 'private_and':
    			if (ym_user_has_access() && strtolower($argument) == strtolower($ym_user->account_type)){
    				$return = $matches;
    			}

    I need help recognizing where is the comment loop, I’m not really a php ninja.

    ?<?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    
    // Do not delete these lines
    	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    		die ('Please do not load this page directly. Thanks!');
    
    	if ( post_password_required() ) { ?>	
    
    <p class="nocomments"><?php _e('Essa postagem é protegida por senha, se você errá-la, seu computador irá explodir.', 'framework') ?></p>
    <?php
    		return;
    	}
    ?>
    <!-- You can start editing here. -->
    <div id="comments">
      <?php if ( have_comments() ) : ?>
      <?php if ( ! empty($comments_by_type['comment']) ) : ?>
      <h3 id="comments-h3">
        <?php comments_number(__('Deixe na conta do Papa', 'framework'), __('1 na conta do Papa', 'framework'), __('% na conta do Papa', 'framework') );?>
      </h3>
      <ol class="commentlist">
        <?php wp_list_comments('type=comment&avatar_size=50&callback=custom_comment_fun'); ?>
      </ol>
      <?php endif; ?>
      <?php if ( ! empty($comments_by_type['pings']) ) : ?>
      <div class="trackbacks">
        <h3 id="pings">Trackbacks/Pings</h3>
        <ul>
          <?php wp_list_comments('type=pings&callback=list_pings'); ?>
        </ul>
      </div>
      <?php endif; ?>
      <div class="navigation">
        <div class="alignleft">
          <?php previous_comments_link() ?>
        </div>
        <div class="alignright">
          <?php next_comments_link() ?>
        </div>
      </div>
      <?php else : // this is displayed if there are no comments so far ?>
      <?php if ( comments_open() ) : ?>
      <!-- If comments are open, but there are no comments. -->
      <?php else : // comments are closed ?>
      <!-- If comments are closed. -->
    
      <?php endif; ?>
      <?php endif; ?>
      <?php if ( comments_open() ) : ?>
      <div id="respond">
        <h3>
          <?php comment_form_title( __('Deixar na conta do Papa', 'framework'), __('Deixe um comentário para %', 'framework') ); ?>
        </h3>
    
    <br/>
    Quer ver seu avatar nos comentários? Faça uma conta gratuita no <strong><a target="_blank" href="https://pt.gravatar.com"/><span style="color: #dd2221;">Gravatar</a></span></strong>.<br/> Os comentários são um espaço para conversarmos. Concordar ou discordar não faz diferença, mas educação, sim. Se você sabe dialogar, concordando ou discordando educadamente, seja bem-vindo.<br/><br/>
    
        <div class="cancel-comment-reply">
          <?php cancel_comment_reply_link(); ?>
        </div>
        <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
        <p><?php _e('You must be', 'framework') ?> <a href="<?php echo wp_login_url( get_permalink() ); ?>"><?php _e('logged in', 'framework') ?></a> <?php _e('para deixar na conta do Papa.', 'framework') ?></p>
        <?php else : ?>
        <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
          <?php if ( is_user_logged_in() ) : ?>
          <p><?php _e('Logado como', 'framework') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Deslogar dessa conta', 'framework') ?>"><?php _e('Deslogar &raquo;', 'framework') ?></a></p>
          <?php else : ?>
          <p>
            <label for="author"><small><?php _e('Nome', 'framework') ?>
              <?php if ($req) _e('(required)', 'framework'); ?>
              </small></label>
            <br />
            <input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1"/>
          </p>
          <p>
            <label for="email"><small><?php _e('e-mail (n?o será publicado)', 'framework') ?>
              <?php if ($req) _e('(Obrigatório)', 'framework'); ?>
              </small></label>
            <br />
            <input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" />
          </p>
          <p>
            <label for="url"><small><?php _e('Website', 'framework') ?></small></label>
            <br />
            <input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
          </p>
          <?php endif; ?>
          <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
          <p>
            <label for="comment"><small><?php _e('Digite abaixo o seu comentário', 'framework') ?></small></label>
            <br />
            <textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea>
          </p>
          <p>
            <input name="submit" type="submit" id="submit" tabindex="20" value="<?php _e('ENVIAR', 'framework') ?>" />
            <?php comment_id_fields(); ?>
          </p>
          <?php do_action('comment_form', $post->ID); ?>
        </form>
      </div>
      <?php endif; // If registration required and not logged in ?>
      <?php endif; // if you delete this the sky will fall on your head ?>
    </div>

    I got a tip from a developer over there saying that I should do this:

    if (ym_user_has_access()) {
    // comment submit form
    }

    But like I said, I’m no php programmer, I’m really new to it, I just need a bit of pointing “this is what you are looking for”. I hope it’s not to much to ask for. A problem when you don’t know what you are talking about is not knowing the limits too from “too much” or “too little”. I guess.

    Thank you

    Thread Starter perezdi

    (@perezdi)

    I just did it with a previous superadmin account.

    Now everything is working fine. Time to slash some Mutants of Plundarr now.

    Thank you, she-elf.

    Thread Starter perezdi

    (@perezdi)

    I changed to this:
    a:3:{i:0;s:5:"liono";i:1;s:8:"thundera";i:2;s:11:"swordofomens";}

    Let’s play that I just add ‘swordofomens’ using the above process through that link.

    But it didn’t work out. The new account receives a message “You don’t have enough permissions to see this page”.

    Thread Starter perezdi

    (@perezdi)

    I have this:

    a:4:{i:0;N;i:1;s:5:”liono”;i:2;s:8:”thundera”;i:3;s:11:”swordofomens”;}

    By “inserting another user” you didn’t just mean on the wp_sitemeta > siteadmins, right? I think not so how I would be able to login, eh?

    I’m going for this process then:
    https://www.dnawebagency.com/how-to-add-an-admin-user-to-the-wordpress-database

    Question: what’s that ‘N’ doing there before ‘liono’?

    Thread Starter perezdi

    (@perezdi)

    Ok, Mika. Going for it. I’ll let you know any advance.

    It should be ogligatory for now on to use metaphorical comparisons on the forum. ??

    Thread Starter perezdi

    (@perezdi)

    Here is how I solved it:

    The problem wasn’t in the CSS. The banner in the header.php file didn’t have set a width or height.

    <h1><a href="<?php bloginfo('url'); ?>/"><img src="<?php bloginfo('template_directory'); ?>/images/headlogo.png" width="1366" height="274" border="0" alt="Old Trafford Brasil" /></a></h1>

    (I put the code between backticks but it didn’t worked)

    I insert the proper size of the banner and it worked. Thanks anyway WPyogi for your help.

    Thread Starter perezdi

    (@perezdi)

    Here is the TopNav CSS

    /* -------------------[ Top Navigation ]------------------- */
    
    #topnav {	padding: 1px 0 0;	margin: 0 auto;	background:url(images/navbg.gif) top left;	}
    
    #topnav .limit {
    	width:990px;
    	height: 40px;
    	margin:0 auto;
    	padding:0;
    	}
    
    #topnav ul {
    	width:750px;
    	height: 40px;
    	list-style: none;
    	padding: 0;
    	margin: 0 ;
    	float: left;
    	}
    
    #topnav ul a, #topnav ul a:link, #topnav ul a:visited {
    	display: block;
    	text-decoration: none;
    	padding: 0 10px;
    	margin:0;
    	color:#fff;
    	}
    
    #topnav ul a:hover, #topnav ul a:active  {
    	background:#0A1F33;
    	}
    
    #topnav li {
    	height:40px;
    	line-height:40px;
    	float: left;
    	padding: 0;
    	}
    
    #topnav li ul {
    	z-index:9999;
    	position: absolute;
    	left: -999em;
    	height: auto;
    	width: 200px;
    	margin: 0;
    	padding:0;
    	border-top:1px solid #f5f5f5;
    	background:#0A1F33;
    	}
    
    #topnav li li {
    	height:30px;
    	line-height:30px;
    	border-bottom:1px solid #000;
    	}
    
    #topnav ul li ul a, #topnav ul li ul a:link, #topnav ul li ul a:visited {
    	width:180px;
    	}
    
    #topnav ul li ul a:hover, #topnav ul li ul a:active  {
    	background:#000;
    	}
    
    #topnav li ul ul {
    	border:0;
    	margin: -30px 0 0 200px;
    	}
    
    #topnav li:hover ul ul, #topnav li:hover ul ul ul, #topnav li.sfhover ul ul, #topnav li.sfhover ul ul ul {
    	left: -999em;
    	}
    
    #topnav li:hover ul, #topnav li li:hover ul, #topnav li li li:hover ul, #topnav li.sfhover ul, #topnav li li.sfhover ul, #topnav li li li.sfhover ul {
    	left: auto;
    	}
    
    #topnav li:hover, #topnav li.sfhover {
    	background:#0A1F33;
    	}
    Thread Starter perezdi

    (@perezdi)

    Chrome and Firefox on Windows 7.

    Yes, I do have two menus, one is for pages and other for categories. A grey one and a red one. But here is the thing, the red one, the background, for a lot of people is duplicated. You are the only one that report no duplication so far.

    So any ideas?

    Thread Starter perezdi

    (@perezdi)

    Ms Half-Elf?

    Even better. ??

    Ok, following you on Twitter and I’ll give a check on your website.

    Thank you again!

    Thread Starter perezdi

    (@perezdi)

    That’s exactly why I changed server. Actually, I feel good enough that I didn’t lost more posts or anything, a good part of the main content is too precious and specific to lost.

    But at least now I have a server with a very good connection (besides Bluehost let me down with their support, I never had any complaints as a server) and I can really do a backup on a more regular, maybe daily, basis.

    Thank you for all the excellent help, Mr. Half-Elf Support Rogue, Ipstenu. Probably for this kind of support that built WP in a freaking awesome platform. You should be proud of yourself. ??

    One last request: any recommendations for my website? (Security ones or anything?) – I’m going to setup a subscription soon, so I’ll get an IP just for the website to turn it safe enough for the readers.

    Almar?, Ipstenu

    Thread Starter perezdi

    (@perezdi)

    Right.

    Well, Ipstenu, all the blogs in the multisite had their images and attachments perfect, except the main one. Or at least, the main one lost more files than the others, so far, I just saw one image missing in the other blogs.

    The images that I’m looking for aren’t in the public_html directory as well, or blogs.dir. I’m really starting to think that some leprechaun ate them or something, they must be yummy.

    The boomer is even if I could find all of them in the Google’s cache, I couldn’t rename all of them for their names, so a bunch of old posts will be without images, not really a big deal, but a bit sad.

    I’m starting to think that the old server really lost some files in their server outage (because I lost some recent posts, too). Then, nothing to do about it, if it’s the case. ??

    Thread Starter perezdi

    (@perezdi)

    Let me ask a question about the images in the backup folder.

    I extract the files exactly as they were, I didn’t move them or anything, but like I said, some images are broken in the site. I got their links and got 404 pages, what means they are not in the place where they allegedly should be.

    I checked the backup, the files are not there either, I checked in the server, where I still have the old files saved, and they are not there either, but I didn’t move them.

    Someone has some theory about what happen with them? Abduction or something? I know the old server had some problems with the raid array and stuff, I’m thinking maybe some of them got lost on the last service outage.

    Thread Starter perezdi

    (@perezdi)

    Ipstenu, it was a life saver. Working Peach now.

    I have still some image problems, but I think they didn’t upload correctly, so I suppose just reuploding the uploads folder would fix it.

    I still had some problems in the website but I realized it was a plugin related to the old database name. Also, I uploaded the WP files to public_html when it wasn’t working still.

    SOLVED 1) Can’t recover the attachments from the XML file
    SOLVED 2) Can’t now see my other blogs working, like this one reds4us.com/fifemos
    SOLVED 3) WP doesn’t accept the JPG or any image files, it says for security reasons.
    SOLVED 4) Need to recover acccess for the Super Admin area
    SOLVED 5) Can’t see any image in the Media Library but I uploaded them in wp-content/upload folder

Viewing 15 replies - 1 through 15 (of 24 total)