Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Sat Sep 10, 2005 10:11 am Reply with quote

Ok here's the story...
In my nsn news (on my index )i need to change the score to reads.
Simply because i need the space.
Because the new grafics are a litle bit bigger the reads end up at new line.
So i disabled the showing of reads but having a problem replacing the score with the reads...

This is the score code in nsn news :
Code:
$morelink .= " | "._SCORE." $rated";


That shows the score..

And this shows the reads...
Code:
($counter "._READS.")";


So when done it should look like :
(Read More... | comments? | Printer Friendly Send to a Friend | Edit Delete | Reads: 9)

But whatever i try i end up with a blank page or reads not showing...

How do i solve this...

(anyone can give Bob a call?)
 
View user's profile Send private message
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1159
Location: Sanbornton, NH USA

PostPosted: Mon Sep 12, 2005 10:11 pm Reply with quote

Please provide the entire section of code for that entire line as it appears that we are not seeing it all.

At first guess, I would say that it is either a rogue quote or semi-colon.

_________________
Steph Benoit Only registered users can see links on this board! Get registered or login!
1CMS, 100% Section 508 and W3C XHTML/CSS Compliant (Truly) 
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Tue Sep 13, 2005 12:07 am Reply with quote

Unfortunately, score is set in the news/index.php morelink variable, whereas the reads counter is set in the posted variable in function themeindex in the theme.php file in your theme directory. Since $morelink is passed as a parameter / argument to themeindex, you can manipulate it in function themeindex - i.e. you can add the reads to the morelink variable and remove it from the posted variable.

Compare the code I emailed you to what you had before to see the differences.

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
hitwalker
PostPosted: Tue Sep 13, 2005 5:18 am Reply with quote

Thanks steph but the files were send to Kevin earlier...

And Kevin,
Yes its ok now..
Now i know what i did wrong..
I was focussed on the nsn news index but you altered the theme index,never thought of that...
Its how i want it...
Thanks.... Dance-Stick
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©