SSpearjr
Forum Replies Created
-
Got it finally. Thanks.
SSVery little progress.
Was able to create function to submit page-name into table field.
Now I should be able to retreive dynamicly (using same page_user) data. Is the code you provided (see above) correct. Still no table data and no errors???
FYI, Table has 4 rows – 2 with identical names in ‘Name’ column.
//Still working on this:
Thanks,Looks like you understand the issue, but it still not return data (no errors either)
MY SHORTCODE:
require_once(ABSPATH . ‘wp-content/plugins/contact-form-7-to-database-extension/CFDBFormIterator.php’);
// Need to “require” whatever file gives you the pg_user_logged() function
$exp = new CFDBFormIterator();
$exp->export($atts[‘form’], $atts);
// Load page user into $userloadvar – this will echo
$user_data = pg_user_logged();
$userloadvar = $user_data->username;
$user_field = “Name”;
$atts[‘filter’] = $user_field . ‘=’ . $userloadvar;
while ($row = $exp->nextRow())
{
echo ‘<h2>’ . $row[‘Name’] . ‘</h2>’;
echo ‘<p>’ . $row[‘LongGoals’] . ‘</p>’;
}SHORTCODE [cfdb-table] returns these fields with rows of data
Submitted, Name, LongGoals, MIDGoals, ShortGoals, Submitted Login, Submitted From
It does not appear that I am reading the database.
SS
Where do you put the code you recommended to ekansh005?
I just need to insert the pg_user_logged() variable.
SS
I am using the ‘PrivateContent’ plugin. So the user I need has to be their user variable and not the Global user variable listed on that page. I am rusty at programming so I was hoping to use the shortcode.
$user_data = pg_user_logged();
echo $user_data->username;I do use this code to display the page login name, and it works. I just need to get this into the [cfdb-table] filter.
Thanks
Almost the same, but I need to use shortcode. Retrieve data where the Name equals the page user. the plugin variable is:
$user_data = pg_user_logged();
echo $user_data->username;How do I get that into [cfdb-table] to only retrieve for the current user.
Thanks,
Forum: Plugins
In reply to: [Contact Form 7] Customizing the boxes and layout of Contact Form 7Hi,
Where exactly do I adjust the height of the textarea?.wpcf7 textarea.wpcf7-textarea { background-color:#89D4FF; border:0px; margin-bottom:6px; padding:8px 5px; font-size:11px; width:75%; height:100px }
Do I place code anywhere in style.css
Forum: Plugins
In reply to: [WordPress Move] [Plugin: WordPress Move] Crashed BlogGot help on other forum page. Back up. I will upgrade to Ver 3.3 now before I try again.
SS
Forum: Installing WordPress
In reply to: Update crashed blogThanks that helped – back up.
Forum: Plugins
In reply to: [WordPress Move] [Plugin: WordPress Move] Crashed BlogI started out by saying it was my fault.
And people should be warned that it will just not work and give an error – it will crash you blog.
Now can someone provide a possible solution, Please.
Thanks,
Forum: Fixing WordPress
In reply to: Index.php copy behaviorI am bringing this issue back to the top. Why would a copy of the index.php not execute properly?
Thanks
Forum: Fixing WordPress
In reply to: Index.php copy behaviorWhat???
(1) My custom loop does not contain any template.
(2) Why would a copy of the index.php file not execute exactly the same and find the blog records?