Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
Eduardo
Worker
Worker



Joined: Jul 20, 2004
Posts: 189
Location: Italy

PostPosted: Tue Apr 16, 2013 1:51 am Reply with quote

In style.css, the following code, for title style in News,

Code:
.title {background: none; color: #000000; font-size: 14px; font-weight: bold; font-family: Verdana, Helvetica; text-decoration: none}


is also used for style in the text:

Code:
define('_NOCOMMENTSACT','Sorry, Comments are not available for this article.');
.

I think it is necessary to change 14px with 10px and no bold.

What to do?
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Tue Apr 16, 2013 3:16 am Reply with quote

For both together you can change the styles of the css-class:

Code:
.title {background: none; color: #000000; font-size: 10px; font-weight: normal; font-family: Verdana, Helvetica; text-decoration: none}



BTW: While checking this theme i have found some little bugs in the theme.php, they destroy the validation. I have it fixed.

function themeheader:

find:

Code:
$topics_list .= '<option ' . $sel . ' value="' . $topicid . '">' . $topics . '</option>' . "\n";


change to:

Code:
$topics_list .= '<option ' . $sel . ' value="' . $topicid . '">' . htmlspecialchars($topics, ENT_QUOTES, _CHARSET) . '</option>' . "\n";



function themearticle:

find:

Code:
<td bgcolor="' , $bgcolor1 , '"">


change to:

Code:
<td bgcolor="' , $bgcolor1 , '">


find:

Code:
<a href=modules.php?name=News&amp;new_topic=' , $topic , '>


change to:

Code:
<a href="modules.php?name=News&amp;new_topic=' , $topic , '">

_________________
Github: RavenNuke 
View user's profile Send private message
Eduardo







PostPosted: Tue Apr 16, 2013 4:51 am Reply with quote

Many thanks for your help.

neralex wrote:
For both together you can change the styles of the css-class:

Code:
.title {background: none; color: #000000; font-size: 10px; font-weight: normal; font-family: Verdana, Helvetica; text-decoration: none}




For the first fix: I must have the text title of the news with 14px and the text of

Sorry, Comments are not available for this article.

Code:
define('_NOCOMMENTSACT','Sorry, Comments are not available for this article.');


with 10 px.
 
neralex







PostPosted: Tue Apr 16, 2013 5:14 pm Reply with quote

Create a new css-class inside your style.css of your theme like this:

Code:
.mynewstitle {background: none; color: #000000; font-size: 14px; font-weight: normal; font-family: Verdana, Helvetica; text-decoration: none}


Open your theme.php and replace:

Code:
<span class="title">' , $title , '</span>


with

Code:
<span class="mynewstitle">' , $title , '</span>


Its only needed to change the css-class to the new one. Play with the attributes of the class. On this way you can create your own theme. Smile
 
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Thu Apr 18, 2013 6:47 am Reply with quote

Well done, neralex!

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







PostPosted: Thu Apr 18, 2013 9:28 am Reply with quote

I made ​​the changes but the text (Sorry, Comments are not available for this article.) remained 14px.
In theme.php, when I change only the line 153, nothing happens; but when I change lines 153, 181 and 190 only the title of the news becomes 10px.
I need 10px only in:
Code:
define('_NOCOMMENTSACT','Sorry, Comments are not available for this article.');
 
neralex







PostPosted: Thu Apr 18, 2013 10:00 am Reply with quote

Eduardo, use please the css-classes inside your styles.css of your theme and change the classes in your theme.php. I have give you two examples. Play with it, this is best way to learn the basics of css.
[ 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! ]
 
Eduardo







PostPosted: Thu Apr 18, 2013 1:33 pm Reply with quote

Many thanks for your valuable suggestions.
 
neralex







PostPosted: Thu Apr 18, 2013 1:53 pm Reply with quote

Copy & paste is easy but the understanding of it is more valuable. Smile
 
Eduardo







PostPosted: Fri Apr 19, 2013 1:15 pm Reply with quote

Neralex

I'm sorry, my small contribution can only to identify inconsistencies graphics.
If you appreciate the Raven work can help him correcting them.
You can begin to correct the size text errors in the following themes:

Blue_Blog: correct
CT_RN: correct
fisubice: incorrect in "Read more..."
RavenIce: correct
RickTido: correct in home incorrect in "Read more..."
Sand_Journey: incorrect in home incorrect in "Read more..."
SimplyBlue: correct
 
neralex







PostPosted: Fri Apr 19, 2013 1:45 pm Reply with quote

Its all open source stuff. Sou you can try to fix it self. Why i should fix all themes? After you comes the next one with a new list, because he means it must bigger or smaller and then i should change it again...?
 
Eduardo







PostPosted: Sat Apr 20, 2013 12:33 am Reply with quote

My report concerns a real inconsistency is not a customization.
The portion of the text that I have shown is truly unbalanced.
So it's not my own personal aesthetic requirements.
You do not have any obligation.
My reporting will surely be appreciated by Raven staff.
I am sure that the next version of the script will contain the necessary improvements.


Last edited by Eduardo on Tue Apr 23, 2013 8:06 am; edited 1 time in total 
neralex







PostPosted: Sat Apr 20, 2013 4:03 am Reply with quote

Inconsistency of css styles? Then you must wait and hope.
 
Eduardo







PostPosted: Sat Apr 20, 2013 4:14 am Reply with quote

The news title is more important than a comment.
Then the text size must be adequate.
 
nuken
RavenNuke(tm) Development Team



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

PostPosted: Sat Apr 20, 2013 7:01 am Reply with quote

The sizes of the text in the themes are all based on personal preference. It you wish to change the size, either modify the the css style for it or assign one if there is no style already assigned to it. CSS styles are easy to understand and change.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
Eduardo







PostPosted: Sun Apr 21, 2013 3:02 am Reply with quote

Nuken
You are the author of the theme RickTido.
Please analyze this inconsistency in the size of the text and tell me if it is true.


In home page:


Image


In News, Read More


Image


I think that in Read More the text must have the same size.
 
nuken







PostPosted: Sun Apr 21, 2013 7:06 am Reply with quote

Again, that is a personal preference. I like the smaller title on the articles page since the person has already clicked on the title or the read more link and is now wanting to read the content. If you want to change it, just modify the class in the themearticle function of the theme.php.
Code:


<h1 class="title">'.$title.'</h1>

to
Code:


<div class="newstitle">'.$title.'</div>


Or create your own css class to make the text look like you want it to.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

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 ©