> 1 <
| Author | Message |
donP |
#131 2007-10-16 05:16 GMT |
|
What version of the fix we have to use? Your or Olivier C. one? (your one uses eregi_replace, Olivier one uses preg_replace)
|
|
|
donP
|
|
donP |
#132 2007-10-17 08:26 GMT |
|
I thought this was a live community... but it isn't...
Anyway, the fix (your and the neocrome one) causes problems with the apostrophe charachter and many others, so they appears in strange manners in forum titles and elsewhere... |
|
|
donP
|
|
Trustmaster
48 posts
http://www.politehnik.info Location: Russia Nizhny Novgorod Occupation: University Student, Engineer/Programmer, IT Expert Age: 20 |
#133 2007-10-17 08:47 GMT |
|
Look here and use preg_ version of the fix ;)
|
|
donP |
#134 2007-10-18 11:40 GMT |
|
Many thanks dude
|
|
|
donP
|
|
donP |
#138 2007-11-06 20:14 GMT |
|
Trustmaster... I need a great help from you...
In my old eregi_ version of bbcodes() I had added this two codes: Code: '\\[imgex\\]([^\\\'\;\?([]*)\.(jpg|jpeg|gif|png)\.([^\\[]*)\\[/imgex\\]' => '<img src="\\1.\\2" alt="\\3" />', '\\[thumbex=([^\\\'\;\?([]*)\.(jpg|jpeg|gif|png)\\]([^\\[]*)\.(jpg|jpeg|gif|png)\.([^\\[]*)\\[/thumbex\\]' => '<a href="datas/users/\\3.\\4" rel="lightbox" title="\\5"><img src="\\1.\\2" alt="\\5" /></a>', to add the title and alt to href and img properties... like this: [thumbex=datas/thumbs/0/thumbofimage.jpg]datas/users/0/image.jpg.Explanation of the image[/thumbex] to obtain: Code: <a href="datas/users/0/image.jpg" rel="lightbox" title="Explanation of the image"><img src="datas/thums/0/thumbofimage.jpg" alt="Explanation of the image" /></a>' How can I reproduce the same two codes in your new PREG version of bbcodes? |
|
|
donP
|
|
Trustmaster
48 posts
http://www.politehnik.info Location: Russia Nizhny Novgorod Occupation: University Student, Engineer/Programmer, IT Expert Age: 20 |
#141 2007-11-07 08:38 GMT |
|
Already replied at Necrome and added HOWTO on the tutorial page.
|
|
donP |
#143 2007-11-07 11:10 GMT |
|
Thank you very very much! You are the man!!!
EDIT: Only one thing... if I use your pattern: Code: ([^"]+?) The apostrophe character is substituted by 039;... How can I solve this issue? I didn't understand very much patterns story... What kind of pattern can I use for my need? This post was edited by donP (2007-11-07 11:44 GMT, 426 days ago) |
|
|
donP
|
|
Trustmaster
48 posts
http://www.politehnik.info Location: Russia Nizhny Novgorod Occupation: University Student, Engineer/Programmer, IT Expert Age: 20 |
#144 2007-11-07 16:24 GMT |
|
See the topic at Neocrome.
|
|
donP |
#152 2007-12-04 21:23 GMT |
|
I can't find the topic anymore at Neocrome 'cause the search plugin there isn't working...
I've noticed that with your rules, now my [thumb] bbcode doesn't create images anymore if the file name contains a space... e.g.: "chiesa nuova.jpg" It's another pattern problem? Can you help me one more time? |
|
|
donP
|
|
Trustmaster
48 posts
http://www.politehnik.info Location: Russia Nizhny Novgorod Occupation: University Student, Engineer/Programmer, IT Expert Age: 20 |
#153 2007-12-05 08:34 GMT |
|
It's because the URL is supposed to be encoded, so it contains %20 instead of spaces. But you can enable it this way: in system/function.php sed_bbcode find
Code: '#\[(thumb)=([^\s"\';\?\(\[]+\.(?:jpg|jpeg|gif|png))\]([^\s"\';\?\(\[]+\.(?:jpg|jpeg|gif|png))\[/thumb\]#', and replace with Code: '#\[(thumb)=([^\t"\';\?\(\[]+\.(?:jpg|jpeg|gif|png))\]([^\t"\';\?\(\[]+\.(?:jpg|jpeg|gif|png))\[/thumb\]#',
|
|
donP |
#154 2007-12-05 18:21 GMT |
|
Thank you very much, as usual!
But this hack doesn't lower security, right? Otherwise I could find other solutions (like use only no-space filenames...) |
|
|
donP
|
|
Trustmaster
48 posts
http://www.politehnik.info Location: Russia Nizhny Novgorod Occupation: University Student, Engineer/Programmer, IT Expert Age: 20 |
#161 2007-12-07 11:00 GMT |
|
No, it doesn't affect security.
|
|
> 1 <



