Jump to content

Executing script within a blog post


SharkBait

Recommended Posts

Hi,

 

Ok trying to figure out a decent way of doing this.

 

I have a blog (www.tyleringram.com) which is custom code and what I would like to try and accomplish is be able to write in a blog post say [poll=1]. Pretty much on my site where the poll is located on the left side, I would like to try and add that into the posts that explain what the poll is about.

 

Which would be stored in the MySQL table for the post but when it gets displayed to the user reading the post the script would parse the [poll=1] and then fetch the proper script (html/code etc) which would display the poll to the user

 

Pseudo Example:

This is my blog post about a new poll. Please answer the poll:

[poll=3]

 

After the poll has been answered we'll chat about it.....

 

Script would parse the above text and then display the poll with the id of 3 to the user when they view it...

 

Hopefully this make some sense.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.