Need some help with logo coding please/ Help Help Help I screwed it all up

Started by sonda, January 31, 2008, 04:10:23 PM

Previous topic - Next topic

sonda

This is what my index reads  and I need to be able to have the logo   when clicked on go to  another website.
Hope you can tell be how to re write this and make it happen.   Also the logo is saved in  photo bucket is this ok ?

Quoteif(!($settings['logo_not_show']))
   {
      if (empty($settings['header_logo_url']))
         echo '
                  <a href="', $scripturl, '"><img src="', $settings['images_url'] . '/'. $settings['theme_main_color'], '/logo.jpg" style="margin: 0px;" alt="', $context['forum_name'], '" title="', $context['forum_name'], '"/></a>';
      else
         echo '
                  <a href="', $scripturl, '"><img src="', $settings['header_logo_url'], '" style="margin: 0px;" alt="', $context['forum_name'], '" /></a>';
   }
   echo '
               </td>';

   if (!empty($settings['show_name_near_logo']))
      echo '   
               <td>
                  <span style="font-family: \'Trebuchet MS\', Verdana, sans-serif; font-size: 150%; color: white; padding-top: 30px; padding-left: 30px; white-space: normal;">', $context['forum_name'], '</span>
               </td>';
   if (!empty($settings['top_right_html']))
      echo '
               <td valign="top" align="right">
                  <div style="color: white; padding-top: 10px; float:right;">', $settings['top_right_html'], '</div>
               </td>';

   echo '

SA™

#1
Quote from: sonda on January 31, 2008, 04:10:23 PM
This is what my index reads  and I need to be able to have the logo   when clicked on go to  another website.
Hope you can tell be how to re write this and make it happen.   Also the logo is saved in  photo bucket is this ok ?

if(!($settings['logo_not_show']))
   {
      if (empty($settings['header_logo_url']))
         echo '
                  <a href="', $scripturl, '"><img src="', $settings['images_url'] . '/'. $settings['theme_main_color'], '/logo.jpg" style="margin: 0px;" alt="', $context['forum_name'], '" title="', $context['forum_name'], '"/></a>';
      else
         echo '
                  <a href="', $scripturl, '"><img src="', $settings['header_logo_url'], '" style="margin: 0px;" alt="', $context['forum_name'], '" /></a>';
   }
   echo '
               </td>';

   if (!empty($settings['show_name_near_logo']))
      echo '   
               <td>
                  <span style="font-family: \'Trebuchet MS\', Verdana, sans-serif; font-size: 150%; color: white; padding-top: 30px; padding-left: 30px; white-space: normal;">', $context['forum_name'], '</span>
               </td>';
   if (!empty($settings['top_right_html']))
      echo '
               <td valign="top" align="right">
                  <div style="color: white; padding-top: 10px; float:right;">', $settings['top_right_html'], '</div>
               </td>';

   echo '


change

<a href="', $scripturl, '">

to the link you wont it to point to

<a href="www.yourforum.com ">


then change

<img src="', $settings['images_url'] . '/'. $settings['theme_main_color'], '/logo.jpg"

to the logo you wont to use ie your logo url

<img src="www.yourlogo.com/logo.jpg"
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

sonda

Thank you very much.

one other question and then will leave you alone :)

this question is in regard to how to get rid of red x   
in the current theme the option is to put   codes in  for

HTML code to be displayed below user info bar
or
HTML code to be displayed at the top right

now if I put in the following  in either space, I get  a red x to the left of the img.  But if I just put in the img  info and leave off the  website info there is no red x   so what am I doing wrong?

<a href ="http://www.swedefarm.com"><img src="<<a href="http://s132.photobucket.com/albums/q12/allcraft/Business%20Cards/?action=view&current=Katie.jpg" target="_blank"><img src="http://i132.photobucket.com/albums/q12/allcraft/Business%20Cards/Katie.jpg" border="0" alt="Katie"></a>

SA™

#3
try this


<a href ="http://www.swedefarm.com"><img src="http://s132.photobucket.com/albums/q12/allcraft/Business%20Cards/?action=view&current=Katie.jpg" target="_blank"><img src="http://i132.photobucket.com/albums/q12/allcraft/Business%20Cards/Katie.jpg" border="0" alt="Katie"></a>
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

sonda

nope that still leaves the red x to the left of the image
do you think it might have to do with using photo bucket?

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

sonda


SA™

#7
next :D


<a href ="http://www.swedefarm.com"><img src="http://s132.photobucket.com/albums/q12/allcraft/Business%20Cards/Katie.jpg" target="_blank"></a>
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

sonda

Well that got rid of the red x  BUT now we have two of the same image :)

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

sonda

:)   YEH  you are awsome!!  Thank you so much

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-


sonda

Ok on very first message  re:  link to another web page and logo on left hand side.

logo goes up fine using your codes but does not link to the website.

so this is the chg I made  what did I do wrong??

Quoteif(!($settings['logo_not_show']))
   {
      if (empty($settings['header_logo_url']))
         echo '
                  <a href="www.lonesomedoenubians.com"><img src="http://i132.photobucket.com/albums/q12/allcraft/Business%20Cards/BoardadvertizingVicki-2.jpg"></a>';      else
         echo '
                  <a href="', $scripturl, '"><img src="', $settings['header_logo_url'], '" style="margin: 0px;" alt="', $context['forum_name'], '" /></a>';
   }
   echo '

SA™

if(!($settings['logo_not_show']))
   {
      if (empty($settings['header_logo_url']))
         echo '
                  <a href="http://www.lonesomedoenubians.com"><img src="http://i132.photobucket.com/albums/q12/allcraft/Business%20Cards/BoardadvertizingVicki-2.jpg"></a>';
      else
         echo '
                  <a href="', $scripturl, '"><img src="', $settings['header_logo_url'], '" style="margin: 0px;" alt="', $context['forum_name'], '" /></a>';
   }
   echo '


try that you mised the http:// from the url



http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

sonda


sonda

Template Parse Error!
There was a problem loading the /Themes/dilbermc/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------

parse error, unexpected '['


Now what do I do ??

SA™

did you get that adding that code to the index template ?

if so can u post it up so i can look at it
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

sonda

OH   you just don't have a clue as to how bad I have screwed up everything on the board now. 
I have lost all colors   can't even get the default smf to work.    and since I just took over this board  I don't even know how to go abt reloading  smf  and can't figure out the  cpanel crap or anything.   Am so upset and the owner of the board is going to have a fit come morning.

sonda

OK need some help again  I can't get this to load the picture in the theme setting  and can't figure out what I have done wrong using the same setting
Quote from: sleepy-arcade.ath.cx on January 31, 2008, 11:20:04 PM
next :D


<a href ="http://www.swedefarm.com"><img src="http://s132.photobucket.com/albums/q12/allcraft/Business%20Cards/Katie.jpg" target="_blank"></a>

<a href ="http://www.freewebs.com/caprinebeings"><img src="http://i132.photobucket.com/albums/q12/allcraft/Business%20Cards/BuisnesscardCaprineBeings.jpg" target="_blank"></a>


Now when I copy the HTML code from photobucket I get the following.  but nothing will work the url in the above works but not the picture

<a href="http://s132.photobucket.com/albums/q12/allcraft/?action=view&current=CaprineBeings.jpg" target="_blank"><img src="http://i132.photobucket.com/albums/q12/allcraft/CaprineBeings.jpg" border="0" alt="Caprine Beings"></a>

Advertisement: