I didn't know where to post this, so I'll do it here because it's mostly about the modules of PHP-Nuke + phpBB forums.
So first of all, I would like to know how to make empty modules.
I wanna write some texts and information about things, not reviews or news or something else, but more like free empty pages (like HTML)
Second, which image gallery is the best for php-Nuke to be a module of it, to fit with the theme of the php-Nuke, etc.
I don't need anything complex, just need thumbs of the picture, and to be able to categorise them. I'm not interessted in private galleries for each user etc.
And the last question is about blocks. Can I change somehow the order of the blocks, like blocks appear diffirently in each module. For example: I don't need any blocks in the Forum module, so I don't wish them to appear there, but in another module they should appear however I order them.
Thanks, G.
hue Support Mod
Joined: Apr 18, 2003
Posts: 368
Location: Ohio
Posted:
Sat May 05, 2007 5:53 pm
Griever_Reborn wrote:
So first of all, I would like to know how to make empty modules.
I wanna write some texts and information about things, not reviews or news or something else, but more like free empty pages (like HTML)
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
$index = 1; // value 1 shows right blocks value 0 shows left
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("header.php");
include("footer.php");
?>
Griever_Reborn wrote:
Second, which image gallery is the best for php-Nuke to be a module of it, to fit with the theme of the php-Nuke, etc.
I don't need anything complex, just need thumbs of the picture, and to be able to categorise them. I'm not interessted in private galleries for each user etc.
I would do a search for gallery modules for php-nuke , however, a lot of people like http://gallery.menalto.com .
Griever_Reborn wrote:
And the last question is about blocks. Can I change somehow the order of the blocks, like blocks appear diffirently in each module. For example: I don't need any blocks in the Forum module, so I don't wish them to appear there
In the theme.php file of your theme , find
Code:
blocks(left);
and replace with
Code:
if ($name=='Forums') {
/* Don't display it. */
}
else {
blocks(left);
}
If you wanted to hide the left blocks in different modules, then you could use something like
Code:
if ($name=='Forums' || $name=='Members_List' || $name=='Private_Messages') {
/* Don't display it. */
} else {
blocks(left);
}
You would also have to add the $name to the list of global variables in themeheader(): See below
Code:
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi, $name;
I haven't worked for a while after I posted this, but I've finished now with all of it, and it works, so thanks a lot hue.
I tried the Gallery and Coppermine, and Coppermine is the right choice for me.
2. I always get these long URLs for stuff, for example: I'm the second user on my PHPNuke site and therefore I have this URL to my account: "http://my_website.com/modules.php?name=Forums&file=profile&mode=viewprofile&u=2&sid=0536a879de6f7e574d5b4056a9920205".
It looks like a random ending with no sense at all, cause I can just type the URL without the "&sid=0536a879de6f7e574d5b4056a9920205" ending. This appears as well on forum posts, forums, categorys. Can I cut somehow that part?
(I use PHP-Nuke 7.9 with integrated phpBB forum which you made)
3. I have purchased tufat's FlashChat (link: http://www.tufat.com/s_flash_chat_chatroom.htm) and wondered if it can be integrated as a PHP-Nuke module. I went to tufat's community forums but they said that they discontinued with modules for a long time. So I'm asking did you, nukecops, made a module for it or something like that?
And/or could I ask for support here?
Best regards, G.
Griever_Reborn Nuke Soldier
Joined: May 06, 2007
Posts: 22
Posted:
Thu Jun 21, 2007 3:22 am
I have one further question, but please look at the other ones posted before, too:
4. I read about hiding the left and right blocks, but I want to have certain blocks in certain modules, to have it like a navigation for the modules. Like one-time appearing blocks.
So is that possible? If yes - how?
beanwebb Sergeant
Joined: Mar 01, 2003
Posts: 81
Posted:
Thu Jun 21, 2007 6:17 am
I can answer some of these questions:
1:
This is called google tap, the HTML files dont actually exist, its done by the server, the server automatically converts the link to the long one phphuke needs to find the neccessary page. Although not all servers will let you do this.
2:
The long line of numbers/letters are your session ID, this allows phpBB to know who you are, I believe there is a way to change this in the admin forum pages, not too sure where it is though. Also you can type the urls without it and phpbb will still find your profile.
3
Im not too sure about this, it may be someone will need to turn it into a module for you, if possible.
4
I dont think this is possible, unless there are any mods out there for it. But never heard of any.
I'll make HTML pages which direct you to the page if I need something more effective.
Problem with the SID solved.
For the FlashChat, I'll make a HTML page which looks like my PHP-Nuke and embed the FlashChat. I don't have the skills and/or time for making a module, maybe next time
I'll include the blocks in the modules I need, and in the others I'll just drop them and make my own navigation.
Furthermore:
- I want my "Who's Online" block to show also who is online (member names) instead of just telling the number of them online.
I browsed a little bit, but everything I found had a dead link: site closed or whatever. Anyone who knows and/or uses that block?
- I posted this in the "Gallery" thread above: Due to risk by installing the Coppermine gallery I have to find another one. Gallery 2 is too complicated and there are too much details for an artwork gallery I want. So does anyone know for a gallery that looks like the Coppermine and can be used as a PHPNuke module?
Thanks,
G.
beanwebb Sergeant
Joined: Mar 01, 2003
Posts: 81
Posted:
Mon Jun 25, 2007 1:41 pm
If your gonna insert the flashchat module in an html page, the easiest thing to do then, is to include that page in PHPNuke module file. Create a folder under modules called something like FlashChat. Then create an index.php file in notepad and with this text:
Code:
<?php
include("header.php");
include("modules/FlashChat/file.html");
include("footer.php");
?>
Change the link modules/FlashChat/file.html to the path of the html file you created earlier. Upload that to your site and then access the module from the menu block. It should work.
With the user block, do you mean like the one on my site [url]http:/www.beanwebb.com[/url]? (top right) you might need to be logged in to see the list at the bottom.
As for another Gallery module, I think My_eGallery is somewhere, although I have found Gallery2 to be fairly easy to use. (Again check the screenshots section of my site)
Thanks, but I already solved the problem with the FlashChat, works fine now.
Anyways, yes, that's the block I need. Altough, it would be better if it was compressed like:
-----------------------------------------------
Ovarall:
Members:
Guests (not so important, it's clear that it's Overall minus the Users)
So, everything in one block, and don't need the member's name one under another, it streches the website too much it there's too many users online.
But yeah, that it, and if it's not possible in the way I said, it's fine with yours, too.
- About the gallery: it'll be an artwork gallery, not an online photo album, so I need it to be simple and with not many details - just thumbs, cause I'll have somewhere 200+ pictures per title. So the informations like who's the uploader, date, time, etc. are not important nor necessary. Coppermine was really the best for it, and would be no.1 pick if it weren't for that problem, but I guess Gallery2 will be pick no.1 since it's better than My_eGallery, if I can't find anything more similar to Coppermine.
beanwebb Sergeant
Joined: Mar 01, 2003
Posts: 81
Posted:
Mon Jun 25, 2007 2:32 pm
That block should have been included with your install of PHPNuke. Simply go to Admin Page -> Blocks -> Scroll to the add box form -> Select Filename as User Info -> Select which side of the page you want it on -> Click Create Block.
With Gallery2, you can strip out what you dont need by deactivating modules. ALot of the extras on gallery are generated by the plugins. There is one gallery/album system I did forget about and thats 4nAlbum, thats been ported to PHPNuke, but I've never used it so not sure if it will do what you want or not. I dont think its as advanced as Gallery2.
A good website to look at http://warpspeed.4thdimension.de/. Theres loads of blocks and addons there (Alot might be out of date), it is in German, but click the US flag at the top to change it to english.
That block should have been included with your install of PHPNuke. Simply go to Admin Page -> Blocks -> Scroll to the add box form -> Select Filename as User Info -> Select which side of the page you want it on -> Click Create Block.
With Gallery2, you can strip out what you dont need by deactivating modules. ALot of the extras on gallery are generated by the plugins. There is one gallery/album system I did forget about and thats 4nAlbum, thats been ported to PHPNuke, but I've never used it so not sure if it will do what you want or not. I dont think its as advanced as Gallery2.
A good website to look at http://warpspeed.4thdimension.de/. Theres loads of blocks and addons there (Alot might be out of date), it is in German, but click the US flag at the top to change it to english.
I didn't know that the "User Info" block was included and all I had to do is activate it. That helped a lot!
I mixed those two up and got my result.
If user is not registered he/she can only see the Login/Registration block, and if he/she is a member, both of these block will be visible.
Anyways, if someone likes this, I'll be glad to zip those two PHP files and send them via e-mail.
I'll try to customize Gallery2 in the next few days and if I can't get the result I want, I'll try with something less advanced.
Thanks for your help, beanwebb.
Griever_Reborn Nuke Soldier
Joined: May 06, 2007
Posts: 22
Posted:
Mon Jul 02, 2007 3:11 pm
I have a little problem with the modules and blocks:
Whenever I create a new module, I can't see the right blocks.
I have put "$index = 1;" in the index.php.
I was looking for answers - i tried to repair the nuke_block table - but I couldn't find anything that helps.
What could be the problem?
Griever_Reborn Nuke Soldier
Joined: May 06, 2007
Posts: 22
Posted:
Mon Nov 12, 2007 11:52 am
Griever_Reborn wrote:
I have a little problem with the modules and blocks:
Whenever I create a new module, I can't see the right blocks.
I have put "$index = 1;" in the index.php.
I was looking for answers - i tried to repair the nuke_block table - but I couldn't find anything that helps.
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