Button in an other Theme

Started by profdrdenis, April 12, 2010, 11:05:23 AM

Previous topic - Next topic

Gruffen

What can I say? If you take a theme based on Curve, rip out a lot of the code, things don't work properly. Interestingly, most other big mods won't work well either...

profdrdenis

I understand but Curve is not the heaven  8) for me its Simple Desk working. I only want instruction what can I do that I have Icons.. thats all

Gruffen

No, but you can thoroughly customise Curve without breaking the style and breaking any mod that uses the same basic structure. I tried it out in over 50 different themes and it works just fine.


I don't understand your question... what icons? Where?

profdrdenis

See my first post. I want Icon/Buttons on top of the helpdesk and I want instruction what is todo to bring shd_move_topic_to_ticket so that I can see a Icon/Button. Or on which place I put for example: <img src="', $settings['images_url'], '/german/XXX.gif" alt="" border="0" />

I hope my english is not to bad

Gruffen

I don't understand where you want this button. Screenshot please.

profdrdenis

no problem.

first I show you in the core theme what I mean. In my is this Button not there and I want to know what is to do.

second in the helpdesk you see only words, I want Buttons too

Gruffen

You need to modify your theme to match. We use the EXACT same coding that Curve does, so you need to add that code back in to your theme.

Let me guess, you don't have those buttons in your thread display...

profdrdenis

yes exact this is what I mean.

any way out...?

Gruffen


profdrdenis

yeah this is not my theme and I dont know what is todo...  :'( But I dont understand everything. This string:

// SimpleDesk: Add topic -> ticket button
$normal_buttons = array_merge($normal_buttons,array('topictoticket' => array('test' => 'can_move_to_helpdesk', 'text' => 'shd_move_topic_to_ticket', 'lang' => true, 'url' => $scripturl . '?action=helpdesk;sa=topictoticket;topic='.$context['current_topic'].';' . $context['session_var'] . '=' . $context['session_id'])));


bring the button in the topic. I cant change to a simple way with a Icon?

Gruffen

It doesn't help that you've asked two totally unrelated questions in the same post.

Firstly, that's what the "Install on Other Themes" option is supposed to do. The fact that your theme doesn't do anything like it's supposed to is not something we can easily fix.

I can look at your Display.template.php and figure out where the code is supposed to go to put that button in.

But I CANNOT fix the issue you seem to have with respect to buttons not having borders, that's because your theme is basically broken and doesn't adhere to how Curve based themes are built and you should ask whoever built it.

profdrdenis

I think my english is to bad to explain.

The code show in the core theme the button.  I want to know what can I do to change the code that I have a button in my theme. This is my topic all the time.

Gruffen

Then your theme has it modified to do it in a special way that is different to how Curve and other mods do it.

A link to your site might help, though I doubt it. Also anything I give you to fix this will have to be redone every time you upgrade SimpleDesk.

profdrdenis

Quote from: Arantor on April 13, 2010, 08:15:26 AM
Also anything I give you to fix this will have to be redone every time you upgrade SimpleDesk.

this I know...

profdrdenis

my idea is like this:

<a href="' . $scripturl . '?action=helpdesk;sa=topictoticket;topic='.$context['current_topic'].';' . $context['session_var'] . '=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['lang_images_url'] . '/support.png" title="Verschiebe zum HelpDesk" alt="' . $txt['can_move_to_helpdesk'] . '" border="0" />' : $txt['can_move_to_helpdesk']) . '</a>';