php forum
php mysql forum
php mysql smarty
 
Page 1 of 6 1 2 3 4 5 6 >
Topic Options
#244274 - 04/27/03 07:00 PM Finished-[6.2-6.3-6.4] Inline Images 3.1
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Mod Name / Version: Inline Images 3.1 <br /> <br />Description: This hack will display the attached image in the body of the post, provided that the attachment contains the correct extensions (jpg,gif,png). <br />The Photo will appear below the body of the message. It will also be constrained to a maximum width that you define, to avoid large images being posted and messing up your layout. <br />There is also a config switch to disable inline photo viewing for unregistered visitors. <br /> <br />Version 3.1 - fixes a bug where the on/off for anonymous users was not working correctly. <br /> <br />Working Under: UBB.Threads 6.2-6.3 <br /> <br />Mod Status: Finished <br /> <br />Any pre-requisites: none <br /> <br />Author(s): JustDave, ExcelsiorDDZ, JoshPet <br /> <br />Date: 04/27/03 <br /> <br />Credits: JoshPet suggested and JustDave developed for version 5. <br />ExcelsiorDDZ modified for version 6. JoshPet revised instructions for version 6.1 and 6.2. <br />JoshPet added the image width constraint ability. JoshPet added the switch for anon viewers. <br />Many others have worked on variations of this over time. <br /> <br />Files Altered: showflat.php, showthreaded.php <br /> <br />New Files: none <br /> <br />Database Altered: none <br /> <br />Info/Instructions: Version 2 adds an option to constrain the width of the attachment thus protecting your layout. <br />Version 3 adds a config switch to hide inline images from unregistered users and save your bandwidth. <br /> <br /> <br />


Attachments
77859-InlinePhotosv3.1.txt (513 downloads)



Edited by JoshPet (10/07/03 12:38 AM)
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#244275 - 06/14/03 07:25 AM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: Daine]
magik Offline
Power User

Registered: 10/09/02
Posts: 66
Loc: Poland, Tarnów
small change for josh modification <br /><br />It`s show<br />1) images<br />2) images as link (open in new window ) when filewidth > $config['max_width']<br />3) button to attachment in body and open in new window <br /><br /><br /><br />Open showflat.tmpl <br /><br />find <br /><br /><font class="small"><br /><a name="#{$postrow[$i]['Number']}">#{$postrow[$i]['Number']} - {$postrow[$i]['time']} <i>{$postrow[$i]['IP']}</i> {$postrow[$i]['filelink']}<br /></font><br /><br />change for this <br /><br /><font class="small"><br /><a name="#{$postrow[$i]['Number']}">#{$postrow[$i]['Number']} - {$postrow[$i]['time']} <i>{$postrow[$i]['IP']}</i> <br /></font><br /><br /><br />find <br /><br />{$postrow[$i]['Body']}<br />{$postrow[$i]['Signature']}<br />{$postrow[$i]['PrintLastEdit']}<br /><br />change for this <br />{$postrow[$i]['Body']}<br /><center><br />{$postrow[$i]['filelink']}</center> <br />{$postrow[$i]['Signature']}<br />{$postrow[$i]['PrintLastEdit']}<br /><br /><br />Open <br /><br />showflat.php find Josh code : <br /><br /><br /><br />if ($File) {<br /> $File = rawurlencode($File);<br /> if (!$downloads) { $downloads = "0"; }<br /> $postrow[$i]['filelink'] = "<a href=\"{$config['phpurl']}/download.php?Number=$Number\">{$ubbt_lang['FILE_ATTACH']}</a> ($downloads {$ubbt_lang['DOWNLOADS']})";<br /> if ($config['inline_anon'] == "yes") { <br /> // -----------------------------------------------------------------------<br /> // if it's a graphic, let's display it in the posts - hack by JoshPet<br /> if (eregi("\.GIF|\.JPG|\.PNG", $File)) {<br /> $filewidth = getimagesize ("$config[fileurl]/$File");<br /> $TempBod = $Body; <br /> if ($filewidth[0] > $config['max_width']) { <br /> $TempBod .= "<br /><br /><IMG SRC=\"$config[fileurl]/$File\" width=\"{$config['max_width']}\" Border=\"0\" alt=\"{$ubbt_lang['FILE_ATTACH']}\">";<br /> }<br /> else {<br /> $TempBod .= "<br /><br /><IMG SRC=\"$config[fileurl]/$File\" Border=\"0\" alt=\"{$ubbt_lang['FILE_ATTACH']}\">";<br /> } <br /> $Body = $TempBod;<br /> } <br /> }<br /> }<br /><br /><br />change for this : <br /><br /><br />if ($File) {<br /> $File = rawurlencode($File);<br /> if (!$downloads) { $downloads = "0"; }<br /><br /> $filewidth = getimagesize ("$config[fileurl]/$File");<br />if ( ($config['inline_anon'] == "yes") && (eregi("\.GIF|\.JPG|\.PNG", $File)) && ($filewidth[0] > $config['max_width']) ) { <br /><br />$postrow[$i]['filelink'] ="<br /><br /><B>Attachment</b><br /><br /><a href=\"{$config['phpurl']}/download.php?Number=$Number\" target=\"_new\"><IMG SRC=\"$config[fileurl]/$File\" width=\"{$config['max_width']}\" Border=\"0\" alt=\"{$ubbt_lang['FILE_ATTACH']} - ($downloads {$ubbt_lang['DOWNLOADS']})\"></a>";<br /> }<br /> elseif ( ($config['inline_anon'] == "yes") && (eregi("\.GIF|\.JPG|\.PNG", $File)) ) { <br /><br /> $postrow[$i]['filelink'] ="<br /><br /><B>Attachment</b><br /><br /><IMG SRC=\"$config[fileurl]/$File\" Border=\"0\" alt=\"{$ubbt_lang['FILE_ATTACH']}\">";<br /> } <br />else <br /> $postrow[$i]['filelink'] = "<br /><B>Attachment</b><br /><a href=\"{$config['phpurl']}/download.php?Number=$Number\" target=\"_new\"><img src=\"{$config['phpurl']}/images/attachment.gif\" border=\"0\"></a><br /><br /> ($downloads {$ubbt_lang['DOWNLOADS']})";<br /> }<br /><br /><br />Put attachment.gif in your images directory (on gif write DOWNLOAD ) <br /><br /><br />Tested - working <img src="/forum/images/graemlins/yay.gif" alt="" /><br /><br />
_________________________
My board is http://www.forum.tarnow.pl

Top
#244276 - 06/20/03 05:15 AM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: Daine]
RTeam Offline
User

Registered: 03/26/02
Posts: 36
I installed UBBThreads 6.3 and the Inline Image Hack doesn't work. <img src="/forum/images/graemlins/frown.gif" alt="" /> Any idea why? No error message, it just doesn't work, images are still shown as Attachments only.<br />We had UBBThreads 6.2.3 before with the Inline Image Hack installed and it worked perfectly.<br />Any hint? Thanks.

Top
#244277 - 06/20/03 08:50 AM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: jlezny]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
How many places are you going to ask this? <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#244278 - 06/20/03 10:19 AM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: eslmix]
RTeam Offline
User

Registered: 03/26/02
Posts: 36
[]DLWebmaestro said:<br />How many places are you going to ask this? <img src="/forum/images/graemlins/wink.gif" alt="" /> [/]<br /><br />Sorry, didn't know if this is the right place to ask, so I posted to another forum too. <img src="/forum/images/graemlins/blush.gif" alt="" />

Top
#244279 - 06/20/03 12:09 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: jlezny]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Make sure you add the options into the config file and define them (see the first part of the instructions).<br /><br />It uses 2 config variables to determine maximum width and if anonymous users can see them inline - if you don't add the options to the config file - then nothing appears.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#244280 - 06/20/03 01:07 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: Daine]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
I could have told you that. I just wanted to give Josh a chance to answer this one. <img src="/forum/images/graemlins/jester.gif" alt="" />

Top
#244281 - 06/20/03 02:25 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: BrokenToy]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Well... confession -<br /><br />It wasn't working here - and I said gee I must not have installed it.<br /><br />so I went to add it, and it was already here.<br /><br />But when I switched from using the beta forum to the real one - I needed to transfer the variable to the correct config file. <img src="/forum/images/graemlins/crazy.gif" alt="" /><br /><br />So I learned that one through experience. <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#244282 - 06/21/03 08:19 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: Daine]
RTeam Offline
User

Registered: 03/26/02
Posts: 36
[]JoshPet said:<br />Make sure you add the options into the config file and define them (see the first part of the instructions).<br /><br />It uses 2 config variables to determine maximum width and if anonymous users can see them inline - if you don't add the options to the config file - then nothing appears. [/]<br /><br />Did as you said from the beginning but it didn't work.<br />I always read instructions very carefully. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />I then took the old showthreaded.php and showflat.php files from my 6.2.3 backup, copied the modified stuff out of it and pasted it into the new 6.3 files. Voila...it worked.<br />I only hope that I didn't mess up something.<br /><br />Unfortunately I didn't have the time to make a comparison between the files but if you want me to (I don't know if Infopop allows sending files from UBBThreads), I can send you my showthreaded.php and showflat.php files via eMail.<br /><br />Thanks for trying to help.

Top
#244283 - 06/21/03 09:10 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: jlezny]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
RTeam,<br /><br /> I will concur what Josh has already stated. Follow the instructions to the LETTER. This is quite an easy hack and is working fine on mutliple sites.<br /><br /> If you took the old code from 6.2.3 files and pasted it and it worked then your error is as Josh stated. You did not add the config options under your config menu in admin section. That is the change in the code between the old and new version. The new version allows some config options the old one did not. They are defined by the lines below added to the end of config file in admin section.<br /><br />$config['max_width'] = '500';<br />$config['inline_anon'] = 'yes';<br />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#244284 - 06/22/03 08:40 AM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: sf49rminer]
RTeam Offline
User

Registered: 03/26/02
Posts: 36
[]Omegatron said:<br />RTeam,<br /><br /> I will concur what Josh has already stated. Follow the instructions to the LETTER. This is quite an easy hack and is working fine on mutliple sites.<br /><br /> If you took the old code from 6.2.3 files and pasted it and it worked then your error is as Josh stated. You did not add the config options under your config menu in admin section. That is the change in the code between the old and new version. The new version allows some config options the old one did not. They are defined by the lines below added to the end of config file in admin section.<br /><br />$config['max_width'] = '500';<br />$config['inline_anon'] = 'yes';<br /> [/]<br /><br />I took the "old" code from 6.2.3 after it didn't work with the 6.3 code. I followed it to the letter, looked up every single line and it doesn't work. <img src="/forum/images/graemlins/frown.gif" alt="" /><br />No error message but also no inline images. <img src="/forum/images/graemlins/frown.gif" alt="" /><br />The setting is "800" for width and "no" for anon images.<br /><br />The first thing I learned after using UBBT and applying hacks from you PHP genius guys at Threadsdev is to read the instructions very carefully. It always worked but now I'm getting a little bit desperate. <img src="/forum/images/graemlins/frown.gif" alt="" /> Thanks for trying to help, I really appreciate it. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Maybe I just do a fresh 6.3 install and see what happens. <img src="/forum/images/graemlins/wink.gif" alt="" />

Top
#244285 - 06/22/03 09:56 AM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: jlezny]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Rteam let me see if this helps. You see my config options. They go into the config options on the bottom of the admin config screen in unknown variables section. <br /> <br />Here is the code from showflat.php I will paste a beginning line and end line so you know where to copy and paste from <br />notice begin with the if file and copy all the way to $editlinkstart <br /> <br />
Code:
         if ($File) { <br />	    		$File = rawurlencode($File); <br />				if (!$downloads) { $downloads = "0"; } <br />            $postrow[$i]['filelink'] = "&lt;a href=\"{$config['phpurl']}/download.php?Number=$Number\"&gt;{$ubbt_lang['FILE_ATTACH']}&lt;/a&gt; ($downloads {$ubbt_lang['DOWNLOADS']})"; <br />            if ($config['inline_anon'] == "yes") { <br />			// ----------------------------------------------------------------------- <br />			// if it's a graphic, let's display it in the posts - hack by JoshPet <br />               if (eregi("\.GIF|\.JPG|\.PNG", $File)) { <br />				 $filewidth = getimagesize ("$config[fileurl]/$File"); <br />                 $TempBod = $Body; <br />				 if ($filewidth[0] &gt; $config['max_width']) { <br />	                 $TempBod .= "&lt;br /&gt;&lt;br /&gt;&lt;IMG SRC=\"$config[fileurl]/$File\" width=\"{$config['max_width']}\" Border=\"0\" alt=\"{$ubbt_lang['FILE_ATTACH']}\"&gt;"; <br />				 } <br />				 else { <br />	                 $TempBod .= "&lt;br /&gt;&lt;br /&gt;&lt;IMG SRC=\"$config[fileurl]/$File\" Border=\"0\" alt=\"{$ubbt_lang['FILE_ATTACH']}\"&gt;"; <br />				 } <br />			     $Body = $TempBod; <br />               } <br />            } <br />         } <br /> <br /> <br />         $editlinkstart = "";
<br /> <br />Now this is in showthreaded.php <br /> <br />
Code:
      if ($File) { <br />	 		$File = rawurlencode($File); <br />			if (!$downloads) {$downloads = 0; } <br />         $filelink = "&lt;a href=\"{$config['phpurl']}/download.php?Number=$Number\"&gt;{$ubbt_lang['FILE_ATTACH']}&lt;/a&gt; ($downloads {$ubbt_lang['DOWNLOADS']})&lt;br /&gt;"; <br />         if ($config['inline_anon'] == "yes") { <br />		// ----------------------------------------------------------------------- <br />		// if it's a graphic, let's display it in the posts - hack by JoshPet <br />           if (eregi("\.GIF|\.JPG|\.PNG", $File)) { <br />		 	 $filewidth = getimagesize ("$config[fileurl]/$File"); <br />             $TempBod = $Body; <br />				 if ($filewidth[0] &gt; $config['max_width']) { <br />	                 $TempBod .= "&lt;br /&gt;&lt;br /&gt;&lt;IMG SRC=\"$config[fileurl]/$File\" width=\"{$config['max_width']}\" Border=\"0\" alt=\"{$ubbt_lang['FILE_ATTACH']}\"&gt;"; <br />				 } <br />				 else { <br />	                 $TempBod .= "&lt;br /&gt;&lt;br /&gt;&lt;IMG SRC=\"$config[fileurl]/$File\" Border=\"0\" alt=\"{$ubbt_lang['FILE_ATTACH']}\"&gt;"; <br />				 } <br />		     $Body = $TempBod; <br />           } <br />         } <br />      } <br /> <br />      if ( ($edit == "on") || ($reply == "on") ) {
<br /> <br /> <br />Just look for the ending line in each code and replace up to that line that way you will not miss any } 's <br />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#244286 - 06/24/03 06:17 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: sf49rminer]
RTeam Offline
User

Registered: 03/26/02
Posts: 36
[]Omegatron said:<br />RTeam,<br /><br /> I will concur what Josh has already stated. Follow the instructions to the LETTER. This is quite an easy hack and is working fine on mutliple sites.<br /><br /> If you took the old code from 6.2.3 files and pasted it and it worked then your error is as Josh stated. You did not add the config options under your config menu in admin section. That is the change in the code between the old and new version. The new version allows some config options the old one did not. They are defined by the lines below added to the end of config file in admin section.<br /><br />$config['max_width'] = '500';<br />$config['inline_anon'] = 'yes';<br /> [/]<br /><br />I did follow the instructions by the letter, trust me. <img src="/forum/images/graemlins/frown.gif" alt="" /><br />I'm working in a business where not following instructions by the letter could kill people, so I think I know what "by the letter" means. <img src="/forum/images/graemlins/wink.gif" alt="" /><br />It still doesn't work, it is hopeless.<br /><br />There is however a strange thing which might have something to do with my problem: in the config section (from Admin Config menue), I get another line of code:<br />$config['fifth_mail'] = '';<br />Whenever I delete this line and klick the Update button, it comes back again. I don't have any other hacks installed.<br /><br />Thanks again for trying to help, I really appreciate it. <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#244287 - 06/24/03 07:08 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: jlezny]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
The fifth mail config item will not cause any problems. If you cut and paste what I posted above and place the config options in it should work. The only other way I can help you is if I do the modification myself for you. Contact me privately if you wish me to get this working for you.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#244288 - 06/24/03 08:42 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: sf49rminer]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yeah, we are using this on alot of sites - this one being one of them - and it really hasn't changed that much over the years. My guess is you are missing something.<br /><br />Don't delete the fifth mail config option - that's used by UBB.Threads 6.3. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Are you seeing those other 2 config options in that extra area as well ? Or are those gone each time you go back to the config file? My thought being if your config file isn't writable - the changes aren't getting saved.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#244289 - 06/25/03 03:57 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: Daine]
foppen Offline
Power User

Registered: 12/03/02
Posts: 68
Loc: netherlands
Hi All,<br />Yes it works but...with an error.<br />I did excactly what you said and it runs ok on my testforum at 127.0.0.1.<br />But as soon as I do it on the online machine both adresses (inside 127.0.0.1 and outside gives an error as soon as i open the message.<br />It holds for 1 or 2 seconds and than this shows up:<br /><br />Warning: php_hostconnect: connect failed in c:\appserv\www\ubbthreads\showflat.php on line 946<br /><br />Warning: getimagesize: Unable to open 'http://80.126.87.6/ubbthreads/bestanden/3869-logo_sm.gif' for reading. in c:\appserv\www\ubbthreads\showflat.php on line 946<br /><br />B.t.w; the message and the picture are ok.<br />What can i do ?<br />
_________________________
http://www.videomontageforum.nl

Top
#244290 - 06/25/03 04:54 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: Mojojojo]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Looks like the server isn't liking the "getimagesize" command - not sure why a server would do that. Unless there are directory restrictions in place? <br />The changebasic uses the same 'getimagesize' command if you are allowing users to upload avatars.<br /><br />http://www.php.net/getimagesize<br /><br /><br />"Unable to open 'http://80.126.87.6/ubbthreads/bestanden/3869-logo_sm.gif' for reading"<br /><br />Leads me to believe that it's a permissions thing? Is PHP in safe mode?<br /><br />I notice in changebasic.php Scream adds a @ sign before it. I don't really know what that does. <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />Try in showflat and show threaded changing<br /><br />getimagesize<br /><br />to <br /><br />@getimagesize<br /><br />See if that helps.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#244291 - 06/25/03 06:58 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: sf49rminer]
RTeam Offline
User

Registered: 03/26/02
Posts: 36
[]Omegatron said:<br />The fifth mail config item will not cause any problems. If you cut and paste what I posted above and place the config options in it should work. The only other way I can help you is if I do the modification myself for you. Contact me privately if you wish me to get this working for you. [/]<br /><br />Wow, Chuck...this is a more than generous offer. Thanks a lot, I sent you a mail. <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#244292 - 06/26/03 08:40 AM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: Daine]
foppen Offline
Power User

Registered: 12/03/02
Posts: 68
Loc: netherlands
Hi Josh, <br />Thanks for youre response, it works now ok. <br />I put a "@" before getimagesize. <br />The error message is gone away now. <br /> <br />The only thing is that it takes up to 20 seconds before the message opens and the picture shows. <br />It doesn't make a difference if it is a small or big picture. <br />Any ideas? <br /> <br />And to be honest: i really have no idea if php is running in safe mode. I just insalled it and an apache server and was surprised that it worked!
_________________________
http://www.videomontageforum.nl

Top
#244293 - 06/26/03 07:57 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: Mojojojo]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yeah - the @ will surpress the warning that it wasn't allowed to get the filesize of the image - my guess would be permissions or a directory restriction in php which is preventing it from being able to read the size of the images.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#244294 - 07/06/03 07:29 AM Board dependent [Re: Daine]
wht Offline
Lurker

Registered: 05/09/03
Posts: 3
Loc: Gda?sk, Poland
[b]Hi<br /><br />Is there a way to make this hack work in one board only?<br /><br />Maybe someone has done something like this? []http://autokacik.pl/images/graemlins/niewiem.gif[/]

Top
#244295 - 07/06/03 12:54 PM Re: Board dependent [Re: craigyd]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Hey Allen,<br /><br />You'll change this:<br />
Code:
<br />            if ($config['inline_anon'] == "yes") { <br />
<br /><br />To this:<br />
Code:
<br />            if (($config['inline_anon'] == "yes") &amp;&amp; ($Board=="xxxxxxx")) { <br />
<br /><br />Put the board keyword where I have xxxxxxxx.<br /><br /><img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#244296 - 07/06/03 01:55 PM Re: Board dependent [Re: Daine]
wht Offline
Lurker

Registered: 05/09/03
Posts: 3
Loc: Gda?sk, Poland
[]JoshPet said:<br />Hey Allen,<br /><br />You'll change this:<br />...<br /><img src="/forum/images/graemlins/smile.gif" alt="" /> [/]<br />[b]<br />Quite simple. Thanks!<br /><br />NotAllen <img src="/forum/images/graemlins/wink.gif" alt="" />

Top
#244297 - 07/06/03 01:58 PM Re: Board dependent [Re: craigyd]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Doah - Not Allen. LOL<br />You look just like him. <img src="/forum/images/graemlins/grin.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#244298 - 07/06/03 03:24 PM Re: Board dependent [Re: Daine]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
we need a shave <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#244299 - 07/13/03 05:21 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: Daine]
TonyN Offline
Journeyman

Registered: 06/13/03
Posts: 132
Loc: Berkeley out of this world
Josh or anyone: just curious ...with this mod, if someone PRINTS the post (or thread) is the image still there, i.e.,in-line? Thanks - Tony

Top
#244300 - 07/14/03 02:22 AM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: BOOO_YAAA]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
No - they are removed in the page to be printed.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#244301 - 07/29/03 09:43 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: Daine]
rumrunner Offline
Lurker

Registered: 07/29/03
Posts: 8
Mine didn't work either until I properly spaced out the variables by manually editing the config.inc.php file at the bottom. <br />Use Tabs and Spaces as shown by the example of other variables above it in the file. Use the <br /> <br />$config['ICQ_Status'] = 1; <br />$config['fifth_mail'] = ''; <br /> <br />as examples of where to use tabs and where to use spaces on the variable lines. <br /> <br />Cheers.

Top
#244302 - 07/31/03 11:25 PM Re: Finished-[6.2-6.3] Inline Images 3.0 [Re: Andrew_Sam]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Thanks guys - I fixed the instructions for the config variables. I was using the wrong quotes - which the online editor for the config file didn't like. <img src="/forum/images/graemlins/smile.gif" alt="" /> I updated my instructions. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#244303 - 08/13/03 06:52 PM Re: Finished-[6.2-6.3] Inline Images 3.0 - Please help [Re: Daine]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
This works for me in showflat, but not in showthreaded. I get this error: <br />Parse error: parse error, unexpected '<' in /home/laondal/public_html/foros/templates/default/showthreaded.tmpl on line 321 <br /> <br />The showthreaded.tmpl is attached to this post. Any help would be appreciated. Thanks <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />--EDIT-- <br />I've fixed it. Never mind me <img src="/forum/images/graemlins/rolleyes.gif" alt="" />


Attachments
91873-showthreaded.tmpl (15 downloads)



Edited by donJulio (08/13/03 07:01 PM)
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#244304 - 08/17/03 10:59 AM Re: Finished-[6.2-6.3] Inline Images 3.0 - Please help [Re: luan]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Now that I have upgrated to 6.3.2 I am able to retain the settings when adding the variables, I was having trouble with that before. I installed the inline image hack and still have these two issues, this has been the case for 6.2.3 and 6.3.2<br /><br />1) if I put in $config['inline_anon'] = 'no';<br />it will not display them at all, not even for registered users so I have to leave it at yes.<br /><br />2) I keep getting this
Code:
"&gt;
on the right side of every image displayed.<br /><br />Thanks <br />

Top
#244305 - 08/18/03 06:33 AM Re: Finished-[6.2-6.3] Inline Images 3.0 - Please help [Re: BlarC]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
Sounds like you either left out or added a character in your code. Go back over your showflat and showthreaded files and make sure you have EXACTLY what Josh put in his instructions.
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#244306 - 08/18/03 11:55 AM Re: Finished-[6.2-6.3] Inline Images 3.0 - Please help [Re: eslmix]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
I re-installed it from scratch after I upgraded with the exact same issues. Obviously it's something that I am doing because I am the only one having it. I don't mind the "> so much (I looked at all the code and the closing statements are all in there) but I would like to be able to set $config['inline_anon'] = 'no'; and have it work.

Top
#244307 - 08/18/03 01:59 PM Re: Finished-[6.2-6.3] Inline Images 3.0 - Please help [Re: BlarC]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Make sure these two lines are correct in showflat.php<br /><br />
Code:
  <br />	                 $TempBod .= "&lt;br /&gt;&lt;br /&gt;&lt;IMG SRC=\"$config[fileurl]/$File\" width=\"{$config['max_width']}\" Border=\"0\" alt=\"{$ubbt_lang['FILE_ATTACH']}\"&gt;";<br />				 }<br />				 else {<br />	                 $TempBod .= "&lt;br /&gt;&lt;br /&gt;&lt;IMG SRC=\&quo