[BETA] NutPort beta1 released!!!!

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

[BETA] NutPort beta1 released!!!!

Post by Nuttzy99 » Fri Jun 28, 2002 6:44 pm

This started out as something I "made by accident" in one weekend. However, in order to turn it in to something the general public could use, it was a ton of work and definitely no accident. Thanks to everyone that patiently waited. I couldn't forsee my free-time evaporating to nothing, which is what really dragged things out.

Okay, enough is enough and it is time to get *something* released!!! It's not perfect in that a few things are missing, but it's pretty damn close :D If someone wants to make a legitamate mod script out of this, that would be greatly appreciated ;)

I decided on the name NutPort (Nuttzy's Portal) b/c I didn't spend any time thinking of a good name ;) Obviously I don't want to use phpBBportal or anything that will soon be used by the phpBB team.

This should work, but until I get sometime to finesse the instructions, I'll have to say that only advanced moders should attempt to install this. It's not real hard, it's just that the directions could be too much for a beginner.

Download the files you need here (24k): www.blizzhackers.com/phpBB/NutPort/NutPort-beta1-2.zip

To install:

install my Left-Right Image tags mod:
It's really easy to install and makes a big difference with the NutPort. Get the info here: http://forums.blizzhackers.com/viewtopic.php?t=5541


create a new table:
Thanks to BlackPit, you can download and run inside phpMyAdmin this sql file: www.blizzhackers.com/phpBB/NutPort/NutPort.sql
table name: phpbb_portal
portal_id => mediumint( 8 ) auto_increment
portal_order => mediumint( 8 )
portal_title => varchar(60)
portal_description => text (NULL)
portal_bbcode_id => varchar(10)
portal_use_url => tinyint(1) (NULL)
portal_forum => mediumint( 8 )
portal_url => varchar(250)
portal_list_limit => mediumint( 8 )
portal_ascending => tinyint(1) (NULL)
portal_nodate => tinyint(1) (NULL)
portal_button_name => varchar(100)
portal_button_image => varchar(100)
portal_navbar => tinyint(1) (NULL)
portal_login => tinyint(1) (NULL)
portal_online => tinyint(1) (NULL)
portal_latest => tinyint(1) (NULL)
portal_poll => tinyint(1) (NULL)

copy files:
copy portal.php to the main directory
copy admin_portal.php to admin

(these templates should work with any subSilver spin-off)
copy portal_body.tpl and portal_navbar.tpl to templates/subSilver
copy portal_edit.tpl, portal_help.tpl, and portal_select_body.tpl to templates/subSilver/admin
copy portal.gif and portal_Select.gif to templates/subSilver/images


insert into language/lang_english/lang_admin:
//
// Portal pages
//
$lang['Portal'] = 'Portal Pages';
$lang['Portal_updated'] = 'Portal settings updated';
$lang['Portal_added'] = 'Portal page added';
$lang['Click_return_portal'] = 'Click %sHere%s to return to Portal Control';
$lang['Look_up_Portal'] = 'Look up Portal';
$lang['Portal_Control'] = 'Portal Control';
$lang['Portal_Help'] = 'Portal Options Help' ;
$lang['Portal_explain'] = 'Here you can alter the for existing portal pages or add new portal pages.';
$lang['Select_a_Portal'] = 'Select a Portal';
$lang['New_Portal_Page'] = '--CREATE NEW PAGE--' ;

$lang['Edit_Portal'] = 'Edit Portal Page' ;
$lang['Page_Name'] = 'Page Name' ;
$lang['Description_body'] = 'Description Body' ;
$lang['Portal_Destination'] = 'Portal Destination' ;
$lang['List_Limit'] = 'List Limit' ;
$lang['Posts_Order'] = 'Posts Order' ;
$lang['Display_Date'] = 'Display Date' ;
$lang['Button_Name'] = 'Button Name' ;
$lang['Button_Image'] = 'Button Image' ;
$lang['Show_Navbar'] = 'Show Nav Bar' ;
$lang['Show_Login'] = 'Show Login Box' ;
$lang['Show_Online'] = 'Show Online Info' ;
$lang['Show_Latest'] = 'Show Latest Posts' ;
$lang['Show_Poll'] = 'Show Poll' ;
$lang['Ascending'] = 'Oldest Posts First' ;
$lang['Desending'] = 'Newest Posts First' ;
$lang['Dest_Forum'] = 'Select a Forum' ;
$lang['Dest_URL'] = 'Enter a URL' ;
$lang['Options_Info'] = 'Click here for portal options info' ;

$lang['Page_Name_Help'] = 'the title displayed just before the list of posts (news items); please note that the first portal page created will be treated as the main start page for your portal' ;
$lang['Description_body_Help'] = 'the portal page description; can use all BBCodes and smilies' ;
$lang['Portal_Destination_Help'] = 'you must either select a forum from which the portal page will display the first post of each topic or enter a URL for which the navbar button will link to instead of a portal page' ;
$lang['List_Limit_Help'] = 'the number of news items (topics) to display; 0 will display all items' ;
$lang['Posts_Order_Help'] = 'ascending or descending topic order' ;
$lang['Display_Date_Help'] = 'toggle displaying the date for news items' ;
$lang['Button_Name_Help'] = 'name of this portal page to be displayed on top of its button in the navbar; if left blank the entire button is clickable which is convient for custom buttons' ;
$lang['Button_Image_Help'] = "button image to be used in the navbar; do not specify the extension (must be a gif file); use 'portal' for the default image; remember, there are actually TWO button images, the second one being '_Select' for when the portal page is currently being viewed" ;
$lang['Show_Navbar_Help'] = 'Display the navigation bar on the page' ;
$lang['Show_Login_Help'] = 'Display the login box on the page' ;
$lang['Show_Online_Help'] = "Display the who's on-line information on the page" ;
$lang['Show_Latest_Help'] = 'Display the latest news box on the page' ;
$lang['Show_Poll_Help'] = 'Display the poll on the page' ;


insert into includes/constants.php
define('PORTAL_TABLE', $table_prefix.'portal');

edit overall_header.tpl:
down the bottom, directly after the <tr></tr> that contains {L_LOGIN_LOGOUT} add:

Code: Select all

					<tr>
					  <td nowrap="nowrap" valign="top" height="25" align="center"><span class="genmed">
						<a href="{U_INDEX}">{L_FORUMS}</a> | <a href="{U_HOME_INDEX}">{L_HOME}</a></span></td>
					</tr>
edit includes/page_header.php:
after the line with L_WHOSONLINE_MOD add:

Code: Select all

        'L_FORUMS' => $lang['Forums_Header'],
        'L_HOME' => $lang['Home_Header'],

        'U_HOME_INDEX' => append_sid("portal.".$phpEx),
edit lang_main.php:
insert the following (i put it down the bottom, but you can put it anywhere):

Code: Select all

$lang['Forums_Header'] = "Forums" ;
$lang['Home_Header'] = "Home" ;
setup the polls:
You need to create a forum that will be used for just polls. Make it so only the admin can create new topics for that forum. Get the forum id by looking at the link to your newly created forum. You will need to remember this number. Edit portal.php. Find "WHERE t.forum_id = 13" and change the "13" to whatever your actual forumid is.

linking to the main page:
If you take my site for example, www.blizzhackers.com takes you to my main portal page even the actual URL is forums.blizzhackers.com/portal.php?page=1 To correctly get things pointed I replaced my old index.php for my main site with a new one that redirects to the proper page. Here is the entire contents of that file:

Code: Select all

<?php

header("Location: http://forums.blizzhackers.com/portal.php?page=1") ;

?>
...that's it!


Enjoy!!!
-Nuttzy :cool:

[EDIT: just improved some of the admin help stuff a bit ;)]
[EDIT: fixed a bug with polls, changed to beta1-1]
[EDIT: 6-29: fixed a bug with anon users, changed to beta1-2]
Last edited by Nuttzy99 on Sat Jun 29, 2002 6:02 pm, edited 4 times in total.
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

User avatar
TC
Former Team Member
Posts: 3633
Joined: Tue Sep 25, 2001 7:23 pm
Location: Kµlt °ƒ Ø, working on my time machine

Post by TC » Fri Jun 28, 2002 6:52 pm

NUTZZY!!!! WOO-HOO!!!

can't wait to get home and play with this!!
.:: 28:Ø6:42:12 ::.

Jay
Former Team Member
Posts: 807
Joined: Wed Nov 07, 2001 11:41 pm
Location: Austin, TX
Contact:

Post by Jay » Fri Jun 28, 2002 6:58 pm

you got any screen shots?? :D
Themes: :: dvdfuture.com theme
Web Sites: Development Site for dvdfuture.com :: http://www.dvdfuture.com
The phpBB Portal is Not dead!

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 » Fri Jun 28, 2002 7:18 pm

Jay wrote: you got any screen shots?? :D


For the admin panel, check these out (they are all big):
www.blizzhackers.com/phpBB/NutPort/ss_admin01.gif
www.blizzhackers.com/phpBB/NutPort/ss_admin02.gif
www.blizzhackers.com/phpBB/NutPort/ss_admin03.gif

Notice on the last one that it should easily work with other themes. Also notice that I had clicked on the help link which explains what all these things do.


For the the actual look, just check out www.blizzhackers.com where I am running it live ;)

-NUttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

Jay
Former Team Member
Posts: 807
Joined: Wed Nov 07, 2001 11:41 pm
Location: Austin, TX
Contact:

Post by Jay » Fri Jun 28, 2002 7:31 pm

wow.. that's pretty cool... must of taken you awhile to get it up and going :)

i know a lot of people will like this...
Themes: :: dvdfuture.com theme
Web Sites: Development Site for dvdfuture.com :: http://www.dvdfuture.com
The phpBB Portal is Not dead!

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 » Fri Jun 28, 2002 8:13 pm

I'm curious to see who will be the first to get it up and running :D

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

User avatar
-=Ash=-
Registered User
Posts: 58
Joined: Sat Apr 13, 2002 1:44 am
Contact:

Post by -=Ash=- » Fri Jun 28, 2002 8:33 pm

But it is nap time and I am still having problems reating the table LOL

User avatar
Sevengraff
Registered User
Posts: 7
Joined: Fri Jun 28, 2002 2:00 am
Contact:

Re: [beta] NutPort beta1 released!!!!

Post by Sevengraff » Fri Jun 28, 2002 9:03 pm

this seems like a long install progress, but Im sure it will be worth it.

User avatar
-=Ash=-
Registered User
Posts: 58
Joined: Sat Apr 13, 2002 1:44 am
Contact:

Post by -=Ash=- » Fri Jun 28, 2002 9:07 pm

I really LOVE Mysql did I mention that!
Last edited by -=Ash=- on Sat Jun 29, 2002 12:22 am, edited 1 time in total.

User avatar
-=Ash=-
Registered User
Posts: 58
Joined: Sat Apr 13, 2002 1:44 am
Contact:

Post by -=Ash=- » Fri Jun 28, 2002 9:56 pm

Its running. Not very pretty yet but it is running.

User avatar
TC
Former Team Member
Posts: 3633
Joined: Tue Sep 25, 2001 7:23 pm
Location: Kµlt °ƒ Ø, working on my time machine

Post by TC » Fri Jun 28, 2002 10:01 pm

wow ash, that was fast!!! looks like just a couple tweaks and you're ready to roll!

impressive!!

unfortunately i'm sure it will take me weeks to get mine going.... ;)
.:: 28:Ø6:42:12 ::.

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 » Fri Jun 28, 2002 10:09 pm

I'm watching, so if you get in a jam let me know ;)

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

User avatar
-=Ash=-
Registered User
Posts: 58
Joined: Sat Apr 13, 2002 1:44 am
Contact:

Post by -=Ash=- » Fri Jun 28, 2002 10:58 pm

Major thank yous to Nuttzy for the portal, and TC for the compliments 8)

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Re: [beta] NutPort beta1 released!!!!

Post by Nuttzy99 » Fri Jun 28, 2002 11:05 pm

Looking good Ash!! However I can tell that you did not complete at least one of these two steps. They make the it so people can jump back and forth between the forum and portal easily.
Nuttzy99 wrote: edit includes/page_header.php:
after the line with L_WHOSONLINE_MOD add:

Code: Select all

        'L_FORUMS' => $lang['Forums_Header'],
        'L_HOME' => $lang['Home_Header'],

        'U_HOME_INDEX' => append_sid("portal.".$phpEx),

edit lang_main.php:
insert the following (i put it down the bottom, but you can put it anywhere):

Code: Select all

$lang['Forums_Header'] = "Forums" ;
$lang['Home_Header'] = "Home" ;


Also, I'm curious, was it confusing how the navbar buttons work? I did take some extra time making it so the text would float over a default button so people wouldn't have to make a custom button for every new page like my site has. Keep it up, you're almost there!!

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

User avatar
RMS
Registered User
Posts: 517
Joined: Sun Apr 21, 2002 1:53 am
Location: I'm not sure

Post by RMS » Fri Jun 28, 2002 11:26 pm

Excuse me, I wish to view your forums at least to see the live demo that I assume you have setup for this, as well as to view your other mods and whatnot. However, it seems I am still banned and I'm not sure why...?
Is that supposed to be, or is there just another way to access your board? :?
This is my signature.

Post Reply

Return to “[2.0.x] MODs in Development”