Action block on member profile page is empty

Hi

I removed the actions block a while ago but now I've put it back there's nothing showing in the actions box on the profile page on the site so no-one can send greetings, add friends etc!  How do I get the actions back?

 

Cheers

Quote · 5 Dec 2010

Execute these mysql queries :

--
-- Dumping data for table `sys_objects_actions`
--
INSERT INTO `sys_objects_actions` (`ID`, `Caption`, `Icon`, `Url`, `Script`, `Eval`, `Order`, `Type`, `bDisplayInSubMenuHeader`) VALUES
(1, '{evalResult}', 'edit.png', 'pedit.php?ID={ID}', '', 'if ({ID} != {member_id}) return;\r\nreturn _t(''{cpt_edit}'');', 1, 'Profile', 0),
(2, '{evalResult}', 'action_send.png', 'mail.php?mode=compose&recipient_id={ID}', '', 'if ({ID} == {member_id}) return;\r\nreturn _t(''{cpt_send_letter}'');', 2, 'Profile', 0),
(3, '{cpt_fave}', 'action_fave.png', '', '{evalResult}', 'if ({ID} == {member_id}) return;\r\n\r\n$bDisplayType  = {display_type};\r\n$iWindowWidth  = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n$sOnclick = ( $bDisplayType ) \r\n    ? "window.open( ''list_pop.php?action=hot&ID={ID}'', '''', ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'' );" \r\n    : "getHtmlData( ''ajaxy_popup_result_div_{ID}'', ''list_pop.php?action=hot&ID={ID}&mode=ajax'');return false;";\r\n    \r\nreturn $sOnclick;\r\n', 3, 'Profile', 0),
(4, '{cpt_befriend}', 'action_friends.png', '', '{evalResult}', 'if ({ID} == {member_id} OR is_friends({ID} , {member_id})) return;\r\n\r\n$bDisplayType  = {display_type};\r\n$iWindowWidth  = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n$sOnclick = ( $bDisplayType ) \r\n    ? "window.open( ''list_pop.php?action=friend&ID={ID}'', '''', ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'' );" \r\n    : "getHtmlData( ''ajaxy_popup_result_div_{ID}'', ''list_pop.php?action=friend&ID={ID}&mode=ajax'');return false;";\r\n\r\nreturn $sOnclick;', 4, 'Profile', 0),
(5, '{cpt_greet}', 'action_greet.png', '', '{evalResult}', 'if ({ID} == {member_id}) return;\r\n\r\n$bDisplayType  = {display_type};\r\n$iWindowWidth  = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n$sOnclick = ( $bDisplayType ) \r\n    ? "window.open( ''greet.php?sendto={ID}'', '''', ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'' );" \r\n    : "getHtmlData( ''ajaxy_popup_result_div_{ID}'', ''greet.php?sendto={ID}&mode=ajax'');return false;";\r\n    \r\nreturn $sOnclick;\r\n', 5, 'Profile', 0),
(6, '{cpt_get_mail}', 'action_email.png', '', '{evalResult}', 'if ({ID} == {member_id}) return;\r\n\r\n$bDisplayType  = {display_type};\r\n$bAnonymousMode  = ''{anonym_mode}'';\r\n$iWindowWidth  = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\nif ( !$bAnonymousMode ) {\r\n\r\n    $sOnclick = ( $bDisplayType ) \r\n        ? "window.open( ''freemail.php?ID={ID}'', '''', ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'' );" \r\n        : "getHtmlData( ''ajaxy_popup_result_div_{ID}'', ''freemail.php?ID={ID}&mode=ajax'');return false;";\r\n\r\n    return $sOnclick;\r\n}\r\nelse \r\n    return null;', 6, 'Profile', 0),
(7, '{cpt_share}', 'action_share.png', '', 'return launchTellFriendProfile({ID});', '', 7, 'Profile', 0),
(8, '{cpt_report}', 'action_report.png', '', '{evalResult}', 'if ({ID} == {member_id}) return;\r\n\r\n$bDisplayType  = {display_type};\r\n$iWindowWidth  = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n$sOnclick = ( $bDisplayType ) \r\n    ? "window.open( ''list_pop.php?action=spam&ID={ID}'', '''', ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'' );" \r\n    : "getHtmlData( ''ajaxy_popup_result_div_{ID}'', ''list_pop.php?action=spam&ID={ID}&mode=ajax'');return false;";\r\n    \r\nreturn $sOnclick;\r\n', 8, 'Profile', 0),
(9, '{cpt_block}', 'action_block.png', '', '{evalResult}', 'if ( {ID} == {member_id} || isBlocked({member_id}, {ID}) ) return;\r\n\r\n$bDisplayType  = {display_type};\r\n$iWindowWidth  = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n$sOnclick = ( $bDisplayType ) \r\n    ? "window.open( ''list_pop.php?action=block&ID={ID}'', '''', ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'' );" \r\n    : "getHtmlData( ''ajaxy_popup_result_div_{ID}'', ''list_pop.php?action=block&ID={ID}&mode=ajax'');return false;";\r\n    \r\nreturn $sOnclick;', 9, 'Profile', 0),
(10, '{sbs_profile_title}', 'action_subscribe.png', '', '{sbs_profile_script}', '', 10, 'Profile', 0),
(11, '{cpt_remove_friend}', 'action_friends.png', '', '{evalResult}', 'if ({ID} == {member_id} OR !is_friends({ID} , {member_id}) ) return;\r\n\r\n$bDisplayType  = {display_type};\r\n$iWindowWidth  = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n$sOnclick = ( $bDisplayType ) \r\n    ? "window.open( ''list_pop.php?action=remove_friend&ID={ID}'', '''', ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'' );" \r\n    : "getHtmlData( ''ajaxy_popup_result_div_{ID}'', ''list_pop.php?action=remove_friend&ID={ID}&mode=ajax'');return false;";\r\n\r\nreturn $sOnclick;', 4, 'Profile', 0),
(12, '{cpt_unblock}', 'action_block.png', '', '{evalResult}', 'if ({ID} == {member_id} || !isBlocked({member_id}, {ID}) ) return;\r\n\r\n$bDisplayType  = {display_type};\r\n$iWindowWidth  = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n$sOnclick = ( $bDisplayType ) \r\n    ? "window.open( ''list_pop.php?action=unblock&ID={ID}'', '''', ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'' );" \r\n    : "getHtmlData( ''ajaxy_popup_result_div_{ID}'', ''list_pop.php?action=unblock&ID={ID}&mode=ajax'');return false;";\r\n    \r\nreturn $sOnclick;\r\n', 9, 'Profile', 0);

 

Clean all caches!

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 6 Dec 2010

Thanks very much for your reply.  I tried that query but those records already exist in the database!  I compared what was in there to what was in your query and it doesn't seem like this is the problem.  On closer inspection, I can see there is some output of HTML within the block so am thinking it's now possibly a style issue so something else is screwing it up....I'll take a closer look

Embarassed

Quote · 6 Dec 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.