View Single Post
  #3  
Old 01-28-2010, 11:56 PM
SorentoUltimate's Avatar
SorentoUltimate SorentoUltimate is offline
 
Join Date: Jul 2009
Location: Moschato, Athens, Greece
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks kh99,

for the Social Group Form work perfect!!!

but i do the same for Albums Edit and not work....

here the Albums Edit template

Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
$usercss
<title>$vboptions[bbtitle] - <if condition="$albuminfo['albumid']">$vbphrase[edit_album]<else />$vbphrase[add_album]</if></title>
</head>
<body>
$header
$navbar

<div id="usercss">

<if condition="$show['delete_option']">
<form action="album.php?do=killalbum&amp;albumid=$albuminfo[albumid]" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="killalbum" />
<input type="hidden" name="albumid" value="$albuminfo[albumid]" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="tcat">
        $vbphrase[delete_album]
    </td>
</tr>
<tr>
    <td class="panelsurround" align="center">
    <div class="panel">
        <div style="width:$stylevar[formwidth]" align="$stylevar[left]">
            <div class="smallfont">
                <span style="float: $stylevar[right]"><input type="submit" class="button" value="$vbphrase[delete_album]" accesskey="d" tabindex="1" /></span>
                <input type="checkbox" name="delete" id="cb_delete" value="1" /><label for="cb_delete">$vbphrase[to_delete_this_album]</label></div>
            </div>
        </div>
    </div>
    </td>
</tr>
</table>
</form>

<br />
</if>

$errortable

<form action="album.php?do=updatealbum&amp;u=$userinfo[userid]&amp;albumid=$formdata[albumid]" method="post">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="tcat">
        <if condition="$albuminfo['title']">
            <span class="smallfont normal" style="float: $stylevar[right]"><b>$vbphrase[album]</b>: <a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]">$albuminfo[title_html]</a></span>
        </if>
        <if condition="$albuminfo['albumid']">$vbphrase[edit_album]<else />$vbphrase[add_album]</if>
    </td>
</tr>
<tr>
    <td class="panelsurround" align="center">
    <div class="panel">
        <div style="width:$stylevar[formwidth]">
            <table><tr><td align="$stylevar[left]">
            <if condition="$show['album_used_in_css']">
                <fieldset style="margin-bottom: $stylevar[cellpadding]px" class="fieldset">
                    <div class="smallfont" style="margin: $stylevar[cellpadding]px">
                        $vbphrase[album_pictures_used_profile_styling]
                    </div>
                </fieldset>
            </if>

            <div class="smallfont">
                $vbphrase[title]:
                <div><input type="text" class="bginput" name="title" value="$formdata[title]" size="50" tabindex="1" /></div>
            </div>

            <div style="margin-top: $stylevar[cellpadding]px" class="smallfont">
                $vbphrase[description]: <span class="shade">($vbphrase[bbcode_not_allowed])</span>
                <div><textarea name="description" rows="5" cols="50" tabindex="1">$formdata[description]</textarea></div>
            </div>

            <div style="margin-top: $stylevar[cellpadding]px" class="smallfont">
                $vbphrase[album_type]:
                <div><label for="rb_albumtype_public"><input type="radio" name="albumtype" value="public"  id="rb_albumtype_public" $formdata[albumtype_public] />$vbphrase[public]</label></div>
                <div><label for="rb_albumtype_private"><input type="radio" name="albumtype" value="private" id="rb_albumtype_private" $formdata[albumtype_private] />$vbphrase[private_only_visible_contacts_moderators]</label></div>
                <if condition="$show['albumtype_profile']"><div><label for="rb_albumtype_profile"><input type="radio" name="albumtype" value="profile" id="rb_albumtype_profile" $formdata[albumtype_profile] />$vbphrase[profile_pictures_modify_profile_style]</label></div></if>
            </div>
            </td></tr></table>
        </div>
    </div>

    <div style="margin-top:$stylevar[cellpadding]px">
        <input type="hidden" name="s" value="$session[sessionhash]" />
        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
        <input type="hidden" name="do" value="updatealbum" />
        <input type="hidden" name="albumid" value="$formdata[albumid]" />
        <input type="submit" class="button" value="$vbphrase[submit]" accesskey="s" tabindex="1" />
    </div>
    </td>
</tr>
</table>
</form>

</div>

$footer
</body>
</html>
the fields i want to take from here are title, description

but javascript cannot read title and description....

any idea???
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01345 seconds
  • Memory Usage 1,800KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete