In post.php, search for

$title =

Then change to whatever you like

Yes, well, the reason I didn't make it a link because if your style is set to underline links, you'd have small lines under your smilies wink
Naturally, this works too, and I could eliminate the underlining with CSS, but if you have a bunch of smilies that would really increase page size =/

2,153

(6 replies, posted in PunBB 1.2 discussion)

It's the box wink If you change that in CSS every box on the form will be gone... so it's best to just edit out the box div in main.tpl smile

2,154

(10 replies, posted in PunBB 1.2 troubleshooting)

header.php, search for pun_title and add <center></center> to it.

Make sure the guest's style is set.

2,156

(19 replies, posted in PunBB 1.2 discussion)

sha1

I use FileZilla, both as client and server. And SmartFTP too.

Still working on that newsletter tongue

2,159

(1,382 replies, posted in General discussion)

grass

What script is it?

2,161

(19 replies, posted in PunBB 1.2 discussion)

Errm, you can download the code to break an md5 encryption in less than an hour. Didn't try it yet, but I certainly will.

2,162

(19 replies, posted in PunBB 1.2 discussion)

http://www.stachliu.com/collisions.html

Kinda proves it's hackable =/

And how would something qualify as 'Similar'? The topic name is 50% or up the same?

2,164

(1 replies, posted in PunBB 1.2 troubleshooting)

Look in your config.php and check if $db_type is set.

2,165

(50 replies, posted in Feature requests)

It exists...

You forgot a } somewhere wink

if($pun_user['group_id 1'])

Change that to

if($pun_user['g_id'] == 1)

<a href="http://www.google.com"><img src="link"></a>

Make that

echo '<a href="http://www.google.com"><img src="link"></a>'

and you're getting the hang of it smile

2,169

(0 replies, posted in Programming)

Hey guys,

I'm currently making an analogue clock in PHP with the GD library by using the standard gonimetric formulas to calculate the coordinates for my hour indicator lines smile

Now, it seems to me
a) My formula is messed up
or
b) PHP doesn't know how on earth to do this

I'll show you my formula then:
$m_x = ZX + (cos($m_angle) * $r_minute);

This line is to calculate the x value of the coordinate where my minute indicator line ends in.
ZX is the definition of the x value of the center's coordinate (400).
$m_angle is calculated with $min * 6 and $r_minute is the length of my minute indicator.
Seems fine to me =/ Now, you can see what PHP does:
Image
Now don't come around telling me this is correct... =P
I've added a little info on what line represents what angle too.

If anyone could help me sort this out... it would be appreciated =P

-- Bekko

Here's my current code, with all the information display and useless lines in it =P
Pastebin post


EDIT: I solved it smile The problem was because I didn't do a conversion to radians.
http://icstrategy.midgetforhire.com/tes … /Clock.php <== whee

2,170

(4 replies, posted in PunBB 1.2 discussion)

Soo.... you want to have a specific forum where you post blog posts, the first post of that thread is your blog post and the rest are comments. Sounds easy enough =P I bet someone did this (isn't there a news mod or something?)

2,171

(7 replies, posted in PunBB 1.2 bug reports)

Still the same thing wink Your router works as a proxy, so every user that comes through has that IP wink

Why not use .htaccess to protect single files?

in your CSS, search for #announce
If it isn't there, create this:

div#announce {
background-color: #FF0000;
}

Change the colour to whatever you want smile

Well, first of all you use the Miniportal mod.
Then, in one of the boxes, put this:
<pun_cats>

In header.php, you put this somewhere:

$result = $db->query("SELECT id, cat_name FROM ".$db->prefix."categories");
$list = '<ul>';
while($row = $db->fetch_assoc($result))
{
$list .= '<li><a href="index.php?cid='.$row['id'].'">'.$row['cat_name'].'</a></li>';
}
$list .= '</ul>';
$tpl_main = str_replace('pun_cats', $list, $tpl_main);

This should do it smile

downliner wrote:

Running Zen Cart for the cart but that sucks so Im ditching it. If you can tell me how to display my PunBB header/footer in my order form I will use that.

# Header:
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . " / Title";
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';

# Footer:
<?php
$footer_style = 'index';
require PUN_ROOT.'footer.php';
?>