Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
drmike
Worker
Worker


Joined: Jul 15, 2004
Posts: 108
Location: Charlotte, NC

PostPosted: Mon Jan 03, 2005 11:35 pm Reply with quote

Greets:

Made a change out PHPNuke's Search Module that now shows the description (or hometext) of an article on the output page. Please feel free to try it with your favorite keywords:

Link: Only registered users can see links on this board! Get registered or login!

How to do it in your own PHPNuke site:

- Open /module/Search/index.php

- Find the following code segment about a third way down:
Code:
printf("<tr><td><img src=\"images/folders.gif\" border=\"0\" alt=\"\"> ;;<font class=\"option\"><a href=\"%s\"><b>%s</b></a></font><br><font class=\"content\">"._CONTRIBUTEDBY." $informant<br>"._POSTEDBY." <a href=\"%s\">%s</a>",$furl,$title,$url,$aid,$informant);


- Edit it to show:
Code:
printf("<tr><td><img src=\"images/folders.gif\" border=\"0\" alt=\"\"> ;;<font class=\"option\"><a href=\"%s\"><b>%s</b></a></font><br><font class=\"content\">Description: $hometext<br>"._CONTRIBUTEDBY." $informant<br>"._POSTEDBY." <a href=\"%s\">%s</a>",$furl,$title,$url,$aid,$informant);


- Save and enjoy

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website ICQ Number
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Tue Jan 04, 2005 9:55 am Reply with quote

Groovy - Very Nice. Thanks!
 
View user's profile Send private message
drmike
PostPosted: Tue Jan 04, 2005 6:46 pm Reply with quote

Not a problem. Glad to help. I've had to make a few changes as my site is slightly different than the standard install.

thanks,
-drmike
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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 ©