gallery cats

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

5 replies · 498 views · started 16 years ago · 1 min read

4 participants
cheeky-girl Junior · 17 posts #1

hi i dont suppose that anybody could point me in the right direction on to how i could make it so that there could be more gallery categories cause i can only have 8 ive been trying to figure it out for age i thought it would be in the functions.inc but it aint there so any suggestions would be great im on wapdesire v2 btw thank you

wap2010v2 Junior · 44 posts #2

cheeky-girl wrote: hi i dont suppose that anybody could point me in the right direction on to how i could make it so that there could be more gallery categories cause i can only have 8 ive been trying to figure it out for age i thought it would be in the functions.inc but it aint there so any suggestions would be great im on wapdesire v2 btw thank you

hi there you can have upto 10 gallery cats if you look in your database at gallery cats part and make sure you have 1,2,3,4,5,6,7,8,9,10 if not and it goes 2,6,8,3,5,4,10,9,7,11 just change 11 to a 1 or empty the gallery cat's and re do them on your site

centi Developer · 159 posts #3

if u want ill code this for old ver...

😳 .................................... http://photomag.lk/ .................................... 🤨

woody Developer · 176 posts #4

cant remember without looking at the db but there is an error in one of the fields i think it maybe called catid the length is set to (1) so it only allows 1-9 then starts to mess up change the lenght to (5) for exampe and you can have upto 99999 categories, hope that makes sense

cheeky-girl Junior · 17 posts #5

well thats me gallery files

-- -- Table structure for table gallery_files

CREATE TABLE gallery_files ( id int(10) NOT NULL auto_increment, uid int(10) NOT NULL default '0', filename varchar(50) NOT NULL default '', path varchar(255) NOT NULL default '0', category char(1) NOT NULL default '0', hits int(10) NOT NULL default '0', date int(100) NOT NULL default '0', PRIMARY KEY (id) ) ENGINE=MyISAM AUTO_INCREMENT=329 DEFAULT CHARSET=latin1 AUTO_INCREMENT=329 ;

and gallery cats

-- Table structure for table gallery_categories

CREATE TABLE gallery_categories ( id int(10) NOT NULL auto_increment, name varchar(50) NOT NULL default '', active char(1) NOT NULL default '0', PRIMARY KEY (id) ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

which bit u on about shaun im blonde remember lololol x

woody Developer · 176 posts #6

cheeky-girl wrote: well thats me gallery files

-- -- Table structure for table gallery_files

CREATE TABLE gallery_files ( id int(10) NOT NULL auto_increment, uid int(10) NOT NULL default '0', filename varchar(50) NOT NULL default '', path varchar(255) NOT NULL default '0', category char(1) NOT NULL default '0', hits int(10) NOT NULL default '0', date int(100) NOT NULL default '0', PRIMARY KEY (id) ) ENGINE=MyISAM AUTO_INCREMENT=329 DEFAULT CHARSET=latin1 AUTO_INCREMENT=329 ;

and gallery cats

-- Table structure for table gallery_categories

CREATE TABLE gallery_categories ( id int(10) NOT NULL auto_increment, name varchar(50) NOT NULL default '', active char(1) NOT NULL default '0', PRIMARY KEY (id) ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

which bit u on about shaun im blonde remember lololol x

category char(1) NOT NULL default '0',

sholud be

category char(5) NOT NULL default '0',

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