[ABD] Rules mod 1.0.6

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
Rotsblok
Registered User
Posts: 648
Joined: Fri Nov 11, 2005 12:47 pm
Location: Upper north of Holland
Name: Rikkert Westa
Contact:

Re: [BETA] Rules mod 1.0.5

Post by Rotsblok » Thu Jan 24, 2008 2:00 pm

There are a few lang variables missing...

in the rules.php where you build up the template you are missing the variables

Code: Select all

$template->assign_vars(array(
	'L_FAQ_TITLE'	=> 'Forum Rules',
	'L_BACK_TO_TOP'	=> $user->lang['BACK_TO_TOP'])
);

page_header('Rules');

$template->set_filenames(array(
	'body' => 'faq_body.html')
);
So the {L_FAQ_TITLE} is missing => would prefer it to call it the rules titel to avoid conflictions with the faq manager <+ there are more possible conflictions...
and the page header language variable is missing...
Nederlandse Support site
Several dutch translations for 3.1 extensions if you need one or there is an update of an extension feel free to notify me.

drazgo
Registered User
Posts: 52
Joined: Tue Jun 12, 2007 8:52 pm

Re: [BETA] Rules mod 1.0.6

Post by drazgo » Sat Jan 26, 2008 12:00 pm

Version 1.0.6 is out!!

New stuff:
- Fixed the language variables Rotsblok mentionned
- Made a clickable link via SQL query from the register page to the rules page!

Have fun!!

User avatar
WhiteWolfSix
Registered User
Posts: 258
Joined: Sun May 15, 2005 5:43 am

Re: [BETA] Rules mod 1.0.6

Post by WhiteWolfSix » Sat Jan 26, 2008 12:31 pm

drazgo wrote:New stuff:
- Fixed the language variables Rotsblok mentionned
- Made a clickable link via SQL query from the register page to the rules page!
Put this info into your first post, too. It will be much easier to know all updates.
Image
WhiteWolfSix (WW6)

ToXiQ
Registered User
Posts: 69
Joined: Mon Jun 05, 2006 4:54 pm

Re: [BETA] Rules mod 1.0.6

Post by ToXiQ » Sat Jan 26, 2008 4:18 pm

drazgo wrote:Version 1.0.6 is out!!

New stuff:
- Fixed the language variables Rotsblok mentionned
- Made a clickable link via SQL query from the register page to the rules page!

Have fun!!
Hello Dragzo,

Is there a upgrade file missing?

When we put in the sql string the webadres for the rules how is this solved when you have 2 languages?

regards

drazgo
Registered User
Posts: 52
Joined: Tue Jun 12, 2007 8:52 pm

Re: [BETA] Rules mod 1.0.6

Post by drazgo » Sat Jan 26, 2008 4:55 pm

ToXiQ wrote:
drazgo wrote:Version 1.0.6 is out!!

New stuff:
- Fixed the language variables Rotsblok mentionned
- Made a clickable link via SQL query from the register page to the rules page!

Have fun!!
Hello Dragzo,

Is there a upgrade file missing?

regards
hi mate,

i never included an upgrade file in my previous versions. it's not that hard to do it yourself. Here's to do if you need an upgrade:

- overwrite rules.php with the new one
- make the SQL query mentionned in the install.xml
- Have a look at the DIY-instructions if you did those instructions on the previous version as well

that's it! have fun

and about that changlog, i'll include it asap on my original post ;)

User avatar
digitalchaos13
Registered User
Posts: 91
Joined: Sun Sep 23, 2007 4:24 pm

Re: [BETA] Rules mod 1.0.6

Post by digitalchaos13 » Mon Jan 28, 2008 6:53 pm

Internal Server Error
Did all the edit's twice, everything for the mod is set to 7777 and I can't figure out what's wrong

drazgo
Registered User
Posts: 52
Joined: Tue Jun 12, 2007 8:52 pm

Re: [BETA] Rules mod 1.0.6

Post by drazgo » Tue Jan 29, 2008 8:26 pm

can you please tell me after what edit you get this message? + could it be your server is having problems?

User avatar
Ladysarajane
Registered User
Posts: 441
Joined: Sat Feb 18, 2006 10:05 pm

Re: [BETA] Rules mod 1.0.6

Post by Ladysarajane » Tue Jan 29, 2008 9:36 pm

I figured out how to open the rules page in another window, so new registrants won't lose the registration page...
For my sql query I used this:

Code: Select all

INSERT INTO phpbb_profile_lang (field_id, lang_id, lang_name, lang_explain, lang_default_value) VALUES (1, 1, 'Do you agree with our forum rules?', '<a href="http://YOURSITE.COM/YOURFORUMDIR/rules.php" target="_blank">Click to display them</a>', '');
This will open the Rules page in another window. Don't forget to change "YOURSITE.COM" and "YOURFORUMDIR" to reflect your site.
When all else fails, read the instructions

drazgo
Registered User
Posts: 52
Joined: Tue Jun 12, 2007 8:52 pm

Re: [BETA] Rules mod 1.0.6

Post by drazgo » Sun Feb 10, 2008 3:02 pm

Ladysarajane wrote:I figured out how to open the rules page in another window, so new registrants won't lose the registration page...
For my sql query I used this:

Code: Select all

INSERT INTO phpbb_profile_lang (field_id, lang_id, lang_name, lang_explain, lang_default_value) VALUES (1, 1, 'Do you agree with our forum rules?', '<a href="http://YOURSITE.COM/YOURFORUMDIR/rules.php" target="_blank">Click to display them</a>', '');
This will open the Rules page in another window. Don't forget to change "YOURSITE.COM" and "YOURFORUMDIR" to reflect your site.
thanks for helping!!! will include this in the next release of the rules mod!! :D

ToXiQ
Registered User
Posts: 69
Joined: Mon Jun 05, 2006 4:54 pm

Re: [BETA] Rules mod 1.0.6

Post by ToXiQ » Sun Feb 10, 2008 3:55 pm

when I do this instruction I get following sql fault:

Code: Select all

#1062 - Duplicate entry '1-1' for key 1 
When I drop the table and create it again I can get the sql loaded but then I do not see the new option at the registration page.

this happend also with the original instructions What do have to redo to get this working?

I did the DIY instructions and then I cannot insert the msql instruction. Only difference I see is that because I have 2 languages.

User avatar
Ladysarajane
Registered User
Posts: 441
Joined: Sat Feb 18, 2006 10:05 pm

Re: [BETA] Rules mod 1.0.6

Post by Ladysarajane » Sun Feb 10, 2008 4:32 pm

Have you made any custom profile fields?
When all else fails, read the instructions

ToXiQ
Registered User
Posts: 69
Joined: Mon Jun 05, 2006 4:54 pm

Re: [BETA] Rules mod 1.0.6

Post by ToXiQ » Sun Feb 10, 2008 5:24 pm

yes I have the one decribed in the DIY with the only difference there are 2 fields because I have a second language installed and then when I make the Rules agree field it is adding one extra for the second laguage!

User avatar
Ladysarajane
Registered User
Posts: 441
Joined: Sat Feb 18, 2006 10:05 pm

Re: [BETA] Rules mod 1.0.6

Post by Ladysarajane » Sun Feb 10, 2008 5:37 pm

If you use phpmyadmin, go to your database and look for the table phpbb_profile_fields. click on the table, then click on browse and tell me what field_id's and field_names are listed
When all else fails, read the instructions

ToXiQ
Registered User
Posts: 69
Joined: Mon Jun 05, 2006 4:54 pm

Re: [BETA] Rules mod 1.0.6

Post by ToXiQ » Sun Feb 10, 2008 6:18 pm

here they are, I selected the first part from it.
field_id field_name field_type field_ident
2 [BLOB - 5 Bytes] 4 rules

User avatar
Ladysarajane
Registered User
Posts: 441
Joined: Sat Feb 18, 2006 10:05 pm

Re: [BETA] Rules mod 1.0.6

Post by Ladysarajane » Sun Feb 10, 2008 6:41 pm

No in my phpmyadmin, I need this info:

Image

On the left click on phpbb_profile_fields and when that opens in the middle...at the top click on the browse tab and it should open up to show you something similar to what I have above.
When all else fails, read the instructions

Locked

Return to “[3.0.x] Abandoned MODs”