You mean the 'sticky' option?
52 2006-03-28 17:40
Re: I wanna create a "Login Logging" page... (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Don't ask why. Doesn't matter. I know it's possible, I just want to do it right.
Basically what I'm looking to do is add code to whatever controls user logging in and adds their name and time of login to a new table.
Then create a page (That only certain people would have access to.) that displays all this info.
I guess the real part I need help with is where the code should go for adding a row to the table I'll be using.
I'll have to create a new table in PHPMyAdmin. I guess I'd call it "loginlog" or something. It would have three columns. Username, IP and Time. Pretty obvious.
The whole reason I am doing this is because I need to know when and if certain users are visiting. You may say it would get too big too fast wouldn't it? Not really. My forum is really really small. If we have to, we can modify it to delete older entries after a week or month or whatever.
So I guess the first question is, what file should the Table modification code go in? And what code should be used? (I'm new to MySQL and the controlling of it with PHP. I'm able to easily read tables. But I've never made code that adds to tables and I don't want to screw anything up.) What file is used when a user first accesses a punBB forum and is registered to the database as "Logged in and online"?
The last visit data is already stored.
Logged in as Elzar
Last visit: Yesterday 16:33:23
Instead of an extra page why not just modify the userlist or a users profile?
53 2006-03-28 17:34
Re: 1.1.5 to 1.2.11 (4 replies, posted in PunBB 1.2 troubleshooting)
You'll have to install 1.2.11 and then redo all your tweaks.
54 2006-03-28 17:32
Re: Haveamint.com gets an awesome make over (5 replies, posted in PunBB 1.2 show off)
I like the zero-borders approach. Viewtopic is a bit messy with signatures and dates all over the place though.
55 2006-03-27 14:43
Topic: Noteworthy PunBB Usage #3 (1 replies, posted in PunBB 1.2 show off)
56 2006-03-25 14:18
Re: breaking out of the table's limitations? (2 replies, posted in PunBB 1.2 troubleshooting)
Somehow I want to add a unique div which will surround each instance of a forum and style it uniquely per instance.
So just add something like
<div class="forum<?php echo forum id ?>">
in index.php
57 2006-03-22 18:24
Re: Links (3 replies, posted in PunBB 1.2 troubleshooting)
There is a mod on Punres.org that uses javascript to open new windows.
58 2006-03-22 12:05
Re: 406 Error When Editing Profile (4 replies, posted in PunBB 1.2 troubleshooting)
Talk to your host
59 2006-03-17 23:36
Re: c4forums.com (2 replies, posted in PunBB 1.2 show off)
Thanks for the great forum software, Rickard, and thank you to all mod developers for their great work!
So why does it say 'Powered by CYTEXONE' and not PunBB..?
60 2006-03-17 12:38
Re: How do I make moderators to (5 replies, posted in PunBB 1.2 modifications, plugins and integrations)
profile.php
Replace
else if (isset($_POST['update_group_membership']))
{
if ($pun_user['g_id'] > PUN_ADMIN)
message($lang_common['No permission']);
With
else if (isset($_POST['update_group_membership']))
{
if ($pun_user['g_id'] > PUN_MOD)
message($lang_common['No permission']);
61 2006-03-17 12:36
Re: Pasting from Word (5 replies, posted in PunBB 1.2 troubleshooting)
An example would help. Did this happen just once or all the time?
62 2006-03-17 12:23
Re: Searching posts... no parse. (7 replies, posted in PunBB 1.2 troubleshooting)
So whats the difference between a search page and a normal viewtopic page?
I think I am missing something here.
You don't see the entire content of the post.
63 2006-03-16 23:07
Re: Upload your own visual style. (7 replies, posted in Feature requests)
Any other opinions? As far as i know no other board has the feature, but i dont see why really.
I believe you can link to your own stylesheets in Lussumo Vaniila.
64 2006-03-16 23:06
Re: List topics from differents forum into one forum (3 replies, posted in Feature requests)
We heard you the first time.
Ask the author of the sub-forum mod.
65 2006-03-14 14:19
Re: Login with IE (8 replies, posted in PunBB 1.2 troubleshooting)
Clear your cookies
66 2006-03-14 13:37
Re: please help (5 replies, posted in PunBB 1.2 troubleshooting)
What's the problem? Is that not a modification?
67 2006-03-12 12:28
Re: migration from pwsphp (french CMS) (5 replies, posted in PunBB 1.2 modifications, plugins and integrations)
http://punbb.org/forums/misc.php?email=2
You might want to contact Chacmool to see if it can be part of the PunBB migration tool.
68 2006-03-12 12:23
Re: Hide user list (5 replies, posted in Feature requests)
It'd be a nice feature to hide the userlist from anyone not a guest or anyone with less than 25posts.
How about 26 posts?
You can hide the userlist by making a small change in functions.php, and you can 'unlink' profiles in viewtopic with another small edit.
69 2006-03-10 14:40
Re: Adding an image to header (12 replies, posted in PunBB 1.2 troubleshooting)
<div id="teamname">
<p> </p>
</div>
#teamname {
background: url(meh.png) center center no-repeat;
height: Xpx;
margin: Xpx;
}
70 2006-03-09 18:31
Re: Time Zone not correct (4 replies, posted in PunBB 1.2 troubleshooting)
Just tell your members not to alter the timezone then.
71 2006-03-09 16:11
Re: Adding an image to header (12 replies, posted in PunBB 1.2 troubleshooting)
Just create a new div #teamname in main.tpl and then define the height, width, margin and background image in each stylesheet.
72 2006-03-09 11:00
Re: upgrading from 1.2.5 to 1.2.11 (9 replies, posted in PunBB 1.2 troubleshooting)
73 2006-03-09 10:59
Re: How to test a style off-server? (2 replies, posted in PunBB 1.2 discussion)
74 2006-03-08 22:50
Re: Placing a small gallery at the top of a forum? (8 replies, posted in PunBB 1.2 discussion)
Can you not do it via the annoucement box?
75 2006-03-08 22:48
Re: Make a title specific to the style? (7 replies, posted in PunBB 1.2 troubleshooting)
wonder what the avg size of a post is in kbs?
Puns CSS pages are very small, shouldn't have to worry about bandwidth.