Page 1 of 6

Adaptive Hide BBcodes

Posted: Mon Mar 16, 2009 8:20 pm
by Extensions Robot
Modification name: Adaptive Hide BBcodes
Author: Izya
Modification description: This MOD adds BBcodes which allow to hide the text from guests, from the users having insufficient number of posts, from groups of users.
Examples:
- [hide]text[/hide] hides the text from guests and bots;
- [hide=30]text[/hide] hides the text from all who has less than 30 posts;
- [ghide]text[/ghide] hides the text from all who does not consist in your default group;
- [ghide=5]text[/ghide] hides the text from all who does not consist in group with ID=5;
- [ghide=4,5,6]text[/ghide] hides the text from all who does not consist in the specified groups.
Notes.
1. The hidden text always is visible to: administrators, moderators of forum in which the post is placed, the author of the post.
2. In order to avoid various incidents the hidden text always is replaced with a phrase "Hidden text" at the reply with quote, at sending PM with quote, at PM quoting, at PM forwarding.
Modification version: 1.0.2
Tested on phpBB version: 3.0.4

Download file: Adaptive_Hide_BBcodes_1_0_2.zip
File size: 61.1 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extension Customisations Team may not be able to provide support.

-->Modification support<--

Adaptive Hide BBcodes

Posted: Mon Mar 16, 2009 8:20 pm
by Paul
Modification validated/released

Notes:

Adaptive Hide BBcodes

Posted: Mon Mar 16, 2009 8:20 pm
by Izya
BBCodes [hide=] (with parameter) and [ghide] (without parameters) in some sense, are dynamic (adaptive). For example, if a user wrote [hide=200], and the maximum available - 100, the hidden text, of course, will be visible to all, who has 100 posts, but if one day restriction will be increased to 150, the required number of posts to read this hidden text also increase to 150. Further, if [ghide] was written without the parameter, the required group will be change when will change default group of the post author. Simply put, the BBСodes are applied in relation to current circumstances and restrictions.

Re: Adaptive Hide BBcodes

Posted: Wed Mar 18, 2009 3:42 am
by Ahri89
Thanks a lot Izya!! really useful mod for me, i will install it. :P

Re: Adaptive Hide BBcodes

Posted: Wed Mar 18, 2009 3:15 pm
by Lisbon
This mod is compatible whit this one http://www.phpbb.com/community/viewtopi ... hilit=Hide ???

Re: Adaptive Hide BBcodes

Posted: Wed Mar 18, 2009 4:02 pm
by Izya
What do you mean by compatibility?
If you mean the ability to see the hidden text after thanks for the post (like the Simple Hide Mod compatibility) - no, this is not implemented.
If you mean any conflicts - they should not arise.

Re: Adaptive Hide BBcodes

Posted: Thu Mar 19, 2009 11:17 am
by zackpack
hi!
thanks for this mod!
i have a little problem..
i get this line on top of the page where i write pm.

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 893: Missing argument 1 for display_custom_bbcodes(), called in /includes/ucp/ucp_pm_compose.php on line 1099 and defined
what's the mistake?!

ty

Re: Adaptive Hide BBcodes

Posted: Thu Mar 19, 2009 12:39 pm
by dani1a
Hi,

Great mod, thanks.
Please advise where to put this code in Avalon style (it's based on subsilver2):

Code: Select all

/* Hide block */
div.adapthide {
        border: 1px dashed #000099;
        background-color: #FFFFFF;
        margin: 0px 10px 5px 10px;
        padding: 5px 5px 5px 5px;
        font-size: 12px;
}
Because in stylesheet.css I can't find these lines:

Code: Select all

/* Private messages
 ------------------ */
Here's my stylesheet.css:

Code: Select all

/* Layout
 ------------ */
* {
	/* Reset browsers default margin, padding and font sizes */
	margin: 0;
	padding: 0;
}

html {
	font-size: 100%;
}

body {
	/* Text-Sizing with ems: http://www.clagnut.com/blog/348/ */
	font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif;
	color: #444;
	background: #81A6D5 url(images/body.gif);
	font-size: 10px;
	margin: 0;
	padding: 0;
}
#body-simple {
	background: #FFF;
	padding: 5px;
}
div#body { 
    background: url(images/body_top.gif) top left repeat-x; 
    padding: 5px;
}

/* Misc stuff */
img {
	border: none;
}

.gen {
	margin: 1px 1px;
	font-size: 1.2em;
}

.genmed {
	margin: 1px 1px;
	font-size: 1.1em;
}

.gensmall {
	margin: 1px 1px;
	font-size: 1em;
}

.titles {
	font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
	font-weight: bold;
	font-size: 1.3em;
	text-decoration: none;
}

.error, table td .error {
	color: #734DB3;
}

.spacer {
	background: #7DA9DA url(images/cathead.gif) top left repeat-x;
}

hr	{ height: 0px; border: solid #A1B3D2 0px; border-top-width: 1px;}

.pagination {
	padding: 4px;
	font-size: 1em;
	font-weight: bold;
}

/* Links
 ------------ */
a {
	color: #518BCC;
	text-decoration: none;
}

a:active,
a:visited {
	color: #518BCC;
	text-decoration: none;
}

a:hover {
	color: #734DB3;
	text-decoration: underline;
}

a.forumlink {
	font-weight: bold;
	font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
	font-size: 1.2em;
}

a.topictitle {
	margin: 1px 0px;
	font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
	font-weight: bold;
	font-size: 1.2em;
}

a.topictitle, .postbody a {
	color: #518BCC;
}
a.topictitle:visited, .postbody a:visited {
	color: #639BD7;
}
a.topictitle:visited:hover, .postbody a:visited:hover {
	color: #518BCC;
}
a.topictitle:hover, .postbody a:hover {
	color: #734DB3;
}

/* Header and logo */
#maintable {
	margin: 0 auto;
	background-color: #FFF;
}
#header, .row-left, .row-right { padding: 0; }

.row-left { width: 4px; overflow: hidden; background: url(images/row_left.gif) top left repeat-y; }
.row-right { width: 4px; overflow: hidden; background: url(images/row_right.gif) top right repeat-y; }

#logorow {
	background: url(images/logo_bg.gif) top left repeat-x;
	text-align: center;
	padding: 0;
}

#logo-left {
	background: url(images/logo_left.gif) top left no-repeat;
}
#logo-right {
	background: url(images/logo_right.gif) top right no-repeat;
	padding: 4px 15px 0 15px;
	text-align: center;
	overflow: hidden;
}

.pm-notify-new, .pm-notify-unread {
	border-left: solid 1px #93ABD3;
	border-right: solid 1px #809CCA;
	border-top: solid 1px #93ABD3;
	border-bottom: solid 1px #809CCA;
	background: #E8F3FC url(images/cell.gif) top left repeat-x;
	margin: 10px 0;
	padding: 10px;
	text-align: center;
	font-size: 12px;
	font-weight: bold;
}
.pm-notify-new a, .pm-notify-new a:visited, .pm-notify-unread a, .pm-notify-unread a:visited { text-decoration: underline; }
.pm-notify-header {
	margin-bottom: 10px;
	color: #734DB3;
}
.pm-notify-new { padding: 30px; }

/* Navigation buttons */
.navrow {
	background: url(images/buttons.gif) top left repeat-x; 
	height: 21px;
	overflow: hidden;
	color: #7EACDD;
	text-align: center;
	font-size: 11px;
	padding-top: 4px;
}
/* * html .navrow { padding: 0; } */
.navrow b, .navrow strong { font-weight: normal; }
.navrow a, .navrow a:visited {
	color: #518BCC;
	text-decoration: none;
	padding-left: 5px;
	padding-right: 5px;
}
.navrow a:hover { 
	color: #734DB3; 
	text-decoration: underline; 
}

a.link-new, a.link-new:visited { color: #734DB3; }
a.link-new:hover, a.link-new:visited:hover { color: #7C60A9; }

/* footer */
.row-bottom { 
    padding: 0;
    overflow: hidden;
    background: url(images/bottom_bg.gif) top left repeat-x; 
    height: 10px;
}
* html .row-bottom { font-size: 1px; line-height: 1px; }
.row-bottom div {
    height: 10px;
    background: url(images/bottom_left.gif) top left no-repeat;
}
.row-bottom div div {
    background: url(images/bottom_right.gif) top right no-repeat;
}

/* Content and tables */
#contentrow {
	padding: 8px;
}

.tablebg {
	border: solid 1px #B9C6DC; 
	background: #E8F3FC url(images/cell.gif) top left repeat-x;
}
.block-start .tablebg { 
    border-top-width: 0; 
    border-bottom-width: 0; 
    border-color: #476BA1;
}

.row1, .row2, .row3, .legend, .forumrules, tr.row1 .row, tr.row2 .row, tr.row3 .row, .postbottom {
	border-left: solid 1px #fff;
	border-right: solid 1px #A1B3D2;
	border-top: solid 1px #fff;
	border-bottom: solid 1px #A1B3D2;
	background: #E8F3FC url(images/cell.gif) top left repeat-x;
	padding: 4px;
}
th {
	color: #5B8DC9; 
	font-size: 11px; 
	font-weight: bold;
	background: #EDF6FD url(images/th.gif) top left repeat-x;
	white-space: nowrap;
	padding: 0 5px;
	text-align: center;
	height: 26px;
	border-left: solid 1px #fff;
	border-right: solid 1px #A1B3D2;
	border-top: solid 1px #fff;
	border-bottom: solid 1px #A1B3D2;
}
th a, th a:visited {
	color: #5B8DC9 !important;
	text-decoration: underline;
}
th a:hover {
	color: #734DB3;
	text-decoration: underline;
}

td {
	padding: 2px;
}
td.profile {
	padding: 4px;
}
.catdiv, .cat, .cathead {
	height: 24px;
	padding: 0 3px;
	border-left: solid 1px #82B2E2;
	border-right: solid 1px #A1B3D2;
	border-top: solid 1px #447CC0;
	border-bottom: solid 1px #A1B3D2;
	background: #8AA9D3 url(images/cathead.gif) top left repeat-x;
	color: #EBF2FA;
}

.cat, .cathead {
	text-indent: 4px;
}

.catdiv a, .cathead a, .cat a {
    color: #EBF2FA;
    text-decoration: underline;
}
.catdiv a:hover, .cathead a:hover, .cat a:hover {
    color: #fff;
    text-decoration: underline;
}


/* Table header */
caption, .cap-div { 
	margin: 0; 
	padding: 0;
	background: url(images/hdr_mid.gif) top left repeat-x;
	white-space: nowrap;
	height: 27px;
	text-align: left;
}
.cap-left {
	background: url(images/hdr_left.gif) top left no-repeat;
}
.cap-right {
	background: url(images/hdr_right.gif) top right no-repeat;
	padding-top: 6px;
	padding-left: 23px;
	height: 21px;
}
caption, caption h1, caption h2, caption h3, caption h4, caption span,
.cap-div, .cap-div h1, .cap-div h2, .cap-div h3, .cap-div h4, .cap-div span { 
	font-size: 12px;
	font-weight: bold;
	color: #EBF2FA;
}
caption h1, caption h2, caption h3, caption h4, caption span,
.cap-div h1, .cap-div h2, .cap-div h3, .cap-div h4, .cap-div span { 
	display: inline;
}
caption a, caption a:visited, .cap-div a, .cap-div a:visited {
	color: #EBF2FA;
	text-decoration: underline;
}
caption a:hover, .cap-div a:hover {
	color: #FFF;
	text-decoration: underline;
}

.block-start { background: url(images/ftr_mid.gif) bottom left repeat-x; }
.block-end-left { background: url(images/ftr_left.gif) top left no-repeat; }
.block-end-right { background: url(images/ftr_right.gif) top right no-repeat; }
.block-end-left, .block-end-right { height: 4px; overflow: hidden; padding: 0; }

/* Footer */
#wrapfooter {
	text-align: center;
	color: #CCC;
	padding-top: 10px;
}

.copyright {
	color: #518BCC;
	font-weight: normal;
	font-size: 9px;
	line-height: 1.2em;
}
.copyright a, .copyright a:visited {
	color: #A1B3D2;
	text-decoration: underline;
}
.copyright a:hover { color: #518BCC; }


/* Breadcrumbs */
.breadcrumb .row1 { 
    border-width: 1px 0 0 1px; 
    background: #F2F5FA;    
}
p.breadcrumbs {
	margin: 0;
	padding: 0;
	float: left;
	color: #6E9AD0;
	font-weight: bold;
	white-space: normal;
	font-size: 1em;
}
.rtl p.breadcrumbs {
	float: right;
}

p.datetime {
	margin: 0;
	padding: 0;
	float: right;
	white-space: nowrap;
	font-size: 1em;
}

.rtl p.datetime {
	float: left;
}

/* Index/viewforum */
.subforum.read { 
	background: url(images/sub_old.gif) top left no-repeat;
	padding-left: 12px;
}
.subforum.unread { 
	background: url(images/sub_new.gif) top left no-repeat;
	padding-left: 12px;
}
.legend {
	text-align: center;
	margin: 0 auto;
	padding: 2px;
	border-top-color: #B0BCD2;
	border-left-color: #B0BCD2;
}
.legend-viewforum { 
	margin: 0; 
	text-align: left; 
	border-top-color: #B0BCD2;
	border-left-color: #B0BCD2;
}

.forumrules {
	padding: 4px;
	font-weight: normal;
	font-size: 1.1em;
	border-left: solid 1px #B6C1D6;
	border-right: solid 1px #A1B3D2;
	border-top: solid 1px #B6C1D6;
	border-bottom: solid 1px #A1B3D2;
	font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
}
.forumrules h3 {
	color: #734DB3;
}

/* Post */
.postsubject {
	font-size: 12px;
	font-weight: bold;
	color: #518BCC;
}
td.postbottom { 
	background: #EFF7FD url(images/profile.gif) top left repeat-x; 
	font-size: 10px;
	color: #6095D1;
	white-space: nowrap;
	padding: 2px;
	vertical-align: middle;
	border-left: solid 1px #EDF3FA;
	border-top: solid 1px #EDF3FA;
	border-right: solid 1px #93B1D8;
	border-bottom: solid 1px #93B1D8;
}
td.postbuttons { padding-top: 3px; }
.postdetails { 
	color: #5F9CD9;
	font-size: 10px; 
	text-align: left;
}
.postdetails b {
	color: #5F9CD9;
}
.posterrank		{ font-size: 9px; color: #4B7FC1; }
.posterprofile	{ font-size: 10px; color: #518BCC; }

.postauthor {
	color: #518BCC;
	font-size: 12px;
	margin-bottom: 3px;
	font-weight: bold;
}
.postonline { margin-bottom: 2px; }

.postreported, .postreported a:visited, .postreported a:hover, .postreported a, .postreported a:active {
	margin: 1px 0px;
	color: #734DB3;
	font-weight: bold;
}

.postapprove, .postapprove a:visited, .postapprove a:hover, .postapprove a, .postapprove a:active {
	color: #00FF00;
	font-weight: bold;
}

.postapprove img, .postreported img {
	vertical-align: bottom;
}

.postbody {
	font-size: 12px;
	line-height: 1.4em;
	margin: 3px 0;
}
.signature {
	font-size: 11px;
	color: #666;
	margin-top: 5px;
}
.signature .line { color: #A1B3D2; }

.postbody li, ol, ul {
	margin: 0 0 0 1.5em;
}

.rtl .postbody li, .rtl ol, .rtl ul {
	margin: 0 1.5em 0 0;
}

.posthilit {
	background-color: #90B9E4;
}

.postsubject {
	font-size: 12px;
	font-weight: bold;
	color: #518BCC;
}

.postbody a { text-decoration: underline; }

/* UCP */

.folder-current a, .folder-current a:visited {
	color: #734DB3;
	font-weight: bold;
}
.folder-current a:hover { color: #734DB3; }

td.pm_marked_colour { background: #734DB3; }
td.pm_marked_colour_left { border-left: solid 3px #734DB3; padding-left: 2px; }
td.pm_marked_colour_right { border-right: solid 3px #734DB3; padding-right: 2px; }

td.pm_replied_colour { background: #518BCC; }
td.pm_replied_colour_left { border-left: solid 3px #518BCC; padding-left: 2px; }
td.pm_replied_colour_right { border-right: solid 3px #518BCC; padding-right: 2px; }

td.pm_friend_colour { background: #007700; }
td.pm_friend_colour_left { border-left: solid 3px #007700; padding-left: 2px; }
td.pm_friend_colour_right { border-right: solid 3px #007700; padding-right: 2px; }

td.pm_foe_colour { background: #53429B; }
td.pm_foe_colour_left { border-left: solid 3px #53429B; padding-left: 2px; }
td.pm_foe_colour_right { border-right: solid 3px #53429B; padding-right: 2px; }


/* Form Elements
 ------------ */
form {
	margin: 0px;
	padding: 0px;
	border: 0px;
}

textarea, select, .post, .btnbbcode, .btnmain, .btnlite, .btnfile, .helpline {
	font-weight: normal;
	font-family: "Lucida Grande", Verdana, Helvetica, sans-serif;
	color: #444;
	border: 1px solid #A1B3D2;
	background-color: #F0F4FA;
}
.cat .btnmain, .cat .btnlite, .cat select {
    color: #444;
    background-color: #A6C4E6;
    border-color: #2C5F99;
}

input {
	font-size: 1.1em;
	padding: 1px;
}
textarea {
	font-size: 1.3em; 
	line-height: 1.4em;
	padding: 2px;
}
select {
	font-size: 1.1em;
	padding: 1px;
}

option {
	padding: 0 1em 0 0;
}

.rtl option {
	padding: 0 0 0 1em;
}

.post {
	border-style: solid;
	border-width: 1px;
}

.btnbbcode {
	font-size: 1.1em;
	color: #518BCC;
	border: 1px solid #C4CEE0;
}
.btnbbcode:hover {
	border-color: #A1B3D2;
	color: #000;
}

.btnmain {
	font-weight: bold;
	cursor: pointer;
	padding: 1px 5px;
	font-size: 1.1em;
}

.btnlite {
	font-weight: normal;
	cursor: pointer;
	padding: 1px 5px;
	font-size: 1.1em;
}

.btnfile {
	font-weight: normal;
	padding: 1px 5px;
	font-size: 1.1em;
}

.helpline {
	background-color: transparent;
	color: #AAA;
	border-style: none;
}
#helpline { color: #AAA; }

* html textarea, * html select, * html .post, * html .btnmain, * html .btnlite, * html .btnfile {
	border-color: #A1B3D2;
}
* html .cat .btnmain, * html .cat .btnlite {
    border-color: #2C5F99;
}
textarea:hover, select:hover, .post:hover, .btnmain:hover, .btnlite:hover, .btnfile:hover {
	border-color: #6F8FBF;
}
textarea:focus, select:focus, .post:focus, .btnmain:focus, .btnlite:focus, .btnfile:focus {
	border-color: #496CA1; 
	color: #000;
}
.cat .btnmain:hover, .cat .btnlite:hover, .cat select:hover {
    border-color: #244065;
}
.cat .btnmain:focus, .cat .btnlite:focus, .cat select:focus {
    border-color: #244065;
    color: #000;
}

label:hover { 
	color: #734DB3; 
}

/* BBCode
 ------------ */
.quotetitle, .attachtitle, .codetitle {
	margin: 10px 5px 0px 5px;
	padding: 2px 4px;
	border: solid 1px #C0CCE1;
	color: #518BCC;
	background-color: #E4EDF7;
	font-size: 0.85em;
	font-weight: bold;
}

.quotetitle .quotetitle {
	font-size: 1em;
}

.quotecontent, .attachcontent {
	margin: 0px 5px 10px 5px;
	padding: 5px;
	border-color: #C0CCE1;
	border-width: 0px 1px 1px 1px;
	border-style: solid;
	font-weight: normal;
	font-size: 1em;
	line-height: 1.4em;
/*	font-family: "Lucida Grande", "Trebuchet MS", Helvetica, Arial, sans-serif; */
	background-color: #EBF2FA;
	color: #444;
}

.attachcontent {
	font-size: 0.85em;
}

.codecontent {
	direction: ltr;
	margin: 0px 5px 10px 5px;
	padding: 5px;
	border-color: #C0CCE1;
	border-width: 0px 1px 1px 1px;
	border-style: solid;
	font-weight: normal;
	font-size: 11px;
	font-family: Monaco, 'Courier New', monospace;
	background-color: #EBF2FA;
	color: #444;
}

.quotewrapper, .codewrapper, .attachwrapper {
	clear: both;
	margin: 10px 5px;
	background: #E4EDF7 url(images/code_header.gif) top left no-repeat;
	padding-left: 19px;
	border: solid 1px #C0CCE1;
	border-bottom-color: #A1B3D2;
	border-right-color: #A1B3D2;
}
.quotewrapper { background-image: url(images/quote_header.gif); }
.quotewrapper .quotetitle, .codewrapper .codetitle, .attachwrapper .attachtitle { 
	margin: 0; 
	border-width: 0 0 1px 1px;
}
.quotewrapper .quotecontent, .codewrapper .codecontent, .attachwrapper .attachcontent {
	margin: 0; 
	border-width: 0 0 0 1px;
}
.attachcontent, html>body .postbody {
	overflow: auto;
	overflow-x: auto;
}

.syntaxbg {
	color: #EBF2FA;
}

.syntaxcomment {
	color: #518BCC;
}

.syntaxdefault {
	color: #444;
}

.syntaxhtml {
	color: #316DAF;
}

.syntaxkeyword {
	color: #205A9A;
}

.syntaxstring {
	color: #2F6AAC;
}


/* More misc stuff */
h1 {
	font-family: "Lucida Grande", "Trebuchet MS", Verdana, sans-serif;
	font-weight: bold;
	font-size: 1.8em;
	text-decoration: none;
}

h2 {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 1.5em;
	text-decoration: none;
	line-height: 120%;
}

h3 {
	font-size: 1.3em;
	font-weight: bold;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 120%;
}

h4 {
	margin: 0px;
	font-size: 1.1em;
	font-weight: bold;
}

p {
	font-size: 1.1em;
}

p.moderators {
	margin: 0px;
	float: left;
	color: #518BCC;
	font-weight: bold;
}

.rtl p.moderators {
	float: right;
}

p.linkmcp {
	margin: 0px;
	float: right;
	white-space: nowrap;
}

.rtl p.linkmcp {
	float: left;
}

p.searchbar {
	padding: 2px 0;
	white-space: nowrap;
} 

p.searchbarreg {
	margin: 0px;
	float: right;
	white-space: nowrap;
}

.rtl p.searchbarreg {
	float: left;
}

p.forumdesc {
	padding-bottom: 4px;
}

p.topicauthor {
	margin: 1px 0px;
}

p.topicdetails {
	margin: 1px 0px;
}
td.history-current, tr.row1 td.history-current, tr.row2 td.history-current {
	background: #FFF;
}

table.colortable td {
	padding: 0;
}

pre {
	font-size: 1.1em;
	font-family: Monaco, 'Courier New', monospace;
}

.nowrap {
	white-space: nowrap;
}

.username-coloured {
	font-weight: bold;
}

.sep {
	color: #518BCC;
}


/* bugs */
@media all and (min-width: 0px)
{
	/* reset file input style for Opera - it changes only text color and border, but not bg color */
	.btnfile, .btnfile:hover, .btnfile:focus { 
		border: none; 
		background-color: #FFF;
		color: #000;
	}

}
Thanks in advance.

Dani1a.

Re: Adaptive Hide BBcodes

Posted: Thu Mar 19, 2009 1:41 pm
by Izya
dani1a,
put it after

Code: Select all

/* BBCode
------------ */

Re: Adaptive Hide BBcodes

Posted: Thu Mar 19, 2009 1:56 pm
by Izya
zackpack,
strange error. Are you sure that it begun just after installing this mod? Attach your files /includes/functions_display.php and /includes/ucp/ucp_pm_compose.php. I will try to find the mistake.

Re: Adaptive Hide BBcodes

Posted: Thu Mar 19, 2009 1:59 pm
by zackpack
Izya wrote:zackpack,
strange error. Are you sure that it begun just after installing this mod? Attach your files /includes/functions_display.php and /includes/ucp/ucp_pm_compose.php. I will try to find the mistake.
sorry,my fault.
i fixed it.
ty

Re: Adaptive Hide BBcodes

Posted: Thu Mar 19, 2009 3:10 pm
by dani1a
Izya wrote:dani1a,
put it after

Code: Select all

/* BBCode
------------ */
Thanks, now it works perfectly.
Please advise whether it is possible and how to translate help lines for hide and ghide buttons(Help line - Hidden text: [hide]text[/hide] and etc.)?
I found that help lines are translated in posting.php but I can't find something like 'BBCODE_O_HELP' for hide and ghide buttons...

Thanks in advance.
Danila.

Re: Adaptive Hide BBcodes

Posted: Thu Mar 19, 2009 3:37 pm
by Izya
Only one language may be used for help lines for Hide BBCodes (like for any Custom BBcode). Therefore, in order to localize help lines you need to write them in your language directly in the ACP.

Re: Adaptive Hide BBcodes

Posted: Thu Mar 19, 2009 7:25 pm
by dani1a
Izya wrote:Only one language may be used for help lines for Hide BBCodes (like for any Custom BBcode).
Ah that's a shame.
Maybe in a future this mod will be implemented like Qoute, Code or Img BBcodes.
Anyway, thanks for the mod and your help.

Danila.

Re: Adaptive Hide BBcodes

Posted: Sun Mar 22, 2009 2:22 pm
by Eragon
quote error..


thanks

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 130: Undefined index: forum_id
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 190: Undefined index: forum_id
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 190: Undefined index: forum_id
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 130: Undefined index: forum_id
bbcode.php on line 130

Code: Select all

							if (substr_count($preg['search'][0], '[hide\=') && !$auth->acl_get('m_edit', $row['forum_id']) && $user->data['user_id'] != $poster_id)
bbcode.php on line 190

Code: Select all

							if (substr_count($preg['search'][0], '[ghide') && !$auth->acl_get('m_edit', $row['forum_id']) && $user->data['user_id'] != $poster_id)