wapdesire/lavalair gallery

Started on the old forum in July 2010 · view the original in the archive · old links redirect here

17 replies · 1,607 views · started 16 years ago · 1 min read

3 participants
alan1979 Junior · 22 posts #1

does anyone know how to remove the 5 pic max limit in wapdesire/lavalair script please. its getting on my nerves

subzero Super moderator Fellow · 3,954 posts #2

look for $nop[0];

or search 5

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alan1979 Junior · 22 posts #3

wat do i change it to please

subzero Super moderator Fellow · 3,954 posts #4

post the script of the gallery to me i will change it to what you wont it to be

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alan1979 Junior · 22 posts #5

it wont accept php files as attatchments. how do i send it to you

Added after 4 minutes:

subzero m8 do u want me to zip the gallery folder and attatch it here m8

subzero Super moderator Fellow · 3,954 posts #6

Yeah i will download it edit it then post again.

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #8

Like a 10000000 per page ?? then it overloads the users phones ??

how many pages how many pics per page you want ??

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alan1979 Junior · 22 posts #9

i dont know m8 but i dont want any limits on it. i want users to be able to upload as many pics as they want

subzero Super moderator Fellow · 3,954 posts #10

if this for computer or phone site..

For phone Dont have it unlimited as you will give them a error doing so.

i limited it 30 per page for you

Open viewcategory.php and replace with this code i added here.

<?php

define('WCS',true);

include('../core/main.inc');

header_type();

cleardata();

if(ipbanned(ip(),browser())){

if(!shield(getuid_sid($sid))){

echo head_tag("Ip Blocked!!!",0,0);

echo ipbanned_msg();

echo foot_tag();

exit();

}

}

if(!islogged($sid)){

echo head_tag("Error!!!",0,0);

echo session_expired();

echo foot_tag();

exit();

}

if(banned(getuid_sid($sid))){

echo head_tag("Error!!!",1,getnick_sid($sid));

echo banned_msg($sid);

echo foot_tag();

exit();

}

mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

/////////////////////////VIEW CATEGORY/////////////////////////

addonline(getuid_sid($sid),"Gallery","");

echo head_tag(getnick_sid($sid)."@Gallery",1,getnick_sid($sid));

$title="<b><i>Gallery</i></b>";

$main="<p align=".align().">

Welcome To $sitename Gallery<br/>\n";

$active=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM gallery_categories WHERE id='".$id."' AND active='0'"));

if($active[0]==1){

$main.="<p align=".align().">This Category Is Currently Disabled.</p>\n";

$main.="<p align=".align().">$fivekey<a $key5 href=\"./downloads.php?sid=$sid\">Back</a></p>\n";

$L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";

$L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";

$L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";

$L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";

$L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";

echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);

echo foot_tag();

exit;

}

if($page==""||$page<=0)$page=1;

$num_items=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM gallery_files WHERE category='".$id."'"));

if($num_items[0]==0)$num_items[0]=0;

$items_per_page=30;

$num_pages=ceil($num_items[0]/$items_per_page);

if($page>$num_pages)$page=$num_pages;

$limit_start=($page-1)*$items_per_page;

if($num_items[0]==0)$limit_start=0;

$sql="SELECT id, uid, filename, path, hits FROM gallery_files WHERE category='".$id."' ORDER BY filename LIMIT $limit_start, $items_per_page";

$items=mysql_query($sql);

$main.=mysql_error();

if(mysql_num_rows($items)>0){

while($item=mysql_fetch_array($items))

{

$file=explode("gallery/",$item[3]);

if(filesize($file[1])>1048575){

$size=round(filesize($file[1])/1048576,1)." Mb";

}else if(filesize($file[1])>1023){

$size=round(filesize($file[1])/1024,1)." Kb";

}else{

$size=filesize($file[1])." Bytes";

}

$filename=explode(".",$item[2]);

$nick=explode("(",$item[2]);

$main.="<img src=\"../phpThumb/phpThumb.php?src=../gallery/$item[2]&w=150&f=".getext($file[1])."&sia=".getnick_uid($item[1])."\" alt=\"$item[2]\"/>

<br/><a href=\"./get.php?id=$item[0]&sid=$sid\">$filename[0].".getext($file[1])."</a> $size\n";

if(gallery_tools(getuid_sid($sid))||getnick_sid($sid)==$nick[0]){

$main.=" <a href=\"./delete.php?id=$item[0]&sid=$sid\"><img src=\"../images/error.gif\" alt=\"[delete]\"/></a>";

}

$main.="<br/>

<small>$item[4] Downloads<br/></small><br/>\n";

}

if($page>1){

$main.="<br/><a href=\"./viewcategory.php?id=$id&page=".($page-1)."&sid=$sid\"><-Prev</a> ";

}

if($page<$num_pages){

if($page==1)$main.="<br/>";

$main.="<a href=\"./viewcategory.php?id=$id&page=".($page+1)."&sid=$sid\">Next-></a>\n";

}

$main.="<br/>Page - $page/$num_pages</p>\n";

if($num_pages>2){$main.=getjumper("viewcategory","id","$id",$sid);}

}else{

$main.="<br/>There Are No Gallery Pics Atm...

</p>\n";

}

$main.="<p align=".align().">$fivekey<a $key5 href=\"./gallery.php?sid=$sid\">Back</a></p>\n";

$L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";

$L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";

$L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";

$L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";

$L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";

echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);

echo foot_tag();

exit;

?>

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

woody Developer · 176 posts #11

its not the pics per page he wants chaingin sub its the number of pics a user can upload, its set to 5 as default, its not in viewcategory its in upload.php

subzero Super moderator Fellow · 3,954 posts #12

Oh that what he wants lol i thinked its per page...

Open upload.php

Look for

else if(file_exists("./".getnick_sid($sid)."(5)".$ext)){

$main.="<img src=\"../images/error.gif\" alt=\"[x]\"/><br/><b>Error!!!</b><br/>100 pics hav already been uploaded...<br/>\n";

}

else if($file_size){

$file_name2=str_replace(" ","",$file_name);

if(isuser(getuid_nick($username))){$uid=getuid_nick($username);}

else{$uid=getuid_sid($sid);}

$pic=getnick_uid($uid)."(1)";

if(file_exists("./".getnick_uid($uid)."(1)$ext")){$pic=getnick_uid($uid)."(2)";}

if(file_exists("./".getnick_uid($uid)."(2)$ext")){$pic=getnick_uid($uid)."(3)";}

if(file_exists("./".getnick_uid($uid)."(3)$ext")){$pic=getnick_uid($uid)."(4)";}

if(file_exists("./".getnick_uid($uid)."(4)$ext")){$pic=getnick_uid($uid)."(5)";}

Then add more what you like ....

Thanks to woody for making things right

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alan1979 Junior · 22 posts #13

thanks for that subzero m8 and also thanks to woody.

ok guys ive sorted it. ive linked the rotate.php file to the main page and it shows a random pic from the gallery but how do i link that pic to the users profile

subzero Super moderator Fellow · 3,954 posts #14

Does that image has users name in sql ???

if so why don't you add <a href="index.php?action=profile&who=$sql[0]"><img src="images/$photo[0]" alt="$sql[0]"/></a>

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alan1979 Junior · 22 posts #15

yeah it has the username in the sql m8. i'll give it a wirl. mine doesnt have index.php it has main.php

subzero Super moderator Fellow · 3,954 posts #16

index main who cares just you get this working 🙂 lol thats what you care for

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alan1979 Junior · 22 posts #17

subzero wrote: Does that image has users name in sql ???

if so why don't you add <a href="index.php?action=profile&who=$sql[0]"><img src="http://coding-talk.com/images/$photo[0]" alt="$sql[0]"/></a>

it doesnt work m8 but i got wat i wanted working lol

subzero Super moderator Fellow · 3,954 posts #18

You will have to play around to make it work 😉

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close