2 of 2
2
No Instructions
Posted: 18 January 2009 02:52 PM   Ignore ]   [ # 16 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  1653
Joined  2007-11-23

Joerg, I opened your core file and there were several erroneous characters in the section you edited. I recommend that you use a proper file editor to make changes to php files.

Signature 

Mike

HCC Development

Profile
 
Posted: 19 January 2009 02:35 PM   Ignore ]   [ # 17 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-01-11

Thanks for the quick reply; I noticed the special characters and I have now removed them - but still no look
I guess it just doesn’t work for me then ....  :-(
But thanks anyway ...

  /**————————————————————
  /**  Show links
  /**————————————————————*/

  function show_links()
  {
      global $IN, $FNS, $LANG;
     
      //—————————————————————-
      // ‘paginate_edit_object’ hook.
      //  - Rewrite the show_links function in the core file and change variables
      //  ADDED BY HCCDevelopment 08/19/08 Brian Greenacre
      //
        if ($EXT->active_hook(‘paginate_edit_object’) === TRUE)
        {
          $edata = $EXT->universal_call_extension(‘paginate_edit_object’, $this);
          if ($EXT->end_script === TRUE) return;
        }
      //
      //—————————————————————-
     
      /**————————————————————
      /**  Do we have links to show?
      /**————————————————————*/
             
      // If our item count or per-page total is zero there is no need to continue
     
      if ($this->total_count == 0 || $this->per_page == 0)
      {
        return;
      }

Profile
 
Posted: 19 January 2009 06:32 PM   Ignore ]   [ # 18 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  1653
Joined  2007-11-23

Sorry to hear your having problems, what you posted looks right but you didn’t put it in a code block so I have no way to tell. I am willing to bet that you still have character issues still residing. Make sure you look at the very bottom of the page (core.paginate.php) for any spaces and errors

Signature 

Mike

HCC Development

Profile
 
Posted: 20 January 2009 05:29 AM   Ignore ]   [ # 19 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-01-11

Once again thank you for your feedback - I have checked everything - removed all dodgy characters;  It doesn’t give me an error message anymore > instead just a plank page;

I have the hacked core file attached; Could you please have one more look and tell me what is wrong.

Thank you ever so much!

Best,

Joerg

File Attachments 
core.paginate_jw.php2.zip  (File Size: 3KB - Downloads: 265)
Profile
 
Posted: 20 January 2009 07:56 PM   Ignore ]   [ # 20 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  1653
Joined  2007-11-23

Hi Joerg, not sure what the problem is other then your probably uploading the file incorrectly. Should be in binary mode.

I have attached a copy of our core file, should work for you.

File Attachments 
core.paginate.php.zip  (File Size: 3KB - Downloads: 236)
Signature 

Mike

HCC Development

Profile
 
Posted: 21 January 2009 05:10 AM   Ignore ]   [ # 21 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-01-11

It works like a charm now! Thank you for the hacked paginate core file!


grin

Profile
 
Posted: 02 April 2009 09:13 AM   Ignore ]   [ # 22 ]  
Member
RankRankRank
Total Posts:  87
Joined  2008-11-13

The problem was that $EXT was not defined in the GLOBALS:

function show_links()
    
{
        
global $IN$FNS$LANG$EXT

You have to add $EXT in the global list for the hook to work correctly.

Profile
 
Posted: 02 April 2009 11:50 PM   Ignore ]   [ # 23 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  1653
Joined  2007-11-23

Originally the example had an error, the instructions sticky entry is correct.

Signature 

Mike

HCC Development

Profile
 
   
2 of 2
2
 
     Instructions ››

Join our Mailing List