FAQ mod for CPG-1.4 - Page 2 FAQ mod for CPG-1.4 - Page 2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

FAQ mod for CPG-1.4

Started by Amit Badkas, June 27, 2005, 12:04:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BT-loader

Quote from: Aditya Mooley on August 20, 2005, 10:18:40 AM
If you know PHP, you can take this 1.4 mod and change it for 1.3
As far as I know, some function names related to database needs to be changed. But do it on your own risk. :)
Why not just add the functions from 1.4 and add it to 1.3?    ;)
:: BT-loader ::
"The one and only..."

Aditya Mooley

 :D :D
That is not possible. Think how much code we will have to change for this.
I just checked the code once again,
find all the occurances of
cpg_db_query
and
cpg_db_fetch_row

and replace it with
db_query
and
db_fetch_row


This should be sufficient to make it work with 1.3.x
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

BT-loader

Quote from: Aditya Mooley on August 20, 2005, 11:09:16 AM
:D :D
That is not possible. Think how much code we will have to change for this.
I just checked the code once again,
find all the occurances of
cpg_db_query
and
cpg_db_fetch_row

and replace it with
db_query
and
db_fetch_row


This should be sufficient to make it work with 1.3.x
Is that all?  ;D

But i have allready installed the "old" mod, can i just replace the files or what?
:: BT-loader ::
"The one and only..."

Amit Badkas

Hi,

Quote from: BT-loader on August 20, 2005, 11:49:14 AM
But i have allready installed the "old" mod, can i just replace the files or what?

I have posted the procedure to add/change code in your FAQ mod to work single-level collapsible tree in topic http://forum.coppermine-gallery.net/index.php?topic=20077 because your posts are related to CPG-1.3.x.

Thanks :)
Amit

BT-loader

Quote from: Amit Badkas on August 20, 2005, 12:46:11 PM
Hi,

Quote from: BT-loader on August 20, 2005, 11:49:14 AM
But i have allready installed the "old" mod, can i just replace the files or what?

I have posted the procedure to add/change code in your FAQ mod to work single-level collapsible tree in topic http://forum.coppermine-gallery.net/index.php?topic=20077 because your posts are related to CPG-1.3.x.

Thanks :)
Amit
Thanks mate...  ;D
:: BT-loader ::
"The one and only..."

Amit Badkas

FAQ mod for Coppermine Photo Gallery version 1.4.

It has four PHP scripts attached in the zip.

First script is 'faqInstaller.php' which is used to handle installation of FAQ mod.

Second script is 'myfaq.php' which is used to display FAQs with their categories and, if logged in as admin, to delete FAQs and their categories.

Third script is 'manageFAQ.php' which is used by admin to add/edit FAQs and their categories.

Fourth script is 'faqFunctions.inc.php' which has functions related to FAQ mod.

There are also two images which you have to place in 'images' directory of your coppermine installation.

To install this mod, unzip the PHP files where you have installed your CPG. Run 'faqInstaller.php' as admin from your web browser, ex:- http://www.somedomain.com/cpg/faqInstaller.php and it will create two database tables.

If you already have any one of these two database tables created then you have to move or delete those tables and run the installer again.

After installation is done, please remove 'faqInstaller.php' for security purpose and access FAQ URL, ex:- http://www.somedomain.com/cpg/myfaq.php to view/manage your FAQs.

For the first time, there are no FAQs/categories. You have to create the FAQ/category by logged in as admin and to click on one of the 'Add New Category' or 'Add FAQ Entry' links.

If you click on 'Add New Category' link then a pop-up window will open which has a textbox to enter title for new category. You can also select parent category for a category. You cannot have two categories with same title.

If you click on 'Add New Entry' link then a pop-up window will open which has a drop-down of categories (if exists), a textarea to enter question text and another textarea to enter answer text. You can save FAQ in any category or if you do not want to save the FAQ in any category then select 'No category' option. You can use CPG's bbcodes for answer's text.

To edit/delete any FAQ/category, click on respective links next to FAQ/category titles.

If you delete a category which has FAQs then those FAQs will be moved under root category.

You have to manually add link for FAQ page in the navigation area.

That's all  :)

kcocco

Amit, looks like an excellent mod!

I am having issues downloading the .zip?  The forum gives me the message: "It seems that you are not allowed to download or view attachments on this board." and gives me the login interface.  This happens when I am logged in as a user.  Is there some other level of access I need or other process to download this code?

Thanks
~Kevin

Amit Badkas

Hi kcocco,

Thanks for appreciating my work.

Quote from: kcocco on September 06, 2005, 03:08:04 AM
Amit, looks like an excellent mod!

I am having issues downloading the .zip?  The forum gives me the message: "It seems that you are not allowed to download or view attachments on this board." and gives me the login interface.  This happens when I am logged in as a user.  Is there some other level of access I need or other process to download this code?

Thanks
~Kevin

I think your session was expired. Please try after login again. I have checked the download with two more forum users and it worked for me.

Amit :)

kcocco

Amit,
I was able to get the download to work using Firefox browser.  I was previously using IE (not my machine) with no success?
Thank you
~Kevin

Amit Badkas

Kevin,

Quote from: kcocco on September 06, 2005, 08:23:50 AM
I was able to get the download to work using Firefox browser. I was previously using IE (not my machine) with no success?

I always prefers Firefox on Linux and Windows both. In fact, on Windows, Firefox runs as faster as IE.

Amit :)

Amit Badkas

Hi all,

You can view demo of FAQ mod for CPG-1.4 with multi-level categories and collapsible category tree on My Site.

Amit :)

Amit Badkas

#31
Hi,

Attached modified 'manageFAQ.php' file with new PNG toolbar images (should be placed in 'images' directory of your coppermine installation) and 'faq.js' javascript file (should be placed in root directory of your coppermine installation, i.e., where 'manageFAQ.php' file resides).

You can view demo of bbCode toolbar on My Site.

That's all.

Amit :)

Joachim Müller

This mod is very good, I'm planning to add it to the core code of the next version. Is that OK, Amit?

Amit Badkas

Hi GauGau,

Quote from: GauGau on September 29, 2005, 08:37:12 AM
This mod is very good, I'm planning to add it to the core code of the next version. Is that OK, Amit?

Thanks for recognizing my work and considering it in the core code of future version.

Amit :)

Crazymodder

Thanks for that great Mod. There is only one Problem I have a Gallery with German as Language and sometimes I need to write letters like ä,ö,ü but if I write them an save them I only se a ? and not the ä or ü or ö. If I look into the database via phpymyadmin and change the lette to ä or ü or ö nothing change in phmyadmin you can the the right letter but in myfaq.php you only see a ?. Where is the Problem? What do I have to change ;)

Thx

paquets

Great work! Thanks for a very useful Mod.
;)