[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!
Scam Warning
User avatar
geeklife
Registered User
Posts: 172
Joined: Tue Jan 29, 2008 1:13 am

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

Post by geeklife » Tue Feb 12, 2008 5:28 pm

bump

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 » Wed Feb 13, 2008 9:44 pm

Hi!

Could you please link to the MOD you use ? It shouldn't be a problem.

Greets,
Bálint

kiran_n444
Registered User
Posts: 115
Joined: Mon May 21, 2007 9:42 pm

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

Post by kiran_n444 » Wed Feb 13, 2008 9:53 pm

omg Thank yu. Great Mod, Instale derfectly on 3.0.0 NO erros what so ever. A++

User avatar
geeklife
Registered User
Posts: 172
Joined: Tue Jan 29, 2008 1:13 am

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

Post by geeklife » Wed Feb 13, 2008 10:03 pm

Balint wrote:Hi!

Could you please link to the MOD you use ? It shouldn't be a problem.

Greets,
Bálint
Hi Balint,

Here is the link.

http://www.phpbb.com/kb/article/adding- ... der-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 » Thu Feb 14, 2008 10:50 am

Hi!

@kiran_n444: Thank you for your feedback!

@geeklife: Install my MOD as described in the instructions. Then place the random (additional) images in the imageset directory. But instead of applying the changes to the files stated in the knowledgebase-article just change the following line in includes/functions.php

Code: Select all

	// Custom Header Logo
	$site_logo = $user->img('site_logo');
to

Code: Select all

	// Custom Header Logo
	//$site_logo = $user->img('site_logo');
	$site_logo = '<img src="' . $phpbb_root_path . 'styles/' . $user->theme['imageset_path'] . '/imageset/site-logo-' . mt_rand(1, 4) . '.jpg"  alt="Logo" title="Logo" />';
If you have more images, change the 4 in the above line to a corresponding number. If you want to use .png or .gif you also have to change .jpg accordingly.


Bálint

User avatar
geeklife
Registered User
Posts: 172
Joined: Tue Jan 29, 2008 1:13 am

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

Post by geeklife » Thu Feb 14, 2008 4:29 pm

Thank you for the code fixes. I appreciate it greatly.

Quick question. If I install the Mod but do not make any changes to any forums, will my random headers still display on them?

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 » Thu Feb 14, 2008 7:14 pm

Hi!

If you don't set a specified image for a category or forum it will use the random images. So the answer to your question is yes. :-)


Bálint

User avatar
geeklife
Registered User
Posts: 172
Joined: Tue Jan 29, 2008 1:13 am

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

Post by geeklife » Thu Feb 14, 2008 7:36 pm

Balint wrote:Hi!

If you don't set a specified image for a category or forum it will use the random images. So the answer to your question is yes. :-)


Bálint
Awesome.

Okay, another picky question. What if we have both .jpg and .gif files to use? Is this Mod only compatible with one specified graphic format. Can you add other formats comma delimited?

example:

Current code:

Code: Select all

   // Custom Header Logo
   //$site_logo = $user->img('site_logo');
   $site_logo = '<img src="' . $phpbb_root_path . 'styles/' . $user->theme['imageset_path'] . '/imageset/site-logo-' . mt_rand(1, 4) . '.jpg"  alt="Logo" title="Logo" />';
Revised code:

Code: Select all

   // Custom Header Logo
   //$site_logo = $user->img('site_logo');
   $site_logo = '<img src="' . $phpbb_root_path . 'styles/' . $user->theme['imageset_path'] . '/imageset/site-logo-' . mt_rand(1, 4) . '.jpg,.gif"  alt="Logo" title="Logo" />';

Forke
Registered User
Posts: 102
Joined: Fri Feb 08, 2008 6:03 am

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

Post by Forke » Sat May 10, 2008 12:08 am

I've installed this mod a while ago and its great. I love it.

Does anyone know if it works with 3.0.1?
My first validated mod!
Adaptive Quick Search

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 May 10, 2008 5:32 pm

Hi!

Most certainly it will work. But since the update changes a lot of lines, there's maybe a line you can't find. I'll check this in a couple of days.


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 » Tue May 13, 2008 5:48 pm

Hi!

Checked the files, all FINDs are the same, the MOD works also on 3.0.1

Greets,
Bálint

Forke
Registered User
Posts: 102
Joined: Fri Feb 08, 2008 6:03 am

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

Post by Forke » Tue May 13, 2008 6:26 pm

Excellent!

Thanks for letting me know.
My first validated mod!
Adaptive Quick Search

Sands2k
Registered User
Posts: 1
Joined: Tue May 20, 2008 3:25 pm

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

Post by Sands2k » Tue May 20, 2008 3:30 pm

Hello from a Hungarian living in California!

I don't know where the instructions are on using this cool mod.

Where may I Find them?

Thank you!

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 » Tue May 20, 2008 5:18 pm

Hi!

Just extract all files and open custom_header_logo_phpBB3_0.1.1.xml - it should open up your Internet Explorer.

Üdvözlettel,
Bálint

sharathu7
Registered User
Posts: 173
Joined: Fri Jan 11, 2008 1:22 pm

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

Post by sharathu7 » Thu May 22, 2008 5:43 am

can you make custom banner like this...?

Locked

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