php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#275862 - 07/03/04 04:13 AM Beta-[6.5] Inline Photos for 6.5
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC

   Beta-[6.5] Inline Photos for 6.5 to Del.icio.us Add to del.icio.us
  Digg Beta-[6.5] Inline Photos for 6.5 Digg it
Mod Name / Version: Inline Photos for 6.5 <br /><br />Description: This hack will display the attached image to registered users that are loggin in provided that the attachment contains the correct extensions.<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 /><br />Working Under: UBB.Threads 6.5 <br /><br />Mod Status: Beta <br /><br />Any pre-requisites: 6.5 <br /><br />Author(s): JoshPet <br /><br />Date: 07/03/04 <br /><br />Credits: JoshPet, JustDave, ExcelsiorDDZ <br /><br />Files Altered: showflat.php, showthreaded.php, main.inc.php <br /><br />New Files: none <br /><br />Database Altered: none <br /><br />Info/Instructions: Minor instructions update for 6.5 - Also in 6.5 we can't add custom config variables, so in these instructions they are added into the main.inc.php file manually. <br /><br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /><br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attachments
116221-InlinePhotosv3.2.txt (271 downloads)


Top
#275863 - 07/15/04 10:05 PM Re: Beta-[6.5] Inline Photos for 6.5 [Re: Daine]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
Adding ImageMagick functionality to this mod for making thumbnails, watermarks, etc. would be awesome! <img src="http://www.ubbdev.com/forum/images/graemlins/waytogo.gif" alt="" /><br /><br />(hint, hint)
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#275864 - 09/26/04 02:23 PM Re: Beta-[6.5] Inline Photos for 6.5 [Re: eslmix]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
Hmmm it's not working for me.... but where could be the problem ? <br /> <br />Important thing: the attached jpg image is not even being uploaded. I've set the permissions for my upload dir to 777 where else could I look ? <br /> <br />Thanks <br /> <br /> Update: I just uninstalled this mod and it seems the upload doesn't work at all... Which file is responsible for the file upload ? <br /> Update 2: Stupid me. I was using a wrong path to my upload dir in de configpanel! <img src="http://www.ubbdev.com/forum/images/graemlins/grin.gif" alt="" /> It's working now!

Top
#275865 - 10/03/04 07:34 PM Re: Beta-[6.5] Inline Photos for 6.5 [Re: Daine]
RTeam Offline
User

Registered: 03/26/02
Posts: 36
Great work, Josh, thanks! <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />But is there a way to restrict download to registered Users only? I tried your old hack adding to download.php the following line:<br /><br />if ((!strstr($user['U_Groups'],"-5-")) && (!strstr($user['U_Groups'],"-8-"))) {<br />$html = new html;<br />$html -> not_right("You are not authorized to download.",$Cat);}<br /><br />It works but with a little bug: inline pictures can be viewed by registered Users but when they click on the Attachment link, they get the same "You are not authorized to download" message.<br /><br />Any hint for a dumb PHP newbie like me? <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> Thanks!

Top
#275866 - 10/06/04 03:46 PM Re: Beta-[6.5] Inline Photos for 6.5 [Re: jlezny]
RTeam Offline
User

Registered: 03/26/02
Posts: 36
Could somebody HELP? PLEASE? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" /> <img src="http://www.ubbdev.com/forum/images/graemlins/blush.gif" alt="" />

Top
#275867 - 10/06/04 07:22 PM Re: Beta-[6.5] Inline Photos for 6.5 [Re: jlezny]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
This mod already has that functionality built in.<br /><br />Where you put this:<br /><br />$config['inline_anon'] = 'yes'; // Allow anonymous users to see inline images<br /><br />Set that to 'no' so that anonymous users won't see inline images. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#275868 - 10/06/04 09:59 PM Re: Beta-[6.5] Inline Photos for 6.5 [Re: Daine]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25427
Loc: Texas
nice mod <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />What do anon's see then? Would be nice if it gave them a graphic that when clicked says you have to be logged in/member to view it <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#275869 - 10/07/04 07:00 AM Re: Beta-[6.5] Inline Photos for 6.5 [Re: Daine]
RTeam Offline
User

Registered: 03/26/02
Posts: 36
[]JoshPet said:<br />This mod already has that functionality built in.<br /><br />Where you put this:<br /><br />$config['inline_anon'] = 'yes'; // Allow anonymous users to see inline images<br /><br />Set that to 'no' so that anonymous users won't see inline images. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> [/]<br /><br />Oh boy, my English really sucks, sorry guys. <img src="http://www.ubbdev.com/forum/images/graemlins/blush.gif" alt="" /> <img src="http://www.ubbdev.com/forum/images/graemlins/crazy.gif" alt="" /><br /><br />What I actually needed help for is the bug of this mod: even registered Users who are logged in can't download Attachments, they can just see the inline picture but Attachment download is not possible for them. Any hint? Thanks and sorry for the confusion. <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" />

Top
#275870 - 10/07/04 10:32 AM Re: Beta-[6.5] Inline Photos for 6.5 [Re: jlezny]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I'm confused. This mod doesn't do anything at all to the download.php file - this only displays attachments inline.<br /><br />I'd try re-uploading a clean copy of download.php from your UBBThreads zip.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#275871 - 10/08/04 09:59 AM Re: Beta-[6.5] Inline Photos for 6.5 [Re: Daine]
RTeam Offline
User

Registered: 03/26/02
Posts: 36
[]JoshPet said:<br />I'm confused. This mod doesn't do anything at all to the download.php file - this only displays attachments inline.<br /><br />I'd try re-uploading a clean copy of download.php from your UBBThreads zip. [/]<br /><br />I'm even dumber than I thought, I forgot to mention that I'm using the download restriction too. Sorry, Josh...this wasn't my day today. <img src="http://www.ubbdev.com/forum/images/graemlins/crazy.gif" alt="" /> <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" /><br /><br />So I guess the problem lies with the download.php mod. <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" /><br /><br />Stupid question: may I contact you via PM to ask you about some mods and a photopost integration? Of course not for free, I'm thinking about hiring you. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />

Top
#275872 - 10/15/04 12:34 PM Re: Beta-[6.5] Inline Photos for 6.5 [Re: Daine]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
You rule! <img src="http://www.ubbdev.com/forum/images/graemlins/bow.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#275873 - 12/03/04 04:46 PM Added Inline Flash (SWF) Functionality [Re: Daine]
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
I often post little Flash movies and added some code to display them inline as well. I'm not sure about the etiquitte of modding mods, so I'll post this and you all can change it or do with it as you see fit.


Attachments
123537-InlinePhotos3_2_1.txt (112 downloads)



Edited by Calpy (12/03/04 10:55 PM)

Top
#275874 - 12/03/04 10:02 PM Re: Added Inline Flash (SWF) Functionality [Re: Webstrong]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
Hi caplhy....<br /><br />What if I wanted to leave the images as they are with no restrictions as to what they are or who can view them. but add the ability to use .swf or .fla in their custom sig?
_________________________
DrChaos
LeetGamers

Top
#275875 - 12/03/04 10:57 PM Re: Added Inline Flash (SWF) Functionality [Re: Duck]
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
Dr C, I'm not sure about that. If you allow html in the sigs, they could just embed the flash object themselves, but if you want to allow them to upload a flash object and have it display automatically, or even just have an interface for them to enter the url and have embed code generated, that's a little beyond my meager skillz at the moment.

Top
#275876 - 12/04/04 10:26 AM Re: Added Inline Flash (SWF) Functionality [Re: Webstrong]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
Thanks for the reply..<br /><br />I have a good friend that is going to show me how to do it and Ill post it here. <br /><br />What we want to do is allow people to add a .swf file as a sig instead of the normal image. <br /><br />you know how you can go in and create a img file and have it display as your image in all of your posts. we want to do that but with a .swf file.
_________________________
DrChaos
LeetGamers

Top
#275877 - 12/06/04 02:18 PM Re: Added Inline Flash (SWF) Functionality [Re: Duck]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
This is exactly what we we want to do. this mod is for a phpbb forums though.<br /><br />http://mods.postnuke.com/Article591.html
_________________________
DrChaos
LeetGamers

Top
#275878 - 02/17/05 03:23 AM Re: Added Inline Flash (SWF) Functionality [Re: Duck]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2574
Loc: England
works fine on 6.5.1 before anyone asks <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
_________________________
Fans Focus - Focusing on Fans of Sport

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

Top
#275879 - 03/02/05 01:16 PM Re: Added Inline Flash (SWF) Functionality [Re: Gorlum]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Quick question. Works on 6.5, and there is really nothing in there that should be affected by 6.5.1 or the upcoming 6.5.2 (at least 'much' affected).<br /><br />Since each forum is referenced by a keyword, how hard would it be to restrict this MOD to only ONE forum instead of every forum?

Top
#275880 - 03/02/05 05:05 PM Re: Added Inline Flash (SWF) Functionality [Re: Intel -*RW*-]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Not hard -<br /><br /><br />if ($Board == "keyword") {<br /><br />// PUt the rest of the code inside this if statement<br /><br /><br />}
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#275881 - 04/08/05 05:48 PM Re: Added Inline Flash (SWF) Functionality [Re: Daine]
TheInsider Offline
Journeyman

Registered: 03/16/03
Posts: 124
Loc: Baghdad, Iraq
Hey I have a weird problem which i'm not sure why it would happen.<br /><br /><br />Going off the instructions (and verifying afterwards) I get this error on my site now. (Luckily it's a new unpublished site right now.)<br /><br />
Code:
  [:"red"] <br />Warning: main(/ubbt.inc.php): failed to open stream: No such file or directory in /home/iraqiins/public_html/ubbthreads/includes/main.inc.php on line 13<br /><br />Warning: main(/ubbt.inc.php): failed to open stream: No such file or directory in /home/iraqiins/public_html/ubbthreads/includes/main.inc.php on line 13<br /><br />Warning: main(): Failed opening '/ubbt.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/iraqiins/public_html/ubbthreads/includes/main.inc.php on line 13<br /><br />Fatal error: Call to undefined function: getmicrotime() in /home/iraqiins/public_html/ubbthreads/includes/main.inc.php on line 16<br />
[/] <br /> <br />Line 13 is this: [:"blue"] include("$thispath/ubbt.inc.php");[/] <br /><br />Line 16 is this: [:"blue"] $timea = getmicrotime();<br />[/] <br />(The original lines in main.inc.php)<br /><br />My site worked before installing and looking at your script I didnt notice anything that should affect the calls in ubbt.inc.php.<br /><br />Any idea why this would happen? The only mod my ubbt.inc.php has is the one needed for Josh's Who's Online mod. Which, the Who's Online mod and my whole site worked fine after testing that. Once I put in this mod my site gets the above errors. <br /><br />Any ideas?<br /><br /><br />Thanks.<br /><br />-Buddy
_________________________
Always looking for that next great thing...

My site: www.iraqiinsider.com

Top
Page 1 of 2 1 2 >


Moderator:  Ian_W 
Who's Online
0 Registered (), 28 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by Ian_W
Yesterday at 03:47 PM
What do you use to edit the files
by Ian_W
Yesterday at 03:33 PM
BeyondCompare v3.00
by Ian_W
Yesterday at 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
Yesterday at 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
ghengis317, NitroX, Dogan, EliYah-, W-D
13344 Registered Users
Top Posters Last 30 Days
AllenAyres 16
blaaskaak 13
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
tackaberry 3

 

 

 
fusionbb message board php hacks