The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

I want this code

View previous topic View next topic Go down

I want this code

Post by Syria Web on November 27th 2011, 5:10 pm

helo
I want this code

https://i41.servimg.com/u/f41/16/61/91/38/code13.png
my forum phpBB3
Smile

Syria Web
Forumember

Male Posts : 53
Reputation : 1
Language : Arabic , English , France

http://forum.ba7r.org

Back to top Go down

Re: I want this code

Post by Syria Web on November 27th 2011, 6:37 pm

please help

Syria Web
Forumember

Male Posts : 53
Reputation : 1
Language : Arabic , English , France

http://forum.ba7r.org

Back to top Go down

Re: I want this code

Post by Sanket on November 27th 2011, 6:43 pm

May I remind you that double/triple posting isn't tolerated unless separated by 24 hours (Use the edit button) Wink

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: I want this code

Post by Guest on November 27th 2011, 7:56 pm

I can't find the exact code, but hope this helps you. http://davidwalsh.name/change-text-size-onclick-with-javascript Wink

Guest
Guest


Back to top Go down

Re: I want this code

Post by Syria Web on November 27th 2011, 8:22 pm

Is there any better way?

Syria Web
Forumember

Male Posts : 53
Reputation : 1
Language : Arabic , English , France

http://forum.ba7r.org

Back to top Go down

Re: I want this code

Post by Guest on November 27th 2011, 11:00 pm

You will not find that copyrighted code anywhere except on the forum where you copied that image. I would like to say more about that code, but new rules here prohibit me from doing so.

FYI, the script on the David Walsh site will work on forumotion phpBB3 boards.

Guest
Guest


Back to top Go down

Re: I want this code

Post by Sanket on November 28th 2011, 4:35 am

Dion, if you want to provide help please do so else please refrain from posting information which is an additional advertisement to a different site.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: I want this code

Post by ioncube on November 28th 2011, 5:41 am

@Syria Web wrote:helo
I want this code

https://i41.servimg.com/u/f41/16/61/91/38/code13.png
my forum phpBB3
Smile

search in the website you have taken snapshot from, may the author be generous enough to share this Very good

ioncube
Forumember

Male Posts : 279
Reputation : 41
Language : eng
Location : Pakistan

http://defencedog.blogspot.com/

Back to top Go down

Re: I want this code

Post by Sanket on November 28th 2011, 7:53 am

ioncube, you are already warned for advertising. Here you are again trying to advertise a forum in a indirect way even after reading my previous post.

If you intend to help a user do it, or else just refrain from posting as is mentioned in the rules.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: I want this code

Post by Guest on November 28th 2011, 8:05 am

@Sanket wrote:Dion, if you want to provide help please do so else please refrain from posting information which is an additional advertisement to a different site.
To MrMario: you wondered why I said what I did to you in private. THIS is why.



To the person who started this topic: you ripped that button image from my board, and are asking for code from my board. The code is not available to you, and please do not ask again. Thank you.

Guest
Guest


Back to top Go down

Re: I want this code

Post by Sanket on November 28th 2011, 8:21 am

Fair enough, if you don't wish to share the code ! Next time just ignore the topic, that would be good. Also, if someone is trying to provide your copyright codes to any user, PM any of the staff member & we will be happy to remove it from here.
If you have any replies to this, we can talk via PM's. Thank you.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: I want this code

Post by ioncube on November 29th 2011, 3:52 am

what are the new rules, I didn't come across them

ioncube
Forumember

Male Posts : 279
Reputation : 41
Language : eng
Location : Pakistan

http://defencedog.blogspot.com/

Back to top Go down

Re: I want this code

Post by Sanket on November 29th 2011, 4:13 am


Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: I want this code

Post by ioncube on November 29th 2011, 11:11 am

Then my warning is illegitimate; I can produce evidence that I want given any reminder BEFORE warning...& I was registered for a day or two here then.. bwi

ioncube
Forumember

Male Posts : 279
Reputation : 41
Language : eng
Location : Pakistan

http://defencedog.blogspot.com/

Back to top Go down

Re: I want this code

Post by Sanket on November 29th 2011, 7:22 pm

Firstly, i did not issue you a warning. Its a reminder. Your warning in place is for advertising done previously. If you have any queries, please PM me.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: I want this code

Post by blindbat1457 on November 29th 2011, 8:57 pm

Wait we are not even allowed to mention another site even it is to help a person solve a problem?

blindbat1457
Forumember

Male Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

Back to top Go down

Re: I want this code

Post by Omu on November 29th 2011, 8:57 pm

Add this to CSS:

ACP > Display > Colors > CSS Stylesheet:
Code:
    .controlstyle a{
    outline:none;
    }

    .controlstyle a img{
    border-width:0;
    }

    .controlstyle a.selectedcontrol img{
    border-bottom:4px solid darkred;
    }

Put this HTML where you want
ACP > Display > Generalities:
Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

    /***********************************************
    * Fluid Text Resizer- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
    * This notice must stay intact for legal use
    ***********************************************/

    </script>

    <script type="text/javascript">

    var mytextsizer=new fluidtextresizer({
      controlsdiv: "sizecontroldiv", //id of special div containing your resize controls. Enter "" if not defined
      targets: ["body"], //target elements to resize text within: ["selector1", "selector2", etc]
      levels: 3, //number of levels users can magnify (or shrink) text
      persist: "session", //enter "session" or "none"
      animate: 200 //animation duration of text resize. Enter 0 to disable
    })

    </script>
    <div id="sizecontroldiv" class="controlstyle">
    <!-- BEGIN EDIT -->
    <center>Mareste/micsoreaza fontul!<br>
    <a href="#smaller"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_d10.png" /></a>  <a href="#bigger"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_a10.png" /></a>

    <a href="javascript:mytextsizer.setFontLevel(0)">Fontul de baza al paginii!</a>
    </center>
    <!-- END EDIT -->
    </div>

Edit just this part:

Editing:
Code:
    <center>Mareste/micsoreaza fontul!<br>
    <a href="#smaller"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_d10.png" /></a>  <a href="#bigger"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_a10.png" /></a>

    <a href="javascript:mytextsizer.setFontLevel(0)">Fontul de baza al paginii!</a>
    </center>

Now go to: Javascript codes management
ACP > Modules > Javascript codes management :
Code:
/*Fluid Text Resizer (June 27th, 2010)
* This notice must stay intact for usage
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* Visit http://www.dynamicdrive.com/ for full source code
*/

jQuery.noConflict()

function fluidtextresizer(setting){
   fluidtextresizer.count=(fluidtextresizer.count)? ++fluidtextresizer.count : 1
   this.cookiename="fluidtextsizer"+fluidtextresizer.count //name of cookie to use to store persistence for this text resizer instance
   this.setting=setting
   this.selectors=[] //array translating setting.targets into array of jquery selectors
   this.$controls=null
   this.defaultfontsizes=[]
   this.curfontlevel=0
   var thisobj=this
   jQuery(function($){ //on document.ready
      var els=setting.targets
      for (var i=0; i<els.length; i++){
         if ($(els[i]).length==0){ //if selector doesn't yield any matched elements
            els.splice(i, 1) //delete it from setting.targets[]
            i-=1
            continue
         }
         var curfontsize=$(els[i]).css('fontSize')
         thisobj.defaultfontsizes.push({val:parseFloat(curfontsize), unit:curfontsize.slice(-2)}) //remember default font sizes of target elements
         thisobj.selectors.push($(els[i])) //cache selector
      }
      if (setting.controlsdiv){ //if special container for resize controls defined
         thisobj.$controls=$('#'+setting.controlsdiv).find('a[href^=#fontsize], a[href=#bigger], a[href=#smaller]')
         thisobj.$controls.each(function(){
            var $target=$(this)
            $target.data('level', $target.attr('href').replace(/(#)|(fontsize)/ig, '')) //remove "#" and "fontsize" from href to derive level
            $target.click(function(){
            thisobj.setFontLevel($target.data('level'))
            return false
            })
         })
      }
      if (setting.persisttype!="none"){
         var curfontlevel=fluidtextresizer.routines.getCookie(thisobj.cookiename) || 0 //get persisted font level, or 0 to indicate no change in font size
         curfontlevel=parseInt(curfontlevel)
         if (curfontlevel>=-setting.levels && curfontlevel<=setting.levels){ //if font level within range
            thisobj.setFontLevel(curfontlevel, true)
         }
      }
   })
}

fluidtextresizer.prototype={

   setFontLevel:function(level, disableanim){
      var s=this.setting
      var $els=this.selectors
      var level=(level=="bigger")? this.curfontlevel+1 : (level=="smaller")? this.curfontlevel-1 : parseInt(level) //calculate new font size level
      if (s.controlsdiv){ //if special container for resize controls defined
         this.$controls.filter('.selectedcontrol').removeClass('selectedcontrol').end()  //deselect previously selected control
            .filter('[href=#fontsize'+level+']').addClass('selectedcontrol') //apply "selectedcontrol" CSS class to corresponding control
      }
      if (level<-s.levels || level>s.levels || level==this.curfontlevel) //if target level is out or range (range is int from -s.levels to +s.levels) or is current level already
         return
      for (var i=0; i<$els.length; i++){
         var abslevel=Math.abs(level)
         var valchange=Math.pow(1.2, abslevel) //calculate fontlevel^1.2
         //calculate new font size, which is default font size multiply or divided by valchange:
         var newfontsize=this.defaultfontsizes[i].val * (level<0? 1/valchange : level>0? valchange : 1) + this.defaultfontsizes[i].unit
         $els[i].animate({fontSize: newfontsize}, disableanim? 0 : this.setting.animate)
      }
      if (s.persist=="session"){
         fluidtextresizer.routines.setCookie(this.cookiename, level)
      }
      this.curfontlevel=level
   }

}

fluidtextresizer.routines={
   getCookie:function(Name){
      var re=new RegExp(Name+"=[^;]*", "i"); //construct RE to search for target name/value pair
      return (document·cookie.match(re))? document·cookie.match(re)[0].split("=")[1] : null //return cookie value if found or null
   },
   
   setCookie:function(name, value, days){
      var expirestr=''
      if (typeof days!="undefined") //if set persistent cookie
         expirestr="; expires="+expireDate.setDate(new Date().getDate()+days).toGMTString()
      document·cookie = name+"="+value+"; path=/"+expirestr
   }
}

I hope i help you.

Omu
Active Poster

Male Posts : 1019
Reputation : 86
Language : Romanian, English, French
Location : Romania

http://supportdrops.com/

Back to top Go down

Re: I want this code

Post by Sanket on November 30th 2011, 4:36 am

@blindbat1457 wrote:Wait we are not even allowed to mention another site even it is to help a person solve a problem?
You are allowed to, As long as you link the person to the tutorial which does not require a login. He should be able to view the content of whatever you post without registering.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: I want this code

Post by lBlacKl on November 30th 2011, 5:58 am

stop argument here just help the person or else both of you will be reported?

lBlacKl
Forumember

Male Posts : 202
Reputation : 2
Language : English and Tagalog

http://gfxtutorials.netboarder.com

Back to top Go down

Re: I want this code

Post by Syria Web on November 30th 2011, 2:37 pm

Where do I put this code?
Code:

[list=1]
[*]    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
[*]
[*]    /***********************************************
[*]    * Fluid Text Resizer- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
[*]    * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
[*]    * This notice must stay intact for legal use
[*]    ***********************************************/
[*]
[*]    </script>
[*]
[*]    <script type="text/javascript">
[*]
[*]    var mytextsizer=new fluidtextresizer({
[*]      controlsdiv: "sizecontroldiv", //id of special div containing your resize controls. Enter "" if not defined
[*]      targets: ["body"], //target elements to resize text within: ["selector1", "selector2", etc]
[*]      levels: 3, //number of levels users can magnify (or shrink) text
[*]      persist: "session", //enter "session" or "none"
[*]      animate: 200 //animation duration of text resize. Enter 0 to disable
[*]    })
[*]
[*]    </script>
[*]    <div id="sizecontroldiv" class="controlstyle">
[*]    <!-- BEGIN EDIT -->
[*]    <center>Mareste/micsoreaza fontul!<br>
[*]    <a href="#smaller"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_d10.png" /></a>  <a href="#bigger"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_a10.png" /></a>
[*]
[*]    <a href="javascript:mytextsizer.setFontLevel(0)">Fontul de baza al paginii!</a>
[*]    </center>
[*]    <!-- END EDIT -->
[*]    </div>
[/list]

&

Code:

[list=1]
[*]    <center>Mareste/micsoreaza fontul!<br>
[*]    <a href="#smaller"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_d10.png" /></a>  <a href="#bigger"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_a10.png" /></a>
[*]
[*]    <a href="javascript:mytextsizer.setFontLevel(0)">Fontul de baza al paginii!</a>
[*]    </center>
[/list]

Syria Web
Forumember

Male Posts : 53
Reputation : 1
Language : Arabic , English , France

http://forum.ba7r.org

Back to top Go down

View previous topic View next topic Back to top


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