adding roster link to header

This section is for discussing DragonFly CMS and WoWRosterdf themes

adding roster link to header

Postby Avengest » Mon May 14, 2007 11:15 pm

Still trying to learn these things. How do I add the Roster to the Header so it shows as a link in the header with the Home Forums etc?
Avengest
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Tue Apr 03, 2007 10:11 pm

adding roster link to header

Postby IslandStyle » Tue May 15, 2007 12:23 am

You have to edit each theme header file located in themes/*THEME NAME*/template/header.html It starts around line 32 -33 and looks something like this
Code: Select all
    <tr>
      <td align="left">{S_WELCOME}</td>
      <td align="left" class="menubutton">
         <a href="{U_MAININDEX}">{S_HOME}</a>
         <!-- IF S_DOWNLOADS -->
            <img src="{THEME_PATH}/images/dot.gif" alt="" title="" /><a href="{U_DOWNLOADS}"> {S_DOWNLOADS}</a>
            <!-- ENDIF -->
            <img src="{THEME_PATH}/images/dot.gif" alt="" title="" /><a href="{U_FORUMS}"> {S_FORUMS}</a>
            <!-- IF S_GALLERY -->
            <img src="{THEME_PATH}/images/dot.gif" alt="" title="" /><a href="{U_GALLERY}"> {S_GALLERY}</a>
         <!-- ENDIF -->
         <img src="{THEME_PATH}/images/dot.gif" alt="" title="" /><a href="{U_MY_ACCOUNT}"> {S_MY_ACCOUNT}</a>
         <!-- IF S_IS_ADMIN -->
            <img src="{THEME_PATH}/images/dot.gif" alt="" title="" /><a href="{U_ADMININDEX}"> {S_ADMIN}</a>
            <!-- ENDIF -->      
      </td>
      <td align="right"><script language="javascript" src="{THEME_PATH}/systemclock.js"></script> </td>
   </tr>


you could add something like
Code: Select all
<a href="http://your_site.com/index.php?name=WoWRosterDF">Roster</a>

between the lilnes where you want it to appear
Image
Image
User avatar
IslandStyle
WR.net Apprentice
WR.net Apprentice
 
Posts: 41
Joined: Tue Jul 11, 2006 8:57 am

Re: adding roster link to header

Postby foxpur » Wed Jun 06, 2007 3:40 pm

I would like to custom name 'Community Forums' which I have managed to do in the main menu, but the header:

Code: Select all
      <table>
         <tr>
            <td class="menubutton"><a href="{U_MAININDEX}">{S_HOME}</a></td>
    <!-- IF S_DOWNLOADS -->
               <td class="menubutton"><a href="{U_DOWNLOADS}">{S_DOWNLOADS}</a></td>
    <!-- ENDIF -->
               <td class="menubutton"><a href="{U_FORUMS}">{S_FORUMS}</a></td>
   <!-- IF S_GALLERY -->
               <td class="menubutton"><a href="{U_GALLERY}">{S_GALLERY}</a></td>
<!-- ENDIF -->
               <td class="menubutton"><a href="{U_MY_ACCOUNT}">{S_MY_ACCOUNT}</a></td>
    <!-- IF S_IS_ADMIN -->
               <td class="menubutton"><a href="{U_ADMININDEX}">{S_ADMIN}</a></td>
    <!-- ENDIF -->
          </tr>
      </table></td>


How do I redefine {S_FORUMS} to read as my custom title?

Thanks in advance.
User avatar
foxpur
WR.net Apprentice
WR.net Apprentice
 
Posts: 49
Joined: Wed Jul 26, 2006 8:18 pm

adding roster link to header

Postby robojerk » Wed Jun 06, 2007 11:47 pm

In theme.php S_FORUMS => ForumsLANG. So you will want to edit the value for ForumsLang.

Open up /language/english/main.php
Code: Select all
    define('_ForumsLANG','Community Forums'); 


Change Community Forums to whatever you wish the link to say.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

adding roster link to header

Postby robojerk » Wed Jun 06, 2007 11:49 pm

Post in the theme subfourm next time. =)
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Re: adding roster link to header

Postby foxpur » Thu Jun 07, 2007 1:26 am

robojerk wrote:Post in the theme subfourm next time. =)


I just replied to an existing post I found when I did a forum search and had nothing at all to do with the original thread post. It suited my question so I replied to it.

However, being the clueless sort I prolly would have bungles it if I HAD posted the original question anyhow :)

Thanks for the reply, the answer fixed several issues I was having.
User avatar
foxpur
WR.net Apprentice
WR.net Apprentice
 
Posts: 49
Joined: Wed Jul 26, 2006 8:18 pm

adding roster link to header

Postby robojerk » Thu Jun 07, 2007 1:32 am

Glad to hear you got it all worked out.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0


Return to Dragonfly Themes

Who is online

Users browsing this forum: No registered users and 0 guests

cron