Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently October 10th, 2024, 11:25 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Replacing images and Text
PostPosted: March 11th, 2014, 7:57 am 
Offline

Joined: July 5th, 2011, 2:51 pm
Posts: 44
Opus: Opus Pro 8
OS: Windows 10; 64-bit operating system
System: Intel(R) Core(TM) i5 CPU, 4.00GB (RAM)
Hi there! :D
Using Opus Pro 8. Making a Standalone Publication (unless suggested otherwise)

I have two questions:

1. I would like to know if it is possible to have my user - for example - be able to change an image that is already on the publication and then storing it so that it is the same picture when the user opens the publication again? Like changing their user profile picture for example.

I've managed to get the image to change but when I close the published publication and reopen it, the image resets to it's original picture.

2. Also, I would like the user to be able to change text that already exists on the publication and then saving it so that it is the same when they reopen the publication? For example: Say they want to change their personal details.

I've managed to get the Text to change, but whenever the published publication is reopened the text resets to it's original state.

Do I need to create some sort of database to store the images and text or is there another way?

Thanks!


For this message Animellarx has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Replacing images and Text
PostPosted: March 11th, 2014, 9:47 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Yes, it's all possible and should be reasonably straightforward.

Personally, I'd use an INI file for the configuration details. Just set some default values such as the image path, personal details and then read this at start-up. If the user changes the image or details, just update the INI file and the new configuration will be read at start-up.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


For this message mackavi has been thanked by : Animellarx


Top
 Profile Visit website  
 
 Post subject: Re: Replacing images and Text
PostPosted: March 11th, 2014, 9:57 am 
Offline

Joined: July 5th, 2011, 2:51 pm
Posts: 44
Opus: Opus Pro 8
OS: Windows 10; 64-bit operating system
System: Intel(R) Core(TM) i5 CPU, 4.00GB (RAM)
Thanks for the reply!

Can you tell me how to go about making this INI file.. I've never used such a format so I'm not familiar with the process.

Regards


For this message Animellarx has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Replacing images and Text
PostPosted: March 11th, 2014, 10:54 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
INI files are just text files with the extension .ini - there will be loads on your computer you can view as examples. Just create a new one in notepad and change the .txt to an .ini

It's made up of sections and keys:

Code:
[SECTION_A]
name=mack
age=very old
photo=stunning_picture.jpg
[SECTION_B]
name=
age=
photo=


The Opus Script help has simple instructions on using INI files and there are pages and pages on the forum of questions / answer.

I may have an old prototype from long, long ago - and if I do and can find it, I'll post later.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


For this message mackavi has been thanked by : Animellarx


Top
 Profile Visit website  
 
 Post subject: Re: Replacing images and Text
PostPosted: March 13th, 2014, 2:03 pm 
Offline

Joined: July 5th, 2011, 2:51 pm
Posts: 44
Opus: Opus Pro 8
OS: Windows 10; 64-bit operating system
System: Intel(R) Core(TM) i5 CPU, 4.00GB (RAM)
Any luck on finding that prototype Mack? :D

Can the information on the .INI file be displayed on a text box? Like read from it? Or is there a different method to call up the .INI file to be able to change the information and store it?

Regards


For this message Animellarx has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Replacing images and Text
PostPosted: March 13th, 2014, 3:49 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Sorry, got very sidetracked.

Found the example, some simple quiz that pulls the data from a sample INI.

Mack
https://twitter.com/imsmackavi


You do not have the required permissions to view the files attached to this post.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


For this message mackavi has been thanked by : Animellarx


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group