Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Saturday, May 18 2013 @ 06:51 PM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
  style
   
oculos
 05/10/04 10:04PM (Read 2937 times)  
+----
Newbie

Status: offline


Registered: 04/10/04
Posts: 10
Hi there folks!

I forgot where I can do this - I need to change the style of the more link, and the "(xxx words)" text. Where can I do that? I mean, can I add a style to this? Where can we change styles from some variables?

Yours,

oculos

 
Profile Email
 Quote
samstone
 05/10/04 10:15PM  
+++++
Full Member

Status: offline


Registered: 09/29/02
Posts: 820
Look in style.css in your layout folder.

 
Profile Email
 Quote
oculos
 05/11/04 06:56AM  
+----
Newbie

Status: offline


Registered: 04/10/04
Posts: 10
Well, I may be wrong, but as far as I can tell, at this particular tag has no style pre-defined - that is, it follows the general table style.

 
Profile Email
 Quote
geKow
 05/11/04 09:33AM  
+++++
Full Member

Status: offline


Registered: 01/12/03
Posts: 445
You could open your storytext.thtml and topstorytext.thtml and wrap a style around the {readmore_link}.

geKow

 
Profile Email Website
 Quote
oculos
 05/11/04 09:44AM  
+----
Newbie

Status: offline


Registered: 04/10/04
Posts: 10
good tip! I thought about it (and i bet it will work), but I was thinking about other tags that has styles embedded on them - is that possible to change them?

 
Profile Email
 Quote
geKow
 05/11/04 09:52AM  
+++++
Full Member

Status: offline


Registered: 01/12/03
Posts: 445
I don't understand what you mean Do you have an example?

geKow

 
Profile Email Website
 Quote
oculos
 05/11/04 10:01AM  
+----
Newbie

Status: offline


Registered: 04/10/04
Posts: 10
Sure!

See, the tag {contributedby_user}, for example: it's not wrapped in any style, but it does contain a style preprogrammed, saved into the variable.

 
Profile Email
 Quote
geKow
 05/11/04 10:32AM  
+++++
Full Member

Status: offline


Registered: 01/12/03
Posts: 445
ah...
well you need to play detective, a bit
(at least this is what I would do)

looking at the storytext.thtml again it shows a line like this:
PHP Formatted Code
{lang_contributed_by} {start_contributedby_anchortag}{contributedby_user}{end_contributedby_anchortag}

 


'start_contributedby_anchortag' looks promising, so I do a fulltext searc on it through my geeklog directory, what normally leads to a line in lib-common.php

In this case it leads me to this:

PHP Formatted Code
        $article->set_var( 'start_contributedby_anchortag',
                    '<a class="storybyline" href="' . $_CONF['site_url']
                    . '/users.php?mode=profile&uid=' . $A['uid'] . '">' );
 


so here we have a style we can change in the css file.

I'm sure that ain't the most professional way, but so far it worked for me

geKow

 
Profile Email Website
 Quote
oculos
 05/11/04 11:27AM  
+----
Newbie

Status: offline


Registered: 04/10/04
Posts: 10
It surely helps!!! Thanks!

 
Profile Email
 Quote
Turias
 05/11/04 12:36PM  
+++++
Full Member

Status: offline


Registered: 10/20/03
Posts: 807
While geKow's method is certainly helpful (I have used it many times), another method is to view the source of the page you want to change. Look for the text whose style you want to edit and see if it already has a class or id declaration.

 
Profile Email Website
 Quote
geKow
 05/11/04 12:49PM  
+++++
Full Member

Status: offline


Registered: 01/12/03
Posts: 445
yes... that to be honest... this is normaly my first step.... I just forget

Sorry

geKow

 
Profile Email Website
 Quote
Turias
 05/11/04 01:01PM  
+++++
Full Member

Status: offline


Registered: 10/20/03
Posts: 807
Don't be sorry. Doing a full-text search through the Geeklog core files is one of the best ways to find something. I do it all the time, and wish more people would do it more often.

 
Profile Email Website
 Quote
oculos
 05/11/04 01:19PM  
+----
Newbie

Status: offline


Registered: 04/10/04
Posts: 10
That was also my step. However, that might be situations where you want to define a different style for a particular element, so this solutiong was just great.

 
Profile Email
 Quote
Turias
 05/11/04 02:28PM  
+++++
Full Member

Status: offline


Registered: 10/20/03
Posts: 807
Quote by oculos: That was also my step. However, that might be situations where you want to define a different style for a particular element, so this solutiong was just great.


Just to make sure we're on the same page, if you want to define a new css class/style, best to do it in the theme file. Stay away from the core files as much as possible.

 
Profile Email Website
 Quote
oculos
 05/11/04 02:34PM  
+----
Newbie

Status: offline


Registered: 04/10/04
Posts: 10
sure, sure, but the problem is that some themes uses the same style for many different variables, which might require some tweaking as the ones commented here.

 
Profile Email
 Quote
Content generated in: 1.15 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content