Jump to content

TXT & PHP Widget


Recommended Posts

8 hours ago, Adriano Faria said:

They do. In Pages app.

I have pages.

I can build a block that can contain this information on each page?

<div align="center">
<script type="text/javascript">
    <!--
        document.write('<s'+'cript type="text/javascript" src="https://am.MySite.com/ads/show.cfm?adid=9"></s'+'cript>'); 
    // -->
</script>
</div>

Link to comment
5 hours ago, Adriano Faria said:

It seems a simple HTML block. I don’t see why it wouldn’t work. Have you tested?

I tried a Custom Block with Manual HTML.

Guess I'll need to wait until I upgrade to get help from support.

INSERT INTO `IPS_cms_blocks` ( `block_position`, `block_active` ) VALUES ( 9, 1 )
IPS\Db\Exception: Field 'block_key' doesn't have a default value (1364)
#0 /home/pathlabt/public_html/forum/system/Db/Db.php(948): IPS\_Db->preparedQuery('/*pathlabt_pltd...', Array)
#1 /home/pathlabt/public_html/forum/system/Patterns/ActiveRecord.php(487): IPS\_Db->insert('cms_blocks', Array)
#2 /home/pathlabt/public_html/forum/system/Node/Model.php(2389): IPS\Patterns\_ActiveRecord->save()
#3 /home/pathlabt/public_html/forum/applications/cms/sources/Blocks/Block.php(1010): IPS\Node\_Model->save()
#4 /home/pathlabt/public_html/forum/applications/cms/sources/Blocks/Block.php(734): IPS\cms\Blocks\_Block->save()
#5 /home/pathlabt/public_html/forum/system/Node/Controller.php(413): IPS\cms\Blocks\_Block->formatFormValues(Array)
#6 /home/pathlabt/public_html/forum/system/Dispatcher/Controller.php(90): IPS\Node\_Controller->form()
#7 /home/pathlabt/public_html/forum/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute()
#8 /home/pathlabt/public_html/forum/applications/cms/modules/admin/pages/blocks.php(44): IPS\Node\_Controller->execute()
#9 /home/pathlabt/public_html/forum/system/Dispatcher/Dispatcher.php(152): IPS\cms\modules\admin\pages\_blocks->execute()
#10 /home/pathlabt/public_html/forum/admin/index.php(14): IPS\_Dispatcher->run()
#11 {main}

Link to comment
  • 1 year later...
3 hours ago, AlexWebsites said:

Since this isn't being updated, is anyone using something else besides pages? This is a great plugin but looks like will be flagged with the latest updates. Any paid plugins worth checking out to use custom html in blocks? I'm also specifically using this to place ads.

 

This one is free and and it's 4.7 compatible. It may or may not be useful to you.

 

Link to comment
7 hours ago, beats23 said:

This one is free and and it's 4.7 compatible.

But:

Quote

Create sticky or normal widgets with custom contents or blocks from Pages application.

Is that plugin independed from Pages (the whole point)?

Edited by Luuuk
Link to comment
  • Recently Browsing   0 members

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