Advanced search  

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]

Pages: 1 [2]   Go Down

Author Topic: FAQ mod for CPG-1.4  (Read 46517 times)

0 Members and 1 Guest are viewing this topic.

BT-loader

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 102
Re: FAQ mod for CPG-1.4
« Reply #20 on: August 20, 2005, 10:29:32 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?    ;)
Logged
:: BT-loader ::
"The one and only..."

Aditya Mooley

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 781
    • My Sweet Home
Re: FAQ mod for CPG-1.4
« Reply #21 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
Code: [Select]
cpg_db_query
and
cpg_db_fetch_row
and replace it with
Code: [Select]
db_query
and
db_fetch_row

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

BT-loader

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 102
Re: FAQ mod for CPG-1.4
« Reply #22 on: August 20, 2005, 11:49:14 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
Code: [Select]
cpg_db_query
and
cpg_db_fetch_row
and replace it with
Code: [Select]
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?
Logged
:: BT-loader ::
"The one and only..."

Amit Badkas

  • Dev Team member
  • Coppermine novice
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Amit's Blog
Re: Single-level collapsible tree for CPG-1.3.x FAQ mod
« Reply #23 on: August 20, 2005, 12:46:11 pm »

Hi,

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
Logged

BT-loader

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 102
Re: Single-level collapsible tree for CPG-1.3.x FAQ mod
« Reply #24 on: August 20, 2005, 01:12:37 pm »

Hi,

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
Logged
:: BT-loader ::
"The one and only..."

Amit Badkas

  • Dev Team member
  • Coppermine novice
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Amit's Blog
FAQ mod for CPG-1.4 with multi-level categories and collapsible category tree
« Reply #25 on: September 05, 2005, 08:04:08 pm »

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  :)
Logged

kcocco

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: FAQ mod for CPG-1.4
« Reply #26 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
Logged

Amit Badkas

  • Dev Team member
  • Coppermine novice
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Amit's Blog
Re: FAQ mod for CPG-1.4
« Reply #27 on: September 06, 2005, 07:04:46 am »

Hi kcocco,

Thanks for appreciating my work.

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 :)
Logged

kcocco

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: FAQ mod for CPG-1.4
« Reply #28 on: September 06, 2005, 08:23:50 am »

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
Logged

Amit Badkas

  • Dev Team member
  • Coppermine novice
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Amit's Blog
Re: FAQ mod for CPG-1.4
« Reply #29 on: September 06, 2005, 09:01:12 am »

Kevin,

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 :)
Logged

Amit Badkas

  • Dev Team member
  • Coppermine novice
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Amit's Blog
FAQ mod for CPG-1.4 with multi-level categories and collapsible category tree
« Reply #30 on: September 07, 2005, 08:13:20 pm »

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 :)
« Last Edit: March 23, 2006, 07:25:36 am by Amit Badkas »
Logged

Amit Badkas

  • Dev Team member
  • Coppermine novice
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Amit's Blog
bbCode Toolbar for FAQ's answer
« Reply #31 on: September 28, 2005, 07:04:20 pm »

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 :)
« Last Edit: March 23, 2006, 07:29:40 am by Amit Badkas »
Logged

Joachim Mller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: FAQ mod for CPG-1.4
« Reply #32 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?
Logged

Amit Badkas

  • Dev Team member
  • Coppermine novice
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Amit's Blog
Re: FAQ mod for CPG-1.4
« Reply #33 on: September 29, 2005, 09:13:25 am »

Hi GauGau,

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 :)
Logged

Crazymodder

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Re: FAQ mod for CPG-1.4
« Reply #34 on: February 20, 2008, 03:25:56 pm »

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
Logged

paquets

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 59
Re: FAQ mod for CPG-1.4
« Reply #35 on: July 02, 2009, 07:33:25 pm »

Great work! Thanks for a very useful Mod.
 ;)
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.023 seconds with 19 queries.