Coders Refuge Forums: (FSY23) IMDB Info Box v1.0 - Coders Refuge Forums

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

(FSY23) IMDB Info Box v1.0 Rate Topic: -----

#1 User is offline   Michael 

  • Administrator
  • Icon
  • View blog
  • View gallery
  • Group: Owner
  • Posts: 1,256
  • Joined: 30-April 09
  • Location:Columbus, OH
  • IPB Version:3.0

Posted 16 May 2009 - 09:50 AM

Description:
Adds a new field when creating a topic that lets you specify an IMDB movie code so that a box of information about that movie will be shown above the topic. The mod only allows this feature to be used in specified forums.

Compatibility:
This mod is compatible with both the IP.Board 2.2.x and IP.Board 2.3.x series.

Requirements:
This mod was designed to be installed using the Universal Mod Installer, available from IPS Resources, Invision Modding, or Coders Refuge.

Files Affected:
  • sources\action_public\topics.php
  • sources\classes\post\class_post_edit.php
  • sources\classes\post\class_post_new.php

Purchase (FSY23) IMDB Info Box v1.0

 
Cost: $20 (USD)Buy NowBuy Now

I am currently working on updating my IP.Board 2.x mods to 3.0 compatible. I am not available for custom work until that is done. I do not know when that will be, nor how long it will be when specific mods are upgraded. It'll happen when it happens. I don't do this professionally, I do it when I have free time here and there. Please stop asking me about things of this nature.
1

#2 User is offline   NickTheGreek 

  • Member
  • PipPip
  • Group: Premium Members
  • Posts: 11
  • Joined: 06-June 09

Posted 09 June 2009 - 04:57 PM

Hello, do i need FOPEN / FCLOSE ?

after installing i receive this on the designated forum sections :

Warning: fopen(/{forum}/uploads/imdb/.com';"><span style="color:#cc3333"><b>IMDb Resume</b></) [function.fopen]: failed to open stream: No such file or directory in /{forum}/sources/lib/func_imdb.php on line 243

Warning: fclose(): supplied argument is not a valid stream resource in /home/ntg/public_html/InvisionBoard/sources/lib/func_imdb.php on line 245


{forum} is my path to the IPB installation
Posted Image
forumsandmore.com - forum setup, script installation and web design

The Fairy Tale of YourForum | My Blog
0

#3 User is offline   Michael 

  • Administrator
  • Icon
  • View blog
  • View gallery
  • Group: Owner
  • Posts: 1,256
  • Joined: 30-April 09
  • Location:Columbus, OH
  • IPB Version:3.0

Posted 09 June 2009 - 06:43 PM

No, it doesn't use fopen or fclose, the code on that line is trying to run the mkdir function. Just make sure you have an /uploads/imdb/ folder, and that it is CHMOD 777 and you should be able to get past that error. If it persists, please PM the info for your site (board address, an admin user/password, and FTP details) and I will troubleshoot.

It does need to use the cURL functions, though, so that is one thing that may potentially cause problems if your host has that disabled and won't enable it. I do always offer full refunds if your host limits the functions that are necessary in order to run my custom mods.
I am currently working on updating my IP.Board 2.x mods to 3.0 compatible. I am not available for custom work until that is done. I do not know when that will be, nor how long it will be when specific mods are upgraded. It'll happen when it happens. I don't do this professionally, I do it when I have free time here and there. Please stop asking me about things of this nature.
0

#4 User is offline   NuclearGeneral 

  • Quote from Two Stupid Dogs: Awww! Aint That Cute!
  • PipPipPipPip
  • View blog
  • View gallery
  • Group: Resource Authors
  • Posts: 299
  • Joined: 18-May 09
  • Location:Colorado, USA
  • IPB Version:3.0

Posted 09 June 2009 - 06:52 PM

Hey Michael, do you have a screenshot of what this looks like?
0

#5 User is offline   NickTheGreek 

  • Member
  • PipPip
  • Group: Premium Members
  • Posts: 11
  • Joined: 06-June 09

Posted 09 June 2009 - 06:55 PM

I just remember that current config forbids FOPEN, o had a similar case and had to use CURL instead.

To get rid of the mentioned error i replaced the following block of code on the offending lines 243-245 of func_imdb.php

			$handle = fopen( $url, 'wb' );
			fwrite( $handle, $file );		
			fclose( $handle );


with :

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 ); 
$handle = curl_exec($ch);
curl_close($ch);
fwrite( $handle, $file );


i am far away from a coder and this may seem unorthodox.

Now the MOD works fine ( yet it needs tt followed by the number )

One last thing : there are no images fetched by imdb.com site anymore, right ? i think they enforced a random (?) / folder protection system, to reduce their overhead and bandwidth expenses
Posted Image
forumsandmore.com - forum setup, script installation and web design

The Fairy Tale of YourForum | My Blog
0

#6 User is offline   NickTheGreek 

  • Member
  • PipPip
  • Group: Premium Members
  • Posts: 11
  • Joined: 06-June 09

Posted 09 June 2009 - 06:57 PM

if Micheal wishes so i could post a screenshot from a working installation
Posted Image
forumsandmore.com - forum setup, script installation and web design

The Fairy Tale of YourForum | My Blog
0

#7 User is offline   Michael 

  • Administrator
  • Icon
  • View blog
  • View gallery
  • Group: Owner
  • Posts: 1,256
  • Joined: 30-April 09
  • Location:Columbus, OH
  • IPB Version:3.0

Posted 09 June 2009 - 07:11 PM

That's weird, I guess the code does in fact use fopen, but it's not on the lines your error messages were referring to. Sorry about the confusion there.

Regarding the poster images, when I wrote this mod I was still able to work around that, at least in most cases. If it's not working now, it's either a case of them making yet another change to how those are pulled, or it's just a case I didn't test when developing. You may have better luck with other movies, but if you see the problem persisting, then give me some of the codes for those movies and I'll test them.

Yes, you can post a screenshot if you'd like. :)
I am currently working on updating my IP.Board 2.x mods to 3.0 compatible. I am not available for custom work until that is done. I do not know when that will be, nor how long it will be when specific mods are upgraded. It'll happen when it happens. I don't do this professionally, I do it when I have free time here and there. Please stop asking me about things of this nature.
0

#8 User is offline   NickTheGreek 

  • Member
  • PipPip
  • Group: Premium Members
  • Posts: 11
  • Joined: 06-June 09

Posted 09 June 2009 - 11:35 PM

i would just like to know if what i changed in your library file is still ok ( works ok, but is it valid as PHP code ? or practical )

An example of a movie would be this :

Into The Wild (2007)

http://www.imdb.com/title/tt0758758/

by the way, this movie is the True American Beauty

P.S. The problem is persistent so i am sorry to tax more of your time
Posted Image
forumsandmore.com - forum setup, script installation and web design

The Fairy Tale of YourForum | My Blog
0

#9 User is offline   Michael 

  • Administrator
  • Icon
  • View blog
  • View gallery
  • Group: Owner
  • Posts: 1,256
  • Joined: 30-April 09
  • Location:Columbus, OH
  • IPB Version:3.0

Posted 10 June 2009 - 06:37 AM

The images not showing may be related to the code change you made. What I did have to do with fopen, fwrite, and fclose before was to take the actual image file from IMDB and upload it to your site, since I can't just link to IMDB's images. I will take a look at the code and see if my original code still works for those who can use those functions, and if there is a workaround for those (like you) who can't.
I am currently working on updating my IP.Board 2.x mods to 3.0 compatible. I am not available for custom work until that is done. I do not know when that will be, nor how long it will be when specific mods are upgraded. It'll happen when it happens. I don't do this professionally, I do it when I have free time here and there. Please stop asking me about things of this nature.
0

#10 User is offline   Michael 

  • Administrator
  • Icon
  • View blog
  • View gallery
  • Group: Owner
  • Posts: 1,256
  • Joined: 30-April 09
  • Location:Columbus, OH
  • IPB Version:3.0

Posted 10 June 2009 - 07:35 AM

Both sets of codes (my original code and your cURL method) show the images just fine for me. Are the images getting uploaded to your /uploads/imdb/ folder? Can you remove the @ symbol in front of file_get_contents right in that section and try it again? That may be the function that is silently failing.
I am currently working on updating my IP.Board 2.x mods to 3.0 compatible. I am not available for custom work until that is done. I do not know when that will be, nor how long it will be when specific mods are upgraded. It'll happen when it happens. I don't do this professionally, I do it when I have free time here and there. Please stop asking me about things of this nature.
0

#11 User is offline   Michael 

  • Administrator
  • Icon
  • View blog
  • View gallery
  • Group: Owner
  • Posts: 1,256
  • Joined: 30-April 09
  • Location:Columbus, OH
  • IPB Version:3.0

Posted 10 June 2009 - 07:38 AM

Here are some screenshots if anyone would like to see how this looks:

Attached File  SNAG-0078.png (22.15K)
Number of downloads: 50
Attached File  SNAG-0077.png (84.08K)
Number of downloads: 48
I am currently working on updating my IP.Board 2.x mods to 3.0 compatible. I am not available for custom work until that is done. I do not know when that will be, nor how long it will be when specific mods are upgraded. It'll happen when it happens. I don't do this professionally, I do it when I have free time here and there. Please stop asking me about things of this nature.
0

#12 User is offline   NuclearGeneral 

  • Quote from Two Stupid Dogs: Awww! Aint That Cute!
  • PipPipPipPip
  • View blog
  • View gallery
  • Group: Resource Authors
  • Posts: 299
  • Joined: 18-May 09
  • Location:Colorado, USA
  • IPB Version:3.0

Posted 10 June 2009 - 05:21 PM

Doesn't look too bad. Pretty neat!
0

#13 User is offline   utkuts 

  • Newbie
  • Pip
  • Group: Banned
  • Posts: 6
  • Joined: 23-June 09
  • Location:Turkey

Posted 23 June 2009 - 04:47 AM

Hi Michael;

I wanna buy this mod but, if imdb changes the site, will you edit this mode for free?


EDIT: I have a question. For example I want to use this mod only as a admin or mod, not for users. is it possible?

#14 User is offline   Michael 

  • Administrator
  • Icon
  • View blog
  • View gallery
  • Group: Owner
  • Posts: 1,256
  • Joined: 30-April 09
  • Location:Columbus, OH
  • IPB Version:3.0

Posted 23 June 2009 - 06:40 AM

View Postutkuts, on 23 June 2009 - 05:47 AM, said:

Hi Michael;

I wanna buy this mod but, if imdb changes the site, will you edit this mode for free?

There is no way I can answer that question at this time. I don't know what changes they would make and how those changes would impact how this mod works. If they do make changes and I can account for those changes with some quick fixes, then sure, I'll do that. If they radically alter their site to the point I essentially have to rewrite this mod, I'm not going to guarantee that I'll make a new version of this mod for free. This mod was written for the IMDB site as it existed when I was contracted to do the work, that's all I will vouch for it working on.

View Postutkuts, on 23 June 2009 - 05:47 AM, said:

EDIT: I have a question. For example I want to use this mod only as a admin or mod, not for users. is it possible?

There are no group permissions on this mod, if it's installed, all groups can use it in the selected forums.
I am currently working on updating my IP.Board 2.x mods to 3.0 compatible. I am not available for custom work until that is done. I do not know when that will be, nor how long it will be when specific mods are upgraded. It'll happen when it happens. I don't do this professionally, I do it when I have free time here and there. Please stop asking me about things of this nature.
0

#15 User is offline   utkuts 

  • Newbie
  • Pip
  • Group: Banned
  • Posts: 6
  • Joined: 23-June 09
  • Location:Turkey

Posted 23 June 2009 - 01:16 PM

i sent 10$ how can i download this mod?

#16 User is offline   Michael 

  • Administrator
  • Icon
  • View blog
  • View gallery
  • Group: Owner
  • Posts: 1,256
  • Joined: 30-April 09
  • Location:Columbus, OH
  • IPB Version:3.0

Posted 23 June 2009 - 01:23 PM

I see that even on this new site I still get people who will not read what they are agreeing to when they make a purchase. Please real ALL of the first post in this topic one more time, it links you to the terms and conditions which explain this.

I am refunding your money and canceling this sale because I have taken the time to explain this purchase process in as much detail as possible, yet I still get people who do things like this: not read what I wrote, post in the topic asking a question I have already answered, and PMing me the same question.
I am currently working on updating my IP.Board 2.x mods to 3.0 compatible. I am not available for custom work until that is done. I do not know when that will be, nor how long it will be when specific mods are upgraded. It'll happen when it happens. I don't do this professionally, I do it when I have free time here and there. Please stop asking me about things of this nature.
0

#17 User is offline   utkuts 

  • Newbie
  • Pip
  • Group: Banned
  • Posts: 6
  • Joined: 23-June 09
  • Location:Turkey

Posted 23 June 2009 - 02:52 PM

I'm so sorry Michael, and i sent again paypal and i sent mail all information. Again sorry

#18 User is offline   utkuts 

  • Newbie
  • Pip
  • Group: Banned
  • Posts: 6
  • Joined: 23-June 09
  • Location:Turkey

Posted 26 June 2009 - 06:28 PM

hi

i want to ask some questions about the mod i get.
firstly, i want to change background color of IMDB Box. is it possible?
and also is it possible to change the language of the mod?
i mean, for example ''Director: Peter Jackson''
i want it to be like ''Yönetmen: Peter Jackson'' which is in my language

#19 User is offline   Michael 

  • Administrator
  • Icon
  • View blog
  • View gallery
  • Group: Owner
  • Posts: 1,256
  • Joined: 30-April 09
  • Location:Columbus, OH
  • IPB Version:3.0

Posted 26 June 2009 - 06:33 PM

View Postutkuts, on 26 June 2009 - 07:28 PM, said:

firstly, i want to change background color of IMDB Box. is it possible?

You can change the HTML code of the Topic View -> imdb_box skin template to change the look of this box. It uses the 'post2' CSS class, you can change all instances of that to a different CSS class, or you can just set a "style=background-color: #******;" attribute on the elements of this skin template.

View Postutkuts, on 26 June 2009 - 07:28 PM, said:

and also is it possible to change the language of the mod?
i mean, for example ''Director: Peter Jackson''
i want it to be like ''Yönetmen: Peter Jackson'' which is in my language

All text from this mod (apart from what it pulls from the IMDB site) is stored in your cache/lang_cache/*/lang_topic.php file, you can download that file, make the changes to the text in it, save it and upload it to change the text.
I am currently working on updating my IP.Board 2.x mods to 3.0 compatible. I am not available for custom work until that is done. I do not know when that will be, nor how long it will be when specific mods are upgraded. It'll happen when it happens. I don't do this professionally, I do it when I have free time here and there. Please stop asking me about things of this nature.
1

#20 User is offline   utkuts 

  • Newbie
  • Pip
  • Group: Banned
  • Posts: 6
  • Joined: 23-June 09
  • Location:Turkey

Posted 02 July 2009 - 09:12 AM

Can we use IMDB ID or Director... etc as a Search Criteria ?

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users