hi guys,
i m really new to phpnuke, i did a lot last night, and everythings works.
I duplicated the Content module, without any sql's knowdlege. I spent about all night to configure everything but really, i dont understand how to use a block ONLY in one module. I read a lot on google, searching for a solution but nothing. There must be a way to do this:
I made an empty module, who doesnt load any block. Now i would like to know how to load a BLOCK on the right column. Please i really need this.
Otherwise i can just make the block in html, copying the code in the module where i want that block. I already made this. But really, i dont want to stay always modifying the html code, anytime that i put a content in my duplicated content module.
p.s: The block that i want to load, it just contains a menu with the contents of the duplicated Content module.
Sorry for my bad english, and really i need an help.
Thanks a lot guys.
SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
darafat Nuke Soldier
Joined: Mar 26, 2008
Posts: 12
Posted:
Tue Apr 01, 2008 11:49 pm
Quote:
This should give you what you are asking. Place the modified where you want it displayed in your module.
How to do this? o.o
First of all,
thanks so much, because thanks to u i was able to do almost what i was asking for. I m really sorry for the late answer, but the university needs a lot of time lol xD.
Anyway this is what i figured out:
OpenTable();
global $prefix, $db, $prefix1;
$result = $db->sql_query("SELECT pid, title FROM " . $prefix . "_pages2 WHERE active='1'");
while ($row = $db->sql_fetchrow($result)) {
$pid = intval($row['pid']);
$title = filter($row['title'], "nohtml");
$result = $db->sql_query("SELECT pid, title FROM " . $prefix . "_pages3 WHERE active='1'");
while ($row = $db->sql_fetchrow($result)) {
$pid = intval($row['pid']);
$title1 = filter($row['title'], "nohtml");
but the table is placed at the center of the page. Now the question is:
hot to put this in a block placed at same level of the central one, so in the right column?
I tried to copy the code of the block-Categories.php file (In the blocks, but maybe it isnt the correct file), anf i placed in the module, but it just doesnt work.
Obviosly is my fault, because i m not good with php. But that s it s a good result anyway.
p.s: The code above, shows 2 contents modules, the first is a link to a page, the second is only the title of a page who i use to make a description of the first one. Now what i m asking above, is a block that contains only a list of the first contents as a link, not the second one with the description.
I really hope that u understand what i would like to do. And sorry for my bad english
The block on the right is the one who does contain the query at the database that u gived to me
The modules menu (on the left) must be removed only in this module
the Central block must assume the position on the left side and the central one
Thanks for your patience eheh
I hope that now is understandable
[what an horrible screenshot lol ]
For to be more clear:
I would like a block like the "Categories Menu" one, making more then one, and loading them in differents modules: the module must be all like the one in the screenshot (above). Because i would like a Categories Menu with different contents in different modules. In the position that i described
lol it sound to be difficult to do this
Thanks for your help
Last edited by darafat on Wed Apr 02, 2008 5:54 am; edited 1 time in total
spottedhog Captain
Joined: Apr 30, 2004
Posts: 562
Posted:
Wed Apr 02, 2008 5:53 am
If I am understanding correctly, you wish to put links, etc. inside the module on the right side, correct?
If this is correct, you could just add another table cell in the table that is currently displaying the content.
Or if you are wanting a block format, please go look at the Topics module to see how it is coded. It has "blocks" on the right side when individual topics are displayed.
SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
darafat Nuke Soldier
Joined: Mar 26, 2008
Posts: 12
Posted:
Wed Apr 02, 2008 5:55 am
spottedhog wrote:
Or if you are wanting a block format, please go look at the Topics module to see how it is coded. It has "blocks" on the right side when individual topics are displayed.
wonderful!!!!
let me see what i can do
sandman229 Sergeant
Joined: Jul 28, 2003
Posts: 102
Location: Victorville, Ca.
Posted:
Wed Apr 02, 2008 5:01 pm
darafat wrote:
spottedhog wrote:
Or if you are wanting a block format, please go look at the Topics module to see how it is coded. It has "blocks" on the right side when individual topics are displayed.
wonderful!!!!
let me see what i can do
Sounds like you need WB_blocks Manager..
I use that and it works great.. I don't have it on my site now but here is a link to Version 1.1 .
Last edited by darafat on Thu Apr 03, 2008 2:09 am; edited 1 time in total
darafat Nuke Soldier
Joined: Mar 26, 2008
Posts: 12
Posted:
Thu Apr 03, 2008 2:06 am
ok it works.
but i made the installation for phpnuke 7.x
because the one with php 8.x doesnt work.
I have phpnuke 8.0.
Now it works, but in some modules i can't put the blocks in the right, center up and center down position.
For example in the module download i can put the block on the left and on the right.
I can put the block on the left side of all the modules.
But in some modules, doesnt work the right, center up and center down position.
And i dunno how to put the some modules in the home page!! In the block menager menu (from the admin panel), there isnt the home page's module.
Someone knows why it works in this way? o.O
sandman229 Sergeant
Joined: Jul 28, 2003
Posts: 102
Location: Victorville, Ca.
Posted:
Thu Apr 03, 2008 4:48 am
darafat wrote:
ok it works.
but i made the installation for phpnuke 7.x
because the one with php 8.x doesnt work.
I have phpnuke 8.0.
Now it works, but in some modules i can't put the blocks in the right, center up and center down position.
For example in the module download i can put the block on the left and on the right.
I can put the block on the left side of all the modules.
But in some modules, doesnt work the right, center up and center down position.
And i dunno how to put the some modules in the home page!! In the block menager menu (from the admin panel), there isnt the home page's module.
Someone knows why it works in this way? o.O
Yes, it does work with 8.0 with some tweeking.. I have gotten it working with just about every module that I have with little or not tweeking
What do you have set as your home page?? You don't put modules in your home page, you put blocks with modules.. left, right, center up, center down. Make sure your blocks are active or they won't show up.
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