Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
How do I edit my website...?
Options
-
11-04-2008 5:25pmHi guys,
I have a phpbb site. I want to add some coding to the site. Is it like normal html where you find the file with the code in it on your server, and edit it, or is phpbb different to normal html?
I want to add this code to it(it basically allows you to add social bookmarking links on it):
I also want to add a sitemeter, and it gives me the code, but I don't know where to put it - theres so many folders for phpbb that I don't know which one contains the editable code...
<!--
* Social Bookmark Script
* @ Version 1.9
* @ Copyright (C) 2006-2008 by Alexander Hadj Hassine - All rights reserved
* @ Website http://www.social-bookmark-script.com/
* @ By using our script you must leave our copyright notices and the links
* @ in the script untouched. The links doesn't be removed, converted, hidden
* @ or made invisible. If you set a backlink to http://www.social bookmark script.com/
* @ (at least 1 time "search machines friendly" from the starting side of your web page)
* @ you can be adapt the script to you for your purpose changes.
-->
<a target="_blank" style="text-decoration:none; font-size:11px; font-family:Arial; color: #2A4956;" href="http://www.social-bookmark-script.com/">Social Bookmarking</a><br>
<div style="border-top-style:solid; padding-top:3px; border-top-width: 1px; border-top-color: #2A4956; float: left;">
<script language="JavaScript" type="text/JavaScript">
<!--
function Social_Load() {
var d=document; if(d.images){ if(!d.Social) d.Social=new Array();
var i,j=d.Social.length,a=Social_Load.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.Social[j]=new Image; d.Social[j++].src=a;}}
}
Social_Load('http://www.social-bookmark-script.de/img/bookmarks/wong_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/webnews_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/icio_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/oneview_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/folkd_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/yigg_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/linkarena_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/kledy_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/newskick_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/linksilo_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/readster_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/seekxl_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/favit_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/sbdk_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/boni_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/power_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/newsider_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/digg_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/del_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/reddit_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/jumptags_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/upchuckr_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/simpy_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/stumbleupon_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/slashdot_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/netscape_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/furl_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/yahoo_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/spurl_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/google_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/blinklist_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/blogmarks_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/diigo_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/technorati_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/newsvine_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/blinkbits_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/ma.gnolia_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/smarking_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/netvouz_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/what_trans_ani.gif','http://www.social-bookmark-script.de/load.gif')
function schnipp() {
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function schnupp(n, d) {
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=schnupp(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function schnapp() {
var i,j=0,x,a=schnapp.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=schnupp(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<a rel="nofollow" style="text-decoration:none;" href="http://www.mister-wong.de/" onclick="window.open('http://www.mister-wong.de/index.php?action=addurl&bm_url='+encodeURIComponent(location.href)+'&bm_notice=&bm_description='+encodeURIComponent(document.title)+'&bm_tags=');return false;" title="Add to: Mr. Wong" onmouseover="schnapp('wong','','http://www.social-bookmark-script.de/img/bookmarks/wong_trans_ani.gif',1)" onmouseout="schnipp()" > <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.de/img/bookmarks/wong_trans.gif" alt="Add to: Mr. Wong" name="wong" border="0" id="wong"> </a>
<a rel="nofollow" style="text-decoration:none;" href="http://www.webnews.de/" onclick="window.open('http://www.webnews.de/einstellen?url='+encodeURIComponent(document.location)+'&title='+encodeURIComponent(document.title));return false;" title="Add to: Webnews" onmouseover="schnapp('Webnews','','http://www.social-bookmark-script.de/img/bookmarks/webnews_trans_ani.gif',1)" onmouseout="schnipp()" > <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.de/img/bookmarks/webnews_trans.gif" alt="Add to: Webnews" name="Webnews" border="0" id="Webnews"> </a>
<a rel="nofollow" style="text-decoration:none;" href="http://www.icio.de/" onclick="window.open('http://www.icio.de/add.php?url='+encodeURIComponent(location.href));return false;" title="Add to: Icio" onmouseover="schnapp('Icio','','http://www.social-bookmark-script.de/img/bookmarks/icio_trans_ani.gif',1)" onmouseout="schnipp()" > <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.de/img/bookmarks/icio_trans.gif" alt="Add to: Icio" name="Icio" border="0" id="Icio"> </a>
<a rel="nofollow" style="text-decoration:none;" href="http://www.oneview.de/" onclick="window.open('http://www.oneview.de/quickadd/neu/addBookmark.jsf?URL='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));return false;" title="Add to: Oneview" onmouseover="schnapp('Oneview','','http://www.social-bookmark-script.de/img/bookmarks/oneview_trans_ani.gif',1)" onmouseout="schnipp()" > <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.de/img/bookmarks/oneview_trans.gif" alt="Add to: Oneview" name="Oneview" border="0" id="Oneview"> </a>
<a rel="nofollow" style="text-decoration:none;" href="http://www.linkarena.com/" onclick="window.open('http://linkarena.com/bookmarks/addlink/?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&desc=&tags=');return false;" title="Add to: Linkarena" onmouseover="schnapp('Linkarena','','http://www.social-bookmark-script.de/img/bookmarks/linkarena_trans_ani.gif',1)" onmouseout="schnipp()" > <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.de/img/bookmarks/linkarena_trans.gif" alt="Add to: Linkarena" name="Linkarena" border="0" id="Linkarena"> </a>
<a rel="nofollow" style="text-decoration:none;" href="http://www.favoriten.de/" onclick="window.open('http://www.favoriten.de/url-hinzufuegen.html?bm_url='+encodeURIComponent(location.href)+'&bm_title='+encodeURIComponent(document.title));return false;" title="Add to: Favoriten" onmouseover="schnapp('Favoriten','','http://www.social-bookmark-script.de/img/bookmarks/favoriten_trans_ani.gif',1)" onmouseout="schnipp()" > <img style="padding-bottom:1px;"0
Comments
-
Moderators, Education Moderators, Technology & Internet Moderators, Regional South East Moderators Posts: 24,056 Mod ✭✭✭✭Join Date:Posts: 21860
phpBB is both PHP and HTML. Im not familar with its organisation strcuture so I really couldnt tell you what to edit and where.
Id consider asking the phpBB Support forum, or looking for a mod that does what you require?0 -
I'm pretty sure phpbb uses the Smarty lib to integrate it's html with php, so there are templates in one of the folders, you just need to look for the template pertaining to the page you wish to edit, and add in your code.
EDIT: Downloaded phpBB3 there to have a look. Indeed, you need to browse to styles/your_stye(prosilver is the default I think)/template and edit whichever file is relevant to where you want your code to appear.
You'll probably need to make some css edits too.0 -
Moderators, Education Moderators, Technology & Internet Moderators, Regional South East Moderators Posts: 24,056 Mod ✭✭✭✭Join Date:Posts: 21860
I'm pretty sure phpbb uses the Smarty lib to integrate it's html with php, so there are templates in one of the folders, you just need to look for the template pertaining to the page you wish to edit, and add in your code.
EDIT: Downloaded phpBB3 there to have a look. Indeed, you need to browse to styles/your_stye(prosilver is the default I think)/template and edit whichever file is relevant to where you want your code to appear.
You'll probably need to make some css edits too.
Are they not PHP files? Its been a very long time since I did any work on a BB Software so I cant recall0 -
Look for overall_header.tpl and overall_footer.tpl0
-
Look for overall_header.tpl and overall_footer.tpl
Now I'm all for people lending help and opinions but did you both miss the part where I said I downloaded a copy of phpbb there and then to help the OP out??
OP, just do as I suggested initially.0 -
Advertisement
-
Advertisement