I´m trying to change my webhost at the moment but I do encounter some problems with the migration of the mysql database.

From MySQL 4.1.15 to target MySQL 4.0.24 ("downgrade" that is)

I´ve managed to export/import my database to my new host...When I export from MySQL 4.1.15 (the old host) I simply choose compability mode MYSQL40, otherwise it won´t work in MySQL 4.0.24 (the new host). So far so good...but when I try to post a new thread/topic I get the following error message:

"File: /customers/cssforumet.se/cssforumet.se/httpd.www/post.php
Line: 288

PunBB reported: Unable to create topic

Database reported: Duplicate entry '0' for key 1 (Errno: 1062)"



When I try to answer someones thread I get the following error message:

File: /customers/cssforumet.se/cssforumet.se/httpd.www/post.php
Line: 180

PunBB reported: Unable to create post

Database reported: Duplicate entry '0' for key 1 (Errno: 1062)



The things I´ve tested to solve the problem is:
*repair database
*db management tool
*Rebuild search index via administrationpanel.
*Fresh installed copy of punBB

So is there anyone with sql knowledge? My knowledge is about "0" big_smile

Cheers!

Is it possible to add the latest registerd user in the index.php when using miniportal. If so..please tell me how. I´ve managed to change the code in forum.php file like this:

?>
<div id="main" class="block">
        <div class="box">
        <div class="inbox">
            <ul><?php echo $lang_index['Newest user'] ?>: <a href="profile.php?id=<?php echo $stats['last_user']['id'] ?>"><?php echo pun_htmlspecialchars($stats['last_user']['username']) ?></a></ul>
        </div>
    </div>
</div>
<?php

But I´m no programmer som i don´t now how to add this in the index.php...anyone?

28

(5 replies, posted in General discussion)

Pogenwurst...sorry for posting in the wron category...your right it´s statistics for the entire site I´m looking for, not punBB only so you did the right thing to move it. I´ll have a look later on today at the BBClona and AWStats. Thanx alot!

29

(5 replies, posted in General discussion)

I need some help to find a good, easy to use, not to demanding webpage statistics. It´s good if it contains number of hits (both unique and total), amount of data that has been transfered and so on...?

// gleb

And did a mention that it should be free wink

I´m using the miniportal and it´s great but how can I change how links are open in the pun_news fuction.

Let´s say I´m posting something like "bla bla" and a link "traden" and it shows up properly in the index.php (so far so good) The problem is that the link opens in _blank but I want it to open in the same window. Any ideas how to solve this?

I´m using this line in mod_topicpreview.php Is it possible to change so when I click the <a href="viewtopic.php?pid='.$cur_t ....in the same window and not _blank?

$last_post = '<a href="viewtopic.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'" onmouseover="ddrivetip(\''.$cur_topic['message'].'\')" onmouseout="hideddrivetip()">'.pun_htmlspecialchars($cur_topic['subject']).'</a>';


Cheers!

32

(1 replies, posted in PunBB 1.2 show off)

I´ve spent alot of time in front of my computer and here are the result. The swedish Counter-Strike:source forum has got a major facelift. Thanks to "ross3093" at http://www.punres.org/viewtopic.php?id=830 for the style (even if I´ve modded it slightly) Have a look at http://cssforumet.frac.dk

Cheers!

Do anyone have this problem with chatbox?

Let´s say you write a message (this message) "Hi, my name is Thomas and you?" You hit the send button and "woala" the line "Hi, my name is Thomas and you?" is included in the chat...so far so good. Okey let´s say you want to update the chatwindow now...you could do this in three diffrent ways...first is to hit the update button below the chat window and it works great no problems...but when you hit the refresh button in your browser or F5 there´s a message that the site "contains data that will be posted again"...this means that the line "Hi, my name is Thomas and you?" is going to be added everytime you hit refresh in your browser...shouldn´t there be some kind of "clearer" of this messeage field when you send the data? Hopefully you understand what I mean wink

Ahh sorry my misstake...was logged in as admin...that´s why. If your logged as a member that will not happen wink Thanx for that quick reply!

EDIT:
Moved by Paul. Another bug that is not a bug.

I don´t now if this is a bug or if it has been posted before, anyhow here goes.

I´ve noticed if you start a new topic let´s say it´s called "Hello" and the message is "Hello" You type it and then hit Submit and then back (in your browser that is) and then Submit again and then back again...bla bla and so on.

Copied and pasted my 5 recent topics below.

Hello  Idag 15:46:44
Hello Idag 15:46:41
Hello Idag 15:46:38
Hello Idag 15:46:34
Hello Idag 15:46:31
Hello Idag 15:46:27

Shouldn´t there be some kind of timelimit between posts...or something? Or maybe there is haha big_smile

// Marcus

36

(4 replies, posted in Archive)

hehe...:D utdrag ur calendar.php

...
No_Bday'    =>    'No Birthdays Happing This Day',
'Age'                =>       'Age Turning',
'go_to_post'    =>    'Go to post'
....

I´m using the miniportal and it would be really nice if I can add the 20 most active users in the top of my forum.php How do I do that? I´ve tried to just copy/paste the code further up in the forum.php file but I only get the result that everything below the pasted code disapers.

I also tried this in the viewtopic.php file...copied and pasted the moste 20 active users code and it now shows/works1. How come it doesn´t work in the forum.php file?

38

(4 replies, posted in Archive)

Jag har hjärnsläpp...vad heter Age turning på svenska?

39

(4 replies, posted in Archive)

Tackar och bockar...där sparade jag en massa tråkig tid wink

Well a question came up as I was looking into the index.php (using miniportal) At the end there is a line "echo pun_news(16);" I´m no programmmer what so ever but is it possible to do something like this:

Put it inside a table?

<table>
echo pun_news(16);
</table>

or

...inside divs?

<div>
echo pun_news(16);
</div>

I´ve noticed that it doesn´t work if I do as above...

Thanx alot!!!

Ohh by the way...would you like to email your main.tpl to....just so I could compare yours with mine. You have a great looking site I think and thanks for the help big_smile

My webhost is www.frac.dk and that is probably were the problem is...I will try to upload the site to another host and see if it works there? Any suggestions of a good free webhoster?

Aight mate...Well it looks like this: (your site on top General bla bl and mine Counter Strike source error code)

General
test
funny bf2 movie
The real world...
me flying chopper
Need a slogan?

Battlefield 2
Booster Pack - Euro Force ?
New Patch info....
Argh... Match at 7:30 am??

Counter Strike Source

Warning: main(http://www.testforumet.frac.dk/extern.php?action=active) [function.main]: failed to open stream: Connection timed out in /web/www/frac/users/testforumet/include/user/here.php on line 12

Warning: main() [function.include]: Failed opening 'http://www.testforumet.frac.dk/extern.php?action=active' for inclusion (include_path='.:/usr/share/php:/usr/share/pear:/web/www/include') in /web/www/frac/users/testforumet/include/user/here.php on line 12

So as you can see...your extern.php does work but not my own?

I´ve copied you code and it´s pertty weird...

If you take a look at my site http://testforumet.frac.dk I can link to your recent topics and you can link to mine...but I can´t link to my own. Hmm any suggesions?

Still gets the same error code as above (of course on a different line)

How did you do that...?I t really works for you :S What code did you use and were did you put it?

This link works  http://testforumet.frac.dk/extern.php?action=active ...but how come it doesn´t work when I´m implementing it in php.

It looks like this...

<?php
include('http://www.testforumet.frac.dk/extern.php?action=active');
?>

Stevenbullen: I´ve tried to do as the link you gave me...but I get the error:

Warning: main(http://www.testforumet.frac.dk/extern.php?action=active) [function.main]: failed to open stream: Connection timed out in /web/www/frac/users/testforumet/include/user/here.php on line 2

Warning: main() [function.include]: Failed opening 'http://www.testforumet.frac.dk/extern.php?action=active' for inclusion (include_path='.:/usr/share/php:/usr/share/pear:/web/www/include') in /web/www/frac/users/testforumet/include/user/here.php on line 2

Any ideas?

"Bumb" it til tomorrow..then I´m on it again big_smile

I´m also trying to add data from the extern.php into main.tpl...but I don´t really get it....tried the search function all evning but I´m really stuck on this one...plz help me.

For example I would like to add this to my miniportal http://www.testforumet.frac.dk/extern.p … mp;show=10

If you visit the testpage http://testforumet.frac.dk you´ll find the recent topics at the bottom, but just the box...no topics in it?? I´ve added the code below to the main.tpl near the end. (after the last </table> in the code above)

<div class="block">
        <h2 class="block2"><span>Recent</span></h2>
        <div class="box">
            <div class="inbox">
                <?php include('http://www.testforumet.frac.dk/extern.php?action=new&show=10'); ?>     
            </div>
        </div>
    </div>