Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
Editing...
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2, 3  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Editing...
PostPosted: 06/05/2007 8:39 AM Reply with quote
Dove
lakeccrunner
Dove
Posts 76
Word Cnt. 5,619
BDay N/A
Sign N/A
Joined: Mar 17, 2007
Local time: 4:54 PM
blank.gif
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
View user's profile Find all posts by lakeccrunner Send private message  
Re: Editing...
PostPosted: 06/06/2007 1:11 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:54 PM
Location: St Pete, FL
peace.gif
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

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Editing...
PostPosted: 06/06/2007 12:54 PM Reply with quote
Dove
lakeccrunner
Dove
Posts 76
Word Cnt. 5,619
BDay N/A
Sign N/A
Joined: Mar 17, 2007
Local time: 4:54 PM
blank.gif
^ Ok, I'll try it. Thanks for the help!
Back to Top
View user's profile Find all posts by lakeccrunner Send private message  
Re: Editing...
PostPosted: 06/06/2007 2:36 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:54 PM
Location: Birmingham, UK.
greatbrE.gif
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?  sunny
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: Editing...
PostPosted: 06/06/2007 3:10 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:54 PM
Location: Birmingham, UK.
greatbrE.gif
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
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: Editing...
PostPosted: 06/06/2007 3:16 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:54 PM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Editing...
PostPosted: 06/06/2007 3:20 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:54 PM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Editing...
PostPosted: 06/06/2007 3:31 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:54 PM
Location: Birmingham, UK.
greatbrE.gif
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...

headbang


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)  headbang

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...

headbang


Wicked! I'll try it now *fingers crossed heh Very Happy
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: Editing...
PostPosted: 06/06/2007 3:51 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:54 PM
Location: Birmingham, UK.
greatbrE.gif
not my luck tonight Laughing... 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  Embarassed

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  Shocked  Embarassed
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: Editing...
PostPosted: 06/06/2007 4:34 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:54 PM
Location: St Pete, FL
peace.gif
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>...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

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
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2, 3  Next
Page 1 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0986s (PHP: 67% - SQL: 33%) - SQL queries: 58 - GZIP disabled - Debug on