php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#43366 - 06/28/01 07:12 PM Today's Active Topics Beautification Hack
treszoks Offline
Member

Registered: 04/29/01
Posts: 58
Something that always bothered me was when you go to "Today's Active Topics", one of the columns was the date which was of course...TODAY! LOL. It didn't make much sense so I've made some modifications to take out that column and I've changed it to "Last Response By". I've also taken out the "Forum" column and instead made it a row with the respective topics underneath it. It now looks a TON better.
http://www.baylorfans.com/cgi-bin/search.cgi?action=getdaily

Here are the instructions (my version is 5.46 but it will probably work with most of the 5.4* series). Make a backup before doing this of course!

Modified files: search.cgi only

Find:
Code:
code:


Paste ABOVE:
Code:
code:


Find and REMOVE:
Code:
code:


Find:
Code:
code:


Paste ABOVE:
Code:
code:


Find:
Code:
code:


REPLACE with:
Code:
code:

Top
#43367 - 06/28/01 08:48 PM Re: Today's Active Topics Beautification Hack
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Hmm...I might try it but I don't really care about Todays active topics but, what the heck...I'll try it later. wink

Top
#43368 - 07/02/01 05:09 PM Re: Today's Active Topics Beautification Hack
Thermit Offline
Member

Registered: 10/09/00
Posts: 69
Thanks! laugh laugh laugh laugh laugh

frown frown But you left off where you change the column names, and my last poster is only right about 25% percent of the time.

<FONT COLOR="#000000" SIZE="1">[ July 02, 2001 05:27 PM: Message edited by: Thermit ]</font>

Top
#43369 - 07/03/01 12:58 AM Re: Today's Active Topics Beautification Hack
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
What do you mean by 25% right sometimes?

Top
#43370 - 07/03/01 01:45 PM Re: Today's Active Topics Beautification Hack
Thermit Offline
Member

Registered: 10/09/00
Posts: 69
I can't see any pattern to it, but it is mostly wrong.

Top
#43371 - 07/03/01 02:04 PM Re: Today's Active Topics Beautification Hack
treszoks Offline
Member

Registered: 04/29/01
Posts: 58
I just did a quick check on my board and they all seem to be correct. Maybe it's another hack you have installed?

Top
#43372 - 07/03/01 02:38 PM Re: Today's Active Topics Beautification Hack
Thermit Offline
Member

Registered: 10/09/00
Posts: 69
treszoks, I just did a quick check of your board too and they are mostly all wrong too.

For example, in "Was Jesus a Sinner?", it says last posted by Bear1969, but it was really last posted by Phil320. Although Bear1969 does post in that thread.

This is exactly what I'm seeing too.

Driving me crazy cause I can't see the pattern...

Top
#43373 - 07/03/01 03:14 PM Re: Today's Active Topics Beautification Hack
Thermit Offline
Member

Registered: 10/09/00
Posts: 69
Well, looked at it some more and realized that the bug is due to the fact that the last poster needs to be derived from the order of the entries in the daily log, but that is messed-up when the sort function is called to group the array entries by forum.

The following change corrects the last person bug, but doesn't necessarily group all the posts from the same forum together.


Code:
code:


<FONT COLOR="#000000" SIZE="1">[ July 03, 2001 03:16 PM: Message edited by: Thermit ]</font>

Top
#43374 - 07/03/01 07:52 PM Re: Today's Active Topics Beautification Hack
treszoks Offline
Member

Registered: 04/29/01
Posts: 58
Well at least it's not a problem with my mod;) I'll have to take a look at it later and see if I can figure out a fix. Maybe you'll come up with something.

Top
#43375 - 07/03/01 09:58 PM Re: Today's Active Topics Beautification Hack
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Yeah, I checked too and It seems to be stuffed, Try looking around the code a bit in forumdisplay.cgi since thats where the last poster is installed.

Top
#43376 - 07/05/01 07:23 PM Re: Today's Active Topics Beautification Hack
Thermit Offline
Member

Registered: 10/09/00
Posts: 69
Well, I decided to take the easy road and just let the posts be in time-order instead of forum-grouped. (Which I did basically with the small hack shown above and some table formatting).

treszoks, I appreciate you jump starting me on this hack. Here's my version:


Active Topics

Top
#43377 - 07/05/01 09:57 PM Re: Today's Active Topics Beautification Hack
treszoks Offline
Member

Registered: 04/29/01
Posts: 58
Try this fix out and let me know how it goes.

Find this:
@daily = sort(@daily2);

And change to this:
@daily = reverse(@daily2);

Now find this:
$MatchTotal = @good;

And add right above it this:
@good = sort(@good);

Top
#43378 - 07/23/01 09:31 PM Re: Today's Active Topics Beautification Hack
kshock Offline
Junior Member

Registered: 03/06/01
Posts: 13
Loc: NYC
How can I add a column for total number of replies to a post and total views in the Active Topics list like Thermit has done? I do have the Views hack intalled already.

Top
#43379 - 07/24/01 10:20 AM Re: Today's Active Topics Beautification Hack
treszoks Offline
Member

Registered: 04/29/01
Posts: 58
kshock,

Those items aren't part of the normal index used for today's active topics so you'll have to ask Thermit for documentation. It will add more load to your server however because you'll have to open the file with the views in it plus another file to find out the number of replies.

Top
#43380 - 07/24/01 06:00 PM Re: Today's Active Topics Beautification Hack
kshock Offline
Junior Member

Registered: 03/06/01
Posts: 13
Loc: NYC
Thanks for the info on that. As my server is already taxed with traffic, it might be better to leave off the views and reply counts.

Top
#43381 - 07/25/01 01:38 PM Re: Today's Active Topics Beautification Hack
kshock Offline
Junior Member

Registered: 03/06/01
Posts: 13
Loc: NYC
This is a nice hack as I've never liked the Active Topics screen. I like this layout a lot better. Just one thing I'd like to change...

Right now the topics are listed within each message board from oldest to newest. I'd like to reverse the order so that the newest topic is at the top of the list instead of the bottom. What would I change in the code to accomplish this?

Also, another cool thing I'd really like to see is a simple total of the number of new posts for that day as well. Maybe at the top, just a simple line that reads... Total Posts Today: 168. Can this be done fairly easily??

Thanks!

<FONT COLOR="#000000" SIZE="1">[ July 25, 2001 03:23 PM: Message edited by: kshock ]</font>

Top
#43382 - 07/25/01 05:12 PM Re: Today's Active Topics Beautification Hack
treszoks Offline
Member

Registered: 04/29/01
Posts: 58
kshock,

Find this:
@daily = reverse(@daily2);

Add below it:
$total_posts = $#daily;

Now just put $total_posts further below where you'd like it to be displayed. For example, find $MatchTotal and place it near that.

Top
#43383 - 07/25/01 11:34 PM Re: Today's Active Topics Beautification Hack
kshock Offline
Junior Member

Registered: 03/06/01
Posts: 13
Loc: NYC
I got the display to work, but, it always says 0 messages wherever I use $total_posts, but, there are messages there.

Top
#43384 - 07/25/01 11:50 PM Re: Today's Active Topics Beautification Hack
treszoks Offline
Member

Registered: 04/29/01
Posts: 58
Where exactly are you placing it? Make sure you're doing it within the other plain HTML stuff.

Top
#43385 - 07/26/01 12:20 AM Re: Today's Active Topics Beautification Hack
kshock Offline
Junior Member

Registered: 03/06/01
Posts: 13
Loc: NYC
That's where I put it, right near the $MatchTotal variable within the HTML as you suggested.

Top
Page 1 of 2 1 2 >


Who's Online
1 registered (Deb), 28 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by Ruben Rocha
Today at 02:58 PM
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks