>>
Site Map
>>
Forums
>>
General 6x
Forum module - topics in forum:
General 6x - Discussions reagarding any other PHP-Nuke Problems.
How to I make the following changes to Theme's
1. Each block has a header, I want to use a home made .gif for each block header, however, if the block is on the left it will use one .gif, while if the block is on the right it will use the smae but reversed.
2. Lock the theme, so that the Theme I choose is the only one, otherwise I have to start and change every theme with the .gifs I want.
3. Has anyone got a list for the Codes for every colour, that way I don't have to keep guessing.
4. Change the main menu block to inc some modules not shown i.e. Gallery (see my site), and remove some that I don't want on it.
All you help appreciated.
Hi
I'll do my best with this:
Q1
I'm sorry I don't know
Q2
Go into the themes folder in your webspace CPanel and find the folder that holds all the themes. Delete all except the one you want people to use. There is a separate folder for subSilver though - I never delete this just incase.
Q3
Sorry dumb head on but I think this site has a module and block maker and such - maybe another site - if it is I'll find it for you. However it has a window that you open and click on a colour and it gives you the hex code.
This might also be useful for the .gif in the blocks.
Q4
In your Nuke admin page, the main menu blocks are listed. The Modules block is also controlled by the modules section. Here you can remove or infact just disable the module options you don't want and you can edit the names of the modules. However my advice for adding modules is via the Content or Sections modules that you can create yourself.
I think there are some gallery modules, but I actually just use a thumbnail program to produce the gallery, upload all images and transfer the html code into new pages in the contents section. Sorry I know that might sound a bit waffled if you are lost.
Keep asking til you get what I'm on about - I don't mind!

Well you got some questions there Mr RC, will try my best ot get you on track. Most of the methods I am talking about below are fresh out of my head so I haven’t tested them, they might take a bit of mucking about with to get them going but sure you can reply back if your having trouble.
Most of the code I have used to show examples are from the DeepBlue theme but may vary slightly in your own theme.
Answers:
This one is a tricky one as the header title is stored in the database as text. However if you were to modify the sidebox function in the themes/yourtheme/theme.php file from something like:
| Code: : |
echo "<td background=\"themes/DeepBlue/images/table-title.gif\" width=\"138\" height=\"20\">"
." <font color=\"#FFFFFF\"><b>$title</b></font>"
."</td> |
This shows that it is going to use a static background image and then put the $title text in the cell, but if we change that so that it doesn’t show a background image, you may want to put a background colour in but I would leave it blank so it match’s the rest or your site. Then instead of just text you would place and IMG tag in the cell and that will base its image on the title, this will alow you to specify the image to be show via the Admin -> Blocks section by clicking on the Edit button beside the relevant block you want to change.
So if we wanted to have an image called themes/$ThemeSel/images/userinfo.gif in the block you would edit the title in the admin section so it says “userinfo”, don’t put the .gif into the title in the admin section, the code will add that itself. Don’t use spaces in the image names either.
| Code: : |
echo "<td width=\"138\" height=\"20\" align=\"center\">"
." <IMG SRC=\"themes/$ThemeSel/images/".$title.".gif\" BORDER=\"0\">"
."</td> |
Something like the above should work. You can replace the $ThemeSel with the name of your theme, or if you want it to fill that in automaticly at the start of the function add the global line like this:
| Code: : |
function themesidebox($title, $content) {
global $ThemeSel; |
If that doesn’t work just type the name of the theme replacing $ThemeSel yourself but it should work. This method gives you complete control over the image for each and every block
- Delete all other themes from the themes folder and make sure the one you have left is the theme selected in the Admin -> Preferences Section.
- Don’t understand what you mean by a list of all the colours, if you are referring to $bgcolor1 and so on in the themes, they are HEX colours defined at the top of the themes/yourtheme/theme.php. If that’s not what you mean post back.
- The Navigation Block you are using on your site requires manual editing to change it so you will have to edit the blocks/block-XXXX (Whatever that block is called). You can just copy lines that exists and edit the title and link to point to the direct link of the module you want ie:
| Code: : |
| <A HREF=\”modules.php?name=Forum\”> |
as for the title they should be linked to a language file so you can either add an entry to whatever language file it is using or change the reference to the language file to plain text, to do this find on the line you are editing:
| Code: : |
| <A HREF=\”modules.php?name=Forum\”>”._LINK_TITLE.”</A> |
You can either replace the _LINK_TITLE with another reference to a language file or remove ”._LINK TITLE.” (including the “) and just put some text there like Gallery or whatever so it looks like this
| Code: : |
| <A HREF=\”modules.php?name=Forum\”>Gallery</A> |
Well I think that’s is - enjoy
hello
In answer to question 1, I've just done a similar thing to my site. I didn't bother with changing any code, I just changed the image used by the theme to create the block headings.
In my case the images were
back1.gif (size 42x12) created the top left corner
back2.gif (size 42x2) created the centre
back3.gif (size 42x12) created the top right corner
I just made new images for my theme making back2 42x64
It works very well
I used to alter the heading in Administration (where you would put a custom name) using HTML (eg. img src=). it works but not as well as changing the block theme images. Also, when going back into custom name, the HTML had gone so would have to type it in everytime.
| Quote: : |
In answer to question 1 etc etc etc
|
In answer to you posating - I reckon Stuart has this sussed by now - the posts are almost 2 years old!!! 