BlackRainV.2

Started by Crip, August 18, 2007, 01:53:58 AM

Previous topic - Next topic

slowdive

I linked here from your website through the "support link" you provided.  No need to be hostile.  Are other people allowed to help or is that not allowed either?  I asked your permission to modify it before I started making changes. 

My questions are easy to answer for someone with experience.  I just wanted to know what file the code is in, so I can change it, since I do not see the code in the index.css or the rtl.css, I thought someone could take 1 minute to help me out rather than scold me for asking.
My SMF forum is down.  I do not know how to fix it.

LOTL

#341
Crip or anyone else that might be able to help. I read earlier in this thread that someone else had asked about adding a Gallery button. http://www.simplemachines.org/community/index.php?topic=189576.msg1210076#msg1210076
You mention adding to the current array. I dont see that line of code anywhere in the index.template.php file.
Granted that was 3 years ago, so im assuming things have changed.

Im sure a lot of other people have done this and im hoping that maybe somebody anybody? would help out a poor noob find his way through this.

Would this still apply when using the Black Rain V2 theme?
http://docs.simplemachines.org/index.php?topic=564.msg927#msg927

busterone

LOTL
This is from the 1.1.x version index.template.php - mine has had a few manual modifications, so the line number may not be the same as yours, but it will be extremely close to it. look around line 400 to 416 for the following code.
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'arcade')))
$current_action = $context['current_action'];
  replace it with this-
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'arcade', 'gallery')))
$current_action = $context['current_action'];


then add this in the menu array
// the [SMF Gallery] button
if ($context['allow_smfgallery_view'])
echo '<li', $current_action == 'gallery' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=gallery"><span>' , $txt['smfgallery_menu'] , '</span></a></li>';

LOTL

Thanks Busterone,
I saw that in the post i linked to from earlier in this thread. I cant find that exact code in the latest BRV2 index.template.php or in the index.template.php of the original SMF theme.

Am i missing something here? On another note, can you recommend an easy to use php editor. I used one a year or so ago when working on another website while integrating a different photo gallery.

Thanks

busterone

It is there, or definitely should be.  I recommend notepad++. It is light, but powerful, also free.
download the index.template.php file to your computer, make a copy, then edit in the event something goes wrong.

look here- http://notepad-plus.sourceforge.net/uk/about.php

Crip

thanks busterone , yes of coarse it there Lol..


if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))


Note: it's not found in 2.0 ..
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

LOTL

#346
Ok so it did show up after i installed Notepad++. I was searching for it using good ole notepad and could not find it.
So i made the changes, uploaded via FTP and its not showing the new button on my site.
The file size on the host is different from whats on my computer.
Do i have to use a CHMOD command to overwrite?

Thanks for the Notepad++ tip.

busterone

Refresh your browser to see any template changes.

LOTL

same deal Busterone the file size thing must just be the file size on disk or something. I downloaded the one from the host that i previously uploaded and compared it the modified one and it is the same file.

CHMOD issue maybe? Code not quite right?
The Aeva Gallery mod is working great with the default SMF theme, bit i would really like to stick with the BRV2 theme.

busterone

I apologize, the menu code I gave you was for the SMF gallery, not Aeva.
I have never installed Aeva on 1.1.x, only on 2.0.
Scrap the earlier code. (hope you did make a backup copy of the original as I suggested)
Try this instead, but I am not 100 percent sure if it will work. You may need to ask in the Aeva support topic if it doesn't. 
look for // the [member] list button
add before -
// Aeva Media
if (allowedTo('aeva_access'))
echo '<li', $current_action == 'media' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=media"><span>' , $txt['aeva_gallery'] , '</span></a></li>';


Crip

I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

devilf

Crip Hello, I have version 1.1.11 SMF and just installed BlackRain V2 (BlackRainv2.zip (582kB)).
If I install the 2.2.0.3 version gives me error.
Unfortunately in V2, I can not bring up the buttons, (new topic, etc.), where am I wrong?

Thank you very much


Crip

Quote from: devilf on April 30, 2010, 06:56:14 AM
Crip Hello, I have version 1.1.11 SMF and just installed BlackRain V2 (BlackRainv2.zip (582kB)).
If I install the 2.2.0.3 version gives me error.
Unfortunately in V2, I can not bring up the buttons, (new topic, etc.), where am I wrong?

Thank you very much



   ..hum .... ? ¿
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

devilf

#353
Sorry for my bad English.

We enclose a picture to explain the problem.

SMF version 1.1.11

THANKS


Crip

1.1.11 is made with only (Text Links) , no tabs / buttons
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

devilf

#355
Thank you, I thought you could enter, since the package had contained the folder icons.
But there is no possibility of integration?

Crip

Quote from: devilf on May 02, 2010, 11:20:04 AM
Thank you, I thought you could enter, since the package had contained the folder icons.
But there is no possibility of integration?

Yes ,
the buttons enclosed are those of Babylon Theme , integrate those if you wanna ?
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

ScarfaceJR

This works on 1.1.11 ?!!!!!!!!!!!!  :o
******ing epic theme, if it works; thanks a lot!

TheListener

If you look at the link on the first post you will see the theme does indeed work on 1.1.11

ScarfaceJR

Quote from: Brack1 on May 08, 2010, 11:58:15 AM
If you look at the link on the first post you will see the theme does indeed work on 1.1.11

I saw it but wasn't sure about it, thanks tho!
(I'm uploading my first SMF  ;) )

Advertisement: