Search found 15 matches

by tiaz1988
Mon Aug 01, 2016 8:15 pm
Forum: Tutorials
Topic: Problem to make upload images in blogpost.php
Replies: 3
Views: 3643

Re: Problem to make upload images in blogpost.php

tiaz1988 wrote: OK I understand. :) I'll try it later.
So I do not need so long code in add_post function.
I only need the one you sent?

Take care
It's working now. Jeppi

Thanks for your time and help.

Take care!
by tiaz1988
Mon Aug 01, 2016 1:33 am
Forum: Tutorials
Topic: Problem to make upload images in blogpost.php
Replies: 3
Views: 3643

Re: Problem to make upload images in blogpost.php

You're almost there, there is just one slight mistake On this line [syntax=php]imagejpeg($thumb, "{$GLOBALS['path']}/avatars/{$_GET['pid']}.jpg");[/syntax] $_GET['pid'] will not be defined. That is the variable you see in the address bar on the edit page so because you're not editing anyt...
by tiaz1988
Mon Aug 01, 2016 12:59 am
Forum: Tutorials
Topic: Blog(including commenting) Tutorial
Replies: 4
Views: 22552

Re: Blog(including commenting) Tutorial

Do you have the products stored in a database or as static pages? You'd need to store the link to the product document in the database and output it to the page here instead of setting a fixed value Ok, I see. So I need to insert the document I want people be able to download in the database first?...
by tiaz1988
Tue Jul 26, 2016 7:46 pm
Forum: Tutorials
Topic: Problem to make upload images in blogpost.php
Replies: 3
Views: 3643

Problem to make upload images in blogpost.php

I have a question, it is so that I have made an edit function to my blog where you can upload a picture and then see it in blogread.php. Everything works so long, but now I want to be able to upload photos directly when I create a post. So I can see the photos directly on bloglist.php. I have used t...
by tiaz1988
Sat Jul 09, 2016 2:30 am
Forum: Tutorials
Topic: comment separate php file so it appear in a div
Replies: 1
Views: 2029

Re: comment separate php file so it appear in a div

I just want to say that I've fixed now, I played around some more and found out that I just needed to add reviews.inc.php so it seems to be a beckend file like my file to the whole blog.
Then I could display my comments for each posts in a div without to loop them in blogread.php flie. :D

Take care!
by tiaz1988
Fri Jul 08, 2016 3:45 pm
Forum: Tutorials
Topic: comment separate php file so it appear in a div
Replies: 1
Views: 2029

comment separate php file so it appear in a div

I have made a product blog using the blog (including commenting) tutorial. My problem is how do I do so I can download all of the comments for each post id? In blogread.php I have made a submenu with these three links. "Product Info", "Document" "reviwes and comments". ...
by tiaz1988
Fri Jul 01, 2016 10:24 pm
Forum: Tutorials
Topic: Blog(including commenting) Tutorial
Replies: 4
Views: 22552

Re: Blog(including commenting) Tutorial

For example, I have created a div in the document read.php blog. In the div, I have done a text "Here you can download the manual" like this: [syntax=xhtml]div id="document"> <p> <span class="documentInfo">Here you can download the manual. Klicka på pdf ikonen nedan.</s...
by tiaz1988
Fri Jul 01, 2016 6:55 pm
Forum: Tutorials
Topic: Blog(including commenting) Tutorial
Replies: 4
Views: 22552

Blog(including commenting) Tutorial

Hello I have a thought. If I have made a product blog using the Blog (including commenting) tutorial. on blogread.php hand I have done a submenu with these links "Product Info", "Documents" and "Reviews and Testimonials". In the "Reviews and Testimonials" Have...
by tiaz1988
Sun Jun 26, 2016 2:49 am
Forum: Tutorials
Topic: Blog (Including Commenting)
Replies: 4
Views: 3571

Re: Blog (Including Commenting)

Have you tried running an error check? [syntax=php]echo mysql_error(); [/syntax] Something seems to break the query, but as far as I can tell it's not a typo. It might be that the host deems the old Mysql-functions too unsecure and will instead force you to use MySqli or PDO. I just want to say tha...
by tiaz1988
Wed Jun 15, 2016 10:15 pm
Forum: Tutorials
Topic: Blog (Including Commenting)
Replies: 4
Views: 3571

Re: Blog (Including Commenting)

What host are you using and what does their MySQL arrangement look like?` Have you tried it on another web host? Misshosting.se I don't know what their mysql arguments look like. Where can I find that documentation? But I've check the query with sql syntex and it's work fine even in their database....
by tiaz1988
Tue Jun 14, 2016 11:46 pm
Forum: Tutorials
Topic: Blog (Including Commenting)
Replies: 4
Views: 3571

Blog (Including Commenting)

What's wrong with this I'll create a blog on my father's company site When I go to the link for bloglist.php So I get this error message: Warning: mysql_fetch_assoc () expects parameter 1 to be resource, boolean given in /home/slahsyir/public_html/rege/func/productblog/core/inc/posts.inc.php on line...
by tiaz1988
Sun Mar 06, 2016 11:37 pm
Forum: Tutorials
Topic: Multiple forms to mailing list
Replies: 4
Views: 5037

Re: Multiple forms to mailing list

Followig code is the start page with the emal form: [syntax=php] <?php require "core/init.inc.php"; $errors = array(); echo 'email-post='.$_POST['email'].'\n'; if(isset($_POST['email'])) { if(filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) === false) { $errors[] = "<span class='err...
by tiaz1988
Fri Mar 04, 2016 8:01 pm
Forum: Tutorials
Topic: Multiple forms to mailing list
Replies: 4
Views: 5037

Multiple forms to mailing list

Hi! I have done a mailing list using the mailing list tutorial, but now I want to do so you just fill in the email address in the form and then once you have clicked on "submit" you should come to another form where you must fill in the first name, last name, etc. In order to be sent to th...
by tiaz1988
Thu Nov 12, 2015 4:49 am
Forum: Tutorials
Topic: Probem with user system reset password
Replies: 2
Views: 3272

Probem with user system reset password

I've a problem with my user system reset password. When I enter my email for reset password I get the mail with the random password string. And it change to the random password in the database too, but when I should login with the random password. I can't log back in why? I've check if I have some e...
by tiaz1988
Mon Nov 09, 2015 2:43 am
Forum: Tutorials
Topic: User System Reset Password
Replies: 1
Views: 2229

User System Reset Password

Hi! I've done this "user reset password" It works fine untill I sholud log back in, then it says that is incorrect username or password. I know that I enter the right, why can't I log back in what can be the problem? It updating password in database and I get the mail and everything, but w...