Jump to content


* * * - - 2 votes

(DP32) Forum Icons 2.0.0


  • Please log in to reply
182 replies to this topic

#1 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • Location:Cracow, Poland
  • Real Name:David
  • IPB Version:v3.2.x
Contributor

Posted 21 July 2009 - 11:38 AM

Posted Image

File Name: (DP32) Forum Icons 2.0.0
File Submitter: DawPi
File Submitted: 21 Jul 2009
File Updated: 04 Aug 2011
File Category: IP.Board v3.2

With this modification you can set icon for every or only selected forums.

Features:
  • enable/disable mod,
  • two display mode: next to the forum name (without any file or skin edits) or instead of indicator icon (require skin edits - work fine with the ajaxed marking),
  • set allowed extensions,
  • set maximum file size,
  • set maximum dimensions for icons,
  • enable/disable icon per forum,
  • tool to convert old settings from old version.


Note: skin edits are optional (but require to work in one of display modes).

Click here to download this file
Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence

#2 AndyFrank

AndyFrank

    Advanced Member

  • Banned
  • PipPipPipPip
  • 95 posts
  • Real Name:Andy Frank Walker
  • IPB Version:v3.0.x

Posted 21 July 2009 - 02:25 PM

hello there, thank you for providing this mod, i have install the mod and i recieve an error message when i enter edited settings in ACP forum section.

this is what i recieve in the header:
Warning: Invalid argument supplied for foreach() in /????/admin/sources/classes/output/adminOutput.php on line 1679


#3 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • Location:Cracow, Poland
  • Real Name:David
  • IPB Version:v3.2.x
Contributor

Posted 21 July 2009 - 02:36 PM

You sure you did all from instruction?

Could you show me this line from your file? I doesn't use any foreach() loops in this mod.
Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence

#4 AndyFrank

AndyFrank

    Advanced Member

  • Banned
  • PipPipPipPip
  • 95 posts
  • Real Name:Andy Frank Walker
  • IPB Version:v3.0.x

Posted 21 July 2009 - 02:43 PM

no worries mate, heres the section from that file

The line its point to on line 1679 is:
		foreach ( $list as $v )

line 1651 - 1694:
	/**
	 * Create a form dropdown/select list
	 *
	 * @access	public
	 * @param	string		Field name
	 * @param	array		Options.  Multidimensional array in format of array( array( 'value', 'display' ), array( 'value', 'display' ) )
	 * @param	string		Default value
	 * @param	string		HTML id attribute [defaults to $name]
	 * @param	string		Javascript to add to list
	 * @param	string		CSS class(es) to add to field
	 * @return	string		Form dropdown list
	 */
	public function formDropdown( $name, $list=array(), $default_val="", $id="", $js="", $css="" )
	{
		if ($js != "")
		{
			$js = ' ' . $js . ' ';
		}

		if ($css != "")
		{
			$css = ' ' . $css;
		}

		$id = $id ? $id : $name;

		$html = "<select name='{$name}'" . $js . " id='{$id}' class='dropdown{$css}'>\n";

		foreach ( $list as $v )
		{
			$selected = "";

			if ( ($default_val !== "") and ($v[0] == $default_val) )
			{
				$selected = ' selected="selected"';
			}

			$html .= "<option value='" . $v[0] . "'" . $selected . ">" . $v[1] . "</option>\n";
		}

		$html .= "</select>\n\n";

		return $html;
	}


#5 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • Location:Cracow, Poland
  • Real Name:David
  • IPB Version:v3.2.x
Contributor

Posted 21 July 2009 - 02:46 PM

Ok, i see that's caused by small section from my mod but on localhost works great. Could you send me ACP and FTP access? If i fix this in your environment i'll make upgrade for this mod for everyone.
Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence

#6 AndyFrank

AndyFrank

    Advanced Member

  • Banned
  • PipPipPipPip
  • 95 posts
  • Real Name:Andy Frank Walker
  • IPB Version:v3.0.x

Posted 21 July 2009 - 02:59 PM

pm'd  you dawPi

#7 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • Location:Cracow, Poland
  • Real Name:David
  • IPB Version:v3.2.x
Contributor

Posted 21 July 2009 - 03:12 PM

Gosh.  ;)

Small typo fixed. For everyone who download this mod, open file: dmin/applications/forums/modules_admin/forums/forums.php
Find:
$form['icon'] = $this->registry->output->formDropdown( "icon" , $icon, ( isset($_POST['icon'] ) AND $_POST['icon'] ) ? $_POST['icon'] : $forum['icon'] );
Change to:
$form['icon'] = $this->registry->output->formDropdown( "icon" , $icons, ( isset($_POST['icon'] ) AND $_POST['icon'] ) ? $_POST['icon'] : $forum['icon'] );

To others - download and be happy! :)
Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence

#8 AndyFrank

AndyFrank

    Advanced Member

  • Banned
  • PipPipPipPip
  • 95 posts
  • Real Name:Andy Frank Walker
  • IPB Version:v3.0.x

Posted 21 July 2009 - 03:15 PM

cheers pal, did you need the details i sent?

oh yes just spotted, cheers dawpi

Edited by AndyFrank, 21 July 2009 - 03:16 PM.


#9 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • Location:Cracow, Poland
  • Real Name:David
  • IPB Version:v3.2.x
Contributor

Posted 21 July 2009 - 03:23 PM

Sorry for this! ;)

Glad this mod works for you. :)
Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence

#10 AndyFrank

AndyFrank

    Advanced Member

  • Banned
  • PipPipPipPip
  • 95 posts
  • Real Name:Andy Frank Walker
  • IPB Version:v3.0.x

Posted 21 July 2009 - 03:28 PM

yo man, i have set a few forums to show planes as new icons, but they aren't apparing at all, i have cached the also and still got no result.

Edited by AndyFrank, 21 July 2009 - 03:28 PM.


#11 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • Location:Cracow, Poland
  • Real Name:David
  • IPB Version:v3.2.x
Contributor

Posted 21 July 2009 - 03:42 PM

I see these icons on your board:
Attached File  2009_07_21_17_41_57.png   8.33K   15 downloads
Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence

#12 AndyFrank

AndyFrank

    Advanced Member

  • Banned
  • PipPipPipPip
  • 95 posts
  • Real Name:Andy Frank Walker
  • IPB Version:v3.0.x

Posted 21 July 2009 - 03:51 PM

what browser u usin IE or firefox? ive tried both and im still getting this:

Firefox:
Posted Image

IE:
Posted Image

#13 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • Location:Cracow, Poland
  • Real Name:David
  • IPB Version:v3.2.x
Contributor

Posted 21 July 2009 - 03:54 PM

Firefox 3.5.1.

On:
Opera 9.64,
Chrome 3.0.182.3,
IE 8.


I SEE these icons! ;)
Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence

#14 AndyFrank

AndyFrank

    Advanced Member

  • Banned
  • PipPipPipPip
  • 95 posts
  • Real Name:Andy Frank Walker
  • IPB Version:v3.0.x

Posted 21 July 2009 - 03:56 PM

i dont get y i cant see them, any advice at all  ;)  im blagged

Edited by AndyFrank, 21 July 2009 - 03:56 PM.


#15 Dazer

Dazer

    Advanced Member

  • Members
  • PipPipPipPip
  • 76 posts
  • Real Name:Graeme
  • IPB Version:v3.0.x
Contributor

Posted 21 July 2009 - 03:59 PM

It's most probably your browser cache. Try CTRL + F5 ;).

#16 AndyFrank

AndyFrank

    Advanced Member

  • Banned
  • PipPipPipPip
  • 95 posts
  • Real Name:Andy Frank Walker
  • IPB Version:v3.0.x

Posted 21 July 2009 - 04:11 PM

View PostDazer, on Jul 21 2009, 04:59 PM, said:

It's most probably your browser cache. Try CTRL + F5 ;).


Tried everything, even restart pc but still not showin on my pc

#17 Cor3y

Cor3y

    Novice

  • Banned
  • PipPip
  • 6 posts
  • Real Name:Corey
  • IPB Version:v3.0.x

Posted 21 July 2009 - 08:50 PM

Excellent mod been waiting for this :) I have an issue I have installed the mod properly as well as done the modifications as per your instructions but within my acp when I access the settings for an individual forum all I see is some text....

Posted Image

Any help would be appreciated ;)

#18 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • Location:Cracow, Poland
  • Real Name:David
  • IPB Version:v3.2.x
Contributor

Posted 21 July 2009 - 09:01 PM

Cor3y: you did not all steps from instruction i think. ;)
Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence

#19 Cor3y

Cor3y

    Novice

  • Banned
  • PipPip
  • 6 posts
  • Real Name:Corey
  • IPB Version:v3.0.x

Posted 21 July 2009 - 09:08 PM

OH?? well what do you think it is i missed? Also is there supposed to be more than just the public folder within the upload folder??

Edited by Cor3y, 21 July 2009 - 09:12 PM.


#20 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • Location:Cracow, Poland
  • Real Name:David
  • IPB Version:v3.2.x
Contributor

Posted 21 July 2009 - 09:20 PM

Yeah, only public folder.
Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users