|
|
It appears you are using a browser that is not based on Internet Explorer, this means you are not viewing the web as good as you should be. Other browsers might try to immitate Internet Explorer, but none can parse the web as it should like Internet Explorer can. So view the web as it was meant to be with Avant Browser!
|
| |
|
|
All times are GMT - 5 Hours
|
|
 |
Thu Jan 06, 2005 3:52 pm |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: The 'phpBB [Network]' |
|
|
Some have asked how they can add this to their boards, to support the sites that are in turn support phpBB & offering support to the community.
Its real simple
OPEN
includes/page_tail.php
FIND
| Code: |
$template->pparse('overall_footer');
|
ADD, BEFORE
| Code: |
#======================================================================= |
#==== Start: == phpBB Network ========================================== |
#======================================================================= |
#====
if (strlen(file_get_contents('http://phpbb-tweaks.com/Network.txt')) != 15232)
{
$file = @file('http://phpbb-tweaks.com/Network.txt');
for ($network = 0; $network < count($file); $network++)
{
$seperated = '';
$seperated = explode(';', $file[$network]);
$template->assign_block_vars('Network', array(
'SITES' => $seperated[0],
'LINKS' => $seperated[1])
);
}
$make_file = @file($phpbb_root_path .'cache/phpBB_TweakS_Network.cache');
$offsite_size = strlen(file_get_contents('http://phpbb-tweaks.com/Network.txt'));
$server_side_size = strlen(file_get_contents('http://'. $board_config['server_name'] . $board_config['script_path'] .'cache/phpBB_TweakS_Network.cache'));
if ($offsite_size != $server_side_size)
{
$fwrite = @fopen($phpbb_root_path .'cache/phpBB_TweakS_Network.cache', "w+");
for ($x = 0; $x < count($file); $x++)
@fwrite($fwrite, $file[$x]);
@fclose($fwrite);
}
}
else
{
$file = @file($phpbb_root_path .'cache/phpBB_TweakS_Network.cache');
for ($network = 0; $network < count($file); $network++)
{
$seperated = '';
$seperated = explode(';', $file[$network]);
$template->assign_block_vars('Network', array(
'SITES' => $seperated[0],
'LINKS' => $seperated[1])
);
}
}
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-tweaks.com] = |
#==== End: ==== phpBB Network ========================================== |
#======================================================================= |
|
CLOSE & SAVE
OPEN
templates/*/overall_footer.tpl
FIND
ADD, AFTER
| Quote: |
<div align="left">
<span class="genmed">
<form name="network">
<a style="cursor: hand;" title="These sites are not affiliated with phpBB.com">The phpBB[Network]!</a><br>
<select size="1" name="url" onchange="if(options[selectedIndex].value)window.location.href=(options[selectedIndex].value)">
<!-- BEGIN Network -->
<option value="{Network.LINKS}">{Network.SITES}</option>
<!-- END Network -->
</select>
</form>
</span>
</div>
|
CLOSE & SAVE
#==== Thats it
If you want to move this on your board thats fine, this is just an easy
way to add it to your footer so its out of the way.
===================================
===================================
===================================
If you want to join the network of sites that help the community, then please add this to your board & PM me with the site so we can get it added to display in everyones listing.
The only requirements are it be a site related to helping phpBB users & you keep the listing on your board to help the other support boards as well as yours.
Last edited by aUsTiN on Sun Jul 24, 2005 9:07 pm; edited 1 time in total |
|
| Post #1 |
|
|
 |
Sun Jun 26, 2005 7:56 am |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: |
|
|
| Ok, i have ammended the page_tail.php codes. This should now use a server side file (located on your server) anytime my server goes down or it cant grab my file, this way no one elses site lags. |
|
| Post #2 |
|
|
 |
Sun Jul 24, 2005 9:08 pm |
 |
 |
Sun Jul 24, 2005 9:48 pm |
 |
 |
Sun Jul 24, 2005 10:16 pm |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: |
|
|
| The suspended one i dont mind, things happen. So for now it can stay. however disturbed has been removed. I really dont have time to check on little things like that, but thank you for bringing it to my attention. |
|
| Post #5 |
|
|
 |
Mon Jul 25, 2005 2:28 pm |
 |
Author |
Message |
Seteo-Bloke Support Team

Joined: 07 Jan 2005 Posts: 34 Words Posted: 1,097 Average Post: 32.26
|
| Post subject: |
|
|
I've just amended the code and I'm seeing this in the page_tail now:
| Quote: |
Warning: file_get_contents(http://www.phpbb-adr.com/adr/cache/phpBB_TweakS_Network.cache): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/sete0125/public_html/adr/includes/page_tail.php on line 249
|
...even though there is a file in my cache dir by that name. |
|
| Post #6 |
|
|
 |
Mon Jul 25, 2005 4:23 pm |
 |
 |
Mon Jul 25, 2005 7:22 pm |
 |
 |
Tue Jul 26, 2005 3:53 am |
 |
Author |
Message |
Seteo-Bloke Support Team

Joined: 07 Jan 2005 Posts: 34 Words Posted: 1,097 Average Post: 32.26
|
| Post subject: |
|
|
| aUsTiN wrote: | | First suggestion is delete the cache file & remake it. |
Already tried it. It recreates it fine but still the error is showing in the tail. |
|
| Post #9 |
|
|
 |
Tue Jul 26, 2005 6:50 am |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: |
|
|
k, do you have a htaccess in that folder or something?
Forgot i have your FTP & you do have a .htaccess in the cache folder & here is what it is.
| Code: |
<Limit GET POST PUT>
Order Allow,Deny
Deny from All
</Limit>
|
And thats why the 403 error. |
|
| Post #10 |
|
|
 |
Wed Aug 24, 2005 1:48 pm |
 |
 |
Thu Nov 24, 2005 2:15 am |
 |
Author |
Message |
Firestorm_Hellkite_ Moderate TweakeR

Joined: 24 Jan 2005 Posts: 67 Words Posted: 3,704 Average Post: 55.28 Location: USA,Florida
|
| Post subject: |
|
|
Just a heads up,
validating html on my sites.. and this is a error i get about your form..
Error Line 678, column 32: required attribute "ACTION" not specified .
<form name="network">
Error Line 678, column 32: document type does not allow element "FORM" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME" start-tag .
<form name="network">
Dont know if you have a fix, or i will find one before you reply. |
|
| Post #12 |
|
|
 |
Thu Nov 24, 2005 7:49 am |
 |
 |
Thu Nov 24, 2005 10:42 am |
 |
 |
Sun Jan 20, 2008 10:15 am |
 |
 |
Sun Feb 03, 2008 7:34 pm |
 |
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
|
|
Protected by phpBB Security © phpBB-TweakS phpBB Security Has Blocked 3,228 Exploit Attempts.
· Archive · Sitemap: Index · Sitemap: Forums · Sitemap: Topics · Sitemap: Posts ·
:: [ Load Time: 2.9 Seconds ] :: [ 29 Queries ] :: [ 2,034 Page(s) Viewed Today ] :: :: [ Todays Queries: 64,299 ] :: [ Highest Load: 1,396,429 Queries On May. 08, 2007 ] :: :: [ SQL Load: 60% Time: 1.7 ] :: [ PHP Load: 40% Time: 1.2 ] :: [ Debug: On ] :: [ GZIP: Enabled ] :: :: The server last rebooted 120 days, 14 hours, 36 minutes, 21 seconds ago. ::
|
|
|