www.clan-themes.co.uk :: View topic - Integrate last post on topic index with simple subforums
Welcome To Clan Themes
As the board grows please remember the Search Option and we hope you find our community useful.
We also monitor Private Messages to stop members from abusing our sites system. If you are asking for assistance please provide your site link and nuke version, Thanks.
Status: Offline
0.29 posts per day Medals: 1 (View more...)
Joined: Oct 04, 2007
Last Visit: 30 Jun 2008
Posts: 118 Points: 3848
Integrate last post on topic index with simple subforumsPosted:
Wed May 14, 2008 5:05 am
I wanna use this addon with my forums, but I have a problem with the simple subforums,,, some of the codes had been changed for the simple subforums, and it requires me to change this codes,,,, so i thought maybe you guys can help me with it
thats the last post on topic index code
Code:
##############################################################
## Mod Title: shows topic of last made post on index
## Mod Version: 1.4.1
## Author: e-sven <sven@e-sven.net> http://www.e-sven.net
## Description: -adds lasts post topic to each forum on
## the index page (based on read-access)
## -word censorship is used
## -topic title with more then 27 chars are cut off
## -mouseover info displays the full title
##
## Installation Level: easy
## Installation Time: 2-5 Minutes
## Files To Edit: index.php
## Included Files: index.php (pre-modded)
##############################################################
## History:
## 1.4.1 Updated to phpBB 2.0.22
## ???
## 0.9 not released beta
## 1.0 first working release
## 1.1 optimized db access
## 1.2 made implementation easier
## (only two replaces have to be made)
## 1.2a just a minor bug (thanks to Acid)
## 1.3 empty forums where not displayed correctly
## 1.4 optimized db-query
##############################################################
## Before Adding This MOD To Your Forum,
## You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#
index.php
#
#-----[ ACTION Find ]-----------------------------------------
#
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
FROM (( " . FORUMS_TABLE . " f
LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
ORDER BY f.cat_id, f.forum_order";
break;
}
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql);
}
What you need to do is get the changes made by the subforums MOD and copy them to a txt file, then copy the changes in that file you have posted and compare them. You can use a program called Beyond Compare: http://www.scootersoftware.com/moreinfo.php
It will highlight the differences between the code for you.
Then you manually make the changes in the current index.php file.
Hope this helps
DoC
Play EVE Online?
Go To: www.go-pdi.com & Join The Best Corp In The Universe!
4 Replies / 561 Views Page 1 of 1 All times are GMT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum