Clickable Logo

Started by Smoky "Rider" Blue, August 31, 2008, 12:56:34 PM

Previous topic - Next topic

Smoky "Rider" Blue

you will have to find the center image you have, on the index.template.php file you attached, and use the code here, being sure to subsitute your image name for the default smflogo image..

<a href="', $scripturl, '"><img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" /></a>

i am sorry for the delay in response to this blondeamon..

Smoky lady has been a bit busy..  :)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Phat^Trance

how do i make my own image clickable? there isnt any option to edit the xml files under the package manager. when u try manually edit the file and install the mod again ill get this error message: The package you tried to upload either is not a valid package or has become corrupted.

i want to have the logo on the RIGHT side of the forum (  http://dailymobile.se/forum/ )
is that possible to make with this mod?
Daily Mobile Blog:  http://dailymobile.se/
Daily iPhone Blog: http://dailyiphoneblog.com/
Daily Mobile forum: http://forum.dailymobile.se/

Smoky "Rider" Blue

Quote from: Phat^Trance on December 19, 2008, 11:31:16 AM
how do i make my own image clickable? there isnt any option to edit the xml files under the package manager. when u try manually edit the file and install the mod again ill get this error message: The package you tried to upload either is not a valid package or has become corrupted.

i want to have the logo on the RIGHT side of the forum (  http://dailymobile.se/forum/ )
is that possible to make with this mod?

how do you make your own image clickable?? apply the mod.. you shouldnt have to edit anything in the mod files..

you are wanting to have your image aligned to the right? then post up the code and we go from there ;)

all this mod of mine does, is make it clickable :)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Phat^Trance

what kind of file do u want to make the logo to the left?
Daily Mobile Blog:  http://dailymobile.se/
Daily iPhone Blog: http://dailyiphoneblog.com/
Daily Mobile forum: http://forum.dailymobile.se/

Smoky "Rider" Blue

what do you mean?  :o

i thought you said you wanted your logo on the right?

all this mod does is make it clickable, no aligning at all.  :)

**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Phat^Trance

Quote from: SmokyBlue on December 19, 2008, 12:40:47 PM
what do you mean?  :o

i thought you said you wanted your logo on the right?

all this mod does is make it clickable, no aligning at all.  :)

no i want the logo on the left, were i have my custom logo.  (  http://dailymobile.se/forum/  ) the current SMF logo is still on the right BUT its been switched to a 1x1 logo (so that people wont see it)


you wrote:
you are wanting to have your image aligned to the right? then post up the code and we go from there .

the code? what kind of code? in witch file =)
Daily Mobile Blog:  http://dailymobile.se/
Daily iPhone Blog: http://dailyiphoneblog.com/
Daily Mobile forum: http://forum.dailymobile.se/

Smoky "Rider" Blue

ok.. you added your logo thru the current theme options, correct?


here is the code for your header/logo based off the default:

Quote<body>';

   echo '
   <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
         <tr>
            <td class="catbg" height="32">';

   if (empty($settings['header_logo_url']))
      echo '
               <span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
   else
      echo '
               <img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

   echo '
            </td>
            <td align="right" class="catbg">
               <img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
            </td>
         </tr>
      </table>';

found in the index.template.php file in themes>default (core)

what i suggest to you is this.. take your logo, and name it to smflogo.gif (from dm-banner-size-test-3.png) to make things easier on you.

next, upload that image to your images file in the default theme, overwritting the one that is there now.

then look at the code i just poped up here.

change this bit here:


<td align="right" class="catbg">


to where it will say "left" and you will be fine..

however i never like to modify the default theme.. always make a new theme and edit that one..

remember, backup!! before and after any changes ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Smoky "Rider" Blue

now if you do not wish for the text name of your site to show, then do the code bit like this:

<body>';

echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">';

//if (empty($settings['header_logo_url']))
//echo '
//<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
//else
//echo '
//<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Adish - (F.L.A.M.E.R)

Well, this is something which might or may not be due to this mod, but i aint sure but although it seems might have happened due to the installation of this mod.

http://goldysun.com/forum/index.php
(you see the banner perfectly seen without logging in)

http://goldysun.com/forum/index.php
(Login with the test account information and you see two banners overlapping)

Username:- nishant
password:- goldysun

I did check the codes in index.template.php but doesnt seem to get it right yet.

Anything that you can help with ?

Smoky "Rider" Blue

Quote from: F.L.A.M.E.R on December 19, 2008, 05:49:02 PM
Well, this is something which might or may not be due to this mod, but i aint sure but although it seems might have happened due to the installation of this mod.

http://goldysun.com/forum/index.php
(you see the banner perfectly seen without logging in)

http://goldysun.com/forum/index.php
(Login with the test account information and you see two banners overlapping)Username:- nishant
password:- goldysun

I did check the codes in index.template.php but doesnt seem to get it right yet.

Anything that you can help with ?

if i could see what you are talking about Flammer..

here is what i see using firefox and ie.. (see attached)

now, can you do a screener of what you see??  or have you looked at it in browsershots.org??

can you post up the code that you are using?? 

and you always install mods to the core default, then to the custom theme via editing..

so does this do that on the default??  the more info you give, lol you know the drill  ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Adish - (F.L.A.M.E.R)

Oh, why didnt i check before giving the account. I just saw that the user account doesnt see as i as an admin sees it.

Here are the screenies.


During the normal mode without logging in, i see the same which you do, but as i login, i see the above screenie...

It doesnt happen in the default theme. Yes all the mods are installed for the default theme first and then custom.

Here is the mod list:-
1.   Ad Managment   2.3   [ Uninstall ]
2.   nneonneo's AJAX ShoutBox   1.21   [ Uninstall ]
3.   FavIcon   1.1   [ Uninstall ]
4.   Affiliates   1.0   [ Uninstall ]
5.   Custom Copyright   1.1.5   [ Uninstall ]
6.   Global Headers Footers   1.4.1   [ Uninstall ]
7.   Karma Description Mod   2.3.1   [ Uninstall ]
8.   Referrals Mod   2.0.1   [ Uninstall ]
9.   Images On Board   1.1   [ Uninstall ]
10.   Forum Epoch   1.0   [ Uninstall ]
11.   Auto Email Inactive Users   1.7   [ Uninstall ]
12.   Gmail Field   1.1   [ Uninstall ]
13.   MCLegendII.2   2.0   [ Uninstall ]
14.   Smf Logo Clickable   1.0   [ Uninstall ]
15.   Global Announcements   1.0   [ Uninstall ]
16.   Perfect Smiley Set   1.0   [ Uninstall ]
17.   Member Color Link   3.0.4   [ Uninstall ]
18.   Expand Pages Mod   1.0   [ Uninstall ]
19.   Image Zoom Tag Package   1.2   [ Uninstall ]
20.   New Topic Button   1.0   [ Uninstall ]
21.   PM Popup - Uses Active Window   1.3   [ Uninstall ]
22.   Thank-O-Matic   1.2.3   [ Uninstall ]
23.   Redirection Boards   2.01   [ Uninstall ]
24.   VisualWarning   1.42   [ Uninstall ]
25.   Post_As_An_Alternate_User   2.0   [ Uninstall ]
26.   NextPostLevel   1.0   [ Uninstall ]
27.   Related Topics   1.2.0   [ Uninstall ]
28.   Paid Subscriptions   0.18   [ Uninstall ]
29.   Ultimate Profile   0.8.5   [ Uninstall ]
30.   SMF Arcade   2.0.15   [ Uninstall ]
31.   AJAX Instant Quick Reply   1.0.1   [ Uninstall ]
32.   Look But No Read   1.11   [ Uninstall ]
33.   Show Local Url Titles   1.1   [ Uninstall ]
34.   Color And BgColor BBCode Bar   3.3.1   [ Uninstall ]
35.   Admin Notepad   1.0   [ Uninstall ]
36.   SMF 1.0.14 / 1.1.6 Update   1.0   [ Uninstall ]
37.   Custom_Greeting_Depending_on_Time   0.3   [ Uninstall ]
38.   Floating Guest Greeting (for 1.1.5)   1.01   [ Uninstall ]
39.   Reflection Avatar   1.0   [ Uninstall ]
40.   Quote Always WYSIWYG   1.01   [ Uninstall ]
41.   SMF 1.0.15 / 1.1.7 Update   1.0   [ Uninstall ]
42.   Are You Human? Anti-Bot Registration Check   1.3   [ Uninstall ]
43.   Pretty URLs   0.9   [ Uninstall


In error log, i have nothing except the error created due to the post/topic update in the shoutbox.

Smoky "Rider" Blue

post up your code for the custom theme header please..

and not sure, i really do not think this mod

Reflection Avatar

would effect it.. the rest of the mods do nothing with images so it must be in the code itself..
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Adish - (F.L.A.M.E.R)

here are somewhat the nearby codes from there the custom theme header part:-

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...

else

{

echo '

', $txt['welcome_guest'], '

<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>

<input type="text" name="user"  size="10" />

<input type="password" name="passwrd"  size="10" />

<input type="submit" value="', $txt[34], '" />

<input type="hidden" name="hash_passwrd" value="" />

</form>', $context['current_time'],'<br />';

}

echo '

</div>



<a href="', $scripturl, '"><img src="', $settings['images_url'], '/banner.jpg" style="margin: 2px;" alt="" /></a> ';

echo '

  </div>

</div>

</div>

  <div id="toolbar">

<div id="nav">',template_menu(),'

  </div>

  <div id="mainarea">';


Also, here is the advert part used in custom header and footer..
<br /><html><center><script type="text/javascript" src=http://www.bluehost.com/src/js/adishpatel/CODE23/468x60/1.gif></script></center></html>
<br />
<br />

Smoky "Rider" Blue

try removing Global Headers Footers  ;)

let me know if it is better or no change..
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Adish - (F.L.A.M.E.R)

Nope, nothing..

Although i just noticed, that the logo which overlaps at the base is clickable while the one on the top is not.

Just with lots of keen interest, why is it just the admin and not the users ? pretty weird..

Smoky "Rider" Blue

im not sure Flammer, if you want to pop up the complete index.template. php file.. up to you..

i cant touch it till later tonight, in the middle of a clients site right now, but i can take a closer look later..

or create a admin acct and pm it to me for testing.. either  way.. will get it solved..

i'd like to know so i know my mod is in the clear..  ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Adish - (F.L.A.M.E.R)

Yep sure, i'll try a few things up and later tonight send you the details. Best of luck with the clients. ;) Have a nice sleep in advance.. :P

Smoky "Rider" Blue

lmao Flammer, you know the wicked never rest  :P
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Adish - (F.L.A.M.E.R)

Totally, i have passed through that stage..

the only difference was that my clients where Chemistry, Physics, Maths and IT for the whole week..!!! :P

Smoky "Rider" Blue

* SmokyBlue figures out should she hide or??  :P 

lol Flammer.. i hope you did more than just pass thru  ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Advertisement: