We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Shoutbox Integrated System
Topic Started: Jun 8 2013, 08:37 AM (364 Views)
DarkTamerx
Member Avatar
Member
[ * ]
Board Address: clanepix.com
Board Software: Zetaboards
Description:

Okay, so what I'm looking for is a code that will auto-post on the Shoutbox for me if I for example.. Post on a specific topic it will post on the shoutbox;


Quote:
 
Darktamerx: Posted on the following topic: (Nba Finals)

Also, making the topic "Nba Finals" a clickable link on the shoutbox

P.s - I'm using Nba finals as a random topic tittle.
Edited by DarkTamerx, Jun 8 2013, 08:37 AM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
So, this code should work for one topic only or do you want to specify the topics it works on?
Offline Profile Goto Top
 
DarkTamerx
Member Avatar
Member
[ * ]
A section of the forums.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//<![CDATA[
$(function () {
var fID = 'FORUM_ID';
var mID = 'USER_ID';
mID = parseInt(mID, 10);

if (location.href.indexOf('/post/?mode=2&type=1&f=' + fID + '') !== -1 && $.zb.stat.mid === mID) {
$('table.posting #c_postbtn').find('button').click(function (e) {
e.returnValue = e.preventDefault && e.preventDefault() ? false : false;
var tID = $('input[name="t"]').val();
var title = $('title').text().split('Posting reply to ')[1];

$.get(main_url + 'index/?force_ads', function (data) {
var shoutxss = $('input[name="shoutxss"]', data).val();

$.post(main_url + 'tasks/?force_ads', {
last: -1,
msg: 'Posted in the following topic: [URL=' + main_url + 'topic/' + tID + '/1/]' + title + '[/URL]',
task: 9,
xc: shoutxss,
success: function () {
$('table.posting').closest('form').submit();
}
});
});
});
}
});
//]]>
</script>
Change FORUM_ID and USER_ID.
Offline Profile Goto Top
 
DarkTamerx
Member Avatar
Member
[ * ]
Thank you
Offline Profile Goto Top
 
Eccentric Feline
Member Avatar
梦想
[ *  *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic