Where do I modify the notifications in gd_notification?

This topic contains 6 replies, has 2 voices, and was last updated by  Alex Rollin 5 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #529593

    Vonn New
    Expired Member
    Post count: 8

    For instance I’d like to modify this notice:
    “Post received, your listing may need to be reviewed before going live, you can preview it here.”
    It appears on: add-listing/?listing_type=gd_place

    There are other notifications I’d like to modify.

    #529598

    Vonn New
    Expired Member
    Post count: 8

    For reference for others who may be looking, I found this particular string here:

    /plugins/geodirectory/includes/class-geodir-post-data.php:
     1592  				$post->ID     = $post_data['ID'];
     1593  				$preview_link = self::get_preview_link( $post );
     1594: 				$message      = sprintf( __( 'Post received, your listing may need to be reviewed before going live, you can preview it %shere%s.', 'geodirectory' ), "", "" );
     1595  			}
     1596  		}

    also:

    
    /plugins/geodirectory/languages/geodirectory-en_US.po:
     9457  #, php-format
     9458  msgid ""
     9459: "Post received, your listing may need to be reviewed before going live, you "
     9460  "can preview it %shere%s."
     9461  msgstr ""
    #529600

    Vonn New
    Expired Member
    Post count: 8

    Still looking for what is included in [gd_notifications].
    Where is that generated?

    #529601

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    which string are you looking for?

    You can edit PO files with POEdit.

    Instructions are here:

    https://wpgeodirectory.com/docs-v2/translation/overview/

    #529605

    Vonn New
    Expired Member
    Post count: 8

    Thanks for your reply.
    I’m not working with a translation, per se. I mainly want to change the output on the add_listing page.

    I’m unclear as to the effect changing the information in one place has on the other place. I edited the class-geodir-post-data.php file and my changes are visible.

    The changes I made are not visible here: geodirectory-en_US.po
    I made a different change in the po file but it is not visible.

    Do these files affect each other?
    When the geodirectoy plugin is updated, will changes in either of these files be overwritten?

    #529607

    Vonn New
    Expired Member
    Post count: 8

    I also have a question about adding a second link in the text. I’d like to modify it to say:

    Thank you for submitting your listing. It will be reviewed before going live, you can preview it here.
    You should receive an email with a link to submit your payment. You can to go directly to invoicing. You will need your User ID.

    I need to add the second link and I’d like to populate it with the User ID.

    #529696

    Alex Rollin
    Moderator
    Post count: 27815

    When you make changes to a PO file with POEdit, upon save it will create an MO file. The MO file is what WP uses.

    All updated PO and MO files should be placed in the /languages/ folder as described here:

    https://wpgeodirectory.com/docs-v2/translation/overview/

    Modifying that notification would require your own customization.

    If the user has selected a paid package they will be automatically forwarded to checkout.

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount