I dunno waht it's called. but iwhat i mean is this: if you go to the adress index?page=contact for example you come to the contact page. But the forums header and footer are still there, it's just the main content part that's changing

okey

I'm going to make a pageswitcher.

I'm going to use a a new template file called page.tpl. This file will contain this:

<div id="idx1" class="blocktable">
    <h2><span>
        <headline>
    </span></h2>
    <div class="box">
        <div class="inbox">
            <table cellspacing="0">
            <thead>
                <tr>
                    <th class="tcl" scope="col">
                        <legend>
                    </th>
                </tr>
            </thead>
            <tbody>
                 <tr>
                    <td class="tcl">                        
                        <content>                    
                    </td>
                </tr>
            </tbody>
            </table>
        </div>
    </div>
</div>

And then i will make a file called page.php that replaces <headline>, <legend> and <content>

I'm going to remove most of the things in idex.php and place that in a new file called forum.php for example

How do i do this?

Hello

I'm modding my punBB forum quite a bit. But i can't find in witch file <pun_main> in main.tpl is replaced. I've check the files that thought made it, but i couldn't find it.
So where is the str_replace for  <pun_main>?

thanks

I would like to see who made tha latest post too

I want a table like this:
Topic 1    <time> by <nick>
Topic 2    <time> by <nick>
Topic 3    <time> by <nick>

For example: 
test topic         19:30:45 by pekz0r

I gues it shouldn't be too hard to fix, i'm giving it a try myself

The best would probably be to edit the extern.php and not this script

yea, it was the lang/Swedish/common.php that was was wrong tongue

I missed a ' at one place. Impossible to find without knowing what the problem is tongue
Thanks for making my life much easier big_smile

Hello

I've been editing my forum a litte and i ahven't made a backup(stupid me). None of the files will pruduce any output at all(including index.php, admin_index.php, search.oho and more)
I the files i edited recently was header.php, functions.php and lang/Swedish/common.php but i can't find what wrong. Ive tried to undo the chages butto problem won't go away

If i check the sourcecode of the pages they don't produce a single line of code. If i put a echo before any of the php code, the echo will show, but if i out it after any php code(the firste line  - define('PUN_ROOT', './'); ) the page makes no output.

There are no error messages what so ever so i have no idea what is wrong

The index.php file is unchanged and the only changed files are main.tpl(worked before), header.php, functions.php and the styles

Does anyone have any idea about what can cause this problem?

Thanks for reading smile

7

(19 replies, posted in General discussion)

...and pay the price for comercial hosting

Yeah, seden - Enland 2-2 big_smile

Note: England hasn't beten sweden for 38 years and that means 12 matches. I so happy that thay didn't beat us this time. It's a quite amazing streak big_smile

I can't log in at all
Is there a way to change back the language in the mySQL database?
I tired to change o_default_lang in config to English, but it didn't change

I tried to on install the swedish language pack

When i choose swedish in the options i got this erreor on hte next refresh.

Warning: generate_navlinks(./lang/Swedish/fp_lang.php): failed to open stream: No such file or directory in /home/hosts/nwpgaming/www/nwp-gaming.com/forum/include/functions.php on line 241

Fatal error: generate_navlinks(): Failed opening required './lang/Swedish/fp_lang.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/hosts/nwpgaming/www/nwp-gaming.com/forum/include/functions.php on line 241

What should i do?
I've made some changes in the forum, i changed the navlinks among other things

11

(3 replies, posted in PunBB 1.2 discussion)

Finaly a response!
Thanks, i'll try that

I thought about that but i wanted to know if you knew about any freelancers

12

(3 replies, posted in PunBB 1.2 discussion)

I wonder if there are any template artists who can style my forum exactly as i want it. I don't want to have a forum that looks like everyone elses, i want someting orginal.

Anyone kow where i can get in touch with template makers?

Here's one template maker for phpBB:
http://www.jakob-persson.com/templates.php

Hello

I'm not very good at PHP but i'm learning....
To my questions:

1. How do i make a list over recenttopics that looks like this?

<topicname>
   by <nick> <date> <time>
Just another weird topic
   by SuperMario Today 14:05:46

The topic name could be a litte bigger than the otherline

Can i do this with extern.php?

2:nd question.
Jag have a simple loginscript om my start page. This is the code for that loginscrpit:

<form id="login" method="post" action="forum/login.php?action=in">
<input type="hidden" name="form_sent" value="1" />
<label class="conl"><strong>Användarnamn</strong><input type="text" name="req_username" size="25" maxlength="25" tabindex="1" /></label>
<label class="conl"><strong>Lösenord</strong><input type="password" name="req_password" size="16" maxlength="16" tabindex="2" /></label>
<input type="submit" name="login" value="Logga in" tabindex="3" />
<br>
<a href="forum/register.php" tabindex="4">Inte registrerad än?</a>  
<a href="forum/login.php?action=forget" tabindex="5">Glömt ditt lösenord?</a><p>
</form>

This script redirects the user to the forum after login, i want the user to stay on the startpage afterlogin. But the login form should be replaced with "Logged in as <nick>"  and "Logout". I know this could be arranged with a simple if, but i don't know how i can check if there are any active sessions and what thhe username is

Thanks, i'm greatfull for any help!

14

(2 replies, posted in Archive)

Okey, tester det

Orkade inte skriva på engelska....

15

(2 replies, posted in Archive)

1. Hur gör man för att få en lista över senaste aktiva topics som ser ut ungefär som denna:

<topicname>
by <nick> <date> <time>
Ett bra förslag!
by Kungen Today 14:05:46

Skulle även vilja ha texten topicnamn raden lite störe än den andra texten

Kan man göra detta med extern.php?

2. En sak till.
Jag har en inloggning till forumet på min startsida, men nu blir skickad till direkt till forumet om man loggar in. Jag vill att man ska vara kvar på sidan, men att det ska stå "inloggad som <nick>" istället fär inlogningsformuläret. Det skulle ju gå att lösa med en enkel if-sats men jag vet inte hur man kollar om man är inloggad eller inte och vad användarnamnet är på den aktulla sessionen är. Såhär ser det ut nu:

<form id="login" method="post" action="forum/login.php?action=in">
<input type="hidden" name="form_sent" value="1" />
<label class="conl"><strong>Användarnamn</strong><input type="text" name="req_username" size="25" maxlength="25" tabindex="1" /></label>
<label class="conl"><strong>Lösenord</strong><input type="password" name="req_password" size="16" maxlength="16" tabindex="2" /></label>
<input type="submit" name="login" value="Logga in" tabindex="3" />
<br>
<a href="forum/register.php" tabindex="4">Inte registrerad än?</a>  
<a href="forum/login.php?action=forget" tabindex="5">Glömt ditt lösenord?</a><p>
</form>