vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How do I put the tag cloud on a custom page? (https://vborg.vbsupport.ru/showthread.php?t=259133)

Lynne 03-04-2011 10:12 PM

You don't want it collapsible and you don't want the title, Tag Cloud, to show? So, you only want the tags themselves? If so, then remove this from the template:
HTML Code:

    <div class="collapse">
        <a class="collapse" id="collapse_forum_tags" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_info_options}_40b.png" alt="" /></a>

        <h4 class="forumoptiontitle blockhead"><span class="optiontitle">{vb:rawphrase tag_cloud}</span></h4>
    </div>


cbiweb 03-07-2011 01:21 PM

That would remove it from everywhere, including the forums. I just want it removed from the new custom page. I'll explain a little more what's happening...

In the template for the custom page, the cloud is powered by this:
Code:

{vb:raw cloud_html}
That pulls in the cloud, which apparently uses multiple templates and code from the forum templates & files, which includes the collapse button and title. When I tried grabbing what I believe is the relevant code I actually want from these other sources, and paste them directly into my custom template, the cloud doesn't work at all. The code you posted above is one of the snippets I pasted into the custom template, but no go.

There must be a much easier way to figure this out, but vB4's new way of handling things has stymied me. I feel like a n00b all over again, LOL.

Lynne 03-07-2011 05:27 PM

Then put a condition around that code that removes it for your custom page. Did you define THIS_SCRIPT on your page? If so:
HTML Code:

<vb:if condition="THIS_SCRIPT != 'your_page'">
    <div class="collapse">
        <a class="collapse" id="collapse_forum_tags" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_info_options}_40b.png" alt="" /></a>

        <h4 class="forumoptiontitle blockhead"><span class="optiontitle">{vb:rawphrase tag_cloud}</span></h4>
    </div>
</vb:if>

Or create a custom template to use instead of that one and reference it in your code.

cbiweb 03-08-2011 12:35 PM

Okay, that does the trick. Not sure why that didn't come to me in a dream or something. But maybe that's it - I need more sleep! lol

ceho 07-15-2011 06:29 PM

Uhm would it be possible to get the example codes of a custom page template and the according php file? I have to admit I don't get very far with the above, sorry. Thanks a lot for some examples.


All times are GMT. The time now is 02:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01093 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete