News:

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

Main Menu

Moderator and Administrator Comment Tags

Started by Arantor, September 01, 2009, 06:26:49 AM

Previous topic - Next topic

simplebeer

trying to install this at 2.0.10 as version 1.1.21 and it failed.

Anyone know why?

At./Themes/default/Post.template.php i can't find the code
Quote$found_button = false;

at and at ./Sources/ManagePermissions.php i cant'find the code 'board' => array(

Whats wrong?
Sorry for my poor English, but i think it's probably better then your Dutch :)

Kindred

even with emulation - mods for 1.1.x will almost certainly NOT work with 2.0.x...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

simplebeer

but in the page for this page you say:

Quote from: Kindred on April 30, 2015, 06:44:09 AM
this is compatible  with 2.0.10
Almost any mod for 2.0.x will work with any other 2.0.x

and if i have a look at the mod it say compatible  :-[

is it possible to put the code somewhere else manually?
Sorry for my poor English, but i think it's probably better then your Dutch :)

margarett

2.0 RC4 is not yet 2.0.x ;) Yet some previous posts claim it works fine in 2.0.2/4 so it should work in 2.0.10.
You need to manually find the affected code and fix it as most likely other MOD conflicts with this one.
Manual Installation of Mods

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

simplebeer

I know how to do it manually but i can't find the codes which i have to replace, so i don't know the position of the new text.

i have try to put it at the end before <?> but it isn't working... :-\
Sorry for my poor English, but i think it's probably better then your Dutch :)

margarett

Wait... The MOD doesn't touch Post.template.php
custom.simplemachines.org/mods/index.php?action=parse;attach=163476;smf_version=2.0_RC4;mod=2104
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kindred

You said...

Quote from: simplebeer on July 20, 2015, 07:34:08 AM
trying to install this at 2.0.10 as version 1.1.21 and it failed.


and this will not work.

if you emulate 2.0 RC4, it is likely to work.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

simplebeer

Sorry for my poor English, but i think it's probably better then your Dutch :)

Westwegoman

Getting the following error in the error log.

8192: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

Sources/Subs-Post.php  line=271


Mod still works.

SMF 2.0.11

margarett

Yeah, that's the deprecated modifier at PHP 5.5, it will continue to work until the deprecated modifier is completely removed. Both the original author and the current maintainer are absent so it's unlikely that the MOD is updated further :(
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

ToxicHUN

How can I add other tags?

Like this

[szuperadmin][/szuperadmin]
[foadmin][/foadmin]

Sry for bad english

Shambles

Quote from: Westwegoman on November 15, 2015, 11:40:30 AM
Getting the following error in the error log.

8192: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

Sources/Subs-Post.php  line=271



Quote from: margarett on November 15, 2015, 05:06:15 PM
Yeah, that's the deprecated modifier at PHP 5.5, it will continue to work until the deprecated modifier is completely removed


At PHP7+ (I'm using 7.1.5) this mod causes all kinds of trouble due to the deprecated modifier /e being removed entirely, as forewarned above.

The fix is as follows:

Sources/Subs-Post.php

Code (Find) Select

$parts[$i] = preg_replace('~\[mod(.+?)\[/mod\]~ise', '\'[mod\' . strtr(un_htmlspecialchars(\'$1\'), array("\n" => \'\', \'  \' => \'  \')) . \'[/mod]\'', $parts[$i]);


Code (Replace With) Select

$parts[$i] = preg_replace_callback (
'~\[mod(.+?)\[/mod\]~is',
function ($p) {
$res = strtr(un_htmlspecialchars($p[1]), array("\n" => "", "  " => "  "));
return '[mod' . $res . '[/mod]';
},
$parts[$i]);




Code (Find) Select

$parts[$i] = preg_replace('~\[gmod(.+?)\[/gmod\]~ise', '\'[gmod\' . strtr(un_htmlspecialchars(\'$1\'), array("\n" => \'\', \'  \' => \'  \')) . \'[/gmod]\'', $parts[$i]);


Code (Replace With) Select

$parts[$i] = preg_replace_callback (
'~\[gmod(.+?)\[/gmod\]~is',
function ($p) {
$res = strtr(un_htmlspecialchars($p[1]), array("\n" => "", "  " => "  "));
return '[gmod' . $res . '[/gmod]';
},
$parts[$i]);




Code (Find) Select

$parts[$i] = preg_replace('~\[admin(.+?)\[/admin\]~ise', '\'[admin\' . strtr(un_htmlspecialchars(\'$1\'), array("\n" => \'\', \'  \' => \'  \')) . \'[/admin]\'', $parts[$i]);


Code (Replace With) Select

$parts[$i] = preg_replace_callback (
'~\[admin(.+?)\[/admin\]~is',
function ($p) {
$res = strtr(un_htmlspecialchars($p[1]), array("\n" => "", "  " => "  "));
return '[admin' . $res . '[/admin]';
},
$parts[$i]);

simplebeer

I had the same issue when upgrade to php 7.1 and smf 2.0.14 and this has fix it, thanks!
Sorry for my poor English, but i think it's probably better then your Dutch :)

ItsBlockFighter


Shambles

Quote from: ItsBlockFighter
Please update to 2.0.14 SMF version

It already works on 2.0.14

ItsBlockFighter



ItsBlockFighter


Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ItsBlockFighter

He writes:
The package that you are trying to download or install is either corrupted or incompatible with this version of SMF.

Advertisement: