News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Problem with Oxygen theme and Redirect mod. Help NEEDED plz

Started by snoopy_inc, December 05, 2006, 01:12:37 AM

Previous topic - Next topic

snoopy_inc

http://mods.simplemachines.org/index.php?mod=38 <-- location fo the file i want to use to add to mods.

Problem with installation.  comes up with Error on Default/boardindex.php .

What i am trying to ask is what gets altered if its referring to the default location? is it the default theme or the default directory?

Im going to add the email text i already typed out for more clarity :

I have tried going through the manual installation steps, but after
reading through the modification_1-1.xml I would like to clarify a few
things. I noticed that all of the file modifications are being done to
the /Themes/default folder, however we are currently running a
non-default theme... (oxygen) I assume this means that changes which are made by
the modification_1-1.xml will not be correct for our current theme then?

In addition to this, I also noticed that additional changes are
required in the case that someone is running either the "classic", or
"babylon" theme. As a result, I am assuming that additional changes
would prob need to be done for our "oxygen" theme? I attempted the
manual integration of BoardIndex.template.php on our current theme,
with those which would be done to the "default" theme, however I came
across a few differences which left me cold. ie: Code change requires a
mod to be done to the line <td class = "windowbg2">, however in Oxygen
theme, this line doesn't exist, as the variable "windowbg2" is declared
as a <tr class>
---------------------------------------------------------------------------
Soz about this but im really confused.


Code:

<td class="windowbg2">
               <a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '[/url]



And replace with

Code:

<td class="windowbg2"', $board['is_redirect'] && $modSettings['redirect_hide_columns'] ? ' colspan="2"' : '' , '>
               <a href="', $board['href'], '" name="b', $board['id'], '"', ($board['is_redirect'] && $board['redirect_target'] != '') ? ' target="' . $board['redirect_target'] . '"' : '' , '>', $board['name'], '[/url]


The first line you asked me to replace doesnt excist in the file you asked me to replace it with?
Does that make any sense?

You asked me to search for <td class="windowbg2">
Of which i couldnt find the following code you exampled after it.  Not in the Themes directory nor in the default directory.

Any assistance on this would be appriciated.
---------------------------------------------------------
From another helper on TP forum
If your theme doesent have that code in the file, you can simply skip over it. Not all themes have the same layout. The coses i pointed to is if your theme have ALL code avaliable.
So simply skip that part and continue add the rest
_____________________________________________________

(from the author in response to this problem)
The code for the Oxygen theme is slightly different than the code for the default theme, but skipping over it won't make it work. I'll take a look at it again later to see if I can figure out why you're getting that blank board there.


Im now in limbo land.  I dont know where to go next or what to do to fix it.  I cant code it myself as i dont know enough and i really require this mod so urgently its not even funny anymore.  This mod is the foundation of a project im busy with and can only continue when it can work 100%.

So Please anyone that can help me with this i would be eternally greatful.
Many thanks in advanced.

sawz

your using an outdated and possibly vulnerable version of SFM. you may want to start by upgrading your forum to a more secure version. then try your mod out.
keep smiling, they'll always wonder what your up too.....

snoopy_inc


hrm.

I shall do that first ;)

the new upgrade... but tell me how will it affect the current mods i have up?  will i have to redo them all?

Thanks

Advertisement: