https://www.icyphoenix.com/viewtopic.php?f=26&t=3995
-----------------------------------
macxr8
Fri 04 Apr, 2008 14:13

FAP SUPPORT - FAP On A CH Modded Board
-----------------------------------
I am trying to install FAP, using a CH modded board.  Some of the lines in the files are not there so dont know where to put them....

I have been told by some of the guys over at CH that FAP should work with CH, but I can't seem to do it.

Any help be appreciated


-----------------------------------
KasLimon
Fri 04 Apr, 2008 15:12

Re: FAP On A CH Modded Board
-----------------------------------
If you can not find the lines specified, just try to do partial searchs...

But Ptirhiik has a lot of knowledge about programming and have modified hugely phpBB so I think if you do partial searchs you'll not find it neither...
Please tell us which instructions you can't find and we'll try to help you.

Also, your CH version would help :mricy: 

Greets!


-----------------------------------
macxr8
Sat 05 Apr, 2008 13:07

Re: FAP On A CH Modded Board
-----------------------------------
yea realised after some  more info would be handy :(

Anyhow, CH ver 2.1.6g
              PHPbb ver 2.0.22
[code]
#
#-----[ OPEN ]------------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------------
#
						case PAGE_FAQ:
							$location = $lang['Viewing_FAQ'];
							$location_url = "index.$phpEx?pane=right";
							break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
						// Mighty Gorgon - Full Album Pack - BEGIN
						case PAGE_ALBUM:
							$location = $lang['View_Album_Index'];
							$location_url = "index.$phpEx?pane=right";
							break;
						case PAGE_ALBUM_PERSONAL:
							$location = $lang['View_Album_Personal'];
							$location_url = "index.$phpEx?pane=right";
							break;
						case PAGE_ALBUM_PICTURE:
							$location = $lang['View_Pictures'];
							$location_url = "index.$phpEx?pane=right";
							break;
						case PAGE_ALBUM_SEARCH:
							$location = $lang['Album_Search'];
							$location_url = "index.$phpEx?pane=right";
							break;
						// Mighty Gorgon - Full Album Pack - END
[/code]
[code]#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl

[ FIND]

{L_USERGROUPS}</a>&nbsp;

[/code]

This one I am using a customized version and it doesnt have much in it.

here is my overall_header.tpl
[code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<link rel="stylesheet" href="templates/subSilver/fap.css" type="text/css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/c3s/{T_HEAD_STYLESHEET}" type="text/css">
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">





if ( {PRIVATE_MESSAGE_NEW_FLAG} ) {


	window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');


}





function newImage(arg) {


	if (document.images) {


		rslt = new Image();


		rslt.src = arg;


		return rslt;


	}


}





function changeImages() {


	if (document.images && (preloadFlag == true)) {


		for (var i=0; i<changeImages.arguments.length; i+=2) {


			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];


		}


	}


}





var preloadFlag = false;


function preloadImages() {


	if (document.images) {


		over_profile = newImage(/*URL*/'templates/c3s/images/profile_on.jpg');


		over_faq = newImage(/*URL*/'templates/c3s/images/faq_on.jpg');


		over_search = newImage(/*URL*/'templates/c3s/images/search_on.jpg');


		over_memberlist = newImage(/*URL*/'templates/c3s/images/memberlist_on.jpg');


		over_usergroups = newImage(/*URL*/'templates/c3s/images/usergroups_on.jpg');


		over_register = newImage(/*URL*/'templates/c3s/images/register_on.jpg');


		over_preferences = newImage(/*URL*/'templates/c3s/images/preferences_on.jpg');


		over_pms = newImage(/*URL*/'templates/c3s/images/pms_on.jpg');


		over_login = newImage(/*URL*/'templates/c3s/images/login_on.jpg');


		preloadFlag = true;


	}


}





</script>

<!-- END switch_enable_pm_popup -->
</head>
<body onLoad="preloadImages();" bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">





<table width="805" height="190" border="0" align="center" cellpadding="0" cellspacing="0">


	<tr>


		<td rowspan="5"><a name="top"></a><img src="templates/c3s/images/header_01.jpg" width="44" height="137" alt=""></td>


		<td rowspan="5"><img src="templates/c3s/images/header_02.jpg" width="42" height="137" alt=""></td>


		<td colspan="2"><img src="templates/c3s/images/header_03.jpg" alt="" width="94" height="40" border="0"></td>


		<td colspan="3"><a href="{U_MEMBERLIST}" onMouseOut="changeImages('Memberlist','templates/c3s/images/memberlist.jpg')" onMouseOver="changeImages('Memberlist','templates/c3s/images/memberlist_on.jpg')"><img src="templates/c3s/images/memberlist.jpg" name="Memberlist" width="173" height="40" border="0"></a></td>


		<td rowspan="7"><a href="http://www.trueblueford.com/index2.html"><img src="templates/c3s/images/header_05.jpg" alt="" width="111" height="189" border="0"></a></td>


		<!-- BEGIN switch_user_logged_out -->


		<td colspan="3"><a href="{U_REGISTER}" onMouseOut="changeImages('Reg','templates/c3s/images/register.jpg')" onMouseOver="changeImages('Reg','templates/c3s/images/register_on.jpg')"><img src="templates/c3s/images/register.jpg" name="Reg" width="177" height="40" border="0"></a></td>


		<!-- END switch_user_logged_out -->


		<!-- BEGIN switch_user_logged_in -->


		<td colspan="3"><a href="{U_PREFERENCES}" onMouseOut="changeImages('Pref','templates/c3s/images/preferences.jpg')" onMouseOver="changeImages('Pref','templates/c3s/images/preferences_on.jpg')"><img src="templates/c3s/images/preferences.jpg" name="Pref" width="177" height="40" border="0"></a></td>


		<!-- END switch_user_logged_in -->


		<td colspan="3"><img src="templates/c3s/images/header_07.jpg" width="117" height="40" alt=""></td>


		<td rowspan="5"><img src="templates/c3s/images/header_08.jpg" width="17" height="137" alt=""></td>


		<td rowspan="5"><img src="templates/c3s/images/header_09.jpg" width="29" height="137" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="1" height="40" alt=""></td>


	</tr>


	<tr>


		<td colspan="3"><a href="{U_SEARCH}" onMouseOut="changeImages('Search','templates/c3s/images/search.jpg')" onMouseOver="changeImages('Search','templates/c3s/images/search_on.jpg')"><img src="templates/c3s/images/search.jpg" name="Search" width="181" height="35" border="0"></a></td>


		<td colspan="2"><img src="templates/c3s/images/header_11.jpg" width="86" height="35" alt=""></td>


		<td colspan="2"><img src="templates/c3s/images/header_12.jpg" width="89" height="35" alt=""></td>


		<td colspan="3"><a href="{U_GROUP_CP}" onMouseOut="changeImages('Usergroups','templates/c3s/images/usergroups.jpg')" onMouseOver="changeImages('Usergroups','templates/c3s/images/usergroups_on.jpg')"><img src="templates/c3s/images/usergroups.jpg" name="Usergroups" width="183" height="35" border="0"></a></td>


		<td rowspan="2"><img src="templates/c3s/images/header_14.jpg" width="22" height="70" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="1" height="35" alt=""></td>


	</tr>


	<tr>


		<td rowspan="2"><img src="templates/c3s/images/header_15.jpg" width="70" height="41" alt=""></td>


		<td colspan="4" rowspan="2"><a href="{U_FAQ}" onMouseOut="changeImages('FAQS','templates/c3s/images/faq.jpg')" onMouseOver="changeImages('FAQS','templates/c3s/images/faq_on.jpg')"><img src="templates/c3s/images/faq.jpg" name="FAQS" width="197" height="41" border="0"></a></td>


		<td colspan="4"><a href="{U_PRIVATEMSGS}" onMouseOut="changeImages('PM','templates/c3s/images/pms.jpg')" onMouseOver="changeImages('PM','templates/c3s/images/pms_on.jpg')"><img src="templates/c3s/images/pms.jpg" name="PM" width="196" height="35" border="0"></a></td>


		<td><img src="templates/c3s/images/header_18.jpg" width="76" height="35" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="1" height="35" alt=""></td>


	</tr>


	<tr>


		<td rowspan="3"><img src="templates/c3s/images/header_19.jpg" width="84" height="49" alt=""></td>


		<td colspan="5" rowspan="3"><a href="{U_LOGIN_LOGOUT}" onMouseOut="changeImages('LogIn','templates/c3s/images/login.jpg')" onMouseOver="changeImages('LogIn','templates/c3s/images/login_on.jpg')"><img src="templates/c3s/images/login.jpg" name="LogIn" width="210" height="49" border="0"></a></td>


		<td><img src="templates/c3s/images/spacer.gif" width="1" height="6" alt=""></td>


	</tr>


	<tr>


		<td colspan="4" rowspan="2"><a href="{U_PROFILE}" onMouseOut="changeImages('Profile','templates/c3s/images/profile.jpg')" onMouseOver="changeImages('Profile','templates/c3s/images/profile_on.jpg')"><img src="templates/c3s/images/profile.jpg" name="Profile" width="215" height="43" border="0"></a></td>


		<td rowspan="3"><img src="templates/c3s/images/header_22.jpg" width="52" height="73" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="1" height="21" alt=""></td>


	</tr>


	<tr>


		<td colspan="2" rowspan="2"><img src="templates/c3s/images/header_23.jpg" width="86" height="52" alt=""></td>


		<td colspan="2" rowspan="2"><img src="templates/c3s/images/header_24.jpg" width="46" height="52" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="1" height="22" alt=""></td>


	</tr>


	<tr>


		<td colspan="4"><img src="templates/c3s/images/header_25.jpg" width="215" height="30" alt=""></td>


		<td colspan="6"><img src="templates/c3s/images/header_26.jpg" width="294" height="30" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="1" height="30" alt=""></td>


	</tr>


	<tr>


		<td><img src="templates/c3s/images/spacer.gif" width="44" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="42" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="70" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="24" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="87" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="34" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="52" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="111" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="84" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="5" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="88" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="19" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="76" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="22" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="17" height="1" alt=""></td>


		<td><img src="templates/c3s/images/spacer.gif" width="29" height="1" alt=""></td>


		<td></td>


	</tr>

</table>

		<br />
		{CALENDAR_BOX}
        <!-- Start CH IMPortal -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr> 
			{PORTAL_HEADER}
			<td width="10"><img src="{I_SPACER}" alt="" width="10" height="30" /></td>
			<td valign="top">
<!-- Finish CH IMPortal -->
[/code]

thats about it.
I have done all the other editing, and from the ACP it seems to be working from there.

Again any help appreciated.


-----------------------------------
KasLimon
Sat 05 Apr, 2008 15:47

Re: FAP On A CH Modded Board
-----------------------------------
No problem :mricy: 

I think this would work:[codeblock]
#
#-----[ OPEN ]------------------------------------------------
#
includes/class_stats_online.php
#
#-----[ FIND ]------------------------------------------------
#
			PAGE_GROUPCP => array('txt' => 'Viewing_groups', 'url' => $this->mode == 'in_admin' ? 'admin/index' : 'groupcp', 'parms' => $this->mode == 'in_admin' ? array('pane' => 'right') : array()),
#
#-----[ AFTER, ADD ]------------------------------------------
#
			// Mighty Gorgon - Full Album Pack - BEGIN
			PAGE_ALBUM => array('txt' => 'View_Album_Index', 'url' => $this->mode == 'in_admin' ? 'admin/index' : 'album', 'parms' => $this->mode == 'in_admin' ? array('pane' => 'right') : array()),
			PAGE_ALBUM_PERSONAL => array('txt' => 'View_Album_Personal', 'url' => $this->mode == 'in_admin' ? 'admin/index' : 'album', 'parms' => $this->mode == 'in_admin' ? array('pane' => 'right') : array()),
			PAGE_ALBUM_PICTURE => array('txt' => 'View_Pictures', 'url' => $this->mode == 'in_admin' ? 'admin/index' : 'album', 'parms' => $this->mode == 'in_admin' ? array('pane' => 'right') : array()),
			PAGE_ALBUM_SEARCH => array('txt' => 'Album_Search', 'url' => $this->mode == 'in_admin' ? 'admin/index' : 'album', 'parms' => $this->mode == 'in_admin' ? array('pane' => 'right') : array()),
			// Mighty Gorgon - Full Album Pack - END
[/codeblock]
[codeblock]#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl

#
#-----[ FIND ]------------------------------------------------
#
		<td colspan="4" rowspan="2"><a href="{U_FAQ}" onMouseOut="changeImages('FAQS','templates/c3s/images/faq.jpg')" onMouseOver="changeImages('FAQS','templates/c3s/images/faq_on.jpg')"><img src="templates/c3s/images/faq.jpg" name="FAQS" width="197" height="41" border="0"></a></td>
#
#-----[ AFTER, ADD ]------------------------------------------------
#
		<td colspan="4" rowspan="2"><a href="{U_ALBUM}" onMouseOut="changeImages('ALBUM','templates/c3s/images/album.jpg')" onMouseOver="changeImages('ALBUM','templates/c3s/images/album_on.jpg')"><img src="templates/c3s/images/album.jpg" name="ALBUM" width="197" height="41" border="0"></a></td>[/codeblock]
You'll have to create templates/c3s/images/album.jpg and templates/c3s/images/album_on.jpg images.

Greets!


-----------------------------------
macxr8
Mon 07 Apr, 2008 12:47

Re: FAP On A CH Modded Board
-----------------------------------
seems to be working ok my test PC.


however I have found another piece of code :(

[code]viewonline.php
#
#-----[ FIND ]------------------------------------------------
#
				case PAGE_FAQ:
					$location = $lang['Viewing_FAQ'];
					$location_url = "faq.$phpEx";
					break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
				// Mighty Gorgon - Full Album Pack - BEGIN
				case PAGE_ALBUM:
					$location = $lang['View_Album_Index'];
					$location_url = "album.$phpEx";
					break;
				case PAGE_ALBUM_PERSONAL:
					$location = $lang['View_Album_Personal'];
					$location_url = "album_personal_index.$phpEx";
					break;
				case PAGE_ALBUM_PICTURE:
					$location = $lang['View_Pictures'];
					$location_url = "album.$phpEx";
					break;
				case PAGE_ALBUM_SEARCH:
					$location = $lang['Album_Search'];
					$location_url = "album.$phpEx";
					break;
				// Mighty Gorgon - Full Album Pack - END
[/code]

thanks for your help :) :mrviolet:


-----------------------------------
KasLimon
Tue 08 Apr, 2008 10:02

Re: FAP On A CH Modded Board
-----------------------------------
I think this modification is unnecessary. Ask a user to enter album search and then go to Who is online section.
It should show the user is in album search. If it doesn't, I'll search the solution

Greets! :mricy:


-----------------------------------
macxr8
Thu 10 Apr, 2008 14:17

Re: FAP On A CH Modded Board
-----------------------------------
thanks, that all seems to be working well now, so far am limiting access to certain members of the board to help debug it then I will release to all members


