126

(142 replies, posted in News)

omg omg omg it's here! *blows up*

I'm scared to update. Some things probably won't work the same way.

127

(5 replies, posted in PunBB 1.2 troubleshooting)

I had this happen to me too. If you have a browser that is a cache freak, and it saves just about everything, the logout or login would be cached. The browser wouldn't log out, but simply redirect.

I fixed mine by putting the no cache tags found at the top of index.php in the redirect page. This logged me out every time.

128

(7 replies, posted in PunBB 1.2 troubleshooting)

I'd better go back and learn php again. smile Rotfl

129

(7 replies, posted in PunBB 1.2 troubleshooting)

It worked perfectly this time, and it's obvious the domain was the reason for the malfunction. (I don't know why it would make a difference, but ok) I salute you! I should have thought of it before! Thank you so much for pointing that out. Thanks Rickard and Connorhd for your responses, and have a nice day.

130

(7 replies, posted in PunBB 1.2 troubleshooting)

This is a truly fascinating problem. I put exactly what you had plus the includes, but even when I'm logged in it still says welcome guest. There are no errors or warnings.

It's in the forum directory, and all the links are valid, and no errors. I'm thinking of giving up. Please let me know what you think is still wrong with it. (In rational thought, it looks like a completely sensible and correct way of connecting and displaying the name) Also, I apologize again for being rude. smile

131

(7 replies, posted in PunBB 1.2 troubleshooting)

Thankyou very much for your reply. Sorry for being impatient. wink I'll try it when I get a chance. If it doesn't work this time I'll give up on it all together.

Btw, you made a mean forum. Keep up the good work.

132

(7 replies, posted in PunBB 1.2 troubleshooting)

I'm starting a new thread for my problem because I wasn't getting any help in the last one. Also, the name of the topic was irrelevant.

<?php
$pun_root = './';
define('PUN', 1);
include "include/common.php";

echo $cur_user['username'];
?>

This should work for displaying the name of the current user on any page if it was included. Why doesn't it?

Any suggestions would be appreciated.

133

(3 replies, posted in PunBB 1.2 troubleshooting)

http://s03.imagehost.org/0557/punhelp.gif

Foo is your database prefix, and that is most likely something else you created when naming your database. Put in the table prefix: it could be "bb_" "forum_" etc. Since you're running mysql just put in localhost for your configuration.

Hope this helps,

~Creaturecorp

134

(9 replies, posted in PunBB 1.2 troubleshooting)

*bump*

135

(9 replies, posted in PunBB 1.2 troubleshooting)

This time it returns fully blank. By the way, sorry for being so oblivious to the system. smile

136

(9 replies, posted in PunBB 1.2 troubleshooting)

<?php
$pun_root = './';
define('PUN', 1);
include "include/common.php";

echo $cookie['username'];
?>

despite if I'm logged in or not, it still returns guest. What am I missing?

137

(9 replies, posted in PunBB 1.2 troubleshooting)

<?php
include "../forum/config.php";
include "../forum/include/functions.php";

check_cookie(&$cur_user);

if ($cookie['is_guest'])
    $tpl_temp = $lang_common['Not logged in'];
else
    $tpl_temp = $lang_common['Logged in as'].' <b>'.pun_htmlspecialchars($cur_user['username']).'</b>.<br>'.$lang_common['Last visit'].': '.format_time($cur_user['last_visit']);

if ($cur_user['status'] > PUN_USER)
{
    $result_header = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'reports WHERE zapped IS NULL') or error('Unable to fetch reports info', __FILE__, __LINE__, $db->error());

    if ($db->result($result_header, 0))
        $tpl_temp .= '<br><a class="punhot" href="admin_reports.php">There are new reports</a>';

    if ($pun_config['o_maintenance'] == '1')
        $tpl_temp .= '<br><a class="punhot" href="admin_options.php#maintenance"><b>Maintenance mode is enabled!</b></a>';
}
?>

Should this work? It doesnt.

138

(3 replies, posted in PunBB 1.2 show off)

Sure, I would love to help (I'm not really that good, but in a pinch...)
Ya, I've got msn. smile
Also, drop by http://flashkit.com for a bunch of tutorials.

139

(3 replies, posted in PunBB 1.2 show off)

Hello,

I just recently got started on this. I need some people to post, because it's really a ghost town now. wink

http://forum.creaturecorp.ca
http://creaturecorp.ca

I hope you like it.

~Creaturecorp

140

(9 replies, posted in PunBB 1.2 troubleshooting)

Sorry, forgot to mention that my main page is
http://creaturecorp.ca
and my forum page is
http://forum.creaturecorp.ca

141

(9 replies, posted in PunBB 1.2 troubleshooting)

I've been using Pun for a few days, and I was able to code a special dohickey that lists the most recent posts on my main page. I'm proud of myself. tongue I also found enough code from the pages to display the "most recent user" thing near the top of my main page.

I also have a login form that you can choose where to be redirected to, either to the main page or to the forum when logging in.

I sifted through the files, trying to find how the forum decodes the cookie to display the username. I spent about an hour doing so, but gave up. Does anyone know where the code lies that decodes the cookie? (I thought it was in header.php, but I guess I'm not experienced enough yet to know where all the functions are coming from.)

Basically all I need is the capability of showing the "logged in as..." thing on the main page. Then from this I can display special notices, like "new artwork here" or "new animation there".

Also, I had just recently coded my own member script, which worked very well, until I decided to switch over to Pun because I needed a forum. It's easier to make a secure area script from a forum rather than the other way around.

Well, I hope someone can help me out.

~creaturecorp