Jump to content

Photo
- - - - -

How can i edit your coding in PHP - Text / Images

edit

  • Please log in to reply
3 replies to this topic

#1 jacksii

jacksii

    Level 3

  • Members
  • Level
  • 9 points
  • 63 posts

Posted 28 July 2018 - 01:10 PM

Hey,

i am facing the issue that i need to resolve.

can you please let me know that how can i edit TEXT in you PHP coding. sample of code is added here

if($('notifications_markread_link_main')){
$('notifications_markread_link_main').addEvent('click', function() {
$('notifications_markread_main').setStyle('display', 'none');
en4.activity.hideNotifications('<?php echo $this->translate("0 Updates");?>');
});
}

in this code i want to replace 0 updates with a small 48 x 48 icon image

how can i do this



#2 y2k4ever

y2k4ever

    Level 2

  • Members
  • Level
  • 35 points
  • 48 posts

Posted 30 July 2018 - 06:16 AM

 

Hey,

i am facing the issue that i need to resolve.

can you please let me know that how can i edit TEXT in you PHP coding. sample of code is added here

if($('notifications_markread_link_main')){
$('notifications_markread_link_main').addEvent('click', function() {
$('notifications_markread_main').setStyle('display', 'none');
en4.activity.hideNotifications('<?php echo $this->translate("0 Updates");?>');
});
}

in this code i want to replace 0 updates with a small 48 x 48 icon image

how can i do this

 

if($('notifications_markread_link_main')){
$('notifications_markread_link_main').addEvent('click', function() {
$('notifications_markread_main').setStyle('display', 'none');
en4.activity.hideNotifications('<?php echo "<img src=/"smiley.gif/" height=/"16/" width=/"16/">";?>');
});
}


#3 jacksii

jacksii

    Level 3

  • Members
  • Level
  • 9 points
  • 63 posts

Posted 30 July 2018 - 04:52 PM

if($('notifications_markread_link_main')){
$('notifications_markread_link_main').addEvent('click', function() {
$('notifications_markread_main').setStyle('display', 'none');
en4.activity.hideNotifications('<?php echo "<img src=/"smiley.gif/" height=/"16/" width=/"16/">";?>');
});
}

thank you i will take a look in it



#4 jacksii

jacksii

    Level 3

  • Members
  • Level
  • 9 points
  • 63 posts

Posted 30 July 2018 - 05:06 PM

 

if($('notifications_markread_link_main')){
$('notifications_markread_link_main').addEvent('click', function() {
$('notifications_markread_main').setStyle('display', 'none');
en4.activity.hideNotifications('<?php echo "<img src=/"smiley.gif/" height=/"16/" width=/"16/">";?>');
});
}

thank you i will take a look in it

 

 

this giving an error of we are sorry

 

my code is

"<img src=/"http://url of image/icon/" height=/"16/" width=/"16/">";

let me know the correct way







Also tagged with one or more of these keywords: edit

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


All the resources listed here are just for testing purpose and they shouldn't be used at any commercial environment without a valid license.
Those are for users who wants to try them before buy. Help the developer to build it better by purchasing them from original authors.