Custom Header Logo

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
Balint
Registered User
Posts: 952
Joined: Tue Aug 06, 2002 2:19 pm
Location: Germany
Contact:

Re: Custom Header Logo

Post by Balint » Sun Mar 22, 2009 3:10 pm

That is certainly possible and has been requested before. One possible solution would be to create a new ACP-page with a list of pages and their corresponding logos (to be filled out from the user). That would be read when the page is generated and if there's a hit the logo would display.

femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: Custom Header Logo

Post by femu » Sun Mar 22, 2009 3:54 pm

Sounds great!

Do you think you can add something like that (or probably as an addon)? Would be really great!

Thanks,
femu
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]

Inky
Registered User
Posts: 45
Joined: Mon Feb 11, 2008 1:33 am

Re: Custom Header Logo

Post by Inky » Wed Mar 25, 2009 2:31 am

I am getting this error message when I try to save changes to a forum

Fatal error: Call to undefined function validate_range() in /home/football/public_html/includes/acp/acp_forums.php on line 946

Of course line 946 says validate_range($range_test_ary, $errors);

Don't know much about coding.

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

Re: Custom Header Logo

Post by Balint » Wed Mar 25, 2009 9:05 am

Hi,

could you please upload your includes/acp/acp_forums.php to http://pastebin.ca/ and post the link here?


Greets,
Bálint

femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: Custom Header Logo

Post by femu » Wed Mar 25, 2009 10:05 am

Hi Bálint,

just to know ... do you think about the idea of adding support for "external" Links as you were thinking about loud above?

Just to be updated ;)

Thanks,
femu
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]

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

Re: Custom Header Logo

Post by Balint » Wed Mar 25, 2009 10:24 am

Yeah, I think about it. Let me try something this weekend, I get back to you.

femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: Custom Header Logo

Post by femu » Wed Mar 25, 2009 10:25 am

Great. Thanks a lot! I'm looking forward to it! If you need some help, informations or testing, just let me know.

Thanks,
femu
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]

femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: Custom Header Logo

Post by femu » Sun Mar 29, 2009 4:58 am

Hi Balint,

as I just stumbled over it. When you have a lot of images/logos, it's painfull to find the correct image in the filelist, as it's unsorted. I just browsed a little bit around and found a simple solution ;)

In the edit for the acp_forums.php search for:

Code: Select all

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

				foreach ($imglist as $path => $img_ary)
				{
after add:

Code: Select all

					sort($img_ary);
					
Then the list is sorted and you can find the desired image much easier.

Thanks,
femu
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]

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

Re: Custom Header Logo

Post by Balint » Mon Mar 30, 2009 11:04 am

Thank you for the small fix, I did not notice this error and will try to recreate the problem with more logos.

In the meantime I released the BETA version 1.2.2 of the MOD for testing. You can update from 1.0 with re-editing the files and adding the new table to your database.

femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: Custom Header Logo

Post by femu » Mon Mar 30, 2009 11:08 am

Balint wrote:Thank you for the small fix, I did not notice this error and will try to recreate the problem with more logos.
It's no error though, but a cosmetical fix, which simply makes it easier to find the needed logos ;)
Balint wrote:In the meantime I released the BETA version 1.2.2 of the MOD for testing. You can update from 1.0 with re-editing the files and adding the new table to your database.
Great. I will take a look on it. I presume I should answer over there. Does this one include my little wish for "external" links?

Thanks,
femu
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]

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

Re: Custom Header Logo

Post by Balint » Mon Mar 30, 2009 11:13 am

The "external" links function is not included yet but it should be a small fix. I wanted to release something to toy around with before my vacation from april 4th till 20th.

User avatar
HasRob
Registered User
Posts: 50
Joined: Thu Apr 10, 2008 2:43 am
Contact:

Re: Custom Header Logo

Post by HasRob » Mon Mar 30, 2009 7:58 pm

Is this mod going to change the header image everytime someone refreshs or clicks a new topic etc? Thats what I'm looking for.

Thank you.

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

Re: Custom Header Logo

Post by Balint » Mon Mar 30, 2009 8:21 pm

HasRob wrote:Is this mod going to change the header image everytime someone refreshs or clicks a new topic etc? Thats what I'm looking for.
No, it specifies a static logo for a forum/thread/topic! I'm sure you searching for the Random Header Image KB entry.


Greets,
Bálint

femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: Custom Header Logo

Post by femu » Tue Mar 31, 2009 2:08 am

Balint wrote:The "external" links function is not included yet but it should be a small fix. I wanted to release something to toy around with before my vacation from april 4th till 20th.
What I meant was the function, which you already included for MODs starting in the root directory. This works fine on my site. So if you find a solution for MODS starting in a subdirectory, I'm completely happy! :mrgreen:

So looking forward to your hollidays, where you hopefully find some time to add this little feature ;)
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]

bacca87
Registered User
Posts: 1
Joined: Wed Oct 24, 2007 8:56 am

Re: Custom Header Logo

Post by bacca87 » Thu May 07, 2009 4:02 pm

hi, is possible to set a custom logo link for each forum?

Locked

Return to “[3.0.x] MOD Database Releases”