Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - haider512

Pages: 1 2 3 [4] 5 6 7 8 ... 11
46
Discussion & Troubleshooting / question about SMF integration
« on: February 17, 2011, 12:38:32 PM »
Im thinking of adding SMF forum to my 4images..

but im little confuse, that how it works. if they get integrated so both of them will share same database or different database will be used for them?

Also is it possible if user registers so he/she can access both forum and 4images with same username and password and during registration whatever avatar he/she have selected will be used for both forum and 4images.

Looking forward to positive feedback

Kind Regards
Haider

47
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: February 17, 2011, 07:25:28 AM »
Hello.. im using avatar mod.. its working perfectly fine..
but i want to add avatar on header with my defined size ( different from other avatars on main}

i mean i want to have one more tag like {user_avatar_current}
i want to have {user_avatar_header)

i did copied and did little bit changes in

"user_avatar_current" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_row['user_avatar'] == "") ? "blank.gif" $user_row['user_avatar'])."\" name=\"icons\" border=\"0\" alt=\"\">" "",

and made it like

"user_avatar_header" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_row['user_avatar'] == "") ? "blank.gif" $user_row['user_avatar'])."\" name=\"icons\" width=\"i50\" height=\"80\" border=\"0\" alt=\"\">" "",

did this only in member.php and in details.php..

so now it only works if i visit the member profile page or control panel or some.

i mean with {user_avatar_header} the avatar shows of my defined size but only if i visit the control panel page..??

what to do please tell.??

i want it to work in every page of template {user_avatar_header}

Please Reply..


==================================

Here is the screenshot of my page.. im working on localhost..i mean wamp..so thats why cant give link of this..

The normal site link is
www.cusitlibrary.com

but working on header thing on my pc, that when it will be completed will upload it..

Ok here is the screenshot.


Please Help Suggest what to do??

48
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: February 16, 2011, 01:29:12 PM »

Also try to use this:

"user_avatar_header" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_avatar == "") ? "blank.gif" $user_avatar)."\" name=\"icons\" width=\"50px\" height=\"50px\" border=\"0\" alt=\"\">" "",

No mate its not working..??? :(

any more suggestions??

@ V@no
where are you sir..really need your help here.. cant figure it out that how to make it possible??

49
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: February 16, 2011, 01:12:48 PM »
{user_avatar_current} - Is it show avatar in your header or no?

yes avatar shows up on header with {user_avatar_current}

but i want to resize the avatar for my header place..

so im using img tag

but that tag i guess is not working..

isnt is there any way to have two different sizes like

{user_avatar_current}

which already is global one

but add another one

{user_avatar_header} with my custom size so i can use it in template anywhere i want?

i tried this..

in member.php

i added.

"user_avatar_header" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_row['user_avatar'] == "") ? "blank.gif" $user_row['user_avatar'])."\" name=\"icons\" width=\"50\" height=\"50\" border=\"0\" alt=\"\">" "",

under

"user_avatar_current" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_row['user_avatar'] == "") ? "blank.gif" $user_row['user_avatar'])."\" name=\"icons\" border=\"0\" alt=\"\">" "",


and added

"user_avatar_header" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_avatar == "") ? "blank.gif" $user_avatar)."\" name=\"icons\" width=\"50\" height=\"50\" border=\"0\" alt=\"\">" "",

under
"user_avatar_current" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_avatar == "") ? "blank.gif" $user_avatar)."\" name=\"icons\" border=\"0\" alt=\"\">" "",

then i tried using the {user_avatar_header} in my template page..but it didn't worked..

is there any way to achive two different sized??


also in template i tried this too..its also not working

<img src='{user_avatar_current}' style=' width:50px; height:50px;'>

50
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: February 16, 2011, 12:58:28 PM »
Did you try to do same this?

<img src="{user_avatar_current}" style="width:50px; height:50px;">

yes but its not working..

the only thing in header.html works is {user_avatar_current}

even if i dont put the height and with or any attribute , it will not work..??
so how to resize it..

i also tried to make another one like {user_avatar_header)

but got no success?

what to do??

51
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: February 16, 2011, 12:34:58 PM »

you are using HTML attributes width and height, they only accept numbers:

<img src="{user_avatar_current}" width="80" height="80">

"px" can only be used in CSS style:

<img src="{user_avatar_current}" style="width:80px; height:80px;">


Sir im still not able to make the image size smaller??

i used both but still image not resizing..infact image dont even appear??  how to resize image for a particular page or for some specific place??

Actually im trying to add avatar top on header of page.. but i want it smaller on header then normal size on pages..

still trying to fix it..but couldnt find any thing..please suggest me what to do..


52
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: February 11, 2011, 03:05:21 AM »
Hello sir i want to know.. how to have different avatar size in different pages..

i tried like this..but it didnt worked out.

<img src="{user_avatar_current}" width="80px" height="80px">

but it didnt worked.. please sir tell how can we set different size of avatar in different pages..or a specific page..


i mean to set specific width and height of avatar for only only that specific field..

53
Actually sir i created one..template.. but problem is i want to have that login page and profile out side of template folder..

so how to use such things?

{if user_avatar_current}

  {user_avatar_current}



 {endif user_avatar_current}

in a file which is out side template folder..

Please help.. Actually i want to use global profile on header..

http://cusitlibrary.com/test/

login button is working.. but after login i want to set the profile thing on top header..

Here are login details.

username : demo
password : demo

Please Help me in this..

Kind Regards
haider

54
Discussion & Troubleshooting / Need Help with file editing..
« on: February 10, 2011, 06:40:59 AM »
Hello..Hi..

I need help in editing of file..

I created a template with a name of loginbox.php and i included it in my header file header.html.

with this <?php include ('userbox/loginbox.php'); ?>

and put whatever css or javascript is needed on head place of header..

but problem is when i try to use the {url_login} , {lang_lost_password}, {lang_register}

They dont seem to work..please can any body help me in this..


my loginbox.php file

 <ul>
<
li><a href="register.php" class="big-btn blue"><strong>Register</strong></b></a></li>
<
li><h2 style="font-size:25px; color: white; padding-top: 15px"> &nbsp;OR &nbsp; </h2></li>
<
li><div id="login-holder"><a href="#login-box" class="big-btn green"><strong>Login</strong></b></a></div></li>
  <
ul>

     <
br /><br />
<
div class="hidden">
  <
div id="login-box">
    <
form action="login.php" method="post">
      <
label for="login-username">Username:</label>
      <
input type="text" name="user_name" id="login-username" />
      <
label for="login-password">Password:</label>
      <
input type="password" name="user_password" id="login-password" />
      <
div class="submit-block"> <span class="alignleft">
        <
input name="auto_login" type="checkbox" value="1" class="checkbox" />
        
Remember me</span> <span class="alignright">
        <
input type="submit" name="submit" id="login-submit" value="Login" class="sml-btn grey" />
        </
span> </div>
      <
a href="member.php?action=lostpassword" class="lostpass">Forgot Password?</a>
    </
form>
  </
div>
</
div>


my header.html file

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<
html xmlns="http://www.w3.org/1999/xhtml">

<
head>

<
title>{site_name}</title>

<
meta http-equiv="content-type" content="text/html; charset={charset}" />
<
link rel="stylesheet" href="userbox/login/login.css" />
<
link rel="stylesheet" href="userbox/login/fancybox/jquery.fancybox-1.3.1.css" type="text/css" />
<
link rel="stylesheet" href="userbox/login/css/superfish.css" type="text/css" />
<
link rel="stylesheet" href="userbox/login/css/custom.css" type="text/css" />
<
link rel="stylesheet" href="{template_url}/images/style.css" />
<
link rel="stylesheet" href="{template_url}/cstyle1.css" />
<
link rel="stylesheet" href="custom/css/reset.css" type="text/css" media="all">
<
link rel="stylesheet" href="custom/css/grid.css" type="text/css" media="all">
<
link rel="stylesheet" href="custom/css/style.css" type="text/css" media="all">
<
link rel="stylesheet" href="custom/bigcontainer.css" type="text/css" media="all">
  <!--[if 
lt IE 7]>
    <
script type="text/javascript" src="{template_url}/custom/js/ie_png.js"></script>
    <
script type="text/javascript">
        
ie_png.fix('.png, .logo img, header nav a, header .extra-navigation a, img.icon');
    </
script>
  <![endif]-->
  <!--[if 
lt IE 9]>
  
	
<
script type="text/javascript" src="{template_url}/custom/js/html5.js"></script>
  <![endif]-->
<
script src="jquery.js" type="text/javascript" language="javascript"></script>
<
script src="js/cusit-id.js" type="text/javascript" language="javascript"></script>
<
script type="text/JavaScript" src="custom/js/curvycorners.src.js"></script>
<
script src="userbox/login/js/jquery.min.js"></script>
<
script src="userbox/login/js/superfish.js"></script>
<
script src="userbox/login/fancybox/jquery.fancybox-1.3.1.pack.js"></script>
<
script src="userbox/login/js/bluz.js"></script>
<
script src="userbox/login/js/harabara.js"></script>
<
script src="userbox/login/js/css_browser_selector.js"></script>
<
script src="userbox/login/js/jquery.form.js"></script>

<
style>

.
myBox {
  
margin0.5in auto;
  
color#ffffff;
  
width300px;
  
height110px;
  
padding15px;
  
text-alignleft;
  
background-imageurl(test.png);
  
background-repeatno-repeat;
  
border:5px solid #33ccff;
}

.
topbox {
	
padding-left15px;



}


</
style>
<
script language="javascript" type="text/javascript">

  var 
captcha_reload_count 0;

	
var 
captcha_image_url "{url_captcha_image}";

  function 
new_captcha_image() {

    if (
captcha_image_url.indexOf('?') == -1) {

	
	
  
document.getElementById('captcha_image').srccaptcha_image_url+'?c='+captcha_reload_count;

	
	
} else {

	
	
  
document.getElementById('captcha_image').srccaptcha_image_url+'&c='+captcha_reload_count;

	
	
}



    
document.getElementById('captcha_input').value="";

    
document.getElementById('captcha_input').focus();

    
captcha_reload_count++;

  }



	
function 
opendetailwindow() {

    
window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');

  }



{if 
user_loggedout}
  function 
right(e) {
    if ((
document.layers || (document.getElementById && !document.all)) && (e.which == || e.which == 3)) {
      
alert("© Copyright by {site_name}");
      return 
false;
    }
    else if (
event.button == || event.button == 3) {
      
alert("© Copyright by {site_name}");
      return 
false;
    }
    return 
true;
  }

  if (
document.layers){
    
document.captureEvents(Event.MOUSEDOWN);
    
document.onmousedown right;
  }
  else if (
document.all && !document.getElementById){
    
document.onmousedown right;
  }

	
document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");
{endif 
user_loggedout}



</
script>



{if 
has_rss}

<
link rel="alternate" type="application/rss+xml" title="{rss_title}" href="{rss_url}" />

{endif 
has_rss}

<
script type="text/JavaScript">

  
curvyCorners.addEvent(window'load'initCorners);

  function 
initCorners() {
    var 
settings = {
      
tl: { radius20 },
      
tr: { radius20 },
      
bl: { radius20 },
      
br: { radius20 },
      
antiAliastrue
    
}

    
/*
    Usage:

    curvyCorners(settingsObj, selectorStr);
    curvyCorners(settingsObj, Obj1[, Obj2[, Obj3[, . . . [, ObjN]]]]);

    selectorStr ::= complexSelector [, complexSelector]...
    complexSelector ::= singleSelector[ singleSelector]
    singleSelector ::= idType | classType
    idType ::= #id
    classType ::= [tagName].className
    tagName ::= div|p|form|blockquote|frameset // others may work
    className : .name
    selector examples:
      #mydiv p.rounded
      #mypara
      .rounded
    */
    
curvyCorners(settings".myBox");
  }

</
script>

</
head>

<
body>

 <!-- 
header -->
  <
header>
    <
div class="container_24">
    
	
<!-- .
logo -->
    
	
<
div class="logo">
      
	
<
a href="{url_home}"><img src="images/logo.png" alt=""></a>
      </
div>
    
	
<!-- /.
logo -->
      <!-- .
extra-navigation -->
{if 
user_loggedout}<div class="extra-navigation"> <?php include ('userbox/loginbox.php'); ?> </div>   {endif user_loggedout}
{if user_loggedin}<div class="extra-navigation1"> <?php include ('userbox/box.php'); ?> </div>{endif user_loggedin}
      <!-- /.extra-navigation -->
      <nav>
        <ul>
        
	
<li><a href="{url_home}" class="current">Library</a></li>
          <li><a href="downloads/index.php">Downloads</a></li>
          <li><a href="soon.htm">Forum</a></li>
          <li><a href="search/index.php">Search</a></li>
          <li><a href="legends.php">Legends</a></li>
          <li class="last"><a href="contact.php">Contact Me</a></li>
        </ul>
      </nav>
    </div>
  </header>
  <!-- content -->
  <br />
  <div id="liquid-round">
    <div class="top"><span></span></div>
    <div class="center-content">

        <!-- CONTENT BEGIN -->
        <table width="100%" border="0" align="center"><tr><td>

<div id="container">


Looking for replies and help..really need help in this..

Kind Regards
Haider

55
me also looking for some thing like this..

i created a template page.. with user login and password field..

but i want to know how to fix it... i mean how to make it work..

i will be able to understand and make it work if i see the already buited login form..

simply i want to ask which file is responsible for login form..??

56
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: January 05, 2011, 07:40:33 AM »
hi v@no.
 can you also add feature which auto resize avatar when uploaded by user?
actually most users when upload avatar..they dont care for height and width and when they get error..then they dont upload..and choose from given..

cuz most users in my country dont know much about resizing of images throgh photoshop or any other tool..

can you please also make a mod..which auto resize the avatar when uploaded..like you did for thumnail and images.?

57
Hi..

i am lookng for mod which enables user to view .pdf , .ppt documents online...

i have searched 4images site..but unfortunately couldnt find a solution..

the only best mod i found that makes enable of viewing pdf online with help of iframe..but still that mod requires acrobat user to be installed on users pc..

but i want some thing like docstoc or google docs..like that user dont need to install acrobat reader on their pc..
i have searched google for solution but mostly i have found online the swf solution..but i dont know how it will work..

also i tried docs.google.com that if i upload documents on docs.google.com and link it here..but still it only show document ..and its not downloadable..not proffesional looking..

i found scribd very good..dont know much about it..
but now i came to know that they no longer require you to host your documents on their server. If you create an account with them so you get a publisher id, it only takes a few lines of javascript to load up pdf's stored on your own server.

http://www.scribd.com/developers

but the problem is im not a good coder..mostly time i make mess with codings..so i need help of coder here to help me with this issue..make a mod..with this..

scribd have explained in detail the procedure..but the file system here is out of my head..

please if some one can make a mod with this..it will b great..

i just need my users to give ability to view documents online without need of download.. and also without need of installing acrobat and other software..etc..

Please help regarding this..

Looking forward to your replies..

Kind Regards
Haider


===========

i found another site...

http://code.google.com/p/do-pdf/

Quote
Uses only HTML, Javascript and CSS to show the viewer

please look in to this..

58
Tutorials / Re: [TUT] How to add a new, custom PHP page
« on: January 02, 2011, 07:18:32 AM »
Awesome Mate...its working great..now..

superb...i added those lines in legends.php and it worked...

Super Super THanks..

Keep Rocking mate..

Ty..

59
Tutorials / Re: [TUT] How to add a new, custom PHP page
« on: January 02, 2011, 06:40:46 AM »
Its working awesome..

The page is working..with what ever changes i do in .html


but i dont understand one thing..

i mean when i do change in main language file it dont appear there..


$lang
['legends_name'] = "Legends";
$lang['support_name'] = "Top Supporters";
$lang['legends_page_title'] = "CUSIT Library Legends";


so the above new language i defined in main.php in my english language..

but it is not appearing when i call in the .html file..

here i used when i call the above language.

{support_name}

i also tried {lang_support_name}

but it didnt worked..

i missed some thing.. please tell me what should i do to use my define language.?

here is the link to my custom page..

http://cusitlibrary.com/legends.php

60
Tutorials / Re: [TUT] How to add a new, custom PHP page
« on: January 01, 2011, 02:19:13 PM »
@ Rembrandt

Many Many Many Many Many Many Many Many Many Many Many Many THanks for this Mod..

Superb..Mate..Many thanks for this mod that you made...


im going to apply it now..

i have question..
will this page will b visible for both guests and users or only users..

Actually i want this page to b visible for both users and and guests..that both can see the page..

so it is possible in this to make the availability of page for both users and guests.??

Pages: 1 2 3 [4] 5 6 7 8 ... 11