Archive

Freelance Projects Tagged ‘src http’

Seo Updates Drupal Php Store

August 6th, 2009

Our site is built in Drupal using Ubercart.

Our regular contractor is busy with some big PR opportunity, but these are his notes, so it’ll give you a first look at what needs to be completed and where he left off. By the way…previous guy wasn’t a Drupal guy, but was doing me a favor getting the work done. Anyway…I just wanted to note that since his notes makes it sound like a mess, I think it reflects some work, but more inexperience, no bash intended. He’s still awesome;)

We also have needs to update text and tags on a regular basis.

The following is a copy of the working notes:

Blog:
From what I’ve seen, the default blog module allows for all users to create blog content, which of course is undesirable (all users, meaning your customers too.) There very well might be a way to make it so only admin users can use this… but I couldn’t see it.
so I found this:
http://drupal.org/node/41373
which is basically instruction on how to do a drupal blog, BUT with limited “bloggers”. The downside is that to accomplish this it limits the people who can actually register… effectively eliminating the ability for customers to register at all. I’m having a very hard time getting this installed and working. So this is NOT a good solution.

I believe the trick is going to be using the default blog module, but figure out a way to limit the users who can post.

Here are links to find more info:
http://drupal.org/node/41373
http://sudosys.be/?q=drupal_blog_modules

Ads:
The banner ad rotating deal seems like it will go REALLY well and is precisely what we’re looking for. I got it installed just fine, started setting things up, etc.. but then got to a point where I’m instructed to look under the help menu to find instructions on how to embed the ads on specific pages
(Administer -> “By module” tab -> then click on any “Get help” link)
All of those help links are broken. I searched all over for help with this, but can’t find any. I’m SOOO close on this, but for whatever reason I can’t access that documentation, and can’t find the content online.

If we can figure out why these links aren’t working, you’d be able to finish this one off.

Here is some documentation on that module:
documentation:
http://drupal.org/node/394126

Here’s the status on the original SEO document:
Everything was done with the following exceptions:

- Meta Descriptions for store/product pages (Again, I simply cannot find a fix for this. I don’t know if it’s the way the store was built, or what, but for whatever reason the descriptions are not being rendered into the HTML.) I posted to the support forums, but I am not getting any response.

I thought I was on the right track in finding this:
http://drupal.org/node/465744
Which suggested I deselect the option to generate a description meta tag from the node teaser.
I found that option here:
Administer -> Content Management -> Meta tags
but I deselected it and it doesn’t appear to have fixed the issue. :(

- “Visible call to action on every relevant page”. That was our banners. I can simply go through and put them in manually, but that banner ad module would make it much easier and give us the ability to track, give us statistics, etc. But if it comes down to it, you can simply place them in manually as you see fit. I have uploaded those to the system already. You can use the following code snippets to paste into the description field for the pages you’d like those banners to appear on:

<A HREF=”http://www.doctorgrandmas.com/store/wheat-berries”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/wheat-berries.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

<A HREF=”http://www.doctorgrandmas.com/store/sweetener”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/natural-sweetner.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

<A HREF=”http://www.doctorgrandmas.com/store/sweetener”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/natural-sweetner-2.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

<A HREF=”http://www.doctorgrandmas.com/store/whole-wheat-mixes/muffin-mixes”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/whole-wheat-muffins.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

<A HREF=”http://www.doctorgrandmas.com/store/whole-wheat-mixes/muffin-mixes”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/whole-wheat-muffins-2.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

<A HREF=”http://www.doctorgrandmas.com/store/whole-wheat-mixes/pancake-mixes”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/whole-wheat-pancakes.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

<A HREF=”http://www.doctorgrandmas.com/store/whole-wheat-mixes/pancake-mixes”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/whole-wheat-pancakes-2.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

- And of course adding the content from that second document I couldn’t open. However, as soon as you can access that it should be easy.

- Promo code: I haven’t started on this yet as I’ve been working on the above issues. This is basically the ability to allow shoppers to input coupon codes to get discounts, etc, correct?

- Here’s an important note that you will find helpful and will probably save time:
Editing the footer:
cannot do this through admin. This is found directly in a template file:
themes/wholefoods/page.tpl.php

- I still haven’t had the chance to look into google base – definitely something that could help. We see a lot of traffic for Karen’s Cookies through google base.

- It was also suggested that we add an FAQ. I had not received content for this. Would be a good idea though, include information on shipping policies, shipping times, etc..

Categories: CSS, Drupal, E-Commerce, MySQL, PHP

Full News Feed Implementation

July 1st, 2009

I need an experienced person to custom install a full news feed on my website. It has to be tailored around my wordpress theme. Below are the different customization details to use however I need the coding behind it to pass my web developer toolbar check once finished.

I need this done quickly!

Styling The News Feed:

Below are the different css classes used that can be used to style the headlines and stories.

* StoryTitle – Title in Headline view
* StoryText – Description in Headline view
* StoryItem – Row in Headline view
* StoryItemAlt – Alternating Row in Headline view
* HeadlineLink – Return to Headlines Link
* SingleStoryTitle – Title in Story View
* SingleStoryItem – Story Row/Div in Story View
* SingleStoryText – Story details in Story View

Feed Options

* subscriberKey = string : Required to show feeds
* HeadlineResults – string: The name of the div which will contain the list of headlines that are to be shown. By Default Headline and Results are shown in same div.
* StoryResults – string : The name of the div which will contain the story that is chosen. By Default Headline and Results are shown in same div.
* NumHeadlines – int : The number of headlines to show in the HeadlineResults div
* StoryUrl – string : If you want the story to link to a different page, you need to setup this parameter to the url of the Story. The javascript will add the required QueryString Parameter tho this url as specified by the StoryIdParam option
* StoryIdParam – string : If you want to specify a different querystring parameter for the story ID instead of the default parameter, specify it here. You may need to do this if you use the default StoryIdParam for something else
* ShowReturnLink – bool : This option will toggle whether or not the ‘Return to Headlines’ link is shown when viewing a story.
* ReturnLinkUrl – string : This option will allow you to use a different link other than the default javascript to show the headlines page. It will only show if ShowReturnLink = true
* ReturnLinkText – string : This option will allow you to display different text for the ‘Return to Headlines’ link
* ShowTitleOnly – bool : This option will allow you to only show the headline and not the description in the headline view
* StoryId – int : If you want to specify the StoryId, it can be specified here and will pull this story. *Be aware that the story will not pull if it has expired (is no longer one of the latest 10 stories)

Option Defaults

&lt;script type=”text/javascript” src=”http://feeds.mortgagenewsdaily.com/Scripts/NewsFeed.js” id=”MNDNewsFeed”&gt;
{ subscriberKey : null,
HeadlineResults : “newsResults”,
StoryResults : “newsResults”,
NumHeadlines : 10,
StoryUrl : “javascript:GetStory(’{0}’);”,
StoryIdParam : “storyId”,
ShowReturnLink : true,
ReturnLinkUrl : “javascript:GetNews();”,
ReturnLinkText : “Return to Headlines”,
ShowTitleOnly : false,
StoryId : null}
&lt;/script&gt;

Example for a Main Page and a Story Page:
News.aspx

&lt;script type=”text/javascript” src=”http://feeds.mortgagenewsdaily.com/Scripts/NewsFeed.js” id=”MNDNewsFeed”&gt;
{ subscriberKey : yoursubscriberkey,
HeadlineResults : “headlines”,
StoryUrl : “Story.aspx”}
&lt;/script&gt;
&lt;div id=”headlines”&gt;
&lt;/div&gt;

Story.aspx

&lt;script type=”text/javascript” src=”http://feeds.mortgagenewsdaily.com/Scripts/NewsFeed.js” id=”MNDNewsFeed”&gt;
{ subscriberKey : yoursubscriberkey,
StoryResults : “storyResults”,
ShowReturnLink : true,
ReturnLinkUrl : “News.aspx”,
ReturnLinkText : “Return to News”
}
&lt;/script&gt;
&lt;div id=”storyResults”&gt;
&lt;/div&gt;

Categories: CSS, PHP, Wordpress, XML

Programming Project 1553590

May 23rd, 2009

I own traffic selling website. I also have a website which received quite a lot of traffic every day and I’d like to sell it.
I need a complete system that takes the incoming traffic and distributes it using iframe to all the clients.
This means that one visits can be sent to many people at once, because when the system receives a visit, a following page is presented:
<html>
<body>
<iframe src=”http://tms.x.net/in”></iframe>
<iframe src=”http://tms.x.net/in”></iframe>
<iframe src=”http://tms.x.net/in”></iframe>
<iframe src=”http://tms.x.net/in”></iframe>
</body>
</html>

This is “multi in gateway” described above. The number of the iframes must depend on the needs – if there are more campaigns that need traffic(didn’t reach limit and are active), we need more iframes, if not, we need less.
This page needs to be cached and cannot be generated on the fly.
http://tms.bhtraffic.net/in is a “single in gateway” described below, which takes the visit, finds a campaign url and redirects it directly or by one of the special gateways like noreferrer or fake referrer gateway.

Customer panel:
I need a nice panel for customer, where customer:
- can see a list of campaigns (first active, then a list of delivered campaign, but max 3 of the delivered ones)
- can see detailed stats for each campaigns(total ordered, total delivered, last 24h delivered, avg. traffic speed since beginning, expected traffic end date). On the same page user have to be able to suspend/resume the traffic, set Downtime Protection settings, set max. daily traffic amount, set DailyStats settings.
- can see history for each campaign(events like status changes, downtime protection activity etc.)
- can buy new campaign- can set account settings like first name, lastname, password, email, mobile phone number, SMS alerts settings(send SMS alerts or not)
.
- can check SMS credits left and buy more credits. See list of last sent SMS messages(with links to SMS delivery confirmation)
- can download a dump of visits in CSV(or other in future) format. In fact, just a dump of DB.
- can log out

Admin panel:
- I need to see a list of customers, a list of campaigns and list of invoices. Of course, I need direct access to edit anything for each customer and campaign.
- a list of campaigns pending approvement or setup with easy way to change the status. If I choose to decline, an input box should appear where I can put a comment why it has been declined.
- Stats: how many customers, how many active customers(with active campaign), number of campaigns, amount of total traffic ordered, amount of total delivered, total amount of traffic that have been received by gateway in last 24h(for uniques and not uniques), total traffic sold(for uniques and not uniques)
- See number of global SMS credits left (will provide the code)
- Easy form to contact any customer via either email or SMS(of course, it won’t eat SMS credits from customer account).
- A possibility to edit/add/delete/view autoapprove urls.

Backend:
Traffic gateways:
-single in gateway: a visitor comes, is checked if it’s USA visit, if not, script exits. If it’s USA visit, a campaign is chosen according to it’s setting and a 301 redirect is made to the campaign’s url. Then, the hit is counted for the customer. If it’s img traffic, then instead of 301 redirect, just print <img> tag and put campaign’s url as src.
-multi in gateway: a visitor comes, if it’s USA visit, a special page with iframes linking to singlein gateways. The number of iframes depends on number of active campaigns.
In case noreferrer or fakereferrer, traffic needs to be counted after it goes through the final gateway(either our local gateway for blanking or external gateway for fake ref)!
So it will be redirected to the gateway, the gateway will redirect it some other way back to count the visit, and then redirect is done.

(admin)Security detector
Every few hours(probably 1-3, will decide in CRON), every website will be downloaded and a special hash will be calculated(will provide the code).
The hash will be compared to last check and stored in DB. If the hash is different, it will go once again through the detector(will provide the code). If it finds something strange has happened(and the website is not down), campaign will be suspended with status “suspended by security detector, pending review”. Of course, the customer will be notified and I will see it in my panel(with the automatical detector diagnose), so I can review it.
All fakereferrer and ranking increasing gateways need to be monitored too, but I will provide all details later.

Order form:
I need a nice, 2 level order for for customers to put onto my website. I’d like it to be in Ajax, so it will be easy to customer to add new campaigns to the list(so many different campaign can be bought and then paid with 1 payment). This can be done at the end. As all the rest will be finished, I will provide detailed specs for the form.

Downtime protection monitors each campaign’s url, runs in CRON every 3 minuts.
It checks the website(I will provide the code) and if something’s wrong, it suspends the campaign, notifies customer and sets campaign status to suspended by downtime protection.
Downtime protection settings:
- Full (detects invalid server response code and PHP errors)
- Medium (detects invalid server response code)
- Off (no monitoring)

DailyStats – customer can receive daily SMS or email with stats for the campaign for past 24h. This eats SMS credits.
DailyStats Settings:
- delivery method: email, SMS, both
- time (it’d be great if user could input the time in his own timezone, so it’s automatically detected and recalculated).

SMS alerts – I will provide you SMS api.
SMS credits are taken off customer account ONLY if SMS alert is DailyStats SMS or Downtime Protection.
All other alerts like campaign update etc. will be free SMS alerts.

Customer contact methods:
- email
- SMS alert

Campaign “life”:
1. User submits order
2. If it’s img or ranking increase campaign, it’s automatically approved. Otherwise, campaign status set to: pending review
3. Campaign is added to review list in admin panel and automatically scanned with serverside detector(will provide the code)
4. I review it(I need to see the detector results), if I set it to declined, the status “declined” is set, user gets alert(I need to be able to add comment!). If I approve it:
5. Campaign is set to active if it’s normal traffic delivery. If it needs any setup(for fake referrer or ranking increase), campaign status is changed to “pending setup”.
6. If it’s ranking campaign or user have paid for script installation, I need to be able to set campaign to active easily and fast. If user have fake traffic campaign and didn’t pay for installation, he needs to report it has been installed(it will be automatically checked, I will provide you the code).
7. Traffic is being sent.
8. 48h before the expected campaign end(it can be easily calculated by campaign speed) notify customer by email or sms.
9. As it’s done, set campaign status to delivered.

If the url is on autoapprove list (which can be edited in admin panel), the campaign is not set to “pending review”, but is automatically approved.

If customer decided to cancel the traffic, I need to be able to set cancelled status.

Customer settings:
- First name
- Last name
- Username
- Password(hash)
- Email
- Mobile phone
- SMS credit details(settings, credits left etc)
- Other contact details(so user can input IM contacts etc)..
- Comments (visible for user and admin)

Campaign settings:
- ClientID(id of client who owns this campaign)
- InvoiceID(id of invoice, as many campaigns can be bought in one order)
- Type(traffic, rank increasing)
- Traffic Delivery Type (standard, img, noreferrer, fakereferrer)
- FakeReferrerGateway (url to the gateway)
- Status(pending review, pending payment, pending setup, suspended by customer, suspended by downtime protection, suspended by security detector, active, declined, delivered, cancelled)
- Url
- Name of the campaign
- TotalTraffic ordered- DailyLimit of delivery

- Unique (if unique, client needs to get 1 ip per client per 24h)
- Exclusive (one IP is sent to only one campaign. So if the IP was already sent somewhere else, it can’t be sent to campaign that is exclusive). This setting can not be visible for customers and can be set by me only.
- UComments (visible for user and admin)
- AComments (visible for admin only)

Invoice details:
- ClientID
- TotalAmount
- Paid(yes/no)
- PaymentMethod
- PaymentDateTime
- PaymentID(VARCHAR, provided by payment processor)

All gateways are ready and will be provided.

Categories: MySQL, PHP, Programming, XHTML