Jump to content


- - - - -

SRD23 ImagesHack iFram v1.0


  • Please log in to reply
10 replies to this topic

#1 AmgedOsman

AmgedOsman

    aka Sacred

  • IM Supporters
  • PipPipPipPipPipPipPipPipPip
  • 2,027 posts
  • Location:Egypt - Cairo
  • Real Name:amGed
  • IPB Version:v3.3.x
Contributor

Posted 12 April 2008 - 05:52 PM

Posted Image


File Name: SRD23 ImagesHack iFram v1.0
File Submitter: Sacred
File Submitted: 12 Apr 2008
File Updated: 13 Apr 2008
File Category: IP.Board v2.3.x Mods

Description
• This Mod will show An ImagesHack Media Online Host I-Frame When Posting New Post, New Reply, Editing You Post!

• All Text are changeable from lang_global.php

• This mod was Made and tested on IPB Default SKIN, Yet i have tested on some other skins and it worked like a charm!

• The I-Fram Only is taken from "imageshack ifram tutorial" on ©InvisionModding


Requirements
This mod was designed to be installed using the Universal Mod Installer, available from IPSBeyond or ©Invision Modding.

Files Affected

* sources\classes\post\class_post_edit.php
* sources\classes\post\class_post_new.php
* sources\classes\post\class_post_reply.php
* 1 Skin Edit

Be sure to back up these files!

Files/Folders To Upload

File/Folder To Upload
\mod_install\srd23_ih.xml To \mod_install\
\style_images\frog.png To \style_images\


IBmafia.com || InvisionModding

Click here to download this file
Facebook Senior Account Manager (MENA Region)
MSN Senior Account Manager (MENA Region)

Posted Image
@amgedosman | AmgedOsman.com

#2 expat007

expat007

    Advanced Member

  • Members
  • PipPipPipPip
  • 59 posts
  • Real Name:chas
  • IPB Version:N/A

Posted 13 April 2008 - 02:30 PM

why you need the UMI for this??

#3 AmgedOsman

AmgedOsman

    aka Sacred

  • IM Supporters
  • PipPipPipPipPipPipPipPipPip
  • 2,027 posts
  • Location:Egypt - Cairo
  • Real Name:amGed
  • IPB Version:v3.3.x
Contributor

Posted 13 April 2008 - 03:22 PM

for less edits?
to create template?
to add lang files ?
heres 3 reasons why u need umi for this!
Facebook Senior Account Manager (MENA Region)
MSN Senior Account Manager (MENA Region)

Posted Image
@amgedosman | AmgedOsman.com

#4 expat007

expat007

    Advanced Member

  • Members
  • PipPipPipPip
  • 59 posts
  • Real Name:chas
  • IPB Version:N/A

Posted 13 April 2008 - 03:30 PM

cant iframe in the thingie??

#5 AmgedOsman

AmgedOsman

    aka Sacred

  • IM Supporters
  • PipPipPipPipPipPipPipPipPip
  • 2,027 posts
  • Location:Egypt - Cairo
  • Real Name:amGed
  • IPB Version:v3.3.x
Contributor

Posted 13 April 2008 - 03:33 PM

huh ;)?
Facebook Senior Account Manager (MENA Region)
MSN Senior Account Manager (MENA Region)

Posted Image
@amgedosman | AmgedOsman.com

#6 Badbat

Badbat

    Member

  • IM Supporters
  • PipPipPip
  • 20 posts
  • Real Name:Almeida
  • IPB Version:v3.0.x

Posted 13 April 2008 - 04:26 PM

and i get a error wen i try to klik on new topic...
Parse error: syntax error, unexpected T_VARIABLE in /home/digital/public_html/newteam/sources/classes/post/class_post_new.php on line 549


$upload_field = $this->can_upload ? $this->html_build_uploads( $this->post_key, 'new' ) : '';

$this->output = str_replace( "<!--START TABLE-->" , $start_table , $this->output );
$this->output = str_replace( "<!--NAME FIELDS-->" , $name_fields , $this->output );
$this->output = str_replace( "<!--POST BOX-->" , $post_box , $this->output );
$this->output = str_replace( "<!--POLL BOX-->" , $poll_box , $this->output );
$this->output = str_replace( "<!--POST ICONS-->" , $post_icons , $this->output );
$this->output = str_replace( "<!--UPLOAD FIELD-->", $upload_field , $this->output );
$this->output = str_replace( "<!--MOD OPTIONS-->" , $mod_options , $this->output );
$this->output = str_replace( "<!--END TABLE-->" , $end_form , $this->output );
$this->output = str_replace( "<!--TOPIC TITLE-->" , $topic_title , $this->output );
$this->output = str_replace( "<!--FORUM RULES-->" , $this->ipsclass->print_forum_rules($this->forum), $this->output );
$this->output = str_replace( "<!--SRDImageHack-->" ,$ih_field , $this->output )

//-----------------------------------------
// Add in siggy buttons and such
//-----------------------------------------

$this->html_checkboxes('new', 0, $this->forum['id']);   >> line 551

#7 AmgedOsman

AmgedOsman

    aka Sacred

  • IM Supporters
  • PipPipPipPipPipPipPipPipPip
  • 2,027 posts
  • Location:Egypt - Cairo
  • Real Name:amGed
  • IPB Version:v3.3.x
Contributor

Posted 13 April 2008 - 04:34 PM

ohh i must have  missed it while copying! to the Read Me

class_post_new

find :
$this->output = str_replace( "<!--SRDImageHack-->" ,$ih_field , $this->output )

change to


$this->output = str_replace( "<!--SRDImageHack-->" ,$ih_field  , $this->output );


do the same step in class_post_edit



Read Me updated

Edited by Sacred, 13 April 2008 - 04:39 PM.

Facebook Senior Account Manager (MENA Region)
MSN Senior Account Manager (MENA Region)

Posted Image
@amgedosman | AmgedOsman.com

#8 Badbat

Badbat

    Member

  • IM Supporters
  • PipPipPip
  • 20 posts
  • Real Name:Almeida
  • IPB Version:v3.0.x

Posted 13 April 2008 - 05:09 PM

thanks a lot , its working fine... a litle detail and it was not working hehehe thanks again...

#9 AmgedOsman

AmgedOsman

    aka Sacred

  • IM Supporters
  • PipPipPipPipPipPipPipPipPip
  • 2,027 posts
  • Location:Egypt - Cairo
  • Real Name:amGed
  • IPB Version:v3.3.x
Contributor

Posted 13 April 2008 - 05:18 PM

yeah hehe
you're  welcome ;)
Facebook Senior Account Manager (MENA Region)
MSN Senior Account Manager (MENA Region)

Posted Image
@amgedosman | AmgedOsman.com

#10 DyCe

DyCe

    Coder

  • Banned
  • PipPipPipPipPip
  • 126 posts
  • Real Name:DyCe
  • IPB Version:v2.3.x

Posted 01 September 2009 - 07:11 AM

is there any way to add iFrame of BT Image Upload SYstem.

#11 perakojot

perakojot

    Novice

  • Members
  • PipPip
  • 15 posts
  • Real Name:2:20
  • IPB Version:v2.3.x

Posted 03 August 2010 - 11:48 PM

I have instaled this mod, and I get the box with frog image but there is no upload form. Any idea?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users