How to create a adsense ad system for PHP Blog system? - php

Hi I have a fully functioned blog system built using php and I need to add adsense ad system for that. Ad code is provided by the user. Can someone give steps to do that. Thanks in advance.
I have created the backend for custom ads. And I need to do the adsense thing now. I have no idea how to do that.

Related

Implement search option/tool in website

I have to implement search option/tool in my website. Search tool should search contents only from my website like some category name or file name. I'm developing website in PHP. I have also referred this link too. But I want some templates or
some demo like video lecture or blog which describes that how to develop.
In that link, there is option to describe all the data. But how? And I also want to develop in core PHP.
If anyone know answer then please explain or suggest me link from where I can understand from beginning. Thank You.

How to automatically tweet when a new article added to Joomla

I have a free wordpress blog which automatically tweets my new article through my twitter account which I have no idea how wordpress does it. I want to do the same thing on Joomla 3.2.3 platform.
What I want to do is when I add a new article into a specific category, I want Joomla to tweet the article's url automatically.
What I have tried is to search for a couple of components doing this. But I am stucked at API/Key-API/Secret validation. The component (AutoTweetNG) needs tweeter API to have read and write level. So I have many web sites to apply this application. In order to have read and write rights twitter asks me to enter mobile phone number in the profile page.
I have decided to make this by hard coding. Is there any oppurtunity to achieve this? It looks it is gonna be a little robot things, and twitter does not let me.
At least it would be great if thic could be done using PHP only.
Try this,
You can achieve it using two things in Joomla, One is create a twitter Oauth APP also create a content plugin for auto tweet.
First you have to create an app with twitter just follow the link.
Then Create a Joomla content plugin with onContentAfterSave event.
Then Once you create an article it will automatically tweets.
Hope its helps..

wordpress help... integrating existing PHP code to work side-by-side

I know very little of WP aside form it being a CMS geared towards (or started from) blogging, but may people have found the product capable of functioning as their sites CMS.
I was recently asked to write a PHP app to signup, (with email confirm and email notification to admin), login to make and manage orders. - so a user can register and get an email confirmation... once they are approved, they can log in, and place an order. and manage their information. There is also an admin section to manage the users and requests... ALL very straight ahead.
So I write it - and test it and everything is fine... Until the client tells me that it's going to be part of a WP site.
Problem, the client ONLY knows HTML, NOT PHP... I don't know WP.
When I upload a directory to the root - and try to run the app, I get redirect to /$url .. and a page not found displaying in the WP theme.
I have a feeling it has to do with the AUTH module I'm using... but there is a huge BIG PICTURE issue I need to conquer - how to integrate an existing PHP app into a WP site...
Q: how do I reference and use the WP emailing system?
thx - I know it's a broad question. but if someone can point me into a direction...
I have read the post regarding templates in WP and setting up a template with PHP code so it's executed... but it seems 'wrong' to have to create a template for each php page.
What your app is about ? If you got only the Auth module already coded you should only import user and password because WP does this out-of-the-box.
Wordpress can be twist up for your need but you need to do it in the WP way :).
If you want to add some functions to it check out the plugin library on wordpress.org. If you know wordpress and no plugin match your needs then the best way to go is writing your own plugin : https://codex.wordpress.org/Writing_a_Plugin
Or maybe just add your custom functions into functions.php, see https://codex.wordpress.org/Theme_Development#Functions_File
For pages, you basically have to type of it in WP : articles - i.e. blog posts - and the static pages. You can add some custom one check https://codex.wordpress.org/Post_Types
I know this answer is more a bunch of links but if you don't nothing about WP you should first learn how it works before try to hack it.
Hope it helps !

WordPress plugins

I'm trying to create a custom version of WordPress and now I'm stucked with the plugins api...
Is there someone who can explain me how it works.
Thank you.
You could read the Developer Documentation of Wordpress, that's how everybody learns how to create plugins.
Start with this guide on writing your first plugin. Other than that, you should poke around existing plugins and see if you can follow all the API calls described here.
If you want more specific answers you should first start trying to develop something simple and come back when you hit a specific roadblock.

User submitted posts in wordpress 3.0

I am in the middle of building a site with user submitted posts that let the user upload a zip file along with images. At the moment I am using TDO-Miniforms and wordpress 2.9.2, but TDO-miniforms has stopped development and is broken with wordpress 3.0 that just came out. I would like to update the site to 3.0 but I don't know of any alternatives to TDO-miniforms that let logged in users submit posts with attachments and images.
Any alternatives?
I would assume that with the popularity of TDO, someone may take it upon themselves to either help out or take on the project to bring up to 3.0.
What I would suggest to encourage this progression is;
Contacting the developer(s) to show your support
Donate to the project
Rallying fellow developers on WordPress IRC and the forums to take on the project

Categories