Jump to content

TXT & PHP Widget

This topic contains 218 posts. A summary containing the most significant posts is available

Featured Replies

 

Not yet I have many items that I am updating before this but update will be coming.

Waiting for the update. :wink:

Thanks.

spongebob squarepants waiting GIF

  • Replies 217
  • Views 31k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I have finial updated to 4.4.1 sorry delay been working overtime get this finished.

  • Not yet I have many items that I am updating before this but update will be coming.

  • For anyone who is interested in the future, this is how I did it. // Initialize IPS4 Framework require_once('./init.php'); // Indicate that we should consider this a front-end session so we can o

Posted Images

 

Not yet I have many items that I am updating before this but update will be coming.

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

  • Author
 

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.

 

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.

  • Author
 

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.

 

I have finial updated to 4.4.1 sorry delay been working overtime get this finished.

Thank you!!

 

I have finial updated to 4.4.1 sorry delay been working overtime get this finished.

 

 

Thank you!!

SO MUCH !!

  • 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?

  • Author
 

@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 ?

 

Do have any php added to the widget ?

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.

 

  • Author
 

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.

 

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).

  • 4 weeks later...
 

Hello @Pete T.

Is it possible to hide a block if there's no content to show ?

Thank you.

Question back please.

  • Author
 

Question back please.

no.

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!

  • Author
 

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.

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.

  • Author
 

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 ?

 

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. 🙂

 

  • Author
 

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

 

It's fine clear cache can fix many issues I always try that first if find a bug.

 

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?

  • Author
 

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.

 

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.

Recently Browsing 0

  • No registered users viewing this page.