"Page 1 of 0"

Makes it posible to post Global announcements, viewble in all forums

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

"Page 1 of 0"

Postby Cerapter on Thu 15. Apr, 2004 23:43

I've installed the GA mod, and everything seems to be ok, but after I've posted a GA, the page count in any forum with less than two normal topics is zero. So the pagination shows up also, but there are no links there - UNTIL the forum has at least two topics except the GA and normal Announcements.

This may look odd until my forum is opened and has got a couple of topics in every category, so I hope there is a solution - or simply that I've just made a mistake?
Cerapter
Poster
Poster
 
Posts: 1
Joined: Thu 15. Apr, 2004 23:35

Postby markus_petrux on Wed 30. Jun, 2004 18:25

I'm new here, so... Hi all! :)

I've also seen this problem and I believe found a solution. :roll:

So, if you want to try it... AFTER applying this nice GA mod in your board, try the following:
Code: Select all
#
#-----[ OPEN ]------------------------------
#
viewforum.php

#
#-----[ FIND ]------------------------------
#
$db->sql_freeresult($result);
// End add - Global announcement MOD

#
#-----[ BEFORE ADD ]------------------------------
#
// MOD(begin): Fix Total Count for Pagination (for GA Mod).
$topics_count += $total_announcements;
// MOD(end): Fix Total Count for Pagination (for GA Mod).


#
#-----[ SAVE/CLOSE ]------------------------------
#


Enjoy!
markus_petrux
Poster
Poster
 
Posts: 1
Joined: Wed 30. Jun, 2004 18:06


Return to Global announcement [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron