Posted on: 08/07/04 05:43pm
By: Anonymous (Paul)
I opened Storyeditor.thtml and I found those like {featured_options}, etc.
Where do I find the code for those "procedures"? In which file?
I'm new to PHP and Geeklog. Thanks for your help.
Storyeditor.thtml
Posted on: 08/07/04 05:57pm
By: Dirk
[QUOTE BY= Paul] Where do I find the code for those "procedures"? In which file?[/QUOTE]
We call them variables. They're set in the file that uses the template. So in case of the storyeditor.thtml, it's admin/story.php
bye, Dirk
Storyeditor.thtml
Posted on: 08/07/04 06:03pm
By: Anonymous (Paul)
Thanks Dirk.
I want to edit the HTML code outputted by {lang_postmode}. I can't find the HTML code that is outputted by that variable in the admin/story.php.
Thanks for your help.
Storyeditor.thtml
Posted on: 08/07/04 06:33pm
By: Dirk
$story_templates->set_var('lang_postmode', $LANG24[4]);
which means that it pulls the text that will replace {lang_postmode} from the language file.
bye, Dirk
Storyeditor.thtml
Posted on: 08/07/04 06:39pm
By: Anonymous (Paul)
Sorry...where is the language file?
Storyeditor.thtml
Posted on: 08/07/04 07:04pm
By: Dirk
/path/to/geeklog/language/english.php (or whatever language you're using).
bye, Dirk
Storyeditor.thtml
Posted on: 08/07/04 07:23pm
By: Anonymous (Paul)
I want to change this code:
<select name="postmode">
<option value="html">HTML Formatted</option>
<option value="plaintext" selected="selected">Plain Old Text</option>
</select>
Anyone know how to do it?
Thanks for all your help.
Storyeditor.thtml
Posted on: 08/08/04 03:28am
By: machinari
what would you like to change it too? and why?
Storyeditor.thtml
Posted on: 08/08/04 08:51am
By: Anonymous (Paul)
I want to add another option.
Anyone knows how to do it?
Storyeditor.thtml
Posted on: 08/08/04 12:11pm
By: Dirk
Adding an option won't help you much - you'll also need some PHP code that handles the option ...
bye, Dirk
Storyeditor.thtml
Posted on: 08/08/04 12:49pm
By: Anonymous (Paul)
[QUOTE BY= Dirk] Adding an option won't help you much - you'll also need some PHP code that handles the option ...
[/QUOTE]
yes, my programmer will take care of the PHP code
I just need to know what file to edit to add that option
Thanks for all your help
Storyeditor.thtml
Posted on: 08/08/04 02:16pm
By: machinari
admin/story.php
don't break it
Storyeditor.thtml
Posted on: 08/08/04 02:25pm
By: Anonymous (Paul)
[QUOTE BY= machinari]
admin/story.php
don't break it [/QUOTE]
Can you please tell me what I have to edit cause I've been trying a lot of things but it's not working.
Storyeditor.thtml
Posted on: 08/08/04 05:00pm
By: Dirk
[QUOTE BY= Paul] Can you please tell me what I have to edit[/QUOTE]
The story editor form is built and displayed in function storyeditor and when you hit the "save" button, it comes back in through function submitstory and saves the story.
Anything else would need quite a few explanations, so you'd better let your PHP programmer figure that out (it shouldn't be too hard).
bye, Dirk
Storyeditor.thtml
Posted on: 01/20/06 10:08pm
By: Anonymous (BC)
I'd like to change the default to HTML formatted ... how is this done?
Storyeditor.thtml
Posted on: 01/21/06 01:47am
By: samstone
Change it in the config.php.