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 2007-03-22 18:00
Re: How to include new post in block (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 2007-03-22 02:35
Re: IE7 Fix(es) (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 2007-03-22 02:05
Re: IE7 Fix(es) (27 replies, posted in PunBB 1.2 troubleshooting)
What is not valid XHTML?
The problem is, I can't fix it anymore
505 2007-03-22 01:40
Re: IE7 Fix(es) (27 replies, posted in PunBB 1.2 troubleshooting)
Why is this "fix" messing up my calendar in IE 6?
506 2007-03-22 01:33
Re: How to include new post in block (9 replies, posted in General discussion)
There is something really similar in the PunPortal mod.
507 2007-03-21 21:14
Re: IE7 Fix(es) (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?
508 2007-03-21 19:37
Re: how do i... (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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.
509 2007-03-21 03:39
Re: Calendar Mod (145 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I asked at punres: http://www.punres.org/viewtopic.php?pid=15019
510 2007-03-20 14:25
Re: Calendar Mod (145 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Anybody?
511 2007-03-19 23:43
Re: Modifying SQL tables directly (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 2007-03-19 14:48
Re: Good CMS? (5 replies, posted in General discussion)
I like sNews from solucija.com !
Yep, and their support forum is running punBB!
513 2007-03-19 02:48
Re: Post new topic/Post new poll (7 replies, posted in PunBB 1.2 troubleshooting)
I do need help. Could you post an example stylesheet?
514 2007-03-19 00:15
Re: A few questions (please take a look) (9 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Ok, Smartys, what about that page?
515 2007-03-18 19:40
Re: Calendar Mod (145 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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.
516 2007-03-18 19:10
Re: Post new topic/Post new poll (7 replies, posted in PunBB 1.2 troubleshooting)
Good, thanks for the help. I might do that tonight. I don't think (...hope) that I will need help for that
517 2007-03-18 19:00
Re: Post new topic/Post new poll (7 replies, posted in PunBB 1.2 troubleshooting)
Oops, good point:
Log in with the following data so that you can see it:
Username: test
Password: test
518 2007-03-18 18:57
Re: Post new topic/Post new poll (7 replies, posted in PunBB 1.2 troubleshooting)
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
519 2007-03-18 18:45
Topic: Post new topic/Post new poll (7 replies, posted in PunBB 1.2 troubleshooting)
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";
520 2007-03-18 18:25
Re: A few questions (please take a look) (9 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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 2007-03-18 18:13
Re: Missing DIV in page output.. (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.
522 2007-03-16 22:55
Re: Urgent problem - all users redirected to PayPal after logging in (7 replies, posted in PunBB 1.2 troubleshooting)
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.
523 2007-03-16 22:23
Re: Urgent problem - all users redirected to PayPal after logging in (7 replies, posted in PunBB 1.2 troubleshooting)
Could you post the exact code you added to the additional navlinks?
524 2007-03-16 21:04
Re: FAQ: Copyright (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 2007-03-16 21:01
Re: PHP/MySQL syntax problems (29 replies, posted in PunBB 1.2 troubleshooting)
An error was encountered
File: /home/mysite/public_html/forum/edit.php
Line: 28PunBB 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.