51

(1 replies, posted in PunBB 1.2 discussion)

Is it possible to not allow moderators to change users e-mail?

Connorhd wrote:

out of interest... why?

Becouse that many users often e-mail me having problems with various of things, and instead of explaining "do this, do that" to request new password i could just send them a new one directly.

/C

...without having to log out and request a new password with the users e-mail.

My suggestion is that there should be a link in the users profile for admins (and moderators?) that with a confirmation (javascript, yes or no?) that makes it possible to send the user a new password...

Gmail have 2gb

It seems like the script loops through and sends all mail at once. I have over 7000 users and I think this will cause a huge overload on the server? Is this a problem and how could it be fixed?

I guess it could work using sleep(); for a couple of seconds every 100 mails?

56

(21 replies, posted in Programming)

Then a table it is. Thanks for all your help!

57

(21 replies, posted in Programming)

nah, I dont like that solution smile My bakground image is 250 bytes large. If I do like you suggested it will by much larger, but anyway, I think i'll use a table to stretch the divs out to the height I want them and I just have to accept that the layout is not 100% div based. But anyway, who cares, it still can be xhtml 1.0 strict smile

58

(21 replies, posted in Programming)

yes, that has been my solotion to it before but since its "not recomended" to use table for layout and design I thought to give it a try with divs only

59

(21 replies, posted in Programming)

It's hard for me to implement you suggestion Paul, I've tried and started over 5 times now, but i'll try some more tomorrow. The design on the page is not that basic as you suggest... if you look at www.garaget.org (the html is the old one wich im rewriting now). The design though should be identical.

But i'll try to modify your suggestion again tomorrow and maybe i'll make it work like I want it..

60

(21 replies, posted in Programming)

916px total, including the shadows (wich actually is an background image 916x10px instead of the black background I mentioned before)

The page is in three parts. a top, a middle and a bottom. The problem part (the code I pasted before) is only the middle part.

61

(21 replies, posted in Programming)

Its hard for me to explain, so I edited the actual page in PS:

This is how it is now and how I DONT want it:
http://www.garaget.org/temp/gorg-wrong.jpg

This is how I want it to be:
http://www.garaget.org/temp/gorg-correct.jpg

62

(21 replies, posted in Programming)

Ive tried to solve the spacing things with MARGIN and/or PADDING but it get so messed up with other div sizes, and when it works in IE, it does not work in FF, and when it works in FF it does not work in IE and so on sad

63

(21 replies, posted in Programming)

The idea is the same, but mine is a bit more complicated. Here is the actual code (a bit modified so it works). Notice that the wrap have a black background set but the background never becomes black all the way down.

<style>
DIV.wrapmiddle { BACKGROUND-COLOR: #000000}
</style>

<div class="wrapmiddle">
    <div style="WIDTH: 25px; FLOAT: left"> </div> <!-- Empty space border //-->
    <div class="middlemargin" style="FLOAT: left; WIDTH: 160px;">
        
        Margin<br />
        asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf 
        
    </div>
    <div style="WIDTH: 7px; FLOAT: left;"> </div> <!-- Empty space border //-->
    
    <div style="WIDTH: 699px; FLOAT: left; BACKGROUND-COLOR: green;">
        
        <div style="BACKGROUND-IMAGE: url('/images/layout/conwin-brd_top.gif'); HEIGHT: 7px; BACKGROUND-COLOR: #FFFFFF; BACKGROUND-POSITION: top left; BACKGROUND-REPEAT: no-repeat; FONT-SIZE: 0px"></div>
        <div>
            <div style="FLOAT: left; WIDTH: 6px;"> </div> <!-- Empty space border //-->
            <div style="FLOAT: left">
            
            Content
            asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf 
            
            </div>
            <div style="FLOAT: left; WIDTH: 6px"> </div> <!-- Empty space border //-->
        </div>
        <div style="BACKGROUND-IMAGE: url('/images/layout/conwin-brd_bottom.gif'); HEIGHT: 7px; BACKGROUND-POSITION: bottom left; BACKGROUND-REPEAT: no-repeat; FONT-SIZE: 0px; CLEAR: both;"></div>
        </div>
    </div>
    <div style="WIDTH: 25px; FLOAT: left"> </div>
    <div style="CLEAR: both"></div>
</div>

Example of how this looks:
http://www.garaget.org/temp/asdf.html (Without any images)

64

(21 replies, posted in Programming)

Well, what do you suggest instead?

65

(21 replies, posted in Programming)

A wrap, a margin div and a content div:

<div class="wrap">
     <div class="margin" style="WIDTH: 150px; FLOAT: left"> 
     ... some content that stretches this div on the height for about 1500px or something large...
     </div>

     <div class="content" style="WIDTH: 400px; FLOAT: left; BACKGROUND-COLOR: red">
     ...content that streches this div on the height for only 500px (less than the margin div)...
     </div>
</div>

Now, the issue is I want the div with the red background color (the content div) to allways have the same height (or more, but NOT less) as the margin div.

The code above in "action": http://www.garaget.org/temp/asdf.html

Thanks.

/C

Edit: the classes are empty and are shown only for examplification

66

(21 replies, posted in PunBB 1.2 discussion)

http://punbbig.shacknet.nu/ has been down for some while now, anyone know whats happening and if it will come back?

Personligen tycker jag det är en dålig idé att ändra så tråden markeras läst med det samma.
Att låta trådarna få en egen timeout är isåfall en bättre idé, men att de markeras lästa direkt är ingen höjdare eftersom man lätt kan "tappa" trådar på så vis.

Maybe i'll release a mod with this when I have time making it. It's not that complicated to do actually but I still need some time to get it right. I'll look at it later today.

För att det styrs via tiden du var inloggad sist, du kan nollställa och markera alla nya inlägg lästa genom en länk längst upp till höger när du ser på forumen.

http://punbb.org/forums/viewtopic.php?id=6372

profile.php, row: 1168

<p><?php echo $lang_common['Registered'] ?>: <?php echo format_time($user['registered'], true); if ($pun_user['g_id'] < PUN_GUEST) echo ' (<a href="moderate.php?get_host='.pun_htmlspecialchars($user['registration_ip']).'">'.pun_htmlspecialchars($user['registration_ip']).'</a>)'; ?></p>

Change to:

<p><?php echo $lang_common['Registered'] ?>: <?php echo format_time($user['registered'], false); if ($pun_user['g_id'] < PUN_GUEST) echo ' (<a href="moderate.php?get_host='.pun_htmlspecialchars($user['registration_ip']).'">'.pun_htmlspecialchars($user['registration_ip']).'</a>)'; ?></p>

It shows admins and moderators the time when a user registered instead of only "today" or "yesterday". I'm probably one of the few that actually have use for this I guess, but anyway, It's nice smile

Well, but I actually have the old 1.1.1 database saved, so I could get all users id that should be deleted (status=-1) and then create a simple script that deletes all of them. So there is no problem really if this is the deal (if status=-1 means unconfirmed) ...

Edit: 435 unconfirmed users (the 1.1.1 database ;)

Edit again: The thing is, all of the users having status=-1 DO have a last_visit timestamp... but it seems like last_visit == registered also ...

There is one user that is "0" (default is 0) ... I really doubt all 5995 users have confirmed their account wink

mysql, 4.0.23, linux debian 3.1 (sarge)

Rickard wrote:

I'm not 100% sure, but I think their status is set to -1. Which means the following query would delete all such users:

DELETE FROM users WHERE status=-1

I would doublecheck the -1 though.

There is no such column

The thing is that i've updated to 1.2 from 1.1.1. Maybe the status-column was removed then?