Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 11:09 am EST

Geeklog Forums

Comment preview and comment title for plugins


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
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
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Ok I found the solution for #1
Text 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
 Quote

All times are EST. The time is now 11:09 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