NukeXchange Network

          

NukeZone Hosting - Fast, Affordable and Dependable
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·decompressing EN-Book-Nuke.tar.tar
·How to allow spaces/gaps/"-" in allowed usernames
·How to Setup PHPNUKE on win2k
·cannot save changes
·voting?
·Nuke forum picture problem
·How to change smtp port on wampserver and windows
·yet another 301 redirect problem
·Image display? - newbie
·php nuke help

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: Vanquistador
Today: 1
Yesterday: 1
Overall: 15103

Visitation:
Guests: 623
Members: 0
Total: 623


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Need to find your IP fast?
Need to find your IP fast?

Headlines that blow out your tables - hack
I am not sure if anyone else noticed that the headlines for phpNuke was showing a site URL in one of the topics that was so long it blew the table out of the block because it would not wrap correctly. This can make a great looking site look like it was milled by a newbie which is why I had removed the phpNuke.org headlines for a few days.

So I took some time last night to go through the mainfile.php and see what makes the headlines tic. As you can now see, all the headlines here on NukeResouces.com headline blocks now format nicely into the headling block without blowing out the table.

The solution was simple enough but for some reason, which I have not taken time to figure out, there is a timing thing going on which may take a while before the formating takes effect.

If you would like to have your headlines nice and tidy here we go:

File:
mainfile.php

Find:
function headlines($bid)

Find:
for ($i=0;$i","",$items[$i]);
$link = ereg_replace(".*","",$link);
$title2 = ereg_replace(".*","",$items[$i]);
$title2 = ereg_replace(".*","",$title2);

Just below add:
$title2 = str_replace("http://www.","",$title2);
$title2 = str_replace("http://","",$title2);
$title2 = substr($title2, 0, 18) . "...";

Adding all 3 lines are not required but I wanted anything that had http:// or http://www. out of the way. You can also change 18 to the length in which you want to keep your headlines to fit into your blocks. I have the width for the blocks set to 150 pixels so 18 works out well with a 3 pixel cellpadding. You will have to play with it abit if the headlines wrap.

Let me know if you have use for this and I will add it to the downloads.
Nuke Resources
Posted on Sunday, September 30, 2001 @ 4:47 AM CDT by NukeResources

Multi-Site Search
Google
Web NukeResources.com
NukeFixes.com NukeSecurity.com
 

Sponsor Links
 

 
Related Links
· NukeResources.com
· More about Nuke Resources
· News by NukeResources


Most read story about Nuke Resources:
ShoutBox Released!!

Article Rating
Average Score: 0
Votes: 0

Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad

Options

 Printer Friendly Page Printer Friendly Page


Re: Headlines that blow out your tables - hack (Score: 1)
by Guv on Monday, October 08, 2001 @ 4:07 AM CDT
(User Info | Send a Message)
Any chance you know how to do this in Post-Nuke...?

Don't know if PN suffers from this problem but I know that what you have done LOOKS much better!

Good work,

Guv.


Need to find your IP fast?


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.20 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::