News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Topic Description

Started by Rudolf, January 03, 2007, 09:12:29 AM

Previous topic - Next topic

Greek

Hhhmmm... A little hard for me to do this. After so many mods that I have installed, it's impossible to unistall your mod.
Is there any possibiliy to do manually the needed change in code? And if yes, where?

Thanks.

tones_ie

#61
Hi...did i find a typo ?  i get the following error

Quote./Themes/default/Xml.template.php     File not found 

my file is named with a small "x"    xml.template.php


Quote
<file name="$themedir/Xml.template.php">
      <operation>
         <search position="before"><![CDATA[<subject><![CDATA[', $context['message']['subject'], ']]]]>><![CDATA[</subject>]]></search>
         <add><![CDATA[
   <description isfirst="',empty($context['message']['is_first_post']) ? '0' : '1','"><![CDATA[', $context['message']['description'], ']]]]>><![CDATA[</description>]]></add>
      </operation>

Rudolf

That's Xml.template.php.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

tones_ie

#63
thats the strangest thing ever...wonder how that was renamed on me !!     just checked a fresh download of the default Xml.template.php and its named with a capital X unlike mine with a small x !!    weird

and that actually fixed another prob i was having...lol   the post preview stopped working a while back and is all good again :)   


digger

Mod don't show descriptions in recent posts, unread topics and unread replies.

ArkServer

Quote from: digger on April 14, 2007, 07:42:32 PM
Mod don't show descriptions in recent posts, unread topics and unread replies.

I don think thats supported but i do would like to see this as well.

PixieWAttitude

I had to do a fresh install of my board and mods, I came to this mod and now I get an test failed on the Display Template.

These are the Mods I have installed.


1. TinyPortal 0.983 [ Uninstall ]
2. SMF Arcade 2.0.7 [ Uninstall ]
3. SMFShop 3.0 [ Uninstall ]
4. SMF Arcade Shop Mod 1.0.0 [ Uninstall ]
5. SMF Arcade Trophies Mod 1.1.1 [ Uninstall ]
6. SMFPets 0.0 [ Uninstall ]
7. SMFPets Pets 0-1 Update 0.1 [ Uninstall ]
8. VisualWarning 1.32 [ Uninstall ]
9. Active Members In Topic 1.5 [ Uninstall ]
10. Bear Tabs 1.0 [ Uninstall ]
11. Color Bar 2.0 [ Uninstall ]
12. Member Awards 1.0.2 [ Uninstall ]
13. Membergroup Color Legend 1.0 [ Uninstall ]
14. Profile Music 1.0 [ Uninstall ]
15. Reason For Editing Mod 1.14 [ Uninstall ]
16. SMF Quick Theme Changer 1.0.0 [ Uninstall ]
17. Spoiler Tag 0.3.1 [ Uninstall ]
18. Users Online Today Mod 1.4.0


Can someone possibly help me. Also, here is my Display Template Code just in case. I attached it.


I tried doing it manually, I edited the Display Template and reuploaded it, then tried installing the mod again and still got test failed.

Thanks

Rudolf

The install test will fail even if you manually apply the changes before. Doing so it's even worst.
What you should do is apply the mod, then look at the Display.template.php and see which changes were not applied, and apply it.

Attach the Display.template.php after installing the mod and I'll take a look at it. Which theme you are using?
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Rudolf

Quote from: digger on April 14, 2007, 07:42:32 PM
Mod don't show descriptions in recent posts, unread topics and unread replies.

I'll see what can I do about this.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

PixieWAttitude

Quote from: Rudolf on April 15, 2007, 04:09:20 AM
The install test will fail even if you manually apply the changes before. Doing so it's even worst.
What you should do is apply the mod, then look at the Display.template.php and see which changes were not applied, and apply it.

Attach the Display.template.php after installing the mod and I'll take a look at it. Which theme you are using?

Worked perfectly. Thanks Rudolph. I am using the Default SMF Theme.

I am just starting to understand how to manually edit theme files. So if I install a mod and it fails, I should install it, then manually make any changes that it didn't take?

Rudolf

Quote from: PixieWAttitude on April 15, 2007, 10:57:53 AM
I am just starting to understand how to manually edit theme files. So if I install a mod and it fails, I should install it, then manually make any changes that it didn't take?
Most of the time yes.
When you uninstall, just make sure that you manually remove what's left from the mod.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

PixieWAttitude

Thanks Rudolph

I now get an error when I go back into a topic after I added the part that was missing which was

Quote<!-- //-Topic description MOD- Start -->
      <tr class="titlebg" id="description_row" style="font-weight: normal; ',(empty($context['description']) ? 'display: none' : '') , '">
            <td valign="middle" width="2%" style="padding-left: 6px;">
            </td>
            <td width="13%"></td>
            <td valign="middle" width="85%" style="padding-left: 6px;" id="top_description">
                  ', $txt['topic_description'], ': ', $context['description'], '
            </td>
      </tr>
      <!-- //-Topic description MOD- End -->

The line right before that is
Quoteif (!empty($settings['display_who_viewing']))

Any ideas?

Rudolf

What kid of error you get?
The code modified is
';
if (!empty($settings['display_who_viewing']))

You have to add the mod's code before the <b>';</b> in the line before the <b>if</b> line.

Done correctly

</tr>';
if (!empty($settings['display_who_viewing']))

becomes


</tr>
<!-- //-Topic description MOD- Start -->
<tr class="titlebg" id="description_row" style="font-weight: normal; ',(empty($context['description']) ? 'display: none' : '') , '">
<td valign="middle" width="2%" style="padding-left: 6px;">
</td>
<td width="13%"></td>
<td valign="middle" width="85%" style="padding-left: 6px;" id="top_description">
', $txt['topic_description'], ': ', $context['description'], '
</td>
</tr>
<!-- //-Topic description MOD- End -->';
if (!empty($settings['display_who_viewing']))
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

PixieWAttitude

Ok. In the XML file it states to add after and you have it before. And I was also missing the </tr> tag as well. It worked :) The error message I was getting was that there was a Syntax error on line 227-228

Quote<file name="$themedir/Display.template.php">
      <operation>
         <search position="after">
<![CDATA[


';if (!empty($settings['display_who_viewing']))

]]></search>

<add><![CDATA[
      <!-- //-Topic description MOD- Start -->
      <tr class="titlebg" id="description_row" style="font-weight: normal; ',(empty($context['description']) ? 'display: none' : '') , '">
            <td valign="middle" width="2%" style="padding-left: 6px;">
            </td>
            <td width="13%"></td>
            <td valign="middle" width="85%" style="padding-left: 6px;" id="top_description">
                  ', $txt['topic_description'], ': ', $context['description'], '
            </td>
      </tr>
      <!-- //-Topic description MOD- End -->

]]></add>
      </operation>

rolo

I have installed in an spanish language template and it works OK.

The only small bug I have is that I can´t see the "Comment" text label.
I only see ":" and the edit box, but not the title label...

Where can I fix it?

Thanks

jobromedia

#75
I'm very keen on installing this mod, but as a new SMFer I have no idea how to beat the error that the test gives me. Can I attach the file so you can take a look at my ./Themes/default/Display.template.php file as well? I know nothing how to fix this. After taking a look at the package myself I gave up. I have no intention whatsoever to mess with garbled xml files. That's one thing I'm 110% against.

Rudolf

Try this link: http://www.simplemachines.org/community/index.php?topic=140034.0 to view the package.
My bet would be to install the mod, then go and perform the changes in display.template.php manually.
If the above link doesn't helps you, you can attach the file (after you installed the mod) and I'll have a look at it.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

digger

Quote from: ArkServer on April 14, 2007, 07:56:32 PM
Quote from: digger on April 14, 2007, 07:42:32 PM
Mod don't show descriptions in recent posts, unread topics and unread replies.

I don think thats supported but i do would like to see this as well.
What about it?

2bz2p

#78
Hello,

I have seen your mod in action and I think its a great addition. Though in my forums it looks like this:

Subject:[place where you input subject]
Blank Space :[place where you input Description]

Other than it not titleing the box it works great.

any help would be greatly appreciated

Thanks
2b
USVAF.COM || Flyvang.org <-- My sites with SMF

Rudolf

Probably you are not using the english language or you're using UTF encoding.
In either case, open up index.your_language.php or the UTF equivalent and add before the closing ?> line:

$txt['topic_description'] = 'Description'; //-Topic description MOD-
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Advertisement: