Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 07:38 am EST

Geeklog Forums

Storyeditor.thtml


Paul

Anonymous
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.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Paul: Where do I find the code for those "procedures"? In which file?

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
 Quote

Paul

Anonymous
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.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
$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
 Quote

Paul

Anonymous
Sorry...where is the language file?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
/path/to/geeklog/language/english.php (or whatever language you're using).

bye, Dirk
 Quote

Paul

Anonymous
I want to change this code:

Text Formatted 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.
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
what would you like to change it too? and why?
 Quote

Paul

Anonymous
I want to add another option.

Anyone knows how to do it?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Adding an option won't help you much - you'll also need some PHP code that handles the option ...

bye, Dirk
 Quote

Paul

Anonymous
Quote by Dirk: Adding an option won't help you much - you'll also need some PHP code that handles the option ...


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
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512

admin/story.php

don't break it
 Quote

Paul

Anonymous
Quote by machinari:
admin/story.php

don't break it


Can you please tell me what I have to edit cause I've been trying a lot of things but it's not working.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Paul: Can you please tell me what I have to edit

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
 Quote

BC

Anonymous
I'd like to change the default to HTML formatted ... how is this done?
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
Change it in the config.php.
 Quote

All times are EST. The time is now 07:38 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content