Code: Select all
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.metadata.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery_cookie.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.timers.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.hoverIntent.min.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.text-overflow.min.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.watermark.min.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.elastic.source.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.events.input.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.form.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.titlealert.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.detectmobilebrowser.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.expander.min.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.editable.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.jgrowl_minimized.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/underscore-min.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery.mentionsInput.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/m.socialnet.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/m.confirmbox.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/m.im.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/m.notify.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/m.approval.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/m.userstatus.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/m.activitypage.js"></script>
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/m.profile.js"></script>
<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(function($){
socialNetwork.init({
allow_load: {B_AJAX_LOAD_ALLOW},
rtl: '{S_CONTENT_DIRECTION}' == 'rtl' ? true: false,
expanderTextMore: '{L_SN_EXPANDER_READ_MORE}',
expanderTextLess: '{L_SN_EXPANDER_READ_LESS}',
browserOutdatedTitle : '{L_BROWSER_OUTDATED_TITLE}',
browserOutdated : '{L_BROWSER_OUTDATED}',
showBrowserOutdated: '{S_SN_SHOW_OUTDATED_BROWSER_INFO}' == '1' ? true : false,
user_id: {S_SN_CURRENT_USER_ID},
cookie : {
name : '{COOKIE_NAME}',
path : '{COOKIE_PATH}',
domain : '{COOKIE_DOMAIN}',
secure : '{COOKIE_SECURE}'=='1'
},
confirmBox: {
enable: '{S_SN_CB_ENABLE}' == '1' ? true : false,
resizable : '{S_SN_CB_RESIZABLE}' == '1' ? true : false,
draggable : '{S_SN_CB_DRAGGABLE}' == '1' ? true : false,
modal : '{S_SN_CB_MODAL}' == '1' ? true : false,
width : '{S_SN_CB_WIDTH}',
button_confirm : '{L_SN_US_CONFIRM}',
button_cancel : '{L_SN_US_CANCEL}',
button_close : '{L_SN_US_CLOSE}',
postMinChar : {I_POST_MIN_CHARS}
},
enableModules : {
im : '{SN_MODULE_IM_ENABLED}' == '1',
us : '{SN_MODULE_USERSTATUS_ENABLED}' == '1',
ntf : '{SN_MODULE_NOTIFY_ENABLED}' == '1',
fms : '{SN_MODULE_APPROVAL_ENABLED}' == '1',
ap : '{SN_MODULE_ACTIVITYPAGE_ENABLED}' == '1' && '{S_ON_ACTIVITYPAGE}' == 1,
up : '{SN_MODULE_PROFILE_ENABLED}' == '1'
},
comments : {
watermark : '{L_SN_US_WRITE_COMMENT}',
empty : '{L_SN_US_EMPTY_COMMENT}',
deleteTitle : '{L_SN_CB_DELETE_COMMENT_TITLE}',
deleteText : '{L_SN_CB_DELETE_COMMENT_TEXT}'
},
menuPosition:{
my : "<!-- IF S_CONTENT_DIRECTION eq 'ltr' -->right<!-- ELSE -->left<!-- ENDIF --> top",
at : "<!-- IF S_CONTENT_DIRECTION eq 'ltr' -->left<!-- ELSE -->right<!-- ENDIF --> top"
}
});
// ## ACTIVITY PAGE -=- START ##
<!-- IF SN_MODULE_ACTIVITYPAGE_ENABLED and S_ON_ACTIVITYPAGE -->
socialNetwork.ap.init({
url : '{SOCIALNET_ROOT_PATH}activitypage.php',
blockOnlineUsers : '{B_SN_BLOCK_ONLINE_USERS_ENABLED}' == '1',
tikTakOnline : {I_SN_BLOCK_ONLINE_USERS_CHECK_TIME},
urlUsersAutocomplete: '{U_USERS_AUTOCOMPLETE}'
});
<!-- ENDIF -->
// ## ACTIVITY PAGE -=- END ##
// ## INSTANT MESSENGER -=- START ##
<!-- IF SN_MODULE_IM_ENABLED -->
socialNetwork.im.init({
url: '{SOCIALNET_ROOT_PATH}im.php',
rootPath: '{SOCIALNET_ROOT_PATH}',
newMessage: '{L_SN_IM_NEW_MESSAGE}',
namesMe: '{S_SN_USERNAME}',
youAreOffline: '{L_SN_IM_YOU_ARE_OFFLINE}',
titleNew: '{L_SN_IM_NEW_MESSAGE}',
sound: '{S_SN_IM_USER_SOUND}' == '1' ? true: false,
isOnline: '{SN_IM_ONLINE}' == '1' ? true: false,
timersMin: {SN_IM_MIN_CHECK},
timersMax: {SN_IM_MAX_CHECK},
lastCheckTime: {SN_IM_LAST_CHECKTIME},
linkNewWindow: '{S_SN_IM_LINK_NEW_WINDOW}' == '1' ? true: false,
playSoundOnPageLoad: {SN_IM_PLAY_SOUND_ON_PAGELOAD},
sendSequence: {
alt : {SN_IM_SENDSEQ_ALT},
ctrl : {SN_IM_SENDSEQ_CTRL},
shift : {SN_IM_SENDSEQ_SHIFT},
key : {SN_IM_SENDSEQ_KEY}
},
closeSequence : {
alt : {SN_IM_CLOSESEQ_ALT},
ctrl : {SN_IM_CLOSESEQ_CTRL},
shift : {SN_IM_CLOSESEQ_SHIFT},
key : {SN_IM_CLOSESEQ_KEY}
}
});
<!-- ENDIF -->
// ## INSTANT MESSENGER -=- END ##
// ## NOTIFICATIONS -=- START ##
<!-- IF SN_MODULE_NOTIFY_ENABLED -->
socialNetwork.ntf.init({
url:'{SOCIALNET_ROOT_PATH}notify.php',
theme: '{S_SN_NTF_THEME}',
life: {SN_NTF_LIFE},
checkTime: {SN_NTF_CHECKTIME}
});
<!-- ENDIF -->
// ## NOTIFICATIONS -=- END ##
// ## FRIEND MANAGEMENT SYSTEM -=- START ##
<!-- IF SN_MODULE_APPROVAL_ENABLED -->
socialNetwork.fms.init({
url: '{SOCIALNET_ROOT_PATH}approval.php',
urlFMS: '{SOCIALNET_ROOT_PATH}fms_users.php',
noFriends: '{L_FAS_FRIENDGROUP_NO_TOTAL}',
deleteUserGroup: '{L_FMS_DELETE_UFG}',
deleteUserGroupText: '{L_FMS_DELETE_UFG_TEXT}'
});
<!-- ENDIF -->
// ## FRIEND MANAGEMENT SYSTEM -=- END ##
// ## USER STATUS -=- START ##
<!-- IF SN_MODULE_USERSTATUS_ENABLED -->
socialNetwork.us.init({
watermark : '{L_SN_US_WHATS_ON_YOUR_MIND}',
emptyStatus : '{L_SN_US_EMPTY_STATUS}',
url : '{SOCIALNET_ROOT_PATH}userstatus.php',
urlFetch : '{SOCIALNET_ROOT_PATH}fetch.php',
deleteStatusTitle : '{L_SN_CB_DELETE_STATUS_TITLE}',
deleteStatusText: '{L_SN_CB_DELETE_STATUS_TEXT}',
deleteActivityTitle : '{L_SN_CB_DELETE_ACTIVITY_TITLE}',
deleteActivityText: '{L_SN_CB_DELETE_ACTIVITY_TEXT}'
});
<!-- ENDIF -->
// ## USER STATUS -=- END ##
// ## PROFILE -=- START ##
<!-- IF SN_MODULE_PROFILE_ENABLED -->
socialNetwork.up.init({
url : '{U_UP_TAB_WALL}',
urlAJAX : '{U_UP_AJAXURL}',
urlSelectFriends: '{U_SELECT_FRIENDS}',
spinner : '{L_SN_UP_TABS_SPINNER}',
nextText : '{L_NEXT}',
prevText : '{L_PREVIOUS}',
dateFormat : '{SN_DATE_FORMAT}',
dayNames : [ '{L_SN_UP_SUNDAY}', '{L_SN_UP_MONDAY}', '{L_SN_UP_TUESDAY}', '{L_SN_UP_WEDNESDAY}', '{L_SN_UP_THURSDAY}', '{L_SN_UP_FRIDAY}', '{L_SN_UP_SATURDAY}' ],
dayNamesShort : [ '{L_SN_UP_SUNDAY_MIN}', '{L_SN_UP_MONDAY_MIN}', '{L_SN_UP_TUESDAY_MIN}', '{L_SN_UP_WEDNESDAY_MIN}', '{L_SN_UP_THURSDAY_MIN}', '{L_SN_UP_FRIDAY_MIN}', '{L_SN_UP_SATURDAY_MIN}' ],
monthNames : [{SN_UP_MONTH_NAMES}],
monthNamesShort : [{SN_UP_MONTH_NAMES_SHORT}],
menuPosition:{
my : "<!-- IF S_CONTENT_DIRECTION eq 'ltr' -->right<!-- ELSE -->left<!-- ENDIF --> top",
at : "<!-- IF S_CONTENT_DIRECTION eq 'ltr' -->right<!-- ELSE -->left<!-- ENDIF --> bottom"
}
});
<!-- ENDIF -->
// ## PROFILE -=- END ##
});
// ]]>
</script>
Code: Select all
<script type="text/javascript" src="{T_SOCIALNET_JS_PATH}/jquery-1.8.3.min.js"></script>
// ## PROFILE -=- START ##
<!-- IF SN_MODULE_PROFILE_ENABLED -->
socialNetwork.up.init({
url : '{U_UP_TAB_WALL}',
urlAJAX : '{U_UP_AJAXURL}',
urlSelectFriends: '{U_SELECT_FRIENDS}',
spinner : '{L_SN_UP_TABS_SPINNER}',
nextText : '{L_NEXT}',
prevText : '{L_PREVIOUS}',
dateFormat : '{SN_DATE_FORMAT}',
dayNames : [ '{L_SN_UP_SUNDAY}', '{L_SN_UP_MONDAY}', '{L_SN_UP_TUESDAY}', '{L_SN_UP_WEDNESDAY}', '{L_SN_UP_THURSDAY}', '{L_SN_UP_FRIDAY}', '{L_SN_UP_SATURDAY}' ],
dayNamesShort : [ '{L_SN_UP_SUNDAY_MIN}', '{L_SN_UP_MONDAY_MIN}', '{L_SN_UP_TUESDAY_MIN}', '{L_SN_UP_WEDNESDAY_MIN}', '{L_SN_UP_THURSDAY_MIN}', '{L_SN_UP_FRIDAY_MIN}', '{L_SN_UP_SATURDAY_MIN}' ],
monthNames : [{SN_UP_MONTH_NAMES}],
monthNamesShort : [{SN_UP_MONTH_NAMES_SHORT}],
menuPosition:{
my : "<!-- IF S_CONTENT_DIRECTION eq 'ltr' -->right<!-- ELSE -->left<!-- ENDIF --> top",
at : "<!-- IF S_CONTENT_DIRECTION eq 'ltr' -->right<!-- ELSE -->left<!-- ENDIF --> bottom"
}
});
<!-- ENDIF -->
// ## PROFILE -=- END ##
});
// ]]>
</script>
popup and dialog not working:
- remove all duplicate jquery and jqueryui entries (jquery.js, jquery-min.js, jquery-1.x.y.z.js, jquery-ui.js, jquery-ui-min.js, etc). ONLY includeJquery Pack for phpBB MOD
and enable it. if you have more than one jquery in your code you get conflict error from this mod and other mods that use jquery. make sure jquery pack is installed correctly in your theme and is enable and remove all other jquery entries.
Yes, I did. Maybe I should uninstall it and run it again?emosbat wrote:did you ranajaxlike_install.php
?
Thank you so much, now everything works great!emosbat wrote:you do not need to remove all of those codes. you only need to remove jquery.js tags like this
[...]
thanks. I will include them in first post.volgograd wrote: @emosbat - I will send you my language and theme patch, so you can incorporate them when you have time.
it is better to include jq pack instead others. you may missed some code. read first post for more help.marc60 wrote:when the jquery library is already included
you may missed so mod code. check source code manually.skarekrow wrote:I did everything and when I click "like" button it gets me to the top of the page and nothing happens. I installed this jquery pack and still nothing. I don't know english very good, I read this FAQ but I don't know what could be wrong. Please help.
thanks I will include it in first post.