Sub Menu
Links Menu
Online Users

In total there are 650 users online :: 2 registered, 0 hidden and 648 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Google [Bot], Majestic-12 [Bot] based on users active over the past 60 minutes

Need Code Help [Solved]

General discussion of anything. Discuss a topic in and out of IntegraMOD

Moderator: Integra Moderator

Need Code Help [Solved]

PostAuthor: MWE_001 » Thu Jan 24, 2008 2:40 pm

Well, Im trying to install a little mod in IM 1.4.1 and It says

Code: Select all
#-----[ OPEN ]------------------------------------------  language/lang_english/lang_main.php    -----[ FIND ]------------------------------------------#$lang['FAQ'] = 'FAQ';  #-----[  AFTER, ADD ]----------------------------------#$lang['Moderators_Manual'] = 'Moderators Manual';$lang['Privacy'] = 'Privacy Policy';$lang['Rules'] = 'Board Rules';$lang['Terms'] = 'Terms of Use';  #-----[ FIND ]------------------------------------------#$lang['Viewing_FAQ'] = 'Viewing FAQ';  #-----[ AFTER, ADD ]-----------------------------------#$lang['Viewing_moderators_manual'] = 'Viewing Moderators Manual';$lang['Viewing_privacy'] = 'Viewing Privacy Policy';$lang['Viewing_rules'] = 'Viewing Rules';$lang['Viewing_terms'] = 'Viewing Terms';  


the first find is easily done, BUT the 2nd find is not there at all. <s> $lang['FAQ'],  [/code]
Thats not the problem, the problem is the line directly under it.

Code: Select all
"L_LW_DONATE_SITE" => '<a><img></a>',  


Correct me please if Im wrong, but shouldnt that read
Code: Select all
'L_LW_DONATE_SITE'


It is the only thing I saw on that page with quotes instead of a ' and I remember that the paypal function doesnt work or something like that. could this be why?
Last edited by MWE_001 on Fri Jan 25, 2008 9:26 am, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Need Code Help

PostAuthor: Helter » Thu Jan 24, 2008 8:42 pm

Code: Select all
<a href="' . append_sid('lwdonate.'.$phpEx)

this is actually an internal link to lwdonate.php. It is written like it is to keep your session id when you access the page.
the other link looks like it is just using a button hosted on the paypal site.

As for adding classes to the language file, usually the find and add is just for organization. As long as there is no other lang variable with the same name, it really doesnt matter where you put it. I often put them all at the begining of the file so I can quickly see all the variables Ive added, especially if I have to translate them to other languages
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Need Code Help

PostAuthor: MWE_001 » Fri Jan 25, 2008 9:25 am

I just did as I normally do. I added them before the Thats All Folks part.

And thx for the good explanation of the other stuff. Wasnt so sure so figured I'd ask. I saw that one and it just looked funny as hell compared to the rest of the page. <img> Instead of just adding stuff anymore Im really trying to figure out the workings and why's of it all as well.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois


Return to General Discussion

Who is online

Registered users: Google [Bot], Majestic-12 [Bot]

cron