 | Editing... |  |
Posted: 06/05/2007 8:39 AM |
|
|
|
|
|
| Dove |
| Posts |
76 |
| Word Cnt. |
5,619 |
| BDay |
N/A |
| Sign |
N/A |
|
|
|
|
|
Joined: Mar 17, 2007
Local time: 7:11 AM
|

|
|
|
|
 |
I want to add something like this to my forums: http://thepointol.com/board
^ I want to add something like the information bar they have near at the top. I know that I have to edit the overall_header.tpl file, but I don't know where to add the html coding I would need to have this EXACTLY or close to the exact same as this site has it.
Can anyone help me with this? I already have the html coding I need, all I need to do is insert it into the overall_header.tpl file.
Thanks in advance for any help. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Editing... |  |
Posted: 06/06/2007 1:11 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:11 AM
Location: St Pete, FL
|

|
|
|
|
 |
Here's a quick and dirty MOD that I created to add the exact same message from your link to your header. You will probably want to edit the message in the FIND command in this script. You can use EM to install this into your subSilver template. If you have alternative templates, the FIND may have to be adjusted to work in all of them. I can help you with that if necessary...
| Code:
|
##############################################################
## MOD Title: Add Information Bar
## MOD Author: Nightrider < N/A > (N/A) http://4fxearth.net/phpBB2
## MOD Description: This mod will add an information bar to the overall_header...
##
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 1 Minute using EM
##
## Files To Edit: 1
## templates/subSilver/overall_header.tpl
##
## Included Files: 0
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
# The actual line of code will be much longer than this
#
{SITE_DESCRIPTION}
#
#-----[ AFTER, ADD ]------------------------------------------
#
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td bgcolor="#FFFFFF" width="100%" align="center"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000080">
Thanks for visiting The Point Online's Cedar Point Forums. Be sure to check out The Point Online by clicking on the "home" link above.<br />
Also, <a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a> in order to post and read all of the messages!
</font></b></td>
</tr>
</table>
<br />
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Editing... |  |
Posted: 06/06/2007 12:54 PM |
|
|
|
|
|
| Dove |
| Posts |
76 |
| Word Cnt. |
5,619 |
| BDay |
N/A |
| Sign |
N/A |
|
|
|
|
|
Joined: Mar 17, 2007
Local time: 7:11 AM
|

|
|
|
|
 |
| ^ Ok, I'll try it. Thanks for the help! |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Editing... |  |
Posted: 06/06/2007 2:36 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 1:11 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
I just used your mod Nightrider, niceone! But how do I get the message to show underneath the logo rather than the message to be at the top of the page?  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Editing... |  |
Posted: 06/06/2007 3:10 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 1:11 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
Also, how do I get the message to appear to users not logged in only
something like this
| Code:
|
<!-- BEGIN switch_user_logged_out -->
<table align="center" width="67%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td bgcolor="#FFFFFF" width="100%" align="center"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">
Welcome to the DJ Passions.<br /><br />
<br />
You are currently viewing this website as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, <a href="profile.php?mode=register"><strong>join our community today!</strong></a> <br /><br />If you have any problems with the registration process or your account login, please contact <a href="contact_form.php">contact us</a>.
</tr>
</table>
<br />
<!-- END switch_user_logged_out -->
|
I'm not sure whether the switching code will work in the guest message? |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Editing... |  |
Posted: 06/06/2007 3:16 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:11 AM
Location: St Pete, FL
|

|
|
|
|
 |
It looks like you are using Dreamweaver to edit your files. If so, it is adding double spacing to every file that you modify. That really messes things up. I am going to use UltraEdit to clean up your overall_header.tpl file...
You added the code at the top rather than under the logo.jpg section, so I moved it down for you. You also forgot to include the ending </td> tag as well. You need to remember that each table tag needs a begin and end tag or it may cause some weird display problems. I corrected that problem too...
Your message says that I'm viewing as a guest even though I'm logged in. You may want to adjust that a bit...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Editing... |  |
Posted: 06/06/2007 3:20 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:11 AM
Location: St Pete, FL
|

|
|
|
|
 |
| Chris Powell wrote:
|
Also, how do I get the message to appear to users not logged in only
I'm not sure whether the switching code will work in the guest message?
|
Yes, the switch code will work as you listed it above...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Editing... |  |
Posted: 06/06/2007 3:31 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 1:11 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
| Nightrider wrote:
|
It looks like you are using Dreamweaver to edit your files. If so, it is adding double spacing to every file that you modify. That really messes things up. I am going to use UltraEdit to clean up your overall_header.tpl file...
You added the code at the top rather than under the logo.jpg section, so I moved it down for you. You also forgot to include the ending </td> tag as well. You need to remember that each table tag needs a begin and end tag or it may cause some weird display problems. I corrected that problem too...
Your message says that I'm viewing as a guest even though I'm logged in. You may want to adjust that a bit...
|
I use Areneae. Just this time I copied some of the source code for the header message of another website http://www.trancefix.nl/index.php?s=2ff7665121e60a38bf48794cee49d192 I just did the IE7 > View Source thing :p I will have to try and remember about the begin and ending tags though yes. I'll get there (I hope)
Thanks for correcting the code Nightrider 8)
| Nightrider wrote:
|
| Chris Powell wrote:
|
Also, how do I get the message to appear to users not logged in only
I'm not sure whether the switching code will work in the guest message?
|
Yes, the switch code will work as you listed it above...
|
Wicked! I'll try it now *fingers crossed heh  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Editing... |  |
Posted: 06/06/2007 3:51 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 1:11 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
not my luck tonight ... I used the code that you changed for the REPLACE WITH but I forgot to copy the coding for the FIND command and now the forum goes west when not logged in. The switching works though
| Code:
|
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
# The actual line of code will be much longer than this
#
<tr>
<td align="center" width="100%" valign="middle"><img src="logo.jpg" width="650" height="140" border="0" alt="DJ Passions.com - Dance Music, DJ Community, DJ Mixes, DJ Forums, Free Mix Hosting" hspace="3" /></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN switch_user_logged_out -->
<table align="center" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td bgcolor="#FFFFFF" width="100%" align="center"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">
<br />Welcome to the DJ Passions.<br /><br />
You are currently viewing this website as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, <a href="profile.php?mode=register"><strong>join our community today!</strong></a> <br /><br />
If you have any problems with the registration process or your account login, please contact <a href="contact_form.php">contact us</a>.
</td>
</tr>
</table>
<br />
<!-- END switch_user_logged_out -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
|
What do I need to change in the FIND command so that the message appears under the logo
I added the message code undereath the end tag for the image code as well! I guess the end tag doesn't come into it here, or is it something else *screams lol  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Editing... |  |
Posted: 06/06/2007 4:34 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:11 AM
Location: St Pete, FL
|

|
|
|
|
 |
Whatever you are using to edit your files, you should stop doing so now. I just fixed your overall_header.tpl file for the 3rd time today. Your text editor is adding double spacing throughout your code. It will really mess things up if you keep using it. Have you ever tried using 1st Page 2000???
I had fixed your mistake in the overall_header.tpl but I can see that you overwrote my corrections. So I will tell you what you did wrong and let you fix it this time:
OPEN
subSilver/overall_header.tpl
FIND
| Code:
|
</tr>
<!-- BEGIN switch_user_logged_out -->
<table align="center" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td bgcolor="#FFFFFF" width="100%" align="center"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">
<br />Welcome to the DJ Passions.<br /><br />
You are currently viewing this website as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, <a href="profile.php?mode=register"><strong>join our community today!</strong></a> <br /><br />
If you have any problems with the registration process or your account login, please contact <a href="contact_form.php">contact us</a>.
</td>
</tr>
</table>
<br />
<!-- END switch_user_logged_out -->
<tr>
<td align="center" width="100%" valign="middle">
|
REPLACE WITH
| Code:
|
</tr>
<tr>
<td align="center" width="100%" valign="middle">
<!-- BEGIN switch_user_logged_out -->
<table align="center" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td bgcolor="#FFFFFF" width="100%" align="center"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">
<br />Welcome to the DJ Passions.<br /><br />
You are currently viewing this website as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, <a href="profile.php?mode=register"><strong>join our community today!</strong></a> <br /><br />
If you have any problems with the registration process or your account login, please contact <a href="contact_form.php">contact us</a>.
</td>
</tr>
</table>
<br />
<!-- END switch_user_logged_out -->
|
The added code needs to be between the column tags <td></td> not between the row tags <tr></tr>...
 |
|
|
 |
 |
| Back to Top |
|
|
 |
 | Information |  |
|