Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Coding Releases
You last visited: Today at 02:46

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] epvpapi - .NET Library für elitepvpers

Discussion on [Release] epvpapi - .NET Library für elitepvpers within the Coding Releases forum part of the Coders Den category.

Reply
 
Old 03/23/2016, 16:35   #76
 
Der-Eddy's Avatar
 
elite*gold: 400
Join Date: Nov 2008
Posts: 67,905
Received Thanks: 19,505
Quote:
Originally Posted by Ethnobotaniker View Post
Schon mal vielen Dank, aber gibts noch irgendwo Tutorials zum einloggen?
Ich war schon auf dem Github Blog.
Eigentlich gibts doch ein passenden Wiki Eintrag dafür


Code:
User mostey = new User("Mostey", 467410);
var session = new AuthenticatedSession<User>(mostey, "mySecretMd5Hash");
Mit dem session Objekt arbeitest du dann weiter
Der-Eddy is offline  
Thanks
1 User
Old 03/27/2016, 14:53   #77

 
sexualising's Avatar
 
elite*gold: 1472
The Black Market: 206/0/3
Join Date: Jun 2014
Posts: 2,665
Received Thanks: 544
Wie kann man sich sein e*gold anzeigen lassen?
sexualising is offline  
Old 03/27/2016, 15:02   #78
 
Der-Eddy's Avatar
 
elite*gold: 400
Join Date: Nov 2008
Posts: 67,905
Received Thanks: 19,505
Quote:
Originally Posted by sexualising View Post
Wie kann man sich sein e*gold anzeigen lassen?
Code:
{Session}.EliteGold
enthält die Anzahl an Elite*gold als int
Der-Eddy is offline  
Thanks
1 User
Old 03/27/2016, 15:22   #79

 
sexualising's Avatar
 
elite*gold: 1472
The Black Market: 206/0/3
Join Date: Jun 2014
Posts: 2,665
Received Thanks: 544
Ah session.User.EliteGold
Vielen Dank!
sexualising is offline  
Old 06/11/2016, 04:42   #80


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
There's some bug I noticed.
Code:
public string GetUrl(uint pageIndex = 1)
        {
            return String.Format("http://www.elitepvpers.com/forum/{0}/{1}-{2}" + ((pageIndex > 1) ? "-" + pageIndex : "") + ".html",
                    Section.Shortname, ID, InitialPost.Title.UrlEscape());
        }
I noticed that when the thread title is ending with a special character then a number this will method will create a conflict with the actual thread and the number of page in that thread. Usually there's an "-a" at the end of the urls with that pattern.

Nothing will throw an exception but if you're targeting the actual thread you won't get the expected result cuz you will be returning a different page actually (unless the thread only contains one page)
​Exo is offline  
Thanks
2 Users
Old 06/11/2016, 11:12   #81


 
elite*gold: 1091
Join Date: Jun 2007
Posts: 19,836
Received Thanks: 7,180
Quote:
Originally Posted by ​Exo View Post
There's some bug I noticed.
Code:
public string GetUrl(uint pageIndex = 1)
        {
            return String.Format("http://www.elitepvpers.com/forum/{0}/{1}-{2}" + ((pageIndex > 1) ? "-" + pageIndex : "") + ".html",
                    Section.Shortname, ID, InitialPost.Title.UrlEscape());
        }
I noticed that when the thread title is ending with a special character then a number this will method will create a conflict with the actual thread and the number of page in that thread. Usually there's an "-a" at the end of the urls with that pattern.

Nothing will throw an exception but if you're targeting the actual thread you won't get the expected result cuz you will be returning a different page actually (unless the thread only contains one page)
Thank you for reporting this bug. This library needs some rework, are you interested in resolving this issue by yourself via GitHub?

Could you also provide an example for a thread whose title is ending with a special character?
Mostey is offline  
Old 06/11/2016, 17:35   #82


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
Quote:
Originally Posted by Mostey View Post
Thank you for reporting this bug. This library needs some rework, are you interested in resolving this issue by yourself via GitHub?

Could you also provide an example for a thread whose title is ending with a special character?
Yes sure!

Here &
​Exo is offline  
Thanks
1 User
Old 06/11/2016, 20:44   #83


 
False's Avatar
 
elite*gold: 0
The Black Market: 243/0/0
Join Date: Apr 2011
Posts: 11,117
Received Thanks: 2,436
Quote:
Originally Posted by Mostey View Post
Thank you for reporting this bug. This library needs some rework, are you interested in resolving this issue by yourself via GitHub?

Could you also provide an example for a thread whose title is ending with a special character?
Hast dazu einen sehr sehr sehr simplen Merge Request/Pull Request bekommen
False is offline  
Thanks
1 User
Old 06/12/2016, 10:43   #84


 
elite*gold: 1091
Join Date: Jun 2007
Posts: 19,836
Received Thanks: 7,180
Quote:
Originally Posted by .ƒaℓsє. View Post
Hast dazu einen sehr sehr sehr simplen Merge Request/Pull Request bekommen
Danke, ist gemerged.
Mostey is offline  
Old 12/06/2016, 15:18   #85
 
C0RE''s Avatar
 
elite*gold: 40
Join Date: Mar 2013
Posts: 1,396
Received Thanks: 778
Funktionieren BlackMarket Ratings bei euch?

Code:
label_tbm_positive.Text = CType(mySession.Profile.User.TBMProfile.Ratings.Positive, String)
C0RE' is offline  
Old 12/06/2016, 16:18   #86



 
Shawak's Avatar
 
elite*gold: 0
The Black Market: 259/0/0
Join Date: Apr 2010
Posts: 10,289
Received Thanks: 3,613
Sollten sie, zeig doch mal bitte etwas mehr Code.
Shawak is offline  
Old 12/06/2016, 18:15   #87
 
C0RE''s Avatar
 
elite*gold: 40
Join Date: Mar 2013
Posts: 1,396
Received Thanks: 778
Quote:
Originally Posted by Shawak View Post
Sollten sie, zeig doch mal bitte etwas mehr Code.
Habs jetzt in der API behoben:

In der Datei UserParser.cs Line: 355 steht folgendes:

Code:
var positiveRatingsNode = valueNode.SelectSingleNode("span[1]");
Target.TBMProfile.Ratings.Positive = (positiveRatingsNode != null) ? positiveRatingsNode.InnerText.To<uint>() : Target.TBMProfile.Ratings.Positive;
Das hat mir immer 0 zurückgegeben

Hab dann "span" durch "a" ersetzt:

Code:
var positiveRatingsNode = valueNode.SelectSingleNode("a[1]");
Target.TBMProfile.Ratings.Positive = (positiveRatingsNode != null) ? positiveRatingsNode.InnerText.To<uint>() : Target.TBMProfile.Ratings.Positive;
Dann hat's geklappt, Frag mich nicht woran das jetzt lag, dass er den span nicht finden konnte. Vielleicht weil drüber noch der a Tag ist?!


Code:
<dd><a href="http://www.elitepvpers.com/theblackmarket/ratings/5121922/positive/"><span class="green">6</span></a>/0/<span class="red">0</span></dd>
C0RE' is offline  
Old 12/06/2016, 22:47   #88



 
Serraniel's Avatar
 
elite*gold: 0
The Black Market: 205/1/0
Join Date: May 2010
Posts: 6,853
Received Thanks: 5,106
PHP Code:
                lblPositiveCount.Text Api.GetInstance().User.TBMProfile.Ratings.Positive.ToString();
                
lblNetraulCount.Text Api.GetInstance().User.TBMProfile.Ratings.Neutral.ToString();
                
lblNegativeCount.Text Api.GetInstance().User.TBMProfile.Ratings.Negative.ToString(); 
Bei mir scheint das auch problemlos zu funktionieren mit der Api das richtig anzuzeigen:


Sicher das du ne aktuelle hast?
Serraniel is offline  
Old 12/07/2016, 17:18   #89
 
C0RE''s Avatar
 
elite*gold: 40
Join Date: Mar 2013
Posts: 1,396
Received Thanks: 778
Quote:
Originally Posted by Serraniel View Post
Sicher das du ne aktuelle hast?
Ja hab's per NuGet gezogen... Ist ja auch egal so funktioniert es ja
C0RE' is offline  
Old 05/25/2017, 19:30   #90


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
This probably needs an update since Https got enforced.

EDIT:
​Exo is offline  
Reply


Similar Threads Similar Threads
[DLL] Elitepvpers Library v2
03/06/2015 - Coding Releases - 240 Replies
.



All times are GMT +1. The time now is 02:48.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.