News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[Theme] 7dana theme (updated to SMF 1.1.1)

Started by zaja, March 16, 2005, 07:48:37 PM

Previous topic - Next topic

Menni

Hello. Great theme. :)
I got problem installing the topic solved mod manually.

These are changes need to be done:

<edit file>
$themedir/Display.template.php
</edit file>

<search for>
</td>
<td width="13%"> ', $txt[29], '</td>
</search for>

<add after>
';
if (isset($context['topicSolved']))
echo '         <td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
                        ', $txt[118], ': ', $context['topicSolvedText'] == 1 ? '' . $modSettings['topicsolvedTextAccept'] : '' . $modSettings['topicsolvedTextStart'], ' ', $context['subject'], ' &nbsp;(', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
                </td>';
else
echo '
</add after>

<edit file>
$themedir/Display.template.php
</edit file>

<search for>
if ($message['can_modify'])
echo '
<a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', $modify_button, '</a>';
</search for>

<add after>
//option topicsolved
if (($context['user']['started'] || $context['user']['is_admin']) && isset($context['topicSolved']))
echo '
<a href="', $scripturl, '?action=topicsolve;msg=', $message['id'], ';topic=', $context['current_topic'], ';accept=1">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/accept.gif" alt="' . $txt['topicsolved_acceptbut'] . '" border="0" />' : $txt['topicsolved_accept']), '</a>
<a href="', $scripturl, '?action=topicsolve;msg=', $message['id'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reject.gif" alt="' . $txt['topicsolved_rejectbut'] . '" border="0" />' : $txt['topicsolved_reject']), '</a>';

</add after>

<edit file>
$themedir/Display.template.php
</edit file>

<search for>
<input type="hidden" name="icon" value="xx" />
</search for>

<replace>
';
if (isset($context['topicSolved']))
echo ' <input type="hidden" name="icon" value="' . $modSettings['topicsolvedIcon' . ($context['user']['started'] ? 'Starter' : 'Other')] . '"/>';
else
echo ' <input type="hidden" name="icon" value="xx" />';
echo'
</replace>

<edit file>
$themedir/Display.template.php
</edit file>

<search for>
<tr><td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '">';
</search for>

<replace>
<tr><td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '" ' . (isset($message['messageColor']) ? 'style="background-color: ' . $message['messageColor'] . '"' : '') . '>';
</replace>


<edit file>
$themedir/MessageIndex.template.php
</edit file>

<search for>
', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</b>' : '';
</search for>

<replace>
', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">';
if ($context['topicSolved'] == 1){
echo '', $topic['topicSolvedText'] == 1 ? '<font color="green">' . $modSettings['topicsolvedTextAccept'] : '<font color="red">' . $modSettings['topicsolvedTextStart'], '</font> ', $topic['first_post']['link'];
}
else{
echo '', $topic['first_post']['link'];
}
echo ' </span>', $topic['is_sticky'] ? '</b>' : '';
</replace>

<edit file>
$sourcedir/MessageIndex.php
</edit file>

<search for>
SELECT
t.ID_TOPIC, t.numReplies, t.locked, t.numViews, t.isSticky, t.ID_POLL,
</search for>

<add after>
t.topicSolved,
</add after>

<edit file>
$sourcedir/MessageIndex.php
</edit file>

<search for>
'pages' => $pages,
'replies' => $row['numReplies'],
</search for>

<add after>
'topicSolvedText' => $row['topicSolved'],
</add after>

<edit file>
$sourcedir/MessageIndex.php
</edit file>

<search for>
$context['name'] = $board_info['name'];
$context['description'] = $board_info['description'];
</search for>

<add after>

$context['topicSolved']=$board_info['topicsolved'];

</add after>



Can someone please help me. Code is differend to default, so nOObie like me is unable to do it. :-\

vibez

I love this theme, i've made it the default on my site.

Could anyone tell me how to change the color of the text for the category titles?


Matthew Adams

Great Job...but there seems to be some missing items.



And here:



Take a look here:

hxxp:sozocorp.com/forum_1/index.php [nonactive]

hxxp:sozocorp.com/forum_1/index.php/board,1.0.html [nonactive]

Other than that...I think it looks AWESOME!

Matthew Adams
[email protected]

iqapps

Hi!
QuoteMatthew Adams
Check your Apache error/log and search after broken links...i is easy way to resolve this problem.

Regards
Iqapps

Matthew Adams

Did that...nothing is showing up.

If you go to this link:

hxxp:sozocorp.com/forum_1/index.php/board,1.0.html [nonactive]

You will see an error.

Thanks,

Matthew Adams
[email protected]

zaja

Quote from: Menni on January 31, 2006, 03:28:26 AM
I got problem installing the topic solved mod manually.
Where did you find the 'topic solved' mod, please send me a link.

Quote from: Matthew Adams on February 05, 2006, 04:27:22 PM
Great Job...but there seems to be some missing items.
Matthew, neever seen this before, try to re-upload all template files and images in ftp binary mod.

definitive

Quote from: definitive on January 22, 2006, 02:47:51 PM
Hello,
i want to install thank you mod manually and it says

<edit file>
$themedir/Display.template.php
</edit file>

<search for>
$split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');
</search for>

<add after>

//Creat Thank You Buttons :)
if (isset($context['thank_you']['premission'])) {
if ($context['thank_you']['premission']['post'])
$thanks_button = create_button('thank_you_b.gif', 'd_thank_you_post', 'd_thank_you', 'align="middle"');
elseif ($context['thank_you']['premission']['add'])
$thanks_button = create_button('thank_you_b.gif', 'd_thank_you_add', 'd_thank_you_add', 'align="middle"');
}
</add after>



and i can't find $split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');
am i missing something?
thanks...

your template is great but there are some missings in RC2, at least in display.template, we are waiting for you to fix it and install RC2, can you please fix it?

Gorren

Zaja

I've read all of this thread, and while it has answered a lot of my questions there are still things that I would like to change.

I was able to change the color of thr red area to the right of the logo per your instructions in an earlier reply, but I am not sure how to change the bar on the bottom. The only other instance of that red hex code did not seem to change anthing when I tried to change it as well (I'm wanting to use Dark Blue #000066)

I'd also like to replace all instances of red text with the blue as well. (Forum titles, ect.)

Thank you for any help.

Edit: Using SMF 1.0.6

ultraming

Hi,  I am new to SMF and using 7dana theme and would like to change the home button link to my homepage instead of the forum.  I made the change in the index.templete.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.
   echo '
            <a href="', $scripturl, '">',

to
// 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.
   echo '
            <a href="http://www.mysite.com [nofollow]">

It doesn't work.  Can someone help?

NinjaNoodles

I am experiencing the same "no message icon" problem.  Even when you look at the properties of the dead image, there isn't a file path listed for the image.  The problem is in the coding, and the bigger problem is that I can't fix it.  Anyone know how?

ohmygod

It would be nice if you made some buttons for it too.

Like:
Store/Shop
Donate
Chat

etc.

char39

I love this theme and want to use it for a non-profit artists group.  However, I am having the same problem as some of the others.  It won't download! 

Hit the "I agree" button, hit ok in file download, and nothing.  Did anyone ever figure out what the problem was?

ohmygod

Ya. Same here.  The download didn't fully complete, because the file size was like 300 something and it downloaded about 200 something

zaja


char39

I did all that and still doesn't work.  It figures, the best theme here and I can't get it!

myndcraft

Does anyone have a template for the buttons? I am in need of two new ones.

Thanks

winux99

nice theme!! will wait for the update to 1.1RC2.

Thanks in advance.

Deaks

Quote from: winux99 on April 20, 2006, 02:16:16 AM
nice theme!! will wait for the update to 1.1RC2.

Thanks in advance.

Here is the RC2 version

7dana for RC2

any problems just say :)
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

passatgt

Quote from: sloopz on April 23, 2006, 04:19:27 PM
Quote from: winux99 on April 20, 2006, 02:16:16 AM
nice theme!! will wait for the update to 1.1RC2.

Thanks in advance.

Here is the RC2 version

hxxp:www.thelastbreathe.co.uk/dls/7danaRC2.zip [nonactive]

any problems just say :)


Deaks

curious I dont get that in the test on my local or live

Live Demo
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Advertisement: