PDA

View Full Version : Whos Online w/ Latest Posts Hack v1.0


g-force2k2
07-02-2002, 10:00 PM
As requested [ Here ] (https://vborg.vbsupport.ru/showthread.php?s=&threadid=40576) By Neil...

What does this hack do? First off it requires One new template... One php file modification... and Two template modifications... its dipslays a panel along side the whos online that lists the latest current ten posts with the user who posted and the thread...

It also has linkage for including the last twenty posts... sorry i don't have any screenshots and i currently don't have a server so i can't show give you anything to look at... but it was tested by me and my friend... so Enjoy...

Instructions in the file for and yes its a php file but thats just how i write my hacks ;) Enjoy... Feedback Suggestions... Questions... if you could click the install i'd be happy to :p

Oh and if someone installs it could provide ss i would also be happy thanks again... and thanks to the members who give me the ideas ;)

Edit: attached a few posts below is the vbhacker compabatible file :p so Enjoy...

g-force2k2

Link14716
07-03-2002, 02:37 AM
Looks cool, I will test it now and post screenies...

Link14716
07-03-2002, 02:41 AM
The vBHacker file doesn't seem to work.....

g-force2k2
07-03-2002, 02:44 AM
Yeah its not vbhacker conpatable ;p maybe i'll go do that fast and attach a file sorry about that -_- just open the php file in notepad instructions included...

g-force2k2

Link14716
07-03-2002, 02:48 AM
OkeyDokey.

I will make a vBHacker file for it then.....

g-force2k2
07-03-2002, 02:50 AM
Here's the vbhacker file ;) but thansk though Link :)

g-force2k2

Link14716
07-03-2002, 03:03 AM
well, I just made one, but it didn't work... at all...... maybe it didn't edit the file or something..... let me try again......

g-force2k2
07-03-2002, 03:18 AM
Don't forget that to modify the file you need to cmod you files to 777 and then rechange them back to 644 or whichever they may be :p i know that the manual code works not sure about the vbhacker though...

g-force2k2

Link14716
07-03-2002, 03:19 AM
Well, I want the Last Posts to show up under the Who's Online table. I hate HTML tables, so, can anyone help me?

g-force2k2
07-03-2002, 03:23 AM
I just thought that the coding would look messier if it was under :p i liked it alot more along the side but if you want me to code it otherwise for you then i will ;) but larger forums with alot of members on will probably appreciate it as is... though it is a matter of opinion and preference too... so if you want it that way i'll make it for you ;)

g-force2k2

Link14716
07-03-2002, 03:28 AM
Well, it kinda maes the WOL table look bad squished over to the side, so, yea, that would be apreciated.

/me clicks the install button.

Velocd
07-03-2002, 03:41 AM
When it's good to go, please post some shots of this :D
Looks interesting

Link14716
07-03-2002, 03:50 AM
Ok, here is a screen of it on my board....

(sorry for the quality. paint screws up the quality of gif images.....)

http://www.vggmn.com/images/woll10p_screen.GIF

Vivi Ornitier
07-03-2002, 03:50 AM
text install file?

Link14716
07-03-2002, 03:53 AM
The first file is a txt file. Open it up in notepad.

Neil
07-03-2002, 03:57 AM
Great!! Thanks for the VERRRRY fast response on this! I'll try it out on my site now :D:)

Neil
07-03-2002, 04:16 AM
Wonderful!! This is almost exactly what I wanted :) I made a couple of minor adjustments to it to suit my site. I moved the last posts table under the WOL list, as another poster suggested, and I reduced the new posts to last 5. There isn't a HUGE amount of traffic on the site, and the idea of this hack is for those people who just sit on the site in the WOL waiting for new posts.

Screenie attached.

Thanks HEAPS again!!


[edit - some suggestions for improvement]
I had a couple of ideas. Is it possible to put the standard "new post" icon to the left of the thread link if it's a thread the user hasn't visited yet? Also it would be very hand to put the arrow that jump's to the last post as well. Saves the scrolling on the threads you've already read!

Essentially, is it possible to have this list look more like the search results list? (with thread starter, forum etc)

Thankyou!!

g-force2k2
07-03-2002, 04:33 AM
Thanks Neil just happy to help i'll take a look into it when i get some more time :D Also here's the attachment for the last posters to be under the whos online table and not on the side :D thanks for the ss Neil ;) Also if you want to delete the '<br>' in the online.php you can since you broke the tables up it allows for more expansion... i only did a break because of the amount of space i had to work with... here's the attachment for those that want it under the whos online bit :)

g-force2k2

Ian
07-03-2002, 04:09 PM
How do you reduce the number to 5 instead of showing the last 10 posts?

Link14716
07-03-2002, 04:15 PM
Find this in online.php:
$aposts="10";
$posting="10";
Replace it with this:
$aposts="5";
$posting="5";

Untested, but it should work.

Link14716
07-03-2002, 04:15 PM
Thanks, gforce, I just redid the templates to put it under the Who's Online table and it works. Good job ;)

g-force2k2
07-03-2002, 04:16 PM
Open online.php

Just take this coding:

$aposts="10";
$posting="10";
$posterlink="<tr><td bgcolor=\"{tableheadbgcolor}\" align=\"center\"><smallfont color=\"{tableheadtextcolor}\"><b><a href=\"$PHP_SELF?action=show_more\">[ View More Posts ]</b></smallfont></td></tr>";
if($action=="show_more") {
$aposts="20";
$posting="20";
$posterlink="";
}

And Change it to this:

$aposts="5";
$posting="5";
$posterlink="<tr><td bgcolor=\"{tableheadbgcolor}\" align=\"center\"><smallfont color=\"{tableheadtextcolor}\"><b><a href=\"$PHP_SELF?action=show_more\">[ View More Posts ]</b></smallfont></td></tr>";
if($action=="show_more") {
$aposts="20";
$posting="20";
$posterlink="";
}

Then you should get what you want :D I was thinking of basing it on a query but i don't know if ppl want to run queries necessarily :P anyways hope that helps :D

g-force2k2

Silenced Soul
01-01-2003, 02:36 AM
love this hack, g, love all of your hacks man. great work on this.

Silenced Soul
01-05-2003, 04:25 AM
don't know if anyone needs or cares for this, but, I was running into some problems with post security... meaning, people could tell when someone posted in a private forum, so, I added this:

Find:

SELECT title,threadid,lastpost,lastposter FROM thread


After that Add

WHERE forumid!=#


Where the # is the forumid of your private forums. Hope this helps someone.