0
Welcome Guest! Login
0 items Join Now

Help with forum code ? SOLVED

  • Help with forum code ? SOLVED

    Posted 18 years 3 months ago
    • Hello Rocketeers and Joomlarians

      anyone want this small contract? please contact me ASAP

      does any know how to get a different logo to come up on the Forum?

      on my soccer site, using Versatility II
      www.didcottownfc.com/

      I want this logo afer clicking on the Forum button
      www.didcottownfc.com/Forum/Themes/rt_smf...eige/images/logo.png

      Looking forward to some direction, ???

      Philip
    • Last Edit: 18 years 3 months ago by damo.
    • Warrdesign: Graphic Design, Advertising,
      Illustration, Corporate Identity, Publicity,
      Magazine Design, Multimedia & Website Design
    • Dan L's Avatar
    • Dan L
    • Elite Rocketeer
    • Posts: 1453
    • Thanks: 0

    Re: Help with forum code ? SOLVED

    Posted 18 years 3 months ago
    • Hmmm, I can think of two ways of the top of my head:

      Use a PHP switch to detect whether the user is on the forum page or not, then load the appropriate span from CSS - one would use one logo, the other would use a different logo, something like:
      switch ($option) {
         case 'com_smf':
      &nbsp; &nbsp;  <span id="logo_forum"></span>
      &nbsp; &nbsp;  break;
       
      &nbsp;  default:
      &nbsp; &nbsp; &nbsp; <span id="logo"></span>
      &nbsp; &nbsp; &nbsp; break;&nbsp;

      ...then you just duplicate the span#logo in the CSS file, rename it "#logo_forum" and alter the name of the filename to the logo you want. That should in theory work :D

      The other (and probably more unwieldly) option is to make the logo div into a module position and assign a module-created logo to the relevant pages - for example, the forum logo would be assigned to the "Forum" menu link and the normal logo would be assigned everywhere else.
    • Toolbox Digital | Dribbble | Forrst
  • Re: Help with forum code ? SOLVED

    Posted 18 years 3 months ago
    • Hurray, at last contact with another life force,

      OK where exactly should I insert this code?

      I just tried it in the index.php file of the template and it failed,

      or is that the wrong place to put it?

      Thanks a lot for your direction

      regards
      Philip
    • Warrdesign: Graphic Design, Advertising,
      Illustration, Corporate Identity, Publicity,
      Magazine Design, Multimedia & Website Design
    • Dan L's Avatar
    • Dan L
    • Elite Rocketeer
    • Posts: 1453
    • Thanks: 0

    Re: Help with forum code ? SOLVED

    Posted 18 years 3 months ago
    • You need to insert it at the point in index.php which uses the span id for the logo...

      So, replace this:
      <span id="logo"></span>

      (it might have some extra bits in there, just replace the whole bit between (and including) the span tags).
    • Toolbox Digital | Dribbble | Forrst
  • Re: Help with forum code ? SOLVED

    Posted 18 years 3 months ago
    • sorry Dan that didnt work,
      thanks for the effort,
      any other ideas?
      regards
      Philip
    • Warrdesign: Graphic Design, Advertising,
      Illustration, Corporate Identity, Publicity,
      Magazine Design, Multimedia & Website Design
  • Re: Help with forum code ? SOLVED

    Posted 18 years 3 months ago
    • Solved by Arifin Finlay SUPER HERO

      who added code to the Joomla template index.php

      <?php /* Customized by Arifin FinLy ( www.FinLyDesign.com ) */ ?>
      <a href="<?php echo $mosConfig_live_site;?>" title="">
      <?php if(mosGetParam($_REQUEST, 'option') != "com_smf") {?>
      <span id="logo"> </span>
      <?php } ?>

      <?php if(mosGetParam($_REQUEST, 'option') == "com_smf") {?>
      <span id="logo2"> </span>
      <?php } ?>
      </a>
      <?php /* End */ ?>
      and also Joomla template header.css

      /* Added by Arifin FinLy ( www.FinLyDesign.com ) */
      #logo2 {
      position: absolute;
      top: 0px;
      left: 0px;
      display: block;
      width:486px;
      height: 112px;
      background: url(../images/logo2.png) no-repeat;
      }
      /* End */
    • Last Edit: 18 years 3 months ago by Philip Warr.
    • Warrdesign: Graphic Design, Advertising,
      Illustration, Corporate Identity, Publicity,
      Magazine Design, Multimedia & Website Design
    • Anonymous's Avatar

    Re: Help with forum code ? SOLVED

    Posted 18 years 3 months ago
    • Philip Warr wrote:
      Solved by Arifin Finlay SUPER HERO

      who added code to the Joomla template index.php

      <?php /* Customized by Arifin FinLy ( www.FinLyDesign.com ) */ ?>
      <a href="<?php echo $mosConfig_live_site;?>" title="">
      <?php if(mosGetParam($_REQUEST, 'option') != "com_smf") {?>
      <span id="logo"> </span>
      <?php } ?>

      <?php if(mosGetParam($_REQUEST, 'option') == "com_smf") {?>
      <span id="logo2"> </span>
      <?php } ?>
      </a>
      <?php /* End */ ?>
      and also Joomla template header.css

      /* Added by Arifin FinLy ( www.FinLyDesign.com ) */
      #logo2 {
      position: absolute;
      top: 0px;
      left: 0px;
      display: block;
      width:486px;
      height: 112px;
      background: url(../images/logo2.png) no-repeat;
      }
      /* End */

      My guess would be Arifin Finly did!
      Your probably using a modded template by Arifin Finly.
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Help with forum code ? SOLVED

    Posted 18 years 3 months ago
    • he wasn't asking who added the code... he was telling us arifin did.
    • Say no to Internet Explorer 6.
      twitter.com/mark_up
  • Re: Help with forum code ? SOLVED

    Posted 18 years 3 months ago
    • Hello Philip and All Rocketteers that read this post,

      I was busy these days with my college assignment and didn't read this post...
      When I read this, I am very surprised ...

      Philip, Could you please change the thread title?
      It will give a misunderstanding that I took money from this small change..

      You sent me email and I helped you FREE in my FREE time.
      I didn't read this post until now, and I NEVER talked anything about money in our mails
      If I read this post before you sent me email, of course I will post the code here... I just got very busy these days...

      Thank you Philip. I am very happy it works as what you hope.
      Solved by Arifin Finlay SUPER HERO
      It should be FinLy.. hehehe.. No problem :D haha

      I hope I can make this clear....

      Best Regards,

      Arifin FinLy
    • Last Edit: 18 years 3 months ago by Arifin FinLy.
    • damo's Avatar
    • damo
    • Elite Rocketeer
    • Posts: 2142
    • Thanks: 0

    Re: Help with forum code ? SOLVED

    Posted 18 years 3 months ago

Time to create page: 0.070 seconds