you should add the header to your lang files.Done for all available language files.
https://coppermine.svn.sourceforge.net/svnroot/coppermine/branches/cpg1.5.x/plugins/bbcode_control/
. Please remember though that SVN checkouts don't get supported.
- Show pre-built bbcode in file info. You can copy & paste the bbcode wherever you want.
Please do not discuss your request further in this thread.instead just wait until I upload that plugin.
Is there a way to show the full size of that image?In codebase.php, find
$thumb = '[img]'.$CONFIG['ecards_more_pic_target'].get_pic_url($CURRENT_PIC_DATA, 'thumb').'[/img]';
and replace with$thumb = '[img]'.$CONFIG['ecards_more_pic_target'].get_pic_url($CURRENT_PIC_DATA, 'fullsize').'[/img]';
it opens two new windows.That's a feature of your board application.
1x Gallery and 1x Picture fullsized
$info['BBCode'] = '<textarea onfocus="this.select();" onclick="this.select();" class="textinput" rows="1" cols="64" wrap="off" style="overflow:hidden; height:15px;">[url='.$url.']'.$thumb.'[/url]</textarea>';
and replace with$info['BBCode'] = '<textarea onfocus="this.select();" onclick="this.select();" class="textinput" rows="1" cols="64" wrap="off" style="overflow:hidden; height:15px;">'.$thumb.'</textarea>';
In codebase.php, findCode: [Select]$thumb = '[img]'.$CONFIG['ecards_more_pic_target'].get_pic_url($CURRENT_PIC_DATA, 'thumb').'[/img]';
and replace withCode: [Select]$thumb = '[img]'.$CONFIG['ecards_more_pic_target'].get_pic_url($CURRENT_PIC_DATA, 'fullsize').'[/img]';
When clicked it takes you to the gallery page showing the normal pic. Is there a way to make it when clicked to take you to the full sized image? In fact two BBcode lines would be handy, one for normal, and one for full size, (when clicked).Open codebase.php, find
$info['BBCode'] = '<textarea onfocus="this.select();" onclick="this.select();" class="textinput" rows="1" cols="64" wrap="off" style="overflow:hidden; height:15px;">[url='.$url.']'.$thumb.'[/url]</textarea>';
and replace with$info['BBCode normal size'] = '<textarea onfocus="this.select();" onclick="this.select();" class="textinput" rows="1" cols="64" wrap="off" style="overflow:hidden; height:15px;">[url='.$url.']'.$thumb.'[/url]</textarea>';
$info['BBCode full size'] = '<textarea onfocus="this.select();" onclick="this.select();" class="textinput" rows="1" cols="64" wrap="off" style="overflow:hidden; height:15px;">[url='.$url.'&fullsize=1]'.$thumb.'[/url]</textarea>';
Is this what you asked for?
Parse error: syntax error, unexpected T_IF in /home/camxxxxx/public_html/gallery/plugins/bbcode_control/codebase.php on line 1
codebase.php on line 1Please undo your last change and try again. I assume you've done something wrong, as you don't have to edit line 1.
bb codes ? Like this one : http://www.teamopolis.com/tools/bbcode-table-generator.aspx Or the Table Bbcode shown in this forum while posting. Thanks ... |
", "<table>", $text); $text = str_replace(" |
", "<tr>", $text); $text = str_replace(" |
", "<td>", $text); $text = str_replace(" |
What it does:
- Get control over the bbcodes. You can enable/disable the processing of each bbcode.
- Add new bbcode tags to your gallery (size, tt, hr, quote, youtube).
- Add some buttons in the comment area for easy use of bbcodes. You can set who will see these buttons (nobody, admin only, everybody).
- Show pre-built bbcode in file info. You can copy & paste the bbcode wherever you want.
- Set maximum width/height of images via [img] tag.
A new button appears in the admin menu. There you can set everything related to bbcodes.
Download: http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/cpg1.5.x_plugin_bbcode_control_v1.9.zip/download
I may be posting in the wrong placeYes ;)
understand technical termsBBCode is always processed on the target page, so for your purpose you don't need this plugin, as it won't change anything on the target pages. Actually this plugin adds a prepared BBCode to the gallery which you can easily copy to other pages. It's still a bonus feature of this plugin, but I plan to outsource it to an extra plugin (with some options). But that's already some months on my to-do list, so you shouldn't wait for that dedicated plugin 8)
I have one issue with this plugin.
Some uploaded pictures don't have a intermediate size other have.
I have :
Thumbnail and the 1024px width picture
Thumbnail and the 1024px width picture and full size 1600px
When using this code (sse below) the normal returns an empty png file.
This is because there is a normal_ image when uploaded with 1600 width, but there is no normal_ image when uploaded with 1024 width, because in this case this is the full size one.
How can I solve this
$url = $CONFIG['ecards_more_pic_target'].'displayimage.php?pid='.$CURRENT_PIC_DATA['pid'];
$thumb = '(http://'.$CONFIG['ecards_more_pic_target'].get_pic_url($CURRENT_PIC_DATA, 'thumb').')';
$normal = '(http://'.$CONFIG['ecards_more_pic_target'].get_pic_url($CURRENT_PIC_DATA, 'normal').')';
$info['BBCode full size'] = '<textarea onfocus="this.select();" onclick="this.select();" class="textinput" rows="1" cols="64" wrap="off" style="overflow:hidden; height:15px;">'.$full.' (http://'.$url.')</textarea>';
$info['BBCode thumb size'] = '<textarea onfocus="this.select();" onclick="this.select();" class="textinput" rows="1" cols="64" wrap="off" style="overflow:hidden; height:15px;">'.$normal.' (http://'.$url.'&normal)</textarea>';
Hello all.
I want to use bbcode plugin from gallery to display 3D videos from youtube in the comments in my gallery.
bbcode plugin works very well, but only with the ordinary normal videos! 3D videos fail to run in 3D view.
Must change the code itself bbcode plugin.Code: [Select]// insert youtube video
if (!in_array('youtube', $bbcode_tags_disabled)) {
$youtube_embed_code_replacement = "<object type=\"application/x-shockwave-flash\" width=\"640\" height=\"385\" data=\"http://www.youtube.com/v/\\2&hl=de&fs=1\">";
$youtube_embed_code_replacement .= "<param name=\"movie\" value=\"http://www.youtube-nocookie.com/v/\\2&hl=de&fs=1\" />";
$youtube_embed_code_replacement .= "<param name=\"allowfullscreen\" value=\"true\" />";
$youtube_embed_code_replacement .= "</object>";
$text = preg_replace("/\[youtube\].*(youtube\.com\/watch\?v=|youtu\.be\/)(.*)\[\/youtube\]/Usi", $youtube_embed_code_replacement, $text);
}
The forum (phpp2) on my site also has bbcode plugin and everything is fine with the 3D view clips from youtube.
Regularly with bbcode in the forum look like this:Code: [Select]<object width="420" height="315"><param name="movie" value="http://{TEXT1}youtube.com/v/{TEXT2}?version=3&hl=bg_BG&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://{TEXT1}youtube.com/v/{TEXT2}?version=3&hl=bg_BG&rel=0" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
Can anyone tell me how to modify rows bbcode plugin, to work and 3D videos from youtube.
I think I have a very small correction, but do not understand programming languages and I can not rewrite its own code.
Here's how it looks wrong when a 3D video in the comment to my gallery-
http://3d-universe.net/Gallery/displayimage.php?pid=1280&message_id=ee6da879373adf0f7fb22d4720c131de&message_icon=info#im=0
And here is how must to looks with right bbcode -
http://3d-universe.net/3d-forum/viewtopic.php?f=67&t=497
$text = str_replace("[mapa_nr]", '<a href=http://my_page/mapa/lista.php?numer=', $text);
$text = str_replace("[/mapa_nr]", ' >zlokalizuj na mapie</a>', $text);
return $text;
and add your custom codes right above that line.
Open codebase.php, findworking - very thank you again :)Code: [Select]return $text;
and add your custom codes right above that line.
Uncaught exception: ReferenceError: Undefined variable: insert_bbcode_tagChrome:
Uncaught ReferenceError: insert_bbcode_tag is not defined
Index: codebase.php
===================================================================
--- codebase.php (revision 8783)
+++ codebase.php (working copy)
@@ -188,6 +188,10 @@
$text = preg_replace("/\[youtube\].*(youtube\.com\/watch\?v=|youtu\.be\/)(.*)\[\/youtube\]/Usi", $youtube_embed_code_replacement, $text);
}
+ if (!in_array('mp3', $bbcode_tags_disabled)) {
+ $text = preg_replace("/\[mp3](.*)\[\/mp3\]/Usi", "<audio controls><source src=\"\\1\" type=\"audio/mpeg\">Your browser does not support the audio element.</audio>", $text);
+ }
+
// insert quote
if (!in_array('quote', $bbcode_tags_disabled)) {
$style = "style=\"background-image:url(plugins/bbcode_control/images/quote_show.png); background-repeat:no-repeat; background-position:top right; padding-right:40px;\"";
@@ -244,6 +248,7 @@
'url', // cpg standard
'img', // cpg standard
'youtube',
+ 'mp3',
'pid', // cpg special for internal referencing
'aid', // cpg special for internal referencing
'cid', // cpg special for internal referencing
Index: lang/english.php
===================================================================
--- lang/english.php (revision 8783)
+++ lang/english.php (working copy)
@@ -44,6 +44,7 @@
$lang_plugin_bbcode_control['size'] = 'Font size';
$lang_plugin_bbcode_control['quote'] = 'Quote';
$lang_plugin_bbcode_control['youtube'] = 'Youtube video';
+$lang_plugin_bbcode_control['mp3'] = 'MP3 audio file';
$lang_plugin_bbcode_control['tt'] = 'Teletype';
$lang_plugin_bbcode_control['hr'] = 'Horizontal rule';
$lang_plugin_bbcode_control['pid'] = 'Picture in this gallery';
Hello! I don't know should I post this here or at forum plugin thread. I've installed forum plugin and bbcode control plugin. But bbcodes do not work with forum whenever I click their buttons - and I get this error in Opera and Chrome console:
Opera:Chrome:
Every other instances of bbcode (photo comments, etc) work fine, only forum is affected. Seems as some JavaScripts are not included. Where should I include them and which one?
I have latest cpg1.5.28. Please help.
Maybe I'll add this to the next plugin version. If so, the tag's name will probably be "audio" and will support all supported HTML5 audio file types (mp3, ogg, wav).
// bbcode buttons
$thisplugin->add_filter('theme_add_comment', 'buttons_add_comment');
$thisplugin->add_filter('theme_edit_comment', 'buttons_edit_comment');
-echo "<form action=\"index.php?file=bbcode_control/admin\" method=\"post\">";
+echo '<form action="'.$superCage->server->getEscaped('REQUEST_URI').'" method="post">';
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="43DNKJHUDBB8G">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<input type="hidden" name="hosted_button_id" value="VQBCE2PMJQPLL">