Module: Embed Images
Posted by Maurice Makaay
Re: Module: Embed Images June 16, 2009 05:37PM |
Registered: 15 years ago Posts: 5 |
June 16, 2009 06:14PM |
Admin Registered: 20 years ago Posts: 8,532 |
That would require a small hack.
Edit mods/embed_attachments/embed_attachments.php
Find the following code around line 32:
change that to
(so delete the red from the first code fragment, which will prevent adding a newline in front of the [attachment ...] link)
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Edit mods/embed_attachments/embed_attachments.php
Find the following code around line 32:
Language: PHP// Add the attachment link to the end of the body text. $message["body"] .= "\n[attachment " . $attachment["file_id"] . " $esc]";
change that to
Language: PHP// Add the attachment link to the end of the body text. $message["body"] .= "[attachment " . $attachment["file_id"] . " $esc]";
(so delete the red from the first code fragment, which will prevent adding a newline in front of the [attachment ...] link)
Maurice Makaay
Phorum Development Team



Re: Module: Embed Images June 16, 2009 06:34PM |
Registered: 15 years ago Posts: 5 |
July 24, 2009 09:55PM |
Registered: 23 years ago Posts: 55 |
This module was working fine for me until I tried a URL like this one:
[yosemitephotos.net]
The ampersands got turned into & and the server didn't like it.
[yosemitephotos.net]
The ampersands got turned into & and the server didn't like it.
Re: Module: Embed Images August 31, 2009 02:01AM |
Registered: 15 years ago Posts: 106 |
August 31, 2009 02:57AM |
Admin Registered: 20 years ago Posts: 8,532 |
Replace the ";" after $data[$id]['body']; with a ".". Now you end you statement after the body, making the <br> line a (useless) separate line of code.
I think that you want to get rid of the $block in front of the <br> too.
So try this:
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
I think that you want to get rid of the $block in front of the <br> too.
So try this:
if ($has_images) $data[$id]['body'] = $block .'</div>' . $data[$id]['body'] . '<br style="clear:both;" />';
Maurice Makaay
Phorum Development Team



September 02, 2009 10:50PM |
Registered: 21 years ago Posts: 666 |
Some images included in posts are giving this error:
Edit: Ah, nevermind, this was a memory size issue with my php.ini file. Changing memory_limit from 8 M to 60M.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Edited 1 time(s). Last edit at 09/04/2009 06:49PM by Ryan.
Quote
Image error
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 622638 bytes) in /include/api/http_get.php on line 143
Edit: Ah, nevermind, this was a memory size issue with my php.ini file. Changing memory_limit from 8 M to 60M.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Edited 1 time(s). Last edit at 09/04/2009 06:49PM by Ryan.
Re: Module: Embed Images September 07, 2009 06:54AM |
Registered: 15 years ago Posts: 24 |
Re: Module: Embed Images October 08, 2009 12:46PM |
Registered: 20 years ago Posts: 121 |
i followed the instructions to set this up with Embed Attachments, and all is hunky dory.
i'd like for users to be able to see all images that have been uploaded. I'm not interested in a pretty formatted gallery with all the associated crap, just a separate page or thread or whatever. the cache directory isn't very friendly to just opening it up to view. the first image uploaded was buried 11 directories deep and accompianied by a php file... so i was hoping there was a more user friendly way to do it.
i have no problem doing some php work on a new module, but i'd like to avoid something protracted. is there a query that might pull all the images? should i post this as a separate thread somewhere else?
i'd like for users to be able to see all images that have been uploaded. I'm not interested in a pretty formatted gallery with all the associated crap, just a separate page or thread or whatever. the cache directory isn't very friendly to just opening it up to view. the first image uploaded was buried 11 directories deep and accompianied by a php file... so i was hoping there was a more user friendly way to do it.
i have no problem doing some php work on a new module, but i'd like to avoid something protracted. is there a query that might pull all the images? should i post this as a separate thread somewhere else?
Re: Module: Embed Images October 28, 2009 11:17AM |
Registered: 20 years ago Posts: 121 |
Hate to bump, but it seems as if my post was missed.
Quote
sazaraki
i followed the instructions to set this up with Embed Attachments, and all is hunky dory.
i'd like for users to be able to see all images that have been uploaded. I'm not interested in a pretty formatted gallery with all the associated crap, just a separate page or thread or whatever. the cache directory isn't very friendly to just opening it up to view. the first image uploaded was buried 11 directories deep and accompianied by a php file... so i was hoping there was a more user friendly way to do it.
i have no problem doing some php work on a new module, but i'd like to avoid something protracted. is there a query that might pull all the images? should i post this as a separate thread somewhere else?
Sorry, only registered users may post in this forum.