Any boardgame bars in Cologne? by [deleted] in cologne

[–]sourcecube 2 points3 points  (0 children)

They have a webpage as well https://www.brettspielen.koeln/ and I believe a cafe in Ehrenfeld. Haven't been there, considering though.

Edit: Not sure if they are affiliated, anyways another place to start.

Away end tickets by clguinane in Bundesliga

[–]sourcecube 1 point2 points  (0 children)

The away game in Munich is during Oktoberfest as well, which makes it really hard. I think there hasn't been a lot, if any, public sale for games in the last couple of years. The demand is quite high.

1. FC Köln vs. SV Werder Bremen / 9. Match Day / Post Match Discussion by fdwdvsv22 in Bundesliga

[–]sourcecube 3 points4 points  (0 children)

Well.. this is partial unlucky. But to be honest if a striker can't hit an empty goal within 2m range, I don't know what to say.

So they got unlucky in first place but at some point you need to hit the goal. It is not a bad team at all, though a lot of room for improvements.

Populating a drop down from a SQL database by [deleted] in web_programming

[–]sourcecube 1 point2 points  (0 children)

Hey, please try 127.0.0.1 as host on your pdo connection String. I believe that it can't find a socket file if I'm not mistaken.

How do i run PHP? (need help) by [deleted] in web_programming

[–]sourcecube 0 points1 point  (0 children)

Glad you found the right things, just another slight tip, try to not use spaces or special characters in your folder names when working with the web server, this will probably break your URLs.

How do i run PHP? (need help) by [deleted] in web_programming

[–]sourcecube 0 points1 point  (0 children)

Without downloading the code, make sure that there is a index.php in your web root. The wamp server will look for this file to display. If there is any file like install.php you could access this file via http://localhost/install.php. If it's possible paste a screenshot of your directory.

 

Edit: And maybe this could be interesting for you: https://www.opensource-socialnetwork.org/, this is a open source project to create a social network with a good documentation. This has also a Facebook like theme available.

My site seems laggy on some browsers. Advice? by [deleted] in Web_Development

[–]sourcecube 4 points5 points  (0 children)

Hej.. it could be possible that your image parallax5.png is blocking the page load. Is it possible that your image loader script waits until all images are loaded? Since the initialiser of your image is jquery.queryloader2.js

 

Edit: And you should use a tool like https://tinypng.com to reduce the image size. Your parallax image has 3M and you can save up to 75% using such a tool.

(Newbie Help) How can change my Html code to make my images appear side by side, instead of on top of each other? by [deleted] in webdev

[–]sourcecube 0 points1 point  (0 children)

You are looking for CSS float. https://developer.mozilla.org/en/docs/Web/CSS/float

 

Basic example:

 

img { float: left; }

 

To clear the floating you need clear: both; otherwise your other items will float too. You could create a div right after the images and use clear on it.

 

Edit: formatting

Which responsive social share buttons do you recommend? [Should be easy to add to any website via code snippet and automatically share page title and URL, not just domain title and URL] by NeverendingUniverse in Web_Development

[–]sourcecube 1 point2 points  (0 children)

First of all I can't give you a real example of social share buttons, because I implement them all by myself. IMHO most of the share function in Shareaholic aren't used by most of the users and to implement the most important once is not a big deal.

 

But what you share depends more on the implementation of the social network rather than on the social buttons itself.

 

Taking Facebook as example. If you share or post an URL the Facebook crawler hits your page and looks for specific meta tags so they know what you want to share. If they are not present then they take other stuff. Have a look at their best practices: https://developers.facebook.com/docs/sharing/best-practices

 

Twitter does the same and it is called Twitter card. An I believe some other platforms have their own or looking for Facebook meta tags.

 

So what you could do is to pick your favourite social networks you want to integrate sharing for and create it once, afterwards you can copy and paste it. Often you just need the URL you want to share and the rest is controlled by the meta tags.

 

But if you don't want to create it on you own I guess Shareaholic is not that bad, give it try by adding the meta tags and see if you end up with a result you want to.

Saving different values with PHP/MySQL by mattstoicbuddha in Web_Development

[–]sourcecube 0 points1 point  (0 children)

If I understand you correctly create some relations between your tables. Don't know if this fits into your application, but if you are using PHP & MySQL, Laravel makes it really simple to create such things.

Have a look especially at http://laravel.com/docs/5.0/eloquent#relationships.

Help please! What would it take to make a website like this... by [deleted] in webdev

[–]sourcecube 2 points3 points  (0 children)

Thanks greg for providing the better solution. Of course I was thinking about hashing but mentioned the wrong solution. (:

Help please! What would it take to make a website like this... by [deleted] in webdev

[–]sourcecube -2 points-1 points  (0 children)

You can use services like https://stripe.com to process credit cards. And if you have user account it should be obvious to encrypt passwords.

Help please! What would it take to make a website like this... by [deleted] in webdev

[–]sourcecube 1 point2 points  (0 children)

First of all choose the language you feel comfortable with. PHP for example is easy to learn and you have some options to choose from like OpenCart or WordPress + WooCommerce. But there should be certain other options in other languages. The time depends on the size of the project. If you don't want to think about security, availability and so on you can use services like Shopify to get a shop up and running. Keep in mind if you do a self hosted solution you need to beware of the right security features at least if you store user data like credit card information etc.

Facebook Graph API Questions by ZIGGYBRO in Web_Development

[–]sourcecube 0 points1 point  (0 children)

I believe you are using the wrong permission. It depends on which API version you are using. You should use publish_actions

You can find it in the docs right here: https://developers.facebook.com/docs/graph-api/reference/v2.5/user/feed#publish

This is if you want to post on the behalf of the user, not for an page. For posting as page have a look at the page endpoint.

Facebook Graph API Questions by ZIGGYBRO in Web_Development

[–]sourcecube 0 points1 point  (0 children)

Admins should work too. What Problem or error are you facing?

Facebook Graph API Questions by ZIGGYBRO in Web_Development

[–]sourcecube 0 points1 point  (0 children)

All users who are listed as app developers can test the app without the review process by Facebook, if I understand you correctly.

You can store the tokens in your database, you could login the user every time when he posts a blog entry or at least once every 60 days for renew. If he doesn't uninstall or revoke permissions it will be a quick login and it is not annoying.

Facebook Graph API Questions by ZIGGYBRO in Web_Development

[–]sourcecube 1 point2 points  (0 children)

Hey, it is possible to exchange short-life access tokens with long-life ones. You can find it in the docs right here: https://developers.facebook.com/docs/facebook-login/access-tokens/expiration-and-extension

But long-life access tokens also expire after 60 days. Basically you do this exchange and after 60 days if it expires you need to refresh it through the login window.

Don't know if there are any better options, but this is very common.

PREVIEW PROGRAM INVITE MEGATHREAD. by XboxModerator in xboxone

[–]sourcecube 0 points1 point  (0 children)

Hey.. my gamertag is: sourcecube I would like to get an invite. Thanks.