|
|
 |
|
 |
 |
 |
Main Menu |
 |
|
 |
Quick Links |
 |
|
 |
Other Options |
 |
|
 |
Information |
 |
|
 |
NukeForums |
 |
|
 |
Top10 Links |
 |
|
 |
Site Visitors |
 |
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 |
 |
|
|
 |
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.
|
|
|
|
|
Posted on Sunday, September 30, 2001 @ 4:47 AM CDT by NukeResources |
|
|
|
 |
Multi-Site Search
|
 |
 |
Sponsor Links
|
 |
|
| |
 |
Related Links |
 |
|
 |
Article Rating |
 |
|
 |
Options |
 |
|
|
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. |
|
|
|
|
|
:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::
| | |