News:

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

Main Menu

Hide Hack for SMF ?

Started by edi67, March 29, 2004, 07:53:21 AM

Previous topic - Next topic

Kirby

Thanks.. BTW, I made a huge code fix, so I suggest everyone who applied this code change changes it again :P

ANARCH¥

ok, i tried but the code dont work for me...sad  :'(
i  placed the hide [hide]text[/hide]tag but the link stay on for all. and, i want to preserve the link ...for guest and users...they have to answer for see the link..this the point of the hide link.

Kirby

#22
Errm?? The point of this hack is to hide the text inside of it for guests, but not for users.

ANARCH¥

lol, u wrong. the hide tag is for all members...just answer for see th hide text or link...go to a phpbb or vbulletin board for test please.

Kirby

This topic requested it differently
QuoteCode in the tags can only be viewed by Members of your board, who have replied to the thread it is posted in. Guests cannot see the code.
Click the link in the first post... thats the hack I made, I didn't make one for hiding like that.

ANARCH¥

QuoteCode in the tags can only be viewed by Members of your board, who have replied to the thread it is posted in. Guests cannot see the code.

can only be viewed by Members of your board, who have replied

its what i told u...answer for see the link...no matter if its a guest or not...the hide tag: answer for see.

and your code dont work...

Kirby

Oops =X
I'll work on it later then. I'm such an idiot lol

ANARCH¥

#27
lol... i dont think so, but u are the only able to judge you...lol
no seriously, its surely a good job. and u are the only who tried to help.
perhaps i have to place my questions here after all...lol
well, not a bad idea...i used the mod spoiler..ok, working perfect, but i need a button in edit message function, because the user will not think to writte himself the code manually...and its available for all tag addon..
well
thx for all, YOU rules

[Unknown]

Quote from: Kirby on November 14, 2004, 05:23:04 PM
Shows how much SMF has advanced over YaBB SE :P

Actually, it could have been done in a much better fashion even in YaBB SE.  That's just poor coding, I'm afraid.

You'll want to look for where it loads the member data, (loadMemberData) in Display.php.  Stick that array of ID_MEMBERs into the context somewhere, and you'll be able to check if the current member's id is in that list.

-[Unknown]

edi67

Quote from: Kirby on November 14, 2004, 08:25:11 PM
Oops =X
I'll work on it later then. I'm such an idiot lol

sure you are not one idiot, im another one that want so much thi s hack, was one of more useful hack for my forum and i wait so much to see it working thx again.

sure the purpouse of this hack is to hide text inside TAG hide to all members and not ANSWER in post and only members that answer in post can see the text inside hack

thx kirby i wait with impatience grazie
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Kirby


edi67

i love youuuu kirby ...opps im man so great thx your mod for very nice..  ;D

this was what i wanted

listen one little thing will be nice put the button BBC to press to have the code. you are albe to insert this too ?

great mod work perfectly
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Anguz

Kirby, some tips:


  • Put the new txt strings in the file Modifications.english.php.
  • The new global variables add them in a new line, don't replace the existing one, it may be needed as it is for another mod.
  • That query you make in preparsecode, change that code so it won't be done every function call! This may help you.

:)
Cristián Lávaque http://cristianlavaque.com

edi67

kirby and anguz will be great to make button in BBC buttons for call function HIDE

is possible ?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

edi67

#34
one little problem for  moderator and global moderator not work, not hide words not words that advise for hide tag.
them see all
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Kirby

edi67, I will get to that in a while :) For now, I took Anguz' suggestions and updated.
Enjoy!

edi67

#36
Thx kirby was one my mistake not problem with moderator and global moderator all ok super mod.

one problem is only that QUOTING post ( if i quote post i see the hide text inside HIDE TAG

only this is one little problem for all your mod work perfectly

look this (is wrote in italian but is the message of HIDE TAG  :D:

http://www.forumzone.ru/index.php?topic=25218.0

perfect
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

andrea

#37
Hi Kirby,

Is it possible to make a SUMMARY of the code needed for the hide hack. Such that we can have a "tips and tricks" thread where the knowledge is in the *1st post*.

I will move this very long thread into the scripting help board.

Andrea

Andrea Hubacher
Ex Lead Support Specialist
www.simplemachines.org

Personal Signature:
Most recent work:
10 Aqua Themes for SMF



Kirby

#38
Sure, andrea :)
I can make the post now.
edi67, I almost forgot about the quote tag :x I'll see what I can do to resolve it.. In the meanwhile, I'll work on the BBC button for it.

Advertisement: