I need some comments on how I might be able to get this solution. I have guessed a solution down at the bottom
I require two sommaires to be loaded.
One in a vertical Fashion (block(left)) and one for a horizontal fashion (center(block)).
The reason I require this is because my site is set to constraints of 800x600. When I am in the forum,its pretty small with the block(left) there.
So when ever I want to view the forum, Im gonna disable the left(block), and enable the center(block)
In the sommaire Admin panel, I require two of them (Admin Buttons so I can set one block to vertical,the other horizontal) and have two blocks loaded.
My guessed solution.
Copy folders over for 2nd sommaire but rename the four .php files to
/html/blockks/block-sommaire1.php
/html/admin/case/case.sommaire1.php
/html/admin/links/links.sommaire1.php
/html/admin/modules/sommaire1.php
and edit the files to point to the relevant table
Modifying a new table is a bit duaunting for me Syntax wise.
To make/insert a second table, would I just have to change the
Realised I could put an absolute value into block-sommaire1 for the Horizontal
1 for Horizontal, 0 for vertical
Code:
// voilà, si $newpms[0]>0 --> il y a des PMs non lus //
$flagmenu = 1; // flag qui est mis automatiquement à "1" quand il y a un module dans la rubrique 99
// --> permet d'afficher 1 seule fois la barre horizontale.
But still not showing up in top. Am gonna research the top(block)
marcoledingue Captain
Joined: Jun 15, 2003
Posts: 322
Location: Paris, FRANCE
Posted:
Thu Oct 02, 2003 4:44 am
well, you guessed right : you can have 2 sommaires installed, but it will require some modifications !
1. rename all files to xxxxxx1.php
2. add new DB tables
3. edit all sommaire files in order to modify each time a file and/or DB table is called.
unfortunately, the $flagmenu does not make the menu 'horizontal' : this is just an internal variable wich i use for displaying an horizontal bar (html code < hr > ) under the last categorie, if a module exists and does not belong to a categorie (so all active/not hidden modules will be shown, not only the one specified in the menu admin).
i don't knwo if i understood correctly what you want :
for an horizontal sommaire, you want this type of display :
==> for that you will have to modify the code of the block...
it is possible, though, because it's html code. but it'll require some modifications because i made while conditions in the code you'll probably have to modify all the behaviour of this part of code.
i'll check if i can do that rapidly, but if (as i guess) it'll require too much time, i won't be able to do it myself, because i'm quite in a hurry right now...
Marc
jimmorrison Corporal
Joined: Sep 27, 2003
Posts: 60
Posted:
Thu Oct 02, 2003 2:23 pm
cheers marcoledingue,
Glad to see that. I'm gonna investigate more.
I know what you mean about time pressure, Its all go here to
found relevant sommaire mathces in all files and replaced with sommaireh
found relevant matches to somaire_categorie and replaced with somaire_categorieh
renamed
Code:
DROP TABLE IF EXISTS `nuke_sommaire[b]h[/b]`;
CREATE TABLE `nuke_sommaire[b]h[/b]` (
and
Code:
INSERT INTO `nuke_sommaire[b]h[/b]`
and
Code:
DROP TABLE IF EXISTS `nuke_sommaire_categories[b]h[/b]`;
CREATE TABLE `nuke_sommaire_categories[b]h[/b]` (
and
Code:
INSERT INTO `nuke_sommaire_categories[b]h[/b]`
Now I got a couplee admin menus in the control panel
So far have trimmed a bit of the html in blocks/block-sommaireh.php
more or less like this
<html>
<table width="100%"><tr><td>
You could probably fit 9 or so "modules menus" (1024x768)
I have still have some lil probs I am working on, some which I may of created and others making it look better
(Disabling Admin menu; maybe just one physical link)
(overflow of unwanted menus and one phantom horizontal rule<hr> )
(Remove Title above; "Main Menu")
(Remove extra paragraph at bottom)
Its been a couplee months since I coded so I am pretty slow
Tell me, do i need to change anything else in case.sommaireh.php? It seems to work just like this. (MySql knowledge is pretty newbieish)
Code:
case "sommaireh":
case "deletecat":
case "send":
case "upgrade":
back to the code
Last edited by jimmorrison on Fri Oct 03, 2003 6:54 am; edited 2 times in total
jimmorrison Corporal
Joined: Sep 27, 2003
Posts: 60
Posted:
Fri Oct 03, 2003 4:32 am
Why does my html and bolds not show up. Gee what a day.
_________________ An Online Learning and Information Service
Tutorials for your Parents and computer challenged mates
www.aolis.info
marcoledingue Captain
Joined: Jun 15, 2003
Posts: 322
Location: Paris, FRANCE
Posted:
Fri Oct 03, 2003 7:58 am
well, you're doing a good job
the case.sommaireh.php file does not need to be modified more than you did.
--> the functions of sommaireh.php can have the same name than the functions in sommaire.php, if you modified sommaire to sommaireh everywhere.
How do I add content to the categories. For example the first category has 3 content areas, I'd like to have more...
Anyone?
marcoledingue Captain
Joined: Jun 15, 2003
Posts: 322
Location: Paris, FRANCE
Posted:
Sun Oct 05, 2003 4:13 am
when a category has no module/link, 3 blank listboxes are displayed : you can add 3 modules/links.
when you save the changes and come back to the menu admin panel, a new blank list box will appear.
-->you can add module/link one by one.
I thought it was the easiest way to do, because i think the average category will contain 3/4 modules/links, and a few contains more than 5 links.
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