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, 424 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 - [Help nedeed] Blocks position - Pleaseeeee [ ]
 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
darafat
Nuke Soldier
Nuke Soldier


Joined: Mar 26, 2008
Posts: 12


PostPosted: Tue Mar 25, 2008 4:49 pm Reply with quoteBack to top

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.

EDIT: i saw a phpnuke script:
"The latest blocks manipulator. Places different blocks anywhere, left, right, up or down just by selecting a different module. Also can change the... "
at: http://www.sengers-au.com/Portal/component/option,com_remository/Itemid,38/func,selectfolder/cat,1/

Will it do what i want? if yes, where i can find it, because in the official website, the link is broked?

Thanks guys
Find all posts by darafatView user's profileSend private message
spottedhog
Captain
Captain


Joined: Apr 30, 2004
Posts: 561


PostPosted: Wed Mar 26, 2008 3:46 am Reply with quoteBack to top

I think what you are asking is how to place block on the right side of the home or index page.

Go to your Nuke Admin, click on blocks, find the block name in the Filename drop-down menu, and for the position choose right.

_________________
SMF-Nuke admin

SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
Find all posts by spottedhogView user's profileSend private messageSend e-mailVisit poster's website
darafat
Nuke Soldier
Nuke Soldier


Joined: Mar 26, 2008
Posts: 12


PostPosted: Wed Mar 26, 2008 1:33 pm Reply with quoteBack to top

nope.
I would like to know how to put a block just in one module, not in the home, so not in the entire site.

I know that i cant do this from the admin panel, but i think that there must be a solution. Anyway i would like to know how a module is loaded.

Thans for ur answer anyway Wink
Find all posts by darafatView user's profileSend private message
spottedhog
Captain
Captain


Joined: Apr 30, 2004
Posts: 561


PostPosted: Wed Mar 26, 2008 2:19 pm Reply with quoteBack to top

What do you wish to display in the block? And in what module?

A MySQL query can be made on any database table and be displayed anywhere.

_________________
SMF-Nuke admin

SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
Find all posts by spottedhogView user's profileSend private messageSend e-mailVisit poster's website
darafat
Nuke Soldier
Nuke Soldier


Joined: Mar 26, 2008
Posts: 12


PostPosted: Thu Mar 27, 2008 5:38 am Reply with quoteBack to top

I would like a block like "Categories Menu".

"Categories Menu" displays a Menu with the content in the "Content" module.

I ve duplicated the "Content module", so i can have different blocks like "Categories Menu".

The tables are: nuke_pages3 & nuke_pages_categories3

thanks so much for your help.
i really appriciate it.
Wink
Find all posts by darafatView user's profileSend private message
spottedhog
Captain
Captain


Joined: Apr 30, 2004
Posts: 561


PostPosted: Thu Mar 27, 2008 6:15 am Reply with quoteBack to top

maybe you can try this for yourself.....

copy the code from the Categories block, and replace the table names with what you have named them. Then replace:

$content .

with

echo

This should give you what you are asking. Place the modified where you want it displayed in your module.

_________________
SMF-Nuke admin

SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
Find all posts by spottedhogView user's profileSend private messageSend e-mailVisit poster's website
darafat
Nuke Soldier
Nuke Soldier


Joined: Mar 26, 2008
Posts: 12


PostPosted: Tue Apr 01, 2008 11:49 pm Reply with quoteBack to top

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");



echo "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=Content&amp;pa=showpage&amp;pid=$pid\">$title </a> - $title1 <br>";
}
}

CloseTable();

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

Thans so so so much man Wink
Find all posts by darafatView user's profileSend private message
spottedhog
Captain
Captain


Joined: Apr 30, 2004
Posts: 561


PostPosted: Wed Apr 02, 2008 5:15 am Reply with quoteBack to top

I am not sure I understand.

Are you wanting to create a new block?

_________________
SMF-Nuke admin

SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
Find all posts by spottedhogView user's profileSend private messageSend e-mailVisit poster's website
darafat
Nuke Soldier
Nuke Soldier


Joined: Mar 26, 2008
Posts: 12


PostPosted: Wed Apr 02, 2008 5:42 am Reply with quoteBack to top

spottedhog wrote:
I am not sure I understand.

Are you wanting to create a new block?

yes Smile

I made this:

http://img206.imageshack.us/img206/6995/a3dm8.jpg

And i would like to do this:

http://img341.imageshack.us/img341/4296/a2mq0.jpg

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 Wink

I hope that now is understandable
[what an horrible screenshot lol Rolling Eyes ]

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 Crying or Very sad
Thanks for your help Wink


Last edited by darafat on Wed Apr 02, 2008 5:54 am; edited 1 time in total
Find all posts by darafatView user's profileSend private message
spottedhog
Captain
Captain


Joined: Apr 30, 2004
Posts: 561


PostPosted: Wed Apr 02, 2008 5:53 am Reply with quoteBack to top

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-Nuke admin

SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
Find all posts by spottedhogView user's profileSend private messageSend e-mailVisit poster's website
darafat
Nuke Soldier
Nuke Soldier


Joined: Mar 26, 2008
Posts: 12


PostPosted: Wed Apr 02, 2008 5:55 am Reply with quoteBack to top

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!!!! Cool Cool Wink

let me see what i can do Wink
Find all posts by darafatView user's profileSend private message
sandman229
Sergeant
Sergeant


Joined: Jul 28, 2003
Posts: 104

Location: Victorville, Ca.

PostPosted: Wed Apr 02, 2008 5:01 pm Reply with quoteBack to top

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!!!! Cool Cool Wink

let me see what i can do Wink


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 .

http://www.techknowpro.com/phpNuke/blocksmanager.php

_________________
Sandman
Find all posts by sandman229View user's profileSend private messageSend e-mailYahoo MessengerMSN MessengerICQ Number
darafat
Nuke Soldier
Nuke Soldier


Joined: Mar 26, 2008
Posts: 12


PostPosted: Thu Apr 03, 2008 12:22 am Reply with quoteBack to top

Quote:

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 .

http://www.techknowpro.com/phpNuke/blocksmanager.php


Yes it s really what i need, but unfortunally it doesn't work properly with phpnuke ver 8.0 Crying or Very sad Crying or Very sad Crying or Very sad

Someone can confirm? Crying or Very sad

Thanks so much sandman229 Wink Wink Wink

edit: maybe i just have to rollback to phpnuke 7.6 Crying or Very sad

edit: I found the version 1.1.7 that seems to be for phpnuke 8.x too.
here s the link: http://metagames-eu.com/hackchip/Telechargement/Mes-T%e9l%e9chargement/mes-projets-phpnuke/WB_BlocksManager%20v1.1.7z

I will try and i ll notice you if it works Cool


Last edited by darafat on Thu Apr 03, 2008 2:09 am; edited 1 time in total
Find all posts by darafatView user's profileSend private message
darafat
Nuke Soldier
Nuke Soldier


Joined: Mar 26, 2008
Posts: 12


PostPosted: Thu Apr 03, 2008 2:06 am Reply with quoteBack to top

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
Find all posts by darafatView user's profileSend private message
sandman229
Sergeant
Sergeant


Joined: Jul 28, 2003
Posts: 104

Location: Victorville, Ca.

PostPosted: Thu Apr 03, 2008 4:48 am Reply with quoteBack to top

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.

_________________
Sandman
Find all posts by sandman229View user's profileSend private messageSend e-mailYahoo MessengerMSN MessengerICQ Number
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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.051 Seconds - 266 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::