Jump to content

TXT & PHP Widget


Recommended Posts

3 hours ago, Square Wheels said:

Thanks, happy to donate a few dollars to the update if that would help.  🙂

I am still playing catch up at moment i have lots themes custom ones need updating then i be looking at this followed by more custom updates for other items just very busy period.

Link to comment
39 minutes ago, Pete T said:

I am still playing catch up at moment i have lots themes custom ones need updating then i be looking at this followed by more custom updates for other items just very busy period.

Thanks.  Just offering a few dollars if that would help.  One of my site depends on this for advertising.

Link to comment
6 minutes ago, Square Wheels said:

Thanks.  Just offering a few dollars if that would help.  One of my site depends on this for advertising.

The offer is nice but it just in list that I need to do and that list started of very long but many my plugins was not effected by 4.4.x this one was and not 100% sure why.

I have started rebuilding the widget just not finished so it's getting there that all give you right now.

Link to comment
  • 1 month later...

@Pete T great plugin. I used it for a while, but after update to 4.4.2 and PHP from 5.x -> 7.2 I have something like this

ParseError: syntax error, unexpected 'echo' (T_ECHO) (0)
#0 /some_path/system/Widget/Widget.php(803): IPS\plugins\phptxtwidget\widgets\_sodPhpWidget->render()
#1 /some_path/system/Theme/Theme.php(840) : eval()'d code(17027): IPS\_Widget->__toString()
#2 /some_path/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->widgetContainer('sidebar', 'vertical')
#3 /some_path/system/Theme/Theme.php(840) : eval()'d code(14550): IPS\Theme\_SandboxedTemplate->__call('widgetContainer', Array)
#4 /some_path/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->sidebar('right')
#5 /some_path/system/Theme/Theme.php(840) : eval()'d code(6582): IPS\Theme\_SandboxedTemplate->__call('sidebar', Array)
#6 /some_path/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->globalTemplate('c98720a4367247a...', '\n<div class='ip...', Array)
#7 /some_path/system/Dispatcher/Dispatcher.php(172): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array)
#8 /some_path/system/Dispatcher/Standard.php(118): IPS\_Dispatcher->finish()
#9 /some_path/system/Dispatcher/Front.php(575): IPS\Dispatcher\_Standard->finish()
#10 /some_path/system/Dispatcher/Dispatcher.php(154): IPS\Dispatcher\_Front->finish()
#11 /some_path/index.php(13): IPS\_Dispatcher->run()
#12 {main}

Any idea?

Link to comment
7 hours ago, Rafal Dorobisz said:

@Pete T great plugin. I used it for a while, but after update to 4.4.2 and PHP from 5.x -> 7.2 I have something like this


ParseError: syntax error, unexpected 'echo' (T_ECHO) (0)
#0 /some_path/system/Widget/Widget.php(803): IPS\plugins\phptxtwidget\widgets\_sodPhpWidget->render()
#1 /some_path/system/Theme/Theme.php(840) : eval()'d code(17027): IPS\_Widget->__toString()
#2 /some_path/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->widgetContainer('sidebar', 'vertical')
#3 /some_path/system/Theme/Theme.php(840) : eval()'d code(14550): IPS\Theme\_SandboxedTemplate->__call('widgetContainer', Array)
#4 /some_path/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->sidebar('right')
#5 /some_path/system/Theme/Theme.php(840) : eval()'d code(6582): IPS\Theme\_SandboxedTemplate->__call('sidebar', Array)
#6 /some_path/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->globalTemplate('c98720a4367247a...', '\n<div class='ip...', Array)
#7 /some_path/system/Dispatcher/Dispatcher.php(172): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array)
#8 /some_path/system/Dispatcher/Standard.php(118): IPS\_Dispatcher->finish()
#9 /some_path/system/Dispatcher/Front.php(575): IPS\Dispatcher\_Standard->finish()
#10 /some_path/system/Dispatcher/Dispatcher.php(154): IPS\Dispatcher\_Front->finish()
#11 /some_path/index.php(13): IPS\_Dispatcher->run()
#12 {main}

Any idea?

Do have any php added to the widget ?

Link to comment
4 hours ago, Rafal Dorobisz said:

Yes, I mean I had some PHP code working with the widget before the upgrade, and after upgrade, it stopped. I updated your plugin to the 4.4.x version.

 

Its could be php code using is out of date as the widget works fine and I am using 7.3 php and no issues.

Link to comment
21 minutes ago, Pete T said:

Its could be php code using is out of date as the widget works fine and I am using 7.3 php and no issues.

Ok, I removed it from the database and created from the scratch. It seems that PHP code doesn't accept enters (new lines, so all has to be in one line if not, it will be parsed incorrectly).

Link to comment
  • 4 weeks later...

I seem to be having some trouble editing blocks I've added.

When I add a new TXT block, I'm able to edit it just fine. And save it, and edit it again. Just fine. Unless I reload the page.
If I try and reload the page after I've edited it. It loads for a few seconds, then nothing shows up.

And it doesn't let me edit it any more. At all.

Same with the PHP too.

Other blocks I can edit just fine.

 

The forum is currently running IPS 4.4.3. And We had the IPS4 phpTxt widget, till I updated to the IPS44 phpTxt widget in hopes to fix this problem. But it still remained.

Any help would be greatly appreciated.
Or if you need any more info, let me know.
I'm not really sure what all information is relevant to this issue.

Thanks!

Link to comment
12 hours ago, jamesluck01 said:

I seem to be having some trouble editing blocks I've added.

When I add a new TXT block, I'm able to edit it just fine. And save it, and edit it again. Just fine. Unless I reload the page.
If I try and reload the page after I've edited it. It loads for a few seconds, then nothing shows up.

And it doesn't let me edit it any more. At all.

Same with the PHP too.

Other blocks I can edit just fine.

 

The forum is currently running IPS 4.4.3. And We had the IPS4 phpTxt widget, till I updated to the IPS44 phpTxt widget in hopes to fix this problem. But it still remained.

Any help would be greatly appreciated.
Or if you need any more info, let me know.
I'm not really sure what all information is relevant to this issue.

Thanks!

I personal never had this issue on my dev site and live site, but is there way could record the issue you have via video so see steps you taken get the error/issue to show.

Link to comment

First of all, thank you for making such a valuable plugin available for free! 🙂

One thing I've noticed, at least when making a custom HTML block: if you create a block with a Widget Title, then decide you don't want the title to be displayed on the page and go back and delete it, the delete doesn't work - the title still shows in the widget on the page even though the Widget Title field is now blank.

Link to comment
15 hours ago, liquidfractal said:

First of all, thank you for making such a valuable plugin available for free! 🙂

One thing I've noticed, at least when making a custom HTML block: if you create a block with a Widget Title, then decide you don't want the title to be displayed on the page and go back and delete it, the delete doesn't work - the title still shows in the widget on the page even though the Widget Title field is now blank.

Ok at moment unable reproduce this bug i set widget html block with title and content saved, then refresh page edit widget removed only title and again saved, and it removed no issue not showing so question i have, when removed the title and still showed have tried clear the cache ?

Link to comment
16 hours ago, Pete T said:

Ok at moment unable reproduce this bug i set widget html block with title and content saved, then refresh page edit widget removed only title and again saved, and it removed no issue not showing so question i have, when removed the title and still showed have tried clear the cache ?

I think clearing the cache helped.  Not sure what I was doing before...thanks though. 🙂

 

Link to comment
On 5/25/2019 at 12:59 PM, Pete T said:

I personal never had this issue on my dev site and live site, but is there way could record the issue you have via video so see steps you taken get the error/issue to show.

Sure. Sorry it took a while to get back. Was busy on another project. Anyway, I recoded the issue for you here.

To try and describe the video:

  1. First I made a new text box. Then I edited it again, to show that it works as long as I don't reload the page.
  2. Then I reload the page, to show it doesn't work anymore.
  3. After I try and move it to another box, which shows that it Errors out. And I can no longer delete it unless I close and open the manager again.

I hope this helps?

Link to comment
23 minutes ago, jamesluck01 said:

Sure. Sorry it took a while to get back. Was busy on another project. Anyway, I recoded the issue for you here.

To try and describe the video:

  1. First I made a new text box. Then I edited it again, to show that it works as long as I don't reload the page.
  2. Then I reload the page, to show it doesn't work anymore.
  3. After I try and move it to another box, which shows that it Errors out. And I can no longer delete it unless I close and open the manager again.

I hope this helps?

 

Ok is there other theme pre installed eg default theme as see this is IPS Focus theme as when i tested works on all my own and default theme, plus is the theme been updated for 4.4.3 ? so can rule out items.

Link to comment
On 6/4/2019 at 6:33 PM, Pete T said:

Ok is there other theme pre installed eg default theme as see this is IPS Focus theme as when i tested works on all my own and default theme, plus is the theme been updated for 4.4.3 ? so can rule out items.

No other themes than the default one, and Chameleon Dark from ipsfocus. And it's barely even edited. I tested again with the default IPS theme, which is not edited at all. And it's still the same issue.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...