Hi,

Ok what I do :
Add a new group --> http://site.com/phpbb/admin_groups.php?action=foo
I change the rules of the group --> and i got the error mentionned above ...

Any idea ? I didn't change anything in the admin_groups file ....

Tx

I got this message with 1.2.5

File: /home3/g/georezo2/www/forum/admin_groups.php
Line: 250

PunBB reported: Unable to check group title collision

Database reported: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 (Errno: 1064)

Failed query: SELECT 1 FROM punbbgroups WHERE g_title='ddddd' AND g_id!=

Sorry i found one of my parameter wasn't good i apologize ...

I try to setup again punbb and i gor the following message ....

An error occured on line 58 in file /home/users/g/georezo/www/forum/include/dblayer/mysql.php.

PunBB reported: Unable to connect to MySQL server. MySQL reported: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

an idea ?

my mysql parameters are ok
is a 1.2.5 version ...

Sorry to be son long in my answer ...

Not exactly : I add in my plugin some "news" functions for each forum and I want that only the moderator in charge can access to. I'm pretty sure that the code is ready somewhere in punbb, but as I'm not an expert in PHP I would appreciate some assistance :

Check from this line to this in this file

TX

I try to do my own plugins - specifics functions for the forums - and I want than each moderators be able to access only in their forums, (not the other one) ...

This code is probably existing in punbb, but I couldn't manage to find  it

Tx

132

(10 replies, posted in PunBB 1.2 troubleshooting)

5 is too weak so ...
How much do you have yourself ? What'is the hoster mean ?

Rickard,
Do you have an idea how long (average) the connection (for a long page ) can be opened. I was thinking to change of provider, but I'm pretty sure then plenty of hoster limit the number of connections --> punbb won't work eveywhere ....



Orpheus,
Could you explain me what is it persitent mysql connections ? How could I turn off ?

Tx

133

(10 replies, posted in PunBB 1.2 troubleshooting)

Hi,

We are three persons on line in the same times testing  punbb and we got this error :

Unable to connect to MySQL server. MySQL reported : Too many connections

My hoster said I had 5 simultuneus connections and in should be enough ...

Do you have an idea what's hapenned, and how to solve it ?

Tx

Great it seems to be perfect now !!!!

Thanks

There is a bug :


If you add (remove the space inside the tags)

[ email]myname@mydomain.com[ /email] produces myname@mydomain.com
[ email=myname@mydomain.com]My e-mail address[ /email] produces My e-mail address


you expect this

myname@remove-this.mydomain.com produces myname@mydomain.com
My e-mail address produces My e-mail address


but you get

urcp"uv{ng?^$fkurnc{1urcp@o{fqockp0eqo>1c@')">myname@remove-this.remove-this.mydomain.com produces myname@remove-this.mydomain.com
urcp"uv{ng?^$fkurnc{1urcp@o{fqockp0eqo>1c@')">My e-mail address produces My e-mail address

the  pb should come from the regex here because the adress is encrypt twice

$text = preg_replace('#((mailto:)?([\w\d][\w\d$.-]*[\w\d]@[\w\d][\w\d.-]*[\w\d]\.[a-z0-9]{2,5}))#ie', 'handle_email_tag(\'$3\')', $text);

good luck

136

(3 replies, posted in Feature requests)

Tx  Connorhd !!!

my final code to insert in post.php after

$mail_message_full = str_replace('<replier>', $username, $mail_message_full);

remove the space betwenn [ ]

// clean off the message of all BBcode
$a = array('[ b ]', '[ i ]', '[ u ]', '[ /b ]', '[ /i ]', '[ /u ]', '[ url ]', '[ /url ]', '[ email ]', '[ /email ]', '[ img ]', '[ /img ]');
$message = str_replace($a, '', $message);
                
$a = array('[ quote ]', '[ code ]');
$b = array("\n\n------------------------\n\tQuote :\n\n", "\n\n------------------------\n\tCode :\n\n");
$message = str_replace($a, $b, $message);
                
$a = array('[ /quote ]', '[ /code ]');
$message = str_replace($a, "\n\n------------------------\n\n", $message);
                
$a = array( '#\[url=("|\'|)(.*?)\\1\]\s*#i', '#\[email=("|\'|)(.*?)\\1\]\s*#i', '#\[colou?r=("|\'|)(.*?)\\1\](.*?)\[/colou?r\]#is','#\[quote=("|\'|)(.*?)\\1\]\s*#i');
$b = array( "$2", "$2", "$3", "\n\n------------------------\n\t$2 write :\n\n");
$message = preg_replace($a, $b, $message);

137

(3 replies, posted in Feature requests)

Hi again,

I try to do something :

// clean off the message of all BBcode 
$a = array('[ b ]', '[ i ]', '[ u ]', '[ /b ]', '[ / i]', '[ /u ]', '[ url ]', '[ /url ]', '[ email ]', '[ /email ]', '[ img ]', '[ /img ]');
$message = str_replace($a, '', $message);
                
$a = array('[ quote ]', '[ code ]', '[ /quote ]', '[ /code ]');
$message = str_replace($a, '\r\n------------\r\n', $message);
                
$a = array( '#\[url=("|\'|)(.*?)\\1\]\s*#i', '#\[email=("|\'|)(.*?)\\1\]\s*#i', '#\[colou?r=("|\'|)(.*?)\\1\](.*?)\[/colou?r\]#is','#\[quote=("|\'|)(.*?)\\1\]\s*#i');
$b = array( '$2', '$2', '$3', '$2 écrit : \r\n------------\r\n');
$message = preg_replace($a, $b, $message);

It's work except for

\r\n------------\r\n

it give me back \r\n------------\r\n

and I want

"go to the next line"
------------
"go to the next line"

How i can manage that ?

138

(3 replies, posted in Feature requests)

Hi,

Perhaps something to do, oneday..., when you have time, .... I'm not 100% sure ...

It could be good to remove bbcode inside the message send by email. because is not really readable.
In an other hand keep [ code ] and [ quote ] could be usefull, is why I'm not 100% sure if my request is relevant or not ....

139

(9 replies, posted in Programming)

It's work ...

Many thanks !!!

140

(9 replies, posted in Programming)

Of course not !

"spam protect" just "encrypted" email adresses inside bbcode [ email ]. Not the ones which are outside bbcode

My problem is : I tranfert my own system archive list (full of email) in punBB this is OK but I will like too "encrypt" the emails ... I think it should be easy with this mod to do it for post.php and viewtopic.php, but i couldn't manage to do it

141

(9 replies, posted in Programming)

I got a old forum with plenty of email in the posts. I would like to use the mod : Spam Protect Email 1.0.0 http://punbb.org/forums/viewtopic.php?id=6208 to "code" all the email adresses in viewtopic and post ... How should I process ?

Tx

I got a old forum with plenty of email in the posts. I would like to use this mod : Spam Protect Email 1.0.0 to "code" all the email adresses in viewtopic and post ... How I should process ?

143

(3 replies, posted in PunBB 1.2 troubleshooting)

1.6 % of the subscribers is still a lot, but in my case is less of 0.03 % so is acceptable wink

144

(6 replies, posted in PunBB 1.2 troubleshooting)

Ok thanx

I add the line
#adminconsole TD SPAN.alert, #adminconsole TH SPAN.alert {FONT-WEIGHT: bold}

just before (and not at the end of base_admin.css)
#adminconsole FIELDSET TD SPAN, #adminconsole FIELDSET TH SPAN {DISPLAY: block; FONT-SIZE: 1em; FONT-WEIGHT: normal}

and it works

145

(6 replies, posted in PunBB 1.2 troubleshooting)

Ok so I used inside a plug-in module

always between tags  <p> and  </p>

for some inside
<th class="tcl" scope="col">
</th>

for others inside
<td> and </td>

146

(3 replies, posted in PunBB 1.2 troubleshooting)

Hi ,

If I understand well, with the 1.2.5 the max lenght of an email adress is 50 characters


In email.php
[ code ]
if (strlen($email) > 50)
    return false;
[/ code ]

Where is coming from this 50 limit ? I check in my mailing-list (more than 3500 subscribers) and I found one (only one adress) with more than 50 characters : 59 exactly and I know than this adress is correct !!!!

surname.longname@languedoc-roussillon.environnement.gouv.fr

Could we increase this value with no risk ?

Regards

PS: There is something really stange with bbcode [ code ] is not working always ...

147

(6 replies, posted in PunBB 1.2 troubleshooting)

Means ?

I call it by
<span class="alert">blablabla</span>

148

(11 replies, posted in PunBB 1.2 bug reports)

Yes you should right  !!! I probably do a mistake on my previous test  sorry

149

(11 replies, posted in PunBB 1.2 bug reports)

Hi,

I got some problemes to add the bbcode code in my previous post here !

-->
The BBCode syntax in the message is incorrect. Missing end tag for \[code\].

150

(6 replies, posted in PunBB 1.2 troubleshooting)

Hi,

I try to add a new style : alert

I add in oxygen_cs.css

SPAN.alert {font-weight: bold; COLOR: #FF0000}

--> the color is OK but not the font-weight

Where should i do a correction ?

Tx