News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

hidden for guests

Started by SeAlVa, May 16, 2007, 05:10:13 PM

Previous topic - Next topic

SeAlVa

I have just started to create the update for 2.0 rc1 ;)

The author

Apllicmz

Yes
thank you
i stay to that mod...
when finish tell to translate portuguese and update



apadong.net

dear SeAlVa, i want to ask you something:

1. Can I change the tag code from:
[logged]...[/logged]
to another like this or anything else?
[hidden]...[/hidden]

2. Why every time after I edit the post, this code dissappear & make my post doesn't hide anymore?

thanks before ;)


I'm glad to use your mods

cro.senator

Quote from: SeAlVa on March 01, 2009, 11:31:43 AM
I have just started to create the update for 2.0 rc1 ;)

The author

ty sooooo much :)

apadong.net

Where's TS? I need your help, please..

forace

What should i modify to make it Quote function dosen't remove [logged] tag ?

Can it be done ?

Mr. Pirate

can you make this compatible with smf 2.0 RC2

dio-clau

i'm sorry for bad english, but i'm a stupid italian ;)
please correct me...

i can't install this mod in my smf 1.1.11, so i've modified the files manually reading the instalador.xml file... and it works!


i've also changed three things

1: in the Sources/Load.php i've deleted the table shown in substitution of the text:

Quote
form

$devuelto .= "<center><table style=\"width:90%;height:64px;padding: 10px; text-align: center; margin: 0 1ex 2ex 1ex;border: 2px dashed #cc5566\"><tr><td>".$txt['hide_for_guests1']."<br>".$txt['hide_for_guests2']."</td></tr></table></center>";

to

$devuelto .= "";

2: in the Sources/Load.php i've set it to delete the string if you're a guest (not leaving a blank string)

Quote
from

            case 1: {if($mensaje[$indice] == "["){
                       if(substr($mensaje,$indice+1,8) == "/logged]"){
                          $estado = 0;
                          $indice += 8;
                       }

to

            case 1: {if($mensaje[$indice] == "["){
                       if(substr($mensaje,$indice+1,8) == "/logged]"){
                          $estado = 0;
                          $indice += 14;
                       }

3: last, in the Sources/Post.php i've commented out the lines that censor the post when you edit it leaving the tag [logged]text[/logged] unmodified (so, everytime you edit the post, you don't have to manually insert it)

Quote
from

      censorText($form_message,true);
      censorText($form_message);
      censorText($form_subject);

to

/*      censorText($form_message,true);
      censorText($form_message);
      censorText($form_subject);*/

please note that this modify remembers the censor terms only when you edit the post

eng_HK

@dio-clau...

I'm italian too.. non ho mica capito cosa hai fatto... I really didn't understand what changes you made to this mod.
So you can confirm that works with 1.1.11 ?

Perspective

Anyone would update this one for SMF 1.1.12 ?
Gives errors on installation.

Or anyone knows something simillar to this one ?

Apllicmz

what kind of error
this working in 1.1.12



Apllicmz

Any News About Support 2.x
When...
thank you



Impsat-1

Mmm... hey Guys, anyone can update this MOD for SMF 2.0.7?... will be great, pleaseee somebody help!!!!.. or UpDate the MOD, Thanks & Regards... 8).-
Vive Cáda Momento De Tu Vida Como Si Fueras a Irte Mañana, Más Planificala Cómo Si Jamás Fueras a Irte ;).-

Advertisement: