User Avatar

Help Desk ›› How to ›› User Avatar
13 July, 2021 07:04:21
shahinparsa1328
Topics: 1
Messages: 21
Hi i am using ultimate membership pro. i want show user avatar.
please guide me.

thanks a lot
13 July, 2021 07:30:51
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

If you are using default WordPress avatar management - try to use following shortcode to get avatar for current user:

[e2pdf-user id="current" key="user_avatar"]

If it will not work, it can be that it stored by "ultimate membership pro" under custom meta data, you must be able to find it under "Visual Mapper" if E2Pdf Template connected to "WordPress". Screenshot attached.

It's recommended to use "textarea" to see which output you get.

- If you will get Image URL then you will need just to map this meta key to "Image" object inside E2Pdf Template.

- If you will get Image ID instead of Image URL, then it will be need to update shortcode to something like below to get Image URL instead of Image ID:
[e2pdf-user id="current" key="mymeta" attachment_image_url="true" meta="true"]
OR
[e2pdf-user id="current" key="mymeta" attachment_image_url="true" size="full" meta="true"]

We remain at your service.
We would really appreciate your feedback at WordPress.org!
13 July, 2021 08:17:20
shahinparsa1328
Topics: 1
Messages: 21
now. how is sh pdf on tab membership card showing?
13 July, 2021 09:34:23
E2Pdf
Support
Topics: 7
Messages: 3156
Sorry, what do you mean by "how is sh pdf on tab membership card showing?"

E2Pdf Template must be connected to post type where you plan to place [e2pdf-download id="1"] shortcode (where 1 is the ID of E2Pdf Template). It can be done under options of E2Pdf Template (screenshot 1). So in case with "Ultimate Membership Pro" it must be connected to pages if you you want to show on edit profile page.

One of the way to add PDF download link is to use hook to add custom tab as: https://docs.ultimatemember.com/article/65-extend-ultimate-member-account-page-with-custom-tabs-content

Here is the code adopted to work with E2Pdf: https://codeshare.io/zyymYb. Function must be added to your theme functions.php and 246 must be replaced with the ID of your E2Pdf Template.

It will add custom tab and will render PDF download link as on screenshot 2.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
13 July, 2021 10:45:51
shahinparsa1328
Topics: 1
Messages: 21
Put it in this tab
13 July, 2021 11:02:17
E2Pdf
Support
Topics: 7
Messages: 3156
If this section has possibility to insert shortcodes you must be able to insert shortcode [e2pdf-download id="1" dataset="2"] where 1 is the ID of E2Pdf Template and 2 is the Page ID if E2Pdf Template connected to Pages.

If it doesn't have section where you can put shortcodes you must follow the way to add it with same syntax via "ultimate membership pro" hooks as:

echo do_shortcode('[e2pdf-download id="1" dataset="2"]');

You must be able to find out correct dataset via "E2Pdf" -> "Export" by choosing needed E2Pdf Template and choosing dataset.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
14 July, 2021 07:07:58
shahinparsa1328
Topics: 1
Messages: 21
Hi
thanks a lot for excellent answer you
one other qustion:
how rename download word?
14 July, 2021 07:20:28
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

You can set it inside E2Pdf Template under "Button Title" setting. Screenshot attached.

Or add "button-title" attribute to shortcode as:

[e2pdf-download id="1" button-title="Custom Button Title"]

We remain at your service.

We would really appreciate your feedback at WordPress.org!
14 July, 2021 23:48:39
shahinparsa1328
Topics: 1
Messages: 21
Hi
I create new field in Membership Pro, now how can i call that field?
thanks a lot
14 July, 2021 23:55:21
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

You need to click on field with "Right Mouse" -> "Map Field" and find created needed meta key for that field. It must be located under "User Meta Keys" section. It must look something like

[e2pdf-user id="current" key="somekey" meta="true"]

We remain at your service.
We would really appreciate your feedback at WordPress.org!
15 July, 2021 00:12:20
shahinparsa1328
Topics: 1
Messages: 21
i used this code, but not work.
[e2pdf-user id="current" key="ihc_avatar" attachment_image_url="true" meta="true"]

please guide me
15 July, 2021 00:18:10
E2Pdf
Support
Topics: 7
Messages: 3156
Create please "textarea" inside E2Pdf Template and map it with:

[e2pdf-user id="current" key="ihc_avatar" meta="true"]

Will it output anything?
We would really appreciate your feedback at WordPress.org!
15 July, 2021 00:23:32
shahinparsa1328
Topics: 1
Messages: 21
not working
15 July, 2021 00:35:10
E2Pdf
Support
Topics: 7
Messages: 3156
Attach please screenshots:

- E2Pdf Template where "textarea" mapped and visible
- Screenshot of generated PDF.
We would really appreciate your feedback at WordPress.org!
15 July, 2021 02:04:15
shahinparsa1328
Topics: 1
Messages: 21
the problem is solved.
thanks
15 July, 2021 02:18:17
shahinparsa1328
Topics: 1
Messages: 21
in Ulitimate Membeship Pro we can Membership Plans for users. now how show type plans on card?
aslo
how show date start and date end type plans?
15 July, 2021 02:53:43
E2Pdf
Support
Topics: 7
Messages: 3156
Do you need to extract user plans? Or all plans which is available?

Can you please attach "Ulitimate Membeship Pro" plugin to next message as we need to check if it's possible to extract this information as it will require complex shortcode structure to build. You can mark message as "Private" so only we can see and download it.

In general you need to find out how plans stored under user, extract Plan ID and extract Plan information by this ID.

The shortcode will look something likes this:
[e2pdf-wp id="dynamic" key="post_title"][e2pdf-user key="plans" meta="true"][/e2pdf-wp]

* This is new feature and it's not yet documented.

It will extract post_title of the Post ID which will be rendered with [e2pdf-user key="plans" meta="true"], "plans" is not exact meta key, it's just example. However "Ulitimate Membeship Pro" can store plans in "terms" also and it could be need to navigate via arrays via "path" attribute as described on that page: https://e2pdf.com/extensions/wordpress.


We would really appreciate your feedback at WordPress.org!
15 July, 2021 04:58:51
E2Pdf
Support
Topics: 7
Messages: 3156
Ok, thank you. We will let you know as soon as we complete review.
We would really appreciate your feedback at WordPress.org!
15 July, 2021 06:52:47
E2Pdf
Support
Topics: 7
Messages: 3156
Unfortunately after reviewing "Ulitimate Membeship Pro" it seems not possible to get this information without coding as plugin using own structure / functions / tables instead of default WordPress functionality.

We see that it has some builtin shortcodes like [ihc-user]. For example [ihc-user field="level_list"] will extract plan names but it doesn't include "dates". You can try to contact to "Ulitimate Membeship Pro" and ask maybe they have some special shortcodes to get full data.

P.S. Keep in mind please that "ihc" shortcodes will work only on frontend and will not work from backend ("E2Pdf" -> "Export") due the "Ulitimate Membeship Pro" structure.

As another possible solutions you can:

1. Use E2Pdf hooks to change output of [e2pdf-user] shortcode:

https://codeshare.io/zyy8YW

If it will be used [e2pdf-user id="current" key="custom_key"] it will output "Content to OUTPUT".

2. Add own custom shortcodes to wordpress which will be able to output needed data and use these shortcodes inside E2Pdf Template.

Any of above points will require PHP coding / WordPress structure knowledge.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
15 July, 2021 11:01:11
shahinparsa1328
Topics: 1
Messages: 21
H
plugin e2pdf not support arabic language.

please guide me
15 July, 2021 11:30:39
E2Pdf
Support
Topics: 7
Messages: 3156
You must use font which support "Arabic" characters. You can upload it at "E2Pdf" -> "Settings" -> "Fonts" and set it globally under E2Pdf Template.
We would really appreciate your feedback at WordPress.org!
26 August, 2021 05:46:02
shahinparsa1328
Topics: 1
Messages: 21
Hi
In the Ultimate Membership Pro plugin, there are options to display the type of membership as well as the date of issue and expiration of the membership type, but it is Class, not ID. Now how can I use these options?

please guide me.
Thank you
26 August, 2021 10:29:03
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

You still need to use custom PHP function to output these data due the structure of Ultimate Membership Pro plugin.

Here is updated function which must be added to functions.php https://codeshare.io/vwKjjn which can modify data depending on key used with "e2pdf-user" shortcode.

It will output "Content to OUTPUT" if it will be used such shortcode: [e2pdf-user key="custom_key"] or [e2pdf-user id="current" key="custom_key"]

We added detection of $user_id. So the last step you need to contact to Membership PRO support and ask them about available PHP function to get needed data via PHP with known $user_id.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
17 September, 2021 23:29:48
shahinparsa1328
Topics: 1
Messages: 21
Hi
How to change the previous pdf format without using the new add.
please guide me.
thank you
18 September, 2021 03:03:57
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

Sorry, can you please clarify what do you mean by "change the previous pdf format"?

If you need to replace PDF which was uploaded previously with E2Pdf Template, you must be able to re-upload it while E2Pdf Edit Template as on attached screenshot. Re-uploaded PDF must have same page sizes (width and height) which will be replaced as the firstly uploaded PDF.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
19 October, 2021 08:42:22
shahinparsa1328
Topics: 1
Messages: 21
Hi
How can i pdf create woocommerce product, cart and checkout page, Similar to the demos on your website

Please provide a video tutorial that relation.

thanks you
19 October, 2021 09:20:19
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

Unfortunately we are still working on video example and documentation for WooCommerce as it's still under active beta test, however you must be able to use "Auto PDF" feature while creating E2Pdf Template. You need to start process of creating new template and choose: extension - "WooCommerce" and needed item - "Products" / "Variations" / "Orders" / "Cart" and click "Auto PDF". It will generate draft PDF. If you will need some more information it must be used "Visual Mapper" as with any other E2Pdf Templates.

After creating "Cart" / "Orders" Templates you can set them on WooCommerce pages at "E2Pdf" -> "Settings" -> "WooCommerce".

Using "Orders" / "Products" / "Variations" E2Pdf Templates shortcodes such as [e2pdf-download] and [e2pdf-attachment] described here:

https://e2pdf.com/support/docs#shortcode-e2pdf-download

https://e2pdf.com/support/docs#shortcode-e2pdf-attachment

We remain at your service.
We would really appreciate your feedback at WordPress.org!
19 October, 2021 14:32:35
shahinparsa1328
Topics: 1
Messages: 21
Why the break are words? please see image uploaded.

thank you
19 October, 2021 22:59:30
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

Can you let us know please which language and which font do you use?
We would really appreciate your feedback at WordPress.org!
19 October, 2021 23:05:36
shahinparsa1328
Topics: 1
Messages: 21
Hi
language persian
20 October, 2021 01:27:24
E2Pdf
Support
Topics: 7
Messages: 3156
Can you try please to use attached font.

If it still will not work can you please write here any word which doesn't render correctly.

We would really appreciate your feedback at WordPress.org!
20 October, 2021 01:42:24
shahinparsa1328
Topics: 1
Messages: 21
Font problem not solved
20 October, 2021 01:54:00
E2Pdf
Support
Topics: 7
Messages: 3156
Please, keep attention on our messages:

Write please any word in "Persian" which doesn't rendered correctly inside PDF so we can make tests on our side. Unfortunately from your screenshot we do not understand how it must look like....
We would really appreciate your feedback at WordPress.org!
24 October, 2021 22:20:40
shahinparsa1328
Topics: 1
Messages: 21
Hi
How can I buy a Euro currency E2Pdf plugin?
25 October, 2021 01:31:33
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

We have prices in USD, however if you have Credit Card or PayPal account in Euro currency amount will be converted by payment processor upon payment process.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
7 November, 2021 08:58:24
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

1. Attach please the font that you are using to next message please. It must be zipped or share link where we can download it to test it on our side.
2. Attach please screenshot to be sure that the font set correctly inside E2Pdf Template as on attached screenshot.
3. Did you try any other fonts?

We remain at your service.
We would really appreciate your feedback at WordPress.org!
7 November, 2021 09:04:51
E2Pdf
Support
Topics: 7
Messages: 3156
Try to use please any of attached fonts:
We would really appreciate your feedback at WordPress.org!
7 November, 2021 10:08:58
E2Pdf
Support
Topics: 7
Messages: 3156
Submit please support ticket with access details to your WP Admin Dashboard here: https://e2pdf.com/support/request.
We would really appreciate your feedback at WordPress.org!
30 November, 2021 09:51:03
shahinparsa1328
Topics: 1
Messages: 21
Hi
On another website that is free of license, the problem is already ready. The window does not drag.
please guide me.

Thank you
1 December, 2021 00:05:13
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

Is the issue appear on any field inside this E2Pdf Template? or just on this? If just on current element try to:
Check "Disable WYSIWYG Editor". If it will not help, try to recreate element, check "Disable WYSIWYG Editor" and only after this modify the "Value".

If it happens on all elements check please if the issue appear on newly created E2Pdf Template?

If both answers yes - it looks like can be plugin conflict or replaced jquery library by some plugin (you can check and try disable it temporary). Unfortunately we will need to check it on your side directly in this case and if it's acceptable you can submit support ticket with access details here: https://e2pdf.com/support/request

We remain at your service.
We would really appreciate your feedback at WordPress.org!