501

(9 replies, posted in General discussion)

Copy all the code from search.php from the action show_24h, and paste it in a new file in the include/user folder (don't forget to make all the includes and stuff from the beginning of search.php)

502

(9 replies, posted in General discussion)

He means you can only do this:

<pun_include "search.php?action=show_24h">

with files in your include/user folder instead of search.php. (pun_include looks in this folder only)
I don't know, maybe it is just ok if you copy search.php into that include/user folder or you put

<pun_include "../../search.php?action=show_24h">

503

(27 replies, posted in PunBB 1.2 troubleshooting)

Wow, thanks, Smartys.
I would have never noticed. (So easy - just looking at the HTML code). I actually just did a syntax error in my header.php file - have to go through that again...
Thanks again

504

(27 replies, posted in PunBB 1.2 troubleshooting)

What is not valid XHTML?
The problem is, I can't fix it anymore

505

(27 replies, posted in PunBB 1.2 troubleshooting)

Why is this "fix" messing up my calendar in IE 6?

506

(9 replies, posted in General discussion)

There is something really similar in the PunPortal mod.

507

(27 replies, posted in PunBB 1.2 troubleshooting)

I just tried all that stuff out, and now that happened:
http://bydebrasdesigns.com/biblestudy/f … lendar.php
(only in AOL and IE)
Help?

I think he means it like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
</head>
<body>

<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_title>
            <pun_desc>
        </div>
        <div id="header">
<h1><a href="/">Christopher-Powell.co.uk</a></h1>
<h2>Trance DJ from Birmingham, England</h2>
</div><div id="nav">
<ul>
<li id="current"><a href="/" title="Home page">Home</a></li>
<li><a href="/forums/forums.php" title="Christopher Powell Online Forums">Forums</a></li>
<li><a href="/mixes.php" title="My mixes">Mixes</a></li>
<li><a href="/links.php" title="My favourite links">Links</a></li>
<li><a href="/contact.php" title="Contact me">Contact Me</a></li>
<li><a href="/admin/main.php" style="border-right: medium none;" title="Admin">Admin</a></li>
</ul>
</div>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<pun_footer>

</div>
</div>

</body>
</html>

In other words, he simply wanted you to replace pun_navlinks with the code he gave you.

I asked at punres: http://www.punres.org/viewtopic.php?pid=15019

Anybody?

511

(5 replies, posted in PunBB 1.2 discussion)

Good point! Did anybody ever write down the purpose and the connections of all the files of a normal punBB installation?
I am trying to modify punBB to use it for different purposes. Therefore, that would be very helpful, so that I know where I have to change what...

512

(5 replies, posted in General discussion)

iatbm wrote:

I like sNews from solucija.com !

Yep, and their support forum is running punBB! wink

I do need help. Could you post an example stylesheet?

Ok, Smartys, what about that page?

I found a pretty bad bug. At the end of every line in the calendar view there is this sign: «
When I click on it, it should probably show the weekly calendar, but it doesn't. Instead, it shows that of the next week.
I pasted the code that's probably relevant here:

echo "\t\t\t\t<td class='calendar_wk'><a href='calendar.php?".$ltype."week=".$year_link.".".$date_link."'>«</a></td>\n";

                echo "\t\t\t</tr>\n\t\t\t<tr>\n";
            }
            if ( $day_of_wk < 6 && $date_of_mth == $days_in_mth ) {

                for ( $i = $day_of_wk ; $i < 6; $i++ )
                { echo "\t\t\t\t<td valign='top' style='width:14%; height:75px' class='calendar_no' > </td>\n"; }

                echo "\t\t\t\t<td class='calendar_wk'><a href='calendar.php?week=".$year_link.".".($date_link+1)."'>«</a></td>\n";
                echo "\t\t\t</tr>\n";

Thanks for help.

Good, thanks for the help. I might do that tonight. I don't think (...hope) that I will need help for that wink

Oops, good point:
Log in with the following data so that you can see it:
Username: test
Password: test

I used the top one, thanks.
But: Look what it did. I will probably have to change the width in the template or the css file somewhere.
http://bydebrasdesigns.com/biblestudy/f … m.php?id=2

I know this probably looks really dumm, but I installed the Easy Poll mod and now in every forum it there is "Post new topic" and "Post new poll" in two separate lines. I don't like that, so I want both links in one line. I found the place in the code where that has to happen, I played around with it, but I couldn't figure it out.
Here is the code:

// Can we or can we not post new topics?
if (($cur_forum['post_topics'] == '' && $pun_user['g_post_topics'] == '1') || $cur_forum['post_topics'] == '1' || $is_admmod)
    $post_link = "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'">'.$lang_forum['Post topic'].'</a></p>'."\n";
else
    $post_link = '';
if (($cur_forum['post_polls'] == '' && $pun_user['g_post_polls'] == '1') || $cur_forum['post_polls'] == '1' || $is_admmod)
    $post_link .= "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'&type=poll">'.$lang_polls['New poll'].'</a></p>'."\n";

I don't know how you can get the page to pull the data from the forum (not so experienced with PHP - just wait for another answer there), but the PunPortal Mod - available at www.punres.org, plays around with a lot of that stuff (recent topics and news, which is recent topics from a specific forum).

521

(14 replies, posted in PunBB 1.2 troubleshooting)

I have exactly the same problem - sometimes with the whosonline block under the forum page and sometimes with the calendar.
And all that different in different browsers.

First: I don't see any paypal stuff on your forum.
Second: You can edit the navlinks (that's probably the better place to add some code) in the file include/functions.php in the function generate_navlinks() at about line 300. I am not sure anyways: Where exactly do you want the paypal box? Do you have any instructions from paypal? And - maybe you could add the miniportal.

Could you post the exact code you added to the additional navlinks?

524

(68 replies, posted in PunBB 1.2 discussion)

Copyright - good topic:
I am working on an edited "release" of PunBB right now that would make it easier for beginners, with a number of useful mods already installed.
Do I need to ask the mod authors for permission?

525

(29 replies, posted in PunBB 1.2 troubleshooting)

Peter wrote:

An error was encountered
File: /home/mysite/public_html/forum/edit.php
Line: 28

PunBB reported: Unable to fetch post info

Database reported: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY posted' at line 1 (Errno: 1064)

Failed query: SELECT id FROM posts WHERE topic_id= ORDER BY posted

I think the last line is wrong. You have SELECT id FROM posts WHERE topic_id= ?????????

So, there (wherever this query line is located in your file) you have to set topic_id equal to something. The error message seems to say the same thing ("...right syntax to use near 'ORDER BY posted'...", which is right behind the topic_id stuff.
Maybe you could post the block of your edit.php file.