[ABD] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
omarenm
Registered User
Posts: 15
Joined: Fri Feb 08, 2008 7:21 pm

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by omarenm »

Is this working on 3.0.2?
autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by autinhyeu »

omarenm wrote:Is this working on 3.0.2?
Yes, this MOD work fine in phpBB3.0.2 :)
Regards
Autinhyeu
phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible
maas
Registered User
Posts: 21
Joined: Fri Sep 26, 2008 5:56 pm

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by maas »

will it work on 3.0.2?
autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by autinhyeu »

autinhyeu wrote:
omarenm wrote:Is this working on 3.0.2?
Yes, this MOD work fine in phpBB3.0.2 :)
Regards
Autinhyeu
This is...
phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible
raatbaki_4u
Registered User
Posts: 49
Joined: Sun Jul 23, 2006 12:19 pm

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by raatbaki_4u »

Is there any plan to give facility to disable this hack for some section(forum)? :idea:
I want to learn
rikin
Registered User
Posts: 35
Joined: Sat Oct 11, 2008 12:44 pm
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by rikin »

Could i please get style support for the theme:

Avalon Blue
http://www.phpbb.com/community/viewtopi ... 4&t=629705

Thanks, i would appreciate this so much.
autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by autinhyeu »

phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible
Kabamaru
Registered User
Posts: 2
Joined: Thu Oct 09, 2008 8:13 pm
Location: Spain -CyL-
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by Kabamaru »

Excuse me, but I use the "Topic Text in Mouse Over" (http://www.phpbb.com/community/viewtopi ... &t=1257235) and when a guest puts the mouse over the title of the topic, appears visibly content that should be hidden for guests.
Is there any way to fix it by changing the code?

Thanks.
Excuse me for my poor English, I speak Spanish.

Visit my phpbb3 forum: http://foro.kabamaru.es
Visita mi foro phpbb3: http://foro.kabamaru.es
usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by usenet2you »

Kabamaru wrote:Excuse me, but I use the "Topic Text in Mouse Over" (http://www.phpbb.com/community/viewtopi ... &t=1257235) and when a guest puts the mouse over the title of the topic, appears visibly content that should be hidden for guests.
Is there any way to fix it by changing the code?

Thanks.
Please go to that support topic.. You can change the maximum of characters of that MOD in the ACP.
rikin
Registered User
Posts: 35
Joined: Sat Oct 11, 2008 12:44 pm
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by rikin »

usenet2you wrote:
tomy91 wrote:is it possible to make that a specific user group can obtain hide and show the hidden content without reply?

I have a VIP group on my board and I would like how to make them viewing hidden content without a reply!
please read before posting men :roll: a few messages ago I say this:

If you want that for an specific group unhide, here the code

Find in viewtopic:

Code: Select all

// Check if the topic viewer has posted in a topic
$unhide = false; 
if ($user->data['user_id'] != ANONYMOUS)
{
	$sql = "SELECT poster_id, topic_id 
		FROM " . POSTS_TABLE . "
		WHERE topic_id = $topic_id 
		AND poster_id = " . $user->data['user_id']; 

	$result = $db->sql_query($sql);
	$unhide = $db->sql_affectedrows($result) ? true : false;
	$db->sql_freeresult($result);
}
Replace with:

Code: Select all

// Check if the topic viewer has posted in a topic
$unhide = false; 
if ($user->data['user_id'] != ANONYMOUS)
{
     // give hide free for a specific group by u2y
    $sql = 'SELECT group_id
        FROM ' . USERS_TABLE . "
        WHERE user_id = {$user->data['user_id']}";
    $result = $db->sql_query($sql);
    $groups = $db->sql_fetchrow($result);
    $db->sql_freeresult($result);
     
	if ($groups['group_id'] == 7)
	{
		$unhide = true;
	}
	else
	{
	$sql = "SELECT poster_id, topic_id 
		FROM " . POSTS_TABLE . "
		WHERE topic_id = $topic_id 
		AND poster_id = " . $user->data['user_id']; 

	$result = $db->sql_query($sql);
	$unhide = $db->sql_affectedrows($result) ? true : false;
	$db->sql_freeresult($result);
	}
}
Find in the new code:

Code: Select all

if ($groups['group_id'] == 7)
On the 7, replace with the group id that you want.

Enjoy!

Greetz,
u2y
This code doesnt work on my board. It works for just that specific user group, but then doesnt work for admins or global moderators.
dannyflap
Registered User
Posts: 91
Joined: Sun Jul 29, 2007 6:30 pm
Location: BOLTON, LANCASHIRE
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by dannyflap »

hello i have installed this mod and everything is fine apart from one thing!

when u hide your post and sumbit it, when u look at the post the post it totally blank?

should there not be some text saying 'this post is hidden' so it doesnt just look like a blank post?

any help would be great!

many thanks,

danny
rikin
Registered User
Posts: 35
Joined: Sat Oct 11, 2008 12:44 pm
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by rikin »

Look in your contrib folder.

Go to ./contrib/addon/use_warning_image and look at the instructions there.
dannyflap
Registered User
Posts: 91
Joined: Sun Jul 29, 2007 6:30 pm
Location: BOLTON, LANCASHIRE
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by dannyflap »

thanks for the help i sorted it out!

forgot to do the template changes haha! :oops:
krijo
Registered User
Posts: 77
Joined: Mon Dec 24, 2007 10:07 pm

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by krijo »

rikin wrote:
usenet2you wrote:
tomy91 wrote:is it possible to make that a specific user group can obtain hide and show the hidden content without reply?

I have a VIP group on my board and I would like how to make them viewing hidden content without a reply!
please read before posting men :roll: a few messages ago I say this:

If you want that for an specific group unhide, here the code

Find in viewtopic:

Code: Select all

// Check if the topic viewer has posted in a topic
$unhide = false; 
if ($user->data['user_id'] != ANONYMOUS)
{
	$sql = "SELECT poster_id, topic_id 
		FROM " . POSTS_TABLE . "
		WHERE topic_id = $topic_id 
		AND poster_id = " . $user->data['user_id']; 

	$result = $db->sql_query($sql);
	$unhide = $db->sql_affectedrows($result) ? true : false;
	$db->sql_freeresult($result);
}
Replace with:

Code: Select all

// Check if the topic viewer has posted in a topic
$unhide = false; 
if ($user->data['user_id'] != ANONYMOUS)
{
     // give hide free for a specific group by u2y
    $sql = 'SELECT group_id
        FROM ' . USERS_TABLE . "
        WHERE user_id = {$user->data['user_id']}";
    $result = $db->sql_query($sql);
    $groups = $db->sql_fetchrow($result);
    $db->sql_freeresult($result);
     
	if ($groups['group_id'] == 7)
	{
		$unhide = true;
	}
	else
	{
	$sql = "SELECT poster_id, topic_id 
		FROM " . POSTS_TABLE . "
		WHERE topic_id = $topic_id 
		AND poster_id = " . $user->data['user_id']; 

	$result = $db->sql_query($sql);
	$unhide = $db->sql_affectedrows($result) ? true : false;
	$db->sql_freeresult($result);
	}
}
Find in the new code:

Code: Select all

if ($groups['group_id'] == 7)
On the 7, replace with the group id that you want.

Enjoy!

Greetz,
u2y
This code doesnt work on my board. It works for just that specific user group, but then doesnt work for admins or global moderators.


Replace it with this

Code: Select all

// Check if the topic viewer has posted in a topic
$unhide = false;
if ($user->data['user_id'] != ANONYMOUS)
{
     // give hide free for a specific group by u2y
    $sql = 'SELECT group_id
        FROM ' . USERS_TABLE . "
        WHERE user_id = {$user->data['user_id']}";
    $result = $db->sql_query($sql);
    $groups = $db->sql_fetchrow($result);
    $db->sql_freeresult($result);
     
   if ($groups['group_id'] == 4 || $groups['group_id'] == 5 || $groups['group_id'] == 7)
   {
      $unhide = true;
   }
   else
   {
   $sql = "SELECT poster_id, topic_id
      FROM " . POSTS_TABLE . "
      WHERE topic_id = $topic_id
      AND poster_id = " . $user->data['user_id'];

   $result = $db->sql_query($sql);
   $unhide = $db->sql_affectedrows($result) ? true : false;
   $db->sql_freeresult($result);
   }
}
Replace $groups['group_id'] == 4 and $groups['group_id'] == 5 and $groups['group_id'] == 7 to whatever group id you want to show hidden msg
oglach
Registered User
Posts: 498
Joined: Sun Apr 22, 2007 5:58 pm

Re: [BETA] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Post by oglach »

i installed this mod!
But when i use hide bbcode it doesnt show in post 'hidden content' or whatever its supposed to say! its actualy invisible, then when u reply you can see what the text u hid whcih was literly invisible?


Should it not say please post to see hidden content or something to let you know theres hidden content!

then installed template ods and now it doesnt work at all, anything i pout in hide tags show anyway?
Locked

Return to “[3.0.x] Abandoned MODs”