You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 59 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Having Two sommaires loaded [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
jimmorrison
Corporal
Corporal


Joined: Sep 27, 2003
Posts: 60


PostPosted: Wed Oct 01, 2003 6:06 pm Reply with quoteBack to top

Hi there

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
Code:
 CREATE TABLE `nuke_sommaire`

to
Code:
CREATE TABLE `nuke_sommaire1` (

Question
Orig Sommaire SQL

Code:
DROP TABLE IF EXISTS `nuke_sommaire`;
CREATE TABLE `nuke_sommaire` (
  `groupmenu` int(2) NOT NULL default '0',
  `name` varchar(200) default NULL,
  `image` varchar(99) default NULL,
  `lien` text,
  `hr` char(2) default NULL,
  `center` char(2) default NULL,
  `bgcolor` tinytext,
  `invisible` int(1) default NULL,
  `class` tinytext,
  PRIMARY KEY  (`groupmenu`)
) TYPE=MyISAM;
Find all posts by jimmorrisonView user's profileSend private messageVisit poster's website
jimmorrison
Corporal
Corporal


Joined: Sep 27, 2003
Posts: 60


PostPosted: Wed Oct 01, 2003 6:38 pm Reply with quoteBack to top

OK.Been playin round with it.

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)
Find all posts by jimmorrisonView user's profileSend private messageVisit poster's website
marcoledingue
Captain
Captain


Joined: Jun 15, 2003
Posts: 322

Location: Paris, FRANCE

PostPosted: Thu Oct 02, 2003 4:44 am Reply with quoteBack to top

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 :

Category 1 Category 2 Category 3
Module 1 Module 1 Link 1
Module 2 Module 2 Module 2

instead of :

Cat 1
mod1
mod2

Cat2
mod1
mod2

Cat3
link1
mod2

is that right ?

==> 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
Find all posts by marcoledingueView user's profileSend private messageVisit poster's website
jimmorrison
Corporal
Corporal


Joined: Sep 27, 2003
Posts: 60


PostPosted: Thu Oct 02, 2003 2:23 pm Reply with quoteBack to top

cheers marcoledingue,

Glad to see that. I'm gonna investigate more.

I know what you mean about time pressure, Its all go here to

Jim
Find all posts by jimmorrisonView user's profileSend private messageVisit poster's website
jimmorrison
Corporal
Corporal


Joined: Sep 27, 2003
Posts: 60


PostPosted: Fri Oct 03, 2003 4:30 am Reply with quoteBack to top

Ok. I have renamed

admin/case/case.sommaireh.php
admin/link/link.sommaireh.php
admin/modules/sommaireh.php
blocks/block-Sommaireh.php

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>

<table><tr><td>Category(1)</td></tr>
<tr><td>Module(1)</td><td>Module(2)</td><td>Module(3)</td></tr></table>


<table><tr><td>Category(2)</td></tr>
<tr><td>Module(1)</td><td>Module(2)</td><td>Module(3)</td></tr></table>


<table><tr><td>Category(3)</td></tr>
<tr><td>Module(1)</td><td>Module(2)</td><td>Module(3)</td></tr></table>

</td></tr></table>
</html>

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> Very Happy )
(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
Find all posts by jimmorrisonView user's profileSend private messageVisit poster's website
jimmorrison
Corporal
Corporal


Joined: Sep 27, 2003
Posts: 60


PostPosted: Fri Oct 03, 2003 4:32 am Reply with quoteBack to top

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
Find all posts by jimmorrisonView user's profileSend private messageVisit poster's website
marcoledingue
Captain
Captain


Joined: Jun 15, 2003
Posts: 322

Location: Paris, FRANCE

PostPosted: Fri Oct 03, 2003 7:58 am Reply with quoteBack to top

well, you're doing a good job Wink

the case.sommaireh.php file does not need to be modified more than you did. Wink

--> the functions of sommaireh.php can have the same name than the functions in sommaire.php, if you modified sommaire to sommaireh everywhere.
Find all posts by marcoledingueView user's profileSend private messageVisit poster's website
jimmorrison
Corporal
Corporal


Joined: Sep 27, 2003
Posts: 60


PostPosted: Fri Oct 03, 2003 9:54 pm Reply with quoteBack to top

Heres somethin I can show ya at mo

http://www.aolis.info/forums.html
I need to get it slimmer
Find all posts by jimmorrisonView user's profileSend private messageVisit poster's website
marcoledingue
Captain
Captain


Joined: Jun 15, 2003
Posts: 322

Location: Paris, FRANCE

PostPosted: Sat Oct 04, 2003 3:29 am Reply with quoteBack to top

ok, so to get it slimmer you'll have to modify the images : its their height that makes your bar thick.

try the same menu without image, you'll see how slim you can make the menu. (if you wan it slimmer you'll need to change the font of the text.)

but anyway, i think it'll be easier to make an html 'block' for you... Wink

if you just want to have 4/5 links, and don't want to change it everyday an html block should be easier to do Wink

Marc

_________________
Support website for Sommaire Paramétrable : http://marcoledingue.free.fr
Find all posts by marcoledingueView user's profileSend private messageVisit poster's website
NHL23
Sergeant
Sergeant


Joined: Apr 12, 2003
Posts: 116

Location: Meadow Vista, CA

PostPosted: Sat Oct 04, 2003 4:20 pm Reply with quoteBack to top

How do I add content to the categories. For example the first category has 3 content areas, I'd like to have more...

Anyone?
Find all posts by NHL23View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
marcoledingue
Captain
Captain


Joined: Jun 15, 2003
Posts: 322

Location: Paris, FRANCE

PostPosted: Sun Oct 05, 2003 4:13 am Reply with quoteBack to top

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.
Find all posts by marcoledingueView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.217 Seconds - 201 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::