The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
URL Link direct to View - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17)
+--- Thread: URL Link direct to View (/showthread.php?tid=773)



URL Link direct to View - vizzaroo - Jul 7th, 2010

Hi Ben & Co.

I've setup a statistical page to show the stats of each view (i.e how many submission for each view).

Example:
Code:
<?php
echo ft_api_show_submission_count(4, 351);
?>

What I'm trying to do is directly link the stat to direct the user to their view list. I.E

Males Dogs
10 - (is linked)
Female Dogs
15 -- (is linked)

So when the user clicks on "10" it redirects them to the view list showing those 10 submissions. I understand in order for this to operate they would need to be already logged into their FT accounts, which they are. But after implementing this, once the user clicks on the stat it redirects them to the FORMS Page, rather than the specific list.

Code:
<a href="http://www.yourdomain.com/admin/forms/submissions.php?page=1&view=351" target="_blank">
                                <strong><?php
echo ft_api_show_submission_count(4, 351);
?></strong></a>

Any ideas ?


RE: URL Link direct to View - vizzaroo - Jul 7th, 2010

Nevermind, solved it myself. Smile

use the following code ' added the form_id into the link.

Code:
<a href="http://www.yourdomain/admin/forms/submissions.php?form_id=4&view=357">
                                <strong><?php
echo ft_api_show_submission_count(4, 357);
?></strong></a>



RE: URL Link direct to View - vizzaroo - Jul 7th, 2010

oops, double post.