Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: FBI on June 09, 2004, 12:39:26 PM

Title: Funny IDEA or BAD idea?
Post by: FBI on June 09, 2004, 12:39:26 PM
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)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg32.photobucket.com%2Falbums%2Fv96%2Fiwannet%2Ffbi%2Ffbi-idea2.jpg&hash=efceb8f4bc80326f64dbbaa57c3e0a819bfe085f)

If user login normally, the forum will show her or his avatar, NOT Bad avatar like above 
See picture below...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg32.photobucket.com%2Falbums%2Fv96%2Fiwannet%2Ffbi%2Ffbi-idea1.jpg&hash=77bf3d15b969b48a47f76912d3530a078fb13655)

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
Title: Re: Funny IDEA or BAD idea?
Post by: Daniel D. on June 09, 2004, 12:43:17 PM
Hmm, a guest pic isn't a bad idea. Perhaps the SMF logo instead. But I hate multiple use of one smiley...
Title: Re: Funny IDEA or BAD idea?
Post by: FBI on June 09, 2004, 12:49:05 PM
Sorry... Just my idea, if you didnt like it  :(
I am so sorry  :(
Title: Re: Funny IDEA or BAD idea?
Post by: Daniel D. on June 09, 2004, 12:49:39 PM
I like the idea a lot, just the smilies. :P
Title: Re: Funny IDEA or BAD idea?
Post by: bloc on June 10, 2004, 03:27:54 AM
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.)
Title: Re: Funny IDEA or BAD idea?
Post by: Cypher7 on June 10, 2004, 07:46:40 AM
I wanted to implement something like that myself, just didnt know how!!??

The picture I wanted to have up is something like

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.blueboxcreations.com%2Fsmfstuff%2Favatar.jpg&hash=57477ed806e1bdda25d268fab29ac460fd4cf5b8)  or (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.blueboxcreations.com%2Fsmfstuff%2Favatar2.jpg&hash=e28968358e54538f2cf70c96b6d33949edb9bc91)

would be a nice touch I think...
Title: Re: Funny IDEA or BAD idea?
Post by: FBI on June 10, 2004, 09:54:02 AM
Wow, nice avatar for unknown user.
BTW, i want to make default (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.blueboxcreations.com%2Fsmfstuff%2Favatar.jpg&hash=57477ed806e1bdda25d268fab29ac460fd4cf5b8)avata like this to my member forum, if they didnt have or set avatar, yet?

Is anyone here can show me the code? ???
Title: Re: Funny IDEA or BAD idea?
Post by: tmlfever on June 10, 2004, 11:19:52 AM
I liked your Idea so much I used it on my site www.TMLForum.net

GOOD JOB!!!
Title: Re: Funny IDEA or BAD idea?
Post by: Oldiesmann on June 10, 2004, 11:34:33 AM
Quote from: FBI on June 10, 2004, 09:54:02 AM
Wow, nice avatar for unknown user.
BTW, i want to make default (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.blueboxcreations.com%2Fsmfstuff%2Favatar.jpg&hash=57477ed806e1bdda25d268fab29ac460fd4cf5b8)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.
Title: Re: Funny IDEA or BAD idea?
Post by: Cypher7 on June 10, 2004, 11:50:37 AM
I've just set it up to see how it looks...

airport-tkd.com/forum (http://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>';
Title: Re: Funny IDEA or BAD idea?
Post by: [Unknown] on June 10, 2004, 11:56:17 AM
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]