[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
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 » Sat May 24, 2008 8:07 am

Thanks... but can you make one for Custom Header Banner also...

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 24, 2008 8:48 am

Sorry, but I don't understand your question. Please refer to the MOD Requests section of this forum.

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 » Sat May 24, 2008 9:07 am

i mean i need a custom header banner for each forum and category instead random banner here....

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 May 29, 2008 7:55 am

Are you referring to an additional image which is forum/category based, beside the header image? The linked knowlegdebase article is about a random header image...

Stipendiat
Registered User
Posts: 35
Joined: Fri Sep 21, 2007 1:58 pm

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

Post by Stipendiat » Thu May 29, 2008 9:59 am

But as is it possible to do overal_header.html different for every forum?

User avatar
chinaren
Registered User
Posts: 33
Joined: Tue May 27, 2008 3:00 pm

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

Post by chinaren » Wed Jun 04, 2008 4:26 am

Oooh! I so like the look of this one! I'm gonna try it out later. :D
www.TomeCity.com All about stories
My Books:
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 » Mon Jun 09, 2008 7:47 pm

Updated version 0.1.2 is available for download (see first post).

For those who want to update, there's just one tiny change in the file includes/functions.php.

Search for:

Code: Select all

if (!empty($_REQUEST['f']))
and replace with

Code: Select all

if (!empty($_REQUEST['f']) && !is_array($_REQUEST['f']))

Greets,
Bálint

User avatar
KellyBean
Registered User
Posts: 270
Joined: Wed Nov 07, 2007 3:06 pm
Location: Massachusetts
Contact:

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

Post by KellyBean » Wed Aug 06, 2008 9:02 pm

*sigh* I can't get this to work and I'm not sure why. All the edits are done, cache is cleared, the drop down appears in the ACP, but the images don't show up in the forums. I wonder if it has something to do with my style? It's based off of Prosilver, though. And shouldn't there be some kind of edit to the theme's stylesheet?
My Forum | My Design/How-to Site
Need help MODing or customizing your site? I can do it for a very reasonable fee. Contact me!

Image

User avatar
KellyBean
Registered User
Posts: 270
Joined: Wed Nov 07, 2007 3:06 pm
Location: Massachusetts
Contact:

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

Post by KellyBean » Wed Aug 06, 2008 9:55 pm

DOH! :lol: I think I figured it out... this is a mod to replace the logo. I'm looking for something that'll replaces the bg_header for each different forum. Do you think it's possible to do the same for the bg_header image?

ETA: This is actually what I'm talking about, only instead of it being random I'd like it to display certain images in certain forums.
http://www.phpbb.com/community/viewtopi ... age#random
Add a Random Header Image
This tutorial is based off of the the following article by pentapenguin.
Knowledge Base - Adding a Random Header Image
It will display a random background on the header, rather than the logo as instructed in the mentioned article.

1) Create your images and name them in the following fashion header_random_1.EXTENSION.

* Start at 1 and move up from there. Make sure you don't miss any numbers.
* Replace EXTENSION with the extension your images use (gif, png, jpg, etc.) The
extension must be the same on all images.


2) Upload all the images to the styles/prosilver/theme/images/ directory.

3) Open includes/functions.php.
Find:

Code: Select all
'T_STYLESHEET_NAME' => $user->theme['theme_name'],


After, add:

Code: Select all
'RANDOM_HEADER' => mt_rand(1, NUMBER-OF-IMAGES),


* Change NUMBER-OF-IMAGES to the amount of images you created.


4) Open style.php.
Find:

Code: Select all
'{S_USER_LANG}' => $user['user_lang']


Replace with:

Code: Select all
'{S_USER_LANG}' => $user['user_lang'],
'{RANDOM_HEADER}' => mt_rand(1, NUMBER-OF-IMAGES)


* As before, change NUMBER-OF-IMAGES to the amount of images you created.


5) Open styles/prosilver/theme/colours.css.
Find:

Code: Select all
.headerbar {
background-color: #12A3EB;
background-image: url("{T_THEME_PATH}/images/bg_header.gif");
color: #FFFFFF;
}


Replace with:

Code: Select all
.headerbar {
background-color: #12A3EB;
background-image: url("{T_THEME_PATH}/images/header_random_{RANDOM_HEADER}.EXTENSION");
color: #FFFFFF;
}


* Change EXTENSION to the extension your images use.


6) Refresh your theme.
Would that be something you might be able to help me with? :)
My Forum | My Design/How-to Site
Need help MODing or customizing your site? I can do it for a very reasonable fee. Contact me!

Image

User avatar
kumakato
Registered User
Posts: 53
Joined: Fri Sep 09, 2005 12:42 am

Re: [BETA] Custom Header Logo (Choose a logo for each forum)

Post by kumakato » Mon Aug 18, 2008 12:35 am

steven21 wrote:can I ask a quick question about the SQL section:

Code: Select all

ALTER TABLE `phpbb_forums` ADD `forum_logo` VARCHAR( 255 ) NOT NULL AFTER `forum_image`;
INSERT INTO `phpbb_config` (`config_name`, `config_value`, `is_dynamic`) VALUES ('logo_path', 'images/logos', '0');
I have never used a mod that requires me to alter the SQL stuff, do I just go in to my database (phpMyAdmin) and run the above query?
I am new at this and having a hard time. I figured out how to do this part

Code: Select all

 ALTER TABLE `phpbb_forums` ADD `forum_logo` VARCHAR( 255 ) NOT NULL AFTER `forum_image`;
I can not figure out how to do this portion.

Code: Select all

INSERT INTO `phpbb_config` (`config_name`, `config_value`, `is_dynamic`) VALUES ('logo_path', 'images/logos', '0');
I see where to do it but don't know how to change it. Please give detail diretions as i am new at this. Thanks for your support.

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 Aug 26, 2008 7:44 pm

Hi!

The SQL-instructions need to be inserted in phpMyAdmin (it has a TAB named "SQL" where you can copy'n'paste the 2 lines) or another SQL-admin-tool which is provided by the hoster of your forum.

On other news: version 1.0.0 is out and submitted for validation.


Greets,
Bálint

absolutex
Registered User
Posts: 57
Joined: Tue Jul 01, 2008 4:33 pm
Contact:

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

Post by absolutex » Wed Aug 27, 2008 2:42 am

Thank for this mod :D

absolutex
Registered User
Posts: 57
Joined: Tue Jul 01, 2008 4:33 pm
Contact:

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

Post by absolutex » Wed Aug 27, 2008 4:07 am

-DEL- :D

startsmart
Registered User
Posts: 16
Joined: Wed Aug 06, 2008 8:30 pm

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

Post by startsmart » Fri Sep 12, 2008 6:16 pm

hi,

can you developpe this mod to upload an image from the comupter or from a server???????

Thanx for his great mod.......

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 » Fri Sep 12, 2008 8:49 pm

Hi!

I'll take this into consideration when the MOD is finished. Nice idea! :idea:

Greets,
Bálint

Locked

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