|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions Add to favorite button |
Add to favorite button |
I need that script,i looking for it long time but none of them wont work. The default widget wont work also.I realize that i need special code for that. So when users click on that button the entry that they favorite will be saved on their personal profiles. Its imposibile that ucoz dont suport that script, or i need php for that. Its very useful option and my users asked me can i make that option
For example can my users add video files to favorites and that video can apear on their profiles !
Post edited by Ed05 - Friday, 2014-04-11, 2:36 AM
|
Sunny, i wish that videos apear on user profiles on the website. I did not found that kind of script no where. I think that is very nice option, my users think that too. I know that for that i need a lot of custom coding, i hope that you will develop that script soon
!
Post edited by Ed05 - Friday, 2014-04-11, 11:55 PM
|
Module: Ad Board[/board]
Author: MegaFill dailycreative Translation: "Проверил на 1 сайте. Вроде все работает", Checked on 1 site. Looks like everything works fine. Bookmarks are made on module "Ad Board". To install the script activate module "Ad Board" and create 1 category. With these settings. Image is deleted/made my own: Image is deleted/I do not know the users privileges. Next, go into " Design Customization",Board/Appearance of entries. Paste this code: Code <div><a href="$MESSAGE$">$TITLE$</a>$MODER_PANEL$</div> Right here: $MESSAGE$ Link to page. $TITLE$ - Page title. $MODER_PANEL$ - Button to delete bookmark/entry. For adding entries page: Code <html> <head> <title>$SECTION_NAME$ - $MODULE_NAME$ - $SITE_NAME$</title> </head> <body style="background:#EDFBFF; margin:0px; padding:0px;"> $BODY$$POWERED_BY$ </body> </html> Place this into Search And Ratings page. Code <html> <head> <title>$CAT_NAME$ <?if($SECTION_NAME$)?>- $SECTION_NAME$<?endif?> - $MODULE_NAME$ - $SITE_NAME$</title> <!-- Скрипт сделал MegaFill http://dailycreative.ru/ Обсуждение скрипта идет в этой теме: http://dailycreative.ru/forum/10-639-1 --> </head> <body style="background:#EDFBFF; margin:0px; padding:0px;"> $ADMIN_BAR$ <div id="zakladki"><?if($NUM_ENTRIES$='0')?>You have no bookmarks<?else?>$BODY$<?endif?></div>$POWERED_BY$ </body> </html> The words "You have no bookmarks" will appear, if their is not a single bookmark. Now the most interesting part Paste this code into header or in a separate JS file. Code <script> /* Скрипт сделал MegaFill http://dailycreative.ru/ Обсуждение скрипта идет в этой теме: http://dailycreative.ru/forum/10-639-1 */ function reloadZakladki() { $('#zakladkipr').load('/board/0-0-$USER_ID$-0-17 #zakladki'); } function postZakladki(title,href) { $.get('/board/1-0-0-0-1', function(i) { $.post('/board/1-0-0-0-1', { a: $('input[name="a"]', i).val(), numa: $('input[name="numa"]', i).val(), ssid: $('input[name="ssid"]', i).val(), title: title, brief: href, ocat: 1 }),setTimeout("reloadZakladki()",1000) }) } </script> For the button, place it anywhere you want to. Code <!-- Скрипт сделал MegaFill http://dailycreative.ru/ Обсуждение скрипта идет в этой теме: http://dailycreative.ru/forum/10-639-1 --> <a href="javascript://" onClick="postZakladki(document.title,location.href); document.getElementById('zakladkipr').innerHTML+='Adding...'">Add bookmark</a> Right here Bookmarks are being loaded. Place it into a spot/place. Code <div id="zakladkipr"></div> <script>reloadZakladki()</script> Now its done Bookmarks for uCoz are ready! P.S. Do not remove the Copyright! Rules of usage:
Source:http://helper.ucoz.ru/load/users/dobavit_stranicu_v_zakladki/2-1-0-46 Attachments:
0161422.png
(68.6 Kb)
Hit that "Thanks" button. :)
In life there's ALWAYS limits but do not plan above them. Post edited by VZ - Friday, 2014-04-25, 0:33 AM
|
| |||
| |||