Search Results for 'author box'

Results from the Forum
TheMediumUTM
tagDiv Member

Welcome 🙂

Now that you have a child theme going you can edit the ad boxes too, in some file or other, but I haven’t looked at that myself, and @Lucian could probably cut down the time looking for where to add the conditions.

kacsa1337
tagDiv Member

Thanks, working like charm!

TheMediumUTM
tagDiv Member

In Newspaper/includes/modules/module_modifier/ you have td_module_blog.php. This is one of the files you can overwrite (at least I find) in a child theme, which you can set up here: https://forum.tagdiv.com/child-theme-documentation/

Once you have the child theme set up and activated, copy and paste that file into the corresponding folder in your child theme. Then edit the file.

The function get_author_box is the one you want to change.

Specifically, change these lines:


$buffy .= '<a href="' . get_author_posts_url($author_id) . '">' ;
$buffy .= get_avatar(get_the_author_meta('email', $author_id), '106');
$buffy .= '</a>';

to this one line:

$buffy .= get_avatar(get_the_author_meta('email', $author_id), '106');

and change this line:


$buffy .= '<a href="' . get_author_posts_url($author_id) . '">' . get_the_author_meta('display_name', $author_id) . '</a>' ;

to this:

$buffy .= get_the_author_meta('display_name', $author_id);

Save the file and upload via FTP. Clear cache and check the bottom of a post.

Hope this helps!

kacsa1337
tagDiv Member

I mean this: http://snag.gy/Htkj0.jpg . I want to remove both url. I want to see the author name and an image without linking to the author page.

Yes sorry, i mean the “Header AD Box”. I thought there is any other way. This code gonna work?
<?php if ( is_home() || is_single() || is_category() ) : ?>

Lucian
tagDiv Staff

Hi,

I believe you are refereeing to this URL http://screencast.com/t/UHUSRsis If so you can remove it like this http://screencast.com/t/KWZP2SaIyJE or if you want to just hide it use this custom css in theme panel > custom css:

.td-author-url {
display: none;
}

Regarding the ad, I believe you are referring to the “Header AD Box” because the “Article top ad” it’s displaying only on single post pages.
A way would be to hide via css on those pages where you don’t want it, or if you have basic programming skills you can create a condition to determine if it’s one of the pages you want the add to show on then render the ad spot.

Thanks

bgo
Participant
#0

Hi,

on all pages & posts, just above the sharing buttons it always says “aug 13, 2014 admin”. A date and author let say. In the theme template it is all switched off. I searched a lot in the code, but cannot find how to remove it. website: http://www.welketonic.be – screenshot: https://www.dropbox.com/s/re8kgfxvu98xh74/Schermafdruk%202014-08-14%2011.41.50.png

Thnx for helping me out!

B.

kacsa1337
Participant
#0

Hello,

There is any way to remove the urls(from: author name and gravatar image) to the author page in the author box?I want to see only the author name without the hyperlink.

Your Article Top AD spot is awesome but the biggest problem with it, if you are using adsense its againts their TOS to show it on 404pages, log off pages, etc.. and sadly the theme put it everywhere without filtering.
How can i show the ad only on the home, category, post pages ?

Thanks in advance.

Bryson T
Participant
#0

I love the new lightbox, and would enjoy it even more if it could replace the Responsive Lightbox plugin I’ve used as long as I’ve used this theme. It’s just one more thing slowing down page speed, even on a well optimized site.

After some digging, I found that if you select an image inserted into the content, you can choose to have the tagDiv lightbox applied to the image.

I want to dump the other plugin, but I need its automatic functionality. I run a multi-author site so I can’t go into every post to set every image to use the tagDiv modal lightbox.

Please make your lightbox an automatic for any image in a post that links to the full size image. It’s better to have us turn that featured off than on, by default. Even better still, you could add an option to the settings to set the tagDiv lightbox on or off for all linked images by default.

simchris
tagDiv Member

Thanks Lucian,
saved me having to look for that, event though the file name is good pointer 😉

Commenting out the comments for author box is best choice for our Disqus use. I actually already commented those out on the modules same time I uncommented author name, so works fine.

Keep up the good work!

Chris

TheMediumUTM
tagDiv Member

This is sadly out of date now that 4 is out, I think.

I wish there were just some easy guide like this:

“So you want to use Co-Authors Plus to have as many Newspaper-theme author boxes as there are authors.

1. Go to your theme editor.
2. Find the file …
3. Find the lines …
4. Replace with / add the lines …
5. Profit!!”

iha
Participant
#0

i need to make About me author box < for multiple post author < every post have sidebar (about me) only for the author of the post . like in classic_blog .

http://prntscr.com/482uyf

hidde_r
tagDiv Member

Hi there,

Thanks for your answer. What I mean, is the part where the author box starts.

When I inspect the code, it shows:
<a href="https://plus.google.com/+SanderSpiering/?rel=author">

Shouldn’t that be:
<a href="https://plus.google.com/+SanderSpiering/" rel="author">

Thanks for your time!

Radu A
tagDiv Member

hi,

In version 4.0 we have added posts templates : http://screencast.com/t/QhAcLBYffKC
and now we have 6 loop-singe files, each one used to display a post template.
http://screencast.com/t/yLUPBJkYK

loop-single.php is used to display the default template.

————————————–

Now about author box, are you referring to this one: http://screencast.com/t/zP7ivobP

I don’t think you can do this for user Administrator, but is possible for other users.
In order to remove the box just for the some users you need to know their id’s.
take the user id from here: http://screencast.com/t/qMEEZyYuLq

then modify each loop-single .php file -> http://screencast.com/t/EjN5yfCE

then in the td_module_blog.php -> function get_author_box : http://screencast.com/t/wEAc5wbE23

is not easy but can be made.

hope this help.

Thanks for you message.
Radu A.

cityslicker444
tagDiv Member

Radu, thanks for all your help. Since the theme changed to the new 4.0, there is no more loop-single.php, right?

Can you give me updated instructions on how to remove the author box for just one user? Thanks so much!

simchris
tagDiv Member

Yeah. Same with Google Authorship.
You should see the pain I’m going through right now for custom paid Google Search box in popup modal, having messed up styles. Ugh.

simchris
tagDiv Member

@Fudoki
you know, I think Radu was going to try to come up with something like an additional user account field for “image” where you could link to the image in your media repository, but I think that wasn’t high on the 140+ user requests relative to some other stuff. I think there was a hack for that, or plugin, or something… e.g., comment out photo in the author box code, then use plugin for custom author image…. but it’s been awhile. I was out sick most of May/June, and pretty wonky the 2 months prior to that. Only been getting better the past 2 weeks. So, just getting back to this stuff.

We both need to do a search in the forum for this topic, methinks. I don’t have an answer at the moment 🙂

morganaq
tagDiv Member

Actually, no need. I just solved the problem 🙂

Here’s what happened:

I had just updated to the latest version of WordPress SEO (version 1.5.3.3) and in Settings > Titles & Metas > Other the box for “Disable Author Archives” was checked.

I am not sure if this option is in the previous versions or if it is new in this version, because I don’t remember seeing it before. So if anyone updates to a new version of WordPress SEO, they should probably be aware of this.

Lucian
tagDiv Staff

Can be done via CSS, here is a quick test

.entry-title a,
.td-post-text-content,
.widget a,
.extend,
.pages,
li,
h1,
h2,
h3,
h4,
p,
a,
.next-prev,
textarea
{
color: white !important;
}

body,
.container,
.extend,
.pages,
.td-tags-and-social-wrapper-box,
.author-box-wrap,
.td-header-bg,
textarea
{
background-color: #000000  !important;
}

.author-box-wrap,
.td-tags-and-social-wrapper-box,
textarea  {
border-color: #222222;
}

Thanks!

Lucian
tagDiv Staff

Hi,

Add this custom CSS in Theme Panel -> Custom CSS :

.single .author-box-wrap {
margin-bottom: 40px;
}

Thanks

mehedi
tagDiv Member

Hi,

It worked! Thank you very much. I found a bug : http://screencast.com/t/tRiQhAc8 There is no space between the Author Box and You Might Also Like box. How can fix it?

Thanks!

rbaccaro
tagDiv Member

Hi Lucian, thank you.

I did it for the loop-single.php and worked like this:

if ( 1 !== get_the_author_meta( ‘ID’ ) ) {
echo $td_mod_single->get_author_box();
}

Where should I add the same conditional to stop listing everywhere in the site like on archives.php, search.php etc?

Lucian
tagDiv Staff

Hi,

Add this code to the loop-single.php file like this: http://screencast.com/t/ELXmZQpHSQ

<?php
$author_cx = get_the_author();
if ($author_cx != 'admin'){
echo $td_mod_single->get_author_box();
}
?>

Thank you

  • This reply was modified 12 years by Lucian.
  • This reply was modified 12 years by Lucian.
NadiaP7406
tagDiv Member

Okay I should’ve known not to include 2 questions.
My question is; why won’t my comment box show back up?

This is my comments.php

<?php
//removing the comments sidewide
if(td_util::get_option(‘tds_disable_comments_sidewide’) == ”) {?>
<div class=”comments” id=”comments”>
<?php if (post_password_required()) { ?>

<?php } else { ?>
<?php if (comments_open() ) { ?>
<div class=”comments-title-wrap”>
<?php
$num_comments = get_comments_number(); // get_comments_number returns only a numeric value
if ( $num_comments == 0 ) {
$td_comments_no_text = __td(‘NO COMMENTS’);
} elseif ( $num_comments > 1 ) {
$td_comments_no_text = $num_comments . ‘ ‘ . __td(‘COMMENTS’);
} else {
$td_comments_no_text = __td(‘1 COMMENT’);
}
?>
<h4 class=”block-title”><span><?php echo $td_comments_no_text?></span></h4>
</div>

<?php if (have_comments()) { ?>

    <?php wp_list_comments( array( ‘callback’ => ‘td_comment’ ) ); ?>

<div class=”comment-pagination”>
<?php paginate_comments_links(); ?>
</div>
<?php } ?>
<?php } ?>
<?php

$commenter = wp_get_current_commenter();

if (empty($aria_req)) {
$aria_req = ”;
}
$fields = array(
author’ =>
‘<p class=”comment-form-input-wrap”>
<span class=”comment-req-wrap needsclick”><input class=”” id=”author” name=”author” placeholder=”‘ . __td(‘Name:’, TD_THEME_NAME) . ‘” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author’] ) . ‘” size=”30″‘ . $aria_req . ‘ />’ . ( $req ? ‘</span>’ : ” ) .
‘</p>’,

’email’ =>
‘<p class=”comment-form-input-wrap”>
<span class=”comment-req-wrap needsclick”><input class=”” id=”email” name=”email” placeholder=”‘ . __td(‘Email:’, TD_THEME_NAME) . ‘” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author_email’] ) . ‘” size=”30″‘ . $aria_req . ‘ />’ . ( $req ? ‘</span>’ : ” ) .
‘</p>’,

‘url’ =>
‘<p class=”comment-form-input-wrap needsclick”>
<input class=”” id=”url” name=”url” placeholder=”‘ . __td(‘Website:’, TD_THEME_NAME) . ‘” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author_url’] ) . ‘” size=”30″ />’ .
‘</p>’,
);

$defaults = array(
‘fields’ => apply_filters(‘comment_form_default_fields’, $fields ),
);

$defaults[‘comment_field’] = ‘<div class=”clearfix”></div><p class=”comment-form-input-wrap”><textarea class=”needsclick” placeholder=”‘ . __td(‘Comment:’, TD_THEME_NAME) . ‘” id=”comment” name=”comment” cols=”45″ rows=”8″ aria-required=”true”></textarea></p>’;

$defaults[‘comment_notes_before’] = ”;
$defaults[‘comment_notes_after’] = ”;
$defaults[‘title_reply’] = __td(‘Leave a Reply’);
$defaults[‘label_submit’] = __td(‘Post Comment’);
$defaults[‘cancel_reply_link’] = __td(‘Cancel reply’);

comment_form($defaults);
//comment_form();

?>
<?php } ?>
</div> <!– /.content –>

<?php
}//end removing the comments sidewide
/**
* Custom callback for outputting comments
*
* @return void
* @author tagdiv
*/
function td_comment( $comment, $args, $depth ) {
$GLOBALS[‘comment’] = $comment;

$td_isPingTrackbackClass = ”;

if($comment->comment_type == ‘pingback’) {
$td_isPingTrackbackClass = ‘pingback’;
}

if($comment->comment_type == ‘trackback’) {
$td_isPingTrackbackClass = ‘trackback’;
}

if (!empty($comment->comment_author_email)) {
$td_comment_auth_email = $comment->comment_author_email;
} else {
$td_comment_auth_email = ”;
}

$td_article_date_unix = @strtotime(“{$comment->comment_date_gmt} GMT”);
//print_r($td_article_date_unix);
?>
<?php if ( $comment->comment_approved == ‘1’ ) { ?>
<li class=”comment <?php echo $td_isPingTrackbackClass ?>” id=”li-comment-<?php comment_ID() ?>”>
<article>
<footer>
<?php
//echo get_template_directory_uri() . “/images/avatar.jpg”;
//echo get_avatar($td_comment_auth_email, 50, get_template_directory_uri() . “/images/avatar.jpg”);
echo get_avatar($td_comment_auth_email, 50); ?>
<cite><?php comment_author_link() ?></cite>

“>
<time pubdate=”<?php echo $td_article_date_unix ?>”><?php comment_date() ?> at <?php comment_time() ?></time>

</footer>
<div class=”comment-content”>
<?php comment_text() ?>

</div>
<div class=”comment-meta” id=”comment-<?php comment_ID() ?>”>
<?php comment_reply_link(array_merge( $args, array(
‘depth’ => $depth,
‘max_depth’ => $args[‘max_depth’],
‘reply_text’ => __td(‘Reply’, TD_THEME_NAME),
‘login_text’ => __td(‘Log in to leave a comment’, TD_THEME_NAME)
)))
?>
</div>

</article>

<?php
}
}
?>

mbasche
tagDiv Member

Push…
Does anybody have an idea to put the second (or more) author box under the article.

Emil G
tagDiv Staff

Hi,


@Manuel
Fink

1. You can move the similar articles right after the post content by editing the loop-single.php file – http://screencast.com/t/ccYS4CAmODt
2. You can make them random by editing the td_module_blog.php file and add the following code – http://screencast.com/t/1PNMYcmhzM

'orderby' => 'rand',

3. You can move the author box there and change it’s size with custom css – http://screencast.com/t/gljKdneh
4. This is possible, but if you have a lot of similar articles people won’t be able to easily get to the comment section, so it’s not for everybody.
5. Copy the sharing line before and after the article – http://screencast.com/t/ViFV7PPXBn and you can modify the buttons by editing the td_module_blog.php file – http://screencast.com/t/X3ia5ROdh
6. Added on the feature list, thanks for the suggestion.
7. This can be done easily by adding a button inside the loop-single.php and use css to style and position it.
8. Added on the feature list, thanks for the suggestion.


@mehedi

We had to work on a lot of issues after the WordPress 3.9 udpate and that slowed us down with the implementation of new features, you can see the long list of fixes in the log – http://screencast.com/t/cgxsk3JvR3G

Thank you, Emil G.

Viewing 25 results - 2,151 through 2,175 (of 2,340 total)