vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - [DBTech] Tweet Poster v1 (vB4) (https://vborg.vbsupport.ru/showthread.php?t=300794)

kingMOB 08-07-2013 01:23 PM

Quote:

Originally Posted by DragonByte Tech (Post 2437623)
Your vB version is probably too old to support the forum selector. Please try upgrading to vB 4.1.12 or vB 4.2.0 :)

Hi,

thanks for the response, but, I'll not upgrade my forum so soon (templates issues). There's nothing that could be done?

DragonByte Tech 08-07-2013 01:33 PM

EDIT: You may be able to add the feature to your vB version by editing /includes/adminfunctions_options.php, I'll download 4.0.8 and see if I can find the changes needed.

EDIT 2: Find:
PHP Code:

        // just a label
        
default:
        {
            
$handled false;
            (
$hook vBulletinHook::fetch_hook('admin_options_print')) ? eval($hook) : false;
            if (!
$handled)
            {
                eval(
"\$right = \"<div id=\\\"ctrl_setting[$setting[varname]]\\\">$setting[optioncode]</div>\";");
                
print_label_row($description$right'''top'$name50);
            }
        } 

Add above
PHP Code:

        case 'forums:all':
        {
            
$array construct_forum_chooser_options(-1,$vbphrase['all']);
            
$size sizeof($array);

            
$vbphrase[forum_is_closed_for_posting] = $vbphrase[closed];
            
print_select_row($description$name.'[]'$arrayunserialize($setting['value']), false, ($size 10 10 $size), true);
        }
        break;

        case 
'forums:none':
        {
            
$array construct_forum_chooser_options(0,$vbphrase['none']);
            
$size sizeof($array);

            
$vbphrase[forum_is_closed_for_posting] = $vbphrase[closed];
            
print_select_row($description$name.'[]'$arrayunserialize($setting['value']), false, ($size 10 10 $size), true);
        }
        break; 

Find
PHP Code:

                else if (preg_match('#^usergroup:[0-9]+$#'$oldsetting['optioncode']))
                {
                    
// serialize the array of usergroup inputs
                    
if (!is_array($settings["$oldsetting[varname]"]))
                    {
                         
$settings["$oldsetting[varname]"] = array();
                    }
                    
$settings["$oldsetting[varname]"] = array_map('intval'$settings["$oldsetting[varname]"]);
                    
$settings["$oldsetting[varname]"] = serialize($settings["$oldsetting[varname]"]);
                } 

Replace with
PHP Code:

                else if (preg_match('#^(usergroup|forum)s?:([0-9]+|all|none)$#'$oldsetting['optioncode']))
                {
                    
// serialize the array of usergroup inputs
                    
if (!is_array($settings["$oldsetting[varname]"]))
                    {
                         
$settings["$oldsetting[varname]"] = array();
                    }
                    
$settings["$oldsetting[varname]"] = array_map('intval'$settings["$oldsetting[varname]"]);
                    
$settings["$oldsetting[varname]"] = serialize($settings["$oldsetting[varname]"]);
                } 

This may or may not work and is entirely untested / unsupported!

Fillip

puertoblack2003 08-07-2013 03:38 PM

Quote:

Originally Posted by DragonByte Tech (Post 2437623)
I'm sorry to hear you are unwilling to attempt to resolve the mod conflict you're experiencing (ref. the thread @ our forum). If another user surfaces that is willing to answer our questions we'll be able to resolve it :)

Fillip

I gave you what i know.Even server log info.If that didn't help then the mod needs to be re-visited.You left out few important feature that you should have posted that others should look into when installing the this mod

* Make sure that the server is running json
* Make sure server is running Curl and openssl is enable

When in twitter dev console make sure to enable read/write feature is selected.Because in read option.It will not allow your post to show up in Twitter.And that what i explained when nothing was showing up in twitter when i did a test post.

Good Luck and Have a Great Day !!!!

DragonByte Tech 08-07-2013 03:47 PM

Quote:

Originally Posted by puertoblack2003 (Post 2437677)
I gave you what i know.Even server log info.If that didn't help then the mod needs to be re-visited.

Unfortunately that's not how it works :(

You left multiple questions un-answered, including follow-up questions to your response.

If we had been unable to resolve your issue remotely, I would have offered to visit your site and look into it there :)

Quote:

Originally Posted by puertoblack2003 (Post 2437677)
You left out few important feature that you should have posted that others should look into when installing the this mod

* Make sure that the server is running json
* Make sure server is running Curl and openssl is enable

I was unaware that there existed servers without these features enabled. I will look into adding pre-install checks to ensure these features are available before the modification will install :)

Quote:

Originally Posted by puertoblack2003 (Post 2437677)
When in twitter dev console make sure to enable read/write feature is selected.Because in read option.It will not allow your post to show up in Twitter.And that what i explained when nothing was showing up in twitter when i did a test post.

This is already explained in the installation instructions (Section 4, Step 4-5) :)


Fillip

kingMOB 08-07-2013 11:16 PM

Quote:

Originally Posted by DragonByte Tech (Post 2437638)
EDIT: You may be able to add the feature to your vB version by editing /includes/adminfunctions_options.php, I'll download 4.0.8 and see if I can find the changes needed.
Fillip

Thank you Fillip, it worked =)

Unfortunately the plugin is not compatible with Instant New Thread Notification. As soon as INTN is activated, after submitting a new thread that will be tweeted, it'll be created, tweeted and instantly notified. But there is no redirect to the created thread, the screen will simply hang on in the thread form screen.

Since there's no more support to the other mod (the code is re-usable), there's anything that could be done to solve this?

DragonByte Tech 08-07-2013 11:35 PM

I cannot download that modification to test it so I couldn't say, sorry :(

There are no files attached to that modification.


Fillip

kingMOB 08-08-2013 02:48 AM

Quote:

Originally Posted by DragonByte Tech (Post 2437740)
I cannot download that modification to test it so I couldn't say, sorry :(

There are no files attached to that modification.


Fillip

Sorry, this is the right link.

final kaoss 08-08-2013 04:23 PM

Thanks, installing the dbtech tweeter.

DragonByte Tech 08-10-2013 03:04 PM

Quote:

Originally Posted by kingMOB (Post 2437752)

The code from that modification runs after all Tweet Poster code (as you yourself attest to) so if that mod disables the redirect then that's something you should take up with the author of that modification.

If you have display_errors set to On in your php.ini you may be able to tell if there's any PHP errors preventing the redirect.


Fillip

DragonByte Tech 08-10-2013 03:05 PM

<font size="3">Tweet Poster v1.0.0 Patch Level 1</font>
Change: The XML file will no longer allow product installation if required features are not supported
Fix: No longer posts weird symbols in lieu of non-Latin characters like Arabic writing
Fix: Fixed an issue with "cannot redeclare class Twitter" in certain scenarios

Fillip


All times are GMT. The time now is 01:07 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.01253 seconds
  • Memory Usage 1,787KB
  • 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_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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