PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Palbin
New Member
New Member


Joined: Mar 30, 2006
Posts: 7

PostPosted: Sun Sep 30, 2007 8:19 pm Reply with quote Back to top

In the Collapsing Forums block all the sql statements use $user_prefix, but most of them should be $prefix. I have confirmed this in the latest download on this site.

If there is a thread or something about this then just delete this topic. I did not do a seach or anything just scanned some topic names.

also what is the purpose of these lines?

Code:
   if (is_admin($admin) AND strtolower($rwsUserName) == 'raven') {
      if( 100 == $countTopics ) { break 1; }
   }
View user's profile Send private message
jakec
Moderator


Joined: Feb 06, 2006
Posts: 1625
Location: United Kingdom

PostPosted: Mon Oct 01, 2007 12:33 am Reply with quote Back to top

As you suspected this has been discussed before, have a look at this:
Only registered users can see links on this board!
Get registered or login to the forums!


Search is your friend, you will be amazed what you find. Wink
View user's profile Send private message
Palbin
New Member
New Member


Joined: Mar 30, 2006
Posts: 7

PostPosted: Mon Oct 01, 2007 12:54 am Reply with quote Back to top

Didn't think I would have to look that far back. That was over a year ago. Would have thought the download would have been corrected by now.
View user's profile Send private message
jakec
Moderator


Joined: Feb 06, 2006
Posts: 1625
Location: United Kingdom

PostPosted: Mon Oct 01, 2007 5:58 am Reply with quote Back to top

It is one of the older blocks that Raven created so some of the posts may be a while back.

As I am sure you can appreciate Raven is a busy guy and doesn't always have time to update his older scripts. In most cases the fixes can be found in the forums.
View user's profile Send private message
Loki
Regular
Regular


Joined: Oct 05, 2003
Posts: 60

PostPosted: Fri Oct 05, 2007 11:09 am Reply with quote Back to top

Actually it really doesnt make much difference as long as the $user_prefix is defined correctly in the config file. but yes it would more accurate using $prefix.

as for this:

Code:
   if (is_admin($admin) AND strtolower($rwsUserName) == 'raven') {
      if( 100 == $countTopics ) { break 1; }
   }


I believe this was a custom code raven added that appears to either stop counting or posting his posts in the block after they reach 100.
View user's profile Send private message Visit poster's website
Palbin
New Member
New Member


Joined: Mar 30, 2006
Posts: 7

PostPosted: Sat Oct 06, 2007 1:38 pm Reply with quote Back to top

Loki wrote:
Actually it really doesnt make much difference as long as the $user_prefix is defined correctly in the config file. but yes it would more accurate using $prefix.

as for this:

Code:
   if (is_admin($admin) AND strtolower($rwsUserName) == 'raven') {
      if( 100 == $countTopics ) { break 1; }
   }


I believe this was a custom code raven added that appears to either stop counting or posting his posts in the block after they reach 100.


Correctly defined does not equal the same as $prefix. That woudl defeat the entire purpose of have different variables.
View user's profile Send private message
PHrEEkie
Subject Matter Expert


Joined: Feb 23, 2004
Posts: 250

PostPosted: Sat Oct 06, 2007 1:47 pm Reply with quote Back to top

While this is an interesting whine session, it begs to question why not just fix your copy of the script...??

Any decent text editor has a search/replace feature. Simply search for user_prefix, replace with prefix, save.

Would take like what, 1 or 2 seconds? Question
View user's profile Send private message
Gremmie
Moderator


Joined: Apr 06, 2006
Posts: 2356
Location: Iowa, USA

PostPosted: Sat Oct 06, 2007 1:49 pm Reply with quote Back to top

And then send in the fixes to Raven. That's what open source software is all about.
View user's profile Send private message
Palbin
New Member
New Member


Joined: Mar 30, 2006
Posts: 7

PostPosted: Sat Oct 06, 2007 1:57 pm Reply with quote Back to top

Gremmie wrote:
And then send in the fixes to Raven. That's what open source software is all about.


I was going to do that, but i am still tweaking it. I have made it so that it dispaly all post to site admins/semi-admins, forum admins, forum moderators, and finally individual groups/users. It also works with the sub-forums mod to indent the sub-forums in the drop down and correctly order them.

But why give stuff to people like PHrEEkie who make absoultly useless posts, other than to basicly flame a person.
View user's profile Send private message
PHrEEkie
Subject Matter Expert


Joined: Feb 23, 2004
Posts: 250

PostPosted: Sat Oct 06, 2007 2:20 pm Reply with quote Back to top

I said nothing personal to you. A flame is something said in a durogotory and/or personal nature. I simply asked why, instead of whining that after a year it should be 'fixed', you don't just take 2 seconds to fix it to YOUR liking?

>But why give stuff to people like PHrEEkie who make absoultly
>useless posts, other than to basicly flame a person.

I was one of the original people who supported the community when Tom ported phpBB to Nuke. I have been intimately involved with Nuke ever since, spanning over 6 years now. There is not a file within Nuke or phpBB that I haven't been in and modified one way or another multiple times and over multiple versions.

'Useless posts' are quite a stretch from what I have actually offered for over 6 years to the Nuke community.

Trust me Pal, there is nothing you could make that I could not make myself.

PHrEEk
View user's profile Send private message
Loki
Regular
Regular


Joined: Oct 05, 2003
Posts: 60

PostPosted: Sat Oct 06, 2007 11:21 pm Reply with quote Back to top

Palbin wrote:
Correctly defined does not equal the same as $prefix. That woudl defeat the entire purpose of have different variables.



I am not saying it was right, I just said it will work. Yes you are correct the correct code would be $prefix, but it will function the way it is.
View user's profile Send private message Visit poster's website
Palbin
New Member
New Member


Joined: Mar 30, 2006
Posts: 7

PostPosted: Sun Oct 07, 2007 7:30 am Reply with quote Back to top

Loki wrote:
Palbin wrote:
Correctly defined does not equal the same as $prefix. That woudl defeat the entire purpose of have different variables.



I am not saying it was right, I just said it will work. Yes you are correct the correct code would be $prefix, but it will function the way it is.


I see what you meant now. Well anyway I should post the changes I made to the block in a few days. I think it is done, but I am working on other things right now.
View user's profile Send private message
Loki
Regular
Regular


Joined: Oct 05, 2003
Posts: 60

PostPosted: Sun Oct 07, 2007 9:25 am Reply with quote Back to top

I havent looked at that block much other than installing it, did you say you have the subforums working? If so that would be great.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum