Post URL instead of text


no_avatar
LukaM
 
Posts: 2
Joined: Thu Oct 20, 2016 11:16 pm
 Thu Oct 20, 2016 11:25 pm • via Web
Is there any option to display post URL instead post text? Post text could work great at some points but if there is more posts per hour discussing through chat is almost impossible.
User avatar
IvanPF
Administrator
 
Posts: 2010
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Fri Oct 21, 2016 6:31 pm • via Web
Hi,

There is no simple option, but you can prevent the text display by a file edit.

1. Open /ext/canidev/chat/chat_ajax.php
2. Find and delete:
Code: Select all
$message = generate_text_for_display($row['post_text'], $row['bbcode_uid'], $row['bbcode_bitfield'], $parse_flags, true);
no_avatar
LukaM
 
Posts: 2
Joined: Thu Oct 20, 2016 11:16 pm
 Fri Oct 21, 2016 10:40 pm • via Web
Hi Ivan,

Thank you for reply. Unfortunately it completely isn't what are we looking for. It will only post empty message. I was thinking about changing line to something like:

Code: Select all
$message = generate_text_for_display($this->root_path . 'viewtopic.' . $this->php_ext . '?f=' . $row['forum_id'] . '&p=' . $row['post_id'] . '#p' . $row['post_id']);


To show massage link as it was in mChat (great option), but I can't get working link, address is (let say) almost ok but it isn't working as link.
no_avatar
Iriana
 
Posts: 7
Joined: Tue Nov 15, 2016 8:47 am
 Fri Nov 18, 2016 8:17 am • via Web
Any news for this option? A link will be great or maybe just the beginning of the message like 50 characters.

Great work with this extension, thank you!

Who is online

Users browsing this forum: No registered users and 0 guests