Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Javascript] Log on automatically chatbox



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  Guest

avatar
Guest


Tutorial: Log on automatically chatbox

Based on this tutorial, you can make when entering the index, forum users are automatically logged into the chatbox.


--> Tutorials, tips and tricks <--
Log on automatically chatbox


- Javascript
Code:
$(function(){  if(document.getElementById('logout')) $.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent=');  });
- Applying the JS code
Go to Control Panel Modules HTML and Javascript code Javascript Management
Click the "Create a new javascript"

Title - You have to put a title for the page, so you can identify it in the list of pages JavaScript Control Panel;
Investment - Choose "On index";
JavaScript code - In this field we have to insert the code that worked in the previous item;
Confirm - Finally, after adding the code you need to click this button to save the setting. If you click another button or another section, the changes will not be validated.



© PunBB Design


If you have any questions related to this topic create a topic with the following title:
Log on automatically chatbox

Powered by PunBB
Currently 0 users have thanked Guest for this post:

2
Offline

  Shadow

avatar
Administrator
Administrator
Tutorial accepted, 80 points added.

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

3
Offline

  ddoesmc

avatar
Pemanently Banned
Pemanently Banned
Thank you for the awesome tip!

Powered by PunBB
Currently 0 users have thanked ddoesmc for this post:

4
Offline

  Ultron

avatar
Punbb Rookie
Punbb Rookie
This code doesn't work properly for me. The first time I refresh the page it connects me to the cbox but the typing box in the cbox is not visible, requiring me to refresh the page again or to log off the cbox manually and then log onto it again. Do you have a way to fix this?

Powered by PunBB
Currently 0 users have thanked Ultron for this post:

5
Offline

  cloud02

avatar
★Moderator★
★Moderator★
is that your own code or there's someone to get a Credits?

Powered by PunBB
Currently 0 users have thanked cloud02 for this post:

6
Offline

  eLektronic2017x

avatar
V.I.P. Member
V.I.P. Member
like

Powered by PunBB
Currently 0 users have thanked eLektronic2017x for this post:

7
Offline

  Sponsored content



Powered by PunBB
Currently 0 users have thanked Sponsored content for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum