PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4658

PostPosted: Sat Aug 20, 2005 3:45 pm Reply with quote Back to top

Having discussed this at length in the 'blocks' forum, with Raven providing an excellent file for use - it might be a nice option to switch off certain forum categories in the collapsable, scrolling forum block too.

I cannot think of anything else it doesnt do except make a nice cup of coffee.
View user's profile Send private message Send e-mail Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7339
Location: Arizona

PostPosted: Sat Aug 20, 2005 6:45 pm Reply with quote Back to top

Ah... so you are the same Guardian afterall... Groovy I agree, that would be a nice add!
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15062
Location: Kansas

PostPosted: Sat Aug 20, 2005 7:24 pm Reply with quote Back to top

Try this and let me know if it works. In the collapsing forum block, find
Code:
error_reporting(0);
and add this line after
Code:
$hideTheseForums     = ''; // add forumid's as in '1,4,17'

Then find
Code:
$result = $db->sql_query( "SELECT topic_id, forum_id, topic_last_post_id, topic_title, topic_poster, topic_views, topic_replies, topic_moved_id, topic_status FROM ".$user_prefix."_bbtopics ORDER BY topic_last_post_id DESC");
and change it to
Code:
$result = $db->sql_query( "SELECT topic_id, forum_id, topic_last_post_id, topic_title, topic_poster, topic_views, topic_replies, topic_moved_id, topic_status FROM ".$user_prefix."_bbtopics WHERE forum_id NOT IN($hideTheseForums) ORDER BY topic_last_post_id DESC");

Let me know ASAP.


Last edited by Raven on Sun Aug 21, 2005 6:24 am; edited 1 time in total
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4658

PostPosted: Sun Aug 21, 2005 3:05 am Reply with quote Back to top

No that didnt work.
Everything within the block is set to its default values i.e. as it was when it was downloaded.
Added / changed the additional code setting $hideTheseForums to '46,47,48' which are the forums I would want to hide.

No forums at all are showing in the block but when selecting 'show' I see 'undefined' listed twice in forum topic.
View user's profile Send private message Send e-mail Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15062
Location: Kansas

PostPosted: Sun Aug 21, 2005 6:24 am Reply with quote Back to top

Laughing - Recopy it and try it.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15062
Location: Kansas

PostPosted: Sun Aug 21, 2005 8:08 am Reply with quote Back to top

Coming in 2.1.0 [so far]
Code:
# Version 2.1.0                                                        #
# 08/21/2005  : Added routine to allow manual hiding of selected forums#
#               Renamed a few variables for standardization purposes.  #
# 08/20/2005  : Added routine to adjust displayed post time by profile #
# 08/13/2005  : Added border="0" to xmlicon - Thanks CurtisH           #
#               Added manual routines to recognise admins and mods in  #
#               order to hilite their roles when mousing over their    #
#               icons in the Top 10 posters. This could be automated,  #
#               but until that happens, this will suffice.             #
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4658

PostPosted: Sun Aug 21, 2005 8:08 am Reply with quote Back to top

Yep, it was the ") at the end.
Oustanding!!!!!!!!!
Another donation coming your way as soon as I have something in PayPal.

Works perfectly!
View user's profile Send private message Send e-mail Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15062
Location: Kansas

PostPosted: Sun Aug 21, 2005 8:12 am Reply with quote Back to top

Actually the ORDER BY clause had to be moved AFTER the WHERE clause. It was late and I'm on drugs .....
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum