Edit a css file from the live website [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
so i want to develop a mini website builder within my website. Have a control panel where users can edit the text in their websites, i want each of those html pages to have its own css file attached to it. Now, i want it so that the user sees something like a button saying "Edit Background color" they are prompted with a color picker and on hitting save, the css file is updated without them knowing that css even exists.
I would like to know what language i can use to make the previous example happen. And if possible a hint of code.
I appreciate your answers, Braulio :)

I didn't downvote you but just for informational purposes, the reason you were probably downvoted is due to the scope of your question, The language you choose depends on what platform you are running your site on. And it is likely possible to do what you want in tons of different languages assuming your platform supports them. For an easy solution check out .net languages like c# with ajax controls for live updates without refreshes. But then again you could use ruby with rails. Or you could do most of it in the client side with jquery and javascript then send the results to the server which could utilize php. It is just to broad a question to really answer without writing the whole thing for you which nobody is going to do.

Related

Rate and review system for wordpress website [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have a professor Rate and review website for Lebanese universities. I have created a new rating system with animation on bubble.io ( https://professor-advisor.bubbleapps.io/version-test?debug_mode=true )
but I want to implement it on Wordpress. Is it possible to have such custom fields? and also is it possible to have the same animations? (hover and click colors and texts)
Of course you can achieve it. It may be a longshot, but:
download their CSS files
download their JS files
look at the page-source
Working on your Wordpress theme implement the same HTML as you had on bubble. You do not necessarily need to reuse their code in all cases. When you know how a given design element or animation can be achieved, feel free to implement yourself. When not, then look at some properties on their tags, like classes and so. Search for the identifiable properties of the element you are working on at a given point in the CSS and JS files. See what happens with them. Try removing classes and CSS rules, see what happens. This way you can gradually find out what code is responsible for what element. But it may be a long process.
Alternatively you could implement something similar on your own. I like this option better, because, even though you will face some difficulties while doing so, once you are done you will be familiar with your own code and will be able to customize it later if needed.

How can i display a navigation bar across multiple webpages? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I know CSS and HTML to a reasonable degree, but I've never built a multi-page website before.
I have a header area of my site coded, and want it to display it across multiple webpages. How can I do this?
Save it as header.php/header.html whichever one you need. Then, from every file you code from then on, you can <?php include('header.php');?>. The files you include in HAVE to be .php or it wont work.
Same applies to jsp if for any reason php didnt work or you fancied a change of pace
Create a file called header.jsp then use the tag below when you want to include it on a page.
<jsp:include page="{header.jsp}"/>
This is maybe of no use to you but who knows it may help someone. Some people find this easier and some find this harder it depends on your programming background.
Use a web programming language (PHP / ASP.Net / Whatever you like) to include the navigation bar in all the pages. There are template languages like Twig that can do that for you in a smarter way and provide you with additional template features, if you might need them.

Showing some parts of a external website and modifing HTML/CSS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I would like to know what is the best approach, based on good programming practices to show an external webpage (say Facebook or Twitter) on my website while being able to modify the HTML and CSS before showing it.
I know that I could use an iFrame however based on some opinions the iFrame does not seem to be a good programming practice (width issues, ugly scrollbars, etc).
Is there a better approach?
Update: Question was put on "too broad", in order to limit the possible answers I would like to know if it possible to change the CSS (and only CSS) of an iFrame, the user Muhammad Umer commented that it would be possible but provided no more details. Someone knows how to achieve this?
This can be done in PHP. First I want to suggest to look for API's. Facebook has some nice API's which allow you to show them on your website, with some options to customize is.
The more difficult (and lots of work to maintain) is using file_get_contents() and using some parsers and regex to get the parts you want. Allthough facebook (and some other sites) might prove difficult, they load some parts via JS, so file_get_contents cant get everything
Again, API's are the way to go.

Create website image programatically [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
When I look at social bookmarking website or web master tools, they have a screenshot of a website showing.
I would like to do the same thing.
How can I go about doing this? (I know they are not using iframe, but rather small thum nail size png file)
Is it possible to achieve this with javascript or do I need to use Windows or Mac OS that can take a screenshot from browser and somehow automate it?
I would like to achieve this goal with javascript or PHP, Python, Ruby.
(I read somewhere that phantomjs might be able to achieve this?)
Please give teach me how I can go about with this problem.
You need a server side programming language that has a webkit module.
Using that you could create a widget into a virtual display and load the site in that and get a screenshot made once it's done loading.
I have done something like this using python, qt, qt webkit and pyqt but did not take a screenshot.
This might help:
http://codescience.wordpress.com/2011/04/19/very-simple-web-browser-on-pyqt4-and-webkit/
Keep in mind that what you want is a bit different so just go to the point where you open the site in the widget and find a way to take the screenshot.
Also look into executing the app into a virtual display.

searching for a great php overview [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
as the title reads I'd like to find a webpage which presents an overview of the php language cause it's been a little while since I stopped to program server scripts.
By overview I see a page with the basic writing of the language (variable writing and the types, the control flows, some writing recommandations and some common functions about arrays and string manipulation) of course without the explicative text that generally comes with tutorials, I just want to refresh my memory about the basis.
I used google to find my request but not seeing anything like this on the first page.
I prefer asking here cause I trust in the stackoverflow community. If you have a personal page that refers to my wanting feel free to post back
edit: this sheet seems to be fine if you want php get the surface of your brain back
http://www.emezeta.com/weblog/emezeta-php-card-v0.1.png
I would say this:
http://oreilly.com/catalog/phppr/chapter/php_pkt.html
Combined with this:
http://www.addedbytes.com/cheat-sheets/php-cheat-sheet/
One great source to find information is actually stackoverflow. Whatever specific problem you encounter, the answer is sure to be found on this site :)
Good luck, PHP is fun!

Categories