• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » Add to favorite button
Add to favorite button
Ed05
Posts: 556
Reputation: 7

Message # 1 | 6:27 PM
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 cool

For example can my users add video files to favorites and that video can apear on their profiles cool

!
Post edited by Ed05 - Friday, 2014-04-11, 2:36 AM
Sunny
Posts: 9296
Reputation: 456

Message # 2 | 12:39 PM
Ed05, do you want entries to be added to browser bookmarks or to user profiles on the website?
I'm not active on the forum anymore. Please contact other forum staff.
Ed05
Posts: 556
Reputation: 7

Message # 3 | 11:54 PM
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
Sunny
Posts: 9296
Reputation: 456

Message # 4 | 12:27 PM
Ed05, as you know we don't usually help with custom scripting. But if I come across what you need, I'll post it.
I'm not active on the forum anymore. Please contact other forum staff.
Ed05
Posts: 556
Reputation: 7

Message # 5 | 9:20 PM
Sunny,I'll be much appreciated .. Others too.
!
VZ
Posts: 189
Reputation: 3

Message # 6 | 4:55 AM
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 wink
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 wink Bookmarks for uCoz are ready!

P.S. Do not remove the Copyright!

Rules of usage:

  • All rights are reserved for the author of the script
  • Without sourcing the author, you are forbidden to share the script.
  • You are forbidden to "delete" the copyright.


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
Ed05
Posts: 556
Reputation: 7

Message # 7 | 3:35 PM
So this is just for module ad board, which i dont have instaled cause i already use too much modules and i dont need to start from the beginning.
Thanks but i will have to wait angry

!
uCoz Community » For Webmasters » Custom Solutions » Add to favorite button
  • Page 1 of 1
  • 1
Search: