Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Sept 12, 2011 3:39:43 GMT
<style type = "text/css"> .right{ float: right; } .left{ float: left; } </style>
<script type = "text/javascript"> <!-- /* phpBB Styled Welcome Table © Luke Mansell 2011 [url]codercommunity.proboards.com[/url] */
var site_title = "Site Name"; var site_des = "Site description";
// Next part is PM stuff, no need to touch it var Message_Font=document.getElementsByTagName('font').item(2).innerHTML; var New_Messages=(Message_Font.match(/<\/a>, (.+?) (is|are) new./i))? RegExp.$1 : ''; var Total_Messages=(Message_Font.match(/>(.+?) message(s)?<\/a>/i))? RegExp.$1 : ''; // End of PM stuff. Next part is just adding all the stuff so it works. var phpBB_grab = document.getElementsByTagName('td')[1].style.width='20%'; document.getElementsByTagName('font').item(1).style.display="none"; var phpBB_insert = document.getElementsByTagName('td')[2]; phpBB_insert.innerHTML = "<h3> "+site_title+" <br /> "+site_des+" </h3> <br/>"; var phpBB_grab2 = document.getElementsByTagName('td')[5]; if(pb_username!='Guest'){ phpBB_grab2.innerHTML = ' <div class="right"><a href="http://www.help.proboards.com">FAQ</a> <a href="/index.cgi?action=members">Members</a> <a href="/index.cgi?action=logout">Logout</a></div><div class="left"><a href="/index.cgi?action=viewprofile">User Control Panel</a> (<a href="/index.cgi?action=pm">'+New_Messages+' new messages</a>) <a href="/index.cgi?action=userrecentposts&user='+pb_username+'">View Your Posts</a></div> '; } if(pb_username=='Guest'){ phpBB_grab2.innerHTML = '<div class="right"><a href="http://www.help.proboards.com">FAQ</a> <a href="/index.cgi?action=members">Members</a> <a href="/index.cgi?action=register">Register</a> <a href="/index.cgi?action=login">Login</a>'; } //--> </script>
Styled the top welcome table to how phpBB default style looks like. Made by request.
HEADERS.
|
|
CåñåÐå™
Senior Poster
[M:0]
v5 Beta Tester
Posts: 74
|
Post by CåñåÐå™ on Sept 13, 2011 20:01:01 GMT
I tried this code and there is no way to get back to the admin panel after installing this code . But i do like the idea of it.
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Sept 14, 2011 0:37:02 GMT
I tried this code and there is no way to get back to the admin panel after installing this code . But i do like the idea of it. Yes, I'm going to update it shortly
|
|
CåñåÐå™
Senior Poster
[M:0]
v5 Beta Tester
Posts: 74
|
Post by CåñåÐå™ on Sept 15, 2011 3:32:58 GMT
Ok cool , will look forward to it.
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Sept 21, 2011 4:57:06 GMT
OK, let's do it the phpBB way xD
Footer: <script> if(pb_username=='admin'){ document.write('<center><a href="/index.cgi?action=admin">Administration Control Panel</a></center>'); } </script>
|
|
Cam!
VIP
[M:5000]
Posts: 780
|
Post by Cam! on Sept 24, 2011 22:13:41 GMT
That would make the link show up for everyone. You should go ahead and add in the coding for if(pb_username=='admin'). That would only show up for the main admin, but that's better than having the link showing up for everyone.
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Sept 24, 2011 23:53:36 GMT
I totally forgot about that, fixing now.
|
|
Cam!
VIP
[M:5000]
Posts: 780
|
Post by Cam! on Sept 25, 2011 1:45:30 GMT
You have the FAQ link wrong as well, it needs to be help.proboards.com, not /index.cgi?action=help. The "View Your Posts" goes to the main admin's posts no matter what account you are on. The members link goes to /index.cgi?action=member, when it needs to be /index.cgi?action=members.
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Sept 25, 2011 4:55:57 GMT
I don't know where I got those links from o.O I'll try fix this
|
|
Cam!
VIP
[M:5000]
Posts: 780
|
Post by Cam! on Oct 9, 2011 22:01:37 GMT
The FAQ and View Your Posts links still aren't fixed.
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Oct 9, 2011 22:31:19 GMT
FIXED.
|
|
|
Post by Mark Knight Day on Oct 14, 2011 4:12:30 GMT
Looks good.
|
|
|
Post by Kim on Feb 13, 2024 5:52:52 GMT
|
|