Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.217
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ?This sh...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriousl...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Image resize everywhere help
Image resize everywhere help

2 Replies / 784 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Ravens Nuke

View previous topic :: View next topic


Please report all major problems to Ravens Site.


Wumpscut
Reputation: 3.6 Add RepSubtract Rep
Local time: 6:46 AM

sweden.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Mar 09, 2009
Last Visit: 01 May 2009
Posts: 10
Points: 3494 

Post Image resize everywhere help Posted: Fri Mar 27, 2009 9:39 am

Shop Purchases:
Diablo 3 Ultimate Theme

hi folks

i would like to have a image resize function on all my pages.

i have seen this in nuke evo, but is there something simular for raven?

if not, i have used the resize mod for forum

Code:
<script>
window.onload = resizeimg;
function resizeimg()
{
   if (document.getElementsByTagName)
   {
      for (i=0; i<document.getElementsByTagName('img').length; i++)
      {
         im = document.getElementsByTagName('img')[i];
         if (im.width > 600)
         {
            im.style.width = '600px';
            eval("pop" + String(i) + " = new Function(\"pop = window.open('" + im.src + " ','fullscale','width=400,height=400,scrollbars=1,resizable=1'); pop.focus();\")");
            eval("im.onclick = pop" + String(i) + ";");
            if (document.all) im.style.cursor = 'hand';
            if (!document.all) im.style.cursor = 'pointer';
            im.title = 'Click Here To See Image Full Size ';
         }
      }
   }
}

</script>


wouldent it be possible to add that code so it would work for all pages like news/content/stories or what ever page you want ?

i would prefer like a module or something that i can manage from admin panel, so any ideas or comments are welcome
 

 
View user's profileSend private message Reply with quote

DreAdeDcoRpSE
Reputation: 2221.6 Add RepSubtract Rep
votes: 28
Local time: 12:46 AM
Location: Back of your Mind
usa.gif

Forums Moderator
Forums Moderator

1.53 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Site Admin
Site Admin
Joined: Sep 22, 2007
Last Visit: 10 Feb 2012
Posts: 2459
Points: 128882 

Post Re: Image resize everywhere help Posted: Fri Mar 27, 2009 10:06 am

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

On my old RN site, I was able to implement LightBox effect to work in the New's as well as the forums and pretty much where ever I wanted it. If I remember correctly, I had to change the array in the config to something like this.

Quote:
$advanced_editor = 1;
$AllowableHTML = array(
'a' => array('href' => 1, 'rel' =>1, 'target' => 1, 'title' => array('minlen' => 4, 'maxlen' => 120)),
'b' => array(),
'blockquote' => array(),
'br' => array(),
'center' => array(),
'div' => array('align' => 1),
'em' => array(),
'font' => array('face' => 1, 'style' => 1, 'color' => 1, 'size' => array('minval' => 1, 'maxval' => 7)),
'h1'=>array(),
'h2'=>array(),
'h3'=>array(),
'h4'=>array(),
'h5'=>array(),
'h6'=>array(),
'hr' => array(),
'i' => array(),
'img' => array('alt' => 1, 'src' => 1, 'hspace' => 1, 'vspace' => 1, 'width' => 1, 'height' => 1, 'border' => 1, 'align' => 1),
'li' => array(),
'ol' => array(),
'p' => array('align' => 1),
'pre' => array('align' => 1),
'span' =>array('class' => 1, 'style' => array('font-family' => 1, 'color' => 1)),
'strong' => array(),
'strike'=>array(),
'sub'=>array(),
'sup'=>array(),
'table' => array('align' => 1, 'border' => 1, 'cell' => 1, 'width' => 1, 'cellspacing' => 1, 'cellpadding' => 1),
'td' => array('align' => 1, 'width' => 1, 'valign' => 1, 'height' => 1, 'rowspan' => 1, 'colspan' => 1 ),
'tr' => array('align' => 1),
'tt'=>array(),
'u' => array(),
'ul' => array(),
);


If I remember right, I had to add the 'rel' =>1, to the section that dealt with the array for 'a'.

Other information can be seen in this thread.

http://www.clanthemes.com/ftopic-3273-lightbox-installation-question-0.html
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Ped
Reputation: 63.4 Add RepSubtract Rep
votes: 35
Local time: 6:46 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 09 Feb 2012
Posts: 4461
Points: 181063 

Post Re: Image resize everywhere help Posted: Fri Mar 27, 2009 3:44 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

nice thread

Would be cool to implement a site wide image resize option... its a pain sometimes having to create thumbs for loads of pics.. a neat upload from the WYSIWYG would be great, with the option to add a lightbox from the editor as well...

Take a peek at this download http://www.clanthemes.com/downloaddetails-46-835-nukewysiwyg-lightbox-mod.html
 

 
View user's profileSend private messageSend e-mail Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Ravens Nuke


 
2 Replies / 784 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum