Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 21:29

    nitriques on 3.0.x

    Redirect loggued in users to AP… Add documentation about unambig… Allow numeric values in schema … (compare)

  • Jan 29 2019 19:40
    timokleemann commented #2861
  • Jan 28 2019 10:50
    animaux commented #2574
  • Jan 25 2019 18:25
    nitriques commented #2865
  • Jan 25 2019 18:23
    wdebusschere closed #2865
  • Jan 25 2019 18:23
    wdebusschere commented #2865
  • Jan 25 2019 18:09
    nitriques commented #2865
  • Jan 25 2019 18:09
    nitriques commented #2865
  • Jan 25 2019 18:07

    nitriques on 3.0.x

    Avoid double insert (write) exe… (compare)

  • Jan 25 2019 18:07
    nitriques closed #2882
  • Jan 25 2019 18:06
    nitriques milestoned #2882
  • Jan 25 2019 18:06
    nitriques labeled #2882
  • Jan 25 2019 18:06
    nitriques assigned #2882
  • Jan 25 2019 18:06
    nitriques review_requested #2882
  • Jan 24 2019 22:06
    wdebusschere commented #2865
  • Jan 24 2019 21:58
    wdebusschere commented #2865
  • Jan 24 2019 21:10
    nitriques commented #2865
  • Jan 24 2019 20:33
    wdebusschere commented #2865
  • Jan 24 2019 20:33
    wdebusschere commented #2865
  • Jan 24 2019 17:57
    nitriques commented #2865
Brian Zerangue
@bzerangue
@woogz_twitter - as you can see the author of the extension deprecated that extension a while back for one called Author Roles. https://www.getsymphony.com/download/extensions/view/39594/
Here is an Author Roles extension that has been updated, https://github.com/nimanthaharshana/author_roles. But, if you only have one user updating this site, there is no reason to have Author Roles installed.
Brian Zerangue
@bzerangue
@animaux - How were you able to import from Select Box Link (or Association Field in my case) via XML importer and import in an array of values, like you mention here, https://www.getsymphony.com/discuss/thread/36868/25/? I did that and it only gives me the first value, not the other items that were imported in there.
Brian Zerangue
@bzerangue

If anyone can help, in the limited XML Importer documentation, https://github.com/symphonists/xmlimporter, it says...

If your field expects an array of data to come from the backend/frontend, then the first mode should be ImportableField::ARRAY_VALUE

I don't know what to put for array value? Under the PHP Function portion of that field.

My data looks similar to @animaux post here... https://www.getsymphony.com/discuss/thread/36868/25/#position-489

Brian Zerangue
@bzerangue

@animaux - I am using your fork of XML Importer, and when I put ImportableField::ARRAY_VALUE in the php function field... I get the following error...

call_user_func_array() expects parameter 1 to be a valid callback, class 'ImportableField' does not have a method 'ARRAY_VALUE'

Brian Zerangue
@bzerangue
I AM STUCK. Any help would be much appreciated! Thank you in advance!!!!
Phill
@pixelninja
Sorry @bzerangue I haven't used that side of the XML Importer before. In my experience, when only the first item in an array is displayed in PHP, it's because the data being sent isn't quite right. Like an array inside an array for example.
Brian Zerangue
@bzerangue

@pixelninja - thanks for the reply. I figured a way to do it as a string that is comma separated... and then in the PHP function field, I put...

explode (",",$value)

And that worked.
Phill
@pixelninja
Nice one
Brian Zerangue
@bzerangue

I had to change the incoming XML to output a text field that with a string of comma separated values.

It would be nice how to handle a field that looks that could import data like so...

<example_field>
  <item>1234</item>
  <item>1235</item>
  <item>1236</item>
</example_field>

basically treating that incoming data as an array... the documentation is not clear on how to do that.

Your fields and the XML Importer

The XMLImporter allows fields to implement a prepareImportValue() function which will preprocess the value from XML before being passed to processRawFieldData(). The XML Importer will check for the Field class for the prepareImportValue() otherwise it will fall back to rudimentary processing. The prepareImportValue function will be passed the value of the XPath and the entry_id, and should return a value that your Field's processRawFieldData function can accept.

Since XMLImporter 2.1, the prepareImportValue function will choose the first mode returned in the getImportModes array. It is anticipated that this mode will be the correct mode that will transform the XML value into a format that the field normally expects from either the Symphony backend, or from an event on the frontend. That is, if your field expects a single string value, then the first mode listed in getImportModes should be ImportableField::STRING_VALUE. If your field expects an array of data to come from the backend/frontend, then the first mode should be ImportableField::ARRAY_VALUE

It would be nice to have examples with that, on how to handle that
Alexander Rutz
@animaux
@bzerangue I’ve only just found your question. I’m afraid I don’t really remember. Judging from my forum post, I think it worked the way I have described it back then. I’m pretty sure I have not used any php callbacks. Apart from that I got frustrated with the xml importer very often and mostly used the Import/Export CSV extension for stuff like this.
Alexander Rutz
@animaux
Dear ALL. I’ve used the members extension a few times recently to implement a double-opt-in for things like mailing-lists, newsletter-subscription. It’s a bit roundabout and definitely not what the extension is made for. Has anyone used other techniques using symphony internals/extensions?
I guess it could be done with ETM and a custom event for validation.
Wannes Debusschere
@wdebusschere
Custom event
Alexander Rutz
@animaux
Custom events. One of the rather large black holes in my understanding of symphony internals.
Wannes Debusschere
@wdebusschere
Its easy just experiment
Alexander Rutz
@animaux
Thanks, I’ll have a look :)
Alexander Rutz
@animaux
Alexander Rutz
@animaux
I think I have a plan for a double-opt-in without the need for a custom event.
Wannes Debusschere
@wdebusschere
Anyone using Schema.org Markup in his sites? We just started and seems to help with SEO
cylkee
@cylkee
Yes. Some info on which Google supports https://developers.google.com/search/docs/guides/search-gallery
Wannes Debusschere
@wdebusschere
@cylkee Thanks! We need to add markup to a team building / online team building site
but can't find how to classify this
Phill
@pixelninja
Does anyone know if the Email Template Manager can be amended based on a field value? That is, don't send any email if field equals x, but if field equals y then send the email?
@michael-e maybe?
Phill
@pixelninja
Ha I think I have gotten around it. I was filtering the DS by the field and value I wanted but it still wasn't sending properly. Making it 404 on null results seems to have done the trick.
Wannes Debusschere
@wdebusschere
@pixelninja Sometimes the easiest is adding a line of code to customize the event.. and unset something
Phill
@pixelninja
Yeah normally that’s what I’d do but I couldn’t see how to trigger the ETM if a field had a value.
Wannes Debusschere
@wdebusschere
by setting or unsetting
Phill
@pixelninja
Not really sure what you mean... is that a generalised suggestion or have you done that before. The ETM Parameter in an event looks like it needs set on event initialisation and not later on when triggered.
Wannes Debusschere
@wdebusschere
I use this often
let me check some code
Example you have 2 emailtemplates
and 1 event
you want to send the emailtemplate based on a value of the form
public $eParamFILTERS = array();
you empty the array on top
and in the execute function of the event
$this->eParamFILTERS = array('etm-template1');
Phill
@pixelninja
That was the first thing I tried but it didn’t work. Weird.
Wannes Debusschere
@wdebusschere
debug :)
@pixelninja see pm
Stuart Palmer
@stuartgpalmer

Hi All. Hope you're all well and sane. We are instructing a round of penetration testing on one of our Symphony 2.7.10 web apps. If any of you know of specific areas which warrant attention, then please PM me and I'll ensure inclusion in the tests.

The pen tests will look for the normal weaknesses, so I am just really interested in Symphony-specific vulnerabilities.

Wannes Debusschere
@wdebusschere
@stuartgpalmer symphony login brute force?
Alexander Rutz
@animaux
@stuartgpalmer Perfect! I’m very interested what you guys find!
Nimantha Harshana Perera
@nimanthaharshana
Guys, anyone has an experience with Google Ad Manager Interstitial Ad Implementation ?
Nimantha Harshana Perera
@nimanthaharshana
I need to create an interstitial ad on one of our websites but I don't have any previous experience with that. I have very little knowledge related to Google ads. Really appreciate if someone can help me for this.