News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Funny IDEA or BAD idea?

Started by FBI, June 09, 2004, 12:39:26 PM

Previous topic - Next topic

FBI

Note: This SMF Forum resize picture, please download the attachments to view complete picture

I have a bad idea for board index design 
Hopely, you're not laugh ....  :P

http://img32.photobucket.com/albums/v96/iwannet/fbi/fbi-idea1.jpg
http://img32.photobucket.com/albums/v96/iwannet/fbi/fbi-idea2.jpg

I modified, INDEX.TEMPLATE.PHP (in THEMES directory) for FUNNY purpose.. See my attachment (picture)


If user login normally, the forum will show her or his avatar, NOT Bad avatar like above 
See picture below...


And, if the "easy code" just like this (put in the index.template.php file) SMF Beta 5
// Otherwise they're a guest - so politely ask them to register or login.
else
{
echo '
                                                        <img src="http://yourforum.com/Themes/monkey.jpg"><br />
', $txt['welcome_guest'], '<br />
', $context['current_time'], '<br />



Or, if you wanna add CODE from Geobytes, that show your visitor CITY Information display dynamically, you can add this code at same file


// Show the menu here, according to the menu sub template.
template_menu();

echo '

<script language="Javascript" src="http://gd.geobytes.com/gd?after=-1&variables=GeobytesCountry,GeobytesCity">
</script>
<script language="Javascript">
document.write("Warning! User from "+sGeobytesCity+", "+sGeobytesCountry+", must be above 17 years old");
</script>

</div>';

// The main content should go here.  A table is used because IE 6 just can't handle a div.



PS: Dont laugh on me
Cause I am new on PHP  :D

Daniel D.

Hmm, a guest pic isn't a bad idea. Perhaps the SMF logo instead. But I hate multiple use of one smiley...

FBI

Sorry... Just my idea, if you didnt like it  :(
I am so sorry  :(

Daniel D.

I like the idea a lot, just the smilies. :P

bloc

I think its a great idea...a more original approach to the login. And the picture of the monkey is funny.. ;)  ( whats this with smilies then..? :) :) ..oops.)

Cypher7

I wanted to implement something like that myself, just didnt know how!!??

The picture I wanted to have up is something like

  or

would be a nice touch I think...

FBI

Wow, nice avatar for unknown user.
BTW, i want to make default avata like this to my member forum, if they didnt have or set avatar, yet?

Is anyone here can show me the code? ???

tmlfever

I liked your Idea so much I used it on my site www.TMLForum.net

GOOD JOB!!!


"Every time you wake up, ask yourself, "What good am I going to do today?", remember that when the sun goes down at sunset, it will take a part of your life with it."

I've seen the Leaf jersey everywhere from Kabul to Tonga. I've never seen it in a Stanley Cup final.

Oldiesmann

Quote from: FBI on June 10, 2004, 09:54:02 AM
Wow, nice avatar for unknown user.
BTW, i want to make default avata like this to my member forum, if they didnt have or set avatar, yet?

Is anyone here can show me the code? ???

Well, you can rename that to "blank.gif" and upload it to the avatars folder... That will make it the default if they haven't set an avatar.
Michael Eshom
Christian Metal Fans

Cypher7

#9
I've just set it up to see how it looks...

airport-tkd.com/forum

Here's the code I used

$txt['welcome_guest'] = '<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="5%" valign="middle" align="center"><img src="http://www.airport-tkd.com/forum/Themes/default/images/guestav.jpg"></td>
    <td width="95%">
      <div align="left">Welcome, <b>' . $txt[28] . '</b>. Please <a href="' . $scripturl . '?action=login">login</a> to post.<br />Or do you need to <a href="' . $scripturl . '?action=register">register</a> an account with us?</a></div>
    </td>
  </tr>
</table>';

[Unknown]

Quote from: Oldiesmann on June 10, 2004, 11:34:33 AM
Well, you can rename that to "blank.gif" and upload it to the avatars folder... That will make it the default if they haven't set an avatar.

Have you actually verified this, which you keep saying and I'm almost sure is not the case?

-[Unknown]

Advertisement: