1
homergz
Adding link to Planet 2.0
  • 2006/9/3 7:12

  • homergz

  • Just popping in

  • Posts: 80

  • Since: 2006/5/21


1) I am trying to add a "more..." link at the end of the feed intro rather than have the users click the "Source" link to go to the web article.

2) Also I need to remove the "next" and "previous" story links.

I have not been able to find the source files for either of these. Any help would be appreciated.

2
tcnet
Re: Adding link to Planet 2.0
  • 2006/9/3 11:42

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


To edit the article view page:

1) The Source link is on line 13 of template/article.html.

<a href="<{$article.link}>" target="_blank"><{php}>echo planet_constant("MD_SOURCE")<{/php}>a>


Copy the link code, paste it anywhere you want, and update the template.

You can replace the variable "MD_Source" to "More" on the new link:
<a href="<{$article.link}>" target="_blank"><{php}>echo planet_constant("MD_SOURCE")<{/php}>a>
becomes
<a href="<{$article.link}>" target="_blank">Morea>

Or, you can globally change the word "Source" to "More", by editing "_MD_SOURCE" on line 43 of language/yourlanguage/main.php.
define($GLOBALS["VAR_PREFIXU"]."_MD_SOURCE","Source");
becomes
define
($GLOBALS["VAR_PREFIXU"]."_MD_SOURCE","More");


2) To remove sibling articles, visit control panel preferences/planet and set sibling articles to off.

3
phppp
Re: Adding link to Planet 2.0
  • 2006/9/3 14:13

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Thank you tcnet
I look forward to your help with the modules on d.x.o
like:
planet: http://dev.xoops.org/modules/xfmod/project/?planet
mediawiki: http://dev.xoops.org/modules/xfmod/project/?mediawiki

4
homergz
Re: Adding link to Planet 2.0
  • 2006/9/3 18:04

  • homergz

  • Just popping in

  • Posts: 80

  • Since: 2006/5/21


Thanks tcnet. Works great.

5
tcnet
Re: Adding link to Planet 2.0
  • 2006/9/3 18:06

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


Thanks phppp!
Glad to help where I can.

BTW,
Many thanks for the Planet module. It added over 300 articles to my site within minutes of install!

6
tcnet
Re: Adding link to Planet 2.0
  • 2006/9/3 18:08

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


homerGZ >> My pleasure!

7
homergz
Re: Adding link to Planet 2.0
  • 2006/9/3 21:28

  • homergz

  • Just popping in

  • Posts: 80

  • Since: 2006/5/21


Thanks to all involved with the development of this excellent module.

Login

Who's Online

424 user(s) are online (352 user(s) are browsing Support Forums)


Members: 0


Guests: 424


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits