News:

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

Main Menu

Hide Mod Edit

Started by Dr. Jones, September 27, 2007, 05:55:31 PM

Previous topic - Next topic

cloudy.de

#20
Well, I can´t download the mod.
The message comes when I try to download it, not when I try to instal it.

Is it right to download it there: http://custom.simplemachines.org/mods/index.php?mod=939?

ccbtimewiz

Wait, what?

I'm afraid I don't understand you. You haven't downloaded this modification?

cloudy.de

#22
Yes, when I try to download the mod, then I get this message. A friend of mine too. But only with the 1.1.5 mod version. The older versions I can easily download.

Can you try it for me?

cloudy.de

It is still the same.  :(

[nofollow]

ccbtimewiz

... Click the actual package, not the submit button.

cloudy.de

#25
The actual package dont works in my forum.  :(

Here is a picture (sorry German), you can see all installed packages.

[nofollow]

ccbtimewiz

Sie können deutsch sprechen?

Okay, ich werde Ihnen native Unterstützung. Sie werden benötigt zur Bearbeitung der package-infol.xml installieren. Das beinhaltet den Code, liest, was SMF-Version ist das Paket zu installieren. Einfach ändern Sie diesen Wert auf 1.1.5.

Etwa so:

<install for="{numbers}">

   
Ersetzen Sie mit diesem:

<install for="1.1.5">

Dann Reupload das Paket.  :)

cloudy.de

#27
Hi!

Thanks very much for your assistance. You can continue to write in English. :)

Well, I have changed the xml-file, as you said, but its still the same, it does not work.

[nofollow]

When I try to install it, its said that there is minimum one error.

I have although installed, but well... it does not work.

[nofollow]

ccbtimewiz


Bass_Chaz

SMF 1.1.5
Error message:
8: Undefined variable: message
File: /.../....../....../...../Themes/default/languages/ModHidePost.english.php (eval?)
Line: 437

ccbtimewiz

Looks like this mod is failing to work...

I'll remake this modification. I'll upload as soon as I have time.

rbar

#31
Installed OK but editing a post (would that be considered INLINE editing?) still shows the mod info... !!!

Any fix for that?

EDIT - I found that the manual solution offered at reply #9 worked perfectly.

http://www.simplemachines.org/community/index.php?topic=197282.msg1462899

cloudy.de

Quote from: rbar on July 14, 2008, 10:24:17 AM
EDIT - I found that the manual solution offered at reply #9 worked perfectly.
Not here. :(

kizley

same here,installed correctly but not at all working,i checked it and it shows same mesg---post edited by.....

pls is there any option where i can hide---post edited by admin.

ccbtimewiz

Find:
Code (display.template.php) Select
// Show "« Last Edit: Time by Person »" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']))
echo '
&#171; <i>', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], '</i> &#187;';


Replace with:
// Show "« Last Edit: Time by Person »" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']) && $message['member']['group']['id'] != 1)
echo '
&#171; <i>', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], '</i> &#187;';

cloudy.de

I can not find it in "install_1-1-3" or in "package-info".  ???

Quote from: install_1-1-3<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
   <id>DrJones:HideModEdit</id>
   <version>1.0</version>

   <file name="$sourcedir/Post.php">
      <operation>
           <search position="replace"><![CDATA[
      // Have admins allowed people to hide their screwups?
      if (time() - $row['posterTime'] > $modSettings['edit_wait_time'] || $ID_MEMBER != $row['ID_MEMBER'])
      {
         $msgOptions['modify_time'] = time();
         $msgOptions['modify_name'] = addslashes($user_info['name']);
      }]]></search>
         <replace><![CDATA[
      // Have admins allowed people to hide their screwups?
      if ((time() - $row['posterTime'] > $modSettings['edit_wait_time'] || $ID_MEMBER != $row['ID_MEMBER'])
          && (!in_array('moderate_board',$user_info['permissions']) && !$user_info['is_admin']))
      {
         $msgOptions['modify_time'] = time();
         $msgOptions['modify_name'] = addslashes($user_info['name']);
      }]]></replace>
       </operation>
   </file>
</modification>

Quote from: package-info<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
        <name>Hide mod and admin edits</name>
        <id>DrJones:HideModEdit</id>
        <type>modification</type>
        <version>1.0</version>
        <install for="1.1.3">
         <readme>readme.txt</readme>
         <modification>install_1-1-3.xml</modification>
        </install>
        <uninstall for="1.1.3">
         <modification reverse="true">install_1-1-3.xml</modification>
        </uninstall>
</package-info>

ccbtimewiz

Code (package-info) Select
<install for="1.1.3">

Change this value to

<install for="1.1.3, 1.1.4, 1.1.5">

cloudy.de

#37
I have already made this long ago, but it dont helps. (Look at your reply #26)

cloudy.de

Quote from: ccbtimewiz on July 24, 2008, 02:04:05 PM
Find:
Code (display.template.php) Select
// Show "« Last Edit: Time by Person »" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']))
echo '
&#171; <i>', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], '</i> &#187;';


Where I can find this?  ???

ccbtimewiz

Around line 800 or so.

Advertisement: