Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ChubbyKakert

Members
  • Joined

  • Last visited

  1.    geniebud2 reacted to a post in a topic: stripos
  2.    Grant Barker reacted to a post in a topic: How much to charge for a sponsored link?
  3. Im not sure where to post this thread so forgive me if this is the wrong section. I am currently adding a cookie notice to my website but i am not sure about some things. So thinking of cookies make me think they are sessions? Are they or are they not? If they are not, what else are cookies? Because my website is hard-coded and doesn't use any plug & play solutions i don't think i'm working with cookies. Well actually i work with one session and thats basically only storing the userid into a session. Can i now say that i use only use essential cookies? I am really confused at this concept.
  4.    ChubbyKakert reacted to a post in a topic: How much to charge for a sponsored link?
  5. These written posts with casino links are flooding the internet lol.
  6.    Grant Barker reacted to a post in a topic: How much to charge for a sponsored link?
  7. @fisicx I don't know howmuch users your site has but a 10$ monthly fee seems really cheap. I used to have a webshop with a several hundred visitors and people paid me like 400$ monthly for a small banner. Advertising is expensive.
  8. There still seems to be something wrong. This is the code: $getordersquery = $db->query("SELECT *, (DATE(ORDERYEAR)+DATE(ORDERMONTH)+DATE(ORDERDAY)) AS date FROM SHOPORDERS WHERE USERID = '$dbget_id' ORDER BY date ASC"); I tried both DESC and ASC but the results are the same. What am i doing wrong? Please don't pay attention to the date format. There should be only a yesterday or today on the date but i have the full date for testing purposes. I know that i could use the Order ID to order them but i think doing it on date would be better and useful cause i will need it for the forums too etc.
  9. Hello everyone, Currently creating a my orders page for the shop on my website. I learned the hard way that you shouldn't use just 1 field for the date but need separates for day month and year because when you have 01/01/2018 it doesn't work order after the /. So this seems to work: SELECT *, (ORDERDAY+ORDERMONTH+ORDERYEAR) AS total FROM SHOPORDERS WHERE USERID = '$dbget_id' ORDER BY total DESC Is the code above the correct way to order them? Edit: I think this did the trick: SELECT *, (DATE(ORDERYEAR)+DATE(ORDERMONTH)+DATE(ORDERDAY)) AS date FROM SHOPORDERS WHERE USERID = '$dbget_id' ORDER BY date DESC
  10.    ChubbyKakert reacted to a post in a topic: Website side chat
  11.    ChubbyKakert reacted to a post in a topic: Website side chat
  12. The thing with the propitiatory chats applications is that it might be hard to implant it so it runs with the same chat as it does in-game. Otherwise it would be useless.
  13. Hi everyone, For some kind of mmorpg we are creating a new website. We have a chat interface in-game which is used by administration/moderation to communicate with each other while they are in-game issuing reports, searching for hackers/rulebreakers. While they are doing this, communication with other staff members is essential. The interface used in-game uses a small table in a SQL database. New messages are send to this table and a code in the script of the game displays the new message whenever a new message is send. We want to take this chat to the website. Because some administrators or moderators may not be available in-game, but on the website. They still require to communicate with eachother. Now before i start writing a page for this chat. I must tell that my knowledge does not go beyond PHP HTML and SQL. I was thinking that the chat would not be live on the website. The user would have to refresh the php page in order to read the new messages. I have been searching a while and came across AJAX. Can i show the info from the database live on the webpage using ajax? And if yes, how? Thanks in advance.
  14. Thanks you for the information. What does Sum() actually do? I have it without sum now because i don't understand what it does.
  15.    ChubbyKakert reacted to a post in a topic: Calculation error?
  16.    Dezvolta reacted to a post in a topic: Please rate my website
  17. Currently i only added 4 skills to the calculation because i am still testing it. So actually the sql query does the part for me that decides which user has more xp then another player. This is the full code to make it more understandable: $countusers = 0; $countuserq = "SELECT * FROM CHARACTERS"; $countuserstmt = $db->query($countuserq); while($rowcountuser = $countuserstmt->fetchArray(SQLITE3_ASSOC)) { $countusers += 1; } $limit = 30; $countusers = SqliteNumRows($countuserstmt); $total_pages = ceil($countusers / $limit); $record_index= ($page-1) * $limit; $sql = "SELECT * FROM CHARACTERS ORDER BY PLAYINGHOURS DESC, CRAFTINGXP DESC, CRAFTINGLEVEL DESC, FISHINGXP DESC, CRAFTINGLEVEL DESC, WOODCUTTINGXP DESC, WOODCUTTINGLEVEL DESC, FIREFIGHTERXP DESC, FIREFIGHTERLEVEL DESC LIMIT $record_index, $limit"; $stmt = $db->query($sql); ?> <table class="table table-striped table-bordered table-hover" style="width:100%;" align="center"> <thead> <tr> <th>Rank</th> <th>Character</th> <th>Total Level</th> <th>Total Experience</th> </tr> </thead> <tbody> <?php error_reporting(E_ALL); $ranknr = 0; while($row = $stmt->fetchArray(SQLITE3_ASSOC) ) { $ranknr += 1; $totallevel = $row['FISHINGLEVEL'] += $row['PLAYINGHOURS'] += $row['CRAFTINGLEVEL'] += $row['WOODCUTTINGLEVEL'] += $row['FIREFIGHTERLEVEL']; $totalxp = $row['FISHINGXP'] += $row['CRAFTINGXP'] += $row['WOODCUTTINGXP'] += $row['FIREFIGHTERXP']; echo "<tr>"; echo "<td style='width:5%;'><center>".$ranknr."</center></td><td><a href='index.php?p=listcharacters&id=".$row['ID']."'>". $row['FIRSTNAME'] . " ". $row['LASTNAME'] . "</a>"; echo "</td><td>".$totallevel."</td>"; echo "<td>".$totalxp."</td>"; echo "</tr>"; } So take a look at Earl's, And Samuel's xp and levels: Earl: Samuel: Could it be that Earl is ranked higher because it prioritizes Fishing skill over fire fighter? What is a better way to do this? Edit: Playinghours are counted as level. So when the player has 50 playing hours it counts 50 + the other levels. Earl has 0 playing hours. Samuel does have 0 too. But gained 1 level from fire fighing. Players start at level 0 with skills.
  18. It looks really great actually. I suggest to add more content. I can't find any contact details. Can't find anything about the company either. Also be more specific in pricing area because you don't tell the user if the price is monthly or yearly etc.
  19. ChubbyKakert replied to LWC's topic in General Chat
    Welcome
  20. Hello there, I am creating a high scores page where the players will be ranked based on their total level and total experience. As you can see in this screenshot below, you can see that Samuel MacHolland is ranked lower then Earl Webster while Samuel should be ranked higher then Earl. Why is this happening? It works fine for the all records except the 2 visible in the screenshot. Here is the code that i use: SELECT * FROM CHARACTERS ORDER BY PLAYINGHOURS DESC, CRAFTINGXP DESC, CRAFTINGLEVEL DESC, FISHINGXP DESC, CRAFTINGLEVEL DESC, WOODCUTTINGXP DESC, WOODCUTTINGLEVEL DESC, FIREFIGHTERXP DESC, FIREFIGHTERLEVEL DESC LIMIT $record_index, $limit // query that is used. Record_index and limit is used for pagination. What could be wrong here?
  21. Hello, To me it sounds like they are trying to avoid paying you for your services. Did they talk about not using the product and then end up not having to pay? Also, haven't you signed some kind of agreement with them? If you haven't then all i can say that its a hard lesson to learn.
  22. Edit: About SCEditor... I currently am trying it out and sofar its exactly what i need except.. http://losangeles-roleplay.org/example.html When you type test. Press enter for new line it doesn't add a [br]? Shouldn't it do that automatically? Thanks. So is there also something to process bb code? Currently doing it like this: // bb to html $getthethreadcontent = htmlspecialchars($getthethreadcontent); $getthethreadcontent = str_replace('[url=&quot;','<a href="', $getthethreadcontent); $getthethreadcontent = str_replace('&quot;]','">', $getthethreadcontent); $getthethreadcontent = str_replace('[/url]','</a>', $getthethreadcontent); $getthethreadcontent = str_replace('[br]','</br>', $getthethreadcontent); //html to bb $getthethreadcontent = htmlspecialchars($getthethreadcontent); $getthethreadcontent = str_replace('&lt;a href=&quot;','[url="', $getthethreadcontent); $getthethreadcontent = str_replace('&quot;&gt;','"]', $getthethreadcontent); $getthethreadcontent = str_replace('&lt;/a&gt;','[/url]', $getthethreadcontent); $getthethreadcontent = str_replace('&lt;/br&gt;','[br]', $getthethreadcontent);

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.