News:

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

Main Menu

Hide Tag Special

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

Previous topic - Next topic

ディン1031

#220
Ok i try it XD.

1.0.6 i'm sure that there are no changes but i go looking XD




I test it on a clean install, and install only the mod (and do not one change). And it work perfect in all ways, no way to see the content with quote... you must have a error on the install :X. (Or use something that change the quote system :X)...

(And i use the three normals ways of add quotings to the post... (i don't know more 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

NiKoLiN

I will try this thanks.

the other thing is, about the hide and unhide image...well tu put the unhide image it's easy.
But i tried to follow the instructions from mforum but there were no luck.The images are already in the server.
I want to put the hide hide image in a post and when i reply, then change to the unhide image.
How do i do that?

mforum

QuoteWhat i did is to use <img src="imagelink"> at admins panel in "What should the text for user without Post in the thread" box...
You can use an unhide image inside hidden part of post, so when a user reply see unhide image along with the hidden part......
as

[*hide*]
[*img*] Unhide Image Link [*/img*]
Whatever is Hidden
[*/hide*]

Have you done all that? where is the problem? what shows in a post with hidden part?

NiKoLiN

i don't know if i make things right.
I don't know how to put the HIDE image so it will appear when i post something...normally it will be:
[*img]link[*/img] but i want that the HIDE imeges disapear for the person that reply to that post.

I understad this next part perfectly.
[*hide*]
[*img*] Unhide Image Link [*/img*]
Whatever is Hidden
[*/hide*]

If i'm not wrong than you said i have to do something in the admin panel..but i don't know where and what to put

mforum

QuoteIf i'm not wrong than you said i have to do something in the admin panel..but i don't know where and what to put

ok, supposing you have SMF 1.0.6, english lanquage, and you installed this mod succesfully
Go to: Admin panel => Forum Configuration => Edit Features and options  .. at Basic Forum Features you will find "Hide Mod
What should the text for user without Post in the thread"

in the box next to it, you put <img src="yourhideimagelink"> , then you push the save button and thats it.
Before all that you must have upload on your server the image, lets say your domain is http://www.niktordo.com , your image name hidenimg.gif and you have uploaded to http://niktordo.com/hidenimg.gif , then if you put that on your browser you must see the image, if you see the image allright put in the above box <img src="http://niktordo.com/hidenimg.gif"> and you ll have your image in every post with hide tags....

??? maybe someone can explain it simpler  ???

NiKoLiN

Quote
??? maybe someone can explain it simpler  ???

I think this is perfect, i'll try this right now. thanks

NiKoLiN

We'll i found the problem but i don't know how to fix it.
Before we've put the HIDE, manualy and probaly thats why i didn't work out. Now i upload the MOD, but i have trouble to install.

2: fopen(): SAFE MODE Restriction in effect. The script whose uid/gid is 32005/32005 is not allowed to access /home/denki/public_html/Foros/Packages/temp owned by uid/gid 99/99
Archivo: /home/denki/public_html/Foros/Sources/Subs-Package.php
Línea: 1476


I've looked in the FTP for this file: Subs-Package.php and in line 1476 there is written:
$fp = fopen($filename, in_array(substr($filename, -3), $text_filetypes) ? 'w' : 'wb');

We'll it doesn't say anything to me. I also looked in the FILE MANAGER of the FTP and i put al the values to 777, but nothing.

Any idea?

ディン1031

Give you all the files who the mod change 777? Looks like some files have no rights be changed.

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

NiKoLiN

we'll finally i came to the point that i'm stupid LoL.

i did things wrong from the beginning....i upload the hole zip file instead of the mod only...y a also have seen what mforum mean with how to put the image.

the last questions i have are...i got the forum in spanish and in the end of the hide mod is written in english and german, about the text to put (in my case the image)....to i have to change english.php or german.php to spanish.php ????

getting closer.....hehe

mforum

If you have both english and spanish lanquage on your forum and want the hide mod text in admin panel to be in spanish you should change german.php to spanish.php and translate all text included in spanish.
Then zip the files of the mod, uninstall it with package manager and install the new zip.....

NiKoLiN

#230
Ok i changed the german to spanish. then i made a zip with that only mod and the xml file. After uploading it from theforum y try to apply the mod to install it but it comes this error:

Quote2: fopen(): SAFE MODE Restriction in effect. The script whose uid/gid is 32005/32005 is not allowed to access /home/denki/public_html/Foros/Packages/temp owned by uid/gid 99/99
Archivo: /home/denki/public_html/Foros/Sources/Subs-Package.php
Línea: 1476

temp folder has 777 for values but it's empty

i also looked in the Subs-Package.php and the line 1476 says:
Quote// Get an array of xmlArray's for use with foreach.

don't know what this means.

The mod is in public_html/Foros/Packages..so in the right place, but what do i do wrong?

mforum

I am not an expert, but seems you dont have permision from server to access the folder  ::)

NiKoLiN

this is strange...i think i have to talk with the person from the server. he may con solve that permision story

Elmacik

I have read some pages of messages but dont have time to read all 16.
Some of 1.18 users say that quoting hidden content *sometimes* show it.
I also experienced this. Sometimes hidden content is shown if its quoted.
Home of Elmacik

tuga

hello, i have this pack on my site, i`m admin and i cannot see the hide content, also e check Admin should see the hide without post? and global and co-admin members can do all :-( can anyone tell whats going on

tuga

#235
hi i found a bug on this mod.

if i post a msg between [hide]here[/hide] and post the msg stay hide for all members witout admin (should be like that) but the members co-admin or global or other who can edit posts can see the links, my opinion is something must be add for permissions.

the bug i found is on AJAX editing, like i say if i post and then go to AJAX editing and send again, nobody can see the msg and if anser the topic also cannot view inc admin, can anyone fix that?

mforum

Quote from: tuga on March 06, 2006, 08:19:58 AM
if i post a msg between [hide]here[/hide] and post the msg stay hide for all members witout admin (should be like that) but the members co-admin or global or other who can edit posts can see the links, my opinion is something must be add for permissions.

I cant think of a good reason why someone can edit post cant see hidden content.  :)

ディン1031

#237
Quote from: tuga on March 06, 2006, 08:19:58 AM
if i post a msg between [hide]here[/hide] and post the msg stay hide for all members witout admin (should be like that) but the members co-admin or global or other who can edit posts can see the links, my opinion is something must be add for permissions.

Hehe öhm if it hide this content to, than you can never change this content and if one admin edit the post the content is forever away... so it's unlogical to hide this too... and other reason admin and gmod who've the rights to edit posts are normaly edit only posts if it nesseasary so there is a reason why some one edit it.

Other problem if i remove the edit function than each person kann write something that not so good (or use violent things) he could easy lock this post to the mods, gmods and admins with hide ;), if this avaible...

And the other thing it's a lot of work to made this workable... and i will never put something like that into the mod (because i saw so many other hide mods who work in the way as my mod :P)

Quote from: Elmacik on March 06, 2006, 01:55:48 AM
I have read some pages of messages but dont have time to read all 16.
Some of 1.18 users say that quoting hidden content *sometimes* show it.
I also experienced this. Sometimes hidden content is shown if its quoted.
Version 1.1RC2 or other Version?

Okay i will made a mass quote click test...
but it's difficult to find out when this happend but if i found out why and a way to solve it :), i will solve it... but it's really strange... hmmm... but i test it.

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

ディン1031

#238
So i test it last evening this... to find the sometime... but...

I push with a script the buttons for Quote 60 (Could be more or lower XD, depends on how many windows are open) Times per minutes and this for ten minutes..., and it happend not one time... (And this in the three avaible way in the FF, Opera 7.5 and IE) with one total crash of my pc... to much windows open..

At least i've one idea for solve this problem, but with this the post with hide in it are never quotable any more ;D.

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: 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:
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'] : '&nbsp;'), $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'] : '&nbsp;'), $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


I just found out that this code will give the poll an error:
http://arkserver.servehttp.com/index.php?topic=1857.0

any idea how to fix it?

Advertisement: