Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 07:33 pm EDT

Geeklog Forums

I have 4 images in any article in topic "news" (for example), and i don't want to use [imageX]


Archy

Anonymous
Hi! PLEASE, help me.

I have a topic on my site (for example - News, id=news), and i want to modify code, for NOT_USING [imageX] in stories for this topic, for automate showing images in some standart places.

So, i contribute new story.
I add 4 images.
I want auto skip warning message (no place for images) & i want to save story with images like this template (preview - http://pontoprint.com.ua/art.html):

<table>
<tr>
<td rowspan=2><img src="image1"></td>
<td colspan=3><h2>{story_title}</h2>
{story_anchortag_and_image}{story_introtext} <br /> {edit_link}&nbsp;{page_selector}<br /> {readmore_link} {post_comment_link}<br /> {start_comments_anchortag}{comments_with_count}{end_comments_anchortag}
{start_trackbacks_anchortag}{trackbacks_with_count}{end_trackbacks_anchortag}
</td>
</tr>
<tr>
<td><img src="image2"></td>
<td><img src="image3"></td>
<td><img src="image4"></td>
</tr>
</table>
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
This has been asked for many times and never gotten off the ground. You probably need to write it yourself or have someone write it for you.
 Quote

Archy

Anonymous
Please help with logics.

[imageX] replace with <img ...> when i save the story?
I'll try to edit 917-922 lines in lib-story.php, add <!-- comments --> before <img> tags, comments will be added to article body...

I think, Geeklog do replace 2 times: when i save the story and when i open existing story for edit... I can't understand LOGIC.

I can write it by myself, help with understanding Smile
 Quote

Archy

Anonymous
Lets make a little community for making this patch...
I need help :banghead:
 Quote

Archy

Anonymous
Why you are silent? Help though to something, and together we shall win this problem. I do not ask the ready decision, I ask to help to understand logic.
 Quote

4u

Anonymous
I so understand, that replacement is done twice. First time - at preservation of clause and second time - if clause opens for repeated editing. IMHO it is necessary to edit a code in two places - automatically to add теги at preservation, and to not show them at opening clause for editing.
 Quote

4u

Anonymous
oops... теги = *tags*
 Quote

Archy

Anonymous
So, I have a text.

I consider, that to it 4 images in the certain section will be ALWAYS added.

1. The section of clause, if news - go to 2, else - exit.
2. Actually, there is an addition of a code to the beginning and the end of clause. A question in how to receive codes of the added images and where to disconnect check on presence in the text [imageX]
 Quote

Status: offline

DTrumbower

Forum User
Moderator
Registered: 01/08/03
Posts: 507
Quote by: jmucchiello

This has been asked for many times and never gotten off the ground. You probably need to write it yourself or have someone write it for you.



Joe is more intelligent than me, because I don't have a clue what you are really asking. Oops!
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
He wants there to be a "template" for the stories on his system such that all his stories have similar layout. There's no real way to get access to the story images in the normal Geeklog templates.

Most similar proposals also involve there being more than one template that the story editor can choose at approval/edit time. So it's not just a case of modifying storytext.thtml in the layout directory.
 Quote

Archy

Anonymous
It is absolutely clear that to insert templates is necessary not in .thtml, but in .php files. A question in, where and how. Smile
 Quote

All times are EDT. The time is now 07:33 pm.

  • 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