Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.216
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 s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
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 - Edits for easy image resize phpbb2 hack add before confusion
Edits for easy image resize phpbb2 hack add before confusion

2 Replies / 625 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Hacks n Mods

View previous topic :: View next topic


thuudd
Reputation: 2.1 Add RepSubtract Rep
votes: 1
Local time: 2:14 AM
Location: Behind you with a very big knife
usa.gif

Rocket Noob
Rocket Noob

0.05 posts per day
Medals: 0

Joined: Jan 16, 2011
Last Visit: 09 Sep 2011
Posts: 23
Points: 4038 

Post Edits for easy image resize phpbb2 hack add before confusion Posted: Sat Aug 27, 2011 2:18 am

Shop Purchases:
Modern Gamer Multi Theme

Using the current version of RavenNuke, and bbtonuke phpbb2 conversion.

I have this working correctly now, but there is some confusion about the install, read on.

The first part of this edit is straight forward, but what i'm confused about is where it says "ADD BEFORE", before what, before the first edit ?. If that is what the author means, then why doesn't he make it the first edit to begin with ?

If I add that next edit, before the first edit. then the forum is broken and this hack doesn't work as intened.

I have tried this several ways, and the only way it seems to work correctly, is if I leave the text after the "Add before Statement", out of the install. So in other words, that part seems useless.
at least on the current version of RavenNuke.

Code:

#-----[ OPEN ]------------------------------------------
#
 modules/Forums/templates/SubSilver/viewtopic_body.tpl

 OR (if using a custom theme, and if using more than 1 theme then modify)

 themes/YOURTHEME/forums/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
   <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br />
     <span class="gensmall"><b>{PAGINATION}</b><br />
       </span></td>
  </tr>
</table>
#
#-----[ AFTER, ADD ]------------------------------------------
# note : you may change( 600px) to whatever you want
<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>

HERE IS WEAR THE CONFUSION BEGINS

# [ADD BEFORE]
 
<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
   <td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>   <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
   <td align="left" valign="middle" width="100%"><span class="nav">   <a href="{U_INDEX}" class="nav">{L_INDEX}</a>
     -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
  </tr>
</table>

HERE IS WEAR THE CONFUSION ENDS

#
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM 
 

Don't ever jump bail in Sacramento County :)  
View user's profileSend private message Reply with quote

Ped
Reputation: 94 Add RepSubtract Rep
votes: 37
Local time: 11:14 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 26 May 2012
Posts: 3675
Points: 191995 

Post Re: Edits for easy image resize phpbb2 hack add before confu Posted: Sat Aug 27, 2011 9:17 am

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

Yeah that don't make sense, I don't see what relevance the ADD BEFORE code has to do with the mod anyway... so I would just ignore it
 

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

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 5:14 AM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 26 May 2012
Posts: 2331
Points: 136116 

Post Re: Edits for easy image resize phpbb2 hack add before confu Posted: Sat Aug 27, 2011 2:35 pm

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

in my original version of Evo 2.0.7 which I still run. I added my own image re-size mod basically adding the lytebox feature to my site, then adding it right onto the theme's forums just by editing 1 line in the bbcode.tpl.

All I did was search for ( img ) and found something like this line,

Code:
<!-- BEGIN img --><img src="{URL}" border="0" alt=""/><!-- END img -->


and all I did was add in the light box info so now it looks like this.

Code:
<!-- BEGIN img --><a href="{URL}" rel="lytebox[MOD]"><img src="{URL}" border="0" alt="" style="width:450px"/></a><!-- END img -->


And you can set the width to what ever you want the max to be and once the page has loaded, you can click on the image and it expands using the light box effect.

It took all of like 5 - 10 min to install. That mod there seems to much for something as simple as installing the lytebox mod which if done like I did, you can use it where ever you want on your site. I use it in our forums, downloads mod, home page, ect... Its a great mod.

This is just an idea that you might be able to use.
 

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

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Hacks n Mods


 
2 Replies / 625 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 can download files in this forum