News:

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

Main Menu

Hide Tag Special

Started by enik, April 11, 2005, 03:41:07 PM

Previous topic - Next topic

ディン1031

#80
Some other mods installed who change the subs.php?
(I've think i've found a good part of the file who never changed...).

Can you send me the subs.php file... or can you post me the parse_bbc function (in a php tag).
so i can look what so diffrent to the Standard Version.

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

ArkServer

#81
//edit
i fixed it:) thnx

L.G.S

Quote from: din1031 on October 28, 2005, 04:59:57 AM
Some other mods installed who change the subs.php?
(I've think i've found a good part of the file who never changed...).

Can you send me the subs.php file... or can you post me the parse_bbc function (in a php tag).
so i can look what so diffrent to the Standard Version.

Bye
DIN1031

Are you asking me ?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


xtremecruiser

How about a image that gets inserted into the thread showing that something is hidden ?

Like  ( it now says thank you but used to say reply )

Then

edi67

din one questions as i told you already why this happen usgin HIDE TAG?

look pig:

Quote

usgin the TAG appear a big grey area around button under post, look all is grey appear ONLY using HIDE TAG may be something not coorect modifing Display ? or post template?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

L.G.S

Is there anyone who can help me with my problem?

I cannot use it on my 1.1 RC1 forum because for some reason it creates an error in the subs file.

I am in need or urgent help as we have lots of members wanted to post links and pictures without having to copy and paste the links
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


xtremecruiser

Quote from: The Outsider on October 30, 2005, 11:07:48 AM
Is there anyone who can help me with my problem?

I cannot use it on my 1.1 RC1 forum because for some reason it creates an error in the subs file.

I am in need or urgent help as we have lots of members wanted to post links and pictures without having to copy and paste the links
I had all kinds of strange errors with the subs, but it installed and runs fine.  The just showing a blank scree is strange, we need a image or button :-\

ディン1031

#87
Quote from: xtremecruiser on October 30, 2005, 06:51:54 PM
Quote from: The Outsider on October 30, 2005, 11:07:48 AM
Is there anyone who can help me with my problem?

I cannot use it on my 1.1 RC1 forum because for some reason it creates an error in the subs file.

I am in need or urgent help as we have lots of members wanted to post links and pictures without having to copy and paste the links
I had all kinds of strange errors with the subs, but it installed and runs fine.  The just showing a blank scree is strange, we need a image or button :-\
Change the text in the forum settings...
and use [img]http://www.t-warez.com/hidden.png[/img]... Than there is a image as alternativ text :x.

Quote from: xtremecruiser on October 30, 2005, 06:51:54 PM
Quote from: The Outsider on October 30, 2005, 11:07:48 AM
Is there anyone who can help me with my problem?

I cannot use it on my 1.1 RC1 forum because for some reason it creates an error in the subs file.

I am in need or urgent help as we have lots of members wanted to post links and pictures without having to copy and paste the links
I had all kinds of strange errors with the subs, but it installed and runs fine.  The just showing a blank scree is strange, we need a image or button :-\

What kind of errors?

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

ArkServer

Quote from: xtremecruiser on October 29, 2005, 11:12:03 PM
How about a image that gets inserted into the thread showing that something is hidden ?

Like  ( it now says thank you but used to say reply )

Then


I would like to see this as well :P

xtremecruiser

Quote from: xtremecruiser on November 02, 2005, 11:17:51 AM
Quote from: din1031 on November 02, 2005, 04:09:25 AM
Quote from: xtremecruiser on October 30, 2005, 06:51:54 PM
Quote from: The Outsider on October 30, 2005, 11:07:48 AM
Is there anyone who can help me with my problem?

I cannot use it on my 1.1 RC1 forum because for some reason it creates an error in the subs file.

I am in need or urgent help as we have lots of members wanted to post links and pictures without having to copy and paste the links
I had all kinds of strange errors with the subs, but it installed and runs fine.  The just showing a blank scree is strange, we need a image or button :-\
Change the text in the forum settings...
and use [img]http://www.t-warez.com/hidden.png[/img]... Than there is a image as alternativ text :x.

Quote from: xtremecruiser on October 30, 2005, 06:51:54 PM


Thanks ! That works for the Hiding the image, can I add something to get the image when the post is unhidden ?




ArkServer

#90
thnx! the hidden works.. now how to make an image appear when unhidden?

see it in action:
http://arkserver.servehttp.com/forum/index.php?topic=934.0
i altered the image a bit.

ディン1031

#91
Quote from: ArkServer on November 02, 2005, 11:41:31 AM
thnx! the hidden works.. now how to make an image appear when unhidden?

see it in action:
http://arkserver.servehttp.com/forum/index.php?topic=934.0
i altered the image a bit.
The simpelst way i know... hmmmm

Serach in the Subs.php

//Hide Mod.. i remove the code before i do anything...
if(empty($context['user_post_avaible']) || !isset($context['user_post_avaible'])) {
$message = preg_replace("/\[hide\](.+?)\[\/hide\]/i", (!empty($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : ' '), $message);
}


Replace this this with

//Hide Mod.. i remove the code before i do anything...
if(empty($context['user_post_avaible']) || !isset($context['user_post_avaible'])) {
$message = preg_replace("/\[hide\](.+?)\[\/hide\]/i", (!empty($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : ' '), $message);
}
elseif(preg_match($message, "/\[hide\](.+?)\[\/hide\]/i") != 0) {
$message .= '[br][img]http://linktoaotherpicture[/img]';
}


replace the [img]http://linktoaotherpicture[/img] with your image link.
Did i think right then it should be a unhidden images at the end of the post. (but only if there a hidden text in it).

It's untested and i can give no warrenty for this, use this on your own risk ;).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

ArkServer

#92
Thanks :P although i fixed that too :P you see a hidden image and after you reply you see the unhidden image. If you want check it out :)
http://arkserver.servehttp.com/forum/index.php?topic=934.0

edi67

ALL SOLVED great mod din realy great look pic now  ;) excellent

German language


English language


Thanx
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

souluna

Quote from: din1031 on November 03, 2005, 01:43:01 AM
Quote from: ArkServer on November 02, 2005, 11:41:31 AM
thnx! the hidden works.. now how to make an image appear when unhidden?

see it in action:
hxxp:arkserver.servehttp.com/forum/index.php?topic=934.0 [nonactive]
i altered the image a bit.
The simpelst way i know... hmmmm

Serach in the Subs.php

//Hide Mod.. i remove the code before i do anything...
if(empty($context['user_post_avaible']) || !isset($context['user_post_avaible'])) {
$message = preg_replace("/\[hide\](.+?)\[\/hide\]/i", (!empty($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : ' '), $message);
}


Replace this this with

//Hide Mod.. i remove the code before i do anything...
if(empty($context['user_post_avaible']) || !isset($context['user_post_avaible'])) {
$message = preg_replace("/\[hide\](.+?)\[\/hide\]/i", (!empty($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : ' '), $message);
}
elseif(preg_match($message, "/\[hide\](.+?)\[\/hide\]/i") != 0) {
$message .= '[br][img]http://linktoaotherpicture[/img]';
}


replace the [img]http://linktoaotherpicture[/img] with your image link.
Did i think right then it should be a unhidden images at the end of the post. (but only if there a hidden text in it).

It's untested and i can give no warrenty for this, use this on your own risk ;).

Bye
DIN1031


Hi DIN, your mods works very well with my custom templates :)
For the hidden images, i must add this code in the forum setting:
<center><img src="http://project/smf/hidden.png" /></center>
not with [ img ] tags

But for unhidden images when i try to search your code at subs.php
i cant find it. I install this mods from package manager. But i find this code below from subs.php :

// The HideTag :)
if (!isset($modSettings['hide_hiddentext'])) $modSettings['hide_hiddentext'] = '&nbsp;'; //A tiny little space =)
$codefromcache[] = "~\[hide\](.+?)\[\/hide\]~i";
if (!empty($context['user_post_avaible'])) {
if ($context['user_post_avaible'] == 1)
        $codetocache[] = '<b>$1</b>';
        else
    $codetocache[] = $modSettings['hide_hiddentext'];
    }
else
    $codetocache[] = $modSettings['hide_hiddentext'];


Now, how can i use unhidden image too?

Best regards,
Hardi

souluna

one more..

Why i'm always getting error when i try to modify Subs.php with only write "a" and i remove again (backspace)?

If always like this, i cant modify anymore for the mods, the only way just from package manager.  :(

ディン1031

Quote from: souluna on November 05, 2005, 05:21:31 AM

Hi DIN, your mods works very well with my custom templates :)
For the hidden images, i must add this code in the forum setting:
<center><img src="http://project/smf/hidden.png" /></center>
not with [ img ] tags

But for unhidden images when i try to search your code at subs.php
i cant find it. I install this mods from package manager. But i find this code below from subs.php :

// The HideTag :)
if (!isset($modSettings['hide_hiddentext'])) $modSettings['hide_hiddentext'] = '&nbsp;'; //A tiny little space =)
$codefromcache[] = "~\[hide\](.+?)\[\/hide\]~i";
if (!empty($context['user_post_avaible'])) {
if ($context['user_post_avaible'] == 1)
        $codetocache[] = '<b>$1</b>';
        else
    $codetocache[] = $modSettings['hide_hiddentext'];
    }
else
    $codetocache[] = $modSettings['hide_hiddentext'];


Now, how can i use unhidden image too?

Best regards,
Hardi
Öhm this is the old version XD.

Did you have installed SMF 1.0.5?

There is it not so easy to do this... because the parse work in complete other way...

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

souluna

yes i'm use 1.0.5 version, i'm still waiting the stable release from smf to upgrade  :D

Do you mean i must to upgrade to RC1 first if i need unhidden image?

allumius

Quote from: din1031 on November 06, 2005, 04:52:05 AM
Quote from: souluna on November 05, 2005, 05:21:31 AM

Hi DIN, your mods works very well with my custom templates :)
For the hidden images, i must add this code in the forum setting:
<center><img src="http://project/smf/hidden.png" /></center>
not with [ img ] tags

But for unhidden images when i try to search your code at subs.php
i cant find it. I install this mods from package manager. But i find this code below from subs.php :

// The HideTag :)
if (!isset($modSettings['hide_hiddentext'])) $modSettings['hide_hiddentext'] = '&nbsp;'; //A tiny little space =)
$codefromcache[] = "~\[hide\](.+?)\[\/hide\]~i";
if (!empty($context['user_post_avaible'])) {
if ($context['user_post_avaible'] == 1)
        $codetocache[] = '<b>$1</b>';
        else
    $codetocache[] = $modSettings['hide_hiddentext'];
    }
else
    $codetocache[] = $modSettings['hide_hiddentext'];


Now, how can i use unhidden image too?

Best regards,
Hardi
Öhm this is the old version XD.

Did you have installed SMF 1.0.5?

There is it not so easy to do this... because the parse work in complete other way...

Bye
DIN1031

Sorry but i dont speack english fine
I have this problem too
i have 1.05 and Faster Parsecode 1.09  and Hide Tag 1.12aFP  and my sub.php is
// The HideTag :)
if (!isset($modSettings['hide_hiddentext'])) $modSettings['hide_hiddentext'] = '&nbsp;'; //A tiny little space =)
$codefromcache[] = "~\[hide\](.+?)\[\/hide\]~i";
if (!empty($context['user_post_avaible'])) {
if ($context['user_post_avaible'] == 1)
        $codetocache[] = '<b>$1</b>';
        else
    $codetocache[] = $modSettings['hide_hiddentext'];
    }
else
    $codetocache[] = $modSettings['hide_hiddentext'];


and i dont know who install de unhiden image
Help me please

ディン1031

#99
Okay i try it :x but i'm not sure that i can made it workable :)

The easiest and not so fine way XD

replace this

$codetocache[] = '<b>$1</b>';


with

$codetocache[] = '<b>$1</b><br /><img src="link_to_pic">';


Why not a fine way? Because each hide text have now a unhidden image :x.
1.1 have only one at the end of the post :). (if i thought right XD).

Bye
DIN1031

Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Advertisement: