help editing the review module index.php file

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   help editing the review module index.php file
fr34k
CZ Super Newbie
fr34k has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 29, 2004
0.00 posts per day
Posts: 36
Points: 464
   
Hi wondered if someone could help me out.

I know the basics of phpnuke, but wanted to edit the review module index.php file.
Basically i run a hardware review site and users have said that navigating through the review module searching for products reviews can be very difficult if they don't know the specific name of an item.

I have created a bog standard review categories module to make searching our reviews database a lot easier. I am still using the reviews module but wanted to change the link at the bottom of each review that says "Return to main" as when clicked it takes users back to the original review layout (whereby reviews are listed by 10 most popular and 10 most recent)

I have gone in to the review module's index.php file to find where i would change this so that users are taken to the new categories. I presume it is something to do with this line (under Function_Reviews):
echo "[ <a href=\"modules.php?name=$module_name\">"._RETURN2MAIN."</a> ]";
   CloseTable();

When i change the url to that of the new module index i have created i get parse errors. Any help would be great.

Also, as stated i have created a blank module with an index.php file within to display my new review categories, the only problem i have is that i am not brilliant with phpnuke coding and so the whole thing is made up of html table code. Updating this every time i have a new review means acessing the index.php file and adding in the strings of html code then re-uploading it.

If anyone knows of a way this could be simplified or can help with the creation of a better review catgories your help would be greatly apreciated and wouldn't go un-noticed.
the new review categories i created can be found here:
[ Register or login to view links on this board.]

Thanks & sorry for such a long post


Back to top Reply with quote
#2   re: help editing the review module index.php file
fr34k
CZ Super Newbie
fr34k has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 29, 2004
0.00 posts per day
Posts: 36
Points: 464
   
Anyone?




Back to top Reply with quote
#3   re: help editing the review module index.php file
rlgnak
CZ Super Newbie
rlgnak has been a member for over 20 year's 20 Year Member
usa.gif alaska.gif
Occupation: College
Gender: Male
Status: Offline
Joined: Jun 22, 2004
0.01 posts per day
Posts: 62
Points: 3,367
   
Hey , i don't mind helping if you wanna talk to me. i don't know which review module your using but i can sure do it no problem.

msn : [ Register or login to view links on this board. ] ( oops i had to edit msn had 2 dots)




_________________
[ Register or login to view links on this board.]
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,440
   
Post what you tryed adding. A parse error is generally just a miscode.




_________________
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   re: help editing the review module index.php file
fr34k
CZ Super Newbie
fr34k has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 29, 2004
0.00 posts per day
Posts: 36
Points: 464
   
Hi
Thanks for all your help.
I have added you to msn. I do apologise for the late reply, but running a review site is a 24hr a day job.

icon_smile.gif

To change the link that the return to main goes to i did this:

echo "[ <a href=\"modules.php?name=$module_name\">"._RETURN2MAIN."</a> ]";
   CloseTable();


echo "[ <a href=\"modules.php?op=modload&name=Categories&file=index">"._RETURN2MAIN."</a> ]";
   CloseTable();


thanks for all your help it is greatly apreciated.

Does anyone know if there is an easier way to do the review categories as at the moment the whole thing is inside an index.php file with me adding a string of html underneath each category header each time a new review is completed.
This results in me having to consistently update the index.php with reams of html then re-uploading it to save the changes. With 47 reviews in the database, the index.php is getting pretty full already, making updating very confusing.

thanks for all your help


Back to top Reply with quote
#6   re: help editing the review module index.php file
fr34k
CZ Super Newbie
fr34k has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 29, 2004
0.00 posts per day
Posts: 36
Points: 464
   
Can anyone help with this situation?

Thanks in advance
icon_smile.gif



Back to top Reply with quote
#7   
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,440
   

echo "[ <a href=\"modules.php?name=Categories&file=index\">"._RETURN2MAIN."</a> ]";
   CloseTable();




_________________
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