0 Members and 1 Guest are viewing this topic.

*

kanyeevel

  • *
  • 38
  • osDate Version: osDate Evo v1.0
Working on a mod on Evo1
« on: January 10, 2017, 04:38:32 AM »
Hi pharg so i started on this mod for Evo1 but i cant seem to get it to display on the frontend or even at the admin panel. I have created a plugin for it which shows up o the plugin menu. It worked on 2.6 wen i tested, but dont seem to work out on evo. Can u try it out and see if i am missing anything. Find attached-->
« Last Edit: January 10, 2017, 06:39:17 AM by Pharg »

*

Pharg

  • *****
  • 3,104
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Working on a mod on Evo1
« Reply #1 on: January 10, 2017, 06:47:46 AM »
Hi kanyeevel,

You will need to add it in the dropdownpanelmenu_big.tpl and the dropdownpanelmenu_mid.tpl as this is where the plugins menus are now, you will see this at line 317.

It's starts with:
Code: [Select]
{* The modmenu when user use php 5.4 and above *}
{foreach item=item key=key from=$menumod }
< ====Plugin menus links added here ====>

You Must add to both menus
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

kanyeevel

  • *
  • 38
  • osDate Version: osDate Evo v1.0
Re: Working on a mod on Evo1
« Reply #2 on: January 10, 2017, 11:30:17 AM »
The plugin displays on admin.. It just doesnt fetch data from the database to display after adding an event.. using

{foreach item=item key=key from=$data}

<tr><td><a href="?plugin={$plugin}&amp;do=view_event=&amp;id={$item.id}">{$item.event_name|stripslashes}</a></td><td>{$item.date}</td><td>{$item.start}</td><td>{$item.end}</td><td>{$item.place}</td><td>{$item.active}</td><td>{$item.count}</td><td>{$item.description}</td><td>{$item.frontpage}</td><td>{$item.order}</td><td>{$item.language}</td><td>

*

kanyeevel

  • *
  • 38
  • osDate Version: osDate Evo v1.0
Re: Working on a mod on Evo1
« Reply #3 on: January 10, 2017, 06:11:02 PM »
PS:

Can u check out the attachment i added and see if  i am missing anything. Thanks

*

Pharg

  • *****
  • 3,104
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Working on a mod on Evo1
« Reply #4 on: January 10, 2017, 09:15:42 PM »
Hi kanyeevel,

You code below is completely wrong, for start you shouldn't be adding <tr><td> anywhere in the menu.

I know it will be loading in the admin, but the frontpage loads different now.

It should look something like this:
Code: [Select]
{if $item.name =='speedDateEvent' && $item.access == '1'}<a href="plugin.php?plugin=speedDateEvent">Speed DateEvent</a>{/if}

This is untested but it's how it's done.

The plugin displays on admin.. It just doesnt fetch data from the database to display after adding an event.. using

{foreach item=item key=key from=$data}

<tr><td><a href="?plugin={$plugin}&amp;do=view_event=&amp;id={$item.id}">{$item.event_name|stripslashes}</a></td><td>{$item.date}</td><td>{$item.start}</td><td>{$item.end}</td><td>{$item.place}</td><td>{$item.active}</td><td>{$item.count}</td><td>{$item.description}</td><td>{$item.frontpage}</td><td>{$item.order}</td><td>{$item.language}</td><td>
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

kanyeevel

  • *
  • 38
  • osDate Version: osDate Evo v1.0
Re: Working on a mod on Evo1
« Reply #5 on: January 11, 2017, 01:08:01 PM »
Thanks .. But i dont think u get what i was asking... Will figure it out. Thanks anyways

*

kanyeevel

  • *
  • 38
  • osDate Version: osDate Evo v1.0
Re: Working on a mod on Evo1
« Reply #6 on: January 11, 2017, 04:01:38 PM »
Hi pharg, i just noticed something. Random man/woman on the left column doesnt show up when a user is logged in, it only shows when browsing as a guest. Is that how its meant to be ? See images

*

kanyeevel

  • *
  • 38
  • osDate Version: osDate Evo v1.0
Re: Working on a mod on Evo1
« Reply #7 on: January 11, 2017, 05:58:24 PM »
PS:

Does this method work if i want to call a plugin to a rendered page

{osdplugin name="speedDateEvent" method="helloWorld"}

*

Pharg

  • *****
  • 3,104
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Working on a mod on Evo1
« Reply #8 on: January 11, 2017, 08:14:21 PM »
Hi pharg, i just noticed something. Random man/woman on the left column doesnt show up when a user is logged in, it only shows when browsing as a guest. Is that how its meant to be ? See images

Hi kanyeevel,

When you login, the Random man/woman only show once your back on the index page.
They don't show when editing etc
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

kanyeevel

  • *
  • 38
  • osDate Version: osDate Evo v1.0
Re: Working on a mod on Evo1
« Reply #9 on: January 11, 2017, 08:16:30 PM »
It doesnt even when you are on index.php when logged in. Also doesnt show on pages created with page management even as a guest or logged in.

*

Pharg

  • *****
  • 3,104
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Working on a mod on Evo1
« Reply #10 on: January 11, 2017, 08:16:55 PM »
Thanks .. But i dont think u get what i was asking... Will figure it out. Thanks anyways

Hi kanyeevel,

You want the speedDateEvent link to appear in the menu right, what I gave you will do that.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

kanyeevel

  • *
  • 38
  • osDate Version: osDate Evo v1.0
Re: Working on a mod on Evo1
« Reply #11 on: January 11, 2017, 08:19:22 PM »
Thanks .. But i dont think u get what i was asking... Will figure it out. Thanks anyways

Hi kanyeevel,

You want the speedDateEvent link to appear in the menu right, what I gave you will do that.

it already displays on the menu.. now i am trying to display the content on a rendered page but it doesnt display.

*

Pharg

  • *****
  • 3,104
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Working on a mod on Evo1
« Reply #12 on: January 11, 2017, 08:30:24 PM »
It doesnt even when you are on index.php when logged in. Also doesnt show on pages created with page management even as a guest or logged in.

Hi kanyeevel,

As you can see in my pic I am logged in and it shows the Random men and woman.

When you create a new page you still have to add a link to it somewhere.

Please refer to the help section of using osDate
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,104
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Working on a mod on Evo1
« Reply #13 on: January 11, 2017, 08:35:43 PM »
Thanks .. But i dont think u get what i was asking... Will figure it out. Thanks anyways

Hi kanyeevel,

You want the speedDateEvent link to appear in the menu right, what I gave you will do that.

it already displays on the menu.. now i am trying to display the content on a rendered page but it doesnt display.

Hi kanyeevel,

Happy to hear the Menu link works, you just need to fix your mod I am guessing, a lot has changed
since osDate v2.6, make sure it doesn't have any depreciated PHP changes in it, like the New & can cause problems.

I haven't had time to test it sorry.
« Last Edit: January 12, 2017, 02:50:30 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

kanyeevel

  • *
  • 38
  • osDate Version: osDate Evo v1.0
Re: Working on a mod on Evo1
« Reply #14 on: January 11, 2017, 08:38:34 PM »
It doesnt even when you are on index.php when logged in. Also doesnt show on pages created with page management even as a guest or logged in.

Hi kanyeevel,

As you can see in my pic I am logged in and it shows the Random men and woman.

When you create a new page you still have to add a link to it somewhere.

Please refer to the help section of using osDate


i have searched the help section.. Nothing relating to that .. am always on here searching. If u have a link will be helpful