Jump to content

Community

Pete T

TXT & PHP Widget

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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>
 

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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. 

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...