[ABD] Custom BBCode Rights - v.0.0.9.a

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.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by 4_seven » Tue Oct 21, 2008 5:20 pm

done
Current Mods | Mod Base | php(BB) programming | No help via PM

dasding
Registered User
Posts: 33
Joined: Tue May 13, 2008 6:29 pm

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by dasding » Wed Oct 29, 2008 2:14 am

onon_onon wrote:This MOD is the same as Hide Content 4 Groups?
No, it only seems to be look' a like ;)

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by 4_seven » Sat Nov 01, 2008 4:16 am

4 shure it is not *g
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by 4_seven » Mon Nov 03, 2008 3:21 am

aero_buried wrote:This works?
works perfectly 4 me and many others.
since last version no bugs are reported.

regards
4seven
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by 4_seven » Tue Nov 04, 2008 7:22 pm

ok, no other problems will be seen.
so, when no bugs are reported in the next time, i go to [RC1] Status

regards
4seven
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Dugi
Registered User
Posts: 1386
Joined: Sun May 25, 2008 5:36 pm
Location: Mainz, Germany
Name: Dukagjin Surdulli
Contact:

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by Dugi » Fri Nov 14, 2008 10:32 pm

whats this:

Image
PM me for custom extension pricing / My validated MODs / My MODs in development

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by 4_seven » Sat Nov 15, 2008 11:42 pm

i don't know. i have no errors @all. also copy and paste the complete error message in here (no screenshot), bcs. i don't see the end of error-message. it seems you have don't copy the mod-php's, bcs i think the end of the error-massage means, that a php is included, but physically missing, bcs of no copy'ing.

if i'am not right (but i'am nearly shure):
- newest version installed?
- check the whole mod-installation, bec. it seems 2 be an install-error.
- clear all caches after correcting.
Current Mods | Mod Base | php(BB) programming | No help via PM

DubCA
Registered User
Posts: 77
Joined: Thu Sep 27, 2007 8:32 am

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by DubCA » Mon Nov 24, 2008 10:38 pm

can this work with the [url] bbcode?

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by 4_seven » Mon Nov 24, 2008 11:11 pm

it works with every(!) bbcode
Current Mods | Mod Base | php(BB) programming | No help via PM

kazper
Registered User
Posts: 122
Joined: Wed Apr 10, 2002 9:26 pm

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by kazper » Tue Nov 25, 2008 12:20 am

It does, however, not work properly.

I get the following error whenever a non-administrator tries to preview or post a message. My administrator account does not get the error, and it only occurs when using BBCodes (Custom or standard, restricted or not makes no difference). The message goes through, but the restricted BBCodes are not filtered:
[phpBB Debug] PHP Notice: in file /includes/message_parser.php on line 54: Invalid argument supplied for foreach()
[phpBB Debug] PHP Notice: in file /includes/message_parser.php on line 54: Invalid argument supplied for foreach()
I have double, triple and quadruple checked my edits of all three files - and message_parser.php in particular. The only thing it asks me to do in that file is to put in an include:

Code: Select all

#
#-----[ FIND ]------------------------------------------
#

// Parse smilies
		if ($allow_smilies)
		{
			$this->smilies($config['max_' . $mode . '_smilies']);
		}

#
#-----[ BEFORE, ADD ]------------------------------------------
#

// 4seven
$phpbb_root_path_bb = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
if (file_exists($phpbb_root_path_bb . 'includes/functions_bb_restrict.' . $phpEx)){
include($phpbb_root_path_bb . 'includes/functions_bb_restrict.' . $phpEx);}
// 4seven
I do this and I get the error. I don't, and I do not get it. I have checked the 3 other edits in posting.php and functions_display.php respectively (all replacements), and those are done correctly. I have also doublechecked that all the files included are uploaded. There is btw 10 files included - not the 9 the instructions say. They fail to list: functions_bb_restrict_buttons.php

This is with the posted 0.0.8.d version. It's also on phpBB 3.0.3 if that matters.

I really want to get this to work so I hope you can help.

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by 4_seven » Tue Nov 25, 2008 12:48 am

at this time i have no idea, because nobody else have this error,
also i can not reproduce this error in my test- and live-boards.
the hurry-up-error in the instruction i fix asap..

maybe a crossover-effect with other edits in the relevant files!?
i hope, i can figure it out, but at this time i can not reproduce this...

maybe you try this

Code: Select all

// 4seven
$phpbb_root_path_bb = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path_bb . 'includes/functions_bb_restrict.' . $phpEx);
// 4seven
instead of the given edit, but that only a "shoot in the blue" ....
Current Mods | Mod Base | php(BB) programming | No help via PM

kazper
Registered User
Posts: 122
Joined: Wed Apr 10, 2002 9:26 pm

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by kazper » Tue Nov 25, 2008 1:31 am

The thing is the forum is only very, very lightly modded (4 I think I've added over the months). I'm not even sure any of them touch those files. If so it would by functions_display. However, there were no problems in locating the lines to replace - it seems odd that there'd be conflicts.

Also I must admit it's odd that pasting those lines in message_parser around line 1125 or so result in an error in line 54, which is:

Code: Select all

foreach ($bbcode_data['regexp'] as $regexp => $replacement)
So I guess that means that $bbcode_data['regexp'] is an empty result or something to make the argument invalid. I'm can code php, but not at the level phpBB is coded at, so I get lost in where that array is supposed to be defined.

But I have successfully applied mods with 50+ files that required multiple edits each, so it's not like I'd fail to read or follow the instructions for something as simple as this mod. Just to be sure - there is only supposed to be 4 edits to 3 files? To posting.php, functions_display.php and message_parser.php? Earlier in this thread you have a post about editing functions_posting.php, but I assume that was an earlier version, because the installation instructions in 0.0.8.d doesn't say anything about that.

No your suggestion unfortunately didn't work :(

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by 4_seven » Tue Nov 25, 2008 8:33 am

once again > i can not reproduce this error ;)
because of this (at this time) i can't find an error.

edit:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/message_parser.php on line 54: Invalid argument supplied for foreach()
one reason for this error can be, that you have filled-in a syntactical false entry in the custom-bbcode-right-fields in acp.

only this syntax (max 3 bbcodes) is right:

Code: Select all

bbcode1
or

Code: Select all

bbcode1,bbcode2
or

Code: Select all

bbcode1,bbcode2,bbcode3
false is:

Code: Select all

bbcode1,
or

Code: Select all

bbcode1,bbcode2,
or

Code: Select all

bbcode1,bbcode2,bbcode3,
or

Code: Select all

bbcode1,bbcode2,bbcode3,bbcode4
etc. etc.

because the regexp earn a bad-syntax
Current Mods | Mod Base | php(BB) programming | No help via PM

DubCA
Registered User
Posts: 77
Joined: Thu Sep 27, 2007 8:32 am

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by DubCA » Tue Nov 25, 2008 10:36 am

thank you for this great mod!

kazper
Registered User
Posts: 122
Joined: Wed Apr 10, 2002 9:26 pm

Re: [BETA] Custom BBCode Rights - v.0.0.8.d

Post by kazper » Tue Nov 25, 2008 11:11 am

Well I found the problem when you said it might be a bad syntax. The syntax was fine, but I had two (hence the double error) BBCodes in there with a = at the end (eg. List=) and I hadn't put the = at the end, because I didn't realize that this made a difference. In hindsight I should have, but if I may offer a small suggestion you could put an example of that in the text on the page like: "Enter max 3 BBCodes Comma separated: stream,List=,flv" or something like that.

Locked

Return to “[3.0.x] Abandoned MODs”