Raised This Month: $ Target: $400
 0% 

[CS:GO] Web Shortcuts CS:GO version [Updated 11-May-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-12-2017 , 18:37   Re: [CS:GO] Web Shortcuts CS:GO version
Reply With Quote #571

1. You didnt try a different page on the same domain. The actual issue lmao.
2. At least name it different to my plugin.
__________________
Neuro Toxin is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 08-12-2017 , 19:26   Re: [CS:GO] Web Shortcuts CS:GO version
Reply With Quote #572

I am just recording video for you..

Here you go: https://youtu.be/D4v0IWMDHjY

Released: https://forums.alliedmods.net/showthread.php?t=300313

Last edited by ESK0; 08-12-2017 at 21:12.
ESK0 is offline
root88
Senior Member
Join Date: May 2016
Old 08-14-2017 , 13:42   Re: [CS:GO] Web Shortcuts CS:GO version
Reply With Quote #573

Hi Franc1sco!
Maybe you can implement my suggestions: https://forums.alliedmods.net/showthread.php?t=300366 and we can forget about WebLinks/WebLync and have fantastic, fully open source plugin?
__________________
root88 is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 08-14-2017 , 14:50   Re: [CS:GO] Web Shortcuts CS:GO version v2.2
Reply With Quote #574

Quote:
Originally Posted by RedSword View Post
I talked to Asherkin on irc and he told me that showing a MOTD is not dangerous sicne all plugins are disabled in the embed MOTD.

Also since the .php script isn't a plugin it isn't bound by the GPL and showing the source isn't required.
TBH The last plugin I used that hardcoded somebody's website...

Correction, the last few plugins...

They all broke over time, riddled me with error messages I didn't know how to stop for ages because I was new (fixed by deleting entire sections of whatever used those, or giving up on the plugins), and one of them flat-out caused players not to be able to connect to my server without me knowing it, because it used that guy's Steam API for his website along with a Steamworks script hosted on his website.

Have fun blindly trusting whatever his php does, and how long his website will actually stay up for it to continue working.

There's no rules saying he needs to show it, but there's also no rules when conducting trust trades on Steam, various games, and Paypal.
__________________

Last edited by Chdata; 08-14-2017 at 14:55.
Chdata is offline
dvetherocket
New Member
Join Date: Oct 2017
Old 10-11-2017 , 13:31   Re: [CS:GO] Web Shortcuts CS:GO version
Reply With Quote #575

doesnt work at all for me with hlstatsx ce link

when i take the full link with "?mode=players&game=csgo" it says "error no such game"

when i take the short one "http://.../stats/hlstats.php" it works fine..
dvetherocket is offline
nullb
Junior Member
Join Date: Jun 2016
Old 10-11-2017 , 19:47   Re: [CS:GO] Web Shortcuts CS:GO version
Reply With Quote #576

Get parms are cut off with boomix's html/js solution perhaps he can fix I've been meaning to just no time at the moment.
__________________

nullb is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 10-12-2017 , 02:32   Re: [CS:GO] Web Shortcuts CS:GO version
Reply With Quote #577

Using WebLync is another alternative. You can also use your AdSense account during redirection to help boost revenue.
__________________
Neuro Toxin is offline
nullb
Junior Member
Join Date: Jun 2016
Old 10-12-2017 , 04:02   Re: [CS:GO] Web Shortcuts CS:GO version
Reply With Quote #578

Trouble with that is I need to register to your service, and you get to see the metadata of every web panel opened by players on my server. Did somebody say NSA ;P
__________________

nullb is offline
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 10-12-2017 , 04:55   Re: [CS:GO] Web Shortcuts CS:GO version
Reply With Quote #579

Quote:
Originally Posted by dvetherocket View Post
doesnt work at all for me with hlstatsx ce link

when i take the full link with "?mode=players&game=csgo" it says "error no such game"

when i take the short one "http://.../stats/hlstats.php" it works fine..
Quote:
Originally Posted by nullb View Post
Get parms are cut off with boomix's html/js solution perhaps he can fix I've been meaning to just no time at the moment.
Edited code a little bit, this should work fine

PHP Code:
<html>  
    <
head>  
        <
title>CSGO Webshortcuts fix by boomix</title>  
    </
head>  
    <
body>  
        <
script type="text/javascript" >  
            function 
getAllUrlParams(url) { 
              var 
queryString url url.split('?')[1] : window.location.search.slice(1); 
              var 
obj = {}; 
              if (
queryString) { 
                
queryString queryString.split('#')[0]; 
                var 
arr queryString.split('&'); 
                for (var 
i=0i<arr.lengthi++) { 
                  var 
arr[i].split('='); 
                  var 
paramNum undefined
                  var 
paramName a[0].replace(/\[\d*\]/, function(v) { 
                    
paramNum v.slice(1,-1); 
                    return 
''
                  }); 
                  var 
paramValue typeof(a[1])==='undefined' true a[1]; 
                  
paramName paramName.toLowerCase(); 
                  
paramValue paramValue.toLowerCase(); 
                  if (
obj[paramName]) { 
                    if (
typeof obj[paramName] === 'string') { 
                      
obj[paramName] = [obj[paramName]]; 
                    } 
                    if (
typeof paramNum === 'undefined') { 
                      
obj[paramName].push(paramValue); 
                    } 
                    else { 
                      
obj[paramName][paramNum] = paramValue
                    } 
                  } 
                  else { 
                    
obj[paramName] = paramValue
                  } 
                } 
              } 
              return 
obj
            } 


            var 
str     getAllUrlParams().web;  
            var 
full     getAllUrlParams().fullsize;  
            var 
height     getAllUrlParams().height
            var 
width    getAllUrlParams().width

            
            
//Get url params
            
var newstr window.location.href.split('?')[2];
            if(
newstr) {
                
newstr newstr.replace('&width='+width'');
                
newstr newstr.replace('&fullsize='+full'');
                
newstr newstr.replace('&height='+height'');
            }
            
            var 
url = (newstr) ? window.location.href.split('?')[1].replace('web=''') + '?' newstr str;
            
            if (
full == 1) {  
                
window.open(url"_blank""toolbar=yes, fullscreen=yes, scrollbars=yes, width=" screen.width ", height=" + (screen.height 72));  
                
window.location.replace("http://deadsite.notworking"); 
            }  
            else {  
                
//Set the default width and height for if it's not defined  
                
if (height === undefined || height === null || height == "")  
                {  
                    
height 720;  
                }  
                if (
width === undefined || width === null || width == "")  
                {  
                    
width 960;  
                }  
                
window.open(url"_blank""toolbar=yes, scrollbars=yes, resizable=yes, fullscreen=no, width=" width ", height=" height);  
                
window.location.replace("http://deadsite.notworking"); 
            }  
        
</script>  
    </body>  
</html> 
__________________

Last edited by boomix; 10-12-2017 at 04:56.
boomix is offline
dvetherocket
New Member
Join Date: Oct 2017
Old 10-13-2017 , 13:50   Re: [CS:GO] Web Shortcuts CS:GO version
Reply With Quote #580

i appreciate your help, really. but im not using weblync and i dont want to if there's a workaround just with this plugin

Quote:
Originally Posted by boomix View Post
Edited code a little bit, this should work fine

PHP Code:
<html>  
    <
head>  
        <
title>CSGO Webshortcuts fix by boomix</title>  
    </
head>  
    <
body>  
        <
script type="text/javascript" >  
            function 
getAllUrlParams(url) { 
              var 
queryString url url.split('?')[1] : window.location.search.slice(1); 
              var 
obj = {}; 
              if (
queryString) { 
                
queryString queryString.split('#')[0]; 
                var 
arr queryString.split('&'); 
                for (var 
i=0i<arr.lengthi++) { 
                  var 
arr[i].split('='); 
                  var 
paramNum undefined
                  var 
paramName a[0].replace(/\[\d*\]/, function(v) { 
                    
paramNum v.slice(1,-1); 
                    return 
''
                  }); 
                  var 
paramValue typeof(a[1])==='undefined' true a[1]; 
                  
paramName paramName.toLowerCase(); 
                  
paramValue paramValue.toLowerCase(); 
                  if (
obj[paramName]) { 
                    if (
typeof obj[paramName] === 'string') { 
                      
obj[paramName] = [obj[paramName]]; 
                    } 
                    if (
typeof paramNum === 'undefined') { 
                      
obj[paramName].push(paramValue); 
                    } 
                    else { 
                      
obj[paramName][paramNum] = paramValue
                    } 
                  } 
                  else { 
                    
obj[paramName] = paramValue
                  } 
                } 
              } 
              return 
obj
            } 


            var 
str     getAllUrlParams().web;  
            var 
full     getAllUrlParams().fullsize;  
            var 
height     getAllUrlParams().height
            var 
width    getAllUrlParams().width

            
            
//Get url params
            
var newstr window.location.href.split('?')[2];
            if(
newstr) {
                
newstr newstr.replace('&width='+width'');
                
newstr newstr.replace('&fullsize='+full'');
                
newstr newstr.replace('&height='+height'');
            }
            
            var 
url = (newstr) ? window.location.href.split('?')[1].replace('web=''') + '?' newstr str;
            
            if (
full == 1) {  
                
window.open(url"_blank""toolbar=yes, fullscreen=yes, scrollbars=yes, width=" screen.width ", height=" + (screen.height 72));  
                
window.location.replace("http://deadsite.notworking"); 
            }  
            else {  
                
//Set the default width and height for if it's not defined  
                
if (height === undefined || height === null || height == "")  
                {  
                    
height 720;  
                }  
                if (
width === undefined || width === null || width == "")  
                {  
                    
width 960;  
                }  
                
window.open(url"_blank""toolbar=yes, scrollbars=yes, resizable=yes, fullscreen=no, width=" width ", height=" height);  
                
window.location.replace("http://deadsite.notworking"); 
            }  
        
</script>  
    </body>  
</html> 
dvetherocket is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode