Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> News Module Hack - Bugs
Author Message
CodyG
Life Cycles Becoming CPU Cycles



Joined: Jan 02, 2003
Posts: 714
Location: Vancouver Island

PostPosted: Thu Dec 04, 2003 12:51 pm Reply with quote

Heh Raven ...

As if I don't have a zillion other things to fix right now Confused ... I thought I'd try to install the News Ordering hack. What nuker couldn't resist ordering?

The thing is ... in my version of admin/modules/stories.php it has code for all the associated topics input and output that FB installed since 6.5. And variables for time/date are diff too. (though probably irrelevant, ie: $xmonth and $month)

I've been comparing lines of code in stories.php for about an hour now... and have just about reached the bottom, hacking away like a good girl.... and totally skeptical that this ever going to work.


I need another coffee, if it does work for production site Raven's nuke 6.9, with authors table mods, what are the compatible chances for my other nuke sites?


Code:
function previewAdminStory($automated, $year, $day, $month, $hour, $min, $subject, $hometext, $bodytext, $topic, $catid, $ihome, $alanguage, $acomm, $display_order, $pollTitle, $optionText)



Below is my current version ... of course, one has to go through function after function... (wondering if I'm talking myself into xoops?) and $display_order should be where??? Maybe the answer is in the sql?

Code:
function previewAdminStory($automated, $year, $day, $month, $hour, $min, $subject, $hometext, $bodytext, $topic, $catid, $ihome, $alanguage, $acomm, $pollTitle, $optionText, $assotop)



If these variables are not ordered... oops, right?
sigh

Wishing on the perfect nuke for christmas... perfectnuke.net Wink
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Dec 05, 2003 6:46 am Reply with quote

The placement of $display_order is only relevant to the code that calls the function. In other words, if $display_order is the fifth argument, then the code that calls the function has to reference it as the fifth argument. Does that help?
 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> News Module Hack - Bugs

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 ©