View Full Version : Graphics codes script??????
Thefairies
June 8th, 2007, 10:42 AM
I'm looking for a php graphics codes script that will generate the code for my images. I know m2scripts.com sells them. I have that one but I'm looking for one that has numbers instead of Next Page and Previous Page so you can click on the number of the page you want, it's much faster or is there a way to change the script to do so? Any info would be helpful. Thank you...
kenzie
June 8th, 2007, 10:44 AM
I bought the one on m2scripts.com and the images do not display in some browsers. :( I got a lot of complaints about that.
MSRS?
Thefairies
June 8th, 2007, 10:56 AM
I bought the one on m2scripts.com and the images do not display in some browsers. :( I got a lot of complaints about that.
MSRS?
Well I have to check with other browsers.See I dont have a Myspace site. MSRS are for Myspace sites right or can it be altered to work with hi5 and if so who does it ? I have no Idea. Thank you for the info about the browser :)
rize
June 8th, 2007, 10:57 AM
rly kenzie? i ddnt know that..:(
rize
June 8th, 2007, 10:57 AM
ohh off topic i reached 1000 posts heehehe
Thefairies
June 8th, 2007, 11:00 AM
ohh off topic i reached 1000 posts heehehe
Do you get a prize?HeHe...:no:
Sean
June 8th, 2007, 11:00 AM
I bought the one on m2scripts.com and the images do not display in some browsers. :( I got a lot of complaints about that.
MSRS?
What browsers? I used the one from m2script and never got any complaints... maybe it's your html code?
rize
June 8th, 2007, 11:03 AM
Do you get a prize?HeHe...:no:
no :( but idk i feel happy ahaha :clap: :clap: yay me
Thefairies
June 8th, 2007, 11:04 AM
Having to press Next Page and Previous Page on there sucks when you have to go through 100 oh images.Dont you think?
myspaceprodesigns
June 8th, 2007, 11:04 AM
I'm not familiar with ms2scripts, but I would assume it uses a database, so something like this should do it for you (this example is based on 10 results per page):
<?
mysql_connect('localhost', 'username', 'password') or die(mysql_error());
mysql_select_db ('database') or die(mysql_error());
$query = "SELECT * FROM db";
$result = mysql_query($query);
$num = mysql_num_rows($result);
$pages = ceil($num / 10);
for ($count=1;$count<=$pages;$count+=1) {
echo "<a href=\"/directory/?page=$count\">$count</a> | ";
}
?>
Thefairies
June 8th, 2007, 11:06 AM
no but idk i feel happy ahaha yay me I know, I'm just bugging. I felt great when I was able to send Pm LoL....
kenzie
June 8th, 2007, 11:10 AM
What browsers? I used the one from m2script and never got any complaints... maybe it's your html code?
I didn't change anything though. It was Internet Explorer I think. :\ Maybe its fixed now (a new version?) but when I used it, it didn't work right.
Selena
June 8th, 2007, 11:10 AM
The next page/ previous page is for your convenience. you can set how many images to show per page, so if you want to show 20 per page as opposed to 10, you can change that, you just need to locate it in your code.
I like that script. Never had any complaints and use it on every one of my sites except my MSRS site, well, for the obvious reason, I don't need it.
I use IE and always see the images kenzie, i never had any problems with it.
Thefairies
June 8th, 2007, 11:10 AM
I'm not familiar with ms2scripts, but I would assume it uses a database, so something like this should do it for you (this example is based on 10 results per page):
Thank you SOooo much . Will try it and will let you'll know how it turned out. clap
Thefairies
June 8th, 2007, 11:17 AM
The next page/ previous page is for your convenience. you can set how many images to show per page, so if you want to show 20 per page as opposed to 10, you can change that, you just need to locate it in your code.
I like that script. Never had any complaints and use it on every one of my sites except my MSRS site, well, for the obvious reason, I don't need it.
I use IE and always see the images kenzie, i never had any problems with it.
My site has a iframe and it looks neat when it all fits in the frame.
Sean
June 8th, 2007, 11:19 AM
I'm not familiar with ms2scripts, but I would assume it uses a database, so something like this should do it for you (this example is based on 10 results per page):
<?
mysql_connect('localhost', 'username', 'password') or die(mysql_error());
mysql_select_db ('database') or die(mysql_error());
$query = "SELECT * FROM db";
$result = mysql_query($query);
$num = mysql_num_rows($result);
$pages = ceil($num / 10);
for ($count=1;$count<=$pages;$count+=1) {
echo "<a href=\"/directory/?page=$count\">$count</a> | ";
}
?>
It doesn't use a mysql database...
myspaceprodesigns
June 8th, 2007, 11:23 AM
It doesn't use a mysql database...
Can someone point me to a site using m2scripts? If it doesn't use a db, I would still assume that it somehow categorizes items (like glitter graphics, layouts, etc.) for navigation. If so, $num can be set to count the number of items in that category.
Thefairies
June 8th, 2007, 11:27 AM
My Bad, should not have posted the whole script.Did not know it could get peeps in trouble. Sorry Guys :( I think that there's enough stuff now to help others now.
myspaceprodesigns
June 8th, 2007, 11:41 AM
this should do it with that code:
<?
for ($count = 1;$count<=$pages;$count+=1) {
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$count\">$count</a> | ";
}
?>
just put that wherever you want the links to show up
laars
June 8th, 2007, 11:45 AM
I like the m2scripts one, because it can be easily modded.
kenzie
June 8th, 2007, 11:48 AM
This is off-topic but is there a way to use the script for a photobucket account rather than hosting the images on the site?
Thefairies
June 8th, 2007, 11:55 AM
this should do it with that code:
<?
for ($count = 1;$count<=$pages;$count+=1) {
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$count\">$count</a> | ";
}
?>
just put that wherever you want the links to show up
Wow!! it works, Thank you very much ,you don't know how much time you just saved me. I have a little altering to do when I'm done it should be perfect. Thank You!!
rize
June 8th, 2007, 12:00 PM
yep kenzie u cn:)
Thefairies
June 8th, 2007, 12:11 PM
There's a thread around here about a few weeks old were someone got some help with hosting images from their photobucket account . I will have to go look for it. Will keep you posted
myspaceprodesigns
June 8th, 2007, 12:12 PM
Wow!! it works, Thank you very much ,you don't know how much time you just saved me. I have a little altering to do when I'm done it should be perfect. Thank You!!
:clap: :clap: :clap:
Greg31583
June 8th, 2007, 12:15 PM
If you bought that script and use it for your images and layout resource site, please post your site! :-)
kenzie
June 8th, 2007, 12:22 PM
If you bought that script and use it for your images and layout resource site, please post your site! :-)
I do..
http://www.pimpmyprofile.ws/Glitters/1.php
:? But when I try to use my photobucket account it doesn't work. :(
Greg31583
June 8th, 2007, 12:30 PM
I do..
http://www.pimpmyprofile.ws/Glitters/1.php
:? But when I try to use my photobucket account it doesn't work. :(
I see....did you just get it? Didn't see any graphics when I clicked on one of the categories....
kenzie
June 8th, 2007, 12:32 PM
I see....did you just get it? Didn't see any graphics when I clicked on one of the categories....
Yeah..
I'm trying to get that one page working first.
Right now I'm getting this:
Parse error: syntax error, unexpected T_LNUMBER in /home/.savage/pimpmyprofile/pimpmyprofile.ws/Glitters/1.php on line 7
Line 7 is just "<?".
:(
myspaceprodesigns
June 8th, 2007, 12:34 PM
Yeah..
I'm trying to get that one page working first.
Right now I'm getting this:
Line 7 is just "<?".
:(
it could be something on line 6 (like an expression that you didn't close) or you have a variable starting with a number on line 8
kenzie
June 8th, 2007, 12:39 PM
it could be something on line 6 (like an expression that you didn't close) or you have a variable starting with a number on line 8
I'm not sure. I didn't change anything except the urls. I added the header and stuff but its STILL on line 7 even though line 7 is different. :?
01 <?php include('/home/.savage/pimpmyprofile/pimpmyprofile.ws/header.php');?>
02
03 <?php $title = "Pimp My Profile - Apology Glitter Graphics; ?>
04
05 <h1>glitters</h1>
06
07 <table width="100%">
08 <tr>
09 <td>
10 <?
11 // Configure these values for your site
12 $site_url = "pimpmyprofile.ws"; // no http, no trailing /
13 $site_name = "Pimy My Profile";
14 $site_advert = "Get free glitter graphics at PimpMyProfile.Ws!";
15 $support_image = "";
16 // support_image is a logo for your site that will be placed in the top
17 // left of the users myspace page. Leave this blank if you don't want
18 // to use a support image.
....
edit/ the errors are on line 28 now.
<?php include('/home/.savage/pimpmyprofile/pimpmyprofile.ws/header.php');?>
<title>Pimp My Profile (PimyMyProfile.Ws) - Apology Glitter Graphics</title>
<h1>glitters</h1>
<table width="100%">
<tr>
<td>
<?
// Configure these values for your site
$site_url = "pimpmyprofile.ws"; // no http, no trailing /
$site_name = "Pimy My Profile";
$site_advert = "Get free glitter graphics at PimpMyProfile.Ws!";
$support_image = "";
// support_image is a logo for your site that will be placed in the top
// left of the users myspace page. Leave this blank if you don't want
// to use a support image.
$cat = 'http://s202.photobucket.com/albums/aa270/pimpmyprofilews/Glitters/Apologies/';
$urlpath = 'http://s202.photobucket.com/albums/aa270/pimpmyprofilews/Glitters/Apologies/';
$max2show = 5; //Amount you want to show per page
// END OF CONFIGURATION SECTION
// Do not edit below this line
$hook = opendir($cat) or die('cant open dir');
$total = 0;
if(!isset($_GET['page'])) $page = 1;
else $page = $_GET['page'];
$start = $max2show * $page - $max2show;
$end = $page * $max2show;
$ext = array("jpg", "png", "jpeg", "gif");
while (false!==($file = readdir($hook))) {
for($i=0;$i<sizeof($ext);$i++)
if (stristr($file, ".".$ext[$i])) //NOT case sensitive
{
$files[] = $file;
$total++;
......
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.