BBCode Hide Message With An Image Buttom
Subject: Re: BBCode Hide message with an image buttom
you have to do it manually and play with groups id
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 :oops:
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 :P
try in bbcode.php and viewtopic.php
replace
with
IMPORTANT: Replace in WHERE group_id = x"; the x, with the id of the group you want to see the hidden code.
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;
}
}
{
$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;
}
}
{
$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.
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 :D
Subject: Re: BBCode Hide message with an image buttom
i hope this to work or help you in "how to code it"
i won't go further in this customization you ask for :(
robin cracker wrote: [View Post]
i hope this to work or help you in "how to code it"
i won't go further in this customization you ask for :(
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 :sad: . 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! :wink:
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 :sad: . 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! :wink:
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?
Subject: Re: BBCode Hide Message With An Image Buttom
I get this error please help!!!! :( :( :(
Code: [Download] [Hide] [Select]
Parse error: syntax error, unexpected T_STRING in ******/htdocs/includes/bbcode.php on line 2598
Subject: Re: BBCode Hide message with an image buttom
You are missing someting i think. Attach your modded file here please.
Subject: Re: BBCode Hide Message With An Image Buttom
ok here you go....
Code: [Download] [Hide] [Select]
h**p://rapidshare.com/files/53866891/bbcode.php.html
Subject: Re: BBCode Hide Message With An Image Buttom
ok.. :v:
bbcode.zip | ||
Description: | here you go! | ![]() Download |
Filename: | bbcode.zip | |
Filesize: | 22.18 KB | |
Downloaded: | 173 Time(s) |
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 :)
bbcode.rar | ||
Description: | try this file | ![]() Download |
Filename: | bbcode.rar | |
Filesize: | 21.1 KB | |
Downloaded: | 192 Time(s) |
Page 2 of 3
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.4462s (PHP: 5% SQL: 95%)
SQL queries: 31 - Debug Off - GZIP Enabled