The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

edit "Actions" ,edit plus_menu

View previous topic View next topic Go down

Solved edit "Actions" ,edit plus_menu

Post by xiaomah01 on May 27th 2012, 7:16 am

1: change the word "Actions"(better change to img)


2:edit or change the word/link in plus menu


3:(if possibility)can put for each floor,when click ,show plus menu
so as to add a Favorites

Spoiler:
sorry poor english Razz


Last edited by xiaomah01 on May 27th 2012, 8:39 pm; edited 1 time in total

xiaomah01
Forumember

Male Posts : 206
Reputation : 7
Language : English|Chinese|malay
Location : malaysia

http://johor.forumn.org/

Back to top Go down

Solved Re: edit "Actions" ,edit plus_menu

Post by c3vietk on May 27th 2012, 8:35 am

Display ~> Template ~> General ~> Viewtopicbody :

Find :
Code:
            <a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=forumotion">{L_SHARE}</a>
            <!-- BEGIN switch_plus_menu -->
             | 
            <script type="text/javascript">//<![CDATA[
               var url_favourite = '{U_FAVOURITE_JS_PLUS_MENU}';
               var url_newposts = '{U_NEWPOSTS_JS_PLUS_MENU}';
               var url_egosearch = '{U_EGOSEARCH_JS_PLUS_MENU}';
               var url_unanswered = '{U_UNANSWERED_JS_PLUS_MENU}';
               var url_watchsearch = '{U_WATCHSEARCH_JS_PLUS_MENU}';
               var url_tellfriend = '{U_TELLFRIEND_JS_PLUS_MENU}';
               insert_plus_menu('f{FORUM_ID}&amp;t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
            //]]>
            </script>
            <!-- END switch_plus_menu -->
Replace with :
Code:
            <a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=forumotion">zzzShare</a>
            <!-- BEGIN switch_plus_menu -->
             | 
            <script type="text/javascript">//<![CDATA[
                                  function insert_plus_menu(search_where, session_id, add_favourite) {
               var favourite = '';
               session_id = (session_id ? '&sid=' + session_id : '');
               if (add_favourite) {
                  favourite = search_where.replace(new RegExp("f([0-9]*)(&|&)t=([0-9]*)", "g"), '$3');
                  url_favourite = window.url_favourite || ('/search.forum?search_id=favouritesearch&add_favourite=' + favourite + session_id);
                  favourite = '<a rel="nofollow" href="' + url_favourite + '">zzzzAdd to your favourites</a><br />'
               }
               search_where = '&search_where=' + search_where;
               url_newposts = window.url_newposts || ('/search.forum?search_id=newposts' + search_where + session_id);
               url_egosearch = window.url_egosearch || ('/search.forum?search_id=egosearch' + search_where + session_id);
               url_unanswered = window.url_unanswered || ('/search.forum?search_id=unanswered' + search_where + session_id);
               url_watchsearch = window.url_watchsearch || ('/search.forum?search_id=watchsearch' + search_where + session_id);
               url_tellfriend = window.url_tellfriend || ('/tell_friend.forum?f=' + search_where + session_id);
               document.write('<a rel="nofollow" href="javascript:showhide(document.getElementById(\'plus_menu\'))">zzzACTIONS</a><br /><div id="plus_menu" style="display:none;position:absolute;margin-top:8px;z-index:1;"><table class="forumline" cellpadding="3" cellspacing="0" border="0" width="200"><tr><th class="thHead">zzzzActions</th></tr><tr><td class="row1" nowrap="nowrap"><span class="gensmall"><b><a rel="nofollow" href="' + url_newposts + '">zzzzNewposts</a><br /><a rel="nofollow" href="' + url_egosearch + '">zzzYourposts</a><br /><a rel="nofollow" href="' + url_unanswered + '">zzzUnanswers</a><br /><a href="' + url_watchsearch + '">zzzTopic(s) being watched</a><hr>' + favourite + '<a rel="nofollow" href="' + url_tellfriend + '">zzzSend to a friend</a><br /><a rel="nofollow" href="' + self.location.href + '" onclick="link_bbcode();return false">zzzCopy BBCode URL</a><br /><a rel="nofollow" href="javascript:void(0);" onclick="window.print();return false">zzzPrint this page</a></b></span></td></tr></table></div>')
            }
            insert_plus_menu('f{FORUM_ID}&amp;t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
            //]]>
            </script>
            <!-- END switch_plus_menu -->
edit these labels as you wish : zzzShare, zzzACTIONS, zzzzAdd to your favourites, zzzPrint this page, zzzPrint this page, zzzzActions, zzzzNewposts, zzzYourposts, zzzUnanswers, zzzTopic(s) being watched, zzzSend to a friend

c3vietk
Forumember

Male Posts : 65
Reputation : 41
Language : Vietnamese, HTML, Javascript, C#, PHP
Location : Vietnam, HCMc

http://diendan.chinhphuc.info/

Back to top Go down

Solved Re: edit "Actions" ,edit plus_menu

Post by xiaomah01 on May 27th 2012, 10:16 am

done...only favourites did not work

when click,direct to favouritesearch body

link Can not be added scratch

xiaomah01
Forumember

Male Posts : 206
Reputation : 7
Language : English|Chinese|malay
Location : malaysia

http://johor.forumn.org/

Back to top Go down

Solved Re: edit "Actions" ,edit plus_menu

Post by c3vietk on May 27th 2012, 10:39 am

oh! my mistake :p

Code:
            <a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=forumotion">zzzShare</a>
            <!-- BEGIN switch_plus_menu -->
            |
            <script type="text/javascript">//<![CDATA[
                                  function insert_plus_menu(search_where, session_id, add_favourite) {
              var favourite = '';
              session_id = (session_id ? '&sid=' + session_id : '');
              if (add_favourite) {
                  favourite = search_where.replace(new RegExp("f([0-9]*)(&|&)t=([0-9]*)", "g"), '$3');
                  url_favourite = window.url_favourite || ('/search.forum?search_id=favouritesearch&add_favourite=' + favourite + session_id);
                  favourite = '<a rel="nofollow" href="' + url_favourite + '">zzzzAdd to your favourites</a><br />'
              }
              search_where = '&search_where=' + search_where;
              url_newposts = window.url_newposts || ('/search.forum?search_id=newposts' + search_where + session_id);
              url_egosearch = window.url_egosearch || ('/search.forum?search_id=egosearch' + search_where + session_id);
              url_unanswered = window.url_unanswered || ('/search.forum?search_id=unanswered' + search_where + session_id);
              url_watchsearch = window.url_watchsearch || ('/search.forum?search_id=watchsearch' + search_where + session_id);
              url_tellfriend = window.url_tellfriend || ('/tell_friend.forum?f=' + search_where + session_id);
              document.write('<a rel="nofollow" href="javascript:showhide(document.getElementById(\'plus_menu\'))">zzzACTIONS</a><br /><div id="plus_menu" style="display:none;position:absolute;margin-top:8px;z-index:1;"><table class="forumline" cellpadding="3" cellspacing="0" border="0" width="200"><tr><th class="thHead">zzzzActions</th></tr><tr><td class="row1" nowrap="nowrap"><span class="gensmall"><b><a rel="nofollow" href="' + url_newposts + '">zzzzNewposts</a><br /><a rel="nofollow" href="' + url_egosearch + '">zzzYourposts</a><br /><a rel="nofollow" href="' + url_unanswered + '">zzzUnanswers</a><br /><a href="' + url_watchsearch + '">zzzTopic(s) being watched</a><hr>' + favourite + '<a rel="nofollow" href="' + url_tellfriend + '">zzzSend to a friend</a><br /><a rel="nofollow" href="' + self.location.href + '" onclick="link_bbcode();return false">zzzCopy BBCode URL</a><br /><a rel="nofollow" href="javascript:void(0);" onclick="window.print();return false">zzzPrint this page</a></b></span></td></tr></table></div>')
            }
            var url_favourite = '{U_FAVOURITE_JS_PLUS_MENU}';
            var url_newposts = '{U_NEWPOSTS_JS_PLUS_MENU}';
            var url_egosearch = '{U_EGOSEARCH_JS_PLUS_MENU}';
            var url_unanswered = '{U_UNANSWERED_JS_PLUS_MENU}';
            var url_watchsearch = '{U_WATCHSEARCH_JS_PLUS_MENU}';
            var url_tellfriend = '{U_TELLFRIEND_JS_PLUS_MENU}';
            insert_plus_menu('f{FORUM_ID}&amp;t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
            //]]>
            </script>
            <!-- END switch_plus_menu -->

c3vietk
Forumember

Male Posts : 65
Reputation : 41
Language : Vietnamese, HTML, Javascript, C#, PHP
Location : Vietnam, HCMc

http://diendan.chinhphuc.info/

Back to top Go down

Solved Re: edit "Actions" ,edit plus_menu

Post by xiaomah01 on May 27th 2012, 11:32 am

ok,done Very good is work

then can put for each floor?or some where?
i put the code:
<a rel="nofollow" href="' + url_favourite + '">bbb</a>

do not work scratch
when click bbb direct You can return to the index...

xiaomah01
Forumember

Male Posts : 206
Reputation : 7
Language : English|Chinese|malay
Location : malaysia

http://johor.forumn.org/

Back to top Go down

Solved Re: edit "Actions" ,edit plus_menu

Post by c3vietk on May 27th 2012, 4:51 pm

try this code :
Code:
<script type="text/javascript">
document.write('<a rel="nofollow" href="' + url_favourite + '">bbb</a>');
</script>

c3vietk
Forumember

Male Posts : 65
Reputation : 41
Language : Vietnamese, HTML, Javascript, C#, PHP
Location : Vietnam, HCMc

http://diendan.chinhphuc.info/

Back to top Go down

Solved Re: edit "Actions" ,edit plus_menu

Post by xiaomah01 on May 27th 2012, 8:38 pm

done Very good u are perfect

good skill king

xiaomah01
Forumember

Male Posts : 206
Reputation : 7
Language : English|Chinese|malay
Location : malaysia

http://johor.forumn.org/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum