Welcome to Geeklog, Anonymous Tuesday, November 05 2024 @ 09:08 am EST
Geeklog Forums
Opps! I've deleted the default Topic block
Status: offline
Filipino
Forum User
Chatty
Registered: 08/27/02
Posts: 50
Just selected the [DELETE] option.
I had created a Topic-2 which had a customized menu something went wrong so I was going to delete the cutom one and redo - selected the wrong one.
I have three sites running 1.3.8 and all have Save and Delete. I am using a highly customised theme. From your comments I presume 'out of the box' GL does not allow this.
-Wayne-
ps just checked I have [SAVE] [CANCEL] [DELETE] on each gldefault block, have no standard themes online to check any difference.
I had created a Topic-2 which had a customized menu something went wrong so I was going to delete the cutom one and redo - selected the wrong one.
I have three sites running 1.3.8 and all have Save and Delete. I am using a highly customised theme. From your comments I presume 'out of the box' GL does not allow this.
-Wayne-
ps just checked I have [SAVE] [CANCEL] [DELETE] on each gldefault block, have no standard themes online to check any difference.
17
21
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The standard themes don't have a "delete" option for gldefault blocks.
To get the block back, use the following SQL request:
You may need to replace "gl_blocks" with the actual name of your blocks table, in case you changed the prefix.
bye, Dirk
To get the block back, use the following SQL request:
INSERT INTO gl_blocks (bid, name, type, title, tid, blockorder, content, rdfurl, rdfupdated, onleft, phpblockfn, group_id, owner_id, perm_owner, perm_group, perm_members, perm_anon) VALUES (3, 'section_block', 'gldefault', 'Topics', 'all', 0, '', '', '0000-00-00 00:00:00', 1, '', 1, 2, 3, 3, 2, 2);
You may need to replace "gl_blocks" with the actual name of your blocks table, in case you changed the prefix.
bye, Dirk
18
18
Quote
Status: offline
Filipino
Forum User
Chatty
Registered: 08/27/02
Posts: 50
Dirk ... the code throws up an error - Wayne-
Failed to execute SQL :
SQL INSERT INTO gl_blocks (bid, name, type, title, tid, blockorder, content, rdfurl, rdfupdated, onleft, phpblockfn, group_id, owner_id, perm_owner, perm_group, perm_members, perm_anon) VALUES (3, 'section_block', 'gldefault', 'Topics', 'all', 0, '', '', '0000-00-00 00:00:00', 1, '', 1, 2, 3, 3, 2, 2);
failed : Duplicate entry '3' for key 1
Failed to execute SQL :
SQL INSERT INTO gl_blocks (bid, name, type, title, tid, blockorder, content, rdfurl, rdfupdated, onleft, phpblockfn, group_id, owner_id, perm_owner, perm_group, perm_members, perm_anon) VALUES (3, 'section_block', 'gldefault', 'Topics', 'all', 0, '', '', '0000-00-00 00:00:00', 1, '', 1, 2, 3, 3, 2, 2);
failed : Duplicate entry '3' for key 1
18
17
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Oops, sorry - that was a copy straight out of sql/mysqltableanddata.php, but of course the new block can't have the block id 3 again ...
Try
bye, Dirk
Try
INSERT INTO gl_blocks (name, type, title, tid, blockorder, content, rdfurl, rdfupdated, onleft, phpblockfn, group_id, owner_id, perm_owner, perm_group, perm_members, perm_anon) VALUES ('section_block', 'gldefault', 'Topics', 'all', 0, '', '', '0000-00-00 00:00:00', 1, '', 1, 2, 3, 3, 2, 2);
bye, Dirk
13
14
Quote
All times are EST. The time is now 09:08 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content