Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
gamerevolt
New Member
New Member


Joined: Apr 25, 2006
Posts: 19

PostPosted: Wed Jun 21, 2006 11:27 am Reply with quote

My FAQ Module is using

A:link
A:active
A:visited
A:hover

From my style sheet.... I want this module to use

.content a:link
.content a:active
.content a:visited
.content a:hover

What file stores what modules get what from the stylesheet... The only reason I ask is all my other modules that I am using get the the content a:xxxx from the style sheet...

Any help is appreciated... Thanks!
 
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Wed Jun 21, 2006 1:46 pm Reply with quote

Not sure what the default is, but it's usually defined in the theme.

_________________
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
grantb
Regular
Regular


Joined: Feb 16, 2005
Posts: 67
Location: Canada

PostPosted: Wed Jun 21, 2006 5:34 pm Reply with quote

Hi, usually phpnuke that has a ported forum module will have two style sheets for the forums page(FAQ is a part of the forums module).. one in the top header(used for the rest of the site as well) and then another down the page where the forums start. Try using view source on your forums page to find it. I cant remember where that style sheet is stored since I merged the two a long time ago.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message
kguske
PostPosted: Wed Jun 21, 2006 8:50 pm Reply with quote

Actually, there is also an addon FAQ module or two. It might help to know of which gamerevolt is referring...
 
gamerevolt
PostPosted: Wed Jun 21, 2006 9:00 pm Reply with quote

kguske wrote:
Actually, there is also an addon FAQ module or two. It might help to know of which gamerevolt is referring...


Sorry I am using the default FAQ Module that comes with PHP-Nuke 7.8
 
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Wed Jun 21, 2006 10:14 pm Reply with quote

the reason its pullin differently....is its pullin from the forums.css and not the style.css

if ur theme has the forums.css then that where its callin upon...if not then its callin upon the template...forum templates forum.css

as for the content and the no content part...that the coding difining what type of object it is...content or otherwise...easyiest fix would be to just simply make the codes definitions identical ....rather not mess with the mosule if u can avoid it.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
kguske
PostPosted: Thu Jun 22, 2006 4:37 am Reply with quote

When I use the great Firefox extensions CSSViewer and JSView, to load faq.html on my RN 7.6 2.02 test site, I only see the style.css. It could be different in 7.8, but I'd be surprised.

What stylesheet did you edit?
 
gamerevolt
PostPosted: Thu Jun 22, 2006 8:53 am Reply with quote

darklord wrote:
the reason its pullin differently....is its pullin from the forums.css and not the style.css

if ur theme has the forums.css then that where its callin upon...if not then its callin upon the template...forum templates forum.css

as for the content and the no content part...that the coding difining what type of object it is...content or otherwise...easyiest fix would be to just simply make the codes definitions identical ....rather not mess with the mosule if u can avoid it.


my theme does not have a forum.css and I do not see a forum.css in my forums themplate ( modules/forums/templates/subsilver/ )

What do I do now?
 
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6793
Location: Ha Noi, Viet Nam

PostPosted: Thu Jun 22, 2006 9:46 am Reply with quote

themes are located in nukeroot/themes
If your theme has forum files you'll find them in
nukeroot/themes/YOUR_THEME/forums/
and those file *should* overide what is in nukeroot/modules/Forums/templates/subSilver
 
View user's profile Send private message Send e-mail
gamerevolt
PostPosted: Thu Jun 22, 2006 11:41 am Reply with quote

I have also discovered that any module that is not the content module are receiving there link colors from my themes stylesheet

A:link
A:active
A:visited
A:hover

And I want all modules hyper links to match

.content a:link
.content a:active
.content a:visited
.content a:hover

What files do I need to edit to accomplish this?
 
Guardian2003
PostPosted: Thu Jun 22, 2006 3:25 pm Reply with quote

As you have found, the theme style sheet *should* control the look of all modules with the exception of Forums, that is the whole principle of having a style sheet - to save having to hard code it in each and every module.

If you have installled a third party module that is not following this behaviour then you'll have to recode it.
 
gregexp
PostPosted: Thu Jun 22, 2006 6:12 pm Reply with quote

or u could simply allow it to call the

A:link
A:active
A:visited
A:hover

and make them identical to the

.content a:link
.content a:active
.content a:visited
.content a:hover

definitions...like so:

this is my original:

A:link {
FONT-SIZE: 12px;
COLOR: #cccccc;
FONT-FAMILY: Arial;
TEXT-DECORATION: none
}
A:visited {
FONT-SIZE: 12px;
COLOR: #cccccc;
FONT-FAMILY: Arial;
TEXT-DECORATION: none
}
A:active {
FONT-SIZE: 12px;
COLOR: #cccccc;
FONT-FAMILY: Arial;
TEXT-DECORATION: none
}
A:hover {
FONT-SIZE: 12px;
COLOR: #666666;
FONT-FAMILY: Arial;
TEXT-DECORATION: none
}
.content a:link {
FONT-SIZE: 12px;
COLOR: #666666;
FONT-FAMILY: Arial;
TEXT-DECORATION: none
}

.content a:active {
FONT-SIZE: 12px;
COLOR: #666666;
FONT-FAMILY: Arial;
TEXT-DECORATION: none
}

.content a:visited {
FONT-SIZE: 12px;
COLOR: #666666;
FONT-FAMILY: Arial;
TEXT-DECORATION: none
}

.content a:hover {
FONT-SIZE: 12px;
COLOR: #666666;
FONT-FAMILY: Arial;
TEXT-DECORATION: none
}


noe i dont have those tags in my theme...dont use em i suppose...but i am tryin to show u how to make em identical definitions:

.content a:link {
FONT-SIZE: 12px;
COLOR: #cccccc;
FONT-FAMILY: Arial;
TEXT-DECORATION: none
}
.content a:visited {
FONT-SIZE: 12px;
COLOR: #cccccc;
FONT-FAMILY: Arial;
TEXT-DECORATION: none
}
.content a:activeA:active {
FONT-SIZE: 12px;
COLOR: #cccccc;
FONT-FAMILY: Arial;
TEXT-DECORATION: none
}
.content a:hover {
FONT-SIZE: 12px;
COLOR: #666666;
FONT-FAMILY: Arial;
TEXT-DECORATION: none
}

this makes it all identincal either way...now if u want to customize the appearance..code them into it same way.
 
gamerevolt
PostPosted: Fri Jun 23, 2006 8:42 am Reply with quote

Guardian2003 wrote:
As you have found, the theme style sheet *should* control the look of all modules with the exception of Forums, that is the whole principle of having a style sheet - to save having to hard code it in each and every module.

If you have installled a third party module that is not following this behaviour then you'll have to recode it.


Thats my question the only module using the links the way I want is the content module... I have tried creating a style folder within the module but the module does not know how to reference it.... Can you tell me what code to add to the module?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

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 ©