CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • Can a CiviCRM page be embeded in a block using the PHP imput format?
Pages: [1]

Author Topic: Can a CiviCRM page be embeded in a block using the PHP imput format?  (Read 839 times)

bates

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal
  • MySQL version: ?
  • PHP version: 5.217
Can a CiviCRM page be embeded in a block using the PHP imput format?
September 27, 2011, 08:40:10 am
I'd like to create a block that contains the contribution page generated by CiviCRM at the following URL
example.com/civicrm/contribute/transact?reset=1&id=1

Would there be any security concerns accessing a contribution page in this manner?
What would the PHP code be to generate that form inside a block?


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Can a CiviCRM page be embeded in a block using the PHP imput format?
September 27, 2011, 11:53:44 am
I believe you could do that via snippets. Look here http://wiki.civicrm.org/confluence/display/CRMDOC33/Using+CiviCRM+APIs+-+Code+Snippets

Not sure if it will work, nor if a block will be large enough for this, but anyhow I don't see any security concerns--it's the same site.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

bates

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal
  • MySQL version: ?
  • PHP version: 5.217
Re: Can a CiviCRM page be embeded in a block using the PHP imput format?
September 27, 2011, 01:46:32 pm
I looked at the snippets, but none of them do what I want and I don't know enough about PHP to figure it out from those examples.

Erawat

  • I’m new here
  • *
  • Posts: 19
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.3
Re: Can a CiviCRM page be embeded in a block using the PHP imput format?
October 28, 2011, 06:07:17 am
You have to create your module then query the information directly from database.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • Can a CiviCRM page be embeded in a block using the PHP imput format?

This forum was archived on 2017-11-26.