Author |
Message |
64bitguy
The Mouse Is Extension Of Arm

Joined: Mar 06, 2004
Posts: 1164
|
Posted:
Fri Nov 26, 2004 2:12 pm |
|
Hi
One thing I am noticing is what appears to be very little value in including the following functions into Nuke comments on articles.
&mode
&options
&thold
In a nutshell, I'm running the following code in BETA and it appears to work just as well, but with no errors associated with running googletap from having nulled valued properties of these items.
There is also one other additional change (which seems to also apply to all Nuke 7.x versions, NOTE: I don't know about 6.x as I don't have any of those versions running.)
In addition to these change, I have ALSO modified the word "comments" in the "parent" function to now be the word "article".
(NOTE: It is the only line of code with the word parent in it, if you search for it in your comments.php file) This looks like a different bug that needs to be fixed.
in /modules/News/comments.php.
So to desribe beyond the other changes in the below files, you'll now see that line as:
Code:echo " | <a href=\"modules.php?name=$module_name&file=article&sid=$sid&pid=$erin\">"._PARENT."</a>";
|
which in it's original form with all of the mode, options and thold stuff in it used to be:
Code:echo " | <a href=\"modules.php?name=$module_name&file=comments&sid=$sid&pid=$erin&mode=$mode&order=$order&thold=$thold\">"._PARENT."</a>";
|
Even if you don't make the other changes, you should probably apply this fix changing that one word.
Anyway.. Here are the new files that I used with PHP-Nuke 7.6. I have also implemented these same kinds of changes version 7.4 as well with GT-NextGen and have had no problems. The comments functions are now completely GT enabled on my site.
To make this work, I had to edit 3 files in the News module. Please find the complete code for these functions FOR PHP-NUKE 7.6 in this and the next 2 replies.
Here are the new updated files without all of the mode, options and thold data echo'd to the screen urls.
/modules/News/article.php
/modules/News/comments.php
/modules/News/index.php
You can find the files in the .zip file at:
http://www.ravenphpscripts.com/modules.php?name=Downloads&d_op=viewdownloaddetails&cid=6&lid=135&ttitle=Modified_Comments-4-Articles_Nuke_7.6-Patched-2.7#dldetails
Changing these in PHP-Nuke 7.6 revealed that I could perform all functions in every user mode (anonymous, member, administrator) without getting any errors, messing anything up and allowed me to keeping consistant URLs (without revealing any mode, option or thold sequences and without having any nulled values in those mode, order or thold functions). This also really helped Googletap as you can see by visiting my site.
Does anyone see any problems with removing these functions using the method I have published here?
Thanks.. Steph |
_________________ Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance.
Last edited by 64bitguy on Sat Nov 27, 2004 11:40 am; edited 8 times in total |
|
|
 |
64bitguy

|
Posted:
Fri Nov 26, 2004 2:22 pm |
|
Consolidated into message 1... |
Last edited by 64bitguy on Sat Nov 27, 2004 11:41 am; edited 2 times in total |
|
|
 |
64bitguy

|
Posted:
Fri Nov 26, 2004 2:26 pm |
|
Consolidated into message 1... |
Last edited by 64bitguy on Sat Nov 27, 2004 11:41 am; edited 3 times in total |
|
|
 |
chatserv
Member Emeritus

Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Sat Nov 27, 2004 9:33 am |
|
Can you send me these files to look over them? chatserv at nukeresources dot com |
|
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Sat Nov 27, 2004 9:38 am |
|
I was just thinking an attachment might be in order thats a long thread. |
_________________ [b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 |
|
|
 |
64bitguy

|
Posted:
Sat Nov 27, 2004 9:44 am |
|
Well I'd have posted them as files if I could have
On their way Chat. |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Nov 27, 2004 9:50 am |
|
You can just upload them here and I will approve them . Would you edit your posts to remove the code? |
|
|
|
 |
64bitguy

|
Posted:
Sat Nov 27, 2004 9:52 am |
|
Okay, I'm feeling goofy now (keep in mind I just got up and am working that first cup of coffee)
How do I upload them to here? You want me to email them to you?
Thanks! |
|
|
|
 |
Raven

|
Posted:
Sat Nov 27, 2004 9:53 am |
|
No. Just go to the Download link and there's an option  |
|
|
|
 |
chatserv

|
Posted:
Sat Nov 27, 2004 10:13 am |
|
|
|
 |
64bitguy

|
Posted:
Sat Nov 27, 2004 10:18 am |
|
Okay, my brain is restarted, I'm on cup #2 and the zip has been submitted as newscomments.zip.
Thanks Raven |
|
|
|
 |
Raven

|
Posted:
Sat Nov 27, 2004 11:12 am |
|
Done  |
|
|
|
 |
64bitguy

|
Posted:
Sat Nov 27, 2004 11:43 am |
|
Okay, message threads modified to reflect the present location of the .zip file that includes all 3 modified file.
Thanks Raven! |
|
|
|
 |
|