• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Feature Requests (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Post \"Picture\" instead of text

This forum is now locked as we will no longer be developing the v1.x branch

Moderators: OldWolf, re*s.t.a.r.s.*2

Topic locked
22 posts • Page 2 of 2 • 1, 2

Postby NautTboy » Fri Apr 10, 2009 3:27 pm

Wow, i really like your setup. Add thumbnail in chat! Hidden Smiley Popup! Since phpfreechat is free, why couldn't you share with us your code and ideas?

numlock wrote:I have implemented this in my Leeloo Chat. .........."registered user only" IMHO.
NautTboy
Member
 
Posts: 37
Joined: Sat Mar 14, 2009 7:40 am
Top

Postby waiheke » Tue Oct 19, 2010 1:19 pm

Calman45 wrote:Built my own external system in HTML/Java ... problem fixed.

NautTboy wrote:Wow, i really like your setup. Add thumbnail in chat! Hidden Smiley Popup! Since phpfreechat is free, why couldn't you share with us your code and ideas?

numlock wrote:I have implemented this in my Leeloo Chat. .........."registered user only" IMHO.


Yes wouldn't it be nice if you guys who have cracked the problems, shared with us ??

We are all in it together, surely ?

:-/
waiheke
Member
 
Posts: 126
Joined: Sun Sep 12, 2010 4:33 pm
Top

Postby Calman45 » Wed Oct 20, 2010 4:30 am

Hi folks,

Okay, here is how I manage image posts in our chat.

Firstly, go into your "chat.html.tpl.php" ... and locate a standard button (text color, bold, italics etc)

Create a new div below the last entry (or wherever you want it located)

-------------------------------------------------------------------------------------
(my example)



<!--image hut post icon-->
<img src="http://www.pool-chat.com/images/spacer.gif" height=1 width=10>


<div id="pfc_bt_delete_btn" class="pfc_btn">
<img src="<?php echo $c->getFileUrlFromTheme('IMAGES/YOURICON.png'); ?>"
id="pfc_bt_delete"
alt="Post Image"
title="Post Image"
class="pfc_bt_delete"
onclick="pfc.insert_text('[img]/YOURTHEME/YOURDIR/','.gif[/img]',true)" />
</div>


------------------------------------------------------------------------------------

Replace YOURTHEME/YOURDIR with your own setup, to reflect your theme/image dir. Upload images to this location, rehash your chat, then simply post them to chat using only the filename, as the code above will handle the path. I have set mine up for *.gif ... but you can easily make that jpg or wildcard.

You will obviously have to create your own small icon and reference it above "'IMAGES/YOURICON.png"

That's It.

Hope this helps?

All the best,
Cal :)
Calman45
Support Team
 
Posts: 150
Joined: Sun Oct 26, 2008 11:09 pm
Location: Western Canada
  • Website
Top

Postby waiheke » Fri Oct 22, 2010 12:12 pm

runebergen wrote:Anyone??

At least a hint at where the URL parse part is ?


( why is this support forum sooooooooo dead? ) hum


Crossin fingers for some help

good luck !!

I see it's been 2 years since your post
Last edited by waiheke on Tue Oct 26, 2010 9:21 pm, edited 1 time in total.
waiheke
Member
 
Posts: 126
Joined: Sun Sep 12, 2010 4:33 pm
Top

Postby waiheke » Fri Oct 22, 2010 12:13 pm

Calman45 wrote:Hi folks,

Okay, here is how I manage image posts in our chat.

Firstly, go into your "chat.html.tpl.php" ... and locate a standard button (text color, bold, italics etc)

Create a new div below the last entry (or wherever you want it located)

-------------------------------------------------------------------------------------
(my example)



<!--image hut post icon-->
<img src="http://www.pool-chat.com/images/spacer.gif" height=1 width=10>


<div id="pfc_bt_delete_btn" class="pfc_btn">
<img src="<?php echo $c->getFileUrlFromTheme('IMAGES/YOURICON.png'); ?>"
id="pfc_bt_delete"
alt="Post Image"
title="Post Image"
class="pfc_bt_delete"
onclick="pfc.insert_text('[url]/YOURTHEME/YOURDIR/','.gif[/url]',true)" />
</div>


------------------------------------------------------------------------------------

Replace YOURTHEME/YOURDIR with your own setup, to reflect your theme/image dir. Upload images to this location, rehash your chat, then simply post them to chat using only the filename, as the code above will handle the path. I have set mine up for *.gif ... but you can easily make that jpg or wildcard.

You will obviously have to create your own small icon and reference it above "'IMAGES/YOURICON.png"

That's It.

Hope this helps?

All the best,
Cal :)

Interesting.
This presupposes an upload, eh?


:)
Last edited by waiheke on Wed Oct 27, 2010 12:50 am, edited 1 time in total.
waiheke
Member
 
Posts: 126
Joined: Sun Sep 12, 2010 4:33 pm
Top

Postby waiheke » Tue Oct 26, 2010 9:21 pm

Calman45 wrote:Built my own external system in HTML/Java ... problem fixed.

I took a look at the url processing file today, and sorted it out, viz:

http://www.phpfreechat.net/forum/viewtopic.php?id=4642

:)
Last edited by waiheke on Wed Oct 27, 2010 12:49 am, edited 1 time in total.
waiheke
Member
 
Posts: 126
Joined: Sun Sep 12, 2010 4:33 pm
Top

Postby MyCuriousBrain » Sun Jul 17, 2011 11:23 pm

Yeah that last link has an article that gives a solution to the image thumbnail in your chat in place of the external link. It is very nice and a cool feature to add. Thank you for your hard work and for sharing the solution with us all.

How can we get the image to load with lightbox.js instead of in a new tab/window? I would really think that would be the next logical step. :)

Peace,

~CB :cool:
Hey! At least I am house trained! ~TheDude
MyCuriousBrain
New member
 
Posts: 8
Joined: Thu Jul 14, 2011 7:44 pm
Location: Slightly Left of Center
  • Website
Top

Previous

Topic locked
22 posts • Page 2 of 2 • 1, 2

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 2 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub