» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 63
0 members and 63 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
buy Rimonabant - Help dieters achieve significant weight loss without having to slog in the gym

Register Now! Contact Us

About this Page
This is a discussion on "View latest: 24h 48h 72h" for bbtonuke ? within the Nuke 7.x - General forums, part of the PHP-Nuke 7.x category; I hope I didn't overlook this anywhere. I have tried to search for it, with no luck. I would ...



Go Back   Nukemods Forum » PHP-Nuke 7.x » Nuke 7.x - General

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-2006, 10:45 AM
Junior Member
 
Join Date: Jun 2006
Posts: 3
"View latest: 24h 48h 72h" for bbtonuke ?
I hope I didn't overlook this anywhere. I have tried to search for it, with no luck.

I would really really like to have a "View latest: 24h 48h 72h" mod for my Nuke 7.x forums. I have searched all over the place and can't find a functioning mod for bbtonuke. Just the original phpBB mod is available and of course it does not function.

Maybe I'm missing something, if you guys can help, I will be most appreciative. The situation is, my members post a great deal of stuff, I take a look at the recent posts but don't always have time to reply to all of them, when I come back at a later time to catch up the posts are no longer highlighted so I am unable to find them again.

It's very frustrating. I had the last 24h mod working in phpBB before I switched to nuke and I really miss it. Helped me out a lot. I could always stay up to date with the forums very easily.

Again, hope I got the place to post this right and I hope I didn't look it over if this has already been addressed. Any help is appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-05-2006, 10:51 AM
Member
 
Join Date: Jul 2004
Posts: 450
Just asking but when you say not functioning what exactly do you mean, does it not display or something ?
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-05-2006, 10:58 AM
Junior Member
 
Join Date: Jun 2006
Posts: 3
as it is installed... it returns with...

"No topics or posts met your search criteria"

It might be a good idea to mention here that I'm not the guy that does the installing of the mod. I have a buddy that is much more capable than myself when it comes to installing these mods.

However, his time is valuable so I try and do as much of the work as I am able. At present, he has the mod installed but couldn't figure out why it's not working, so here I am trying to get the relevant information together to help him help me.

Again, I appreciate your replies. This is a big issue for me, and really the only hangup I have with my site right now. I'm missing a lot of content that as the admin I need to be able to keep up with.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-05-2006, 11:28 AM
Member
 
Join Date: Jul 2004
Posts: 450
Hmm sounds like a good mod... emm iam going to try and install this later myself. If it works out ok I will amend the instructions and report back.
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-05-2006, 12:49 PM
Member
 
Join Date: Jul 2004
Posts: 450
Works fine... you can see this in action on www.gamers-crib.com/modules.php?name=Forums down the bottom

I set mine to 72hours and to display Topics rather then Posts, its optional.

The only real changes made where the database .sql other then that it was just a matter to edit the right files.

PS: Dont let the word bbtonuke frighten you, its just php all php mods relative to phpbb can implemented into phpnuke all versions. The same goes for any kind of nuke Module, you might find around the net, they can all be added to any version of nuke, with a little editting if necessary.

Code:
##############################################################

#
#------[ SQL ]--------------------------------------
#
INSERT INTO nuke_bbconfig (config_name, config_value) VALUES ('search_latest_hours', '24,48,72');
INSERT INTO nuke_bbconfig (config_name, config_value) VALUES ('search_latest_results', 'topics');
#
#------[ OPEN ]--------------------------------------
#
modules/Forums/language/lang_english/lang_main.php
#
#------[ FIND ]--------------------------------------
#
//
// That's all, Folks!
// -------------------------------------------------
#
#------[ BEFORE, ADD ]-----------------------------
#
//+MOD: Search latest 24h 48h 72h
$lang['Search_latest'] = 'View latest';
$lang['Search_latest_XXh'] = '%dh';
//-MOD: Search latest 24h 48h 72h

#
#------[ OPEN ]--------------------------------------
#
modules/Forums/language/lang_english/lang_admin.php
#
#------[ FIND ]--------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
#
#------[ BEFORE, ADD ]-----------------------------
#
//+MOD: Search latest 24h 48h 72h
$lang['Search_latest_hours'] = 'Search latest (hours)';
$lang['Search_latest_hours_explain'] = 'Specify a comma separated list of numbers. These numbers will be used to dynamically build the search latest hours links on top of your forum index.';
$lang['Search_latest_hours_error'] = 'Invalid value entered in the \'Search latest (hours)\' field.

Please, specify a comma separated list of numbers.';
$lang['Search_latest_results'] = 'Search latest (results)';
$lang['Search_latest_results_explain'] = 'Specify how results of the the search latest hours links should be shown.';
//-MOD: Search latest 24h 48h 72h

#
#-----[ OPEN ]------------------------------------------
#
modules/Forums/index.php
#
#-----[ FIND ]-----------------------------------------
#
	$template->set_filenames(array(
		'body' => 'index_body.tpl')
	);
#
#-----[ AFTER, ADD ]----------------------------------
#

//+MOD: Search latest 24h 48h 72h
	$search_latest_hours = explode(',', $board_config['search_latest_hours']);

	for( $search_i = 0; $search_i < (count($search_latest_hours)-1); $search_i++ )
	{
		$template->assign_block_vars('search_latest', array(
			'L_SEARCH_LATEST_XXH' => sprintf($lang['Search_latest_XXh'], $search_latest_hours[$search_i]),
			'U_SEARCH_LATEST_XXH' => append_sid('search.'.$phpEx.'?search_id=latest&amp;hours=' . $search_latest_hours[$search_i])
		));
	}
	$template->assign_vars(array(
		'L_SEARCH_LATEST' => $lang['Search_latest'],
		'L_SEARCH_LATEST_XXH' => sprintf($lang['Search_latest_XXh'], $search_latest_hours[$search_i]),
		'U_SEARCH_LATEST_XXH' => append_sid('search.'.$phpEx.'?search_id=latest&amp;hours=' . $search_latest_hours[$search_i])
	));
//-MOD: Search latest 24h 48h 72h
#
#-----[ OPEN ]-----------------------------------------
# NOTE --- Remember to do this for all your installed styles
#
themes/Your_Theme/Forums/index_body.tpl
#
#-----[ FIND ]-----------------------------------------
# NOTE --- This is a partial match. The original line in subSilver looks something like this:
#		{L_SEARCH_UNANSWERED}</td>
#
{U_SEARCH_UNANSWERED}
#
#------[ BEFORE, ADD ]-----------------------------
#
		
		{L_SEARCH_LATEST}:
		
		{search_latest.L_SEARCH_LATEST_XXH}
		
		{L_SEARCH_LATEST_XXH}

		
#
#-----[ OPEN ]------------------------------------------------
#
modules/Forums/search.php
# 
#-----[ FIND ]----------------------------------------- 
# 
	//
	// Cycle through options ...
	//
	if ( $search_id == 'newposts' ||
#
# NOTE --- the previous is a partial search. The line should something like this:
#	if ( $search_id == 'newposts' || $search_id == 'egosearch' || $search_id == 'unanswered' || $search_keywords != '' || $search_author != '' ) 
#
#
#-----[ IN-LINE FIND ]----------------------------------------
#
$search_id == 'newposts'
# 
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
 || $search_id == 'latest'
# 
#-----[ FIND ]----------------------------------------- 
# 
		if ( $search_id == 'newposts' ||
#
# NOTE --- the previous is a partial search. The line should something like this:
#		if ( $search_id == 'newposts' || $search_id == 'egosearch' || ( $search_author != '' && $search_keywords == '' )  )
#
#
#-----[ IN-LINE FIND ]----------------------------------------
#
$search_id == 'newposts'
# 
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
 || $search_id == 'latest'
#
#-----[ FIND ]------------------------------------------------
#
			else if ( $search_id == 'egosearch' )
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//+MOD: Search latest 24h 48h 72h
			else if ( $search_id == 'latest' )
			{
				$search_latest_hours = explode(',', $board_config['search_latest_hours']);

				$latest_hours = intval( isset($HTTP_GET_VARS['hours']) ? $HTTP_GET_VARS['hours'] : $search_latest_hours[0] );
				if( !in_array($latest_hours, $search_latest_hours) )
				{
					$latest_hours = $search_latest_hours[0];
				}

				$sql = "SELECT post_id 
					FROM " . POSTS_TABLE . " 
					WHERE post_time > " . ( time() - ($latest_hours * 60 * 60) );

				$show_results = $board_config['search_latest_results'];
				$sort_by = 0;
				$sort_dir = 'DESC';
			}
//-MOD: Search latest 24h 48h 72h
#
#-----[ OPEN ]------------------------------------------------
#
modules/Forums/admin/admin_board.php
# 
#-----[ FIND ]----------------------------------------- 
# 
		if ($config_name == 'cookie_name')
#
#------[ BEFORE, ADD ]-----------------------------
#
//+MOD: Search latest 24h 48h 72h
		if ($config_name == 'search_latest_hours' && isset($HTTP_POST_VARS['submit']))
		{
			$temp = explode(',', $new['search_latest_hours']);
			sort($temp);
			for( $num = 0; $num < count($temp); $num++ )
			{
				if( ($temp[$num] = intval($temp[$num])) <= 0 )
				{
					message_die(GENERAL_ERROR, $lang['Search_latest_hours_error']);
				}
			}
			$new['search_latest_hours'] = implode(',', $temp);
			unset($temp, $num);
		}
//-MOD: Search latest 24h 48h 72h

# 
#-----[ FIND ]----------------------------------------- 
# 
$override_user_style_yes = ( $new['override_user_style'] ) ? "checked=\"checked\"" : "";
#
#------[ BEFORE, ADD ]-----------------------------
#
//+MOD: Search latest 24h 48h 72h
$search_latest_results_posts = ( $new['search_latest_results'] == 'posts' ) ? ' checked="checked"' : '';
$search_latest_results_topics = ( $new['search_latest_results'] != 'posts' ) ? ' checked="checked"' : '';
//-MOD: Search latest 24h 48h 72h

# 
#-----[ FIND ]----------------------------------------- 
# NOTE --- This is a partial match. The original line looks something like this:
#	"L_TOPICS_PER_PAGE" => $lang['Topics_per_page'],
# 
"L_TOPICS_PER_PAGE" =>
#
#------[ BEFORE, ADD ]-----------------------------
#
//+MOD: Search latest 24h 48h 72h
	'L_SEARCH_LATEST_HOURS' => $lang['Search_latest_hours'],
	'L_SEARCH_LATEST_HOURS_EXPLAIN' => $lang['Search_latest_hours_explain'],
	'L_SEARCH_LATEST_RESULTS' => $lang['Search_latest_results'],
	'L_SEARCH_LATEST_RESULTS_EXPLAIN' => $lang['Search_latest_results_explain'],
	'L_TOPICS' => $lang['Topics'],
	'L_POSTS' => $lang['Posts'],
//-MOD: Search latest 24h 48h 72h
# 
#-----[ FIND ]----------------------------------------- 
# NOTE --- This is a partial match. The original line looks something like this:
#	"TOPICS_PER_PAGE" => $new['topics_per_page'],
# 
"TOPICS_PER_PAGE" =>
#
#------[ BEFORE, ADD ]-----------------------------
#
//+MOD: Search latest 24h 48h 72h
	'SEARCH_LATEST_HOURS' => $new['search_latest_hours'],
	'SEARCH_LATEST_RESULTS_POSTS' => $search_latest_results_posts,
	'SEARCH_LATEST_RESULTS_TOPICS' => $search_latest_results_topics,
//-MOD: Search latest 24h 48h 72h
#
#-----[ OPEN ]------------------------------------------------
#
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND ]-----------------------------------------
# NOTE --- This is a partial match. The original line in subSilver looks something like this:
#	<tr>
#		<td class="row1">{L_TOPICS_PER_PAGE}</td>
#
<tr>
{L_TOPICS_PER_PAGE}
#
#------[ BEFORE, ADD ]-----------------------------
#
	
	<tr>
		<td class="row1">{L_SEARCH_LATEST_HOURS}:
<span class="gensmall">{L_SEARCH_LATEST_HOURS_EXPLAIN}</span></td>
		<td class="row2"><input class="post" type="text" name="search_latest_hours" size="30" maxlength="40" value="{SEARCH_LATEST_HOURS}" /></td>
	</tr>
	<tr>
		<td class="row1">{L_SEARCH_LATEST_RESULTS}:
<span class="gensmall">{L_SEARCH_LATEST_RESULTS_EXPLAIN}</span></td>
		<td class="row2"><input type="radio" name="search_latest_results" value="posts"{SEARCH_LATEST_RESULTS_POSTS} /> {L_POSTS}<input type="radio" name="search_latest_results" value="topics"{SEARCH_LATEST_RESULTS_TOPICS} /> {L_TOPICS}</td>
	</tr>
	
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# Marty
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-05-2006, 12:51 PM
Junior Member
 
Join Date: Jun 2006
Posts: 3
Fantastic. I'll have my friend try and make the adjustments. I'll let report back here as soon as I have results.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forum "View Topics" images do not show Soldierette Nuke 7.x - General 6 07-17-2006 03:00 AM
Random News "YES" / Center Block "NO" Liqid Site design 0 07-06-2005 07:47 PM
"Latest Post From Forums" central Block Stuck... noelmd Purged Topics 5 02-28-2003 08:08 AM
"Edit" and "Delete" -links in section? zlaxzzor Purged Topics 0 12-10-2002 12:04 PM
"Content" vs "Section" (didn't get it) klipywitz Purged Topics 1 12-06-2002 10:01 PM


All times are GMT -5. The time now is 12:48 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31