phpBB-TweakS
 
Advanced Search
   
 
Home Downloads FAQ Register FAQ Memberlist Usergroups Ranks
 
 

Please help us to develop!

 
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!
         

phpBB-TweakS Forum Index Announcements The 'phpBB [Network]'
Display posts from previous:   
Half Thread Topic  Fully Thread Topic  Download Topic
      All times are GMT - 5 Hours  
Post new topic  Reply to topic

Thu Jan 06, 2005 3:52 pm
Author Message
aUsTiN
Webmaster
Webmaster


Usa Georgia

Joined: 05 Jan 2005
Posts: 3684
Words Posted: 144,671
Average Post: 39.27

Location: USA

Post subject: The 'phpBB [Network]' Reply with quote

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
Quote:

</div>


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
      Back To Top  

Sun Jun 26, 2005 7:56 am
Author Message
aUsTiN
Webmaster
Webmaster


Usa Georgia

Joined: 05 Jan 2005
Posts: 3684
Words Posted: 144,671
Average Post: 39.27

Location: USA

Post subject: Reply with quote

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
      Back To Top  

Sun Jul 24, 2005 9:08 pm
Author Message
aUsTiN
Webmaster
Webmaster


Usa Georgia

Joined: 05 Jan 2005
Posts: 3684
Words Posted: 144,671
Average Post: 39.27

Location: USA

Post subject: Reply with quote

And once again i have changed the page_tail codes. Lets hope its right this time. lol
Post #3
      Back To Top  

Sun Jul 24, 2005 9:48 pm
Author Message
jsr
Support Team
Support Team


Joined: 06 Jan 2005
Posts: 407
Words Posted: 50,471
Average Post: 124.01


Post subject: Reply with quote

You do know one has been Suspended "bbSupport" and one hasn't got your link in there box"Disturbed Mods/Support" Cool
Post #4
      Back To Top  

Sun Jul 24, 2005 10:16 pm
Author Message
aUsTiN
Webmaster
Webmaster


Usa Georgia

Joined: 05 Jan 2005
Posts: 3684
Words Posted: 144,671
Average Post: 39.27

Location: USA

Post subject: Reply with quote

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
      Back To Top  

Mon Jul 25, 2005 2:28 pm
Author Message
Seteo-Bloke
Support Team
Support Team


Joined: 07 Jan 2005
Posts: 34
Words Posted: 1,097
Average Post: 32.26


Post subject: Reply with quote

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
      Back To Top  

Mon Jul 25, 2005 4:23 pm
Author Message
aUsTiN
Webmaster
Webmaster


Usa Georgia

Joined: 05 Jan 2005
Posts: 3684
Words Posted: 144,671
Average Post: 39.27

Location: USA

Post subject: Reply with quote

First suggestion is delete the cache file & remake it.
Post #7
      Back To Top  

Mon Jul 25, 2005 7:22 pm
Author Message
Disturbed One
Moderate TweakeR
Moderate TweakeR


Joined: 08 Jan 2005
Posts: 59
Words Posted: 2,482
Average Post: 42.07

Location: Bakersfield, CA

Post subject: Reply with quote

Sorry, I remodded my board from scratch and forgot to put it back on. You don't have to readd it.
Post #8
      Back To Top  

Tue Jul 26, 2005 3:53 am
Author Message
Seteo-Bloke
Support Team
Support Team


Joined: 07 Jan 2005
Posts: 34
Words Posted: 1,097
Average Post: 32.26


Post subject: Reply with quote

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
      Back To Top  

Tue Jul 26, 2005 6:50 am
Author Message
aUsTiN
Webmaster
Webmaster


Usa Georgia

Joined: 05 Jan 2005
Posts: 3684
Words Posted: 144,671
Average Post: 39.27

Location: USA

Post subject: Reply with quote

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
      Back To Top  

Wed Aug 24, 2005 1:48 pm
Author Message
Cool SGD Cool
Site Supporter
Site Supporter


Joined: 07 Jan 2005
Posts: 64
Words Posted: 11,067
Average Post: 172.92

Location: Washington

Post subject: Reply with quote

aUsTiN, I want to start my own network. Can you share the code on how to do that please. thx.
Post #11
      Back To Top  

Thu Nov 24, 2005 2:15 am
Author Message
Firestorm_Hellkite_
Moderate TweakeR
Moderate TweakeR


Joined: 24 Jan 2005
Posts: 67
Words Posted: 3,704
Average Post: 55.28

Location: USA,Florida

Post subject: Reply with quote

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
      Back To Top  

Thu Nov 24, 2005 7:49 am
Author Message
aUsTiN
Webmaster
Webmaster


Usa Georgia

Joined: 05 Jan 2005
Posts: 3684
Words Posted: 144,671
Average Post: 39.27

Location: USA

Post subject: Reply with quote

Feel free to "validate" the HTML however you see fit, but i dont personally plan on making any changes...
Post #13
      Back To Top  

Thu Nov 24, 2005 10:42 am
Author Message
Firestorm_Hellkite_
Moderate TweakeR
Moderate TweakeR


Joined: 24 Jan 2005
Posts: 67
Words Posted: 3,704
Average Post: 55.28

Location: USA,Florida

Post subject: Reply with quote

no ideas on why its coming up as errors then? I researched it, cant really find any topics on why its an error.
Post #14
      Back To Top  

Sun Jan 20, 2008 10:15 am
Author Message
volf
100 Club
100 Club


Joined: 07 Jan 2005
Posts: 122
Words Posted: 12,733
Average Post: 104.37

Location: Finland

Post subject: Reply with quote

i get a 404 on http://phpbb-tweaks.com/Network.txt
Post #15
      Back To Top  

Sun Feb 03, 2008 7:34 pm
Author Message
mario_guy
Amature TweakeR
Amature TweakeR


Joined: 29 Aug 2006
Posts: 25
Words Posted: 1,190
Average Post: 47.60


Post subject: Reply with quote

This service is no longer available.
Post #16
      Back To Top  

 
         

Post new topic  Reply to topic

phpBB-TweakS Forum Index Announcements The 'phpBB [Network]'
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


      Back To Top  

Page 1 of 1
Jump to:  
 
Protected by phpBB Security © phpBB-TweakS
phpBB Security Has Blocked 3,236 Exploit Attempts.

· Archive · Sitemap: Index · Sitemap: Forums · Sitemap: Topics · Sitemap: Posts ·

:: [ Load Time: 3.1 Seconds ] :: [ 31 Queries ] :: [ 2,319 Page(s) Viewed Today ] ::
:: [ Todays Queries: 71,409 ] :: [ Highest Load: 1,396,429 Queries On May. 08, 2007 ] ::
:: [ SQL Load: 64% Time: 2 ] :: [ PHP Load: 36% Time: 1.1 ] :: [ Debug: On ] :: [ GZIP: Enabled ] ::
:: The server last rebooted 36 days, 20 hours, 56 minutes, 37 seconds ago. ::

The phpBB[Network]!
       
Powered by phpBB 2.0.* © 2001, 2002 phpBB Group
Avalanche style by What Is Real © 2004