Icy Phoenix
Old Customizations - BBCode Hide Message With An Image Buttom
Zuker [ Sun 26 Aug, 2007 18:45 ]
Post subject: Re: BBCode Hide message with an image buttom
you have to do it manually and play with groups id
robin cracker [ Mon 27 Aug, 2007 09:18 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
excuseme in what file edit the groups permision to hide mod? my php and mysql knowledge is very bad

Zuker [ Mon 27 Aug, 2007 15:19 ]
Post subject: Re: BBCode Hide message with an image buttom
excuseme in what file edit the groups permision to hide mod? my php and mysql knowledge is very bad

when i arrive home i'll try to play quickly with it.
Zuker [ Mon 27 Aug, 2007 17:36 ]
Post subject: Re: BBCode Hide message with an image buttom
mmm, i don't think if it's ok. i have no idea of how to make it
try in bbcode.php and viewtopic.php
replace
if($userdata['session_logged_in'])
{
$sql = "SELECT *
FROM " . THANKS_TABLE . "
WHERE topic_id = $topic_id
AND user_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$show = $db->sql_numrows($resultat) ? true : false;
if ( ($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD))
{
$show = true;
}
}
with
if($userdata['session_logged_in'])
{
$sql = "SELECT user_id FROM " . USER_GROUP_TABLE . " WHERE group_id = x";
$result = $db->sql_query($sql);
if ( $userdata['user_id'] == $result )
{
$show = true;
}
if ( ($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD))
{
$show = true;
}
}
IMPORTANT: Replace in WHERE group_id = x"; the x, with the id of the group you want to see the hidden code.
robin cracker [ Mon 27 Aug, 2007 19:17 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
thanks try this code in localhost to test, and later comment , thanks for your help zuker

Zuker [ Mon 27 Aug, 2007 19:21 ]
Post subject: Re: BBCode Hide message with an image buttom
thanks try this code in localhost to test, and later comment , thanks for your help zuker

i hope this to work or help you in "how to code it"
i won't go further in this customization you ask for

Mighty Gorgon [ Mon 27 Aug, 2007 20:41 ]
Post subject: Re: BBCode Hide message with an image buttom
Playing with usergroups it's not so easy.
robin cracker, you should try to study a bit phpBB groups system and then try to add the check you wish.
Unfortunately such kind of modifications requires times and skills.
I would create PRIVATE forums instead of creating such a strange BBCode structure.
Zuker did already a lot trying to help you, but as he said, we try to help users where we can and as we can, but where requests require too much times, we can't always sacrifice our free time for that

. Trust me we are trying to do our best to help anyone. A clap to Zuker for putting so many efforts in helping users like you in their customizations!

Zuker [ Mon 27 Aug, 2007 22:17 ]
Post subject: Re: BBCode Hide message with an image buttom

i told you that i would not work

robin cracker [ Tue 28 Aug, 2007 07:59 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
ok thanks for the help,im new in phpbb and php but i wish to learn where i ready the docs of code in icy?
aswin12 [ Thu 06 Sep, 2007 00:59 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
I get this error please help!!!!
Parse error: syntax error, unexpected T_STRING in ******/htdocs/includes/bbcode.php on line 2598
Zuker [ Thu 06 Sep, 2007 12:46 ]
Post subject: Re: BBCode Hide message with an image buttom
You are missing someting i think. Attach your modded file here please.
aswin12 [ Thu 06 Sep, 2007 21:46 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
ok here you go....
http://rapidshare.com/files/53866891/bbcode.php.html
Zuker [ Fri 07 Sep, 2007 04:20 ]
Post subject: Re: BBCode Hide message with an image buttom
attach it here please
aswin12 [ Sat 08 Sep, 2007 00:10 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
ok..

Zuker [ Sat 08 Sep, 2007 13:23 ]
Post subject: Re: BBCode Hide message with an image buttom
Try this file, i'm not at home so i can't test it, but maybe works

aswin12 [ Sun 09 Sep, 2007 19:43 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
Zuker [ Sun 09 Sep, 2007 20:05 ]
Post subject: Re: BBCode Hide message with an image buttom

great
MiNdPhAsEr [ Sat 22 Sep, 2007 10:38 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
With this changes, we have an image with the text of BBcode Hide explain.
But, the BBcode Hide doesn't have a bbcode button on posting.php (on reply).
With this changes, you can add this button.
Example Image of the button:
Image of the button pressed
Follow this instructions:
Upload to
/images/bbcb_mg/images/gif this images:

= (rename this to
hide.gif)

= (rename this to
hide1.gif)
In
/languages/lang_xxx/bbcb_mg.js
FIND:
AFTER, ADD
s_hide_help = 'Hide a text, registered users must reply to view the hidden message: [hide]Quoted Hidden Message, which is still hidden.[/hide]';
FIND:
AFTER ADD:
FIND:
AFTER ADD
'[hide]Quoted Hidden Message, which is still hidden.[/hide]',
FIND:
BEFORE ADD:
function BBChide()
{
var txtarea = document.post.message;
if ((clientVer >= 4) && is_ie && is_win)
{
theSelection = document.selection.createRange().text;
if (theSelection != '')
{
document.selection.createRange().text = "[hide]Quoted Hidden Message, which is still hidden.[/hide]";
document.post.message.focus();
return;
}
}
else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
{
mozInsert(txtarea, "[hide]Quoted Hidden Message, which is still hidden.[/hide]");
return;
}
ToAdd = "[hide]Quoted Hidden Message, which is still hidden.[/hide]";
PostWrite(ToAdd);
}
In
/templates/mg_themes/bbcb_mg.tpl
FIND:
<a href="javascript:BBChl()" ><img border="0" src="{BBCB_MG_IMG_PATH}highlight{BBCB_MG_IMG_EXT}" name="highlight" onMouseOver="helpline('highlight')" alt="{L_BBCB_MG_HIGHLIGHT}" title="{L_BBCB_MG_HIGHLIGHT}" class="bbimages" /></a>
AFTER ADD:
<a href="javascript:BBChide()" ><img border="0" src="{BBCB_MG_IMG_PATH}hide{BBCB_MG_IMG_EXT}" name="hide" type="image" onMouseOver="helpline('hide')" alt="Hide a message" title="Hide a message" class="bbimages" /></a>
(note: the text in
alt="" and
title="" must be with
{language}
Now, with this changes, we have a new button to use the bbcode hide in the posting page
well i trie this but nothings work
when i post a message ill don't see the button for hide or /hide
and when i look from a other location at the post i see the image that ill look to a hidden message but unther the gif ill see the message that should be hidden
some body know's the solution ?
( sorry for my english i'm dutch )
Zuker [ Tue 02 Oct, 2007 20:16 ]
Post subject: Re: BBCode Hide message with an image buttom
review your changes, this worked for lot's of guys
Mairena [ Wed 24 Oct, 2007 23:22 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
Zuker, thanks for this excelent mod... is very important in my forum...
I want to ask you for a modification: when a user quote the original post, he can see the hide message.. it´s possible to change that? I want to everyone Write something before see the message.. what do you think?
Zuker [ Thu 06 Mar, 2008 13:16 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
Topic updated to make it work with 1.2 please test it

Master09 [ Sun 09 Mar, 2008 03:40 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
zuker can u help me with Hide Message when i do it im my forum i go alot of problems can i Attach my bbcode and u add the imagen to the hide message plz couse

i never ge it good ?
and this imagen when the user post a repley

edfara [ Sat 19 Apr, 2008 18:42 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
Zuker, una consulta funciona en la version Icy Phoenix 1.2.0.27a
Zuker, a consultation works in version Icy Phoenix 1.2.0.27a
ALTUN [ Fri 13 Jun, 2008 22:43 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
Thanks for superfine "BBCode Hide Message With An Image Buttom" Mod to Zuker.

Fade05 [ Fri 18 Jul, 2008 00:35 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
I changed all files and upload images as was the explanation but I can not see the buttons on the panel BBCode.
he modificado todos los archivos y subi las imagenes como estaba en la explicacion pero no puedo ver los botones en el panel de bbcodes.
Alguna solucion? esto es en la version 1.2.0.27
channelasian [ Thu 09 Jul, 2009 03:56 ]
Post subject: Re: BBCode Hide Message With An Image Buttom
hello
how to do it with phpbb3 style Avaloncyan?
i cant do that. please help me.
Thanks
sorry for bad english.