Customizing SMF > Modifications and Packages

OS & Browser Detection (version 1.5 is out) [20. 09. 2010.]

<< < (3/84) > >>

AlenNS:
Great work X3me!!!

I had an error while installing your mod in source file Display.php and I made a change in installation package. It's caused by some mod I don't know which.


--- Quote ---<file name="$sourcedir/Display.php">
        <operation>
            <search position="before"><![CDATA[
        $messages_request = $smcFunc['db_query']('', '
            SELECT
                id_msg, icon, subject, poster_time, poster_ip, id_member, modified_time, modified_name, body,
                smileys_enabled, poster_name, poster_email, approved,
                id_msg_modified < {int:new_from} AS is_read
]]></search>

            <add><![CDATA[
        , ua_os, ua_browser, ua_os_icon, ua_browser_icon
]]></add>
        </operation>
--- End quote ---

Instead of this I had to do this:


--- Quote ---<file name="$sourcedir/Display.php">
        <operation>
            <search position="before"><![CDATA[
        $messages_request = $smcFunc['db_query']('', '
            SELECT
                m.id_msg, m.icon, m.subject, m.poster_time, m.poster_ip, m.id_member, m.modified_time, m.modified_name, m.body,
                m.smileys_enabled, m.poster_name, m.poster_email, m.approved,
                m.id_msg_modified < {int:new_from} AS is_read, k.message AS is_repped
]]></search>

            <add><![CDATA[
        , ua_os, ua_browser, ua_os_icon, ua_browser_icon
]]></add>
        </operation>
--- End quote ---

Mod works fine by now, but I would like to hear have I done good thing with this?

Thanks in advance. :)

X3mE:
Thanks :)

It works, so you've done a good job :)

AlenNS:
Thanks for the answer. :)

[unplugged]:

--- Quote from: X3mE on December 07, 2008, 07:28:48 AM ---Ok, check your database first to see if there are 4 new columns in the messages table (ua_os, ua_browser, ua_os_icon and ua_browser_icon). Check some of your latest records to see if they are filled properly.

--- End quote ---

Everything is working fine.  ;)   I didn't realize the mod only applied to posts made after it was installed. Great mod!!

DeviDarkL:
Here is my Display.php

Also, I'm using a different theme which hasn't display.template.php ::)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version