Page 4 of 8

Re: Custom Header Logo

Posted: Sun Mar 22, 2009 3:10 pm
by Balint
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.

Re: Custom Header Logo

Posted: Sun Mar 22, 2009 3:54 pm
by femu
Sounds great!

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

Thanks,
femu

Re: Custom Header Logo

Posted: Wed Mar 25, 2009 2:31 am
by Inky
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.

Re: Custom Header Logo

Posted: Wed Mar 25, 2009 9:05 am
by Balint
Hi,

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


Greets,
Bálint

Re: Custom Header Logo

Posted: Wed Mar 25, 2009 10:05 am
by femu
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

Re: Custom Header Logo

Posted: Wed Mar 25, 2009 10:24 am
by Balint
Yeah, I think about it. Let me try something this weekend, I get back to you.

Re: Custom Header Logo

Posted: Wed Mar 25, 2009 10:25 am
by femu
Great. Thanks a lot! I'm looking forward to it! If you need some help, informations or testing, just let me know.

Thanks,
femu

Re: Custom Header Logo

Posted: Sun Mar 29, 2009 4:58 am
by femu
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

Re: Custom Header Logo

Posted: Mon Mar 30, 2009 11:04 am
by Balint
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.

Re: Custom Header Logo

Posted: Mon Mar 30, 2009 11:08 am
by femu
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

Re: Custom Header Logo

Posted: Mon Mar 30, 2009 11:13 am
by Balint
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.

Re: Custom Header Logo

Posted: Mon Mar 30, 2009 7:58 pm
by HasRob
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.

Re: Custom Header Logo

Posted: Mon Mar 30, 2009 8:21 pm
by Balint
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

Re: Custom Header Logo

Posted: Tue Mar 31, 2009 2:08 am
by femu
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 ;)

Re: Custom Header Logo

Posted: Thu May 07, 2009 4:02 pm
by bacca87
hi, is possible to set a custom logo link for each forum?