PDA

View Full Version : End-User Options - Inline (Ajax) Subscription Management


Alan @ CIT
06-18-2006, 10:00 PM
Inline Subscription Management
Version 1.0

What does this do?
This little mod allows your members to change their thread subscription options directly from the Forum Display page!

Flash-Demo you say? http://www.citconsultants.co.uk/demos/inline_subscription_manager/index.html


Looks great! How do I install?
Installation is very simple. It involves uploading 1 Product XML and making 2 minor template edits. See the install.txt file inside the zip for full step-by-step instructions.


Important: Unfortunately, my leased vBulletin licence has now expired, and I won't be renewing it until September which means I will be unable to reply to this thread, or update this mod until then. I'm hopeful that the great vBulletin.org community will step in to answer any questions in my absence though :) See you all in early September! :D

Alan @ CIT
06-19-2006, 05:24 PM
Known Bugs: None!

Yorixz
06-19-2006, 05:29 PM
A lot of sexy releases today Alan! This is one of the things that in fact should just be standard functionality in vBulletin, great work :)

Barakat
06-19-2006, 05:46 PM
on test ... thanks Allan Merci

TTG
06-19-2006, 05:54 PM
clicked install
Another one to add to the list of template edits when vbulletin sends out the next update :)

-=Sniper=-
06-19-2006, 05:58 PM
this is pretty cool! waiting for 3.6 before I install.

edit: what did you use to create the flash animation?

Barakat
06-19-2006, 06:00 PM
working great . realy thanks .....

Alan @ CIT
06-19-2006, 06:34 PM
Thanks to everyone for installing and the kind words :)

Sniper: I use ScreenFlash to create them. It's very easy to use and you can knock up a simple animation in a matter of minutes :)

Thanks,
Alan.

C.Birch
06-19-2006, 08:15 PM
Idea, how about making it so people can set up a subscription from the topic list without the need of loading the topic.

Btw installed and working fine :)

Alan @ CIT
06-19-2006, 08:19 PM
Being able to subscribe to a thread is on the todo list, but I can't think of a good way to do it :)

I need something (icon / button / etc) that is on every thread in forumdisplay for the user to click on to show up the Subscribe dropdown. Unfortunately, the only thing I could think of was the threadicon (status icon - opened, closed, etc) but that's being used by vB to open/close threads, so I just don't know :)

Thanks,
Alan.

Mr Chad
06-19-2006, 10:36 PM
very nice!

Tralala
06-19-2006, 11:41 PM
Whoah, that's sexy.

Reeve of shinra
06-19-2006, 11:53 PM
Okay thats on the cool list.

Guest190829
06-19-2006, 11:54 PM
Wow - very nice Alan. I think I will play with this.

Alan @ CIT
06-19-2006, 11:55 PM
Glad you all like it :) You'll be seeing more of these little ajax tools that make your lives easier in more of my hacks in the future :)

Thanks,
Alan.

uaeboy7127
06-20-2006, 01:36 PM
clicked install

we hope if vBulletin team add this on 3.6.0 gold ^_^

bchertov
06-20-2006, 04:55 PM
Glad you all like it :) You'll be seeing more of these little ajax tools that make your lives easier in more of my hacks in the future :)

Thanks,
Alan.Yeah!! You Rock!

On my hit parade, is an easier way of managing FORUM subscriptions. My thought is to have a one page form which displays every forum and your your subscription level in radio buttons and allows you to edit them all at once, but it could also could implemented directly from the Forum Home page or any other page that displays sub-forums.

Gaskell
06-20-2006, 06:25 PM
Very nice - on my subscribed list so I remember this one when we get round to upgrading :)

uaeboy - I agree with you on this! Bloody good hack :)

bchertov
06-20-2006, 11:25 PM
So how can you subscribe to a thread if you are not already subscribed to it???

Alan @ CIT
06-20-2006, 11:47 PM
In the normal way. As mentioned a few posts up, I do plan to add inline subscription to this mod, but I need to think up a good way to do it first :)

Thanks,
Alan.

rmxs
06-21-2006, 07:33 AM
Fantastic :)

Byt i try to install it on 3.5.4 and doesnt work...i get sql error

Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Handle the Ajax calls', 'ajax_complete', 'if ($_POST[\'do\'] == \'update_subs\')\r\n{\r\n\r\n $_POST[\'threadid\'] = convert_urlencoded_unicode($_POST[\'threadid\']);\r\n $_POST[\'changeto\'] = convert_urlencoded_unicode($_POST[\'changeto\']);\r\n \r\n $vbulletin->input->clean_array_gpc(\'p\', array(\r\n \'threadid\' => TYPE_UINT,\r\n \'changeto\' => TYPE_INT\r\n ));\r\n\r\n // -1 = Unsubscribe\r\n // 0 = None\r\n // 1 = Instant\r\n // 2 = Daily\r\n // 3 = Weekly\r\n\r\n $xml = new vB_AJAX_XML_Builder($vbulletin, \'text/xml\');\r\n\r\n if ($vbulletin->GPC[\'changeto\'] != -1)\r\n {\r\n $vbulletin->db->query_write(\"UPDATE \" . TABLE_PREFIX . \"subscribethread\r\n SET emailupdate = \" . $vbulletin->GPC[\'changeto\'] . \"\r\n WHERE threadid = \" . $vbulletin->GPC[\'threadid\'] . \"\r\n AND userid = \" . $vbulletin->userinfo[\'userid\']);\r\n\r\n $xml->add_tag(\'status\', \'updated\');\r\n }\r\n else \r\n {\r\n $vbulletin->db->query_write(\"DELETE FROM \" . TABLE_PREFIX . \"subscribethread\r\n WHERE threadid = \" . $vbulletin->GPC[\'threadid\'] . \"\r\n AND userid = \" . $vbulletin->userinfo[\'userid\'] . \"\r\n LIMIT 1\");\r\n\r\n $xml->add_tag(\'status\', \'deleted\');\r\n }\r\n\r\n $xml->print_xml();\r\n\r\n}', 'cit_inline_subscriptions');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Wednesday, June 21st 2006 @ 11:38:48 AM
Script : admincp/plugin.php
Referrer : admincp/plugin.php?do=productadd
IP Address : 213.5.51.167
Username : ***
Classname : **_database

:(

Alan @ CIT
06-21-2006, 07:48 AM
Hi,

I'm afraid that this hack is for 3.6 Beta 2 or above, not 3.5.4 :)

Thanks,
Alan.

rmxs
06-21-2006, 08:02 AM
LOL yeap i know byt i just try :P

can you conver it for 3.5.4 :) ???

Alan @ CIT
06-21-2006, 12:42 PM
If you edit the Product XML and remove all of the executionorder="5" then install it, it may work, but I can't guarentee it as I haven't tested it :)

Thanks,
Alan.

rmxs
06-23-2006, 07:36 AM
:) i konw that and if it not work??

You cannot port it to 3.5.4?? 3.6 its still in beta :)

Alan @ CIT
06-23-2006, 08:09 AM
Sorry, but 3.5 is the past, 3.6 is the future :) All of my new hacks will only be supported on 3.6 from now on :)

Thanks,
Alan.

C.Birch
06-23-2006, 01:37 PM
Being able to subscribe to a thread is on the todo list, but I can't think of a good way to do it :)

I need something (icon / button / etc) that is on every thread in forumdisplay for the user to click on to show up the Subscribe dropdown. Unfortunately, the only thing I could think of was the threadicon (status icon - opened, closed, etc) but that's being used by vB to open/close threads, so I just don't know :)

Thanks,
Alan.

how about icons like this i just done fast?
49872

-=Sniper=-
06-23-2006, 02:07 PM
I like the idea of inline subscription, but why would someone subscribe to something they have not read, a option when reading the thread is enough imho.

Gaskell
06-23-2006, 02:47 PM
I tend to use a subscription without emails just to flag it in my CP that I wanted to read it or it might be useful sometime without actually reading it. Saves having loads of bookmarks for one forum :)

I like the idea :)

C.Birch
06-23-2006, 05:57 PM
I like the idea of inline subscription, but why would someone subscribe to something they have not read, a option when reading the thread is enough imho.

They might have read it and gone out of the topic and it would save going back in to it.

People might have also posted a topic and after thinked about subscribin to it and so on.

Someone might have read the preview via mouse over and that also.

leitel
06-29-2006, 04:15 PM
Very awesome hack. Top of my list to add. What draw me to this hack is my interest in allowing users to subscribe to Forums. In that way, whenever a new post OR and new Thread is created, they are notified.

For example, we have an "Ask a Professional" Forum. When a user posts a question in that forum, an email would be sent to any participating healthcare professionals. Before I upgraded to 3.6 beta 3, I created a hack that would automatically send an instant message to everyone in a particular usergroup, ie, healthcare pros. Some members of this group were not interested in participating and thus were being spammed with messages. So I have in mind a hack that would appear above/at every forum that would allow users to subscribe, kinda like RSS but via instant email updates.

bchertov
06-29-2006, 04:44 PM
Very awesome hack. Top of my list to add. What draw me to this hack is my interest in allowing users to subscribe to Forums. In that way, whenever a new post OR and new Thread is created, they are notified. I am doing the same thing, though my forum has a few custom things about it. We are adding a column in the forumhome that shows their current subscription level, including "No email" that they can click on to subscribe or unsubscribe to that forum. We also have a hack to allow subscribing for individual emails at the forum level. I have been warned that the server may not be able to handle this, but with 2,200 members and only a small percentage of them sign up for individual emails by forum, it hasn't been a problem (while being on a shared server). I am afraid that we can't take the time now to package this for public use, nor support it, but I fine with putting out the code in a "as is" condition if you are interested. Should be ready in a week.

leitel
06-29-2006, 04:49 PM
That would be great. I would be happy to share any 'enhancements' along the way. I'll await your release of this. Thanks! :)

leitel
07-05-2006, 04:33 AM
Just checking in. I just completed my implementation of vBSEO. Awesomeness!
Anyway, I consider thread/forum subscription management a high priority. Sssooooo..... howz it coming? Progress? :)

a simple fa?ade
07-06-2006, 06:53 PM
I really enjoyed this hack. I installed it on one of the two live forums I work for. Great job!

ForumDog
07-30-2006, 08:43 AM
Superb, like it very much thank you. And I'm quite happy with it as it is, I'd rather have people read the threads before subscribing anyway I think. ;)

There isn't a chance of the AJAX being stored externally is there? It does quite horrible things to XHTML validation when it's run inline which in turn completely nixes any CSS validation at all. Come to that, the comment formatting means the comments don't get stripped but that really is being picky. :p

Not a big deal, just curious. Thanks again for your work!

big dan
08-05-2006, 02:46 PM
Awesome mod, works perfectly :)

BCC
08-09-2006, 01:22 PM
Love This Hack
Very Simple to Install and Very Effective.
Thanks Alan @ CIT

Dexter_kcd
08-22-2006, 08:38 AM
Nice customization, thanks for this.

Just a note in case anyone else runs into this: if you have disabled the "Check Thread Subscription" option (in the "Thread Display Options (showthread)" section of the Vbulletin options) you need to turn that back on before this will work. It had been disabled on our board because a previous Admin had disabled many of the options labelled "This can have an effect on performance" due to server problems with a former webhost. So make sure the "Check Thread Subscription" option is set to "Yes" before installing this.

Dexter...

marlita
08-25-2006, 02:00 AM
Does anyone know how to make this work in the recent threads section? i use the vb cmps, so i don't know if that makes a difference...:confused:

thanks.

bada_bing
08-25-2006, 02:37 AM
Does this work with vb 3.5.3?

TheBlackPoet
09-14-2006, 07:43 AM
this is great! much more efficient than how i was making the selection before

I appreciate your work!!

BobbyBig
09-16-2006, 12:45 PM
Please make it work for 3.5.4 :(

Many ppl still are using it, and they will for a long time

abramelin
12-15-2006, 10:48 PM
does this mod work on 3.6.4?

Smoothie
12-16-2006, 01:39 PM
does this mod work on 3.6.4?Yep it does.

heynurse
12-18-2006, 03:50 PM
Alan, this is sweet! great hack!!

side note: I just posted a request for a similar hack, but for moderated post? just thought I'd mention it here: https://vborg.vbsupport.ru/showthread.php?t=134289&highlight=ajax

GrendelKhan{TSU
12-20-2006, 07:51 PM
bookmarked!! (for when I'm back at my other computer) :D

Hornstar
12-21-2006, 05:56 AM
yeah i love akax ^^ has made things so much better for forums.

Smoothie
12-22-2006, 01:46 AM
yeah i love akax ^^ has made things so much better for forums.What the hell is akak?

Smoothie
02-25-2007, 11:35 PM
What do you think about being able to subscribe to threads from forumdisplay?

Tralala
02-26-2007, 10:01 PM
What the hell is akak?

He didn't type "akak," he typed "akax," which is probably a typo of "ajax," considering the "k" is right next to the "j."

How you got "akak" though, is a different question entirely. :p

Smoothie
02-26-2007, 11:56 PM
He didn't type "akak," he typed "akax," which is probably a typo of "ajax," considering the "k" is right next to the "j."

How you got "akak" though, is a different question entirely. :pakax, akak, same meaningless dribble. :p

Tralala
02-27-2007, 06:31 PM
Back on track to the subject at hand... this great mod.

I'd like to see a way to easily add a subscription in the first place via AJAX, as mentioned earlier in the thread. But I also see that Alan won't be able to upgrade or support this in the foreeable future.

Oh well. It's still cool as it is. :)

/clicks install

Tralala
03-10-2007, 04:54 PM
This hack was putting the "subscribed" icon on it's own line:
https://vborg.vbsupport.ru/external/2007/03/22.jpg

So I changed the code for threadbit replacement from <div> to <span> and it cleaned things up...

<span id="inline_subs.$thread[threadid]">
<a href="#" id="inline_subs.$thread[threadid]" onclick="set_thread($thread[threadid]); return false;"><img class="inlineimg" id="subicon_$thread[threadid]" border="0" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /></a>
<script type="text/javascript">
vbmenu_register("inline_subs.$thread[threadid]", true);
</script>
</span>

Hope this helps someone else out there...

rjmjr69
03-18-2007, 09:50 AM
Ok is this normal. When ever I click on the icon just once it lets me edit the thread title click on it twice I get the drop down? I mean I'm cool with that but is it normal? Great hack

Tralala
03-18-2007, 04:43 PM
rjmjr69, you've got something funky going on... because that is not normal. One click on the icon gives me the pull-down. Double-clicking is what lets me edit the thread title; that's a standard vB 3.5+ feature.

pollon
03-18-2007, 08:32 PM
does it work with 3.6.5?

Smoothie
03-18-2007, 08:35 PM
:up:does it work with 3.6.5?

BANDiT600
03-18-2007, 08:56 PM
Looks nice, very usefull hack. Thank you!

/me BANDiT600 clicks install

pollon
03-18-2007, 09:03 PM
I've just installed but this is what i get :( :

http://immagini.p2pforum.it/out.php/i118513_error.png

rjmjr69
03-19-2007, 02:49 AM
rjmjr69, you've got something funky going on... because that is not normal. One click on the icon gives me the pull-down. Double-clicking is what lets me edit the thread title; that's a standard vB 3.5+ feature.


Ya that FUNKY thing is ME touching stuff I shouldnt touch....lol All is well working just fine now thank you very much great mod

BANDiT600
03-29-2007, 08:14 PM
I've got javascript error in search page, when I try to manage subscription.

j_86
05-08-2007, 01:05 AM
:up:

Bump