TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,970
  • Latest: bynw
Stats
  • Total Posts: 196,034
  • Total Topics: 21,335
  • Online today: 321
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 144
  • Total: 145
  • lurkalot

Shoutbox or Guestbook?

Started by pauls dad, November 13, 2008, 09:00:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pauls dad

Hi
Not sure if this is the rite place to ask , can anybody tell me if they now how or where i can get a code for something like a shoutbox but where a candle will be lite and people can leave a short message i host a bereavement site and would like to add something like this  a Memorial candle lighting shout box if you like i don't have the skills to do it myself sorry is there anybody out there that could help me out.

Thank you for your time in reading this post

IchBin

Pauls dad, it is best that you always start your own topic when posting your own question. I've split your post from that topic. If anyone is willing to help you I'm sure they will reply.

G6Cad


JPDeni

You might want to try just using the Shoutbox as it is, except without the title or frame. Then add another block above it, also without a title or frame, with your candle graphic and maybe some text. By not using the frame on either one, it can look like the two are connected.

pauls dad

Thank you all for your replies i took a look at that link G6 and the links it took me to went right over my head but the other person was after the same as me so i am not alone in my search. JPDeni your suggestion sounds good but i did want a candle to scroll with each message i don't want a lot do i lol. Shame there isn't a smiley as a candle then i could just have that smiley for the shout box i have these ideas but have know way of implementing them wish i was clever.
Sorry for posting in the wrong place IchBin and thanks for moving my post
Thanks again all

JPDeni

Quotei did want a candle to scroll with each message

I see. I didn't realize that.

Actually, you can put a smiley as a candle. Go here and you'll see a couple of them, one of which is animated.

JPDeni

I have another idea, which I have tested out and it works! :)

I see that you're using TP .98, which is good because that's what I've tested it on.

This may be a bit out of your comfort zone, but you can do it. I promise!

Download the file TPortal.php, which will be in your Sources directory.

Open the file in a plain text editor (something like Notepad). Don't use a word processor.

Do a search in the file for


$shouts .='<div style="margin: 4px;"><div style="border: dotted 1px; padding: 2px 4px 2px 4px;" class="windowbg2"><b>'.$row['value3'].'</b></div><div style="padding: 2px;"> '.timeformat($row['value2']).'</div><div style="padding: 4px;">';


Right below that, add


$shouts .='<img src="candle.gif">';


Save the file.

Download the candle image that's attached to this post.

Upload the file you changed to your Sources directory on your site and upload the candle graphic to the main site directory -- one level up from the Sources directory.

That should do it. Add a shoutbox to your site. Every shout should have the candle in front of it.

If you upgrade TP, you'll have to make this change again.

pauls dad

That sounds really good and what i want would i have to get rid of the shout box i have in use before i try i wouldn't be able to run both would i ? thank you JPDeni for taking time to try this out and work out how to do it i do really appreciate it. Not sure when i will try as it is a little bit out of my comfort zone and  i will need to build up courage to do it as i don't want to mess up anything on the site

Thank you so much for your time & effort

JPDeni

#8
No, you wouldn't be able to run both. You would have to set up a whole second shoutbox routine and database table and everything in order to do that.

I understand about the comfort zone thing. But you really can do it! Just remember to keep backups of everything and you should be fine.

Would it help if I attached the altered file here? I can do that if you want.

I'm really happy to help if I can. I'm in a very similar position to you.

pauls dad

I am so so sorry to here you are in a similar position to me if that is in Ref to my site.
Before we go any further with this i think the source file is at my hosting company in my control panel am i correct i am thick sorry, i havent been there since i got the site working and just went to have a look and came away straight away just clicking on things there frieghtend me in fear of messing it up and believe me i would. Everything i have done to the site so far has been from the admin. i have copied everything you have told me to do not sure if you giving me the altered file would be of help and i dont want t waist your time i was hoping i could just get a code and paste it in to a block but that doesnt look to be the case would have been ideal for a thicky like me.
I really do thank you so much but i dont think i will be able to do this.

This website is proudly hosted on Crocweb Cloud Website Hosting.