» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 63
2 members and 61 guests
akunamat, MemSerskizu
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on Want to add second TOPIC module within the Nuke 7.x - Modules forums, part of the PHP-Nuke 7.x category; I'd like to add a second topic module. I know I'll need to change the name, but I ...



Go Back   Nukemods Forum » PHP-Nuke 7.x » Nuke 7.x - Modules

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-05-2005, 10:20 PM
Junior Member
 
Join Date: Mar 2005
Posts: 33
Want to add second TOPIC module
I'd like to add a second topic module. I know I'll need to change the name, but I need to know everywhere to change the name. I also know I'll need to add tables to the database for the second module, but I don't know what to add.

I can use phpmyadmin, but I don't really know a lot about databases, or php for that matter. Just enough to make simple hacks and mods.

Any help or info? Or is there another module that is similar to the topics module that I can just drop in place the normal way? Or is there a way of adding subcategories to the topics module?

If you visit MY SITE and go to the topics section you will see two categories: PHILOSOPHY and HUMOUR. What I need is either a category for STORIES with a subcategory for HIAWATHA (and several other books) and then pages for each chapter. If not, then a seperate STORIES module with category for HIAWATHA and page for each chapter.

I realize I can use something like the tag, but I'm not sure how well that will work. I'll have to try.

I have one book with over 50 chapters (The Kalevala) and Hiawatha has twenty something. Others have between 4 and thirty...

Thanks for the help.

Lokrin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-06-2005, 07:09 AM
Member
 
Join Date: Jul 2004
Posts: 450
I have created a Topics 2 module for you you can download it Here

Iam out for the rest of the day, so if you have any problems with this just keep the module deactivated from your admin panel, pending my return etc..

There are no Topics added to this module so you need to add your own stuff.

You'll also need to add an Admin Image to your root directory, but thats not necessary, the module works totally independent to the orignal as it is.

Thats bassically it, so download & upload to your site, activate it & run the nuke.sql text file attached ( thats In the module itself )

This is just the backbone of the module, if you want edit it or improve on it as Module anyone could install, be my guest, this is just something for you etc.. ie: not a public release lol I dont make modules etc..
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-06-2005, 11:06 PM
Junior Member
 
Join Date: Mar 2005
Posts: 33
I'm getting an error

MySQL - 4.3.1
phpMyAdmin - 2.6.1

SQL-query:

ALTER TABLE nuke_autonews ADD topic2 int( 3 ) NOT NULL default '1',
ALTER TABLE nuke_bbforums ADD forum_topics2 mediumint( 8 ) unsigned NOT NULL default '0',
INSERT INTO nuke_bbconfig
VALUES (
'topics2_per_page', '50'
)

MySQL said: Documentation
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'TABLE nuke_bbforums ADD forum_topics2 mediumint(8) unsigned NOT
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-07-2005, 12:23 AM
Junior Member
 
Join Date: Mar 2005
Posts: 33
ARGH!!!!!

I'm very sorry. What I need is a second CONTENT module...

ops:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-08-2005, 02:07 AM
Junior Member
 
Join Date: Mar 2005
Posts: 33
Well, I went and did the ALTER Tables by hand and then copied out the topics sections from the original 7.6 zip file sql file and changed the names. Everything went ok with no errors, but then my admin section was locked out. So I had to restore the database from backup.

As I said, I'm not all that great with databases.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-09-2005, 02:36 PM
Member
 
Join Date: Jul 2004
Posts: 450
Sorry I missed you Lokrin, I hope that did'nt cause to much trouble, but you should have left well enough alone lol, anyway I too had a similar problem with the first few lines of that sql, however I just loaded the rest like you did, so I dont know what went wrong ops: for you.

Heres what you should have got http://www.skydigitalcards.net/modules.php?name=Topics2

And heres the orignal on the same site http://www.skydigitalcards.net/modules.php?name=Topics

BTW that site is only for testing, anyway I see that it wasnt a Topics module you needed anyway but not to worry, did you get what you wanted in the end ?
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-10-2005, 02:09 AM
Junior Member
 
Join Date: Mar 2005
Posts: 33
Not really, but I'm working around it here.

I'd rather have a single STORIES category with subcategories, or a seperate content module labelled STORIES, but I can work it this way.

BTW - I changed default sort order to title, so I have to put numbers in front of the chapter names, but that's no problem.

I'm just starting to port things over. Each page needs to be double checked for things like image links, etc, so It will take me a while.

If you want to move the topic (since most people here probably don't want the conversation until results are met, we can move it to my forums.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-10-2005, 05:39 AM
Junior Member
 
Join Date: Mar 2005
Posts: 33
Found the following site with a secondary content module:

http://www.retronintendo.com/

Problem is that when I add the module it breaks my Modules Admin block with an ACCESS DENIED. Any idea how to fix this? Deleting the module brings things back to normal.

Also, the ftp upload wants to over write the files LANGUAGES and ADMIN/LANGUAGES.

Is that ok? I don't Know....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-10-2005, 06:07 AM
Member
 
Join Date: Jul 2004
Posts: 450
edit
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 03-10-2005, 06:59 AM
Junior Member
 
Join Date: Mar 2005
Posts: 33
I do that and it won't show up in the MODULES menu.

File directory is:
Quote:
admin/
admin/language/
admin/language/lang-english.php
blocks/
blocks/block-Content1.php
content1.sql
language/
language/lang-english.php
modules/
modules/Content1/
modules/Content1/admin/
modules/Content1/admin/case.php
modules/Content1/admin/index.php
modules/Content1/admin/language/
modules/Content1/admin/language/index.html
modules/Content1/admin/language/lang-english.php
modules/Content1/admin/links.php
modules/Content1/admin/panel.php
modules/Content1/copyright.php
modules/Content1/index.php
modules/Content1/language/
modules/Content1/language/.htaccess
modules/Content1/language.index.php
modules/Content1/language/lang-english.php
readme.txt
I just uploaded that to the root directory. Otherwise I will have things like

/modules/Content1/modules/content1/index.php
/modules/Content1/blocks/block-Content1.php

And those don't look right, but I'm still new at this...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Topic images? mobilplast Open topics 3 07-08-2005 02:21 PM
New Story's Topic at News Module Javed Nuke 6.5 to 6.9 - Modules 5 01-02-2005 11:36 AM
topic problem lammat Nuke 7.x - General 0 12-01-2004 09:06 AM
I can't delete a topic jokerjk Nuke 7.x - General 3 11-01-2004 11:58 AM
No topic name dar63 Theme packs 2 11-06-2002 08:00 PM


All times are GMT -5. The time now is 03:59 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31