Unhappy  How to put news title in php-nuke link?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   How to put news title in php-nuke link?
baselkanaan
CZ Newbie
baselkanaan has been a member for over 16 year's 16 Year Member
Status: Offline
Joined: Mar 07, 2008
0.00 posts per day
Posts: 5
Points: 0
   
My site is : [ Register or login to view links on this board. ]
using Php-Nuke v8.1.34

if you can help me to put news title in article link

example:

Article name : PHP-Nuke 8.1 Released
link : article1272-phpnuke-81-released.html


but in my site:
Article name : Mozilla Firefox 4.0 Alpha 1 Pre
link : [ Register or login to view links on this board. ]


Soo How to make it like that in your site .


Thanks



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
[ Register or login to view links on this board. ]




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   
baselkanaan
CZ Newbie
baselkanaan has been a member for over 16 year's 16 Year Member
Status: Offline
Joined: Mar 07, 2008
0.00 posts per day
Posts: 5
Points: 0
   


Originally posted by Telli @ Sat Mar 08, 2008 10:13 am:

http://www.codezwiz.com/ftopict-11744-googletap-with-keywords-in-url-like-in-this-forum.html


Thanks so much !!

I have GT- NExtGeN Beta 0.4 instaled in my site.
I don't know what i do ??

plaese if you can determine what that code and where i should paste it exactly.. cos I'm not very good in php-nuke.

Best Regards



Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Read the post in detail it explains how to use it. icon_smile.gif




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   
baselkanaan
CZ Newbie
baselkanaan has been a member for over 16 year's 16 Year Member
Status: Offline
Joined: Mar 07, 2008
0.00 posts per day
Posts: 5
Points: 0
   


Originally posted by Telli @ Sat Mar 08, 2008 7:31 pm:

Read the post in detail it explains how to use it. icon_smile.gif


OK ... I will try to do it.

After copying this code in mainfile.php ..

function prepare_title($title) {
   //this is how telli (http://www.codezwiz.com) gets seo titles
   $abc = "1234567890abcdefghijklmnopqrstuvwxyz_";
   $title = strtolower($title);
   $r = '';
   for($i=0; $i < strlen($title); $i++) {
      if (strpos($abc, $title[$i]) !== false) {
         $r .= $title[$i];
      }
      if ( ($title[$i] == ' ') && ($r[strlen($r)-1] != ' ') ) {
         $r .= ' ';
      }
   }
   $r = trim($r);
   return str_replace(' ', '-', $r);
}


there is nothing change in any url

but I don't know where put this code?????

$seo_title = prepare_title($title);
modules.php?name=Forums&file=viewtopic&t=$topic_id&title=$seo_title


Thanks again !!


Back to top Reply with quote
#6   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Whatever page your trying to add this too please attach one of them in a zip file. I will change one for you so you can see.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#7   
baselkanaan
CZ Newbie
baselkanaan has been a member for over 16 year's 16 Year Member
Status: Offline
Joined: Mar 07, 2008
0.00 posts per day
Posts: 5
Points: 0
   


Originally posted by Telli @ Wed Mar 12, 2008 7:14 pm:

Whatever page your trying to add this too please attach one of them in a zip file. I will change one for you so you can see.



You really great ...
Thank you for accepting me!!

I want to implement the order on a Home page "News modules"

I upload this module contents .

Download: [ Register or login to view links on this board. ]

Thank you for your cooperation and awaiting your reply

Nuke Version: 8.1.34



Back to top Reply with quote
#8   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Ok if you look in the modules/News/index.php you will see this link:


modules.php?name=$module_name&file=article&sid=$sid$r_options


You need to add the title to it:


modules.php?name=$module_name&file=article&sid=$sid&title=".prepare_title($title)."$r_options


You will have to add that to all the links you want the seo title to appear in and there maybe more then one in each file you can easily find them by searching for:


sid=


Also I noticed you added the function in the modules/News/index.php best bet is to add to your mainfile.php so you dont have to add it in every file you plan on using it in.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#9   re: How to put news title in php-nuke link?
baselkanaan
CZ Newbie
baselkanaan has been a member for over 16 year's 16 Year Member
Status: Offline
Joined: Mar 07, 2008
0.00 posts per day
Posts: 5
Points: 0
   
I am grateful to you, my friend ... icon_wink.gif icon_wink.gif
Thank you very much icon_mrgreen.gif

this message appaer after click on any link after do it....

"Sorry, this Module isn't active!" ............!!!

And I want to help me to make the title appear without Davat and symbols as follows

http://middown.com/modules.php?name=&file=article&sid=1199&title=opera-950-build-9841-beta&mode=&order=0&thold=0


Can we show in this form ... icon_exclaim.gif

http://middown.com/opera-950-build-9841-beta



Back to top Reply with quote
#10   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
You have to pass the sid into the article page or it won't understand what your after.

Make sure you if you make any changes to your googletap file that you also add it into your .htaccess.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum