# Ai create a blog

**URL:** <https://forums.realmacsoftware.com/t/ai-create-a-blog/44867>\
**Category:** Elements API\
**Created:** [October 6, 2024, 9:55am UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867 "2024-10-06T09:55:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 6, 2024, 9:55am UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/1 "2024-10-06T09:55:45Z")

</div>

just for ai practice  
I moved to reset

---

<div class="post-metadata">

**Author:** ![trinube](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@trinube](https://forums.realmacsoftware.com/u/trinube)\
**Post date:** [October 6, 2024, 10:23am UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/2 "2024-10-06T10:23:14Z")

</div>

That’s very cool.

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [October 6, 2024, 12:51pm UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/3 "2024-10-06T12:51:05Z")

</div>

I’m wondering how exactly that works and if it’s actually something you could push further and deploy to a live site (eventually)? 🧐

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 6, 2024, 1:43pm UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/4 "2024-10-06T13:43:26Z")

</div>

@dan see below

[https://we.tl/t-VPqjEsrFss](https://we.tl/t-VPqjEsrFss)

I have now asked cursor to split between blog and another page password protected

I have put both parts of the code in this file marked each section

this link is to the code used in the video above I suppose if you put back into cursor you can ask it check and add to

````auto
https://we.tl/t-tTKOnFgxyn```
````

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 6, 2024, 1:46pm UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/5 "2024-10-06T13:46:37Z")

</div>

I asked this request, re the second link above

‘the blog entry needs to be on another page and password protected’

no idea if it works no time now til later this afternoon, its tailwind so could smarten up

if you the run the first file it drops straight into the password bit

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 6, 2024, 1:55pm UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/6 "2024-10-06T13:55:57Z")

</div>

I was going to ask it to date the big posts after this you will probably put this into Elements better than I can

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 6, 2024, 2:17pm UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/7 "2024-10-06T14:17:46Z")

</div>

```auto
[type or paste code here](https://we.tl/t-RkRfkWWjh9)

```

the admin works in this code straight from cursor, the previous one didnt

just run admin and index

it put a login and log into the code

need to ask it to encrypt password

You can see the password in the file admin123

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 6, 2024, 2:46pm UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/8 "2024-10-06T14:46:53Z")

</div>

asked this question - the password in the admin file needs to be hidden to protect encrypt, changed the file see answer below  
not tried it yet

You’re absolutely right. Storing passwords in plain text, even on the client side, is a security risk. In a real-world application, authentication should be handled server-side. However, since we’re working with a client-side only solution, we can improve security by using a hashed version of the password.

Here’s an updated version of the admin.html file that uses a hashed password:

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 6, 2024, 3:46pm UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/9 "2024-10-06T15:46:47Z")

</div>

time stamp edit posts and change password - password protected

> **[admin.html](https://wetransfer.com/downloads/f6363928cf8e15a726fe69a886f894ac20241006155247/106d07?t_exp=1728489167&t_lsid=13c83ab2-e14d-4cc4-b064-b45dcc0f2942&t_rid=YXV0aDB8UGFzdGV8MTg0Nzc1Nzk=&t_s=download_link&t_ts=1728229967)**
>
> 2 files sent via WeTransfer, the simplest way to send your files around the world

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 6, 2024, 3:58pm UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/10 "2024-10-06T15:58:15Z")

</div>

I put the two html files on my website and these work well first try

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 7, 2024, 7:35am UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/11 "2024-10-07T07:35:17Z")

</div>

@dan progress so far

works from a folder keeps my posts from the start

in Elements need to work out path need some help

Elements project  
[elementsapp://downloadDocument/pluCmmoUYvX9](elementsapp://downloadDocument/pluCmmoUYvX9)

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 7, 2024, 8:59am UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/12 "2024-10-07T08:59:22Z")

</div>

this was the structure I used, files folder

[https://we.tl/t-3TvDgzHi6A](https://we.tl/t-3TvDgzHi6A)

just dropped into another folder run

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 7, 2024, 12:06pm UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/13 "2024-10-07T12:06:07Z")

</div>

more confused now how it works with page0

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 7, 2024, 12:35pm UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/14 "2024-10-07T12:35:00Z")

</div>

this version has return to blog page and a couple of ui colour controls in admin  
works from published page if use page0  
still confused on page0

[elementsapp://downloadDocument/koYVhn5y0xyL](elementsapp://downloadDocument/koYVhn5y0xyL)

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 7, 2024, 2:39pm UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/15 "2024-10-07T14:39:04Z")

</div>

think it works now needs testing from others

here is the Elements file

[elementsapp://downloadDocument/KOFGLCWMmKgY](elementsapp://downloadDocument/KOFGLCWMmKgY)

will need to modify menu bit to fit in with Elements menu I expect

Just publish using Elements the run either index or admin html files, works on my website

need to change the image size add a few more ui controls etc

That was interesting practice, using AI and Elements, enjoyed doing that my mistake at the end with links, back to normal coding now to practice something else

initial password - admin123

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 7, 2024, 3:32pm UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/16 "2024-10-07T15:32:11Z")

</div>

need the new menu options before messing with menu, I placed a menu in the page and it does work jumping to these two pages

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 8, 2024, 10:15am UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/17 "2024-10-08T10:15:36Z")

</div>

ok didn’t like when no image is loaded the title is displayed to this

new Elements project

[elementsapp://downloadDocument/o8FjFoLF2vvk](elementsapp://downloadDocument/o8FjFoLF2vvk)

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 8, 2024, 10:46am UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/18 "2024-10-08T10:46:15Z")

</div>

ignore this one above

search added to admin area and blog page

[elementsapp://downloadDocument/Lrtrg3MBmcW8](elementsapp://downloadDocument/Lrtrg3MBmcW8)

---

<div class="post-metadata">

**Author:** ![Flash](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@Flash](https://forums.realmacsoftware.com/u/Flash)\
**Post date:** [October 8, 2024, 11:50am UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/19 "2024-10-08T11:50:02Z")

</div>

You’re getting there. Pretty cool for a beta version of the app.

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [October 8, 2024, 11:55am UTC](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867/20 "2024-10-08T11:55:06Z")

</div>

never used a blog not sure what is required

[Next page](https://forums.realmacsoftware.com/t/ai-create-a-blog/44867.md?page=2)
