Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Tuesday, May 21 2013 @ 11:13 AM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 Opps! I've deleted the default Topic block
   
Filipino
 10/01/03 06:52PM (Read 2535 times)  
+++--
Chatty

Status: offline


Registered: 08/27/02
Posts: 50
I have accidentally deleted the default Topic block from 1.3.8 is there an easy way to get it back?

-Wayne-

 
Profile Email
 Quote
siridhar
 10/01/03 08:56PM  
+----
Newbie
curious

Status: offline


Registered: 09/27/03
Posts: 8
just curious...how did you delete the topic block? I am using 1.3.8-1 and there is only an option to display or hide it.

 
Profile Email
 Quote
Filipino
 10/02/03 04:34AM  
+++--
Chatty

Status: offline


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.

 
Profile Email
 Quote
Dirk
 10/02/03 01:27PM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
The standard themes don't have a "delete" option for gldefault blocks.

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

 
Profile Email Website
 Quote
Filipino
 10/02/03 01:51PM  
+++--
Chatty

Status: offline


Registered: 08/27/02
Posts: 50
Many thanks Dirk - It was a theme downloaded from here as well Not to worry will be more careful in the future - first time for everything.

-Wayne-

 
Profile Email
 Quote
Filipino
 10/02/03 02:21PM  
+++--
Chatty

Status: offline


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

 
Profile Email
 Quote
Dirk
 10/02/03 02:32PM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
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 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

 
Profile Email Website
 Quote
Filipino
 10/02/03 02:38PM  
+++--
Chatty

Status: offline


Registered: 08/27/02
Posts: 50
No problems Dirk won't delete you from the Christmas card list

Many thanks Wayne

PS Late edit .... it worked.

 
Profile Email
 Quote
Content generated in: 1.76 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content