How can configure the Widgets?
Announcement
Collapse
No announcement yet.
vBulletin CMS Can't Configure Widgets
Collapse
X
-
I have created some widgets in the vBulletin CMS, but when I click on configure in the Widget Manager Screen the browser window turns grey for a short period of time, then returns me to the Widgets Manager screen. I have tied this in both Firefox and EI and get the same thing happening.
How can configure the Widgets?Tags: None
-
This is most likely a problem with your .htaccess files.
Try adding a line like this to your rewrite rules:
Code:RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}
Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API
Comment
-
I had the same issue, and it turned out it was because I had a CMS URL specified in the settings. Check your vBulletin settings under "Content Management" and see if you have "CMS URL" set to something other than blank (the default).
The problem is the Configure link is actually an AJAX request, and AJAX can't make requests to domains (or sub-domains) other than the domain it was started from. Since I had the CMS URL set to http://articles.digitalpoint.com, the underlying AJAX request was going to http://articles.digitalpoint.com/widget.php, which is illegal (as far as AJAX is concerned) since the AJAX request started from http://forums.digitalpoint.com
It's related to this bug report: http://tracker.vbulletin.com/browse/VBIV-6332
Ideally the vB_Route::getCurrentURL() method should not be forcing an absolute URL when it's using the call to build a URL for an AJAX request (maybe it needs a $aboslute_url = true) option in the function or something.
As a work-around, open up your admincp/cms_admin.php file, way down at the bottom, change this line:
PHP Code:$config_url = vB_Route::create('vBCms_Route_Widget', 'config/' . $widget->getID() . '/0')->getCurrentURL();
PHP Code:$config_url = str_replace(vB::$vbulletin->options['vbcms_url'], '', vB_Route::create('vBCms_Route_Widget', 'config/' . $widget->getID() . '/0')->getCurrentURL());
Sphinx Search for vBulletin 4: https://marketplace.digitalpoint.com...tin-4.870/item
Someone send me a message on Twitter when this site is usable again. https://twitter.com/digitalpoint
Comment
-
It seems that developer team doesn't wont to resolve this issue soon.
Can someone help me to make ajax works on blog and profile page?
I have this situation: every user has it's own subdomain for profile page and blog. For example:
username.site.com (user's profile page)
username.site.com/blog (user's blog homepage)
and my website is on www.site.com/forum.
Can someone tell me what and where I have to change the code in order to make ajax works on every subdomain?
Thank you.
Comment
-
Originally posted by galerio View PostCan someone tell me what and where I have to change the code in order to make ajax works on every subdomain?Sphinx Search for vBulletin 4: https://marketplace.digitalpoint.com...tin-4.870/item
Someone send me a message on Twitter when this site is usable again. https://twitter.com/digitalpoint
Comment
-
Thank you digitalpoint, but I have not enough skills to understand how to put the solution.
For exmple, in a js there is the line
Code:YAHOO.util.Connect.asyncRequest("POST", "threadtag.php?contenttype=" + this.contenttype + "&contentid=" + this.contentid, {
Code:YAHOO.util.Connect.asyncRequest("POST", window.location.protocol + "//" + window.location.hostname + "/threadtag.php?contenttype=" + this.contenttype + "&contentid=" + this.contentid, {
But when the line is:
Code:YAHOO.util.Connect.asyncRequest("POST", form.action, {
Code:YAHOO.util.Connect.asyncRequest("POST", 'online.php?do=resolveip&ipaddress=' + PHP.urlencode(this.ip), {
Code:YAHOO.util.Connect.asyncRequest("POST", desturl, { success: this.callback }, datastream + "&securitytoken=" + SECURITYTOKEN + "&s=" + fetch_sessionhash());
Code:YAHOO.util.Connect.asyncRequest("POST", this.vars.ajaxtarget + "?do=" + this.vars.ajaxaction + "&" + this.vars.objecttype + "=" + this.objectid, {
I counted about 53 js files with asyncRequest, and in the most of them it is simple to make the change... but there are others too complicated for me.
Is there someone that has already changed all js and want to share with us?
Comment
-
I have just modified some js files that containCode:asyncRequest("POST", "some_file.php"
But ... my forum home is in a subdirectory "site.com/forum" and there are some ajax requests that are now for php files from root, for example:
site.com/ajax.php?do=editorswitch
and should be:
site.com/forum/ajax.php?do=editorswitch
The example above refers to the "Switch Editor Mode" to post comments on blog or to post in forum! So I have to put an htaccess rule in the root htaccess (not the forum's one):
Code:RewriteRule ^ajax.php(.*) forum/ajax.php$1 [L]
Last edited by galerio; Sun 17 Apr '11, 9:39am.
Comment
-
Unable do configure widgets! Same issue here
And not a fix
Comment
-
You need to open your own threads for help with your specific problems.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API
Comment
-
hey guys, went though the same problem and it was an add on mod called all in one that was doing it. if you have that installed you will need to get rid of it. if you don't then you need to disable each mod you have one at a time and then check to see if the configure will work and then move on the the next until you find the one causing it. Once i figured out the one causing it on my site I was able to configure widgets. Keep in mind that I have allot of mods installed and it was not a quick task to do,
Also you need to make sure that you have everything configured correctly in your options as well as adding the line to the htaccess file.
Code:[I]RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}[/I]
Comment
-
Originally posted by digitalpoint View PostI had the same issue, and it turned out it was because I had a CMS URL specified in the settings. Check your vBulletin settings under "Content Management" and see if you have "CMS URL" set to something other than blank (the default).
The problem is the Configure link is actually an AJAX request, and AJAX can't make requests to domains (or sub-domains) other than the domain it was started from. Since I had the CMS URL set to http://articles.digitalpoint.com, the underlying AJAX request was going to http://articles.digitalpoint.com/widget.php, which is illegal (as far as AJAX is concerned) since the AJAX request started from http://forums.digitalpoint.com
It's related to this bug report: http://tracker.vbulletin.com/browse/VBIV-6332
Ideally the vB_Route::getCurrentURL() method should not be forcing an absolute URL when it's using the call to build a URL for an AJAX request (maybe it needs a $aboslute_url = true) option in the function or something.
As a work-around, open up your admincp/cms_admin.php file, way down at the bottom, change this line:
PHP Code:$config_url = vB_Route::create('vBCms_Route_Widget', 'config/' . $widget->getID() . '/0')->getCurrentURL();
PHP Code:$config_url = str_replace(vB::$vbulletin->options['vbcms_url'], '', vB_Route::create('vBCms_Route_Widget', 'config/' . $widget->getID() . '/0')->getCurrentURL());
my code doest say
PHP Code:$config_url = vB_Route::create('vBCms_Route_Widget', 'config/' . $widget->getID() . '/0')->getCurrentURL();
PHP Code:$config_url = vBCms_Route_Widget::getUrl(array('action' =>'config' ,'widget' => $widget->getID()), null, true);
is that the same and can i still change it... i have the same problem with the configuration
EDIT: i tried it - and it didnt make a difference... i still cant configure widgets and i have no idea where to find the htacces - i know i have seen it before... but havent a clue whereLast edited by Miss T; Sat 17 Sep '11, 10:57pm.
Comment
Related Topics
Collapse
-
by IggyPhello,
i am having the posting/editing issues after upgrade to 5.0.3
i have tried some fixes that failed, but now i notice this in diagnostics which i wonder could be related:
...-
Channel: Support Issues & Questions
Wed 3 Jul '13, 12:34am -
Comment