PDA

View Full Version : Custom index page and editor toolbars


cen1
09-27-2011, 10:36 PM
Hello everyone

I have a very specific issue to solve.

Right now, the index page of our server is forum portal (CMS) but I would like to replace it with a custom html page. It should be completely custom, without any vb template, header or footer.

I could easily achieve this by putting it as index page and rename forum index.php to something else, but here comes the problem: server owner does not like to give any remote FTP access to his server, not even to forum admins, therefore his request is that index page should be editable through admincp.

I hope you could assist me in this matter. So far I did not discover how could I do that from admincp, all the plugins I checked only create new pages from template. I would also like to preserve CMS (index page would provide fast and usefull info and give links to CMS and forums).

Problem #2 are editor toolbars. I'd need to know how to manipulate them to display them in 1-2 rows instead of 3 rows, which leave 50% of empty space on the right. I tried to edit editor_toolbar_on template with no success (probably missed the template because no changes were displayed at all).

Kind regards, cen

kh99
09-28-2011, 01:29 PM
If you can do what you want with a template, then it seems like that should work. A template is really just html, you can use other special tags but you don't have to. Another option would be to use php and make your html a string (or a heredoc: http://us2.php.net/manual/en/language.types.string.php#language.types.string.sy ntax.heredoc), but I guess I don't see why that would be any easier.

cen1
09-29-2011, 10:45 AM
So far I created a new CMS section, applied 1 col grid and included my custom HTML site as a widget. By setting the style to position:relative; margin-top:-XXX I managed to cover the whole header with widget.

The only thing left now is footer which I need to get rid off. I set z-index to 1 and tried a negative bottom margin with no success. Any idea how to trick that into work? :)

kh99
09-29-2011, 11:47 AM
Hmm...I wonder if it would work if you added some CSS to your html page, like:

#footer { display:none; }

cen1
09-30-2011, 03:50 PM
This actually worked. Thanks