Advertisement:

Author Topic: editable module in sidebar  (Read 16812 times)

xplozia

  • Newbie
  • *
  • Posts: 25
editable module in sidebar
« on: November 22, 2011, 02:21:27 pm »
Hello,
I want use "modern" theme for my site. How can modify template for include an editable module, from admin area. I want write in this space, news.
Thanks!

RajaSekar

  • Hero Member
  • *****
  • Posts: 791
  • ராஜசேகர்
Re: editable module in sidebar
« Reply #1 on: November 23, 2011, 09:23:50 am »

it would be easy to make it as a plugin with tinymce

iam currently working on another plugin after completion of my plugin i will make it as a plugin


xplozia

  • Newbie
  • *
  • Posts: 25
Re: editable module in sidebar
« Reply #2 on: January 03, 2012, 06:47:27 pm »
Know someone, how can create an editable module for sidebar or for first page?
Thanks!
 :(

RajaSekar

  • Hero Member
  • *****
  • Posts: 791
  • ராஜசேகர்
Re: editable module in sidebar
« Reply #3 on: January 03, 2012, 08:09:42 pm »
i have just created the plugin everything works except the display function

wait someone will help to solve this problem
« Last Edit: January 06, 2012, 05:35:06 pm by RajaSekar »

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: editable module in sidebar
« Reply #4 on: January 03, 2012, 08:33:28 pm »
Hi RajaSekar,

The reason the data was not exported to the display is because you where using the wrong query parameter. Here is how I changed the function
I would suggest you to use something other than the word content as the function name as I think that word is a reserved word in php.


function eContent($id){

    
$conn getConnection();

    
$detail=$conn->osc_dbFetchResult("SELECT * FROM %st_editable WHERE content_id='%d'"DB_TABLE_PREFIX$id);

    echo 
$detail['content'];

    

    }


Over all this plugin will be very good once you fine tune it some more. I also have a few suggestions for this plugin
1 add the ability to view the list of created texts in the side menu bar in admin.
2 allow editing of the editable content

That is all I have for now.

Keep up the good work.

Jay

ingo

  • Full Member
  • ***
  • Posts: 216
Re: editable module in sidebar
« Reply #5 on: January 04, 2012, 10:02:56 am »
@RajaSekar

Hi RajaSekar, that is what I am looking for i trayed it yesterday - WOW. It's very important extension for me and I believe for  OSClass as well.
If somebody can finish this plugin that will be huge.


Regards

RajaSekar

  • Hero Member
  • *****
  • Posts: 791
  • ராஜசேகர்
Re: editable module in sidebar
« Reply #6 on: January 04, 2012, 06:08:38 pm »
Hi RajaSekar,

The reason the data was not exported to the display is because you where using the wrong query parameter. Here is how I changed the function
I would suggest you to use something other than the word content as the function name as I think that word is a reserved word in php.


function eContent($id){

    
$conn getConnection();

    
$detail=$conn->osc_dbFetchResult("SELECT * FROM %st_editable WHERE content_id='%d'"DB_TABLE_PREFIX$id);

    echo 
$detail['content'];

    

    }


Over all this plugin will be very good once you fine tune it some more. I also have a few suggestions for this plugin
1 add the ability to view the list of created texts in the side menu bar in admin.
2 allow editing of the editable content

That is all I have for now.

Keep up the good work.

Jay

@jay

thanks your code works!

1.sorry jay i don't no how to include it to admin menu
2.i have just included the allow editing of the content

plugin attached below download it
« Last Edit: February 03, 2012, 07:29:14 pm by RajaSekar »

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: editable module in sidebar
« Reply #7 on: January 04, 2012, 07:20:40 pm »
@RajaSekar,

The plugin works great.

Jay

ingo

  • Full Member
  • ***
  • Posts: 216
Re: editable module in sidebar
« Reply #8 on: January 04, 2012, 09:20:57 pm »
unfortunately not work for me,

in admin panel there is no option to retrieve editable/list.php only if you make new one you will be redirect to list

display function not work

regards

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: editable module in sidebar
« Reply #9 on: January 04, 2012, 09:42:23 pm »
Hi ingo,

Did you download RajaSekar's updated zip? That has an option to view the list of editable modules.

Jay

ingo

  • Full Member
  • ***
  • Posts: 216
Re: editable module in sidebar
« Reply #10 on: January 04, 2012, 10:02:09 pm »
actually both of them,

yesterday = have tried 1.version > after >  steps in admin: disable / uninstall   > delete by FTP Client

today = Install updatet zip = the same bugs like yesterday

regards

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: editable module in sidebar
« Reply #11 on: January 04, 2012, 10:06:18 pm »
Did you get the zip from reply post #6 or postn #3?

I would try the zip from reply post #6 as I am not sure if the zip in post #3 got updated.

Jay

ingo

  • Full Member
  • ***
  • Posts: 216
Re: editable module in sidebar
« Reply #12 on: January 04, 2012, 11:18:12 pm »

#6

there is some update problem in my admin  / after three updates it works

thanks

Swede

  • Sr. Member
  • ****
  • Posts: 388
Re: editable module in sidebar
« Reply #13 on: January 05, 2012, 03:10:07 am »
This works nice!

xplozia

  • Newbie
  • *
  • Posts: 25
Re: editable module in sidebar
« Reply #14 on: January 05, 2012, 10:52:16 am »
Thanks! Work