|
[MyBB 1.4] Shoutbox AJAX
|
|
01-12-2011, 21:00
Post: #31
|
|||
|
|||
|
RE: [MyBB 1.4] Shoutbox AJAX
Paretje, Thanks a lot bro........It works like a charm........U r my Boss !!!
![]() Bro recently I've noticed that ur ajax shout box has auto prune function so that the olders will be automatically out of the shout box when the new shouts come.......thats really great. But they remains in the original shout box & increase the page numbers. Bro can u help me in providing a auto-pruning function so that only 60 shouts will remain in the original shout box......olders will b deleted automatically. My Boss please.....I'll b highly grateful to u Love u
|
|||
|
02-12-2011, 12:18
Post: #32
|
|||
|
|||
|
RE: [MyBB 1.4] Shoutbox AJAX
By default you can prune them manually in the ACP -> Tools & Maintenance -> Shoutbox Pruning. There you can prune by age. Are you satisfied with this, or do you want a more automatic solution?
Online - Urbanus |
|||
|
02-12-2011, 13:40
(This post was last modified: 02-12-2011 14:56 by hiric.)
Post: #33
|
|||
|
|||
|
RE: [MyBB 1.4] Shoutbox AJAX
Paretje, dear thanks for reply......
Actually it wud b nice if I can get an automatic solution bcoz every day i cant b online........so there will b huge chats if I cant remove them. Pls bro it wud b very helpful if u can give me an automatic pruning solution. I'm very novice......& seeking help from my lovely bro (my boss)
|
|||
|
16-12-2011, 16:32
Post: #34
|
|||
|
|||
|
RE: [MyBB 1.4] Shoutbox AJAX
I just found some time to make your task ;-)
Upload to inc/tasks: shoutboxcleanup.php (Size: 1,48 KB / Downloads: 15)
And add it in your ACP: Online - Urbanus |
|||
|
29-01-2012, 05:19
Post: #35
|
|||
|
|||
|
RE: [MyBB 1.4] Shoutbox AJAX
Paretje, thanks a lot bro....really appreciate ur works.....actually I've uninstalled MyBB from my server for a reason.....Few days ago I've installed again & now my forum has ur wonderful shoutbox.....tnx again bro
![]() Bro, I've recently recognized that in Musicalmidget's shoutbox, every shout is seperated by a line & at the last of every shouts, there's a edit & delete button....can u also give a code so that the shouts of ur shoutbox also seperated by that line....(It would also be grateful if u add that edit & shout button at tha last of every shouts in ur shoutbox).......love u as well as ur works
|
|||
|
07-02-2012, 18:16
Post: #36
|
|||
|
|||
|
RE: [MyBB 1.4] Shoutbox AJAX
Well, the line isn't possible at the moment. I think I managed once to fix it, but I should look to it again, which I already planned to do.
For the Edit and Delete, currently, this the best option: Use the following code as shoutbox_ajax_shout template: Code: <span title="{$title}">» {$shout['username']}{$shout['message']} [ <a href="index.php?go_to=shoutbox&view_mode=window&action=edit&sid={$shout['sid']}">Edit</a> ] [ <a href="index.php?go_to=shoutbox&view_mode=window&action=delete&sid={$shout['sid']}">Delete</a> ]</span><br />Online - Urbanus |
|||
|
08-02-2012, 08:47
Post: #37
|
|||
|
|||
|
RE: [MyBB 1.4] Shoutbox AJAX
tnx bro for ur reply & the code......its awesome but a little prob.....this code gives every user the permission to edit & delete every shouts. This permission should match to admin cp shout permissions where we can fix which group can edit & delete shouts !! tnx for ur hard work dude
|
|||
|
08-02-2012, 14:34
(This post was last modified: 08-02-2012 14:34 by Paretje.)
Post: #38
|
|||
|
|||
|
RE: [MyBB 1.4] Shoutbox AJAX
It shouldn't give permission, only the link. But as a more ellegant solution, you can do as follow:
This should be the new template: Code: <span title="{$title}">» {$shout['username']}{$shout['message']}{$options}</span><br />Open inc/plugins/shoutbox_ajax.php and find: PHP Code: $title = $lang->sprintf($lang->shout_hover, $shout['date'], $shout['time'], $shout['ip']); After this, add: PHP Code: //Delete and edit buttonsOnline - Urbanus |
|||
|
08-02-2012, 18:35
Post: #39
|
|||
|
|||
|
RE: [MyBB 1.4] Shoutbox AJAX
yahoo......just tnx a lot.....its working like a charm......I had a faith on u
![]() bro currently my shoutbox shows 20 enrties.....I just want to see that the shoutbox will have a scroll bar so that it can be able to show 60 entries by scrolling. Is it possible bro? |
|||
|
08-02-2012, 19:36
(This post was last modified: 08-02-2012 19:40 by Paretje.)
Post: #40
|
|||
|
|||
|
RE: [MyBB 1.4] Shoutbox AJAX
Yes, but I should look it up. Today I've been bussy to make the MyBB inline_edit.js system work with the shoutbox. I only had to change one of the methods, but I had to look a bit to be able to do, but now it's working. You can test it on my Develop Board.
Now I'm thinking about adding something to delete shouts, but I'm doubting. At least, there should be a way to confirm the delete, and if done, the shout should be deleted and the shoutbox refreshed. Online - Urbanus |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help![[-]](images/TangoBlue/collapse.gif)



Love u


