php forum
php mysql forum
php mysql smarty
 
Topic Options
#42635 - 09/08/00 04:06 AM Mod to Active Topics Hack
sc Offline
Junior Member

Registered: 09/02/00
Posts: 21
<FONT COLOR="green">.1</FONT c>
<FONT COLOR="#6699cc">----------</FONT c><FONT COLOR="yellow">What?</FONT c><FONT COLOR="#6699cc">------------------------------</FONT c>
a few tiny cosmetic changes to Dave's crispy Active Topics hack. wonderful hack, dave!

just as my previous mod to another dave hack , this mod places a part of Active Topics in a more prominent spot (forumdisplay.cgi).

the reason i wanted to do this is because i thought it'd be really useful for returning visitors to have the option of clicking on "new posts" which leads them to the most recent Active Topics, as opposed to having to search through and find which are new and which aren't. actually, that's what dave's hack does. on my bb, the users go straight to the main forum (there is only 1 forum) and so the option to go to the new topics is quickly accessible. of course, this is another overly simply mod and does nothing other than place it in another spot that i think can be of more use.

however, i do also make a few edits in the way active.cgi displays the results. that is, i make the topic subject linkable to the thread as well as making the '..more..' linkable to the thread. in addition, i took out the "Click here for more" link. oh, and a spelling error was fixed.

<FONT COLOR="#6699CC">------------------------------------------------</FONT c>

<FONT COLOR="#6699cc">-</FONT c><FONT COLOR="red">(1)</FONT c><FONT COLOR="#6699cc">------</FONT c><FONT COLOR="yellow">Backup!</FONT c><FONT COLOR="#6699cc">--------------------------------</FONT c>

we'll be working with active.cgi and forumdisplay.cgi. back 'em up, jic!

<FONT COLOR="#6699CC">------------------------------------------------</FONT c>

<FONT COLOR="#6699cc">-</FONT c><FONT COLOR="red">(2)</FONT c><FONT COLOR="#6699cc">------</FONT c><FONT COLOR="yellow">Start!</FONT c><FONT COLOR="#6699cc">--------------------------------</FONT c>

open up active.cgi.

find:

<FONT COLOR="yellow">$forum_names[$forum_num]: $threadheader[8]</a></B></FONT> </td></tr></FONT c>

replace it with:

<FONT COLOR="yellow"><a href="$NonCGIURL/Forum$threaddata[4]/HTML/$threaddata[2].html">$forum_names[$forum_num]: $threadheader[8]</a></B></FONT> </td></tr></FONT c>

find:

<FONT COLOR="yellow"><FONT SIZE="$TextSize" FACE="$FontFace">$abstract $MoreText

</FONT c>

replace it with

<FONT COLOR="yellow"><FONT SIZE="$TextSize" FACE="$FontFace">$abstract

<a href="$NonCGIURL/Forum$threaddata[4]/HTML/$threaddata[2].html">$MoreText</a>

</FONT c>

<FONT COLOR="red">optional:</FONT c> <FONT COLOR="gray">right after that, there is:

<a href="$NonCGIURL/Forum$threaddata[4]/HTML/$threaddata[2].html">Click Here for more...</a></font></td></tr></table>

I deleted the <a href...>Click here for more...</a> to make:

</font></td></tr></table>

i did this out of the assumption that people would intuitively click on the '..more..' or the topic name to go to the posts before the 'click for more'. leave it in if you think it's fine. </FONT c>

finally, for a quick and barely noticeable (unless youre html-design obsessed like me) look for:

<FONT COLOR="yellow">Back to $backto
</A> </td><td align=right><font size="1" FACE="$FontFace"><B>Jump To:</B> $Legend</font></FONT c>

right after that, add:

<FONT COLOR="yellow">
</FONT c>

which will bring the legend/'back to' bit a little closer to the table. tighter design

and to top the list of anality, search for

<FONT COLOR="yellow">forum dusplay</FONT c>

and replace with

<FONT COLOR="yellow">forum display</FONT c>

sorry dave. had to be done. hopefully it's just my version?

save the file, close, upload.

<FONT COLOR="#6699CC">------------------------------------------------</FONT c>

<FONT COLOR="#6699cc">-</FONT c><FONT COLOR="red">(3)</FONT c><FONT COLOR="#6699cc">------</FONT c><FONT COLOR="yellow">Just a bit more!</FONT c><FONT COLOR="#6699cc">---------------------------</FONT c>

open up forumdisplay.cgi

look for what should be the third instance of:

<FONT COLOR="yellow">$BorderTop</FONT c>

right after it, there should be:

<FONT COLOR="yellow"><table border=0 cellpadding=4 border=0 cellspacing=0 width=$TableWidth2></FONT c>

right before the <table...> add this:

<FONT COLOR="yellow"><center><font size=1 face=verdana><a href=$CGIURL/active.cgi>new topics</a></center></FONT c>

that's it!

save the file, close, upload.

<FONT COLOR="#6699CC">------------------------------------------------</FONT c>

<FONT COLOR="#6699cc">-</FONT c><FONT COLOR="red">(4)</FONT c><FONT COLOR="#6699cc">------</FONT c><FONT COLOR="yellow">Notes</FONT c><FONT COLOR="#6699cc">--------------------------------</FONT c>

now, Dave's great hack will take care of the rest by making it easy for returning visitors to get the latest topics without having to search through the others to find out what's new.

thanks to dave / ubbdev.com / allenayres

<FONT COLOR="#6699CC">------------------------------------------------</FONT c>

------------------

Top
#42636 - 09/09/00 11:09 PM Re: Mod to Active Topics Hack
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
nice work sc.. that "more..." link did need to be clickable, I have found myself several times running my mouse over it...

------------------
Allen

- http://www.stand318.com
_________________________
- Allen wavey
- What Drives You?

Top


Who's Online
0 registered (), 24 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 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
Truth, David DelMonte, nick1, Begbie, cenk
13364 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