noob DF/theme question

This section is for discussing DragonFly CMS and WoWRosterdf themes

noob DF/theme question

Postby scapegoat » Fri Mar 30, 2007 4:40 am

I think I have asked this on about 3 different forums in the past; maybe this one, but I never remember the answer, nor can I ever find the straightforward solution in my searching.

I have Dragonfly.

I install ForumsPro.

How the heck do I change the menu that runs across the top of the site so that it links to ForumsPro, and not Forums?

I know the menu is different, depending on the theme, so I am pretty sure its a theme file, but I never remember which one, or what to edit, or if there is a way to make it a dynamic link like the rest of them, or if I have to hardcode it to the full forums address.

Currently, I have the original Community Forums module deactivated, so the link at the top of the site just craps out when users click it.

I know this is easy. I am just forgetful!

THanks =D
scapegoat
WR.net Apprentice
WR.net Apprentice
 
Posts: 63
Joined: Tue Jul 11, 2006 12:31 am

noob DF/theme question

Postby xeromage » Fri Mar 30, 2007 5:51 am

you will need to edit the header.php file of the theme you are using.

Typically you will find this under theme/yourtheme/header.php

you will just need to change the link to go somewhere other than your community forums.
User avatar
xeromage
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Wed Jul 12, 2006 8:44 pm
Location: AL

noob DF/theme question

Postby scapegoat » Fri Mar 30, 2007 6:48 am

Thanks for the quick reply!

I know the file you are talking about... things are starting to come back to me... but I'm not there yet.

Here is the code that appears to be relevant to the top menu:

Code: Select all
            <td width="10" align="center" class="navbar">{G_LEFTIMAGE}</td>
            <td width="100%" height="21" align="center" class="navbar">
            .:: <a href="{U_MAININDEX}">{S_HOME}</a>
    <!-- IF S_DOWNLOADS -->
             :: <a href="{U_DOWNLOADS}">{S_DOWNLOADS}</a>
    <!-- ENDIF -->
             :: <a href="{U_FORUMS}">{S_FORUMS}</a>
    <!-- IF S_GALLERY -->
            :: <a href="{U_GALLERY}"> {S_GALLERY}</a>
   <!-- ENDIF -->
             :: <a href="{U_MY_ACCOUNT}">{S_MY_ACCOUNT}</a>
    <!-- IF S_IS_ADMIN -->
             :: <a href="{U_ADMININDEX}">{S_ADMIN}</a>
    <!-- ENDIF -->
             ::.</td>
            <td width="10" height="21" align="center" class="navbar">{G_RIGHTIMAGE}</td>


The line that seems to be what I want is the one about U_FORUMS and S_FORUMS. So.. what do I change this to? Is there a way to change the source of the variable that its referenceing, or do I put a hard coded address (http://www.mywebsite.com/ForumsPro.html) into this page somehow?


Thanks!
Last edited by scapegoat on Fri Mar 30, 2007 6:49 am, edited 1 time in total.
scapegoat
WR.net Apprentice
WR.net Apprentice
 
Posts: 63
Joined: Tue Jul 11, 2006 12:31 am

noob DF/theme question

Postby robojerk » Fri Mar 30, 2007 7:06 am

LEO
Code: Select all
<a href="/ForumsPro.html">Forums</a>


non LEO
Code: Select all
<a href="/index.php?name=ForumsPro">Forums</a>
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

noob DF/theme question

Postby scapegoat » Fri Mar 30, 2007 7:22 am

Robo, you rule!

Thanks for helping all us aspiring noob coders.


Also, Wanted to say thanks for the whole Join_Us module that is now building up to be quite the module/block recruitment/posting tool.

Its people like you that make my GM life way easier =D
scapegoat
WR.net Apprentice
WR.net Apprentice
 
Posts: 63
Joined: Tue Jul 11, 2006 12:31 am

noob DF/theme question

Postby zanix » Fri Mar 30, 2007 7:45 am

Actually, the better way to fix this is to open theme.php in your theme folder
Find (should be similar to this)
Code: Select all
'U_FORUMS' => getlink('Forums'),

Change to
Code: Select all
'U_FORUMS' => getlink('ForumsPro'),
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

noob DF/theme question

Postby scapegoat » Fri Mar 30, 2007 8:02 am

You rule too Zanix =D
scapegoat
WR.net Apprentice
WR.net Apprentice
 
Posts: 63
Joined: Tue Jul 11, 2006 12:31 am

Re: noob DF/theme question

Postby robojerk » Fri Mar 30, 2007 8:07 am

scapegoat wrote:Thanks for helping all us aspiring noob coders.


I'm a noob coder myself....
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

noob DF/theme question

Postby scapegoat » Sat Mar 31, 2007 3:01 am

Here is another noob DF theming question.

Yeah. I know this isn't the DF forums. However its about 200% more helpful. =)

I noticed with the recruitment module/block that anax is working on in the other thread, that the module and block both have custom colors and such. Like green text for classes in high demand, etc.

My current theme appears to be overriding the styling of some blocks and modules, but not others (roster appears to be normal).

Is this functionality something that be changed? Either edit the theme so it doesn't override stuff (css stuff I assume), or edit the modules and blocks so that they don't get overridden completely?

Obviously, i would like Some of the theming to come over, like formatting and background colors, etc. blocks like Shoutblock seem to work correclty, picked up the theme from the site, and I have a Ventrilo block that needs the colors set manually for text and such, so I am sure there is a solution that a n00b like me isn't aware of.

I know the block for Recruitment works correctly, because the colors appear they way they are intended if I switch to the default theme.


I need a DF theming class. hehe

Thanks guys.
scapegoat
WR.net Apprentice
WR.net Apprentice
 
Posts: 63
Joined: Tue Jul 11, 2006 12:31 am

noob DF/theme question

Postby scapegoat » Thu Apr 05, 2007 12:46 am

*bump*

So yeah, the theme I downloaded doesn't have a forumspro theme, and its 'theming' makes all text on the site white, including links.

So. If someone could either point me in the direction of a good place to learn about DF theming and what does what, that would be great.

On a slightly easier note, if someone could at least tell me what file(s) I need to start looking at, I could play from there.

If it helps, two of the things I needed changed are:
*colors of recruitment block and application module Not overridden.
*change link appearance in forums, so people know they are links.

The itemstats links do show up in the correct colors though, so thats sweet.

Thanks for the help guys!
scapegoat
WR.net Apprentice
WR.net Apprentice
 
Posts: 63
Joined: Tue Jul 11, 2006 12:31 am

Re: noob DF/theme question

Postby Karavirs » Thu Apr 05, 2007 1:02 am

I personally like the work that WSG Designsdoes. And their support is very good.

Links / Text Colors are usually in your /themes/themename/style/style.css

I use colorpickerto help me figure out the codes

BTW, I have no affiliation, referal, brothers, cousins, etc with the people listed above. Strictly my personal opinion and what I use.


YMMV
Last edited by Karavirs on Thu Apr 05, 2007 1:10 am, edited 2 times in total.
Image

Image
User avatar
Karavirs
WR.net Apprentice
WR.net Apprentice
 
Posts: 49
Joined: Mon Feb 26, 2007 6:33 pm
Location: Chicago


Return to Dragonfly Themes

Who is online

Users browsing this forum: No registered users and 0 guests