Follow SMF on Twitter.
Started by davidhs, May 02, 2010, 02:40:59 AM
Quote from: recursiveMAX on November 15, 2013, 04:20:35 PMI have a couple of questions. I was designing a template on my site with an image hosted at imgur as the background of the div. On preview, it looked great, but every time I would actually post the template, the external url would automatically turn into bbcode and screw up my template. I turned off "automatically turn links into bbcode links", but then that screwed with another one of my mods, and I would really like to turn the links into bbcode again...Is there any way to use a background image in a div:1. without the link automatically turning into a click-able link2. without uploading the background-image to my server (my members also make templates that have background images that are external links and I don't want to have to force them to upload all their background images to my server).
[html]<div style="background-image: url('http://media.simplemachinesweb.com/smf/default/images/spanish_es-utf8/new.gif');">[/html]xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[html]</div>[/html]
Quote<div style="background-image: url('http://media.simplemachinesweb.com/smf/default/images/spanish_es-utf8/new.gif');">xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div>
1.4.8 2014-01-25------------------+ SMF compatibility: 2.0.7.
1.4.9 2014-06-23------------------! Use HTML entities in ISO-8859-1 languages.+ SMF compatibility: 2.0.8.
1.4.10 2014-10-07------------------+ SMF compatibility: 1.1.20 and 2.0.9.
Quote from: gnowak on October 16, 2014, 04:04:21 PMRegarding: "Sorry but SMF parse all links (http:// ) into lick-able link "Would it be possible to turn off the clickable link feature only when it is between BBCode?SMF won't parse http:// when the switch "Automatically link posted URLs" is turne off. But it would be lovely to have it working only when it is outside BBCode.http://example.com should be clickable, but [mycoolbbc]http://example.com[/mycoolbbc] should not.Just my thoughts.Thanks.
Quote from: TourFL on March 23, 2015, 05:39:27 AMHello,Did anybody manage to make the image rotation work? With more and more photos taken with mobile phones, users end up posting photos automatically rotated on their computer, and not rotated on the forum I run SMF 2.0.9, version 1.4.9 of "BBCode with style" and PHP 5.2. Image always shows as broken link.I tried with images hosted on forum or externaly, doesn't change anything. As soon as it goes through the "Subs-BBCodeWithStyle-Image.php", there is no output (even with rotateangle=0)Thanks for any help!
Quote from: TourFL on March 23, 2015, 05:56:45 AMOk, but can I know if it uses some special php module, or has special requirements,permissions etc to work? I can surely ask my server hosting to install something if required.
Warning: exif_imagetype() [function.exif-imagetype]: URL file-access is disabled in the server configuration in ..../Sources/Subs-BBCodeWithStyle-Image.php on line 97
php_flag "allow_url_fopen" "On"
Quote from: TourFL on March 23, 2015, 06:38:03 AMAfter some search, I learned it comes from php.ini parameter "allow_url_fopen" which should be activated (off by default on my server). So problem comes from not being able to open stream from url.I don't have acess tphp.ini file on my service provider, but this can be achieved in the .htaccess file by adding the lineCode Select Expandphp_flag "allow_url_fopen" "On"Now it works fine! thanks for your help!
Quote from: roshaoar on April 29, 2015, 01:55:44 PMNice mod, thank you very much. I have a couple of questions if that's ok!1) Can you suggest a way to make this work on attachments, rotating the thumbnail?2) My users will want to rotate a lot of images, both attached and images hosted elsewhere. Can you suggest a way to make it supereasy for them, ie maybe some icons they can use on the BBC UIX and tag their img BBC with various rotates. Any suggestions?Thank you for your time,-Johan
QuoteThe website cannot display the page http://extreme-macro.co.uk/forum/buy-sell/?action=post2;start=0
Quotemod_fcgid: stderr: PHP Warning: imagedestroy(): 5 is not a valid Image resource in /home/plat-linnas01/e/extreme-macro.co.uk/user/htdocs/forum/Sources/Subs-BBCodeWithStyle-Image.php on line 113, referer: http://extreme-macro.co.uk/forum/light-diffusers/links-test/