Jump to content

TXT & PHP Widget

Featured Replies

12 hours ago, jackflash said:

How can I fix this

We have same issue.

We get round it by deleting that box and then recreating it again

  • Replies 217
  • Views 28.8k
  • 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

On 7/19/2018 at 8:10 PM, Pete T said:

if read correctly you added php code into block yes or no ? if yes its that breaking your site not my plugin as there no invalid code in my plugin.

Nope, I never used this plugin before and had no chance to add anything to it. It won't let me go this far — the "Couldn't get list of available blocks" error message gets in the way.

  • Author
18 minutes ago, im_mortal said:

Nope, I never used this plugin before and had no chance to add anything to it. It won't let me go this far — the "Couldn't get list of available blocks" error message gets in the way.

I happy take look your site but will need admin cp address if I may and if so please send me details.

5 hours ago, Pete T said:

if uninstalled would have drop all the data so little unsure why showing have cleared your cache ?

I have cleared cache in the IPB admin, browser cache on all browsers and restarted the computer itself.  Very odd.  I can send you the login if you'd like to see.

5 hours ago, Unlucky said:

We have same issue.

We get round it by deleting that box and then recreating it again

There's no X spot to delete the box.

  • Author
39 minutes ago, jackflash said:

I have cleared cache in the IPB admin, browser cache on all browsers and restarted the computer itself.  Very odd.  I can send you the login if you'd like to see.

There's no X spot to delete the box.

There would not be X to delete it have box says edit and please send details via PM

51 minutes ago, Pete T said:

There would not be X to delete it have box says edit and please send details via PM

PM sent ?

I'm having a devil of a time thinking how to over-ride the sidebars's title box CSS to match my forum title's CSS with a theme.  Quick and easy cut-paste of the class in chrome's console, not sure how to enter it as custom css.  Any clues? Site is here

It's using ipsType_reset ipsWidget_title

It needs to use ipsType_sectionTitle ipsType_reset cForumTitle 

Edited by Adam chesters

  • Author
20 hours ago, Adam chesters said:

I'm having a devil of a time thinking how to over-ride the sidebars's title box CSS to match my forum title's CSS with a theme.  Quick and easy cut-paste of the class in chrome's console, not sure how to enter it as custom css.  Any clues? Site is here

It's using ipsType_reset ipsWidget_title

It needs to use ipsType_sectionTitle ipsType_reset cForumTitle 

If theme using different CSS for your widget etc Vs default core just add same css style to one being used my widget as using Chrome you copy CSS style add into custon.css very easy.

  • 4 weeks later...

Hello! Is there any way to "clear" a stored block when I get an error message caused by erroneous PHP code, like this one?

#0 /home/abc/public_html/system/Widget/Widget.php(103): IPS\plugins\phptxtwidget\widgets\_sodPhpWidget->init()
#1 /home/abc/public_html/system/Widget/Widget.php(296): IPS\_Widget->__construct('g3hiib76r', Array, NULL, 'vertical')
#2 /home/abc/public_html/system/Dispatcher/Front.php(538): IPS\_Widget::load(Object(IPS\Plugin), 'sodPhpWidget', 'g3hiib76r', Array, NULL, 'vertical')
#3 /home/abc/public_html/system/Dispatcher/Dispatcher.php(148): IPS\Dispatcher\_Front->finish()
#4 /home/abc/public_html/index.php(13): IPS\_Dispatcher->run()
#5 {main}

Where is this widget's content being saved? Anywhere in filesystem or database?

Thanks in advance for your help.

EDIT: Just found it on database and solved it by editing it there.

Edited by webrain_merged

  • 4 weeks later...

I'm having a problem with PHP & TXT Widget that started a few months ago. It is now triggering render blocking Javascript errors, which it never used to do. Clearly something changed, either with IPB updates, or something else. I am hoping for a fix for this.

This fix helped solve the issue:

In template Core > global > global > includeJS add "defer" to this line:
<script defer src='{{if $js->data['host'] == parse_url( \IPS\Settings::i()->base_url, PHP_URL_HOST )}}{expression="$js->setQueryString( 'v', \IPS\CACHEBUST_KEY )"}{{else}}{expression="$js"}{{endif}}' data-ips></script>
 

I made a TXT widget!  Working good.  Is there a way to display it on all sections of the forum without adding(c/p) individual TXT widgets too all sections?

  • Author
12 hours ago, kihon said:

I made a TXT widget!  Working good.  Is there a way to display it on all sections of the forum without adding(c/p) individual TXT widgets too all sections?

not with this widget nope. 

3 hours ago, Pete T said:

not with this widget nope. 

thanks, I moved the code to a block.

  • 4 weeks later...

How can I see the member_name or member_id in this applications? My idea is to create a welcome block.

  • Author
33 minutes ago, Fred Krugger said:

How can I see the member_name or member_id in this applications? My idea is to create a welcome block.

its would require bit work and not sure plugin design in that way.

It was hard for me to get there, but if it is possible to do what I want in a personalized block, I share with you the way it worked for me...

$member = \IPS\Member::loggedIn();

$id=$member->member_id;
$name=$member->real_name;

echo "<h1>Welcome</h1><br>";

echo("<h2>Name: $name </h2><br>");
echo("<h2>You ID: $id </h2><br>");

 

Screen Shot 2018-10-19 at 17.30.22.png

Edited by Fred Krugger

  • Author
18 hours ago, Fred Krugger said:

It was hard for me to get there, but if it is possible to do what I want in a personalized block, I share with you the way it worked for me...

$member = \IPS\Member::loggedIn();

$id=$member->member_id;
$name=$member->real_name;

echo "<h1>Welcome</h1><br>";

echo("<h2>Name: $name </h2><br>");
echo("<h2>You ID: $id </h2><br>");

 

Screen Shot 2018-10-19 at 17.30.22.png

I take look maybe might be able to.

  • 2 months later...

Hello @Pete T.

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

Like an ad please. Because like on mobile, they never show.

And sometime on desktop too.

Thank you.

Edited by Bocar

  • Author
7 hours ago, Bocar said:

Hello @Pete T.

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

Like an ad please. Because like on mobile, they never show.

And sometime on desktop too.

Thank you.

Nope as block should be there if content not displaying as far aware.

  • 5 weeks later...

This doesn't work with latest 4.4.1 beta of the boards.  

  • 3 weeks later...
  • Author
On 1/30/2019 at 6:25 PM, Padgoi_the_Djagloi said:

This doesn't work with latest 4.4.1 beta of the boards.  

This will be updated to 4.4.x please do NOT use to we done update.

  • 2 weeks later...
On 2/18/2019 at 5:17 PM, Pete T said:

This will be updated to 4.4.x please do NOT use to we done update.

Has this been updated? I'll remove it for now because I'm updating to 4.4.

Also waiting for an update.

  • Author
5 hours ago, AlexWebsites said:

Has this been updated? I'll remove it for now because I'm updating to 4.4.

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

Recently Browsing 0

  • No registered users viewing this page.