[Released] Ajax Chat Addon Respond to user

MODs and Styles for phpBB3.

To post your MOD or style, go to the STG MOD Manager
Forum rules
Go to http://startrekguide.com/mods to submit your MOD or style

[Released] Ajax Chat Addon Respond to user

Postby Gonculator » 19 Jun 2011, 13:29

MOD Title: Ajax Chat Addon Respond to user
MOD Author: TheKiller
MOD Description: It will add a " @ " Symbol on the left of the UserName, which When clicked, it will Insert "@TheKiller, " In the Message Form,To respond the User.
MOD Version: 1.0.00
MOD Status: Released

Tested on phpBB version: 3.0.6
Released: 19 Jun 2011

Installation Level: easy
Installation Time: ~ 3 Minutes

Demo: Click here to visit the demo website

This is an automated message posted by STG’s MOD Manager version 0.2.0
Attachments
Respond to user.zip
(31.98 KiB) Downloaded 233 times
I am Gonculator, the STG Forum Robot -- Please do not PM me, I will not answer, but I will eat users who PM me. :twisted:
User avatar
Gonculator
Forum Robot
Forum Robot
 
Posts: 640
Joined: 16 Nov 2006, 21:52
Location: Forum Robot
Gender: Male


Re: [Released] Ajax Chat Addon Respond to user

Postby Dragosvr92 » 29 Jun 2011, 02:22

BEEP
Previous username: TheKiller
Avatar on Memberlist 1.0.3

Image
User avatar
Dragosvr92    
MOD Author
MOD Author
 
Posts: 362
Joined: 26 Sep 2009, 10:32
Location: Romania
Gender: Male
phpBB Knowledge: 3

Re: [Released] Ajax Chat Addon Respond to user

Postby faku1810 » 14 Jul 2011, 16:15

Hey, thanks for this mod, I really appreciate it because I didn't know how that could be done. However, I'd rather prefer using it to display the quote bbcode button (I have them enabled in my chat) so I hope you won't mind if I make some edits to it when installing it. Thanks again ;)

Edit: Hey, it looks like this wouldn't be as easy as I thought, lol

I edited your mod so it would be like this
Code: Select all
<a href='#' onclick='insert_text('[quote=&quot;{chatrow.NICK}&quot;]{chatrow.MESSAGE}[/quote]', true); return false;' title='{L_CHAT_QUOTE}';><img alt='{L_CHAT_QUOTE}' src='{T_IMAGESET_LANG_PATH}/chat_quote.png' /></a>


And it works nicely (though it adds an space before and after the quote, for some reason); except for this little problem you can see in the attachment :/ It seems like the quotes that contain html breaks this kind of mod. This happens with the bot I installed and the bbcodes you try to post. Do you have any clue on what I could do to make this work?


Edit: Again, sorry... I've been researching a bit on how to fix the font size issue, and found out about the add_quote() function, therefore I tried to replace the code of your mod using that function instead of insert_text. And now it doesn't screw my chat, but doesn't work either... Any ideas? (I've attached a screen capture of how my chat looks now)

This is the new code

Code: Select all
<a href="#message" onclick="add_quote({chatrow.MESSAGE_ID},{chatrow.NICK})" title="{L_CHAT_QUOTE}"><img alt="{L_CHAT_QUOTE}" src="{T_IMAGESET_LANG_PATH}/chat_quote.png" /></a>
Attachments
quote.png
faku1810    
Cadet IV
Cadet IV
 
Posts: 52
Joined: 09 Jul 2011, 16:31
Gender: Male
phpBB Knowledge: 1

Re: [Released] Ajax Chat Addon Respond to user

Postby Eurovagens » 07 Oct 2011, 01:08

I dont understand… Even with the modifications, I am not getting it to work.

I have added the codes (pretty simple) and even tried the updated above… and nothing.
Eurovagens    
Crewman
Crewman
 
Posts: 5
Joined: 07 Oct 2011, 01:05
Gender: Male
phpBB Knowledge: 1

Re: [Released] Ajax Chat Addon Respond to user

Postby Dragosvr92 » 07 Oct 2011, 05:56

Just Install the MOD, without faku1810,s Edits. It will Work fine.
I havent looked what his edits are for.
Previous username: TheKiller
Avatar on Memberlist 1.0.3

Image
User avatar
Dragosvr92    
MOD Author
MOD Author
 
Posts: 362
Joined: 26 Sep 2009, 10:32
Location: Romania
Gender: Male
phpBB Knowledge: 3

Re: [Released] Ajax Chat Addon Respond to user

Postby PrOzinhubr » 28 Jul 2012, 19:41

Doesn't work, I click the @ and nothing changes, edited everything correctly!
PrOzinhubr
Crewman
Crewman
 
Posts: 1
Joined: 09 Jun 2012, 19:10
Gender: Female
phpBB Knowledge: 1

Re: [Released] Ajax Chat Addon Respond to user

Postby Dragosvr92 » 01 Aug 2012, 21:07

PrOzinhubr wrote:Doesn't work, I click the @ and nothing changes, edited everything correctly!

Yes, i noticed that months ago, and i fixed it in a new mod, but i didnt bother to check and upload it.

I think you have to include in the chat_body.html but isnt it included into your overall header?
Code: Select all
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/forum_fn.js"></script>

Cant remember.
Previous username: TheKiller
Avatar on Memberlist 1.0.3

Image
User avatar
Dragosvr92    
MOD Author
MOD Author
 
Posts: 362
Joined: 26 Sep 2009, 10:32
Location: Romania
Gender: Male
phpBB Knowledge: 3


Return to phpBB3 Customizations

Who is online

Users browsing this forum: Majestic-12 [Bot] and 4 guests