Spoiler on Forumotion and topic description

Post new topic   Reply to topic

View previous topic View next topic Go down

Spoiler on Forumotion and topic description

Post by russelcrew™ on October 31st 2009, 11:35 pm

i saw the new update on forumotion about the spoiler when posting images.
with enlarge and reduce size as well as the full image size.

how to work for it so? thanks

------------
about making new topic, under subject, there is description, how to activate it?

russelcrew™
Forumotion Member

Posts: 112
Language: english
Country:
Join date: 2009-04-11

Back to top Go down

Re: Spoiler on Forumotion and topic description

Post by DarkPoint on November 1st 2009, 3:27 am

Activate description go to administration panel => general => messages and emails => topics => Allow topics description : YES => Save


Resizing images: phpBB2 (templates)

--> privmsgs_preview.tpl and posting_preview.tpl and privmsgs_read_body.tpl

Spoiler:
¤ Replace:
Code:
{MESSAGE}


With:

Code:
{MESSAGE}



--> viewtopic_body.tpl and viewcomments_body.tpl
Spoiler:

Replace
Code:
[/b]
                   
                    {postrow.displayed.MESSAGE}
                   
                    {postrow.displayed.SIGNATURE}
                 


With

Code:

                   
                    {postrow.displayed.MESSAGE}
                   
                    {postrow.displayed.SIGNATURE}
                 




[b]--> privmsgs_topic_review.tpl

Spoiler:
Replace
Code:
{postrow.MESSAGE}

With
Code:
{postrow.MESSAGE}


--> posting_topic_review.tpl
Spoiler:
Replace
Code:
{postrow.displayed.MESSAGE}

With
Code:
{postrow.displayed.MESSAGE}


--> mod_news.tpl

Spoiler:
Replace all with:
Code:


 
     
 
[table width="100%" border="0" cellpadding="0" cellspacing="0"][tr][td height="2px"][/td][/tr][/table]

 
     
 
 
 
   
 
 
     
 
 
 
   
 
[table class="forumline mod_news" width="100%" border="0" cellpadding="0" cellspacing="1"][tr][td class="catLeft" height="25"]
        {post_row.TITLE}
      [/td][/tr][tr][td class="row2" height="24"]
class="gensmall">[img]%7BICON_TIME%7D[/img]
/>{post_row.TIME} {BY}
[b]{post_row.POSTER}[/b][/td][/tr][tr][td class="row1"]
       
            {post_row.TEXT}


            {post_row.OPEN}
            [url=http://help.forumotion.com/%7Bpost_row.U_READ_FULL%7D]{post_row.L_READ_FULL}[/url]
            {post_row.CLOSE}
       
      [/td][/tr][tr][td class="row3" height="24"]
class="gensmall">[url=http://help.forumotion.com/]
href="{post_row.U_VIEW_COMMENTS}">{L_COMMENTS}[/url]:
{post_row.REPLIES}[/td][/tr][/table]



//$(function(){
  $('.mod_news .content img').not('.signature_div img').css('display','none');
});
$(window).load(function(){
  $('.mod_news .content img')
      .each(function(){
 
      if ( ( $(this).width() >
{switch_image_resize.IMG_RESIZE_WIDTH} &&
{switch_image_resize.IMG_RESIZE_WIDTH} != 0 ) || ( $(this).height()
> {switch_image_resize.IMG_RESIZE_HEIGHT} &&
{switch_image_resize.IMG_RESIZE_HEIGHT} != 0 ) ) {
            $(this)
              .before(document.createElement('div'))
              .prev()
              .click(function(){
                  return false;
              })
              .addClass('resizebox gensmall clearfix')
              .append(document.createElement('div'))
              .children()
              .addClass('resize_border clearfix')
              .append(document.createElement('div'))
              .children()
              .addClass('resize_content clearfix')
              .append(document.createElement('a'))
              .children()
              .addClass('enlarge')
              .attr('href', '#')
              .text('{switch_image_resize.L_IMAGE_ENLARGE}')
              .focus(function(){
                  $(this).blur();
              })
              .click(function(){
 
             
 $(this).parent().parent().parent().next().css('display','none').attr('resizeWidth',
$(this).parent().parent().parent().next().width()).width('');
   
         
 $(this).parent().parent().parent().next().width($(this).parent().parent().parent().next().width()
> ($('html').attr('dir') != 'rtl' ? $(this).closest('td').width() -
$(this).parent().parent().parent().offset().left +
$(this).closest('td').offset().left :
$(this).parent().parent().parent().width() +
$(this).parent().parent().parent().offset().left -
$(this).closest('td').offset().left) ? $('html').attr('dir') != 'rtl' ?
$(this).closest('td').width() -
$(this).parent().parent().parent().offset().left +
$(this).closest('td').offset().left :
$(this).parent().parent().parent().width() +
$(this).parent().parent().parent().offset().left -
$(this).closest('td').offset().left : '').css('display','inline');
                  $(this).css('display','none').next('a.resize').css('display','inline-block');
                  $(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
                  return false;
              })
              .parent()
              .append(document.createElement('a'))
              .children()
              .next()
              .addClass('resize')
              .attr('href','#')
              .text('{switch_image_resize.L_CLICK_TO_RESIZE}')
              .click(function(){
 
             
 $(this).parent().parent().parent().next().width(parseInt($(this).parent().parent().parent().next().attr('resizeWidth'))).removeAttr('resizeWidth');
                  $(this).css('display','none').prev('a.enlarge').css('display','inline-block');
                  $(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
                  return false;
              })
              .parent()
              .append(document.createElement('div'))
              .children('a.resize')
              .next()
              .addClass('resize_filler')
              .text(' ')
              .parent()
              .append(document.createElement('a'))
              .children('div.resize_filler')
              .next()
              .addClass('fullsize')
              .attr('href','#')
              .click(function(){
 
                window.open('/viewimage.forum?u=' +
encodeURIComponent($(this).parent().parent().parent().next().attr('src')));
                  return false;
              })
              .attr('target', '_blank')
              .text('{switch_image_resize.L_CLICK_TO_SEE_FULLSIZE}');
 
          if ($(this).width() > ($('html').attr('dir') != 'rtl' ?
$(this).closest('td').width() - $(this).prev().offset().left +
$(this).closest('td').offset().left : $(this).prev().width() +
$(this).prev().offset().left - $(this).closest('td').offset().left)){
 
         
 $(this).prev().find('a.fullsize').attr('href','/viewimage.forum?u=' +
encodeURIComponent($(this).attr('src'))).css('display', 'inline-block');
            }
 
          $(this).width($(this).width() * ( (
{switch_image_resize.IMG_RESIZE_WIDTH} != 0 && (
{switch_image_resize.IMG_RESIZE_HEIGHT} == 0 || $(this).width() /
$(this).height() > {switch_image_resize.IMG_RESIZE_WIDTH} /
{switch_image_resize.IMG_RESIZE_HEIGHT} ) )
                  ? {switch_image_resize.IMG_RESIZE_WIDTH} / $(this).width()
                  : {switch_image_resize.IMG_RESIZE_HEIGHT} / $(this).height() ) )
              .css('display','inline')
              .prev().width($(this).width());
        }
      })
      .css('display','inline');
});
//]]>



--> viewtopic_body.tpl and posting_body.tpl and privmsgs_read_body.tpl and viewcomments_body.tpl

Spoiler:
¤ Add to end:
Code:


//$(function(){
  $('.postbody img').not('.signature_div img').css('display','none');
});
$(window).load(function(){
  $('.postbody img')
      .not('div.signature_div img')
      .each(function(){
 
      if ( ( $(this).width() >
{switch_image_resize.IMG_RESIZE_WIDTH} &&
{switch_image_resize.IMG_RESIZE_WIDTH} != 0 ) || ( $(this).height()
> {switch_image_resize.IMG_RESIZE_HEIGHT} &&
{switch_image_resize.IMG_RESIZE_HEIGHT} != 0 ) ) {
            $(this)
              .before(document.createElement('div'))
              .prev()
              .click(function(){
                  return false;
              })
              .addClass('resizebox gensmall clearfix')
              .append(document.createElement('div'))
              .children()
              .addClass('resize_border clearfix')
              .append(document.createElement('div'))
              .children()
              .addClass('resize_content clearfix')
              .append(document.createElement('a'))
              .children()
              .addClass('enlarge')
              .attr('href', '#')
              .text('{switch_image_resize.L_IMAGE_ENLARGE}')
              .focus(function(){
                  $(this).blur();
              })
              .click(function(){
 
             
 $(this).parent().parent().parent().next().css('display','none').attr('resizeWidth',
$(this).parent().parent().parent().next().width()).width('');
   
         
 $(this).parent().parent().parent().next().width($(this).parent().parent().parent().next().width()
> ($('html').attr('dir') != 'rtl' ? $(this).closest('td').width() -
$(this).parent().parent().parent().offset().left +
$(this).closest('td').offset().left :
$(this).parent().parent().parent().width() +
$(this).parent().parent().parent().offset().left -
$(this).closest('td').offset().left) ? $('html').attr('dir') != 'rtl' ?
$(this).closest('td').width() -
$(this).parent().parent().parent().offset().left +
$(this).closest('td').offset().left :
$(this).parent().parent().parent().width() +
$(this).parent().parent().parent().offset().left -
$(this).closest('td').offset().left : '').css('display','inline');

                  $(this).css('display','none').next('a.resize').css('display','inline-block');
                  $(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
                  return false;
              })
              .parent()
              .append(document.createElement('a'))
              .children()
              .next()
              .addClass('resize')
              .attr('href','#')
              .text('{switch_image_resize.L_CLICK_TO_RESIZE}')
              .click(function(){
 
             
 $(this).parent().parent().parent().next().width(parseInt($(this).parent().parent().parent().next().attr('resizeWidth'))).removeAttr('resizeWidth');
                  $(this).css('display','none').prev('a.enlarge').css('display','inline-block');
                  $(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
                  return false;
              })
              .parent()
              .append(document.createElement('div'))
              .children('a.resize')
              .next()
              .addClass('resize_filler')
              .text(' ')
              .parent()
              .append(document.createElement('a'))
              .children('div.resize_filler')
              .next()
              .addClass('fullsize')
              .attr('href','#')
              .click(function(){
 
                window.open('/viewimage.forum?u=' +
encodeURIComponent($(this).parent().parent().parent().next().attr('src')));
                  return false;
              })
              .attr('target', '_blank')
              .text('{switch_image_resize.L_CLICK_TO_SEE_FULLSIZE}');
 
          if ($(this).width() > ($('html').attr('dir') != 'rtl' ?
$(this).closest('td').width() - $(this).prev().offset().left +
$(this).closest('td').offset().left : $(this).prev().width() +
$(this).prev().offset().left - $(this).closest('td').offset().left)){
 
         
 $(this).prev().find('a.fullsize').attr('href','/viewimage.forum?u=' +
encodeURIComponent($(this).attr('src'))).css('display', 'inline-block');
            }
 
          $(this).width($(this).width() * ( (
{switch_image_resize.IMG_RESIZE_WIDTH} != 0 && (
{switch_image_resize.IMG_RESIZE_HEIGHT} == 0 || $(this).width() /
$(this).height() > {switch_image_resize.IMG_RESIZE_WIDTH} /
{switch_image_resize.IMG_RESIZE_HEIGHT} ) )
                  ? {switch_image_resize.IMG_RESIZE_WIDTH} / $(this).width()
                  : {switch_image_resize.IMG_RESIZE_HEIGHT} / $(this).height() ) )
              .css('display','inline')
              .prev().width($(this).width());
        }
      })
      .css('display','inline');
});
//]]>




--> profile_advanced_body.tpl
Spoiler:
Add to end:
Code:


//$(function(){
  $('.message-text img').not('.signature_div img').css('display','none');
});
$(window).load(function(){
  $('.message-text img')
      .not('div.signature_div img')
      .each(function(){
 
      if ( ( $(this).width() >
{switch_image_resize.IMG_RESIZE_WIDTH} &&
{switch_image_resize.IMG_RESIZE_WIDTH} != 0 ) || ( $(this).height()
> {switch_image_resize.IMG_RESIZE_HEIGHT} &&
{switch_image_resize.IMG_RESIZE_HEIGHT} != 0 ) ) {
            $(this)
              .before(document.createElement('div'))
              .prev()
              .click(function(){
                  return false;
              })
              .addClass('resizebox gensmall clearfix')
              .append(document.createElement('div'))
              .children()
              .addClass('resize_border clearfix')
              .append(document.createElement('div'))
              .children()
              .addClass('resize_content clearfix')
              .append(document.createElement('a'))
              .children()
              .addClass('enlarge')
              .attr('href', '#')
              .text('{switch_image_resize.L_IMAGE_ENLARGE}')
              .focus(function(){
                  $(this).blur();
              })
              .click(function(){
 
             
 $(this).parent().parent().parent().next().css('display','none').attr('resizeWidth',
$(this).parent().parent().parent().next().width()).width('');
   
         
 $(this).parent().parent().parent().next().width($(this).parent().parent().parent().next().width()
> ($('html').attr('dir') != 'rtl' ?
$(this).closest('.message-text').width() -
$(this).parent().parent().parent().offset().left +
$(this).closest('.message-text').offset().left :
$(this).parent().parent().parent().width() +
$(this).parent().parent().parent().offset().left -
$(this).closest('.message-text').offset().left) ? $('html').attr('dir')
!= 'rtl' ? $(this).closest('.message-text').width() -
$(this).parent().parent().parent().offset().left +
$(this).closest('.message-text').offset().left :
$(this).parent().parent().parent().width() +
$(this).parent().parent().parent().offset().left -
$(this).closest('.message-text').offset().left :
'').css('display','inline');
                  $(this).css('display','none').next('a.resize').css('display','inline-block');
                  $(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
                  return false;
              })
              .parent()
              .append(document.createElement('a'))
              .children()
              .next()
              .addClass('resize')
              .attr('href','#')
              .text('{switch_image_resize.L_CLICK_TO_RESIZE}')
              .click(function(){
 
             
 $(this).parent().parent().parent().next().width(parseInt($(this).parent().parent().parent().next().attr('resizeWidth'))).removeAttr('resizeWidth');
                  $(this).css('display','none').prev('a.enlarge').css('display','inline-block');
                  $(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
                  return false;
              })
              .parent()
              .append(document.createElement('div'))
              .children('a.resize')
              .next()
              .addClass('resize_filler')
              .text(' ')
              .parent()
              .append(document.createElement('a'))
              .children('div.resize_filler')
              .next()
              .addClass('fullsize')
              .attr('href','#')
              .click(function(){
 
                window.open('/viewimage.forum?u=' +
encodeURIComponent($(this).parent().parent().parent().next().attr('src')));
                  return false;
              })
              .attr('target', '_blank')
              .text('{switch_image_resize.L_CLICK_TO_SEE_FULLSIZE}');
 
          if ($(this).width() > ($('html').attr('dir') != 'rtl' ?
$(this).closest('.message-text').width() - $(this).prev().offset().left
+ $(this).closest('.message-text').offset().left :
$(this).prev().width() + $(this).prev().offset().left -
$(this).closest('.message-text').offset().left)){
           
 $(this).prev().find('a.fullsize').attr('href','/viewimage.forum?u=' +
encodeURIComponent($(this).attr('src'))).css('display', 'inline-block');
            }
 
          $(this).width($(this).width() * ( (
{switch_image_resize.IMG_RESIZE_WIDTH} != 0 && (
{switch_image_resize.IMG_RESIZE_HEIGHT} == 0 || $(this).width() /
$(this).height() > {switch_image_resize.IMG_RESIZE_WIDTH} /
{switch_image_resize.IMG_RESIZE_HEIGHT} ) )
                  ? {switch_image_resize.IMG_RESIZE_WIDTH} / $(this).width()
                  : {switch_image_resize.IMG_RESIZE_HEIGHT} / $(this).height() ) )
              .css('display','inline')
              .prev().width($(this).width());
        }
      })
      .css('display','inline');
});
//]]>



--> topics_blog_box.tpl

Spoiler:
Add to end:
Code:


//$(function(){
  $('.blog_message img').not('.signature_div img').css('display','none');
});
$(window).load(function(){
  $('.blog_message img')
      .each(function(){
 
      if ( ( $(this).width() >
{switch_image_resize.IMG_RESIZE_WIDTH} &&
{switch_image_resize.IMG_RESIZE_WIDTH} != 0 ) || ( $(this).height()
> {switch_image_resize.IMG_RESIZE_HEIGHT} &&
{switch_image_resize.IMG_RESIZE_HEIGHT} != 0 ) ) {
            $(this)
              .before(document.createElement('div'))
              .prev()
              .click(function(){
                  return false;
              })
              .addClass('resizebox gensmall clearfix')
              .append(document.createElement('div'))
              .children()
              .addClass('resize_border clearfix')
              .append(document.createElement('div'))
              .children()
              .addClass('resize_content clearfix')
              .append(document.createElement('a'))
              .children()
              .addClass('enlarge')
              .attr('href', '#')
              .text('{switch_image_resize.L_IMAGE_ENLARGE}')
              .focus(function(){
                  $(this).blur();
              })
              .click(function(){
 
             
 $(this).parent().parent().parent().next().css('display','none').attr('resizeWidth',
$(this).parent().parent().parent().next().width()).width('');
   
         
 $(this).parent().parent().parent().next().width($(this).parent().parent().parent().next().width()
> ($('html').attr('dir') != 'rtl' ? $(this).closest('td').width() -
$(this).parent().parent().parent().offset().left +
$(this).closest('td').offset().left :
$(this).parent().parent().parent().width() +
$(this).parent().parent().parent().offset().left -
$(this).closest('td').offset().left) ? ($('html').attr('dir') != 'rtl'
? $(this).closest('td').width() -
$(this).parent().parent().parent().offset().left +
$(this).closest('td').offset().left :
$(this).parent().parent().parent().width() +
$(this).parent().parent().parent().offset().left -
$(this).closest('td').offset().left) : '').css('display','inline');
                 
                  $(this).css('display','none').next('a.resize').css('display','inline-block');
                  $(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
                  return false;
              })
              .parent()
              .append(document.createElement('a'))
              .children()
              .next()
              .addClass('resize')
              .attr('href','#')
              .text('{switch_image_resize.L_CLICK_TO_RESIZE}')
              .click(function(){
 
             
 $(this).parent().parent().parent().next().width(parseInt($(this).parent().parent().parent().next().attr('resizeWidth'))).removeAttr('resizeWidth');
                  $(this).css('display','none').prev('a.enlarge').css('display','inline-block');
                  $(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
                  return false;
              })
              .parent()
              .append(document.createElement('div'))
              .children('a.resize')
              .next()
              .addClass('resize_filler')
              .text(' ')
              .parent()
              .append(document.createElement('a'))
              .children('div.resize_filler')
              .next()
              .addClass('fullsize')
              .attr('href','#')
              .click(function(){
 
                window.open('/viewimage.forum?u=' +
encodeURIComponent($(this).parent().parent().parent().next().attr('src')));
                  return false;
              })
              .attr('target', '_blank')
              .text('{switch_image_resize.L_CLICK_TO_SEE_FULLSIZE}');
 
          if ($(this).width() > ($('html').attr('dir') != 'rtl' ?
$(this).closest('td').width() - $(this).prev().offset().left +
$(this).closest('td').offset().left : $(this).prev().width() +
$(this).prev().offset().left - $(this).closest('td').offset().left)){
 
         
 $(this).prev().find('a.fullsize').attr('href','/viewimage.forum?u=' +
encodeURIComponent($(this).attr('src'))).css('display', 'inline-block');
            }
 
          $(this).width($(this).width() * ( (
{switch_image_resize.IMG_RESIZE_WIDTH} != 0 && (
{switch_image_resize.IMG_RESIZE_HEIGHT} == 0 || $(this).width() /
$(this).height() > {switch_image_resize.IMG_RESIZE_WIDTH} /
{switch_image_resize.IMG_RESIZE_HEIGHT} ) )
                  ? {switch_image_resize.IMG_RESIZE_WIDTH} / $(this).width()
                  : {switch_image_resize.IMG_RESIZE_HEIGHT} / $(this).height() ) )
              .css('display','inline')
              .prev().width($(this).width());
        }
      })
      .css('display','inline');
});
//]]>





http://help.forumotion.com/updates-and-new-features-f1/new-update-25-fresh-functionalities-for-your-pleasure-t57131.htm

DarkPoint
Forumotion Member

Male
Posts: 907
Age: 13
Language: Romanian & Spanish & English & Catalan & HTML & BBCode & Little Javascript and french
Location: Ploiesti,Romania
Country:
Join date: 2009-09-11

http://www.our-time.forumz.ro

Back to top Go down

Re: Spoiler on Forumotion and topic description

Post by russelcrew™ on November 4th 2009, 7:12 pm

it did not work.

russelcrew™
Forumotion Member

Posts: 112
Language: english
Country:
Join date: 2009-04-11

Back to top Go down

Re: Spoiler on Forumotion and topic description

Post by russelcrew™ on November 4th 2009, 7:20 pm

i have completed to do all the instructions. and i think i did not put wrong, but it seems. nothing happeneed

russelcrew™
Forumotion Member

Posts: 112
Language: english
Country:
Join date: 2009-04-11

Back to top Go down

Re: Spoiler on Forumotion and topic description

Post by kirk on November 4th 2009, 7:25 pm

russelcrew™ wrote:it did not work.


what dint work the codes?

before adding the codes i would check and see if you have the new features or not.
I dont think you have to do this for all the forums. i have one phpbb2 board where so far i dint have to do anything but another phpbb2 i did.

but one board is a public forum and the other is a test board. so the test board has a lot of different stuff missing already so i may be wrong.

anyway the image thing.. you have to set the dimensions on what you want you images to be re sized to. check and see if you have the option to do so.

Admin panel>general>configuration

Scroll down to almost the bottom of the list and you will see.
(Images resize) simply set the dimensions to what you wish and hit save.
Now all images with the acception of click-able thumb nails will re-size to the dimensions you have set.

kirk
Support Moderator
Support Moderator

Male
Posts: 3527
Language: Ebonics
Country:
Join date: 2008-09-17

http://freeforummakers.forumotion.com/portal.htm

Back to top Go down

Re: Spoiler on Forumotion and topic description

Post by russelcrew™ on November 4th 2009, 9:21 pm

although i have checked the description to yes and set the image to the minimum size. still, the description for the modification/identification of the message is not visible and the image is still the size of the original size Smile

russelcrew™
Forumotion Member

Posts: 112
Language: english
Country:
Join date: 2009-04-11

Back to top Go down

Re: Spoiler on Forumotion and topic description

Post by kirk on November 4th 2009, 11:32 pm

russelcrew™ wrote:although i have checked the description to yes and set the image to the minimum size. still, the description for the modification/identification of the message is not visible and the image is still the size of the original size Smile


well then it may be that you have to add the codes like DarkPoint as suggested the first time.

take your time and try to add the template codes and publish once again.

but before you do that. go back and put these dimensions in and see if there's any difference 320 x 240.

if it dose not work then it means it's definitely has to be that the template codes need to be added.

kirk
Support Moderator
Support Moderator

Male
Posts: 3527
Language: Ebonics
Country:
Join date: 2008-09-17

http://freeforummakers.forumotion.com/portal.htm

Back to top Go down

Re: Spoiler on Forumotion and topic description

Post by russelcrew™ on November 22nd 2009, 4:10 pm

^ i have already done what have you said above. but then, it didnt work

russelcrew™
Forumotion Member

Posts: 112
Language: english
Country:
Join date: 2009-04-11

Back to top Go down

Re: Spoiler on Forumotion and topic description

Post by MrMario on November 22nd 2009, 4:13 pm

Did you click the + Icon to confirm the new templates?

_________________

|Lost Password?|-|FAQ|-|Contact Typlo for a Domain Transfer Code|-|Complaint Against a Forum|
PM Support & PM About Your Topic Is Not Allowed

MrMario
Global Moderator
Global Moderator

Male
Posts: 9079
Age: 19
Language: English, HTML, XHTML XML, JavaScript, CSS and PERL
Location: USA
Country:
Join date: 2008-06-10

Back to top Go down

Re: Spoiler on Forumotion and topic description

Post by russelcrew™ on November 22nd 2009, 4:18 pm

^ yes of course.

russelcrew™
Forumotion Member

Posts: 112
Language: english
Country:
Join date: 2009-04-11

Back to top Go down

Re: Spoiler on Forumotion and topic description

Post by darren1 on November 22nd 2009, 5:10 pm

Hello

It doesn't appear that you have been given the right code to edit for the topics description

--> posting_body.tpl and posting_body_wysiwyg.tpl
Locate:

Code:
<!-- BEGIN switch_subject -->

<!-- END switch_subject -->


Immediately after this add:
Code:
<!-- BEGIN switch_description -->
<tr>
<td class="row1" width="22%"><span class="gen"><b>{L_DESCRIPTION}</b></span></td>
<td class="row2" width="78%">
    <span class="gen">
        <input class="post" style="width:450px" type="text" name="description" value="{DESCRIPTION}" maxlength="{TOPIC_DESCRIPTION_MAXLENGTH}" onkeypress="if (event.keyCode==13){return false;}" />
    </span>
</td>
</tr>
<!-- END switch_description -->


Also in
--> topics_list_box.tpl
Locate
Code:
<div class="topictitle">
            {topics_list_box.row.NEWEST_POST_IMG}{topics_list_box.row.PARTICIPATE_POST_IMG}{topics_list_box.row.TOPIC_TYPE}
            <h2 class="topic-title">
              <a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a>
            </h2>
        </div>


Immediately after it add:
Code:
 <!-- BEGIN switch_description -->
        <span class="genmed">
            <br />
            {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
        </span>
        <!-- END switch_description -->


Ensure you publish the editing too, but otherwise I believe these codes to be correct Smile

darren1
Forumotion Member

Male
Posts: 6581
Age: 17
Language: Traditional Australian, Australian, English
Location: Yups I'm back | Support mode: On - Active
Country:
Join date: 2008-07-10

Back to top Go down

View previous topic View next topic Back to top


Permissions of this forum:
You cannot reply to topics in this forum