Pages: 1 [2] 3   Go Down
  Print  
Author Topic: Dynamic Banner Shows Stats Of Member and Site  (Read 961 times)
Pennies4me
Jr. Member
**
Offline Offline

Posts: 60


View Profile WWW
« Reply #15 on: December 30, 2011, 07:03:39 AM »

Warning: imagecreatefromjpeg(elite.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /home/pennecom/public_html/ptc/banner.php on line 19

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pennecom/public_html/ptc/banner.php on line 20

Warning: imagestring(): supplied argument is not a valid Image resource in /home/pennecom/public_html/ptc/banner.php on line 22

Warning: imagestring(): supplied argument is not a valid Image resource in /home/pennecom/public_html/ptc/banner.php on line 24

Warning: imagestring(): supplied argument is not a valid Image resource in /home/pennecom/public_html/ptc/banner.php on line 25

Warning: imagestring(): supplied argument is not a valid Image resource in /home/pennecom/public_html/ptc/banner.php on line 26

Warning: imagestring(): supplied argument is not a valid Image resource in /home/pennecom/public_html/ptc/banner.php on line 28

Warning: imagestring(): supplied argument is not a valid Image resource in /home/pennecom/public_html/ptc/banner.php on line 29

Warning: imagestring(): supplied argument is not a valid Image resource in /home/pennecom/public_html/ptc/banner.php on line 30

Warning: imagestring(): supplied argument is not a valid Image resource in /home/pennecom/public_html/ptc/banner.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /home/pennecom/public_html/ptc/banner.php:19) in /home/pennecom/public_html/ptc/banner.php on line 33

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/pennecom/public_html/ptc/banner.php on line 35

Thats what i get...
What am i doing wrong?
Logged

PTC Revolution!
Next Gen. Earnings!
Bonuses to make you smile!
Loyalty Points for you!
Advertisers Save $$$!
Upgrade to an SDR 3
Aligroup
Global Moderator
Hero Member
*****
Offline Offline

Posts: 766



View Profile WWW
« Reply #16 on: December 30, 2011, 07:22:58 AM »


It Looks like that u have not followed all intructions its error in banner.php
so again read whole topic and follow it carefully    Smiley
Logged

Iam Online almost 15 hours Daily
Goldclix " Advertize Your Site Free Check Here"

Pennies4me
Jr. Member
**
Offline Offline

Posts: 60


View Profile WWW
« Reply #17 on: December 30, 2011, 07:28:47 AM »

Helow Friends
if u want to add dynamic banner in  ur ptc site
which will show Members Payments, Site Hits, Balance e.t.c
Demo:-


Go to Cpanel in public_html
create new file name as banner.php

add this code and save it

Quote
<?php

   $id=$_GET['u'];
   include("config.php");
        include("includes/mysql.php");
        $Db1 = new DB_sql;
$Db1->connect($DBHost, $DBDatabase, $DBUser, $DBPassword);
        
       
   $specialPTP=true;
   $members = mysql_fetch_assoc(mysql_query('SELECT COUNT(userid) AS total FROM user'));
   $user = mysql_fetch_assoc(mysql_query('SELECT username,referral_earns FROM user WHERE userid=\''.$id.'\''));
   $amount = mysql_fetch_assoc(mysql_query("SELECT SUM(amount) AS total FROM payment_history WHERE username='".$user['username']."' and status=1"));
   
   $stats = mysql_fetch_assoc(mysql_query('SELECT new_members, hits, clicked FROM stats WHERE date=\''.date('d\/m\/y').'\''));
   $totalpaid = mysql_fetch_assoc(mysql_query('SELECT SUM(amount) AS total, COUNT(amount) AS amount FROM payment_history WHERE status != 2'));
   
   
   $xImg = ImageCreateFromJPEG('elite.jpg');
   $col = imagecolorallocate($xImg, 255, 255, 255);

   imagestring($xImg, 3, 200, 5, 'User:  '.$user['username'], $col);

   imagestring($xImg, 3, 200, 18, 'Members: '.$members['total'], $col);
   imagestring($xImg, 3, 200, 31, 'Paid Out: '.$totalpaid['total'], $col);
   imagestring($xImg, 3, 200, 44, 'Payouts Made: '.$totalpaid['amount'], $col);

   imagestring($xImg, 3, 350, 5, 'Received: '.$amount['total'], $col);
   imagestring($xImg, 3, 350, 18, 'New Members: '.$stats['new_members'], $col);
   imagestring($xImg, 3, 350, 31, 'Hits: '.$stats['hits'], $col);
   imagestring($xImg, 3, 350, 44, 'Clicks: '.$stats['clicked'], $col);
   
   header('Content-type: image/jpeg');
   mysql_close();
   imagejpeg($xImg, NULL, 100);

?>

than go to members > banners.php

edit it and add
on line number 6 or where u want to add banner

Quote
"http://www.$settings[domain_name]/banner.php?u=".$thismemberinfo['userid']


now make ur banner and rename it to  elite.jpg
upload it to public_html

Done
Your Dynamic Banner Is Ready  Smiley


Best Regards,
Waqar-Ali
http://goldclix.info

Theres 2 copy and pastes, and add a banner named elite.jpg
Its not difficult to follow i think..

Unless theres more im missing.. I did what i saw in the quote!
Logged

PTC Revolution!
Next Gen. Earnings!
Bonuses to make you smile!
Loyalty Points for you!
Advertisers Save $$$!
HP
Newbie
*
Offline Offline

Posts: 45


View Profile
« Reply #18 on: December 30, 2011, 01:13:14 PM »

U had uploaded the banner.php file in folder name ptc!
but its needs to upload in public_html

U need to have alteast, banner.php and elite.jpg in ur Public_html i.e main directory!

Acc to me all of those errors are bcoz of this!
If u can tell ur site, then it would be useful to understand and help u out!
Logged
HP
Newbie
*
Offline Offline

Posts: 45


View Profile
« Reply #19 on: December 30, 2011, 01:14:10 PM »

Quote

Can u give a Short example?

Can u just edit this line:

 
Code:
   imagestring($xImg, 3, 200, 18, 'Members: '.$members['total'], $col);

Thank U! Smiley

u just want to show Members?Huh?

Its just example, tell me where will u add html tags?
then i will just copy it in others
Logged
Pennies4me
Jr. Member
**
Offline Offline

Posts: 60


View Profile WWW
« Reply #20 on: December 30, 2011, 08:42:51 PM »

U had uploaded the banner.php file in folder name ptc!
but its needs to upload in public_html

U need to have alteast, banner.php and elite.jpg in ur Public_html i.e main directory!

Acc to me all of those errors are bcoz of this!
If u can tell ur site, then it would be useful to understand and help u out!

This has helped. Fixed it, and it is now ready for me to configure..
Thanks isnt enough, for over a month i have been asking and looking for a solution..

Come on down to http://ptc.pennies4me.com
Tell me the USername you used and i'll gave you a free 1 Month Silver membership as a thank you..
Logged

PTC Revolution!
Next Gen. Earnings!
Bonuses to make you smile!
Loyalty Points for you!
Advertisers Save $$$!
Aligroup
Global Moderator
Hero Member
*****
Offline Offline

Posts: 766



View Profile WWW
« Reply #21 on: December 30, 2011, 09:52:42 PM »

Quote

Theres 2 copy and pastes, and add a banner named elite.jpg
Its not difficult to follow i think..

Unless theres more im missing.. I did what i saw in the quote!

Now Tell me u made mistake na??  Smiley
Logged

Iam Online almost 15 hours Daily
Goldclix " Advertize Your Site Free Check Here"

HP
Newbie
*
Offline Offline

Posts: 45


View Profile
« Reply #22 on: December 31, 2011, 03:48:21 AM »

U had uploaded the banner.php file in folder name ptc!
but its needs to upload in public_html

U need to have alteast, banner.php and elite.jpg in ur Public_html i.e main directory!

Acc to me all of those errors are bcoz of this!
If u can tell ur site, then it would be useful to understand and help u out!

This has helped. Fixed it, and it is now ready for me to configure..
Thanks isnt enough, for over a month i have been asking and looking for a solution..

Come on down to http://ptc.pennies4me.com
Tell me the USername you used and i'll gave you a free 1 Month Silver membership as a thank you..

Thanks for the offer! Smiley
I also made a banner like this one



« Last Edit: January 01, 2012, 10:52:58 PM by HP » Logged
crystal32
Newbie
*
Offline Offline

Posts: 10


View Profile
« Reply #23 on: December 31, 2011, 10:57:25 AM »

what is the code to add referrals in the banner?
Logged
sew77williams
Full Member
***
Offline Offline

Posts: 101


AuroraPlus


View Profile WWW
« Reply #24 on: January 14, 2012, 07:36:05 AM »

Can I add this code to work with topsites?
Logged

sew77williams
Full Member
***
Offline Offline

Posts: 101


AuroraPlus


View Profile WWW
« Reply #25 on: January 18, 2012, 11:46:04 PM »

My banner
Logged

Aligroup
Global Moderator
Hero Member
*****
Offline Offline

Posts: 766



View Profile WWW
« Reply #26 on: January 19, 2012, 02:27:14 PM »

Can I add this code to work with topsites?

what mean???
Logged

Iam Online almost 15 hours Daily
Goldclix " Advertize Your Site Free Check Here"

HP
Newbie
*
Offline Offline

Posts: 45


View Profile
« Reply #27 on: January 28, 2012, 11:31:10 AM »

Buddy, can you please explain the code to change the font of the text like Total Paid, etc.. in it..
plz plz plz plz plz
Logged
jdsifw
Newbie
*
Offline Offline

Posts: 26


View Profile
« Reply #28 on: February 12, 2012, 11:54:25 PM »

Ok i got the banner.php made. What do i save it as? Text / html? etc...

Also were can i make a banner at lol.


Jon
Logged
Aligroup
Global Moderator
Hero Member
*****
Offline Offline

Posts: 766



View Profile WWW
« Reply #29 on: February 13, 2012, 12:46:18 AM »

Ok i got the banner.php made. What do i save it as? Text / html? etc...

Also were can i make a banner at lol.


Jon

banner.php

and u can create banner in adobe photoshop
Logged

Iam Online almost 15 hours Daily
Goldclix " Advertize Your Site Free Check Here"

Get a SDR 3 NOW at http://ptcfactory.info

The best and most up to date Aurora script in the market!!
Pages: 1 [2] 3   Go Up
  Print  
 
Jump to: