Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> nukeSEO
Author Message
neralex
The Mouse Is Extension Of Arm


Joined: Aug 22, 2007
Posts: 1329
Location: Germany

PostPosted: Mon Jun 18, 2012 5:48 am Reply with quote

Hey!

I have created a own little module with a index file and a file with the name entry. In the index is a while loop with the list of ids and in the file entry is the respective id content.

Now i have created a own dhfile:

Code:
class dhchronicle extends dhclass {

   function dhchronicle () {
      global $prefix;
      $this->content_id        = 'chrid';
      $this->content_table     = $prefix . '_chronicle';
      $this->contentTitleArray = array('year','year2','name');
      $this->contentDescArray  = array('shorttext','maintext');
      $this->contentKeysArray  = array('year','year2','name','shorttext','maintext');
      // If pending content is stored in the same table, inactive content, private content, etc.
      $this->activeWhere       = '';
   }
   function getContentID() {
      global $chrid, $file;
      if(!isset($chrid)) {
         $chrid = 0;
      }
      return $chrid;
   }
   function setContentID() {
      global $chrid, $dhID;
      $chrid = $dhID;
   }
}


The output in the entry file is at the moment: year year2 title - sitename

1st question:
Is it possible to set the own dh_sContentSuffix only for this module, without to set the suffix for the rest of all modules? It should look like: year year2 title - modulename - sitename

2nd question:
Is it possible to fill the own dh_sContentSuffix with a free text? It should look like: year year2 title - my own suffix - sitename

3rd question:
Is it possible to become $dt_sDelim between year year2 title? It should look like: year - year2 - title - my own suffix - sitename


Wink
 
View user's profile Send private message
neralex
PostPosted: Sat Jun 30, 2012 1:40 pm Reply with quote

Has no one an idea?
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Jul 01, 2012 7:48 am Reply with quote

I would suggest PM'ing kguske with the thread link and see if he can help answer. I know that he is quite busy with work travel, which is why I am suggesting that approach. Unfortunately I don't have direct experience with his DH tool.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
neralex
PostPosted: Tue Jul 03, 2012 12:09 pm Reply with quote

I was able to solve thing with the dt_sDelim in the dh.class.php but i don't understand it how can i put an freetext inside the contentTitleArray.

Code:
$this->contentTitleArray = array('year','freetext','name');
 
neralex
PostPosted: Tue Jul 03, 2012 1:09 pm Reply with quote

I was able to solve the 1st question with this one:

Code:
class dhchronicle extends dhclass {

   function dhchronicle () {
      global $prefix;
      $this->content_id        = 'chrid';
      $this->content_table     = $prefix . '_chronicle, '.$prefix.'_modules';
      $this->contentTitleArray = array('year','year2','name','custom_title');
      $this->contentDescArray  = array('shorttext','maintext');
      $this->contentKeysArray  = array('year','year2','name','shorttext','maintext');
      // If pending content is stored in the same table, inactive content, private content, etc.
      $this->activeWhere       = 'title=\'chronicle\'';
   }
   function getContentID() {
      global $chrid, $file;
      if(!isset($chrid)) {
         $chrid = 0;
      }
      return $chrid;
   }
   function setContentID() {
      global $chrid, $dhID;
      $chrid = $dhID;
   }
}
 
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Fri Jul 06, 2012 3:06 pm Reply with quote

Not sure if you can override the suffix or delimiter in the class (I'll check when I can, but not sure when...), but you could override the title / suffix for each content item... If you did that, you wouldn't need a class. Smile

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
neralex
PostPosted: Fri Jul 06, 2012 4:28 pm Reply with quote

Thanks for your reply!

kguske wrote:
...but you could override the title / suffix for each content item... If you did that, you wouldn't need a class. Smile


Yes i know, but i want realize this issue without an override. I will wait on your check!

Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> nukeSEO

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©