[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!
Anti-Spam Guide
Locked
danswano
Registered User
Posts: 273
Joined: Sun Apr 06, 2008 10:43 pm

Re: [BETA] Custom Header Logo (Choose for each forum & category)

Post by danswano » Sat Sep 13, 2008 1:07 am

Is it possible to switch background header with this mod:
Image

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

Re: [BETA] Custom Header Logo (Choose for each forum & category)

Post by Balint » Sat Sep 13, 2008 7:27 am

Hi!

Yes, it most certainly is, the issue came up a couple of pages ago. After the MOD is validated successfully, I'll get to work on that.


Greets,
Bálint

danswano
Registered User
Posts: 273
Joined: Sun Apr 06, 2008 10:43 pm

Re: [BETA] Custom Header Logo (Choose for each forum & category)

Post by danswano » Sat Sep 13, 2008 12:11 pm

If you mean the random header image i know it, i want to have a header image for each forum like your mod for logos.

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

Re: [BETA] Custom Header Logo (Choose for each forum & category)

Post by Balint » Sat Sep 13, 2008 12:22 pm

What is the difference between "header image" and "logo" as you understand is?

My MOD is for changing the site_logo.gif - I thought you wanted to change the background image...


And I was not speaking of the "random header" but on exactly what you asked IMHO: changing the background header image.

:oops: :?: :shock:


Greets,
Bálint

danswano
Registered User
Posts: 273
Joined: Sun Apr 06, 2008 10:43 pm

Re: [BETA] Custom Header Logo (Choose for each forum & category)

Post by danswano » Sat Sep 13, 2008 12:29 pm

Ok your mod change site_logo.gif
i want to change bg_image.gif


Possible ?

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

Re: [BETA] Custom Header Logo (Choose for each forum & category)

Post by Balint » Sat Sep 13, 2008 12:36 pm

As I said: yes, it is possible, but at a later time - I want to get validated this MOD first.

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

Re: [BETA] Custom Header Logo (Choose for each forum & category)

Post by Balint » Sat Sep 13, 2008 10:06 pm

Hi guys!

After the MOD 1.0.0 was denied due to a possible SQL-injection I strongly recommend an update to version 1.0.1 which deals with the issues and is available at

http://phpbb.krizsan.de/custom_header_logo_1.0.1.zip

A changelist from 1.0.0 to 1.0.1, the part which handles the security changes just one line:

in includes/functions.php find

Code: Select all

$forum_id = $_REQUEST['f'];
replace with

Code: Select all

$forum_id = request_var('f', 0);

The furter changes are for cosmetic purposes only:

also in includes/functions.php find

Code: Select all

		if ($forum_logo['forum_logo'] != '')
replace with

Code: Select all

		if (!empty($forum_logo['forum_logo']))

In includes/acp/acp_forums.php find

Code: Select all

						if ($action == 'edit' && $img == $forum_data['forum_logo'])
						{
							$selected = ' selected="selected"';
						}
						else
						{
							$selected = '';
						}
replace with

Code: Select all

						$selected = ($action == 'edit' && $img == $forum_data['forum_logo']) ? ' selected="selected"' : '';

You should also replace the custom_header.php in the language/en/mods directory due to a missing security check. The modified file is included in the new download



Greets,
Bálint

Segundo
Registered User
Posts: 36
Joined: Mon Mar 31, 2008 6:58 pm

Re: [BETA] Custom Header Logo (Choose for each forum & category)

Post by Segundo » Sun Sep 14, 2008 3:17 am

I can't seem to open the install.xml file in the 1.01 download. Says XML page cannot be displayed.

Will this work for a subsilver2 based style?

I hope I will be able to use this. It will be very very handy for my group.
Thanks for the work on this mod. Good luck getting it validated!

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

Re: [BETA] Custom Header Logo (Choose for each forum & category)

Post by Balint » Sun Sep 14, 2008 9:53 am

Hi!

You have to extract the complete ZIP on your computer, double-clicking on the install file still in the archive won't work because of the limitations of the MOX file format.

The MOD should work for subsilver2 too, or any other style as long as there's a variable {SITE_LOGO_IMG} in overall_header.html

Greets,
Bálint

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

Re: [BETA] Custom Header Logo (Choose for each forum & category)

Post by Balint » Sun Sep 28, 2008 7:00 pm

Hi @all!

Please continue the discussion in the new topic for the released 1.0.1 version:

click here to continue to the new thread



Greets,
Bálint

Locked

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