Welcome to Geeklog Friday, November 24 2017 @ 06:06 am EST


Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/2005
Posts: 1569
Location:la rochelle, France
Hi all,

1. With comment on the same page set to on, comment preview for a plugin will try to display
public_html/myplugin/index.php?id=XX#commentpreview page. How to set the preview page to
public_html/myplugin/index.php?mode=v&ad=XX#commentpreview?

2. The same plugin use public_html/myplugin/index.php?mode=v&ad=XX&title=A-custom-title url to display an item. How to set the comment form to not use the title A-custom-title?

Thanks.
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/2005
Posts: 1569
Location:la rochelle, France
Ok I found the solution for #1
PHP Formatted Code

/**
* Provide URL and ID for the link to a comment's parent
*
* @return   array   array consisting of the base URL and the ID name
*
*/

function plugin_getcommenturlid_classifieds()
{
    global $_CLASSIFIEDS_CONF;

    return array($_CLASSIFIEDS_CONF['site_url']
                                . "/index.php" , 'mode=v&ad');
}

I'm available to customise your themes or plugins for your Geeklog CMS

All times are EST. The time is now 06:06 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content