|
| Author |
Message |
Triumvirate
Joined: 10 Sep 2005
Posts: 262
Location: New York, USA
|
Posted: 3/20/2006, 4:22 pm Post subject: Jumpbox for multiple sites |
|
|
Just wondering how many people, if you have multiple sites/communities, have some sort of jumpbox set up to allow quick access between them. Basically like what Patrick has in the header of all his communities/sites with his network bar and the box at the end where you can select any of the websites and be taken there. (doesn't necessarily have to be as "fancy" as what Patrick has, a simple box is also effective)
Anyone else do this to help people navigate across multiple communities? Is it a useful tool for promoting other sites in your network if people have easier access to them? |
|
| Back to top |
|
 |
Nick
Joined: 09 Sep 2005
Posts: 775
Location: Next to the stereo
|
|
| Back to top |
|
 |
Patrick
Administrator
Joined: 28 Aug 2005
Posts: 2073
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
Truestar
Moderator
Joined: 10 Sep 2005
Posts: 769
Location: New York, United States
|
Posted: 3/21/2006, 3:57 pm Post subject: |
|
|
Patrick's looks nice, and isn't too big. As seeing as I'm active at two of his communities it is nice to have that up there.
I would like one, but aren't sure what to do. It defintiely won't put a negative effect on anything. _________________ Truestar
Xbox Live: xTruestarx
Visit phpBBhacks.com for your phpBB templates, graphics, and modifications
Visit ManagingCommunities.com for tips on running a forum. Get advice from site management to the politics of running a forum. |
|
| Back to top |
|
 |
Patrick
Administrator
Joined: 28 Aug 2005
Posts: 2073
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
Nick
Joined: 09 Sep 2005
Posts: 775
Location: Next to the stereo
|
Posted: 3/22/2006, 6:25 pm Post subject: |
|
|
| Patrick wrote: |
Hello,
When you say you aren't sure what to do, how do you mean? Would you like my code, info on how I do it, etc.? If so, let me know and I'll post up my code and how it all works.  |
*raises hand*
I guess I'd like it. _________________ [The Smash Syndicate] Ek Pyros - Out of Fire |
|
| Back to top |
|
 |
~HG~
Joined: 25 Sep 2005
Posts: 423
Location: Australia
|
Posted: 3/23/2006, 2:04 am Post subject: |
|
|
Actually Patrick, that is something that I would like to have if you dont mind.
I dont have as many sites as you of course but the 6 I do have would probably do well with the jumpbox installed on all of them. _________________ ~HG~
|| Click here to view all my phpBB Communities || |
|
| Back to top |
|
 |
Patrick
Administrator
Joined: 28 Aug 2005
Posts: 2073
Location: Harbinger, NC, U.S.A.
|
Posted: 3/23/2006, 10:06 am Post subject: |
|
|
Hello,
Sure thing. I'll explain how it works in all facets. The network bar is a PHP include on all sites. The file included is networkbar.html. Every domain gets their own networkbar.html file that they include, so when I update it, I have to upload one-two files on all sites (takes about 2-3 minutes, which is great). Sometimes this is easily done with your everyday PHP include. Sometimes it is not, like in phpBB. I have to install the eXtreme Styles Hack so that I could put a PHP include in overall_header.tpl. So, based on the software you run, you may have to install some hack/do something to get a PHP include to work.
The network bar has three graphics associated with it. networkleft.jpg (the left "cap" and the logo), networkmiddle.jpg (the background image of the network bar) and networkright.jpg (the right "cap"). These files, along with networkbar.html, are uploaded to the public_html file of all servers.
This CSS code is added to the .css file of every site:
| Code: |
.networkbar
{
color: #FFFFFF;
font-family: "Lucida Grande", "Trebuchet MS", Trebuchet, Arial;
font-size: 12px;
text-decoration: none;
font-weight: normal;
}
.networkbar a, .networkbar a:link, .networkbar a:visited, .networkbar a:hover, .networkbar a:active
{
color: #FFFFFF;
font-family: "Lucida Grande", "Trebuchet MS", Trebuchet, Arial;
font-size: 12px;
text-decoration: underline;
font-weight: normal;
} |
The networkbar.html file is pretty simple.
| Code: |
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="/networkmiddle.jpg">
<tr>
<td height="24" width="205"><a href="http://www.ifroggy.com"><img src="/networkleft.jpg" width="205" height="24" border="0"></a></td>
<td height="24" width="100%"><div align="center" class="networkbar"><?php include("networkline.php"); ?></div></td>
<td height="24"><span class="networkbar">
<?php include("networksites.php"); ?>
</span></td>
<td height="24" width="9"><img src="/networkright.jpg" width="9" height="24"></td>
</tr>
</table> |
The JavaScript code is for the drop down menu and there are two more PHP includes. The files included are networkline.php and networksites.php. networkline.php is what processes that random message in the middle of the network bar. networksites.php has the drop down in it.
networkline.php was written for me by my friend Chris (who is a moderator here). The code is as follows:
| Code: |
<?php
# --------------------------------------------------
# simple random text from arrary
# Just put each "ad" on it's own line in the array
# Remmber to escape ' characters if you need them
# ex: \' instead of just '
# --------------------------------------------------
$text = array(
'Read more about the iFroggy Network at the <a href="http://www.ifroggyblog.com">iFroggy Network Blog</a>',
'Find affordable web hosting packages at <a href="http://www.ifroggyhosting.com">iFroggy Hosting</a>',
'Discuss sports at <a href="http://www.sportsforums.net">SportsForums.net</a>',
'Discuss the martial arts at <a href="http://www.karateforums.com">KarateForums.com</a>',
'Buy martial arts gear at <a href="http://www.mawarehouse.com">MAWarehouse.com</a>',
'<a href="http://www.yanksblog.com">YanksBlog.com</a>, an unofficial New York Yankees fan blog',
'<a href="http://www.marianorivera.com">MarianoRivera.com</a>, an unofficial Mariano Rivera fan site',
'<a href="http://www.quickzip.org">QuickZip</a>, an award winning freeware archiver',
'Get Photoshop help at <a href="http://www.photoshopforums.com">PhotoshopForums.com</a>',
'Follow Microsoft at <a href="http://www.microsoftblog.com">MicrosoftBlog.com</a>',
'Shop for digital cameras at <a href="http://www.camerablast.com">CameraBlast.com</a>',
'<a href="http://www.phpbbhacks.com">phpBBHacks.com</a>, the place for phpBB users',
'Read web development related product reviews at <a href="http://www.webdevreviews.com">WebDevReviews.com</a>',
'Webmasters and web developers, get your books at <a href="http://www.webdevbooks.com">WebDevBooks.com</a>',
'<a href="http://www.developercube.com">DeveloperCube</a>, a community for webmasters and web developers',
'Discuss internet community strategy at <a href="http://www.communityadmins.com">CommunityAdmins.com</a>',
'Get internet community promotion tips at <a href="http://www.communitypromotion.com">CommunityPromotion.com</a>',
'House M.D. fans unite at <a href="http://www.drgreghouse.com">DrGregHouse.com</a>',
'<a href="http://www.badboyblog.com">Bad Boy Blog</a>, an unofficial Diddy and Bad Boy fan blog',
'Shop for blenders at <a href="http://www.buyblenders.com">BuyBlenders.com</a>',
'Shop for cheese (gourmet and otherwise) at <a href="http://www.buycheeses.com">BuyCheeses.com</a>',
);
srand ((float)microtime()*1000000);
// Pick a random theme
$pk = array_rand($text, 1);
$pick = $text[$pk];
echo $pick;
?> |
networksites.php is as follows:
| Code: |
<select name=select2 onChange="MM_jumpMenu('parent',this,0)" style="background-color: #979797; color: #FFFFFF; font-family: Tahoma, Verdana; FONT-SIZE: 11px">
<option value="#" selected >Network Websites</option>
<option value="#">--------------------</option>
<option value="http://www.ifroggy.com">iFroggy Network</option>
<option value="#">--------------------</option>
<option value="http://www.ifroggyblog.com">iFroggy Network Blog</option>
<option value="http://www.ifroggyhosting.com">iFroggy Hosting</option>
<option value="http://www.sportsforums.net">SportsForums.net</option>
<option value="http://www.karateforums.com">KarateForums.com</option>
<option value="http://www.mawarehouse.com">MAWarehouse.com</option>
<option value="http://www.yanksblog.com">YanksBlog.com</option>
<option value="http://www.marianorivera.com">MarianoRivera.com</option>
<option value="http://www.quickzip.org">QuickZip</option>
<option value="http://www.photoshopforums.com">PhotoshopForums.com</option>
<option value="http://www.microsoftblog.com">MicrosoftBlog.com</option>
<option value="http://www.camerablast.com">CameraBlast.com</option>
<option value="http://www.phpbbhacks.com">phpBBHacks.com</option>
<option value="http://www.webdevreviews.com">WebDevReviews.com</option>
<option value="http://www.webdevbooks.com">WebDevBooks.com</option>
<option value="http://www.developercube.com">DeveloperCube</option>
<option value="http://www.communityadmins.com">CommunityAdmins.com</option>
<option value="http://www.communitypromotion.com">CommunityPromotion.com</option>
<option value="http://www.drgreghouse.com">DrGregHouse.com</option>
<option value="http://www.badboyblog.com">Bad Boy Blog</option>
<option value="http://www.buyblenders.com">BuyBlenders.com</option>
<option value="http://www.buycheeses.com">BuyCheeses.com</option>
</select> |
Now, you may be wondering, why isn't the drop down code just in networkbar.html? The fact is, I don't remember why it isn't, but I do remember that there was a reason I did it like that. I just forget what it was.
So, there is the code. I hope that it proves useful. I am sure that better ways to accomplish what I accomplish may exist. Thanks. _________________ Patrick O'Keefe - CommunityAdmins.com Administrator
Author, Managing Online Forums (New Book)
Have a suggestion or a bit of feedback relating to CommunityAdmins.com? Please contact me!
User Guidelines |
|
| Back to top |
|
 |
Cross_+_Flame
Joined: 10 Oct 2005
Posts: 70
Location: United States of Canada
|
|
| Back to top |
|
 |
Nick
Joined: 09 Sep 2005
Posts: 775
Location: Next to the stereo
|
|
| Back to top |
|
 |
|
|
|
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
|
|