[MODDB]Custom Header Logo (Choose for each forum & category)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Suggested Hosts
Locked
User avatar
Balint
Registered User
Posts: 952
Joined: Tue Aug 06, 2002 2:19 pm
Location: Germany
Contact:

[MODDB]Custom Header Logo (Choose for each forum & category)

Post by Balint » Sun May 27, 2007 12:02 pm

MOD Title: Custom Header Logo (Choose a logo for each forum and category)
MOD Description: Custom Header Logo crawls all images from a specified directory and displays them in a dropdown-list in the forum management part of the ACP. This works for all forums and categories independently. You can also choose to have no custom image, then the default site-image is loaded.

MOD Version: 1.0.1 (waiting for validation)
phpBB Version: 3.0.0 - 3.0.2 (works also on RC1, RC3, RC5, RC7)

MOD Format: MODX

MOD Download: http://phpbb.krizsan.de/custom_header_logo_1.0.1.zip
(Updated on 2008-08-26)

If you want random header images where no custom image is specified, check out the instructions here

Demo images:
Image

Image

Image
Last edited by Balint on Sat Sep 13, 2008 10:11 pm, edited 14 times in total.

tfinry
Registered User
Posts: 32
Joined: Sat Jun 10, 2006 10:20 pm
Contact:

Re: [DEV] Custom Header Logo (Choose a logo for each cat. and fo

Post by tfinry » Sun May 27, 2007 1:57 pm

nice mod ..
it will add more fun to the forum and i hope that it will work with all styles

User avatar
Balint
Registered User
Posts: 952
Joined: Tue Aug 06, 2002 2:19 pm
Location: Germany
Contact:

Re: [BETA] Custom Header Logo (Choose a logo for each cat. and f

Post by Balint » Sun May 27, 2007 3:50 pm

First beta can be downloaded above. It surely has a lot of flaws, I'm waiting on user input on the issues...

User avatar
ac_roma
Registered User
Posts: 307
Joined: Thu Mar 08, 2007 2:48 pm
Location: egypt,alexandria
Contact:

Re: [BETA] Custom Header Logo (Choose a logo for each cat. and f

Post by ac_roma » Sun May 27, 2007 4:00 pm

yes nice mod and new idea ;)
thank you

murnauvsbuñuel
Registered User
Posts: 177
Joined: Mon Jun 20, 2005 9:49 am

Re: [BETA] Custom Header Logo (Choose a logo for each cat. and f

Post by murnauvsbuñuel » Tue May 29, 2007 5:45 pm

cool, very nice. i hope this stable mod. i did a similar request mod thanks for your work
sorry for my bad english i am spanish.
ImagemxBB Portal the best portal to phpBB2

User avatar
JunglistPerfection
Registered User
Posts: 611
Joined: Mon Apr 09, 2007 11:58 pm
Location: Chicago, IL

Re: [BETA] Custom Header Logo (Choose a logo for each cat. and f

Post by JunglistPerfection » Tue May 29, 2007 7:18 pm

Anyone had success with this mod yet?

User avatar
mitthoo
Registered User
Posts: 253
Joined: Tue Oct 03, 2006 12:34 pm

Re: [BETA] Custom Header Logo (Choose a logo for each cat. and f

Post by mitthoo » Thu Jun 07, 2007 6:43 pm

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_forums.php on line 538: Invalid argument supplied for foreach()
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3664)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 155: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3664)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 156: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3664)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 157: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3664)

Wots this...

User avatar
Balint
Registered User
Posts: 952
Joined: Tue Aug 06, 2002 2:19 pm
Location: Germany
Contact:

Re: [BETA] Custom Header Logo (Choose a logo for each cat. and f

Post by Balint » Thu Jun 07, 2007 6:56 pm

Hi!

Could you please post the whole file acp_forums.php via http://pastebin.ca/ ?

Greets,
Bálint

User avatar
mitthoo
Registered User
Posts: 253
Joined: Tue Oct 03, 2006 12:34 pm

Re: [BETA] Custom Header Logo (Choose a logo for each cat. and f

Post by mitthoo » Thu Jun 07, 2007 7:13 pm

that seems to be ok now there is some other problem which is mentioned in the picture below. the logos are not coming up. i have copied them as u asked for in images/logos/logoo.gif and its not showing up. i have tried different files like, .png and .jpg as well but no good.

Image

please let me know whats the problem.

User avatar
mitthoo
Registered User
Posts: 253
Joined: Tue Oct 03, 2006 12:34 pm

Re: [BETA] Custom Header Logo (Choose a logo for each cat. and f

Post by mitthoo » Thu Jun 07, 2007 7:17 pm

here it is.. leme know whats the problem.

http://pastebin.ca/548515

User avatar
Balint
Registered User
Posts: 952
Joined: Tue Aug 06, 2002 2:19 pm
Location: Germany
Contact:

Re: [BETA] Custom Header Logo (Choose a logo for each cat. and f

Post by Balint » Thu Jun 07, 2007 7:43 pm

Hi!

The provided file is missing the whole

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
$styles_list = style_select($forum_data['forum_style'], true);

#
#-----[ AFTER, ADD ]------------------------------------------
#
// Custom Header Logo
$imglist = filelist($phpbb_root_path . $config['logo_path'], '');
$logo_list = '<option value="">' . $user->lang['NO_LOGO'] . '</option>';

foreach ($imglist as $path => $img_ary)
{
	foreach ($img_ary as $img)
	{
		$img = $path . $img; 
		if ($action == 'edit' && $img == $forum_data['forum_logo'])
		{
			$selected = ' selected="selected"';
		}
		else
		{
			$selected = '';
		}
		$logo_list .= '<option value="' . htmlspecialchars($img) . '"' . $selected . '>' . htmlspecialchars($img) . '</option>';
	}
}
// Custom Header Logo
part... Please include them and check if the path given in the configuration and your path images/logos match.

Greets,
Bálint

User avatar
mitthoo
Registered User
Posts: 253
Joined: Tue Oct 03, 2006 12:34 pm

Re: [BETA] Custom Header Logo (Choose a logo for each cat. and f

Post by mitthoo » Thu Jun 07, 2007 8:13 pm

it seems to be giving the options now. bu its not coming up with the different logos. may b i need to refresh to imageset as well. i don't want to do it now coz it will also change my custom logo. but man.. thanks a lot for your prompt response... Keep up the good work.. i'll check it tomorrow now its 2am and i am bit sleeply..

but thanks alot again..

User avatar
MartinWh
Registered User
Posts: 111
Joined: Wed May 23, 2007 9:44 am
Location: River Thames, UK
Contact:

Re: [BETA] Custom Header Logo (Choose a logo for each cat. and f

Post by MartinWh » Wed Jun 13, 2007 2:49 pm

:D :D :D Big Thank You!

It works just fine for me -- I don't use the phpBB Logo code having replaced it with my own header so I introduced it back in just like this http://www.a1podium.com/a1forum/viewforum.php?f=18 with a flag before country name -- changed standard logo to a 1x1 transparent pixel.

Jollyware
Registered User
Posts: 30
Joined: Sat Apr 29, 2006 6:50 am

Re: [BETA] Custom Header Logo (Choose a logo for each cat. and f

Post by Jollyware » Fri Jun 15, 2007 8:29 am

Works a treat :D :D :D :D :D

murnauvsbuñuel
Registered User
Posts: 177
Joined: Mon Jun 20, 2005 9:49 am

Re: [BETA] Custom Header Logo (Choose a logo for each cat. and f

Post by murnauvsbuñuel » Fri Jun 15, 2007 9:00 am

features: could i definied more than one logo for each forum then If more than one logo is definied, the hack chooses the logo randomly.¿? or this will be a problem to the bandwidth site with unnecessary more traffic CPU?

thanks.
sorry for my bad english i am spanish.
ImagemxBB Portal the best portal to phpBB2

Locked

Return to “[3.0.x] MODs in Development”