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
1 2006-07-06 19:41
Re: Where is the <pun_main> str_replace? (6 replies, posted in PunBB 1.2 discussion)
2 2006-07-06 18:23
Re: Where is the <pun_main> str_replace? (6 replies, posted in PunBB 1.2 discussion)
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?
3 2006-07-06 18:02
Topic: Where is the <pun_main> str_replace? (6 replies, posted in PunBB 1.2 discussion)
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
4 2006-06-25 18:09
Re: AJAX meets extern.php: Active topics etc. (41 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
5 2006-06-25 14:36
Re: My punBB stoped to produce any output (4 replies, posted in PunBB 1.2 troubleshooting)
yea, it was the lang/Swedish/common.php that was was wrong
I missed a ' at one place. Impossible to find without knowing what the problem is
Thanks for making my life much easier
6 2006-06-23 00:48
Topic: My punBB stoped to produce any output (4 replies, posted in PunBB 1.2 troubleshooting)
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
7 2006-06-23 00:17
Re: mypunbb vs punbb (19 replies, posted in General discussion)
...and pay the price for comercial hosting
8 2006-06-23 00:14
Re: Football world cup - Germany 2006 (25 replies, posted in General discussion)
Yeah, seden - Enland 2-2
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
9 2006-05-19 10:02
Re: Problems when i installed language (2 replies, posted in General discussion)
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
10 2006-05-19 06:26
Topic: Problems when i installed language (2 replies, posted in General discussion)
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 2006-01-24 20:43
Re: PunBB template artists (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 2006-01-18 10:37
Topic: PunBB template artists (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
13 2006-01-18 08:03
Topic: Recent topic list and startpage login (0 replies, posted in PunBB 1.2 troubleshooting)
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 2006-01-18 07:36
Re: Senaste topic och inlogging (2 replies, posted in Archive)
Okey, tester det
Orkade inte skriva på engelska....
15 2006-01-17 21:15
Topic: Senaste topic och inlogging (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>