- Moderated by:
- Support
-
- rank:
-
Professional
- registered:
- December 1969
- Status:
- offline
- last visit:
- 30.12.05
- Posts:
- 1310
Sugaar
In my hurriedness to cut and paste, I seemed to have forgotten a teensy little thing. lol. Thanks very much.
All fixed.
Just curious. I am using a version of the "PostNuke" theme. The form fields are the same color as my table cell's background. Anyone know how I make them white?
It's probably defined in a style in the style/styleNN.css and/or style/style.css.
If you check out the MTmodular theme available at http://www.mtrad.com, you'll find an example of that kind of thing in style/style.css. I wrote the theme so that it was easy to see what was what and included documentation..... -
- rank:
-
Helper
- registered:
- November 2002
- Status:
- offline
- last visit:
- 17.02.05
- Posts:
- 135
This one is beautiful but I have a few questions or requests.
1. I'd like it to say Welcome "username" Not just Welcome "member".
The theme.php hack for it is:
Code
2. Is it possible to make this mulitlangual? As I support Norwegian and English on my site I'd love to implement that...
Thx for a great hack though.
--
My home
StayConnected -
- rank:
-
Professional
- registered:
- December 1969
- Status:
- offline
- last visit:
- 30.12.05
- Posts:
- 1310
torminator
2. Is it possible to make this mulitlangual? As I support Norwegian and English on my site I'd love to implement that...
Yes, it is possible. Change the "Welcome" to a constant and define the constant in one of the lang files.
Here's code from the MTmodular theme:
Code
You can see that _WELCOME is a constant. Then I have a line in the themes/MTmodular/lang/eng/global.php file like this:Code
For other languages, you would create a line in the global.php file in that language's directory under lang/.
All of this is in the MTmodular theme available from http://www.mtrad.com. -
- rank:
-
Professional
- registered:
- August 2002
- Status:
- offline
- last visit:
- 25.11.05
- Posts:
- 994
Just to give my 2 cents, I'll post what I have in my PostNuke-V theme (modified version of the default theme), essentially what has been covered so far, including multilingual support. The main difference is, firstly, I like everything in the one file, so no includes, and secondly, I do all my themes in Dreamweaver, so they are written as HTML with embedded PHP, not the other way around, which is a waste of server resources anyway, and hard to read for an HTML coder/designer (I do know PHP, but it's a mess to deal with embedded HTML, and the theme is quite different from the main system, as it's the one part the user needs to edit). You can still use this extract in a regular theme, by including a PHP close tag at the beginning ?> and a PHP open tag at the end -
- rank:
-
Helper
- registered:
- November 2002
- Status:
- offline
- last visit:
- 17.02.05
- Posts:
- 135
Thx guys !
It fixed my problem and request and also you gave som good clues on how to hack the code further to add some extra features.
--
My home
StayConnected -
- rank:
-
Helper
- registered:
- March 2002
- Status:
- offline
- last visit:
- 10.10.06
- Posts:
- 220
Can anyone write this in clean and put it in a way one could just cut and paste, I am using PostNukeblue, One could just paste here the part of that theme and put the code needed with a color to see it better, no need to enter the whole theme.php. I need the search box and the login box in the top just like in the PostNuke site. Can some one mail me the code?, zodishere@hotmail.com
I also need to add to the PostNukeBlue theme a top menu, can someone make that too?.
Kind Regards -
- rank:
-
Freshman
- registered:
- April 2004
- Status:
- offline
- last visit:
- 05.05.04
- Posts:
- 4
hey...me new to...am totally zonked with all this stuff...sorry...but if u do reach a solution please let me know.
-----------------------------------
http://www.zonelinks.com
------------------------------------
The Power Link Dimension -
- rank:
-
Softmore
- registered:
- October 2003
- Status:
- offline
- last visit:
- 19.12.07
- Posts:
- 58
I was more than a little surprised to find this post as it is.
A lot of good information, helpfull users and intelligent questions. For some reason the last 4 posts (mine included) tend to spoil the fun a bit. It would be nice if the information in this post could be condensed into a FAQ.
Something like:
Quote
How can I move the login and/or the search box to the top of the screen?
This is done through the theme. For .726 you will have to edit theme.php in the theme directory. All the following code can be added to the theme, whereever you feel is best. They all include a check box to keep someone logged in. To remove it, comment out these lines:
(code)
A simple login box that will disappear after login looks uses this code:
(someone with more patience than I have now fills some correct code here.)
A login box that will display the name after login:
(code)
A login box and a seachbox in the same table:
(code)
The Xanthia theme engine will make life easier by using non-PHP variables for this kind of often used code.
Grtz,
Koen -
- rank:
-
Professional
- registered:
- December 1969
- Status:
- offline
- last visit:
- 30.12.05
- Posts:
- 1310
There are other topics that better discuss adding a login and search box to the header part of a theme. If you search the forums, you will find them. (You might try looking for posts by me, as I've posted to those topics.)
If that's not good enough, try downloading the MTmodular theme from http://www.mtrad.com. Both login and search box are included in the theme along with directions on how to add them or take them out. And the code is pretty clear cut. That's why it's called "modular"... :)
BTW, the Xanthia theme engine isn't a cure-all for everything. It won't handle this unless someone codes it first. And that will still take a coder. :wink: -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
ColdRolledSteel
BTW, the Xanthia theme engine isn't a cure-all for everything. It won't handle this unless someone codes it first. And that will still take a coder. :wink:
Xanthia already has a user login plugin. This is used in templates as . AutoTheme has a similar tag.
-Mark -
- rank:
-
Softmore
- registered:
- October 2003
- Status:
- offline
- last visit:
- 19.12.07
- Posts:
- 58
So, I guess a FAQ is in place.
CRS, I have seen the modular template, it is very good. As you posted more about this topic throughout the forum, would you mind condensing your knowledge and experience into a FAQ, that could be great. That way, it can be added to the faq in the docs site and future questions can be redirected to that location.
Although .750 will use Xanthia, this is implemented as an option. Al coding knowledge and effort will not be wasted, nor will any FAQ that you might contribute.
I know I would like something like that.
