Changing collapse button into image?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Futuredood
    Member
    • Jan 2002
    • 30

    Changing collapse button into image?

    Anyone know which hack they used to replace the collapse button with an image?

  • Nombie Wan
    Senior Member
    • Apr 2003
    • 202
    • 3.0.0 'Gold'

    #2
    It's just a template edit. Edit:

    Forum Home Templates >> forumhome_forumbit_level1_nopost

    Just change the img to whatever you want, change the url to whatever you want, and remove the onclick event.
    http://www.teamxbox.com

    Comment

    • Futuredood
      Member
      • Jan 2002
      • 30

      #3
      Originally posted by Nombie Wan
      It's just a template edit. Edit:

      Forum Home Templates >> forumhome_forumbit_level1_nopost

      Just change the img to whatever you want, change the url to whatever you want, and remove the onclick event.
      Hey, thanks for the reply. Cool, I have the general idea now, I just checked out the template. How do you make it for each individual category? (ex: category 3, 5, and 6?)

      Here's the code, I'm trying to get each category/forum id to have it's own image but can't seem to get it right. Here's the original code:


      <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>

      Comment

      • merk
        Senior Member
        • Jul 2001
        • 4149

        #4
        Name the images as follows:

        images/buttons/collapse_tcat_FORUMID_collapsed.gif for the COLLAPSED image.
        images/buttons/collapse_tcat_FORUMID.gif for the NON collapsed image.

        You then change the code you pasted to be:

        Code:
        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat_$forumid$collapseimg.gif" alt="" border="0" /></a>

        Comment

        • Futuredood
          Member
          • Jan 2002
          • 30

          #5
          Hey Merk, I just tried the code and it was a lot more hard to grasph than I thought. I was trained in HTML, when it comes to php, it's quite a ways off. Can you show me the right way to insert an invocation code of a banner script, I'm using Phpmyads. The invocation code they use is:


          PHP Code:
           <?php
              
          if (@include(getenv('DOCUMENT_ROOT').'/phpads/phpadsnew.inc.php')) {
                  if (!isset(
          $phpAds_context)) $phpAds_context = array();
                  
          $phpAds_raw view_raw ('zone:8'0'_blank''''0'$phpAds_context);
                  echo 
          $phpAds_raw['html'];
              }
          ?>

          Comment

          • merk
            Senior Member
            • Jul 2001
            • 4149

            #6
            This question has been asked quite a few times, its easier if you search, mainly because i dont use phpnewads and dont know of the quirks of doing it.

            Comment

            • Futuredood
              Member
              • Jan 2002
              • 30

              #7
              Originally posted by merk
              This question has been asked quite a few times, its easier if you search, mainly because i dont use phpnewads and dont know of the quirks of doing it.
              Yeah, I've seen posts about posting phpads into the forum generally, but into the category strip isn't too common. If I get it right though, I'll include it in this thread in case anyone else is interested. Thanks for the help Mrk.

              Comment

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