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 -> phpnuke 7.6
Author Message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Mon Aug 15, 2005 8:40 pm Reply with quote

Great - sorry I caused extra confusion, but I'm glad it's working correctly now.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
tangoman
Involved
Involved



Joined: Aug 06, 2005
Posts: 301

PostPosted: Mon Aug 15, 2005 8:48 pm Reply with quote

No problems....THANK YOU!!!.......

I need to launch my website in 18 hours, but I still have 2 things to do.

The simple point/question was one I raised earlier, about viewing the security code in the User Account log in module and veiwing the user info block. When they both display together they show a different security code, but that is not usually a problem. However if u change the length of the security code in the module, (via the CNB YA admin, the security code is not affected in the user info block...I am cooorect, aren't I?

I do like viewing both together and am happy to live with the fact they may appear different...Is the only issue going to be that it would be a 'waste of time' lengthening the security code via the CNB YA pannel, as a user coud easily use the user info block?
 
View user's profile Send private message
kguske







PostPosted: Mon Aug 15, 2005 8:55 pm Reply with quote

That's because the user info block that comes with CNB YA is different than the custom one we made for you. Was that one of the files you overwrote?

These should be consistent - in terms of length - though the number will not match for good reason. If I remember correctly, there are issues with changing the number in 4.4.2 - you should not make the number greater than 8 if I remember correctly.
 
tangoman







PostPosted: Mon Aug 15, 2005 8:57 pm Reply with quote

[quote="kguske"]That's because the user info block that comes with CNB YA is different than the custom one we made for you. Was that one of the files you overwrote?

I dont think so...You mean with the sentinel files?
 
kguske







PostPosted: Mon Aug 15, 2005 8:57 pm Reply with quote

No, with CNB YA.
 
tangoman







PostPosted: Mon Aug 15, 2005 8:59 pm Reply with quote

No....After loading the CNB YA, I still see the original User Info block, which I like and wanted to keep anyway....is that OK or will I have problems...Should I not use it?
 
kguske







PostPosted: Mon Aug 15, 2005 9:01 pm Reply with quote

If the CNB YA module gives you the ability to control the length of the security number, but you use a standard login block from PHP-Nuke, how can you expect it to honor the CNB-specific change?
 
tangoman







PostPosted: Mon Aug 15, 2005 9:03 pm Reply with quote

I dont expect the user info block to change...I am just wanting to make sure that if i keep it visible it will not cause a security risk of any kind, (other than the fact that the security number displayed may be shorted, thus theoretically easier to crack)?
 
kguske







PostPosted: Mon Aug 15, 2005 9:07 pm Reply with quote

I wouldn't worry too much about the length of the security code making it easier to crack. But I would recommend using the login block that came with CNB - I don't know for sure, but it may cause problems if you don't use that.
 
tangoman







PostPosted: Mon Aug 15, 2005 9:11 pm Reply with quote

How do I activate that block?..Didnt know there was one?..Do I just load it as a normal block and deactivate the one I have now?
 
kguske







PostPosted: Mon Aug 15, 2005 9:19 pm Reply with quote

Yep. I thought it had the same name as the standard block in 4.4.2, which would have required you to overwrite it. That's why I asked earlier...
 
tangoman







PostPosted: Mon Aug 15, 2005 9:20 pm Reply with quote

I see it now...No..It is called 'User Log In'...the one I have is 'user info'
 
tangoman







PostPosted: Mon Aug 15, 2005 9:25 pm Reply with quote

2things now Kevin.

Firstly, I want to still use the User Info Block, which does, of course, also have the log in facility on it, but I want all the 'membership' and 'people online' stats. The 'User Log In' block from CNB YA only has log in info.

The second problem now is that the CNB YA block 'isn't well' now. It displays the following text:


Welcome, Anonymous

_BNICK:
_BPASS:
_BCODE:
_BTYPECODE:
 
kguske







PostPosted: Mon Aug 15, 2005 9:33 pm Reply with quote

One of the language files (or updates to a language file) is missing.

As for merging the blocks, I can't do that tonight...too many other things to do. Email both blocks and I'll try to do it tomorrow.
 
tangoman







PostPosted: Mon Aug 15, 2005 9:41 pm Reply with quote

Oh right....isnt there a version like that already?...where the CNB YA block is merged with the 'descent looking' User Info block?

Hmmm......

Thanks for the offer...I will mail them soon via regular e-mail.

How do I fi nd out which file is Missing , hence causing the error code on the block?
 
kguske







PostPosted: Mon Aug 15, 2005 9:50 pm Reply with quote

Look back over the installation instructions for a missing language file or language file update.
 
tangoman







PostPosted: Mon Aug 15, 2005 9:59 pm Reply with quote

I dont understand...I have uploaded all the files that I originally unzipped.

The only file that did not upload is a .htaccess file, but that is normal for my host...as you will recall.

What should I look for?
 
kguske







PostPosted: Mon Aug 15, 2005 10:01 pm Reply with quote

Found the missing link...<grin>!

In /modules/Your_Account/includes/functions.php, change:
Code:
    echo "<td align='center' colspan='4'><a href='admin.php'>"._YA_ADMINISTRATION."</a></td>\n";


to:
Code:
//    echo "<td align='center' colspan='4'><a href='admin.php'>"._YA_ADMINISTRATION."</a></td>\n";    

   global $admin_file;
    echo "<td align='center' colspan='4'><a href='".$admin_file."'>"._YA_ADMINISTRATION."</a></td>\n";   
 
kguske







PostPosted: Mon Aug 15, 2005 10:04 pm Reply with quote

I checked and there are no instructions or language file changes. It must be in the language/lang-english.php file - maybe these changed between 7.5 and 7.6.

I'm signing off for the night - my real work is stacking up and clients will be angry if I don't do some of it...
 
tangoman







PostPosted: Mon Aug 15, 2005 10:27 pm Reply with quote

Thank you so much Kevin....The final things for me to do now is finish the Sentinle install....Which I will need help with and finally the credit card payment system thingy....which is not so iimportant for the next 4 days.

I'm finishing for the day now too.....its 5:30am here!!!!!!!!!!!!!!!!!!
 
tangoman







PostPosted: Tue Aug 16, 2005 5:42 am Reply with quote

Kevin,

There is a first time for doing everything, of course, but with this 'game' I often hesitate because it one takes someone to type a single wrong character to screw the whole thing up.

However, my 'impatience', moreover eagerness, has the better of me today, so I was a little 'adventurious'.

Please can you confirm if I 'passed the test'...

As previously explained, the block called 'block-User_Login.php' that we installed yesterday, was displaying the following text:


User Log In

Welcome, Anonymous

_BNICK:
_BPASS:
_BCODE:
_BTYPECODE:
(Register)


I understod how this could mean that there was a problem in one of the language files, so I investigated the file, 'language/lang-english.php'. which has the following code:


<?php

/**************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* This is the language module with all the system messages */
/* */
/* If you made a translation, please go to the site and send to me */
/* the translated file. Please keep the original text order by modules, */
/* and just one message per line, also double check your translation! */
/* */
/* You need to change the second quoted phrase, not the capital one! */
/* */
/* If you need to use double quotes (") remember to add a backslash (\), */
/* so your entry will look like: This is \"double quoted\" text. */
/* And, if you use HTML code, please double check it. */
/**************************************************************************/

define("_CHARSET","ISO-8859-1");
define("_SEARCH","Search");
define("_LOGIN","Login");
define("_WRITES","writes");
define("_POSTEDON","Posted on");
define("_NICKNAME","Nickname");
define("_PASSWORD","Password");
define("_WELCOMETO","Welcome to");
define("_EDIT","Edit");
define("_DELETE","Delete");
define("_POSTEDBY","Posted by");
define("_READS","reads");
define("_GOBACK","[ <a href=\"javascript:history.go(-1)\">Go Back</a> ]");
define("_COMMENTS","comments");
define("_PASTARTICLES","Past Articles");
define("_OLDERARTICLES","Older Articles");
define("_BY","by");
define("_ON","on");
define("_LOGOUT","Logout");
define("_WAITINGCONT","Waiting Content");
define("_SUBMISSIONS","Submissions");
define("_WREVIEWS","Waiting Reviews");
define("_WLINKS","Waiting Links");
define("_EPHEMERIDS","Ephemerids");
define("_ONEDAY","One Day like Today...");
define("_ASREGISTERED","Don't have an account yet? You can <a href=\"modules.php?name=Your_Account&amp;op=new_user\">create one</a>. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.");
define("_MENUFOR","Menu for");
define("_NOBIGSTORY","There isn't a Biggest Story for Today, yet.");
define("_BIGSTORY","Today's most read Story is:");
define("_SURVEY","Survey");
define("_POLLS","Polls");
define("_PCOMMENTS","Comments:");
define("_RESULTS","Results");
define("_HREADMORE","read more...");
define("_CURRENTLY","There are currently,");
define("_GUESTS","guest(s) and");
define("_MEMBERS","member(s) that are online.");
define("_YOUARELOGGED","You are logged as");
define("_YOUHAVE","You have");
define("_PRIVATEMSG","private message(s).");
define("_YOUAREANON","You are Anonymous user. You can register for free by clicking <a href=\"modules.php?name=Your_Account&amp;op=new_user\">here</a>");
define("_NOTE","Note:");
define("_ADMIN","Admin:");
define("_WERECEIVED","We received");
define("_PAGESVIEWS","page views since");
define("_TOPIC","Topic");
define("_UDOWNLOADS","Downloads");
define("_VOTE","Vote");
define("_VOTES","Votes");
define("_MVIEWADMIN","View: Administrators Only");
define("_MVIEWUSERS","View: Registered Users Only");
define("_MVIEWANON","View: Anonymous Users Only");
define("_MVIEWALL","View: All Visitors");
define("_EXPIRELESSHOUR","Expiration: Less than 1 hour");
define("_EXPIREIN","Expiration in");
define("_HTTPREFERERS","HTTP Referers");
define("_UNLIMITED","Unlimited");
define("_HOURS","Hours");
define("_RSSPROBLEM","Currently there is a problem with headlines from this site");
define("_SELECTLANGUAGE","Select Language");
define("_SELECTGUILANG","Select Interface Language:");
define("_NONE","None");
define("_BLOCKPROBLEM","<center>There is a problem right now with this block.</center>");
define("_BLOCKPROBLEM2","<center>There isn't content right now for this block.</center>");
define("_MODULENOTACTIVE","Sorry, this Module isn't active!");
define("_NOACTIVEMODULES","Inactive Modules");
define("_FORADMINTESTS","(for Admin tests)");
define("_BBFORUMS","Forums");
define("_ACCESSDENIED", "Access Denied");
define("_RESTRICTEDAREA", "You are trying to access a restricted area.");
define("_MODULEUSERS", "We are Sorry, but this section of our site is for <i>Registered Users Only.</i><br><br>You can register for free by clicking <a href=\"account-new_user.html\">here</a>, then you can<br>access this section without restrictions. Thanks.<br><br>");
define("_MODULESADMINS", "We are Sorry but this section of our site is for <i>Administrators Only.</i><br><br>");
define("_HOME","Home");
define("_HOMEPROBLEM","There is a big problem here: we do not have a Homepage!!!");
define("_ADDAHOME","Add a Module in your Home");
define("_HOMEPROBLEMUSER","There is a problem right now on the Homepage. Please check back later.");
define("_MORENEWS","More in News Section");
define("_ALLCATEGORIES","All Categories");
define("_DATESTRING","%A, %B %d @ %T %Z");
define("_DATESTRING2","%A, %B %d");
define("_DATE","Date");
define("_HOUR","Hour");
define("_UMONTH","Month");
define("_YEAR","Year");
define("_JANUARY","January");
define("_FEBRUARY","February");
define("_MARCH","March");
define("_APRIL","April");
define("_MAY","May");
define("_JUNE","June");
define("_JULY","July");
define("_AUGUST","August");
define("_SEPTEMBER","September");
define("_OCTOBER","October");
define("_NOVEMBER","November");
define("_DECEMBER","December");
define("_BCODE","Security Code");
define("_BWEL","Welcome");
define("_BPM","Private Messages");
define("_BUNREAD","Unread");
define("_BREAD","Read");
define("_BMEMP","Membership");
define("_BLATEST","Latest");
define("_BTD","New Today");
define("_BYD","New Yesterday");
define("_BNICK","Nickname");
define("_BOVER","Overall");
define("_BPASS","Password");
define("_BTYPECODE","Type Security Code");
define("_BVISIT","People Online");
define("_BVIS","Visitors");
define("_BMEM","Members");
define("_BTT","Total");
define("_BON","Online Now");
define("_BREG","Register");
define("_BROADCAST","Broadcast Public Message");
define("_BROADCASTFROM","Public Message from");
define("_TURNOFFMSG","Turn Off Public Messages");
define("_JOURNAL","Journal");
define("_READMYJOURNAL","Read My Journal");
define("_ADD","Add");
define("_YES","Yes");
define("_NO","No");
define("_INVISIBLEMODULES","Invisible Modules");
define("_ACTIVEBUTNOTSEE","(Active but invisible link)");
define("_THISISAUTOMATED","This is an automated email to let you know that your banner advertising in our site has been completed.");
define("_THERESULTS","The results of your campaign are as follows:");
define("_TOTALIMPRESSIONS","Total Impression Made:");
define("_CLICKSRECEIVED","Clicks Received:");
define("_IMAGEURL","Image URL");
define("_CLICKURL","Click URL:");
define("_ALTERNATETEXT","Alternate Text:");
define("_HOPEYOULIKED","Hope you liked our service. We'll look forward to having you as an advertising customer again soon.");
define("_THANKSUPPORT","Thanks for your Support");
define("_TEAM","Team");
define("_BANNERSFINNISHED","Banners Ads Finished");
define("_MODREQLINKS","Mod. Links");
define("_BROKENLINKS","Broken Links");
define("_MODREQDOWN","Mod. Downloads");
define("_BROKENDOWN","Broken Downloads");
define("_PAGEGENERATION","Page Generation:");
define("_SECONDS","Seconds");
define("_YOUHAVEONEMSG","You Have 1 New Private Message");
define("_YOUHAVE","You Have");
define("_NEWPMSG","New Private Messages");
define("_CONTRIBUTEDBY","Contributed by");
define("_CHAT","Chat");
define("_REGISTERED","Registered");
define("_CHATGUESTS","Guests");
define("_USERSTALKINGNOW","Users Talking Now");
define("_ENTERTOCHAT","Enter To Chat");
define("_CHATROOMS","Available Rooms");
define("_SECURITYCODE","Security Code");
define("_TYPESECCODE","Type Security Code");
define("_ASSOTOPIC","Associated Topics");
define("_ADDITIONALYGRP","Additionaly this module belongs to the Users Group");
define("_YOUHAVEPOINTS","Points you have by participating on the site's content:");
define("_MVIEWSUBUSERS","View: Subscribed Users Only");
define("_MODULESSUBSCRIBER","We are Sorry but this section of our site is for <i>Subscribed Users Only.</i>");
define("_SUBHERE","You can subscribe to our services from <a href=\"$subscription_url\">here</a>");
define("_SUBEXPIRED","Your Subscription Expired");
define("_HELLO","Hello");
define("_SUBSCRIPTIONAT","This is an automated message to let you know that your subscription at");
define("_HASEXPIRED","has been expired now.");
define("_HOPESERVED","Hope to have served you with satisfaction...");
define("_SUBRENEW","If you want to renew your subscription please go to:");
define("_YOUARE","You are");
define("_SUBSCRIBER","subscriber");
define("_OF","of");
define("_SBYEARS","years");
define("_SBYEAR","year");
define("_SBMINUTES","minutes");
define("_SBHOURS","hours");
define("_SBSECONDS","seconds");
define("_SBDAYS","days");
define("_SUBEXPIREIN","Your subscription will expire in:");
define("_NOTSUB","You are not subscriber of");
define("_SUBFROM","You can subscribe from");
define("_HERE","here");
define("_NOW","now!");
define("_ADMSUB","Subscribed User!");
define("_ADMNOTSUB","User NOT Subscribed");
define("_ADMSUBEXPIREIN","Subscription Expire in:");
define("_LASTIP","Last user IP:");
define("_BANTHIS","Ban This IP");

/*****************************************************/
/* Function to translate Datestrings */
/*****************************************************/

function translate($phrase) {
switch($phrase) {
case "xdatestring": $tmp = "%A, %B %d @ %T %Z"; break;
case "linksdatestring": $tmp = "%d-%b-%Y"; break;
case "xdatestring2": $tmp = "%A, %B %d"; break;
default: $tmp = "$phrase"; break;
}
return $tmp;
}

?>



I noticed that among all the defining code and strings, there were no definitions for the block code, which is:


_BNICK:
_BPASS:
_BCODE:
_BTYPECODE:


Hence, as you will see I created 4 new definitions.

This eliminated the problem and the block now displayed correctly.

Did I do exactly right, a little right, or maybe I did wrong and should undo what I have done...Please confirm.

Also, if I did do correct, logic suggests to me that such a change has to be made in each language.php file in order that the text would display correctly should the user have the ability to and want to, change the languagge settings on the website...Again, am I correct?
 
kguske







PostPosted: Tue Aug 16, 2005 5:55 am Reply with quote

You did exactly right. Your logic is also correct. I haven't compared the language files from 7.5 and 7.6 yet, but I suspect there is a discrepancy here for some reason.
 
tangoman







PostPosted: Tue Aug 16, 2005 6:08 am Reply with quote

Thanks Kevin,

Does it sound like your 'job' could be in jeopardy?!!!...Have no fear...I have too much on my nplate at the moment to even consider it!!!...LOL

Are you able to help me back on track with installing sentinel?
 
kguske







PostPosted: Tue Aug 16, 2005 7:00 am Reply with quote

Not to worry. As for installing sentinel, please open a different thread (create a new topic) for that if you have questions. That will make it easier for others to assist as well.
 
tangoman







PostPosted: Tue Aug 16, 2005 7:31 am Reply with quote

Thans Kevin.

A new thread is online.
 
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 -> phpnuke 7.6

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 ©