|
161. Posted: 16 Nov 2006 07:19 - Custom Tutorials and Modifications / Enabling some BB codes only for registered members
Another quick question: Is there a way to disable smilies for Anonymous posters as well? Or does the above code to disable BB codes work for smilies too.
|
162. Posted: 15 Nov 2006 03:30 - Official Addons and Solutions / YouTube BB code
is there a way to disable certain bb codes for Anonymous posters as well - check this thread.
|
163. Posted: 15 Nov 2006 03:29 - Custom Tutorials and Modifications / Enabling some BB codes only for registered members
Question: is there a way to disable certain bb codes for Anonymous posters as well? Answer: of course, there is a way. Inside bb_codes.php file, in enCode() function, the following type conditions must be placed: if($GLOBALS['user_id']!=0){ /* Only members BB code here for $pattern[] and $replacement[] */...
|
164. Posted: 14 Nov 2006 23:32 - Official Addons and Solutions / YouTube BB code
I will definitely have to try this out. :-) Just a quick question; is there a way to disable certain bb codes for Anonymous posters as well? thank you.
|
165. Posted: 5 Nov 2006 08:19 - Official Addons and Solutions / YouTube BB code
I think yes... you need to modify functions of bb_codes.php so they include a condition like if(isset($GLOBALS['forum']) and $GLOBALS['forum']!=0 and in_array($GLOBALS['forum'], $specialBBCodeForums)){ /* here...
|
166. Posted: 4 Nov 2006 15:45 - Official Addons and Solutions / YouTube BB code
seems to work now! i have a question, is it possible to disable certain bb codes in specific forums?
|
167. Posted: 4 Nov 2006 15:27 - Official Addons and Solutions / YouTube BB code
Yes, the code for bb_codes.php has been changed. Actually I need to know what other symbols are allowed in YouTube URLs, if it doesn't work.
|
168. Posted: 4 Nov 2006 13:11 - Official Addons and Solutions / YouTube BB code
lol @ paul You can find some strange and funny things on youtube =) Anonymous, I think only the code in bb_codes.php was changed.
|
169. Posted: 4 Nov 2006 11:40 - Official Addons and Solutions / YouTube BB code
... thought only about URLs like //www.youtube.com/v/r-DomnRg72Q... so as if they would contain only letters, digits and slashes. So we need to extend the regular expression. I've fixed my code for bb_codes.php, please check out now. Cool movie, by the way :-) I usually eat pets like this. Joke :-)
|
170. Posted: 2 Nov 2006 23:29 - Official Addons and Solutions / YouTube BB code
Anonymous Yes, I think you've misunderstood. You have to put the encode function part into the encode function part and the decode function part into the decode function part, like so: --- modified bb_codes.php --- <?php /* This file is part of miniBB. miniBB is free discussion forums/message board software, without any warranty. See COPYING file for more details. Copyright (C) 2004 Paul...
|
171. Posted: 2 Nov 2006 13:30 - Official Addons and Solutions / YouTube BB code
Well, I don't know what's difficult there. Instruction already says: edit /forum_folder/bb_codes.php and modify the functions (paste before $msg=preg_replace...) Can you locate the string beginning with $msg=preg_replace ...? I don't know how to say it easier.
|
172. Posted: 2 Nov 2006 05:04 - Official Addons and Solutions / YouTube BB code
I've provided the short solution in the package available to Download now. The solution consists of 3 steps: 1) Copy YouTube image button 2) Modify bb_codes.php functions 3) Paste the code for the button in the post form template Report here if something is wrong... it works on my side.
|
173. Posted: 2 Oct 2006 06:52 - Custom Tutorials and Modifications / Enabling moderators to use color BB codes / color tags
... $msg=preg_replace($pattern, $replacement, $msg); Actually, we already have color BB codes by default, but they work only for admin. If you notice the string if($GLOBALS['user_id']==1... in bb_codes.php, it sets the condition of [font...] code available only for admin. Yes, bb_codes.php is the only file you need to edit for adding/removing the BB codes.
|
174. Posted: 2 Oct 2006 04:05 - Custom Tutorials and Modifications / Enabling moderators to use color BB codes / color tags
I have been trying to implement these color BB codes to my own forum, with no success. It simply posts the code in the submitted post. Is it only bb_codes.php I need to edit, or are there more files to change? Many thanks.
|
175. Posted: 31 Aug 2006 11:54 - News / miniBB version 2.0.2 has been released
... function) - Location redirect function changed to "Refresh: 0; url=" in a time of posting message/topic. This should fix redirection in IE for multipart forms, and also redirection in Opera. - bb_codes.php inclusion is now moved from index.php to other files, and included only when it's necessary. - Each message in the thread will contain Reply link, which points straight to the...
|
176. Posted: 12 Jul 2006 07:11 - Custom Tutorials and Modifications / Adding <hr> horizontal rule to bbcode
Edit bb_codes.php and in enCodeBB() function area paste: $pattern[]="/\[hr\]/is"; $replacement[]='<hr />'; In deCodeBB() function, paste: $pattern[]="/<hr...
|
177. Posted: 11 Jul 2006 19:26 - News / miniBB version 2.0 FINAL is out!
Serg I think, you can make it yourself, if you really need it :-) bb_codes.php file is separated from the main core, and you can modify it on your wish. I think, by default all links should open in new window, so you are not leaving the forums thread.
|
178. Posted: 10 Jul 2006 12:03 - News / miniBB version 2.0 FINAL is out!
Thanks. I've updated bb_codes.php file in the latest release (only IMGS and IMG codes are updated in deCodeBB). You may try to check...
|
179. Posted: 8 Jul 2006 14:06 - News / miniBB version 2.0 FINAL is out!
Congratulations, Team! Thanks :) We'll waiting for versions 2.1, 2.2 etc ;) There was a little problem with editing messages containing smilies. I'd change positions of two blocks in bb_codes.php function deCodeBB: /* [IMG] tag code - without fixed width. */ ... /* [IMG] tag code - without fixed width, with alt. */ ... instead of /* [IMG] tag code - without fixed width...
|
180. Posted: 29 Jun 2006 11:11 - Custom Tutorials and Modifications / Making urls open in the same window: _top
bb_func_txt.php: urlMaker() bb_codes.php: encodeBB(), decodeBB() replace "_blank" targets... Or it's better to duplicate URL code and create additionally new code which will not open URL in new window....
|
|