News:

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

Main Menu

[Theme] Themis (SMF v1.0.5 - 1.1RC2)

Started by bloc, October 03, 2004, 03:24:05 AM

Previous topic - Next topic

bloc

The news that changes is called "newsfader" and you can turn it on in "admin" / "current theme settings".

VanGogh

Bloc,

Found another problem that might be theme related.

When trying to add a member to a usergroup, I go to their account related settings under modify profile. It takes me somewhere like this:

/index.php?action=profile;u=6;sa=account

There is no submit button on the page.  And when I put the cursor in one of the fields and hit enter, it errors out and tells me I'm trying to change a profile that does not exist.


bloc

#143
Quote from: VanGogh on August 02, 2005, 10:06:28 PM
Bloc,

Found another problem that might be theme related.

When trying to add a member to a usergroup, I go to their account related settings under modify profile. It takes me somewhere like this:

/index.php?action=profile;u=6;sa=account

There is no submit button on the page.  And when I put the cursor in one of the fields and hit enter, it errors out and tells me I'm trying to change a profile that does not exist.

I will check that out.

EDIT:
It was an error in Profile.template.php that only showed up in IE. I have changed the archives, so you could just use the new Profile.template.php from them.

VanGogh


dar

#145
Re the fading news - is there any way of isolating its content  from the News Box or deleting the news box or keeping the news box static - fading is great but duplicates what is already showing (I have three news items). Or am I misunderstanding something?

Many thanks.

dar
www.asxstocktalk.com

bloc

If you turn off the newsfader in "admin" / "current theme settings" it won't show..leaving you with just the random news box. You can also turn off that one on the same screen. So both can be shown, just one of them or none.

Newsfader show all news items after each other , just on the frontpage. Newsbox show random news on all pages. Thats the difference between them.

dar

Got it!
Thanks - and your support is extremely appreciated.
dar

dar

#148
Thought I had it ...

When I log in as administrator I get news box and fader on main page, news box only on all other pages.

_but_ when I login in as a user I get fader on all pages without News Box and Stats.

In admin>forum news, ticking the Preview box does nothing.

So may I ask, how for example would I set it so:
1.  all users only get news fader
2. all users get News Box and fader on front page and News Box on all other pages?

Many thanks.
dar
www.asxstocktalk.com

dtm.exe

Bloc, your website appears to be down.

-Dan The Man

bloc

Quote from: dar on August 04, 2005, 11:03:16 PM
Thought I had it ...

When I log in as administrator I get news box and fader on main page, news box only on all other pages.

_but_ when I login in as a user I get fader on all pages without News Box and Stats.

In admin>forum news, ticking the Preview box does nothing.

So may I ask, how for example would I set it so:
1.  all users only get news fader
2. all users get News Box and fader on front page and News Box on all other pages?

Many thanks.
dar
www.asxstocktalk.com

It should behave like the last scenario there already...make sure "enable news" and "show newsfader" are set in "current theme settings".

bloc

Quote from: OIDanTheManIO on August 05, 2005, 12:02:06 AM
Bloc, your website appears to be down.

-Dan The Man

Yeah, it does sometimes..usually when I am asleep...but of course thats when people around the word is awake. :P

Probably going to switch host soon though.

smd

any chance of the maroon any time soon ?
Just wanted to make sure you didn't forget...

VanGogh

Bloc,

I installed DanTheMan's IRC mod, and did a manual install on the Themis 1.1beta3. The mod itself works perfectly, but my attempt to add the chat button to the top menu is generating errors everywhere.

Here is the original code from the index.template.php:


// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
        global $context, $settings, $options, $scripturl, $txt;

        // Show the [home] and [help] buttons.

        $menu1 = '
                                <a href="'. $scripturl. '"><img src="' . $settings['images_url'] . '/gnome/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" /></a>
                                <a href="'. $scripturl. '?action=help" target="_blank"><img src="' . $settings['images_url'] . '/gnome/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" /></a>';

       $menu2='<a href="'.$scripturl. '">'.$txt[103]. '</a> |
                       <a href="'. $scripturl. '?action=help" target="_blank">'.$txt[119]. '</a>';



Here is MY version of code. I have deleted nothing, only added a few pieces of code:


// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
        global $context, $settings, $options, $scripturl, $boardurl, $txt;

        // Show the [home] and [help] buttons.

        $menu1 = '
                                <a href="'. $scripturl. '"><img src="' . $settings['images_url'] . '/gnome/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" /></a>

                              <a href="'. $boardurl. '/chat.php"><img src="' . $settings['images_url'] . '/english/chat.gif" alt="' . $txt[chat] . '" style="margin: 2px 0;" border="0" /></a>

                                <a href="'. $scripturl. '?action=help" target="_blank"><img src="' . $settings['images_url'] . '/gnome/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" /></a>';

       $menu2='<a href="'.$scripturl. '">'.$txt[103]. '</a> |

                       [b]<a href="'. $boardurl. '/chat.php">'.$txt[chat]. '</a> |[/b]

                       <a href="'. $scripturl. '?action=help" target="_blank">'.$txt[119]. '</a>';

        // How about the [search] button?
     


Just to highlight the changes:

-  I added $boardurl to the global list
-  I inserted both an image and text link to the chat.php file.
-  The only other change I made was to add an entry for $txt[chat] to the last line of the index.english.php file in the language folder. It looks like this:


$txt['split_selected_posts_desc'] = 'The posts below will form a new topic after splitting.';
$txt['split_reset_selection'] = 'reset selection';
// strings for Themis theme

$txt['mostOnline'] = 'Most users online ever: ';
$txt['mostOnlineToday'] = 'Most users online today: ';
$txt['chat'] = 'Chat';

?>


If I use the original index.template.php file, I get no errors, and if I type in the chat.php url, it loads and works perfectly.  But if I use my version of the index.template.php file, I get these error in my log:

8: Use of undefined constant chat - assumed 'chat'
File: /web/sites/my/url/forum/Themes/themis11/BoardIndex.template.php (eval?)
Line: 564


8: Use of undefined constant chat - assumed 'chat'
File: /web/sites/my/url/forum/Themes/themis11/BoardIndex.template.php (eval?)
Line: 548


I get them with every page on the forum. And on the chat.php page, they actually show up between the top search bar and the buttons.

Can you spot what I've fluxored up with this?

bloc

Yes. You need to use $txt['chat']  ....not  $txt[chat] :)

VanGogh

Bloc..  I want to have your love children.

That fixed it right up!

[darksteel]

@BLoc,

In the Themis, when you go to public a Post Event in calendar, the theme not have a months.

Please verify.




Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

bloc

In the header or the bottom of calendar?

[darksteel]




Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

bloc

I can't find anything wrong..but does it happen if you simply remove Calendar.template from Themis folder? You will then be using the default theme one...and if the problem persists, its language string problem. If not, its the Themis theme.

Advertisement: