Announcement

Collapse
No announcement yet.

Urgent question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Urgent question

    Hi,i have a question about editng the profile fields,i tried to do it myself but with no success,below is the code to my postbit template can someone please reply with the edited code where there are 2 more fields like as field 5 and field 6 whatever and i can edit what they say? plz i would much appreciate it!.

    Thanks in advance

    <table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%"><!-- spacer -->

    <table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
    <table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
    <tr>
    <td bgcolor="$post[backcolor]" width="175" valign="top" nowrap>
    <a name="post$post[postid]"></a>
    $post[firstnewinsert]
    <normalfont><b>$post[username]</b></normalfont><br>
    <smallfont>$post[usertitle]</smallfont><br>
    $post[avatar]<p>
    <smallfont>Registered: $post[joindate]<br>
    Location: $post[field2]<br>
    Posts: $post[posts]</smallfont></td>

    <td bgcolor="$post[backcolor]" width="100%" valign="top">
    <smallfont>$post[icon] <b>$post[title]</b></smallfont>
    <p><normalfont>$post[message]</normalfont></p>
    $post[attachment]
    <p>$post[signature]</p>
    <p>$post[editedby]</p>
    <p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
    </td>
    </tr>
    <tr>
    <td bgcolor="$post[backcolor]" width="175" height="16" nowrap><smallfont>$post[foldericon]
    $post[postdate] <font color="{timecolor}">$post[posttime]</font></smallfont></td>

    <td bgcolor="$post[backcolor]" width="100%" valign="middle" height="16">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr valign="bottom">
    <td><smallfont>$onlinestatus
    $post[profile] $post[pmlink] $post[useremail] $post[homepage] $post[search] $post[buddy]
    <!-- $ post[icqicon] --> <!-- $ post[aimicon] --> <!-- $ post[yahooicon] -->
    </smallfont></td>
    <td align="right" nowrap><smallfont>
    <a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="{imagesfolder}/edit.gif" border="0" alt="Edit/Delete Message"></a>
    <a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{imagesfolder}/quote.gif" border="0" alt="Reply w/Quote"></a>
    </smallfont></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td></tr></table>

    <!-- spacer --></td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>

  • #2
    I have no idea what you are trying to accomplish, maybe a better explaination
    Board of the Month: November
    Websites: Pixeljunction , vBulletin.org
    Button Sets: XP and Aqua Button sets! FREE!
    vB Customization: My sig is now vbulletin compliant. Contact me to make yours compliant too!

    Comment


    • #3
      You know under where it says post and location etc etc i want to add to other fields like where it says "favourite artist" and theme song" know what im saying? please holla back at me.

      Comment


      • #4
        For your simple task jsut use custom profile fields in teh usercp. They'll atomatically show up.

        You can also add any variable like $post[post???]
        You have to define them in admin/functions.php in the "start build post" section of the file (around line 40).
        That would require hacking however, which belongs over at vbulletin.org

        Comment


        • #5
          No,if you add them in user-cp they show up in profile not in posts.I allready know what to do just not how to do it

          Comment


          • #6
            Template: postbit

            Find:

            [CODE]<smallfont>Registered: $post[joindate]<br>[CODE]

            Then wherever around that you want you can add:

            [CODE]<smallfont>Whatever: $post[PROFILEIDHERE]<br>

            That's all u hafta do

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X