News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Attachments Positioning

Started by quake101, April 10, 2008, 11:06:49 PM

Previous topic - Next topic

ttuu

when i click in Insert Attachment i see error in the page. the error says:

error: editor_type is not defined
file: http://ladaat.net/forum/Themes/default/script.js?fin11
line: 116


line 116 in script.js is:

// Replaces the currently selected text with the passed text.
function replaceText(text, textarea)
{
[color=red]if(editor_type==1){[/color]
text=BBCodeToHTML(text);
WriteHTML(text,"editor");
}
else{
WriteTEXT(text,"editor");
}
}


thanks for help

GrayFiend

#61
It's good mod. Thank to author. :)
I had translated it to Russian. I hope it will be helpful for someone:

<file name="$themedir/languages/Modifications.russian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['attachment'] = ' [ Вложение ] ';
$txt['attachment_nopermission'] = ' [ Вложение: не хватает прав для просмотра этой информации ] ';
$txt['attachment_invalid'] = ' [ Вложение повреждено или более не существует ] ';
$txt['attachment_disabled'] = ' [ Вложения запрещены правилами форума ] ';
$txt['attachment_insert'] = 'Вставить в текст тег #';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.russian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['attachment'] = ' [ Вложение ] ';
$txt['attachment_nopermission'] = ' [ Вложение: не хватает прав для просмотра этой информации ] ';
$txt['attachment_invalid'] = ' [ Вложение повреждено или более не существует ] ';
$txt['attachment_disabled'] = ' [ Вложения запрещены правилами форума ] ';
$txt['attachment_insert'] = 'Вставить в текст тег #';
]]></add>
</operation>
</file>




EDIT: hmm, seems in code I had pasted it in same charset. :-\
Ok, thying with attached files.

marko_andres


Version SMF: 2.0 RC3
Theme        : Inferno
Portal          : Simple Portal 2.3.2


Por un cambio de conciencia --> http://thezeitgeistmovement.com/

FragaCampos

Yes, i have it on my SMF 1.1.11 forum.

teos55

 SMF 1.1.11   PDX-DK  1.1.9.v1

Modifications :
1.     Bot Buster      1.1       
2.    RSS Feed Icon    1.1    
3.    Aeva ~ Auto-Embed Video & Audio    7.0 
4.    Ad Managment    2.3.1    
5.    SMF 1.0.19 / 1.1.11 Update    
6.    Hide Info Center From Guests    
7.    Google Analytics Code    1.1    
8.    TinyPortal    1.083    
9.    SMF Gallery Lite    2.0.9 
10.    Attachments Positioning    1.2

  Recently installed Attachment poisitioning 1.2   
  Now receiving so many ; 

8: Undefined index: attachment_invalid
File: /usr/hosts2/domains/karavanturk194/www.karavanturk.org/httpdocs/Sources/Display.php
Line: 968


  Lines 966-970 from /sources/display.php ; 
// GRACEFULLY REPLACE BBCODE FOR ANY INVALID/MISSING/DELETED ATTACHMENTS WITH ERROR TEXT STRING
      $pattern = '#\[attachment=([0-9a-z\#\-_ ]{1,10})\]#i'.($context['utf8'] ? 'u' : '') ;
      $output['body'] = preg_replace($pattern, $txt['attachment_invalid'], $output['body']);
   }
    // Attachment Positioniong Mod: End



  Having diffuculty to identify the error.  Users can see the attchments but the error log is full of with this message.
Can you pls shed some light on this ?
All the best
Oğuz


 

ChaosEnergy

please upgrade to a 2.0 rc2 version, or i cant update one of my forums whereit got used a lot :)
Chaos Empire ®

Acer1

I search the mod for SMF RC2 !!!! Help!!!!!!!!!!!!  :o :o

Hope the Mod is Updatet in Time !

Acer1

Hmmm  Help !!!!!!!!!!!!!! This Mod in RC2 !!!!!!!!!!! Please !

Acer1

 :'( :'( Nobody can Help ??????   :'( :'(
Greets Acer

program5

Has anyone tested to see if this works with RC2 ?

Acer1

When i take the Mod for RC2 i have a problem.... when i have click "more attachment insert" the mod show me the Attachment insert

Sorry for my bad English


recived

please upgrade to a 2.0 rc2 version. Блин ну чо когда нить додемся апдейт мода тоооо.

gbsothere

For anyone who cares, by removing this:

<a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" />&nbsp;' . $attachment['name'] . '</a> ('. $attachment['size']. ($attachment['is_image'] ? '. ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)

from the Display.php, all the attachments details, such as name, size, number of times viewed, etc., (along with the paper clip icon) are removed from beneath each attachment.  It is then also possible to place text between each attached image. 

My forum is version 1.1.11; it should work for 2.x, but I've not tested it out.

Just passing it along; it was important to our forum.  It may not be to yours.

:)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

gbsothere

Quote from: kai920 on June 09, 2008, 11:17:41 AM
After a brief look at display.php, I managed to float the images left by inserting a class="smf_attachment" in the <img> statement and adding the corresponding CSS. (see floated.png)




kai920, if you return to this thread, would you elaborate a bit on how, exactly, you did this? 

(Or if any coder stops by who knows, I'd appreciate the input.)


1.1.11, Default
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

program5

Why would anyone want to show attachments like defult ?
Quote from: Bugo on February 23, 2010, 03:39:29 PM
Try this package. For SMF 2.0 RC2

Bugo, sorry but it did not worked for me.
And I dont understand why SMF insists on showing attachmets in a vertical order.


RawDepth

Will there be support for RC3?

Since I updated my forum this mod will not re-install.

RawDepth

Apparently the author has abandoned this mod and is not updating it.  >:(

Can't we get old, unsupported mods removed from this forum?

Does anyone know of a mod to position attachments within the text of a post? (Ah...that works with RC3)

Please?

Anyone?


RawDepth


program5

BUMP !
Still no solution for rc3 ?

Advertisement: