phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Secondary Forum Description with Simple Subforums


 
Search this topic... | Search MOD Requests... | Search Box
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Author Message
noisy
Board Member



Joined: 04 Jun 2011

Posts: 35



PostPosted: Tue Jun 14, 2011 3:21 pm 
Post subject: Secondary Forum Description with Simple Subforums

I tried to install the Secondary Forum Description MOD from phpbb database while simple subforums are already installed in my forum.

I had to do some edits beyond the author instruction to make it work, and it looks like it is working fine. I can set a secondary forum desc. for any forum or subforum and it shows fine.

One problem i am facing and i have no idea how to solve it. When i try to create a new forum, i am getting "Couldn't insert row in forums table".

i am posting 2 versions of my admin_forums.php here just in case some one would like to help me.

thanks in advance



admin_forums.zip
 Description:

Download
 Filename:  admin_forums.zip
 Filesize:  16.75 KB
 Downloaded:  604 Time(s)

Back to top
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 83
Location: Stolpen, Saxony, Germany


flag
PostPosted: Tue Jun 14, 2011 4:28 pm 
Post subject: Re: Secondary Forum Description with Simple Subforums

It seems that you didn't install it properly, you forgot to add a part of the SQL query.

This one is fixed (I hope).



admin_forums.php.txt
 Description:

Download
 Filename:  admin_forums.php.txt
 Filesize:  47.06 KB
 Downloaded:  549 Time(s)

Back to top
noisy
Board Member



Joined: 04 Jun 2011

Posts: 35



PostPosted: Tue Jun 14, 2011 5:57 pm 
Post subject: Re: Secondary Forum Description with Simple Subforums

that was fast! thanks a lot, i will test it and compare the documents to see what i missed
Back to top
noisy
Board Member



Joined: 04 Jun 2011

Posts: 35



PostPosted: Tue Jun 14, 2011 6:15 pm 
Post subject: Re: Secondary Forum Description with Simple Subforums

it looks like i had missed this

Code:
. "," . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc_long'])


right?

I added this line now but again i am getting the same error when trying to create a new forum.

Editing existing forums still works fine though.. I am confused.
Back to top
Salvatos
Board Member



Joined: 19 Feb 2009

Posts: 414
Location: Québec


flag
PostPosted: Wed Jun 15, 2011 3:19 am 
Post subject: Re: Secondary Forum Description with Simple Subforums

The only thing I can see now that you've added that would be if you forgot to add 'forum_desc_long' to the database (phpbb2_forums).

Code:
ALTER TABLE phpbb_forums ADD forum_desc_long TEXT;
Back to top
noisy
Board Member



Joined: 04 Jun 2011

Posts: 35



PostPosted: Wed Jun 15, 2011 9:03 am 
Post subject: Re: Secondary Forum Description with Simple Subforums

it was some missing single quotes in your line. correct line is this

Code:
. "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc_long'])



problem solved, thanks a lot
Back to top
Display posts from previous:   
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0146 seconds using 18 queries. (SQL 0.0024 Parse 0.0027 Other 0.0095)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo