Login     Sign up
Deporteando (@albertof)
114 months ago
748 Views

I want to put more than 7 questions on the Member Fields

1 people followed this question
0

step 1. file: includes/libs/admin.module.php, function index
old
[code]
section_close('Admin Tools');
c('<ul class="simple_list">');
c('
<li>'.url('admin/featurepages', 'Recommend User & Pages').' - Set some people&pages that will be recommended to newcomers.</li>
<li>'.url('admin/footer_pages', 'Footer Pages').' - Edit pages like "about us"</li>');
[/code]
new
[code]
section_close('Admin Tools');
c('<ul class="simple_list">');
c('
<li>'.url('admin/jsql', 'SQL Manager').' - Execute SQL Queries.</li>
<li>'.url('admin/featurepages', 'Recommend User & Pages').' - Set some people&pages that will be recommended to newcomers.</li>
<li>'.url('admin/footer_pages', 'Footer Pages').' - Edit pages like "about us"</li>');
[/code]

step 2. goto admin panel, click on the new link SQL Manager below Addon Tools
enter this
[code]
ALTER TABLE jcow_accounts ADD var8 VARCHAR(255) NOT NULL DEFAULT '' AFTER var7;
[/code] and click execute (1 extra field is added)
for another field enter
[code]
ALTER TABLE jcow_accounts ADD var9 VARCHAR(255) NOT NULL DEFAULT '' AFTER var8;
[/code], etc.
step 3.
this code need to be changed in different places

[code]
for($i=1;$i<=7;$i++) {
[/code]
7 need to be changed in 8 (or 9,10,......)
files:
includes/libs/admin.module.php , function customfields(), function customfields_post()
includes/libs/account.module.php, function index($onreg = 0) (2 times)
includes/libs/browse.module.php, function index($onreg = 0) (2 times)
includes/libs/pages.inc.php, function details($profile) (1 time)
includes/libs/members.module.php, function index(filter='') (1 time)

also change
[code]
section_content('<form action="'.url('browse/index').'" method="post">
<input type="hidden" name="age_from" value="'.h(stripslashes($_POST['age_from'])).'" />
<input type="hidden" name="age_to" value="'.h(stripslashes($_POST['age_to'])).'" />
<input type="hidden" name="location" value="'.h(stripslashes($_POST['location'])).'" />
<input type="hidden" name="gender" value="'.h(stripslashes($_POST['gender'])).'" />
<input type="hidden" name="var1" value="'.h(stripslashes($_POST['var1'])).'" />
<input type="hidden" name="var2" value="'.h(stripslashes($_POST['var2'])).'" />
<input type="hidden" name="var3" value="'.h(stripslashes($_POST['var3'])).'" />
<input type="hidden" name="var4" value="'.h(stripslashes($_POST['var4'])).'" />
<input type="hidden" name="var5" value="'.h(stripslashes($_POST['var5'])).'" />
<input type="hidden" name="var6" value="'.h(stripslashes($_POST['var6'])).'" />
<input type="hidden" name="var7" value="'.h(stripslashes($_POST['var7'])).'" />
<input type="hidden" name="page" value="'.$page.'" />
<div class="hr"></div>
<input type="submit" value=" '.t('More..').' " />
</form>');
[/code]
to
[code]
section_content('<form action="'.url('browse/index').'" method="post">
<input type="hidden" name="age_from" value="'.h(stripslashes($_POST['age_from'])).'" />
<input type="hidden" name="age_to" value="'.h(stripslashes($_POST['age_to'])).'" />
<input type="hidden" name="location" value="'.h(stripslashes($_POST['location'])).'" />
<input type="hidden" name="gender" value="'.h(stripslashes($_POST['gender'])).'" />
<input type="hidden" name="var1" value="'.h(stripslashes($_POST['var1'])).'" />
<input type="hidden" name="var2" value="'.h(stripslashes($_POST['var2'])).'" />
<input type="hidden" name="var3" value="'.h(stripslashes($_POST['var3'])).'" />
<input type="hidden" name="var4" value="'.h(stripslashes($_POST['var4'])).'" />
<input type="hidden" name="var5" value="'.h(stripslashes($_POST['var5'])).'" />
<input type="hidden" name="var6" value="'.h(stripslashes($_POST['var6'])).'" />
<input type="hidden" name="var7" value="'.h(stripslashes($_POST['var7'])).'" />
<input type="hidden" name="var8" value="'.h(stripslashes($_POST['var8'])).'" />

            &lt;input type="hidden" name="page" value="'.$page.'" /&gt;
            &lt;div class="hr"&gt;&lt;/div&gt;
            &lt;input type="submit" value=" '.t('More..').' " /&gt;
            &lt;/form&gt;');

[/code]
and add var9, var10,..... if needed

Jcow Master @falcone
114 months ago
How to display all member fields questions from the ones in the profile.
113 months ago
@falcone How to display all members fields new questions from the ones in the profile?
113 months ago
0

I followed all the steps and new questions appear MEMBER PROFILE FIELDS but in all 7 questions that have been added members appear field.

How to display all member fields questions from the ones in the profile.

Deporteando @albertof
113 months ago
@albertof function details, in pages.inc.php change the number 7
113 months ago
@falcone I have already changed the profile and only leave the first 7
113 months ago
@falcone in true members if questions are added
113 months ago
@falcone and checking in but also just 7 profile
113 months ago