News:

Wondering if this will always be free?  See why free is better.

Main Menu

PhpInfo

Started by snork13, December 13, 2006, 08:36:04 PM

Previous topic - Next topic

snork13

Link to Mod
Rate this Mod

PhpInfo Version 1.2
Author: Snork13
[email protected]

1.1
This mod will display your PHP info within your forum. Once installed, visit the admin panel under Maintenance. There you will find a link for PHP Info.

2.0
This mod will display your PHP info within your forum. Once installed, visit the admin panel under Configuration. There you will find a link for PHP Info
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Skipdawg

Sounds great. Thanks.  ;)
Skipdawg's Community

Powered by SMF 1.1.3

RvG

can this be part of the SMF system?

Daniel15

#3
Very simple, yet very useful. Thanks for the mod! :)

Just one very minor thing. In info.php:
$context['page_title'] = "PHP Info";
I believe that should be using the language string you added to the Modifications.english.php:
$context['page_title'] = $txt['phpInfo_title'];

And another very minor thing in info.template.php:

echo'

There should be a space between the echo and the ', like this:

echo '


EDIT: Just another minor problem, having to do with the Core theme. When you go to the phpinfo page, the 'Home' tab is active, rather than the 'Admin' tab. To fix this, add this to the modification.xml:

<file name="$themedir/index.english.php">
<operation>
<search position="before">'viewErrorLog', 'viewmembers'</search>
<add>, 'Info'</add>
</operation>
</file>

;)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

snork13

#4
Quote from: Daniel15 on December 14, 2006, 05:37:06 AM
Very simple, yet very useful. Thanks for the mod! :)

Just one very minor thing. In info.php:
$context['page_title'] = "PHP Info";
I believe that should be using the language string you added to the Modifications.english.php:
$context['page_title'] = $txt['phpInfo_title'];

And another very minor thing in info.template.php:

echo'

There should be a space between the echo and the ', like this:

echo '


EDIT: Just another minor problem, having to do with the Core theme. When you go to the phpinfo page, the 'Home' tab is active, rather than the 'Admin' tab. To fix this, add this to the modification.xml:

<file name="$themedir/index.english.php">
<operation>
<search position="before">'viewErrorLog', 'viewmembers'</search>
<add>, 'Info'</add>
</operation>
</file>

;)


i didn't even notice that, it would be this though. thanks
<file name="$themedir/index.template.php">
<operation>
<search position="before"><![CDATA['viewErrorLog', 'viewmembers']]></search>
<add><![CDATA[, 'info']]></add>
</operation>
</file>


mod has been update to 1.1
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

FunPika4

It does nothing for me. I just get a page can not be displayed page when I try to access my info page. :(  

MRM4

Can someone explain what this does and how it works? I have a phpBB board and recently installed a SMF board. Does this mod allow member info, etc. from a phpBB board to be intergrated into the SMF board without making everyone re-register? Or are there other things this mod does? it would be great if my members didn't have to re-register.

snork13

this mod displays your server php info within the smf admin panel. you would need the converter for phpbb => smf. So your phpbb board would need to still be up and running. the converter, does just that...converts your phpbb =>smf
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

MRM4

Okay, thanks. I looked into that and I didnt know how well the conversion would work. I have a fresh install of SMF anyway.

iyeru42

This is good, at least it works on custom themes without doing extra edits ^^

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

snork13

Quote from: Owdy on March 30, 2008, 01:24:20 PM
Update for 2.0?

All updated for 2.0 Beta 3 Public.

-snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Apllicmz

dont forget update portuguese

<file name="$themedir/languages/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
$txt['php_info_title'] = 'PHP Info';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
$txt['php_info_title'] = 'PHP Info';
]]></add>
        </operation>
    </file>



<file name="$themedir/languages/Admin.portuguese_pt.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
$txt['php_info_title'] = 'PHP Info';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Admin.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
$txt['php_info_title'] = 'PHP Info';
]]></add>
        </operation>
    </file>



imrich

Hi, thanks for this mod.

Minor issue with SMF 2.0 RC1.2

In the core theme, looking at the phpinfo output, the php version can not be seen unless I hilight it with my cursor by clicking and dragging over it.

for some reason the color must be white on white at the top of the output where it says:

PHP Version x.x.xx

font is a little large also, but it works otherwise.

Thanks for a great  mod.

imrich

I did make the following changes to make the text more readable on the core theme:

Just comment out the font-weight and font-size to take the theme defaults. It is MUCH easier to read.

.phpinfo {
   overflow: scroll;
   text-align: left;
   /* font-weight: bold; */
   /* font-size: 12pt; */
   width: 100%;
}


But I'm still having a lot of trouble fixing the CSS of this mod so it will be fully fixed for this theme.

On the default core theme, the background is white.

Unfortunately the PHP Version displays as an H1 element, and for some reason, this is set to white on this theme.

Of course, we only want to change the color of the H1 element when in the phpinfo div.

But I can't get it to work, can anyone help?  I can't see the PHP Version string unless this is done (white text on a white background is hard to see).

I'm not great at CSS so I would appreciate any help with this. Otherwise this is an easy mod that works great.

Thanks for any help!

imrich

It looks like this mod works even better with SMF 2 RC2. Just change the package manager to emulate SMF 2 RC1.2 and it installs and works. Using the curve theme, you can even see the PHP Version string (which you could not see with the core theme of RC1.2).

If the author would update the package to include RC2 (and the formatting changes with bold and 12 point font mentioned above) this would be a smooth RC2 install.

note: you should probably remove images/Thumbs.db from your package ;)

Sudhakar Arjunan

Informative mod for Admins. Thank you
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Robin1989

Quote from: imrich on September 29, 2009, 01:55:30 PM
I did make the following changes to make the text more readable on the core theme:

Just comment out the font-weight and font-size to take the theme defaults. It is MUCH easier to read.

.phpinfo {
   overflow: scroll;
   text-align: left;
   /* font-weight: bold; */
   /* font-size: 12pt; */
   width: 100%;
}


But I'm still having a lot of trouble fixing the CSS of this mod so it will be fully fixed for this theme.

On the default core theme, the background is white.

Unfortunately the PHP Version displays as an H1 element, and for some reason, this is set to white on this theme.

Of course, we only want to change the color of the H1 element when in the phpinfo div.

But I can't get it to work, can anyone help?  I can't see the PHP Version string unless this is done (white text on a white background is hard to see).

I'm not great at CSS so I would appreciate any help with this. Otherwise this is an easy mod that works great.

Thanks for any help!


here is what i set as the css which works for me perfectly - its much better i think than the original as that stretched out the default curve theme quite a lot


.phpinfo {
overflow: scroll;
text-align: justify;
font-weight: normal;
font-size: 10pt;
width: 90%;
max-width: 1000px;
}

Eclipse16V

Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
I worked with:
SMF 2 in German

Shop:
SID Giessen

Advertisement: