Author |
Message |
kingjames
Hangin' Around
Joined: Sep 27, 2011
Posts: 33
|
Posted:
Tue Dec 06, 2011 8:53 pm |
|
I was wondering how I could remove the (Score: 0) line? I looked in Theme directory which I assume is where I would do it but can't find it. |
Last edited by kingjames on Tue Dec 06, 2011 10:50 pm; edited 1 time in total |
|
|
|
nuken
RavenNuke(tm) Development Team
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Tue Dec 06, 2011 9:23 pm |
|
In the modules/News/index.php file, find:
Code:
$morelink .= ' | ' . _SCORE . ' ' . $rated;
|
and change it to:
Code:
//$morelink .= ' | ' . _SCORE . ' ' . $rated;
|
|
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
|
kingjames
|
Posted:
Tue Dec 06, 2011 9:58 pm |
|
I would have never found it there but it worked and it was quite easy as well. Of course I assumed that removing the Score was going to remove the () as well and it did not. What is required to get rid of that? Thanks. |
|
|
|
|
nuken
|
Posted:
Tue Dec 06, 2011 10:12 pm |
|
You will find two lines on line 149 and line 181 that look like this:
Code:
$morelink = '(';
$morelink .= ')';
|
change to
Code:
$morelink = '';
$morelink .= '';
|
|
|
|
|
|
nuken
|
Posted:
Tue Dec 06, 2011 10:18 pm |
|
or after
$morelink = str_replace('( | ', '(', $morelink); //RN0000646
add:
Code:
$morelink = str_replace('(', '', $morelink);
$morelink = str_replace(')', '', $morelink);
|
|
|
|
|
|
kingjames
|
Posted:
Tue Dec 06, 2011 10:49 pm |
|
That did it ! Thanks again. |
|
|
|
|
montego
Site Admin
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed Dec 07, 2011 7:16 am |
|
kingjames wrote: | I would have never found it there but it worked and it was quite easy as well. |
kingjames, one way to help you find where certain literals are being placed onto the page, is to take the text - in this case "Score" - and search for that literal in the respective language files (I just use an IDE or good text editor that can scan the entire directory structure of source code and look specifically within the lang-*.php scripts).
A key element of the *nuke design for multi-language support is the use of these language files where all the literals are defined. In the above case, you would have found the constant _SCORE as being the more likely candidate and then you can search for "_SCORE" to find where it is being used.
Just a little insight into how to find these things... |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
|
kingjames
|
Posted:
Fri Dec 30, 2011 5:09 pm |
|
Well I did some of this, obviously I first searched the forums to see if my particular question had been answered, and then I searched the files I thought most likely to contain _SCORE, but no I didn't search the whole of the RN installation. Thanks for the info. |
|
|
|
|
montego
|
Posted:
Sat Dec 31, 2011 9:46 am |
|
kingjames, on Windows, you can use TextPad and use its find in files feature. It is a fantastic tool for this. On Linux, I use Eclipse and it has a similar feature but one can also use a command of find . -name 'lang*.php' | xargs grep 'Score'. |
|
|
|
|
|