| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| [ C ] Diff banners for diff forums - enhancement | |
|---|---|
| Tweet Topic Started: Jul 25 2012, 11:59 AM (844 Views) | |
| tobeme | Jul 25 2012, 11:59 AM Post #1 |
|
Member
![]() ![]() ![]() ![]()
|
Following the codes posted by Reid on "Individual Banners for each forum; By .Scott http://resources.zetaboards.com/topic/5079003/1/#new , my understanding is that I have to set up the banner for the forum index page in "Edit Themes Setting". The codes provided by Scott only work for banners for different forums. The issue (or it is just my site) with the above setup is that the banner for the index page will always load first, follow by the banner for the specific forum. In other words, two banners will load when a forum page is open. This slows down the loading significantly and it is also strange to see the index banner appears and replaced by the forum banner. Is it possible to include the index page directly in the codes (which doesn't have the forum number) rather than having it set up in the "Edit Themes Setting"? Also, I hope my banner appears in the center of the page. Thanks |
![]() |
|
| Cory | Jul 26 2012, 01:29 AM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Try that, edit FORUM_ID and IMAGE_URL (the first one near the top of the script is the global logo) as necessary and you may repeat the addLogo line to add more forum-specific logos. |
![]() |
|
| tobeme | Jul 26 2012, 09:49 AM Post #3 |
|
Member
![]() ![]() ![]() ![]()
|
Hi Cory I'm a bit confused. Do you mean I should first remove the codes in "Edit Themes Setting" entirely and put my global banner in the following code: function addLogo(forumID, imageURL) { var indexImageURL = 'IMAGE_URL'; Where can I find the forum ID for the index page? There is no forum number there. After the above, I should enter the respective forum ID and URL in the following for the forums. addLogo('FORUM_ID', 'IMAGE_URL'); |
![]() |
|
| Cory | Jul 26 2012, 10:14 AM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
The capitalized text selections is what can be replaced. The whole addLogo line found above can be repeated to add more forum-specific logos. The IMAGE_URL for the indexImageURL line is the image URL that the logo will be everywhere else across the board, it doesn't need an ID. |
![]() |
|
| tobeme | Jul 26 2012, 08:01 PM Post #5 |
|
Member
![]() ![]() ![]() ![]()
|
Thanks Cory. Your help is highly appreciated! The codes don't work. I just want to double confirm that I don't need to put any codes in "Edit Theme Setting", right? These are my codes based on the above: <script type="text/javascript"> function addLogo(forumID, imageURL) { var indexImageURL = ‘http://www.wallacehuo.info/photos/i-4NhHDxR/0/X3/i-4NhHDxR-X3.png’; if (!$('#nav a[href*="/forum/' + forumID + '"]').length || location.href.indexOf('/forum/' + forumID + '') !== 1) $('#logo a').html('<img src="' + indexImageURL + '" alt="Logo" />'); if ($('#nav a[href*="/forum/' + forumID + '"]').length || location.href.indexOf('/forum/' + forumID + '') !== -1) $('#logo a').html('<img src="' + imageURL + '" alt="Logo" />'); } addLogo (‘3371638’, ’http://www.wallacehuo.info/photos/i-vMMgDhq/0/X3/i-vMMgDhq-X3.png’); addLogo (‘3385556’,’http://www.wallacehuo.info/photos/i-vMMgDhq/0/X3/i-vMMgDhq-X3.png’); addLogo (‘3371642’,’http://www.wallacehuo.info/photos/i-vMMgDhq/0/X3/i-vMMgDhq-X3.png’); addLogo (‘3371641’,’http://www.wallacehuo.info/photos/i-vMMgDhq/0/X3/i-vMMgDhq-X3.png’); </script> PS: I'm temporary using the "ban" codes at the moment. Edited by tobeme, Jul 27 2012, 03:53 AM.
|
![]() |
|
| Cory | Jul 27 2012, 06:01 AM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Yes, that's right, nothing should be in the Edit Theme Settings Logo box. Sorry for not answering that before. Try this instead: You were using Microsoft Word-styled apostrophe's, or something. |
![]() |
|
| tobeme | Jul 27 2012, 09:17 AM Post #7 |
|
Member
![]() ![]() ![]() ![]()
|
I replaced with your codes above, however, the global banner takes over the forums as well (in other words all the forums show the same global banner instead of their respective banners). Thanks |
![]() |
|
| Cory | Aug 1 2012, 04:02 PM Post #8 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I don't see the code on your board. |
![]() |
|
| tobeme | Aug 2 2012, 08:23 PM Post #9 |
|
Member
![]() ![]() ![]() ![]()
|
Sorry Cory. Since it didn't work I started using the old codes on a temporary basis. Also, my site requires the banner appearing in the center. Right now I'm using this <center>xxx</center> in the "theme setting" to force the banners to the center. If I remove the banner from the theme setting, what codes do I need to change so that all banners will appear in the center? Thanks for your help. |
![]() |
|
| Cory | Aug 2 2012, 11:06 PM Post #10 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Center the logo for all themes: Admin CP Themes Board Template JavascriptsCenter the logo for one theme: Admin CP Themes Themes Edit Theme Appearance
|
![]() |
|
| tobeme | Aug 3 2012, 10:27 AM Post #11 |
|
Member
![]() ![]() ![]() ![]()
|
Hi Cory, I have put the new banner codes onto my site (www.wallacehou.info). For some reasons only the index banner is shown. The rest of the banners (for the forums) are not showing. BTW - thank you for the "banners moved to the center" codes! |
![]() |
|
| Cory | Aug 3 2012, 10:40 AM Post #12 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Try that instead. |
![]() |
|
| tobeme | Aug 3 2012, 07:25 PM Post #13 |
|
Member
![]() ![]() ![]() ![]()
|
Marvelous! Worked like a charm. Thank you very much Cory! |
![]() |
|
| Steve | Aug 5 2012, 09:38 AM Post #14 |
|
patriot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Completed! Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Closed Requests · Next Topic » |
| Track Topic · E-mail Topic |
4:52 AM Jul 11
|


![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)


Themes
4:52 AM Jul 11