vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   End-User Options - Inline (Ajax) Subscription Management (https://vborg.vbsupport.ru/showthread.php?t=119053)

Alan @ CIT 06-18-2006 10:00 PM

Inline (Ajax) Subscription Management
 
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/demo...ger/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

Quote:

Originally Posted by Alan @ CIT
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

Quote:

Originally Posted by Alan @ CIT
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?
Attachment 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

Quote:

Originally Posted by -=Sniper=-
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

Quote:

Originally Posted by leitel
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.


All times are GMT. The time now is 06:15 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01252 seconds
  • Memory Usage 1,820KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete