texts:
After upgrading Expression Engine, we are receiving errors related to a translations channel.  This error appears on the entries edit page.  The page loads fine on the front end, but is un editable through the backend due to the error.  This error only occurs within the specific channel of "Translations", where all other entries outside of this channel are fully manageable.

ERROR

Exception Caught
Unknown field ChannelEntry.
/home/...../public_html/system/ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php:297

TRACE

#0 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(202): EllisLab\ExpressionEngine\Service\Model\Query\Select->translateProperty(NULL)
#1 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(88): EllisLab\ExpressionEngine\Service\Model\Query\Select->applyOrders(Object(EllisLab\ExpressionEngine\Service\Database\Query), Array)
#2 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(42): EllisLab\ExpressionEngine\Service\Model\Query\Select->buildQuery()
#3 ee/EllisLab/ExpressionEngine/Service/Model/DataStore.php(501): EllisLab\ExpressionEngine\Service\Model\Query\Select->run()
#4 ee/EllisLab/ExpressionEngine/Service/Model/DataStore.php(447): EllisLab\ExpressionEngine\Service\Model\DataStore->runQuery('Select', Object(EllisLab\ExpressionEngine\Service\Model\Query\Builder))
#5 ee/EllisLab/ExpressionEngine/Service/Model/Query/Builder.php(150): EllisLab\ExpressionEngine\Service\Model\DataStore->selectQuery(Object(EllisLab\ExpressionEngine\Service\Model\Query\Builder))
#6 ee/EllisLab/ExpressionEngine/Service/Model/Query/Builder.php(74): EllisLab\ExpressionEngine\Service\Model\Query\Builder->fetch()
    #7 ee/EllisLab/Addons/relationship/ft.relationship.php(544): EllisLab\ExpressionEngine\Service\Model\Query\Builder->all()
    #8 ee/legacy/fieldtypes/EE_Fieldtype.php(359): Relationship_ft->display_field('0')
    #9 [internal function]: EE_Fieldtype->display_publish_field('0')
    #10 ee/legacy/libraries/api/Api_channel_fields.php(400): call_user_func_array(Array, Array)
#11 ee/EllisLab/ExpressionEngine/Model/Content/FieldFacade.php(205): Api_channel_fields->apply('display_publish...', Array)
#12 ee/EllisLab/ExpressionEngine/Model/Content/Display/FieldDisplay.php(54): EllisLab\ExpressionEngine\Model\Content\FieldFacade->getForm()
#13 ee/EllisLab/ExpressionEngine/View/publish/entry.php(135): EllisLab\ExpressionEngine\Model\Content\Display\FieldDisplay->getForm()
#14 ee/EllisLab/ExpressionEngine/Service/View/View.php(145): include('/home/...../p...')
#15 ee/EllisLab/ExpressionEngine/Service/View/View.php(110): EllisLab\ExpressionEngine\Service\View\View->parse('/home/...../p...', Array)
#16 ee/legacy/libraries/View.php(51): EllisLab\ExpressionEngine\Service\View\View->render(Array)
#17 ee/legacy/libraries/Cp.php(241): View->render('publish/entry', Array, false)
#18 ee/EllisLab/ExpressionEngine/Controller/Publish/Edit.php(478): Cp->render('publish/entry', Array)
#19 [internal function]: EllisLab\ExpressionEngine\Controller\Publish\Edit->entry('1499')
#20 ee/EllisLab/ExpressionEngine/Core/Core.php(192): call_user_func_array(Array, Array)
#21 ee/EllisLab/ExpressionEngine/Core/Core.php(94): EllisLab\ExpressionEngine\Core\Core->runController(Array)
#22 ee/EllisLab/ExpressionEngine/Boot/boot.php(139): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))
#23 /home/...../public_html/admin.php(143): require_once('/home/...../p...')
#23 /home/...../public_html/admin.php(143): require_once('/home/...../p...')

If anyone has any advice on where to start that would be great!


texts:
Is there a way to capture the field type in the template?

Say I have a wygwam field named {copy-seg} and I want to apply a class of wygwam to that container.

Normal:

{copy-seg}

Needing:

{copy-seg}


texts: Uploaded links 404 error. Can't edit entries under super admin

texts:
All the .doc and .pdfs (.jpg is fine) that we have uploaded to our site generate a 404 error and do not download. We have not changed anything on the back end of our site in quite some time and everything was functioning fine last week.

When I try to edit the file links on the backend, I keep running into this error: “An Error Was Encountered You are not authorized to access this page” and I am the superadmin.
If anyone has suggestions on how to resolve this I would appreciate it!


texts: Can upload image with Assets, but image does not "stick" to entry

texts:
I can upload an image to my Asset field(s) and publish the entry. However, here are the weird issues I'm experiencing:

The Asset field is blank when re-editing the published entry, (but...)
The original, uploaded image is available in the template
Trying to publish the entry where the Asset field appears blank throws a "Field is required" error as if the field contains no data

Ideas?

Assets — 2.1.4
ExpressionEngine — 2.5.5


texts: Weird pagination link generation - domain/domain/domain/channel/P2

texts:
EE: 2.7.2
Zoo Triggers: 1.2.2

I've got a weird issue with pagination.

This is my channel entries tag.

{exp:channel:entries channel="news" dynamic="off" limit="1" paginate="bottom" orderby="date" sort="desc" status="open" {triggers:entries}}

This is the link automatically generated by pagination:

http://domain.dev/http://domian.dev/http://domain.dev/news/P2

This is my pagination code

{page}

{pagination_page_number}

{/page}

Pagination works when...

If I manually go to page 2 or whatever the pagination links generate correctly.

If I use: pagination_base = "news" it works perfectly but I also use zoo triggers for categories and it doesn't work when inside a category, instead of news/category/xxxx/P2 it just goes back to news/P2

If anyone knows whats going on here, and why pagination links are being output like (domain)/(domain)/(domain/channel/pagination) it would help me so much.

Edit

Also using Structure 3.3.12

Edit

Still no answers to this


texts: Getting 404 error when trying to access Content > Edit in v2.10.3

texts:
I'm getting a 404 error when trying to go to Content > Edit via the admin, as well as Content > Edit > My Channel.

EE v2.10.3

Installed Extensions:

The error:

  404 Page Not Found
  The page you requested was not found.

It may be related to this issue: Editing entry in backend: "The file cannot be found", however I cannot access the Content > Edit area of the admin at all, it's not just one particular entry.  This is also a new install with very little content / entries created so far.

I've tried:

Disabled all extensions (no change)
Enabled all debugging (nothing more is output on the error page)
Edited the /expressionengine/libraries/Mime_type.php as mentioned in the above link (this did not change the error message for me and I didn't not get a file path)
Re-uploading all EE core files (no change)

I found the file that is outputting the error message at /codeigniter/system/core/Exceptions.php and it says:

  // By default we log this, but allow a dev to skip it

I couldn't find the error logged anywhere though.  And developer log just has 3 errors for add_to_head() being deprecated (which I've seen in other installs and hasn't caused any issues):

Any ideas what could be causing this issue?


texts: IIS Errors and Apache Errors with ExpressionEngine

texts:
I have been having issues with setups on IIS NOT returning any informative errors what-so-ever. It seems that everything that happens just triggers a 500 Server Error, which is about as helpful as a swift kick in the groin. I have 3 example images from the exact same error on 3 different environments.

Production View:

Production View (Detailed errors on):

Local View (Running through EasyPHP):

Is there not some way to process the errors through IIS in a more legible manner? The logs don't show the issues either.

* UPDATE *

As I started digging into it and actually looking (oops), the errors are CI/EE messages. How would I go about enabling those instead of standard IIS 500 errors?


texts: Find entries that have a specific file related to by Assets

texts:
I would like to be able to link to all entries that have a specific file included using P&T Assets.
I have a page that displays the large version of an image which is called via this code:

{exp:assets:files file_id="{segment_2}"}
<img src="{url}" />
{/exp:assets:files}

So I know the file_id (and any other info stored by Assets), is there a way I can search through the entries looking for that Assets file_id?


texts: Expression Engine: Change the style of a template wrapped in another template

texts:
I have a post/posts template wrapped inside a template called blog-posts.html . I would like to have the post/posts template display a different grid column class than how it is displayed when it is wrapped in another template. I think I need to write a conditional. Do I write the conditional in the posts/posts template or blog-posts.html.  Below is the code from blog-posts.html:

{exp:channel:entries channel="post" dynamic="no" status="{permissions}" category="13" parse="inward"}
    {embed="post/posts" entry_id="{entry_id}"}
  {if results_none}
    {embed="main/results_none"}
  {/if}
{/exp:channel:entries}


texts: Is there a non backend/control-panel solution to changing email or password?

texts:
Does ExpressionEngine have a native way to change the email or password of the current user using a form in a template?

I am aware that you can do it in the EE Control Panel Backend but I am looking for a solution that will work in a frontend template.

NOTE: About the password, I am not talking about the password lost/reset feature. I am aware of that solution. I am looking specifically to be able to change passwords on the spot rather than relying on that feature.


texts: Moved EE1.7.1 site to new server and can't log into CP

texts:
I want to upgrade my EE1.7.1 installation to EE2. My existing site has been in existence since the early days of pmachine and so has a lot of legacy plugins, etc including the image gallery, a discussion forum, etc. So, before just blindly upgrading, I want to do a "practice run". I copied my data base and files to a new server hosted by EngineHosting following the instructions for migrating to a new server.

While I can access the index page of the new site okay, I cannot log into the CP in order to change all the settings I need to change to complete the migration. (I plan to use Deeploy which is installed in the migrated site.)

When I enter my login and password (using the correct credentials), I am just taken back to the CP login page. (If I use incorrect credentials, I get an error message that my username or password is incorrect.)

I've seen similar posts that blame cookies for this, but I don't think that is the problem. I've cleared my browser cache and cookies, tried several browsers, etc.

I've had this question posted over at the EE site for a while and someone kindly directed me here, thinking someone might be able to help coach me through resolving this issue.

Rick


texts: PHP errors after upgrading to Playa 4.4.4

texts:
I'm getting the following error a number of times on the Edit Entry page in the Control Panel after upgrading to Playa 4.4.4 on EE 2.5.5:

A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: playa/helper.php
Line Number: 179

The front end seems to be ok.

PHP version is 5.2.17.


texts:
because we're not able to setup promo codes to different products with Expresso 1.6.5 like you can with 2.x with discounts. We thought to use 200 promo codes with a limited use of 1.

The questions is, is it a problem to enter 200 codes to expresso?
Can this be generated, via our database or with a different tool, which i don't know right now? Do we have to delete this promo codes after use by ourself, or get they deleted when they get used, via expresso store?

Would be great to know, how you would handle this with the 1.6. version

Thanks

Peter


texts: What's the fastest way to post code to a blog post?

texts:
I find myself spending a lot of time when I have to create blog posts with code examples in them. What's the fastest way to do this? Is there a plugin that does it easier and faster?

Example: http://julianomoreira.com/notebook/article/php-mail-and-mac-os-x-mountain-lion

It took me a while. Would you share your workflow?


texts: Using Channel Form to populate VMG Chosen Member Field with member_id

texts:
Can't seem to figure out how to add members via Channel Form to a VMG Chosen Member field.

Members need to be able to sign up for a session of their choosing on the front-end and be associated with that particular session in the CP.

There isn't any documentation on the vmg_chosen_member git page other than how to format/style the field if you're using {field:session-attendees}.

Ideally, I would pass the logged in member_id via a text input field like so:

{exp:channel:form channel="sessions" entry_id="{last_segment}" id="session-registration" class="session-form" return="url/success"}

<input name="session-attendees" type="text" value="{member_id}" />

<input type="submit" value="Register for this session" />

{/exp:channel:form}

But that doesn't work.

I don't want to use {field:session-attendees} because the member signing up for a session does not need to see the other members signed up.

What's the proper way to add members to a chosen member field via Channel Form?


texts: Expression engine core version limitations

texts:
I'm new to EE and I'm trying to do some securitiy testing on EE.
Is it possible to make user login/registration and fileupload with exression engine core  version? I tried using third party module freemember module but no luck because EE core version doesn't have members module :(

Any ideas?


texts:
I have a site running EE2.9.0 using Focus labs config set-up.

I am getting javascript errors in the control panel which are stopping Matrix and some other fields from working.

http://domain/admin.php?S=0&D=cp&C=javascript&M=combo_load&ui=core,widget,mouse,position,sortable,dialog&plugin=ee_interact.event,ee_broadcast.event,ee_notice,ee_txtarea,tablesorter,ee_toggle_all,ee_navigation&file=json2,underscore,cp/global_start&v=1409223534

http://domain/admin.php?S=0&D=cp&C=javascript&M=load&file=ext_scripts

http://domain/admin.php?S=0&D=cp&C=javascript&M=combo_load&ui=datepicker,resizable,draggable,droppable&plugin=ee_url_title,tmpl,ee_table,ee_filebrowser,ee_fileuploader,markitup,toolbox.expose,overlay&file=cp/publish,cp/category_editor,cp/date,files/publish_fields,cp/publish_tabs,cp/publish_admin&v=1409223533

These are returning 500 Internal Server Errors in the inspector in Chrome. I am getting the same in Firefox.

It is all working fine locally and on a staging server so I guess it's something server related but I'm struggling to pin it down.

I've tried stripping everything out of htaccess but that didn't seem to help.
I've also tried various combinations of trailing slashes/no trailing slashes on theme_folder_path and theme_folder_url.


texts: Global Variable Parsing in Add-On Module

texts:
Trying to figure out what appears to be a global variable parse issue in a module add-on template tag.

Here's a sample of the tag used in the template:

{exp:syn_fb_comments:show url="{current_url}"}{fb_comments}{/exp:syn_fb_comments:show}

In the module, when I grab the param url:

$url = $this->EE->TMPL->fetch_param( 'url' );

My understanding is that the {current_url} tag should already be parsed as the actual URL. However, in fetching the parameter value, it returns the raw tag itself, {current_url}.

Question, is there something specific that needs to be done to have these template variables parsed before processing the tagdata for the add-on?

Assuming either I'm missing something simple here, or I'm just doing it wrong! Any insight is appreciated.

EE Version 2.5.5


texts: Gmap for ee - create list of nearby businesses from google maps

texts: Is it possible using objectivehtml's google map for expression engine, to look at a particular address (point) then using a radius search pull from google businesses, potentially allowing for refining the search by hospitals, parks, stores, etc - and create a list?


texts: I there an overview somewhere of available add ons for ExpressionEngine 5? Devot:ee doesn't seem to go further than EE4. But I see lost of them on the individual sites of developers.


texts:
I'm having a really strange problem with an EE if statement being used in conjunction with transcribe (may or may not be related).

I have a field that lets a user submit a hex colour to change the background colour of a box. By default it's red because of the style called "promoBox_red". On the english side of the site the entries are all applying the hex colour added in the entry via the IF statement. As soon as I switch to French the default style "promoBox_red" is what takes over. I can't even get the IF statement to run.

Any thoughts? Completely baffled.

{exp:channel:entries channel="footer_promos" limit="3"}

            {exp:transcribe:replace name="scribe_button_learn_more"}

{/exp:channel:entries}


texts:
I looked at the documentation in ExpressionEngine about saving/updating a channel entry row.

Unfortunately, the documentation doesn't show anything about adding a new Grid row.

Is it possible to do this? If so, how?


texts:
I've updated assets from an ancient 1.* version to latest 3* and everything looked ok apart when I've tried to edit a page.
I'm getting the following error:
Fatal error: Call to undefined method Assets_ft::content_id() in system/expressionengine/third_party/assets/ft.assets.php on line 2467

For many reasons I can't update at the time being the EE 2.5.5 which is currently installed.

Anyone with a suggestion?


texts: -exact parameter with custom fields is not working

texts:
I cannot get the -exact parameter to work in a search string using Super Search 2.2.3 and EE 2.9.2.

I have a custom field named doctors_services and I've tried this search query:

/search/doctors/search&channel=doctors&doctors_services=Primary%20Care

This works - it returns results for Primary Care. However, this search also returns other services with "Care" in the name - eg. "Wound Care"

According to the documentation from Solspace (found here: https://solspace.com/docs/super_search/search_syntax/#custom_fields), I should be able to pass an -exact parameter in the string like this:

/search/doctors/search&channel=doctors&doctors_services-exact=Primary%20Care

This returns zero results. Any help on this would be greatly appreciated. I feel like this is a bug?


texts: Entries tag showing pages not in the current Structure path

texts:
Has anyone else experienced pages showing up that shouldn't be when using the Structure module?

For example, let's say I have a channel called Pages and a page structure like so in the Structure module:

+ Parent Page         (structure url: parent, template: parent/index)
|- Sub Page           (structure url: child1, template: parent/child)
|- Sub Page           (structure url: child2, template: parent/child)
|- Sub Page           (structure url: child3, template: parent/child)
+ Parent Sibling Page (structure url: sibling, template: sibling/index)

Currently the channel entries tag looks like this:

{exp:channel:entries channel="pages"
  disable="categories|category_fields|member_data|pagination|trackbacks"
  cache="yes" refresh="180" require_entry="yes" limit="1"}

Nothing unusual there. So no surprises when we see the correct page showing when navigating to mysite.com/parent/child1.

However, if we changed the URL in the address bar to go to mysite.com/parent/sibling I do not expect to see the parent's sibling page... it's not in the same path at all!

After some investigation, it appears that the channel entries tag is simply falling back on its default functionality, but that is far from desired in this scenario, especially as we have strict URLs on.

Any clues on how I can solve this?

(running EE 2.5.5 and Structure 3.3.8)


texts:
I am desperately trying to make my Freeform (free version) to confirm to my HTML of my site. Here is the mess I have now so you see what I mean:

        <form class="contact-form row" method="post">

                <input type="text" id="input_name" name="contact-name" class="form-control" placeholder="Name*" required/>

                <input type="email" id="input_email" name="contact-email" class="form-control" placeholder="Email*" required/>

                <input type="text" id="input_phone" name="contact-phone" class="form-control" placeholder="Telephone"/>

                <textarea placeholder="Comments" id="textarea_message" name="contact-message" rows="6"></textarea>

            <input type="submit" id="btn_submit" formaction="mail:info@mannachurch.org" class="btn btn-default" value="send"/>

            {exp:freeform:form
                        form_id="1"
                        required="name|email"
                        recipient1="Manna Church|info@mannachurch.org"
                        recipient_template="contact_form"
                        notify_user="yes"
                        user_email_field="user_email"
                    }

Choose Recipients

                            <select name="recipient_email" />
                                {freeform:recipients}
                                <option value="{freeform:recipient_value}">
                                    {freeform:recipient_name}
                                </option>
                                {/freeform:recipients}
                            </select>

                            {freeform:label:name}
                            {freeform:field:name}

                            {freeform:label:email}
                            {freeform:field:email}

                            {freeform:label:subject}
                            {freeform:field:subject}

                        {if freeform:captcha}

Please enter the word you see in the image below:

{freeform:captcha}

                            <input type="text" name="captcha" style="width:140px;" />

                        {/if}

{freeform:submit}

                    {/exp:freeform:form}

        </form>

Go to http://www.reachoutcelebration.com and scroll to the bottom to see what I mean. What am I doing wrong? EE newb desperately looking for help, let me know if this code is too much or not clear enough.


texts: View template not fully loading for a certain category [odd!]

texts:
I'm coming across a pretty strange error.

I've recently added 2000 entries. Taken a while, but everything is cleaned up and seems to be working well, except for one thing I've found today.

The entries are all property listings. The are organised by categories that are County/County based. i.e parent category is the Country and the child category is the County.

For any entry that has 'Ireland' as the parent category, the 'view' template is not fully loading. It only loads part way and then stops. I kind of get half a page. The index page is fine.

I've switched on template debugging, but that is not loading either.

Not quite sure where to start finding out what the issue is!


texts: Need longer fields than EE natively allows

texts:
I have a couple of channels where I need to fit in more text than what EE natively allows. I was able to figure out how to change these fields from Text to Mediumtext, but when I upgraded from EE 1 to EE 2 those fields were reverted to Text and data lost. Fortunately, I was able to restore the missing data after redoing the edits, but I am wonder if there's any way to tell in advance when this will be an issue on an upgrade? Are field lengths reverted only on major version upgrades, for example?

I am also wondering if there are any add-ons available for handling such edits, should I need to redo them with each upgrade?


texts:
I have the simplest Email form from EE docs: https://ellislab.com/expressionengine/user-guide/add-ons/email/contact_form.html

Upon 'Submit' I get returned to the homepage of our site. Also, there are no Error/Success messages upon form submission.

We are able to send Emails through Tools > Communication.

As a test, we installed Solspaces Freeform (Free version), the same thing happens.

We've used the Email module many times on other sites without any trouble. This time around, we're on a different server and not sure if we're missing something on our config.

EE v2.10.1

  Update: Resolved

  We had a static index.html on our www folder. Removing that file, fixed the issue.


texts: Expression Engine not returning results for some items

texts:
I have a site at review.gemalto.com and several articles have "NFC" in the title and body.

However searching for NFC returns zero results.

Other search terms such as "Singapore" and "security" work as expected.

I'm at a loss as to why this is happening. Any ideas?


texts:
Cannot get my site to force www. keeps showing a 404 (https urls) or 403 (http urls) server error.

<IfModule mod_rewrite.c>

    # Force HTTPS
        RewriteEngine On
        RewriteCond %{HTTPS} off
        RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

    # Add www
        RewriteCond %{HTTP_HOST} !^www\.
        RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/ [R=301,L]

    # Removes index.php from ExpressionEngine URLs
    RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
    RewriteCond %{REQUEST_URI} !/system/.* [NC]
    RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

  # Directs all EE web requests through the site index file
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]

</IfModule>


texts:
I have a channel that is using {exp:low_reorder:next_entry} and {exp:low_reorder:prev_entry}

If I am on the first entries page I need to link to the last entry, then if I am on the last entry link back to the first.

So effectively allowing the user to continuously navigate and loop through all entries.

Is this possible?


texts:
The following code works if I comment out the Matrix fields (images {stash:st_{pre_channel}_image_url}).

However, I can't get the code working with the image tags back in. I'm guessing it's a parse order issues :-/

I've tried everything I can think of, but no joy. Could someone point me in the right direction please?

  {preload_replace:pre_channel="people"}

    {exp:channel:entries disable="" channel="{pre_channel}" dynamic="no"}
    {categories}
        {exp:stash:append_list name="{pre_channel}_{category_id}" parse_tags="yes"}

        {!-- Main  --}
        {stash:st_{pre_channel}_title}{title}{/stash:st_{pre_channel}_title}
        {stash:st_{pre_channel}_page_url}{page_url}{/stash:st_{pre_channel}_page_url}

        {!-- Content --}
        {stash:st_{pre_channel}_intro}{cf_{pre_channel}_intro}{/stash:st_{pre_channel}_intro}
        {stash:st_{pre_channel}_maincontent}{cf_{pre_channel}_maincontent}{/stash:st_{pre_channel}_maincontent}

        {!-- Page Specific --}
        {stash:st_{pre_channel}_location}{cf_{pre_channel}_location}{/stash:st_{pre_channel}_location}

        {!-- Image --}
        {stash:st_{pre_channel}_image_url}
            {cf_{pre_channel}_images limit="1"}
                {mx_image}
            {/cf_{pre_channel}_images}
        {/stash:st_{pre_channel}_image_url}

        {stash:st_{pre_channel}_image_caption}    {cf_{pre_channel}_images limit="1"}{mx_caption}{/cf_{pre_channel}_images}{/stash:st_{pre_channel}_image_caption}

    {/exp:stash:append_list}
    {/categories}
{/exp:channel:entries}

Get

    {exp:channel:categories channel="{pre_channel}" style="linear" show_empty="no"}

{category_name}

            {exp:stash:get_list name="{pre_channel}_{category_id}"}

{st_{pre_channel}_title}

{st_{pre_channel}_location}

            {/exp:stash:get_list}

{/exp:channel:categories}


texts: Why is MX Google Map not resizing in tab?

texts:
I am using MX Google Map to display a basic map. This map happens to be in a tab (Bootstrap). Here is the code for the basic tab.

{exp:stash:get name="location"}

{exp:stash:get name="masthead"}

View Map

View Photo

The tabs are working fine, except that when I activate the map tab we get only a portion of a drawn map. To correct this issue I am attempting to trigger a resize event when the tab is activated... to no avail. Here is said code.

$('a[data-toggle="tab"]').on('shown', function (e) {
    google.maps.event.trigger(map, 'resize');
    map.setZoom( map.getZoom() );
 });  // refire the map

My question is why the event 'resize' is not happening as expected? I have a hunch that since MX Google Maps inserts the javascript for the map inline that it may be causing issue? I am, obviously not an expert here but would love some ideas or opinions


texts: Sending An Array To EE Tag. Is It Possible?

texts:
I am very curious and very new to ExpressionEngine. Is it possible to send an array of values to an EE tag? i.e.

{exp:className:functionName parameter="value"}

Can the above parameter be of type array or can these parameters only pass single atomic values to the method?

If not, how would one be able to send arrays to a module function?


texts: How can I remove "thank you" page after login

texts:
I'm looking at the best way to remove the dreaded "thank you, you are now logged in" page after login.

I'm using Solspace User to manage user accounts and for registration.

I'm using the NSM Email Login to allow user's to login with their email address.

I've already tried to use Twomile Login Redirect to remove this screen but it won't work as we have MySQL in "strict" mode due a Solspace User requirement.

The only other thing I see is FreeMember but due to already using two other add ons I don't want to go and cause issues with those.

Does anyone have any ideas? Thanks.


texts:
I need to allow members to create their own blogs.
Is it possible? If yes, so how can I realize such ability?


texts:
I am building a gift certificate item and am using gift voucher options as modifiers.

It all works great.  However, I need to output those modifier values into a template in a particular design – as such, I want to get values of particular modifiers.

For example, I have a modifier, system called this  ‘modifiers_6’ - I can only get its value when I use the modifiers loop – but I also get all other modifiers.

Was hoping is could be like {modifiers_6:modifier_value} - I wrapped the modifiers and items loop tags around this but no luck.

Any ideas? How do I target specific modifiers without using the whole loop?


texts:
I am trying to make a change to the URL and Server Path of the File Upload Preferences section, but when I click "update" the page refreshes and the changes are gone. I don't have this issue anywhere but on the File Upload Preferences page, does anyone know what would be causing this?

Thanks in advance!


texts: Hiding specific categories from the publish tab

texts:
Within a category group, I've got about 10 categories that don't need to be seen by anyone but myself.

If I had realised this while planning the site, I would have created them in a separate category group to keep them slightly isolated.

However, my content admins would still be able to see it. How can this be addressed? (It would be cool if category groups were also available within publish layouts to hide/show!)


texts: How to get order to go 1, 2, 3, 4... rather than 1, 10, 11, 12, 2, 3, 4

texts:
I'm sure this is a simple one, but it's got me stumped so I'd appreciate your thoughts. Here goes...

I'm displaying a selection of images
The order of these images is controlled by using orderby="file_index" & sort="asc" in the channel entries tag
The file index field contains a number (i.e. 1, 2, 3 etc,), but is not changeable (i.e. we can't use two digit numbers for all images)
The problem is that when there's more than ten images, they are being output as 1,10,11,12, 2, 3, 4... rather than 1, 2, 3, 4... In other words, the teens are being put before the 2

Any ideas on how to make the images display in the correct order?

Thanks in advance,

Tom


texts:
After playing with structure, the navigation tree was broken.

Unforchently we don't have a DB backup. Any advice how to fix it?

Thx!


texts: Displaying all products on sale with exp:resso store?

texts:
I am wondering if it is possible to show all on sale items with exp:resso store?

{exp:store:search search:on_sale channel="products" sort="asc" limit="12"}
...
{/exp:store:search}

This is what I've been trying to work with, but it's displaying every product ever entered.

Thanks!


texts: How to give categories open/closed status?

texts:
Long story short, I have a situation where categories are treated like channel entries as far as generating lists of content on the front-end (using gwcode_categories inside channel entries.) I have a user who would like to turn some of the categories off the way she's done with channels, setting statuses to Closed.

Is there a way I can give categories open/closed statuses without having to resort to custom SQL/PHP? I would be willing to pay for a premium plugin to add this feature.

This is on EE 2.8.1.


texts:
Does ExpressionEngine automatically generate the URL Title and Structure listing URL as the same when the Title for the page is entered?

Do both URL Title and Structure listing URL have to be the same or optional?

When the URL Title or page title is modified, Why EE doesn't update the Structure listing URL automatically?


texts:
I'd like to manually populate the relationships table with some data.

I can see the structure of the exp_relationships table, which relates parent_entries to children.

However, for a custom field set that has multiple relationships, I cannot see how EE ties the relationships to each custom relationship field.

It looks like there was a handy wiki for this exact task linked from here which EL have removed in the recent reshuffle: http://ellislab.com/forums/viewthread/165752/

Other than populating the exp_relationships table, how can I relate those relationships to specific custom fields?

EDIT: Oh man - I cannot believe I've been so stupid - of course the relationship ID is tied to the relevant CF column in exp_channel_data!


texts: How to fix "This form has expired. Please refresh and try again."

texts:
I have a contact form that, if used after a certain time, will throw a "This form has expired. Please refresh and try again." error.

I have added the following to my contact form, thinking it would solve the problem:

<input type="hidden" name="XID" value="{XID_HASH}">

It didn't.

Another solution I have come across is to set $config['disable_csrf_protection'] = "y"; (per: http://ageekandhisblog.com/expressionengine-how-to-fix-this-form-has-expired-please-refresh-and-try-again/). However, I'm concerned there might be security issues associated with this solution.

Suggestions?


texts: Possible to force unique SAEF-uploaded filenames?

texts:
I'm currently building a site right now that allows registered members to add their own logo to entries they create via a SAEF. I have Assets installed for this site but also have SafeCracker File available.

I'm perceiving an issue where multiple members try uploading files like logo.jpg thus overwriting other member logos.

Is there a way to keep upload destinations (subfolders?) separate where a member only sees their uploads (if browsing current uploaded items ala Assets) or possibly randomization of uploaded filenames if using a standard File field?

I found this answer on a different question that mentioned that Assets prevents filename collisions but I'm not sure if it allows browsing of existing images, which is not something I want.

Thoughts? Ideas?


texts: How to redirect member login to previous page?

texts:
I am new to working with Expression Engine, so this might not be possible. The site I am working on has some pages that are private to members only. I'm assuming this is a built in feature of Expression Engine and not some type of add-on. When a member who is not logged in reaches a page which requires login, I would like them to be redirected back to the page they were on after they log in. Currently it is redirecting them to a specific member page (and I'm not sure where that is configured).
Update:
After further investigation, there are two "member" modules installed: Freemember and Member. There is a link to a custom login page and in the html there is a {login_form} tag. I can't find where or who defines this variable so I don't know what to do next.
Update:
I found the source of the {login_form} tag. This was being defined in a template using a plugin called CE variables. Here's a sample of the template:
{exp:ce_vars:set_content name="login_form"}
{exp:freemember:login form_id="login" return="/member-resources" error_handling="inline" error_delimiters='<small>|</small>'}
    ...some html...
{/exp:freemember:login}
{/exp:ce_vars:set_content}

Obviously, I found the source of the redirect (the return attribute). So now it is a matter of passing the "return to URL" in the link to the login form.
Solution:
Freemember provides a PREVIOUS_URL constant that you can use instead:
{exp:freemember:login return="PREVIOUS_URL"}


texts: Using just the name of a Freeform recipient in a notification template

texts:
I'm using the recipients="yes" option in my form, and I have a number of recipients specified in the form parameters using the pipe-separated format (eg. recipient1="somename|somevalue@example.com"). Is there a way to include just the part before the pipe ("somename") in a notification template? I can add the custom field {recipient_email} but that places both parts into the template, including the email address. I just want the first bit. Possible?

EDIT:
I'm similarly struggling to find a way to pass the name value of the selected email address to the return (Thank You) page. For example, if the user chooses the second of three email address from the form's select menu and that recipient is specified as recipient2="Joe Smith|jsmith@example.com" then I want to be able to have a line of the form's Return page that says "You sent this information to Joe Smith". So far I haven't found a way, even using Stash to save a variable to the database.

Anyone have a solution to this?


texts: Expresso Store - Edit "Vendor TX Code" sent to Sage Pay

texts:
My client has very exacting demands on how the Vendor TX Code supplied to Sage Pay during checkout is formatted.

Is it possible to change this information?

Thanks in advance for any advice.

Thanks to Ian and Adrian I figured this out - my solution follows:

I duplicated the file Merchant_sagepay_direct.php renaming the class to reflect the new gateway.

In the _build_authorize_or_purchase method I added the line

$request['VendorTxCode'] = "ClientSpecificTag_" . substr($request['Description'],strpos($request['Description'], "#") + 1) . "_" . $this->param('transaction_id');

This structures the TXcode as per the clients requirement eg: ClientSpecificTag_OrderNumber_Transaction_ID (order number is stripped from the description).

In order to allow refunds to work I had to add a new method:

I also added a new method

protected function _build_refund()
    {
        $this->require_params('reference');
        $reference = $this->_decode_reference($this->param('reference'));

        $request = parent::_build_refund();

        $request['RelatedVendorTxCode'] = "ClientSpecificTag_" . substr($request['Description'],strpos($request['Description'], "#") + 1) . "_" . $reference->VendorTxCode;

        return $request;
    }

Which ensures refund requests send the correct TX Code.

All tested and working fine.


texts: Cant get the map shown from channel entry

texts:
I am trying to get one map to be shown that is actually a channel field, using Google Maps For ExpressionEngine.

What i have done:
1- created a channel called "retkeilykohteet"
2- set own statusgroup and assigned to it.
3- set own channel fieldgroup with only one field in it, called "retkeilykartta" (it is a Google Maps For ExpressionEngine-field).

Then i created new entry, and i actually need only one entry for this channel, as per i just edit the entry when i want to add more markers into the map. So in my entry, i created 4 markers to map, set zoom etc, and it looked ok because of the live-preview that renders the map while making the entry.

Then i put this code into my template:

{exp:gmap:init id="map" scrollwheel="false" class="gmap" language="fi" style="100%;height:300px" map_type="google.maps.MapTypeId.TERRAIN"}

{exp:channel:entries channel="retkeilykohteet" limit="1" disable="member_data|pagination|categories|category_fields"}

    {exp:gmap:marker id="map" latitude="{retkeilykartta_latitude}" longitude="{retkeilykartta_longitude}" geocode="false" clustering="true"}

        {title}

    {/exp:gmap:marker}

{/exp:channel:entries}

I get only blue map canvas. Any help what is missing from my code so that i get the field "retkeilykartta" shown as it is, a map?

thanks.
Using EE2.5.5


texts:
Looking at various add ons for Expressionengine I found Cartthrobs Subscription module which looks almost perfect for my requirement. When I say almost, the issue is that my customer is using PayPal pro but in the documentation for Subscriptions it says it only supports:

Authorize.net (CIM)
eWay (Token Payments)
Payleap (SCM)
Sage (Token)
Stripe

Surely there will be a way to set up using PayPal pro for the gateway but I dont know if this will be possible? Is there an alternative if not?

I'm struggling to find out for definite if I can make it work with PayPal Pro.

Thanks
Guy


texts: Place article_images inside a div only if there's more than 1?

texts:
Pretty new to ExpressionEngine, so please excuse my lack of knowledge. I have a site where I want to use a slider on pages with more than one article image. The way I have it set up now works fine for these pages, but if there is a page with only 1 image, the image doesn't display because it's being hidden behind and off to the side of the content as if it were a slider image.

Basically, I want to make it so that if there is more than 1 image on the page, it will place the image code inside the "news_slider" div, but if there is only 1 image, it will just place that single image link without a div container. Here's the code:

{if article_images}

      {article_images}

      {/article_images}

{/if}

Thanks in advance!


texts:
I'm integrating Securepay DirectPost for a client, which sends the customer off to Securepay and then back again - all is working except no text is appearing on the return page (eg, thanks for your order).  I get the emails ok though, just no text, can anyone think of what might be going wrong?  I use this function to update the order - $this->checkout_complete_offsite($auth, $refid); If I use this one - $this->gateway_order_update($auth,$refid) I just get a blank page (eg, no content at all).  I get a 'payment authorised' on the order in admin but I do see that the transaction id has not updated (I put this in the $auth array).

Thanks in advance.

Jill

Add:  I have tried the extload.php file as you mentioned but putting $this->response_script(ucfirst(get_class($this))) as my return_url just caused an error at securepay and the extload($post) function did not get any post variables returned to it, even if I ran $this->relaunch_cart_snapshot($txnid) inside it (that was empty too).  So I put it back to the return_url $this->get_notify_url(ucfirst(get_class($this)),'success') and it then runs the success function I wrote and updates the database and orders go through, but we're back to the no 'thanks for your order' displaying.  Just missing a tiny step!


texts: How to insert captions with images in a WYSIWYG editor

texts:
Has anyone figured out a good way to insert captions alongside images in a client-friendly way? This is one thing WordPress makes very easy but EE doesn't seem to have an answer for. I'm currently using Redactor on the project, but would be open to switching to another editor if I could get this working. Ideally, I would want it to output markup like this:

This is the caption

The only way I can think to do this is to upload the images and captions into a separate Matrix field and then insert some kind of code into the text that would later be replaced in the template with the image/caption. Workable, but kludgy at best.


texts: How can an ExpressionEngine installation be updated to the latest version?

texts: Simple as that -- How is an install upgrade performed? Links, anyone?


texts: Freeform Pro Select field issues with Channel Population

texts:
I'm having an issue with Freeform Pro's select field. Currently it is filling in from a channel using the title of the channels, however it grabs all channel entries, irregardless of the channel entries' status.

I need to be able to get only "Open" entries.

Is there a way to do this?


texts: Trying to limit displayed entries to 2 - stops before it finds entries to display so nothing shows

texts:
We are building a fairly large & complex site. The problem I am running into is one of limiting. Here's what I need it to do:

There are various sectors. Each sector has a landing page. On the landing pages we display news stories relating to that particular sector. The way we do this is to use Playa in the news story entry to select the related sector(s), and then pull through the entries on the sector landing page templates like this:

{exp:channel:entries channel="news-article" dynamic="off" orderby="date" sort="desc"}
        {exp:playa:children var_prefix="news" field="news-related-sector"}
            {if {structure:page:entry_id} == {news:entry_id}}

                        {if news-thumbnail}

                        {if:elseif news-image}

                        {/if}

{title}

                            {categories}

{category_name}

                            {/categories}

                        {entry_date format='%d %F %Y'}

            {/if}
        {/exp:playa:children}
    {/exp:channel:entries}

Now this works fine - but it pulls through all news entries related to that sector, and we only want to display the latest 2.

I have tried using limit="2" on the channel entries tag and nothing displays. I'm guessing this is because it just selects the first 2 entries and never hits one that is related to the sector.

I have also tried using limit="2" on the playa children tag but all related news stories display - not limited.

I have tried using an {if count <= 2} conditiona inside and outside of the playa tag and inside the entry_id conditional and nothing is displayed in any case. I'm now out of ideas! Can anyone shed some light on this?

Thanks!

Notes: I am using EE 2.6.1 and Playa 4.4.5. I know this might not be the best way to achieve what we want to - but I didn't build it and it's what I have to work with :-P


texts: Build a forum? Or buy forum addon? What about blog?

texts:
How simple is it to build a basic forum in EE? I assume Categories can be used for forum categories. Then create a channel "Forum Topics" with a "Message" field. Then perhaps use the Comment addon so everyone can comment on the forum topic? I'd like to be able to support search, as well. That means being able to search the entries in "Forum Topics" and the comments.

Or would it be easier to use an addon? I've taken a look at EE's forum addon. It's too full featured for what I need. Also, the markup, etc. is very messy. I'd need to integrate it with Twitter Bootstrap -- and maybe that's too huge of an undertaking. Maybe it's easier to just build something on my own?

Thoughts?

NOTE: If I were to build a blog, would I take the same approach? A simple Channel with a "content" field, Comments addon, and maybe a tag addon?


texts: Creating a chronological list from 2 channels and sorting by 2 different fields

texts:
I'm building a loyalty scheme system in which customers log purchases they have made and when approved they are allocated points. These points are used to 'purchase' rewards.

I have most of the system working but I need to create a transaction history and this is proving to be tricky.

Basically, I have 2 channels;

Invoices - in which the entries represent customer invoices that are awarded points.

Rewards - in which the order for items they claim are recorded

The invoices channel contains a date field to record the date of the invoice (not the entry date since this is different). I need to retain the entry date as the date the entry was made for admin purposes.

The rewards channel uses the standard entry date to record when the purchase is made.

The transaction history needs to show a mixed list pulling entries from both channels - easy enough. BUT I need to sequence them chronologically using the invoice date and the reward entry date.

I'm using this in my entries tag at the moment;

{exp:channel:entries channel="invoices|rewards" dynamic="off" status="approved|open|closed|pending|declined" show_future_entries="yes" show_expired="yes" orderby="invoice-date|entry_date" sort="asc"}

As you can imagine, this isn't working as it groups each channel's entries together.

As I've been writing this it has occurred to me that the simplest solution would be to add another date field to the purchases which replicates the entry date then just sort on the 2 custom fields. I'm not sure this will work but might be worth a try though I can see other problems manifesting if I do that.

A better option might simply be to use the query module now I think of it. But again I fear I may run into a similar issue.

If anyone has an idea on this I'd be grateful!


texts: Problem after upgrading Assets: Underscores in folder-names

texts:
I upgraded from assets 1 to assets 2. now my folders which start with an underscore are no more recognized. they exist, the images in those folders are shown in the frontend, but i can no more use them in my filemanager. that's a big problem.

The problem was addressed here, but no solution mentioned. There one of the p&t-stuff writes:

  Firstly, Assets disallows files and folders that begin with a dot or an underscore, as the convention is to user either of those prefixes for hidden files and folders.

Assets 1 did not forbid me to start folder names with underscores, so modestly I expect an assets-immanent solution.

Is there any solution to this problem?

EDIT:
just recognized that i am able to create a new folder with underscore in the beginning; this folder is shown.


texts: How to include text editor in third party module for CP?

texts: I need to include a text editor in a custom module developed. Can anyone help how to include WysiHat or Rich text editor in a form in the module addon developed?


texts:
We have been users of Membrr and OpenGateway for a few years now and been generally happy with it. Today I ran into an issue and went to access the http://www.membrr.com site and got a notice that the domain has expired. There have recently been reports that Electric Function has been unresponsive to emails and support. Concerned I started to do some Googling and found this blog post from Brock made back in March. Looks like the new owners of Electric Function might be simply dropping the company and products and walking away? As a customer I was not warned or notified at all and I find this very disturbing to say the least. Is anyone else who is using Membrr concerned? What path(s) are you planning on taking moving forward?

For anyone who was a Membrr user and migrated to something else what do you recommend and do you have any advice to make transitioning easier?


texts: Conditional based on content of a nested Playa field works in 2.8.1 but breaks in 2.9.2

texts:
I have a conditional statement that checks if anything is selected in a nested Playa field.  It worked in EE 2.8.1 but upon upgrading to EE 2.9.2 a parse error occurs:

  Error

  You have an invalid conditional in your template. Please review your
  conditionals for an unclosed string, invalid operators, a missing },
  or a missing {/if}.

  Parser State: Unexpected end of Template “site/.wrapper_page” on line
  2; expected ENDIF tag for opening on line 1.

The offending conditional statement is as follows:

{if '{exp:playa:children channel="sidebar_portlets" var_prefix="sidebar"}{sidebar:sidebar-text}{/exp:playa:children}' }
   Do Stuff
{if:else}
   Do other stuff
{/if}

I have tried alternating the use of single and double quotes, as well as escaping the interior quotes with a "\" as suggested in the EE docs, but to no avail.

I would appreciate any suggestions people may have.

For what it's worth, this conditional starts on line 122 of the template, not line 1 as reported in the parse error above.  Not sure if that matters.

Thanks in advance.


texts: How do I make a fieldtype use the full column width in the control panel?

texts:
I've coded a new fieldtype for my EE3 install. It works, but it doesn't look quite right in the control panel - the input fields only use up half of the available space. This looks fine for many fieldtypes, but I'd rather this stretch across the page, similar to a textarea or grid.

<fieldset class="col-group">

Fieldtype Name

        FieldType Option
        <input type="text" value="" name="field_id_21[fto]">

</fieldset>

In Firebug, I can change the class w-8 to w-16 and get the desired look. However, I don't know where in my fieldtype definition I would set that. I dropped the following in my install method:

return array('field_wide' => TRUE);

While it is added to the fieldtype's global settings, it has no effect on how it is displayed in the control panel.

How can I get this full column width fieldtype? Thanks.


texts: White screen on multi site front end after upgrading Expressionengine

texts: I have updated my system from 2.4 to 5.4 I have removed all plugins and extensions before upgrading, after upgrade the multi sites is showing a white screen in front end Knowing that the main website works perfectly, I have searched a lot but I didn't find anything that could help me , any suggestions?


texts:
I have a live site currently down with the message:

{!-- ra:00000000638f5ffd00000000469f18aa --}    Fatal error: Cannot use object of type stdClass as array in /xxx/system/expressionengine/libraries/Functions.php(688) : eval()'d code on line 33

Added a channel entry yesterday and I know the site worked fine after that yesterday afternoon. This morning the site was down with that error so no obvious cause.

The admin section still works, running ExpressionEngine v2.9.2


texts: Cart Throb - Canada Post live rates errors

texts:
Trying to get CPC live rates working and I am getting this error

Couldn't connect to host (7)

I get this on the front end AND the back end.  My CPC id has been set up and verified.  Doesn't matter if I have test or live set as the status same error.

And when this error shows up I get locked out of the admin section of the site.  The ONLY way to get back in is to manually remove the CPC ID# from the database.

IS there anyone out there who has the Canada Post live rates working with Cart Throb?  I am getting little help over at the CT forums as shipping plugins are not supported


texts:
I have 2 channels, "vehicle" and "make".  Vehicle uses a text input channel field, make uses a dropdown select channel field.

In the "vehicle" channel I also have a relationship field to "make".

I would like to have a count for how many times I have set a vehicle to a particular make.  Let's take Acura for example.  I have entered in 20 Acura cars, and 5 Nissan cars. I would like to show 20 next to Acura.

And perhaps a total_count would be good too, of all of the vehicle+make relationships that are combined.  (25)

Can this be done relatively easily in EE 2.9.2?

Thanks!


texts: FreeForm 3.1.4: Collection created by guest - how to prevent this

texts:
I've got a site using FreeForm 3.1.4 which is having a bit of an issue where guests are creating their own collection by, presumably, manipulating the source before submitting the form. As you can see from the attached screenshot we have several "collections" the ones that should be there are prefixed by HGI. All forms on this site are using honee-pot.

Is there a way to prevent this from happening? Back in February I posted this to the Solspace support forums but it wasn't resolved.

All suggestions greatly appreciated.


texts: In EE 2.6 how do we set different localization/timezone site-wide than the server's timezone?

texts:
Presuming alternating DST is no longer an issue, I'm confused about the new change. It seems there is now only one configuration option but that is just for the server's time zone:

  This setting lets you specify the time zone where your server is located.

And they give a clear warning if you just put whatever you feel like:

  If you do not set this preference so that it correctly reflects the location of your server it may cause problems with your dates and times. If you are not sure where you server is located please ask your hosting provider.

ExpressionEngine User Guide: Localization Settings -> Server Time Zone

So what if we want the system to go by a different timezone setting, e.g. my server is in GMT, but my members, activities, etc. are primarily in New York (GMT-5)?

What are the config settings for this now? There seems to be a new setting, "time_reference":

/*
|--------------------------------------------------------------------------
| Master Time Reference
|--------------------------------------------------------------------------
|
| Options are "local" or "gmt".  This pref tells the system whether to use
| your server's local time as the master "now" reference, or convert it to
| GMT.  See the "date helper" page of the user guide for information
| regarding date handling.
|
*/
$config['time_reference'] = 'local';

But how do we set a different default timezone for the site? Are one of the old configs still used for that? Can't seem to get it straight.

Related questions pre 2.6:

Forcing DST settings for users

How are we supposed to manage time and respect localization/DST in EE?


texts: I am beginning the transition to EE 3.0 and have not been able to find a list of compatible plugins, add-ons, etc. Is there such a list?


texts:
I have a code which looks like this:

{exp:channel:entries channel="videos" search:category="some_category"}
{some_field}

{/exp:channel:entries}

The problem is i cant go for another exp tag inside an exp tag.I want to redirect the user to a url that has url_title of the field(this title is being populated by a field from another channel).

I dont want to redirect the page to some other template.I just want to append a url title to www.something.com/videos/{append url title here...} .


texts:
is it possible in expressionengine 5 to have private pages?

I know it's possible to create a forum but what about pages with content just for registered users?

Thanks in advance for your help.


texts: Uploading new file changes all uploaded files to new file for entire entry

texts:
My site (3.4.0) has 2 separate channels with this issue, the only channels with multiple File fields right now. When creating a new entry in either channel, the last file I upload in any File field replaces all other File fields.

So after I've added the image file in the image field in the 1st channel, I upload an audio file from a different file upload folder in an "audio" File field. When I do this, it replaces the file for the image field also with the audio file, so both fields now have the audio file (regardless if the image field could accept the filetype). If I do it in reverse order, both fields will have the image file.

Another channel has a Grid field, in which one can choose multiple different files and file types for up to 8 grid entries. The same thing occurs: after I've uploaded/chosen 1 file, the second file I upload replaces both so I have duplicates. This continues such that the last file I choose will replace all the others for up to 8 duplicates. Editing / replacing any file while still creating a New Entry will have the same result, all files will be changed at once.

The only work-around I have at the moment is, after saving the New Entry, if I edit that entry I can change any file without it changing all the others. But this isn't user-friendly, I don't want to tell all users they have to save their entry and then edit it to make multiple files work. Please help if you know what's going on.


texts: How to export/import channel entries between EE sites

texts:
Are there any add-ons (or tricks) that allow the exporting/importing of channel entries between EE installs? I know there are a couple options for exporting/importing channel settings and fields, but what about the data?

Maybe using a pair of add-on to export/import XML/JSON is the best choice? Any success here?


texts:
EE 5.2.2

I am making an app that lists channel entries in a template. Some of the data in these entries could be very substantial so I would like to only call that data if/when the user chooses. The way I would like to do this is by running an ajax query that will pass the id of that entry and return the requested field data for it.

Does EE have any helpful built-in functionality that can handle something like this? If not I'm assuming I will have to create a plugin action id to query the data using php.

Thank you.


texts: Static directory / subsite not managed by EE

texts:
I have a full EE2 site at domain.com. The problem I am running into is, I would like to have a separate non-EE managed site at something.domain.com and/or domain.com/something. It seems as though EE2 always takes over the URI, and my knowledge of .htaccess re-writing is limited. Is there a simple way to specify a directory that EE2 should not have control over?

Current .htaccess:

<IfModule mod_rewrite.c>
    RewriteEngine On

    AddType video/webm .webm

    # Removes index.php from ExpressionEngine URLs
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /~domain/index.php/$1 [L]
</IfModule>


texts: Can I pull parent data from ee channels into Solspace Calendar?

texts:
How do I, whithin solspace calendar tagpairs, pull data from en ee channel being the parent of the event through ee's relationships tag?

My plan is to keep most articles in an ee:channel and via relationships associate those articles that cover events with Solspace calendar module. Then within solspace calendar tagpairs list only those events that has parents in the articles channel and pull titles and paths to the associated articles entry.

I fear Solspace Calendar doesnt like normal relationships and I really hope to find out my fear is without reason. Croxtons Stash is in my toolbox but I am far from mastering it.

So how do I, whithin solspace calendar tagpairs, pull data from en ee channel being the parent of the event through ee's relationships tag?


texts:
I am receiving 'A PHP Error was encountered' error messages when signing into expression engine. Nexcess support sent me the following information. What do I do to get this corrected? I am a novice user and do not know what version I am using. Can you tell me how I find out what version I have as well?

FROM NEXCESS SUPPORT:

  Thank you for reaching out regarding this. It
  seems that the same scripting error is being thrown into your PHP
  error log:

[14-Aug-2017 13:20:28 America/Detroit] PHP Fatal error:  Call to a member function generate_json() on a non-object in  /chroot/home/kansasko/kansas-kofc.org/html/kskofc/expressionengine/libraries/Functions.php on line 374
[14-Aug-2017 21:50:50 America/Detroit] PHP Fatal error:  Call to a member function generate_json() on a non-object in /chroot/home/kansasko/kansas-kofc.org/html/kskofc/expressionengine/libraries/Functions.php on line 374

  I was able to find an issue on the ExpressionEngine bug
  tracker
  regarding this error indicating that the Javascript library may not
  always be loaded on this line.

  However, we would not be able to confirm that this is the issue or
  apply the above patch. I would suggest that you forward these errors
  to your developers so they can properly debug the scripting issue and
  implement a fix.

  The server is a shared environment so we can't reboot it. I'm not
  seeing any hanging processes. You may need to reach out to the
  Expression Engine support since you don't have a developer on staff.
  This might be a cache issue in the application. Can you clear the
  cache from the admin panel to see if that clears this?


texts:
We have a custom 404 page set up in our EE 4.3.8 to handle non-existing url requests. I can't get it to work though, the home page always comes up instead. I know this may have something to do with how our .htaccess rules are set up but I can't figure out what is breaking this. We have ErrorDocument 404 /site/404 in our htaccess file pointing to the correct template but the 404 page never gets displayed, we also have the static page caching rules from the stash documentation and I'm wondering if they are redirecting our bad urls to our homepage? Here is some relevant code below, the 404 rewriteRule is commented out but ucommenting it and the lines before it still redirect bad urls to our homepage.

## Redirect to Cache File
RewriteRule ^(index.php/*)*(.*)(/*) /ourStaticCacheDirectory/1/$2/index.html [L]

# Prevent direct access to static cache folder
# RewriteCond %{REQUEST_URI} /ourStaticCacheDirectory/
# RewriteCond %{ENV:REDIRECT_STATUS} ^$
# RewriteRule .* /404 [L]

Thanks in advance for any help.


texts: Order entries alphabetically by category group?

texts:
I have entries which are assigned to two category groups. In one category group, the entry will only every belong to one category.

Is it possible to order entries alphabetically by category group? Something like:

orderby="category_group:2" sort="asc"

?


texts:
I have a hook handler for safecracker_submit_entry_start that gets some value from a form field and processes it.

I want to validate the output of that process.

If the output is good, then continue form submission
If the output is not valid or bad, I want to cancel form submission and if possible, return some sort of error code or message

Is it possible for the hook handler of safecracker_submit_entry_start to cancel form submission?


texts: CKEditor publisher toolbar missing from WYGWAM on ExpressionEngine 1.7

texts:
First...all of this is going to sound very novice...because it is.
We had an issue at the server level and the WYGWAM broke. It's been restored by the Publisher(ish) toolbar is missing.
I seriously need some help with this.  I cannot find the location of the redirect and our Developer is no longer with us.
From our host:
the page layout does appear to be missing the small bar of icons below "Main Content".  The Inspect Element tool also shows a mixed content error that endlessly generates; this can be explained by the looping requests to http://www.specialmade.com/files_includes/css/wygwam.css that are visible in the network tab.  The issue is that the wygwam.css is being loaded insecurely, and thus failing.  When you visit this via https, it works:
https://www.specialmade.com/files_includes/css/wygwam.css
This shows there's no redirect, but that the edit page is calling this URL with the wrong security(http versus https).  I understand this issue became apparent after we restored your files and database;


texts:
Is there a method where I could generate a heading using a grid column value?

My grid is output as a table sorted by the column “sport” with values like “hockey, baseball, soccer” etc.

So as I loop through the different sports, I’d like a heading for each. So when it shows the entries sorted with the value ‘hockey’ there would be a heading ‘Hockey’ displayed. Any thoughts on doing that?


texts: Datagrab import entries - delete entries that do not match

texts:
I have a client site where they have a large list of members. Each month, the list of active members changes based on offline transactions.

Initially, I used Datagrab to add these members, but as each month arrives, the client wants to delete all members that are not in their CSV file of active members.

Clearly, this isn't EE or Datagrab standard practice, but I was hoping someone could shed some light on a way to tackle this that wouldn't require dumping the entire list and importing from scratch. While a complete purge would be the easy solution, the members that need to stay already have had their passwords set manually and would require even more manual client work.

TIA for any help!


texts: Change file upload size units from bytes to kilobytes?

texts:
A client has a request that the file size units in upload preferences be changed to a more familiar unit of KB (Kilobytes). It does make sense to me as well, as most operating systems display the file size as the same.

Is this configurable?


texts: I'm trying to preview in article but I'm getting a bunch of errors on the page (see image below). What could it be?


texts: Campaigner + Zoo Visitor, updating categories causes unsubscription

texts:
We have a site using Campaigner and Zoo Visitor to sign people up to a mailing list at Campaign Monitor when they register an account on the site.

This works OK but we are seeing some odd behaviour and I'm trying to work out if it's correct, a bug or what we can do to avoid it.

The problem comes when we update categories on the entries created by Zoo Visitor. It seems that changing any categories causes Campaigner to unsubscribe the user from the mailing list at Campaign Monitor.

I have no idea why this might be happening. Can anyone shed any light on this?

I'm wondering if it could be related to this issue Zoo Visitor update_form to update only some entries wipes out all other data


texts: EE contact form - interact with POST data before sending email

texts:
We're running ExpressionEngine 3.5.17 and using the in-built contact form.

We have a requirement whereby if someone completes the "From" email address on the form, and it originates from a certain domain - let's say example.com - the email should not be sent.

The problem with this is I can't see what to modify/extend in EE which would make this possible.

The form is fairly basic in that we are using tags in a template:

{exp:email:contact_form recipients="foo@bar.com" form_id="downloadResourceForm" redirect="none" charset="utf-8"}

    <!-- Form fields -->

    <input type="email" class="form-control" id="email" name="email" placeholder="Email address" required>

    <!-- More form fields -->

{/exp:email:contact_form}

I understand that in vanilla PHP I could access the "email" field in the POST data with $_POST['email']. However I don't know how to interact with this because EE is handling the form submission via it's own scripts.

I'm also aware of not modifying EE core files - so how do you "override" the EE code in a way that makes upgrades safe?


texts: channel form image will display first uploaded image, when user tries to change the image it will not change

texts:
I'm working with a channel form entries and the EE built-in file upload button. Below is my code for adding an image to your profile entry.The first time a user selects browse and uploads an image from their computer this code works fine. When the user goes back to edit their profile picture, sometimes the image will change, and sometimes it will not even load the image to the directory. Is there a way to change this behavior. I'm working with EE v5.4.1. I'm relatively new working with Expression Engine. Any advice, or tips would be helpful, thanks in advance.
                   Choose a logo picture:
                 <input type="file" name="logo" style="display:inline-block;" id="logo"/>
                <input type="hidden" name="logo_directory" value="6" />

                <input type="hidden" name="logo_hidden_file" value="{logo}{file_name}{/logo}" />


texts: SQL SELECT using custom field name (not ID) in WHERE

texts:
Forgive me if I missing something obvious, but I have a need to select channel entries from the EE database, but I want to select those entries based on a value assigned to one of my channels custom fields. In the exp_channel_data table though I have no guaranteed way of knowing which column that data might be in due to how EE adds columns to the table. It could be field_id_27 or field_id_123. I could look in the admin, get the ID and then infer the column name, but that's clunky. Also, I'm trying to use this in a custom plug-in and I can't assume the ID will always be the same as I move the code from EE install to EE install. So what I want to know, and can't find, is what is the recommend method to build a SQL query in EE to be able to use a particular custom field in your WHERE clause?

To put it another way, if my custom field is named my_cutom_field what I want to do is be able to say:

WHERE my_custom_field = 'some value'

I hope this question makes sense.


texts: Change tab name in custom layout possible?

texts: I'm trying to change the tab name in a custom entry publish layout, but it doesn't seem possible. Anyone know how to do this?


texts:
I have a list of tags on my site and want to add an active class to the linked tag based on the URL.  For example, if the user is on the URL http://whatever.com/blog/by_tag/control+system+failure, I want "Control System Failure" from the list of all tags to have the active class.

I'm using this code:

{exp:tag:cloud
    channel="blog_entry"
    limit="25"
}

         {tag}

{/exp:tag:cloud}

However, it doesn't work because {segment_3} displays the tag name without the + separator. For example
{websafe_tag} = control+system+failure
{segment_3} = control system failure

I've even tried using {last_url_segment} from the Current Extension, but that also produced the tag without the plus sign.

Does anyone have any ideas on how I can get the active class added?


texts:
I'm developing payment gateway for the BrilliantRetail and I need to create IPN callback script which will change BR orders statuses and return response data to the IPN-gateway.

So I'm trying to find a solution to get EE instance but produce no output after calling.

My version of EE is 2.3.1, but I hope to find universal solution for other version.

I have tried a very-very rough way, to put IPN-callback script into the webroot, include index.php and catch output buffer.

ob_start();
require_once( 'index.php' );
ob_end_clean();
$ee = get_instance();

I don't want to use this solution. I must be sure there are no random output will be returned and no templates will be used at all.

Is there are any ways to get EE instance in than manner by using hooks or something?

Thanks.


texts: CartThrob Lite: Payments button not working in settings. Any Ideas?

texts:
I'm a newbie to SE, not so new to EE :)

I've got CartThrob Lite v2.3.3 Installed on EE 2.6.1 and I'm experiencing a weird issue:

When you go to Cart Throb > Settings and click the Payments button it redirects to the front-end 404 page which is a bit alarming.

Has anyone else had the same issue or can think of a workaround?

as I really need to be able to configure my payment gateways in order to move forward with this project.

If you need any more information- just ask!

Cheers,
Neil


texts: Social Networking Add-on for ExpressionEngine

texts:
I searched for some Expressioneinge social networking add-on that would allow me to have some "friends" functionality for ExpressEngine at devot:ee.

So far, I only found one plugin, Friends that allows me to do so.

I am just curious. Are there no other Expresssion Engine plugin that has this type of functionality?


texts: Add a "Like" button to a native comments entries tag?

texts: Like some of the social comment engines, is there an add-on to allow users to "like" a comment within an entry (and not the entry itself)?


texts: How do I restore the deleted promo codes to discounts in Store v2?

texts:
So I made the upgrade to v2 and none of the v1 promo codes were migrated to the 'discounts' table. Inspecting the db, I can see them all still there in exp_store_promo_codes, but the exp_store_discounts table is empty.

Should they have all migrated? If not, how can I repopulate the discounts table? The schema is different, with different field names, so it's not a simply 1-to-1 mapping.


texts: Exp-resso Store - Getting Shipping Details - Custom Payment Gateway

texts:
I have built my own custom payment gateway. But how do i get the shipping values in PHP processor?

For example you can get the billing address line 1 using this

$this->param('address1')

How do i get the shipping address1 ?


texts: Low Search: Filter results by Collections

texts:
I want to only search results from specific collection on specific search results pages.

My search results is basically like the Low Search Results example

{exp:low_search:results query="{segment_3}" limit="10"}
{if count ==  1}
{/if}

{title}

{if count == total_results}
{/if}
{if no_results}No search results{/if}
{/exp:low_search:results}

This shows me matching results from all saved collections. However, I only want to show results from a specific collection.

I see Low has the variable:

{collections}{/collections}

just not sure how to use it.

Thanks in advance.


texts:
I have implemented SEO Lite into my site and have it all set up and working for all of my pages/entries, but I’m having trouble figuring out how to get it to work for my home page.

I am using {exp:seo_lite use_last_segment='yes’} in my main layout template. Since the home page has no segment, the tag is not pulling in the home page channel entry values from the SEO Lite tab.

How can I get this working?

Thanks for any help.


texts: Some Form submits from Discussion Module always return generic error message (Updated)

texts:
I'm using the EE Discussion module (3.1.8) under EE 2.5.2 and when I submit certain forms, say from the 'Ignore' template for example, the form submits and processes fine, but the returned page shows this error:

Error
The following errors were encountered You are not authorized to perform this action

The form posts to this URL:

http://www.macobserver.com/tmo/forums/do_ignore_member/47211/

There is almost NO documentation for the Discussion Forum module so I'm not sure even what controls the form or the message.

The ignore form template code I'm using is:

{form_declaration}

{lang:ignore_member_confirmation}

    {if member_is_ignored}

{lang:already_ignored}

    {/if}

    {if member_not_ignored}

                {lang:ignore_member}: {name}

            <input type='radio' name='action' value='ignore' checked="checked" id="fm-ignore-member" />

    {/if}
    {if member_is_ignored}

                {lang:unignore_member}: {name}

            <input type='radio' name='action' value='unignore' checked="checked" id="fm-unignore-member" />

    {/if}

        <input type="submit" name="submit" class="submit" value="{lang:submit}" />

</form>

UPDATE
I did some more digging on this and it seems that what is adding the duplicate info to the redirected URL is some lines in the /system/expressionengine/modules/forum/mod.forum_core.php code. Specifically in the 'do_ignore_member' function at line 8481

$return = str_replace('/'.$this->trigger, '', $this->EE->session->tracker[2]);

The $this->EE->session->tracker[2] variable is used on the next line and passed to the redirect call using a $this->forum_path($return); call. The forum_path method checks for the site basepath and then adds the URI value if one is passed in.

/**
 * Compiles a path string
 */
public function forum_path($uri = '')
{
    if ($this->basepath == '')
    {
        $this->_forum_set_basepath();
    }

    return $this->EE->functions->remove_double_slashes($this->basepath.$uri.'/');
}

UPDATE #2
So from my testing I think what is going on here is that the 'needle' value on the str_replace() is incorrect. EE adds a beginning slash '/' to the trigger word and then searches the $this->EE->session->tracker[2] value for that value and removes it. The trouble is, at least from what I can see, is that the $this->EE->session->tracker[2] value does NOT have a leading '/' so no match is found. I think the fix would be to change the line 8481 in the /system/expressionengine/modules/forum/mod.forum_core.php file from:

$return = str_replace('/'.$this->trigger, '', $this->EE->session->tracker[2]);

to:

$return = str_replace($this->trigger, '', $this->EE->session->tracker[2]);

This seems to fix the trouble for me, but I ask. Is this a truly a bug that needs this fix or am I just missing another configuration setting someplace?


texts: Use embedded template in Expresso's email template

texts:
Is there any way to use embedded templates in Expresso's email templates? When I try it seems to create a blank email...

Thanks, Frank


texts: When creating a slider on my home page i had set the slider up as a channel, this allowed me to edit the channel and create a limit on how many slides where published. I was using the method of content -> publish -> slider to create a new slider. I would like to create a slider using a matrix field. I have create a variable group that allows me to edit the homepage and one of those variables is a matrix field, this is what i would LIKE to use to function my slider. How do i call the slider into my code correctly via a matrix field. Really my question is how does EE know im calling my matrix data?


texts:
Just upgraded a site from 2.5.5 to 2.8.1 with the plans of adding MSM once 2.8.1 was installed. I successfully upgraded to 2.8.1 and when I go to turn on MSM it kicks me out of the CP with the following error:

An Error Was Encountered
Site Error: Unable to Load Site Preferences; No Preferences Found

When I set $config['multiple_sites_enabled'] = "n"; I'm able to log back in with no errors. Not sure where to start troubleshooting?


texts: Channels and entries structure on site with deep hierarchy

texts:
I'm trying to wrap my head around the most efficient way to set up entries in EE for my site structure. This is my first EE build, coming from a Wordpress background and I'm looking for opinions on how a more experienced EE dev would approach setting up my site's structure.

The site can be defined as an e-catalog, no e-commerce functionality is present but the site is largely based off the product views. I am using the Structure add-on, and have purchased Playa, Matrix and Stash as well.

Pages needed:
1. Product Category pages - displays links to Product Grid pages
2. Product Grid pages - displays product tiles. Tiles are groupings of products. The tiles must be created by the client in the CP because there are no patterns amongst the tile groupings.

*There is no singular product entry view. The Product Grids are the the most drilled down view of products.

Initially, I set up channels for Product Categories, Product Grids and Products. I related Product Grids to their respective Product Categories with Playa.

I imported a category of products as individual entries in the Products channel. This is where I'm stuck. I'm not sure if my channel structure is the most efficient and I don't know how to most efficiently create the tiles. I feel like there has to be a better way.

Any thoughts on approach would be greatly appreciated!


texts:
i have a url domain.com/index.php/washington/4 where 4 is category_id. I have only one category group and i try to use Low Seg2cat.

I need to get {segment_2} to display the title of category name (and nothing else) like

Title: {segment_2_category_name}

Is that possible? Itried but no success.

Any ideas please?


texts:
I've never had any need for submissions from non-members, but now I find myself in a situation where it would be easier than having the content emailed to me so that I can add it myself. Obviously, there's a risk of spam, but I'd like to give it a go at least.

However, I must admit I find the channel form helpfiles and examples a bit arcane. I am also not entirely clear on what I need to do to enable guests to posts to a particular channel. I have setup the channel so that new posts are set Pending, but I didn't see anything else of relevance in the channel settings.

I am looking to create a form with title, url (the form is for link submissions, so that's for the url for the submitted site), description, owner, email, language and category (I have those pre-set and they should only be able to pick one).


texts: Cannot use member id as dynamic conditional variable

texts:
I’m building a system where entries should have specific member access.

I have a parent template that checks member group which then embeds a template specific to this and then lists entries which should only display if the current member ID matches the specified entry ID. Problem is using the ‘member_id’ or ‘logged_in_member_id’ won’t work.

I’ve tried a number of ways to do this but none work.

Firstly I’ve tried directly:

{if '{pref_member_access}' == '{member_id}/{logged_in_member_id'}
do a thing
{/if}

Next I tried embedding the id:

{if '{pref_member_access}' == '{embed:mem_id}'}
do a thing
{/if}

with parent:

{embed="_page/.pref_list" mem_id="{member_id}/{logged_in_member_id}"}

and also I’ve tried with stash:

{exp:stash:set name="mem_id"}{member_id}/{logged_in_member_id}{/exp:stash:set}

These will all work and give me the correct output inside the embeded template but NOT if I try to use the output inside the conditional.

Just to clarify I am not using ‘{member_id}/{logged_in_member_id}’ as I have put it in the code above, I have used either/or

If I specify a member ID the conditional will work:

{embed="_page/.pref_list" mem_id="8"}
or
{exp:stash:set name="mem_id"}8{/exp:stash:set}
for example

even if I try to ‘stash’ the member ID at my master template it won’t work as a dynamic value either.

(you can probably ignore the stash code if you are unfamiliar with it, this isn’t really regarding that, I’m just trying to use the current logged in members ID as a dynamic value)

Any ideas?

Thanks


texts: giving each item in a EE loop a unique class without javascript?

texts:
I'm trying to create an Expression Engine loop (channel entries) that outputs an unordered list with each list item being an individual entry. Easy enough. But I'd also like each list item it outputs to have a unique class. For example, li class="column_one", li class="column_two", etc.

Can the channel entries tag do this? or do I have to add the classes with javascript?


texts: Someone know why Draggable doesn't save new categories order? I use draggable 1.4.2 with ExpressionEngine 2.8.1


texts:
Possible Duplicate:
  Assets 2.0 update crashes CP & site

Just went to install Assets 2.0 on a fresh install of EE 2.5.5 and got this PHP error:

  Parse error: syntax error, unexpected T_STATIC in
  /var/sites/t/testdomainone.co.uk/public_html/system/expressionengine/third_party/assets/helper.php
  on line 205

Any idea what is causing the issue here?


texts: Error in entries per page counting plugin

texts:
I'm working on a quick plugin to output where you are in a paginated list of entries but am having problems doing mathematical calculations on plugin parameters when one of them is using {super_search_total_results}.

This is what I have so far:

$output        = '';
$per_page      = ee()->TMPL->fetch_param('page_num'); // e.g. 9
$total_entries = ee()->TMPL->fetch_param('total_results'); // e.g. 50
$output        = $per_page + $total_entries;

return $this->return_data = $output;

And in the template I have:

{exp:td_tours_advanced_count
    page_num='6'
    url_segment="{last_segment}"
    total_results='{super_search_total_results}'
}

So with the above, if my total results are 14 then the expected result of $output should be 20 but instead I get 6. If I set $output to just equal $total_entries then the result is 14.

It's only when I try to use $total_entries in a mathematical operation that it always seems to evaluate to 0, i.e. if I do * or / I get 0.

But if I change the plugin parameter in the template to

{exp:td_tours_advanced_count
    page_num='6'
    url_segment="{last_segment}"
    total_results='14'
}

then the $output is as expected and all other mathematical operations work correctly. I've tried adding parse='inward' to the plugin but to no avail.

So why is that {super_search_total_results} parses OK as a string but when trying to use it as an integer, it always returns 0 (I've tried converting it to an integer/float but the output is still 0).


texts:
I'm using WYGWAM version 2.5 and I was able to copy paste into the field. Now nothing gets pasted except an empty paragraph.

I had set forcePasteAsPlainTExt set to yes.

Any suggestions?


texts: Distribute images in a custom Control Panel theme?

texts:
When creating a custom Control Panel theme, with the help of an override.css file, the easiest way is to make a copy of the default theme's image folder and put that in your theme directory. Then, make changes to the images located in that folder.

If you like to give away or sell a custom theme, how do you distribute the images folder (since I guess all icons not changed by you is licensed by EllisLab) and still make it a easy install?


texts: Secure expressionengine file permissions after ssh upload

texts:
So I made the mistake of making everything 777 on my local machine. I then zipped everything, uploaded the file via FTP to my server, then used SSH to unzip it. Now everything is 777, which is obviously bad.

I figured I could do something like chmod 644 * -R, then 666 and 777 on the things that needed it. However doing 644 gives me permission denied (755 works, but I assume that is not very safe either, or?)

What should the file permissions of all files (except the 666/777 ones) be? And is there a fast way of setting them?


texts: Entry Save goes to error page after 5.3.2 Update

texts:
Starting after the 5.3.2 update, clicking on 'save' or "save and close" in an entry creates the following error output. The entry does save, but these warnings are confusing to users, since the page has no additional styles or links or confirmation that the save worked.

Extensive googling on the subject has turned up nothing, so I'm wondering if its a new bug.

Error Page Content:

**Notice**
Undefined index: pages__pages_uri
ee/EllisLab/Addons/pages/tab.pages.php, line 155

Severity: E_NOTICE

**Warning**
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:120)
ee/legacy/core/Input.php, line 238

Severity: E_WARNING

**Warning**
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:120)
ee/legacy/core/Input.php, line 238

Severity: E_WARNING

**Warning**
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:120)
ee/legacy/libraries/Functions.php, line 393

Severity: E_WARNING


texts: Grab logged_in user info in PHP template and assign variables

texts:
can you help me writing this lines of code for grab in a EE template the information about a logged_in user, using php.

I'm using Vanilla Forum, and i want to use the JsConnect to pass the logged_in user information to the Vanilla Log in. Here's the guide:

Implementing Vanilla jsConnect Single-Signon on your Site

I found that libraries to include in system

PHP jsConnect client library

And the code to include in my page template is this:

<?php
require_once dirname(__FILE__).'/functions.jsconnect.php';

// 1. Get your client ID and secret here. These must match those in your jsConnect settings.
$clientID = "1234";
$secret = "1234";

// 2. Grab the current user from your session management system or database here.
$signedIn = true; // this is just a placeholder

// YOUR CODE HERE.

// 3. Fill in the user information in a way that Vanilla can understand.
$user = array();

if ($signedIn) {
   // CHANGE THESE FOUR LINES.
   $user['uniqueid'] = '123';
   $user['name'] = 'John PHP';
   $user['email'] = 'john.php@anonymous.com';
   $user['photourl'] = '';
}

// 4. Generate the jsConnect string.

// This should be true unless you are testing.
// You can also use a hash name like md5, sha1 etc which must be the name as the connection settings in Vanilla.
$secure = true;
WriteJsConnect($user, $_GET, $clientID, $secret, $secure);

How can i call the logged_in user info here

// 2. Grab the current user from your session management system or database here.
$signedIn = true; // this is just a placeholder

// YOUR CODE HERE.

with this

{if logged_in}
UniqueID={member_id}
Name={username}
Email={email}
PhotoUrl={photo_url}{photo_filename}
{/if}

And assign that the variables to pass to

// 3. Fill in the user information in a way that Vanilla can understand.
$user = array();

if ($signedIn) {
   // CHANGE THESE FOUR LINES.
   $user['uniqueid'] = '123';
   $user['name'] = 'John PHP';
   $user['email'] = 'john.php@anonymous.com';
   $user['photourl'] = '';
}

To generate a json file that vanilla JsConnect can read?

I think also

<?php
require_once dirname(__FILE__).'/functions.jsconnect.php';

return error in ExpressionEngine

Please somebody can tell me how can solve this.

Thank you in advance
Alessio


texts: EE 3.3.0: Mail not being sent for channel entry notification

texts:
Question regarding email.  When I get new entries in a channel, I'm not getting notified, even though I have notifications turned on:

Author notify: no
Entry notification: Yes.  Only one email listed.

I've verified my SMTP settings by sending a test message (Utilities -> Communicate).

I don't see any errors in the Logs --> Email (says "No Email logs found.").

Any thoughts on how to diagnose?


texts: CartThrob CT Admin statuses all mixed up

texts:
Hoping someone can point me in the right direction for an issue I'm having with CartThrob Order Channel statuses being all mixed up.

Basically, the orders channel has the statuses of several other channels being displayed. So there are the 7 or so payment related / shipped statuses that should be there, and an extra 10 from other status groups.

For instance:

Open
Printed
Packaged
Shipped
Payment Processing
Payment Refunded
Featured < Shouldn't be here
Draft < Shouldn't be here
Featured Home Page < Shouldn't be here
Etc. Etc. + 10 more < Shouldn't be here
Closed

Also, if I go to Admin > Channel Administration > Channels > Edit Group Assignments and select, "None", only the Order Statuses stop displaying. All the other group statuses continue to display in CT Admin, Order Manager and when editing in publish view.

Perhaps someone here knows there way around the Cartthrob / EE database tables, so I can load up phpMyAdmin and work it out manually?

Thank you for any assistance,


texts: Search relationship or relationship conditional

texts:
I have this in my template:

{exp:channel:entries
    channel="profiles"
    disable="categories|category_fields|member_data|pagination"
    {if segment_2}entry_id="not {segment_2}"{/if}
    dynamic="no"
}
    {if {profession}{profession:title}{/profession} == "foo"}
        <!-- display something -->
    {/if}
{/exp:channel:entries}

This returns the error:

  Error

  You have an invalid conditional in your template. Please review your
  conditionals for an unclosed string, invalid operators, a missing },
  or a missing {/if}.

  Parser State: Invalid Condition: Not enough operands for operator ” ==
  “.

What is wrong with my template? Is the test in my if-statement somehow causing this problem? Is there a way I can add this filter as a search in the channel entry tag?


texts:
Can someone explain to me why I am not capable of forcing a new ExpressionEngine session to be generated for a specific user? I've been following this link: https://stackoverflow.com/questions/13073134/what-is-the-best-way-to-log-a-user-in-programatically-in-expressionengine

What I am trying to do is to temporarily create an EE session, and then to create a channel entry for that logged in user. I can then destroy the session. However, my PHP script seems to fall down when it sees $this->EE. Is there something in particular I need to do to initiate the EE variable to begin with?

See my code below. Do I need to place this code in a template or something else?

// Get the member's id (the member must have permissions to post entries)
$log_in_id = 23; // conor.higgins@ul.ie - member id //

// Create session
echo 'before new session | ';
$this->EE->session->create_new_session($log_in_id);
//$this->EE->session->create_new_session(23, TRUE);
echo 'after new session | ';
print_r($this->EE->session);
$this->EE->load->library('api');
$this->EE->api->instantiate('channel_entries');

$data = array(
    'channel_name'  => 'members', //[Required]
    'title'         => $tmp_firstname.' '.$tmp_lastname, //[Required]
    'author_id'     => $memberID,
    //'entry_id'        => 0,
    'field_id_37'   => $memberID,
    'field_id_38'   => $tmp_firstname,
    'field_id_39'   => $tmp_lastname,
    'field_id_70'   => $tmp_company,
    'field_id_71'   => $tmp_ref,
    'field_id_73'   => $tmp_qty,
    'field_id_74'   => $tmp_remainder,
    'field_id_72'   => $tmp_owner
);
print_r($data);

$this->EE->api_channel_fields->setup_entry_settings(1, $data);

if ($this->EE->api_channel_entries->submit_new_entry(1, $data) === FALSE){ echo '[ERROR]'; }
else{ echo 'SUCCESS';  $this->EE->session->destroy(); }

Any info would be appreciated!


texts:
I just did a DB upgrade from 2.4 to 2.10.1. And I switched my templates to save as files. And I am having issues where EE will always load the site default template index. I've removed Pages and Better Workflow to see if that would help. If I try to go to any page other than the site index, it loads the sites default template. The SQL Query below is ran on every template/template group I create. If I modify the query below I can get it to pull the correct template, but what is configured with EE that is making it load the site's default template/index on every other template I try to create?

SELECT `exp_templates`.*, `exp_template_groups`.`group_name`
FROM (`exp_templates`)
JOIN `exp_template_groups` ON `exp_template_groups`.`group_id` = `exp_templates`.`group_id`
WHERE `exp_template_groups`.`site_id` =  '1'
AND `exp_templates`.`template_name` =  'index'
AND `exp_template_groups`.`is_site_default` =  'y'
#APP/libraries/Template.php L:2381  EE_Template::fetch_template()

SELECT `exp_templates`.*, `exp_template_groups`.`group_name`
FROM (`exp_templates`)
JOIN `exp_template_groups` ON `exp_template_groups`.`group_id` = `exp_templates`.`group_id`
WHERE `exp_template_groups`.`site_id` =  '1'
AND `exp_templates`.`template_name` =  '.layout'
AND `exp_template_groups`.`group_name` =  'site'
#APP/libraries/Template.php L:2381  EE_Template::fetch_template()


texts: 500 Internal Server Error - Only for Control Panel

texts:
There was a 500 error out of no where.

The front end works fine, however, I am not able to login.

Removed the .htaccess file and checked, still no avail.

Help please!

EE 2.11.1
PHP 5.6.13