SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
SEO-Board Forum Software Community / General / Programming / Add New Posts Link to Your Forum Tutorial
Posted:  29 Jun 2006 21:58
Want to have a link which says "View New Posts"? Then when its clicked it displays all the new posts since the user last visited.

Ive written a tutorial on it...

http://www.tutorialdash.com/tutorial/php-codi ...
Posted:  30 Jun 2006 08:12
That's a great one for a busy forum. There's just a little problem with the tutorial - it is shown addslashed (the ' appear as \')
Posted:  30 Jun 2006 12:22
Ok thanks for pointing that out

I will update it soon...
Posted:  14 Jul 2007 20:37   Last Edited By: MusicalBox
Hi,

I installed the mod described here and it worked fine until I made the modification proposed by Hristo on this topic :

http://forums.seo-board.com/article412.htm

Now, when I check if new messages were posted (using Python's mod), if there is indeed new messages, the mod works, but I get this alert :
Quote:
Notice: Undefined variable: forum_link in /home.10.2/sourisep/www/forum/newposts.php(48) : eval()'d code on line 5


The page lists the new messages under the alert message, but doesn't show the forum associated with the message.

Here's a capture of new messages in the Latest Forum Post list :

http://www.enregistrersous.com/images/210122523420070714203255.jpg
In this image, the text in blue is the link to the related forum.

Here's a capture of the new messages since last connection (Python's mod):

http://www.enregistrersous.com/images/181278134220070714203255.jpg
Here, the related forum link doesn't show. Plus I get the alert.

Thanks in advance for any solution for this problem ;)
Posted:  15 Jul 2007 18:21
It means the script is trying to parse a template that has a forum_link variable in it, but the script has not defined it before.
Posted:  15 Jul 2007 19:21
Ah !
you lead me to the right path

So to solve this problem using my limited php knowledge, I simply added a modified mainlastpostscell.htm  to the skin directory with no mention of forum_link in it.
So now the newpost.php page uses mainlastpostcell2.htm instead of mainlastpostcell.htp

Does that makes sense ?

Anyway, it works.
Thanks again