Placing Code BEFORE a Submitted Pligg

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-06-2007, 11:11 PM
New Pligger
 
Join Date: Jan 2007
Posts: 1
Does anyone know how I can add a constant code to the end of every single link that is submitted to my Pligg website?

If anyone can help, I would really appreciate it!
Reply With Quote
  #2 (permalink)  
Old 03-06-2007, 11:20 PM
onelessthang's Avatar
Casual Pligger
 
Join Date: Feb 2007
Location: Dallas, TX - USA
Posts: 94
Can you explain more of what you are looking for?

Is it a type of code? Or is it programming code?
Reply With Quote
  #3 (permalink)  
Old 03-07-2007, 12:20 PM
Pligg Donor/Designer
 
Join Date: Jan 2006
Posts: 103
Id love to have nofollow added to all outgoing links.
Reply With Quote
  #4 (permalink)  
Old 08-23-2007, 05:17 PM
New Pligger
 
Join Date: Jul 2007
Posts: 4
Hi,

I would also like to provide rel="nofollow" for all outgoing story links.

Could anyone here help me by letting me know where to add the code for each story on homepage and all story pages?

Thanks in advance,

Vivek
Reply With Quote
  #5 (permalink)  
Old 08-23-2007, 05:36 PM
Constant Pligger
 
Join Date: Feb 2007
Posts: 226
I think you can do it in the link_summary.tpl file. Just put rel="nofollow" to the appropriate link.
Don't know what template you are using but in Yget you can find the title links after thiss:

Code:
	<div class="top"> 
		<div class="toptitle" id="ls_thetitle-{$link_shakebox_index}">
...
Reply With Quote
  #6 (permalink)  
Old 08-24-2007, 03:19 PM
Casual Pligger
 
Join Date: Jul 2007
Posts: 60
This is a great idea. Has anyone gotten this working yet?

I am using the b-ice template on Pligg beta 9.7

Please let us know, thanks.
Reply With Quote
  #7 (permalink)  
Old 08-24-2007, 07:15 PM
Constant Pligger
 
Join Date: Feb 2007
Posts: 226
Here you go. Find this block of code and depending on your settings add rel="nofollow" to the proper link. Or if you aren't sure where to put it you can put it to all of them.

Code:
 
	<div class="top"> 
		<div class="toptitle" id="ls_thetitle-{$link_shakebox_index}">
			{if $use_title_as_link eq true}
				{if $url_short neq "http://" && $url_short neq "://"}
					<a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if} rel="nofollow">{$title_short}</a>
				{else}
					<a href="{$story_url}" rel="nofollow">{$title_short}</a>
				{/if}
		     {else}
				{if $pagename eq "story"}
					<a href="{$url}" rel="nofollow">{$title_short}</a>
				{else} 
				  <a href="{$story_url}" rel="nofollow">{$title_short}</a>
				{/if}
			{/if}        
		</div>
If you are using story's title as a link from front page to the story page don't put nofollow to that link or you're stopping Google.

Last edited by Andtony; 08-24-2007 at 07:21 PM.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pligg Pro Coupon Code: $5 Off Yankidank Questions and Comments 5 06-06-2010 01:10 PM
Pligg 1.0.0 RC3 Yankidank Current Version 2 04-02-2009 12:21 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development