• Page 1 of 1
  • 1
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: 1027
35
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$ said [url=$ENTRY_URL$]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?>


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$ said [url=$ENTRY_URL$]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?>


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$ said [url=$ENTRY_URL$]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?>


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$ said [url=$ENTRY_URL$]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?>


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 1
  • 1
Search:
                                                               
Statistics Forum
New Posts Popular topic Top Forum Users New User

type list biuro popierius (0)
type list kokiomis kaldromis miegate (0)
type list power bank įkroviklis (0)
type list vaikams pagalvės (0)
type list vartų automatika (0)
type list geriausi pirkiniai (0)
type list ekologiški, tvarūs daiktai kasdienai (0)
type list stovykla Lietuvoje (0)
type list namų apsauga (0)
type list šilumos siurblys oras vanduo (0)
type list powerbank išorinė baterija (0)
type list automobilių numelio rėmeliai (0)
type list pensijų pakopos (0)
type list šildymo sistemos (0)
type list dujinis katilas name (0)
type list karjeros testas (0)
type list drąskyklė katei (0)

type list Skaiciuojam nuo 1 iki 1000 ! (558)
type list Forum SignatureBar (60)
type list Avatars (23)
type list Juokingos Fotkes :) (19)
type list Kaip pakeisti paveiksla mazas? (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 Apklausa Jūsų Svetainei New ucoz (11)
type list Ucoz script - favicon (11)
type list Megsti samp? Ateik cia (10)
type list Button scrolling up ucoz (10)
type list Slider KinoPlius Help to setup :) (10)
type list Money for the forum ucoz (9)
type list KinoPlius (9)
type list Puslapis "Atliekami techniniai darbai" Ucoz scriptas (9)
type list SexMergytes.do.am (9)
type list 11.17.2011 (9)
type list User personal Page ucoz (8)
interout
Forum Posts: 1027
Comments: 51
Reputation: 83
Rank:
GoblinaS
Forum Posts: 380
Comments: 15
Reputation: 25
Rank:
Adi
Forum Posts: 179
Comments: 11
Reputation: 23
Rank:
Esquire
Forum Posts: 147
Comments: 8
Reputation: 5
Rank:
BAtman
Forum Posts: 129
Comments: 1
Reputation: 18
Rank:
WaSHkaZ
Forum Posts: 83
Comments: 0
Reputation: 3
Rank:
Skacikas
Forum Posts: 71
Comments: 0
Reputation: 12
Rank:
meskis
Forum Posts: 51
Comments: 0
Reputation: 25
Rank:
Gytenas
Forum Posts: 51
Comments: 0
Reputation: 1
Rank:
vicka
Forum Posts: 50
Comments: 1
Reputation: 4
Rank:
jokerzvobscure
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
dubroviena008
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
w4bzero
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
infoebrasha
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
karilekamo
Forum Posts: 10
Comments: 0
Reputation: 0
Rank:
zoro
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
pebotapple
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
aressvi
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
eddison_martin3
Forum Posts: 2
Comments: 0
Reputation: 0
Rank:
mariuspijunas
Forum Posts: 20
Comments: 0
Reputation: 0
Rank:


Site design by uCozBaze
uCozBaze © 2011-2016