[MODDB] Guest Hide BBCode MOD

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
User avatar
AllCity
Registered User
Posts: 230
Joined: Sun Jun 22, 2008 6:33 pm
Name: Andrey Shapoval
Contact:

Re: [RC2] Guest Hide BBCode MOD 1.2.5

Post by AllCity » Fri Feb 27, 2009 7:25 pm

No because this mod is designed to hide the messages from the guests and not from the users.
Guest Hide BBCode MOD
My mods home page.

User avatar
AllCity
Registered User
Posts: 230
Joined: Sun Jun 22, 2008 6:33 pm
Name: Andrey Shapoval
Contact:

Re: [RC3] Guest Hide BBCode MOD 1.3.0

Post by AllCity » Fri Feb 27, 2009 8:36 pm

up to v1.3.0
My mods home page.

User avatar
AllCity
Registered User
Posts: 230
Joined: Sun Jun 22, 2008 6:33 pm
Name: Andrey Shapoval
Contact:

Re: [RC2] Guest Hide BBCode MOD 1.2.5

Post by AllCity » Fri Feb 27, 2009 8:41 pm

alphatran wrote:One more question, can this mod hide content from bots such as Google Bots, Yahoo Bots?
In version 1.3.0 yes :)
My mods home page.

User avatar
AllCity
Registered User
Posts: 230
Joined: Sun Jun 22, 2008 6:33 pm
Name: Andrey Shapoval
Contact:

Re: [RC3] Guest Hide BBCode MOD 1.3.1

Post by AllCity » Wed Mar 04, 2009 9:24 am

Last edited by AllCity on Thu Mar 05, 2009 4:40 pm, edited 1 time in total.
My mods home page.

User avatar
BizimPencere
Registered User
Posts: 396
Joined: Sat Aug 25, 2007 8:31 pm

Re: [RC3] Guest Hide BBCode MOD 1.3.1

Post by BizimPencere » Wed Mar 04, 2009 8:48 pm

Update from 1.2.5 to 1.3.1... ??????

Pleasee add update folder to your mod.
www.phpbbturkiye.net | Turkish phpBB3 support and development

User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: [RC3] Guest Hide BBCode MOD 1.3.1

Post by DragonMaster1 » Wed Mar 04, 2009 9:52 pm

Have to remove the old functions_content.php edits from 130 and add the new and also replace the BBCode edits

But having this mentioned in an update would be real nice

User avatar
AllCity
Registered User
Posts: 230
Joined: Sun Jun 22, 2008 6:33 pm
Name: Andrey Shapoval
Contact:

Re: [RC3] Guest Hide BBCode MOD 1.3.1

Post by AllCity » Thu Mar 05, 2009 4:38 pm

BizimPencere wrote:Update from 1.2.5 to 1.3.1... ??????
Pleasee add update folder to your mod.
Remove the old version completely and install a new version.
My mods home page.

User avatar
BizimPencere
Registered User
Posts: 396
Joined: Sat Aug 25, 2007 8:31 pm

Re: [RC3] Guest Hide BBCode MOD 1.3.1

Post by BizimPencere » Thu Mar 05, 2009 4:42 pm

I now this solution also , update.xml history is very easy for you , and for mod user.

+ Please give me 1.2.5 link to download , i will remove it 1.2.5...
www.phpbbturkiye.net | Turkish phpBB3 support and development

User avatar
AllCity
Registered User
Posts: 230
Joined: Sun Jun 22, 2008 6:33 pm
Name: Andrey Shapoval
Contact:

Re: [RC3] Guest Hide BBCode MOD 1.3.1

Post by AllCity » Thu Mar 05, 2009 4:57 pm

Unisntall from v1.1 to v1.2.5: (install.xml):
File to delete:
includes/hooks/hook_guest_hide_bbcode_mod.php
styles/prosilver/theme/guest_hide_bbcode_mod.css
language/en/mods/guest_hide_bbcode_mod.php
EDIT:
styles/prosilver/template/overall_header.html
Find:
<link href="{T_THEME_PATH}/guest_hide_bbcode_mod.css" rel="stylesheet" type="text/css" />
and delete its.
DIY Instructions:
1. Go to Administration Control Panel.
2. Navigate to Posting -> BBCodes.
3. Delete bbcode HIDE.
4. Purge the cache in APC.
SubSilver2: (subsilver2.xml):
EDIT:
styles/subsilver2/template/overall_header.html
Find:
<link href="{T_THEME_PATH}/guest_hide_bbcode_mod.css" rel="stylesheet" type="text/css" />
and delete its.
DIY Instructions:
Go to ACP then purge the cache.
Removal any language: (lang.xml):
File to delete:
language/lang/mods/guest_hide_bbcode_mod.php
DIY Instructions:
Go to ACP then purge the cache.
Last edited by AllCity on Fri Mar 06, 2009 3:49 am, edited 1 time in total.
My mods home page.

User avatar
BizimPencere
Registered User
Posts: 396
Joined: Sat Aug 25, 2007 8:31 pm

Re: [RC3] Guest Hide BBCode MOD 1.3.1

Post by BizimPencere » Fri Mar 06, 2009 2:15 am

Thanks...

I give you tomorrow turkish language file for this mod.

Thanks again for your work.

AND ONE QUESTION MORE : Can bot see hide content or not?
www.phpbbturkiye.net | Turkish phpBB3 support and development

User avatar
AllCity
Registered User
Posts: 230
Joined: Sun Jun 22, 2008 6:33 pm
Name: Andrey Shapoval
Contact:

Re: [RC3] Guest Hide BBCode MOD 1.3.1

Post by AllCity » Fri Mar 06, 2009 3:39 am

BizimPencere wrote:I give you tomorrow turkish language file for this mod.
ОК
BizimPencere wrote:AND ONE QUESTION MORE : Can bot see hide content or not?
If changed to true then the text will not be visible to bots (includes/functions_content.php)

Code: Select all

define('GUEST_HIDE_BBCODE_MOD_BOT', false); /* Enable hide the text from bots? (true = YES, false = NO) */
My mods home page.

User avatar
BizimPencere
Registered User
Posts: 396
Joined: Sat Aug 25, 2007 8:31 pm

Re: [RC3] Guest Hide BBCode MOD 1.3.1

Post by BizimPencere » Fri Mar 06, 2009 1:17 pm

www.phpbbturkiye.net | Turkish phpBB3 support and development

darkeagle
Registered User
Posts: 34
Joined: Sun Jan 25, 2009 5:53 am

Re: [RC3] Guest Hide BBCode MOD 1.3.1

Post by darkeagle » Sun Mar 08, 2009 1:00 pm

Hi, I have a problem with this mod.

I installed successfully, when I use this bbcode, after posting I have this error message:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/message_parser.php on line 69: preg_match() [function.preg-match]: No ending delimiter '.' found
[phpBB Debug] PHP Notice: in file /includes/message_parser.php on line 69: preg_match() [function.preg-match]: No ending delimiter '.' found

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/includes/functions.php:3230) in /home/xxxxxx/public_html/includes/functions.php on line 3995

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/includes/functions.php:3230) in /home/xxxxxx/public_html/includes/functions.php on line 3997

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/includes/functions.php:3230) in /home/xxxxxx/public_html/includes/functions.php on line 3998

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/includes/functions.php:3230) in /home/xxxxxx/public_html/includes/functions.php on line 3999
message_parser.php wrote:35 /**
36 * Parse BBCode
37 */
38 function parse_bbcode()
39 {
40 if (!$this->bbcodes)
41 {
42 $this->bbcode_init();
43 }
44
45 global $user;
46
47 $this->bbcode_bitfield = '';
48 $bitfield = new bitfield();
49
50 foreach ($this->bbcodes as $bbcode_name => $bbcode_data)
51 {
52 if (isset($bbcode_data['disabled']) && $bbcode_data['disabled'])
53 {
54 foreach ($bbcode_data['regexp'] as $regexp => $replacement)
55 {
56 if (preg_match($regexp, $this->message))
57 {
58 $this->warn_msg[] = sprintf($user->lang['UNAUTHORISED_BBCODE'] , '[' . $bbcode_name . ']');
59 continue;
60 }
61 }
62 }
63 else
64 {
65 foreach ($bbcode_data['regexp'] as $regexp => $replacement)
66 {
67 // The pattern gets compiled and cached by the PCRE extension,
68 // it should not demand recompilation
69 if (preg_match($regexp, $this->message))
70 {
71 $this->message = preg_replace($regexp, $replacement, $this->message);
72 $bitfield->set($bbcode_data['bbcode_id']);
73 }
74 }
75 }
76 }
77
78 $this->bbcode_bitfield = $bitfield->get_base64();
79 }
functions.php wrote:3994 // application/xhtml+xml not used because of IE
3995 header('Content-type: text/html; charset=UTF-8');
3996
3997 header('Cache-Control: private, no-cache="set-cookie"');
3998 header('Expires: 0');
3999 header('Pragma: no-cache');
4000
4001 return;
4002}
How can we fix this?

User avatar
monoxera
Registered User
Posts: 399
Joined: Fri Feb 13, 2009 11:37 am

Re: [RC3] Guest Hide BBCode MOD 1.3.1

Post by monoxera » Fri Mar 20, 2009 5:03 pm

Does this do [hide=100]content[/hide]

so like only users with 100 posts can see this

Code: Select all

Dum dum dum

darkeagle
Registered User
Posts: 34
Joined: Sun Jan 25, 2009 5:53 am

Re: [RC3] Guest Hide BBCode MOD 1.3.1

Post by darkeagle » Fri Mar 20, 2009 5:05 pm

monoxera wrote:Does this do [hide=100]content[/hide]

so like only users with 100 posts can see this
No.

Locked

Return to “[3.0.x] MODs in Development”