Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

newposts_v6.php ?

Asked Modified Viewed 14,524 times
K
Kristian Thorsen
K
Carne Diem - Seize the MEAT
  • Member, joined since
  • Contributed 164 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
asked
Member

Hi,

In the danish supportsite they have a file called: newposts_v6.php
it shows the posts / threads since your last visit.

Why dosent we have this here?

Sometimes you have a fealing that you miss some important post because the latest threads center panel only show 10 threads and you dont wanna look in every forums for new threads.

I really hope this can be introduced in all the supportsites.
0 replies

52 posts

G
gojuryu
G
www.gojuryu.net
Online since 1998 & running PHP-Fusion since 2004
  • Member, joined since
  • Contributed 105 posts on the community forums.
  • Started 16 threads in the forums
answered
Member

Quote

Yoda wrote:
The full and latest Forum package download you can grab here


So this is the final version?
Is that your final answer? [sorry, just had to be a smart arse].
0 replies
G
gojuryu
G
www.gojuryu.net
Online since 1998 & running PHP-Fusion since 2004
  • Member, joined since
  • Contributed 105 posts on the community forums.
  • Started 16 threads in the forums
answered
Member

Sweet snaps. The forum_thread_list_panel worked perfectly and made my sites really nice however the forum_threads_panel didn't work at all! [looks as if it is missing images].
Edited by gojuryu on 06-12-2005 04:55,
0 replies
G
gojuryu
G
www.gojuryu.net
Online since 1998 & running PHP-Fusion since 2004
  • Member, joined since
  • Contributed 105 posts on the community forums.
  • Started 16 threads in the forums
answered
Member

I reverted back to the stock v6.00.207 version of the forum_threads_panel for the time being and have also noted another problem in the search.php [http://www.gojuryu.net/search.php?sty...hp?stype=f] which returns the following error
Warning: in_array(): Wrong datatype for second argument in /home/gojuryun/public_html/search.php on line 40
>Articles
Warning: in_array(): Wrong datatype for second argument in /home/gojuryun/public_html/search.php on line 41
>News
Warning: in_array(): Wrong datatype for second argument in /home/gojuryun/public_html/search.php on line 42
>Forum Posts
Warning: in_array(): Wrong datatype for second argument in /home/gojuryun/public_html/search.php on line 43
>Downloads
Warning: in_array(): Wrong datatype for second argument in /home/gojuryun/public_html/search.php on line 44
>Web Links
Warning: in_array(): Wrong datatype for second argument in /home/gojuryun/public_html/search.php on line 45
>Members
Warning: in_array(): Wrong datatype for second argument in /home/gojuryun/public_html/search.php on line 46
>Custom Pages
0 replies
P
prutsor
P
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
answered
Newbie

This is because you are using the modified search.php from tehdagda
This bug is already mentioned in http://php-fusion.co.uk/forum/viewthr...ad_id=6576

Tehdagda also fixed the problem so just download http://fusion.9c0.com/downloads.php?c...nload_id=5 and upload it again.
Edited by prutsor on 06-12-2005 21:32,
0 replies
G
gojuryu
G
www.gojuryu.net
Online since 1998 & running PHP-Fusion since 2004
  • Member, joined since
  • Contributed 105 posts on the community forums.
  • Started 16 threads in the forums
answered
Member

ohh, thanks
0 replies
R
rsmarsha
R
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 7 threads in the forums
answered
Junior Member

I'm getting users reporting missing posts in the newposts page. I made a link to newposts.php from within the forum threads list panel. People are reporting that some posts are not showing in newposts.php when they have new posts in them.
0 replies
R
rsmarsha
R
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 7 threads in the forums
answered
Junior Member

Also the newposts.php does not always show the last post sometimes the first new post since last visit.

In this link:

".BASEDIR."forum/viewthread.php?".$rowstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data['post_id']."'>


Does the # poit to a html target? So it takes you to the post you wanted to see rather than the top? If so it doesn't seem to work.
0 replies
R
rsmarsha
R
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 7 threads in the forums
answered
Junior Member

I think i might have solved the problem of it not showing all the posts, time will tell. :)

I've removed some of the code in newposts.php and merged 3 queries into 1 as one query was not really needed.
0 replies
G
gojuryu
G
www.gojuryu.net
Online since 1998 & running PHP-Fusion since 2004
  • Member, joined since
  • Contributed 105 posts on the community forums.
  • Started 16 threads in the forums
answered
Member

Quote

rsmarsha wrote:
I think i might have solved the problem of it not showing all the posts, time will tell. :)

I've removed some of the code in newposts.php and merged 3 queries into 1 as one query was not really needed.

And the revised code is?
0 replies
— 29 days later —
W
Wallace
W
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

any update on this code?
0 replies
— 1 month later —
H
helmuth
H
Danish translator of PHP-Fusion helmuth@php-fusion.dk
-----------------------------------------
All people are born alike - except Republicans and Democrats. (Groucho Marx)
Listen to the music... https://soundcloud.com/helmuth-mikkel...mikkelsen/
  • Senior Member, joined since
  • Contributed 706 posts on the community forums.
  • Started 219 threads in the forums
  • Answered 1 question
answered
Senior Member

this is a hardcoded English version of the hardcoded Danish version we use at the Danish Support Site:


<?php
/*---------------------------------------------------+
| PHPFusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
| Updated to v6.0 by janmol / janm@janm.dk
| English language by Helmuth Mikkelsen helmuthm@gmail.com
+----------------------------------------------------*/

@include "../config.php";
include "../maincore.php";
include BASEDIR."subheader.php";
include BASEDIR."side_left.php";

if (empty($lastvisited)) { $lastvisited = time(); }

opentable("New posts since your last visit");
if (!iMEMBER) {
echo "<center><br>You have to login to use this feature<br><br><br></center>";
}else{
$result = dbquery("SELECT * FROM ".$db_prefix."forums WHERE forum_access ='".iMember."' ORDER BY forum_id");

$query = "SELECT * FROM ".$db_prefix."posts INNER JOIN ".$db_prefix."users ON ".$db_prefix."posts.post_author=".$db_prefix."users.user_id WHERE ".$db_prefix."posts.post_datestamp >$lastvisited ORDER BY post_datestamp ASC";
$result = dbquery($query);
if (dbrows($result) != 0) {
echo "<table border='0' cellspacing='0' cellpadding='0' width='100%'

class='tbl-border'>
<tr>
<td>
<table border='0' cellspacing='1' cellpadding='0' width='100%'>
<tr>
<td class='tbl2'><b>Subject</b></td>
<td class='tbl2'><b>Heading</b></td>
<td align='center' class='tbl2' width='100'><b>Author</b></td>
<td align='right' class='tbl2' width='120'><b>Date</b></td>
";


$forumidnum=0;
$replycount=0;
while ($data = dbarray($result)) {
$result2 = dbquery("SELECT * FROM ".$db_prefix."posts WHERE

thread_id='".$data['thread_id']."' AND post_id<'".$data['post_id']."' ORDER BY post_id DESC");
$rows = dbrows($result2);
if ($rows > 20) {
$rowstart = ceil($rows / 20);
$rowstart = "rowstart=".(($rowstart-1)*20)."&";
} else {
$rowstart = "";
}
$result2 = dbquery("SELECT * FROM ".$db_prefix."forums

WHERE forum_id='".$data['forum_id']."'");
$data2 = dbarray($result2);
$forum_name = $data['forum_name'];
if(checkgroup($data2['forum_access'])) {

$replycount++;
if ($forumidnum!=$data2['forum_id']){
$forumidnum=$data2['forum_id'];
echo "<tr>
<td class='tbl1'><a href='".BASEDIR."forum/viewforum.php?forum_id=
".$data2['forum_id']."&forum_cat=".$data2['forum_cat']."'>".$data2['forum_name']."</a></td>
<td class='tbl1'><a href='".BASEDIR."forum/viewthread.php?
".$rowstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data['post_id'

]."'>".$data['post_subject']."</a></td>
<td align='center' class='tbl1'><a href='".BASEDIR."profile.php?lookup=
".$data['post_author']."'>".$data['user_name']."</a></td>
<td align='right' class='tbl1'>".strftime($settings['forumdate'],
$data['post_datestamp']+($settings['timeoffset']*3600))."</td>
</tr>
";
}
}
}

if ($replycount>1){

echo "<tr><td class='tbl1' colspan='4'><br><center>There are ".$replycount." new posts

since your last visit</td></tr></center>";}
else {
echo "<tr><td class='tbl1' colspan='4'><br><center>There are ".$replycount." new posts

since your last visit</td></tr></center>";}


echo "</table>
</td>
</tr>
</table>
";

} else {
echo "<center><br>No new posts since your last visit<br><br></center>
";

}
}
closetable();
echo "</td>
";

include BASEDIR."side_right.php";
include BASEDIR."footer.php";
?>
0 replies
K
Kristian Thorsen
K
Carne Diem - Seize the MEAT
  • Member, joined since
  • Contributed 164 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

It could be nice to have this on all the support sites, so you have a better overview on the threads when you cant be online everyday.
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

The above code is a bit outdated, and it has an exploit in $lastvisited (fixed in the core ages ago)

Heres the updated forum_threads_list_panel infusion (new_posts.php english only)

Update - needs tweaking, will repost l8tr
Edited by Falk on 23-02-2006 17:08,
0 replies
S
shedrock
S
phpfusion-themes.com/siriuslogo.jpg
  • Senior Member, joined since
  • Contributed 232 posts on the community forums.
  • Started 10 threads in the forums
answered
Senior Member

ok :)
0 replies
P
Prince NightFox
P
  • Member, joined since
  • Contributed 85 posts on the community forums.
  • Started 15 threads in the forums
answered
Member

It would be nice to add "View All Threads" to the bottom with all the other links. Like on the theme's site.
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Here's the files
0 replies
H
helmuth
H
Danish translator of PHP-Fusion helmuth@php-fusion.dk
-----------------------------------------
All people are born alike - except Republicans and Democrats. (Groucho Marx)
Listen to the music... https://soundcloud.com/helmuth-mikkel...mikkelsen/
  • Senior Member, joined since
  • Contributed 706 posts on the community forums.
  • Started 219 threads in the forums
  • Answered 1 question
answered
Senior Member

works fine ;)

thx
0 replies
A
AmyLee
A
AmyLee 10
[ PHP Fusion | Bring Your Portal To Life ! ]
  • Junior Member, joined since
  • Contributed 34 posts on the community forums.
answered
Junior Member

Thanks Nick ;)
0 replies
P
Prince NightFox
P
  • Member, joined since
  • Contributed 85 posts on the community forums.
  • Started 15 threads in the forums
answered
Member

Digi, can you also add an "All Recent Threads" link?
0 replies
— 9 months later —
K
KFJ
K
KFJ 10
With a paid licens.....
  • Member, joined since
  • Contributed 55 posts on the community forums.
  • Started 10 threads in the forums
answered
Member

Quote

Run4itUK wrote:
We use this on our site too - it really does help ;)

add RSS feeds and you should never miss a message B)

img386.imageshack.us/img386/7218/ourcenterpanel8bv.jpg


Hi Run4it,

Do you have RSS feed for the forum ?
It's RSS 2.0 ? Do you have a link where I can find it ?

Thanks :-)
0 replies

Category Forum

General Discussion

Labels

None yet

Statistics

  • Views 0 views
  • Posts 52 posts
  • Votes 0 votes
  • Topic users 16 members

16 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
W
W
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
S
S
Scotty 10
I am always doing that which I can not do, in order that I may learn how to do it
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
H
H
Danish translator of PHP-Fusion helmuth@php-fusion.dk
-----------------------------------------
All people are born alike - except Republicans and Democrats. (Groucho Marx)
Listen to the music... https://soundcloud.com/helmuth-mikkel...mikkelsen/
  • Senior Member, joined since
  • Contributed 706 posts on the community forums.
  • Started 219 threads in the forums
  • Answered 1 question
K
K
KFJ 10
With a paid licens.....
  • Member, joined since
  • Contributed 55 posts on the community forums.
  • Started 10 threads in the forums
K
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
P
P
  • Member, joined since
  • Contributed 85 posts on the community forums.
  • Started 15 threads in the forums
K
K
Carne Diem - Seize the MEAT
  • Member, joined since
  • Contributed 164 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
R
R
  • Junior Member, joined since
  • Contributed 35 posts on the community forums.
  • Started 7 threads in the forums
S
S
phpfusion-themes.com/siriuslogo.jpg
  • Senior Member, joined since
  • Contributed 232 posts on the community forums.
  • Started 10 threads in the forums
A
A
AmyLee 10
[ PHP Fusion | Bring Your Portal To Life ! ]
  • Junior Member, joined since
  • Contributed 34 posts on the community forums.
B
B
ben 10
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
G
G
www.gojuryu.net
Online since 1998 & running PHP-Fusion since 2004
  • Member, joined since
  • Contributed 105 posts on the community forums.
  • Started 16 threads in the forums
P
P
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
Y
Y
Yoda 10
  • Member, joined since
  • Contributed 57 posts on the community forums.
  • Started 2 threads in the forums
R
R
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 7 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet