Report Broken Link ucoz - UcozBaze All Scripts And Templates
  
Page 1 of 11
UcozBaze All Scripts And Templates » Scripts and Coding » Publisher , Site Catalog, Ad board , File Catalog, Video » Report Broken Link ucoz (Report Broken Link ucoz)
Report Broken Link ucoz
interoutDate: Tuesday, 2011-10-04, 11:55 PM | Message # 1
Group: Administrators
Messages: 1021
33
i'm gonna show u how to make a Broken Link button on ur site

Note this only works for Member and checked group ( only thy can send a message

(mostly used in file catolog and publishers...)

alway's in page with entry and his full text and comments

First the screenshot:



Now i'm gonna give u the whole code directly and then i'm gonna explain what to change and how

This is the code u need :

Code
<?if($GROUP_ID$!='1' or $GROUP_ID$!='2' )?><script type="text/javascript">complaint=function(){$.post('/index', {s: 'Animorph', subject: 'complaint of a broken link — $ENTRY_TITLE$', message: 'You [b]$USER$[/b] said [url=$ENTRY_URL$]download[/url] with a broken link, please take action.', a: '18'}); _uWnd.alert('Sending Message…','',{w:200,h:80,tm:1000})}</script><style type="text/css">.complaint {border: 1px solid black; background-color: #FFFFFF;} .complaint:hover {background-color: #CCCCCC;}</style><input type="button" value="Report broken link" onclick="complaint()" class="complaint" /><?endif?>


now how to change the USER wheere the PM will be sended to

example , if u have the code on ur website but u changed from account for any reason and u still want to recieve the message u just need to find this name Animorph

and Replace it with Your Name

then the code woul look like this

Code
<?if($GROUP_ID$!='1' or $GROUP_ID$!='2' )?><script type="text/javascript">complaint=function(){$.post('/index', {s: 'YOUR NAME', subject: 'complaint of a broken link — $ENTRY_TITLE$', message: 'You $USER$ said download with a broken link, please take action.', a: '18'}); _uWnd.alert('Sending Message…','',{w:200,h:80,tm:1000})}</script><style type="text/css">.complaint {border: 1px solid black; background-color: #FFFFFF;} .complaint:hover {background-color: #CCCCCC;}</style><input type="button" value="Report broken link" onclick="complaint()" class="complaint" /><?endif?>


basicly u don't need to change much more , u only need to put the code on the place u wan't the button to appear , its just figuring out where it would look better
_________________________________________________________________________________________________________________

Report button working for all users including admin

here is the code :

Code
<?if($USER_LOGGED_IN$)?><script type="text/javascript">complaint=function(){$.post('/index', {s: 'Animorph', subject: 'complaint of a broken link — $ENTRY_TITLE$', message: 'You [b]$USER$[/b] said [url=$ENTRY_URL$]download[/url] with a broken link, please take action.', a: '18'}); _uWnd.alert('Sending Message…','',{w:200,h:80,tm:1000})}</script><style type="text/css">.complaint {border: 1px solid black; background-color: #FFFFFF;} .complaint:hover {background-color: #CCCCCC;}</style><input type="button" value="Report broken link" onclick="complaint()" class="complaint" /><?endif?>


Note: u can't send a report broken link to urself

well if u don't understand this please leave a comment Below

best regards Animorph


 
Messagei'm gonna show u how to make a Broken Link button on ur site

Note this only works for Member and checked group ( only thy can send a message

(mostly used in file catolog and publishers...)

alway's in page with entry and his full text and comments

First the screenshot:



Now i'm gonna give u the whole code directly and then i'm gonna explain what to change and how

This is the code u need :

Code
<?if($GROUP_ID$!='1' or $GROUP_ID$!='2' )?><script type="text/javascript">complaint=function(){$.post('/index', {s: 'Animorph', subject: 'complaint of a broken link — $ENTRY_TITLE$', message: 'You [b]$USER$[/b] said [url=$ENTRY_URL$]download[/url] with a broken link, please take action.', a: '18'}); _uWnd.alert('Sending Message…','',{w:200,h:80,tm:1000})}</script><style type="text/css">.complaint {border: 1px solid black; background-color: #FFFFFF;} .complaint:hover {background-color: #CCCCCC;}</style><input type="button" value="Report broken link" onclick="complaint()" class="complaint" /><?endif?>


now how to change the USER wheere the PM will be sended to

example , if u have the code on ur website but u changed from account for any reason and u still want to recieve the message u just need to find this name Animorph

and Replace it with Your Name

then the code woul look like this

Code
<?if($GROUP_ID$!='1' or $GROUP_ID$!='2' )?><script type="text/javascript">complaint=function(){$.post('/index', {s: 'YOUR NAME', subject: 'complaint of a broken link — $ENTRY_TITLE$', message: 'You $USER$ said download with a broken link, please take action.', a: '18'}); _uWnd.alert('Sending Message…','',{w:200,h:80,tm:1000})}</script><style type="text/css">.complaint {border: 1px solid black; background-color: #FFFFFF;} .complaint:hover {background-color: #CCCCCC;}</style><input type="button" value="Report broken link" onclick="complaint()" class="complaint" /><?endif?>


basicly u don't need to change much more , u only need to put the code on the place u wan't the button to appear , its just figuring out where it would look better
_________________________________________________________________________________________________________________

Report button working for all users including admin

here is the code :

Code
<?if($USER_LOGGED_IN$)?><script type="text/javascript">complaint=function(){$.post('/index', {s: 'Animorph', subject: 'complaint of a broken link — $ENTRY_TITLE$', message: 'You [b]$USER$[/b] said [url=$ENTRY_URL$]download[/url] with a broken link, please take action.', a: '18'}); _uWnd.alert('Sending Message…','',{w:200,h:80,tm:1000})}</script><style type="text/css">.complaint {border: 1px solid black; background-color: #FFFFFF;} .complaint:hover {background-color: #CCCCCC;}</style><input type="button" value="Report broken link" onclick="complaint()" class="complaint" /><?endif?>


Note: u can't send a report broken link to urself

well if u don't understand this please leave a comment Below

best regards Animorph

Author - interout
Date Added - 2011-10-04 в 11:55 PM
AdminDanDate: Sunday, 2012-11-18, 3:34 PM | Message # 2
Group: UcozBaze Team
Messages: 4
0
Dosent work bro
 
MessageDosent work bro

Author - AdminDan
Date Added - 2012-11-18 в 3:34 PM
AdiDate: Sunday, 2012-11-18, 7:39 PM | Message # 3
Group: Member
Messages: 179
3
AdminDan,



This script notificates the Administrot about a broken link, that a user has found.
Also when a user clicks on the button "Broken link", then he will se a Ajax-Window.
In the Ajax-Window is a question does the user want to notificate the Administrator about the broken link or not.
If the user clicks on "Yes", so the admin will get an PM. With a short text.
And if the user clicks on "Cancel" in the Ajax-Window, so the window will be closed.


1. Put befor the following code:

Code
<script type="text/javascript">                     
function ifsend(){                     
var ajax_data = 'Do you want to notify the administrator, about that the link ist broken?<hr><input type="button" value="Yes" onclick="_uWnd.close(\'wronglink\');dwld_link();"> <input type="button" value="Cancel" onclick="_uWnd.close(\'wronglink\');">'; new _uWnd('wronglink','Confirm that Action',400,310,{shadow:1,autosize:1,modal:1,close:0,icon:'http://forucoz.com/file/s1/dtl.png'},ajax_data);}                     
function dwld_link(){var s,message,hrf; hrf = window.location.href;                     
s= 'Change_me';//Set the name of the User, who should get the notification about the broken link.                     
message = 'Hello, [b]' + s + '[/b]!\nUser [ url=$HOME_PAGE_LINK$index/8-0-$USERNAME$]$USERNAME$[/url] thinks that this [ url=' + hrf + ']link[/url] is broken.';                     
$.post('/index/', {s: s,subject: 'Broken link',message: message,a: 18}, function(data){var rs = $('cmd[t="eMessage"][p="innerHTML"]',data).text();_uWnd.alert(rs,'Defekter Link',{w:200,h:95,tm:6000});});}</script>


2. Go in the Customize design to the "Page with entry full text and its comments" from the Modul where you want this script!
And put the following code, where you want!

Code
<?if($USER_LOGGED_IN$)?><a href="javascript:;" onclick="ifsend();return false;">Broken Link</a><?else?>Please <a href="$HOME_PAGE_LINK$/index/3">register</a> or <a href="$LOGIN_LINK$">authorize</a> to notificate the Admin about the broken link!<?endif?>


Attention!
1. Only user that are Logged in will see the button "Broken Link", and guests will se a short text about that he should be authorized to notificate the Admin about a broken link.
2. The Security code musst be deactivated, or it would be work!
3. Replace in the 1. code this:


Quote
[ url=$HOME_PAGE_LINK$index/8-0-$USERNAME$]


to this:

Quote
[url=$HOME_PAGE_LINK$index/8-0-$USERNAME$]


and

Quote
[ url=' + hrf + ']


to this

Quote

[url=' + hrf + ']



If you have some problems with that script just ask




Message edited by Adi - Sunday, 2012-11-18, 7:42 PM
 
MessageAdminDan,



This script notificates the Administrot about a broken link, that a user has found.
Also when a user clicks on the button "Broken link", then he will se a Ajax-Window.
In the Ajax-Window is a question does the user want to notificate the Administrator about the broken link or not.
If the user clicks on "Yes", so the admin will get an PM. With a short text.
And if the user clicks on "Cancel" in the Ajax-Window, so the window will be closed.


1. Put befor the following code:

Code
<script type="text/javascript">                     
function ifsend(){                     
var ajax_data = 'Do you want to notify the administrator, about that the link ist broken?<hr><input type="button" value="Yes" onclick="_uWnd.close(\'wronglink\');dwld_link();"> <input type="button" value="Cancel" onclick="_uWnd.close(\'wronglink\');">'; new _uWnd('wronglink','Confirm that Action',400,310,{shadow:1,autosize:1,modal:1,close:0,icon:'http://forucoz.com/file/s1/dtl.png'},ajax_data);}                     
function dwld_link(){var s,message,hrf; hrf = window.location.href;                     
s= 'Change_me';//Set the name of the User, who should get the notification about the broken link.                     
message = 'Hello, [b]' + s + '[/b]!\nUser [ url=$HOME_PAGE_LINK$index/8-0-$USERNAME$]$USERNAME$[/url] thinks that this [ url=' + hrf + ']link[/url] is broken.';                     
$.post('/index/', {s: s,subject: 'Broken link',message: message,a: 18}, function(data){var rs = $('cmd[t="eMessage"][p="innerHTML"]',data).text();_uWnd.alert(rs,'Defekter Link',{w:200,h:95,tm:6000});});}</script>


2. Go in the Customize design to the "Page with entry full text and its comments" from the Modul where you want this script!
And put the following code, where you want!

Code
<?if($USER_LOGGED_IN$)?><a href="javascript:;" onclick="ifsend();return false;">Broken Link</a><?else?>Please <a href="$HOME_PAGE_LINK$/index/3">register</a> or <a href="$LOGIN_LINK$">authorize</a> to notificate the Admin about the broken link!<?endif?>


Attention!
1. Only user that are Logged in will see the button "Broken Link", and guests will se a short text about that he should be authorized to notificate the Admin about a broken link.
2. The Security code musst be deactivated, or it would be work!
3. Replace in the 1. code this:


Quote
[ url=$HOME_PAGE_LINK$index/8-0-$USERNAME$]


to this:

Quote
[url=$HOME_PAGE_LINK$index/8-0-$USERNAME$]


and

Quote
[ url=' + hrf + ']


to this

Quote

[url=' + hrf + ']



If you have some problems with that script just ask

Author - Adi
Date Added - 2012-11-18 в 7:39 PM
Tommy0412Date: Sunday, 2012-12-02, 0:53 AM | Message # 4
Group: UcozBaze Team
Messages: 1
0
Not working i got this msg: Access denied. Session period expired.
 
MessageNot working i got this msg: Access denied. Session period expired.

Author - Tommy0412
Date Added - 2012-12-02 в 0:53 AM
Ed05Date: Tuesday, 2013-11-05, 1:54 AM | Message # 5
Group: UcozBaze Team
Messages: 7
0
Quote Tommy0412 ()
Not working i got this msg: Access denied. Session period expired.
U are right. This is bad script!
 
Message
Quote Tommy0412 ()
Not working i got this msg: Access denied. Session period expired.
U are right. This is bad script!

Author - Ed05
Date Added - 2013-11-05 в 1:54 AM
UcozBaze All Scripts And Templates » Scripts and Coding » Publisher , Site Catalog, Ad board , File Catalog, Video » Report Broken Link ucoz (Report Broken Link ucoz)
Page 1 of 11
Search:
                                                               
Statistics Forum
New Posts Popular topic Top Forum Users New User

type list Forumo Informatorius (2)
type list Pereiti i kita puslapi forume 1.2.3. Ucoz skriptas (1)
type list The script for the output of a random video from Youtube (0)
type list The script updates the block comment without refreshing the (0)
type list Information about your browser for uCoz (0)
type list Kaip isideti Forum Online/Offline Image Ucoz ? (4)
type list Highlight the code in one click (0)
type list The original form of statistics for uCoz (0)
type list The ban on the entry of certain characters in the Input (0)
type list Clock for site ucoz (0)

type list Skaiciuojam nuo 1 iki 1000 ! (557)
type list Forum SignatureBar (60)
type list Avatars (22)
type list Kaip pakeisti paveiksla mazas? (19)
type list Juokingos Fotkes :) (19)
type list Mini-Chatas islendantis is sono ucoz (15)
type list Mp3-Tau.do.am (13)
type list Шаблон форума для ucoz For-css (12)
type list Ucoz script - favicon (11)
type list Button scrolling up ucoz (10)

interout
GoblinaS
Adi
Esquire
BAtman
WaSHkaZ
Skacikas
meskis
Gytenas
vicka

AnelsoNN
nemanjababin
defaultNick0568
mechoochite
mdcurren
yastreb
lad0s™
Lapuxa
th3kizaka
projektas420


Site design by uCozBaze
uCozBaze © 2011-2016