Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 37
0 members and 37 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
The Lyric Archive
Dining Room Furniture

Go Back   Nukemods Forum > PHP-Nuke 7.x > Nuke 7.x - Blocks

Reply
 
LinkBack Thread Tools Display Modes
How to remove center block titles?
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 38
Join Date: Dec 2004
How to remove center block titles? - 01-23-2005, 03:08 AM

I've been trying this for a while now, I'd like center blocks to not have a title area, just content in the table.. I've had no success, is this possible to do?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Moderator
 
Status: Offline
Posts: 260
Join Date: Oct 2004
01-23-2005, 04:46 AM

open mainfile.php find
Code:
function render_blocks($side, $blockfile, $title, $content, $bid, $url) {
make the $title var null so it wont show anything. And you will have something like
Code:
function render_blocks($side, $blockfile, $title, $content, $bid, $url) {
if ($title) { $title = ''; }
    if ($url == "") {
		if ($blockfile == "") {
		    if ($side == "c") {
.....
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 38
Join Date: Dec 2004
01-23-2005, 07:17 PM

Thanks man It still left a space in the top where the title was, but I guess I can live with it
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 38
Join Date: Dec 2004
01-24-2005, 12:36 AM

Actually, that removes the titles from all blocks, I just want the center ones removed..
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Moderator
 
Status: Offline
Posts: 260
Join Date: Oct 2004
01-24-2005, 04:23 AM

Didn't notice that.
Open mainfile.php, find
function blocks($side) {
after the sql query
Code:
    $result = $db->sql_query($sql);
    while($row = $db->sql_fetchrow($result)) {
	$bid = intval($row['bid']);
	$title = $row['title'];
add
Code:
if (($side == 'c') or ($side == 'd')) { $title = ''; }
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 38
Join Date: Dec 2004
02-02-2005, 03:35 AM

Thanks Geno. Only problem with this method is that it leaves a space where the title WAS. Is it possible to completely remove the title area, not just the title?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up your own block titles in image Rodriguez Site design 9 08-09-2008 08:26 AM
Possible to remove the 'Recent Topics' block in the forum? sampson Open topics 10 10-11-2005 07:57 PM
is there way to have the forum in the center block asif Nuke 7.x - General 1 11-21-2004 05:05 AM
Forum Center Block 6.5 FleaSOG Nuke 6.5 to 6.9 - Blocks 3 06-18-2003 03:34 PM
How can I put a Center Block below the New Stories? rasputin Purged Topics 0 06-15-2003 02:49 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31