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)

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.


All times are GMT. The time now is 04:48 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.01209 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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