Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Feedback/Suggestions
Author Message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Sun Jan 04, 2009 1:52 pm Reply with quote

Quick question all. The best I remember, I used to be able to go into the theme story_home.html and change
Code:
$title
to
Code:
<a href="$story_link">$title</a>
and it would create a link to the news title for the full story of the news article. That doesn't seem to work anymore. How can it be done now? Thank you.
 
View user's profile Send private message Send e-mail Visit poster's website
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sun Jan 04, 2009 2:38 pm Reply with quote

When $story_link is defined it looks like this:

Code:
$story_link = '<a href="modules.php?name=News&amp;file=article&amp;sid='.$s_sid."$r_options".'">
'

So you would just need to do something like:

Code:
$story_link$title</a>
 
View user's profile Send private message
nuken







PostPosted: Sun Jan 04, 2009 4:29 pm Reply with quote

Thank you for your response. Do you mean define story_link in themes.php?
 
jakec







PostPosted: Sun Jan 04, 2009 4:34 pm Reply with quote

It is already defined within the News module.

If you do a global search of the files for $story_link you will see what I mean.
 
nuken







PostPosted: Sun Jan 04, 2009 6:32 pm Reply with quote

Thanks for your help, I think I'll mess with it another day....
 
nuken







PostPosted: Mon Jan 05, 2009 8:52 pm Reply with quote

Amazing how a good nights sleep makes things work better....
Works great. Thank you.
 
jakec







PostPosted: Tue Jan 06, 2009 3:14 am Reply with quote

No problem, glad you got it working. Very Happy
 
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Tue Jan 06, 2009 5:05 am Reply with quote

nuken, I don't remember exactly what changed to do this for nukeSEO.com, but it was definitely in the theme as you suggested. It sounds like what you did, and I'm glad you got it working.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
nuken







PostPosted: Tue Jan 06, 2009 5:53 am Reply with quote

My original problem was related to the theme. When I switched themes on my test site, it worked great. Every theme except a clan theme that I'm using on my son's guild site worked. I figured I would look at that theme and see why it was acting stupid. What it does is passes a number not related to the article number and it goofs up the content. Odd little situation. It works on every other theme though. Thanks again.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Feedback/Suggestions

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©