Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Forum with a different logo

Asked Modified Viewed 1,860 times
I
incplus
I
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

Welcome. I wanted to ask about help. How to make your own forum with a different logo? Maybe you have some code? I have a website based on php fusion.
Edited by N/A on 12-07-2014 21:48,
0 replies

13 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Hi,

Well,

Admin
>>> System >>> Banners or
Admin >>> Settings >>> Main >> Site Banner

showbanners()
should be in theme.php already.

Also check out the documentation there is a nice tutorial or something if I remember correctly its about banners.

Good Luck
0 replies
F
Falk
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Hello, I am not entirely sure what you mean.
Logo as the banner or maybe you refer to font types,
The banner can most often be changed from your system settings, depending on theme. ( Some are so called hard coded )
The Font types are defined in your current themes styles.css. Look there and change to the types of your choice.
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Woops! Sorry :)
0 replies
I
incplus
I
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

On the home page is my logo and forum are the same. This is how to do that forum had different logo? not changing at the same time in other logos.
0 replies
E
eWe
E
eWe 10
[url=gfxpixel.info]GFXpixel.info[/url] - PHP-Fuison Themes!
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 5 threads in the forums
answered
Junior Member

I have to check what is the current page.
if (strpos(TRUE_PHP_SELF, '/forum/') !== FALSE) { 
echo "Forum: True";
 } else {
 echo "Forum: False";
 }

- edit theme.php file
- replace ".showbanners()." with this code
- replace the massage with <img src='logofalse.png' alt='' /> and <img src='logotrue.png' alt='' />
0 replies
I
incplus
I
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

I received such a code, but it does not work. You can see what is going on?


<?php

 if (
 $_SERVER['REQUEST_URI'] == "/forum/index.php" |
 $_SERVER['REQUEST_URI'] == "/forum/viewforum.php".substr($_SERVER['REQUEST_URI'], 20,100) |
 $_SERVER['REQUEST_URI'] == "/forum/viewthread.php".substr($_SERVER['REQUEST_URI'], 21,100) |
 $_SERVER['REQUEST_URI'] == "/forum/post.php".substr($_SERVER['REQUEST_URI'], 15,200)
 ){
 
 $logo_url = " adres do loga dla forum";

 } else if ($_SERVER['REQUEST_URI'] == "/jakasstrona.php"){
 
 $logo_url = " adres loga widziany na stronie jakasstrona.php";
 
 } else {

 $logo_url = "adres do loga widoczego na pozosta&#322;ych stronach. ";
 
 }

 echo "<a href='".BASEDIR."index.php'><img src='".$logo_url."'/></a>\n";



 }

?>
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

Add this code somewhere in theme.php
function alternate_banners($forum_logo = "") {
   global $settings;

   // Check if we are in forum, if an image was set for forum and if the image exists
   if ((strpos(TRUE_PHP_SELF, '/forum/') !== FALSE) && $forum_logo != "" && file_exists(BASEDIR.$forum_logo)) {
      // Show the logo for forum
      return "<a href='".$settings['siteurl']."'><img src='".BASEDIR.$forum_logo."' alt='".$settings['sitename']."' style='border: 0;' /></a>\n";
   } else {
      // Show the default logo
      return showbanners();
   }
}

and replace showbanners() with alternate_banners("images/my-forum-logo.jpg")
0 replies
I
incplus
I
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Very very thank you. Everything works great.
0 replies
E
eWe
E
eWe 10
[url=gfxpixel.info]GFXpixel.info[/url] - PHP-Fuison Themes!
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 5 threads in the forums
answered
Junior Member

Without edit file:
Admin panel - System Admin - Banners - (copy - paste in Banner 1 this code):

<?php
    if (strpos(TRUE_PHP_SELF, '/forum/') !== FALSE) {
    echo "<a href='".BASEDIR."'><img src='".BASEDIR."/images/news_cats/php-fusion.gif' style='margin:5px' alt='' align='left' /></a>";
     } else {
    echo "<a href='".BASEDIR."'><img src='".BASEDIR."/images/php-fusion-logo.png' style='margin:5px' alt='' align='left' /></a>";
     }
?>
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

+1 for eWe's solution, no file mods is always better.
0 replies
I
incplus
I
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Quote

Without edit file:
Admin panel - System Admin - Banners - (copy - paste in Banner 1 this code):

<?php
    if (strpos(TRUE_PHP_SELF, '/forum/') !== FALSE) {
    echo "<a href='".BASEDIR."'><img src='".BASEDIR."/images/news_cats/php-fusion.gif' style='margin:5px' alt='' align='left' /></a>";
     } else {
    echo "<a href='".BASEDIR."'><img src='".BASEDIR."/images/php-fusion-logo.png' style='margin:5px' alt='' align='left' /></a>";
     }
?>

- by eWe


This code works, but there is a small problem: it often appears:
Unable to establish connection to MySQL
1045 : Access denied for user ''@'192.168.101.199' (using password: NO)
what could be the cause?
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

I doubt is because of the code, seems hosting related.
0 replies
I
incplus
I
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Welcome to the http://tvpolsat.info/news.php and see for yourself.

Merged on Jul 18 2014 at 17:23:51:
That's the problem appeared after you insert this code.

Also this message appears: Unable to establish connection to MySQL
2002 : Connection refused
Edited by incplus on 18-07-2014 18:25,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 13 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

F
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
E
E
eWe 10
[url=gfxpixel.info]GFXpixel.info[/url] - PHP-Fuison Themes!
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 5 threads in the forums
J
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
I
I
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet