Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: Link Title to Article page instead of comment linking  (Read 4473 times)

snesDS

  • Newbie
  • *
  • Karma: 0
  • Posts: 3
Link Title to Article page instead of comment linking
« on: May 27, 2008, 05:47:09 PM »

Can somebody who knows PHP just a little better than me (handicapped in that area :) ) show me how I can change the snews.php code to (on the index page page and Categories pages) make Article Titles Link to the Article pages instated of Comments linking to the article page.

Would like to have it similar like on the /archive/ where Titles are the links.

WHY?
A: This would improve SEO optimization of the site as pages would be linked with meaningful title text instead of first link to all pages being comment (0) or comment (n) that says nothing to the search engine

thank you!

snesDS
« Last Edit: May 28, 2008, 03:02:02 PM by snesDS »
Logged

funlw65

  • Hero Member
  • *****
  • Karma: 96
  • Posts: 771
    • Country Lab
Re: Link Title to Article page instead of comment linking
« Reply #1 on: May 28, 2008, 04:03:44 PM »

@snewsDS,
That mod already exist, we all use it. Just search for it in this section.

You like sNews? Prove it exploring this forum, trying mods, etc...

Is a DIY (Do It Yourself ) CMS. You get only the basic engine. And a shelf full of parts. So, you can make your own puzzle. When I was a newbie, I had to leave this forum, learning PHP and returned back. Of course, you can learn here, trying sNews (I was not so smart as others).
« Last Edit: May 28, 2008, 04:11:07 PM by funlw65 »
Logged

snesDS

  • Newbie
  • *
  • Karma: 0
  • Posts: 3
Re: Link Title to Article page instead of comment linking
« Reply #2 on: May 28, 2008, 04:27:13 PM »

@snewsDS,
That mod already exist, we all use it. Just search for it in this section.

You like sNews? Prove it exploring this forum, trying mods, etc...

English is not my 1st language so sometimes hard for me to find the right words to search with ;) And I am exploring the forum.
Quote
Hello all!

I found that I wanted to make the title of my article have a clickable link, so it will be easier for users (and myself) to view the individual page for article without having to click "Comments." I thought I'd share this snippet.

Search for:
Code:
else {echo $r['title'];}
and replace it with:
Code:
else {echo ''.$r['title'].'';}
Cheers!

Found this for 1.5 but don't know how to do the same in 1.6 becouse I can't find that code in 1.6

update:

after some more digging found it for the 1.6!
http://snewscms.com/forum/index.php?topic=4705.0

I hope I have proven myself worthy now  ;D


« Last Edit: May 28, 2008, 04:33:04 PM by snesDS »
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca
Re: Link Title to Article page instead of comment linking
« Reply #3 on: May 28, 2008, 06:40:06 PM »

update: after some more digging found it for the 1.6! http://snewscms.com/forum/index.php?topic=4705.0
I hope I have proven myself worthy now  ;D

Indeed you have DS... making your way through the thousands of posts on these Forums is kind of like a "rite of passage". A hearty welcome to you from the sNews Gang. We hope you enjoy learning to work with sNews as we did and still do.  :)
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU