View Full Version : Help Me
penido
03-17-2010, 11:24 PM
Please
Where do I put the nofollow tag on external links
Popular = Dofollow
Latest and Upcoming = Nofollow
and
A wordpress template can be used (adapted) with hotaru cms
Thanks
Sory my English
hmm i don't know what you mean exactly, can you type in basic words in your native language what you mean, i'll throw it in some translators
penido
03-18-2010, 12:37 AM
Gostaria de saber onde eu altero (qual arquivo) para usar a tag nofollow nos links externos nas postagem Upcoming e Latest. E quando passarem para popular deixar de usar nofollow.
E se é possivel eu usar um tema wordpress (adaptado) com hotaru.
Obrigado
in hotaru\content\plugins\sb_base\templates\sb_list.p hp
do something like
$nofollow_tag = '';
if($h->pageName == 'latest' || $h->pageName == 'upcoming'){ $nofollow_tag = ' rel="nofollow"' }
// then for every link you want to add the nofollow you do
<?php echo $nofollow_tag; ?>
it will only be applied on latest and upcoming pages, you can do the same with popular, but note populars pageName = 'index'
good luck
oh about the wordpress theme's, they are not directly compatible
is that what you needed?
penido
03-18-2010, 01:01 AM
I will try.
Thanks
penido
03-18-2010, 02:21 AM
Not know to apply
continue tomorrow
Thanks
carlo75
03-18-2010, 07:44 AM
in hotaru\content\plugins\sb_base\templates\sb_list.p hp
do something like
$nofollow_tag = '';
if($h->pageName == 'latest' || $h->pageName == 'upcoming'){ $nofollow_tag = ' rel="nofollow"' }
// then for every link you want to add the nofollow you do
<?php echo $nofollow_tag; ?>
it will only be applied on latest and upcoming pages, you can do the same with popular, but note populars pageName = 'index'
good luck
oh about the wordpress theme's, they are not directly compatible
is that what you needed?
yes Matthis, I think is that!
penido
03-18-2010, 12:16 PM
in hotaru\content\plugins\sb_base\templates\sb_list.p hp
do something like
$nofollow_tag = '';
if($h->pageName == 'latest' || $h->pageName == 'upcoming'){ $nofollow_tag = ' rel="nofollow"' }
// then for every link you want to add the nofollow you do
<?php echo $nofollow_tag; ?>
it will only be applied on latest and upcoming pages, you can do the same with popular, but note populars pageName = 'index'
good luck
oh about the wordpress theme's, they are not directly compatible
is that what you needed?
please tie
I do not know anything programming
still tried to use the code that you showed
you can explain in detail how I program
Thanks
wait ill make a file for you which you can replace... which version of hotaru do you use?
and popular = dofollow
latest and upcoming = nofollow
right?
penido
03-18-2010, 12:46 PM
wait ill make a file for you which you can replace... which version of hotaru do you use?
and popular = dofollow
latest and upcoming = nofollow
right?
Hotaru 1.1.2 (last)
and popular = dofollow
latest and upcoming = nofollow
right
Thanks
here it is replace the file in content/plugins/sb_base/templates/
penido
03-18-2010, 02:57 PM
ties my need.
http://www.reuniaogratis.com.br/content/plugins/sb_base/templates/demo1.png
latest and upcoming = nofollow only read more
http://www.reuniaogratis.com.br/content/plugins/sb_base/templates/demo2.png
Thanks
After solving this I will send PM to you about wordpress
hmm, i didn't fix that... if i get you right you want:
on popular page you need links to go to read more page (full post) and
on upcomming and latest page you need links to go to the source (external)
penido
03-18-2010, 03:31 PM
the pligg works that way
not serve as a guide
I use pligg but wanted to migrate
dofollow is very important
In the sb_post template, you can check $h->post->status. If "new" add no follow.
<div class="show_post_title">
<?php if ($h->vars['link_action'] == 'source') { ?>
<?php if ($h->post->status == 'new') { $nofollow_tag = ' rel="nofollow"'; } else { $nofollow_tag = ''; } ?>
<a href='<?php echo $h->post->origUrl; ?>' <?php echo $h->vars['target']; ?> class="click_to_source" <?php echo $nofollow_tag; ?>><?php echo $h->post->title; ?></a>
penido
03-18-2010, 04:36 PM
My sb_post template
<div class="show_post_title">
<?php if (!$h->vars['editorial']) { ?>
<a href='<?php echo $h->post->origUrl; ?>' <?php echo $h->vars['target']; ?> class="click_to_source"><?php echo $h->post->title; ?></a>
adding the new code
in "read more"
the title of the posting
loses link text turns
penido
03-18-2010, 05:49 PM
In the sb_post template, you can check $h->post->status. If "new" add no follow.
<div class="show_post_title">
<?php if ($h->vars['link_action'] == 'source') { ?>
<?php if ($h->post->status == 'new') { $nofollow_tag = ' rel="nofollow"'; } else { $nofollow_tag = ''; } ?>
<a href='<?php echo $h->post->origUrl; ?>' <?php echo $h->vars['target']; ?> class="click_to_source" <?php echo $nofollow_tag; ?>><?php echo $h->post->title; ?></a>
Nick now work fine
<div class="show_post_title">
<?php if (!$h->vars['editorial']) { ?>
<?php if ($h->post->status == 'new') { $nofollow_tag = ' rel="nofollow"'; } else { $nofollow_tag = ''; } ?>
<a href='<?php echo $h->post->origUrl; ?>' <?php echo $h->vars['target']; ?> class="click_to_source" <?php echo $nofollow_tag; ?>><?php echo $h->post->title; ?></a>
Thank you very much
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.